From: Ralf Wildenhues Date: Thu, 1 Sep 2005 11:41:26 +0000 (+0000) Subject: * libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): m4_defun this.. X-Git-Tag: release-2-1b~538 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af1d3e4e7d82666e608557e1dd86921bfce2b7b;p=thirdparty%2Flibtool.git * libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): m4_defun this.. * libltdl/m4/libtool.m4 (LT_INIT): so it can be m4_require'd from here with user-supplied options. Fixes output macro ordering issue. --- diff --git a/ChangeLog b/ChangeLog index b9666f29b..53646d13f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-09-01 Ralf Wildenhues + + * libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): m4_defun this.. + * libltdl/m4/libtool.m4 (LT_INIT): so it can be m4_require'd + from here with user-supplied options. Fixes output macro + ordering issue. + 2005-09-01 Gary V. Vaughan * libtoolize.m4sh (func_scan_files): When searching for evidence diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 58b4d622f..7fc6cb057 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -65,6 +65,7 @@ AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl +m4_require([_LT_SET_OPTIONS], [_LT_SET_OPTIONS([$1])])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" @@ -73,9 +74,6 @@ LIBTOOL_DEPS="$ltmain" LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl -# Set options -_LT_SET_OPTIONS([$1])dnl - _LT_SETUP # Only expand once: diff --git a/libltdl/m4/ltoptions.m4 b/libltdl/m4/ltoptions.m4 index 4da9fb49f..c6fe3bdc4 100644 --- a/libltdl/m4/ltoptions.m4 +++ b/libltdl/m4/ltoptions.m4 @@ -56,8 +56,9 @@ m4_ifdef([$0_found], [m4_undefine([$0_found])], [$2 # If any OPTION has a handler macro declared with LT_OPTION_DEFINE, # dispatch to that macro; otherwise complain about the unknown option # and exit. -m4_define([_LT_SET_OPTIONS], -[m4_foreach([_LT_Option], m4_split(m4_normalize([$1])), +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$1])), [_LT_SET_OPTION(_LT_Option)]) dnl dnl Simply set some default values (i.e off) if boolean options were not