Commit Graph

5133 Commits

Author SHA1 Message Date
Ralf Wildenhues
32d25b894b Regenerate. 2007-01-19 06:55:05 +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
Stepan Kasal
e9215d1b95 * doc/autoconf.texi (Specifying Names): `--host' does not
change the build type.
2007-01-16 16:22:04 +00:00
Ralf Wildenhues
53c3cb4d02 Regenerate. 2007-01-11 21:17:43 +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
084610c20d Regenerate. 2007-01-10 18:00:03 +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
Ralf Wildenhues
db924c512e * doc/autoconf.texi: Fix some typos. 2007-01-08 19:54:10 +00:00
Paul Eggert
861639db7e Fix some wording problems noted by Paolo Bonzini in:
http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
* doc/autoconf.texi (Signed Overflow Examples): Give more
discussion about the allow_superuser_privileges example,
and change it a bit to make things clearer.
(Optimization and Wraparound): Clarify whether the compiler
will generate an infinite loop for the example derived from
Autoconf's mktime test.
(Signed Overflow Advice): Say that -ftrapv is meant for debugging.
Also, clarify unsigned multiplication overflow.
2007-01-05 23:44:26 +00:00
Eric Blake
c78eaa47a9 * bin/Makefile.am (RELEASE_YEAR): New macro.
(edit): Use it to supply correct copyright year to scripts.
* bin/autoconf.as (version): Use it.
* bin/autoheader.in ($version): Likewise.
* bin/autom4te.in ($version): Likewise.
* bin/autoreconf.in ($version): Likewise.
* bin/autoscan.in ($version): Likewise.
* bin/autoupdate.in ($version): Likewise.
* bin/ifnames.in ($version): Likewise.
2007-01-04 16:43:06 +00:00
Paul Eggert
343be890ab * doc/autoconf.texi (Integer Overflow): Revised based on today's
feedback.  The most important changes document what happens when
you convert an out-of-range value to a signed integer type, and
say that (sum < a) != (b < 0) reliably detects overflow when sum =
a + b.
2007-01-03 07:18:38 +00:00
Paul Eggert
a4833af9f0 * doc/autoconf.texi (Integer Overflow): Greatly expand and
rewrite, taking notions from the recent discussion on the gcc and
autoconf mailing lists; please see
http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
and follow the many links.
(Integer Overflow Basics, Signed Overflow Examples):
(Optimization and Wraparound, Signed Overflow Advice):
(Signed Integer Division): New sections.

SCALAR(0x828309c)
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
Software Foundation, Inc.
2007-01-02 23:06:07 +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
Ralf Wildenhues
3853f83efb * tests/torture.at (Substitute a 2000-byte string): Avoid using
a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
dumps core on it.  Report by Tim Rice.
2006-12-20 00:09:44 +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
30e83f87f8 Regenerate. 2006-12-18 20:11:11 +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
a152d40158 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
Define HAVE_GETMNTENT to 1, not to the empty string.
Problem originally reported by Jochen Friedrich in
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
2006-12-16 05:38:41 +00:00
Paul Eggert
4f54be9442 (_AC_FC_WRAPPERS): Fix typos in previous patch. 2006-12-15 18:34:20 +00:00
Paul Eggert
6a575d434f This change prompted by a problem report by Andrey Simonenko in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
* doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
object-like macros only, in the traditional portable character
set.
* lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
Warn about attempts to define things that are not identifiers.
* lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
awful hack that AC_DEFINEd macro names containing parentheses.
2006-12-15 18:25:23 +00:00
Paul Eggert
370f051476 * doc/autoconf.texi: Undo some of the 2006-12-10 change. It was
too drastic, even if Texinfo in theory requires it for info mode.

(config.status Invocation): Renamed back from Recreating a
Configuration).
(Obsolete config.status Use): Renamed back from Obsolete Recreation.
(Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
2006-12-12 17:53:13 +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
db296b921d Add *.1. 2006-12-12 00:10:51 +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
4bc79f3aff Initial version, stolen from coreutils with a lot of changes. 2006-12-11 17:07:51 +00:00
Paul Eggert
0de4687bb7 * doc/autoconf.texi (Writing Autoconf Input): Renamed from
Writing configure.ac.
(Autoconf Input Layout): Renamed from configure.ac Layout.
(Recreating a Configuration): Renamed from config.status Invocation.
(Obsolete Recreation): Renamed from Obsolete config.status Use.
(acconfig Header): Renamed from acconfig.h.
(20th-century Autoconf 2): Renamed from Autoconf 2.13.
(Writing Testsuites): Renamed from Writing testsuite.at.
(Autom4te Cache): Renamed from autom4te.cache.
2006-12-11 07:12:06 +00:00
Paul Eggert
888d88c141 * BUGS: Remove mention of VPATH problem, since it's now documented
not to be a bug in the Autoconf build procedure itself, but rather
a problem with the proprietary `make' programs.

* doc/autoconf.texi (Build Directories): Add a cross reference
to VPATH and Make.

* build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
* doc/standards.texi: Sync from gnulib.
2006-12-11 06:40:13 +00:00
Paul Eggert
093479b077 Remove man files from CVS, as they're generated automatically. 2006-12-11 06:39:08 +00:00
Paul Eggert
b1bfe8005e Remove from CVS, as these files are generated automatically. 2006-12-11 06:37:18 +00:00
Paul Eggert
caf889e96e * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
2006-12-07 06:39:40 +00:00
Ralf Wildenhues
0164ff72c2 Regenerate. 2006-12-07 05:17:38 +00:00
Ralf Wildenhues
e6c5fd0d0a * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
`CEOF$ac_eof' special marker, the awk script cannot contain a
line matching `^CEOF', so this is not needed any more.
* tests/torture.at (Substitute a newline): Expose the `%!_!# '
special marker in the test.
2006-12-07 05:16:59 +00:00
Stepan Kasal
06a23d8dfc * tests/tools.at (autom4te preselections): Use `find -newer';
remove one of the sleeps.
2006-12-06 21:20:58 +00:00
Stepan Kasal
4f4da8a1a4 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
more readable, using ...
(_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
2006-12-06 21:17:48 +00:00
Stepan Kasal
f64d37a6e3 * doc/autoconf.texi (autoheader Invocation): Do not double-
quote the parameter of `AH_BOTTOM' in the example.
2006-12-06 13:08:02 +00:00
Stepan Kasal
593e4d5d06 * doc/autoconf.texi (Configuration Headers): Remove the
example with multiple input files.
(autoheader Invocation): Encourage `AH_BOTTOM', discouraging
multiple input files.
2006-12-06 12:12:31 +00:00
Ralf Wildenhues
6d49c079a1 Regenerate. 2006-12-05 21:36:37 +00:00
Ralf Wildenhues
d254f8694e * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
creating the awk substitution script, handle one input line at a
time, so that the maximum length of a substituted (multi-line)
value is not limited by the size of the sed pattern space.
The trade-off is a slightly repetitive sed script.
* doc/autoconf.texi (Limitations of Usual Tools): Branch labels
can only have up to 7 characters, due to Solaris 10 /bin/sed.
* tests/torture.at (Substitute a 2000-byte string): Increase the
test with several long lines, they should not be caught by sed
limits any more.
2006-12-05 21:36:25 +00:00
Ralf Wildenhues
b40bccee3a * tests/tools.at (autom4te preselections): New test, to flag
entries missing from autom4te.cfg.
Report by David Byron <dbyron@hheld.com>.
2006-12-05 21:08:50 +00:00
Ralf Wildenhues
d48ea8af4f * tests/torture.at (Substitute a 2000-byte string): Actually use
AC_PROG_AWK, so the last change works as intended.
(Substitute and define special characters): Likewise.
(Substitute a newline): Likewise.
2006-12-05 18:57:06 +00:00
Ralf Wildenhues
e0daaf1be3 Regenerate. 2006-12-05 06:00:52 +00:00
Ralf Wildenhues
396c94b277 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
instead of `awk' consistently.
(_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
* tests/torture.at (Torturing config.status): Test both the
result of AC_PROG_AWK and plain awk.
(Substitute a 2000-byte string): Likewise.
(Substitute and define special characters): Likewise.
(Substitute a newline): Likewise.
2006-12-05 06:00:42 +00:00
Paul Eggert
f0c325537a * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
can be assigned to a function pointer.  Problem reported by
Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
part of a patch by Ralf Wildenhues in that same bug report.
2006-12-04 23:54:25 +00:00
Paul Eggert
f12b66e587 * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
* tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
2006-12-01 19:36:56 +00:00
Paul Eggert
78dc34d5eb * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
cross-compiling from cygwin to mingw.
Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
aclang.m4, which was mistakenly removed in the 2001-09-17 patch
to lib/autoconf/c.m4.
2006-12-01 19:21:03 +00:00
Paul Eggert
609e9df2d4 Regenerate. 2006-12-01 18:55:51 +00:00