Akim Demaille
41ec08f9ed
When running
...
AC_INIT
AC_PROG_CC
AC_LANG_COMPILER_REQUIRE
AC_PROG_CC is expanded twice, because AC_PROG_CC provides
`AC_PROG_CC', and not `AC_LANG_COMPILER(C)' as expected by
AC_LANG_COMPILER_REQUIRE.
* aclang.m4 (AC_LANG_COMPILER(C)): Instead of calling AC_PROG_CC,
require it.
(AC_LANG_COMPILER(C++), AC_LANG_COMPILER(Fortran 77)): Likewise.
2000-11-10 10:57:34 +00:00
Akim Demaille
f9fd1e4edc
* m4sh.m4 (AS_MKDIR_P, AS_DIRNAME_SED): Don't shell quote $1.
...
Adjust callers.
Reported by Paul Eggert.
* tests/m4sh.at: Sort.
2000-11-10 10:14:44 +00:00
Pavel Roskin
1d03fe1675
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Use ":" instead of
...
"true".
* tests/atgeneral.m4 (AT_INIT): Likewise.
* tests/tools.at (Syntax of the scripts): Likewise.
2000-11-09 18:59:18 +00:00
Akim Demaille
97cdb56113
* m4sugar.m4 (_m4_expansion_stack_dump): Really rename as...
...
(m4_expansion_stack_dump): this.
2000-11-08 17:54:11 +00:00
Akim Demaille
6a1fe22942
* aclang.m4 (AC_LANG_PROGRAM(Fortran 77): Complain about $1 having
...
a value.
Reported by Paul Martinolich.
(_AC_LANG_COMPILER_GNU): Pass the test as the body of
AC_LANG_PROGRAM, not the prologue.
2000-11-08 17:46:24 +00:00
Akim Demaille
a9102fbdf9
* aclang.m4 (ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77):
...
Be AU_DEFUN'd, not AU_ALIAS'd.
Reported by Ralf Corsepius.
* tests/mktests.sh (exclude_list): Skip these variables.
2000-11-07 14:16:54 +00:00
Akim Demaille
674d4eef25
m4_syscmd was reestablished as syscd' intead of
syscmd' because
...
instead of `s/^m4_//', m4_copy_unm4 was running `s/[m4_]//'.
* m4sugar.m4 (m4_copy_unm4): Fix.
2000-11-07 11:49:35 +00:00
Akim Demaille
b4ae99995f
* acgeneral.m4 (AC_CHECKING): Is not an alias of AC_MSG_NOTICE,
...
hence use AU_DEFUN, not AU_ALIAS.
2000-11-07 10:50:29 +00:00
Jim Meyering
5111c57c37
(AC_FUNC_FNMATCH): Add a test to detect the d*/*1 vs d/s/1 bug.
...
Add a couple more test cases to catch bugs in glibc 2.1.95.
Include fnmatch.h unconditionally
Mention the GNU C library.
From Paul Eggert.
2000-11-04 22:07:50 +00:00
Akim Demaille
b4a8fae52b
AC_CONFIG_AUX_DIR_DEFAULTS overrides AC_CONFIG_AUX_DIR. Ouch.
...
Reported by Paul Martinolich.
* acgeneral.m4 (AC_PROVIDE): Don't forget to `m4_provide'!!!
Tss, novice...
* tests/base.at (AC_REQUIRE & AC_PROVIDE): New test.
2000-11-03 16:02:54 +00:00
Akim Demaille
43703ea9aa
* m4sugar.m4 (m4_location): When using its value, don't use
...
`m4_defn', since m4_location is not a variable, it's a macro which
expands to __file__:__line__.
* tests/m4sugar.at (m4_warn): New test.
2000-11-03 15:21:14 +00:00
Akim Demaille
e927749bb5
* Makefile.am (.m4.m4f): Check that processing produces only
...
comments and empty lines.
Check that freezing produced no output.
* m4sugar.m4: Commentize what was not.
* m4sh.m4: Likewise.
* aclang.m4: Formatting changes.
2000-11-03 14:01:58 +00:00
Akim Demaille
ded24ff599
* autoconf.m4 (define): Reestablish only after having read the
...
`ac' files.
Adjust all the Autoconf code to use `m4_define', not `define'.
2000-11-03 13:41:40 +00:00
Akim Demaille
3c3853ced4
* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
...
the new macro...
Reported by Ezra Peisach.
* tests/semantics.m4 (AC_HAVE_FUNCS): New test.
* tests/tools.at (autoupdate): As a benign side effect, updating a
macro that takes no argument produces `UPDATED([])', no longer
`UPDATED()'. Adjust the test.
2000-11-03 11:59:39 +00:00
Akim Demaille
7e4f776a09
* autoconf.m4: Instead of reactivating the macros before reading
...
Autoconf's file, do it afterwards, so that Autoconf promotes the
right use, but users still can use the old names.
Of course this revealed numerous non updated uses of old macros in
Autoconf's files. Adjust them.
But for the time being, keep `define' alive for Autoconf.
2000-11-03 11:14:48 +00:00
Akim Demaille
1c614b9e79
AC_REQUIRE and AC_DEFUN_ONCE don't work properly together. This
...
caused strange messages about AC_ARG_PROGRAM.
Reported by Jim Meyering.
* acgeneral.m4 (AC_DEFUN_ONCE): Fix the indirection to
m4_defun_once.
* m4sugar.m4 (m4_defun_once): Also define
`m4_location(MACRO-NAME)'. s/ac_warn/m4_warn/.
Use `m4_defn' to read `m4_location'.
* tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE): Two new tests.
2000-11-03 10:39:27 +00:00
Akim Demaille
9fe2458f8d
Set up config.log earlier so that AC_MSG_ERROR and AC_MSG_WARN can
...
be used early.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Call `_AC_INIT_PREPARE_FDS'.
(_AC_INIT_PREPARE): Don't.
(_AC_INIT_PREPARE_ENVIRONMENT, _AC_INIT_PREPARE_FDS): Rename as...
(_AC_INIT_DEFAULTS_ENVIRONMENT, _AC_INIT_DEFAULTS_FDS): these,
since they are called from `_AC_INIT_DEFAULTS', not
`_AC_INIT_PREPARE'.
(_AC_INIT_DEFAULTS_FDS): Dump `$@' in config.log, not
`$ac_configure_args' which is not computed yet.
2000-11-03 10:07:40 +00:00
Akim Demaille
22673e406c
Formatting changes.
2000-11-03 09:43:33 +00:00
Akim Demaille
9fe8a5d0c2
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): TRIPLET can include `_' and
...
`-'.
Reported by Andreas Jaeger.
2000-11-03 09:22:14 +00:00
Akim Demaille
3f580f38ab
* m4sh.m4 (_AS_UNSET_PREPARE): New macro, eved from
...
_AC_INIT_PREPARE_ENVIRONMENT, and fixed: set `FOO' before trying
to unset it: `unset' exits 1 if the variable is not defined.
(AS_UNSET): Require it. Use `as_unset' not `ac_unset'.
* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Use it.
2000-11-03 09:16:21 +00:00
Akim Demaille
75390304e0
* m4sugar.m4 (builtin, changecom, changequote, decr, dumpdef)
...
(incr, index, indir, len, syscmd, sysval, traceoff, traceon):
Rename as...
(m4_builtin, m4_changecom, m4_changequote, m4_decr, m4_dumpdef)
(m4_incr, m4_index, m4_indir, m4_len, m4_syscmd, m4_sysval)
(m4_traceoff, m4_traceon): these.
* autoconf.m4 (builtin, changecom, decr, incr, index, indir, len)
(syscmd, sysval, traceoff, traceon): Reactivate.
2000-11-03 09:08:02 +00:00
Akim Demaille
d95de46af1
* m4sugar.m4 (m4_rename_m4, m4_copy_unm4): New macros.
...
Use them.
(debugfile, debugmode, m4exit, m4wrap, maketemp, patsubst, regexp)
(substr, translit, m4_wrap): Rename as...
(m4_debugfile, m4_debugmode, m4_exit, m4_wrap, m4_maketemp)
(m4_patsubst, m4_regexp, m4_substr, m4_translit, m4_text_wrap): these.
Adjust all dependencies.
* acgeneral.m4: Adjust.
* tests/m4sugar.at: Adjust.
* autoconf.m4 (m4exit, patsubst, regexp, substr, translit):
Reestablish them.
2000-11-03 08:53:26 +00:00
Akim Demaille
5243fda44e
* doc/autoconf.texi (Limitations of Usual Tools): Some about
...
dirname.
2000-11-02 17:35:53 +00:00
Akim Demaille
e015643d3f
* tests/atgeneral.m4 (AT_CHECK): Check stderr first, since if both
...
stdout and stderr fail, differences on the latter are probably
more significant than on the former.
2000-11-02 15:21:04 +00:00
Akim Demaille
2353e0d366
* m4sugar.m4 (popdef, pushdef): Rename as...
...
(m4_popdef, m4_pushdef): these.
Adjust dependencies.
* acgeneral.m4: Adjust.
* aclang.m4: Likewise.
* autoconf.m4 (popdef, pushdef): Reactivate them.
2000-11-02 14:12:18 +00:00
Akim Demaille
f2a537cc26
* tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when
...
`-v' is passed.
2000-11-02 12:23:42 +00:00
Akim Demaille
15e4d38025
In M4sugar, move define',
undefine', and defn' into the
m4_'
...
name space.
* m4sugar.m4 (m4_define, m4_defn, m4_undefine): New macros.
(define, defn, undefine): Undefine.
Adjust all uses.
* m4sh.m4: Adjust.
* autoconf.m4: Reenable these builtins.
* m4sugar.m4 (m4_expansion_stack_dump): Use m4_copy.
2000-11-01 17:32:17 +00:00
Akim Demaille
429b2e9e9d
* m4sugar.m4 (m4_fatal): Dump the expansion stack.
...
* acgeneral.m4 (AC_FATAL): Use m4_fatal.
2000-11-01 16:33:18 +00:00
Akim Demaille
4b19491f44
Move the `defun' handling into M4sugar.
...
* m4sugar.m4 (_m4_divert(GROW), _m4_expansion_stack_dump)
_m4_defun_pro, _m4_defun_epi, m4_defun, $1, m4_defun_once)
m4_before, _m4_require, m4_require, m4_expand_once, m4_provide)
m4_provide_ifelse): New macros.
* acgeneral.m4 (_AC_EXPANSION_STACK_DUMP, _AC_DEFUN_PRO)
_AC_DEFUN_EPI): Removed.
(AC_DEFUN, AC_DEFUN_ONCE, _AC_REQUIRE, AC_REQUIRE)
AC_PROVIDE_IFELSE, AC_FATAL): Reimplement atop M4sugar.
2000-11-01 15:56:37 +00:00
Akim Demaille
82756f7543
Move the handling of classified warnings into M4sugar.
...
* m4sugar.m4 (m4_diagnose): Remove.
(m4_warning): New.
* acgeneral.m4 (AC_WARNING_IFELSE, _AC_WARNING_IFELSE)
(_AC_WARNING_ERROR_IFELSE, __AC_WARNING_ERROR_IFELSE)
(_AC_DIAGNOSE, AC_DIAGNOSE): Rename as...
* m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
(_m4_warning_error_ifelse, __m4_warning_error_ifelse)
(_m4_warn, m4_warn): these.
* acgeneral.m4 (AC_DIAGNOSE): Wrapper around `m4_warn'.
* autoconf.sh: Define `m4_warnings' instead of `_AC_WARNINGS'.
2000-10-31 15:20:15 +00:00
Pavel Roskin
a462c5c75e
* acspecific.m4 (AC_PATH_XTRA): Use AC_LANG_PROGRAM() as the
...
argument to AC_LINK_IFELSE.
2000-10-31 04:47:23 +00:00
Pavel Roskin
a24439a762
* m4sh.m4 (AS_EXIT): Use "false" for exit code 1, ":" for 0.
...
* acgeneral.m4 (AC_MSG_ERROR): Don't use m4_default for the
second argument - AS_EXIT takes care of it.
2000-10-30 19:47:58 +00:00
Akim Demaille
16f55c53ab
* m4sugar.m4: Formatting changes.
2000-10-30 19:02:23 +00:00
Akim Demaille
4c40aa086f
Move the handling of diversions into M4sugar.
...
* acgeneral.m4 (_AC_DIVERT, AC_DIVERT, AC_DIVERT_PUSH)
(AC_DIVERT_POP): Move to...
* m4sugar.m4 (_m4_divert, m4_divert, m4_divert_push)
(m4_divert_pop): here.
* acgeneral.m4: Adjust to use only the M4sugar macros.
Nevertheless...
(AC_DIVERT_PUSH, AC_DIVERT_POP): New wrappers around the M4sugar
macros.
(_AC_DIVERT(...)): Rename all the diversions names as...
(_m4_divert(...)): these.
2000-10-30 19:01:24 +00:00
Pavel Roskin
acf30e3fb0
* m4sh.m4 (AS_EXIT): New macro that exits and makes sure that $?
...
is set correctly within the exit trap.
(AS_TMPDIR): Use it.
* acgeneral.m4 (AC_MSG_ERROR): Likewise,
2000-10-30 12:29:36 +00:00
Pavel Roskin
c27f9181bd
* acgeneral.m4 (AC_CHECK_TOOL): Set VARIABLE also when using the
...
cache. From Jim Meyering.
(AC_PATH_TOOL): Likewise.
2000-10-30 04:04:18 +00:00
Pavel Roskin
03bbc0e52b
* tests/atgeneral.m4 (AT_CHECK): Warn if the expected exit status
...
is different from what we got. Don't preserve exit status other
than 77.
2000-10-30 03:24:44 +00:00
Pavel Roskin
733ac61725
* acgeneral.m4 (_AC_INIT_PREPARE): Don't use a newline before
...
accessing $? - newlines in "trap" reset $? to 0 on FreeBSD 4.0.
2000-10-30 00:59:45 +00:00
Jim Meyering
82f51be8e4
(AC_MSG_WARN): Now that this macro expands to
...
two stmts, enclose them in `{' ... `}'.
2000-10-29 19:43:53 +00:00
Pavel Roskin
3ab42e94a3
* aclang.m4 (AC_REQUIRE_CPP): Don't default to C++ - call AC_FATAL
...
for unsupported languages.
2000-10-28 16:33:19 +00:00
Pavel Roskin
599b982dbd
* acfunctions.m4 (AC_FUNC_MMAP): Remove conftestmmap from the
...
shell, not from the test program.
2000-10-27 23:10:18 +00:00
Akim Demaille
5ec791a2d5
* shell.m4: Rename as...
...
* m4sh.m4: this.
* tests/m4sugar.m4, tests/shell.m4, tests/torture.m4: Rename as...
* tests/m4sugar.at, tests/m4sh.at, tests/torture.at: these.
* tests/semantics.m4, tests/base.m4, tests/suite.m4: Rename as...
* tests/semantics.at, tests/base.at, tests/suite.at: these.
* tests/tools.m4, tests/update.m4, tests/syntax.m4: Rename as...
* tests/tools.at, tests/update.at, tests/syntax.at: these.
* tests/mktests.sh: Adjust the output file names.
2000-10-26 09:52:34 +00:00
Akim Demaille
a14a5e7ca5
Move the Autoconf independent shell macros into the file
...
`shell.m4' and the name space `AS_*'.
* acgeneral.m4 (AC_SHELL_IFELSE, _AC_SHELL_TMPDIR, AC_SHELL_UNSET)
(AC_SHELL_MKDIR_P, AC_SHELL_DIRNAME): Rename and move to...
* shell.m4 (AS_IFELSE, AS_TMPDIR, AS_UNSET, AS_MKDIR_P)
(AS_DIRNAME): here, a new file.
Adjust all dependencies.
* tests/base.m4 (m4_wrap): Eve out into...
* tests/shell.m4: here, new file.
* tests/base.m4 (AC_SHELL_MKDIR_P)
(AC_SHELL_DIRNAME & AC_SHELL_DIRNAME_SED): Eve out into...
* tests/m4sugar.m4 (AS_MKDIR_P, AS_DIRNAME & AS_DIRNAME_SED):
here, new file.
Adjust the test suite.
2000-10-25 17:51:10 +00:00
Akim Demaille
35853557ac
* acgeneral.m4 (AC_SHELL_DIRNAME): Split its code into...
...
(AC_SHELL_DIRNAME_EXPR, AC_SHELL_DIRNAME_SED): these new macros.
* tests/base.m4 (AC_SHELL_DIRNAME & AC_SHELL_DIRNAME_SED): New
test.
2000-10-25 15:04:29 +00:00
Akim Demaille
27366d34e5
* acgeneral.m4 (AC_SHELL_DIRNAME): The sed fall back was producing
...
twice the output for it was not using `-n' and used `p'. Remove
the latter.
2000-10-25 10:25:15 +00:00
Akim Demaille
1cc2c50bf6
* acgeneral.m4 (_AC_INIT_PREPARE_FDS): Give some information on
...
the host in config.log.
2000-10-25 09:14:22 +00:00
Pavel Roskin
be4dbe29de
* acgeneral.m4 (_AC_CACHE_DUMP): Add a missing separator for sed
...
commands.
2000-10-24 19:24:40 +00:00
Akim Demaille
4bf20a4eb1
* acgeneral.m4 (AT_FILE_DEPENDENCY): Rename as...
...
(AC_FILE_DEPENDENCY_TRACE): this.
2000-10-24 18:39:06 +00:00
Akim Demaille
b60b89ed66
* m4sugar.m4: (m4_tolower, m4_toupper): New macros.
...
* acgeneral.m4 (AC_PREFIX_PROGRAM): Use m4_toupper().
* aclang.m4 (AC_F77_FUNC): Use m4_toupper()/m4_tolower().
2000-10-24 17:25:18 +00:00
Pavel Roskin
a2f945e4c0
* m4sugar.m4 (m4_quote): Comment change.
2000-10-24 17:03:41 +00:00