Minor fixes for MSDOS build to track latest changes.
[bpt/emacs.git] / msdos / sed3v2.inp
index 346f4e0..faa5799 100644 (file)
@@ -2,7 +2,7 @@
 # Configuration script for lib-src/makefile under DJGPP v2
 # ----------------------------------------------------------------------
 #
-# Copyright (C) 1996, 1998, 2000-2011  Free Software Foundation, Inc.
+# Copyright (C) 1996, 1998, 2000-2012  Free Software Foundation, Inc.
 #
 # This file is part of GNU Emacs.
 #
@@ -38,7 +38,8 @@ s/-DVERSION[^ ]* //
 /^CFLAGS *=/s!=.*$!=-O2 -g!
 /^C_SWITCH_SYSTEM *=/s!=.*$!=-DMSDOS!
 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
-/^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@//
+/^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
+/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
 /^ALLOCA *=/s!@ALLOCA@!!
 /^EXEEXT *=/s!@EXEEXT@!!
@@ -49,4 +50,5 @@ s!^   \./!    !
 /^UTILITIES *=/,/^$/{
   s/movemail[^ ]* *//
 }
-
+/^insrcdir=/s/^.*$/\#&/
+/^      *\$(insrcdir) ||/s,\$(insrcdir) ||,command.com /c if not exist $(<F),