Commit Graph

1913 Commits

Author SHA1 Message Date
Stepan Kasal
0869a285c6 Use $PATH_SEPARATOR 2005-12-31 16:44:22 +00:00
Paul Eggert
93f53cfee7 (_AS_BOURNE_COMPATIBLE): Try `set -o
posix' unconditionally, for pdksh in `native sh' emulation.
2005-12-02 19:22:49 +00:00
Ralf Wildenhues
fffd9421d8 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
CONFIG_SHELL in the environment of the configure rerun.
* doc/autoconf.texi (Here-Documents, config.status Invocation):
Suggest passing CONFIG_SHELL absolute, and in the environment
rather than as option.
2005-11-10 18:57:58 +00:00
Ralf Wildenhues
3dfefba322 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
Fix quoting of output line (triggered for many AC_SUBST_FILEs).
Fix macro quoting.  Fix output for n*100 substituted variables.
2005-11-09 20:34:41 +00:00
Ralf Wildenhues
96410b4a9d * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
`tmp' to avoid file removal race.
2005-11-08 07:11:58 +00:00
Ralf Wildenhues
4d2acc6228 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
ac_clean_files and LIBOBJS.
2005-11-07 20:31:09 +00:00
Ralf Wildenhues
6acdc7d882 * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
Factor functionality to..
(_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
`AC_SUBST($1)' in the public version.
(AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
(AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
ac_pt_* variables.
2005-11-06 19:24:37 +00:00
Stepan Kasal
85bf75ac80 Remove the comment about 8+3 fs. 2005-11-01 07:26:52 +00:00
Stepan Kasal
76d6383e5a "conftst2" -> "conftest2" 2005-10-27 06:16:02 +00:00
Stepan Kasal
de4b7ec7bb rm -f conftst2.*, not only conftst2.$ac_objext 2005-10-25 07:55:30 +00:00
Stepan Kasal
f799d47ad6 Fix AC_PROG_CC_C_O for VC++. 2005-10-24 10:56:01 +00:00
Stepan Kasal
6c46e64ab3 _AC_OUTPUT_FILES_PREPARE: fix quoting and optimize 2005-10-21 07:36:31 +00:00
Paul Eggert
f50d0bd4c7 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
AC_LANG_PROGRAM, fixing a typo.  Don't give details about
the inner workings of AC_LANG_FUNC_LINK_TRY.
* lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
by the function rather than ignoring it.
(AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
comparing its address.  Intel's interprocedural optimization was
outsmarting the old heuristic.  Problem reported by
Mikulas Patocka.
2005-10-19 22:35:51 +00:00
Stepan Kasal
e56f3ffe24 Remove an obsolete comment. 2005-10-19 05:21:21 +00:00
Paul Eggert
cf3b3ede92 * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
(m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
2005-10-05 21:27:43 +00:00
Stepan Kasal
51f6f59761 (AT_INIT): Make the test dir writable... really, in all 3 cases. 2005-10-04 09:14:11 +00:00
Stepan Kasal
f073f1e44e (AT_INIT): Make the test dir writable... IF it exists. 2005-10-03 10:43:55 +00:00
Stepan Kasal
2ae20df5b3 (AT_INIT): Make test dir writable before removing. 2005-10-03 10:25:53 +00:00
Paul Eggert
1028b09a3f * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses. 2005-10-02 21:36:29 +00:00
Paul Eggert
356092a89c * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
(which belong to Xt, not X itself).  See Debian bug 327655.
* NEWS: Mention this.
2005-09-18 17:10:24 +00:00
Stepan Kasal
f384105745 (AC_LANG_SOURCE(C)): Remove an incorrect comment. 2005-09-07 14:43:14 +00:00
Stepan Kasal
824052b6c8 Use AS_IF where appropriate. 2005-09-06 15:38:56 +00:00
Stepan Kasal
d8e678e2d0 (AS_IF): Use m4_default. 2005-09-06 15:37:55 +00:00
Stepan Kasal
8e555fe7d0 Fix AC_SEARCH_LIBS. 2005-09-06 15:34:06 +00:00
Paul Eggert
47b5ca26b1 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
running xmkmf.
2005-08-26 19:42:23 +00:00
Paul Eggert
7385854c54 (_AS_VERSION_COMPARE_PREPARE):
The previous patch didn't work, so try a better one.
2005-08-26 18:49:23 +00:00
Stepan Kasal
f9f3b51d6f Define AC_CANONICAL_* by AC_DEFUN, not AC_DEFUN_ONCE. 2005-08-26 16:36:25 +00:00
Paul Eggert
7753b867c0 Regenerate. 2005-08-25 21:33:19 +00:00
Paul Eggert
ffea2f0089 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
Work around bug in Solaris 9 (and 10) /usr/xpg4/bin/awk.
2005-08-25 21:29:54 +00:00
Stepan Kasal
7f5083c932 Simplify _AC_CANONICAL_SPLIT 2005-08-25 08:49:01 +00:00
Stepan Kasal
78b5c18a91 config.status now opens log after option processing 2005-08-23 09:26:03 +00:00
Stepan Kasal
83c3e6f9a0 Strip the parameter list before passing the macro name to AH_TEMPLATE. 2005-08-23 09:22:14 +00:00
Stepan Kasal
9ab43905c2 (AT_INIT): Process multiple --keywords correctly. 2005-08-23 08:57:24 +00:00
Stepan Kasal
9b3a6b5e1d Implement AH_HEADER 2005-08-23 08:50:54 +00:00
Stepan Kasal
11372ddb46 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out common code 2005-08-22 14:49:01 +00:00
Stepan Kasal
597bc15a76 When building in place, set srcdir=".". 2005-08-16 09:11:06 +00:00
Stepan Kasal
cabbfa68fa a cosmetic change in _AT_CHECK 2005-07-27 14:20:32 +00:00
Stepan Kasal
992d1ef0b8 fix a doubled pushdef 2005-07-27 13:46:20 +00:00
Stepan Kasal
5e1fc7afa3 (_AC_OUTPUT_SUBDIRS): The message is now prefixed by mere "===", not "configure: === ". 2005-07-26 10:14:24 +00:00
Paul Eggert
4e0329a533 Rewrite substantial part of lib/autoconf/status.m4.
The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
and CONFIG_COMMANDS are not processed in four separate loops.
Instead, there is one main loop.  This alows that the common code
is expanded only once, thus config.status (and configure) is smaller.

The registration mechnism in AC_CONFIG_FILES and cousins also changed;
the AC_LIST_FILES and cousins macros are no longer used.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
_AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
(_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
_AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
contains the initialization, nor the for loop, nor the associated
commands; all these go to ...
(_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
_AC_OUTPUT_CONFIG_STATUS.
(_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
(_AC_OUTPUT_FILE): The creation of the sed script ...
(AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
(_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
_AC_OUTPUT_MAIN_LOOP.
(_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
_AC_CONFIG_COMMANDS): Use ...
(_AC_CONFIG_FOOS): ... this new macro, which uses these ...
(_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
(_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
_AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
(_AC_CONFIG_DEPENDENCY): Update, it uses these ...
(_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
... new macros.
(_AC_CONFIG_UNIQUE): Update.
(AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
Replaced by this ...
(_AC_LIST_TAGS): ... new common macro.
(AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
AC_LIST_COMMAND_COMMANDS): Replaced by this ...
(_AC_LIST_TAG_COMMANDS): ... new common macro.
(_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
this didn't belong to the `config commands' section.
(_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
(AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
to the `config commands' section either.
(AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
(_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.

... and many changes to the comments nearby.

* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
set ac_subdirs_all='_AC_LIST_SUBDIRS'.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
(#define header templates): The comment at the top of the generated
header now includes the name(s) of the source file(s).

Several unrelated small changes:

* lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
parameter to AC_DIAGNOSE.
* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
(_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
(AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
with AU::AC_OUTPUT.
(AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
in AC_OUTPUT doesn't double-quote it either.
* tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
parameters.
2005-07-25 18:10:25 +00:00
Paul Eggert
3774d96668 Comment fix: change tab to "<tab>" in comment, so that the point is
understandable.
2005-07-25 17:47:08 +00:00
Stepan Kasal
d21c6cb2ca Document which versions of PGI compiler uses single and double quotes. 2005-07-10 16:02:44 +00:00
Stepan Kasal
999e7f781b Changed the title above subst files dump. 2005-07-07 11:24:35 +00:00
Stepan Kasal
6f3a1c1a14 Keep a list of all precious variables. 2005-07-07 11:09:51 +00:00
Stepan Kasal
a24c03c7c7 Move the AC_SUBST call from _AC_ARG_VAR_PRECIOUS to AC_ARG_VAR. 2005-07-07 11:08:14 +00:00
Stepan Kasal
770de4a07b Simplify AC_CANONICAL_*. 2005-07-07 11:06:59 +00:00
Stepan Kasal
26c59b650a (_AC_OUTPUT_SUBDIRS): Report the full path and insert "===". 2005-07-07 10:58:22 +00:00
Paul Eggert
7d9430d8b1 * NEWS: New macro AC_C_TYPEOF.
* doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
* lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
* tests/c.at (C keywords): Test AC_C_TYPEOF.
2005-07-06 21:39:30 +00:00
Stepan Kasal
e5e52a1a2c Fix my previous m4_foreach_w patch. 2005-07-05 11:25:47 +00:00
Stepan Kasal
aa0351ed19 Improve compatibility when the versions of Autoconf and Autotest don't match. 2005-07-05 11:08:41 +00:00