summaryrefslogtreecommitdiff
path: root/tests/suffix7.test
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2003-04-18 19:59:31 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2003-04-18 19:59:31 +0000
commitb0bc85201383232309199b3102323c19e5bd73a2 (patch)
tree878781b1a80a0fa6b35564447d41c2f7c7b2961d /tests/suffix7.test
parentd5925a4c9be432628e58bc0c1866d8bf02d56332 (diff)
downloadautomake-b0bc85201383232309199b3102323c19e5bd73a2.tar.gz
* tests/defs.in: Handle required=etags to work aroundRelease-1-7-3b
Exuberant Ctags.
Diffstat (limited to 'tests/suffix7.test')
-rwxr-xr-xtests/suffix7.test27
1 files changed, 23 insertions, 4 deletions
diff --git a/tests/suffix7.test b/tests/suffix7.test
index d5d82c824..d28ceb2b4 100755
--- a/tests/suffix7.test
+++ b/tests/suffix7.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -19,21 +19,40 @@
# Boston, MA 02111-1307, USA.
# Test to make sure Automake supports implicit rules "confusing"
-# extensions. Inspired by a mail from Alex Hornby.
+# extensions. Inspired by a mail from Alex Hornby.
+required=gcc
. ./defs || exit 1
+set -e
+
+cat >> configure.in << 'END'
+AC_PROG_CXX
+AC_OUTPUT
+END
+
cat > Makefile.am << 'END'
SUFFIXES = .idl S.cpp C.h
SUFFIXES += C.cpp S.h
.idlC.cpp:
cp $< $@
+
+bin_PROGRAMS = foo
+foo_SOURCES = foo.idl
+
+echo:
+ @echo 'BEG: $(foo_OBJECTS) :END'
END
: > fooa
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+./configure
+OBJEXT=bar $MAKE -e echo >stdout
+cat stdout
+grep 'BEG: foo.bar :END' stdout
# Make sure Automake has NOT recognized .cpp and .idlC as two new
# extensions.