Commit Graph

1865 Commits

Author SHA1 Message Date
Pavel Roskin
a245415e40 * acgeneral.m4 (_AC_OUTPUT_FILES): Fixed exit status.
(_AC_OUTPUT_HEADERS): Exit if the header template is missing.
2000-09-28 14:39:55 +00:00
Pavel Roskin
c865483335 * acfunctions.m4: Formatting fixes.
* acgeneral.m4: Likewise.
* aclang.m4: Likewise.
* acspecific.m4: Likewise.
* libm4.m4: Likewise.
2000-09-28 14:26:50 +00:00
Pavel Roskin
53e7a1a55a * acgeneral.m4 (AC_CHECK_PROG): Added protection against spaces
in $PATH.
* acspecific.m4 (AC_PROG_INSTALL): Likewise.
2000-09-27 18:17:36 +00:00
Pavel Roskin
b8d7070b9f * acgeneral.m4 (AC_CHECK_LIB): only call AH_CHECK_LIB if
ACTION-IF-TRUE is not given.
(AH_CHECK_LIB): related comment changes.
2000-09-27 13:21:11 +00:00
Pavel Roskin
f4bc20baf8 * aclang.m4 (_AC_LANG_COMPILER_WORKS): Remove []dnl because it
resulted in invalid shell code.
2000-09-27 13:16:13 +00:00
Akim Demaille
e6600f6485 * autoconf.sh: Report full macro name for missing macros. 2000-09-27 10:29:30 +00:00
Akim Demaille
c916e13f94 * autoheader.sh: Fix trap (EXIT) status.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* autoconf.sh: Change `exit' to `{ (exit 1); exit; }' after m4 and
awk commands to ensure exit state is in a defined state.
2000-09-27 10:02:27 +00:00
Pavel Roskin
de231bb167 * tests/semantics.m4 (AC_PROG_CPP with warning): Simplified. 2000-09-25 20:12:01 +00:00
Pavel Roskin
601d3afce2 Regenerated configure. 2000-09-25 14:41:33 +00:00
Pavel Roskin
1486532ed0 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): use
_AC_INIT_PREPARE_ENVIRONMENT to make the shell runnin
config.status sane and POSIX-compatible.
2000-09-25 14:34:17 +00:00
Pavel Roskin
480bbc8376 * autoheader.sh: Don't check status of variable assignments -
* it's undefined in ash 0.2.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* autoconf.sh: Likewise. Also eliminated command substitution
inside variable expansion - ash 0.2 coredumps on it.
2000-09-25 13:24:45 +00:00
Pavel Roskin
51ff685138 * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Check stderr from
autoconf and autoheader. Expected warnings disabled by "-W none"
Preceding comment removed as no longer relevant.
* tests/semantics.m4 (AC_CHECK_PROG & AC_PATH_PROG): Check
stderr from autoconf.
(AC_PATH_PROG & AC_PATH_PROGS): Likewise.
(AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Likewise.
* tests/tools.m4 (autoheader): Check that autoheader prints
a warning for missing templates. Check stderr from autoconf.
* tests/torture.m4 (config.status under extreme conditions):
Check stderr from autoconf and autoheader.
(command line interface): Check stderr from autoconf.
2000-09-21 13:42:49 +00:00
Pavel Roskin
e7c7ab2237 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix usage info for
config.status - file arguments are optional.
2000-09-21 13:37:26 +00:00
Pavel Roskin
b4f63402c1 * acgeneral.m4 (_AC_OUTPUT_FILES): Ensure that config.status
exits if any input file is missing.
* tests/semantics.m4 (missing templates): Test it.
2000-09-21 13:34:15 +00:00
Pavel Roskin
78a872fa52 * acgeneral.m4 (_AC_SHELL_TMPDIR): Don't check status of variable
assignment - it's undefined in ash 0.2.
2000-09-21 13:32:01 +00:00
Akim Demaille
af51198638 * src/atgeneral.m4 (AC_CHECK): Display stderr including when the
test failed because of stdout.
2000-09-21 13:06:03 +00:00
Akim Demaille
7a3e952e57 * tests/atgeneral.m4: Formatting changes.
(AT_INIT): Let `at_stop_on_error' and `at_verbose' be `:'/`false'
variables instead of `'/`1'.
`at_check_stds' replaces `at_no_redirs'.
Rename `Snippet 3' as `Snippet 4'.
Introduce `Snippet 3' for variable initializations.
Adjust the dependencies.
(AT_CHECK): Don't show diff's result unless verbose.
2000-09-21 12:47:04 +00:00
Pavel Roskin
3258eecc3e Regenerated 2000-09-20 16:51:43 +00:00
Pavel Roskin
edd02fca11 Formatting changes. 2000-09-20 14:35:46 +00:00
Pavel Roskin
ff99097cef * tests/Makefile.am: AC_PREFIX_PROGRAM and AC_F77_FUNC excluded
from testing because they require an argument.
* tests/atspecific.m4: Make sure that configure doesn't write
anything to stderr.
2000-09-20 13:12:13 +00:00
Pavel Roskin
3ad877f56d * acspecific.m4 (_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Cache
variable wasn't always set inside AC_CACHE_CHECK.
(_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL): Likewise.
2000-09-20 13:01:44 +00:00
Pavel Roskin
5eda671dae * libm4.m4 (m4_ifvanl): Don't output a newline for empty
arguments
2000-09-20 10:45:10 +00:00
Akim Demaille
c550ac5ae5 * tests/atspecific.m4 (AT_TEST_MACRO): Rename as...
(AT_CHECK_MACRO): this.  All dependencies adjusted.
2000-09-19 18:08:38 +00:00
Akim Demaille
eb875d8240 * tests/aclocal.m4.new (AC_ENV_SAVE): Skip POW_LIB, used by
AC_FUNC_STRTOD.
From Bernard Dautrevaux.
2000-09-19 15:36:39 +00:00
Akim Demaille
a5c2f0e5d9 * tests/atgeneral.m4 (AT_DATA): Use _ATEOF instead of EOF. 2000-09-19 15:36:09 +00:00
Akim Demaille
c27e377c86 * tests/semantics.m4 (AC_PROG_CPP with warnings): Minor
simplification.
2000-09-19 15:20:04 +00:00
Akim Demaille
66dcecdf2f * autoconf.sh (optarg): More robust expr invocation.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* autoheader.sh: Likewise.
Reported by Bernard Dautrevaux.
2000-09-19 12:35:01 +00:00
Akim Demaille
82479fc371 * acgeneral.m4 (AU_ALIAS): Do not use `defn' since then autoupdate
would replace an old macro call with the new macro body instead of
the new macro call.
* tests/tools.m4 (autoupdate): Test an AU_ALIAS'd macro update.
2000-09-19 12:21:47 +00:00
Akim Demaille
a096ddee16 * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): New macro.
(AT_TEST_MACRO): Use it.
* tests/semantics.m4 (AC_PROG_CPP with warnings, AC_PROG_CPP
without warnings): New tests.
2000-09-19 10:37:57 +00:00
Akim Demaille
3674f52d77 * acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Check for configure.gnu
as well.
(_AC_INIT_HELP): Likewise.
(NEWS): Note checking for configure.gnu.
* doc/autoconf.texi: Document checking for configure.gnu when
recursing subdirectories.
2000-09-18 11:05:41 +00:00
Akim Demaille
4b6e36a5f7 * acfunctions.m4 (AC_FUNC_GETLOADAVG): Restore the initial value
of LIBS.  Otherwise, everyone ends up linking with -lelf for some
configurations.
Reported by Mike Stone.
2000-09-18 10:53:01 +00:00
Akim Demaille
949f06e0e8 * aclang.m4 (AC_PROG_CPP): Use double quotes in the for loop
and eliminate ac_tmp_cpp.
(AC_PROG_CXXCPP): Use double quotes in the for loop and
eliminate ac_tmp_cxxcpp.
2000-09-14 07:55:32 +00:00
Akim Demaille
ced19e1e5f * acgeneral.m4 (_AC_TRY_CPP): Don't filter out conftest.$ac_ext
from the output - it is only printed by Visual C that gives
correct exit status.
* aclang.m4 (AC_PROG_CPP): Don't try '${CC-cc} -nologo -E'
by the same reason.
2000-09-14 07:50:14 +00:00
Akim Demaille
c08bb24cf3 * aclocal.m4 (_AC_PROG_CPP_WORKS): Don't use AC_REQUIRE_CPP -
it's useless here. Rename to ...
(_AC_PROG_PREPROC_WORKS): ... this.
2000-09-12 16:05:29 +00:00
Akim Demaille
0c6d235eeb * acspecific.m4 (AC_PROG_INSTALL): Exclude c:install on AmigaOS. 2000-09-12 15:03:13 +00:00
Akim Demaille
368c1810a2 The test suite fails on some hosts because for instance
AC_INIT
  AC_CHECK_FUNC(exit)
will not look for a compiler, it will just use `cc'.
Macros that need a compiler should require one.
2000-09-12 13:59:55 +00:00
Akim Demaille
58e8d5c397 * acgeneral.m4 (_AC_TRY_CPP): New macro. It runs the preprocessor
and checks whether it produces errors or warnings. Don't put grep
output into a variable, use another grep instead.
(AC_TRY_CPP): Use _AC_TRY_CPP. Copy conftest.err to config.log
if the case of an error.
* aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77)):
define AC_LANG_ABBREV to the short language name.
(_AC_PROG_CPP_WORKS): New macro. It checks whether the current
preprocessor can be used to check for existance of headers.
Most code taken from ...
(AC_PROG_CPP): ... here. Use _AC_PROG_CPP_WORKS. Use shell
"for" to find working CPP. Use AC_LANG_PUSH(C) and AC_LANG_POP -
it's a macro for C only.
(AC_PROG_CXXCPP): Rewritten using _AC_PROG_CPP_WORKS.
2000-09-12 13:02:29 +00:00
Akim Demaille
a195030508 * autoupdate.sh (sed): Look for GNU sed.
(usage): Ask for GNU sed.
2000-09-12 12:41:32 +00:00
Akim Demaille
63ff092513 * acgeneral.m4 (AC_EGREP_CPP): Use additional quotes instead of
changequote.
2000-09-12 10:23:08 +00:00
Akim Demaille
25b095234a * acgeneral.m4 (AC_ARG_ENABLE,AC_ARG_WIDTH): Add trailing
semicolon to final fi.
2000-09-12 10:07:33 +00:00
Akim Demaille
d84e38bbb0 * acgeneral.m4 (_AC_WARNING_ERROR_IFELSE)
(__AC_WARNING_ERROR_IFELSE): New macros for checking whether
warnings should be considered errors.
(_AC_DIAGNOSE): Use _AC_WARNING_ERROR_IFELSE.
2000-09-11 09:56:18 +00:00
Akim Demaille
63ff24b580 * autoconf.sh: Proprerly report names of unexpanded macros that
begin with an underscore
2000-09-11 07:16:34 +00:00
Akim Demaille
4148b84bca * doc/autoconf.texi (Preset Output Variables): Correctly specify
what languages are affected by CPPFLAGS, LDFLAGS and LIBS.
Extended description of LDFLAGS and LIBS.
(Compilers and Preprocessors, C Compiler Characteristics):
Recommend Automake as the source of ansi2knr.
(Autoconf Language, Quotation and Nested Macros): English fixes.
(Quotation and Nested Macros): Unclear example replaced with
an explanation of when m4 expands quotes. Added explanation why
unquoted calls are dangerous.
2000-09-11 07:04:38 +00:00
Akim Demaille
62113b916e * doc/autoconf.texi: Always use one space before the opening
parenthesis in @defmac
2000-09-08 15:38:21 +00:00
Akim Demaille
a32137777d Typo. 2000-09-06 14:11:52 +00:00
Akim Demaille
d2cb51aef4 * acspecific.m4 (_AC_OBJEXT): No longer use AC_COMPILE_IFELSE,
which uses $ac_objext hence depends upon _AC_OBJEXT.
* aclang.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Call
_AC_EXEEXT before _AC_OBJEXT since the former needs $ac_objext.
2000-09-06 13:05:58 +00:00
Akim Demaille
5aa6b910ce * acspecific.m4 (_AC_EXEEXT): Set extension to void if linking
creates both an unsuffixed file and suffixed ones.
2000-09-06 13:03:08 +00:00
Akim Demaille
a81a0372c4 * autoconf.texi: English and typo fixes. 2000-09-06 09:06:21 +00:00
Akim Demaille
82bbd6fe4e * autoconf.sh: Consider undefined macros as errors.
* tests/base.m4 (unexpanded macros): Expect error, not warning
2000-09-05 10:19:01 +00:00
Akim Demaille
bddb504cff * aclang.m4 (_AC_PROG_F77_GNU): Run command from standard input so
that we can get some standard output.
2000-09-05 09:14:10 +00:00