From: Akim Demaille Date: Mon, 27 Sep 1999 14:06:13 +0000 (+0000) Subject: 1999-09-27 Akim Demaille X-Git-Tag: experimental-pre-merge-trunk-into-experimental-1999-10-01~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9964aef03efe9bbc10aaa0bb9f618f342a7dea3;p=thirdparty%2Fautoconf.git 1999-09-27 Akim Demaille * acgeneral.m4 (AC_OUTPUT): Divert AC_OUTPUT_FILE to AC_DIVERSION_KILL if there are no CONFIG_FILES. (AC_OUTPUT, ac_cs_usage): Output the list of files to instanciate only if there are. --- diff --git a/ChangeLog b/ChangeLog index 9038ebd8..f1e0ff69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-09-27 Akim Demaille + + * acgeneral.m4 (AC_OUTPUT): Divert AC_OUTPUT_FILE to + AC_DIVERSION_KILL if there are no CONFIG_FILES. + (AC_OUTPUT, ac_cs_usage): Output the list of files to instanciate + only if there are. + 1999-09-27 Akim Demaille * acgeneral.m4 (AC_CHECK_DECL): Renamed as... diff --git a/acgeneral.m4 b/acgeneral.m4 index 79866c7d..d019024f 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -2703,7 +2703,7 @@ AC_SUBST(subdirs)dnl ]) dnl AC_OUTPUT([CONFIG_FILES...] [, EXTRA-CMDS] [, INIT-CMDS]) -dnl ------------------------------------------------- +dnl --------------------------------------------------------- dnl The big finish. dnl Produce config.status, config.h, and links; and configure subdirs. dnl The CONFIG_HEADERS are defined in the m4 variable AC_LIST_HEADER. @@ -2751,8 +2751,8 @@ dnl so uname gets run too. # configure, is in ./config.log if it exists. ac_cs_usage="\\ -\\\`$CONFIG_STATUS' configures files from templates according to the current -configuration. +\\\`$CONFIG_STATUS' instanciates files from templates according to the +current configuration. Usage: $CONFIG_STATUS @BKL@OPTIONS@BKR@ FILE... @@ -2760,14 +2760,17 @@ Usage: $CONFIG_STATUS @BKL@OPTIONS@BKR@ FILE... --version Print the version of Autoconf and exit --help Display this help and exit -By default the following files will updated. +dnl Output this only if there are files to instanciate. +ifset(ifdef([AC_LIST_HEADER], 1)$1, +[Files to instanciate: ifset($1, [ Configuration files: AC_WRAP($1, [ ]) ])dnl ifdef([AC_LIST_HEADER], [ Configuration headers: -AC_WRAP(AC_LIST_HEADER, [ ])] -)dnl +AC_WRAP(AC_LIST_HEADER, [ ]) +])dnl +])dnl Report bugs to ." ac_cs_version="\ @@ -2781,16 +2784,15 @@ dnl files used by configure, and `ac_cs_root' which is the root of the dnl files of config.status. # Root of the tmp file names. Use pid to allow concurrent executions. ac_cs_root=cs\$\$ - ac_given_srcdir=$srcdir ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ac_given_INSTALL="$INSTALL" ])dnl # Files that config.status was made for. -AC_WRAP([config_files="]$1["] -) -ifdef([AC_LIST_HEADER], [AC_WRAP([config_headers="]AC_LIST_HEADER["])] -)dnl +ifset([$1], [AC_WRAP([config_files="]$1["]) +])dnl +ifdef([AC_LIST_HEADER], [AC_WRAP([config_headers="]AC_LIST_HEADER["]) +])dnl for ac_option do @@ -2830,10 +2832,13 @@ done EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS < $CONFIG_STATUS <>$CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <