Commit Graph

1621 Commits

Author SHA1 Message Date
Akim Demaille
34afd91665 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
declaration in extern "C" too.
Reported by Roberto Bagnara.
2002-11-06 14:01:49 +00:00
Akim Demaille
6497d928b1 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
Remove.
We _have_ to stop using the old compatibility scheme that tried to
avoid useless backslashes because Libtool 1.4.3 contains a
AC_DEFINE([error_t], [int],
[Define to a type to use for `error_t' if it is not
otherwise available.])
We _have_ to quote the single quote and backslashes with .  The
old compatibility scheme saw that ` was backslashed, and therefore
did not quote the single quote.  Hence before this patch, Autoconf
was not compatible with Libtool.
2002-11-05 20:28:07 +00:00
Paul Eggert
11894d8bfc (AS_SHELL_SANITIZE): Set the following variables,
too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
LC_NAME, LC_PAPER, LC_TELEPHONE.
2002-11-05 07:09:14 +00:00
Akim Demaille
cbd2228627 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
Change name of cache variable to ac_cv_func_malloc_0_nonnull.
(AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
(_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
to ac_cv_func_realloc_0_nonnull.
(AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
2002-10-31 17:33:26 +00:00
Akim Demaille
1fe8a44d1f * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
`$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
Make variable, not a shell variable.
Suggested by Bruno Haible.
2002-10-31 13:15:03 +00:00
Akim Demaille
c4e69deefd * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
(_AC_RUN_IFELSE): Use it.
* lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
(_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
* lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
inline it.
2002-10-31 08:27:15 +00:00
Akim Demaille
fee20e50c9 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
sys/wait.h.
sparc_address_test returns void.
Use it with an argument, as prototyped.
From Bruno Haible.
2002-10-29 12:52:36 +00:00
Akim Demaille
5082c93acf * lib/autom4te.in (Autoconf): s/automate/autom4te/.
Reported by Ralf Corsepius.
2002-10-29 08:07:29 +00:00
Akim Demaille
f77ff8f591 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
characters is a back as an `obsolete' warning now.
Reported by Ralf Corsepius.
2002-10-29 08:06:36 +00:00
Akim Demaille
12da19c97b * configure.ac: Bumpto 2.54c. 2002-10-28 10:52:05 +00:00
Akim Demaille
20fc2abed5 Version 2.54b. 2002-10-28 07:30:59 +00:00
Akim Demaille
5c5c6ff00b * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
AC_RUN_IFELSE.
2002-10-27 18:30:39 +00:00
Akim Demaille
1b597ea9b3 * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
* lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
Die when a simple Fortran program cannot be compiled.
* lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
Issue a warning if no function is given.
2002-10-27 18:24:51 +00:00
Akim Demaille
0357fc513f * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
Move the documentation of AC_TRY_RUN to...
(Obsolete Macros): here.
Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
(autoconf Invocation): Remove the duplicates with `invoking
autom4te'.
* lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
2002-10-27 18:23:14 +00:00
Akim Demaille
459078b633 * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
and AC_LANG_FUNC_LINK_TRY.
(Examining Libraries): Rename as...
(Running the Linker): this.
Document AC_LINK_IFELSE.
Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
(Obsolete Macros): here.
* lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
AC_TRY_LINK_FUNC nor AC_TRY_LINK.
* lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
* lib/autoconf/headers.m4 (AC_USG): Likewise.
2002-10-27 18:21:31 +00:00
Akim Demaille
b2504ea98a * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
More `check config.log' messages.
* lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
* doc/autoconf.texi (Printing Messages): Document it.
* lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
appropriate.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
(_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
(_AC_COMPILER_OBJEXT): Likewise.
* lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
* lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
Likewise.
* lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
Likewise.
Deprecate macros with unsual interface.
* lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
(AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
Document the new ones, and proper style.
* doc/autoconf.texi (Generating Sources): New.
Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
(Examining Declarations): Rename as...
(Running the Preprocessor): this.
Document AC_PREPROC_IFELSE.
(Examining Syntax): Rename as...
(Running the Compiler): this.
(AC_FOO_IFELSE vs AC_TRY_FOO): New section.
(Obsolete Macros): Move the definition of AC_TRY_CPP and
AC_TRY_COMPILE here.
2002-10-27 18:19:38 +00:00
Akim Demaille
017a1dc5e5 * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
autom4te.in that resulted in the need for two `make' runs.
2002-10-27 18:16:06 +00:00
Akim Demaille
c54fb7e2e7 * configure.ac: Bump to 2.54b. 2002-10-27 18:14:58 +00:00
Akim Demaille
47dcd42876 * lib/autoscan/Makefile.am (autoscan.list): Disable the cache.
* bin/Makefile.am: Include freeze.mk.
2002-10-25 15:12:59 +00:00
Akim Demaille
277d32d307 * lib/autoscan/Makefile.am (CLEANFILES): Add autoscan.list. 2002-10-25 14:30:51 +00:00
Akim Demaille
38c162b207 * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA): autoscan.pre is not to be installed, and autoscan.list is not to be shipped. 2002-10-25 13:19:25 +00:00
Akim Demaille
12e8751edd * lib/autoscan/Makefile.am: autoscan.list is in srcdir. 2002-10-25 13:04:42 +00:00
Akim Demaille
da6caf35ba * bin/autom4te.in (&load_configuration): Take the file as
argument.
(&parse_args): Handle -C, --cache.
($help): Adjust.
(MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
* lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
* doc/autoconf.texi (Invoking autom4te): Document --cache.
Now a subsection of...
(Using autom4te): This new section.
(Customizing autom4te): New.
(autom4te.cache): Adjust.
2002-10-25 11:52:37 +00:00
Akim Demaille
38999f6a79 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
type _Bool.
Fix a typo.
* doc/autoconf.texi (Particular Headers): Adjust according to Paul
Eggert's recommandations.
2002-10-23 07:27:03 +00:00
Akim Demaille
86c6702369 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
Bison, by Paul Eggert.
* doc/autoconf.texi (Particular Headers): Document it.
2002-10-22 12:34:21 +00:00
Akim Demaille
94ee3f9807 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
`$ac_configure_args'.
2002-10-22 12:18:46 +00:00
Akim Demaille
a70900d82a Restore the 2002-10-11 Akim Demaille <akim@epita.fr> patch:
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
(AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
(_AC_CHECK_HEADER_NEW): Rename as...
(AC_CHECK_HEADER): this.
2002-10-22 12:02:08 +00:00
Akim Demaille
cba40759dd * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
are a few warnings.
* lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
Quote for Perl '' strings, not "".
* bin/autoheader.in: Invoke autoconf to get '' strings, not ""
strings.
2002-10-22 11:14:44 +00:00
Akim Demaille
33c894c0bf * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
characters is a syntax warning now.
(_AS_QUOTE): Accept $2 as list of characters to quote.
* lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
Quote for Perl, not sh.
* bin/autoheader.in: When $debug, report the file which is
`do'ne.
* tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
`@', to tickle Perl's lists.
Reported by Carlos Velasco.
2002-10-22 08:20:19 +00:00
Akim Demaille
a73415cbc4 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
Fixes the `AC_ARG_VAR' test failures.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
* lib/freeze.mk (check-forbidden-patterns): New.
* lib/autoconf/Makefile.am, lib/autotest/Makefile.am
* lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
* doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
/dev/null.
Reported months ago by H. Merijn Brand.
2002-10-17 10:34:09 +00:00
Akim Demaille
03d56d8bbe * bin/autoconf.as: Kill dead options.
* bin/autoupdate.in (&parse_args): Kill old options.
* bin/autoreconf.in (&parse_args): Remove dead options.
Factor some code.
(&autoreconf): Report the directories we enter *and leave*, so
that error messages can be easily located, and use GNU Make
format, so that Emacs' compile mode understands us.
* lib/Autom4te/General.pm (&update_file): Use `verbose' to report
if some file was changed instead of `print'.
* bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
(&parse_args): Remove the dead options.
* tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
autoheader's quiet mode.
(AT_CHECK_AUTOUPDATE): Likewise.
* tests/tools.at (autoupdate): Adjust.
* tests/semantics.at (AC_C_BIGENDIAN): Likewise.
2002-10-16 06:38:50 +00:00
Paul Eggert
7006b6880c No longer use CPP to check for the existing of headers: use CC to
check for compilability.

(_AC_CHECK_HEADER_MONGREL, AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
(_AC_CHECK_HEADER_NEW): Rename as...
(AC_CHECK_HEADER): this.
2002-10-11 23:52:06 +00:00
Akim Demaille
1b8a4459ee * lib/autotest/general.m4 (AT_INIT): Include the failed test
numbers in the Subject suggestion.
2002-10-11 13:02:40 +00:00
Akim Demaille
ffd1f452a8 * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
Suggest using AC_CHECK_DECLS instead.
2002-10-11 12:17:51 +00:00
Akim Demaille
7260b1d3c2 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
file name to enable parallel executions.
From Sam Varshavchik.
2002-10-11 09:49:31 +00:00
Paul Eggert
108afbf59f --warning -> --warnings. 2002-10-08 23:05:41 +00:00
Akim Demaille
1682b2f72f (autoscan.list): Force LC_ALL to C. 2002-10-02 06:07:50 +00:00
Akim Demaille
379333954a Reverse an accidental change. 2002-09-29 08:14:32 +00:00
Akim Demaille
b042fb40ec * doc/autoconf.texi (autom4te.cache): New section. 2002-09-28 16:40:49 +00:00
Akim Demaille
8054f9034f * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
(Automake-preselections): Update.
* bin/autoreconf.in, bin/autoheader.in: Comment changes.
2002-09-28 16:39:22 +00:00
Akim Demaille
ed8b9d7757 * lib/autoscan/autoscan.pre: Move all the remaining rules to...
* lib/autoconf/c.m4, lib/autoconf/functions.m4,
* lib/autoconf/headers.m4, lib/autoconf/libs.m4,
* lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
2002-09-28 16:38:48 +00:00
Akim Demaille
54b5830601 * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
autoheader are Perl programs.
(autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
(autom4te): Specify that the sources are in the $srcdir.
* doc/autoconf.texi (Installation Directory Variables): Adjust.
2002-09-28 14:09:42 +00:00
Akim Demaille
3906e3de21 * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
(tm_zone): Move their rules to...
* lib/autoconf/types.m4: here, using AN_ macros.
* lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
(RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
(make, mawk, nawk, ranlib, yacc): Similarly, move to...
* lib/autoconf/programs.m4: here.
* lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
(ETAGS_FOR_AUTOCONF): New.
Use it.
2002-09-28 14:07:47 +00:00
Akim Demaille
7134f17d88 * lib/autoconf/autoscan.m4: New file.
* lib/autoconf/autoconf.m4: Include it.
* lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
that were listed in the original autoscan.list.
* lib/autoconf/headers.m4: Similarly with headers.
* lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
(.m4.m4f): Don't pass --prepend-include, since that's done by
tests/autom4te itself.
* lib/autoscan/Makefile.am: Include freeze.mk.
(autoscan.list): New target --this file is no longer a source.
(autoscan.pre): New file.
2002-09-28 14:06:07 +00:00
Akim Demaille
9dfa6d9aa3 * bin/autoscan.in (@kinds): Make them singular.
Adjust all uses.
(&init_tables): When --debug, report the list of rules to ease
tracking changes in autoscan.list.
* lib/autoscan/autoscan.list (function): Strip comments, sort.
2002-09-28 14:03:14 +00:00
Akim Demaille
51de11a561 * lib/autoscan/functions, lib/autoscan/headers,
* lib/autoscan/identifiers, lib/autoscan/makevars,
* lib/autoscan/programs: Merge into...
* lib/autoscan/autoscan.list: this.
* bin/autoscan.in (&init_tables): Adjust.
2002-09-28 14:02:11 +00:00
Akim Demaille
d8a2311821 * lib/autoscan/functions, lib/autoscan/headers,
* lib/autoscan/identifiers, lib/autoscan/makevars,
* lib/autoscan/programs: Make the `kind' explicit, i.e., each
`functions' line is now prefixed with `function:'.
* bin/autoscan.in (&init_tables): Adjust.
2002-09-28 14:01:11 +00:00
Akim Demaille
0d44ad22d0 From now on, autoscan files must always map a macro name to a
word: there is no `default' macro for autoscan.
* bin/autoscan.in (&init_tables): Reject entries with no macro at
all.
* lib/autoscan/functions, lib/autoscan/headers: Make the macro
explicit.
2002-09-28 14:00:35 +00:00
Akim Demaille
3bf99f5ce0 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
* lib/autoscan/functions: Adjust.
* doc/autoconf.texi (Particular Functions): Adjust.
2002-09-27 09:25:41 +00:00
Akim Demaille
2e5d3adde4 s/depecrated/deprecated/. 2002-09-27 08:48:26 +00:00
Akim Demaille
9a56bdde71 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
from /tmp.
Thanks to Bill Moseley and Paul Eggert.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
the tmpdir must be created.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
dir be in the build tree, instead of $TMPDIR.
2002-09-27 08:20:26 +00:00
Akim Demaille
686b49d823 * bin/autoscan.in: Improve the comments.
(&parse_args): Drop obsolete undocumented options.
(&output_kind): Output warnings.
* lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
(getwd): Trigger a warning.
2002-09-27 07:35:39 +00:00
Akim Demaille
13fd012e2f i960 compilers create `b.out' files by default.
Reported by Ralf Corsepius.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
(_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
2002-09-16 08:38:45 +00:00
Akim Demaille
fee981ce59 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
reading config.log when the compiler is rejected.
Suggested by Guido Draheim.
2002-09-13 07:18:15 +00:00
Akim Demaille
533c668ec2 Regen. 2002-09-11 10:01:54 +00:00
Akim Demaille
7a3408107f * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
`duplicates', since the algorithm was too naive and could keep
`--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
keep `--prefix foo --prefix bar' as `--prefix foo bar'.
Reported by Ralf Corsepius.
* tests/torture.at (Configuring subdirectories): Exercise these
cases.
2002-09-09 15:51:52 +00:00
Akim Demaille
3e8becf84f * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
looking for a replacement file.
* lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
directory is relative.
* doc/autoconf.texi (Generic Functions): Clarify the replacement
directory definition.
Reported by Andreas Schwab and Jim Meyering.
2002-09-09 15:43:37 +00:00
Akim Demaille
b2888aa57e * configure.ac: Bump to 2.53d.
* Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
as of today, on Automake's team suggestion.
2002-09-03 09:17:44 +00:00
Akim Demaille
d417d35b57 * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
SITE_MACRO_DIR.
* configure.ac: Disable SITE_MACRO_DIR.
2002-09-03 06:09:30 +00:00
Akim Demaille
1f064c63b6 * lib/Autom4te/General.pm (&update_file): s/die/error/.
Reported by Raja R. Harinath.
* bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
* bin/autoupdate.in: Use error instead of die.
2002-09-02 07:41:56 +00:00
Paul Eggert
c8c8f2a584 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O): Work even if
"ls" outputs "FOO not found" to stdout, as traditional "ls" does.
2002-09-01 10:11:05 +00:00
Paul Eggert
24e7c10e7f (AS_SHELL_SANITIZE): Unset ENV, MAIL,
MAILPATH and set PS1, PS2, PS4 to default values, to work
around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
For LC_ALL etc, first try to set to "C" as POSIX requires and as
the Autoconf documentation specifies; fall back to "unset" only if
this fails.  Use a shell for-loop for this rather than an m4 loop,
to shorten the output script.
2002-09-01 08:24:04 +00:00
Paul Eggert
9e22b61cb2 Regenerate, this time with the correct m4.m4. 2002-09-01 08:17:15 +00:00
Paul Eggert
6fb1e2093b Regenerate with Automake 1.6.3. 2002-08-31 05:51:03 +00:00
Paul Eggert
f27d2995ab (AS_SHELL_SANITIZE): Use AS_UNSET instead
of rolling our own unset.
(_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
in practice we needn't worry about CDPATH if unset doesn't work.
2002-08-31 05:48:04 +00:00
Paul Eggert
4148c6e1d8 (_AC_INIT_SRCDIR): Reject FOO if "cd FOO" and "ls FOO" talk about
different directories; this catches problems when POSIX 1003.1-2001
"cd" fails due to symlink spaghetti.
2002-08-31 05:47:02 +00:00
Akim Demaille
a364aa42ba * lib/Autom4te/General.pm (&xqx): New.
(&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
hand, which is not portable.
(&error): New.
* bin/autom4te.in: Use them.
Use &error instead of die.
* tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
Adjust.
2002-08-29 08:03:10 +00:00
Paul Eggert
62545523b7 (AC_PROG_F77): Remove fc from the default list of compilers to try,
since it was long ago superseded by the ksh fc builtin.  Suggested by
Steven G. Johnson.
2002-08-18 00:47:25 +00:00
Mark D. Roth
a4865e2e2e 2002-07-29 Mark D. Roth <roth@feep.net>
* bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
        options and use $AUTOM4TE_PATH.
        * doc/autoconf.texi: Remove documentation of autom4te
        --include-envvar and --site-macro-subdir options and document
        use of $AUTOM4TE_PATH.
        * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
        arguments from each language section.
2002-07-30 00:42:58 +00:00
Paul Eggert
a8ead8a326 (_AS_PATH_SEPARATOR_PREPARE):
Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
apparently treats PATH="nonexistent" as if it contained ".".
Bug reported by Stefan `Sec' Zehl.
2002-07-23 22:17:19 +00:00
Akim Demaille
6d854434d2 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
Automake's parts.
* lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
* lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
* tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
2002-07-18 11:57:32 +00:00
Akim Demaille
f026c08a36 Alexandre Duret-Lutz <duret_g@epita.fr>
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
_AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
2002-07-18 11:13:55 +00:00
Akim Demaille
6653b31ca4 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
latter was not run.
2002-07-17 16:55:48 +00:00
Akim Demaille
4cb1a9ef1c * lib/Autom4te/General.pm (find_file): Browse the directories in
the order they are given.
2002-07-17 16:07:32 +00:00
Akim Demaille
5eb0e35124 Regen. 2002-07-17 08:35:59 +00:00
Paul Eggert
66d5f073b5 2002-07-17 Mark D. Roth <roth@feep.net>
* configure.ac: Add --enable-site-macro-dir option.
	* bin/Makefile.am: Expand @SITE_MACRO_DIR@.
	* bin/autom4te.in: Add --prepend-include, --include-envvar, and
	--site-macro-subdir options.
	* bin/autoconf.in: Add --prepend-include option.
	* bin/autoheader.in: Add --prepend-include option.
	* bin/autoreconf.in: Add --prepend-include option.
	* bin/autoscan.in: Add --prepend-include option.
	* bin/autoupdate.in: Add --prepend-include option.
	* doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
	macro directory, remove note that include path directories are
	used in reverse order, and document --prepend-include option.
	* lib/autom4te.in: Use --prepend-include instead of --include.
	* tests/wrapsh.in: Use --prepend-include instead of --include.
2002-07-17 08:30:42 +00:00
Akim Demaille
04df9dca08 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
tarnames.
* doc/autoconf.texi (Initializing configure): Adjust.
2002-07-17 08:17:28 +00:00
Akim Demaille
14fe4a6369 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
(_AC_FUNC_MALLOC): New.
(AC_FUNC_MALLOC): Use the latter.
Define HAVE_MALLOC to 0 if broken.
* doc/autoconf.texi (Particular Functions): Adjust.
2002-07-17 08:09:42 +00:00
Akim Demaille
511b665763 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
* doc/autoconf.texi (C Compiler): Adjust.
2002-07-16 13:37:53 +00:00
Alexandre Duret-Lutz
84993ece40 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
Don't use AC_REQUIRE in AU_DEFUN.
2002-07-09 08:46:08 +00:00
Alexandre Duret-Lutz
617c68ef91 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
so that Emacs setups GNU style for perl-mode and cperl-mode.
2002-07-02 20:31:22 +00:00
Paul Eggert
021eba412a (_AC_LIBOBJ_FNMATCH): Also check for
btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
on Solaris 2.5.1.
2002-06-12 07:20:14 +00:00
Akim Demaille
105bad12a1 * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
_AC_LANG_PROGRAM_C_F77_HOOKS.
2002-06-07 10:04:28 +00:00
Akim Demaille
06e2b8bb73 * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
rename as...
(AC_REPLACE_FNMATCH): this.
* tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
AC_FUNC_FNMATCH_GNU.
2002-06-07 09:50:32 +00:00
Akim Demaille
334d4b6b81 * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
Rosetta Stone for Unix.
2002-06-07 09:30:24 +00:00
Akim Demaille
54ae96e2a0 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
ac_config_libobj_dir.
(AC_CONFIG_LIBOBJ_DIR): New.
* lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
(_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
Use ac_config_libobj_dir to find the replacement files.
(AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
(AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
(AC_REPLACE_FNMATCH_GNU): these.
(AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
* doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
* tests/mktests.sh (ac_exclude_list): Don't check
AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
2002-06-07 07:17:53 +00:00
Paul Eggert
f587ed5da6 (_AC_OUTPUT_LINKS): Fall back on cp if ln doesn't work. 2002-06-06 17:55:47 +00:00
Akim Demaille
971a01995e Regen. 2002-06-06 15:29:18 +00:00
Paul Eggert
82ff47d803 (AC_PROG_EGREP, AC_PROG_FGREP): New macros. 2002-05-29 22:30:17 +00:00
Paul Eggert
fd4614e4ff (AT_INIT, AT_CHECK): Do not assume that egrep and fgrep exist. 2002-05-29 22:27:40 +00:00
Paul Eggert
9e087cf376 Update commentary to not assume egrep. 2002-05-29 22:27:14 +00:00
Paul Eggert
031952bcce (AC_CONFIG_HEADER): Do not assume that egrep and fgrep exist. 2002-05-29 22:26:43 +00:00
Paul Eggert
11ec5795dc (check-local): Do not assume that egrep and fgrep exist. 2002-05-29 22:26:16 +00:00
Paul Eggert
a747233e33 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP): Do not assume that egrep and fgrep exist. 2002-05-29 22:25:50 +00:00
Paul Eggert
f1496addfd (AC_C_BIGENDIAN): Do not assume that egrep and fgrep exist. 2002-05-29 22:25:24 +00:00
Paul Eggert
d78872ae6d (_AC_FUNC_FNMATCH): Require AC_TYPE_MBSTATE_T instead of AC_MBSTATE_T,
which never existed.
2002-05-28 04:13:59 +00:00
Paul Eggert
8d17870f3d (AC_TYPE_MBSTATE_T): New macro. 2002-05-28 04:13:07 +00:00
Paul Eggert
af5396d79f (AC_PROG_F77): Remove cf77 and cft77 from the default list of
compilers to try.  Suggested by Kate Hedstrom.
2002-05-22 23:35:54 +00:00
Paul Eggert
970e96bd21 (AC_CHECK_MEMBER): Work correctly even if the member is itself an
aggregate.  Bug reported by Sergey Poznyakoff.  This improves on an
earlier suggestion by H. Peter Anvin.
2002-05-18 00:56:47 +00:00
Paul Eggert
1372672af0 (AC_GNU_SOURCE): New macro. 2002-05-17 07:09:12 +00:00
Paul Eggert
a64dba738c (_AC_FUNC_FNMATCH): New macro.
(AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
not for GNU extensions; this undoes part of the 2000-11-03 change,
reverting to 2.13-compatible behavior.
Add new optional argument DIR.
(AC_FUNC_FNMATCH_GNU): New macro.
2002-05-17 07:08:41 +00:00
Paul Eggert
9da19886af (AC_FUNC_GETLOADAVG): Add optional argument specifying location of
getloadavg.c.  This removes a FIXME.  This idea was taken from Jim
Meyering's implementation in textutils.
2002-05-08 22:30:49 +00:00
Paul Eggert
f2d43f41d5 (AC_HEADER_TIOCGWINSZ):
Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
and it causes a 'test' syntax error if it fails.
Bug reported by Stephen Gildea.
2002-05-08 20:26:07 +00:00
Paul Eggert
603fc71942 (AC_FUNC_SETVBUF_REVERSED):
If prototypes are supported, use them to check this at compile-time,
instead of trying to check it at run-time.  If we must do a run-time
check, assume that setvbuf is standard when cross-compiling, as
nonstandard setvbuf occurs only on ancient and unlikely hosts.
2002-05-08 19:56:55 +00:00
Akim Demaille
89dd0d23ad * lib/m4sugar/m4sugar.m4 (m4_map_sep): New. 2002-05-03 08:26:29 +00:00
Akim Demaille
ffa9b817ad * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
and ac_subst_vars be sh variables containing the list of
AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
DEFAULT diversion.
(_AC_INIT_PREPARE): Use them to log them.
(_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
(AC_SUBST, AC_SUBST_FILE): Instead of buliding the
_AC_SUBST_SED_PROGRAM, store the list of output files/variables in
_AC_SUBST_FILES and _AC_SUBST_VARS.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
2002-04-25 08:54:47 +00:00
Peter Eisentraut
a8b2c66ea5 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
and bb.out when cleaning up.
2002-04-22 17:05:21 +00:00
Akim Demaille
e3bd4560c9 Regen. 2002-04-22 09:10:58 +00:00
Paul Eggert
298b5b57f3 Minor spelling and grammar fixes. 2002-04-21 07:25:20 +00:00
Paul Eggert
62843c4d18 (AT_INIT): Fix typos in yesterday's ZSH_VERSION fixes. Bug reported
by Raja R Harinath.
2002-04-21 06:35:08 +00:00
Paul Eggert
dd756ac977 Minor spelling and grammar fixes. 2002-04-20 06:09:01 +00:00
Paul Eggert
36ff4c803c (AT_INIT): Rewrite one instance so that the "$@" problem does not come up.
Use Zsh alias to work around the other instance.
2002-04-19 19:06:23 +00:00
Paul Eggert
6e2217b6aa (AC_OUTPUT): Rewrite so that the "$@" problem does not come up. 2002-04-19 19:05:01 +00:00
Paul Eggert
297876adf2 (AC_CHECK_PROG): Rewrite so that the "$@" problem does not come up. 2002-04-19 19:04:35 +00:00
Akim Demaille
ac07b92899 Comment changes. 2002-04-10 17:36:45 +00:00
Akim Demaille
9d658eddd9 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
workaround for ${1+"$@"}.
* doc/autoconf.texi (Shell Substitutions): Explain it.
From Oliver Kiddle and Peter Stephenson.
Have M4sh perform minimal shell sanitizing.
* lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
part into...
(_AS_PREPARE): this new macro.
(AS_PREPARE): New.
(AS_INIT): Invoke AS_SHELL_SANITIZE.
* tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
Adjust Autoconf and Autotest.
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
Invoke _AS_PREPARE (not AS_PREPARE) in addition to
AS_SHELL_SANITIZE.
Use this M4sh to generate Autoconf's shell scripts.
* tests/wrapsh.as: New, precursor of wrapsh.in.
* tests/Makefile.am: Include lib/freeze.mk to get the dependencies
on Autotest and M4sh.
($(TESTSUITE)): Use $(autotest_m4f_dependencies).
(wrapsh.in): New target.
* bin/autoconf.as: New, precursor of autoconf.in.
(autoconf.in): New target.
2002-04-10 15:58:19 +00:00
Andreas Schwab
c3e5a58406 * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
ac_top_builddir when setting ac_abs_top_builddir.
2002-04-09 11:15:32 +00:00
Andreas Schwab
193f800800 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
contains no literal separators.
2002-04-04 13:35:05 +00:00
Akim Demaille
b7c024b172 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
(_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
Use dnl, not the KILL diversion.
Extracted from...
(AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
(AC_CONFIG_LINKS): here.
Adjust.
Don't use the KILL diversion, as it kills spurious output, which
results in failures being hidden.
Use m4_defn where appropriate.
(AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
after the second argument.
Use m4_defn.
* lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
syntax, as it is provided by M4sugar.
* tests/torture.at (Multiple AC_CONFIG_FILES): New.
2002-04-03 13:35:59 +00:00
Andreas Schwab
9dc0d53597 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
expanded if $# <= 2.
2002-04-03 11:11:46 +00:00
Akim Demaille
9b7a51e844 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
(_AC_COMPILER_EXEEXT_REJECT): New.
Also recognize *.bb and *.bbg as compilation byproducts.
(_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
(_AC_COMPILER_OBJEXT): Use them.
Fixes Debian #138666.
2002-04-03 09:27:04 +00:00
Peter Eisentraut
931312faea Integrate AC_PROG_CC_STDC into AC_PROG_CC.
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
(AC_PROG_CC): Call _AC_PROG_CC_STDC.
(AC_C_INLINE): Do not require AC_PROG_CC_STDC.
(AC_C_CONST): Same.
(AC_C_INLINE): Same.
(AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
* doc/autoconf.texi, NEWS: Document.
* tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
AC_C_CROSS.
2002-04-02 18:22:08 +00:00
Akim Demaille
3aec90e1cb * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
_AS_MKDIR_P_PREPARE.
2002-04-02 15:14:09 +00:00
Kevin Ryde
980c227c4b * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
to avoid versions of HP C which don't allow that.
2002-03-27 22:43:45 +00:00
Paul Eggert
4f473142a8 (_AS_BASENAME_PREPARE): New macro.
(AS_SHELL_SANITIZE): Invoke it.
(AS_BASENAME): AS_REQUIRE it, and use $as_basename.
2002-03-27 20:33:03 +00:00
Akim Demaille
3168ea4c07 * doc/autoconf.texi (Introduction): The GNATS base moved. 2002-03-26 09:19:51 +00:00
Paul Eggert
b07b6a5b8e (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV when reinvoking the
shell, to work around problems with installers who put strange things
like "cd" commands in their environments.
2002-03-22 05:35:53 +00:00
Akim Demaille
d151609eea * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New. 2002-03-19 07:42:06 +00:00
Paul Eggert
a3ed203186 (AT_INIT, AT_CLEANUP):
Create at_test_all by a series of assignments,
not by a single assignment of a long string.  The latter causes ksh
version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
presumably because of a buffer overrun.
2002-03-19 06:43:17 +00:00
Paul Eggert
8064dd81b2 (_AS_MKDIR_P_PREPARE): New macro.
(AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
back on AS_DIRNAME to compute prefixes otherwise; this is
roughly what mkinstalldirs does.  That way, we need not have
our own filename disassembler.  The old disassembler did not
work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
2002-03-19 06:23:15 +00:00
Paul Eggert
116d8263d9 (at_times_skip):
Renamed from at_times.  Now a boolean.
ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
says 'times: not found'.
2002-03-14 18:14:49 +00:00
Akim Demaille
782c620d3b * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
m4_require.
2002-03-12 16:08:01 +00:00
Akim Demaille
fbee53ee14 * Makefile.am (AUTOMAKE_OPTIONS): 1.6. 2002-03-08 12:44:46 +00:00
Akim Demaille
c854558a69 * doc/autoconf.texi (Invoking autom4te): New. 2002-03-08 11:46:07 +00:00
Akim Demaille
67043ba57f * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
* lib/autoconf/general.m4 (AC_INIT): More informative error
message for LIBOBJ.
2002-03-04 15:09:20 +00:00
Akim Demaille
f12cd33d89 * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
parallel builds.
2002-03-04 15:08:23 +00:00
Akim Demaille
cfe347de96 * doc/autoconf.texi (Transforming Names): Equality between target
and host is irrelevant.
(Specifying Names, Canonicalizing): Remove all references to the
backward compatibility hooks.  Rather, collect them all into...
(Hosts and Cross-Compilation): this new section.
* doc/install.texi (System Type): Ditto.
* lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
that `--host' implies cross-compilation.
2002-03-04 15:06:44 +00:00
Akim Demaille
a002bdb487 * doc/autoconf.texi (Evaluation Macros): New.
* lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
useless.
(_m4_foreach): Define the variant with immediate evaluation so
that it contains exactly the items, not an expression which
evaluation is the current item.
(m4_re_string, m4_re_word): Don't over quote them.
2002-03-04 15:05:13 +00:00
Akim Demaille
e1189f6dbc Instead of having stacking `shift's evaluated at the end, let
`foreach' loops immediately evaluate them.
* lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
$*.  This is the n-th time I change my mind, but hopefully this is
the last...
(m4_lquote): New.
(m4_text_wrap): Use m4_foreach, which is finally correct _and_
efficient.
(m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
it was only a hack for m4_text_wrap.
(m4_car2): Remove, replaced by...
(m4_cdr): New.
(_m4_foreach): Adjust.
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
m4_bpatsubst for clarification.
2002-03-04 15:02:21 +00:00
Peter Eisentraut
61c82103d4 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
lib/autoconf/functions.m4, lib/autoconf/general.m4,
lib/autoconf/headers.m4, lib/autoconf/lang.m4,
lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
of messages.
2002-03-02 15:19:47 +00:00
Akim Demaille
4f10c9b2d9 * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
message to be sent.
2002-02-28 15:55:13 +00:00
Akim Demaille
772b0c11e2 * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
From Akinori Musha.
2002-02-25 17:38:41 +00:00
Alexandre Duret-Lutz
ae51e3d9c3 * lib/Autom4te/XFile.pm (getline, getlines): New functions,
translate rn to n.
2002-02-14 12:04:39 +00:00
Akim Demaille
e421e67915 Version 2.52h. 2002-02-10 12:38:46 +00:00
Akim Demaille
a7181f1e85 Typo. 2002-02-09 08:27:23 +00:00
Akim Demaille
1b313550c5 freeze.mk: s/AUTOM4TE/MY_AUTOM4TE/ 2002-02-07 21:03:22 +00:00
Akim Demaille
43309fee5d Version 2.52h. 2002-02-07 18:31:27 +00:00
Akim Demaille
0913170fae Fix Autoconf PR/209.
Also reported by Frank Denis.
* lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
2002-02-07 15:49:31 +00:00
Akim Demaille
704a0d0ce2 Fix Autoconf PR/207:
AC_PREFIX_PROGRAM fails with dashed program names
* lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
variable when looking for the prefix program.
Now it also works for shell variables.
2002-02-07 12:07:20 +00:00
Akim Demaille
d03ab7023b * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
case/esac, some shells don't support it.
Reported by Zack Weinberg.
* tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
2002-02-06 17:51:01 +00:00