custom-buffer-style doc fix
[emacs.git] / msdos / sed1v2.inp
blob383105a3f304a07ba252a231ed6d91cf3978b09b
1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996-1997, 1999-2016 Free Software Foundation, Inc.
7 # This file is part of GNU Emacs.
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.
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.
17 # ----------------------------------------------------------------------
18 s/^[ \f\t][ \f\t]*$//
19 s/^ /   /
20 s/\.h\.in/.h-in/
21 /^SHELL *=/s/^/# /
22 /^srcdir *=/s/@[^@\n]*@/./
23 /^top_srcdir *=/s/@[^@\n]*@/../
24 /^CC *=/s/@[^@\n]*@/gcc -std=gnu99/
25 /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
26 /^ALL_CFLAGS *=/s/@[^@\n]*@//g
27 /^ALL_CFLAGS *=/s/ -I\.//g
28 /^CPPFLAGS *=/s|@[^@\n]*@|-I../msdos|
29 /^LDFLAGS *=/s/@[^@\n]*@//
30 /^LIBOBJS *=/s/@[^@\n]*@//
31 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
32 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
33 /^GNUSTEP_CFLAGS *=/s/@GNUSTEP_CFLAGS@//
34 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
35 /^PNG_CFLAGS *=/s/@PNG_CFLAGS@//
36 /^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
37 /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
38 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
39 #/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
40 /^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
41 /^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
42 /^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
43 /^LD_SWITCH_X_SITE_RPATH *=/s/@LD_SWITCH_X_SITE_RPATH@//
44 /^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
45 /^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
46 /^LIB_GCC *=/s/@LIB_GCC@//
47 /^LIB_STANDARD *=/s/@LIB_STANDARD@//
48 /^LIB_MATH *=/s/@LIB_MATH@/-lm/
49 /^LIB_PTHREAD *=/s/@LIB_PTHREAD@//
50 /^LIB_ACL *=/s/@LIB_ACL@//
51 /^LIB_EACCESS *=/s/@LIB_EACCESS@//
52 /^LIB_FDATASYNC *=/s/@LIB_FDATASYNC@//
53 s/ *@LIBTIFF@//
54 s/ *@LIBJPEG@//
55 s/ *@LIBPNG@//
56 s/ *@LIBGIF@//
57 s/ *@LIBXPM@//
58 /^XFT_LIBS *=/s/@XFT_LIBS@//
59 /^XCB_LIBS *=/s/@XCB_LIBS@//
60 /^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
61 /^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
62 /^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
63 /^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
64 /^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
65 /^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
66 /^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
67 /^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
68 /^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
69 /^DBUS_LIBS *=/s/@DBUS_LIBS@//
70 /^DBUS_OBJ *=/s/@DBUS_OBJ@//
71 /^NOTIFY_OBJ *=/s/@NOTIFY_OBJ@//
72 /^SETTINGS_CFLAGS *=/s/@SETTINGS_CFLAGS@//
73 /^SETTINGS_LIBS *=/s/@SETTINGS_LIBS@//
74 /^NOTIFY_LIBS *=/s/@NOTIFY_LIBS@//
75 /^NOTIFY_CFLAGS *=/s/@NOTIFY_CFLAGS@//
76 /^GTK_OBJ *=/s/@GTK_OBJ@//
77 /^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
78 /^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
79 /^LIBXMU *=/s/@LIBXMU@//
80 /^LIBXSM *=/s/@LIBXSM@//
81 /^LIBXTR6 *=/s/@LIBXTR6@//
82 /^LIBXT_OTHER *=/s/@LIBXT_OTHER@//
83 /^OLDXMENU_TARGET *=/s/@OLDXMENU_TARGET@//
84 /^OLDXMENU_DEPS *=/s/@OLDXMENU_DEPS@//
85 /^XOBJ *=/s/@XOBJ@//
86 /^XGSELOBJ *=/s/@XGSELOBJ@//
87 /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
88 /^LIBSOUND *=/s/@LIBSOUND@//
89 /^LIBS_GNUSTEP *=/s/=.*$/=/
90 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
91 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
92 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
93 /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
94 /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
95 /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
96 /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
97 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
98 /^XWIDGETS_OBJ *=/s/@XWIDGETS_OBJ@//
99 /^WEBKIT_LIBS *=/s/@WEBKIT_LIBS@//
100 /^WEBKIT_CFLAGS *=/s/@WEBKIT_CFLAGS@//
101 /^CAIRO_LIBS *=/s/@CAIRO_LIBS@//
102 /^CAIRO_CFLAGS *=/s/@CAIRO_CFLAGS@//
103 /^XFIXES_LIBS *=/s/@XFIXES_LIBS@//
104 /^XFIXES_CFLAGS *=/s/@XFIXES_CFLAGS@//
105 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
106 /^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@//
107 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
108 /^NS_OBJ *=/s/@NS_OBJ@//
109 /^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@//
110 /^GNU_OBJC_CFLAGS*=/s/=.*$/=/
111 /^LIBRESOLV *=/s/@LIBRESOLV@//
112 /^LIBMODULES *=/s/@LIBMODULES@//
113 /^MODULES_OBJ *=/s/@MODULES_OBJ@//
114 /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
115 /^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g
116 /^LIB_TIMER_TIME *=/s/@[^@\n]*@//g
117 /^LIB_EXECINFO *=/s/@[^@\n]*@//g
118 /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@//
119 /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@//
120 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
121 /^START_FILES *=/s/@START_FILES@//
122 /^OTHER_FILES *=/s/@OTHER_FILES@//
123 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
124 /^FONT_OBJ *=/s/@FONT_OBJ@//
125 /^LIBGPM *=/s/@LIBGPM@//
126 /^LIBZ *=/s/@LIBZ@//
127 /^EXEEXT *=/s/@EXEEXT@/.exe/
128 /^MKDIR_P *=/s/@MKDIR_P@/gmkdir -p/
129 /^OLDXMENU *=/s/@OLDXMENU@/nothing/
130 /^LIBXMENU *=/s/@LIBXMENU@//
131 /^LIBX_OTHER *=/s/@LIBX_OTHER@//
132 /^XRANDR_LIBS *=/s/@XRANDR_LIBS@//
133 /^XRANDR_CFLAGS *=/s/@XRANDR_CFLAGS@//
134 /^XINERAMA_LIBS *=/s/@XINERAMA_LIBS@//
135 /^XINERAMA_CFLAGS *=/s/@XINERAMA_CFLAGS@//
136 /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
137 /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
138 /^FIRSTFILE_OBJ *=/s/@FIRSTFILE_OBJ@//
139 /^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
140 /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
141 /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
142 /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/
143 /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
144 /^DEPFLAGS *=/s/@DEPFLAGS@//
145 /^MKDEPDIR *=/s/@MKDEPDIR@//
146 /^W32_OBJ *=/s/@W32_OBJ@//
147 /^W32_LIBS *=/s/@W32_LIBS@//
148 /^version *=/s/@[^@\n]*@//
149 /^EMACSRES *=/s/@EMACSRES@//
150 /^W32_RES_LINK *=/s/@W32_RES_LINK@//
151 /^CM_OBJ *=/s/@CM_OBJ@/cm.o/
152 /^@SET_MAKE@$/s/@SET_MAKE@//
153 /^ADDSECTION *=/s/@ADDSECTION@//
154 /^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
155 /^[Aa][Mm]_/s/@AM_V@/$(V)/
156 /^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
157 /^AUTO_DEPEND *=/s/@AUTO_DEPEND@/yes/
158 /^PAXCTL_if_present *=/s/=.*$/=@Rem/
159 /^lisp\.mk:/,/^$/c\
160 lisp.mk: $(lispsource)/loadup.el\
161         @rm -f $@\
162         ${AM_V_GEN}printf 'shortlisp = \\n' > $@\
163         ${AM_V_GEN}sed -n 's/^[ \t]*(load "\([^"]*\)".*/\1/p' $< | sed -e "s/$/.elc \/" -e "s/\.el\.elc/.el/" >> $@\
164         ${AM_V_GEN}djecho ""  >> $@
168 /^      [       ]*\$(AM_V_at)\$(libsrc)\/make-docfile -d/s!make-docfile!make-docfile -o $(etc)/DOC!
169 / > \$(etc)\/DOC *$/s/ >.*$//
170 /^      [       ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-docfile.*>.*globals.tmp/s!make-docfile!make-docfile -o globals.tmp!
171 /^      [       ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-doc/s!>.*$!!
172 /^\$(libsrc)\/make-docfile\$(EXEEXT): /i\
173         cd ../src
174 /^\$(leimdir)\/leim-list.el: /s/bootstrap-emacs\$(EXEEXT)/b-emacs$(EXEEXT)/
175 /^      if test -f/,/^  fi$/c\
176         command.com /c if exist .gdbinit rm -f _gdbinit
177 /^       *\$(PAXCTL_if_present) -zex/d
178 /^       *ln /s/ln /cp /
179 /^       *\$(SETFATTR_if_present) -n/d
180 /^      fi/d
181 /^       *\$(RUN_TEMACS) /i\
182         stubedit temacs.exe minstack=1024k
183 /^       *LC_ALL=C \$(RUN_TEMACS)/i\
184         stubedit temacs.exe minstack=1024k
185 /^       *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
186 /-batch -l loadup/a\
187         stubify emacs\
188         stubedit emacs.exe minstack=3072k
189 s/ @true *$/ @rem/
190 s/^     [^      ]*move-if-change /      update /
191 /^      [^      ]*echo[         ][      ]*timestamp/s/echo /djecho /
192 /^      .*djecho timestamp/a\
193         @rm -f globals.tmp
194 /^       *@\$(MKDEPDIR) *$/d
195 /^      mv \.\/\.gdbinit/d
196 /^      if test -f/,/^  fi$/c\
197         command.com /c if exist .gdbinit rm -f _gdbinit
198 /^      #/d
199 /^      @: /d
200 /^      -\{0,1\} *ln /s/ln /cp /
201 /^[     ]touch /s/touch/djecho $@ >/
202 s/@YMF_PASS_LDFLAGS@/flags/
203 s/@PRE_EDIT_LDFLAGS@//
204 s/@POST_EDIT_LDFLAGS@//
205 s/bootstrap-emacs/b-emacs/
206 s/bootstrap-temacs/b-temacs/
207 s/bootstrap-doc/b-doc/
208 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
209 s/echo.*buildobj.lst/dj&/
210 / --load loadup bootstrap/a\
211         stubify emacs
212 /^      mv -f emacs/a\
213         stubedit b-emacs.exe minstack=3072k\
214         djecho bootlisp > bootlisp
215 /^      -\{0,1\}rm -f/s/\\#/#/
216 /^      echo.* buildobj.h/s|echo |djecho |
217 /^buildobj\.h:/,/^       *\$(AM_V_at)mv /{
218   /^     *\$(AM_V_GEN)for /,/^   *done /c\
219         djecho "$(ALLOBJS)" | sed -e 's/^ */"/' -e 's/ *$$/"/' -e 's/  */", "/g' >>$@.tmp
221 # Remove or replace dependencies we cannot have
222 /^\.PRECIOUS: /s!\.\./config.status !!
223 /^\.\.\/config.status: /d
224 /^Makefile: /s!\.\./config.status !!
225 /^\$(top_srcdir)\/aclocal\.m4 /,/^doc\.o:/c\
227 doc.o: buildobj.h
228 # Make the GCC command line fit one screen line
229 /^[     ][      ]*\$(GNUSTEP_CFLAGS)/d
230 /^[     ][      ]*\$(GCONF_CFLAGS)/d
231 /^[     ][      ]*\$(LIBGNUTLS_CFLAGS)/d
232 s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) //
233 s/ \$(C_SWITCH_X_SITE)//
234 s/ \$(DBUS_CFLAGS)//
235 s/ \$(PNG_CFLAGS) //
236 s/ \$(XINERAMA_CFLAGS)//
237 s/ \$(XFIXES_CFLAGS)//
238 s/ \$(FREETYPE_CFLAGS)//
239 s/ \$(FONTCONFIG_CFLAGS)//
240 s| -I\$(srcdir)/\.\./lib||
241 s| -I\$(top_srcdir)/lib||
242 # Add our local inttypes.h to prerequisites where needed
243 /^lread\.o:/s|lread\.c|& ../msdos/inttypes.h|
244 /^       *test "X/d