123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #! /bin/sh
- . test-init.sh
- if stat /dev/null; then stat=stat; else stat=:; fi
- cat >> configure.ac << 'END'
- FOOBAR=zardoz
- AC_OUTPUT
- END
- : > Makefile.am
- $ACLOCAL
- $AUTOMAKE
- $AUTOCONF
- ./configure
- $MAKE Makefile
- $EGREP 'FOOBAR|zardoz' Makefile && fatal_ 'unexpected AC_SUBST in Makefile'
- echo 'AC_SUBST([FOOBAR])' >> configure.ac
- $stat config.status Makefile configure.ac
- $sleep
- touch config.status
- touch -r config.status config.status Makefile configure.ac
- $stat config.status Makefile configure.ac
- cat > aclocal-wrap <<END
- #!/bin/sh
- set -ex
- AUTOCONF='$AUTOCONF'; export AUTOCONF
- $ACLOCAL "\$@"
- touch -r config.status aclocal.m4
- $stat aclocal.m4
- END
- cat > automake-wrap <<END
- #!/bin/sh
- set -ex
- AUTOCONF='$AUTOCONF'; export AUTOCONF
- $AUTOMAKE "\$@"
- touch -r config.status Makefile.in
- $stat Makefile.in
- END
- cat > autoconf-wrap <<END
- #!/bin/sh
- set -ex
- $AUTOCONF "\$@"
- touch -r config.status configure
- $stat configure
- END
- chmod a+x aclocal-wrap automake-wrap autoconf-wrap
- run_make Makefile \
- ACLOCAL=./aclocal-wrap AUTOMAKE=./automake-wrap AUTOCONF=./autoconf-wrap
- grep '^FOOBAR =' Makefile.in
- grep '^FOOBAR *= *zardoz *$' Makefile
- :
|