]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
24 years ago* Makefile.am: Don't use suffix rules for perl and shell
Pavel Roskin [Wed, 13 Dec 2000 02:25:35 +0000 (02:25 +0000)] 
* Makefile.am: Don't use suffix rules for perl and shell
scripts. Use explicit rules instead.

24 years agoRebuilt.
Pavel Roskin [Tue, 12 Dec 2000 22:03:08 +0000 (22:03 +0000)] 
Rebuilt.

24 years ago* autoscan.pl (init_tables): Allow spaces on the right hand side
Pavel Roskin [Tue, 12 Dec 2000 12:45:41 +0000 (12:45 +0000)] 
* autoscan.pl (init_tables): Allow spaces on the right hand side
in autoscan tables. Die if there are no spaces at all.
(scan_c_file): Use b instead of W so that keywords match at
the beginning and the end of the line.
(scan_sh_file): Likewise.
(scan_makefile): Likewise. Use B to match before `-l'.
(output): Suggest AC_CONFIG_HEADER if any C/C++ sources are
found.
* acidentifiers: Update macros for structure members st_blksize
and st_rdev.

24 years agoVery stupid typos.
Akim Demaille [Tue, 12 Dec 2000 11:51:26 +0000 (11:51 +0000)] 
Very stupid typos.

24 years ago* tests/compile.at (GNU Fortran 77): Be robust to compilers that
Akim Demaille [Tue, 12 Dec 2000 11:40:21 +0000 (11:40 +0000)] 
* tests/compile.at (GNU Fortran 77): Be robust to compilers that
choke on `--version'.

24 years ago* tests/suite.at: Run `tools.at' first.
Akim Demaille [Tue, 12 Dec 2000 11:26:41 +0000 (11:26 +0000)] 
* tests/suite.at: Run `tools.at' first.

24 years ago* tests/aclocal.m4 (AC_STATE_SAVE): Use a more precise regexp to
Akim Demaille [Tue, 12 Dec 2000 11:04:43 +0000 (11:04 +0000)] 
* tests/aclocal.m4 (AC_STATE_SAVE): Use a more precise regexp to
keep envvars.

24 years agoAS_ERROR was not properly saving data in the log file.
Akim Demaille [Tue, 12 Dec 2000 10:53:41 +0000 (10:53 +0000)] 
AS_ERROR was not properly saving data in the log file.
* sh.m4 (AS_WARN, AS_ERROR): Use AS_MESSAGE.
(_AS_ECHO): Fix quotation.
(AS_MESSAGE): Use `as_me'.
* acgeneral.m4: More banners in the log.
(_AC_INIT_DEFAULTS): Compute as_me before using it.

24 years ago* doc/autoconf.texi (System Services) <AC_PATH_XTRA>: Adjust the
Akim Demaille [Fri, 8 Dec 2000 14:27:20 +0000 (14:27 +0000)] 
* doc/autoconf.texi (System Services) <AC_PATH_XTRA>: Adjust the
documentation about X_DISPLAY_MISSING to the code.

24 years ago* tests/atgeneral.m4 (AT_INIT): More robust computation of
Akim Demaille [Thu, 7 Dec 2000 16:21:58 +0000 (16:21 +0000)] 
* tests/atgeneral.m4 (AT_INIT): More robust computation of
ac_tests_pattern.
Reported by  Andrej Borsenkow.

24 years ago* acspecific.m4 (_AC_EXEEXT): Skip *.pdb.
Akim Demaille [Thu, 7 Dec 2000 16:09:12 +0000 (16:09 +0000)] 
* acspecific.m4 (_AC_EXEEXT): Skip *.pdb.
From Paul Berrevoets <paul@swi.com>.

24 years ago* tests/atgeneral.m4 (AT_CHECK): Bad typo: assign `exit 1' to
Akim Demaille [Thu, 7 Dec 2000 15:21:54 +0000 (15:21 +0000)] 
* tests/atgeneral.m4 (AT_CHECK): Bad typo: assign `exit 1' to
at_continue if something failed, not `:'.
* tests/semantics.at (AC_PATH_XTRA): New.
* acspecific.m4 (_AC_PATH_X): New, extracted form AC_PATH_X.

24 years ago* configure.in: Bump version to 2.49c.
Akim Demaille [Wed, 6 Dec 2000 17:32:38 +0000 (17:32 +0000)] 
* configure.in: Bump version to 2.49c.

24 years agoTypo fix.
Pavel Roskin [Wed, 6 Dec 2000 17:11:27 +0000 (17:11 +0000)] 
Typo fix.

24 years agoVersion stamp.
Akim Demaille [Wed, 6 Dec 2000 16:46:29 +0000 (16:46 +0000)] 
Version stamp.

24 years agoStop playing with FDs in Autotest.
Akim Demaille [Wed, 6 Dec 2000 16:29:50 +0000 (16:29 +0000)] 
Stop playing with FDs in Autotest.
* tests/atgeneral.m4 (AT_INIT): Set up FD 5.
(AT_CHECK): Instead of using exec to globally change the FDs of
`testsuite', enclose the body of the test into a
`(..) >stdout 2>stderr'.
In every case, when verbose, display the differences between
expected and oberved (stdout, stderr, exit status).
Let `0' be the default for EXIT-STATUS.
Support EXIT-STATUS == `ignore'.

24 years ago* tests/tools.at (autoconf: forbidden tokens): Adjust expected
Akim Demaille [Wed, 6 Dec 2000 16:06:34 +0000 (16:06 +0000)] 
* tests/tools.at (autoconf: forbidden tokens): Adjust expected
result.

24 years ago* man/config.guess.x: New file.
Akim Demaille [Wed, 6 Dec 2000 16:02:58 +0000 (16:02 +0000)] 
* man/config.guess.x: New file.
* man/config.sub.x: New file.

24 years ago* tests/aclocal.m4 (AT_STATE_SAVE): Don't even try to preserve
Akim Demaille [Wed, 6 Dec 2000 15:14:16 +0000 (15:14 +0000)] 
* tests/aclocal.m4 (AT_STATE_SAVE): Don't even try to preserve
egrep error messages, AT_CHECK will find them.

24 years ago* doc/autoconf.texi (Limitations of Usual Tools) <awk>: `for' on
Akim Demaille [Wed, 6 Dec 2000 15:00:45 +0000 (15:00 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools) <awk>: `for' on
arrays is nondeterministic across AWK implementations.
* tests/tools.at (autoconf: forbidden tokens): Sort the error
message to guarantee its uniqueness.

24 years agoThe SunOS' egrep fails to process properly the `egrep' invocations
Akim Demaille [Wed, 6 Dec 2000 14:05:46 +0000 (14:05 +0000)] 
The SunOS' egrep fails to process properly the `egrep' invocations
of the test suite.
* tests/aclocal.m4 (AC_STATE_SAVE): If egrep fails, remove the
output file.
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't check `state-*'
if the files are not present.
* m4sugar.m4 (m4_join): Rename as...
(m4_smash): this.
* tests/aclocal.m4 (join): Move as...
* m4sugar.m4 (m4_flatten): this.
* autoconf.sh (trace.m4): Rename m4_smash as m4_flatten.

24 years ago* autoconf.sh (task trace): s/m4/$M4/.
Akim Demaille [Wed, 6 Dec 2000 10:53:58 +0000 (10:53 +0000)] 
* autoconf.sh (task trace): s/m4/$M4/.
* autoheader.sh: When loading trace.sh, catch errors and exit with
a decent error message.
* tests/tools.at: Be sure to test autoconf --trace before
autoheader.

24 years ago* tests/atgeneral.m4 (AT_CHECK): Fix the m4_ifval invocation.
Akim Demaille [Wed, 6 Dec 2000 08:59:21 +0000 (08:59 +0000)] 
* tests/atgeneral.m4 (AT_CHECK): Fix the m4_ifval invocation.

24 years ago* aclang.m4 (AC_LANG): Be `smart': don't issue the sh code if the
Akim Demaille [Wed, 6 Dec 2000 08:59:08 +0000 (08:59 +0000)] 
* aclang.m4 (AC_LANG): Be `smart': don't issue the sh code if the
current language did not change.
(AC_LANG_ASSERT): New.
(AC_PROG_CPP, AC_PROG_CXXCPP): Assert the language.
(_AC_PROG_F77_V, _AC_F77_NAME_MANGLING): Don't require
AC_PROG_F77, the code you include does it.
(AC_F77_LIBRARY_LDFLAGS): Set the language.

24 years ago* m4sugar.m4 (ifelse): Rename as...
Akim Demaille [Wed, 6 Dec 2000 08:58:41 +0000 (08:58 +0000)] 
* m4sugar.m4 (ifelse): Rename as...
(m4_if): this.
* autoconf.m4 (ifelse): Restore.

24 years ago* m4sugar.m4 (m4_dquote, m4_pattern_forbid, m4_pattern_allow)
Akim Demaille [Wed, 6 Dec 2000 08:58:13 +0000 (08:58 +0000)] 
* m4sugar.m4 (m4_dquote, m4_pattern_forbid, m4_pattern_allow)
(m4_cr_letters, m4_cr_LETTERS, m4_cr_Letters, m4_cr_digits)
(m4_cr_symbols1, m4_cr_symbols2, m4_re_string, m4_re_word)
(m4_init): New macros.
(m4_token_allow): Remove.
* acgeneral.m4: Don't push BODY into the diversion stack.
(AC_PLAIN_SCRIPT): Do it.
Call m4_init, define the Autoconf patterns.
(AC_INIT): Use AC_PLAIN_SCRIPT.
Remove the useless `dnl' (those where the current diversion is
KILL).
* autoconf.sh (m4_common): Fix quotation.
(finalize.awk): Load forbidden.rx and allowed.rx.
Split the line into tokens, and check their validity.
* tests/tools.at (Forbidden tokens): Adjust.

24 years ago* acspecific.m4 (_AC_OBJEXT, _AC_EXEEXT): Ignore .d files produced
Akim Demaille [Tue, 5 Dec 2000 18:15:44 +0000 (18:15 +0000)] 
* acspecific.m4 (_AC_OBJEXT, _AC_EXEEXT): Ignore .d files produced
by CFLAGS=-MD.

24 years agoAdjust ChangeLog.
Akim Demaille [Tue, 5 Dec 2000 14:17:36 +0000 (14:17 +0000)] 
Adjust ChangeLog.

24 years agoAdjust a banner.
Akim Demaille [Tue, 5 Dec 2000 14:16:08 +0000 (14:16 +0000)] 
Adjust a banner.

24 years ago* aclang.m4 (AC_PROG_F77): Temporarily set ac_ext to F to run
Akim Demaille [Tue, 5 Dec 2000 14:08:35 +0000 (14:08 +0000)] 
* aclang.m4 (AC_PROG_F77): Temporarily set ac_ext to F to run
_AC_LANG_COMPILER_GNU.
From Steven G. Johnson.
* tests/compile.at (GNU Fortran 77): New test.

24 years ago* tests/tools.at (autoupdate): Strengthen and check autoupdate's
Akim Demaille [Tue, 5 Dec 2000 13:52:49 +0000 (13:52 +0000)] 
* tests/tools.at (autoupdate): Strengthen and check autoupdate's
idempotency.

24 years ago* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): s/cp -f/mv -f/.
Akim Demaille [Tue, 5 Dec 2000 13:50:33 +0000 (13:50 +0000)] 
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): s/cp -f/mv -f/.

24 years ago* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't escape
Pavel Roskin [Sat, 2 Dec 2000 01:40:17 +0000 (01:40 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't escape
backquotes in AC_MSG_ERROR. Fix error message.

24 years ago* tests/atgeneral.m4 (AT_INIT): Use ${CONFIG_SHELL-/bin/sh}
Pavel Roskin [Sat, 2 Dec 2000 00:46:57 +0000 (00:46 +0000)] 
* tests/atgeneral.m4 (AT_INIT): Use ${CONFIG_SHELL-/bin/sh}
to run the testsuite from the debug scripts.
Suggested by Alexandre Oliva.

24 years agoUpdated from Automake CVS.
Pavel Roskin [Fri, 1 Dec 2000 16:40:17 +0000 (16:40 +0000)] 
Updated from Automake CVS.

24 years agoUpdated from ftp://ftp.gnu.org/
Pavel Roskin [Fri, 1 Dec 2000 16:34:49 +0000 (16:34 +0000)] 
Updated from ftp://ftp.gnu.org/

24 years ago* doc/autoconf.texi (Assignments): Don't read $? after an
Akim Demaille [Thu, 30 Nov 2000 17:48:50 +0000 (17:48 +0000)] 
* doc/autoconf.texi (Assignments): Don't read $? after an
assignment.

24 years agoAdjust comments.
Akim Demaille [Thu, 30 Nov 2000 17:35:16 +0000 (17:35 +0000)] 
Adjust comments.

24 years ago* sh.m4 (AS_EXIT): Don't rely on false exiting 1.
Akim Demaille [Thu, 30 Nov 2000 17:27:32 +0000 (17:27 +0000)] 
* sh.m4 (AS_EXIT): Don't rely on false exiting 1.
Actually, always use `(exit $val); exit', don't try smart stuff.
* doc/autoconf.texi (Limitations of Builtins) <false>: new.

24 years ago* sh.m4 (_AS_EXPR_PREPARE): Don't rely on the exit status of a
Akim Demaille [Thu, 30 Nov 2000 16:30:53 +0000 (16:30 +0000)] 
* sh.m4 (_AS_EXPR_PREPARE): Don't rely on the exit status of a
back quote evaluation since the very system for which the test was
written does not propagate it.  Groumph!

24 years ago* acspecific.m4 (_AC_EXEEXT): Also remove conftest$ac_exeext.
Akim Demaille [Thu, 30 Nov 2000 16:22:30 +0000 (16:22 +0000)] 
* acspecific.m4 (_AC_EXEEXT): Also remove conftest$ac_exeext.
Reported by Pavel.

24 years ago* acspecific.m4 (_AC_EXEEXT, _AC_OBJEXT): Make the two macros more
Akim Demaille [Thu, 30 Nov 2000 15:24:13 +0000 (15:24 +0000)] 
* acspecific.m4 (_AC_EXEEXT, _AC_OBJEXT): Make the two macros more
alike: a loop over a sorted list of possible files.
Don't cleanup on errors, the trap will do it.
Cleanup when there are no errors.
(_AC_EXEEXT): Use the empty string instead of `no' as the cached
value.
Be sure to prefer `.exe' to `' when the two are observable.
Suggested by Lars and Earnie.

24 years agoWhen using Cygwin, in spite of all their efforts, it may happen
Akim Demaille [Thu, 30 Nov 2000 14:49:43 +0000 (14:49 +0000)] 
When using Cygwin, in spite of all their efforts, it may happen
that `confestval' be read in binary mode.  The shell then fails to
properly strip the rn.
Reported by Lars J. Aas.
* aclang.m4 (AC_LANG_INT_SAVE): Don't add any trailing new line,
and close the file.
Suggested by Peter Eisentraut.

24 years ago* doc/autoconf.texi (Systemology): New section.
Akim Demaille [Thu, 30 Nov 2000 14:48:02 +0000 (14:48 +0000)] 
* doc/autoconf.texi (Systemology): New section.
Some about QNX 4.

24 years ago* doc/autoconf.texi (Special Shell Variables): Document RANDOM.
Akim Demaille [Thu, 30 Nov 2000 12:51:12 +0000 (12:51 +0000)] 
* doc/autoconf.texi (Special Shell Variables): Document RANDOM.

24 years agoTypos.
Akim Demaille [Thu, 30 Nov 2000 09:52:15 +0000 (09:52 +0000)] 
Typos.

24 years ago* doc/autoconf.texi (Limitations of Usual Tools): Some about cp
Akim Demaille [Thu, 30 Nov 2000 09:50:48 +0000 (09:50 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools): Some about cp
and mv, thanks to Ian.

24 years agoRegenerate.
Akim Demaille [Thu, 30 Nov 2000 08:34:48 +0000 (08:34 +0000)] 
Regenerate.

24 years ago* acspecific.m4 (_AC_OBJEXT): Skip *.tds, special case .o and
Akim Demaille [Wed, 29 Nov 2000 18:41:14 +0000 (18:41 +0000)] 
* acspecific.m4 (_AC_OBJEXT): Skip *.tds, special case .o and
.obj.
Suggested by Lars.

24 years ago* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the portability of
Akim Demaille [Wed, 29 Nov 2000 18:20:01 +0000 (18:20 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the portability of
the default assignment of CONFIG_FILES, CONFIG_HEADERS,
CONFIG_LINKS and CONFIG_COMMANDS.

24 years ago* acgeneral.m4 (AC_CACHE_SAVE): Use the `clear' trick to work
Akim Demaille [Wed, 29 Nov 2000 18:07:06 +0000 (18:07 +0000)] 
* acgeneral.m4 (AC_CACHE_SAVE): Use the `clear' trick to work
around broken seds.
(_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES): Rename the sed labels to
match the Autoconf documentation.

24 years ago* acgeneral.m4 (AC_CACHE_SAVE): Use the `clear' trick to work
Akim Demaille [Wed, 29 Nov 2000 17:57:55 +0000 (17:57 +0000)] 
* acgeneral.m4 (AC_CACHE_SAVE): Use the `clear' trick to work
around broken seds.
(_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES): Rename the sed labels to
match the Autoconf documentation.

24 years agoMissing quotes.
Akim Demaille [Wed, 29 Nov 2000 17:44:19 +0000 (17:44 +0000)] 
Missing quotes.

24 years ago* doc/autoconf.texi (Shell Substitutions): More on the variations
Akim Demaille [Wed, 29 Nov 2000 17:43:00 +0000 (17:43 +0000)] 
* doc/autoconf.texi (Shell Substitutions): More on the variations
around ${foo=bar}.
(Assignments): Rewrite as a summary of the previous section.
* acgeneral.m4 (AC_CACHE_SAVE): Be protected against the Solaris'
`${foo='${bar}'}' bug.

24 years agoAnother typo.
Akim Demaille [Wed, 29 Nov 2000 16:15:30 +0000 (16:15 +0000)] 
Another typo.

24 years agoTypo.
Akim Demaille [Wed, 29 Nov 2000 16:13:48 +0000 (16:13 +0000)] 
Typo.

24 years ago* acgeneral.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES): Don't use
Akim Demaille [Wed, 29 Nov 2000 16:08:43 +0000 (16:08 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES): Don't use
   `... echo "error: \`$f'" ...`
as it's not portable to BSDI 1.3.
Do this instead:
   `... echo "error: $f" ...`
Reported by Daniele Arena.

24 years agoQNX 4.2.5's expr always exits 1 when `:' is used with parens.
Akim Demaille [Wed, 29 Nov 2000 15:52:02 +0000 (15:52 +0000)] 
QNX 4.2.5's expr always exits 1 when `:' is used with parens.
* doc/autoconf.texi (Limitations of Usual Tools) <expr>: More
information, thanks to Paul Berrevoets, Paul Eggert and David
Morgan.
* sh.m4 (_AS_EXPR_PREPARE): New.
(AS_DIRNAME): Use it.

24 years agoRegenerated.
Pavel Roskin [Wed, 29 Nov 2000 15:34:27 +0000 (15:34 +0000)] 
Regenerated.

24 years agoRegenerated.
Pavel Roskin [Wed, 29 Nov 2000 14:58:44 +0000 (14:58 +0000)] 
Regenerated.

24 years agoTypo reported by Pavel.
Akim Demaille [Wed, 29 Nov 2000 14:46:07 +0000 (14:46 +0000)] 
Typo reported by Pavel.

24 years agosizeof (struct {char a,b; }) is not required to be 2.
Akim Demaille [Wed, 29 Nov 2000 14:14:10 +0000 (14:14 +0000)] 
sizeof (struct {char a,b; }) is not required to be 2.
Reported by Johan Danielsson.
* tests/semantics.at (AC_CHECK_SIZEOF): Define charchar as an
array of 2 chars.
Suggested by Alexandre.

24 years agoProvide a means to display banners in the test suite.
Akim Demaille [Wed, 29 Nov 2000 10:12:05 +0000 (10:12 +0000)] 
Provide a means to display banners in the test suite.
* tests/atgeneral.m4 (AT_INIT): Initialize AT_banner_ordinal.
Execute the epilogue of the tests only if a test was run.
Don't built the value of `at_tests_all' by a for loop: expand
AT_TESTS_ALL.
(AT_SETUP): Build AT_TESTS_ALL.
(AT_BANNER): New.
Adjust all the former banners to use it.
(AT_CHECK): Don't trace the decoding of $?.

24 years ago* tests/atgeneral.m4 (AT_DEFINE, AT_UNDEFINE, AT_SHIFT)
Akim Demaille [Wed, 29 Nov 2000 10:11:38 +0000 (10:11 +0000)] 
* tests/atgeneral.m4 (AT_DEFINE, AT_UNDEFINE, AT_SHIFT)
(AT_INCLUDE): Remove, use the m4_ macros.

24 years ago* m4sugar.m4 (ifval, ifset, ifdef, ifndef, m4_ifvanl): Rename as...
Akim Demaille [Wed, 29 Nov 2000 10:09:44 +0000 (10:09 +0000)] 
* m4sugar.m4 (ifval, ifset, ifdef, ifndef, m4_ifvanl): Rename as...
(m4_ifval, m4_ifset, m4_ifdef, m4_ifndef, m4_ifvaln): this.
(m4_n): New macro.
(m4_ifvaln): Use it.
* autoconf.m4 (ifdef): Restore it.

24 years ago* m4sugar.m4 (m4_errprint, divnum, errprint, esyscmd): Rename as...
Akim Demaille [Wed, 29 Nov 2000 10:05:51 +0000 (10:05 +0000)] 
* m4sugar.m4 (m4_errprint, divnum, errprint, esyscmd): Rename as...
(m4_errprintn, m4_divnum, m4errprint, m4_esyscmd): this.
* autoconf.m4: Restore them.

24 years agoAdded at-setup-line.
Pavel Roskin [Tue, 28 Nov 2000 19:11:24 +0000 (19:11 +0000)] 
Added at-setup-line.

24 years ago* doc/autoconf.texi (Fortran 77 Compiler Characteristics):
Pavel Roskin [Tue, 28 Nov 2000 18:58:15 +0000 (18:58 +0000)] 
* doc/autoconf.texi (Fortran 77 Compiler Characteristics):
Don't suggest obsolete AC_LANG_FORTRAN77.
(Language Choice): Better preamble.

24 years ago* doc/install.texi: Minor changes to eliminate TeX warnings.
Pavel Roskin [Tue, 28 Nov 2000 16:53:56 +0000 (16:53 +0000)] 
* doc/install.texi: Minor changes to eliminate TeX warnings.
* doc/autoconf.texi: Likewise. Typo fixes.

24 years ago* tests/atconfig.in: Move code into...
Akim Demaille [Thu, 23 Nov 2000 09:54:16 +0000 (09:54 +0000)] 
* tests/atconfig.in: Move code into...
* tests/atgeneral.m4 (AT_INIT): here.
Use AS_SHELL_SANITIZE.

24 years agoHave the test suite list of the test groups and their references.
Akim Demaille [Thu, 23 Nov 2000 09:53:52 +0000 (09:53 +0000)] 
Have the test suite list of the test groups and their references.
* tests/atgeneral.m4 (_m4_divert(SUITE_PRO)): Remove, replaced
by...
(_m4_divert(DEFAULT), _m4_divert(OPTIONS), _m4_divert(HELP))
(_m4_divert(SETUP)): these.
(_m4_divert(SUITE_EPI)): Rename as...
(_m4_divert(TAIL)): this.
(AT_INIT): Adjust to the new diversions.
Insert the magic number.
Accept test groups as cli argument.
List the test groups.
Rename TESTS, test, and tests as at_tests_all, at_test, and
at_tests.
Have the debug scripts pass options to test suite.
Remove their banner.
* tests/atspecific.m4: Don't divert to 0.
* suite.at: Don't insert the magic number.

24 years ago* m4sugar.m4 (m4_divert, m4_undivert): Support named diversions.
Akim Demaille [Thu, 23 Nov 2000 09:53:26 +0000 (09:53 +0000)] 
* m4sugar.m4 (m4_divert, m4_undivert): Support named diversions.
* tests/atgeneral.m4 (_m4_divert(SUITE_PRO), _m4_divert(TESTS))
(_m4_divert(SUITE_EPI), _m4_divert(TEST)): New diversions.
Push the first two diversions.
(AT_INIT): Don't.
(AT_INIT, AT_SETUP, AT_CLEANUP): Adjust to use the named
diversions.

24 years ago* tests/atgeneral.m4 (AT_CLEANUP): Factor the computation of
Akim Demaille [Thu, 23 Nov 2000 09:52:58 +0000 (09:52 +0000)] 
* tests/atgeneral.m4 (AT_CLEANUP): Factor the computation of
at_test_count into...
(AT_INIT): here.
Use an sh variable, at_data_files, instead of an hard coded list.

24 years ago* tests/atgeneral.m4 (AT_CLEAN_FILE_IFELSE, AT_CLEANUP_FILE)
Akim Demaille [Thu, 23 Nov 2000 09:52:35 +0000 (09:52 +0000)] 
* tests/atgeneral.m4 (AT_CLEAN_FILE_IFELSE, AT_CLEANUP_FILE)
(AT_CLEANUP_FILES): New macros.
(AT_SETUP, AT_CHECK, AT_CLEANUP): Use them.
(AT_CHECK): Fix a use of at_verbose.
* tests/atspecific.m4 (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER)
(AT_CHECK_CONFIGURE): New macros.

24 years ago* tests/atgeneral.m4 (AT_INIT) <at_verbose>: Be a :/echo variable.
Akim Demaille [Thu, 23 Nov 2000 09:52:08 +0000 (09:52 +0000)] 
* tests/atgeneral.m4 (AT_INIT) <at_verbose>: Be a :/echo variable.
<at_silent>: Remove.
(AT_CLEANUP): Clean up the diversion use.

24 years agoFactor part of the prologue of the tests.
Akim Demaille [Thu, 23 Nov 2000 09:51:33 +0000 (09:51 +0000)] 
Factor part of the prologue of the tests.
* tests/atgeneral.m4 (AT_SETUP, AT_CLEANUP): No longer handle
at_stop_on_error.
(AT_INIT): After having checked whether the test failed, break out
of the loop if requested (-e).

24 years ago* tests/atgeneral.m4 (AT_SETUP): Don't build at-check-line, that's
Akim Demaille [Thu, 23 Nov 2000 09:50:51 +0000 (09:50 +0000)] 
* tests/atgeneral.m4 (AT_SETUP): Don't build at-check-line, that's
AT_CHECK's job.
Remove the code depending upon `at_skip_mode': it's unused.

24 years ago* tests/atconfig.in: Remove the `snippet' marks, there are no
Akim Demaille [Thu, 23 Nov 2000 09:49:57 +0000 (09:49 +0000)] 
* tests/atconfig.in: Remove the `snippet' marks, there are no
longer used.
* tests/atgeneral.m4: Likewise.

24 years agoFactor the epilogue of the tests.
Akim Demaille [Thu, 23 Nov 2000 09:49:08 +0000 (09:49 +0000)] 
Factor the epilogue of the tests.
* tests/atgeneral.m4 (AT_CLEANUP): Move the reading of at_status
into...
(AT_INIT): here, at the end of the `case'.

24 years agoThe debug scripts are only wrapper around testsuite, asking for a
Akim Demaille [Thu, 23 Nov 2000 09:48:28 +0000 (09:48 +0000)] 
The debug scripts are only wrapper around testsuite, asking for a
specific test.
* tests/atgeneral.m4 (AC_INIT) <at_debug>: New variable, new
option, -d, to disable the creation of the debug scripts (when
testsuite was already launched from one).
<at_test_count>: Really compute it instead of using the number of
the last test run.

24 years agoTransform Autotest's body into a `for test; case $test'.
Akim Demaille [Thu, 23 Nov 2000 09:47:45 +0000 (09:47 +0000)] 
Transform Autotest's body into a `for test; case $test'.
As a known side effect, currently any code outside
AT_SETUP/AT_CLEANUP is discarded.
* acgeneral.m4 (_m4_divert(KILL)): Move to...
* m4sugar.m4: here.
* tests/atgeneral.m4 (AT_INIT): Use m4_divert_push/pop instead of
m4_divert.
Put all the tests inside a for;case.
Define TESTS.
(AT_SETUP, AT_CLEANUP): Open/close each case.

24 years agoMove divert and undivert into m4_.
Akim Demaille [Thu, 23 Nov 2000 09:46:48 +0000 (09:46 +0000)] 
Move divert and undivert into m4_.
* m4sugar.m4 (m4_divert, divert, undivert): Rename as...
(m4_divert_text, m4_divert, m4_undivert): this.
* autoconf.m4 (divert, undivert): Restore them for user macros only.

24 years agoMove Autotest on top of M4sh.
Akim Demaille [Thu, 23 Nov 2000 09:45:48 +0000 (09:45 +0000)] 
Move Autotest on top of M4sh.
* tests/atgeneral.m4: Import M4sh.
Adjust the differences on the names of the builtins (define etc.).
(AT_CASE): Remove, use m4_case.
(AT_SETUP): Don't use `AT_group_description', `$1' is OK.
* tests/atspecific.m4 (m4_for, m4_foreach): Remove, use those of
M4sugar.
* tests/m4sugar.at: Strengthen the quotation and adjust to the new
macro names.
* tests/m4sh.at: Ditto.
* tests/torture.at: Ditto.
* tests/base.at: Ditto.
* m4sh.m4: Import M4sugar.
* autoconf.m4: Don't import M4sugar, M4sh does.

24 years ago* acgeneral.m4 (_AC_RUN_IFELSE): `==' in test is not portable,
Pavel Roskin [Mon, 20 Nov 2000 16:50:13 +0000 (16:50 +0000)] 
* acgeneral.m4 (_AC_RUN_IFELSE): `==' in test is not portable,
replace with `='.

24 years agoTypo.
Akim Demaille [Fri, 17 Nov 2000 17:17:56 +0000 (17:17 +0000)] 
Typo.

24 years ago* acgeneral.m4 (_AC_INIT_DEFAULTS): Also include `PATH' and
Akim Demaille [Fri, 17 Nov 2000 17:09:35 +0000 (17:09 +0000)] 
* acgeneral.m4 (_AC_INIT_DEFAULTS): Also include `PATH' and
`/bin/machine' in the log.

24 years agoLet AC_TRY_RUN be more verbose
Akim Demaille [Fri, 17 Nov 2000 16:56:16 +0000 (16:56 +0000)] 
Let AC_TRY_RUN be more verbose
* acgeneral.m4 (_AC_RUN_IFELSE): Instead of canceling the output
of the test program, save it into the log.
Save the exit status, and report it in the log when non zero.
Just use `(./conftest)' instead of `(./conftest; exit)'.

24 years ago* acgeneral.m4 (_AC_INIT_DEFAULTS) <ac_includes_default>: Include
Akim Demaille [Fri, 17 Nov 2000 16:45:24 +0000 (16:45 +0000)] 
* acgeneral.m4 (_AC_INIT_DEFAULTS) <ac_includes_default>: Include
sys/stat.h.
* acspecific.m4 (AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_BLOCKS)
(AC_STRUCT_ST_RDEV): Simplify.
* acfunctions.m4 (AC_FUNC_MMAP): Include sys/stat.h unconditionally.
* doc/autoconf.texi (Default Includes): Adjust.
(Particular Structures) <AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV>:
Adjust.

24 years agoTypo.
Akim Demaille [Thu, 16 Nov 2000 18:04:42 +0000 (18:04 +0000)] 
Typo.

24 years ago* doc/autoconf.texi (Limitations of Usual Tools) <expr>:
Akim Demaille [Thu, 16 Nov 2000 16:30:39 +0000 (16:30 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools) <expr>:
expr 'a' : '(b)'.
From Paul Eggert.

24 years agoReorder the test suite so that low level features are tested
Akim Demaille [Thu, 16 Nov 2000 14:56:17 +0000 (14:56 +0000)] 
Reorder the test suite so that low level features are tested
before high level ones.
* tests/semantics.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
(missing templates): Move to...
* tests/torture.at: here.
Reorder the file so that the torture test is last.
* tests/semantics.at (AC_TRY_LINK_FUNC, AC_PROG_CPP with warnings)
(AC_PROG_CPP without warnings): Move to...
* tests/compile.at: here, new file.
* tests/suite.at: Run `torture' and then `compile' before
`semantics'.

24 years ago* acspecific.m4 (AC_SYS_LARGEFILE): _AC_SYS_LARGEFILE_SOURCE no
Akim Demaille [Thu, 16 Nov 2000 10:30:02 +0000 (10:30 +0000)] 
* acspecific.m4 (AC_SYS_LARGEFILE): _AC_SYS_LARGEFILE_SOURCE no
longer exist.

24 years agoPOSIX doesn't require s/[^/]// to work.
Akim Demaille [Thu, 16 Nov 2000 10:12:50 +0000 (10:12 +0000)] 
POSIX doesn't require s/[^/]// to work.
From Paul Eggert and Johan Danielsson.
* doc/autoconf.texi (Limitations of Usual Tools) <sed>:
Reorganize.  Document this issue.
* autoupdate.sh (dir): Use `,' as separator instead of `/'
* autoreconf.sh: Likewise.
* autoupdate.sh: Ditto.

24 years ago* m4/largefile.m4 (_AC_SYS_LARGEFILE_SOURCE): Remove, replaced by...
Akim Demaille [Thu, 16 Nov 2000 08:52:54 +0000 (08:52 +0000)] 
* m4/largefile.m4 (_AC_SYS_LARGEFILE_SOURCE): Remove, replaced by...
(_AC_SYS_LARGEFILE_TEST_INCLUDES): this.
(AC_SYS_LARGEFILE_MACRO_VALUE): Use AC_LANG_PROGRAM instead of
_AC_SYS_LARGEFILE_SOURCE, i.e., don't pass
_AC_SYS_LARGEFILE_TEST_INCLUDES by default: this isn't desirable
when checking for fseeko.
(AC_SYS_LARGEFILE): Pass AC_SYS_LARGEFILE_TEST_INCLUDES to
_AC_SYS_LARGEFILE_MACRO_VALUE, since it no longer does this for us.

24 years agoProvide a means for escaping the forbidden patterns test.
Akim Demaille [Thu, 16 Nov 2000 08:33:46 +0000 (08:33 +0000)] 
Provide a means for escaping the forbidden patterns test.
* tests/tools.at (Forbidden tokens): Test m4_token_allow.
* m4sugar.m4 (m4_file_append, m4_token_allow): New macros.
* autoconf.sh (task script): Pass `tmp' and `verbose' to
finalize.awk.
(finalize.awk::check_patterns): Eve out from the body.
(finalize.awk): Read `$tmp/tokens_allowed', and don't complain for
these exceptions.

24 years agos/Free BSD/FreeBSD/.
Akim Demaille [Tue, 14 Nov 2000 16:26:02 +0000 (16:26 +0000)] 
s/Free BSD/FreeBSD/.

24 years ago* acspecific.m4 (AC_SYS_LARGEFILE): Don't worry about
Akim Demaille [Tue, 14 Nov 2000 16:01:05 +0000 (16:01 +0000)] 
* acspecific.m4 (AC_SYS_LARGEFILE): Don't worry about
whether fseeko and ftello are properly declared.
* acfunctions.m4 (AC_FUNC_FSEEKO): New macro, which worries about
fseeko (and presumably ftello).  Do not set _XOPEN_SOURCE; that
causes too many problems in practice.
* acfunctions (fteelo, fseeko): Trigger AC_FUNC_FSEEKO.
* doc/autoconf.texi: Adjust.

24 years ago* doc/autoconf.texi (Limitations of Builtins): Comment `true'.
Akim Demaille [Tue, 14 Nov 2000 14:22:13 +0000 (14:22 +0000)] 
* doc/autoconf.texi (Limitations of Builtins): Comment `true'.

24 years ago* BUGS: New file.
Akim Demaille [Tue, 14 Nov 2000 13:25:35 +0000 (13:25 +0000)] 
* BUGS: New file.
Be sure to read this file if you're using a non released Autoconf.
* tests/tools.at (Syntax of the scripts): The non built tools are
in `$top_srcdir', not `..'.
(autoconf --trace): When using `-i' we need the src tree, not the
build tree.

24 years agoA single m4_require is enough.
Akim Demaille [Tue, 14 Nov 2000 11:06:37 +0000 (11:06 +0000)] 
A single m4_require is enough.
* m4sugar.m4 (_m4_require): $2 defaults to $1.
Rename as...
(m4_require): this.
* acgeneral.m4 (_AC_REQUIRE): Remove, use m4_require if you want
to get into the gory details.