[commit: ghc] wip/T16087, wip/T16254, wip/junit-unexpected-passes: Fix incorrectly named configure options (b89b6e7)

git at git.haskell.org git at git.haskell.org
Wed Jan 30 00:25:42 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branches: wip/T16087,wip/T16254,wip/junit-unexpected-passes
Link       : http://ghc.haskell.org/trac/ghc/changeset/b89b6e71c798996724ba99f273f88d8a3637fb8d/ghc

>---------------------------------------------------------------

commit b89b6e71c798996724ba99f273f88d8a3637fb8d
Author: Alec Theriault <alec.theriault at gmail.com>
Date:   Sat Jan 26 18:07:48 2019 -0800

    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.


>---------------------------------------------------------------

b89b6e71c798996724ba99f273f88d8a3637fb8d
 aclocal.m4                         | 4 ++--
 libraries/integer-gmp/configure.ac | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 62825c3..9d2390e 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 d189375..1ccd48e 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],



More information about the ghc-commits mailing list