Commit Graph

6500 Commits

Author SHA1 Message Date
Stefano Lattarini
f60916593d docs: some fixlets in section about shell signal handling
* doc/autoconf.texi (Signal handling): Rename ...
(Signal Handling): ... to this, for consistency with other node
names.  Fix some typos and grammaros.  Add more URL references
in comments.
2011-10-06 10:35:48 +02:00
Stefano Lattarini
124d6e9d96 docs: korn shells can have $? > 256 for signal-terminated children
Some Korn shells, when a child process dies due to signal number
n, can leave in $? an exit status of 256+n, instead of the more
common 128+n.  See also Austin Group issue 0000051:
  <http://www.austingroupbugs.net/view.php?id=51>

* doc/autoconf.texi (Signal handling): Document the described Korn
Shell behaviour, and some of its possible shortcomings.

Suggestion by Eric Blake.
2011-10-06 10:34:14 +02:00
Eric Blake
00f569ae0c docs: relax documentation license by dropping cover text
See https://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00022.html
for precedence in diffutils.  The autoconf manual, as of this commit,
was still barely below 400 pages.

* doc/autoconf.texi (copying): Drop front- and back-cover texts.
* NEWS: Document this.
Reported by Brian Gough.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-09-26 12:02:35 -06:00
Stefano Lattarini
cff03ec71f docs: signal-related bugs and incompatibilities for the shells
* doc/autoconf.texi (Signal handling): New paragraph.
(@menu at "Portable Shell", @detailmenu): Update.

Motivated by recent discussion on the bug-autoconf list, as well
as work in the automake testsuite:
 <https://lists.gnu.org/archive/html/bug-autoconf/2011-09/msg00003.html>
 <https://lists.gnu.org/archive/html/bug-autoconf/2011-09/msg00004.html>
 <http://lists.gnu.org/archive/html/automake-patches/2011-09/msg00066.html>
2011-09-20 18:10:19 +02:00
Eric Blake
f37c5e315c docs: refer to correct AC_RUN_IFELSE parameter name
The docs referred to @var{program}, which did not exist.

* doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Fix wording.
Reported by Reuben Thomas.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-09-19 10:59:14 -06:00
Eric Blake
2a9b772222 docs: fix typo in shell example
* doc/autoconf.texi (Shell Substitutions): Fix typo.
* THANKS: Update.
Reported by Nick Bowler.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-09-16 13:37:38 -06:00
Stefano Lattarini
19951ff75b docs: more details about make VPATH rewriting woes
* doc/autoconf.texi (Automatic Rule Rewriting): Solaris make
VPATH rewriting applies to any whitespace-separated word in a
rule, so it might apply also to shell variables, functions
and keywords (and automake has already tripped on this once);
document this, with an example.  Since we are at it, do some
minor reformatting of existing text.
2011-09-16 10:21:14 +02:00
Stefano Lattarini
7b49187003 docs: document Solaris 10 /bin/ksh and XPG4 sh 'unset' bug
* doc/autoconf.texi (Limitations of Builtins): Solaris 10 ksh
and XPG4 sh also fails upon `unset' of a variable that is not
set.
2011-09-13 16:24:41 +02:00
Jim Meyering
7a615729c9 docs: improve the prose describing _AC_CHECK_TYPE_NEW_BODY
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Improve prose.
2011-09-01 20:25:32 +02:00
Paul Eggert
54c726aa5c AC_C_CONST: don't reject gcc -Werror -Wall
* lib/autoconf/c.m4 (AC_C_CONST): Don't reject gcc when it is used
with -Werror -Wall during configuring.  It's unwise to use GCC
that way, but apparently enough people do it nowadays that it's an
issue.  These days nobody uses the old compilers that the old
tests reject, so we can't test this fix against them, but it's
more important to work with modern GCC (even when misused) than to
work with no-longer-used compilers.  Problem reported by Shevek in
<http://lists.gnu.org/archive/html/bug-autoconf/2008-11/msg00007.html>
and raised again by Dan Kegel in
<http://lists.gnu.org/archive/html/bug-autoconf/2011-08/msg00020.html>.
2011-08-31 23:16:41 -07:00
Stefano Lattarini
96cdf32954 docs: other issues with parallel BSD make
Motivated by automake bug#9245:
 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9245>
and FreeBSD PR bin/159730:
 <http://www.freebsd.org/cgi/query-pr.cgi?pr=159730>

* doc/autoconf.texi (Parallel Make): Document other BSD make
incompatibilities.  Reorganize the existing related documentation
accordingly.
2011-08-18 21:08:13 +02:00
Stefano Lattarini
f36755ebbb docs: fix minor typos
* doc/autoconf.texi (Shell Functions): Fix a couple of minor typos.
2011-08-08 22:19:19 +02:00
Stefano Lattarini
4b75742acc docs: another Solaris sh bug with redirected `:'
* doc/autoconf.texi (File Descriptors): Solaris 10 /bin/sh
"optimizes" away redirected `:' commands in a shell function
after the first call.
2011-08-04 15:13:26 +02:00
Paul Eggert
0ff6eaebd9 docs: modernize treatment of ns-resolution timestamps
* doc/autoconf.texi (Limitations of Usual Tools): ns-resolution time
stamps are now routinely supported by coreutils 'cp' etc.
2011-07-31 00:54:52 -07:00
Paul Eggert
db2f2e0b6b * lib/autoconf/specific.m4 (AC_SYS_LARGEFILE): Port to Mac OS X 10.5
by defining _DARWIN_USE_64_BIT_INODE.  Imported from gnulib.
2011-07-30 13:01:47 -07:00
Paul Eggert
c35cade05f * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Quote cleanly.
This is imported from gnulib.  gnulib also has an HP-UX 11.11 fix, but
let's see if we can do that another way, as it's pretty heaviweight.
2011-07-30 13:01:46 -07:00
Eric Blake
4d2efc4563 docs: fix minor doc problems
* doc/autoconf.texi (Why Not Imake): Fix grammar.
(autoreconf Invocation): Fix short option for --version.
* THANKS: Update.
Reported by Christophe Jarry and Russ Allbery.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-07-22 07:04:21 -06:00
Mike Frysinger
5285ea8c1a AC_REQUIRE: include FAQ URL when warning about duplicate expansion
Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2011-07-11  Mike Frysinger  <vapier@gentoo.org>

	* lib/m4sugar/m4sugar.m4 (_m4_require_check): Add URL to warning.
2011-07-15 14:30:18 -06:00
Benoit Sigoure
855ce07e29 docs: fix typo in AC_PATH_PROG
* doc/autoconf.texi (Erlang Compiler and Interpreter):
s/AC_PROG_PATH/AC_PATH_PROG/.
* THANKS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-07-12 15:17:09 -06:00
Paul Eggert
52581e00dc * tests/semantics.at (AC_REPLACE_FUNCS): Test for just-fixed bug. 2011-06-30 09:14:43 -07:00
Timo Kamph
8c18ccff3a * lib/autoconf/functions.m4 (_AC_REPLACE_FUNCS): Fix tr-cpp problem.
See http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00058.html
2011-06-30 09:14:42 -07:00
Paul Eggert
6cd9f12520 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Be even smarter.
GCC was too smart for the previous patch.  See
<http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00035.html>.
2011-06-19 22:33:29 -07:00
Paul Eggert
b1747413a8 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Try to outsmart GCC.
Problem with stack-detection code reported by Andy Wingo in
<http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00032.html>.
This fix is imported from gnulib's c-stack module.
2011-06-18 14:40:23 -07:00
Paul Eggert
9ddea209e5 * doc/autoconf.texi (File Descriptors): Fix texinfo typo. 2011-06-18 14:36:39 -07:00
Eric Blake
64a4d1799f doc: mention more about ksh cloexec behavior
* doc/autoconf.texi (File Descriptors): Clarify that only the exec
builtin suffers from cloexec issues.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-06-14 09:21:54 -06:00
Eric Blake
1a956c4b1e doc: update quoting example
The existing example triggers an autoconf warning, due to the
change in AC_COMPILE_IFELSE probing for an AC_LANG_SOURCE use.

* doc/autoconf.texi (Autoconf Language): Add AC_LANG_SOURCE use.
* THANKS: Update.
Reported by Křištof Želechovski.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-06-14 07:45:29 -06:00
Eric Blake
2105ae9700 doc: document dash bug with positional parameters
* doc/autoconf.texi (Shell Substitutions) <${10}>: Document
a pitfall with $10.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-05-05 08:29:21 -06:00
Eric Blake
5daf0f3404 docs: document NetBSD join bug
* doc/autoconf.texi (Limitations of Usual Tools) <join>: Mention
bug in -a parsing.
Reported by J.T. Conklin.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-04-27 10:27:08 -06:00
Eric Blake
8cb01740a0 maint: reflect recent copyright assignments
Missed one on my last update.

* AUTHORS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-04-13 15:36:54 -06:00
Eric Blake
6c0a52668c maint: reflect recent copyright assignments
* AUTHORS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-04-05 14:50:14 -06:00
Ralf Wildenhues
8c2db1c128 New macro AC_FC_PP_DEFINE for the preprocessor define flag.
* lib/autoconf/fortran.m4 (AC_FC_PP_DEFINE): New macro.
* lib/autom4te.in (Automake-preselections): Preselect it.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/local.at (_AT_CHECK_ENV): Do not complain about
FCFLAGS_F nor FC_DEFINE.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-04-02 15:37:40 +02:00
Ralf Wildenhues
1c3373c5f0 New macro AC_FC_PP_SRCEXT for preprocessed file extensions.
* lib/autoconf/fortran.m4 (AC_FC_PP_SRCEXT): New macro.
* lib/autom4te.in (Automake-preselections): Preselect it.
* doc/autoconf.texi (Fortran Compiler): Document it, rewriting
the documentation for AC_FC_SRCEXT along the way.
* tests/fortran.at (AC_FC_PP_SRCEXT usage): New test.
* tests/mktests.sh: Exclude the macro from default testing.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-04-02 15:06:29 +02:00
Ralf Wildenhues
ac427166c5 New macro AC_FC_MODULE_OUTPUT_FLAG: module output directory.
* lib/autoconf/fortran.m4 (AC_FC_MODULE_OUTPUT_FLAG): New macro.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/local.at (_AT_CHECK_ENV): Do not complain about
FC_MODOUT.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-04-02 14:21:38 +02:00
Luc Maisonobe
3e3412d3dd New macro AC_FC_MODULE_FLAG: Fortran 90 module include path.
* lib/autoconf/fortran.m4 (AC_FC_MODULE_FLAG): New macro,
adjusted and rewritten from the AX_F90_MODULE_FLAG macro from
the Autoconf Macro Archive by Luc Maisonobe, Julian C. Cummings,
and Alexander Pletzer.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/fortran.at (AC_FC_MODULE_FLAG): New test.
* tests/local.at (AT_CHECK_ENV): Do not complain about FC_MODINC
setting.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-04-02 14:18:47 +02:00
Luc Maisonobe
bf140a4c8c New macro AC_FC_MODULE_EXTENSION: Fortran 90 module extension.
* lib/autoconf/fortran.m4 (AC_FC_MODULE_EXTENSION): New macro,
rewritten from the AX_F90_MODULE_EXTENSION macro from the
Autoconf Macro Archive by Luc Maisonobe and Alexander Pletzer.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/local.at (_AT_CHECK_ENV): Do not complain about
FC_MODEXT setting.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-04-02 14:15:14 +02:00
Jim Meyering
bc9e46833e README-hacking: fix typo
* README-hacking: s/just build/just built/.
2011-03-27 19:26:16 +02:00
Colin Watson
f3c183d084 docs: Document AC_FUNC_FORK cache variables.
* doc/autoconf.texi (Particular Functions): Document AC_FUNC_FORK
cache variables.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-08 20:48:29 +01:00
Ralf Wildenhues
fd0e10b3f3 docs: BSD and Solaris make trailing space macro issue.
* doc/autoconf.texi (Trailing whitespace in Make Macros):
Document issue with trailing whitespace in macro settings.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-08 20:46:02 +01:00
Ralf Wildenhues
63aaea5ecd Fix Cray Fortran flag for AC_FC_IMPLICIT_NONE.
* lib/autoconf/fortran.m4 (_AC_FC_IMPLICIT_NONE): Use -e I
not -d i, for Cray ftn.
* THANKS: Update.
Thanks to Tobias Burnus for feedback and testing.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-05 17:31:24 +01:00
Ralf Wildenhues
1fb4fba330 docs: document several Fortran and OpenMP cache variables.
* doc/autoconf.texi (Generic Compiler Characteristics)
[AC_OPENMP]: Document associated cache variables.
(Fortran Compiler) [AC_PROG_F77, AC_PROG_FC, AC_PROG_F77_C_O]
[AC_PROG_FC_C_O, AC_F77_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS]
[AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN, AC_F77_MAIN, AC_FC_MAIN]
[AC_F77_WRAPPERS, AC_FC_WRAPPERS, AC_FC_FREEFORM]
[AC_FC_FIXEDFORM, AC_FC_LINE_LENGTH, AC_FC_CHECK_BOUNDS]
[AC_F77_IMPLICIT_NONE, AC_FC_IMPLICIT_NONE]: Document and/or
index the cache variables used by these macros.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-05 17:30:59 +01:00
Ralf Wildenhues
d641a367f9 build: exclude M4 with buggy strstr
* m4/m4.m4 (AC_PROG_GNU_M4): When searching PATH, do not accept
an m4 that has either the gnulib strstr bug, or the glibc/gnulib
strstr bug.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-03-05 07:16:11 -07:00
Ralf Wildenhues
c9cbf626a1 docs: fix description of AC_F77_IMPLICIT_NONE.
* doc/autoconf.texi (Fortran Compiler) [AC_F77_IMPLICIT_NONE]:
This macro modifies FFLAGS, not FCFLAGS.  Fix grammar nit.
2011-03-05 12:33:57 +01:00
Ralf Wildenhues
4c79761f40 AC_FC_SRCEXT: allow gfortran to compile .f77 files.
* lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Try '-x f77' for .f77
files, '-x f95' for others, for gfortran.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-05 09:42:19 +01:00
Ralf Wildenhues
5f11bce456 New macros AC_{F77,FC}_IMPLICIT_NONE to disable Fortran implicit int.
* lib/autoconf/fortran.m4 (_AC_FC_IMPLICIT_NONE): New internal
macro.
(AC_F77_IMPLICIT_NONE, AC_FC_IMPLICIT_NONE): New macros.
* doc/autoconf.texi (Fortran Compiler): Document them.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-05 09:42:04 +01:00
Ralf Wildenhues
8476731b83 New macro AC_FC_CHECK_BOUNDS to enable Fortran array bounds checking.
* lib/autoconf/fortran.m4 (AC_FC_CHECK_BOUNDS): New macro.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/fortran.at (AC_FC_CHECK_BOUNDS): New test.
* NEWS: Update.
Prompted by report from Eve-Marie Devaliere.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-05 09:34:00 +01:00
Ralf Wildenhues
1ab552e4a8 Update known compiler switches for Fortran and OpenMP macros.
* lib/autoconf/c.m4 (AC_OPENMP): Update for Lahey on GNU/Linux.
* lib/autoconf/fortran.m4 (_AC_F95_FC): Also try nagfor.
(_AC_PROG_FC_V): Update documentation for Lahey switches.
(AC_FC_FREEFORM, AC_FC_FIXEDFORM): Add flags for Absoft, Lahey
on GNU/Linux, document NAGWare, g95, and f2c switches.
(AC_FC_LINE_LENGTH): Document NAGware switch.  Update Absoft,
Lahey, NAGWare, Open Watcom, g95, and f2c switches.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-04 21:26:08 +01:00
Ralf Wildenhues
1c78dd25cd tests: accept f2c/fort77 as GNU Fortran 77.
* tests/fortran.at (GNU Fortran 77): Try to detect f2c wrapper
fort77 as GNU as well: it defines __GNUC__ too.  Fixes testsuite
failure when f77 is fort77.
Report from Giulio Paci.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-04 21:25:06 +01:00
Ralf Wildenhues
0542805c54 docs: macro synopses document default failure cases.
* doc/autoconf.texi (Fortran Compiler, Obsolete Macros):
Document failure case for AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN,
AC_FC_SRCEXT, AC_FC_FREEFORM, AC_FC_FIXEDFORM,
AC_FC_LINE_LENGTH, and AC_TRY_RUN macros.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-04 21:24:32 +01:00
Ralf Wildenhues
4659f06146 Reword Fortran macro documentation.
* doc/autoconf.texi (Fortran Compiler): Improve wording for
AC_FC_FREEFORM, AC_FC_FIXEDFORM, and AC_FC_LINE_LENGTH macros.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-04 21:23:49 +01:00
Ralf Wildenhues
e143d9ce7c config.status: do not quote $SHELL when rerunning configure.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Allow
$SHELL to contain more than one word, when rerunning configure,
for debugging purposes like CONFIG_SHELL='/bin/sh -x'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-02-27 07:02:49 +01:00