Commit Graph

2635 Commits

Author SHA1 Message Date
Paul Eggert
7d8d078148 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
sed substitution command, so that we allow | in program prefixes
and program suffixes.  (& is a problem anyway; we're not fixing
that here.)
* lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
configure_input, top_builddir, srcdir, etc.
* lib/autotest/general.m4 (AT_INIT): Likewise, for
PATH_SEPARATOR in AUTOTEST_PATH.
2005-07-04 06:33:56 +00:00
Paul Eggert
3792cba6e8 * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
for loop over config.site files using `set', to allow
directory names containing IFS characters.
2005-07-04 05:22:35 +00:00
Paul Eggert
fac859f174 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
directories with weird names.  Apparently some people like living
on the edge.  However, improve the test that "pwd" actually does
report a name for the working directory.
* NEWS: Remove the claim that we test for funny chars in dir names.
2005-07-01 22:20:56 +00:00
Stepan Kasal
65d032086c Change the explanation about #include <config.h>. 2005-07-01 05:55:41 +00:00
Stepan Kasal
dec2180d09 Fix the order of the macros. 2005-06-30 18:42:08 +00:00
Stepan Kasal
a37b36b8df . 2005-06-30 18:28:11 +00:00
Stepan Kasal
4e9da906ff fix parsing of Fortran -v output in Portland-Group compiler again 2005-06-30 12:59:13 +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
Alexandre Duret-Lutz
ddc3dab4f8 * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE. 2005-06-30 11:09:37 +00:00
Stepan Kasal
8b91927a02 ksh looses redirections on exec 2005-06-29 10:36:04 +00:00
Stepan Kasal
1b9326bc9e Introduce AC_SUBST_TRACE 2005-06-29 09:33:21 +00:00
Stepan Kasal
5864b9b4fa Move AC_ARG_VAR up. 2005-06-29 06:37:47 +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
e32eb1d0fe * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
directory have inherent problems with special characters like spaces,
due to limitations in Make syntax.  Problem reported by Alexandre
Duret-Lutz.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
Also, fix Tru64 porting problem with shell patterns,
reported by Ralf Wildenhues.
2005-06-24 02:13:39 +00:00
Paul Eggert
8bf5f56cf9 * doc/autoconf.texi (Subdirectories): Fix markup typos. 2005-06-24 00:54:00 +00:00
Paul Eggert
b32180b5b6 * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly. 2005-06-24 00:47:18 +00:00
Paul Eggert
88865d83e1 Fix some more shell quoting problems. Prompted by a bug report
from Justace Clutter.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
variable into diagnostic.  Make the diagnostic an error, not a warning,
because we really don't support spaces and suchlike in dir names.
(_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
Don't worry about backslashes in srcdir; it can't happen now.
(_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
Simplify ac_optarg handling.
(_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
2005-06-23 20:09:25 +00:00
Stepan Kasal
91ac8c668f fix AT_CONFIG_CMP 2005-06-22 12:13:59 +00:00
Stepan Kasal
134ab734ea typo in _AC_CANONICAL_SPLIT 2005-06-22 09:10:50 +00:00
Stepan Kasal
79539e6fbf No blanks after sed command ":" and other minor fixes. 2005-06-21 16:03:58 +00:00
Derek Price
0066149a8b * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious. 2005-06-20 14:48:09 +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
9e1a1f1400 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
(AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
but the implementation is entirely different and is designed
to be compatible with glibc strverscmp.
* tests/m4sh.at (AS_VERSION_COMPARE): New test.
2005-06-16 21:03:47 +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
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
Paul Eggert
0961b6fc08 * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
(.x.1): Ignore the time stamp in the .TH line when deciding whether
to update the man page.  That way, we don't have to check in new
man pages every month.
2005-06-10 17:56:21 +00:00
Paul Eggert
bf9df8d65a * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
quotes and backslashes.  Patch from Derek Price.
2005-06-10 17:19:02 +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
da373fad14 * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff -u. 2005-06-08 20:27:51 +00:00
Derek Price
505d062d8f * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
renaming them since they are about to be redefined anyhow.
2005-06-08 18:54:23 +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
d354edbe65 Fix m4_cdr for one-member lists. 2005-06-06 08:47:02 +00:00
Stepan Kasal
160577c29c Simplify _AC_OUTPUT_HEADERS. 2005-06-06 08:21:08 +00:00
Stepan Kasal
74a787af12 Solaris' awk cannot take more than 99 fields. 2005-06-06 08:01:30 +00:00
Steven G. Johnson
b95e76c6da check for g95 in addition to gfortran 2005-06-05 18:46:03 +00:00
Stepan Kasal
f906445c01 Make sure autotest.m4f is up-to-date before using it. 2005-06-03 13:42:15 +00:00
Stepan Kasal
8491ef1eaa * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
(DISTCLEANFILES): Remove $(check_SCRIPTS).
2005-06-03 13:16:39 +00:00
Paul Eggert
b17b6485fb * lib/autotest/general.m4 (AT_INIT): Don't create a regular
expression of unbounded size when processing the --list option.
2005-06-02 23:30:39 +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
Paul Eggert
102586d8e0 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
From Ralf Menzel (trivial change).
2005-05-27 22:21:44 +00:00
Paul Eggert
f003e6431a * tests/local.at: Don't attempt to check for negated character
classes in shell scripts.  The test was too brittle.
2005-05-25 18:35:05 +00:00
Stepan Kasal
62f684c32e Don't use "shift 2". 2005-05-25 06:45:11 +00:00
Stepan Kasal
6818abb033 Combine the changelog entries 2005-05-24 07:55:29 +00:00
Stepan Kasal
7799e704a2 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo commands 2005-05-24 07:32:13 +00:00
Stepan Kasal
e96830f886 (_AS_ECHO_LOG): New macro 2005-05-24 07:29:57 +00:00
Stepan Kasal
9f639eb48d (AS_ESCAPE): Make the pattern a bit simpler 2005-05-24 07:27:55 +00:00
Stepan Kasal
e7d74c4c5d Move _AS_ECHO_UNQUOTED lower; no code change. 2005-05-24 07:27:15 +00:00
Stepan Kasal
f014f06e6b (m4_ifset): Use m4_ifval. 2005-05-24 07:25:32 +00:00
Stepan Kasal
fbcb298898 Merge the two error messages when ac_unique_file is not found. 2005-05-24 07:24:49 +00:00
Stepan Kasal
220d13fef6 Simplify end of AC_CONFIG_MACRO_DIR 2005-05-24 07:21:43 +00:00
Stepan Kasal
cd4c627338 Make more use of "shift 2" in option processing. 2005-05-24 07:20:42 +00:00
Stepan Kasal
9b3856e4df Merge the two rules for creating scripts. 2005-05-24 06:14:27 +00:00
Stepan Kasal
457e247cc7 Make AC_MSG_RESULT_UNQUOTED obsolete 2005-05-24 06:12:10 +00:00
Stepan Kasal
53466e6d2b typo 2005-05-20 12:07:02 +00:00
Stepan Kasal
8641b608b5 make top_builddir consistent with Automake 2005-05-20 08:13:15 +00:00
Stepan Kasal
661cc613b0 Simplify the init of confdefs.h 2005-05-20 07:58:42 +00:00
Stepan Kasal
ae53380796 (m4_text_wrap): Don't m4_quote the second argument to m4_foreach. 2005-05-17 09:49:36 +00:00
Stepan Kasal
0a2545966e Use expr where possible. 2005-05-17 09:29:05 +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
Stepan Kasal
90e4ad679a (AC_CONFIG_LIBOBJ_DIR): Remove the broken check. 2005-05-13 09:17:15 +00:00
Paul Eggert
d2e7431e9e * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
of absolute paths.
2005-05-12 23:46:42 +00:00
Stepan Kasal
9ce265f05c * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
for absolute directory names in one loop.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
  abbreviations of --version and --debug.
2005-05-12 11:26:07 +00:00
Paul Eggert
8620019f37 * doc/autoconf.texi (Autoconf Language): Be more precise about
quoting.
2005-05-10 23:37:57 +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
527fddd987 "expr '' \| ''" outputs 0 on GNU/Linux these days. 2005-05-02 05:47:11 +00:00
Paul Eggert
de539558d5 * doc/autoconf.texi (Limitations of Builtins): Describe "set -" problems. 2005-04-29 22:05:38 +00:00
Paul Eggert
c3544003c0 * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
not newline.
2005-04-29 21:17:26 +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
8d0c69eb25 . 2005-04-29 13:36:23 +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
4ca5cf6fd2 A tiny optimization in _AC_OUTPUT_HEADERS. 2005-04-27 10:04:36 +00:00
Stepan Kasal
5adc3cae53 FIXMEs about quadrigraphs in help text. 2005-04-22 06:37:24 +00:00
Paul Eggert
54cb4d63c8 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
Remove core.conftest.* too; it's generated by Tru64 5.1.
* lib/autoconf/functions.m4
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
Don't bother to remove core files; AC_RUN_IFELSE should do that for you.
2005-04-20 05:34:25 +00:00
Stepan Kasal
edb835c2ff typo 2005-04-19 06:20:37 +00:00
Alexandre Duret-Lutz
75912460a6 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
Report from Horst Wente.
2005-04-19 06:00:35 +00:00
Stepan Kasal
37482b404d typo 2005-04-15 08:36:56 +00:00
Stepan Kasal
fbbc2c6023 Examples for --with-* and --enable-*. 2005-04-14 14:56:55 +00:00
Paul Eggert
b09065e337 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
as well as configure.in.  Problem reported by Gregorio Guidi.
2005-04-13 17:01:41 +00:00
Paul Eggert
93d7f03800 * doc/autoconf.texi (Particular Functions): Use gnulib's current
pattern for alloca snippet.
2005-04-10 22:19:51 +00:00
Stepan Kasal
76aa0e4c11 a typo 2005-04-04 10:19:10 +00:00
Stepan Kasal
f5ea1ec089 a typo 2005-04-01 08:55:58 +00:00
Paul Eggert
3123dd20ab * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
fails if %s isn't supported.
2005-04-01 07:28:15 +00:00
Paul Eggert
1ab98b87ae * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
Merge `-z option' as well for the benefit of Solaris link flags.
2005-03-23 19:41:13 +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
Stepan Kasal
4cb653bd0d improve AC_PROG_CC and AC_PROG_CXX 2005-02-25 08:52:48 +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
Paul Eggert
f79094658c * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
newline if neither \c nor -n work, as that would output two
newlines.  Prefer -n to \c.
2005-02-23 19:26:51 +00:00
Stepan Kasal
7192963509 m4_defun([AS_IF], [...]) 2005-02-15 06:40:21 +00:00
Paul Eggert
c5c40b0e69 Undo previous change, except keep the change to
lib/autoconf/programs.m4 that replaced grep with shell
pattern-matching.  This is because net-snmp configure reads stdin.
2005-02-13 07:38:31 +00:00
Paul Eggert
5c70aeca3f * 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").
Suggested by Alexandre Duret-Lutz.  Also, do this redirection
before invoking "hostname" or "uname".
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
_AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
"</dev/null" since it's now done at the top of 'configure'.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
Also, replace grep with shell pattern-matching, to save a process.
2005-02-11 19:12:29 +00:00