-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically search for GMP and GNU Readline in a few additional places, if we cannot find them elsewhere #1945
Comments
With macOS 11 "Big Sur", this is getting more important, as there, Homebrew is installed into |
For now, this is what I did on an M1 Mac:
|
Alternatively, we could also offer a This could then also alter the default for But of course overall it'd still be nicest if users could just do This is not hard to ensure, as long as one is aware of the need to do so, which is why I mention it here explicitly :-). |
Oh and note that autoconf already has features which take a list of possible prefixes and search for tools / headers / libraries in there. So a standard thing configure scripts do is to have a list of locations to search, and augment that depending on the target system: E.g. This can be super convenient -- however, it can also be super frustrating to some users, and esp. to packagers, if it cannot be turned off / overridden. |
When searching for GMP and GNU Readline, if we fail to detect them w/o specific compiler flags, then we could iterate over a list of standard locations where they might be found instead. Specifically, for OS X, that could be the
include
andlib
subdirectories of.../sw
, for a typical Fink installation;/opt/local
, for a typical MacPorts install;$(brew --prefix)
for Homebrew (and for GNU Readline, also$(brew --prefix)/opt/readline
as it is installed keg-only by default)I am not sure if any other operating system resp. distros would benefit from it, but I'd think it'd be worth the effort regardless of that.
The text was updated successfully, but these errors were encountered: