]> git.saurik.com Git - bison.git/blob - configure.bat
* lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
[bison.git] / configure.bat
1 @echo off
2 echo Configuring bison for go32
3 rem This batch file assumes a unix-type "sed" program
4
5 echo # Makefile generated by "configure.bat"> Makefile
6 echo all.dos : bison >> Makefile
7
8 if exist config.sed del config.sed
9
10 echo "s/@srcdir@/./g ">> config.sed
11 echo "s/@CC@/gcc/g ">> config.sed
12 echo "s/@INSTALL@//g ">> config.sed
13 echo "s/@INSTALL_PROGRAM@//g ">> config.sed
14 echo "s/@INSTALL_DATA@//g ">> config.sed
15 echo "s/@DEFS@/-DHAVE_STRERROR/g ">> config.sed
16 echo "s/@LIBS@//g ">> config.sed
17 echo "s/@ALLOCA@//g ">> config.sed
18
19 echo "/^bison[ ]*:/,/-o/ { ">> config.sed
20 echo " s/ \$(CC)/ >bison.rf/ ">> config.sed
21 echo " /-o/ a\ ">> config.sed
22 echo " $(CC) @bison.rf ">> config.sed
23 echo "} ">> config.sed
24
25 sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
26 sed -f config2.sed Makefile.in >> Makefile
27 del config.sed
28 del config2.sed