Commit Graph

818 Commits

Author SHA1 Message Date
Akim Demaille
c6a72f5bf2 * aclang.m4 (AC_PROG_CC): Also try to find $target_alias-cc. 2000-08-01 13:14:42 +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
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
99d2fcb4af * acidentifiers: Catch ptrdiff_t.
* acspecific.m4 (AM_TYPE_PTRDIFF_T): AU define.
2000-08-01 11:14:48 +00:00
Akim Demaille
83afb4f7ce * autoscan.pl: Be ready to handle AC_CHECK_TYPES requests.
Quote properly the output.
Remove useless backslashes.
2000-08-01 11:12:12 +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
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
4d600514e0 * autoscan.pl: Use Getopt::Long;
* acidentifiers: Classify, sort.
2000-08-01 10:05:11 +00:00
Akim Demaille
17bf2a2a33 * aclang.m4 (_AC_PROG_CXX_GNU, _AC_PROG_CC_GNU, _AC_PROG_F77_GNU):
Use grep instead of egrep, don't redirect stderr.
2000-08-01 10:03:41 +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
c528b19557 * doc/autoconf.texi (Installation Directory Variables):
Clarifications and typos.
2000-08-01 08:21:38 +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
Akim Demaille
f261dd9c07 * acgeneral.m4 (_AC_DIVERT(INIT_PARSE_ARGS)): Rename as...
(_AC_DIVERT(PARSE_ARGS)): this.  Adjust dependencies.
(AC_ARG_WITH): Remove spurious newline.
(AC_ARG_VAR): No longer save precious variables in
ac_configure_args, rather snapshot them twice (one kept
unmodified, another one to be written to/overwritten by the cache
file).
(AC_CACHE_SAVE): Let the cache variables named `ac_cv_env_*'
be overwritten when loading the cache (i.e., don't use the
: ${foo=...} trick).
(_AC_ARG_VAR_VALIDATE): Compare the two snapshots of the precious
variables.
(_AC_INIT_PREPARE): Call it after having loaded the cache file.
2000-07-31 09:21:33 +00:00
Akim Demaille
898867a4f5 * aclang.m4 (AC_LANG_CONFTEST, _AC_PROG_CC_GNU, _AC_PROG_CXX_GNU,
_AC_PROG_F77_GNU): Use ac_ext.  Use _ACEOF instead of ACEOF.
2000-07-28 07:55:01 +00:00
Akim Demaille
b64f36dee1 * autoconf.sh (--warnings): Catch no-category', not nocategory'.
* autoheader.sh: Likewise.
* acgeneral.m4 (_AC_WARNING_IFELSE): Adjust.
2000-07-28 07:41:52 +00:00
Akim Demaille
31539fee31 * doc/autoconf.texi (Installation Directory Variables): New
section, Eved off from `Preset Output Variables', i.e., was a
small part of it, grew independent, and is its equal (at least).
(Coding Style): `$#' padding.
* Makefile.am (editsh, editpl): Do what the doc says you do: use
@datadir\@ instead of @''datadir''@.
2000-07-28 07:37:50 +00:00
Akim Demaille
80a7004bc3 * aclang.m4 (_AC_PROG_CC_GNU, _AC_PROG_CXX_GNU,
_AC_PROG_F77_GNU): Use ac_ext.  Use ACEOF instead of EOF.
(AC_LANG_CONFTEST): New macro.
(_AC_PROG_CC_G, AC_PROG_CC_C_O, _AC_PROG_CXX_G, AC_PROG_F77_C_O,
_AC_PROG_F77_V_OUTPUT): Use it.
* acgeneral.m4 (AC_TRY_CPP, AC_EGREP_CPP, AC_COMPILE_IFELSE,
AC_LINK_IFELSE, AC_RUN_IFELSE): Likewise.
2000-07-28 07:36:11 +00:00
Akim Demaille
1173e0e0c9 * aclang.m4 (AC_F77_FUNC): New macro to give the user a clean
way of accessing Fortran name-mangling information other than
through CPP, and without having to know the different possible
name-mangling schemes.
* autoconf.texi: Documented AC_F77_FUNC
2000-07-24 07:58:52 +00:00
Akim Demaille
2cd06f3117 * acgeneral.m4 (_AC_CHECK_TYPE_BUILTIN_P): Add `off_t' and
`size_t' which are often used too.
Fix a bug which prevents recognition of `bool' and `char'.
(_AC_CHECK_TYPE_MAYBE_TYPE_P): New macro.
(AC_CHECK_TYPE): Use it.
2000-07-24 06:54:53 +00:00
Akim Demaille
958e908777 * Makefile.am: Remove INSTALL.txt by maintainer-clean target. 2000-07-19 16:43:04 +00:00
Akim Demaille
6b6eeaa1b5 * autoupdate.sh: Typo: s/infile/file/. 2000-07-19 10:15:09 +00:00
Akim Demaille
f47670db70 * aclang.m4 (AC_F77_NAME_MANGLING): Obsolete, becomes
_AC_F77_NAME_MANGLING.
(_AC_F77_NAME_MANGLING): Use independent checks for the
name mangling of symbols with and without underscores.
Use algorithm with for loops instead of recursive macro calls.
(AC_F77_WRAPPERS): Adapt to changes in _AC_F77_NAME_MANGLING.
* doc/autoconf.texi (Fortran 77 Compiler Characteristics):
Remove documentation of AC_F77_NAME_MANGLING.
Remove documentation of f77_case and f77_underscore.
Replace AC_F77_FUNC_WRAPPER with AC_F77_WRAPPERS.
2000-07-19 09:56:18 +00:00
Akim Demaille
5c601f4daa * NEWS: Fresh air.
* TODO: Fresh blood.
2000-07-19 09:35:30 +00:00
Akim Demaille
3a19469355 * doc/autoconf.texi (autoheader Invocation): Explain the purpose
of autoheader.
2000-07-19 09:33:19 +00:00
Akim Demaille
86ab930f0a * doc/autoconf.texi: Various English fixes from Jim. 2000-07-19 09:32:32 +00:00
Akim Demaille
8a639e09fa * doc/autoconf.texi (Compilers and Preprocessors, Obsolete
Macros): Don't give boring internal details.
(Language Choice): Typo.
(Limitations of Builtins): Some about `!', `set', `$@'.
(Coding Style): Some about $[@] quotation.
Some about cross-compilation.
2000-07-19 09:28:34 +00:00
Akim Demaille
20078ad516 * autoreconf.sh (dir): When verbose, say what are the tools you
will use.
2000-07-19 09:24:10 +00:00
Akim Demaille
b3f7ddf817 Warnings related to obsolete constructs should be properly
classified.

* acspecific.m4 (AC_RSH, AC_USG, AC_MEMORY_H, AC_DIR_HEADER,
AC_INT_16_BITS, AC_LONG_64_BITS, AC_STRUCT_ST_BLKSIZE,
AC_STRUCT_ST_RDEV, AC_HAVE_POUNDBANG, AC_ARG_ARRAY): Use
`AC_DIAGNOSE(obsolete, ...)' instead of `AC_WARNING'.
2000-07-19 09:20:57 +00:00
Akim Demaille
fcd8cd1260 autoconf -W error does not work.
* acgeneral.m4 (_AC_DIAGNOSE): use _AC_WARNING_IFELSE,
_AC_WARNING_ENABLE is dead.
2000-07-19 09:20:19 +00:00
Akim Demaille
97f86107ff Martin Wilck found a Fortran 77 compiler which always exits with
success.

* acgeneral.m4 (AC_COMPILE_IFELSE): Also check that the output
file was created and is nonempty.
2000-07-19 09:19:24 +00:00
Akim Demaille
89face49d8 * doc/autoconf.texi (Introduction): More about CVS, Gnats, the web
pages, and the mailing lists.
2000-07-19 09:18:55 +00:00
Akim Demaille
e7634107ce * doc/autoconf.texi (Prerequisite Macros): Dedocument AC_PROVIDE.
(Coding Style): Move some into...
(Macro Definitions): here.
2000-07-19 09:14:48 +00:00
Akim Demaille
58b54a585e The --help message should have paragraphs starting with a title,
the options, and then optionally a small paragraph.

* acgeneral.m4 (AC_DIVERT_ONCE): New macro.
(HELP_VAR_END): New diversion.
(AC_ARG_ENABLE, AC_ARG_WITH, AC_ARG_VAR): Use AC_DIVERT_ONCE.
(AC_ARG_VAR): Follow the --help style.
* acspecific.m4 (AC_PATH_X): Use AC_DIVERT_ONCE.
2000-07-19 09:08:13 +00:00
Akim Demaille
b66b88b2a0 * aclang.m4 (AC_PROG_CC): Don't require AC_PROG_F77, require
AC_PROG_CC instead.
From Martin Wilck.
(AC_PROG_F77_C_O): Require AC_PROG_F77.
Use a cache variable independent of $F77.
2000-07-19 09:06:25 +00:00
Akim Demaille
b240f802f9 * autoreconf.sh: Accept --symbolic and -s. 2000-07-19 09:04:26 +00:00
Akim Demaille
9150c0ede6 Make it clear that the regular user does not need --macrodir.
In fact, rename this option as -A, --autoconf-dir.

* autoconf.sh: Complain when -m, --macrodir is used.
Accept -A, --autoconf-dir.
Use $autoconf_dir instead of $AC_MACRODIR.
Adjust --help.
* autoheader.sh: Likewise.
* autoscan.sh: Likewise.
* autoupdate.sh: Likewise.
Use $optarg.
* autoreconf.sh: Likewise.
* doc/autoconf.texi: Adjust.
* tests: Adjust the test suite.
2000-07-19 09:03:53 +00:00
Akim Demaille
80ad59d16d * autoreconf.sh: Forward --debug to sub tools.
Let them share the same tmp dir.
2000-07-19 08:54:44 +00:00
Akim Demaille
8f6793ea53 * acspecific.m4 (AC_MING32): Rename as AC_MINGW32. 2000-07-18 15:58:03 +00:00
Akim Demaille
f054152a7b Fixed bug where the F77 compiler output was parsed differently
when detecting the verbose flag than when scanning for linker
options, and as a result the former test failed (under AIX/xlf).

* aclang.m4 (_AC_PROG_F77_V_OUTPUT): New macro to get the
output of linking an F77 program with a given verbose flag,
and preprocess it as required to scan for linker flags.
(_AC_PROG_F77_V): Use the above macro here...
(AC_F77_LIBRARY_LDFLAGS): ...and here, enforcing consistency.
2000-07-18 12:27:05 +00:00
Akim Demaille
c1174fa2d8 * autoupdate.sh (autoconf): s,$updated,$tmp/updated,. 2000-07-17 09:19:14 +00:00
Akim Demaille
0c265b0758 * doc/autoconf.texi (Configuration Actions): Explain the
behavior of  AC_CONFIG_HEADERS and AC_CONFIG_FILES with respect to
absolute and relative filenames, and stdin/stdout.
(config.status invocation): Likewise.
2000-07-17 08:36:59 +00:00
Akim Demaille
902f83d13d ChangeLog fixes. 2000-07-17 08:20:23 +00:00
Akim Demaille
a057e62853 Make it easier to trace what autoreconf does.
* autoheader.sh: Be more verbose, and always report your name in
verbose messages.
* autoconf.sh: Likewise.
* autoreconf.sh: Likewise.
(update.sh): Redirect ls's stderr to /dev/null.
2000-07-13 13:38:45 +00:00
Akim Demaille
e7bcdbd35b * acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS): Properly
handle absolute input file names.
From Alexandre Oliva.
2000-07-13 08:46:08 +00:00
Akim Demaille
b83d0eb6a8 * aclang.m4 (AC_PROG_F77): Delete AC_BEFORE(AC_PROG_CPP) that
leads to unnecessary warnings if both C and Fortran are checked.
(AC_PROG_F77_C_O): AC_REQUIRE AC_PROG_F77 instead of pretend you
need to be AC_BEFORE it.
2000-07-12 17:06:42 +00:00
Akim Demaille
17680fe3fb * autoconf.sh (_ac_warnings): Fix call to tr.
Reported by Johan Danielsson.
2000-07-12 16:33:38 +00:00
Akim Demaille
9f7f09bf91 * aclang.m4 (_AC_PROG_F77_V): New macro to determine the flag that
causes the compiler to output verbose linking information.
(AC_F77_LIBRARY_LDFLAGS): Use _AC_PROG_F77_V instead of
simply "-v"
(AC_F77_LIBRARY_LDFLAGS): New algorithm to parse flags, uses
set/shift shell commands.
(AC_F77_LIBRARY_LDFLAGS): Set FLIBS at end, after determining
ac_cv_flibs.
2000-07-12 08:45:32 +00:00