Commit Graph

2110 Commits

Author SHA1 Message Date
Paul Eggert
f2a9d6f3a7 Regenerate. 2006-08-24 22:57:30 +00:00
Paul Eggert
345806cfca Rework to use more-modern build style.
Many files are renamed; all uses of their names were changed.
* .x-sc_trailing_blank: Renamed from .x-sc_trailing_blank.
* .x-sc_useless_cpp_parens: New file.
* build-aux/config.guess: Renamed from config/config.guess.  Update.
* build-aux/config.sub: Renamed from config/config.sub.  Update.
* build-aux/elisp-comp: Renamed from config/elisp-comp.
* build-aux/install-sh: Renamed from config/install-sh.  Update.
* build-aux/mdate-sh: Renamed from config/mdate-sh.
* build-aux/missing: Renamed from config/missing.
* build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
* build-aux/vc-list-files: Renamed from config/vc-list-files.
* config/Makefile.am: Removed.
* config/mkinstalldirs: Removed.
* config/move-if-change: Removed.
* m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
* Makefile.am (SUBDIRS): Remove config.
(ACLOCAL_AMFLAGS): Include from m4, not config.
(EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
(WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
(autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
Fail if there's an error.
* Makefile.cfg (move_if_change): Remove.
(wget_files): Remove.
(cvs_executable_files): New macro.
(cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
(executable-update): Use $(cvs_executable_files).
(local-checks-to-skip): Remove.
* Makefile.maint: Merge from coreutils, plus add our own changes
(gzip_rsyncable): New macro.
(GZIP_ENV): Use it.
(CVS_LIST): Use build-aux/vc-list-files.
(VERSION_REGEXP): New macro.
(local-checks-available): Add patch-check, $(syntax-check-rules),
check-AUTHORS.
(syntax-check-rules): Compute dynamically.
(sc_cast_of_x_alloc_return_value): Work even if no source files.
(sc_cast_of_alloca_return_value): Likewise.
(sc_prohibit_atoi_atof): Simplify regexp.
(sc_no_if_have_config_h, sc_require_config_h):
(sc_prohibit_assert_without_use,
(sc_obsolete_symbols): Check for O_NDELAY.
(sc_texi_notab): Remove.
(sc-changelog): Don't make an exception for '----' lines.
(.re-list): Remove, so we don't have a junk file behind.
(sc_system_h_headers): Remove the need for .re-list.
(sc_the_the):  New rule.
(sc_tight_scope): Simplify.
(sc_trailing_space): Renamed from sc_trailing_blank.
(longopt_re): New macro.
(sc_two_space_separator_in_usage): New rule.
(sc_unmarked_diagnostics): Look at all files under CVS.
(sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
(news-date-check, changelog-check): Version is OK.
(po-check): Look for lib files even if not in CVS.
(copyright-check): Use $() not ``.
(maintainer-distcheck): Do not depend on changelog-check.
(my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
Also check for -Wpointer-arith.
(WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
(xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
Remove.
(announcement): Add --gpg-key-id arg.
(cvs-sv): Remove.
(move_if_change): Just use mv.
(local_updates: Remove wget-update, po-update.
(po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
(config.guess-url_prefix, config.sub-url_prefix): Remove.
(ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
(standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
($(get-targets)): Remove.
(cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
(gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
(cvs-update): Get from gnulib.
(emut_upload_commands): gnupload is in build-aux now.
(alpha beta major): Add changelog-check.  Check version.
* configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
(AC_CONFIG_FILES): Remove.
* bin/autoconf.as: Add spaces to avoid distcheck warning.
* config/announce-gen: Sync from coreutils.
* doc/make-stds.texi: Sync from gnulib.
* doc/standards.texi: Likewise.
* man/Makefile.am: Adjust for config -> build-aux renaming.
* tests/Makefile.am: Prefer $(FOO) to @FOO@.
* tests/local.at: Adjust from config -> build-aux renaming.
* tests/tools.at: Likewise.
* tests/torture.at: Likewise.
2006-08-24 22:56:47 +00:00
Paul Eggert
1355dba882 * NEWS: The C99 check now tests for vararg macros and 64-bit
preprocessor ints.
* doc/autoconf.texi (C Compiler): Document // comments, va_copy.
* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
64-bit preprocessor ints.  Check for static initialization of
long long.  Remove unnecessary casts.
2006-08-24 18:08:16 +00:00
Paul Eggert
b7efbd4332 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
-lgcc?* and -lSystem, for Darwin/MacOS X.
2006-08-24 16:46:20 +00:00
Paul Eggert
6e0e4d438b * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
pacify insanely picky compilers.  Problem reported by Eric Blake.
2006-08-22 20:09:51 +00:00
Paul Eggert
60c7f58b21 Undo last change; it was a typo. 2006-08-15 16:28:09 +00:00
Paul Eggert
427e34b361 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
-Wundef -Werror".  Problem reported by David Fang in
<http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
* doc/autoconf.texi (Header Templates, Default Includes):
(Particular Functions, Generic Functions, Header Portability):
(Particular Headers, Generic Headers, Generic Declarations, Guidelines):
(Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
(Present But Cannot Be Compiled, Preprocessor Symbol Index):
Prefer #ifdef to #if.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
(AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
Likewise.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
(AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
* lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
(AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
* lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
this.
2006-08-15 16:24:42 +00:00
Paul Eggert
1c33bc0c6f * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
check for libXt by a check for libX11.
2006-08-12 18:33:46 +00:00
Ralf Wildenhues
134a37cf31 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
--help' should mention that `--version' outputs configuration
settings.  Report by Bruno Haible.
2006-08-08 16:29:04 +00:00
Paul Eggert
75f3372076 Fix test suite failures reported by Pierre in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
the compiler created a file "b.out" when it didn't create anything
at all.
* lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
Discard stderr too, when invoking the test script.
2006-08-07 07:10:24 +00:00
Paul Eggert
75a9e8db40 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
in the restoring of the werror flag.
2006-08-06 06:26:25 +00:00
Paul Eggert
9c1ab8a186 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
compiler complains about it, even if things works after the
complaint.  Problem reported by Peter O'Gorman.
2006-07-20 22:38:47 +00:00
Paul Eggert
f731b21996 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space after
-R regardless of host.  Patrick Welche reports that a space after -R
is also required for NetBSD 3.99.
2006-07-17 17:34:05 +00:00
Paolo Bonzini
c910e682cc 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
* doc/autoconf.texi (Generic compiler characteristics):
	Document AC_COMPUTE_INT.  Fix wrong statements on Default
	Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.

	* lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
	(_AC_COMPUTE_INT): Add obsoletion warnings.
	* lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
	AC_COMPUTE_INT.

	* NEWS: Document change.
2006-07-07 14:21:57 +00:00
Paul Eggert
3163027d5c * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
Require that long long int be at least 64 bits wide.
(AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
2006-07-02 07:35:29 +00:00
Stepan Kasal
239d119726 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
-lXt in LIBS, idea from Karsten Hopp.
2006-06-28 08:36:54 +00:00
Ralf Wildenhues
aea8594586 * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
Fix typos.
2006-06-23 15:18:44 +00:00
Ralf Wildenhues
c56384c677 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
not defined.
* doc/autoconf.texi (Changed Directory Variables): New node,
to document the whole `datarootdir' business a bit better.
* NEWS: Update.
* tests/torture.at (datarootdir workaround): Extend test.
Prompted by report by Alexandre Julliard.
2006-06-23 14:56:30 +00:00
Paul Eggert
49b75d0906 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
when using default mode of IBM C 6 for AIX.  Problem and two-line
fix reported by Larry Jones.
2006-06-22 23:50:07 +00:00
Ralf Wildenhues
cd56c8aa0f * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
about literal '${datarootdir}' if a definition is found in the
output file.
2006-06-22 17:16:42 +00:00
Ralf Wildenhues
66931ce882 * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
calls, so that we do not care whether they are LIFO or FIFO;
in the m4_wrap, do not check which diversion is the topmost
one, just check that the stack is balanced at the end.
* lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
base diversion forever--pop the previous diversion before
opening the new one; consequently, remove the m4_wrap call.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* tests/m4sugar.at: Do not use
m4_wrap([m4_diversion_pop([..])]), for educational purposes.
2006-06-20 05:35:38 +00:00
Ralf Wildenhues
5788ed69a0 * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
to `yes' instead of `int$1_t' if the type is found, for more
consistent configure output (where $1 is the number of bits).
(_AC_TYPE_UINT): Likewise for `uint$1_t'.
Suggested by Bruno Haible.
2006-06-19 18:28:12 +00:00
Ralf Wildenhues
30ced44ece * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
with system headers.  Report by Bruno Haible.
2006-06-19 18:22:03 +00:00
Ralf Wildenhues
07eac594cc * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
2006-06-13 18:03:30 +00:00
Ralf Wildenhues
5a84fe71d2 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
in sed regular expression.
2006-06-13 17:02:59 +00:00
Paul Eggert
58716edd69 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
$as_shell.exe too.  Problem reported by Andreas Buening in
<http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
2006-06-07 23:46:47 +00:00
Ralf Wildenhues
6dc2080f18 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
`unused variable' compiler warning, for `-Wall -Werror'.
Report by Jaap Haitsma <jaap@haitsma.org>.
2006-06-07 18:24:01 +00:00
Paul Eggert
dbcaeb5704 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
case the compiler dumps core.  Problem reported for
OpenServer 5.0.7 by Tim Rice in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
Likewise.
2006-06-07 05:35:46 +00:00
Ralf Wildenhues
7b022ff9eb * lib/freeze.mk: Quiet check-forbidden-patterns so the string
"ERROR" only shows up in "make check" output if there is an
error.
2006-06-06 20:31:55 +00:00
Ralf Wildenhues
d6cd3db447 * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
seen, invoke libtoolize with `--ltdl' argument.
* lib/autom4te.in (Autoreconf-preselections): Adjust.
* NEWS: Update.
Suggested by Eric Blake.
2006-06-05 12:16:06 +00:00
Ralf Wildenhues
8cf341a6dc * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
message issued by AC_REQUIRE.
* tests/m4sugar.at: Check m4_require's error message.
* tests/base.at: Check AC_REQUIRE's error message.
* tests/local.at (AT_CHECK_M4): New macro, almost identical
to...
(AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
AT_CHECK_M4.
(AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
`expout' as the last parameter.
* tests/tools.at: Adapt to the above change.
2006-06-05 08:18:33 +00:00
Paul Eggert
e190aab2e7 (AC_PROG_MKDIR_P): Improve the comment. 2006-05-31 20:52:38 +00:00
Paul Eggert
e07dda2d48 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
about quoting the case statement, just in case.
* doc/autoconf.texi (Particular Programs) <AC_PROG_MKDIR_P>:
Document that ${MKDIR_P} understands --.
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
comment.
2006-05-31 19:49:15 +00:00
Ralf Wildenhues
c148c4af82 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
argument with leading hyphen.  Problem reported by Paul Eggert.
2006-05-31 09:44:39 +00:00
Paul Eggert
9394ddfd69 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
about quoting ac_try: quote all of it, if any of it seems suspicious.
This means we don't have to worry about ${ or sed any more.
Also, double-quote the case statement, to work around misuses via
underquoting as reported by Ralf Wildenhues in
<http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
(_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
undocumented and dangerous macro.
Problem reported by Ralf Wildenhues in
<http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
2006-05-31 01:28:06 +00:00
Ralf Wildenhues
7548e5acd6 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
`dirname -- /' returns `/', for SunOS dirname scripts that escaped.
Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
2006-05-30 23:24:55 +00:00
Paul Eggert
5c407d5b48 Fix typo. 2006-05-30 07:38:17 +00:00
Paul Eggert
e6c5aee481 * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
since evidently some packages rely on the old, broken behavior.
Problem reported by Ralf Wildenhues in
<http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
(AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
pre-2006-05-26 definitions, but leave in the comments that
these macros are dangerous and should not be used.
(_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
(_AC_DO): Renamed from _AC_EVAL.  All callers changed.
(_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
(_AC_DO_VAR): Renamed from AC_TRY_EVAL.
(_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
2006-05-30 07:28:01 +00:00
Paul Eggert
2d1f047960 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
the use of 'tr', since this is our only use of 'tr'.
2006-05-30 05:47:40 +00:00
Paul Eggert
dce46f95f4 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
Don't assume 'grep' works on long lines, since AIX grep doesn't.
2006-05-30 05:17:17 +00:00
Ralf Wildenhues
8c65c51bf9 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
the output file in the `${datarootdir}' test.
2006-05-28 12:51:49 +00:00
Ralf Wildenhues
2a801ac193 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
mention of `datarootdir' in the input file(s), but literal
`${datarootdir}' in the output file, and we haven't warned yet,
then warn as well: the user may have (erroneously) used
`AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
`AC_SUBST([mydatadir], ['${datadir}/my'])'.
* tests/torture.at (datarootdir workaround): Extend this test.
* NEWS: Update.
2006-05-28 12:38:49 +00:00
Paul Eggert
43575790ec * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
ac_config_guess, ac_config_sub, ac_configure.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
Fix typo that prevented an unnecessary space from being removed.
Problems reported by Ralf Wildenhues in:
http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
2006-05-27 21:59:04 +00:00
Paul Eggert
7758301cbb Undo previous change. 2006-05-27 03:20:51 +00:00
Paul Eggert
c7ff45a0aa * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG):
Don't test whether getloadavg.c is where it belongs.
2006-05-27 03:03:37 +00:00
Paul Eggert
aa4a2459e6 * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
Don't use the term "thread-safe" to talk about mkdir race
conditions, since the problem is more a process than a thread
issue.  Problem reported by Stepan Kasal in:
http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
the test for 'install' more closely.  Look at MKDIR_P first.
Look in the PATH, and at /opt/sfw/bin.
Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
Don't bother to try mkdir -p, since we already check mkdir --version;
just look at the version number.  (There's no easy way to check
for race-free implementations.)
* tests/tools.at (autoconf: subdirectories): Adjust to above
changes, since MKDIR_P now might end in "/mkdir -p".
2006-05-27 02:54:33 +00:00
Paul Eggert
922c98ee7d * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
* doc/autoconf.texi (Special Chars in Variables): New section.
(Preset Output Variables): Warn about special chars in CPPFLAGS.
(Installation Directory Variables): Quote $(datadir) better.
(Limitations of Builtins): Describe some of eval's trickiness.
* lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
* lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
in front of every arg, not just trailing args.  Quote apostrophes.
(_AC_EVAL_ECHO): New macro.
(_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
(AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
removed.
(_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
exposed by quoting of eval argument.  Put the command on line line
so it logs better.
* lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
(_AC_PATH_X, AC_PATH_X): Quote more safely.
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
* lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
* lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
Handle special chars in prefix, ac_srcdir, ac_aux_dir.
Use eval more safely.
(_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
* lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
to be replaced.
* tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
lines, exposed by quoting of eval argument.
2006-05-26 22:29:50 +00:00
Ralf Wildenhues
cf78c7e16e * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
initialization of `ac_cv_exeext', do not override it if it was
already set, unless it was set to `no', for compatibility with
Autoconf-2.13, and comment this.
Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
(_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
(_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
* doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
Document that this test may be overridden by setting
`ac_cv_exeext'.
2006-05-26 17:25:35 +00:00
Ralf Wildenhues
b336169d61 Revert these two patches:
2006-04-06  Eric Blake  <ebb9@byu.net>
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
2006-04-01.

2006-04-01  Stepan Kasal  <kasal@ucw.cz>
Clean up _AC_COMPILER_EXEEXT* macros.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
  detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
  ac_file to the name of the default output file and call
  _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
  initial `rm' of the candidate files...
(_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
  the same list in subsequent `rm' calls, and for the temporary
  redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
  and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
(_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
(_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
  no longer needed) by libtool.  Make it a cache check.
(_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
  copied here by mistake.
(AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
  _AC_COMPILER_EXEEXT.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
  _AC_COMPILER_OBJEXT directly.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2006-05-26 17:23:02 +00:00
Ralf Wildenhues
0d6c1e5aa0 Sync from Automake:
* lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
ENOLCK.  Only mention `make -j' when applicable.  Only raise
fatal errors when `make -j' is involved.  Improve error message.
2006-05-25 10:25:44 +00:00