Commit Graph

2276 Commits

Author SHA1 Message Date
Akim Demaille
9d4187c855 * 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.
2001-01-26 14:34:04 +00:00
Akim Demaille
06c179893b * 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.
2001-01-26 11:59:49 +00:00
Akim Demaille
8f59275ff2 * tests/Makefile.am (testsuite): Use testsuite.tmp, not
testsuite-tmp as temporary file.
2001-01-26 11:50:23 +00:00
Akim Demaille
7e4c94c562 Update. 2001-01-26 11:46:23 +00:00
Akim Demaille
2092655553 * autoreconf.sh: Also find configure.in. 2001-01-25 16:02:08 +00:00
Akim Demaille
5159087e72 * configure.in: Bump to 2.49d. 2001-01-24 18:23:24 +00:00
Akim Demaille
9e193a5ee6 Version 2.49c. 2001-01-24 18:11:57 +00:00
Akim Demaille
f2f63c8cb6 * autoscan.pl (output): Detect/report a close failure. 2001-01-24 17:44:59 +00:00
Akim Demaille
06060376c5 Update. 2001-01-24 13:49:39 +00:00
Akim Demaille
7579cc0d64 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.
2001-01-24 13:41:52 +00:00
Akim Demaille
c5669e51b4 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.
2001-01-24 13:19:10 +00:00
Akim Demaille
f9aafb7b45 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.
2001-01-24 10:04:47 +00:00
Akim Demaille
3fd272b7d6 Update. 2001-01-24 09:10:51 +00:00
Akim Demaille
ebec93d7e6 * 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.
2001-01-24 08:24:44 +00:00
Akim Demaille
4c23c729fa * autoscan.pl (generic_macro): s/AC_CHECK_FUNCTIONS/AC_CHECK_FUNCS/.
* acfunctions: Just like the previous patch.
2001-01-24 07:58:59 +00:00
Akim Demaille
b6c86b528a * 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.
2001-01-24 07:58:46 +00:00
Akim Demaille
c0e271d2a6 * autoscan.pl: Just like the previous patch, but for
AC_CHECK_FUNCS, AC_CHECK_TYPES, and AC_CHECK_MEMBERS.
2001-01-24 07:58:31 +00:00
Akim Demaille
a29dd40a44 * 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.
2001-01-24 07:58:16 +00:00
Akim Demaille
041658b3a7 Typo. 2001-01-24 07:57:35 +00:00
Akim Demaille
cc0ba4d506 Some non-srcdir build fixes.
* configure.in (BUGS): Look for file in $srcdir.
* tests/Makefile.am (MACRO_FILES): Use '..', not '$(top_srcdir)'.
2001-01-24 07:54:32 +00:00
Akim Demaille
544c3a4b3d 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.
2001-01-24 07:50:55 +00:00
Akim Demaille
6989c24425 * m4sugar.m4 (m4_expand_once): Accept a witness. 2001-01-24 07:47:12 +00:00
Akim Demaille
bddc739371 * acgeneral.m4 (AC_EXPAND_ONCE): Remove, use m4_expand_once.
(AC_DIVERT_ONCE): Move to...
* m4sugar.m4 (m4_expand_once): here.
2001-01-23 17:04:35 +00:00
Akim Demaille
8036642ee5 * aclang.m4 (_AC_LANG_SET): Turn off optimizations. 2001-01-23 16:50:19 +00:00
Akim Demaille
4b7862cb6b Un-private joke. 2001-01-23 14:11:02 +00:00
Akim Demaille
edff52ab4c * configure.in: If this is a beta, dump the core of BUGS.
* tests/base.at (AC_REQUIRE & AC_LANG): New test, currently failing.
2001-01-23 12:53:52 +00:00
Akim Demaille
8538546df6 * autoscan.pl: Don't use `defined' to check whether an array is
defined.
Don't use parens with `defined'.
2001-01-23 10:28:29 +00:00
Akim Demaille
4565170640 * acgeneral.m4 (_AC_INIT_PREPARE): Be sure to quote hashes to
avoid M4 thinking it's comments.
2001-01-23 09:49:33 +00:00
Akim Demaille
c3388040a5 Update. 2001-01-23 09:27:30 +00:00
Akim Demaille
300e5191e0 * 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.
2001-01-23 08:44:49 +00:00
Akim Demaille
7c40c84af1 * acgeneral.m4 (_AC_INIT_PREPARE) <trap>: Typo. 2001-01-23 01:34:08 +00:00
Pavel Roskin
487edb489f * 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.
2001-01-22 20:21:33 +00:00
Akim Demaille
58135fd6dc * acspecific.m4 (AC_PROG_LN_S): Detect DJGPP < 2.04, which only
supports 'ln -s' for executables.
2001-01-22 19:21:58 +00:00
Akim Demaille
2b4643604b * autoscan.pl ($dir, $autoconf): New. 2001-01-22 19:05:16 +00:00
Akim Demaille
c3aa22ab53 * autoscan.pl ($headers, $functions, $identifiers, $libraries):
Also register locations of their requirement instead of a simple
counter.
(&check_configure_ac): Close TRACES.
2001-01-22 19:04:47 +00:00
Akim Demaille
9229a5416d * autoscan.pl: Formatting changes.
Check `configure.ac' or `configure.in' if present.
2001-01-22 19:04:00 +00:00
Akim Demaille
2711ab3056 * 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.
2001-01-22 19:01:40 +00:00
Akim Demaille
85065e6ad0 * 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.
2001-01-22 19:01:23 +00:00
Akim Demaille
938f1a75cb * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no declaration,
then '#include <stdlib.h>', before trying the explicit declarations.
2001-01-22 14:29:24 +00:00
Akim Demaille
b54be14bee * 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.
2001-01-22 14:07:09 +00:00
Akim Demaille
30ca85a96d More patterns. 2001-01-22 11:18:11 +00:00
Akim Demaille
cd0cecab2a * 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.
2001-01-22 11:14:37 +00:00
Akim Demaille
3c835cbe13 * acfunctions.m4 (AC_FUNC_GETGROUPS): Typo :(. 2001-01-22 10:13:15 +00:00
Akim Demaille
9a2be393e9 * 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.
2001-01-22 09:10:55 +00:00
Akim Demaille
97445accac * actypes.m4 (AC_TYPE_GETGROUPS): Double quote the test program
body.
2001-01-22 09:09:21 +00:00
Akim Demaille
b58abf2dab * 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.
2001-01-22 09:06:11 +00:00
Akim Demaille
e457a316a4 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.
2001-01-22 09:04:58 +00:00
Akim Demaille
1304fbbe0b * 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.
2001-01-22 09:03:38 +00:00
Akim Demaille
abad4f0576 * doc/autoconf.texi: Some about diff and cmp. 2001-01-22 08:59:14 +00:00
Akim Demaille
a606e651c9 * 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.
2001-01-22 08:59:02 +00:00