Commit Graph

395 Commits

Author SHA1 Message Date
Akim Demaille
3e8c1e1c54 1999-10-31 Akim Demaille <akim@epita.fr>
Create AC_CONFIG_HEADERS which has the same interface as the other
	AC_CONFIG_*S.

	* acgeneral.m4 (AC_CONFIG_HEADERS): New macro, with the same
	interface as AC_CONFIG_LINKS and AC_CONFIG_FILES.
	(AC_LIST_HEADERS_COMMANDS): New growing string, initialize it.
	(AC_CONFIG_HEADER): Rename as...
	(AC_CONFIG_HEADERS): this, for consistency.
	(AC_CONFIG_HEADER): New macro, which calls AC_OUTPUT_HEADERS.
	(AC_OUTPUT_HEADERS): The square brackets for sed and grep were
	not properly quoted: use @BKL@ and @BKR@.
	(AC_OUTPUT_HEADERS): Run the AC_LIST_HEADERS_COMMANDS.

	* acgeneral.m4 (AC_OUTPUT): Once config.status created, before
	running it, trap to `exit 1' so that config.status is not removed
	if configure is interrupted when config.status is complete.

	* acgeneral.m4 (AC_OUTPUT_CONFIG_STATUS): When recognizing
	arguments, accept only foo, and no longer foo:foo.in etc.
1999-12-20 13:54:46 +00:00
Akim Demaille
94c8403019 1999-10-31 Akim Demaille <akim@epita.fr>
* acgeneral.m4: Formating changes.
1999-12-20 13:52:57 +00:00
Akim Demaille
85a66b1acb 1999-10-31 Akim Demaille <akim@epita.fr>
config.status: Speed up the creation of config headers (about four
 	times faster on Linux).

	* acgeneral.m4 (AC_OUTPUT_HEADERS): Remove the ac_e
	family.
	Changed ac_uD and ac_dD to `...;t t', instead of `...g'.
	Instead of creating `conftest.vals' with both ac_e, ac_d,
	and ac_u family, preprocess to strip the trailing spaces, and
	create `conftest.defines' with the ac_d family, and then
	`conftest.undefs' for the ac_e family.
	Break up both `conftest.defines' and `conftest.undefs'.  Insert a
 	top label and a global test for `#defines' and `#undef' before.
	Call `conftest.defines' if there are #define in the input.
	Call `conftest.undefs'.
1999-12-20 13:48:32 +00:00
Akim Demaille
9259e5bc53 1999-10-31 Akim Demaille <akim@epita.fr>
* acgeneral.m4: Prefer `>file' over `> file' etc.
	* acspecific.m4: Likewise.
1999-12-20 13:45:45 +00:00
Akim Demaille
ed0f9a6d4e 1999-10-31 Akim Demaille <akim@epita.fr>
Rename the family AC_NEED_DECL as AC_CHECK: it is more uniform,
	but keep defining NEED_FOO_DECL when `foo' is not declared.  Files
	not using Autoconf behave better when declarations lacks than when
	they are wrong.  So the unset position should off, hence #if NEEDS
	instead of #if !HAVE (which is triggered when HAVE is not set).

	* acgeneral.m4 (AC_NEED_DECL): Renamed as...
	(AC_CHECK_DECL): This.  Make sure the arguments are the usual
	IF-FOUND, IF-NOT-FOUND.
	(AC_NEED_DECLS, AC_CHECK_DECLS): Likewise.
	* autoconf.texi (Generic Declarations): Document the changes
 	aforementioned.
	* autoheader.m4 (AH_NEED_DECLS): Renamed as
	(AH_CHECK_DECLS): This.
	(AH_HOOKS): Hook AH_CHECK_DECLS on AC_CHECK_DECLS instead of
	_NEED_.
1999-12-20 13:40:18 +00:00
Akim Demaille
7d74895243 1999-10-31 Akim Demaille <akim@epita.fr>
Revamp the handling of the arguments of config.status: instead of
	looping over config_files etc. to recognize the file names, use
	the case which handles the options.
	Suggested by Alexandre Oliva.

	* acgeneral.m4 (ifset): Renamed as...
	(ifval): This.  All callers changed.
	(ifset): New macro, which tests if a macro is set to a non empty
	value.

	* acgeneral.m4: Initialize growing lists and strings to empty, to
	ease the tests.
	(AC_CONFIG_HEADER): Quote AC_LIST_HEADERS in the define, to handle
	the case AC_LIST_HEADERS is initialized.

	* acgeneral.m4: (AC_OUTPUT_CONFIG_STATUS): New macro, pulled out
	from...
	(AC_OUTPUT): Instead of using $1, $2 and $3, pass them to the
	official macros (AC_CONFIG_FILES, AC_OUTPUT_COMMANTS).
	Call AC_OUTPUT_CONFIG_STATUS.
	(option handling): Use the case-esac to recognize arguments.
	(AC_OUTPUT_COMMANDS): Fix the missing fi;done.
1999-12-20 13:37:12 +00:00
Akim Demaille
627fdb329b 1999-10-31 Akim Demaille <akim@epita.fr>
Add a means to specify commands to be run by config.status.  At
	the difference of AC_OUTPUT_COMMANDS, require that the set of
	commands be named, so that both
		CONFIG_COMMANDS=foo ./config.status
	and
		./config.status foo
	perform the Right Thing.

	* acgeneral.m4 (AC_CONFIG_UNIQUE): Also check in
	AC_LIST_COMMANDS.
	(AC_CONFIG_FILES): Remove a dead pushdef.
	(AC_CONFIG_COMMANDS): New macro.
	(AC_LIST_COMMANDS): New config list.
	(AC_LIST_COMMANDS_COMMANDS): New growing string.
	(AC_OUTPUT_COMMANDS_COMMANDS): New macro, output config commands
	in config.status.
	(AC_OUTPUT): Take AC_LIST_COMMANDS into account.
	(AC_OUTPUT): Call AC_OUTPUT_COMMANDS_COMMANDS.
1999-12-20 13:27:08 +00:00
Akim Demaille
5aa38da39b 1999-10-31 Akim Demaille <akim@epita.fr>
New macro: AC_CONFIG_FILES which is very much like AC_OUTPUT but
      that one associates commands to run when a config file is
      created.  For instance for a shell script `foo', one uses
      AC_CONFIG_FILES(foo, chmod +x foo).

      In addition, check that the same name is never used twice in
      config files, headers, subdirs and links.

      * acgeneral.m4 (m4_append): Don't insert new line between
      elements.
      (m4_list_append): New macro.
      (AC_CONFIG_IF_MEMBER): New macro which tests if a file is member
      of a config list.
      (AC_CONFIG_UNIQUE): New macro which ensures that a config file
      name is not yet used.
      (AC_CONFIG_HEADER, AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS): Use
      AC_CONFIG_UNIQUE.

      * acgeneral.m4 (AC_CONFIG_FILES): New macro.
      (AC_LIST_FILES): New list, which stores arguments of
      AC_CONFIG_LISTS the same as AC_LIST_LINKS stores AC_CONFIG_LINKS
      etc.
      (AC_OUTPUT): No longer rely on $1 to designate the config files:
      register them via AC_CONFIG_FILES.  All uses of $1 replaced by
      uses of AC_LIST_FILES.
      (AC_OUTPUT_FILES): Run the commands associated to the
      CONFIG_FILES.
1999-12-20 12:14:28 +00:00
Akim Demaille
0716d22ed3 1999-10-31 Akim Demaille <akim@epita.fr>
Provide the m4 infrastructure for defining AH_ hooks.

	* autoheader.m4 (AH_HOOK): New macro.
	Hook all the AC_ macros to their AH_siblings in AH_HOOKS.
	Run AH_HOOKS.

	* acgeneral.m4 (m4_append): New macro.
	(m4_list_append, m4_list_add): Removed.
1999-12-20 12:08:01 +00:00
Akim Demaille
93a205e8a5 1999-10-31 Akim Demaille <akim@epita.fr>
* acspecific.m4: Formating changes.
	* acgeneral.m4: Likewise.
1999-12-20 12:05:14 +00:00
Akim Demaille
71c0040e3b 1999-10-31 Akim Demaille <akim@epita.fr>
* acspecific.m4 (AC_CHECK_MEMBER, AC_CHECK_MEMBERS): New macros.
	* autoheader.m4 (AH_CHECK_MEMBERS): New macro.
	(epilogue): Hook AH_CHECK_MEMBERS on AC_CHECK_MEMBERS.
1999-12-20 12:01:55 +00:00
Ben Elliston
24dd0b0530 Document ac_max_here_line's future. From Akim. 1999-10-31 02:20:26 +00:00
Ben Elliston
cd2f3be239 1999-10-31 Ben Elliston <bje@cygnus.com>
* configure: Regenerate.
	* aclocal.m4: New generated file.
	* Makefile.in: Regenerate with Automake.
	* testsuite/Makefile.in: Likewise.

1999-10-31  Akim Demaille  <akim@epita.fr>

	Use Automake.  Based on files from Ben Elliston.

	* acgeneral.m4: No longer define AC_ACVERSION, include
 	acversion.m4.
	* acversion.m4.in: New AC_CONFIG_FILE.
	* acspecific.m4: Few formating changes.
	* autoconf.texi: No longer define EDITION, VERSION and UPDATED:
	include version.texi.
	AC_OUTPUT the Makefiles mentioned below and acversion.m4.
	* configure.in: Use AM_INIT_AUTOMAKE.
 	Do not AC_ARG_PROGRAM: AM_INIT_AUTOMAKE does it.
	* Makefile.am: New file.
	* mdate-sh: Likewise.
	* missing: Likewise.
	* testsuite/Makefile.am: Likewise.
1999-10-31 01:54:28 +00:00
Ben Elliston
c645272f5f 1999-10-31 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_PROG_CC_STDC, AC_C_PROTOTYPES): Inherit from
	Automake. From Franc,ois Pinard.
	* autoconf.texi (Particular Programs): Document AC_PROG_CC_STDC.
	(C Compiler Characteristics): Document AC_C_PROTOTYPES.
1999-10-31 00:56:04 +00:00
Ben Elliston
eda5fc6b7a 1999-10-31 Ben Elliston <bje@cygnus.com>
* testsuite/autoconf.s/defines.exp: Changed `fail' and `pass' in
	`xfail' and `xpass'. The testsuite checks that acconfig.h
	templates the AC_DEFINEs. Since we no longer rely on acconfig.h,
	the test is obsolete.
	* acspecific.m4 (AC_PROG_BINSH, AC_PROG_SED): Don't quote the name
	of the macro defined; the testsuite does not recognize this
	syntax. From Akim Demaille <akim@epita.fr>.
1999-10-31 00:03:45 +00:00
Ben Elliston
7e49021235 * Merged from the experimental branch. 1999-10-30 14:17:20 +00:00
Ben Elliston
d9409a1c3c 1999-10-16 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_PROG_CXX): gcc is not a C++ compiler.
1999-10-15 23:06:31 +00:00
Ben Elliston
d366f0548b 1999-10-02 Akim Demaille <demaille@inf.enst.fr>
* acgeneral.m4: Instead of just undefining eval, format, include
	and shift, rename them to m4_eval, etc.
1999-10-05 04:55:15 +00:00
Ben Elliston
ccaec82d1f 1999-09-29 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_FUNC_GETLOADAVG): Check for the kstat_open()
	function in libkstat (on systems such as Solaris). This family of
	functions is preferred since they don't require setgid permissions
	to use them. Fix for autoconf/65.
1999-09-29 01:03:25 +00:00
Ben Elliston
84b5651c91 1999-09-26 Ben Elliston <bje@cygnus.com>
* acgeneral.m4 (AC_OUTPUT_LINKS): Eliminate gratuitous spaces from
	$ac_sources if this variable is otherwise empty. Fix for
	autoconf/30.
1999-09-25 23:59:00 +00:00
Ben Elliston
61389970b0 1999-09-25 Ben Elliston <bje@cygnus.com>
* acgeneral.m4 (AC_LINK_FILES): Emit an error if an incorrect
	number of arguments are collected. Fix for autoconf/10.
1999-09-25 02:09:46 +00:00
Ben Elliston
f229e6327e 1999-09-24 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_HEADER_STDC): Define ISLOWER and ISUPPER
	macros correctly on EBCDIC systems. Contributed by Kurt D.
	Zeilenga <kurt@openldap.org>. Fix for autoconf/6.
1999-09-24 12:50:14 +00:00
Ben Elliston
c6fc36753a 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
* acspecific.m4 (AC_C_VOLATILE): New test.
	* acconfig.h: Add new entry for `volatile'.
	* autoconf.texi (C Compiler Characteristics): Document it.
1999-09-24 05:30:05 +00:00
Ben Elliston
26d35b5f5a 1999-09-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Fix for autoconf/28.
	* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS): Don't assume LF is \012, use
	`echo` followed by a non-blank, within quotes.
	* autoheader.sh (syms): Likewise.
	* configure: Rebuilt.
1999-09-15 04:23:15 +00:00
Ben Elliston
88c156c78f 1999-09-07 Jim Meyering <meyering@ascend.com>
* acgeneral.m4 (AC_SEARCH_LIBS): Use $ac_lib as the index, not $i.
1999-09-07 12:52:42 +00:00
Ben Elliston
c8006eedca 1999-09-06 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_FUNC_ALLOCA): Rename cache variable to avoid
	name clashes with AC_CHECK_HEADER(alloca.h).
1999-09-06 02:08:58 +00:00
Ben Elliston
2b5c3cf4e9 1999-09-05 Ben Elliston <bje@cygnus.com>
* acgeneral.m4 (CONFIG_AUX_DIRS): Try running `shtool install'.
	Contributed by Ralf S. Engelschall <rse@engelschall.com>.
1999-09-04 15:01:04 +00:00
Ben Elliston
11e0cb7021 1999-09-04 Pavel Roskin <pavel_roskin@geocities.com>
* acgeneral.m4 (AC_OUTPUT_FILES): Output comment to not only
	`Makefile', but also `makefile'.
1999-09-04 12:20:02 +00:00
Ben Elliston
141a4cd467 1999-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* acgeneral.m4 (AC_CHECK_TYPE): Add optional third argument
	INCLUDES, which specifies the headers in which to search for the
	type in question. Also, pass a "description" argument to
	AC_DEFINE_UNQUOTED.
	* acconfig.h (mode_t, off_t, pid_t, size_t): Remove definitions.
	* autoconf.texi (AC_CHECK_TYPE): Document optional third argument.
1999-09-04 07:26:22 +00:00
Ben Elliston
bcdc1ba13e 1999-08-28 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_C_INLINE): Qualify the return type of the
	dummy inlined function to satisfy newer C++ compilers. Fix for
	autoconf/49.
1999-08-27 14:54:40 +00:00
Ben Elliston
3c733d23f7 1999-07-04 Mark Elbrecht <snowball3@bigfoot.com>
* acspecific.m4 (AC_PROG_CXX): Look for gpp after g++. gpp is the
	DJGPP C++ compiler, since `g++' is not a valid DOS filename.
1999-07-03 17:54:27 +00:00
Ben Elliston
fcdb3e71c6 1999-06-03 Ben Elliston <bje@cygnus.com>
* acgeneral.m4 (AC_ACVERSION): Correct version number.
	* autoconf.texi (EDITION): Likewise.
	(VERSION): Likewise.
1999-06-02 14:25:59 +00:00
Matthew D. Langston
6926ab1514 Translate the ":" character to a "_", which allows checking for member
functions in C++ libraries.
1999-05-27 08:21:27 +00:00
Tom Tromey
74f02f339e 1999-04-17 Paul Eggert <eggert@twinsun.com>
* autoconf.texi, acspecific.m4 (AC_FUNC_MKTIME): New macro.
	taken from automake's AM_FUNC_MKTIME.
	* acfunctions: mktime now belongs to AC_FUNC_MKTIME.
1999-04-22 21:38:24 +00:00
Matthew D. Langston
19934c8916 Add support for Fortran 77. 1999-04-19 17:58:21 +00:00
Ben Elliston
f88690cc61 1999-04-11 Paul Eggert <eggert@twinsun.com>
* acgeneral.m4 (AC_CHECK_TYPE): Allow first argument to be a
	shell variable.
1999-04-10 21:31:12 +00:00
Ben Elliston
c88dd52454 1999-01-28 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* acspecific.m4 (AC_PROG_INSTALL): set INSTALL_SCRIPT to
	${INSTALL} so that automake doesn't propogate install time flags
	for INSTALL_PROGRAM into INSTALL_SCRIPT.
1999-04-10 20:23:05 +00:00
Ben Elliston
0012aaa6ec 1999-04-11 Ben Elliston <bje@cygnus.com>
* acgeneral.m4 (AC_C_STRUCT_MEMBER): New macro.
	* acspecific.m4 (AC_STRUCT_TIMEZONE): Rewrite in terms of
	AC_C_STRUCT_MEMBER.
	(AC_STRUCT_ST_BLOCKS): Likewise.
	(AC_STRUCT_ST_BLKSIZE): Likewise.
	(AC_STRUCT_ST_RDEV): Likewise.
	* autoconf.texi (Structures): Update. Add menu for subnodes.
	(Particular Structures): New node.
	(Generic Structures): New node.
	(AC_C_STRUCT_MEMBER): Document.
1999-04-10 19:54:57 +00:00
Ben Elliston
830e0c916a 1999-04-08 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_PROG_CC): Try using the `cl' C compiler under
	Cygwin. Contributed by Scott Stanton <stanton@scriptics.com>.
1999-04-07 23:59:09 +00:00
Ben Elliston
27a222eeb8 1999-04-02 Mike Stump <mrs@wrs.com>
* acgeneral.m4 (AC_ARG_PROGRAM): Remove spaces, as there is one
	more pass through sh than you think.
1999-04-04 23:09:48 +00:00
Ben Elliston
34c8b4cad2 1999-04-05 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_CYGWIN): Do not remove conftest*; let
	AC_TRY_COMPILE clean up after itself.
	(AC_MINGW32): Likewise.
	(AC_EMXOS2): Likewise.
1999-04-04 23:00:07 +00:00
Ben Elliston
3be228c166 1999-04-05 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_PROG_CC_WORKS): Show $CPPFLAGS when
	running the compiler.
	(AC_PROG_CXX_WORKS): Likewise.
1999-04-04 21:24:26 +00:00
Ben Elliston
2c371a8609 1999-04-05 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_EMXOS2): New macro. Contributed by Ryuji Abe
	<raeva@t3.rim.or.jp>.
	(AC_EXEEXT): Handle case for OS/2.
	* autoconf.texi (AC_EMXOS2): Document.
	(AC_EXEEXT): Mention OS/2.
	(AC_MINGW32): Move.
	(UPDATED): Update.
1999-04-04 20:32:09 +00:00
Ben Elliston
d7993ab20d 1999-03-01 Gordon Matzigkeit <gord@trick.fig.org>
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS): Don't require that macro
	symbols be valid C identifiers.
1999-04-03 21:46:58 +00:00
Ben Elliston
a46d446b9c 1999-04-01 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_EXEEXT): Do not consider `.xcoff' as a
	possible executable filename extension. Contributed by Robert
	S. Maier <rsm@math.arizona.edu>.
1999-03-31 08:42:11 +00:00
Ben Elliston
861872d328 1999-04-01 Ben Elliston <bje@cygnus.com>
* standards.texi: Update from FSF.
	* acspecific.m4 (AC_PROG_INSTALL): Avoid using the installation
	script belonging to HP `pwplus' when running the install
	program. Contributed by Steven G. Johnson <stevenj@alum.mit.edu>
	and Dave Adams <adams@hpesdwa.fc.hp.com>.
1999-03-31 08:16:10 +00:00
Ben Elliston
283795f039 1999-02-28 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_FUNC_VFORK): Allow test to behave correctly
	when $ac_cv_func_vfork_works is the empty string. Contributed by
	<red@nym.alias.net>.
1999-02-28 14:41:03 +00:00
Ben Elliston
67d8e848ec 1999-02-10 Tom Tromey <tromey@cygnus.com>
* acgeneral.m4 (AC_CACHE_LOAD): Avoid sourcing special files.
	Works around bug in some versions of bash.
1999-02-25 18:24:02 +00:00
Ben Elliston
030b2d717a 1999-02-22 Stu Grossman <grossman@cygnus.com>
* acgeneral.m4 (AC_CANONICAL_SYSTEM): Explicitly require
	AC_CANONICAL_HOST, AC_CANONICAL_TARGET and AC_CONICAL_BUILD.
	(AC_CONFIG_AUX_DIR): Run auxillary shell scripts through $SHELL.
	Do not rely on their magic number.
	(AC_CANONICAL_THING): New macro. Cache results.
	(AC_CANONICAL_HOST): Reimplement; use AC_CANONICAL_THING.
	(AC_CANONICAL_TARGET): Likewise.
	(AC_CANONICAL_BUILD): Likewise.
	(AC_OUTPUT): Use $SHELL.
	(AC_OUTPUT_SUBDIRS): Likewise.
1999-02-21 17:40:20 +00:00
Ben Elliston
c74175fb82 1999-02-19 Felix Lee <flee@cygnus.com>
* acgeneral.m4 (AC_CACHE_VAL): Don't need backticks. This is a
	performance enhancement for about a 5% reduction in the runtime of
	the generated configure script.
1999-02-18 16:15:41 +00:00