]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/ltoptions.m4 (_LT_SET_OPTIONS): Loop options only if
authorRalf Menzel <menzel@ls6.cs.uni-dortmund.de>
Sat, 11 Jun 2005 11:12:28 +0000 (11:12 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 11 Jun 2005 11:12:28 +0000 (11:12 +0000)
nonempty.
* m4/ltsugar.m4 (lt_combine): Don't test against empty quotes,
test against empty arg.  Fixes infinite m4 loop with CVS Autoconf.

ChangeLog
m4/ltoptions.m4
m4/ltsugar.m4

index 63cb0f7c35f7324ea1516d51e0b8c8d9a384287d..521d49d17ec8793962b52190251fd6d0617eb7a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-06-11  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>,
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * m4/ltoptions.m4 (_LT_SET_OPTIONS): Loop options only if
+       nonempty.
+       * m4/ltsugar.m4 (lt_combine): Don't test against empty quotes,
+       test against empty arg.  Fixes infinite m4 loop with CVS Autoconf.
+
 2005-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * m4/libtool.m4 (_LT_COMPILER_OPTION, _LT_LINKER_OPTION): No
index 21050cd10cfbe69758f09bac2d346debbef23cfd..c4a70448e2508bebce6449560fc64334f680be12 100644 (file)
@@ -51,12 +51,14 @@ m4_ifdef([$0_found], [m4_undefine([$0_found])], [$2
 # dispatch to that macro; otherwise complain about the unknown option
 # and exit.
 m4_define([_LT_SET_OPTIONS],
-[AC_FOREACH([_LT_Option], [$1],
-    [_LT_SET_OPTION(_LT_Option)
-    m4_ifdef(_LT_MANGLE_DEFUN(_LT_Option),
-               _LT_MANGLE_DEFUN(_LT_Option),
-       [m4_fatal([Unknown option `]_LT_Option[' to LT][_INIT_LIBTOOL])])
-    ])dnl
+[m4_if([$1], [], [],
+       [AC_FOREACH([_LT_Option], [$1],
+                  [_LT_SET_OPTION(_LT_Option)
+                       m4_ifdef(_LT_MANGLE_DEFUN(_LT_Option),
+                                _LT_MANGLE_DEFUN(_LT_Option),
+               [m4_fatal([Unknown option `]_LT_Option[' to LT][_INIT_LIBTOOL])])
+                  ])dnl
+       ])
 dnl
 dnl Simply set some default values (i.e off) if boolean options were not
 dnl specified:
index 692925b45efcc07fd575b2196df982ec9b9de6a6..f5ad61e363f299d57e36744dbf99f8e0c0169c8c 100644 (file)
@@ -38,7 +38,7 @@ m4_define([lt_join],
 # PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 # has the form PREFIXmINFIXSUFFIXn.
 m4_define([lt_combine],
-[m4_if([$2], [[]], [],
+[m4_if([$2], [], [],
        [lt_join(m4_quote(m4_default([$1], [, ])),
                _$0([$1], m4_car($2)[$3], m4_shiftn(3, $@)),
                $0([$1], m4_cdr($2), m4_shiftn(2, $@)))])])