* doc/autoconf.texi (Configuration Commands): Document

AC_CONFIG_COMMANDS_PRE and _POST.


* doc/autoconf.texi (Configuration Commands): Document
AC_CONFIG_COMMANDS_PRE and _POST.
This commit is contained in:
Akim Demaille 2000-03-01 08:18:47 +00:00
parent 6b6d1788b1
commit 42174dc725
2 changed files with 32 additions and 2 deletions

View File

@ -1,5 +1,15 @@
2000-03-01 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Configuration Commands): Document
AC_CONFIG_COMMANDS_PRE and _POST.
2000-02-29 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Configuration Commands): Document
AC_CONFIG_COMMANDS_PRE and _POST.
2000-02-27 Akim Demaille <akim@epita.fr>
Test suite: more debugging information.
* tests/atspecific.m4 (AT_TEST_MACRO): When verbose, report the

View File

@ -1559,8 +1559,9 @@ Print the version number of Autoconf and exit.
@node Configuration Commands, Configuration Links, Configuration Headers, Setup
@section Running Arbitrary Configuration Commands
You may have to execute arbitrary commands when @file{config.status} is
run. This macro may be called multiple times.
You may have to execute arbitrary commands either before, when and after
@file{config.status} is run. The three following macros accumulate the
commands to run when they are called multiple times.
@defmac AC_CONFIG_COMMANDS (@var{tag}@dots{}, @ovar{cmds}, @ovar{init-cmds})
@maindex CONFIG_COMMANDS
@ -1584,6 +1585,25 @@ AC_CONFIG_COMMANDS(time-stamp, [date >time-stamp])
@end example
@end defmac
@defmac AC_CONFIG_COMMANDS_PRE(@var{cmds})
@maindex OUTPUT_COMMANDS_PRE
Execute the @var{cmds} right before creating @file{config.status}. A
typical use is computing values derived from variables built during the
execution of @code{configure}:
@example
AC_CONFIG_COMMANDS_PRE(
[LTLIBOBJS=`echo $LIBOBJS | sed 's/\.o/\.lo/g'`
AC_SUBST(LTLIBOBJS)])
@end example
@end defmac
@defmac AC_CONFIG_COMMANDS_POST(@var{cmds})
@maindex OUTPUT_COMMANDS_POST
Execute the @var{cmds} right after creating @file{config.status}.
@end defmac
The former interface to execute arbitrary commands is described below.
@defmac AC_OUTPUT_COMMANDS (@var{extra-cmds}, @ovar{init-cmds})