Commit Graph

4516 Commits

Author SHA1 Message Date
Ralf Wildenhues
9656b1839e * bin/autoscan.in: The value of find_configure_ac should be
checked for existence, so we don't barf over a nonexisting
configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
2006-03-26 21:27:56 +00:00
Ralf Wildenhues
dd0b613c2a * bin/autoupdate.in: Fix some typos. 2006-03-22 19:30:39 +00:00
Stepan Kasal
141123eb01 . 2006-03-22 11:25:56 +00:00
Stepan Kasal
de4d0b6bcd typo 2006-03-21 21:51:07 +00:00
Stepan Kasal
f8d9179d74 . 2006-03-21 17:50:11 +00:00
Ralf Wildenhues
bc89233c59 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
and Erlang related variables.
2006-03-20 20:29:45 +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
4342ba1ca8 . 2006-03-17 20:52:27 +00:00
Stepan Kasal
8900df9ae0 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
Factor out the warning to...
	(_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
	* tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
	* tests/semantics.at (AC_C_BIGENDIAN): Likewise.
2006-03-17 20:37:26 +00:00
Stepan Kasal
13324b1dfd Removed BIN_SH=xpg4, moved DUALCASE=1 to AS_SHELL_SANITIZE. 2006-03-17 19:32:53 +00:00
Stepan Kasal
8219ba6af6 do not check for ac_delim 2006-03-17 19:19:16 +00:00
Stepan Kasal
d2d7871702 (_AC_PATH_PROG): Store the result to VARIABLE. 2006-03-17 19:05:27 +00:00
Stepan Kasal
2991e096f8 Add AT_CHECK_MACRO_CROSS. 2006-03-17 18:03:01 +00:00
Ralf Wildenhues
c5982aeff4 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
the directory `/usr/bin/posix' in the shell search, to prefer
the Posix shell not only in subsequent spawns as with `$BIN_SH'
on Tru64.
2006-03-17 17:09:21 +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
a7791c7782 Move the IFS setup and CDPATH sanitizing to AS_SHELL_SANITIZE. 2006-03-16 13:33:18 +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
c36fc65ca5 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
failure condition for `$(cmd)' style command substitutions.
(Parenthetical command substition, Multiline parenthetical
command substition): Use it.
2006-03-14 07:20:14 +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
6f4a6a0740 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
IFS even in case of empty `$PATH'.
2006-03-14 07:18:18 +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
17bb2b9ac8 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
allow to pass unnamed structs even in C++.
(AC_CHECK_SIZEOF):  Likewise.
Also fix quoting error in `AC_MSG_FAILURE' arguments.
* tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
struct): New tests for unnamed structs, each both native and
cross-compiling.
2006-03-11 13:22:42 +00:00
Ralf Wildenhues
c8ad4b48ac * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
a structure inside a cast, for C++ conformance.
* lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
Also fix quoting error in `AC_MSG_FAILURE' arguments.
2006-03-11 13:21:32 +00:00
Ralf Wildenhues
4bed79349d * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
trying to execute the command `no'.
2006-03-11 13:20:14 +00:00
Ralf Wildenhues
df1fe4b493 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
expanded outside.
2006-03-11 13:17:23 +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
f1fb11eb87 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
Remove stdin redirection from /dev/null to allow pipe to work.
2006-03-08 20:48:22 +00:00
Paul Eggert
70e18e4ea9 Fix typo in previous checkin. 2006-03-08 19:23:36 +00:00
Paul Eggert
31c38363f1 * tests/c.at (AC_PROG_CPP without warnings): Require that
/lib/cpp include stdio.h correctly.  Solaris 10's doesn't.
2006-03-08 19:21:26 +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
8db7a98480 Regenerated. 2006-03-06 22:06:09 +00:00
Ralf Wildenhues
66bf4ecdc9 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
non-suffix rule.
($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
non-GNU make.
(autoconfdir, $(AUTOCONF_FILES)): Likewise.
* tests/mktests.sh: Small shell portability fixes.
2006-03-06 21:13:21 +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
5c8afca5a6 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
in section `Specific Compiler Characteristics'.
2006-03-04 17:28:34 +00:00
Paul Eggert
3ddd7fba50 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
variable warning.
2006-03-03 20:41:40 +00:00
Ralf Wildenhues
f4d628245a * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
order of variable initialization, so even the Solaris 2.6 shell
can create a config header correctly.  Fixes lots of test suite
failures.
2006-03-01 19:54:33 +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
Paul Eggert
c53065d39a * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
XrmInitialize (0) -> XrmInitialize ().
Reported by Toshio Kuratomi.
2006-02-22 19:37:40 +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
5ff8a3d39a * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization. 2006-02-21 07:16:33 +00:00
Ralf Wildenhues
14f61daa3c * doc/autoconf.texi (Looping constructs): New node, to
document m4_for, m4_foreach, m4_foreach_w, and mention
obsolete AC_FOREACH.
(Obsolete Macros): Document AC_FOREACH.
* lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
(m4_for): Fix to never loop (almost) endlessly, work correctly
with arithmetic expressions in arguments, a step of zero or
non-integer multiple of the interval, and avoid integer
overflow.
* tests/m4sugar.at: New test for m4_for, m4_foreach, and
m4_foreach_w.
2006-02-20 21:43:05 +00:00
Paul Eggert
cf77d083f0 Regenerate. 2006-02-20 19:46:52 +00:00