Commit Graph

3143 Commits

Author SHA1 Message Date
Paul Eggert
995acce472 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
be invoked before _AS_LINENO_PREPARE.
(_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
than character ranges.
2001-11-01 22:44:48 +00:00
Paul Eggert
e39b2117e3 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to be invoked before
_AS_LINENO_PREPARE.

(_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather than
character ranges.
2001-11-01 22:41:54 +00:00
Paul Eggert
b933c62967 Regen. 2001-11-01 20:16:49 +00:00
Paul Eggert
8b17e84b77 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
invoking AS_BASENAME.  Set the locale variables to 'C' if
possible, as POSIX requires this to get the traditional
behavior.
* doc/autoconf.texi (Special Shell Variables): Describe the above.
2001-11-01 20:14:32 +00:00
Paul Eggert
c96654722d (Special Shell Variables): Update description of LC_ALL, LANG, LANGUAGE, etc.
to match current Autoconf behavior.
2001-11-01 20:12:27 +00:00
Paul Eggert
9fe512db2b (AS_SHELL_SANITIZE): Fix NLS before invoking AS_BASENAME. Set the
locale variables to 'C' if possible, as POSIX requires this to get the
traditional behavior.
2001-11-01 19:44:57 +00:00
Paul Eggert
d0ee48e065 Regen. 2001-10-31 20:11:46 +00:00
Paul Eggert
384cff4049 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
with {}, as that triggers a bug in Bash 2.05.
2001-10-31 20:10:13 +00:00
Paul Eggert
0dfeb49d8e (_AS_LINENO_WORKS): Do not surround body with {}, as that triggers a
bug in Bash 2.05.
2001-10-31 20:07:48 +00:00
Paul Eggert
9d68935ee1 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use Sed rather than
Awk.  Fix the sed prepass to work even if there are multiple
instances of $LINENO on the same line.  Do not substitute for
other variables like $LINENOT.  Do not check file dates; such a
check is unreliable on sufficiently fast machines, and removing
the check makes the code simpler and more reliable.  Check for
output and chmod failures.

* doc/autoconf.texi (Special Shell Variables): Document the above.
2001-10-31 19:32:35 +00:00
Paul Eggert
cac03a4762 (Special Shell Variables): Autoconf now uses Sed rather than Awk for
LINENO substitution, and some LINENO bugs have been fixed when using
Sed.
2001-10-31 19:26:21 +00:00
Paul Eggert
4c359a4349 (_AS_LINENO_PREPARE): Use Sed rather than Awk. Fix the sed prepass to
work even if there are multiple instances of $LINENO on the same line.
Do not substitute for other variables like $LINENOT.  Do not check
file dates; such a check is unreliable on sufficiently fast machines,
and removing the check makes the code simpler and more reliable.
Check for output and chmod failures.
2001-10-31 19:23:37 +00:00
Akim Demaille
89af419b83 Regen. 2001-10-31 10:43:31 +00:00
Akim Demaille
f1644c8ebb * tests/Makefile.am (atconfig): Remove this target, Automake
handles it now.
2001-10-31 10:42:16 +00:00
Akim Demaille
43d8d8e147 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
provided, while it is optional.
* configure.ac: Adjust.
2001-10-31 10:40:12 +00:00
Paul Eggert
7d4e0ab90d * NEWS, README, configure.ac, lib/Autom4te/General.pm,
lib/Autom4te/Struct.pm:
Require Perl 5.005_03 instead of just 5.005, as some tests fail
with 5.005_02.

* doc/autoconf.texi (Special Shell Variables): Document some
more LINENO gotchas, particularly with respect to the Awk+Sed hack.

* lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
(_AS_LINENO_PREPARE): Use it instead of shell eval, since
eval $LINENO is not portable in practice.
2001-10-26 19:54:34 +00:00
Paul Eggert
b68b9bab2f Require Perl 5.005_03 instead of just 5.005, as some tests fail
with 5.005_02.
2001-10-26 19:52:43 +00:00
Paul Eggert
a4cb525873 (_AS_LINENO_WORKS): New macro.
(_AS_LINENO_PREPARE): Use it instead of shell eval, since
eval $LINENO is not portable in practice.
2001-10-26 19:52:43 +00:00
Paul Eggert
34d266fd69 (Special Shell Variables): Document some
more LINENO gotchas, particularly with respect to the Awk+Sed hack.
2001-10-26 19:52:07 +00:00
Paul Eggert
67b5412d75 Regenerate for Perl 5.005_03 and LINENO patches. 2001-10-26 19:49:45 +00:00
Paul Eggert
e8d448706e Regenerate for LINENO and Perl 5.005_03 requirement patches. 2001-10-26 19:48:50 +00:00
Paul Eggert
c0c7469444 Require Perl 5.005_03 instead of just 5.005,
as some tests fail with 5.005_02.
2001-10-26 19:44:59 +00:00
Akim Demaille
eff4e7a6ee * lib/Autom4te/General.pm (backname): New. 2001-10-24 14:29:16 +00:00
Akim Demaille
d7089440fc * m4/: Remove, merged into...
* config/: here.
2001-10-24 13:30:56 +00:00
Tim Van Holder
da8cf18f20 * doc/autoconf.texi (Shellology): Mention the problems with bash 2.05's use
of ANSI quoting in its `set' builtin.
2001-10-23 17:18:44 +00:00
Paul Eggert
162a8ad32c * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
POSIX decided to standardize on the int flavor of strerror_r.
Always do char* test, as there's no reason not to.
Assign to a char* var, to catch strerror_r that returns int*.

* doc/autoconf.texi (Particular Functions):
Document the above changes.  Also, document the fact that
AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.

* NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
2001-10-22 17:52:28 +00:00
Paul Eggert
b7d7f60f97 Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P. 2001-10-22 17:51:16 +00:00
Paul Eggert
ec3ef48c3f (Particular Functions): Document the HAVE_WORKING_STRERROR_R ->
STRERROR_R_CHAR_P change suggested by POSIX.  Also, document the fact
that AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
2001-10-22 17:50:09 +00:00
Paul Eggert
5210e0c90b (AC_FUNC_STRERROR_R): Rename ac_cv_func_strerror_r_works to
ac_cv_func_strerror_r_char_p, and rename HAVE_WORKING_STRERROR_R to
STRERROR_R_CHAR_P, since POSIX decided to standardize on the int
flavor of strerror_r.  Always do char* test, as there's no reason not
to.  Assign to a char* var, to catch strerror_r that returns int*.
2001-10-22 17:42:32 +00:00
Akim Demaille
80cd9856d0 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
the executable was missing from the log.
2001-10-20 06:57:21 +00:00
Akim Demaille
9958e7c098 * lib/Autom4te/General.pm (&update_file): If destination is
unchanged, remove the source.
(&up_to_date_p): Don't be verbose, be debug.
* bin/autoreconf.in: No longer support --m4dir.
(&autoreconf): Display the full path of the configure.ac we are
studying.
Trace it only once.
Be sure to honor --force with gettextize.
Always run aclocal.
* doc/autoconf.texi: Adjust.
2001-10-20 06:56:45 +00:00
Akim Demaille
56eefd1f8d * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
Remove, dead.
* bin/autoreconf.in (&autoreconf): Do not run gettextize when
`intl' is already present, as it refuses unless --force.
(&parse_args): Use -I, --include instead of the old Autoconf
options.
($localdir, $autoconf_dir): Remove.
(@include): New.
(&maybe_autoreconf): New, to preserve $_ for File::Find.
2001-10-20 06:51:41 +00:00
Paul Eggert
c0f2d3429c * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
* doc/autoconf.texi (Particular Programs): Likewise.
2001-10-19 18:36:43 +00:00
Paul Eggert
a6a4d5e090 (AC_PROG_AWK): Prefer gawk to mawk. 2001-10-19 18:34:42 +00:00
Paul Eggert
83b24a76cc (Particular Programs): Prefer gawk to mawk. 2001-10-19 18:12:48 +00:00
Akim Demaille
e4ac357228 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
file in @configure_input@.
Don't mention `automatically' in addition to `generated'.
* tests/torture.at (#define header templates): Adjust.
2001-10-19 17:34:53 +00:00
Akim Demaille
01016ca852 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
comment, explain how to install automatic mode selection.
From Russ Allbery.
2001-10-19 16:02:37 +00:00
Akim Demaille
c886cdc10e * bin/autoreconf.in (autoreconf): Display the path to the
configure.ac being studied.
2001-10-19 14:26:45 +00:00
Paul Eggert
9d50e78648 * lib/m4sugar/m4sh.m4 (as_me): Shell-quote the argument of
AS_BASENAME, in case $0 contains white space.
2001-10-19 00:26:15 +00:00
Paul Eggert
76dccc3b04 Regen. 2001-10-19 00:24:47 +00:00
Paul Eggert
4d264d5a3e (as_me): Shell-quote the argument of AS_BASENAME, in case $0 contains
white space.
2001-10-19 00:20:03 +00:00
Paul Eggert
f37f894c46 (DIRNAME_TEST): New arg $3.
Allow "dirname //FOO" to return either / or //, as POSIX allows
either behavior.
2001-10-18 23:44:54 +00:00
Paul Eggert
f99f108748 (AS_DIRNAME): Use 'dirname' if that works.
(AS_BASENAME_EXPR): New macro.
(AS_BASENAME_SED): Do not assume GNU sed semantics.
(AS_BASENAME): Use 'basename' if that works; then try 'expr';
and fall back on 'sed' only if the other two fail.  This makes
AS_BASENAME act more like AS_DIRNAME.
2001-10-18 23:43:52 +00:00
Paul Eggert
70e6f24483 (AC_CHECK_SIZEOF): Cast sizeof to unsigned long, to work around a bug
in the HP C compiler version HP92453-01 B.11.11.23709.GP.
2001-10-18 23:42:01 +00:00
Paul Eggert
1cca42f044 (_AC_INIT_SRCDIR): Use AS_DIRNAME, since I think it's now DOS-friendly. 2001-10-18 23:40:44 +00:00
Paul Eggert
026fa457f7 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
long, to work around a bug in the HP C compiler version HP92453-01
B.11.11.23709.GP.

* lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
(AS_BASENAME_EXPR): New macro.
(AS_BASENAME_SED): Do not assume GNU sed semantics.
(AS_BASENAME): Use 'basename' if that works; then try 'expr';
and fall back on 'sed' only if the other two fail.  This makes
AS_BASENAME act more like AS_DIRNAME.
* lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
Use AS_DIRNAME, since I think it's now DOS-friendly.
* tests/m4sh.at (DIRNAME_TEST): New arg $3.
Allow "dirname //FOO" to return either / or //, as POSIX allows
either behavior.
2001-10-18 23:39:26 +00:00
Akim Demaille
d590fb24df * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
`a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
From Eric Sharkey.
2001-10-14 11:48:18 +00:00
Pavel Roskin
5c84691fbd Add install-sh. 2001-10-10 20:08:15 +00:00
Akim Demaille
6710e125c4 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
m4_define, since...
(_AS_ECHO_N): AS_REQUIREs it.
2001-10-10 12:59:27 +00:00
Akim Demaille
714fc9d030 * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
(AC_INCLUDES_DEFAULT): Move to...
* lib/autoconf/headers.m4: here.
* lib/autoconf/types.m4: Comment changes.
* doc/autoconf.texi: Specify where the default includes are used
in the macro prototypes.
2001-10-10 12:58:44 +00:00