2000-01-29 20:18:40 +08:00
|
|
|
## Process this file with automake to create Makefile.in.
|
|
|
|
|
|
|
|
## Makefile for Autoconf testsuite.
|
|
|
|
## Copyright (C) 2000 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
## any later version.
|
|
|
|
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program; if not, write to the Free Software
|
|
|
|
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
## 02111-1307, USA.
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = gnits
|
|
|
|
|
2000-10-05 21:52:41 +08:00
|
|
|
SUITE = base.m4 tools.m4 semantics.m4 torture.m4 syntax.m4 update.m4
|
2000-01-29 20:18:40 +08:00
|
|
|
|
|
|
|
# We don't actually distribute the testsuite, since one only
|
|
|
|
# needs m4 to build it, m4 being required anyway to install Autoconf.
|
2000-10-05 21:52:41 +08:00
|
|
|
EXTRA_DIST = atgeneral.m4 atspecific.m4 suite.m4 aclocal.m4 \
|
|
|
|
$(SUITE) mktests.sh
|
2000-01-29 20:18:40 +08:00
|
|
|
|
Test that the macros respect the user variable name space.
* acgeneral.m4 (AC_CANONICAL_THING): define, not AC_DEFUN.
Don't AC_PROVIDE, there is no need.
When calling `config.sub`, also || exit 1, to catch failures from
config.sub.
* acspecific.m4 (AC_SYS_LONG_FILE_NAMES): Use ac_val, not val.
(AC_EXEEXT): Use ac_file, not file.
* tests/actest.m4: New file, holding extra Autoconf macros used
during the testing.
(AC_ENV_SAVE): New macro, save the sh variables in a file.
* tests/suite.m4 (AT_TEST_MACRO, Generation of configure.in):
include actest.m4, and call twice AC_ENV_SAVE to compare the
variables before and after the macro.
* tests/Makefile.am (macro.m4): Don't test macros that are
required: they will be tested somewhere else.
2000-02-07 21:25:35 +08:00
|
|
|
check-local: atconfig testsuite
|
2000-01-29 20:18:40 +08:00
|
|
|
$(SHELL) testsuite
|
|
|
|
|
2000-10-05 21:52:41 +08:00
|
|
|
testsuite: atgeneral.m4 atspecific.m4 suite.m4 $(SUITE)
|
2000-02-28 16:54:23 +08:00
|
|
|
$(M4) -I $(srcdir) atspecific.m4 suite.m4 | \
|
2000-02-11 16:59:52 +08:00
|
|
|
sed -e 's/[ ]*$$//' | \
|
|
|
|
sed -e '/^$$/N;/\n$$/D' > $@-tmp
|
2000-01-29 20:18:40 +08:00
|
|
|
chmod +x $@-tmp
|
|
|
|
mv $@-tmp $@
|
|
|
|
|
2000-03-01 16:22:40 +08:00
|
|
|
|
Move all the language dependent macros into aclang.m4.
* aclang.m4: New file.
* autoconf.m4: Include it.
* autoheader.m4: Likewise.
* autoupdate.m4: Likewise.
* Makefile.am: Adjust.
* test/Makefile.am: Likewise.
* acgeneral.m4 (AC_LANG_CASE,AC_LANG_SAVE, _AC_LANG_DISPATCH,
AC_LANG, _AC_LANG_CURRENT, AC_LANG_SOURCE, AC_LANG_PROGRAM,
AC_LANG_CALL, AC_LANG(C), AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C),
AC_LANG_CALL(C), AC_LANG(C++), AC_LANG_SOURCE(C++),
AC_LANG_PROGRAM(C++), AC_LANG_CALL(C++), AC_LANG(FORTRAN77),
AC_LANG_SOURCE(FORTRAN77), AC_LANG_PROGRAM(FORTRAN77),
AC_LANG_CALL(FORTRAN77): Move to...
* aclang.m4: here.
* acspecific.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77,
AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS,
AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU, AC_PROG_CC_G,
AC_PROG_CXX_G, AC_PROG_F77_G, AC_PROG_GCC_TRADITIONAL,
AC_PROG_CC_C_O, AC_PROG_F77_C_O, AC_PROG_CC_STDC, AC_PROG_CPP,
AC_PROG_CXXCPP, AC_REQUIRE_CPP, AC_PROG_LEX, AC_TYPE_MODE_T,
AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE, AC_C_BIGENDIAN,
AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE, AC_C_STRINGIZE,
AC_C_PROTOTYPES, AC_F77_LIBRARY_LDFLAGS, AC_F77_NAME_MANGLING,
AC_F77_WRAPPERS): Move to...
* aclang.m4: here.
2000-03-27 20:26:33 +08:00
|
|
|
# The files which contains macro we check for syntax.
|
2000-10-17 15:55:44 +08:00
|
|
|
MACRO_FILES = ../acgeneral.m4 ../acspecific.m4 \
|
|
|
|
../acfunctions.m4 ../aclang.m4
|
Move all the language dependent macros into aclang.m4.
* aclang.m4: New file.
* autoconf.m4: Include it.
* autoheader.m4: Likewise.
* autoupdate.m4: Likewise.
* Makefile.am: Adjust.
* test/Makefile.am: Likewise.
* acgeneral.m4 (AC_LANG_CASE,AC_LANG_SAVE, _AC_LANG_DISPATCH,
AC_LANG, _AC_LANG_CURRENT, AC_LANG_SOURCE, AC_LANG_PROGRAM,
AC_LANG_CALL, AC_LANG(C), AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C),
AC_LANG_CALL(C), AC_LANG(C++), AC_LANG_SOURCE(C++),
AC_LANG_PROGRAM(C++), AC_LANG_CALL(C++), AC_LANG(FORTRAN77),
AC_LANG_SOURCE(FORTRAN77), AC_LANG_PROGRAM(FORTRAN77),
AC_LANG_CALL(FORTRAN77): Move to...
* aclang.m4: here.
* acspecific.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77,
AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS,
AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU, AC_PROG_CC_G,
AC_PROG_CXX_G, AC_PROG_F77_G, AC_PROG_GCC_TRADITIONAL,
AC_PROG_CC_C_O, AC_PROG_F77_C_O, AC_PROG_CC_STDC, AC_PROG_CPP,
AC_PROG_CXXCPP, AC_REQUIRE_CPP, AC_PROG_LEX, AC_TYPE_MODE_T,
AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE, AC_C_BIGENDIAN,
AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE, AC_C_STRINGIZE,
AC_C_PROTOTYPES, AC_F77_LIBRARY_LDFLAGS, AC_F77_NAME_MANGLING,
AC_F77_WRAPPERS): Move to...
* aclang.m4: here.
2000-03-27 20:26:33 +08:00
|
|
|
|
2000-10-05 21:52:41 +08:00
|
|
|
syntax.m4: mktests.sh $(MACRO_FILES)
|
2000-10-17 15:55:44 +08:00
|
|
|
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
|
2000-10-05 21:52:41 +08:00
|
|
|
|
|
|
|
update.m4: mktests.sh $(MACRO_FILES)
|
2000-10-17 15:55:44 +08:00
|
|
|
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
|
2000-01-29 20:18:40 +08:00
|
|
|
|
2000-02-04 22:02:57 +08:00
|
|
|
CLEANFILES = debug-*.sh macro configure configure.in config.status \
|
|
|
|
config.cache config.log config.h.in config.h
|
|
|
|
DISTCLEANFILES = atconfig testsuite
|