Commit Graph

4419 Commits

Author SHA1 Message Date
Ralf Wildenhues
5ff8a3d39a * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization. 2006-02-21 07:16:33 +00:00
Ralf Wildenhues
14f61daa3c * doc/autoconf.texi (Looping constructs): New node, to
document m4_for, m4_foreach, m4_foreach_w, and mention
obsolete AC_FOREACH.
(Obsolete Macros): Document AC_FOREACH.
* lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
(m4_for): Fix to never loop (almost) endlessly, work correctly
with arithmetic expressions in arguments, a step of zero or
non-integer multiple of the interval, and avoid integer
overflow.
* tests/m4sugar.at: New test for m4_for, m4_foreach, and
m4_foreach_w.
2006-02-20 21:43:05 +00:00
Paul Eggert
cf77d083f0 Regenerate. 2006-02-20 19:46:52 +00:00
Paul Eggert
79fcd7c3c2 * lib/autoconf/erlang.m4: Rename macros from ERLANG_* to
AC_ERLANG_*.  All uses changed.
* lib/freeze.mk (autoconf_m4f_dependencies): Add erlang.m4
* NEWS: Add short description of new macros.
2006-02-20 19:45:30 +00:00
Paul Eggert
b7484c4c76 Regenerate. 2006-02-20 08:59:37 +00:00
Paul Eggert
40e3987ab0 Initial revision. 2006-02-20 08:56:25 +00:00
Paul Eggert
e0703407fc Add basic support for Erlang, both for configuring Erlang/OTP
tools, and Erlang as a conf test language.
* lib/autoconf/erlang.m4: New file.
* lib/autoconf/autoconf.m4
* lib/autoconf/Makefile.am (dist_autoconflib_DATA): Add erlang.m4.
* THANKS: Add Romain Lenglet.
2006-02-20 08:50:33 +00:00
Ralf Wildenhues
cff03cfc50 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
2006-02-20 08:41:53 +00:00
Paul Eggert
f5a64f3738 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable warning. 2006-02-15 22:07:12 +00:00
Ralf Wildenhues
6fab15fe41 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
(_AS_CASE): Private helper macro.
* tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
* doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
Fix syntax of AS_IF description
(Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
for the AC_REQUIRE mess.
* NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
AS_SHELL_SANITIZE.
2006-02-15 07:00:29 +00:00
Paul Eggert
cbb28abf85 * doc/autoconf.texi: Minor style cleanup.
Be consistent about spaces after commas.
Insert [] where empty args look a bit funny.
Fix some "i.e." and "e.g." usages.
Try to avoid "X/Y" usages.
Don't be pedantic about "ISO C99"; just say C99.
Prefer GNU style for spaces in front of parens.
(Function Portability): Comment about C89 versus C99
signed integer division.
(Particular Headers): Use current gnulib style for dirent
includes.
2006-02-15 06:42:16 +00:00
Ralf Wildenhues
8d75399149 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
macros without parameters.
* lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
* doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
* tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
`$#' bug.
(autoupdate): Updated to match AU_ALIAS fix.
2006-02-14 23:18:51 +00:00
Paul Eggert
9a0e3a3558 * doc/autoconf.texi (Programming in M4sh): Document
AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
* lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
(AS_BOURNE_COMPATIBLE): ..this.
(_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
2006-02-13 18:46:04 +00:00
Paul Eggert
b12e1abd03 Regenerate. 2006-02-13 07:59:45 +00:00
Paul Eggert
25ca4c3c70 * doc/install.texi (Defining Variables): Tighten up the
CONFIG_SHELL wording.
2006-02-13 07:59:10 +00:00
Paul Eggert
cec2431f10 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
of (set -o) rather than testing whether (set -o posix) succeeds,
to work around a bug in the AIX 5.3 shell.
2006-02-13 07:45:03 +00:00
Ralf Wildenhues
b82b4e96ce * doc/autoconf.texi (Running the Compiler, Running the Linker):
Changes the macro arguments in summaries to match the
descriptions.
2006-02-10 10:32:33 +00:00
Stepan Kasal
32629b44f8 Call the CONFIG_SHELL hint a workaround. 2006-02-04 14:10:46 +00:00
Ralf Wildenhues
8e944069ad * bin/autoreconf.in: New option `--no-recursive'.
Improve wording for subpackages a bit.
* doc/autoconf.texi (autoreconf Invocation): Updated.
* NEWS: Updated.
2006-01-31 12:07:40 +00:00
Ralf Wildenhues
0b9bb6512e * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
in environment of `configure', not the command line.
Reported by Howard Chu <hyc@highlandsun.com>.
2006-01-31 12:03:32 +00:00
Paul Eggert
39569a7d4e * doc/autoconf.texi (Limitations of Builtins): Document the
problem with "trap -".
2006-01-25 22:14:16 +00:00
Paul Eggert
8ad993c7d0 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
(_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
messages to differentiate Fortran and Fortran 77 tests.
(AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
AC_LANG_ASSERT, to allow use in mixed-language projects.
2006-01-24 00:28:29 +00:00
Paul Eggert
0ec30df603 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
FOO" to "defined (FOO)".
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
* lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
* tests/tools.at (ifnames): Likewise.
2006-01-24 00:20:15 +00:00
Ralf Wildenhues
72c832bf54 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
* lib/Autom4te/General.pm (mktmpdir): Likewise.
(END): Improve error message a bit.
Reported by Bruce Korb <bkorb@gnu.org>.
2006-01-21 09:09:46 +00:00
Ralf Wildenhues
9aa4f267b4 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
`-LIST:' and `-LNO:', for PathScale 2.3 compilers.
2006-01-12 19:43:29 +00:00
Stepan Kasal
b3863403ab 2006-01-11 Stepan Kasal <kasal@ucw.cz>
* doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
	requires sys/stream.h.  Reported by Oliver Kiddle.
2006-01-11 18:17:25 +00:00
Ralf Wildenhues
2fcca28cc4 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
before the removals of test dirs, use `find' to avoid modification
of symlinked directories.
2006-01-11 08:33:16 +00:00
Ralf Wildenhues
a92cf9ac57 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
Don't ignore the macro arguments.
2006-01-11 08:21:13 +00:00
Ralf Wildenhues
051cbf8f48 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
declaration that works for MSVC.
2006-01-11 08:17:17 +00:00
Ralf Wildenhues
2769bf9b11 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
Add `*.map' and `.inf' for Green Hills compiler.
Reported by Stefan Seefeld <stefan@codesourcery.com>.
2006-01-11 08:10:50 +00:00
Ralf Wildenhues
f124168ce6 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
correctly: pad with spaces after FIRST_PREFIX if necessary,
and compute string lenghts with `m4_qlen' instead of `m4_len'.
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
* tests/m4sh.at (AS_HELP_STRING): Test extended.
* NEWS: Updated.
Reported by numerous people, numerous times.
2006-01-11 08:05:55 +00:00
Paul Eggert
1d362e4bdb Update copyright year to 2006. 2006-01-06 00:11:16 +00:00
Paul Eggert
1fabda990f * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
* bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
* lib/autoconf/general.m4, lib/autoconf/status.m4:
* lib/autotest/general.m4:
Update copyright year to 2006.
2006-01-06 00:10:37 +00:00
Paul Eggert
f292fd9dd5 * Makefile.maint (sc_root_tests): Use recommend style s/a/b/ for
sed substitutions.
* doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
for file names, again.  Reported by Noah Misch.
(Coding Style): Explain that s|a|b| is preferred for file names.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
(AC_OUTPUT_MAKE_DEFS): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
* tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
2006-01-06 00:02:26 +00:00
Paul Eggert
0ee621917a Fix Posix-conformance bugs re use of { command in sed scripts,
and improve the sed-related documentation a bit.
* doc/autoconf.texi (Installation Directory Variables): Use
our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
rather than "sed" when talking about Sed in general.
(Particular Programs): Likewise.
(Coding Style): y is like s with respect to / and ,.
(Limitations of Usual Tools): Document the weird restrictions
that Posix has about { }.  Use better quoting.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
Rewrite to conform to Posix rules about { } in sed scripts.
* lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
* tests/foreign.at (Libtool): Likewise.
* tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
Use our own style advice re 's,a,b,' versus 's|a|b|'.
2006-01-05 21:43:44 +00:00
Ralf Wildenhues
a3195854a5 * lib/autoconf/status.m4: Fix typo. 2006-01-05 15:17:47 +00:00
Ralf Wildenhues
f4dd19c75b * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
singly- or doubly-quoted arguments to `-cmdline', `-ignore',
`-def', for the benefit of Portland `pgf90 -Mipa'.
Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
2006-01-05 10:11:22 +00:00
Paul Eggert
8bf83c29b9 Update copyright (and other) dates to 2006. 2006-01-04 22:28:37 +00:00
Paul Eggert
edc9149f0c Update copyright year. 2006-01-04 22:27:06 +00:00
Paul Eggert
23f4bf3d33 * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
shell from zsh to bash.
2006-01-04 22:26:47 +00:00
Paul Eggert
25d63b3dc8 (Shellology): Mac OS X 10.2 changed the default
shell from zsh to bash.
2006-01-04 22:26:11 +00:00
Stepan Kasal
0869a285c6 Use $PATH_SEPARATOR 2005-12-31 16:44:22 +00:00
Paul Eggert
31fd5d5e0a * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
parentheses in $(...).  Problem reported by Eric Blake.
2005-12-29 21:28:30 +00:00
Paul Eggert
3f00622449 * doc/autoconf.texi (Limitations of Usual Tools):
Mention which characters can be escaped with \ in portable regular
expressions used in grep, sed, expr.  Mention the leading ^ problem
with expr.  Clean up some confusing wording.  Mention which
grep options are portable.
2005-12-12 18:46:50 +00:00
Stepan Kasal
e40a8b0dad typos 2005-12-09 09:54:11 +00:00
Paul Eggert
b332732faf set -o posix fix. 2005-12-02 19:23:05 +00:00
Paul Eggert
93f53cfee7 (_AS_BOURNE_COMPATIBLE): Try `set -o
posix' unconditionally, for pdksh in `native sh' emulation.
2005-12-02 19:22:49 +00:00
Paul Eggert
ff189755d5 Fix typos in previous autoconf.texi patch. 2005-12-02 19:19:54 +00:00
Paul Eggert
b27def5b65 Fix typos in previous patch. 2005-12-02 19:19:23 +00:00
Paul Eggert
599d7e2936 * doc/autoconf.texi (Shellology): Document eval $? problem
with ash.
(Limitations of Builtins): Likewise.
2005-12-01 21:02:40 +00:00