home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / GNUSRC.Z / nt-configure < prev    next >
Text File  |  1995-08-15  |  2KB  |  60 lines

  1. cmd=$0
  2. srcdir=`echo $cmd | sed 's@[/\\][^/\\]*$@@'`
  3.  
  4. echo Configuring MAKE for go32
  5. # This batch file assumes a unix-type "sed" program
  6.  
  7. echo echo config.status unused by NT > config.status
  8.  
  9. rm -f config.h
  10. cp $srcdir/configh.dos config.h
  11.  
  12. echo '# Makefile generated by "configure.bat"'> Makefile
  13.  
  14. rm -f config.sed
  15.  
  16. echo ': try_sl                        '>> config.sed
  17. echo '/\\$/ {                        '>> config.sed
  18. echo '  N                        '>> config.sed
  19. echo '  s/[     ]*\\\n[     ]*/ /            '>> config.sed
  20. echo '  b try_sl                    '>> config.sed
  21. echo '}                            '>> config.sed
  22.  
  23. echo "s!@srcdir@!$srcdir!                ">> config.sed
  24. echo 's/@CC@/gcc/                    '>> config.sed
  25. echo 's/@CFLAGS@/-g -O/                    '>> config.sed
  26. echo 's/@CPPFLAGS@/-DHAVE_CONFIG_H -DNO_ARCHIVES/     '>> config.sed
  27. echo 's/@LDFLAGS@/-g/                    '>> config.sed
  28. echo 's/@RANLIB@/touch/                    '>> config.sed
  29. echo 's/@DEFS@//                    '>> config.sed
  30. echo 's/@REMOTE@/stub/                    '>> config.sed
  31. echo 's/@ALLOCA@//                    '>> config.sed
  32. echo 's/@LIBS@//                    '>> config.sed
  33. echo 's/@LIBOBJS@//                    '>> config.sed
  34. echo 's/@SET_MAKE@//                    '>> config.sed
  35. echo 's/@prefix@/\/usr\/local/                '>> config.sed
  36. echo 's/@exec_prefix@/\$(prefix)/            '>> config.sed
  37. echo 's/@NEED_SETGID@/false/                '>> config.sed
  38. echo 's/@KMEM_GROUP@//                    '>> config.sed
  39. echo 's/@INSTALL_PROGRAM@/$(INSTALL)/            '>> config.sed
  40. echo 's/@INSTALL_DATA@/$(INSTALL) -m 644/        '>> config.sed
  41. echo 's/@INSTALL@/.\/install-sh -c/            '>> config.sed
  42. echo 's/^Makefile *:/Makefile:/                '>> config.sed
  43. echo 's/^config.h *:/config.h:/                '>> config.sed
  44. echo 's/^defines *=.*$/defines =/            '>> config.sed
  45. echo 's/mv -f make.new make/mv -f make.new.exe make.exe/'>> config.sed
  46.  
  47. echo 's/cd glob; $(MAKE)/$(MAKE) -C glob/        '>> config.sed
  48.  
  49. sed -e "s/^\"//" config.sed > config2.sed
  50. sed -e "s/\"\$//" config2.sed > config3.sed
  51. sed -e "s/[     ]*\$//" config3.sed > config4.sed
  52. sed -f config4.sed $srcdir/Makefile.in >> Makefile
  53. rm -f config*.sed
  54. cp $srcdir/nt.h nt.h
  55.  
  56. mkdirs glob
  57. cd glob
  58. sh $srcdir/glob/nt-configure
  59. cd ..
  60.