1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #! /bin/sh
- required='cc bison'
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_PROG_CC
- AC_C_INLINE dnl Required by some pre-C99 compilers such as MSVC.
- AC_PROG_YACC
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- bin_PROGRAMS = zardoz
- zardoz_SOURCES = zardoz.y foo.c
- AM_YFLAGS = -d --skeleton glr.c
- BUILT_SOURCES = zardoz.h
- END
- cat > zardoz.y << 'END'
- %{
- int yylex ();
- void yyerror (const char *s);
- %}
- %%
- foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};
- %%
- int yylex () { return 0; }
- void yyerror (const char *s) { return; }
- END
- cat > foo.c << 'END'
- int main (void)
- {
- return yyparse ();
- }
- END
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE -a
- mkdir build
- cd build
- ../configure YACC='bison -y'
- $MAKE
- cd ..
- ./configure YACC='bison -y'
- $MAKE
- yl_distcheck YACC=false DISTCHECK_CONFIGURE_FLAGS='YACC=false'
- :
|