Tag
Hash :
e08fb788
Author :
Date :
2002-05-06T06:51:05
Fix for condd.test (conditional `+='): * automake.in (%appendvar): New. (initialize_per_input): Clear it. (macro_define): Handle += for variable defined in another condition. * automake.texi (Conditional Sources): Use conditional += in the example. (General Operation, Conditionals): Remove note about broken +=. * tests/cond21.test: New file. * tests/condd.test: Also test conditional append to a _SOURCE variable. Create missing directories. * tests/Makefile.am (TESTS): Add cond21.test. (XFAILS): Remove condd.test.
#! /bin/sh
# Test for bug in conditionals.
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AM_CONDITIONAL(COND1, true)
END
cat > Makefile.am << 'END'
SUBDIRS = foo
if COND1
SUBDIRS += bar
endif
# Small example from the manual
bin_PROGRAMS = hello
hello_SOURCES = hello-common.c
if COND1
hello_SOURCES += hello-cond1.c
else
hello_SOURCES += hello-generic.c
endif
END
mkdir foo bar
$ACLOCAL || exit 1
$AUTOMAKE