123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #! /bin/sh
- . test-init.sh
- cat >> configure.ac << 'END'
- CC=false; AC_SUBST([CC])
- OBJEXT=oo; AC_SUBST([OBJEXT])
- AM_CONDITIONAL([ONE], [true])
- AM_CONDITIONAL([TWO], [false])
- AM_CONDITIONAL([THREE], [false])
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- bin_PROGRAMS = targ
- if ONE
- SONE = one.c
- endif
- if TWO
- STWO =
- else
- STWO = two.c
- endif
- if THREE
- STHREE =
- else
- STHREE = three.c
- endif
- if THREE
- STHREE2 =
- else
- STHREE2 = three2.c
- endif
- targ_SOURCES = $(SONE) $(STWO) $(STHREE) $(STHREE2)
- .PHONY: test
- test:
- is $(targ_OBJECTS) == one.oo two.oo three.oo three2.oo
- END
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE --ignore-deps
- ./configure
- $MAKE test
- :
|