* acgeneral.m4 (AC_HELP_STRING): Rewrite in m4. Have m4 work, and
give a break to sh.
(_AC_FOREACH): Be careful not to evaluate the arguments. A loop
over *quoted* macro names should loop over the macro names, not
upon their expansion.
(_AC_COMMATIZE): Also swallow end of lines.
* autoconf.texi (Pretty Help Strings): Updated to reflect the
changes.
1999-09-13 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (ifset): New helpy tiny macro.
(AC_OUTPUT): Improved --help of config.status.
(AC_OUTPUT): Remove inconditionaly all the files to be updated.
(AC_OUTPUT): Use pid to define the temporary file names in order
to allow parallel builds.
* autoconf.sh: Substitute also /@BKL@/[/ /@BKR@/]/ /@DLR@/$/ so
that these characters are more easily accessible from m4 without
turning changequote juggling into a nightmare.
* acgeneral.m4 (AC_WRAP): New macro, for word wrapping.
* autoconf.texi: Update the direntry for more modern Texinfos.
Add pointer to configure and config.status.
Remove the dots from the menus: horizontal space is precious.
(Invoking config.status): More traditional presentation of the options.
* acgeneral.m4 (AC_ACVERSION): Bump to 2.14.1 to differenciate the
experimental branch from the main trunk.
* acgeneral.m4 (AC_FOREACH_COMMA): New macro, to perform m4 loops
on m4 lists (i.e., list='(item_1, item_2, ..., item_n)').
(AC_FOREACH): New macro, to perform m4 loops on shell lists (i.e.,
list='item_1 item_2 ... item_n').
* acgeneral.m4 (AC_DEFUN): Now accept two other optionnal
parameters: the name of the macro which is specialized here, and
the name of the first argument. For instance `AC_CHECK_FNMATCH'
should be declared as specializing `AC_CHECK_FUNC' for `fnmatch'
as first argument.
* acgeneral.m4 (AC_CHECK_FILES): Use AC_FOREACH for looping,
instead of the shell's loop.
* acgeneral.m4 (AC_TR): In addition to transliteration, provide a
mean to specify the valid destination alphabet and a default
character for aliens characters. This is in order to remove
characters such as `+:-' etc. that may appear in file names,
but are not valid for shell variables or #defines.
(AC_TR_DEFINE): New macro, maps anything to a valid uppercase
#define rhs.
(AC_TR_UPCASE_NAME): Replaced by AC_TR_DEFINE. All callers
changed.
(AC_TR_UPCASE_FILE): Likewise.
* acgeneral.m4 (AC_TR_SH): Don't use the generic AC_TR: there is a
difficult problem of quoting between m4 and sh. Use the variable
$ac_tr_sh to work around this difficulty.
(AC_VAR_TEST_SET): New macro, which tests if a variable is set.
(AC_VAR_IF_SET): New `ifelse' macro.
(AC_CACHE_VAL): Use AC_VAR_IF_SET.
(AC_INIT_NOTICE): Define $ac_tr_sh.
* acgeneral.m4 (AC_CHECK_FILE): Converted to use AC_TR and AC_VAR
families.
* acgeneral.m4: Fixed the regular expressions: `$' shall not be
portably in a sed \(\) group.
(Particular Programs): Document new optional argument to AC_PROG_CC,
AC_PROG_CXX and AC_PROG_F77. Document additions to the Fortran 77
compiler search list.
(AC_PROG_CC): Remove uname test for win32/Cygwin, and just test for `cl'
as a last resort.
(AC_PROG_F77): Add more Fortran 77 compilers to the search list.
Contributed by Steven G. Johnson <stevenj@alum.mit.edu>.
(AC_PROG_CC): Likewise.
(AC_PROG_CXX): Likewise.
(AC_PROG_F77): Add an optional first argument which gives the user an
opportunity to specify an alternative search list for the compiler.
(AC_F77_LIBRARY_LDFLAGS): New implementation, to make maintenance
easier.
Grep the initial output so that we don't start parsing "-l" and "-L" too
early. From Christopher Lee <chrislee@ri.cmu.edu>
Add, and use throughout Autoconf, the following useful m4 macros
contributed by Akim Demaille <demaille@inf.enst.fr>:
AC_TR
AC_TR_UPCASE_NAME
AC_TR_UPCASE_FILE
AC_TR_SH
_AC_SH_QUOTE
_AC_MESSAGE
AC_WARNING
AC_FATAL
AC_VAR_IF_INDIR
(AC_PREFIX_PROGRAM): Use macros of the AC_TR_ family.
(AC_HAVE_LIBRARY): Likewise.
(AC_CHECK_FUNCS): Likewise.
(AC_CHECK_FILES): Likewise.
(AC_CHECK_SIZEOF): Likewise.
(AC_TR): New macro which performs transliteration by m4 when possible,
or by `tr' at configure time.
(AC_TR_UPCASE_NAME): New macro, transliteration 'a-z' to 'A-Z'.
(AC_TR_UPCASE_FILE): New macro, transliteration 'a-z./-' to 'A-Z___'.
(AC_TR_SH): New macro, transliteration to valid sh var name.
(_AC_SH_QUOTE): New macro which protects non protected backquotes
against shell expansion.
(AC_MSG_CHECKING): Use it.
(AC_CHECKING): Use it.
(AC_MSG_RESULT): Use it.
(AC_VERBOSE): Use it.
(AC_MSG_WARN): Use it.
(AC_MSG_ERROR): Use it.
(_AC_MESSAGE): New macro to report message at m4 time.
(AC_WARNING): New macro to report warnings at m4 runtime.
(AC_FATAL): New macro, to report fatal error at m4 runtime.
(AC_VAR_IF_INDIR): New macro.
(AC_VAR_SET): Likewise.
(AC_VAR_GET): Likewise.
{f77-name-mangling} (AC_OUTPUT_MAKE_DEFS): Change sed regexps to
recognize CPP macros that take arguments. Reported, and based on a
patch, by Steven G. Johnson <stevenj@alum.mit.edu>.
(AC_OUTPUT_HEADER): Likewise.
{f77-name-mangling} (AC_F77_WRAPPERS): New macro to define the F77_FUNC
and F77_FUNC_ CPP macros to properly mangle the names of C identifiers
so that they match the name mangling scheme used by the Fortran 77
compiler.
(AC_F77_NAME_MANGLING): New macro to test for the name mangling scheme
used by the Fortran 77 compiler.
Ben Elliston [Sun, 16 May 1999 22:00:08 +0000 (22:00 +0000)]
1999-05-17 Ben Elliston <bje@cygnus.com>
Merge with the EGCS source tree.
* config.guess: Add detection for Interix and UWIN on Windows NT,
OpenBSD on PA-RISC and UnixWare version 7.x.
Improve usage of `tr' where sets are concerned.
Detect all HP 9000 machines.
Determine machine types more completely on older UnixWare systems.
Determine C library version on GNU/Linux for the PowerPC.
Tom Tromey [Thu, 22 Apr 1999 21:38:24 +0000 (21:38 +0000)]
1999-04-17 Paul Eggert <eggert@twinsun.com>
* autoconf.texi, acspecific.m4 (AC_FUNC_MKTIME): New macro.
taken from automake's AM_FUNC_MKTIME.
* acfunctions: mktime now belongs to AC_FUNC_MKTIME.
Ben Elliston [Sun, 11 Apr 1999 00:39:32 +0000 (00:39 +0000)]
1999-04-11 Pavel Roskin <pavel_roskin@geocities.com>
* autoheader.m4: Do not complain about using AC_TRY_RUN without a
cross-compilation action--only autoconf should do this.
Ben Elliston [Sat, 10 Apr 1999 21:10:58 +0000 (21:10 +0000)]
1999-02-10 Pavel Roskin <pavel_roskin@geocities.com>
* autoheader.m4: Do not complain about using AC_TRY_RUN without a
cross-compilation action--only autoconf should do this.
Ben Elliston [Sat, 10 Apr 1999 20:23:05 +0000 (20:23 +0000)]
1999-01-28 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* acspecific.m4 (AC_PROG_INSTALL): set INSTALL_SCRIPT to
${INSTALL} so that automake doesn't propogate install time flags
for INSTALL_PROGRAM into INSTALL_SCRIPT.
Ben Elliston [Sat, 10 Apr 1999 06:18:49 +0000 (06:18 +0000)]
1999-01-11 Akim Demaille <demaille@inf.enst.fr>
* autoreconf.sh (verbose): use either `:' or `echo'.
(aclocal_m4): Renamed from aclocal.
(aclocal_flags): New var.
Run aclocal using $aclocal_flags.
Redirect ls' stderr to /dev/null to avoid spurious messages.
Ben Elliston [Fri, 9 Apr 1999 21:44:01 +0000 (21:44 +0000)]
1999-04-10 Ben Elliston <bje@cygnus.com>
* mkinstalldirs: Add `-m' flag to specify the mode of a newly
created directory. Add command line usage and `-h', `--help'
options. Contributed by Jeff Garzik <jgarzik@pobox.com>.
Ben Elliston [Wed, 7 Apr 1999 23:59:09 +0000 (23:59 +0000)]
1999-04-08 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_PROG_CC): Try using the `cl' C compiler under
Cygwin. Contributed by Scott Stanton <stanton@scriptics.com>.
Ben Elliston [Mon, 5 Apr 1999 07:05:59 +0000 (07:05 +0000)]
1994-04-06 Ben Elliston <bje@cygnus.com>
* config.guess: Avoid the possibility of `ld' on GNU/Linux
systems being something other than the GNU linker (such as a
directory, in the case of GNU binutils).
Ben Elliston [Sun, 4 Apr 1999 23:00:07 +0000 (23:00 +0000)]
1999-04-05 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_CYGWIN): Do not remove conftest*; let
AC_TRY_COMPILE clean up after itself.
(AC_MINGW32): Likewise.
(AC_EMXOS2): Likewise.
Ben Elliston [Wed, 31 Mar 1999 08:42:11 +0000 (08:42 +0000)]
1999-04-01 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_EXEEXT): Do not consider `.xcoff' as a
possible executable filename extension. Contributed by Robert
S. Maier <rsm@math.arizona.edu>.
Ben Elliston [Wed, 31 Mar 1999 08:16:10 +0000 (08:16 +0000)]
1999-04-01 Ben Elliston <bje@cygnus.com>
* standards.texi: Update from FSF.
* acspecific.m4 (AC_PROG_INSTALL): Avoid using the installation
script belonging to HP `pwplus' when running the install
program. Contributed by Steven G. Johnson <stevenj@alum.mit.edu>
and Dave Adams <adams@hpesdwa.fc.hp.com>.
Ben Elliston [Sun, 21 Mar 1999 14:01:52 +0000 (14:01 +0000)]
1999-03-22 Ben Elliston <bje@cygnus.com>
* config.guess: Rename BUILD_CC to CC_FOR_BUILD; there is a
precedent for the usual name of this environment variable.
Ben Elliston [Wed, 10 Mar 1999 15:12:51 +0000 (15:12 +0000)]
1999-03-11 Ben Elliston <bje@cygnus.com>
* config.sub: Recognise hppa2.0w. Contributed by Erez Zadok
<ezk@cs.columbia.edu>.
1999-03-11 Pavel Roskin <pavel_roskin@geocities.com>
* config.guess: Prefer $HOST_CC over $CC when deciding on a C
compiler to compile stub programs. Allow this to be overridden
with the value of $BUILD_CC in cross-compilation environments
where the native compiler must be used for running tests on the
host.
Ben Elliston [Wed, 10 Mar 1999 04:43:57 +0000 (04:43 +0000)]
1999-03-11 Ben Elliston <bje@cygnus.com>
* config.guess: Recognise MiNT and TOS on Atari machines.
Contributed by Guido Flohr <gufl0000@stud.uni-sb.de>.
* config.sub: Add aliases for MiNT.
Ben Elliston [Sun, 28 Feb 1999 14:41:03 +0000 (14:41 +0000)]
1999-02-28 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_FUNC_VFORK): Allow test to behave correctly
when $ac_cv_func_vfork_works is the empty string. Contributed by
<red@nym.alias.net>.
Ben Elliston [Thu, 25 Feb 1999 18:38:19 +0000 (18:38 +0000)]
1999-02-26 Ben Elliston <bje@cygnus.com>
* install-sh: Avoid trailing whitespace.
* autoscan.pl (parse_args): Make compatible with Perl version 4.
1999-02-24 Ben Elliston <bje@cygnus.com>
* config.guess: Detect LynxOS 3.x. Contributed by Giuseppe
Guerrini <guisguerrini@racine.ra.it>.
1999-02-10 Tom Tromey <tromey@cygnus.com>
* acgeneral.m4 (AC_CACHE_LOAD): Avoid sourcing special files.
Works around bug in some versions of bash.
Ben Elliston [Mon, 22 Feb 1999 05:27:52 +0000 (05:27 +0000)]
1999-02-23 Ben Elliston <bje@cygnus.com>
* config.guess: Detect ReliantUNIX on MIPS. Contributed by Andrej
Borsenkow <borsenkow.msk@sni.de>.
Also remove random trailing whitespace.
Ben Elliston [Sun, 21 Feb 1999 21:05:26 +0000 (21:05 +0000)]
1999-02-02 Pavel Roskin <pavel_roskin@geocities.com>
* autoconf.texi: Corrected definitions for AC_CONFIG_AUX_DIR and
AC_PROG_F77. Duplicated descriptions for AC_SEARCH_LIBS and
AC_TRY_LINK_FUNC removed.
Ben Elliston [Sun, 21 Feb 1999 18:07:13 +0000 (18:07 +0000)]
1999-02-22 Ben Elliston <bje@cygnus.com>
* autoconf.texi (System Services): Explain the semantics of the
AC_SYS_RESTARTABLE_SYSCALLS macro in greater detail. Suggested by
Franc,ois Pinard <pinard@iro.umontreal.ca>.
Ben Elliston [Sun, 21 Feb 1999 17:40:20 +0000 (17:40 +0000)]
1999-02-22 Stu Grossman <grossman@cygnus.com>
* acgeneral.m4 (AC_CANONICAL_SYSTEM): Explicitly require
AC_CANONICAL_HOST, AC_CANONICAL_TARGET and AC_CONICAL_BUILD.
(AC_CONFIG_AUX_DIR): Run auxillary shell scripts through $SHELL.
Do not rely on their magic number.
(AC_CANONICAL_THING): New macro. Cache results.
(AC_CANONICAL_HOST): Reimplement; use AC_CANONICAL_THING.
(AC_CANONICAL_TARGET): Likewise.
(AC_CANONICAL_BUILD): Likewise.
(AC_OUTPUT): Use $SHELL.
(AC_OUTPUT_SUBDIRS): Likewise.
Ben Elliston [Sun, 21 Feb 1999 16:49:04 +0000 (16:49 +0000)]
1999-02-19 Ben Elliston <bje@cygnus.com>
* config.guess: Make C code clean for C++ compilers. Contributed
by Markus Oberhumer <k3040e4@c210.edvz.uni-linz.ac.at>.
Ben Elliston [Thu, 18 Feb 1999 16:15:41 +0000 (16:15 +0000)]
1999-02-19 Felix Lee <flee@cygnus.com>
* 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.
Ben Elliston [Thu, 18 Feb 1999 15:45:36 +0000 (15:45 +0000)]
1999-01-14 Scott Bambrough <scottb@corelcomputer.com>
* config.guess: Recognise armv[234][lb] types (ie. `armv*').
1999-01-12 Scott Bambrough <scottb@corelcomputer.com>
* config.sub: Recognize armv[234][lb] types (ie. `armv*'). Add
alias for the NetWinder; set company to `corel'.
Ben Elliston [Sat, 23 Jan 1999 05:44:58 +0000 (05:44 +0000)]
1999-01-23 Ben Elliston <bje@cygnus.com>
* config.guess: Catch more NILE system models. Contributed by
Akim Demaille <demaille@inf.enst.fr> and probably Graham Jenkins.
Ben Elliston [Sat, 23 Jan 1999 05:39:52 +0000 (05:39 +0000)]
1999-01-23 Ben Elliston <bje@cygnus.com>
* autoheader.sh: Force $tmpout to close to avoid Windows file
sharing conflicts. From Mark Elbrecht <snowball3@usa.net>.