]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Properly emulate AC_ENABLE_SHARED([no]) and others.
authorAndreas Schwab <schwab@suse.de>
Fri, 18 Apr 2008 21:43:19 +0000 (23:43 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 18 Apr 2008 21:45:43 +0000 (23:45 +0200)
* libltdl/m4/ltoptions.m4 (AC_ENABLE_SHARED): Check optional
argument.
(AC_ENABLE_STATIC): Likewise.
(AC_ENABLE_FAST_INSTALL): Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/m4/ltoptions.m4

index 268e36925df974a581c9ed3972f5f17c68cf4048..e5934060e492590a6aea873f534f84f9cd68b211 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-04-18  Andreas Schwab  <schwab@suse.de>
+
+       * libltdl/m4/ltoptions.m4 (AC_ENABLE_SHARED): Check optional
+       argument.
+       (AC_ENABLE_STATIC): Likewise.
+       (AC_ENABLE_FAST_INSTALL): Likewise.
+
 2008-04-16  Eric Blake  <ebb9@byu.net>
 
        Make ChangeLog merges easier.
index a1c3aba42817ec19c4c985c758e5b14210edec92..339d6f58d7eade78abcb2814e55c55344f125c3e 100644 (file)
@@ -192,7 +192,7 @@ LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
 # Old names:
 AC_DEFUN([AC_ENABLE_SHARED],
-[_LT_SET_OPTION([LT_INIT], [shared])
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 ])
 
 AC_DEFUN([AC_DISABLE_SHARED],
@@ -246,7 +246,7 @@ LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
 # Old names:
 AC_DEFUN([AC_ENABLE_STATIC],
-[_LT_SET_OPTION([LT_INIT], [static])
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 ])
 
 AC_DEFUN([AC_DISABLE_STATIC],
@@ -300,7 +300,7 @@ LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no
 
 # Old names:
 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
-[_LT_SET_OPTION([LT_INIT], [fast-install])
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 AC_DIAGNOSE([obsolete],
 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
 the `fast-install' option into LT_INIT's first parameter.])