]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
25 years ago* tests/atgeneral.m4: Don't redirect builtins' stderr as Ultrix
Akim Demaille [Mon, 29 Jan 2001 15:30:11 +0000 (15:30 +0000)] 
* tests/atgeneral.m4: Don't redirect builtins' stderr as Ultrix
hates this: use a subshell.

25 years ago* m4sh.m4 (_AS_TEST_PREPARE): Discard output when testing `test
Akim Demaille [Mon, 29 Jan 2001 15:24:10 +0000 (15:24 +0000)] 
* m4sh.m4 (_AS_TEST_PREPARE): Discard output when testing `test
-x' and `test -f' to avoid confusing users with error messages.
(AS_MKDIR_P): Invert order of separators in IFS to avoid problem
with some shells adding backslash between fields and parsing the
result for escapes.
* doc/autoconf.texi (Special Shell Variables): Document IFS.

25 years agoTypos.
Akim Demaille [Mon, 29 Jan 2001 14:04:32 +0000 (14:04 +0000)] 
Typos.

25 years ago* aclang.m4 (AC_PROG_F77): Improve documentation of the compilers
Akim Demaille [Mon, 29 Jan 2001 11:54:43 +0000 (11:54 +0000)] 
* aclang.m4 (AC_PROG_F77): Improve documentation of the compilers
that are tried, add a few new ones (cft77, af77, epcf90, xlf95, g95),
and put pgf90 in the right place (before the F95 compilers).

25 years ago* autoscan.pl: Do scan `configure.ac' when you claim it.
Akim Demaille [Mon, 29 Jan 2001 09:50:01 +0000 (09:50 +0000)] 
* autoscan.pl: Do scan `configure.ac' when you claim it.
From Raja R Harinath.
(@kinds): Use `qw', rather than lots of quotes and commas.
(%generic_macro): Use single quotes around literals.
($configure_scan): Define global, and use it instead of the literal.
Use `warn' in place of `printf STDERR'.

25 years ago* autoscan.pl: `Formatting++' changes: prototypes all the
Akim Demaille [Mon, 29 Jan 2001 09:24:13 +0000 (09:24 +0000)] 
* autoscan.pl: `Formatting++' changes: prototypes all the
functions, no longer use `&' to call functions as it disables
prototype checking, topological sort so that functions are defined
before being used, and put an Autoconf like nice comment to
describe the functions.
(output): Accept an CONFIGURE_SCAN parameters, and open CONF.

25 years ago* acgeneral.m4 (AC_SITE_LOAD): Let config.log know what you load.
Akim Demaille [Mon, 29 Jan 2001 09:23:11 +0000 (09:23 +0000)] 
* acgeneral.m4 (AC_SITE_LOAD): Let config.log know what you load.

25 years agoFollow Tim Van Holder's suggestions for a uniform handling of
Akim Demaille [Sat, 27 Jan 2001 13:19:14 +0000 (13:19 +0000)] 
Follow Tim Van Holder's suggestions for a uniform handling of
symlinks.
* m4sh.m4: Stay in `as_', not `ac_'.
(_AS_LN_S_PREPARE): Eve out from...
* acspecific.m4 (AC_PROG_LN_S): here.  Adjust.
* m4sh.m4 (AS_LN_S): New.
(AS_SHELL_PREPARE): Call _AS_LN_S_PREPARE.

25 years ago* autoreconf.sh (find): Fix precedence.
Akim Demaille [Fri, 26 Jan 2001 16:10:42 +0000 (16:10 +0000)] 
* autoreconf.sh (find): Fix precedence.
(aclocal): Same as below for autoheader.

25 years ago* autoreconf.sh (autoheader): Run it when there is no template, as
Akim Demaille [Fri, 26 Jan 2001 14:42:14 +0000 (14:42 +0000)] 
* autoreconf.sh (autoheader): Run it when there is no template, as
there is no risk to override a handwritten template.
From Assar Westerlund.

25 years ago* aclang.m4: dnl AC_ARG_VAR's newline.
Akim Demaille [Fri, 26 Jan 2001 14:34:04 +0000 (14:34 +0000)] 
* aclang.m4: dnl AC_ARG_VAR's newline.
(AC_PROG_CC, AC_PROG_F77, AC_PROG_CXX): AC_ARG_VAR(LDFLAGS).
* acgeneral.m4 (AC_CHECK_LIB): Don't do it.

25 years ago* tests/mktests.sh: Handle DOS issues: directory separator, single
Akim Demaille [Fri, 26 Jan 2001 11:59:49 +0000 (11:59 +0000)] 
* tests/mktests.sh: Handle DOS issues: directory separator, single
dot in file names, and one actual bug: when set -e, running
(false; true) will of course fail, use (false || true).
From Tim Van Holder.

25 years ago* tests/Makefile.am (testsuite): Use testsuite.tmp, not
Akim Demaille [Fri, 26 Jan 2001 11:50:23 +0000 (11:50 +0000)] 
* tests/Makefile.am (testsuite): Use testsuite.tmp, not
testsuite-tmp as temporary file.

25 years agoUpdate.
Akim Demaille [Fri, 26 Jan 2001 11:46:23 +0000 (11:46 +0000)] 
Update.

25 years ago* autoreconf.sh: Also find configure.in.
Akim Demaille [Thu, 25 Jan 2001 16:02:08 +0000 (16:02 +0000)] 
* autoreconf.sh: Also find configure.in.

25 years ago* configure.in: Bump to 2.49d.
Akim Demaille [Wed, 24 Jan 2001 18:23:24 +0000 (18:23 +0000)] 
* configure.in: Bump to 2.49d.

25 years agoVersion 2.49c.
Akim Demaille [Wed, 24 Jan 2001 18:11:57 +0000 (18:11 +0000)] 
Version 2.49c.

25 years ago* autoscan.pl (output): Detect/report a close failure.
Akim Demaille [Wed, 24 Jan 2001 17:44:59 +0000 (17:44 +0000)] 
* autoscan.pl (output): Detect/report a close failure.

25 years agoUpdate.
Akim Demaille [Wed, 24 Jan 2001 13:49:39 +0000 (13:49 +0000)] 
Update.

25 years agoPreserve INSTALL too.
Akim Demaille [Wed, 24 Jan 2001 13:41:52 +0000 (13:41 +0000)] 
Preserve INSTALL too.
* acgeneral.m4 (_AC_OUTPUT_FILES): Use ac_INSTALL for internal
computations, and therefore use INSTALL where ac_given_INSTALL
was used.
(_AC_OUTPUT_SUBDIRS): There is no point in computing INSTALL in
here.  It's not even used.

25 years agoWhile preserved in configure, srcdir is trashed in config.status.
Akim Demaille [Wed, 24 Jan 2001 13:19:10 +0000 (13:19 +0000)] 
While preserved in configure, srcdir is trashed in config.status.
Reported by Ralf Corsepius.
* tests/aclocal.m4 (AC_STATE_SAVE): It is ok to modify
CONFIG_STATUS, DEFS, prefix and exec_prefix.
It is OK to produce config.* files.
* tests/atspecific.m4 (AT_CONFIGURE_AC): Save the env *after*
AC_OUTPUT to check that it doesn't break anything by itself.
* tests/torture.m4 (srcdir): New test, from Ralf Corsepius.
* acgeneral.m4 (_AC_OUTPUT_FILES): Use ac_top_srcdir and ac_srcdir
to preserve srcdir and top_srcdir.
Remove any use of `ac_given_srcdir' as `$srcdir' being preserved
is usable.

25 years agoconfigure -q did not work since 2000-11-03.
Akim Demaille [Wed, 24 Jan 2001 10:04:47 +0000 (10:04 +0000)] 
configure -q did not work since 2000-11-03.
* acgeneral.m4 (_AC_INIT_DEFAULTS_FDS): Don't check for $silent,
tie AS_MESSAGE_FD to stdout unconditionally.
(_AC_INIT_PARSE_ARGS): If $silent redirect AS_MESSAGE_FD to
/dev/null.
* tests/base.at (AC_CACHE_CHECK): New test.

25 years agoUpdate.
Akim Demaille [Wed, 24 Jan 2001 09:10:51 +0000 (09:10 +0000)] 
Update.

25 years ago* m4sh.m4 (AS_EXECUTABLE_P, _AS_TEST_PREPARE): New macros.
Akim Demaille [Wed, 24 Jan 2001 08:24:44 +0000 (08:24 +0000)] 
* m4sh.m4 (AS_EXECUTABLE_P, _AS_TEST_PREPARE): New macros.
(AS_SANITIZE_SHELL): Call _AS_TEST_PREPARE.
* acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Use AS_EXECUTABLE_P
instead of test -f.

25 years ago* autoscan.pl (generic_macro): s/AC_CHECK_FUNCTIONS/AC_CHECK_FUNCS/.
Akim Demaille [Wed, 24 Jan 2001 07:58:59 +0000 (07:58 +0000)] 
* autoscan.pl (generic_macro): s/AC_CHECK_FUNCTIONS/AC_CHECK_FUNCS/.
* acfunctions: Just like the previous patch.

25 years ago* autoscan.pl (@kinds, %generic_macro): New.
Akim Demaille [Wed, 24 Jan 2001 07:58:46 +0000 (07:58 +0000)] 
* autoscan.pl (@kinds, %generic_macro): New.
(&init_tables): Use them.
* acheaders: Run `autoconf -t AC_CHECK_HEADERS:'$1'' on the fileutils,
and include all these headers in here.
Don't specify `AC_CHECK_HEADERS' as it's the default.

25 years ago* autoscan.pl: Just like the previous patch, but for
Akim Demaille [Wed, 24 Jan 2001 07:58:31 +0000 (07:58 +0000)] 
* autoscan.pl: Just like the previous patch, but for
AC_CHECK_FUNCS, AC_CHECK_TYPES, and AC_CHECK_MEMBERS.

25 years ago* autoscan.pl (print_unique): Push all the macro invocation
Akim Demaille [Wed, 24 Jan 2001 07:58:16 +0000 (07:58 +0000)] 
* autoscan.pl (print_unique): Push all the macro invocation
locations.
(output_headers): For headers that need to be checked, push either
the specialized macro, or the generic macro call.
(check_configure_ac): Handle AC_CHECK_HEADERS.

25 years agoTypo.
Akim Demaille [Wed, 24 Jan 2001 07:57:35 +0000 (07:57 +0000)] 
Typo.

25 years agoSome non-srcdir build fixes.
Akim Demaille [Wed, 24 Jan 2001 07:54:32 +0000 (07:54 +0000)] 
Some non-srcdir build fixes.
* configure.in (BUGS): Look for file in $srcdir.
* tests/Makefile.am (MACRO_FILES): Use '..', not '$(top_srcdir)'.

25 years agoDon't AC_SUBST too much, as it makes Automake include those
Akim Demaille [Wed, 24 Jan 2001 07:50:55 +0000 (07:50 +0000)] 
Don't AC_SUBST too much, as it makes Automake include those
variables in Makefiles, and drives autoscan to require unneeded
programs.
* acgeneral.m4 (_AC_INIT_PREPARE): Don't AC_SUBST CFLAGS,
CPPFLAGS, CXXFLAGS and LDFLAGS.
(AC_ARG_VAR): AC_SUBST the var.
Document it only once, even if there are several different docs.
* aclang.m4 (AC_PROG_CPP): Declare CPP and CPPFLAGS to AC_ARG_VAR.
(AC_PROG_CXXCPP): Declare CXXCPP and CPPFLAGS.

25 years ago* m4sugar.m4 (m4_expand_once): Accept a witness.
Akim Demaille [Wed, 24 Jan 2001 07:47:12 +0000 (07:47 +0000)] 
* m4sugar.m4 (m4_expand_once): Accept a witness.

25 years ago* acgeneral.m4 (AC_EXPAND_ONCE): Remove, use m4_expand_once.
Akim Demaille [Tue, 23 Jan 2001 17:04:35 +0000 (17:04 +0000)] 
* acgeneral.m4 (AC_EXPAND_ONCE): Remove, use m4_expand_once.
(AC_DIVERT_ONCE): Move to...
* m4sugar.m4 (m4_expand_once): here.

25 years ago* aclang.m4 (_AC_LANG_SET): Turn off optimizations.
Akim Demaille [Tue, 23 Jan 2001 16:50:19 +0000 (16:50 +0000)] 
* aclang.m4 (_AC_LANG_SET): Turn off optimizations.

25 years agoUn-private joke.
Akim Demaille [Tue, 23 Jan 2001 14:11:02 +0000 (14:11 +0000)] 
Un-private joke.

25 years ago* configure.in: If this is a beta, dump the core of BUGS.
Akim Demaille [Tue, 23 Jan 2001 12:53:52 +0000 (12:53 +0000)] 
* configure.in: If this is a beta, dump the core of BUGS.
* tests/base.at (AC_REQUIRE & AC_LANG): New test, currently failing.

25 years ago* autoscan.pl: Don't use `defined' to check whether an array is
Akim Demaille [Tue, 23 Jan 2001 10:28:29 +0000 (10:28 +0000)] 
* autoscan.pl: Don't use `defined' to check whether an array is
defined.
Don't use parens with `defined'.

25 years ago* acgeneral.m4 (_AC_INIT_PREPARE): Be sure to quote hashes to
Akim Demaille [Tue, 23 Jan 2001 09:49:33 +0000 (09:49 +0000)] 
* acgeneral.m4 (_AC_INIT_PREPARE): Be sure to quote hashes to
avoid M4 thinking it's comments.

25 years agoUpdate.
Akim Demaille [Tue, 23 Jan 2001 09:27:30 +0000 (09:27 +0000)] 
Update.

25 years ago* aclang.m4 (_AC_COMPILER_EXEEXT_O): Use
Akim Demaille [Tue, 23 Jan 2001 08:44:49 +0000 (08:44 +0000)] 
* aclang.m4 (_AC_COMPILER_EXEEXT_O): Use
AS_IF([AC_TRY_EVAL(ac_link)]) instead of AC_LINK_IFELSE to
avoid depending on ac_exeext before it's found.
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Check for the
executable extension BEFORE checking whether the compiler
works, as that test depends on a correct ac_exeext.

25 years ago* acgeneral.m4 (_AC_INIT_PREPARE) <trap>: Typo.
Akim Demaille [Tue, 23 Jan 2001 01:34:08 +0000 (01:34 +0000)] 
* acgeneral.m4 (_AC_INIT_PREPARE) <trap>: Typo.

25 years ago* autoscan.pl: Use "use strict". Declare all global variables
Pavel Roskin [Mon, 22 Jan 2001 20:21:33 +0000 (20:21 +0000)] 
* autoscan.pl: Use "use strict". Declare all global variables
or make them private. Make all local variables private.
(find_autoconf): New, moved some code from the top level.
Use %ENV outside quotes to eliminate a warning.

25 years ago* acspecific.m4 (AC_PROG_LN_S): Detect DJGPP < 2.04, which only
Akim Demaille [Mon, 22 Jan 2001 19:21:58 +0000 (19:21 +0000)] 
* acspecific.m4 (AC_PROG_LN_S): Detect DJGPP < 2.04, which only
supports 'ln -s' for executables.

25 years ago* autoscan.pl ($dir, $autoconf): New.
Akim Demaille [Mon, 22 Jan 2001 19:05:16 +0000 (19:05 +0000)] 
* autoscan.pl ($dir, $autoconf): New.

25 years ago* autoscan.pl ($headers, $functions, $identifiers, $libraries):
Akim Demaille [Mon, 22 Jan 2001 19:04:47 +0000 (19:04 +0000)] 
* autoscan.pl ($headers, $functions, $identifiers, $libraries):
Also register locations of their requirement instead of a simple
counter.
(&check_configure_ac): Close TRACES.

25 years ago* autoscan.pl: Formatting changes.
Akim Demaille [Mon, 22 Jan 2001 19:04:00 +0000 (19:04 +0000)] 
* autoscan.pl: Formatting changes.
Check `configure.ac' or `configure.in' if present.

25 years ago* autoscan.pl (&wanted): Don't register `Makefile' when
Akim Demaille [Mon, 22 Jan 2001 19:01:40 +0000 (19:01 +0000)] 
* autoscan.pl (&wanted): Don't register `Makefile' when
`Makefile.in' is present.
Factor the simplification of $name.
(&scan_makefile, &scan_sh_file): Instead of counting the number of
occurrences where a program/makevar is wanted, register file:line.
Adjust the verbose output.
(&check_configure_ac): Report the location where the macro is required.

25 years ago* autoscan.pl: Instead of undefined globals, set them to empty
Akim Demaille [Mon, 22 Jan 2001 19:01:23 +0000 (19:01 +0000)] 
* autoscan.pl: Instead of undefined globals, set them to empty
values.
(%needed_macros): New.
(&check_configure_ac): New.  Call it.
(&output_libraries): Eve out from &output_programs.
(&print_unique): For the time being register in %needed_macros
only argument less macros.

25 years ago* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no declaration,
Akim Demaille [Mon, 22 Jan 2001 14:29:24 +0000 (14:29 +0000)] 
* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no declaration,
then '#include <stdlib.h>', before trying the explicit declarations.

25 years ago* acgeneral.m4 (_AC_COMPILE_IFELSE): Wrap the test -s in
Akim Demaille [Mon, 22 Jan 2001 14:07:09 +0000 (14:07 +0000)] 
* acgeneral.m4 (_AC_COMPILE_IFELSE): Wrap the test -s in
AC_TRY_COMMAND to improve config.log.
(_AC_INIT_DEFAULTS): Don't define ac_exeext and ac_objext to
highlight failures.

25 years agoMore patterns.
Akim Demaille [Mon, 22 Jan 2001 11:18:11 +0000 (11:18 +0000)] 
More patterns.

25 years ago* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently
Akim Demaille [Mon, 22 Jan 2001 11:14:37 +0000 (11:14 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently
impossible to describe bug of SunOS 4.1.3 which causes a shell
crash when using `VAR=${VAR="$default"}'.
Reported and diagnosed by Kevin Ryde.

25 years ago* acfunctions.m4 (AC_FUNC_GETGROUPS): Typo :(.
Akim Demaille [Mon, 22 Jan 2001 10:13:15 +0000 (10:13 +0000)] 
* acfunctions.m4 (AC_FUNC_GETGROUPS): Typo :(.

25 years ago* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O):
Akim Demaille [Mon, 22 Jan 2001 09:10:55 +0000 (09:10 +0000)] 
* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O):
Export ac_cv_exeext so ltconfig believes the value is cached and
skips its own faulty test.

25 years ago* actypes.m4 (AC_TYPE_GETGROUPS): Double quote the test program
Akim Demaille [Mon, 22 Jan 2001 09:09:21 +0000 (09:09 +0000)] 
* actypes.m4 (AC_TYPE_GETGROUPS): Double quote the test program
body.

25 years ago* aclang.m4 (AC_LANG_INT_SAVE, AC_LANG_INT_SAVE(C)): Use
Akim Demaille [Mon, 22 Jan 2001 09:06:11 +0000 (09:06 +0000)] 
* aclang.m4 (AC_LANG_INT_SAVE, AC_LANG_INT_SAVE(C)): Use
conftest.val, not conftestval.
* acgeneral.m4 (_AC_COMPUTE_INT_RUN, _AC_COMPUTE_INT):
Likewise.

25 years agoCreate actypes.m4.
Akim Demaille [Mon, 22 Jan 2001 09:04:58 +0000 (09:04 +0000)] 
Create actypes.m4.
* acgeneral.m4 (AC_CHECK_SIZEOF, _AC_CHECK_TYPE_NEW)
(AC_CHECK_TYPES, _AC_CHECK_TYPE_OLD)
(_AC_CHECK_TYPE_REPLACEMENT_TYPE_P, _AC_CHECK_TYPE_MAYBE_TYPE_P)
(AC_CHECK_TYPE, AC_CHECK_MEMBER, AC_CHECK_MEMBERS): Move into...
* actypes.m4: here.
* acgeneral.m4 (AC_TYPE_GETGROUPS, AM_TYPE_PTRDIFF_T)
(AC_TYPE_UID_T, AC_TYPE_SIZE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T)
(AC_TYPE_MODE_T, AC_INT_16_BITS, AC_LONG_64_BITS, AC_TYPE_SIGNAL)
(AC_STRUCT_TM, AC_STRUCT_TIMEZONE, AC_STRUCT_ST_BLKSIZE)
(AC_STRUCT_ST_BLOCKS, AC_STRUCT_ST_RDEV): Move into...
* actypes.m4: here.
Adjust the test suite.

25 years ago* tests/atgeneral.m4 (AT_INIT): Include a default case for non
Akim Demaille [Mon, 22 Jan 2001 09:03:38 +0000 (09:03 +0000)] 
* tests/atgeneral.m4 (AT_INIT): Include a default case for non
existing tests.
* tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_ENV)
(AT_CHECK_AUTOUPDATE, AT_CHECK_AU_MACRO): New.
Spread their use.
(AT_CHECK_MACRO): Pass `-W obsolete' to autoconf.
* tests/semantics.at (AC_HAVE_FUNCS): Obsolete, don't check.
* tests/mktest.sh: Create one test file per Autoconf source
file instead of separating syntax/update.

25 years ago* doc/autoconf.texi: Some about diff and cmp.
Akim Demaille [Mon, 22 Jan 2001 08:59:14 +0000 (08:59 +0000)] 
* doc/autoconf.texi: Some about diff and cmp.

25 years ago* sh.m4 (AS_ESCAPE): New.
Akim Demaille [Mon, 22 Jan 2001 08:59:02 +0000 (08:59 +0000)] 
* sh.m4 (AS_ESCAPE): New.
(_AS_QUOTE_IFELSE): Use it.
* tests/atgeneral.m4 (AT_INIT) <SHELL>: Define and use.
<--help> Don't display the options help when tests were selected.
Document -d.
<at_skip_list>: New.
<testsuite.log>: Give a banner, include ChangeLog snippets, list
the failed and skipped tests.
Remove useless $at_traceoff in sub shells, this improves the
readability of the traces by removing testsuite's implementation
details.
(AT_CHECK): Filter out the shell traces from the tested command's
stderr.
Use AS_ESCAPE.
Don't register experr and expout for clean up, as it's hairy and
easier to do from...
Support STDOUT = stdout, and STDERR = stderr.
Force the output of shell traces.
(AT_INIT): Here.

25 years ago* acgeneral.m4 (AC_INIT, AC_OUTPUT): Don't take care of completing
Akim Demaille [Mon, 22 Jan 2001 08:58:47 +0000 (08:58 +0000)] 
* acgeneral.m4 (AC_INIT, AC_OUTPUT): Don't take care of completing
the log.
(_AC_INIT_PREPARE): Do it in the trap 0.

25 years agoTim Van Holder <tim.van.holder@pandora.be>,
Akim Demaille [Mon, 22 Jan 2001 08:49:02 +0000 (08:49 +0000)] 
Tim Van Holder  <tim.van.holder@pandora.be>,
Jim Meyering <jim@meyering.net>
* acspecific.m4 (AC_AIX): Fix typo: s/@$/@%/.

25 years agoCatch only used patterns.
Akim Demaille [Fri, 19 Jan 2001 14:35:06 +0000 (14:35 +0000)] 
Catch only used patterns.
Reported by the whole Autoconf community.
* m4sh.m4 (AS_INIT): New.
* acgeneral.m4 (AC_PLAIN_SCRIPT): Use it.
Forbid only AC, AU, AH and AM.

25 years agoOptimizing AC_LANG was broken. Test and fix.
Akim Demaille [Fri, 19 Jan 2001 14:03:14 +0000 (14:03 +0000)] 
Optimizing AC_LANG was broken.  Test and fix.
* aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77)): Don't
use _AC_LANG_ABBREV so that you don't depend upon _AC_LANG.
(_AC_LANG_SET): New.
(AC_LANG, AC_LANG_PUSH, AC_LANG_POP): Use it.
* tests/compile.at: Test AC_LANG, AC_LANG_PUSH & AC_LANG_POP.

25 years ago* sugar.m4 (m4_require): Missing dnl.
Akim Demaille [Fri, 19 Jan 2001 11:27:40 +0000 (11:27 +0000)] 
* sugar.m4 (m4_require): Missing dnl.

25 years ago* acgeneral.m4 (AC_PLAIN_SCRIPT): AF_INET, AF_UNIX, AR_FLAGS,
Akim Demaille [Thu, 18 Jan 2001 15:30:35 +0000 (15:30 +0000)] 
* acgeneral.m4 (AC_PLAIN_SCRIPT): AF_INET, AF_UNIX, AR_FLAGS,
AS_FLAGS are OK.

25 years agoRebuilt to remove references to libtool.
Pavel Roskin [Thu, 18 Jan 2001 15:17:19 +0000 (15:17 +0000)] 
Rebuilt to remove references to libtool.

25 years ago* m4sh.m4 (AS_MKDIR_P): Properly support DOS-style paths.
Akim Demaille [Thu, 18 Jan 2001 13:30:46 +0000 (13:30 +0000)] 
* m4sh.m4 (AS_MKDIR_P): Properly support DOS-style paths.

25 years ago* tests/foreign.at (Autoconf & Libtool): `configure.in', not `.ac'
Akim Demaille [Thu, 18 Jan 2001 13:16:02 +0000 (13:16 +0000)] 
* tests/foreign.at (Autoconf & Libtool): `configure.in', not `.ac'
since Libtool does not yet support it.
Let the test suite be more verbose about at-path.
From Patrick Welche.

25 years ago* tests/atspecific.m4 (AT_CHECK_DEFINES): Discard
Akim Demaille [Thu, 18 Jan 2001 10:00:00 +0000 (10:00 +0000)] 
* tests/atspecific.m4 (AT_CHECK_DEFINES): Discard
STDLIB|INTTYPES|MEMORY|STRING|UNISTD.
* tests/semantics.at (AC_CHECK_SIZEOF): Don't check the presence
of default headers, as it's machine dependent.
Reported by Jim Meyering and Nicolas Joly.

25 years ago* acgeneral.m4: Don't leave macro names in comments.
Akim Demaille [Thu, 18 Jan 2001 09:30:10 +0000 (09:30 +0000)] 
* acgeneral.m4: Don't leave macro names in comments.
* aclang.m4: Likewise.
* configure.in: Likewise.
* tests/semantics.at: Likewise.
* tests/tools.at: Likewise.

25 years agoMedium term goal: AC_ macros can be tested with -W obsolete.
Akim Demaille [Thu, 18 Jan 2001 09:16:39 +0000 (09:16 +0000)] 
Medium term goal: AC_ macros can be tested with -W obsolete.
* acgeneral.m4 (AC_RUN_IFELSE): Accept IF-CROSS-COMPILING.
(AC_TRY_RUN): Use it.
* acfunctions.m4: Start ousting AC_TRY_RUN and AC_TRY_COMPILE.
* acspecific.m4 (AC_AIX, AC_MINIX, AC_ISC_POSIX): AC_BEFORE on
AC_COMPILE_IFELSE and AC_RUN_IFELSE.

25 years ago* acgeneral.m4 (AC_INCLUDES_DEFAULT): Force the newline to avoid
Akim Demaille [Thu, 18 Jan 2001 09:16:25 +0000 (09:16 +0000)] 
* acgeneral.m4 (AC_INCLUDES_DEFAULT): Force the newline to avoid
bad surprises.
Reported by Jim.

25 years agoRequire a perfect divert push/pop balance.
Akim Demaille [Thu, 18 Jan 2001 09:16:08 +0000 (09:16 +0000)] 
Require a perfect divert push/pop balance.
* m4sugar.m4 (m4_divert, m4_divert_push, m4_divert_pop): Keep
track of them in m4_divert_stack.
(m4_divert_pop): Accept the expected current diversion as
argument and m4_fatal if incorrect, or if there is nothing to pop.
(globally): Specify the known m4_divert_pop.
Preserve symbolic values when possible.
* acgeneral.m4: No longer push the first diversion.
Specify the known m4_divert_pop.
(AC_PLAIN_SCRIPT): When m4_divert_push a diversion, m4_wrap its
pop.
(AC_INIT): Run AC_PLAIN_SCRIPT first, not last.
* tests/m4sh.at (AS_DIRNAME & AS_DIRNAME_SED): Can't use m4_defun
without m4_init.
* m4sugar.m4: Likewise.

25 years ago* m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Unlike the
Akim Demaille [Thu, 18 Jan 2001 09:15:52 +0000 (09:15 +0000)] 
* m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Unlike the
builtin, fail on undefined symbols.
* tests/torture.at (Torturing config.status): Stop playing nasty
tricks with changequote.
(AC_DEFUBST): Move here from...
* tests/aclocal.m4: there.

25 years agoVarious cleanups and consistency checks.
Akim Demaille [Thu, 18 Jan 2001 09:15:31 +0000 (09:15 +0000)] 
Various cleanups and consistency checks.
* m4sugar.m4: Formatting changes.
* acgeneral.m4 (AC_DIVERT_PUSH, AC_DIVERT_POP, AC_REQUIRE)
(AC_DIAGNOSE, AC_FATAL, AC_MSG_WARN, AC_MSG_NOTICE, AC_MSG_ERROR):
Use m4_copy to define them, in order to keep a good $0.
(AC_INIT): AC_LANG_PUSH C, not AC_LANG, to initialize the stack.
* aclang.m4 (AC_LANG_PUSH): Dont't use m4_defn on undefined macros.
(AC_LANG_POP): Admit an argument specifying the language we quit
when popping.
Adjust Autoconf's AC_LANG_POPs.
* tests/tools.at (AWK portability): Don't depend on AC_INIT.
(autoconf --trace: user macros): Obviously I
meant TRACE1, not AC_TRACE1.

25 years ago* m4sugar.m4 (m4_undefine, m4_popdef): Don't tolerate undefined
Akim Demaille [Wed, 17 Jan 2001 15:26:42 +0000 (15:26 +0000)] 
* m4sugar.m4 (m4_undefine, m4_popdef): Don't tolerate undefined
arguments.
(_m4_expansion_stack): Rename as...
(m4_expansion_stack): this, and change its value: instead of using
the pushdef stack to stack each *line* of the stack, each
definition contains the whole stack.  I.e., to display the whole
stack, instead of popdefing and displaying each definition, just
display the current definition.
(m4_expansion_stack_push, m4_expansion_stack_pop): New.
* tests/atspecific.m4 (AT_CHECK_AUTOCONF): Let $2 be the expected
exit status.
* tests/m4sugar.m4 (m4_require: circular dependencies): New test.

25 years ago* m4sugar.m4 (m4_normalize): New macro - superposition of
Pavel Roskin [Wed, 17 Jan 2001 15:23:31 +0000 (15:23 +0000)] 
* m4sugar.m4 (m4_normalize): New macro - superposition of
m4_flatten and m4_strip.
(m4_join): Use m4_normalize.
* acgeneral.m4 (AC_FOREACH): Use m4_normalize.
(AC_CONFIG_HEADERS): Normalize the first argument.
(AC_CONFIG_LINKS): Likewise.
(AC_CONFIG_SUBDIRS): Likewise.

25 years ago* acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_sub_srcdir in case
Akim Demaille [Wed, 17 Jan 2001 08:54:52 +0000 (08:54 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_sub_srcdir in case
it has IFS characters.

25 years agoRebuilt.
Pavel Roskin [Tue, 16 Jan 2001 21:13:11 +0000 (21:13 +0000)] 
Rebuilt.

25 years agoWork around the Ultrix limitations on ``multiple redirections''.
Akim Demaille [Tue, 16 Jan 2001 20:46:00 +0000 (20:46 +0000)] 
Work around the Ultrix limitations on ``multiple redirections''.
Reported by Harlan Stenn.
* acgeneral.m4 (_AC_EVAL_STDERR): New.
(_AC_PREPROC_IFELSE): Use it.

25 years ago* tests/atgeneral.m4 (AT_data_files): Fix the computation of PATH.
Akim Demaille [Tue, 16 Jan 2001 13:48:55 +0000 (13:48 +0000)] 
* tests/atgeneral.m4 (AT_data_files): Fix the computation of PATH.

25 years ago* acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Eve out from AC_OUTPUT.
Akim Demaille [Tue, 16 Jan 2001 10:46:37 +0000 (10:46 +0000)] 
* acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Eve out from AC_OUTPUT.
(_AC_INIT_DEFAULTS, AC_OUTPUT): Use it.

25 years ago* doc/autoconf.texi: Lots of additions and changes.
Akim Demaille [Tue, 16 Jan 2001 10:45:22 +0000 (10:45 +0000)] 
* doc/autoconf.texi: Lots of additions and changes.
(File Descriptors): New.
(Limitations of Make): New.

25 years ago* m4sh.m4 (AS_EXIT): Don't rely on exit == exit $?.
Akim Demaille [Tue, 16 Jan 2001 10:27:19 +0000 (10:27 +0000)] 
* m4sh.m4 (AS_EXIT): Don't rely on exit == exit $?.
Reported by Tim Van Holder.

25 years ago* Makefile.am (editpl, editsh): Merge into...
Akim Demaille [Tue, 16 Jan 2001 10:25:57 +0000 (10:25 +0000)] 
* Makefile.am (editpl, editsh): Merge into...
(edit).
* m4sh.m4 (AS_UNAME): Eved out from...
* acgeneral.m4 (_AC_INIT_DEFAULTS): here.
(_AC_INIT_PACKAGE): Define AC_PACKAGE_NAME.
(_AC_INIT_PARSE_ARGS): AC_SUBST the PACKAGE_ variables.
Propagate their use in the executables and the test suite.
* tests/atgeneral.m4 (PATH): Include only absolute paths.
(AT_INIT): Use AS_UNAME.

25 years agoWhen default headers are used, check for their presence.
Akim Demaille [Tue, 16 Jan 2001 10:21:44 +0000 (10:21 +0000)] 
When default headers are used, check for their presence.
Suggested by Jim.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Don't define
ac_includes_default, since...
(_AC_INCLUDES_DEFAULT_REQUIREMENTS): this new macro does.
(AC_INCLUDES_DEFAULT): Require the former when default includes
are used.
(AC_CHECK_MEMBERS, _AC_CHECK_TYPE_NEW): Don't require
AC_HEADERS_STDC, that's a job for stupendous AC_INCLUDES_DEFAULT.
* acfunctions.m4 (AC_FUNC_MALLOC): Check for stdlib.h.

25 years agoUse --no-info for config.guess and config.sub man pages.
Akim Demaille [Mon, 15 Jan 2001 16:11:08 +0000 (16:11 +0000)] 
Use --no-info for config.guess and config.sub man pages.

25 years ago* doc/autoconf.texi: Normalize sh samples.
Akim Demaille [Mon, 15 Jan 2001 07:40:11 +0000 (07:40 +0000)] 
* doc/autoconf.texi: Normalize sh samples.

25 years ago* tests/atgeneral.m4 (AT_INIT): Simplify the hairy display of the
Akim Demaille [Mon, 15 Jan 2001 07:38:35 +0000 (07:38 +0000)] 
* tests/atgeneral.m4 (AT_INIT): Simplify the hairy display of the
identity of the tests.

25 years ago* tests/atgeneral.m4 (AT_INIT): When the suite failed, complain
Akim Demaille [Mon, 15 Jan 2001 07:35:36 +0000 (07:35 +0000)] 
* tests/atgeneral.m4 (AT_INIT): When the suite failed, complain
before creating the debug scripts.
Create a log file.
When ignoring a test, display a reassuring `ok' for stressed
users, and say `skipped' instead.
Simply run `testsuite' with the failed tests instead of running
the debug scripts, this avoids having zillions of banners `Testing
Blabla 2.13' (another means to avoid these banners is to have the
test suite succeed :-).

25 years ago* sh.m4 (AS_BOX, _AS_BOX_LITERAL, _AS_BOX_INDIR): New.
Akim Demaille [Mon, 15 Jan 2001 07:29:48 +0000 (07:29 +0000)] 
* sh.m4 (AS_BOX, _AS_BOX_LITERAL, _AS_BOX_INDIR): New.
* tests/atgeneral.m4: Use it.

25 years ago* acgeneral.m4 (AC_VAR_INDIR_IFELSE): Move as...
Akim Demaille [Mon, 15 Jan 2001 07:29:24 +0000 (07:29 +0000)] 
* acgeneral.m4 (AC_VAR_INDIR_IFELSE): Move as...
* m4sh.m4 (AS_LITERAL_IF): this.
(AS_IFELSE): Rename as...
(AS_IF): this.

25 years agoRebuilt without references to libtool files.
Pavel Roskin [Fri, 12 Jan 2001 14:57:23 +0000 (14:57 +0000)] 
Rebuilt without references to libtool files.

25 years agoWith `expr's that return `0' on failures, the executable suffix is
Akim Demaille [Fri, 12 Jan 2001 09:39:26 +0000 (09:39 +0000)] 
With `expr's that return `0' on failures, the executable suffix is
`0'.  Test and fix.
Reported by Assar Westerlund.

* Makefile.am (maintainer-check): New target.
* tests/Makefile.am (maintainer-check, maintainer-check-posix)
(maintainer-check-c++, expr): Likewise.
* configure.in (EXPR): Look for it.
* tests/atgeneral.m4 (AT_CHECK): Propagate $2's default value.
* tests/compile.at (Extensions): New test.
* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O):
Distinguish files with or without a dot.

25 years ago* acgeneral.m4: Last changes for `configure.ac'.
Akim Demaille [Fri, 12 Jan 2001 09:19:59 +0000 (09:19 +0000)] 
* acgeneral.m4: Last changes for `configure.ac'.
(_AC_INIT_HELP, _AC_OUTPUT_SUBDIRS): Take `configure.ac' into
account.
* autoreconf.sh: Likewise.

25 years ago* acfunctions.m4 (AC_FUNC_MEMCMP): Missing comma in AC_TRY_RUN
Akim Demaille [Thu, 11 Jan 2001 16:12:00 +0000 (16:12 +0000)] 
* acfunctions.m4 (AC_FUNC_MEMCMP): Missing comma in AC_TRY_RUN
invocation.

25 years agoMention Bash before Ksh.
Akim Demaille [Thu, 11 Jan 2001 15:57:48 +0000 (15:57 +0000)] 
Mention Bash before Ksh.

25 years ago* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): New.
Akim Demaille [Thu, 11 Jan 2001 15:17:13 +0000 (15:17 +0000)] 
* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): New.
(AC_PROG_CC, AC_PROG_CXX): Use it.
(AC_PROG_CC_STDC): Be sure to remove tmp files.
* tests/compile.at (AC_TRY_LINK_FUNC): Don't use exit to test it,
since it produces a prototype which conflicts with the one
computed by _AC_PROG_CXX_EXIT_DECLARATION.
* tests/semantics.at (AC_CHECK_FUNCS, AC_HAVE_FUNCS): Likewise.
(AC_HAVE_FUNCS): Test AC_HAVE_FUNCS!

25 years ago* autoconf.texi (Shellology): Fix an @end itemize, and a typo.
Akim Demaille [Thu, 11 Jan 2001 14:26:45 +0000 (14:26 +0000)] 
* autoconf.texi (Shellology): Fix an @end itemize, and a typo.