Commit Graph

160 Commits

Author SHA1 Message Date
Akim Demaille
85285b7ba1 * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
preexisting files matching a.*.
2001-06-23 13:51:39 +00:00
Akim Demaille
21c5ee474b ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
but some sed choke on multiple `;', and other tools (e.g.,
Automake), include the separator themselves.
* acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
2001-06-21 09:18:16 +00:00
Akim Demaille
32d23d4aa7 * NEWS, doc/autoconf.texi: Document quadrigraphs. 2001-06-19 06:45:18 +00:00
Akim Demaille
8cb3ac1b1c * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
current values of the precious variables, not the previously
cached values.
Pass precious variables which are set to config.status.
* doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
* tests/torture.at (AC_ARG_VAR): New.
2001-06-17 18:14:27 +00:00
Akim Demaille
d8453532a1 * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
and explain why and how to replace them.
* acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
* acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
2001-06-15 17:44:17 +00:00
Akim Demaille
ede1b31c81 `build_alias' and so on are not AC_SUBST'd.
Reported by Bruno Haible.
* acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
 (_AC_ARG_VAR_PRECIOUS): to here.
2001-06-15 17:40:57 +00:00
Pavel Roskin
5db898a650 ** Specific Macros
- AC_PATH_XTRA only adds -ldnet to $LIBS if it's needed to link.
2001-06-13 15:30:27 +00:00
Akim Demaille
b79636c1ae * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
sys/types.h and sys/stat.h, and check for them.
2001-06-13 08:45:39 +00:00
Akim Demaille
bc0cb140fd * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
INCLUDES.
2001-06-13 07:51:09 +00:00
Akim Demaille
e940773c63 Stupid me :(
Reverse the patch incorrectly applied when adding prev-version.txt
2001-06-12 14:46:13 +00:00
Akim Demaille
11f6cf8fb5 Added for real. 2001-06-12 14:42:53 +00:00
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
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
eddc4ccb87 GNU getopt, when POSIXLY_CORRECT does not permute options and
arguments.  So pass the options first.
Fixes PR autoconf/184.
* autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
(run_m4): Remove files.
(run_m4f): Remove.
Update remainder of script to use them.
(for warning in): Do not use a literal comma as it will not be
split by IFS.
2001-06-02 15:45:32 +00:00
Akim Demaille
44ce5ed5a2 * atgeneral.m4 (AT_INIT): Use $SHELL.
* atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
2001-05-31 08:24:01 +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
54a5d2d5a7 Englishos. 2001-05-21 13:30:04 +00:00
Akim Demaille
bfa3bab2f8 Version 2.50. 2001-05-21 08:01:36 +00:00
Akim Demaille
dff7a1b5c3 * configure.in: Bump to 2.49f. 2001-04-20 18:03:22 +00:00
Akim Demaille
b0b540a4a3 * Makefile.am, configure.in: autoupdate is a Perl script. 2001-03-27 12:02:15 +00:00
Akim Demaille
7e4c94c562 Update. 2001-01-26 11:46:23 +00:00
Akim Demaille
5159087e72 * configure.in: Bump to 2.49d. 2001-01-24 18:23:24 +00:00
Akim Demaille
6ca39d4f17 * doc/autoconf.texi: Normalize sh samples. 2001-01-15 07:40:11 +00:00
Akim Demaille
302c614d05 * configure.in: Bump version to 2.49c. 2000-12-06 17:32:38 +00:00
Akim Demaille
d286d1d41e * acspecific.m4 (AC_SYS_LARGEFILE): Don't worry about
whether fseeko and ftello are properly declared.
* acfunctions.m4 (AC_FUNC_FSEEKO): New macro, which worries about
fseeko (and presumably ftello).  Do not set _XOPEN_SOURCE; that
causes too many problems in practice.
* acfunctions (fteelo, fseeko): Trigger AC_FUNC_FSEEKO.
* doc/autoconf.texi: Adjust.
2000-11-14 16:01:05 +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
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
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
d515c73727 * configure.in: Bump version to 2.49b.
* Makefile.am (bin_SCRIPTS): Depend upon configure.in.
2000-09-04 12:12:21 +00:00
Akim Demaille
0b9ac437b3 Version 2.49a. 2000-08-11 12:55:36 +00:00
Akim Demaille
7bd04c77a0 * acfunctions.m4 (_AC_LIBOBJ_STRTOD, AC_FUNC_STRTOD,
AM_FUNC_STRTOD): New macros, from Automake.
* acfunctions: Adjust.
2000-08-01 11:16:33 +00:00
Akim Demaille
20a739fc2e * acfunctions.m4 (AC_FUNC_ONSTACK): New macro, from
Automake.
* doc/autoconf.texi (Particular Functions): Adjust.
2000-08-01 11:10:16 +00:00
Akim Demaille
4ba8807ca1 * acfunctions.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from
Automake.
* doc/autoconf.texi (Particular Functions): Adjust.
2000-08-01 10:16:20 +00:00
Akim Demaille
5c601f4daa * NEWS: Fresh air.
* TODO: Fresh blood.
2000-07-19 09:35:30 +00:00
Akim Demaille
61591d6648 * acspecific.m4 (_AC_FUNC_STAT, AC_FUNC_STAT, AC_FUNC_LSTAT): New
macros, from Jim's stat.m4 and lstat.m4 serial 6.
* doc/autoconf.texi (Particular Functions): Document
* acfunctions: Add them.
2000-07-10 10:27:02 +00:00
Akim Demaille
0d08de0eeb Update NEWS and TODO. 2000-07-10 10:24:05 +00:00
Akim Demaille
8b3a0fbaae * acgeneral.m4 (AC_CONFIG_LINKS, AC_CONFIG_HEADERS,
AC_CONFIG_COMMANDS, AC_CONFIG_FILES): Use a shell variable instead
of an m4 variable to store what must be done, so that sh
conditionals are honored.
(_AC_OUTPUT_LINKS, _AC_OUTPUT_HEADERS,
_AC_OUTPUT_COMMANDS, _AC_OUTPUT_FILES): Adjust.
* tests/semantics.m4: Test the four AC_CONFIG sisters.
* doc/autoconf.texi (Configuration Actions): Promote the use of
literals, show it works properly with sh conditionals.
2000-06-26 10:20:36 +00:00
Akim Demaille
12e3a8ea6e The current implementation of AC_REQUIRE fails on
| AC_DEFUN([TEST1],  [REQUIRE([TEST2a])REQUIRE([TEST2b])])
| AC_DEFUN([TEST2a], [])
| AC_DEFUN([TEST2b], [REQUIRE([TEST3])])
| AC_DEFUN([TEST3],  [REQUIRE([TEST2a])])
|
| AC_INIT
| TEST1

because it produces TEST3; TEST2a; TEST2b; TEST1.
Fix this bug, implement the solution provided by Axel Thimm,
and test AC_REQUIRE.

* acgeneral.m4: Document this implementation.
(_AC_DEFUN_PRO, _AC_DEFUN_EPI, AC_REQUIRE): Be sure that macros
are emitted in the same order as they are expanded.
(AC_REQUIRE): Forbid being calling out of an AC_DEFUN'd	macro (in
particular the top level).
* tests/base.m4 (AC_REQUIRE): New test.
2000-06-26 09:06:02 +00:00
Akim Demaille
3a6a9bb4f3 Import AC_SYS_LARGEFILE from largefile.m4 serial 12.
* acspecific.m4 (AC_SYS_LARGEFILE, _AC_SYS_LARGEFILE_MACRO_VALUE,
_AC_SYS_LARGEFILE_SOURCE): New.
* doc/autoconf.texi (System Services): Document AC_SYS_LARGEFILE.
2000-06-08 12:07:14 +00:00
Akim Demaille
0e26510db8 Fix the archive: some parts of the following patches were missing:
- CC < aCC
- unquote the argument of case
- AC_FUNC_STRERROR_R
- AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
- typos in autoconf.texi
2000-05-26 17:12:01 +00:00
Akim Demaille
ca10061659 Find a means to extract integers from the compiler.
Use this technology to compute `sizeof' even when cross-compiling.
Ideas and initial suggestion by Kaveh Ghazi.
Binary search by Bruno Haible.

* aclang.m4 (AC_LANG_BOOL_COMPILE_TRY,
AC_LANG_BOOL_COMPILE_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C++),
AC_LANG_INT_SAVE, AC_LANG_INT_SAVE(C), AC_LANG_INT_SAVE(C++)): New
macros.
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE, _AC_COMPUTE_INT_RUN,
_AC_COMPUTE_INT): New.
(AC_CHECK_SIZEOF): Use them.
Check whether the type exists beforehand.
* tests/semantics.m4 (AC_CHECK_SIZEOF): Strengthen.
2000-05-26 11:33:54 +00:00
Akim Demaille
be64229cfa Add configure --config-cache', -C' as a shortcut for
`--cache-file=config.cache'.

* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Let `configure' support
`--config-cache' and `-C'.
Report them in `--help'.
Fix the display of missing argument.
(_AC_OUTPUT_SUBDIRS): Adjust.
* doc/install.texi (Invoking configure): Rename the node as
(Running configure scripts): this, the name of the chapter.
(Operation Controls): Rename as...
(Invoking configure): this.
Document the new options.
* doc/autoconf.texi (direntry): Huh?  What is this `aclocal' doing
here?  Point to `Invoking configure'.
(Cache Files): No need to document the disabling of the cache.
2000-05-22 13:31:00 +00:00
Akim Demaille
0cd794da59 * acspecific.m4 (AC_FUNC_CHOWN): New macro, based on Jim
Meyering's `chown.m4' serial 4.
(AC_FUNC_GETGROUPS): New macro, based on Jim Meyering's
`getgroups.m4' serial 3.
(AC_FUNC_MEMCMP): Updated, based on Jim Meyering's `memcmp.m4'
serial 3.
(AC_FUNC_MALLOC): New macro, based on Jim Meyering's
`malloc.m4' serial 3.
(AC_FUNC_MMAP): Include `stdlib.h' when `STDC_HEADERS'.
* acfunctions: Sort.
Add `chown' and `malloc', point `getgroups' to `AC_FUNC_GETGROUPS'
instead of `AC_TYPE_GETGROUPS'.
* doc/autoconf.texi (Particular Functions): Adjust.
2000-05-22 08:46:23 +00:00
Akim Demaille
907e198f7f Either we cross-compile the whole package, or we don't.
Using --host enables cross-compilation.

* acgeneral.m4 (_AC_INIT_PARSE_ARGS): `--host' enables cross
compilation.
(AC_CANONICAL_BUILD): The help string should explicitly mention
cross compilation.
* aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77)): Don't
set `cross_compiling'.
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Run your `WORK' partner
only if not cross-compiling.
(AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS):
If does not work, don't assume an implicit cross-compilation:
fail.
* doc/autoconf.texi: Adjust.
2000-05-19 12:40:45 +00:00
Akim Demaille
d5c975f17b * acgeneral.m4 (AC_SPECIALIZE): Avoid a useless `indir'.
(AC_CHECK_MEMBER, AC_CHECK_MEMBERS): Fix to work properly on
`struct f.g.h'.
* acspecific.m4 (AC_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS and
AC_CHECK_MEMBERS instead of performing their task by hand.
2000-05-19 12:11:47 +00:00
Akim Demaille
83d910e14e Update NEWS and TODO 2000-05-12 07:38:52 +00:00
Akim Demaille
269df76643 AC_CONFIG_SUBDIRS needs two lists: one, ac_subdirs_all, which
contains all the possible subdirs for `--help=recursive', and
another, `subdirs' which can be built dynamically for launching
sub configurations.

* acgeneral.m4 	(AC_CONFIG_SUBDIRS): Define `subdirs' dynamically.
Define `ac_subdirs_all' statically.
Warn if the argument is not a literal.
(AC_LIST_SUBDIRS): Rename as...
(_AC_LIST_SUBDIRS): this.
(_AC_INIT_HELP): Loop over `ac_subdirs_all', not `subdirs'.
(_AC_OUTPUT_SUBDIRS): Loop over `subdirs', not `AC_LIST_SUBDIRS'.
* doc/autoconf.texi (Subdirectories): Adjust.

* acgeneral.m4: Replace all the `test ! -d foo && bar' with
`test -d foo || bar'.

* Makefile.am (.m4.m4f): Stop hiding what you're doing.
Don't check for GNU m4, let it die.
2000-05-11 16:56:13 +00:00
Akim Demaille
465612289e Merge AC_DECL_YYTEXT into AC_PROG_LEX.
* acgeneral.m4 (AC_DECL_YYTEXT): Rename as
(_AC_DECL_YYTEXT): this.
(AC_PROG_LEX): Use it.
(AC_DECL_YYTEXT): New AU macro.
* doc/autoconf.texi: Adjust.
2000-05-11 07:59:08 +00:00
Akim Demaille
b2e9ed520a Update NEWS. 2000-03-28 13:36:43 +00:00
Akim Demaille
2d7beaf15d 1999-10-31 Akim Demaille <akim@epita.fr>
Allow standard beta version numbers.

	* configure.in: Declare version 2.14a.
	* acgeneral.m4 (AC_UNGNITS): New macro which transform version
	numbers to pure digits (2.14a to 2.14.0.1, 2.15z to 2.15.0.26
	etc.).
	(AC_PREREQ): Normalize argument and AC_ACVERSION via AC_UNGNITS.
2000-01-10 10:13:42 +00:00