]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
23 years ago* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
Paul Eggert [Thu, 1 Nov 2001 20:14:32 +0000 (20:14 +0000)] 
* 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.

23 years ago(Special Shell Variables): Update description of LC_ALL, LANG, LANGUAGE, etc.
Paul Eggert [Thu, 1 Nov 2001 20:12:27 +0000 (20:12 +0000)] 
(Special Shell Variables): Update description of LC_ALL, LANG, LANGUAGE, etc.
to match current Autoconf behavior.

23 years ago(AS_SHELL_SANITIZE): Fix NLS before invoking AS_BASENAME. Set the
Paul Eggert [Thu, 1 Nov 2001 19:44:57 +0000 (19:44 +0000)] 
(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.

23 years agoRegen.
Paul Eggert [Wed, 31 Oct 2001 20:11:46 +0000 (20:11 +0000)] 
Regen.

23 years ago* lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
Paul Eggert [Wed, 31 Oct 2001 20:10:13 +0000 (20:10 +0000)] 
* lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
with {}, as that triggers a bug in Bash 2.05.

23 years ago(_AS_LINENO_WORKS): Do not surround body with {}, as that triggers a
Paul Eggert [Wed, 31 Oct 2001 20:07:48 +0000 (20:07 +0000)] 
(_AS_LINENO_WORKS): Do not surround body with {}, as that triggers a
bug in Bash 2.05.

23 years ago* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use Sed rather than
Paul Eggert [Wed, 31 Oct 2001 19:32:35 +0000 (19:32 +0000)] 
* 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.

23 years ago(Special Shell Variables): Autoconf now uses Sed rather than Awk for
Paul Eggert [Wed, 31 Oct 2001 19:26:21 +0000 (19:26 +0000)] 
(Special Shell Variables): Autoconf now uses Sed rather than Awk for
LINENO substitution, and some LINENO bugs have been fixed when using
Sed.

23 years ago(_AS_LINENO_PREPARE): Use Sed rather than Awk. Fix the sed prepass to
Paul Eggert [Wed, 31 Oct 2001 19:23:37 +0000 (19:23 +0000)] 
(_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.

23 years agoRegen.
Akim Demaille [Wed, 31 Oct 2001 10:43:31 +0000 (10:43 +0000)] 
Regen.

23 years ago* tests/Makefile.am (atconfig): Remove this target, Automake
Akim Demaille [Wed, 31 Oct 2001 10:42:16 +0000 (10:42 +0000)] 
* tests/Makefile.am (atconfig): Remove this target, Automake
handles it now.

23 years ago* lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
Akim Demaille [Wed, 31 Oct 2001 10:40:12 +0000 (10:40 +0000)] 
* 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.

23 years ago* NEWS, README, configure.ac, lib/Autom4te/General.pm,
Paul Eggert [Fri, 26 Oct 2001 19:54:34 +0000 (19:54 +0000)] 
* 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.

23 years agoRequire Perl 5.005_03 instead of just 5.005, as some tests fail
Paul Eggert [Fri, 26 Oct 2001 19:52:43 +0000 (19:52 +0000)] 
Require Perl 5.005_03 instead of just 5.005, as some tests fail
with 5.005_02.

23 years ago(_AS_LINENO_WORKS): New macro.
Paul Eggert [Fri, 26 Oct 2001 19:52:43 +0000 (19:52 +0000)] 
(_AS_LINENO_WORKS): New macro.
(_AS_LINENO_PREPARE): Use it instead of shell eval, since
eval $LINENO is not portable in practice.

23 years ago(Special Shell Variables): Document some
Paul Eggert [Fri, 26 Oct 2001 19:52:07 +0000 (19:52 +0000)] 
(Special Shell Variables): Document some
more LINENO gotchas, particularly with respect to the Awk+Sed hack.

23 years agoRegenerate for Perl 5.005_03 and LINENO patches.
Paul Eggert [Fri, 26 Oct 2001 19:49:45 +0000 (19:49 +0000)] 
Regenerate for Perl 5.005_03 and LINENO patches.

23 years agoRegenerate for LINENO and Perl 5.005_03 requirement patches.
Paul Eggert [Fri, 26 Oct 2001 19:48:50 +0000 (19:48 +0000)] 
Regenerate for LINENO and Perl 5.005_03 requirement patches.

23 years agoRequire Perl 5.005_03 instead of just 5.005,
Paul Eggert [Fri, 26 Oct 2001 19:44:59 +0000 (19:44 +0000)] 
Require Perl 5.005_03 instead of just 5.005,
as some tests fail with 5.005_02.

23 years ago* lib/Autom4te/General.pm (backname): New.
Akim Demaille [Wed, 24 Oct 2001 14:29:16 +0000 (14:29 +0000)] 
* lib/Autom4te/General.pm (backname): New.

23 years ago* m4/: Remove, merged into...
Akim Demaille [Wed, 24 Oct 2001 13:30:56 +0000 (13:30 +0000)] 
* m4/: Remove, merged into...
* config/: here.

23 years ago* doc/autoconf.texi (Shellology): Mention the problems with bash 2.05's use
Tim Van Holder [Tue, 23 Oct 2001 17:18:44 +0000 (17:18 +0000)] 
* doc/autoconf.texi (Shellology): Mention the problems with bash 2.05's use
  of ANSI quoting in its `set' builtin.

23 years ago* lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
Paul Eggert [Mon, 22 Oct 2001 17:52:28 +0000 (17:52 +0000)] 
* 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.

23 years agoMention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
Paul Eggert [Mon, 22 Oct 2001 17:51:16 +0000 (17:51 +0000)] 
Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.

23 years ago(Particular Functions): Document the HAVE_WORKING_STRERROR_R ->
Paul Eggert [Mon, 22 Oct 2001 17:50:09 +0000 (17:50 +0000)] 
(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.

23 years ago(AC_FUNC_STRERROR_R): Rename ac_cv_func_strerror_r_works to
Paul Eggert [Mon, 22 Oct 2001 17:42:32 +0000 (17:42 +0000)] 
(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*.

23 years ago* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
Akim Demaille [Sat, 20 Oct 2001 06:57:21 +0000 (06:57 +0000)] 
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
the executable was missing from the log.

23 years ago* lib/Autom4te/General.pm (&update_file): If destination is
Akim Demaille [Sat, 20 Oct 2001 06:56:45 +0000 (06:56 +0000)] 
* 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.

23 years ago* bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
Akim Demaille [Sat, 20 Oct 2001 06:51:41 +0000 (06:51 +0000)] 
* 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.

23 years ago* lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
Paul Eggert [Fri, 19 Oct 2001 18:36:43 +0000 (18:36 +0000)] 
* lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
* doc/autoconf.texi (Particular Programs): Likewise.

23 years ago(AC_PROG_AWK): Prefer gawk to mawk.
Paul Eggert [Fri, 19 Oct 2001 18:34:42 +0000 (18:34 +0000)] 
(AC_PROG_AWK): Prefer gawk to mawk.

23 years ago(Particular Programs): Prefer gawk to mawk.
Paul Eggert [Fri, 19 Oct 2001 18:12:48 +0000 (18:12 +0000)] 
(Particular Programs): Prefer gawk to mawk.

23 years ago* lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
Akim Demaille [Fri, 19 Oct 2001 17:34:53 +0000 (17:34 +0000)] 
* 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.

23 years ago* lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
Akim Demaille [Fri, 19 Oct 2001 16:02:37 +0000 (16:02 +0000)] 
* lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
comment, explain how to install automatic mode selection.
From Russ Allbery.

23 years ago* bin/autoreconf.in (autoreconf): Display the path to the
Akim Demaille [Fri, 19 Oct 2001 14:26:45 +0000 (14:26 +0000)] 
* bin/autoreconf.in (autoreconf): Display the path to the
configure.ac being studied.

23 years ago* lib/m4sugar/m4sh.m4 (as_me): Shell-quote the argument of
Paul Eggert [Fri, 19 Oct 2001 00:26:15 +0000 (00:26 +0000)] 
* lib/m4sugar/m4sh.m4 (as_me): Shell-quote the argument of
AS_BASENAME, in case $0 contains white space.

23 years agoRegen.
Paul Eggert [Fri, 19 Oct 2001 00:24:47 +0000 (00:24 +0000)] 
Regen.

23 years ago(as_me): Shell-quote the argument of AS_BASENAME, in case $0 contains
Paul Eggert [Fri, 19 Oct 2001 00:20:03 +0000 (00:20 +0000)] 
(as_me): Shell-quote the argument of AS_BASENAME, in case $0 contains
white space.

23 years ago(DIRNAME_TEST): New arg $3.
Paul Eggert [Thu, 18 Oct 2001 23:44:54 +0000 (23:44 +0000)] 
(DIRNAME_TEST): New arg $3.
Allow "dirname //FOO" to return either / or //, as POSIX allows
either behavior.

23 years ago(AS_DIRNAME): Use 'dirname' if that works.
Paul Eggert [Thu, 18 Oct 2001 23:43:52 +0000 (23:43 +0000)] 
(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.

23 years ago(AC_CHECK_SIZEOF): Cast sizeof to unsigned long, to work around a bug
Paul Eggert [Thu, 18 Oct 2001 23:42:01 +0000 (23:42 +0000)] 
(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.

23 years ago(_AC_INIT_SRCDIR): Use AS_DIRNAME, since I think it's now DOS-friendly.
Paul Eggert [Thu, 18 Oct 2001 23:40:44 +0000 (23:40 +0000)] 
(_AC_INIT_SRCDIR): Use AS_DIRNAME, since I think it's now DOS-friendly.

23 years ago* lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
Paul Eggert [Thu, 18 Oct 2001 23:39:26 +0000 (23:39 +0000)] 
* 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.

23 years ago* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
Akim Demaille [Sun, 14 Oct 2001 11:48:18 +0000 (11:48 +0000)] 
* 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.

23 years agoAdd install-sh.
Pavel Roskin [Wed, 10 Oct 2001 20:08:15 +0000 (20:08 +0000)] 
Add install-sh.

23 years ago* lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
Akim Demaille [Wed, 10 Oct 2001 12:59:27 +0000 (12:59 +0000)] 
* lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
m4_define, since...
(_AS_ECHO_N): AS_REQUIREs it.

23 years ago* lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
Akim Demaille [Wed, 10 Oct 2001 12:58:44 +0000 (12:58 +0000)] 
* 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.

23 years ago* lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
Akim Demaille [Wed, 10 Oct 2001 12:57:35 +0000 (12:57 +0000)] 
* lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
transition code.

23 years ago* bin/autoreconf.in (&autoreconf): Remove debugging code.
Akim Demaille [Mon, 8 Oct 2001 09:40:33 +0000 (09:40 +0000)] 
* bin/autoreconf.in (&autoreconf): Remove debugging code.
(&parse_args): Pass verbosity/debugging options to subtools when
--debug, not when --verbose.
* lib/autom4te.in (Autoreconf-preselections): New.
(Autoconf): Use it.

23 years ago* bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
Akim Demaille [Mon, 8 Oct 2001 08:27:15 +0000 (08:27 +0000)] 
* bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.

23 years ago* doc/autoconf.texi (autoreconf Invocation): Adjust.
Akim Demaille [Mon, 8 Oct 2001 08:26:58 +0000 (08:26 +0000)] 
* doc/autoconf.texi (autoreconf Invocation): Adjust.
* bin/autoreconf.in (autoreconf): Run gettextize when appropriate.

23 years ago* tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
Akim Demaille [Mon, 8 Oct 2001 08:26:43 +0000 (08:26 +0000)] 
* tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
(Syntax of the shell scripts): Don't.
* bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
bother with $force since...
* lib/Autom4te/General.pm: does.

23 years ago* bin/autoreconf.in: Rewrite in Perl.
Akim Demaille [Mon, 8 Oct 2001 08:25:44 +0000 (08:25 +0000)] 
* bin/autoreconf.in: Rewrite in Perl.
* configure.ac: Adjust.
* lib/Autom4te/General.pm (&up_to_date_p): New.
* bin/autom4te.in (&up_to_date_p): Use it.
Rename as...
(&up_to_date): this.

23 years agoUse m4_bmatch.
Akim Demaille [Mon, 8 Oct 2001 08:25:34 +0000 (08:25 +0000)] 
Use m4_bmatch.

23 years ago* lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
Akim Demaille [Mon, 8 Oct 2001 08:22:49 +0000 (08:22 +0000)] 
* lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
(m4_list_cmp): Use $0 to reinvoke yourself.
(m4_patsubsts): New.
(m4_strip, m4_version_unletter): Use it.
* tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.

23 years ago* lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
Akim Demaille [Mon, 8 Oct 2001 08:22:33 +0000 (08:22 +0000)] 
* lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
* lib/autoconf/libs.m4, lib/autoconf/status.m4,
* lib/autoconf/types.m4, lib/autotest/general.m4,
* lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
* tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
m4_bregexp, m4_bpatsubst, and m4_bmatch.
* doc/autoconf.texi (Redefined M4 Macros): Adjust.

23 years ago* lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
Akim Demaille [Mon, 8 Oct 2001 08:22:09 +0000 (08:22 +0000)] 
* lib/m4sugar/m4sh.m4: Use AS_REQUIRE.

23 years ago* lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
Akim Demaille [Mon, 8 Oct 2001 08:21:54 +0000 (08:21 +0000)] 
* lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
* tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
* tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
* tests/tools.at, tests/m4sh.at: Use it.
* tests/m4sh.at: Don't rely on Autoconf macros.
(DIRNAME_TEST): Also exercise the expr variant.
* tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
preferred M4sugar extension is now `.4s'.
* tests/README: Remove.

23 years ago* lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
Akim Demaille [Mon, 8 Oct 2001 08:21:34 +0000 (08:21 +0000)] 
* lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
(m4_provide_if): this.
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
* lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
(AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.

23 years agoUse `add-log-current-defun-function' for ChangeLog creation.
Akim Demaille [Mon, 8 Oct 2001 08:21:18 +0000 (08:21 +0000)] 
Use `add-log-current-defun-function' for ChangeLog creation.
Suggested by Tom Tromey.
* lib/emacs/autotest-mode.el (autotest-mode-map): New.
(autotest-mode): Adjust.
* lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
'comment-region onto `C-c ;'.
Comments are `#', not `dnl'.
(autoconf-current-defun): New.
(autoconf-font-lock-keywords): Recognize `m4_defun'.

23 years ago* lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
Akim Demaille [Mon, 8 Oct 2001 08:20:59 +0000 (08:20 +0000)] 
* lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
* lib/m4sugar/m4sh.m4: here.
(AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
* lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
(AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
include handle the m4_pattern_*, no longer push the
BODY diversion nor set the /bin/sh line, AS_INIT does it.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* tests/base.at: Adjust the tests to use AS_INIT.
* tests/tools.at (AT_DATA_FORBIDDEN): New.
(autoconf: forbidden tokens): Adjust to work on M4sh instead of
Autoconf.

23 years ago* doc/autoconf.texi (config.status Invocation):
Paul Eggert [Mon, 8 Oct 2001 04:17:08 +0000 (04:17 +0000)] 
* doc/autoconf.texi (config.status Invocation):
CONFIG_SHELL defaults to a shell that supports LINENO if available.

* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
shell does not support LINENO, and if CONFIG_SHELL is unset or
empty, and if we can find a shell that does support LINENO,
then set CONFIG_SHELL to that shell and then re-execute
ourselves with CONFIG_SHELL.

23 years agoRegen.
Paul Eggert [Mon, 8 Oct 2001 04:15:29 +0000 (04:15 +0000)] 
Regen.

23 years ago(_AS_LINENO_PREPARE): If the current shell does not support LINENO,
Paul Eggert [Mon, 8 Oct 2001 04:10:32 +0000 (04:10 +0000)] 
(_AS_LINENO_PREPARE): If the current shell does not support LINENO,
and if CONFIG_SHELL is unset or empty, and if we can find a shell that
does support LINENO, then set CONFIG_SHELL to that shell and then
re-execute ourselves with CONFIG_SHELL.

23 years ago(config.status Invocation): CONFIG_SHELL defaults to a shell that
Paul Eggert [Mon, 8 Oct 2001 04:09:31 +0000 (04:09 +0000)] 
(config.status Invocation): CONFIG_SHELL defaults to a shell that
supports LINENO if available.

23 years ago* tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
Paul Eggert [Fri, 5 Oct 2001 19:07:09 +0000 (19:07 +0000)] 
* tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
doesn't exist.  Remove *.tmp, as a .tmp file is created during the
build of $(TESTSUITE).

23 years ago(clean-local): Don't invoke $(TESTSUITE) if it doesn't exist.
Paul Eggert [Fri, 5 Oct 2001 19:05:32 +0000 (19:05 +0000)] 
(clean-local): Don't invoke $(TESTSUITE) if it doesn't exist.
Remove *.tmp, as a .tmp file is created during the build of $(TESTSUITE).

23 years agoRegen.
Paul Eggert [Fri, 5 Oct 2001 18:45:45 +0000 (18:45 +0000)] 
Regen.

23 years ago* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
Akim Demaille [Fri, 5 Oct 2001 17:46:46 +0000 (17:46 +0000)] 
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
iff we are a bareword.
Reported by Raja R Harinath.

23 years ago* tests/m4sh.at (LINENO): New.
Akim Demaille [Fri, 5 Oct 2001 16:12:22 +0000 (16:12 +0000)] 
* tests/m4sh.at (LINENO): New.
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
PATH_SEPARATOR before using it.
Fix the absolute path case/esac pattern.
Provide $0 as fallback for as_myself.
Reported by Raja R Harinath.

23 years ago* Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
Akim Demaille [Fri, 5 Oct 2001 16:12:06 +0000 (16:12 +0000)] 
* Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
* m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.

23 years ago* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
Akim Demaille [Thu, 4 Oct 2001 15:24:31 +0000 (15:24 +0000)] 
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
combination of Awk and sed to replace $LINENO.

23 years ago* doc/autoconf.texi (Limitations of Builtins): You can't use
Paul Eggert [Tue, 2 Oct 2001 23:33:49 +0000 (23:33 +0000)] 
* doc/autoconf.texi (Limitations of Builtins): You can't use
"source"; it's not portable.  Remove confusing and
somewhat-incorrect example involving "." and "/".

23 years ago(Limitations of Builtins): You can't use "source"; it's not portable.
Paul Eggert [Tue, 2 Oct 2001 23:32:11 +0000 (23:32 +0000)] 
(Limitations of Builtins): You can't use "source"; it's not portable.
Remove confusing and somewhat-incorrect example involving "." and "/".

23 years ago* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
Paul Eggert [Tue, 2 Oct 2001 23:15:09 +0000 (23:15 +0000)] 
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
compatibility with POSIX shells.

23 years ago(AS_SHELL_SANITIZE): "source" -> ".", for compatibility with POSIX shells.
Paul Eggert [Tue, 2 Oct 2001 23:14:30 +0000 (23:14 +0000)] 
(AS_SHELL_SANITIZE): "source" -> ".", for compatibility with POSIX shells.

23 years ago* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
Akim Demaille [Tue, 2 Oct 2001 14:37:07 +0000 (14:37 +0000)] 
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
instead of exec'ing to preserve $0 and $@.

23 years ago* tests/testsuite (AT_INIT) <at_pass_list>: New.
Akim Demaille [Mon, 1 Oct 2001 07:01:22 +0000 (07:01 +0000)] 
* tests/testsuite (AT_INIT) <at_pass_list>: New.
Don't run twice the same test.

23 years ago* lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
Akim Demaille [Mon, 1 Oct 2001 07:01:08 +0000 (07:01 +0000)] 
* lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
No longer output the list of tests.
<--list>: New option.
<--full-help>: Remove.
Complete the short/long options duality.
Various small adjustments.

23 years ago* doc/autoconf.texi: Use @kbd for user input.
Akim Demaille [Mon, 1 Oct 2001 07:00:54 +0000 (07:00 +0000)] 
* doc/autoconf.texi: Use @kbd for user input.
Always use `$' as shell prompt.

23 years ago * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
Paul Eggert [Sun, 30 Sep 2001 17:17:34 +0000 (17:17 +0000)] 
* lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
Don't use nested parenthesization.  This patch was originally
suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
but somehow it didn't get incorporated then.
* doc/autoconf.texi (Limitations of Usual Tools):
Clarify remark about sed and nested parenthesization.

23 years agoClarify remark about portability of nested parenthesization.
Paul Eggert [Sun, 30 Sep 2001 17:16:17 +0000 (17:16 +0000)] 
Clarify remark about portability of nested parenthesization.

23 years ago(AC_OUTPUT_MAKE_DEFS):
Paul Eggert [Sun, 30 Sep 2001 17:12:34 +0000 (17:12 +0000)] 
(AC_OUTPUT_MAKE_DEFS):
Don't use nested parenthesization.  This patch was originally
suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
but somehow it didn't get incorporated then.

23 years ago* lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
Paul Eggert [Sun, 30 Sep 2001 15:18:47 +0000 (15:18 +0000)] 
* lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
Report an error if the size cannot be determined even though
the type exists.
* lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
Check for `expr' arithmetic overflow, and for compilation failure,
and invoke a new argument $4 if either is discovered.
This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
(_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.

23 years ago(_AC_COMPUTE_INT_COMPILE):
Paul Eggert [Sun, 30 Sep 2001 15:17:25 +0000 (15:17 +0000)] 
(_AC_COMPUTE_INT_COMPILE):
Check for `expr' arithmetic overflow, and for compilation failure,
and invoke a new argument $4 if either is discovered.
This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
(_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.

23 years ago(AC_CHECK_SIZEOF): Report an error if the size cannot be determined
Paul Eggert [Sun, 30 Sep 2001 15:16:18 +0000 (15:16 +0000)] 
(AC_CHECK_SIZEOF): Report an error if the size cannot be determined
even though the type exists.

23 years agotypo.
Akim Demaille [Fri, 28 Sep 2001 13:55:40 +0000 (13:55 +0000)] 
typo.

23 years ago* lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
Akim Demaille [Fri, 28 Sep 2001 11:56:26 +0000 (11:56 +0000)] 
* lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
* configure.ac: Adjust.

23 years agoMore ignores.
Akim Demaille [Fri, 28 Sep 2001 10:15:33 +0000 (10:15 +0000)] 
More ignores.

23 years ago* lib/autotest/general.m4 (AT_VICTIMS): Rename as...
Akim Demaille [Fri, 28 Sep 2001 10:14:36 +0000 (10:14 +0000)] 
* lib/autotest/general.m4 (AT_VICTIMS): Rename as...
(AT_TESTED): this.
(AT_INIT): More the wrapped section to where it will be expanded.
Output `AT_tested' only when existing.
Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.

23 years agoFix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
Akim Demaille [Thu, 27 Sep 2001 13:28:15 +0000 (13:28 +0000)] 
Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
generates too many bug reports.
* lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
status when executing the ACTION-IF-FALSE.
* tests/base.at (AC_TRY_*): Rename as...
(AC_TRY_COMMAND): this.
(AC_RUN_IFELSE): New.
* tests/compile.at (Extensions, C keywords)
(AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
(Broken/missing compilers, AC_PROG_CPP with warnings)
(AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
* tests/c.at (Extensions, C keywords)
(Broken/missing compilers, AC_PROG_CPP with warnings)
(AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
(AC_PROG_CPP requires AC_PROG_CC): here and...
* tests/fortran.at (GNU Fortran 77): there.
* doc/autoconf.texi (autoconf Invocation): Fix the example:
AC_TRY_RUN is about compilation, not shell commands.
(Test Programs): AC_TRY_RUN works as used to be advertised.

23 years agoRegen.
Akim Demaille [Thu, 27 Sep 2001 09:04:50 +0000 (09:04 +0000)] 
Regen.

23 years ago* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
Akim Demaille [Thu, 27 Sep 2001 08:27:55 +0000 (08:27 +0000)] 
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
Raja R Harinath:
Be sure to detect when $LINENO always returns the same value.
Look for the original script, basename($0) is certainly not
enough.
Pass the CLI arguments to `$as_me.lineno'.

23 years ago* lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
Akim Demaille [Tue, 25 Sep 2001 09:54:29 +0000 (09:54 +0000)] 
* lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
Be sure the close and reopen the LOG fd before and after using tee
to extend the log.
<at_tests_pattern>: Adjust to the new format of at_help_all.

23 years agoRegen.
Akim Demaille [Sun, 23 Sep 2001 17:19:45 +0000 (17:19 +0000)] 
Regen.

23 years ago* bin/autom4te.in (parse_args): There can be several invocations
Akim Demaille [Sun, 23 Sep 2001 17:18:20 +0000 (17:18 +0000)] 
* bin/autom4te.in (parse_args): There can be several invocations
of --language now.

23 years ago* doc/autoconf.texi (Top): Wrap in @ifnottex.
Akim Demaille [Sun, 23 Sep 2001 17:18:07 +0000 (17:18 +0000)] 
* doc/autoconf.texi (Top): Wrap in @ifnottex.

23 years ago* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
Akim Demaille [Sun, 23 Sep 2001 17:17:46 +0000 (17:17 +0000)] 
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.

23 years ago* doc/autoconf.texi (Common Shell Constructs): Rename as...
Akim Demaille [Sun, 23 Sep 2001 17:16:57 +0000 (17:16 +0000)] 
* doc/autoconf.texi (Common Shell Constructs): Rename as...
(Programming in M4sh): this.
Promote to @section.

23 years ago* lib/autotest/general.m4 (AT_INIT): Dump config.log last.
Akim Demaille [Sun, 23 Sep 2001 17:16:43 +0000 (17:16 +0000)] 
* lib/autotest/general.m4 (AT_INIT): Dump config.log last.
Pass $at_debug_args to the rerun test suite.
* lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
* bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
From Paul Eggert.