Make GETTEXT_SYSTEM the default, provide an opt-out instead
This discussion convinced me that by default, gettext-sys should link to GNU gettext dynamically. Static linking should only be used if the user requests it explicitly.
An alternative from https://github.com/gettext-rs/gettext-rs/pull/106#issuecomment-2241254458:
We could introduce a feature (force-gettext-system or assume-libc-contains-libintl or something) which always links with libc without checking if it has libintl. It'll be backed by an environment variable too. Will that be a workable solution for you?
In a way that’s how I expect the “gettext-system” feature to work. I think that’s also how it works with other crates: if I enable the “system-foo” feature it’s my responsibility to make sure it’s in the system.
In this crate the feature enables a kind of auto-detection (that’s failing in my case).
Need to look at a few other -sys crates to see if there other approaches as well.