* tests/base.at, tests/compile.at, tests/foreign.at,
* tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
* tests/semantics.at, tests/suite.at, tests/tools.at,
* tests/torture.at: Ask Autotest mode, not Autoconf mode.
2001-08-20 22:44:38 +08:00
|
|
|
# -*- Autotest -*-
|
2000-12-19 16:14:19 +08:00
|
|
|
|
|
|
|
AT_BANNER([Compatibility with other tools.])
|
|
|
|
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
# Copyright 2000, 2001 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.
|
|
|
|
|
|
|
|
|
2000-12-19 16:14:19 +08:00
|
|
|
## -------------------- ##
|
|
|
|
## Autoconf & Libtool. ##
|
|
|
|
## -------------------- ##
|
|
|
|
|
2001-03-20 21:59:27 +08:00
|
|
|
AT_SETUP([[Libtool]])
|
2000-12-19 16:14:19 +08:00
|
|
|
|
|
|
|
# Skip this test if there is no libtoolize.
|
2000-12-20 21:48:07 +08:00
|
|
|
AT_CHECK([libtoolize --version || exit 77],
|
|
|
|
ignore, ignore, ignore)
|
2001-03-20 22:15:59 +08:00
|
|
|
# CVS Autoconf probably does not work with too old Libtools.
|
2001-06-23 22:01:29 +08:00
|
|
|
AT_CHECK([[
|
|
|
|
case `libtoolize --version |
|
|
|
|
sed -n '/^.* \([0-9][0-9.a-z]*\)$/{s//\1/;p;q;}'` in
|
2001-06-25 19:57:14 +08:00
|
|
|
0.* ) exit 77;;
|
|
|
|
1.[012]* ) exit 77;;
|
|
|
|
1.3.[01234]* ) exit 77;;
|
2001-06-23 22:01:29 +08:00
|
|
|
esac]],
|
2000-12-20 21:48:07 +08:00
|
|
|
ignore, ignore, ignore)
|
2000-12-19 16:14:19 +08:00
|
|
|
|
2001-01-18 21:16:02 +08:00
|
|
|
# FIXME: Once Libtool `configure.ac' aware, change this.
|
|
|
|
# Using a configure.in, have libtoolize confess where libtool.m4 is.
|
|
|
|
AT_DATA([configure.in],
|
2000-12-19 16:14:19 +08:00
|
|
|
[[AC_INIT
|
2001-04-21 01:38:22 +08:00
|
|
|
# The other tests are relying on Autoconf's own copy of install-sh
|
|
|
|
# etc. via AC_CONFIG_AUX_DIR(..). Don't do that here, since we don't
|
|
|
|
# want libtoolize to pollute Autoconf's srcdir.
|
2000-12-19 16:14:19 +08:00
|
|
|
AC_CONFIG_AUX_DIR(.)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
]])
|
2001-01-22 16:59:02 +08:00
|
|
|
AT_CHECK([libtoolize | sed -n ["s,^.*\`\(/[^']*\)'.*,\1,p"]],
|
|
|
|
0, [stdout], ignore)
|
2000-12-19 16:14:19 +08:00
|
|
|
|
2001-01-18 21:16:02 +08:00
|
|
|
# Make sure at-path contains something valid, and let the test suite
|
|
|
|
# display it when verbose. And fail, skipping would too easily hide
|
|
|
|
# problems.
|
2001-01-22 16:59:02 +08:00
|
|
|
AT_CHECK([grep . stdout], 0, [ignore])
|
|
|
|
AT_CHECK([test -f "`cat stdout`"])
|
2001-01-18 21:16:02 +08:00
|
|
|
|
2001-04-21 01:38:22 +08:00
|
|
|
# libtoolize installed everything but install-sh...
|
|
|
|
touch install-sh
|
|
|
|
|
2000-12-23 18:11:57 +08:00
|
|
|
# Build the concatenation of libtool.m4 and configure.ac.
|
2001-01-22 16:59:02 +08:00
|
|
|
cp `cat stdout` configure.in
|
2001-01-18 21:16:02 +08:00
|
|
|
cat >>configure.in <<_EOF
|
2000-12-19 16:14:19 +08:00
|
|
|
AC_INIT
|
|
|
|
AC_CONFIG_AUX_DIR(.)
|
2001-03-20 22:15:59 +08:00
|
|
|
AC_CANONICAL_SYSTEM
|
2000-12-19 16:14:19 +08:00
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
AT_CHECK_AUTOCONF
|
|
|
|
|
2001-04-21 01:38:22 +08:00
|
|
|
# Ignore stderr, because ltconfig always loads the cache, which is
|
|
|
|
# /dev/null, and some shells choke on this. For instance with Bash
|
|
|
|
# 2.05, you get:
|
|
|
|
#
|
|
|
|
# loading cache /dev/null within ltconfig
|
|
|
|
# ./ltconfig: .: /dev/null: not a regular file
|
|
|
|
#
|
|
|
|
# But the script executes properly.
|
|
|
|
AT_CHECK_CONFIGURE([], [], [], [ignore])
|
2000-12-19 16:14:19 +08:00
|
|
|
|
|
|
|
AT_CLEANUP(install-sh ltconfig libtool at-path ltmain.sh config.guess config.sub)
|