Commit Graph

1745 Commits

Author SHA1 Message Date
Akim Demaille
1708332550 autoconf --trace' dies on filenames with :'.
Reported by Mark Elbrecht.

* autoconf.sh <trace> (trace2m4.sed): Use `..*' instead of
`[^:][^:]*' to catch file names.  The rest of regex is probably
precise enough to avoid incorrect parsing.
2000-06-09 10:02:19 +00:00
Akim Demaille
7f448b314c Formatting changes. 2000-06-09 10:00:36 +00:00
Akim Demaille
acc29d58f3 * acspecific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE): Always initialize
$3 to no
2000-06-09 08:22:37 +00:00
Akim Demaille
3a6a9bb4f3 Import AC_SYS_LARGEFILE from largefile.m4 serial 12.
* acspecific.m4 (AC_SYS_LARGEFILE, _AC_SYS_LARGEFILE_MACRO_VALUE,
_AC_SYS_LARGEFILE_SOURCE): New.
* doc/autoconf.texi (System Services): Document AC_SYS_LARGEFILE.
2000-06-08 12:07:14 +00:00
Akim Demaille
a003cd1963 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Don't override FLIBS if
specified by the user.
Fix a bug: use the cached value to set FLIBS.
2000-06-08 08:23:30 +00:00
Akim Demaille
2a4ccaeb3f * aclang.m4 (AC_PROG_F77): Check for f95 and fc too. 2000-06-07 13:25:54 +00:00
Akim Demaille
1740faf5e0 `foo=1 foo=2 cmd' has an undefined behavior.
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Do not put two shell
variable assignments in one shell command.
* doc/autoconf.texi (Shell Substitutions): Document.
2000-06-07 11:57:11 +00:00
Akim Demaille
6802267be2 More about test -e. 2000-06-07 10:39:37 +00:00
Akim Demaille
3454da33b5 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fix problem on Cray due to
confusion from the link command getting echoed in quotes.  In the
future, a more general fix for quoted arguments with spaces might
be better.
2000-06-07 07:16:15 +00:00
Akim Demaille
e54d5fae47 * doc/autoconf.texi (Limitations of Builtins): More on `test' and
`case'.
Some on `if' and `break'.
2000-06-07 07:07:39 +00:00
Akim Demaille
9e00d56625 * acspecific.m4 (_AC_PATH_X_DIRECT): Include `X11/Intrinsic.h'
when trying to use `XtMalloc' to actually have a chance of
succeeding.
2000-06-07 07:07:01 +00:00
Akim Demaille
b1a16bbee3 Hard (code) X.
* acspecific.m4 (_AC_PATH_X_DIRECT): Hard code `X11/Intrinsic.h'
instead of using `ac_x_direct_test_include', likewise for `Xt' and
`ac_x_direct_test_lib', `XtMalloc' and
`ac_x_direct_test_function'.
2000-06-07 07:02:26 +00:00
Akim Demaille
4f77fd56b9 * acspecific.m4 (AC_PATH_X): Use AC_DIVERT.
Use `no', not `NO' for ac_x_includes and ac_x_libraries.
Adjust dependencies.
(_AC_PATH_X_DIRECT): Introduce ac_x_header_dirs to factor the list
of places where headers and libs might be.
(AC_PATH_XTRA): Don't quote the argument of `case'.
2000-06-07 07:00:07 +00:00
Akim Demaille
695e246c9c * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Put the expansion of
AC_LIST_LINKS in an unquoted `here'-document.
2000-06-07 06:57:51 +00:00
Akim Demaille
5407be557f * tests/aclocal.m4 (AC_ENV_SAVE): Skip `no_x'.
From Mark Elbrecht.
2000-06-06 17:00:46 +00:00
Akim Demaille
92da78474f * acgeneral.m4 (_AC_INIT_PARSE_ARGS): Move the setting
of ac_tool_prefix before the call to AC_DIVERT_POP.
2000-06-05 16:05:49 +00:00
Akim Demaille
d293db9198 TODO: less pressure on 2.50. 2000-06-05 13:30:07 +00:00
Akim Demaille
0d2a305062 TODO: less pressure on 2.50. 2000-06-05 12:45:53 +00:00
Akim Demaille
68f49517d3 * acgeneral.m4 (AC_CHECK_TOOL_PREFIX): AU define it.
Suggested by Mo DeJong.
2000-06-05 10:04:15 +00:00
Akim Demaille
b7c676e580 * aclang.m4 (AC_C_CHAR_UNSIGNED): Use the new compiler-test
technology so that we can do the test via compilations only.  Also
use (char) -1 instead of (char) 255 to check if char is unsigned.
2000-06-05 10:00:41 +00:00
Akim Demaille
1325e5e134 Update TODO. 2000-06-05 09:54:00 +00:00
Jim Meyering
87ebdba1db fix typo 2000-06-02 12:41:18 +00:00
Jim Meyering
8d425b4c24 (AC_FUNC_STRERROR_R): Call strerror_r with 2nd arg
of type char*, not int.  Suggestion from Paul Eggert.
2000-05-28 16:27:56 +00:00
Jim Meyering
4928d32db9 . 2000-05-28 16:21:08 +00:00
Jim Meyering
df024c75d9 . 2000-05-28 16:18:49 +00:00
Jim Meyering
53df5fb033 (Particular Functions): Give better description of
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.  From Paul Eggert.
2000-05-28 16:18:40 +00:00
Akim Demaille
e037ade604 * doc/autoconf.texi (Limitations of Usual Tools): Document `ln -s'
on DJGPP, based on the comments from Mark Elbrecht.
2000-05-26 18:16:46 +00:00
Akim Demaille
66262a6fb1 * autoreconf.sh (autoconf, autoheader): Be more conscientious when
looking for the executable.
* autoupdate.sh: Likewise.
* autoheader.sh: Likewise.
Suggested by Alexandre Oliva.
2000-05-26 18:09:43 +00:00
Akim Demaille
1b6f086514 Thanks to --program-transform-name, `autoconf' might be install as
`yo-man-i-am-the-all-mighty-AVt0c0nF-eh-eh'.  But when
`yo-man-i-am-the-all-mighty-AVt0h3Ad3R-eh-eh' and the other tools
want to trace, they might stupidly invoke the program named
`autoconf' instead.  Pfff, stupid scripts :)

* Makefile.am (editsh): Transfer the names of the install
`autoconf' and `autoheader'.
* autoconf.sh: Add a missing period at the end of the comment
# Parse command line
Make sure to have a ChangeLog much longer than the patch.
* autoheader.sh: Use the right `autoconf'.
* autoupdate.sh: Likewise.
* autoreconf.sh: Likewise, and for `autoheader' too.
Simplify the handling of localdir and AC_MACRODIR.
* ifnames.sh: Formatting changes.
2000-05-26 17:45:10 +00:00
Akim Demaille
89289ce2e2 Don't use f2c as a possible Fortran compiler, since by itself it
cannot produce object code.

* aclang.m4 (AC_PROG_F77): Remove f2c from the search list.
* doc/autoconf.texi: Excise mentions of f2c in AC_PROG_F77 docs.
2000-05-26 17:30:07 +00:00
Akim Demaille
36a549b7ac Currently, AC_PROG_LN_S incorrectly reports yes with DJGPP. This
is because the DJGPP `ln' emulates soft links for executables by
generating a stub that in turn calls the real program.  This
feature also works with nonexistent files like in the Unix
spec. So `ln -s X conftestdata' will generate `conftestdata.exe'
which will attempt to call 'X.exe'. But this feature only works
for executables.  Fix it.

* acspecific.m4 (AC_PROG_LN_S): Create a sample file and use it to
test `ln -s'.
2000-05-26 17:27:24 +00:00
Akim Demaille
0e26510db8 Fix the archive: some parts of the following patches were missing:
- CC < aCC
- unquote the argument of case
- AC_FUNC_STRERROR_R
- AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
- typos in autoconf.texi
2000-05-26 17:12:01 +00:00
Akim Demaille
a5e8bcee17 * aclang.m4 (AC_PROG_CXX): Look for aCC before CC. 2000-05-26 16:01:46 +00:00
Akim Demaille
7ec26d2da4 * acspecific.m4 (AC_FUNC_STRERROR_R): New, from `strerror_r.m4',
serial 2, by Jim Meyering.
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New, from
`lstat-slash.m4', serial 1, by Jim Meyering.
* acfunctions: Adjust.
2000-05-26 15:59:19 +00:00
Akim Demaille
b2ec218aa8 * acgeneral.m4 (AC_CHECK_TOOLS): Don't require
AC_CHECK_TOOL_PREFIX, it's dead.
2000-05-26 15:50:04 +00:00
Akim Demaille
ab2250c3b1 * acgeneral.m4 (AC_CHECK_TOOLS): Don't require
AC_CHECK_TOOL_PREFIX, it's dead.
2000-05-26 15:04:33 +00:00
Akim Demaille
3601ac7706 * acgeneral.m4: Simplify all the
case "$switch" in
into
case $switch in
* acspecific.m4: Likewise.
* aclang.m4: Likewise.
2000-05-26 15:02:42 +00:00
Akim Demaille
ddd3ea4c14 Typos in documentation. 2000-05-26 14:55:42 +00:00
Akim Demaille
1716e85a6a * acgeneral.m4 (AC_CHECK_TOOL_PREFIX): Remove.
Adjust dependencies.
(_AC_INIT_PARSE_ARGS): Set ac_tool_prefix.
2000-05-26 14:41:17 +00:00
Akim Demaille
8edeaa522c In info', it is easier to type autoconf <TAB>' to reach the list
of options, that `Invoking autoc<TAB>'.

* doc/autoconf.texi: s/Invoking foo/foo Invocation/.
2000-05-26 14:38:15 +00:00
Akim Demaille
76f1dd675c Merge Upgrading' and Obsolete Constructs' together.
* doc/autoconf.texi (Obsolete Constructs): Move right after
`Recreation a Configuration.
(Invoking autoupdate): Be a subsection of
`Obsolete Constructs'.
(Upgrading): Demote from chapter to section.
Be a section of `Obsolete Constructs'.
Rename as `Autoconf 1'.
2000-05-26 14:34:21 +00:00
Akim Demaille
ca10061659 Find a means to extract integers from the compiler.
Use this technology to compute `sizeof' even when cross-compiling.
Ideas and initial suggestion by Kaveh Ghazi.
Binary search by Bruno Haible.

* aclang.m4 (AC_LANG_BOOL_COMPILE_TRY,
AC_LANG_BOOL_COMPILE_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C++),
AC_LANG_INT_SAVE, AC_LANG_INT_SAVE(C), AC_LANG_INT_SAVE(C++)): New
macros.
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE, _AC_COMPUTE_INT_RUN,
_AC_COMPUTE_INT): New.
(AC_CHECK_SIZEOF): Use them.
Check whether the type exists beforehand.
* tests/semantics.m4 (AC_CHECK_SIZEOF): Strengthen.
2000-05-26 11:33:54 +00:00
Akim Demaille
3bfdd156e9 * aclang.m4 (AC_PROG_CXX): Look for aCC KCC RCC xlC_r xlC.
s/c++ g++/g++ c++/.
* doc/autoconf.texi (Compilers and Preprocessors): Adjust.
2000-05-26 09:42:13 +00:00
Akim Demaille
aa8bef1fcd No library nor special privilege is needed to run `getloadavg'
under FreeBSD.
Reported by Alec Wolman.

* acspecific.m4 (AC_FUNC_GETLOADAVG): Check for `getloadavg'
without any additional library.
Fixes Autoconf/109.
2000-05-26 08:37:38 +00:00
Akim Demaille
c7c08f2cca * doc/autoconf.texi (Limitations of Usual Tools, Limitations of
Builtins): Integrate comments from Paul Eggert and Jim Meyering.
Add the sed limitation discovered by Philippe De Muyter.
Typo from Pavel Roskin.
2000-05-26 08:32:45 +00:00
Akim Demaille
b991f500dd The test suite needs GNU m4.
Reported by Bob Friesenhahn.

* tests/atconfig.in (M4): Set it.
* tests/base.m4: Use it.
2000-05-25 16:37:12 +00:00
Akim Demaille
52498c9c04 Update `missing'. 2000-05-25 16:31:12 +00:00
Akim Demaille
4b4a6c26f8 Regenerate configure. 2000-05-25 10:16:22 +00:00
Akim Demaille
ee5618d3ca * acgeneral.m4 (_AC_INIT_PARSE_ARGS): Don't use negated character
classes with `case'.  Use `expr' instead.
Suggested by Paul Eggert.
* doc/autoconf.texi (Limitations of Builtins): Explain expr, the
`x' trick, and negated character classes.
2000-05-25 07:49:39 +00:00
Akim Demaille
d0db3efeb0 Fix the ChangeLog. 2000-05-24 16:47:51 +00:00