* acgeneral.m4 (AC_CACHE_VAL): Don't need backticks. This is a
performance enhancement for about a 5% reduction in the runtime of
the generated configure script.
* acgeneral.m4 (AC_LANG_FORTRAN77): Remove [] (i.e. the m4 quotes)
since it was confusing the testsuite. Also make `f77' the default
for FC, otherwise the testsuite fails.
* autoconf.texi (Fortran 77 Compiler Characteristics): Added new
node documenting the new AC_F77_LIBRARY_LDFLAGS macro.
* acspecific.m4 (AC_F77_LIBRARY_LDFLAGS): New macro to determine
the linker flags (e.g. `-L' and `-l') for the Fortran 77 intrinsic
and run-time libraries.
* autoconf.texi (Defining Symbols): Documented third argument to
AC_DEFINE.
* autoheader.m4 (AC_DEFINE_UNQUOTED): Generate `verbatim'
assignment if third argument given.
(AC_DEFINE): Likewise.
* acgeneral.m4 (AC_DEFINE): Handle case where $# is 3.
(AC_DEFINE_UNQUOTED): Likewise.
* autoheader.sh: Echo $verbatim if not empty.
* acconfig.h (FC_NO_MINUS_C_MINUS_O): Add to complete the Fortran
77 support.
Tue Sep 8 14:06:04 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU>
* acgeneral.m4: Make the following macros Fortran 77 aware
(i.e. conditionalize whether to `#include "confdefs.h"', etc.):
(AC_TRY_COMPILE)
(AC_TRY_LINK)
(AC_CHECK_LIB)
* acgeneral.m4 (AC_LANG_FORTRAN77): Rename `AC_LANG_FORTRAN' to
`AC_LANG_FORTRAN77'. Change the Fortran 77 language macro from
`FORTRAN' to `FORTRAN77'.
(AC_LANG_RESTORE): Change the Fortran 77 language macro from
`FORTRAN' to `FORTRAN77'
* autoconf.texi: Updated Fortran 77 documentation, particularly
for `AC_TRY_COMPILE', `AC_TRY_LINK' and `AC_CHECK_LIB'.
Thu Sep 3 09:34:39 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU>
* autoconf.texi: Added Fortran 77 documentation.
* acspecific.m4 (AC_PROG_FC): New macro. Determine a Fortran
compiler to use.
(AC_PROG_FC_WORKS): New macro.
(AC_PROG_FC_GNU): New macro.
(AC_PROG_FC_G): New macro.
(AC_PROG_FC_C_O): New macro.
* acgeneral.m4: Add FFLAGS (Fortran 77 flags).
(AC_LANG_FORTRAN): New macro.
(AC_LANG_RESTORE): Make Fortran 77 aware.
(AC_TRY_COMPILER): Make Fortran 77 aware (i.e. conditionalize
whether to `#include "confdefs.h"').
* acgeneral.m4 (AC_VALIDATE_CACHED_SYSTEM_TUPLE): New macro. This
macro can be used to ensure that a configure script will not run
on a second system without removing the cache and re-running
configure. Contributed by Alexandre Oliva <oliva@dcc.unicamp.br>.
* acgeneral.m4 (AC_SEARCH_LIBS): New macro. Searches a series of
libraries for a given function. Contributed by Jim Blandy
<jimb@cygnus.com>.
(AC_TRY_LINK_FUNC): New macro. Again, from Jim.
* acgeneral.m4 (AC_CHECK_PROG): Fix a bug if the supplied path
contains colons. This was observed with some versions of NetBSD
`sh' and some versions of `bash'.
(AC_PATH_PROG): Likewise. Contributed by Tom Yu <tlyu@mit.edu>.
* acgeneral.m4 (AC_CHECK_FILE): New macro. Checks for the
existence of a file in the file system (native only).
Contributed by Theodore Y. Ts'o <tytso@mit.edu>.
(AC_CHECK_FILES): Likewise.
* acgeneral.m4 (AC_CHECK_PROG): Set IFS to just ":" when searching
through PATH.
(AC_PATH_PROG): Likewise.
Thu May 28 18:37:36 1998 Ian Lance Taylor <ian@cygnus.com>
* acgeneral.m4 (AC_ACVERSION): Bump to 2.12.2.
Add support for Visual C++:
* acgeneral.m4 (ac_exeext, ac_objext): New variables.
(ac_link): Use ac_exeext.
(AC_TRY_COMPILER, AC_TRY_LINK, AC_TRY_RUN_NATIVE): Likewise.
(AC_TRY_CPP): Remove lines from stderr which contain only the name
of the file.
(AC_REPLACE_FUNCS): Use ac_objext.
Fri Oct 3 18:10:39 1997 Ian Lance Taylor <ian@cygnus.com>
* acgeneral.m4 (AC_CACHE_SAVE): Add a grep when checking whether
set quotes correctly, to avoid a cache overflow on HP-UX 9.
Wed Sep 11 15:35:19 1997 Chris Provenzano <proven@cygnus.com>
* acgeneral.m4 : Always set SHELL and substitute SHELL.
When looking for a path for an executable allow the
user to override with an DOS path.
Tue Aug 5 23:00:05 1997 Ian Lance Taylor <ian@cygnus.com>
* acgeneral.m4 (AC_VERSION): Set to 2.12.1.
(AC_CANONICAL_HOST): Use CONFIG_SHELL to run $ac_config_sub and
$ac_config_guess.
(AC_CANONICAL_TARGET, AC_CANONICAL_BUILD): Likewise.
* acgeneral.m4 (AC_OUTPUT_HEADER): Apply Jan 15 fix to
AC_OUTPUT_MAKE_DEFS here too: Match `#define foo' without trailing
space in confdefs.h. Before configure would lose if all its trailing
whitespace got stripped, and that can happen in mail.
$ac_compile, and $ac_link.
(AC_TRY_EVAL, AC_TRY_COMMAND): New macros for running tests' commands.
Always put the configure source line and command line into config.log.
(AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK): Use them.
in the trap, so backslashes aren't required for multiline input.
From G.Wilford@ee.surrey.ac.uk.
Also use the sed trick when not using a config header file.
Check for ${ac_tool_prefix}PROG-TO-CHECK-FOR first. If not found and third
arg given, and ${ac_tool_prefix} is nonempty, check for unadorned
PROG-TO-CHECK-FOR as well. Last choice use VALUE-IF-NOT-FOUND.
CONFIG_STATUS to allow overriding the name of config.status.
(AC_TEST_PROGRAM): Add missing newline.
Always include 'fi' for cross-compiling if.
From Jim Meyering.
Make default cache file ./config.cache,
so PATH is not used by "." command. From Jim Meyering.
Rename some internal macros.
Give the diversions symbolic names.
(AC_ARG_ENABLE, AC_ARG_WITH, AC_ENABLE_INTERNAL, AC_WITH_INTERNAL):
New macros.
(AC_PARSEARGS): Print --with and --enable help strings.
(AC_ENABLE, AC_WITH): Make wrappers around _INTERNAL functions.
Mark obsolete.
(AC_PREPARE): Execute any saved up --with or --enable code.
duplicating it.
(AC_PROGRAM_CHECK, AC_PROGRAM_PATH): If the user set the variable
in the environment, cache that value.
(AC_PREPARE, AC_CHECKING, AC_VERBOSE): Use file descriptors 4 and
5 for checking and results messages. Idea from metaconfig 3.0.
cross-compiling is given, but we are cross-compiling, give an error.
(AC_PROGRAM_EGREP, AC_TEST_LINK, AC_TEST_PROGRAM, AC_TEST_CPP):
Don't add an extra blank line after the if-clause.
(AC_REVISION): Merge AC_DOREV into this macro.
Rename some macros:
AC_SYSTEM_TYPE -> AC_CANON_SYSTEM
AC_HOST_TYPE -> AC_CANON_HOST
AC_TARGET_TYPE -> AC_CANON_TARGET
AC_BUILD_TYPE -> AC_CANON_BUILD
(AC_OUTPUT): Don't do Cygnus-style magic
substitutions on prefix and exec_prefix, just initialize and
substitute them normally.
don't end top_srcdir with "/.".
(AC_SIZEOF_TYPE): Fatal error if test program fails.
(AC_OUTPUT): Run "./config.status", not "config.status".
From Kevin Gallagher <kgallagh@spd.dsccc.com>.
(AC_COMPILE_CHECK): Mark obsolete. Call AC_CHECKING and
AC_TEST_LINK.
(AC_PROGRAM_CHECK, AC_PROGRAM_PATH, AC_HAVE_LIBRARY, AC_HEADER_CHECK,
AC_FUNC_CHECK, AC_SIZEOF_TYPE): Print "checking" messages even if
using cached values. Use AC_TEST_LINK instead of AC_COMPILE_CHECK.
Rearrange general tests into 4 categories:
Checking for files - fundamental (no caching)
Checking for files - derived (caching)
Checking for C features - fundamental (no caching)
Checking for C features - derived (caching)
New macros.
(AC_PREPARE): Call AC_CACHE_LOAD.
(AC_OUTPUT): Call AC_CACHE_SAVE.
(AC_PARSEARGS): Add --cache-file=FILE option.
(AC_CONFIG_SUBDIRS): Pass --cache-file to subdirectory configures.
(AC_PROGRAM_CHECK, AC_PROGRAM_PATH): Use AC_CACHE_USE.
(AC_OUTPUT_CONFIG_SUBDIRS): Renamed from
AC_CONFIG_SUBDIRS.
(AC_CONFIG_SUBDIRS): Just define AC_SUBDIR_LIST.
(AC_OUTPUT): Call AC_OUTPUT_CONFIG_SUBDIRS if AC_SUBDIR_LIST is
defined.
Make config.status --recheck pass --norecursion to configure.
the file starts with "#!", put the "automatically generated"
comment on the second line instead of the first.
(AC_CONFIG_AUX, AC_CONFIG_AUX_DEFAULT,
AC_CONFIG_AUX_DIRS, AC_SYSTEM_TYPE, AC_HOST_TYPE, AC_TARGET_TYPE,
AC_BUILD_TYPE, AC_SUBST_FILE, AC_MAKE_LINKS, AC_OUTPUT_MAKE_LINKS,
AC_CONFIG_SUBDIRS): New macros.
(AC_OUTPUT_HEADER): For each file being created,
munge a copy of conftest.sed rather than the original.
From brook@trillium.botany.utexas.edu (Brook Milligan).