Commit Graph

1314 Commits

Author SHA1 Message Date
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
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
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
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
Paul Eggert
a6a4d5e090 (AC_PROG_AWK): Prefer gawk to mawk. 2001-10-19 18:34:42 +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
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
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
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
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
Akim Demaille
ba8eb8795e * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
transition code.
2001-10-10 12:57:35 +00:00
Akim Demaille
6dfba95517 * 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.
2001-10-08 09:40:33 +00:00
Akim Demaille
fa70471557 * 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.
2001-10-08 08:26:43 +00:00
Akim Demaille
788b2078c0 * 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.
2001-10-08 08:25:44 +00:00
Akim Demaille
0a757bb3dc * 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.
2001-10-08 08:22:49 +00:00
Akim Demaille
141b85d788 * 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.
2001-10-08 08:22:33 +00:00
Akim Demaille
dda641324f * lib/m4sugar/m4sh.m4: Use AS_REQUIRE. 2001-10-08 08:22:09 +00:00
Akim Demaille
0717332aed * 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.
2001-10-08 08:21:54 +00:00
Akim Demaille
201baaa8df * 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.
2001-10-08 08:21:34 +00:00
Akim Demaille
b17d5c4b6c 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'.
2001-10-08 08:21:18 +00:00
Akim Demaille
8e048c0492 * 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.
2001-10-08 08:20:59 +00:00
Paul Eggert
03b5875793 (_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.
2001-10-08 04:10:32 +00:00
Akim Demaille
41da374f67 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
iff we are a bareword.
Reported by Raja R Harinath.
2001-10-05 17:46:46 +00:00
Akim Demaille
a7b9f60081 * 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.
2001-10-05 16:12:22 +00:00
Akim Demaille
b3594d53cb * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
* m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
2001-10-05 16:12:06 +00:00
Akim Demaille
42b48aec23 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
combination of Awk and sed to replace $LINENO.
2001-10-04 15:24:31 +00:00
Paul Eggert
79d702d8bc (AS_SHELL_SANITIZE): "source" -> ".", for compatibility with POSIX shells. 2001-10-02 23:14:30 +00:00
Akim Demaille
a89e34ea3d * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
instead of exec'ing to preserve $0 and $@.
2001-10-02 14:37:07 +00:00
Akim Demaille
8bbfc0b5fd * tests/testsuite (AT_INIT) <at_pass_list>: New.
Don't run twice the same test.
2001-10-01 07:01:22 +00:00
Akim Demaille
d3cd8d95c2 * 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.
2001-10-01 07:01:08 +00:00
Paul Eggert
6bbb016c0e (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.
2001-09-30 17:12:34 +00:00
Paul Eggert
a95f040b51 (_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.
2001-09-30 15:17:25 +00:00
Paul Eggert
a452b6b7e3 (AC_CHECK_SIZEOF): Report an error if the size cannot be determined
even though the type exists.
2001-09-30 15:16:18 +00:00
Akim Demaille
e16f9eefe0 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
* configure.ac: Adjust.
2001-09-28 11:56:26 +00:00
Akim Demaille
921e6d129d * 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.
2001-09-28 10:14:36 +00:00
Akim Demaille
32876525ac 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.
2001-09-27 13:28:15 +00:00
Akim Demaille
fa75ee4b94 * 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'.
2001-09-27 08:27:55 +00:00
Akim Demaille
26edb742fa * 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.
2001-09-25 09:54:29 +00:00
Akim Demaille
e7808696f5 * 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.
2001-09-23 17:17:46 +00:00
Akim Demaille
eacc95ddc9 * 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.
2001-09-23 17:16:43 +00:00
Akim Demaille
0540a84bcd * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
over-escaping.
2001-09-23 17:16:15 +00:00
Akim Demaille
d3bcaf7a86 * lib/Autom4te/General.pm (&debug): New.
* bin/autom4te.in ($language): Move to...
(parse_args): here.
Handle --language in languages.
* lib/autom4te.in (Automake-selections, Autoheader-selections)
(Autoscan-selections): New.
(Autoconf): Adjust.
2001-09-23 17:16:01 +00:00