Tag
Hash :
852e99bc
Author :
Date :
2002-05-30T06:05:05
fgrep -> $FGREP, egrep -> $EGREP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
#! /bin/sh
# Regression test for multiple rules being generated for each target when
# conditionals are present.
# From Richard Boulton
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AM_CONDITIONAL(BAR, true)
END
cat > Makefile.am << 'END'
if BAR
BAR_SRCS = bar.c
endif
bin_PROGRAMS = foo
foo_CFLAGS = -DFOO
foo_SOURCES = foo.c
END
: > compile
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
uncondval=`$FGREP 'foo-foo.o: foo.c' Makefile.in`
cat >> Makefile.am << 'END'
foo_SOURCES += $(BAR_SRCS)
END
$AUTOMAKE || exit 1
condval=`$FGREP 'foo-foo.o: foo.c' Makefile.in`
test "x$uncondval" = "x$condval"