Commit Graph

435 Commits

Author SHA1 Message Date
Eric Blake
1579d78cda Clean up obsolete macros references.
* doc/autoconf.texi: Add anchors to support better
cross-referencing.
(Particular Structures): Move obsolete macros descriptions...
(External Software): Likewise.
(Package Options): Likewise.
(Obsolete Macros): ...to here.  Add cross-references to
documentation on replacements.
* NEWS: Mention that these macros have been obsolete for a while
now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
2007-09-08 21:47:37 +00:00
Eric Blake
f3aee13bfa Improve M4 path searching during configure.
* lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
macro.
(_AC_PATH_PROG_FEATURE_CHECK): Rename...
(_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
parameter, and kill side effects.
(_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
(_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
* m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
is found.
(AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
allow bootstrapping with autoconf 2.61.
* configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
* configure: Regenerate.
* doc/autoconf.texi (Generic Programs): Document new macro.
* tests/mktests.sh (au_exclude_script): Exclude auto-testing new
macro.
* tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
* NEWS: Document the change.
* THANKS: Update.
Reported by Hans Aberg.
2007-09-08 14:48:49 +00:00
Eric Blake
6f07a68ee3 * NEWS: Adjust wording for AC_CONFIG_LINKS.
Reported by Ralf Wildenhues.
2007-09-05 21:46:29 +00:00
Eric Blake
7ea5d50ec0 * NEWS: Document fixes that have been applied since 2.61a. 2007-09-03 22:16:12 +00:00
Paul Eggert
b411b77358 Reword the copyright notices to match what's suggested in GPLv3. 2007-07-20 23:11:49 +00:00
Paul Eggert
f448ac9647 Update to GPLv3. 2007-07-03 20:28:58 +00:00
Paul Eggert
19a9b3c937 * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
* lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
* doc/autoconf.texi (Generic Compiler Characteristics): Move
renamed AC_OPENMP documentation here, from "C compiler".
Mention C++ and Fortran.

* NEWS: Mention AC_C_OPENMP.
2007-05-21 17:50:57 +00:00
Paul Eggert
c31d039a4e * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
2007-05-21  Bruno Haible  <bruno@clisp.org>

* lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
* doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
* NEWS: Mention AC_C_OPENMP.
2007-05-21 17:39:09 +00:00
Paul Eggert
d15e584f46 * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
* doc/autoconf.texi (C Compiler): Likewise.

2007-05-14  Noah Misch  <noah@cs.caltech.edu>

* lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.

* doc/autoconf.texi (Caching Results): The CACHE-ID variable
2007-05-14 16:54:55 +00:00
Paul Eggert
4ccb447218 * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
AC_CHECK_TYPE, AC_CHECK_TYPES.
* doc/autoconf.texi (Generic types): C types must be type-names
(the C terminology), not type-ids (the C++ term).  C++ types
must not be anonymous.
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
for C++; this drops support for anonymous struct and union types,
which were problematic anyway.
* tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
for C++.
2007-04-13 07:52:57 +00:00
Paul Eggert
f944fa8e91 * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
obsolescent.
* NEWS: Document this.
2007-04-07 05:54:25 +00:00
Paul Eggert
a49bbf7a83 * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
* doc/autoconf.texi (C Compiler): Document this.  There is a new
extra argument ACTION-IF-UNIVERSAL.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
Reindent for sanity's sake.
2007-02-28 00:03:33 +00:00
Eric Blake
69152e8a8a * NEWS: Update copyright. 2007-02-02 14:11:43 +00:00
Eric Blake
b6386a5ae7 * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
broken.
* configure.ac: Update error message.
* NEWS: Note that M4 1.4.5 or later is now a hard dependency.
Reported by Gary Vaughan and Jim Meyering, and problem analyzed
by Stepan Kasal:
http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
2007-02-02 14:07:38 +00:00
Paul Eggert
4a51103c6c * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
--disable-option-checking to --help output even when
AC_PRESERVE_HELP_ORDER is not used.
(_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
--with argument, rather than argument with [-.] replaced by
underscores.
* NEWS: Fix typo in previous change; the news was in the
wrong section.
2006-12-19 05:41:18 +00:00
Paul Eggert
2d75dbd53e * NEWS: Warnings are now generated by default for unknown
--enable-* and --with-* options.
* doc/autoconf.texi (Option Checking): Renamed from
(Configure Option Checking).  Tighten up the wording a bit.
(External Software, Package Options): Cross-reference to Option
Checking, and use this to shorten our section.
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
"$x" to test "x$foo" != x.
* lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
Don't warn if $enable_option_checking is "no".
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
ac_unrecognized_opts to the empty string.
Don't echo the unrecognized opts, as this might mishandle
backslashes or leading -.
(AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
usage next to the other --disable-FEATURE options in the
help string.

2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>

* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
(_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
Print warning for unrecognized --with and --enable options
(AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
Disable option checking when subdirs are configured.
(AC_OUTPUT): If warnings are enabled, print warning about
unrecognized --with and --enable options at the end of
the configure output (as well as at the beginning).
* doc/autoconf.texi (Option Checking): New node.
Document new option warning functionality.
2006-12-18 20:10:05 +00:00
Eric Blake
53bf3ccb33 * configure.ac (AC_INIT): Bump version, since 2.61a is released.
* NEWS: Start news for current version.
2006-12-16 19:09:50 +00:00
Paul Eggert
37341a5f82 * NEWS: Version 2.61a.
2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2006-12-12 00:54:52 +00:00
Paul Eggert
78a2c60ef9 Document FSEEKO fix. 2006-12-11 17:45:26 +00:00
Paul Eggert
c349a24f89 * NEWS: Document changes with echo and printf, and the lack
of limits on the total size of multi-line values of substituted
variables.
2006-12-11 17:39:00 +00:00
Paul Eggert
7e86fc26ec Turn AC_FUNC_SETVBUF_REVERSED into a noop. It's been obsolete for
years and is too hard to maintain now.  The last straw was
reported by Jerker Baeck in
<http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
* NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
* doc/autoconf.texi (Particular Functions): Move
AC_FUNC_SETVBUF_REVERSED from here...
(Obsolete Macros): ... to here.  Say that it does nothing now.
* lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
Turn into (almost) a no-op.
2006-11-28 03:29:47 +00:00
Paul Eggert
96945d9c02 * doc/autoconf.texi (Setting Output Variables): Mention that
@VAR1@VAR2 has unspecified behavior.  Problem reported by
Ralf Wildenhues.
* NEWS: Mention this.
2006-11-27 22:47:33 +00:00
Paul Eggert
6d759252cd Rewrite config files generation: avoid quadratic growth in
the number of substituted variables by using awk instead of sed
for the bulk of the substitutions.
* NEWS: Mention this.
* doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
forbidden in the output (and thus input) file.
* lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
(_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
generate just one large awk script for substitutions,
eliminating much of the earlier complexity, while adding some
new complexity.  Only expand the substitution templates at
configure time, for smaller configure script size.  If
_AC_SUBST_FILES are used, test 'awk' for working getline support
at config.status time.  If absent, interpolate through the
shell.  The awk script was written with much help
from Paolo Bonzini and Paul Eggert.
(_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
(_AC_SED_FRAG_NUM): Likewise.
(_AC_SUBST_CMDS): Renamed from...
(_AC_SED_CMDS): ...this.
(_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
* tests/torture.at (Substitute a 2000-byte string): Also
substitute a line with 1000 words, and a variable with several
long lines.
(Substitute and define special characters): Test awk special
characters, and put substitution input strings `@foo@' in the
output, to test that no recursion happens; test several other
combinations from Paolo Bonzini.
2006-11-26 17:53:10 +00:00
Paul Eggert
2ea6a63b4f * configure.ac (AC_INIT): Bump to 2.61a.
* NEWS: Likewise.

2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2006-11-17 20:01:04 +00:00
Paul Eggert
df6c6cfc6d Version 2.61.
* configure.ac (AC_INIT): Bump to 2.61.
* NEWS: Likewise.
2006-11-17 19:04:48 +00:00
Paul Eggert
ac3beb3155 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
code for --enable, --disable, --with, and --without to...
(_AC_INIT_PARSE_ENABLE): ... a new macro.
* doc/autoconf.texi (Package Options):
* NEWS: Document that AC_ARG_ENABLE allows dots, too.
2006-11-17 00:16:27 +00:00
Paul Eggert
0e4acb04cc * NEWS: Document the AC_ARG_WITH change.
2006-11-13  Bruno Haible  <bruno@clisp.org>

* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
options, transliterate also dots to underscores.
(_AC_ENABLE_IF): Transliterate also dots to underscores.
* doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
first argument may also contain dots.
2006-11-13 20:40:06 +00:00
Paul Eggert
aebb1f2c2c * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
* doc/autoconf.texi (C Compiler): Document them.
* lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
New macros, taken from gnulib.
2006-11-08 08:26:43 +00:00
Paul Eggert
d64edccae6 * configure.ac (AC_INIT): Bump to 2.60c.
* NEWS: Likewise.
2006-10-23 07:18:28 +00:00
Paul Eggert
3389d38eb2 Version 2.60b. 2006-10-23 06:50:26 +00:00
Paul Eggert
c8b3323bee * NEWS: Remove AC_CACHE_CHECK_INT.
* doc/autoconf.texi (Caching Results): Likewise.
* lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
AC_CACHE_CHECK_INT, since it's no longer public.
* lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
* tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
2006-10-23 06:12:40 +00:00
Eric Blake
a542d202ed * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
(m4_maketemp): Avoid warnings with M4 1.9a.
* lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
m4_mkstemp.
* doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
* NEWS: Likewise.
2006-10-20 01:34:32 +00:00
Paul Eggert
13e36eb7cd * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
the NonStop platform.
* doc/autoconf.texi (Posix Variants): Likewise.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
2006-10-11 22:38:42 +00:00
Paul Eggert
520f7f02ed * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
due to configuration hassles with this.  See Tonya Underwood's report
<http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
* doc/autoconf.texi (Special Shell Variables): Likewise.

2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
    Stepan Kasal  <kasal@ucw.cz>

* lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
(_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.

2006-10-11  Stepan Kasal  <kasal@ucw.cz>

* lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
  initialization which is not inherited through the environment
(_AS_BOURNE_COMPATIBLE): ... to this new macro.
(_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
2006-10-11 19:35:57 +00:00
Paul Eggert
aac473c488 AC_CHECK_DECL now also works with aggregate objects. 2006-09-26 20:43:00 +00:00
Paul Eggert
c3291e20d4 * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
* README: Likewise.
* doc/autoconf.texi (Introduction, Why GNU M4): Likewise.

2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2006-09-26 06:04:35 +00:00
Paul Eggert
c9bf84b877 * NEWS: New macro AC_CACHE_CHECK_INT. It replaces the
old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
except the first two arguments are reversed.
* doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
(Generic Compiler Characteristics): AC_COMPUTE_INT no longer
caches nor outputs a diagnostic.  Suggested by Bruno Haible.
* lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
equivalent to the old AC_COMPUTE_INT.
(AC_COMPUTE_INT): No longer caches or reports.  New signature.
All uses changed to AC_CACHE_CHECK_INT.
* tests/base.at (AC_CACHE_CHECK_INT): New test.
* tests/mktests.sh (ac_exclude_lsit): Add AC_CACHE_CHECK_INT.
2006-09-02 05:37:07 +00:00
Paul Eggert
bc5477ae6d * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
programs should use their Gnulib counterparts.
* doc/autoconf.texi (Particular Functions): Likewise.
(Macro Names, testsuite Invocation): Replace uses of these
obsolete macros with uses of non-obsolete macros.
2006-08-31 22:38:30 +00:00
Eric Blake
bba8ad9304 * configure.ac (AC_INIT): Bump to 2.60b.
* NEWS: Update.
2006-08-29 12:37:57 +00:00
Paul Eggert
b300fd6e54 Reword to pacify "make alpha". 2006-08-25 21:42:41 +00:00
Paul Eggert
29d31f1f76 Version 2.60a. 2006-08-25 21:40:50 +00:00
Paul Eggert
d2cc5bd968 * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
* README: Likewise.
* doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
2006-08-25 17:23:11 +00:00
Paul Eggert
1355dba882 * NEWS: The C99 check now tests for vararg macros and 64-bit
preprocessor ints.
* doc/autoconf.texi (C Compiler): Document // comments, va_copy.
* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
64-bit preprocessor ints.  Check for static initialization of
long long.  Remove unnecessary casts.
2006-08-24 18:08:16 +00:00
Paul Eggert
427e34b361 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
-Wundef -Werror".  Problem reported by David Fang in
<http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
* doc/autoconf.texi (Header Templates, Default Includes):
(Particular Functions, Generic Functions, Header Portability):
(Particular Headers, Generic Headers, Generic Declarations, Guidelines):
(Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
(Present But Cannot Be Compiled, Preprocessor Symbol Index):
Prefer #ifdef to #if.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
(AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
Likewise.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
(AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
* lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
(AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
* lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
this.
2006-08-15 16:24:42 +00:00
Paul Eggert
ad613a172c * NEWS: Recommend M4 1.4.5.
* tests/tools.at (autom4te cache): Update wording of diagnostic
to match M4 1.4.5.
2006-07-17 17:30:44 +00:00
Paolo Bonzini
c910e682cc 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
* doc/autoconf.texi (Generic compiler characteristics):
	Document AC_COMPUTE_INT.  Fix wrong statements on Default
	Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.

	* lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
	(_AC_COMPUTE_INT): Add obsoletion warnings.
	* lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
	AC_COMPUTE_INT.

	* NEWS: Document change.
2006-07-07 14:21:57 +00:00
Paul Eggert
698f722ed0 Document 'long long' change. 2006-07-05 08:34:26 +00:00
Ralf Wildenhues
90da28049c * configure.ac (AC_INIT): Bump to 2.60a.
* NEWS: Update.
2006-06-23 19:09:49 +00:00
Ralf Wildenhues
450956d354 *** empty log message *** 2006-06-23 16:26:20 +00:00
Ralf Wildenhues
e0574b4061 Version 2.60.
* configure.ac, NEWS: Update.
2006-06-23 16:25:25 +00:00