Commit Graph

1595 Commits

Author SHA1 Message Date
Paul Eggert
0bce39bb91 * doc/autoconf.texi (Initializing configure, Shell Substitutions):
Warn about $@ not persisting.  Problem reported by Julien Danjou in
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
2006-06-14 19:11:43 +00:00
Paul Eggert
1c847e3b05 behave -> behaves (fixing a typo in the previous patch). 2006-06-14 05:14:09 +00:00
Paul Eggert
0e8c81bbf2 * doc/autoconf.texi: Some systematic minor improvements, as
follows.  Use "makefile" when talking about makefiles
generally (which might be named "makefile" or "Makefile" or even
"foo.mk"), "Makefile" when talking about a specific makefile
called "Makefile".  This unclutters the text from weird quotes
(e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
values" rather than "@var{foo}s" and similar constructs containing
"}s".  Use "Make rules" rather than "Makefile rules".  Minor
English-language improvements.  Change the prefix "sub-" to "sub"
and "re-" to "re".
Put blank lines around examples more consistently.
Avoid "rather" and "very" as intensifiers.
Avoid "will" as an auxiliary.
(Limitations of Make): Split this node into....
(Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
(Leading _ in Macro Names, Backslash-Newline-Newline):
(Backslash-Newline Comments, Long Lines in Makefiles):
(Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
(obj/ and Make, make -k Status, VPATH and Make):
(VPATH and Double-colon, $< in Explicit Rules):
(Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
(Make Target Lookup, Single Suffix Rules, Timestamps and Make):
New nodes, resulting from splitup of Limitations of Make.
All cross-references changed.  Raise the top node from
a section to a chapter, and all subnodes accordingly.
Redo the introductory wording to match the new organization.
(Installation Directory Variables): Use an example that is
closer to what Autoconf actually does.  Mention that VPATH's
value should not contain metacharacters or white space.
(Fortran Compiler): Fix a VPATH bug in an example.
(Leading _ in Macro Names): Mention that this problem is no longer
of practical concern.
(VPATH and Make): Reword the advice to make it clearer
that Autoconf and Automake support VPATH in non-GNU make, but
many packages have bugs in this area.
($< in Explicit Rules): Refer to Build Directories rather
than using a (non-VPATH-safe) example.
(Automatic Rule Rewriting): Mention the sort of disaster that
can ensue with Solaris-style rule rewriting with VPATH.
2006-06-14 05:08:20 +00:00
Paul Eggert
5051b263e0 * doc/install.texi (Compilers and Options): Weaken the
suggestion to use GNU make for VPATH builds.
2006-06-14 03:41:56 +00:00
Ralf Wildenhues
d6d76e17c7 * doc/autoconf.texi (Installation Directory Variables):
Drop extra @samp from `@table @samp' item.
(Limitations of Usual Tools): Comment fix.
Do not nest @samp just to point to other table items.
(Writing testsuite.at) <AT_CHECK>: The second argument to
`@dvar' is already @samp'ed.
(Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
do not use @var in the second argument.
2006-06-08 17:25:10 +00:00
Paul Eggert
3ede61d43a * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
typically overflows on x86 CPUs, even though the C standard
requires otherwise.
2006-06-06 01:44:53 +00:00
Paul Eggert
a870fa8da1 * NEWS: Whoops! AC_FUNC_STRNLEN isn't obsolescent. Problem
reported by Ralf Wildenhues.
* doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
2006-06-05 08:39:57 +00:00
Paul Eggert
79a00aafb4 * doc/autoconf.texi: Modernize some of the references to Solaris. 2006-06-05 08:20:28 +00:00
Paul Eggert
b8dd7a4e22 * doc/autoconf.texi (Limitations of Usual Tools): Correct
information about race-free implementations of mkdir.
2006-06-04 20:22:48 +00:00
Paul Eggert
8eaa3f01d0 * bin/autoreconf.in (help): Document M4 environment variable.
* bin/autoconf.as (Usage): Likewise.
* bin/autom4te.in (help): Likewise.
* doc/autoconf.texi (autom4te Invocation): Likewise.
2006-06-04 19:56:27 +00:00
Paul Eggert
f0c7c42553 * NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first.  Be more
specific about why this file is generic.  Remove unnecessary
parens.  Remove misleading "only".  Remove obsolete advice
about csh.  Don't say "configure" takes awhile; say it
might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix.  Recommend GNU make if doing a VPATH build.
2006-06-04 07:38:28 +00:00
Paul Eggert
2f2f685cda * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
examples involving shell prompts.
2006-06-03 23:21:06 +00:00
Paul Eggert
ab67a9cbf8 * doc/autoconf.texi (Here-Documents): Add details about the
pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
use "here-documents" instead of "here documents".
2006-06-02 22:42:32 +00:00
Ralf Wildenhues
c7492e72c0 * config/texinfo.tex, doc/standards.texi: Sync from upstream. 2006-06-01 18:17:54 +00:00
Paul Eggert
4494d7f0ea * doc/autoconf.texi (File System Conventions): Warn about ":"
anywhere in directory names.
2006-06-01 07:47:40 +00:00
Paul Eggert
f37ef5a127 (System Services): Do not document overriding EXEEXT via ac_cv_exeext=ext. 2006-05-31 20:20:13 +00:00
Paul Eggert
ef9577a76b ksh99g -> ksh93g 2006-05-31 19:51:39 +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
Paul Eggert
3aba941494 * doc/autoconf.texi (autoheader Invocation): The first argument to
`AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
alternatives and clear up the language a bit.
2006-05-27 22:22:01 +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
3b73b97c85 * doc/autoconf.texi (autoheader Invocation): Mention that the
first arg of AC_DEFINE_UNQUOTED must not be a literal.
2006-05-27 00:05:36 +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
c1ea1267a6 * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
Fix description of how the buggy `sed' works.
2006-05-25 17:23:11 +00:00
Ralf Wildenhues
beaa9ebbcb * doc/autoconf.texi (Here-Documents): We now know more about
the variable expansion in here documents bug.
Thanks to Tim Rice and Stepan Kasal.
2006-05-25 08:49:02 +00:00
Ralf Wildenhues
4814eec7e0 * doc/autoconf.texi (Making testsuite Scripts): Add an example
how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
2006-05-25 07:39:57 +00:00
Paul Eggert
7298fd6c1f * doc/autoconf.texi (Particular Programs): Do not promise that
we always prefer the GNU version of the program, and that we
search according to PATH; both rules can have exceptions.
Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
AC_PROG_SED.  Move descriptions of limitations
to the Limitations of Usual Tools section.
(Limitations of Usual Tools) <sed>: Mention script length
limitations with Solaris /usr/ucb/sed.
<grep>: Fix wording for empty alternative.  Mention that -c and
-l should not be combined, and that -E and -F should not be
combined.
2006-05-22 17:27:50 +00:00
Stepan Kasal
a2cc685508 * doc/autoconf.texi (Defining Symbols): Literal parameter of
AC_DEFINE is now passed to m4_pattern_allow.
* NEWS: Mention that; likewise for AC_SUBST.
* lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
the parameter to m4_pattern_allow.
* tests/tools.at: Add a check for that.
2006-05-22 15:54:09 +00:00
Stepan Kasal
408bb81c76 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
the HP-UX sed limitation of 99 commands, labels do not count.
* lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
in the comment.
(_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
2006-05-22 10:28:33 +00:00
Ralf Wildenhues
621112ccfb * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
* doc/autoconf.texi (C++ Compiler): Document it.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
* NEWS: Update.
2006-05-20 05:39:03 +00:00
Ralf Wildenhues
334d111e9e * config/config.guess, config/config.sub, config/texinfo.tex,
doc/make-stds.texi, doc/standards.texi: Sync from upstream.
2006-05-17 02:15:30 +00:00
Paul Eggert
9479591b3e * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
Warn about obsolete install-sh files.  Remove stray sentence
fragment and fix cross reference.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
install -d; this undoes the 2006-05-10 change.
(MKDIR_P): Mark with AN_MAKEVAR.
(AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
that we don't require $INSTALL to be thread-safe.  Move comments
out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
of AC_PROG_INSTALL.  Output a message saying that we're checking
mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
MKDIR_P instead of AC_SUBST.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
Special magic for MKDIR_P, too.
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
a dnl.
* tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
2006-05-13 09:54:51 +00:00
Paul Eggert
2da5c52e5a (Particular Programs): AC_PROG_MKDIR_P falls back on $INSTALL, not
necessarily install-sh.
2006-05-10 23:42:59 +00:00
Paul Eggert
0f696b8be5 * NEWS: New macro AC_PROG__MKDIR_P. AS_MKDIR_P is now more robust.
* config/install-sh: Don't use 'path' to talk about file names,
as per GNU coding standards.  Close a race condition reported by Ralf
Wildenhues and Stepan Kasal.  There is still a race condition
on hosts that predate POSIX 1003.1-1992, but we can't help this.
Don't mishandle weird characters like space on pre-POSIX hosts.
Invoke mkdir at most once per dir arg on pre-POSIX hosts.
* doc/autoconf.texi (Programming in M4sh): Cross-reference to
AC_PROG_MKDIR_P from AS_MKDIR_P.
(Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
earlier editions are not (including Automake 1.8.3).
Do not suggest mkinstalldirs for thread-safety.
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
presence of special characters and race conditions.
* tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
in Autoconf's name space.

* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
from Automake with minor changes.
* doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
2006-05-10 23:05:15 +00:00
Ralf Wildenhues
f3b87aad98 * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
`$*' and IFS concatenation issue with traditional shells and
bash-2.04.  Report by Seanster@Seanster.com.
2006-05-04 07:08:19 +00:00
Paul Eggert
5f047396ae * doc/autoconf.texi (Limitations of Usual Tools): Identify more
precisely which Mac OS X versions have the od problem.
2006-05-03 18:28:56 +00:00
Paul Eggert
28fb17bb76 * doc/autoconf.texi (Integer Overflow):
Mention the special case of integer division overflow.
2006-05-03 01:08:27 +00:00
Paul Eggert
04e292eda5 * doc/autoconf.texi: Use @option systematically. 2006-05-03 00:36:32 +00:00
Paul Eggert
30f1f062e5 * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
about 'od'.
2006-05-03 00:30:23 +00:00
Paul Eggert
fe4647b2d0 Fix typo in previous checkin. 2006-05-02 03:20:26 +00:00
Paul Eggert
b5ade1c2b2 * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
Mention more problems with the -e option.
2006-05-01 17:35:50 +00:00
Ralf Wildenhues
7a77927133 * NEWS: Typo.
* doc/autoconf.texi (Systemology): Mention the Heirloom Project.
2006-04-30 17:06:13 +00:00
Ralf Wildenhues
9d056f239b * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
in URLs to improve DVI formatted output (requires texinfo 4.6).
(System Services, Systemology, Shellology): Likewise.
(Limitations of Usual Tools): Rewrite Mac OS X example for nicer
output.
2006-04-30 17:05:05 +00:00
Ralf Wildenhues
2775732faa * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
continuous text.
(Runtime): Fix macro argument names to match description:
`action-if-found' -> `action-if-true' and similarly.
(Obsolete Macros): Likewise.
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
(AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
(AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
2006-04-30 17:04:06 +00:00
Ralf Wildenhues
85cdefd01e * doc/autoconf.texi (Limitations of Make): Clean up markup. 2006-04-29 06:24:23 +00:00
Ralf Wildenhues
42388b3835 * ChangeLog: Typo.
* doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
DVI output.
2006-04-29 06:23:15 +00:00
Ralf Wildenhues
16562b36b8 * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
/bin/sh set unsorted output.
* lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
* tests/local.at
2006-04-28 04:17:51 +00:00
Paul Eggert
12f2dd2d7f * doc/autoconf.texi (Portable C and C++, Varities of Unportability):
(Integer Overflow, Null Pointers, Buffer Overruns):
(Floating Point Portability, Exiting Portably): New sections.
(Writing Test Programs): Fix some langauge.  Recommend exiting
with status 1, not merely nonzero.  Clarify exit declaration.
(Run Time): Move C exit status stuff to new Exiting Portably section.
(Systemology): Mention Posix and levenez.  Update v7 reference.
(Portable Shell): Mention the Posix shell.
2006-04-26 20:30:54 +00:00
Paul Eggert
9aed71b2ec Undo many of the recent changes, substituting these instead:
* doc/autoconf.texi (Programming in M4sh): Comment out the
documentation of AS_BASENAME, for now.
(Shell Substitutions): Do not use AS_DIRNAME in an example.
(Limitations of Builtins) <basename>: Do not refer to
AS_BASENAME.
* bin/autoconf.as (me): Don't use AS_BASENAME.
(dir): Remove the unused variable.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
AS_DETECT_REQUIRED.  All uses changed.
(_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
All uses changed.
(_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
(AS_BASENAME): Use "basename --" to protect against leading "-".
(_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
(_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
(_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
(_AS_DIRNAME_PREPARE): Likewise.
(_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
(_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
(AS_DIRNAME): Use "dirname --".
2006-04-24 19:36:01 +00:00
Paul Eggert
a6e40381c6 * doc/autoconf.texi (Runtime): Renamed from "Run Time". All uses
of "run time" and "run-time" changed to "runtime", for consistency.
* lib/autoconf/fortran.m4: Likewise (in comment).
* lib/autoconf/functions.m4: Likewise.
* lib/autoconf/general.m4: Likewise.
* lib/autoconf/headers.m4: Likewise.
2006-04-24 06:51:53 +00:00
Paul Eggert
07a83b434a * doc/autoconf.texi (Run Time): Document the exit status situation
with more accuracy and detail.
2006-04-24 05:54:54 +00:00
Paul Eggert
df797abaf3 * NEWS: Remove mention of AS_VAR_SET_BASENAME and AS_VAR_SET_DIRNAME.
* doc/autoconf.texi (Programming in M4sh): Remove mention of
AS_VAR_SET_BASENAME, AS_VAR_SET_DIRNAME, and AS_BASENAME.
We have to keep AS_DIRNAME since it was part of a stable Autoconf,
but AS_BASENAME doesn't have to be supported.
2006-04-23 08:41:06 +00:00
Ralf Wildenhues
44635be039 * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
Archive is not officially `GNU' any more.  Update URL.
(Defining Directories): Likewise
* lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
2006-04-23 07:13:52 +00:00
Paul Eggert
52d54c54e3 * NEWS: Remove AS_DIRNAME and AS_BASENAME, replacing them with
AS_VAR_SET_DIRNAME and AS_VAR_SET_BASENAME.
* doc/autoconf.texi (Programming in M4sh): Document this.  All uses
changed.  The newer interfaces are more reliable, as they allow
implementations that handle trailing newline correctly.  For now,
we're in a freeze, so I did not include the more-reliable
implementations, but I wanted to correct the interface before 2.60
goes out.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
AS_DETECT_REQUIRED.  All uses changed.
(_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
All uses changed.
(_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
(_AS_BASENAME): Renamed from AS_BASENAME.  All uses changed.
Use "basename --" to protect against leading "-".
(_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
(_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
(_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
(_AS_DIRNAME_PREPARE): Likewise.
(_AS_DIRNAME): Renamed from AS_DIRNAME.  All uses changed.
(_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
(_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
Use "dirname --".
(AS_VAR_SET_BASENAME, AS_VAR_SET_DIRNAME): New macros.
* tests/m4sh.at (AS_VAR_SET_DIRNAME): Renamed from AS_DIRNAME.
Test the new API.  Don't test internals, since they're probably
going to change anyway.
(AS_VAR_SET_BASENAME): Likewise, renamed from AS_BASENAME.

* bin/autoconf.as: Don't use AS_BASENAME or AS_DIRNAME.  This
removes a bootstrapping problem with the changes described above.
The AS_DIRNAME part wasn't used, anyway, and the AS_BASENAME
part can be done portably without all the deep Autoconf magic.
2006-04-23 06:49:53 +00:00
Paul Eggert
c324410a51 * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF. 2006-04-19 07:10:13 +00:00
Ralf Wildenhues
ae4363ca9c Ignore autoconf' and standards'. 2006-04-12 18:56:05 +00:00
Ralf Wildenhues
67fa0de6f4 * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
top-level tests after micro-suite has been run.   Used in...
(Debugging a successful test, Debugging script and environment),
(Debugging a failed test): ...these new tests.  The first of these
is fixed by...
* lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
macro, split out from...
(AT_INIT): ...here, so that using -d also generates a run script.
Document that -d inhibits top-level logging.
* doc/autoconf.texi (testsuite Invocation): Document that -d only
inhibits top-level logging; debug scripts are created.
2006-04-11 16:06:40 +00:00
Paul Eggert
18eb7c8e30 * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE. 2006-04-10 18:55:27 +00:00
Ralf Wildenhues
16be6790c9 * doc/autoconf.texi: Remove unused words from word list.
* .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
.x-sc_trailing_space: New files.
2006-04-10 18:14:53 +00:00
Ralf Wildenhues
d3a7588793 * doc/standards.texi: Sync from gnulib. 2006-04-10 18:01:47 +00:00
Ralf Wildenhues
bf1cb2ead1 * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
`LIBOBJDIR' as experimental.
2006-04-10 17:57:17 +00:00
Paul Eggert
309a01c200 Import macros from gnulib (often changing their name).
* NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
The manual mentions Gnulib more prominently.
* doc/autoconf.texi (Gnulib): New node.
(Pointers): Add Gnulib URL.
(Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
(Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
Gnulib section.
(Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
suggest a #define rather than a typedef for _Bool, and mention
Gnulib rather than trying to substitute stdbool code.
(Generic Headers): Add AC_CHECK_HEADERS_ONCE.
(Generic Declarations): Add AC_CHECK_DECLS_ONCE.
(Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
AC_STRUCT_DIRENT_D_TYPE.
(Particular Types): Mention stdint.h and inttypes.h as standard
headers too.
Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T,
AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
(C Compiler): Move AC_C_LONG_DOUBLE to ...
(Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
(Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
(Coding Style).  Don't mention m4_expand_once.
* lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
* lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
(AC_CHECK_FUNCS): Use it.
(AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
(AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
* lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
(AC_HEADER_ASSERT): New macro.
(AC_HEADER_STDBOOL): Don't assume "#error" works.
Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
Catch a bug in an HP-UX C compiler.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
* lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
(AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
(AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
(AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
(_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
New macros.
2006-04-08 21:46:03 +00:00
Stepan Kasal
67b61ef700 Revert my change from 2006-03-17, in other words:
* lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
  and DUALCASE=1.
(AS_SHELL_SANITIZE): Remove DUALCASE=1.
* doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
  it is set.
2006-04-07 18:00:55 +00:00
Ralf Wildenhues
67070903a4 * doc/autoconf.texi (Programming in M4sh): Document that
AS_MKDIR_P exits the script on failure.
* lib/autotest/general.m4: Remove redundant AS_ERROR.
2006-04-07 12:33:04 +00:00
Ralf Wildenhues
d53aec7560 * doc/make-stds.texi: Sync from gnulib. 2006-04-06 22:37:19 +00:00
Ralf Wildenhues
d370eb6e4e * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
shell issue with double-quoted command substitutions of native
commands.
Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
Marshall.
2006-04-06 17:51:22 +00:00
Paul Eggert
119f63f545 * doc/autoconf.texi (C Compiler): Warn about #error. Follows up
on a patch proposed by Ralf Wildenhues.
2006-04-06 07:58:20 +00:00
Noah Misch
a04993aa1d * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
(AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
* doc/autoconf.texi (Help Formatting): New node.
* NEWS: Announce AC_PRESERVE_HELP_ORDER.
2006-04-05 22:41:36 +00:00
Ralf Wildenhues
b7d9019376 * doc/autoconf.texi (Shell Substitutions): Document ^' vs. |'. 2006-04-05 16:18:20 +00:00
Stepan Kasal
2feb1c09a8 Use the original wording, it was not typo. 2006-04-03 08:06:22 +00:00
Paul Eggert
a71c24a704 * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
* doc/autoconf.texi (Function Portability): Mention that C++
has trouble with 'exit'.
(Guidelines): Test programs shouldn't use 'exit'.
* lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
Remove; all uses removed.
(AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
Return from 'main' instead of calling 'exit'.
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
(_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
(AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
(AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
(AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
(_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
* lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
* lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
* tests/compile.at: Likewsie.
2006-04-03 03:18:39 +00:00
Noah Misch
809e269455 * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change. 2006-04-02 15:00:40 +00:00
Stepan Kasal
70c31ba6dc autoreconf: impement -vv 2006-04-01 18:09:07 +00:00
Stepan Kasal
552d9e9636 Spelling fixes. 2006-04-01 16:46:39 +00:00
Stepan Kasal
713895ae5c More autoupdate issues. 2006-04-01 15:57:02 +00:00
Paul Eggert
572ffd5b0b * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
2006-03-31 18:55:43 +00:00
Paul Eggert
9295c8c723 (Programming in M4sh, Limitations of Usual Tools):
Tighten up the basename/dirname wording.
2006-03-31 06:08:36 +00:00
Ralf Wildenhues
28cc41f69a * Makefile.maint (sc_texi_notab): New check: do not use TABs
in texinfo files outside of verbatim environments.
(syntax-check-rules): Update.
* doc/autoconf.texi (Configuration Headers): Conform to it.
2006-03-30 19:54:08 +00:00
Stepan Kasal
6676554c47 Document that autoreconf doesn't pass -I to aclocal. 2006-03-30 17:37:47 +00:00
Paul Eggert
a597574279 * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
Give an example for AS_DIRNAME instead of referring to Posix..
(File System Conventions): Put discussion of // versus / here, and
modernize it a bit.
(Limitations of Usual Tools): Add basename.  Remove verbiage
after dirname, since it got moved to the above sections.
All this was inspired by a patch proposed earlier by Ralf Wildenhues.
2006-03-30 06:42:56 +00:00
Stepan Kasal
de4d0b6bcd typo 2006-03-21 21:51:07 +00:00
Ralf Wildenhues
96aa2c31b2 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
(_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
(AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
(AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
(AC_LANG_BOOL_COMPILE_TRY(Objective C))
(AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
(AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
(_AC_PROG_OBJC_G): New macros.
(_AC_ARG_VAR_CPPFLAGS): Adjusted.
* doc/autoconf.texi (Objective C Compiler): New node.
(Preset Output Variables): Document OBJCFLAGS.
(Language Choice): Document `Objective C' language.
(Fortran Compiler): Fix typo.
* NEWS: Updated.
Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
2006-03-20 20:28:55 +00:00
Stepan Kasal
2ea44d31c2 typos 2006-03-20 14:46:12 +00:00
Stepan Kasal
13324b1dfd Removed BIN_SH=xpg4, moved DUALCASE=1 to AS_SHELL_SANITIZE. 2006-03-17 19:32:53 +00:00
Ralf Wildenhues
2b052b0538 * doc/autoconf.texi (contents): To fix texi2html output, hide
`@setcontentsaftertitlepage' for HTML.
(Writing Autoconf Macros): Likewise, insert space after `@c'.
(Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
`@,{c}'.
2006-03-17 03:59:05 +00:00
Stepan Kasal
4889a3742d Do not use cache vars. 2006-03-15 14:02:36 +00:00
Stepan Kasal
ca608a72f9 Cleaned up documentation for macros in erlang.m4. 2006-03-14 16:55:26 +00:00
Ralf Wildenhues
1e50e55ff9 * doc/autoconf.texi (Special Shell Variables): Missing word.
Reported by Keith Marshall <keith.marshall@total.com>.
2006-03-14 07:19:27 +00:00
Ralf Wildenhues
e1d5a93433 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
`expr' away if there is nothing to do.
< --keywords >: Simplify and robustify argument handling.
Revert erroneous comment from 2005-08-23.  Extend to allow
keyword negation with `!'.
Update help message.  Remove broken code to prevent running
tests multiple times.
* doc/autoconf.texi (testsuite Invocation) < --keywords >:
Update and fix the documentation accordingly.
* tests/autotest.at (Keywords): Renamed to..
(Keywords and ranges): .. this.  Extended to make sure negated
keywords, keywords taken from AT_SETUP arguments, and numeric
test ranges work, and that matching is case-insensitive.
2006-03-12 19:58:31 +00:00
Ralf Wildenhues
608e17bde8 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
example.  Do not emphasize `$%', it is hardly new and special.
Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
2006-03-11 13:15:55 +00:00
Ralf Wildenhues
cd0f024086 * doc/autoconf.texi (Limitations of Usual Tools): Document
OpenBSD and traditional `grep' failure to handle multiple
patterns separated by newlines.
2006-03-11 13:13:47 +00:00
Paul Eggert
0527671a06 * doc/autoconf.texi (several sections): Add documentation for macros
in erlang.m4.
2006-03-11 08:07:31 +00:00
Paul Eggert
abc44c1c57 * doc/autoconf.texi (Obsolete Macros): Fix wording of
AC_TRY_LINK_FUNC.
2006-03-10 20:59:18 +00:00
Paul Eggert
60a9e484c6 * doc/autoconf.texi: Use @acronym more consistently for acronyms
like BSD, GPL, LGPL.  Fix minor English typos.
(AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
Mention that these macros are becoming obsolete.
(AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
Use more modern terminology for which standard is what.
(AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
and to ansi2knr.
(AC_PROG_CXX): Likewise.
(AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
Remove obsolete discussion about how to port to K&R.
(Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
the obsolescent AC_HEADER_STDC.
(AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
can't rely on it.
2006-03-10 20:54:53 +00:00
Ralf Wildenhues
2602ca4aa5 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
HP-UX sed is 99 commands, not 100.
(_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
_AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
newline for portability.
* tests/torture.at (Torturing config.status): Also test 100
AC_SUBST_FILE invocations.  Fix test to actually verify the
AC_CONFIG_FILES output.
* doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
command, label, and read-file `r' limits.  Unify HP-UX spelling.
2006-03-06 22:34:34 +00:00
Ralf Wildenhues
bb44ff85bc * doc/autoconf.texi (Caching Results): Fix the examples to use a
recommended quoting style and discard unwanted output.
2006-03-05 09:09:47 +00:00
Paul Eggert
2e38fe93be * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
(AT_INIT): Use it, to remove arbitrary limit of 999,999 test
cases, and to work around Tru64 expr bug.
* doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
expr bug that turns the result of a regex match into a number if
possible.
2006-03-05 08:29:49 +00:00
Ralf Wildenhues
65b3b33be3 * doc/autoconf.texi (Text processing Macros): New node to
document the m4sugar macros m4_re_escape, m4_tolower,
m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
2006-02-22 20:18:23 +00:00
Ralf Wildenhues
a628e04465 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
test, as in `if tests; then cmd1; elif ...; else ...; fi'.
* doc/autoconf.texi (Programming in M4sh): Adjusted.
* tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
both macros are defun'ed so that required macros are evaluated
outside.
2006-02-21 09:30:01 +00:00
Ralf Wildenhues
8ff7792b2a * doc/autoconf.texi (Prerequisite Macros): State more precisely
where a required macro will be expanded.
(Coding Style): Another reason not to use `m4_define'.
2006-02-21 09:28:34 +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
b7484c4c76 Regenerate. 2006-02-20 08:59:37 +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
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
25ca4c3c70 * doc/install.texi (Defining Variables): Tighten up the
CONFIG_SHELL wording.
2006-02-13 07:59:10 +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
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
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
Paul Eggert
8bf83c29b9 Update copyright (and other) dates to 2006. 2006-01-04 22:28:37 +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
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
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
Ralf Wildenhues
fffd9421d8 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
CONFIG_SHELL in the environment of the configure rerun.
* doc/autoconf.texi (Here-Documents, config.status Invocation):
Suggest passing CONFIG_SHELL absolute, and in the environment
rather than as option.
2005-11-10 18:57:58 +00:00
Stepan Kasal
80d82bbbda Document that ${10} is not portable. 2005-10-21 05:46:49 +00:00
Jim Meyering
5db7bd7937 Typo: s/feature/features/ in ``the features of the latter'', in two places. 2005-10-20 07:01:29 +00:00
Paul Eggert
f50d0bd4c7 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
AC_LANG_PROGRAM, fixing a typo.  Don't give details about
the inner workings of AC_LANG_FUNC_LINK_TRY.
* lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
by the function rather than ignoring it.
(AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
comparing its address.  Intel's interprocedural optimization was
outsmarting the old heuristic.  Problem reported by
Mikulas Patocka.
2005-10-19 22:35:51 +00:00
Stepan Kasal
6d3f3b1995 Add an index entry for AH_HEADER. 2005-09-01 13:49:01 +00:00
Stepan Kasal
0058d8366e Fix the examples for AS_TR_CPP and AS_TR_SH. 2005-08-26 16:12:21 +00:00
Paul Eggert
7753b867c0 Regenerate. 2005-08-25 21:33:19 +00:00
Stepan Kasal
9b3a6b5e1d Implement AH_HEADER 2005-08-23 08:50:54 +00:00
Noah Misch
24396108a6 * doc/autoconf.texi (Using Autotest, testsuite Scripts)
(Autotest Logs, Writing testsuite.at, testsuite Invocation):
Language cleanup.

* doc/autoconf.texi (Defining Symbols, Changed Results):
Prepend to LIBS, not append, in examples.
2005-08-21 18:40:45 +00:00
Paul Eggert
7d9430d8b1 * NEWS: New macro AC_C_TYPEOF.
* doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
* lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
* tests/c.at (C keywords): Test AC_C_TYPEOF.
2005-07-06 21:39:30 +00:00
Stepan Kasal
65d032086c Change the explanation about #include <config.h>. 2005-07-01 05:55:41 +00:00
Stepan Kasal
4ee05f5044 minor rewording 2005-06-30 12:55:46 +00:00
Stepan Kasal
acfaed3aff Mention Gnulib. 2005-06-30 12:29:19 +00:00
Stepan Kasal
425048cf51 Use #!/, without space. 2005-06-29 10:47:38 +00:00
Stepan Kasal
8b91927a02 ksh looses redirections on exec 2005-06-29 10:36:04 +00:00
Derek Price
a8a6a41553 * doc/autoconf.texi (Limitations of Usual Tools <sed>): Reword recent
addition.
2005-06-28 13:08:29 +00:00
Paul Eggert
8bf5f56cf9 * doc/autoconf.texi (Subdirectories): Fix markup typos. 2005-06-24 00:54:00 +00:00
Paul Eggert
124c037f3d Regenerate. 2005-06-23 20:11:18 +00:00
Stepan Kasal
91ac8c668f fix AT_CONFIG_CMP 2005-06-22 12:13:59 +00:00
Stepan Kasal
79539e6fbf No blanks after sed command ":" and other minor fixes. 2005-06-21 16:03:58 +00:00
Paul Eggert
f149ecd2b8 * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
* doc/autoconf.texi:
Don't mention Solaris versions so much, if a
problem is common to all extant versions of Solaris.  Say "SunOS
4" instead of "SunOS" for SunOS 4.
(awk): Mention more of the limitations of traditional Awk.
(cat): Don't talk about cat -v.
2005-06-17 20:37:36 +00:00
Paul Eggert
7a2fe7a963 * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
on Mac OS X 10.4 reported by Peter O'Gorman in:
http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
* lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
Use shell builtins rather than 'expr', to work around expr bug.
2005-06-16 07:24:42 +00:00
Paul Eggert
9cafea1a75 Use ":label" rather than ": label" for sed scripts,
as Posix suggests.
2005-06-11 07:01:37 +00:00
Paul Eggert
2fb1b97ad0 * doc/autoconf.texi: "filesystem" -> "file system".
"behavior" -> "behavior".
Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
* lib/autoconf/general.m4: Omit blank after ":" sed command,
as per POSIX.
* lib/m4sugar/m4sh.m4: Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
with Solaris sed.  Fix by Stepan Kasal.
2005-06-11 06:05:11 +00:00
Derek Price
647d972332 * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
AS_TR_SH.
2005-06-10 15:42:42 +00:00
Paul Eggert
85084d669a Fix texinfo typo in my previous change. 2005-06-08 20:27:20 +00:00
Derek Price
3a69199220 * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
redefined M4 macros to this node.  Document m4_include & m4_sinclude.
Move m4_undefine to alphabetical order.
2005-06-08 15:44:09 +00:00
Paul Eggert
45ee5fe26b * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
Tru64 ksh pattern matching bug.  Reported against Libtool by
Albert Chin <libtool@mlists.thewrittenword.com> and
Nicolas Joly <njoly@pasteur.fr>.
2005-06-08 07:55:28 +00:00
Paul Eggert
2fa1c5c37e * README: Recommend GNU M4 1.4.3 or later.
* doc/autoconf.texi (Introduction): Likewise.
Reword to avoid some formatting glitches.
Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
Clarify explanation of HP compiler bug.
Redo example output tp match current CVS snapshot.
Use @example.org in email addresses when the examples
might get inadvertently cut-and-pasted into user code.
Remove example of autom4te usage that doesn't seem to work now.
Use modern AC_INIT (except when the example is meant to be
shown with Autoconf 2.13).
Update ksh info for Solaris 9 and later.
KB -> kB.
Modernize description of Automake versions a bit.
Don't claim a future version of Autoconf is near.
Add [] to examples, so that the manual
follows its own advice about quoting better.
* doc/install.texi: Reword to avoid some formatting glitches.
2005-06-08 07:13:50 +00:00
Stepan Kasal
74a787af12 Solaris' awk cannot take more than 99 fields. 2005-06-06 08:01:30 +00:00
Stepan Kasal
4e5d401aca AIX 5.2 awk cannot swallow literals longer than 399. 2005-06-04 07:31:48 +00:00
Stepan Kasal
153958d92b AIX awk cannot swallow literals longer than 399. 2005-06-04 07:30:05 +00:00
Paul Eggert
228ae3b1f6 Terminate sentence. 2005-06-01 07:20:26 +00:00
Paul Eggert
2fc0b2c9ba * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
* doc/autoconf.texi (Particular Headers): Reword example
for multiline stdbool replacement.
(Setting Output Variables): Reword text a bit.  Don't
give all the details about |#_!!_#|.
Reword description of line replacement.
2005-06-01 07:16:50 +00:00
Paul Eggert
4157a11dd9 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
now contain newlines, and substituted files must be referenced on
a line alone; the sed scripts to substitute them are now very
different.
(_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
commands can be put in a sed script portably.
* doc/autoconf.texi (Setting Output Variables): Document above
changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
use of multiline substitution.
* tests/torture.at: No longer expect substitution of newline to fail.
2005-06-01 06:54:45 +00:00
Stepan Kasal
62f684c32e Don't use "shift 2". 2005-05-25 06:45:11 +00:00
Stepan Kasal
8641b608b5 make top_builddir consistent with Automake 2005-05-20 08:13:15 +00:00
Alexandre Duret-Lutz
0f41ecbc90 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
as on 2005-05-02.
* doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
Mention LIBOBJDIR.
2005-05-14 18:33:30 +00:00
Paul Eggert
681d17dce2 Update FSF postal mail address. 2005-05-14 07:00:38 +00:00
Paul Eggert
a9ff3f6e13 (Autoconf Language): Be more precise about
quoting rules.  Problems noted by Stepan Kasal.
Also, throughout this document, be more careful about white space.
"blank", "white space", and "space" all have different meanings
and we should be careful to say what we mean.
2005-05-10 23:37:37 +00:00
Paul Eggert
f5b265430a Fix C++ related problems reported by Werner Lemberg.
* doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
* lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
* lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
avoid problems with C++ and throw.
* tests/compile.at: .cpp, not .cc.
2005-05-06 05:34:43 +00:00
Paul Eggert
2bbfc560b5 * doc/autoconf.texi (Generic Functions): Typos. 2005-05-05 08:13:25 +00:00
Gary V. Vaughan
1dab064d21 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
set by latest automake.
2005-05-02 20:14:49 +00:00
Paul Eggert
e214711ff0 (Limitations of Usual Tools): "expr '' \| ''"
outputs 0 on GNU/Linux these days.
2005-05-02 05:46:47 +00:00
Paul Eggert
01b7739d70 POSIX 1003.1-2001 -> Posix 2005-04-29 22:10:30 +00:00
Paul Eggert
312fdf3750 (Limitations of Builtins): Describe "set -" problems. 2005-04-29 22:05:14 +00:00
Paul Eggert
fd5a3dc3d0 * doc/autoconf.texi (Autoconf Language): Add more description
about quoting heuristics.
2005-04-29 19:22:55 +00:00
Stepan Kasal
5d62f91042 Fix a mistake in an example: AC_DEFINE_UNQUOTED -> AC_DEFINE. 2005-04-29 13:16:55 +00:00
Stepan Kasal
5adc3cae53 FIXMEs about quadrigraphs in help text. 2005-04-22 06:37:24 +00:00
Stepan Kasal
fbbc2c6023 Examples for --with-* and --enable-*. 2005-04-14 14:56:55 +00:00
Paul Eggert
2f0c7a00ca (Particular Functions): Use gnulib's current
pattern for alloca snippet.
2005-04-10 22:19:26 +00:00
Stepan Kasal
f5ea1ec089 a typo 2005-04-01 08:55:58 +00:00
Paul Eggert
789f0bf6ff * NEWS: The configure command now warns you if you attempt to use
a directory whose name contains a special character like space,
newline, or "\".
* doc/autoconf.texi (Installation Directory Variables): Allow
"," in file names.  Do not use \@; it's not a portable regexp.
* bin/Makefile.am (edit): Likewise.
* lib/Makefile.am (edit): Likewise.
* tests/Makefile.am (edit): Likewise.
* tests/semantics.at: Likewise.
* tests/torture.at: Likewise.
* lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
* lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
* doc/autoconf.texi (File System Conventions): Warn about
unportable file names.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
(AC_INIT): Use it.
(_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
ac_pwd, and quote srcdir.
* lib/autotest/general.m4 (AT_INIT): Quote file name args.
2005-03-23 01:01:58 +00:00
Paul Eggert
96e362a44d * doc/autoconf.texi: Fix some systematic formatting problems.
".)"  needs a following @: if not at the end of a sentence, and
similarly for "!)".  "etc." should be preceded by a comma.
"n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
(Input): Mention that AC_CONFIG_AUX_DIR's
argument is often called 'build-aux'.
2005-03-22 19:24:05 +00:00
Stepan Kasal
67cdabe80f typos in the manual 2005-03-10 12:17:03 +00:00
Stepan Kasal
0bf7d67f6d remind that AC_TRY_LINK is obsolete 2005-03-08 08:11:34 +00:00
Paul Eggert
10cd1172b4 Regenerate. 2005-02-23 23:26:05 +00:00
Paul Eggert
29373c6512 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
/dev/null, as "configure" shouldn't read stdin, and this insulates
us from problems (e.g., when testing for "cl").  Also, do this
redirection before invoking "hostname" or "uname", and keep the
original input stream available via...
(AS_ORIGINAL_STDIN_FD): ... this new macro.
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
bother with "</dev/null" since it's now done at the top of
'configure'.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
* doc/autoconf.texi (File Descriptor Macros): New section.
(Printing Messages): Mention it.
* tests/base.at (Input/Output): New test.
2005-02-23 23:24:49 +00:00
Stepan Kasal
7192963509 m4_defun([AS_IF], [...]) 2005-02-15 06:40:21 +00:00
Paul Eggert
2117cbe998 (Limitations of Usual Tools): Document that
grep -q isn't portable.  Improve grep -s explanation.
2005-02-10 00:41:24 +00:00
Paul Eggert
34e2ec2125 (Special Shell Variables): Clarify
PATH_SEPARATOR wording; fix typo in IFS.
2005-02-08 17:27:04 +00:00
Paul Eggert
9cad141f50 Use @acronym for DJGPP.
Fix some @code's that should have been @env's, and vice versa.
Sort environment variable names.
Mention that shells no longer inherit IFS.
Don't recommend PATH_SEPARATOR=';' so strongly.
Mention that $RANDOM might expand to the empty string.
"symlink" and "soft link" -> "symbolic link".
Improve mktemp description (reported by Bruno Haible).
2005-02-08 00:35:01 +00:00
Paul Eggert
c28abf84de * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
(AC_COPYRIGHT): Factor header comment portion out and move into...
* lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
* lib/autotest/general.at (AT_COPYRIGHT): New macro.
(AT_INIT): Add Autotest copyright notice.  Display copyright notices in
--version output.
* tests/local.at: Add Autoconf test suite copyright notice.
* doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
* NEWS: Mention AT_COPYRIGHT.
2005-02-05 07:58:43 +00:00
Paul Eggert
ec55ba03f3 (Limitations of Usual Tools): New mkstemp entry. Based on a
suggestion by Bruno Haible.
2005-02-05 00:11:43 +00:00
Paul Eggert
4f6ba2b9e4 (Special Shell Variables): Mention _,
BIN_SH, DUALCASE.  Say that variables other than "status" are safe
if they contain a lower-case letter.
2005-02-03 00:31:33 +00:00
Paul Eggert
fda63f71a7 (Limitations of Usual Tools): Unicos 9 sed limitations. 2005-02-02 23:47:34 +00:00
Paul Eggert
c39e71de53 (autoreconf Invocation): Mention autopoint, with a cross reference. 2005-02-01 20:43:42 +00:00
Paul Eggert
5ed6babbee Regenerate. 2005-02-01 00:59:56 +00:00
Paul Eggert
8586046471 Fix typo: empty example. 2005-02-01 00:36:24 +00:00
Paul Eggert
f90f3a857d (config.status Invocation): Warn about
discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
2005-02-01 00:33:08 +00:00
Paul Eggert
3a397dcbfe (Defining Variables): Warn about CONFIG_SHELL problems. 2005-02-01 00:32:44 +00:00
Paul Eggert
8cc997c106 * doc/make-stds.texi, doc/standards.texi: Update from masters. 2005-02-01 00:02:49 +00:00
Paul Eggert
29b673d8ab (Limitations of Usual Tools): Recommend X
rather than x for expr.
2005-01-28 21:55:57 +00:00
Akim Demaille
cdd416b0fe Have autoheader honor --force.
* doc/make-stds.texi, doc/standards.texi: Update from masters.
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
* lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
from masters, so that FileUtils.pm's update_file provide --force
support.
* bin/autoheader.in: Pass $force to update_file so that
config.h.in is always recreated when --force.
2005-01-27 10:53:41 +00:00
Stepan Kasal
4c98943ec6 update Peter Simons' address 2005-01-24 12:24:01 +00:00
Paul Eggert
f2741f70c7 (Limitations of Builtins): Clarify that
"if test -d foo; ..." is portable.  Suggested by Stepan Kasal.
2005-01-21 19:31:51 +00:00
Paul Eggert
d01f64e300 (Shell Substitutions): Fix typo in case statement.
Warn about newline stripping in `` and $().  Update Solaris
version to 9.
(Limitations of Builtins): Use expr "X...", not expr "x...", as
X insulates us from future changes to Posix.
(Limitations of Usual Tools): For AS_DIRNAME, warn about newline
stripping.
2005-01-21 00:03:40 +00:00
Stepan Kasal
4c38a43946 fix AC_DEFINE documentation 2005-01-20 10:59:55 +00:00
Paul Eggert
476d1383c2 (Limitations of Usual Tools): Document bug in Solaris 8 join. 2005-01-13 21:03:11 +00:00
Alexandre Duret-Lutz
cebb4afe8c * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
datadir, infodir, and mandir.  Adjust argument parsing code.
(_AC_INIT_HELP): Update help text.
* doc/autoconf.texi (Installation Directory Variables): Document
new variables.
2005-01-05 07:53:52 +00:00
Paul Eggert
ef8419581f * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
not seem to work, assume it does set $(MAKE).
* doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
2005-01-04 23:50:00 +00:00
Paul Eggert
684f466976 (Limitations of Usual Tools): Warn about
sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
2005-01-03 08:31:44 +00:00
Paul Eggert
3271f2121a Patch from Roger Leigh (with some minor changes) as follows:
* NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
Resurrect AC_PROG_CC_STDC.
* doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
AC_PROG_CC_C89, AC_PROG_CC_C99.
(Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
* lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
AC_PROG_CC_C99): New macros.
(AC_PROG_CC_STDC): Use them.
(_AC_PROG_CC_STDC): Remove.
(AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
* THANKS: Add Roger Leigh.
2005-01-03 07:35:21 +00:00
Paul Eggert
778ced2bda * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
(AT_SETUP): Clear AT_capture_files.
(_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
(AT_KEYWORDS): Fix comment typo.
* tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
* tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
* doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
2005-01-01 08:12:12 +00:00
Paul Eggert
4d0e78e46b (Limitations of Builtins) <case>: Mention
problems with SunOS ksh and backslash escaping, Bourne shells and
closing brackets (both within character classes).  Bug reported
against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
<read>: New entry.  Mention non-availability of -r.
2004-12-22 21:50:08 +00:00
Stepan Kasal
9655f04da2 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
  no longer part of the macro, quote the occurrence of ``$tmp''.
* doc/autoconf.texi (Forbidden Patterns): Typo.
2004-12-21 14:24:01 +00:00
Paul Eggert
5a5aef27e9 Regenerate. 2004-12-20 04:12:52 +00:00
Paul Eggert
0d73fb5e88 (Making testsuite Scripts): Recommend the same
Makefile.am scheme Autoconf now uses.
2004-12-20 04:09:54 +00:00
Paul Eggert
28d48eaadd Update FDL version from 1.1 to 1.2. 2004-12-18 00:44:34 +00:00
Akim Demaille
2e8bb72892 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
m4_pattern_allow.
Suggested by Alexandre Duret-Lutz.
* doc/autoconf.texi (Setting Output Variables): Catch up.
2004-12-17 16:17:18 +00:00
Stepan Kasal
bf15a42ad1 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
Reini Urban and Paul Eggert for reporting the dependencies.

* lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
* doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
(AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
2004-12-17 14:32:51 +00:00
Paul Eggert
bea2437161 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
tracing on commands with possibly-escaped newlines.
* doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
discontinued behavior and its implications.
* tests/autotest.at (BS-newline in command, ^BS-newline in command)
(BSx641-newline in command, BS-BS-newline in command)
(BSx640-newline in command, Newline-CODE-BS-newline in command)
(Single-quote-BS-newline in command)
(Single-quote-newline-BS-newline in command): New tests.
2004-12-14 01:04:25 +00:00
Alexandre Duret-Lutz
84bb23ef6f * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo. 2004-12-12 11:56:40 +00:00
Paul Eggert
04dcf25d6e * bin/.cvsignore: Add autoconf.in.
* tests/.cvsignore: Add wrapper.in.

* man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.

* lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.

* tests/autotest.at: New file.
* tests/suite.at: Include it.
* tests/Makefile.am: Distribute it.

* lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
  shell tracing on a command that could contain multiple lines.
* doc/autoconf.text: Document that fact and its implications.
* lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
* tests/autotest.at (Multiline backquote command substitution,
  Multiline parameter expansion, Literal multiline command,
  Multiline parenthetical command substitution): Remove XFAIL.
2004-12-10 07:08:52 +00:00
Paul Eggert
85a424332a (Libraries): Clarify problems with AC_CHECK_LIB
and suggest AC_SEARCH_LIBS.
2004-12-09 21:31:49 +00:00
Paul Eggert
9657d427ac Regenerate. 2004-12-09 21:15:19 +00:00
Paul Eggert
b1d940cc81 Regenerate. 2004-12-09 21:02:41 +00:00
Paul Eggert
3077af0f26 Add support for UNICOS getmntent. 2004-12-06 21:24:19 +00:00
Paul Eggert
1bf76fd578 (Particular Programs): @code{$PATH} -> @env{PATH}.
(Using Autotest, testsuite Scripts, Writing testsuite.at):
Reword slightly to avoid some English-language problems noted
by Ralf Wildenhues in:
http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
2004-11-29 21:43:11 +00:00
Paul Eggert
f72fc4eb29 Fix documentation problems reported by Russ Boylan in
<http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
along with some nearby cruft.
* doc/autoconf.texi (Libtool): Libtool can be used without
Automake (not without Autoconf).
(Introduction): Mention lists.gnu.org.
* BUGS: Don't mention bugs.gnu.org.
Remove mention of ancient libtool compatibility problem.
* NEWS: Mention that bugs.gnu.org is kaput.
* README: Likewise.  Mention where mailing list archives can be found.
2004-11-29 04:29:08 +00:00
Paul Eggert
a547bb54a8 Add another []. 2004-11-26 18:45:53 +00:00
Paul Eggert
3fc8772b35 (Pretty Help Strings): Go back to
single-quoting assignments to cache variables.
2004-11-26 08:58:34 +00:00
Paul Eggert
0291d76a4c (Pretty Help Strings): Fix quoting issues
with the examples; fix the bug in MY_ARG_WITH example reported
by Alexandre Duret-Lutz.
2004-11-23 19:11:56 +00:00
Paul Eggert
08626d82b1 (Pretty Help Strings): Fix typo
in my editing of the previous patch.
2004-11-23 09:01:01 +00:00
Paul Eggert
39dc4d1039 (Autoconf Language): Explain that
``descriptions'' may not be double quotes.
(Quotation Rule Of Thumb): Likewise.
(Pretty Help Strings): Likewise; remove the wrong comment;
simplify the examples and improve their quoting.
2004-11-22 23:31:56 +00:00
Paul Eggert
0c8290f52f (Limitations of Usual Tools): Avoid cp -r; use cp -R instead. 2004-11-11 00:13:20 +00:00
Paul Eggert
e09999cb7f (Limitations of Usual Tools): Note `cp -r'
limitations.  Reorder paragraphs for clarity.
2004-11-10 21:57:40 +00:00
Paul Eggert
9bf04c6b54 * doc/autoconf.texi (Shellology, Special Shell Variables): Document that the Zsh
problem with NULLCMD was fixed in zsh 3.1.6-dev-18.
2004-10-11 21:42:05 +00:00
Paul Eggert
1d037b8bc3 (One-Shot Macros): New node. 2004-10-11 20:25:41 +00:00
Paul Eggert
da2e3449b6 Standardize spelling of "Posix" (as opposed
to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
variants", "Unix", and some related minor wording fixups.
2004-10-11 20:21:33 +00:00
Paul Eggert
5695b04ab9 (Function Portability): Fix misdescription
of putenv.  Problem reported by Michael Wardle.
2004-09-28 17:21:52 +00:00
Paul Eggert
2d34ae33a0 (auindex): New macro.
(AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
Problem reported by Stepan Kasal.
2004-09-22 18:05:01 +00:00
Paul Eggert
cb240d8430 Give AC_DEFINE and AC_DEFINE_UNQUOTED
three args in examples.  Problem reported by Frederik Fouvry in:
http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
Also, fix some minor spacing and punctuation bugs.
2004-09-04 04:51:58 +00:00
Akim Demaille
fac3ef22a9 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
"case" to restore ordering.
Reported by Stepan Kasal.
2004-09-02 07:30:25 +00:00
Akim Demaille
a626e04317 * doc/autoconf.texi: Typos and stylos. 2004-08-26 12:40:00 +00:00
Paul Eggert
2b1990a208 Regenerate. 2004-08-21 00:00:29 +00:00
Paul Eggert
bea69b409d Update URLs, some of which went stale.
Use @uref rather than @href.
2004-08-20 23:42:51 +00:00
Paul Eggert
488dec91cb Sync with master copy. 2004-08-20 20:19:38 +00:00
Paul Eggert
6b1c07685a Use "file name" rather than "filename" or "path",
to be consistent with the terminology of the GNU coding standards.
2004-08-20 19:58:06 +00:00
Paul Eggert
70d0937ae4 (Function Portability): Document isinf and
and isnan.  From a suggestion by Kevin Ryde.
2004-08-12 21:51:48 +00:00
Alexandre Duret-Lutz
cc27a4753f * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
(AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
* doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
* lib/autom4te.in (Automake-preselections): Preselect
AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
2004-08-03 22:06:09 +00:00
Paul Eggert
5406443202 (Shellology): Document problem with """" in pdksh POSIX mode. 2004-07-30 00:34:27 +00:00
Paul Eggert
99fcb9f685 (Shellology): Mention BIN_SH. 2004-07-29 22:29:16 +00:00
Paul Eggert
c652094d91 Use "set -o posix" with pdksh, too. 2004-07-27 20:15:15 +00:00
Paul Eggert
091c734d9a Warn about names like "aux". 2004-06-04 20:40:33 +00:00
Paul Eggert
34638b0340 Regenerate. 2004-06-04 17:32:49 +00:00
Kevin Ryde
de219d9bb3 (Function Portability): Add notes on free(NULL),
malloc(0) and realloc(NULL,size).
2004-06-02 23:08:58 +00:00
Kevin Ryde
082bead629 * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
Bob Proulx.
2004-06-02 22:47:12 +00:00
Paul Eggert
d3ac02e267 Mention that ! COMMAND can be rewritten using if-then-else. 2004-05-26 17:56:18 +00:00
Paul Eggert
01ccc31a6e Fix doc typo. 2004-05-25 18:50:06 +00:00
Paul Eggert
77cf219604 Standardize on the spelling of "Unix". Explain !'s problems. 2004-05-24 19:24:20 +00:00
Kevin Ryde
c97449f05b (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
note pessimistic assumption when cross compiling.
2004-05-19 01:50:26 +00:00
Kevin Ryde
f45e77069d (Function Portability): Add strerror_r, cross referencing AC_FUNC_STRERROR_R. 2004-05-19 01:44:39 +00:00
Paul Eggert
31b4400d28 Fix grammatical typos. 2004-05-17 05:01:45 +00:00
Paul Eggert
4b794c38d7 Document sh -e problem with subcommands. 2004-05-17 04:56:48 +00:00
Paul Eggert
278cbdd51f Don't prepend blanks to PATH in AC_PROG_GREP and AC_PROG_SED. 2004-05-10 18:54:18 +00:00
Paul Eggert
b3b81694da Regenerate. 2004-05-03 06:50:48 +00:00
Paul Eggert
555f6e9cfe Regenerate. 2004-05-03 06:22:29 +00:00
Paul Eggert
2632aa6e7b Prefer 'grep' implementations that accept -e. 2004-05-03 05:54:17 +00:00
Alexandre Duret-Lutz
d8d1f67499 * doc/autoconf.texi (Limitations of Make): Update documentation
for `$<'.  New entry `Long lines', based on a report from Simon
Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
paragraph about DJGPP, based on a mail from Richard Dawe.
2004-04-21 08:23:18 +00:00
Paul Eggert
52b5402a3c (Slashes): New section. 2004-04-20 20:14:31 +00:00
Paul Eggert
7bcfe7aa19 Use 'long int', 'short int', 'unsigned int'
etc. consistently instead of 'long', 'short', 'unsigned' etc.
2004-03-30 07:55:25 +00:00
Paul Eggert
4d1bb4117e AC_STRUCT_TIMEZONE now defines HAVE_DECL_TZNAME if it is declared,
when HAVE_STRUCT_TM_TM_ZONE is not defined.
2004-03-28 21:51:10 +00:00
Kevin Ryde
45b6ab755a (Specifying Names): Move cross_compiling ovindex to
(Run Time): ... here, where it's now mentioned.
2004-03-24 22:40:15 +00:00
Alexandre Duret-Lutz
9d30c9595d * doc/autoconf.texi (autom4te Invocation): Language Autoconf
inherits from language Autoconf-without-aclocal-m4.
(Customizing autom4te): Adjust example; the cache must now be
disabled for language Autoconf-without-aclocal-m4.
2004-03-20 06:33:12 +00:00
Paolo Bonzini
e09a76cd5a 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
* lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
	AC_CHECK_TOOLS): Warn if a cross-tool is found without
	a prefix.
	(AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
	AC_CHECK_TARGET_TOOLS): New macros.
	* doc/autoconf.texi (Generic Programs): Document
	(AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
	AC_CHECK_TARGET_TOOLS, and warn for future changes
	in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
	AC_CHECK_TOOLS.
	(Specifying Names): Document the reason for these future
	behavioral changes.
	* tests/mktests.sh: Do not generate tests for the
	new macros.
	* NEWS: Document these changes.

	* doc/autoconf.texi: Avoid macros with unbraced arguments,
	they make TeX hang up.
2004-03-19 08:57:51 +00:00
Paul Eggert
1af3ee05ac Add AC_CHECK_ALIGNOF. 2004-03-15 22:00:05 +00:00
Alexandre Duret-Lutz
2b0361107e * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
is not always thread-safe.  Report from Nathanael Nerode.
2004-02-19 23:21:41 +00:00
Paul Eggert
3eef4058db (Setting Output Variables): Emphasize that
AC_SUBST provides no portable way to escape literal newlines.
2004-02-09 21:19:32 +00:00
Paolo Bonzini
6b2d30f409 * doc/autoconf.texi (AU_DEFUN): Fix English,
suggested by Paul Eggert.
* lib/autoconf/autoupdate.m4: Correct reference to
acobsolete.m4, suggested by Alexandre Duret-Lutz.
2004-02-03 23:07:30 +00:00
Paolo Bonzini
8ddbbac5ee * bin/autoupdate.in: Define __file__ so that warnings
refer to the correct file.
* doc/autoconf.texi (AU_DEFUN): Describe more correctly
the behavior of the third argument.
* lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
correctly the behavior of the third argument.  Document
what the three macros that AU_DEFUN defines do.  Fix
warning message when the third argument includes $0
(reported by Alexandre Duret-Lutz).
2004-02-03 09:00:27 +00:00
Paolo Bonzini
9cfd0271c1 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
* doc/autoconf.texi: Don't say that the third parameter
is broken.
* lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
(AU_DEFUN): Honor the third parameter, create autoupdate
macros with AU_DEFINE.
* lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
AC_DIR_HEADER): Use AU_DEFUN's third parameter.
* lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
* lib/autoconf/programs.m4 (AC_RSH): Likewise.
* lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
AC_XENIX_DIR): Likewise.
* lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
* lib/autoconf/status.m4: Remove FIXME.
* tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
that the macro is not present anymore in the updated
configure.ac.
* tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
of autoupdate.
2004-01-30 14:21:35 +00:00
Gary V. Vaughan
d2e80858b8 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
grep or ggrep program in PATH that accepts as long lines as
possible.
* lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
AC_PROG_GREP.
(AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
egrep and fgrep respectively if $GREP -E/-F don't work.
(_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
_AC_PROG_GREP, and AC_PROG_SED.
(_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
longest input length accepted by a command.
(AC_PROG_SED): Use it.
* doc/autoconf.texi (Particular Programs): Document the changes.
* NEWS: Updated.
2004-01-27 20:07:12 +00:00
Paul Eggert
5f8650d8c3 Resync and/or copy from original sources. 2004-01-27 19:25:05 +00:00
Paul Eggert
62ac9bbfeb Include <stdint.h> even if HAVE_INTTYPES_H is defined. 2004-01-26 23:28:56 +00:00
Gary V. Vaughan
f74f53b7c8 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
non-truncating sed or gsed program in PATH.
* tests/acprograms.at: Add it.
* doc/autoconf.texi (Particular Programs): Document it.
* NEWS: Updated.
2004-01-23 08:21:51 +00:00
Paul Eggert
3cbad6e408 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
Test for dir before calling mkdir -p.  (trivial changes)
* doc/autoconf.texi: Document this.
2004-01-14 20:27:30 +00:00
Paul Eggert
6e4d00fa69 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
2004-01-13 18:36:54 +00:00
Jim Meyering
d782a80065 (Running the Preprocessor): Correct grammar. 2004-01-10 16:39:56 +00:00
Paul Eggert
77619982e7 Make example a bit shorter in the previous change. 2004-01-07 18:17:28 +00:00
Paul Eggert
df495a3499 Fix an incorrect quoting example; reported by Eric Sunshine. 2004-01-06 21:11:30 +00:00
Paul Eggert
82fea9e4f7 Remove warning against "rm -fr" introduced yesterday;
it seems to have been a false alarm.
2004-01-05 23:34:23 +00:00
Paul Eggert
a6a02e8ae7 Don't use "chmod -w". 2004-01-05 08:18:24 +00:00
Paul Eggert
12475c8947 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires. 2004-01-05 07:05:22 +00:00
Paul Eggert
703a914ad3 (Limitations of Usual Tools): Mention that cc
-c -o might not work.  From a suggestion by Kevin Ryde.
(C Compiler, Generating Sources, Limitations
of Usual Tools, Limitations of Make, Making testsuite Scripts):
Don't put '-o' after non-options, as POSIX doesn't allow this.
Mention that cc's name might be gcc or c89 or whatever.
2004-01-04 01:41:25 +00:00
Kevin Ryde
1484636ed8 * doc/autoconf.texi: Add various further index entries. 2004-01-03 20:57:09 +00:00
Alexandre Duret-Lutz
30fe91493d * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
`VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
explanation clearer.
2003-12-27 11:31:05 +00:00
Paul Eggert
57c4246280 Fix misspelling of AC_INCLUDES_DEFAULT. 2003-12-27 08:26:26 +00:00
Paolo Bonzini
abbcaca79f Revert the behavioral changes in AC_LINK_FILES, and add several
clarificataions about the brokenness of AU_DEFUN's third argument.
2003-11-25 13:50:45 +00:00
Akim Demaille
6e6183ff80 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
override some files.
(Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
From Debian Autoconf 2.58.
2003-11-24 14:36:15 +00:00
Paolo Bonzini
9e56967aa4 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
* TODO: Remove already done things.  Update the part
        about finding tools for the target.

2003-11-24  Paolo Bonzini <bonzini@gnu.org>

        * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
        AC_DIR_HEADER): Make wording more consistent.
        * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2,
        AC_MINGW32): Explain the transition better.
        * lib/autoconf/types.m4 (AC_INT_16_BITS,
        AC_LONG_64_BITS): Explain the transition better.

2003-11-24  Paolo Bonzini  <bonzini@gnu.org>

        * doc/autoconf.texi (Obsoleting Macros): Don't
        document the third parameter of AU_DEFUN.
        * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
        (AU_DEFUN): Remove the third parameter, it was not used.
        Use AC_DEFUN directly, not AU_DEFINE.
        * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message
        into the expanded body, consistently with other macros
        such as AC_USG.
2003-11-24 10:40:58 +00:00
Kevin Ryde
786887c774 Bit more of:
* doc/autoconf.texi (Using System Type): Revise, showing $host rather
	than $target since the latter is not usual, add guidelines on when to
	use or not use the system type.

$host_cpu pointed out by Ralf Corsepius.
2003-11-15 22:26:12 +00:00
Kevin Ryde
5ee411f88a (Using System Type): Revise, showing $host rather
than $target since the latter is not usual, add guidelines on when to
use or not use the system type.
2003-11-14 23:32:10 +00:00
Derek Price
87bca2495f * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
typo misrepaired by an auto-spellcheck.
2003-11-12 15:43:21 +00:00
Akim Demaille
76c0108d23 Regen. 2003-11-06 09:28:14 +00:00
Alexandre Duret-Lutz
727294e819 * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
and ac_abs_top_srcdir are absolute paths.
* lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
2003-11-05 11:58:43 +00:00
Kevin Ryde
fcf298e6c1 (Function Portability): Add notes on signal
handler return type, as per AC_TYPE_SIGNAL.
2003-11-04 21:18:58 +00:00
Kevin Ryde
1bcf8a0cf3 (Using Autotest): Avoid @strong{Note: ...}, since
it provokes a warning from makeinfo about looking like a cross
reference in info output.
2003-11-04 21:16:10 +00:00
Akim Demaille
22cc67b23b Version 2.58.
* doc/standards.texi: Update from master.
2003-11-04 08:48:23 +00:00
Akim Demaille
610c228914 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
computing the absolute path to d1 in the source hierarchy: it may
not exist at all.  So don't cd into it.
From Alexandre Duret-Lutz.
http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
* lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
From Paul Eggert, but named after Perl's IO::Spec->catfile.
* doc/autoconf.texi (Programming in M4sh): Document.
* lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
2003-11-04 08:32:06 +00:00
Pavel Roskin
3a06ae4af8 * doc/autoconf.texi (Generic Structure Checks): Describe
action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
2003-11-03 16:35:00 +00:00
Akim Demaille
6ff118ad18 Update. 2003-10-31 08:48:41 +00:00
Akim Demaille
f159338d6e * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
(GNU Fortran): New.
* doc/autoconf.texi (Language Choice): Document.
* lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
the current language is Fortran.
2003-10-31 08:44:46 +00:00
Akim Demaille
3be5747a55 Bump to 2.57g, as should have been done on 2003-10-01. 2003-10-23 09:11:57 +00:00
Akim Demaille
77c5d24444 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
same object file in $LIBOBJS.
Reported by Alexandre Duret-Lutz & Derek Robert Price.
* doc/autoconf.texi (Generic Functions): Adjust.
2003-10-23 07:49:15 +00:00
Daniel Jacobowitz
dd1ddde557 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
	(_AC_LINK_IFELSE): Check the werror flag.
	* doc/autoconf.texi (Generic Compiler Characteristics): Document
	AC_LANG_WERROR.
	* NEWS: Mention it.
2003-10-20 16:18:26 +00:00
Paul Eggert
fb37a3ec82 Work around a bug in pdksh 5.2.14.
Document ksh better.
2003-10-15 22:56:22 +00:00
Kevin Ryde
611e1bece2 Add sysconf _SC_PAGE_SIZE. 2003-10-15 00:13:12 +00:00
Kevin Ryde
cfc29aeec0 Add putenv and unsetenv. 2003-10-15 00:10:05 +00:00
Kevin Ryde
0e37aef4a8 (Function Portability): Add @prindex for exit. 2003-10-15 00:06:53 +00:00
Paul Eggert
0fd47195fe Untabify. 2003-10-11 06:52:08 +00:00
Steven G. Johnson
5a401f703d document new Fortran stuff 2003-10-08 20:06:21 +00:00
Gary V. Vaughan
2f9a01b432 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
that future autopoint/aclocal/automake/autoreconf will be able
to trace to find where to install local m4 macros.
* doc/autoconf.texi (Input): Document it.
* NEWS: Updated.
2003-10-08 13:12:19 +00:00
Akim Demaille
8d5d3bd898 * configure.ac: Quotation and formatting changes.
(EMACS): Don't set it if it is not recent enough to support
autoconf-mode.el.
From Eric Sunshine.
2003-10-03 07:07:13 +00:00
Paul Eggert
065175811a (Particular Structure Checks): Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS. 2003-10-02 04:38:02 +00:00
Akim Demaille
9a8ac9d0ba * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
directory for AC_CONFIG_COMMANDS' first argument exists.
This makes valid the invocation of _AC_SRCPATH that follows.
Reported by Eric Sunshine.
* doc/autoconf.texi (Configuration Commands): Adjust.
2003-09-26 13:55:03 +00:00
Akim Demaille
f2e174acbe Version 2.57d.
* config/install-sh: Upgrade from CVS Automake.
2003-09-25 08:33:32 +00:00
Paul Eggert
f207e9bdb5 Trivial change to support GCC's configuration procedure. 2003-09-23 23:05:08 +00:00
Akim Demaille
a8e5ab2717 * doc/autoconf.texi (Header Portability): Promote linux/types.h,
not asm/types.h.
2003-09-12 07:19:08 +00:00
Akim Demaille
deceea7b05 * doc/autoconf.texi (Header Portability): linux/random.h.
From Peter Hendrickson.
2003-09-11 07:06:56 +00:00
Paul Eggert
84c0e87bb3 * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
Document problems with timestamp resolution that 'make', 'cp -p', and
'touch -r' have.
2003-09-02 19:13:58 +00:00
Akim Demaille
4a7536e370 * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
documentation.
From Guido Draheim.
2003-08-27 07:29:30 +00:00
Akim Demaille
10faaad494 * doc/autoconf.texi (Output): Make clear that one can run code
after AC_OUTPUT.
2003-08-26 07:36:39 +00:00
Akim Demaille
550208e189 * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
From Ville Karaila.
2003-08-25 06:29:48 +00:00
Akim Demaille
1649ca79e6 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
(autom4te-update): New.
* Makefile.cfg (update): Bind autom4te-update.
2003-08-20 06:29:54 +00:00
Alexandre Duret-Lutz
51e84cdd91 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
(Autoconf-without-aclocal-m4): ... this new language.
* doc/autoconf.texi (autom4te Invocation): Mention
Autoconf-without-aclocal-m4.
2003-08-19 07:56:56 +00:00
Derek Price
2ce00b8afd * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
RUN-IF-PASS optional arguments.
2003-08-18 16:48:26 +00:00
Derek Price
f4799aff77 * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF. 2003-08-18 15:28:16 +00:00
Derek Price
da285ec31b * doc/autoconf.texi (Writing testsuite.at): Document defaults for
STDOUT & STDERR arguments.
2003-08-16 16:15:15 +00:00
Paul Eggert
27dc41d1bc Fix minor doc typos. Problem reported by Ralf Wildenhues. 2003-08-07 05:13:09 +00:00
Paul Eggert
ddf71846ef Solaris 2.8 -> Solaris 8 2003-07-31 07:19:10 +00:00
Paul Eggert
e2a2a8e835 Solaris 2.8 -> Solaris 8 2003-07-31 07:18:15 +00:00
Paul Eggert
cdbcc96cc7 Fix another typo, reported by Stepan Kasal. 2003-07-22 17:09:10 +00:00
Paul Eggert
41f99f329b Fix minor English typo. From Stepan Kasal. 2003-07-22 17:05:11 +00:00
Akim Demaille
8b18a0709f * doc/autoconf.texi (Header Portability): sys/mount.h.
From Gareth McCaughan.
2003-06-25 10:05:42 +00:00
Akim Demaille
2fbbb4bafe * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
* lib/autom4te.cfg (args): Add local.at? for Autotest args.
* tests/atspecific.m4: Rename as...
* tests/local.at: This.
* tests/suite.at: Move the globals into...
* tests/local.at: here.
* tests/Makefile.am: Adjust.
* doc/autoconf.texi (testsuite Scripts): Adjust.
2003-06-23 11:11:41 +00:00
Akim Demaille
9c4ac634f9 Regen. 2003-06-23 08:39:09 +00:00
Kevin Ryde
c1507a819b * autoconf.texi (hdrindex): New macro.
Add index entries for portability of various standard header files.
2003-06-20 23:26:19 +00:00
Akim Demaille
97df4a3e31 Regen with fixed Automake. 2003-06-20 08:18:15 +00:00
Akim Demaille
2e52204a16 Regen. 2003-06-20 07:34:29 +00:00
Akim Demaille
b89b8e5c2d * config/config.guess, config/config.sub, config/elisp-comp,
* config/install-sh, config/mkinstalldirs, doc/standards.texi:
Update from masters.
2003-06-20 07:21:32 +00:00
Paolo Bonzini
c102ed8494 Add expected failures to autotest. 2003-06-12 11:03:55 +00:00
Paul Eggert
3a1b2ca878 * NEWS, doc/autoconf.texi (Particular Functions),
lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
is the inverse of localtime.
2003-05-28 20:03:52 +00:00
Akim Demaille
172bea7727 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
exit 63, so that we (or Automake's "missing") can tell the
difference with a plain failure.
* doc/autoconf.texi (Notices): Adjust.
2003-05-23 13:14:30 +00:00
Akim Demaille
4c64440ba1 * Makefile.am, bin/Makefile.am, config/Makefile.am,
* doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
White spaces cleanup.
2003-05-23 13:09:28 +00:00
Akim Demaille
7be200c539 * doc/autoconf.texi (Header Portability): ucred.h.
From Ian Redfern.
2003-05-23 07:14:49 +00:00
Paolo Bonzini
df6cb74cb6 Overhaul Autotest's logging: generate separate log files
in testsuite.dir/NNN/testsuite.log, and append them to
testsuite.log instead of re-running the test verbosely.
Adapt documentation.  Update NEWS to signal possible bad
interactions between -x and experr.
2003-05-22 21:52:43 +00:00
Akim Demaille
3cb00cdb8b * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 13:24:04 +00:00