1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #! /bin/sh
- required='cc yacc'
- . test-init.sh
- cat >> configure.ac <<'END'
- AC_PROG_CC
- AC_PROG_YACC
- AC_OUTPUT
- END
- cat > Makefile.am <<'END'
- bin_PROGRAMS = foo
- foo_SOURCES = foo.y
- YFLAGS = -d -v
- END
- cat > foo.y << 'END'
- %{
- int yylex () { return 0; }
- void yyerror (char *s) { return; }
- int main () { return 0; }
- %}
- %%
- foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};
- END
- $ACLOCAL
- $AUTOMAKE -a -Wno-gnu
- $EGREP '(foo|YFLAGS)' Makefile.in
- grep '^foo\.h *:' Makefile.in
- $AUTOCONF
- ./configure
- $MAKE
- test -f foo.c
- test -f foo.h
- test -f foo.output
- :
|