Commit Graph

1701 Commits

Author SHA1 Message Date
Akim Demaille
7207ae0d7b * aclang.m4: Promote s,,, over s%%%, and sed prog' over sed -e
prog'.
* acgeneral.m4: Likewise.
* acspecific.m4: Likewise.
* doc/autoconf.texi (Limitations of Usual Tools, Coding Style):
Likewise.
2000-07-10 08:43:55 +00:00
Akim Demaille
821185fa6b * autoconf.sh: When using `mktemp -d', be sure that the directory
was created.
* autoheader.sh: Likewise.
* autoreconf.sh: Likewise.
2000-07-10 08:41:59 +00:00
Akim Demaille
a552efe71f * AUTHORS: Update.
* doc/autoconf.texi: Free Franc,ois Pinard from iftex and ifinfo,
use @,c.
Don't use `@code{m4}' when you mean M4, just as you shall not say
`@code{cc}' when you refer to the C language.
2000-07-10 08:40:27 +00:00
Akim Demaille
0701d615f0 * aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77)): Set
ac_gnu_compiler.
(_AC_PROG_CC_GNU, _AC_PROG_CXX_GNU, _AC_PROG_F77_GNU): Compute
ac_gnu_compiler.
* acgeneral.m4 (AC_LINKER_OPTION): Adjust.
2000-07-10 08:38:51 +00:00
Akim Demaille
af1c300b51 * aclang.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Move the code
processing the result of AC_PROG_CC_G, AC_PROG_CXX_G, and
AC_PROG_F77_G into them.
2000-07-10 08:34:42 +00:00
Akim Demaille
4be24873bc * doc/autoconf.texi (Multiple Cases, Quotation Rule Of Thumb):
Follow the coding style.
2000-07-10 08:33:19 +00:00
Akim Demaille
00ab485483 * doc/autoconf.texi (Obsoleting Macros): Is not a subsection of
`Dependencies Between Macros', but rather a section of `Writing
Macros'.
2000-07-10 08:31:44 +00:00
Akim Demaille
e1b43b37d6 * doc/autoconf.texi (Coding Style): New node. 2000-07-10 08:21:04 +00:00
Akim Demaille
49aca2a4b8 * acgeneral.m4 (AC_SHELL_MKDIR_P): s/ac_dir/ac_mkdir_dir/ to avoid
clashes with the numerous ac_dir loops.
Reported by Lars J. Aas.
2000-07-07 17:46:36 +00:00
Akim Demaille
6147495f68 * acgeneral.m4 (_AC_SHELL_DIRNAME): Return .', not ' when there
is no directory part.
2000-07-07 17:33:16 +00:00
Akim Demaille
42944c4fc3 * tests/atgeneral.m4 (AT_CHECK): Fix a redirection problem. 2000-07-07 12:56:02 +00:00
Akim Demaille
a90ca1c7e6 AC_REVISION must not AC_REQUIRE AC_INIT, it leaves the diversions
in a messy state.  Don't even try to emulate AC_REQUIRE: just
introduce a diversion just for AC_REVISION, and let the magic
happen.
Fixes Autoconf PR/134, from Raja R Harinath.

* acgeneral.m4 (_AC_DIVERT(REVISION)): New diversion.
(AC_REVISION): Don't require AC_INIT, dump in your diversion.
(_AC_INIT): Delete, inline its body in...
(AC_INIT): here.
(_AC_INIT_NOTICE, _AC_INIT_COPYRIGHT): New macros so that...
(AC_INIT): be more uniform.
(AC_INIT, AC_REVISION, AC_COPYRIGHT): `define', don't AC_DEFUN.
2000-07-07 10:54:01 +00:00
Akim Demaille
6a1acb0259 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Keep -lm, if a Fortran
compiler needs it, it is likely to be required when linking C/C++
with Fortran.
<-YP,*>: Fix the list of arguments to loop on.
Don't mess with the user variable name space.
<ac_ld_run_path>: Prepend LD_RUN_PATH directories with -R only
when running Solaris (without this, link errors occur).
2000-07-07 08:49:18 +00:00
Akim Demaille
b4b289240f * acgeneral.m4 (_AC_SHELL_DIRNAME): Fix quotation. 2000-07-06 16:38:31 +00:00
Akim Demaille
97fa225099 * aclang.m4: Formatting and quotations changes. 2000-07-06 13:47:04 +00:00
Akim Demaille
a4a9bf06b4 * aclang.m4 (AC_LANG_INT_SAVE(C++)): Be a copy of
AC_LANG_INT_SAVE(C), not AC_LANG_INT_SAVE_TRY(C).
Fixes Autoconf PR/133.
2000-07-06 13:19:19 +00:00
Akim Demaille
9800adfd91 * acgeneral.m4 (_AC_INIT_PARSE_ARGS, AC_CHECK_TOOLS): Change
warning message printed when only --host is given. Fix printing
of multiple compiler cache values, use PATH argument.
* aclang.m4 (AC_LANG_COMPILER_WORKS): Print the cross compile
status, fix problem where two results were printed at once.
2000-07-06 13:05:47 +00:00
Akim Demaille
8454082257 Typos in ChangeLog. 2000-07-06 12:39:42 +00:00
Akim Demaille
fd5cc154fa * acgeneral.m4 (_AC_SHELL_TMPDIR): Typo. 2000-07-06 11:54:28 +00:00
Akim Demaille
5ba9d8b0b7 * acgeneral.m4 (_AC_SHELL_DIRNAME): Behave properly when the
argument is a dir with trailing slashes, and when its depth is
just one (`/tmp').
2000-07-06 11:25:26 +00:00
Akim Demaille
abea5f9fc9 * acgeneral.m4 (_AC_SHELL_DIRNAME): New macro.
(_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS):
Use _AC_SHELL_DIRNAME.
2000-07-06 08:57:37 +00:00
Akim Demaille
8663df506b * aclang.m4 (AC_PROG_F77): Add two compilers,
lf95 (Lahey/Fujitsu Fortran) and pgf77 (Portland Group Fortran)
(_AC_PROG_F77_G): Some Fortran compilers produce stdout/stderr
output even if no errors occur - check exit status rather than
output.
2000-07-06 08:03:55 +00:00
Akim Demaille
c50f5b336c * acgeneral.m4 (_AC_SHELL_TMPDIR): When using `mktemp -d', be sure
that the directory was created: under Ultrix 4.3 it just returns
a name, but does not create the directory.
Reported by Christian Krackowizer.
2000-07-05 16:01:57 +00:00
Akim Demaille
9f1999bf1e * acgeneral.m4 (AC_SHELL_MKDIR_P): New macro.
(_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS,
AC_PROG_INSTALL): Use AC_SHELL_MKDIR_P.
* tests/base.m4 (AC_SHELL_MKDIR_P): Test it.
2000-07-04 18:20:05 +00:00
Akim Demaille
dc6d1f912a * acgeneral.m4 (AC_CACHE_LOAD): Be ready to read the cache even
when `.' is not in the PATH.
* doc/install.texi (configure Invocation): Adjust.
2000-07-04 10:34:21 +00:00
Akim Demaille
2e1fabcd1b * acgeneral.m4 (_AC_INIT_PARSE_ARGS) <-C>: Use `./config.cache', not
`config.cache'.
* doc/install.texi (configure Invocation): Adjust.
2000-07-03 10:41:30 +00:00
Jim Meyering
188cec3470 (AC_REQUIRE): Tweak a diagnostic. 2000-06-30 13:54:14 +00:00
Jim Meyering
46b0a9010a . 2000-06-30 13:53:48 +00:00
Akim Demaille
cb2e761b8e Re-enable the old behavior of --host and --build.
* acgeneral.m4 (build_alias): Set to host_alias if --build is not
given but --host is, and enable cross-compile auto-detection.  If
both are, and are different, enable cross compilation.
(AC_CANONICAL_HOST): Adjust help message.
(cross_compiling): Enclose in quotes when testing.
* aclang.m4 (_AC_LANG_COMPILER_WORKS): If cross_compiling is
maybe, set it to yes or no depending on the result of the
execution test.
* doc/autoconf.texi: Document the change.
* doc/install.texi: Likewise.
2000-06-30 13:34:37 +00:00
Jim Meyering
7a02111aa3 . 2000-06-27 20:21:18 +00:00
Jim Meyering
7763c2db35 (_AC_LIBOBJ_GETLOADAVG): Put quotes around use of
`$ac_cv_lib_elf_elf_begin', since that variable may not be defined.
From Volker Borchert.
2000-06-27 20:21:04 +00:00
Akim Demaille
4064de46f6 * doc/autoconf.texi: Fix various typos.
(Limitations of Usual Tools) <sed>: Anchors and groups.
(Language Choice): Don't mention cross_compiling here, do it...
(Specifying Names) <--host>: here.
(Obsoleting Macros): Don't document AC_DEFUNCT, it's going to be
removed anyway, obsoleted itself by AU_DEFUN.
2000-06-27 10:31:05 +00:00
Akim Demaille
4c8b976769 * acgeneral.m4 (AC_CACHE_VAL): Swap the arguments of `regexp'.
Reported by Alexandre Oliva.
2000-06-26 10:57:46 +00:00
Akim Demaille
94939fa6c1 * autoreconf.sh (automake, aclocal): New variables. Import
$AUTOMAKE and $ACLOCAL.
Pass --verbose to the tools.
Avoid using plenty of variables, just append to existing
variables.
* doc/autoconf.texi: List options in the order --help, --version,
--verbose, --debug, and then specific options.
2000-06-26 10:51:17 +00:00
Akim Demaille
920cfbf4f5 * doc/autoconf.texi: Various Texinfo adjustments.
(Specifying Names): When describing the system triplets, use the
same names as the shell variables.
(System Type Variables): Delete, merge its content into...
(Canonicalizing): here.
Clarify the difference between the `foo_target' and `foo'
variables.
2000-06-26 10:34:24 +00:00
Akim Demaille
56dd3a5eef * acgeneral.m4 (_AC_INIT_PARSE_ARGS, _AC_OUTPUT_CONFIG_STATUS):
s/echo | sed/expr/.
2000-06-26 10:21:29 +00:00
Akim Demaille
8b3a0fbaae * acgeneral.m4 (AC_CONFIG_LINKS, AC_CONFIG_HEADERS,
AC_CONFIG_COMMANDS, AC_CONFIG_FILES): Use a shell variable instead
of an m4 variable to store what must be done, so that sh
conditionals are honored.
(_AC_OUTPUT_LINKS, _AC_OUTPUT_HEADERS,
_AC_OUTPUT_COMMANDS, _AC_OUTPUT_FILES): Adjust.
* tests/semantics.m4: Test the four AC_CONFIG sisters.
* doc/autoconf.texi (Configuration Actions): Promote the use of
literals, show it works properly with sh conditionals.
2000-06-26 10:20:36 +00:00
Akim Demaille
99f2a140ad * acgeneral.m4 (AC_CACHE_VAL): Too many people put AC_DEFINE in
the commands-to-set-it part of it.  Give them a warning.
2000-06-26 09:08:13 +00:00
Akim Demaille
2fb7171a77 * doc/autoconf.texi (Prerequisite Macros): More about AC_REQUIRE. 2000-06-26 09:07:36 +00:00
Akim Demaille
370a30d643 Given better names to the diversions.
* acgeneral.m4 (_AC_DIVERT(NORMAL_2), _AC_DIVERT(NORMAL_3),
_AC_DIVERT(NORMAL_4)): Delete, unused.
(_AC_DIVERT(NORMAL_1), _AC_DIVERT(NORMAL), AC_DIVERT_DIVERSION):
Rename as _AC_DIVERT(PREPARE), _AC_DIVERT(BODY),
_AC_DIVERT_DIVERSION.
2000-06-26 09:06:50 +00:00
Akim Demaille
12e3a8ea6e The current implementation of AC_REQUIRE fails on
| AC_DEFUN([TEST1],  [REQUIRE([TEST2a])REQUIRE([TEST2b])])
| AC_DEFUN([TEST2a], [])
| AC_DEFUN([TEST2b], [REQUIRE([TEST3])])
| AC_DEFUN([TEST3],  [REQUIRE([TEST2a])])
|
| AC_INIT
| TEST1

because it produces TEST3; TEST2a; TEST2b; TEST1.
Fix this bug, implement the solution provided by Axel Thimm,
and test AC_REQUIRE.

* acgeneral.m4: Document this implementation.
(_AC_DEFUN_PRO, _AC_DEFUN_EPI, AC_REQUIRE): Be sure that macros
are emitted in the same order as they are expanded.
(AC_REQUIRE): Forbid being calling out of an AC_DEFUN'd	macro (in
particular the top level).
* tests/base.m4 (AC_REQUIRE): New test.
2000-06-26 09:06:02 +00:00
Akim Demaille
439ddf9140 A macro which is not defined with AC_DEFUN should not be
AC_REQUIRE'd, since it doesn't AC_PROVIDE itself.

* acgeneral.m4 (AC_REQUIRE): Issue a warning when after expansion,
the macro is not AC_PROVIDE'd.
2000-06-26 09:04:40 +00:00
Akim Demaille
ef0391870c Various cleanups.
* acgeneral.m4 (AC_PRO, AC_EPI): Rename as _AC_DEFUN_PRO and
_AC_DEFUN_EPI.
Adjust dependencies.
(AC_DEFUN): Remove the not-to-be-released specializing mechanism.
(AC_SPECIALIZE): Remove for the same reasons.
Adjust dependencies.
(_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS, _AC_INIT_VERSION,
_AC_INIT_PREPARE, _AC_CANONICAL_SPLIT, _AC_CHECK_TYPE_NEW,
_AC_CHECK_TYPE_OLD): Define via `define' instead of `AC_DEFUN':
they are not related to AC_REQUIRE in any way.
* acspecific.m4 (AC_PROG_ECHO, _AC_DECL_YYTEXT, _AC_PATH_X_XMKMF,
_AC_PATH_X_DIRECT): Define via `define' instead of `AC_DEFUN'.
2000-06-26 09:03:15 +00:00
Akim Demaille
05bf3247cc * acgeneral.m4 (AC_CHECK_TOOL): Use two variables in order to
avoid cache variable conflicts between AC_CHECK_PROG invocations.
(AC_PATH_TOOL): Fix same bugs as in 6/9/00 fixes to AC_CHECK_TOOL.
Pass correct arguments to AC_CHECK_PATH (different from
AC_CHECK_PROG).  Use AC_CHECK_PATH cache variable, not
AC_CHECK_PROG var, and use two variables for two invocations as
above.  Quote AC_CHECK_* args.
2000-06-19 10:18:31 +00:00
Akim Demaille
27ad8629e3 The test suite reveals AC_OUTPUT_MAKE_DEFS fails on RISC/OS.
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS) <confdef2opt.sed>: Reset the
t flag between each cycle.
* doc/autoconf.texi (Limitations of Usual Tools): Some about the t
flag in sed.
2000-06-16 17:40:44 +00:00
Akim Demaille
32fbc9ac9d * acspecific.m4 (AC_EXEEXT, AC_OBJEXT): Don't obsolete them, let
them be empty, so that Automake still provide support for $(EXEEXT).
2000-06-16 15:49:39 +00:00
Akim Demaille
f3ace9be03 * autoconf.sh (option handling): Give a more understandable
message when an option is missing its argument.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* autoheader.sh: Likewise.
2000-06-15 11:33:04 +00:00
Akim Demaille
f5a508569f `./config.status -d' is buggy.
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Remove the `shift' in
--debug.
* doc/autoconf.texi (Limitations of Builtins): Some about shift.
2000-06-13 14:56:23 +00:00
Akim Demaille
aba5d82395 Typos in ChangeLog. 2000-06-13 10:33:49 +00:00
Akim Demaille
e58a86307d Typos in ChangeLog. 2000-06-13 09:42:49 +00:00