Commit Graph

1654 Commits

Author SHA1 Message Date
Akim Demaille
fb69956c21 * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
replacement type.
From Paul Eggert.
2001-07-17 10:01:09 +00:00
Akim Demaille
5bca2bdd3d * Makefile.maint: Sync. with cppi 1.10. 2001-07-17 08:45:22 +00:00
Akim Demaille
a80d6b9a2f * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
AC_F77_DUMMY_MAIN has been run.
From Pavel Roskin and Steven G. Johnson.
2001-07-17 08:23:42 +00:00
Akim Demaille
f0478c4702 * configure.in: Rename as...
* configure.ac: this.
2001-07-17 07:53:06 +00:00
Akim Demaille
d467ad19b9 * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
rules.
From Marc Espie.
* Makefile.maint (release-archive-dir): Rename as...
(release_archive_dir): this, so that it can be specialized in
Makefile.
2001-07-17 07:29:35 +00:00
Akim Demaille
d6f581d73c * configure.in: Bump to 2.50d. 2001-07-14 17:53:09 +00:00
Akim Demaille
9e977d164b Typo. 2001-07-14 16:21:56 +00:00
Akim Demaille
bba6d03732 Version 2.50c. 2001-07-14 16:19:39 +00:00
Akim Demaille
9994cd2e63 * doc/autoconf.texi (Limitations of Make): Macro names and underscore. 2001-07-14 16:15:38 +00:00
Akim Demaille
748305ba8f * config/config.guess, config/config.sub, config/texinfo.tex
* doc/standards.texi, doc/make-stds.texi: Update.
2001-07-14 16:08:16 +00:00
Akim Demaille
27af810420 * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New. 2001-07-14 15:55:38 +00:00
Akim Demaille
86afd4a180 * Makefile.maint (maintainer-check): Rename as...
(maintainer-distcheck): this.
(changelog-check, static-check): New.
Use them.
2001-07-14 14:42:59 +00:00
Akim Demaille
ba6e4a5a00 for CXX is g++, not gcc. 2001-07-14 14:27:41 +00:00
Akim Demaille
1cbbd846ac * doc/autoconf.texi (Files): New subsection. 2001-07-14 14:23:11 +00:00
Akim Demaille
61714838fd * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
of...
(Generic Compiler Characteristics): this.
(C++ Compiler): New subsection.
2001-07-14 14:20:47 +00:00
Akim Demaille
beaa477c90 * autoscan.in: Use IO::File.
Adjust all the routines to use it.
($log): New file (autoscan.log).
(output): Dump detailed logs into $log, and a shortened version to
stderr.
(&scan_makefile): Refine the regexp catching tokens in the code.
* doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
and the `configure.ac' checking feature.
2001-07-14 14:19:19 +00:00
Akim Demaille
f25219dfd6 For some AWK, such as on HPUX 11, xfoo' does not match foo|^bar'.
Reported by Michael Elizabeth Chastain.
* autoconf.in: Refuse such AWK.
* configure.in: Likewise.
* Makefile.am (acversion.m4): Do not use move-if-change this file
has dependencies.
* doc/autoconf.texi (Fortran 77 Compiler): Some typos.
2001-07-12 12:42:46 +00:00
Akim Demaille
d026b456c5 * autoscan.in (&scan_makefile): Improve programs regexp to parse
things like "g++", "file.c" and "some-conf" as tokens.
(&scan_file): Match C++ files extensions.
If the filename extension is C++ then ask for c++.
2001-07-10 09:16:33 +00:00
Steven G. Johnson
4ad0ed7fc9 fixed broken AC_F77_DUMMY_MAIN 2001-07-06 01:03:18 +00:00
Pavel Roskin
1abe1e9420 * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
after using break.
(_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
linking.
2001-07-05 16:18:19 +00:00
Akim Demaille
60bc8f5e59 * Makefile.am (move_if_change): New. Use it instead of `mv'.
(acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
Makes' lives.
Reported by Nicolas Joly.
2001-07-05 11:52:20 +00:00
Akim Demaille
67d0550e5b * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
up.
* acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
warnings from compilers.
* aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
for all the compilers, not only GNU.  Hence move from here...
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
2001-07-04 15:12:57 +00:00
Akim Demaille
6a2a74c24d * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
(AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
AC_COMPILE_IFELSE.
2001-07-04 14:37:52 +00:00
Akim Demaille
6a392f5d1a * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
the ``strings.h'' change claimed below.
2001-07-04 13:29:12 +00:00
Akim Demaille
8a06c0fd94 * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/. 2001-07-04 12:58:39 +00:00
Akim Demaille
f21e011fef * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
strings.h if usable with string.h.
Suggested by Paul Eggert.
2001-07-04 11:29:50 +00:00
Akim Demaille
043dcc81de * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
From Jens Petersen.
2001-07-04 07:45:12 +00:00
Akim Demaille
30208fadac Typos. 2001-07-03 15:04:05 +00:00
Akim Demaille
bd4a9c208d * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
etc. in the log.
2001-07-03 14:47:42 +00:00
Akim Demaille
8ce8361c3d * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
compiler, not the preprocessor.
* acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
the right thing.
* Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
earlier if there are.
2001-07-03 14:12:40 +00:00
Akim Demaille
02adf2d812 * autoscan.in ($initfile): Remove.
(&find_file): Rename as...
(&scan_file): this.
Immediately scan the current file, instead of gathering them, and
later having them handled by &scan_files.
(&scan_files): Merely invoke Find::File.
Adjust.
2001-07-03 14:11:06 +00:00
Akim Demaille
4155128221 * autoscan.in: Formatting changes, matching the invocation order.
(File::Find): Use it instead of Perl 4's `find.pl'.
(&wanted): Rename as...
(&find_file): this.
2001-07-03 14:10:41 +00:00
Pavel Roskin
8afa8af9e8 * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
break in the argument to AC_TRY_LINK_FUNC.
(AC_F77_MAIN): Remove conftest* after using break in the
argument to AC_TRY_LINK.
2001-07-02 18:42:17 +00:00
Steven G. Johnson
98fdb85521 added AC_F77_{DUMMY_}MAIN 2001-07-01 19:41:20 +00:00
Pavel Roskin
9eb4315038 * atgeneral.m4 (AT_CHECK): Add a newline to the end of
at-stdout and at-stderr instead of removing the newline
from the echo output, which is not guaranteed to work.
2001-06-29 05:27:48 +00:00
Akim Demaille
17c8111864 * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
confdefs.h when non-zero.
2001-06-28 16:05:29 +00:00
Akim Demaille
dd187f5e84 * configure.in: Bump to 2.50c. 2001-06-28 15:53:38 +00:00
Akim Demaille
694b7dfdfc Version 2.50b 2001-06-26 14:32:18 +00:00
Akim Demaille
04e97d1a1b Version 2.50a. 2001-06-26 11:30:22 +00:00
Pavel Roskin
4f28f9a62c * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
argument, AUTOCONF-FLAGS.
* tests/mktests.sh (update_exclude_list): Add
AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
* tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
AC_FUNC_WAIT3 with "-W no-obsolete".
2001-06-25 18:27:51 +00:00
Akim Demaille
a9cd64a1be * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding. 2001-06-25 11:57:14 +00:00
Akim Demaille
80dc65a8a0 * autoscan.in (%macro): Now maps from word to list of macros.
(&init_tables): Die when a word which is already handled by
explicit macros is mapped to the default macro.
(&print_unique): Remove, inlined in...
(&output_kind): here.
(File::Basename): Use it.
(&output): Sort the CONFIG_FILES.
* acheaders: Normalize.
* acfunctions: Likewise.
2001-06-25 06:15:07 +00:00
Akim Demaille
eb7be92f35 * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
characteristics in the logs.
Suggested by Mo DeJong.
2001-06-25 06:14:43 +00:00
Akim Demaille
9a20a8b2a0 * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
(AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
* doc/autoconf.texi (Autoconf 2.13): New section.
2001-06-23 22:59:11 +00:00
Akim Demaille
ca36be0606 * autoconf.in (Task traces): Separate the error messages from the
traces to improve robustness.
2001-06-23 22:58:54 +00:00
Akim Demaille
984307c4ce * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
three as failures are unlikely, and speed matters.
2001-06-23 17:14:34 +00:00
Akim Demaille
567515c87b Typo. 2001-06-23 15:32:59 +00:00
Akim Demaille
fa0a3dba0c * doc/autoconf.texi (Redefined M4 Macros): New. 2001-06-23 15:30:22 +00:00
Akim Demaille
aa614be7c3 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
5.3.
2001-06-23 15:18:46 +00:00
Akim Demaille
2f086d9b7b 2001-06-23 Paolo Bonzini <bonzini@gnu.org>
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
config.status targets to after the evaluation of the INIT-CMDS.
Double quote config.status targets (used to be single quoted).

2001-06-23  Akim Demaille  <akim@epita.fr>

* tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Check the content of the created file.
Check the ./config.status command line invocation.
2001-06-23 15:04:14 +00:00
Akim Demaille
23e9b13859 * tests/foreign.at (Libtool): Reject prehistoric versions. 2001-06-23 14:01:29 +00:00
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
95407d46e3 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
stderr.
* doc/autoconf.texi (AC_ARG_VAR): Update.
2001-06-23 13:10:31 +00:00
Akim Demaille
21c0ac05f4 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
precious variables have changed.
* tests/torture.at (AC_ARG_VAR): Adjust.
2001-06-21 10:56:21 +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
Tim Van Holder
2720ecff86 * doc/autoconf.texi (Functions Portability): Rename as...
(Function Portability): this.
(Function Portability): Document potential problems with unlink().
2001-06-19 17:50:56 +00:00
Akim Demaille
ee0ed17eec Typos. 2001-06-19 17:44:12 +00:00
Akim Demaille
32d23d4aa7 * NEWS, doc/autoconf.texi: Document quadrigraphs. 2001-06-19 06:45:18 +00:00
Akim Demaille
9014babfc6 * acfunctions.m4 (AC_FUNC_FORK): Fix typos. 2001-06-18 19:36:10 +00:00
Akim Demaille
4ce12bf79e * acfunctions.m4: (AC_FUNC_VFORK) rename as...
(_AC_FUNC_VFORK): this.
Remove AC_DEFINEs and don't guess cross-compilation values.
(_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
(AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
vfork doesn't work.
Guess values if cross-compiling, but warn.
* acfunctions: Add AC_FUNC_FORK.
* doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
and vfork appropriately.
2001-06-18 19:11:24 +00:00
Akim Demaille
1ecf62bc46 * doc/autoconf.texi (Functions Portability): New section. 2001-06-18 18:51:36 +00:00
Akim Demaille
a89977e147 * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
in $M4.
Suggested by Andreas Schwab.
2001-06-18 18:15:24 +00:00
Akim Demaille
49297a91ed * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
(AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
(AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
(AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
the converse).
2001-06-18 17:41:03 +00:00
Akim Demaille
1943ed19d6 * doc/autoconf.texi (ms): New index.
(Macro Index): Rename as...
(Autoconf Macro Index): this.
(M4 Macro Index): New appendix.
(Programming in M4): New chapter.
Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
(Quoting): Rename as...
(M$ Quotation): this.
Be part of `Programming in M4).
2001-06-18 17:23:12 +00:00
Pavel Roskin
bd5eccd22e * tests/torture.at (AC_ARG_VAR): Set variables and export them
in separate statements for compatibility with Tru64 v5.1.
2001-06-18 16:14:10 +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
c23aa050c1 * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
an unused pointer use cast to this type and `if' statement to
avoid warnings from the compiler.
(AC_HEADER_TIME): Likewise.
* actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
in `if' statement to avoid warnings from the compiler. Declare
ac_aggr static to avoid the need to initialize it.
2001-06-15 15:53:18 +00:00
Akim Demaille
ccc11f345b * doc/autoconf.texi (Portable Shell): Move after `Writing Macros'. 2001-06-14 16:14:33 +00:00
Akim Demaille
f7e739cbd1 * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
Suggested by Alexander Mai.
2001-06-13 16:26:51 +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
Pavel Roskin
f789ff53d8 * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
succeeds and only try adding libdnet upon a failure.
2001-06-12 16:45:17 +00:00
Akim Demaille
9d948a65ed * autoscan.in (&output_kind): Output the comment only if it exists.
(%kind_comment): Add entry for `programs'.
(&output_programs): Use &output_kind.
(&output_functions, &output_identifiers, &output_headers)
(&output_programs): Inline, and remove.
2001-06-12 10:16:49 +00:00
Akim Demaille
49ee5178ef * autoscan.in (%kind_comment): New.
(output_kind): New.
(output_functions, output_identifiers, output_headers): Use it.
2001-06-12 10:05:27 +00:00
Akim Demaille
00e2194dad * autoscan.in (&print_unique): Take $kind' and $word' as
arguments, to factor indirections into `%macro' and `%used'.
(%generic_macro): Fix a typo.
2001-06-12 09:45:01 +00:00
Akim Demaille
54a953b733 * aclibraries: New.
* autoscan.in (@kinds): Add `libraries'.
Use `@kinds' instead of hard coded lists.
(%programs, %headers, %identifiers, %makevars, %libraries, %functions):
Remove, replaced by...
(%used): this.
2001-06-12 09:33:58 +00:00
Akim Demaille
c306314db9 * autoscan.in (%functions_macros %headers_macros)
(%identifiers_macros %programs_macros %makevars_macros): Remove,
replaced by...
(%macro): New.
2001-06-12 08:40:02 +00:00
Akim Demaille
5d0adb8cb2 * aclang.m4 (AC_NO_EXECUTABLES): Override
_AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
2001-06-11 21:44:22 +00:00
Akim Demaille
798709f0a9 * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
trailing new line.
Reported by Andreas Schwab.
2001-06-11 14:15:49 +00:00
Akim Demaille
fe4c0273a9 * Makefile.am, Makefile.maint: Typos. 2001-06-11 09:03:49 +00:00
Akim Demaille
0abdfb5a9d * doc/autoconf.texi (Here-Documents): New section, gathering
documentation about here-documents.
Use `href', not `uref', and other changes.
2001-06-11 08:21:43 +00:00
Akim Demaille
a57d9b390d * doc/autoconf.texi (Portable Shell Programming): Promoted as a
chapter.
2001-06-09 18:45:00 +00:00
Akim Demaille
d4bfb5fa66 * doc/autoconf.texi (Limitations of Builtins): Complete the
description of the here-docs penalties with Alexandre Oliva's
explanations.
2001-06-09 18:39:12 +00:00
Akim Demaille
16aa394738 * doc/autoconf.texi: Talk about here documents and speedups.
Do not use "echo" on arbitrary strings.
Spell "here-documents" consistently with the standard.
2001-06-09 18:28:20 +00:00
Akim Demaille
76d1c25fd8 * doc/autoconf.texi (Concept Index): Introduce it.
Regenerate the menus.
2001-06-09 18:25:45 +00:00
Akim Demaille
4a0639d02b * Makefile.maint, GNUmakefile: New, from Jim Meyering.
* config/prev-version.txt: New.
* config/move-if-change: New, for GNU libc.
2001-06-09 18:16:43 +00:00
Pavel Roskin
07948d1678 * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL. 2001-06-06 17:54:48 +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
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
8f50c7ad5a * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
PR autoconf/187.
2001-06-06 08:25:00 +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
8d69ecd036 * doc/autoconf.texi: Fix references to Solaris and SunOS versions. 2001-06-05 10:52:49 +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
Akim Demaille
60ab57fd45 * Makefile.am (.m4.m4f): Pass the options first.
Fixes PR autoconf/182.
2001-06-02 16:00:08 +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
4ae3e75ba5 * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
Fortran compilers to check.
(_AC_PROG_F77_V): Add '-###' as a possible option to print
information on library and object files.
(AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
to check.
2001-06-02 15:01:13 +00:00
Akim Demaille
32322098aa * autom4te.in (Request::@request): Declare with vars', not my',
as it prevents updates via `do FILENAME'.
2001-06-02 13:00:34 +00:00
Akim Demaille
52a4833e9f * configure.in (standards_texi): Remove, dead code. 2001-06-02 12:30:14 +00:00
Akim Demaille
4a8d7d11fb * autom4te.in: New. 2001-06-02 11:28:17 +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
2de417d017 * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
message.
2001-06-01 10:55:21 +00:00
Akim Demaille
92b6534b96 * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
Add copyright and comments.
* acheaders: Add stdint.h.
Suggested by Paul Eggert.
2001-05-31 15:44:27 +00:00
Akim Demaille
f9212b8d3b Typo. 2001-05-31 15:35:25 +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
ede868b1e6 * tests/base.at: Adjust line numbers in error messages. 2001-05-31 07:04:30 +00:00
Akim Demaille
791ec9f1f4 * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
to emit the bangshe line.
Reported by David Carter.
2001-05-31 07:02:13 +00:00
Steven G. Johnson
0e08ae4fe7 Added Compaq fort to the list of F95 compilers 2001-05-30 12:45:04 +00:00
Alexandre Duret-Lutz
f5e6333513 * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
Macro Archive URL.
2001-05-29 13:23:46 +00:00
Pavel Roskin
48e1475edc * aclang.m4 (AC_PROG_CPP): Use break' instead of break 2' since
_AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
(AC_PROG_CXXCPP): Likewise.
2001-05-23 12:27:56 +00:00
Akim Demaille
9027f7efea * config: New directory.
* configure.in: AC_CONFIG_AUX_DIR it.
* tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
2001-05-22 14:43:48 +00:00
Akim Demaille
f27d468f90 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
* autoupdate.in: Specify the Emacs mode.
* acversion.m4.in: Rename as...
* acversion.m4: this.
* tests/Makefile.am (CLEANFILES): More garbage.
2001-05-22 14:04:22 +00:00
Akim Demaille
6dff608010 * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
Rename as...
* autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
these.
2001-05-22 12:32:18 +00:00
Akim Demaille
b01aa7f35c * configure.in: Bump to 2.50a. 2001-05-21 13:01:06 +00:00
Akim Demaille
bfa3bab2f8 Version 2.50. 2001-05-21 08:01:36 +00:00
Akim Demaille
8593e941c9 * tests/tools.at: s/undefined macro/possibly undefined macro/. 2001-05-19 17:35:02 +00:00
Akim Demaille
10f740b057 * acgeneral.m4 (AC_SEARCH_LIBS): Unobfuscate. 2001-05-19 17:33:19 +00:00
Akim Demaille
259e7433b4 * autoconf.sh: s/undefined macro/possibly undefined macro/. 2001-05-19 16:55:05 +00:00
Akim Demaille
f5a3a2788e * doc/autoconf.texi (Particular Programs): Explain the
`AC_PROG_LEX invoked multiple times' message.
Reported by Rainer Orth as PR Autoconf/177.
2001-05-19 16:54:15 +00:00
Akim Demaille
055b95929a * autoheader.sh: Fix file names used in error messages.
Reported by Rainer Orth as PR Autoconf/178.
2001-05-19 16:48:01 +00:00
Akim Demaille
f3aa0ae8ae * tests/compile.at (AC_PROG_CPP via CC): Invoke AC_PROG_CC instead
if using `cc'.
2001-05-19 15:35:29 +00:00
Akim Demaille
fbb6a65e7a * tests/compile.at (GNU Fortran 77): Don't AS_EXIT when using
AT_CHECK_MACRO since it skips tests embedded in configure.ac.
Remove files which might have been created when invoking the
compiler.
Reported by Nicolas Joly.
2001-05-19 15:15:54 +00:00
Pavel Roskin
4d85d3ce1e Typo fix. 2001-05-14 18:45:10 +00:00
Pavel Roskin
a13adb6629 * doc/autoconf.texi (Shellology): Document a quirk in
here-document handling on OpenBSD.
2001-05-14 18:39:19 +00:00
Akim Demaille
f5d0e4f28b * aclang.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): No longer use the
`maybe' strategy: first try cpp's exit status, then its stderr.
(AC_PROG_CPP, AC_PROG_CXXCPP): Adjust.
* tests/compile.at (AC_PROG_CPP via CC): Simplify mycc.
Remove unrelated code.
2001-05-11 15:54:43 +00:00
Akim Demaille
060b6812f6 * tests/compile.at (AC_PROG_CPP via CC): New.
From Daniel Carroll.
2001-05-10 15:41:16 +00:00
Akim Demaille
a077f8d61b If AC_PROG_CC is invoked but not AC_PROG_CPP, then CPPFLAGS is not
AC_SUBST'ed.
Reported by Ralf Corsepius.
* aclang.m4 (_AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS): New.
(AC_PROG_CC, AC_PROG_CPP, AC_PROG_CXX, AC_PROG_CXXCPP)
(AC_PROG_F77): Use them.
2001-04-27 13:32:50 +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
Steven G. Johnson
71214473db updated 2001-04-24 17:26:53 +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
Jim Meyering
dce93d470e . 2001-04-22 12:51:07 +00:00
Akim Demaille
dff7a1b5c3 * configure.in: Bump to 2.49f. 2001-04-20 18:03:22 +00:00
Akim Demaille
5988c6b0c0 Version 2.49e. 2001-04-20 17:54:00 +00:00
Akim Demaille
69b6065c22 * tests/foreign.at (Libtool): Ignore configure's stderr. 2001-04-20 17:38:22 +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
Akim Demaille
6b6c7f7b9f * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Be robust to missing
or broken autoupdate.
* tests/tools.at: Likewise.
* tests/Makefile.am (CLEANFILES): Also clean Libtool files.
2001-04-20 13:07:09 +00:00
Tim Van Holder
aad2b3fecd * acgeneral.m4 (_AC_INIT_SRCDIR): Handle backslashes (DOS paths) for $ac_confdir and $srcdir. 2001-04-18 16:50:13 +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
Steven G. Johnson
884925c601 updated 2001-04-18 04:26:42 +00:00
Steven G. Johnson
273bd6c545 update 2001-04-17 17:53: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
Steven G. Johnson
2f4ec341f7 updated 2001-04-13 15:11:38 +00:00
Steven G. Johnson
9b306304f7 updated 2001-04-12 03:05:28 +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
Steven G. Johnson
9833e589d5 updated 2001-04-11 14:20:52 +00:00
Lars J. Aas
5ff5328ee4 fix for @PACKAGE_NAME@, @VERSION@, and @PACKAGE@ 2001-04-10 12:45:10 +00:00
Lars J. Aas
c454faa038 config.status logging to config.log 2001-04-10 11:33:50 +00:00
Lars J. Aas
f29d0d8fc5 use here-docs in print_usage/print_version 2001-04-10 11:29:53 +00:00
Steven G. Johnson
4971bed3c4 date fix for recent commits 2001-04-10 04:22:35 +00:00
Steven G. Johnson
8bf8e80423 Updated. 2001-04-10 03:36:38 +00:00
Lars J. Aas
2aa63c59f9 Manual addition of @PACKAGE@ substitution variable 2001-04-09 19:30:50 +00:00
Lars J. Aas
733c84c5ff typo 2001-04-06 14:35:22 +00:00
Lars J. Aas
1453cebeee Manual addition of @VERSION@ substitution variable. 2001-04-06 11:20:04 +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
a50e90e712 * doc/autoconf.texi: Use "invalid" instead of "illegal," as
suggested by the GNU coding standards.
2001-03-30 12:50: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
2728d861ef * autoheader.sh (config_h): Be robust to new lines when extracting
the first argument of AC_CONFIG_HEADERS.
Reported by Lars J. Aas.
2001-03-27 16:47:10 +00:00
Akim Demaille
73c36c1b77 * doc/autoconf.texi: Minor tweaks. 2001-03-27 12:03:51 +00:00
Akim Demaille
b0b540a4a3 * Makefile.am, configure.in: autoupdate is a Perl script. 2001-03-27 12:02:15 +00:00
Akim Demaille
a13d60e28b * doc/autoconf.texi (Limitations of Usual Tools): Some about
`touch'.
From Jim Meyering, Volker Borchert, and Peter Eisentraut.
2001-03-20 16:45:32 +00:00
Akim Demaille
c65009836b * tests/foreign.at (Libtool): Don't skip 1.3.5.
Invoke AC_CANONICAL_SYSTEM ---for some reason AC_CANONICAL_HOST is
not enough for 1.3.5.
From Lars J. Aas.
2001-03-20 14:15:59 +00:00
Akim Demaille
125764c93d * tests/atgeneral.m4: s/Testing suite/Test suite/g.
From Jim.
(AT_INIT): Adjust the error message on invalid options.
* tests/foreign.at (Libtool): Skip Libtool 1.3 too.
2001-03-20 13:59:27 +00:00
Akim Demaille
60d7c0d0ee * doc/autoconf.texi: A couple of grammatical tweaks. 2001-03-20 10:40:19 +00:00
Akim Demaille
830cc1d4ba * configure.in: Bump to 2.49e. 2001-03-19 18:14:44 +00:00
Akim Demaille
9a326d95c7 Version 2.49d. 2001-03-19 15:38:48 +00:00
Akim Demaille
ae7a741e0b * tests/tools.at (AWK portability): Don't rely on `empty'. 2001-03-19 14:54:38 +00:00
Akim Demaille
608985663d * tests/atgeneral.m4 (AT_INIT): Fix the at_diff test.
Reported by Nicolas Joly.
2001-03-19 14:31:00 +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
848752c32f * acfunctions.m4 (AC_FUNC_STRERROR_R): Update to
fileutils-4.0.42's.
2001-03-19 11:22:10 +00:00
Akim Demaille
a21d079e63 * tests/atgeneral.m4 (AT_INIT): Don't always create `empty', rather
do it only when diffing `/dev/null' is not supported.
And use `at-devnull' instead of `empty'.
2001-03-19 11:06:46 +00:00
Akim Demaille
260929dc38 * autoscan.pl, autoupdate.in: Use use' instead of require' to
require some version of Perl, so that the test is performed at
compile time, not run time.
Suggested by Nicolas Joly.
2001-03-13 18:15:58 +00:00
Akim Demaille
cdafb1f7e8 * tests/aclocal.m4: Fix some typos. Also ignore $PATH_SEPARATOR.
* tests/atconfig.in: Set PATH_SEPARATOR to the proper
path separator.  Set SHELL here...
* tests/atgeneral.m4: ... instead of here.  Use	$PATH_SEPARATOR
when setting AUTOTEST_PATH.  Don't default tests to "all" before
deciding whether the help text is needed.
* tests/semantics.at: Use the correct path separator.
2001-03-13 12:43:14 +00:00
Akim Demaille
7862e20827 * doc/autoconf.texi: Expand section on DOS issues.
Add link to the `doschk' package.  Fix minor typo.
Clean up white spaces.
2001-03-13 12:34:49 +00:00
Akim Demaille
8490bcc359 * aclang.m4 (AC_PROG_F77_C_O): define F77_NO_MINUS_C_MINUS_O
when test fails, not when it succeeds(!).
2001-03-13 12:28:19 +00:00
Akim Demaille
687fa3b765 * tests/tools.at (AWK portability): Use AT_CHECK to check for GNU
AWK so that there is always a AT_CHECK between
AT_SETUP/AT_CLEANUP.
Reported by Nicolas Joly.
2001-03-13 12:21:40 +00:00
Akim Demaille
38fa78538d * tests/tools.at: Be sure to remove configure.ac~.
* autoupdate.in (File::Basename): Use package.
(%ac_macros, %au_macros): Save only base filenames.
2001-03-13 12:09:22 +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
3406445abc * tests/base.at (AC_TRY_*): Escape `^' - it's a pipe command
separator on Tru64 v5.1.
Reported by Nicolas Joly.
2001-03-06 16:47:38 +00:00
Akim Demaille
f9c9bd2420 * tests/atgeneral.m4 (AT_INIT): Register at-setup-line and
at-check-line for removal.
Check for the presence of at-check-line only when $at_test was
really a test.
Reported by Pavel.
2001-03-05 15:58:31 +00:00
Pavel Roskin
42e1d2db7b * tests/atgeneral.m4 (AT_INIT): s/am_me/as_me/. Quote AT_CHECK
in the error message.
2001-03-04 08:08:55 +00:00
Pavel Roskin
a6aee957a5 * acgeneral.m4 (_AC_INIT_PREPARE): Quote `$$*' correctly. 2001-03-02 21:02:07 +00:00
Akim Demaille
de7bee7a82 * tests/atgeneral.m4 (AT_INIT): Warn when at-check-line is
missing.
* tests/tools.at (Syntax of the scripts): Use AT_CHECK to test
/bin/sh -n.  Exit 77 on failure.
Reported by Harlan Stenn.
2001-02-28 09:33:30 +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
Pavel Roskin
a3e2a92f9d * autoupdate.in: Preserve exit status of the failed command when
die() follows system() by dividing $! by 256.
2001-02-26 22:05:51 +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
Pavel Roskin
760abff068 * autoupdate.in (&mktmpdir): Strip the newline from the output
of mktemp.
2001-02-26 15:11:44 +00:00
Pavel Roskin
1bb965372d * man/Makefile.am: autoupdate.1 now depends on autoupdate.in. 2001-02-26 06:56:04 +00:00
Akim Demaille
e4a74027fd * autoupdate.in: Support DOS paths. Initialize $tmp to
avoid warnings.  Default $autoconf to 'autoconf'.
2001-02-25 20:10:19 +00:00
Akim Demaille
88e5444d6f Cleanups from Tim. 2001-02-25 20:07:24 +00:00