diff options
Diffstat (limited to 'tests/cond18.test')
-rwxr-xr-x | tests/cond18.test | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/tests/cond18.test b/tests/cond18.test index 545038933..9c404a4bd 100755 --- a/tests/cond18.test +++ b/tests/cond18.test @@ -17,19 +17,18 @@ # Regression test for substitution references to conditional variables. # Report from Richard Boulton -required='GNUmake gcc' . ./defs || Exit 1 -cat > configure.in << 'END' -AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(hello,0.23) -AC_PROG_CC -AM_CONDITIONAL(COND1, true) -AM_CONDITIONAL(COND2, true) -AC_OUTPUT(Makefile) +cat >> configure.in << 'END' +AM_CONDITIONAL([COND1], [true]) +AM_CONDITIONAL([COND2], [true]) +AC_OUTPUT END cat > Makefile.am << 'END' +AUTOMAKE_OPTIONS = no-dependencies +CC = false +OBJEXT = obj var1 = dlmain @@ -47,22 +46,18 @@ endif helldl_SOURCES = $(var3) -echorule: - @echo $(helldl_SOURCES) $(helldl_OBJECTS) +.PHONY: test +test: + test x"`echo $(helldl_SOURCES) $(helldl_OBJECTS)`" = \ + x"dlmain.c foo.c dlmain.obj foo.obj" bin_PROGRAMS = helldl END -# Ignore user CFLAGS. -CFLAGS= -export CFLAGS - $ACLOCAL $AUTOCONF $AUTOMAKE -a - ./configure +$MAKE test -val=`$MAKE --no-print-directory echorule`; -echo $val -test "x$val" = "xdlmain.c foo.c dlmain.o foo.o" +: |