Tag
Hash :
adb7a5ec
Author :
Date :
2001-10-20T11:15:36
* tests/defs (configure.in): Use credible AM_INIT_AUTOMAKE arguments. Don't run AC_ARG_PROGRAM another time, it is required by AM_INIT_AUTOMAKE. * tests/aclocal.test: Work on the default configure.in * tests/config.test (configure.in): Don't AC_ARG_PROGRAM. First AM_INIT_AUTOMAKE, then AM_CONFIG_HEADER. Be realistic in testing: AC_INIT is required for Autoconf. Broken so called optimized tests break trace handling. * tests/aclibobj.test, tests/aclocal.test, tests/acoutnoq.test, * tests/acoutput.test, tests/acoutput2.test, tests/acoutqnl.test, * tests/acouttbs.test, tests/acsilent.test, tests/alpha.test, * tests/colon.test, tests/colon2.test, tests/colon3.test, * tests/colon4.test, tests/colon5.test, tests/colon6.test, * tests/colon7.test, tests/cond.test, tests/cond2.test, * tests/cond3.test, tests/cond5.test, tests/conf2.test, * tests/confh.test, tests/confh2.test, tests/confh3.test, * tests/confh4.test, tests/config.test, tests/confsub.test, * tests/ctarget1.test, tests/depcomp.test, tests/depend3.test, * tests/distcommon.test, tests/dup3.test, tests/fpinst2.test, * tests/fpinstall.test, tests/header.test, tests/ldflags.test, * tests/libobj.test, tests/libobj10.test, tests/libobj2.test, * tests/libobj6.test, tests/libobj7.test, tests/libobj8.test, * tests/libobj9.test, tests/output.test, tests/output2.test, * tests/output3.test, tests/output4.test, tests/parse.test, * tests/pr2.test, tests/recurs.test, tests/recurs2.test, * tests/remake.test, tests/remake2.test, tests/remake3.test, * tests/req.test, tests/scripts.test, tests/subdir.test, * tests/subdir2.test, tests/subdir4.test, tests/subobj4.test, * tests/tagsub.test, tests/texinfo8.test, tests/version.test, * tests/version2.test: Add AC_INIT in `configure.in'.
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
#! /bin/sh
# Test sources listed in conditional.
# Report from Rob Savoye <rob@cygnus.com>, and Lars J. Aas.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_PROG_CC
AM_CONDITIONAL(ONE, true)
AM_CONDITIONAL(TWO, false)
AM_CONDITIONAL(THREE, maybe)
AC_OUTPUT(Makefile)
END
cat > Makefile.am << 'END'
bin_PROGRAMS = targ
if ONE
SONE = one.c
else
SONE =
endif
if TWO
STWO = two.c
else
STWO =
endif
if THREE
STHREE = three.c
else
STHREE =
endif
targ_SOURCES = $(SONE) $(STWO) $(STHREE)
END
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# `b top' so that
sed -n '
/[oO][bB][jJ][eE][cC][tT].* =/ {
: loop
/\\$/ {
p
n
b loop
}
p
}' Makefile.in >produced
cat >expected << 'EOF'
@ONE_TRUE@am__objects_1 = one.$(OBJEXT)
@ONE_FALSE@am__objects_1 =
@TWO_TRUE@am__objects_2 = two.$(OBJEXT)
@TWO_FALSE@am__objects_2 =
@THREE_TRUE@am__objects_3 = three.$(OBJEXT)
@THREE_FALSE@am__objects_3 =
am_targ_OBJECTS = $(am__objects_1) $(am__objects_2) $(am__objects_3)
targ_OBJECTS = $(am_targ_OBJECTS)
EOF
diff expected produced || exit 1