diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2019-01-26 18:07:48 -0800 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-02-20 14:28:54 -0500 |
commit | 4d778c7f4b39645ad55bf12fbe1fedc40f52be25 (patch) | |
tree | 17760ccaca3a20713e5c93cd57438fffb4b27b0d | |
parent | 940fc50f33dd89ac848479049c86a678bff7f6fb (diff) | |
download | haskell-4d778c7f4b39645ad55bf12fbe1fedc40f52be25.tar.gz |
Fix incorrectly named configure options
Although we should use 'AC_ARG_ENABLE' for boolean flags, it also
means options get named '--enable-*', not '--with-*'. This should
unbreak the --with-intree-gmp option.
(cherry picked from commit b89b6e71c798996724ba99f273f88d8a3637fb8d)
-rw-r--r-- | aclocal.m4 | 4 | ||||
-rw-r--r-- | libraries/integer-gmp/configure.ac | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 62825c3068..9d2390e840 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1780,13 +1780,13 @@ AC_DEFUN([FP_GMP], [directory containing gmp library])], [GMP_LIB_DIRS=$withval]) - AC_ARG_ENABLE([intree-gmp], + AC_ARG_WITH([intree-gmp], [AC_HELP_STRING([--with-intree-gmp], [force using the in-tree GMP])], [GMP_FORCE_INTREE=YES], [GMP_FORCE_INTREE=NO]) - AC_ARG_ENABLE([gmp-framework-preferred], + AC_ARG_WITH([gmp-framework-preferred], [AC_HELP_STRING([--with-gmp-framework-preferred], [on OSX, prefer the GMP framework to the gmp lib])], [GMP_PREFER_FRAMEWORK=YES], diff --git a/libraries/integer-gmp/configure.ac b/libraries/integer-gmp/configure.ac index d189375616..1ccd48e698 100644 --- a/libraries/integer-gmp/configure.ac +++ b/libraries/integer-gmp/configure.ac @@ -27,13 +27,13 @@ AC_ARG_WITH([gmp-libraries], [GMP_LIB_DIRS=$withval; LDFLAGS="-L$withval"], [GMP_LIB_DIRS=]) -AC_ARG_ENABLE([gmp-framework-preferred], +AC_ARG_WITH([gmp-framework-preferred], [AC_HELP_STRING([--with-gmp-framework-preferred], [on OSX, prefer the GMP framework to the gmp lib])], [GMP_PREFER_FRAMEWORK=YES], [GMP_PREFER_FRAMEWORK=NO]) -AC_ARG_ENABLE([intree-gmp], +AC_ARG_WITH([intree-gmp], [AC_HELP_STRING([--with-intree-gmp], [force using the in-tree GMP])], [GMP_FORCE_INTREE=YES], |