From: Akim Demaille Date: Fri, 26 Sep 2003 13:55:03 +0000 (+0000) Subject: * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the X-Git-Tag: AUTOCONF-2.57e~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a8ac9d0baa5a3eae92bfa35e45d43d9bc7893a6;p=thirdparty%2Fautoconf.git * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the directory for AC_CONFIG_COMMANDS' first argument exists. This makes valid the invocation of _AC_SRCPATH that follows. Reported by Eric Sunshine. * doc/autoconf.texi (Configuration Commands): Adjust. --- diff --git a/ChangeLog b/ChangeLog index 67f63717..8d8f16b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-09-26 Akim Demaille + + * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the + directory for AC_CONFIG_COMMANDS' first argument exists. + This makes valid the invocation of _AC_SRCPATH that follows. + Reported by Eric Sunshine. + * doc/autoconf.texi (Configuration Commands): Adjust. + 2003-09-26 Akim Demaille * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file. diff --git a/NEWS b/NEWS index a3e6c714..370555df 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,13 @@ * Major changes in Autoconf 2.57e -*- outline -*- +** AC_CONFIG_COMMANDS + The directory for its first argument is automatically created. For + instance, with + + AC_CONFIG_COMMANDS([src/modules.hh], [...]) + + $top_builddir/src/ is created if needed. + * Major changes in Autoconf 2.57d Released 2003-09-25, by Akim Demaille. diff --git a/THANKS b/THANKS index 4d94bde1..93b13bf3 100644 --- a/THANKS +++ b/THANKS @@ -56,6 +56,7 @@ Enrique Robledo Arnuncio enrique.robledo@wanadoo.es Erez Zadok ezk@cs.columbia.edu Eric Backus ericb@lsid.hp.com Eric Mumpower nocturne@mit.edu +Eric Sunshine sunshine@sunshineco.com Ezra Peisach epeisach@zif.mit.edu Felix Lee flee@cygnus.com Franc,ois Pinard pinard@iro.umontreal.ca diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 4d2ce3af..0da94a41 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -2805,9 +2805,10 @@ commands to run when they are called multiple times. @acindex{CONFIG_COMMANDS} Specify additional shell commands to run at the end of @file{config.status}, and shell commands to initialize any variables -from @command{configure}. Associate the commands with @var{tag}. Since -typically the @var{cmds} create a file, @var{tag} should naturally be -the name of that file. This macro is one of the instantiating macros; +from @command{configure}. Associate the commands with @var{tag}. +Since typically the @var{cmds} create a file, @var{tag} should +naturally be the name of that file. If needed, the directory hosting +@var{tag} is created. This macro is one of the instantiating macros; see @ref{Configuration Actions}. Here is an unrealistic example: diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index 90924bbb..25221246 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -366,6 +366,7 @@ for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[[^:]]*:,,'` ac_dir=`AS_DIRNAME(["$ac_dest"])` + AS_MKDIR_P(["$ac_dir"]) _AC_SRCPATHS(["$ac_dir"]) AC_MSG_NOTICE([executing $ac_dest commands]) diff --git a/tests/acgeneral.at b/tests/acgeneral.at index cff0af7b..59268980 100644 --- a/tests/acgeneral.at +++ b/tests/acgeneral.at @@ -21,7 +21,6 @@ AT_CHECK_MACRO([AC_PREFIX_DEFAULT]) AT_CHECK_AU_MACRO([AC_CHECKING]) AT_CHECK_AU_MACRO([AC_COMPILE_CHECK]) AT_CHECK_AU_MACRO([AC_ENABLE]) -AT_CHECK_AU_MACRO([AC_HELP_STRING]) AT_CHECK_AU_MACRO([AC_TRY_COMPILE]) AT_CHECK_AU_MACRO([AC_TRY_CPP]) AT_CHECK_AU_MACRO([AC_TRY_LINK])