Akim Demaille
7009796166
Let autoupdate change AC_PREREQ to require the current version of
...
Autoconf.
* acgeneral.m4 (_AC_VERSION_UNLETTER, _AC_VERSION_COMPARE): Move
to...
* libm4.m4 (m4_version_unletter, m4_version_compare): here.
Adjust dependencies.
* acgeneral.m4 (AU::AC_PREREQ): New macro.
* autoupdate.sh: Fail when `m4 input.m4' fails.
2000-10-23 17:41:27 +00:00
Pavel Roskin
0c101b88ae
* acfunctions.m4 (AC_FUNC_CHOWN): Remove temporary files on exit.
...
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
(AC_FUNC_SELECT_ARGTYPES): Likewise.
(AC_FUNC_UTIME_NULL): Likewise.
* acgeneral.m4 (_AC_COMPUTE_INT): Likewise.
* aclang.m4 (_AC_F77_NAME_MANGLING): Likewise.
* acspecific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
2000-10-23 04:07:42 +00:00
Pavel Roskin
1328e61cb7
* NEWS: Documented changes in AC_PROG_CPP and AC_TRY_CPP.
...
* doc/autoconf.texi (Compilers and Preprocessors): Likewise.
* acgeneral.m4 (AC_TRY_CPP): Comment changes.
2000-10-20 00:15:34 +00:00
Akim Demaille
1ff3f472d8
* acgeneral.m4 (AC_CHECK_TOOLS): Use `$' when reading a variable.
2000-10-18 17:16:10 +00:00
Akim Demaille
37e789c4a5
* acspecific.m4 (AC_PROG_LN_S): If neither ln -s' nor
ln' work,
...
fall back to `cp'.
2000-10-18 12:18:27 +00:00
Akim Demaille
27acf968e7
* acgeneral.m4 (AC_CHECK_TOOL): As AC_CHECK_PROG first tests the
...
value of the VARIABLE argument when looking for executables, we
need to set it to the correct value from AC_CHECK_TOOL when not
just passing on the incoming VARIABLE directly.
(AC_CHECK_TOOLS, AC_PATH_TOOL): Likewise.
2000-10-17 16:34:10 +00:00
Akim Demaille
d470846d3e
* acgeneral.m4 (_AC_INIT_PREPARE): Move the
...
_AC_INIT_PREPARE_ENVIRONMENT invocation to...
(_AC_INIT_DEFAULTS): here, so that we keep the same known
environment for more of the script.
2000-10-17 12:48:50 +00:00
Akim Demaille
2d238e3813
* acgeneral.m4 (AC_CHECK_PROG, AC_CHECK_PROGS, AC_PATH_PROG)
...
(AC_PATH_PROGS, AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Fix
the quotation.
(AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Check with the
$ac_tool_prefix iff it is not empty.
2000-10-17 09:08:32 +00:00
Akim Demaille
38fed7fb9b
* acgeneral.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
...
(_AC_RUN_IFELSE): Before compiling, remove the files expected to
be produced.
(_AC_LINK_IFELSE, _AC_RUN_IFELSE): You don't create object files,
so don't remove them.
2000-10-17 08:41:26 +00:00
Akim Demaille
be8f881881
* acgeneral.m4 (AC_FATAL): Use _AC_EXPANSION_STACK_DUMP.
...
(_AC_REQUIRE): Use AC_FATAL.
2000-10-17 08:36:20 +00:00
Akim Demaille
b69b909d8c
Give a means to report where the macros have been defined in error
...
messages.
* libm4.m4 (m4_location): New macro.
(m4_errprint): Rename as...
(m4_diagnose): this. Use m4_location.
Adjust dependencies.
(m4_errprint): New macro, similar to `errprint' but for an
additional trailing `n'.
* acgeneral.m4 (AC_DEFUN, AC_DEFUN_ONCE): Define `m4_location($1)'
to the current location (i.e., that of the definition of $1).
(_AC_DEFUN_PRO, _AC_REQUIRE): Also push the location of the
current macro in the stack.
(_AC_EXPANSION_STACK_DUMP): Adjust.
2000-10-17 08:07:59 +00:00
Akim Demaille
11e6ca2c9b
* aclang.m4 (_AC_LANG_COMPILER_GNU): New macro, which unifies...
...
(_AC_PROG_F77_GNU, _AC_PROG_CC_GNU, _AC_PROG_CXX_GNU): Remove.
Adjust dependencies.
(ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77): AU_ALIAS'ed.
2000-10-16 18:40:19 +00:00
Akim Demaille
1e3cdfe0a3
* acgeneral.m4: Adjust copyright notice.
...
* acspecific.m4: Likewise.
* acoldnames.m4: Likewise.
* acversion.m4.in: Likewise.
* autoconf.sh: Likewise.
* autoheader.sh: Likewise.
* autoreconf.sh: Likewise.
* autoscan.pl: Likewise.
* autoupdate.sh: Likewise.
* ifnames.sh: Likewise.
2000-10-16 18:25:55 +00:00
Akim Demaille
aee199fcb2
* acgeneral.m4 (AC_LINKER_OPTION): Ahem, err, use `$' when
...
consulting a variable...
2000-10-13 10:15:56 +00:00
Akim Demaille
5978c4f0c5
* acgeneral.m4: Typos in comments spotted by Pavel.
2000-10-13 07:50:07 +00:00
Akim Demaille
4b06a539ce
* acgeneral.m4 (AC_CONFIG_SUBDIRS): Fixed nasty typo.
2000-10-12 16:32:13 +00:00
Akim Demaille
e7ee56216e
* acgeneral.m4 (_AC_SH_QUOTE): Issue an `obsolete' warning for use
...
of backquotes, instead of a `syntax' warning.
2000-10-12 14:45:05 +00:00
Akim Demaille
793b1c797f
* acgeneral.m4 (AC_VAR_IN_INDIR, AC_VAR_IF_SET): Rename as...
...
(AC_VAR_INDIR_IFELSE, AC_VAR_SET_IFELSE): this.
2000-10-12 14:35:31 +00:00
Akim Demaille
55ee762412
Diagnose AC_REQUIRE circular dependencies.
...
* acgeneral.m4 (_AC_DEFUN_PRO, _AC_DEFUN_EPI): Keep a stack of
macro expansions, _AC_EXPANSION_STACK.
Use `_AC_EXPANDING(FOO)' to record the fact that `FOO' is being
expanded.
(_AC_REQUIRE): Diagnose required macros which are already being
expanded.
Record in _AC_EXPANSION_STACK the AC_REQUIRE calls.
(_AC_EXPANSION_STACK_DUMP): New macro.
2000-10-12 10:12:43 +00:00
Pavel Roskin
5c7a7dab83
* acgeneral.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
...
(_AC_RUN_IFELSE): New macros which are the former
AC_COMPILE_IFELSE etc. without AC_LANG_COMPILER_REQUIRE.
(AC_COMPILE_IFELSE, AC_LINK_IFELSE, AC_RUN_IFELSE): Use them.
2000-10-11 17:55:46 +00:00
Akim Demaille
505d2c60df
* acgeneral.m4 (AC_RUN_IFELSE): Add missing executable suffix.
...
* aclang.m4 (_AC_LANG_COMPILER_WORKS): Likewise.
* aclang.m4 (AC_PROG_CC_C_O, AC_PROG_F77_C_O): Fix typos where
$objext were used instead of $ac_objext.
2000-10-11 14:51:28 +00:00
Akim Demaille
c7a8dfd1cf
* aclang.m4 (_AC_LANG_ABBREV, _AC_LANG_ABBREV(C))
...
(_AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Fortran 77): New macros.
(AC_LANG_(C), AC_LANG_(C++), AC_LANG_(Fortran 77)): Don't define
AC_LANG_ABBREV.
(_AC_PROG_PREPROC_WORKS): Adjust.
* acgeneral.m4 (_AC_TRY_CPP): Likewise.
2000-10-02 13:11:27 +00:00
Pavel Roskin
270cc51063
* acgeneral.m4 (AC_SHELL_UNSET): Don't rely on variable
...
assignments changing $?.
2000-09-28 17:43:35 +00:00
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
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
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
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
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
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
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
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
55d7dff046
* acfunctions.m4 (_AC_LIBOBJ_ALLOCA, AC_REPLACE_FUNCS): Simplify
...
${foo} into $foo.
* aclang.m4 (AC_LANG(C), AC_LANG(C++)): Move some internal
comments into the header comment.
* acgeneral.m4 (AC_TRY_CPP): Likewise.
2000-08-07 12:33:17 +00:00
Akim Demaille
787433a2e8
* acgeneral.m4 (AC_MSG_NOTICE): New macro, suggested by Pavel
...
Roskin.
(AC_MSG_ERROR): Use it.
2000-08-07 12:06:49 +00:00
Akim Demaille
ee125c3a4e
Solaris' /usr/ucb/expr, and SunOS' /usr/bin/expr fail with the `:'
...
operator when \(\) is used, and matches a string longer than 120
characters.
Reported by Geoff Keating.
* doc/autoconf.texi (Limitations of Usual Tools): Some words about
this.
* acgeneral.m4 (_AC_SHELL_DIRNAME): Fall back to echo|sed if expr
fails.
From Paul Eggert.
2000-08-04 09:13:16 +00:00
Akim Demaille
ae2c1ff1f7
* acgeneral.m4: (AC_RUN_IFELSE, AC_LINK_IFELSE, AC_COMPILE_IFELSE):
...
Don't create the source file if none is given, and in this case,
don't remove it either.
2000-08-04 09:04:56 +00:00
Akim Demaille
73632aae68
* libm4.m4 (m4_ifvanl): New macro.
...
* acgeneral.m4: Use it.
2000-08-04 09:04:29 +00:00
Akim Demaille
3385e2beac
AC_VALIDATE_CACHED_SYSTEM_TUPLE no longer works properly since the
...
AC_CANONICAL_* revamping.
Reported by Peter Eisentraut.
In fact, let's just use the precious variables handling.
* acgeneral.m4 (AC_VALIDATE_CACHED_SYSTEM_TUPLE): Obsoleted.
(_AC_ARG_VAR_PRECIOUS): New macro, eved from...
(AC_ARG_VAR): this macro. Adjust.
(_AC_INIT_PREPARE): `build_alias', `host_alias', and
`target_alias' are precious.
* doc/autoconf.texi: Adjust.
2000-08-01 12:20:14 +00:00
Akim Demaille
6e867eb5ee
* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Neutralize also
...
LC_COLLATE and LC_NUMERIC.
* autoconf.m4: Don't rely on character ranges with tr.
* doc/autoconf.texi (Special Shell Variables): Adjust.
2000-08-01 11:22:42 +00:00
Akim Demaille
a1dde0367f
Create acfunctions.m4, in charge of the macros related to
...
functions.
* acgeneral.m4 (AC_CHECK_FUNC, AC_CHECK_FUNCS, AC_REPLACE_FUNCS):
Move to...
* acfunctions.m4: here, new file.
* acspecific.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_ALLOCA, AC_FUNC_CHOWN,
AC_FUNC_CLOSEDIR_VOID, AC_FUNC_FNMATCH, AC_FUNC_GETGROUPS,
_AC_LIBOBJ_GETLOADAVG, AC_FUNC_GETLOADAVG, AC_FUNC_GETMNTENT,
AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK,
AC_FUNC_MALLOC, AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP,
AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, _AC_FUNC_STAT,
AC_FUNC_STAT, AC_FUNC_LSTAT, AC_FUNC_STRERROR_R, AC_FUNC_STRFTIME,
AC_FUNC_VFORK, AC_FUNC_VPRINTF, AC_FUNC_WAIT3, AC_FUNC_UTIME_NULL,
AC_FUNC_STRCOLL, AC_FUNC_SETVBUF_REVERSED): Likewise.
* Makefile.am: Adjust.
Move also the old definitions into acfunctions.m4, and adjust the
test suite.
* acgeneral.m4 (AU_ALIAS): New macro.
* acoldnames (AC_FUNC_CHECK, AC_HAVE_FUNCS, AC_ALLOCA,
AC_GETLOADAVG, AC_MMAP, AC_SETVBUF_REVERSED, AC_STRCOLL,
AC_UTIME_NULL, AC_VFORK, AC_VPRINTF, AC_WAIT3, AM_FUNC_FNMATCH,
AM_FUNC_MKTIME, fp_FUNC_FNMATCH): Move to...
* acfunctions.m4: here, using AU_ALIAS.
* acgeneral.m4 (AC_FD_CC, AC_CANONICAL_SYSTEM): Use AU_ALIAS to
define them.
* acoldnames.m4: Use AU_ALIAS instead of AU_DEFUN.
* tests/Makefile.am (MACRO_FILES): Adjust.
2000-08-01 10:13:14 +00:00
Akim Demaille
f6065212ac
* acgeneral.m4 (_AC_INIT_NOTICE): Adjust so that there are no
...
empty lines in the header comments (should be `#' alone instead).
Reported by Didier Verna.
2000-08-01 09:12:34 +00:00
Akim Demaille
1b94825fe4
* acgeneral.m4 (AC_REVISION): Put a dot at the end of the line.
...
(_AC_INIT_HELP): Output the bug report address at
the end of a `configure --help' output.
(_AC_INIT_NOTICE): Ditto, but at the top of `configure'.
2000-08-01 08:17:07 +00:00
Akim Demaille
8914cfdd81
* acgeneral.m4 (_AC_INIT_PREPARE_FDS): New macro, pulled out of
...
(_AC_INIT_PREPARE): here, where it is called from.
* aclang.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't test -z "`foo`".
2000-07-31 09:22:47 +00:00