Commit Graph

2230 Commits

Author SHA1 Message Date
Eric Blake
3be109e22d Editing eye-candy.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
font-lock balance.
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
* configure: Regenerate.
2007-09-13 21:51:19 +00:00
Eric Blake
b6ef3cc579 Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
* doc/autoconf.texi (Text processing Macros): Document
m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
(Redefined M4 Macros): Document m4_ifndef.
* lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
used it while it was undocumented.
* NEWS: Document this change.
* lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
* lib/m4sugar/Makefile.in: Regenerate.
* tests/m4sugar.at (m4@&t@_version_compare): New test.
Reported by Bruno Haible.
2007-09-13 03:21:18 +00:00
Eric Blake
6add6e92a6 Centralize all system extensions checks.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
(AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
AC_USE_SYSTEM_EXTENSIONS.
(AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
(AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
* doc/autoconf.texi (Posix Variants): Reword this section,
emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
rather than a series of system-specific checks.
(Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
AC_MINIX.
* NEWS: Document this change.
* THANKS: Update.
Reported by Martin Koeppe.
2007-09-11 17:13:13 +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
Ralf Wildenhues
ef81904136 * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
names beginning with `-' again.
2007-08-23 18:36:06 +00:00
Ralf Wildenhues
673d7738a4 * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
* tests/base.at (configure arguments): New test.
* THANKS: Update.
Report by Olaf Lenz.
2007-08-21 20:23:16 +00:00
Ralf Wildenhues
220d051d92 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
arguments in comment.
Report by Vincent Torri <vtorri at univ minus evry dot fr>.
2007-08-21 17:32:39 +00:00
Ralf Wildenhues
acb069f9d2 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
file to itself if source and build trees coincide.
* tests/torture.at (AC_CONFIG_LINKS and identical files): New
test.
Report by Sebastian Freundt <hroptatyr@gna.org>.
2007-08-18 09:07:20 +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
Noah Misch
aa643c7ef8 * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
* tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
`srcdir' as subdirectory of `builddir'.
2007-06-19 19:49:05 +00:00
Noah Misch
fdb749cd8a * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
* tests/autotest.at (srcdir propagation): New test.
* THANKS: Update.
Reported by Mike Frysinger.
2007-06-14 01:32:28 +00:00
Paul Eggert
48656aea07 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
Problem reported by Fred Kreek in
<http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
* doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
(Macro Names, Defining Directories): Don't mention PATH as a name
for a fully qualified file name, as this usage violates the GNU
coding standards and we shouldn't recommend it.

* lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
string and then assume shell builtins like "test" will work.
2007-06-13 16:52:24 +00:00
Noah Misch
e7f613e8a8 * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
not a valid shell variable name.
* tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
* tests/torture.at (AC_SUBST: variable name validation): New test.
Reported by Andreas Schwab.
2007-06-12 11:36:56 +00:00
Noah Misch
b336c6f28f * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
brand tests.
2007-06-04 03:16:36 +00:00
Stepan Kasal
29c932691f * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo. 2007-05-29 11:46:29 +00:00
Paul Eggert
12bfe452a5 * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
choice, since that's what we do with --enable-largefile etc.
Redo indenting and assignments to simplify things a bit, and make
the parens work with Emacs.
2007-05-21 23:10:09 +00:00
Noah Misch
8593af460c * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
* tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
2007-05-21 22:31:18 +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
Noah Misch
9492c4ce65 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
* doc/autoconf.texi ($@, case): Document Zsh limitations.
2007-05-07 19:56:56 +00:00
Paul Eggert
18d78d3a55 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
Reorganize the comments before and in the macro.
2007-05-03 17:23:39 +00:00
Stepan Kasal
4e11a505ac * lib/autoconf/lang.m4, lib/autoconf/c.m4,
lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
section titles and other comments; no code change.
2007-05-03 14:47:12 +00:00
Paul Eggert
43e384db53 Fix typo in previous message. 2007-04-30 17:11:50 +00:00
Paul Eggert
e53160abef * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
'configure' will fail if the shell lacks proper support for shell
functions.  Suggested by RMS.
2007-04-30 17:08:07 +00:00
Paul Eggert
cadaf30a72 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
for a.* when searching for executables, as this prevents users
from having files like a.c.  Problem reported by Ralf Wildenhues in:
http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
This fixes a problem introduced on 2000-12-19.
2007-04-29 05:50:27 +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
Ralf Wildenhues
d09b879309 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
to prefer a link source from the build tree, if it exists.
Report by Pallav Gupta <pallavgupta@gmail.com>.
2007-04-12 05:39:00 +00:00
Paul Eggert
fb82e1a122 * doc/autoconf.texi (Generic Types): Document the restrictions
on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
(Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
with objects too.  Document the restrictions on its use.
Document the restrictions on AC_CHECK_ALIGNOF's type argument.
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
works but the latter doesn't, then it's a valid type.
This lets people use function types and so forth.
For C++ there doesn't seem to be a simple solution, so leave it alone.
(AC_CHECK_SIZEOF): Allow argument to be a variable.
(AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
AC_CHECK_TYPE; that wasn't documented or necessary.
2007-04-12 00:12:06 +00:00
Paul Eggert
3d917d1923 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
when cross-compiling.

2007-04-11  Stepan Kasal  <kasal@ucw.cz>
2007-04-11 17:32:27 +00:00
Stepan Kasal
a48a8158f2 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
comment in the generated config.status.
2007-03-28 19:16:30 +00:00
Stepan Kasal
c2b51bf315 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment. 2007-03-27 12:58:17 +00:00
Paul Eggert
e3c6e14afc * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
suggests AC_CONFIG_HEADERS.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
AC_CONFIG_HEADERS.  Problem reported by
Peter O'Gorman.
2007-03-06 07:30:17 +00:00
Paul Eggert
b99a9b898d * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
Problem reported by Paolo Bonzini in:
http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
* tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
universal binaries.  Problem reported by Elias Pipping.
2007-03-01 00:18:28 +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
74416a3598 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
copyright.
* lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.
(_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
2007-02-24 21:48:24 +00:00
Ralf Wildenhues
b76181e460 * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
status of rm so we know when it failed.
If cleaning of test dir failed before running the test, warn.
Output the line separator in verbose mode before the warning
to make clear the warning belongs to the following test.
2007-02-13 06:22:45 +00:00
Paul Eggert
039348cde8 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
errors introduced in last change.
2007-02-08 04:26:44 +00:00
Paul Eggert
6fb99317ff * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
an actual carriage return.  Use "ac_cr" to contain the actual
carriage return.
* doc/autoconf.texi (Limitations of Usual Tools): Document problem
with traditional Awk and begin.
* tests/torture.at (Limitations of Builtins): Document the problem
with Bash 2.03 printf.
(Substitute and define special characters):
Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
2007-02-07 17:45:37 +00:00
Ralf Wildenhues
c538d56624 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
input from /dev/null in awk test, so even Solaris /usr/bin/awk
will not wait for input with a script containing only a BEGIN
rule.
2007-02-06 18:52:33 +00:00
Ralf Wildenhues
d9b0257f67 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
substitution will still be done by the special code.
Report by Jim Meyering.
2007-01-23 18:54:37 +00:00
Ralf Wildenhues
bb7dd74777 * doc/autoconf.texi (Setting Output Variables): Mention that
all non-NUL characters are ok in substituted values.
* lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
(_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
carriage return for $AWK, needed for BSD awk.
* tests/torture.at (Substitute and define special characters):
Test all 8 bit non-NUL characters.
Report against Automake by Patrick Welche.
2007-01-19 06:54:34 +00:00
Ralf Wildenhues
af97d7255d * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
early on the reader side, drop stderr of the input to avoid
`broken pipe' error output; this may happen even with shell
builtin `echo' of some bash versions.  Reports by Ian Macdonald
<iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
2007-01-11 21:17:37 +00:00
Ralf Wildenhues
a7454f4e4e * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
separate items of `ac_user_opts', to avoid long lines.
(_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
2007-01-10 17:59:57 +00:00
Paul Eggert
2a7761f95f * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
preprocessor macro arguments in traced name.
* doc/autoconf.texi (Defining symbols): Document longstanding
support for AC_DEFINE-ing macros with arguments, and document
behavior when the same variable has multiple AC_DEFINEs.
* lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
macros directly, giving much shorter and simpler code.
2006-12-29 06:44:41 +00:00
Paul Eggert
38a668a9aa * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
space before "$ac_configure_args" to prevent a 'config.status
--recheck' failure if ac_configure_args doesn't contain a leading
space.  This works around a problem with the XEmacs configure.ac,
which uses the (undocumented) ac_configure_args variable
inconsistently with Autoconf.
2006-12-28 23:20:18 +00:00
Paul Eggert
7bd79987b0 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
Include <limits.h>, and use its INT_MAX to rewrite the
j loop so that it does not overflow 'int'.  Problem reported by
Ralf Wildenhues in
<http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
Play it safe by shifting left by 1 rather than multiplying by 2,
as GCC is less likely to optimize this away when the value
is signed (when it assumes overflow leads to undefined behavior).
Also, don't assume time_t uses two's complement.
2006-12-22 08:42:17 +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