1 # -sed1v2.inp-----------------------------------------------------------
2 # Configuration script for src/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
6 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
8 # This file is part of GNU Emacs.
10 # This file is free software; as a special exception, the author gives
11 # unlimited permission to copy and/or distribute it, with or without
12 # modifications, as long as this notice is preserved.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 # ----------------------------------------------------------------------
25 /^srcdir *=/s/@[^@\n]*@/./
26 /^abs_builddir *=/s|@abs_builddir@|../src|
27 /^VPATH *=/s/@[^@\n]*@/./
28 /^CC *=/s/@[^@\n]*@/gcc/
29 /^CPP *=/s/@[^@\n]*@/gcc -e/
30 /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
31 /^ALL_CFLAGS *=/s/@[^@\n]*@//g
32 /^CPPFLAGS *=/s/@[^@\n]*@//
33 /^LDFLAGS *=/s/@[^@\n]*@//
34 /^LIBS *=/s/@[^@\n]*@//
38 /^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/
39 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
40 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
41 /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
42 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
43 /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@//
44 /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
45 /^PROFILING_LDFLAGS *=/s/@PROFILING_LDFLAGS@//
46 #/^LD_SWITCH_X_SITE *=/s/@LD_SWITCH_X_SITE@//
47 /^LD_SWITCH_SYSTEM_TEMACS *=/s/@LD_SWITCH_SYSTEM_TEMACS@//
48 /^LD_SWITCH_X_SITE_AUX *=/s/@LD_SWITCH_X_SITE_AUX@//
49 /^LD_SWITCH_X_SITE_AUX_RPATH *=/s/@LD_SWITCH_X_SITE_AUX_RPATH@//
50 /^LD_SWITCH_SYSTEM *=/s/@LD_SWITCH_SYSTEM@//
51 /^TEMACS_LDFLAGS2 *=/s/@TEMACS_LDFLAGS2@/$(LDFLAGS)/
52 /^LIBS_SYSTEM *=/s/@LIBS_SYSTEM@//
53 /^LIB_GCC *=/s/@LIB_GCC@//
54 /^LD *=/s/@LINKER@/$(CC)/
55 /^LIB_STANDARD *=/s/@LIB_STANDARD@//
56 /^LIB_MATH *=/s/@LIB_MATH@/-lm/
57 /^LIBTIFF *=/s/@LIBTIFF@//
58 /^LIBJPEG *=/s/@LIBJPEG@//
59 /^LIBPNG *=/s/@LIBPNG@//
60 /^LIBGIF *=/s/@LIBGIF@//
61 /^LIBXPM *=/s/@LIBXPM@//
62 /^XFT_LIBS *=/s/@XFT_LIBS@//
63 /^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
64 /^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
65 /^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
66 /^FREETYPE_LIBS *=/s/@FREETYPE_LIBS@//
67 /^LIBOTF_CFLAGS *=/s/@LIBOTF_CFLAGS@//
68 /^LIBOTF_LIBS *=/s/@LIBOTF_LIBS@//
69 /^M17N_FLT_CFLAGS *=/s/@M17N_FLT_CFLAGS@//
70 /^M17N_FLT_LIBS *=/s/@M17N_FLT_LIBS@//
71 /^DBUS_CFLAGS *=/s/@DBUS_CFLAGS@//
72 /^DBUS_LIBS *=/s/@DBUS_LIBS@//
73 /^DBUS_OBJ *=/s/@DBUS_OBJ@//
74 /^GCONF_CFLAGS *=/s/@GCONF_CFLAGS@//
75 /^GCONF_LIBS *=/s/@GCONF_LIBS@//
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@//
86 /^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
87 /^LIBSOUND *=/s/@LIBSOUND@//
88 /^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
89 /^RSVG_LIBS *=/s/@RSVG_LIBS@//
90 /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
91 /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@//
92 /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@//
93 /^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
94 /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
95 /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
96 /^MSDOS_SUPPORT *=/s/= */= $(MSDOS_SUPPORT_REAL)/
97 /^ns_appdir *=/s/@ns_appdir@//
98 /^ns_appbindir *=/s/@ns_appbindir@//
99 /^ns_appsrc *=/s/@ns_appsrc@//
100 /^NS_OBJ *=/s/@NS_OBJ@//
101 /^NS_SUPPORT *=/s/@NS_SUPPORT@//
102 /^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@//
103 /^LIBRESOLV *=/s/@LIBRESOLV@//
104 /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
105 /^GETLOADAVG_LIBS *=/s/@[^@\n]*@//
106 /^START_FILES *=/s/@START_FILES@//
107 /^OTHER_FILES *=/s/@OTHER_FILES@//
108 /^XMENU_OBJ *=/s/@XMENU_OBJ@/xmenu.o/
109 /^FONT_OBJ *=/s/@FONT_OBJ@//
110 /^MOUSE_SUPPORT *=/s/@MOUSE_SUPPORT@/$(REAL_MOUSE_SUPPORT)/
111 /^TOOLTIP_SUPPORT *=/s/@TOOLTIP_SUPPORT@//
112 /^WINDOW_SUPPORT *=/s/@WINDOW_SUPPORT@//
113 /^LIBGPM *=/s/@LIBGPM@//
114 /^EXEEXT *=/s/@EXEEXT@/.exe/
115 /^OLDXMENU *=/s/@OLDXMENU@/nothing/
116 /^LIBXMENU *=/s/@LIBXMENU@//
117 /^LIBX_OTHER *=/s/@LIBX_OTHER@//
118 /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
119 /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
120 /^RALLOC_OBJ *=/s/@RALLOC_OBJ@/ralloc.o/
121 /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
122 /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
123 /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/
124 /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/
125 /^DEPFLAGS *=/s/@DEPFLAGS@//
126 /^MKDEPDIR *=/s/@MKDEPDIR@//
127 /^version *=/s/@[^@\n]*@//
128 /^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
129 /^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
130 /^@SET_MAKE@$/s/@SET_MAKE@//
131 /^.\${libsrc}make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC!
132 /^.\${libsrc}make-doc/s!>.*$!!
134 /^ if test -f/,/^ fi$/c\
135 command.com /c if exist .gdbinit rm -f _gdbinit
136 /^ if test "\${CANNOT_DUMP}" =/,/^ else /d
138 /^ LC_ALL=C \$(RUN_TEMACS)/i\
139 stubedit temacs.exe minstack=1024k
140 /^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
143 stubedit emacs.exe minstack=2048k
146 /^RUN_TEMACS *=/s|`/bin/pwd`|.|
147 /^ *@\$(MKDEPDIR) *$/d
148 /^ mv \.\/\.gdbinit/d
149 /^ if test -f/,/^ fi$/c\
150 command.com /c if exist .gdbinit rm -f _gdbinit
152 /^ cd.*make-docfile/s!$!; cd ${dot}${dot}/src!
154 /^ -\{0,1\} *ln -/s/ln -f/cp -pf/
155 /^[ ]touch /s/touch/djecho $@ >/
156 s/@YMF_PASS_LDFLAGS@/flags/
159 s/@PRE_EDIT_LDFLAGS@//
160 s/@POST_EDIT_LDFLAGS@//
161 s/bootstrap-emacs/b-emacs/
162 s/bootstrap-temacs/b-temacs/
163 s/bootstrap-doc/b-doc/
164 /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
165 s/echo.*buildobj.lst/dj&/
166 / --load loadup bootstrap/i\
167 stubedit temacs.exe minstack=1024k
168 / --load loadup bootstrap/a\
171 stubedit b-emacs.exe minstack=3072k\
172 djecho bootlisp > bootlisp
173 /^ -\{0,1\}rm -f/s/\\#/#/
174 /^ @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src|
175 /^ *THEFILE=/s|$|\; cd ../src|
176 /^ echo.* buildobj.h/s|echo |djecho |
178 # arch-tag: c7e3aacb-4162-460e-99f9-4252bca68d2c