]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): Only set default
authorPeter O'Gorman <peter@pogma.com>
Wed, 6 Feb 2008 19:53:01 +0000 (19:53 +0000)
committerPeter O'Gorman <peter@pogma.com>
Wed, 6 Feb 2008 19:53:01 +0000 (19:53 +0000)
LT_INIT values for LT_INIT, not LTDL_INIT.
Reported by Jochem Huhmann <joh@revier.com>

ChangeLog
libltdl/m4/ltoptions.m4

index d1e76ee2f193dd043deadeaea83e18c39314d4c2..443ee70c7caf08dee4092c4830e2ffa473c2ce92 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-06  Peter O'Gorman  <peter@pogma.com>
+
+       * libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): Only set default
+       LT_INIT values for LT_INIT, not LTDL_INIT.
+       Reported by Jochem Huhmann <joh@revier.com> 
+
 2008-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * tests/testsuite.at (LT_AT_TAG): For the CXX tag, if $CXX is
index b416e5a7b6e7d97c385b5b94253784722396b29d..11a76ae0376aca56165f09abb634679b456f434a 100644 (file)
@@ -62,23 +62,26 @@ m4_defun([_LT_SET_OPTIONS],
 [# Set options
 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
     [_LT_SET_OPTION([$1], _LT_Option)])
-dnl
-dnl Simply set some default values (i.e off) if boolean options were not
-dnl specified:
-_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
-])
-_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
-])
-dnl
-dnl If no reference was made to various pairs of opposing options, then
-dnl we run the default mode handler for the pair.  For example, if neither
-dnl `shared' nor `disable-shared' was passed, we enable building of shared
-dnl archives by default:
-_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
-_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
-_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
-_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
-                  [_LT_ENABLE_FAST_INSTALL])
+
+m4_if([$1],[LT_INIT],[
+  dnl
+  dnl Simply set some default values (i.e off) if boolean options were not
+  dnl specified:
+  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
+  ])
+  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
+  ])
+  dnl
+  dnl If no reference was made to various pairs of opposing options, then
+  dnl we run the default mode handler for the pair.  For example, if neither
+  dnl `shared' nor `disable-shared' was passed, we enable building of shared
+  dnl archives by default:
+  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
+  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
+  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
+  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
+                  [_LT_ENABLE_FAST_INSTALL])
+  ])
 ])# _LT_SET_OPTIONS