sed3v2.inp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # -sed3v2.inp-------------------------------------------------------------
  2. # Configuration script for lib-src/makefile under DJGPP v2
  3. # ----------------------------------------------------------------------
  4. #
  5. # Copyright (C) 1996, 1998, 2000-2012 Free Software Foundation, Inc.
  6. #
  7. # This file is part of GNU Emacs.
  8. #
  9. # This file is free software; as a special exception, the author gives
  10. # unlimited permission to copy and/or distribute it, with or without
  11. # modifications, as long as this notice is preserved.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # ----------------------------------------------------------------------
  18. /^# DIST: /d
  19. /^SHELL *=/s/^/# /
  20. /^CC *=/s/=.*$/=gcc/
  21. s/-DVERSION[^ ]* //
  22. /^configname *=/s/=.*$/=msdos/
  23. /^archlibdir *=/s!=.*$!=/emacs/bin!
  24. /^bindir *=/s!=.*$!=/emacs/bin!
  25. /^libdir *=/s!=.*$!=/emacs/bin!
  26. /^srcdir=/s!srcdir=@srcdir@!srcdir := $(subst \\,/,$(shell command.com /c cd))!
  27. /^VPATH *=/s!=.*$!=.!
  28. /^BLESSMAIL_TARGET *=/s!@BLESSMAIL_TARGET@!need-blessmail!
  29. /^KRB4LIB *=/s/@[^@\n]*@//g
  30. /^DESLIB *=/s/@[^@\n]*@//g
  31. /^KRB5LIB *=/s/@[^@\n]*@//g
  32. /^CRYPTOLIB *=/s/@[^@\n]*@//g
  33. /^COM_ERRLIB *=/s/@[^@\n]*@//g
  34. /^LIBHESIOD *=/s/@[^@\n]*@//g
  35. /^LIBRESOLV *=/s/@[^@\n]*@//g
  36. /^LIBS_MAIL *=/s/@[^@\n]*@//g
  37. /^LIBS_SYSTEM *=/s/@[^@\n]*@//g
  38. /^CFLAGS *=/s!=.*$!=-O2 -g!
  39. /^C_SWITCH_SYSTEM *=/s!=.*$!=-DMSDOS!
  40. /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
  41. /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@//
  42. /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
  43. /^ALLOCA *=/s!@ALLOCA@!!
  44. /^EXEEXT *=/s!@EXEEXT@!!
  45. /^GETOPT_H *=/s!@GETOPT_H@!getopt.h!
  46. /^GETOPTOBJS *=/s!@GETOPTOBJS@!getopt.o getopt1.o!
  47. /^INSTALLABLES/s/emacsclient[^ ]* *//
  48. s!^ \./! !
  49. /^UTILITIES *=/,/^$/{
  50. s/movemail[^ ]* *//
  51. }
  52. /^insrcdir=/s/^.*$/\#&/
  53. /^ *\$(insrcdir) ||/s,\$(insrcdir) ||,command.com /c if not exist $(<F),