configure.bat 904 B

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