3 # Test to make sure intermediate .h file is not generated nor removed
4 # if (AM_)?YFLAGS do not contain -d. Requested by Jim Meyering.
6 .
$srcdir/defs ||
exit 1
8 cat >> configure.
in << 'END'
13 cat > Makefile.am
<<'END'
15 zardoz_SOURCES = zardoz.y
20 # If zardoz.h IS mentioned, fail
21 grep 'zardoz.h' Makefile.
in > /dev
/null
&& exit 1
23 echo 'AM_YFLAGS = -d' >> Makefile.am
27 # If zardoz.h is NOT mentioned, fail
28 grep 'zardoz.h' Makefile.
in > /dev
/null ||
exit 1
30 echo 'AM_YFLAGS = ' >> Makefile.am
34 # If zardoz.h IS mentioned, fail
35 grep 'zardoz.h' Makefile.
in > /dev
/null
&& exit 1
37 echo 'YFLAGS = -d' >> Makefile.am
41 # If zardoz.h is NOT mentioned, fail
42 grep 'zardoz.h' Makefile.
in > /dev
/null ||
exit 1
44 echo 'YFLAGS = ' >> Makefile.am
48 # If zardoz.h IS mentioned, fail
49 grep 'zardoz.h' Makefile.
in > /dev
/null
&& exit 1