Akim Demaille
cb1bba338d
* acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
...
properly when $1 is not a literal.
Fixes PR Autoconf/187, reported by Bram Moolenaar.
2001-06-06 15:03:29 +00:00
Akim Demaille
afa5be9dbe
Invoking AC_COPYRIGHT before AC_INIT fails.
...
* Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
* acgeneral.m4 (_m4_divert(VERSION_FSF))
(_m4_divert(VERSION_USER)): New.
(AC_COPYRIGHT): $2 is the diversion to use.
(_AC_INIT_COPYRIGHT): Use the FSF diversion.
(AC_INIT): Remove dead comments as now it's commutative.
2001-06-06 08:49:33 +00:00
Akim Demaille
ec1c2ffd43
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): prefix' and
exec_prefix'
...
can be empty.
`*dir' variables cannot be NONE.
Reported by Mark Kettenis.
2001-06-05 12:44:13 +00:00
Akim Demaille
e1e6286e7b
* acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
...
(AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
(AC_TR_SH): Move as...
* m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
(AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
(AS_TR_SH): these.
(_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
(_AS_TR_SH_PREPARE): New.
(AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
* tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
2001-06-04 16:07:23 +00:00
Pavel Roskin
8dba4e28ab
* acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
...
for signals other than 0 - exit with code 1.
* m4sh.m4 (AS_TMPDIR): Likewise.
* autoconf.in: Likewise. Also don't rely on exit == exit $?.
* autoheader.in: Likewise.
* autoreconf.in: Likewise.
* tests/torture.at (Signal handling): New test for the above.
2001-06-02 05:49:54 +00:00
Akim Demaille
2a144793ef
Typo.
2001-06-01 17:07:05 +00:00
Akim Demaille
7312c775f1
* acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
...
stdlib.h.
From Paul Eggert and Lars Hecking.
2001-05-31 07:32:27 +00:00
Akim Demaille
10f740b057
* acgeneral.m4 (AC_SEARCH_LIBS): Unobfuscate.
2001-05-19 17:33:19 +00:00
Akim Demaille
7323d0af39
* aclang.m4 (_AC_PROG_PREPROC_WORKS): Rename and extend as...
...
(_AC_PROG_PREPROC_WORKS_IFELSE): this.
Adjust to admit
(AC_PROG_CPP, AC_PROG_CXXCPP): Use it.
Reported by Daniel Carroll.
2001-04-27 10:35:22 +00:00
Pavel Roskin
5eb4c7242c
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Use two backslashes
...
before double quotes in the copyright notice, since the native
OpenBSD shell removes single backslashes in here-documents with
unquoted delimiters.
2001-04-26 14:07:44 +00:00
Akim Demaille
ffac7c1b13
* acgeneral.m4 (_AC_RUN_IFELSE): Clean `core' files.
2001-04-25 15:32:09 +00:00
Akim Demaille
c33ae6e582
On HP-UX 10 ranlib --version' creates
./--version'.
...
Reported by Bob Proulx and Jim Meyering.
* acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Do not invoke the
program with --version.
2001-04-24 08:19:17 +00:00
Akim Demaille
16a999763e
* acgeneral.m4 (AC_OUTPUT): Close the descriptor before running
...
config.status so config.log is properly created on MS-DOS.
2001-04-20 17:03:16 +00:00
Tim Van Holder
faee7113d8
* acgeneral.m4: (_AC_INIT_SRCDIR) Handle backslashes (DOS paths) for $ac_confdir and $srcdir.
2001-04-18 16:49:11 +00:00
Akim Demaille
ca6e40c20d
Don't mess with FDs.
...
* acgeneral.m4 (_AC_INIT_DEFAULTS_FDS): Remove, replace with
inline setting up of AS_MESSAGE_FD.
(AS_MESSAGE_LOG_FD): Do not define, so that AS_MESSAGE does not
output in it before...
(_AC_INIT_CONFIG_LOG): here, which is run after the handling of
options.
2001-04-18 10:47:32 +00:00
Akim Demaille
f2f8f814dd
* acgeneral.m4 (_AC_LINK_IFELSE): Be sure to remove temporary
...
`conftest.$ac_objext', as some compilers may forget it.
2001-04-17 16:14:05 +00:00
Lars J. Aas
9bc8358b77
Reversal of
...
2001-04-15 Lars J. Aas <larsa@sim.no>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Show options `--file'
and `--header' unconditionally.
2001-04-17 13:15:54 +00:00
Pavel Roskin
6d7689034b
* acgeneral.m4 (_AC_INIT_VERSION): Use AC_PACKAGE_NAME and
...
AC_PACKAGE_VERSION only if they are defined.
(_AC_OUTPUT_CONFIG_STATUS): Likewise.
2001-04-16 20:13:54 +00:00
Lars J. Aas
2f5e53c4ea
config.status --version
2001-04-15 15:57:50 +00:00
Lars J. Aas
122f1a44ef
Show config.status options --file' and
--header' unconditionally.
2001-04-15 14:16:15 +00:00
Akim Demaille
48ecaeea39
* autoconf.sh (Task script): Be sure that `forbidden.rx' and
...
`allowed.rx' exist when AWK loads then.
Reported by Rainer Orth.
2001-04-11 16:29:14 +00:00
Lars J. Aas
c454faa038
config.status logging to config.log
2001-04-10 11:33:50 +00:00
Lars J. Aas
06f9c77fc7
Create config.log after processing --help and --version.
2001-04-04 15:50:38 +00:00
Lars J. Aas
286c116e6d
Version information patches.
2001-04-04 12:52:29 +00:00
Akim Demaille
75a3a3d326
* m4sh.m4 (AS_BASENAME): New.
...
(AS_SHELL_SANITIZE): Set `$as_me'.
* acgeneral.m4: Don't set as_me; AS_SHELL_SANITIZE now does this.
* tests/atgeneral.m4: Likewise.
(AT_INIT): Use $PATH_SEPARATOR for walking the path.
* autoconf.sh: Be DOS-friendly when setting as_me and M4.
Add quotes to support spaces in $tmp.
Work around problem in DJGPP port of awk by using a temporary file.
* autoheader.sh: Be DOS-friendly when setting as_me.
* autoreconf.sh: Be DOS-friendly when setting as_me, dir and
template_dir.
2001-03-30 12:49:36 +00:00
Lars J. Aas
e620bb0400
* acgeneral.m4 (AC_INIT_VERSION): Improved version information string
...
for `configure --version'.
2001-03-27 16:48:27 +00:00
Akim Demaille
21d57428ee
* acgeneral.m4 (_AC_PREPROC_IFELSE): Redirect stdout out of the
...
_AC_EVAL_STDERR invocation to avoid `illegal io' on Ultrix.
Reported by Harlan Stenn, and fixed by Jim Meyering.
2001-03-19 13:32:34 +00:00
Akim Demaille
7a099a5bf9
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't hard code
...
`/bin/sh', use $SHELL.
From Paul Eggert.
2001-03-19 13:29:02 +00:00
Akim Demaille
b5af527e15
* acgeneral.m4 (AC_OUTPUT): In the AU_DEFUN definition, don't try
...
to issue an obsolete message, it can't work for macros being
defined both with AC_DEFUN and AU_DEFUN.
Hence do it in the AC_DEFUN definition.
2001-03-08 16:28:03 +00:00
Pavel Roskin
a6aee957a5
* acgeneral.m4 (_AC_INIT_PREPARE): Quote `$$*' correctly.
2001-03-02 21:02:07 +00:00
Akim Demaille
417f6ae5d5
* acgeneral.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Use `.;.' instead
...
of `.;`pwd`': if pwd is c:/foo, we might walk through `.:c'
(fails), and then `/foo' which might succeed, resulting in
believing `;' is the right path separator.
2001-02-28 08:45:55 +00:00
Akim Demaille
8376b27448
* acgeneral.m4 (AH_VERBATIM, AH_TEMPLATE): New, use AS_ESCAPE, not
...
_AS_QUOTE.
(_AH_VERBATIM_OLD, _AH_TEMPLATE_OLD): New, used for bugward
compatibility in...
(AC_DEFINE, AC_DEFINE_UNQUOTED): here.
2001-02-26 21:37:13 +00:00
Akim Demaille
ebf04e44de
* acgeneral.m4 (_AC_INIT_PREPARE): Remove conf$$* on exit.
...
* m4sh.m4 (_AS_LN_S_PREPARE, _AS_BROKEN_TEST_PREPARE):
s/conftest/conf$$/ to avoid race conditions.
From Lars J. Aas.
2001-02-25 10:44:37 +00:00
Jim Meyering
069c08c032
(_AC_INIT_PREPARE_FS_SEPARATORS): Revert that change.
...
There was no typo.
2001-02-23 15:42:11 +00:00
Jim Meyering
e4e464dd7d
(_AC_INIT_PREPARE_FS_SEPARATORS): Fix typo: s/;/:/
2001-02-23 08:53:07 +00:00
Akim Demaille
c403ef4594
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): use `AS_EXIT(0)' instead
...
of `exit 0' when exiting config.status.
2001-02-21 09:44:55 +00:00
Pavel Roskin
a2509e9556
* acgeneral.m4 (AC_OUTPUT): Remove $(srcdir), ${srcdir} and
...
@srcdir@ from VPATH if srcdir is "." and replace blank VPATH
lines with empty lines to preserve line numbers.
Original version by Derek Price.
2001-02-07 15:04:52 +00:00
Akim Demaille
e568fbd143
* acgeneral.m4 (_AC_LIBOBJ): Call AC_LIBSOURCE with '.c' extension
...
appended to function name.
2001-02-07 11:26:22 +00:00
Akim Demaille
2080fdc3cb
* acgeneral.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR, AC_RUN_LOG): New.
...
(_AC_EVAL_STDERR, _AC_EVAL): Use them.
(_AC_INIT_PREPARE_FS_SEPARATORS): Use AC_RUN_LOG.
2001-02-06 15:11:50 +00:00
Akim Demaille
7bf59957c4
acfunctions.m4 was still using the old AC_LIBOBJ_DECL.
...
Reported by Derek R. Price.
* tests/semantics.at (AC_REPLACE_FUNCS): New test.
* acfunctions.m4 (AC_REPLACE_FUNCS, _AC_LIBOBJ_ALLOCA): Use
AC_LIBSOURCES.
2001-02-05 17:33:00 +00:00
Akim Demaille
56eb3944e1
* acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Removed, dead code.
2001-02-03 16:43:00 +00:00
Akim Demaille
3282fd3c7a
* acgeneral.m4 (AC_LIBOBJ_DECL): Remove.
...
(AC_LIBSOURCES, AC_LIBSOURCE): New.
* acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Remove configure.ac
2001-02-03 13:20:00 +00:00
Pavel Roskin
7e51af06ed
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Rename all occurences
...
of ac_try to ac_mid to avoid a name clash.
2001-02-02 22:57:56 +00:00
Akim Demaille
110ac382f0
Englisho.
2001-01-31 15:00:35 +00:00
Akim Demaille
732a3a8f77
* acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Remove configure.ac
...
from check for ac_sub_configure.
2001-01-30 19:31:50 +00:00
Akim Demaille
b8d698ca1d
The recent addition of `exit's prototype in confdefs.h causes
...
AC_OUTPUT_MAKE_DEFS to include junky -D switches.
Reported by Wolfgang Mueller.
* tests/torture.at (#define header templates): Include trash in
confdefs.h.
* tests/atgeneral.at (AT_INIT): Don't expect `find' to support
-maxdepth, hence don't use -follow either.
Reported by Nicolas Joly.
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS) <confdef2opt.sed>: In the
`quote' section, `p'rint the result.
If neither `#define' pattern match, just call `d' to start a new
cycle.
Call this sed program with -n.
2001-01-30 19:29:38 +00:00
Pavel Roskin
9f999a6c43
Don't use filenames that can be reduced to "conftest" on DOS.
...
* acfunctions.m4 (AC_FUNC_MMAP): Use conftest.mmap, not
conftestmmap.
(AC_FUNC_UTIME_NULL): Use conftest.data, not conftestdata.
* acspecific.m4 (AC_PROG_MAKE_SET): Use conftest.make, not
conftestmake.
(_AC_PATH_X_XMKMF): Use conftest.dir, not conftestdir.
* acgeneral.m4 (AC_ARG_PROGRAM): Use conftest.sed, not
conftestsed.
* m4/sanity.m4: Use conftest.file, not conftestfile.
* doc/autoconf.texi (Guidelines for Test Programs): Suggest
using conftest.data, not conftestdata.
2001-01-29 22:36:09 +00:00
Akim Demaille
4e7126c29d
* acgeneral.m4 (AC_SITE_LOAD): Let config.log know what you load.
2001-01-29 09:23:11 +00:00
Akim Demaille
fea900426a
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.
2001-01-27 13:19:14 +00:00
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