diff options
| author | Eli Zaretskii | 2011-02-19 21:56:29 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-02-19 21:56:29 +0200 |
| commit | 615d868ee6add5d37db574d266f0d166c2f16bb8 (patch) | |
| tree | abf530e19e9273272afaa4064ffd74ea67857dd5 /msdos | |
| parent | 67ab0163d67fbfeb41c37c8a259f27eeef965520 (diff) | |
| parent | 83627c032a6c07c15cc0434b23514f34d9583685 (diff) | |
| download | emacs-615d868ee6add5d37db574d266f0d166c2f16bb8.tar.gz emacs-615d868ee6add5d37db574d266f0d166c2f16bb8.zip | |
Adapt and fix the MS-DOS port due to gnulib imports.
msdos/depfiles.bat: New file.
msdos/sedlibmk.inp: New file.
msdos/sedlibcf.inp: New file.
msdos/sedleim.inp (RUN_EMACS): Rename from RUN-EMACS.
(BUILT_EMACS): Rename from BUILT-EMACS.
msdos/sed6.inp (MAKEINFO): Edit to "makeinfo".
(ENVADD): Adjust to MAKEINFO_OPTS.
(texinputdir): Don't edit.
msdos/sed3v2.inp (-DVERSION): Edit out.
(LOADLIBES): Don't edit to empty.
msdos/sed2v2.inp: Remove workaround for the "#if ! HAVE_MKTIME ||
BROKEN_MKTIME" stuff -- it's no longer in src/config.in.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE__BOOL): Edit to 1.
(VERSION, inline, restrict): Edit for DJGPP.
(my_strftime): Edit to nstrftime.
msdos/sed1v2.inp (NS_OBJC_OBJ): Edit to empty.
(@true): Edit to "@rem".
(move-if-change): Edit to "update".
(echo): Edit to "djecho".
(cd $(lib) && ...): Edit to "$(MAKE) -C ...".
(LIBOBJS): Edit to empty.
($(libsrc)/make-docfile): Two new edits, one each for every
invocation of make-docfile.
(move-if-change): Fix edit.
Remove some unused switches from $(ALL_CFLAGS), to make the GCC
command line shorter.
msdos/mainmake.v2 (version): Remove, no longer needed (config.in
defines VERSION).
(all): Add lib.
(lib): New target and recipe.
(lib-src): Depend on lib.
(src): Depend on lib and lib-src.
(clean, mostlyclean, distclean, maintainer-clean, extraclean)
(bootstrap-clean): Recurse into lib.
(lib, lib-src, src): Specify "all" as an explicit target.
.bzrignore: Ignore cxxdefs.h and lib/*.in-h files.
Add lib/deps/.
config.bat: Configure in `lib'.
Generate *.Po files in lib/deps.
src/termcap.c (tputs): Don't declare baud_rate.
src/s/msdos.h (strtold): Define to _strtold.
Diffstat (limited to 'msdos')
| -rw-r--r-- | msdos/ChangeLog | 47 | ||||
| -rw-r--r-- | msdos/depfiles.bat | 25 | ||||
| -rw-r--r-- | msdos/mainmake.v2 | 30 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 22 | ||||
| -rw-r--r-- | msdos/sed2v2.inp | 17 | ||||
| -rw-r--r-- | msdos/sed3v2.inp | 3 | ||||
| -rw-r--r-- | msdos/sed6.inp | 8 | ||||
| -rw-r--r-- | msdos/sedleim.inp | 4 | ||||
| -rw-r--r-- | msdos/sedlibcf.inp | 22 | ||||
| -rw-r--r-- | msdos/sedlibmk.inp | 312 |
10 files changed, 461 insertions, 29 deletions
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index b9b829c4554..f1cdf510a06 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,3 +1,50 @@ | |||
| 1 | 2011-02-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * depfiles.bat: New file. | ||
| 4 | |||
| 5 | * sedlibmk.inp: New file. | ||
| 6 | |||
| 7 | * sedlibcf.inp: New file. | ||
| 8 | |||
| 9 | * sedleim.inp (RUN_EMACS): Rename from RUN-EMACS. | ||
| 10 | (BUILT_EMACS): Rename from BUILT-EMACS. | ||
| 11 | |||
| 12 | * sed6.inp (MAKEINFO): Edit to "makeinfo". | ||
| 13 | (ENVADD): Adjust to MAKEINFO_OPTS. | ||
| 14 | (texinputdir): Don't edit. | ||
| 15 | |||
| 16 | * sed3v2.inp (-DVERSION): Edit out. | ||
| 17 | (LOADLIBES): Don't edit to empty. | ||
| 18 | |||
| 19 | * sed2v2.inp: Remove workaround for the "#if ! HAVE_MKTIME || | ||
| 20 | BROKEN_MKTIME" stuff -- it's no longer in src/config.in. | ||
| 21 | (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV) | ||
| 22 | (HAVE__BOOL): Edit to 1. | ||
| 23 | (VERSION, inline, restrict): Edit for DJGPP. | ||
| 24 | (my_strftime): Edit to nstrftime. | ||
| 25 | |||
| 26 | * sed1v2.inp (NS_OBJC_OBJ): Edit to empty. | ||
| 27 | (@true): Edit to "@rem". | ||
| 28 | (move-if-change): Edit to "update". | ||
| 29 | (echo): Edit to "djecho". | ||
| 30 | (cd $(lib) && ...): Edit to "$(MAKE) -C ...". | ||
| 31 | (LIBOBJS): Edit to empty. | ||
| 32 | ($(libsrc)/make-docfile): Two new edits, one each for every | ||
| 33 | invocation of make-docfile. | ||
| 34 | (move-if-change): Fix edit. | ||
| 35 | Remove some unused switches from $(ALL_CFLAGS), to make the GCC | ||
| 36 | command line shorter. | ||
| 37 | |||
| 38 | * mainmake.v2 (version): Remove, no longer needed (config.in | ||
| 39 | defines VERSION). | ||
| 40 | (all): Add lib. | ||
| 41 | (lib): New target and recipe. | ||
| 42 | (lib-src): Depend on lib. | ||
| 43 | (src): Depend on lib and lib-src. | ||
| 44 | (clean, mostlyclean, distclean, maintainer-clean, extraclean) | ||
| 45 | (bootstrap-clean): Recurse into lib. | ||
| 46 | (lib, lib-src, src): Specify "all" as an explicit target. | ||
| 47 | |||
| 1 | 2011-01-08 Glenn Morris <rgm@gnu.org> | 48 | 2011-01-08 Glenn Morris <rgm@gnu.org> |
| 2 | 49 | ||
| 3 | * sedleim.inp (RUN-EMACS): -batch implies --no-init-file. | 50 | * sedleim.inp (RUN-EMACS): -batch implies --no-init-file. |
diff --git a/msdos/depfiles.bat b/msdos/depfiles.bat new file mode 100644 index 00000000000..22fcfc3dcd6 --- /dev/null +++ b/msdos/depfiles.bat | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | @echo off | ||
| 2 | rem ---------------------------------------------------------------------- | ||
| 3 | rem Auxiliary script for MSDOS, run by ../config.bat | ||
| 4 | rem Copyright (C) 2011 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | rem This file is part of GNU Emacs. | ||
| 7 | |||
| 8 | rem GNU Emacs is free software: you can redistribute it and/or modify | ||
| 9 | rem it under the terms of the GNU General Public License as published by | ||
| 10 | rem the Free Software Foundation, either version 3 of the License, or | ||
| 11 | rem (at your option) any later version. | ||
| 12 | |||
| 13 | rem GNU Emacs is distributed in the hope that it will be useful, | ||
| 14 | rem but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | rem GNU General Public License for more details. | ||
| 17 | |||
| 18 | rem You should have received a copy of the GNU General Public License | ||
| 19 | rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/. | ||
| 20 | |||
| 21 | rem ---------------------------------------------------------------------- | ||
| 22 | |||
| 23 | echo %1 | sed -e "s,^,@echo # dummy > deps\\," -e "s,\.c,.Po," > tdepfile.bat | ||
| 24 | call tdepfile | ||
| 25 | del tdepfile.bat | ||
diff --git a/msdos/mainmake.v2 b/msdos/mainmake.v2 index 2e389b15bc9..1aea06d2a4d 100644 --- a/msdos/mainmake.v2 +++ b/msdos/mainmake.v2 | |||
| @@ -63,9 +63,6 @@ MAKESHELL=/xyzzy/command | |||
| 63 | # Generate a full pathname of the top-level installation directory | 63 | # Generate a full pathname of the top-level installation directory |
| 64 | top_srcdir := $(subst \,/,$(shell cd)) | 64 | top_srcdir := $(subst \,/,$(shell cd)) |
| 65 | 65 | ||
| 66 | # Find out which version of Emacs this is. | ||
| 67 | version := ${shell sed -n -e '/^static const char emacs_version/s/^[^"]*\("[^"]*"\).*/\1/p' src/emacs.c} | ||
| 68 | |||
| 69 | # Q: Do we need to bootstrap? | 66 | # Q: Do we need to bootstrap? |
| 70 | # A: Only if we find admin/admin.el, i.e. we are building out of | 67 | # A: Only if we find admin/admin.el, i.e. we are building out of |
| 71 | # a VCS-checkout (not a release) and src/b-emacs.exe does not exist. | 68 | # a VCS-checkout (not a release) and src/b-emacs.exe does not exist. |
| @@ -82,11 +79,16 @@ endif | |||
| 82 | # compiled lisp files are part of the distribution. (If we are | 79 | # compiled lisp files are part of the distribution. (If we are |
| 83 | # bootstrapping, the src target will run Make in `lisp' as well.) | 80 | # bootstrapping, the src target will run Make in `lisp' as well.) |
| 84 | # leim is not included because it is part of the src target. | 81 | # leim is not included because it is part of the src target. |
| 85 | all: lib-src src emacs misc lispref lispintro | 82 | all: lib lib-src src emacs misc lispref lispintro |
| 83 | |||
| 84 | lib: FRC | ||
| 85 | cd lib | ||
| 86 | $(MAKE) top_srcdir=${top_srcdir} all | ||
| 87 | cd .. | ||
| 86 | 88 | ||
| 87 | lib-src: FRC | 89 | lib-src: lib FRC |
| 88 | cd lib-src | 90 | cd lib-src |
| 89 | $(MAKE) top_srcdir=${top_srcdir} version=${version} | 91 | $(MAKE) top_srcdir=${top_srcdir} all |
| 90 | cd .. | 92 | cd .. |
| 91 | 93 | ||
| 92 | # Pass to src/Makefile.in an additional BOOTSTRAPEMACS variable which | 94 | # Pass to src/Makefile.in an additional BOOTSTRAPEMACS variable which |
| @@ -98,9 +100,9 @@ lib-src: FRC | |||
| 98 | # file src/foo.c forces dumping a new bootstrap-emacs, then re-byte-compiling | 100 | # file src/foo.c forces dumping a new bootstrap-emacs, then re-byte-compiling |
| 99 | # all preloaded elisp files, and only then dump the actual src/emacs, which | 101 | # all preloaded elisp files, and only then dump the actual src/emacs, which |
| 100 | # is not wrong, but is overkill in 99.99% of the cases. | 102 | # is not wrong, but is overkill in 99.99% of the cases. |
| 101 | src: FRC | 103 | src: lib lib-src FRC |
| 102 | cd src | 104 | cd src |
| 103 | $(MAKE) top_srcdir=${top_srcdir} BOOTSTRAPEMACS="${boot}" | 105 | $(MAKE) top_srcdir=${top_srcdir} BOOTSTRAPEMACS="${boot}" all |
| 104 | djecho -s '/-geometry/s,^.*,set environment HOME $(top_srcdir),' \ | 106 | djecho -s '/-geometry/s,^.*,set environment HOME $(top_srcdir),' \ |
| 105 | '/environment *TERM/s/^.*/set environment TERM internal/' \ | 107 | '/environment *TERM/s/^.*/set environment TERM internal/' \ |
| 106 | >gdb.sed | 108 | >gdb.sed |
| @@ -168,6 +170,9 @@ check: | |||
| 168 | @echo "We don't have any tests for GNU Emacs yet." | 170 | @echo "We don't have any tests for GNU Emacs yet." |
| 169 | 171 | ||
| 170 | clean mostlyclean: | 172 | clean mostlyclean: |
| 173 | cd lib | ||
| 174 | $(MAKE) $(MFLAGS) $@ | ||
| 175 | cd .. | ||
| 171 | cd lib-src | 176 | cd lib-src |
| 172 | $(MAKE) $(MFLAGS) $@ | 177 | $(MAKE) $(MFLAGS) $@ |
| 173 | cd .. | 178 | cd .. |
| @@ -199,6 +204,9 @@ distclean maintainer-clean: FRC | |||
| 199 | $(MAKE) $(MFLAGS) $@ | 204 | $(MAKE) $(MFLAGS) $@ |
| 200 | if exist bootlisp rm -f bootlisp | 205 | if exist bootlisp rm -f bootlisp |
| 201 | cd .. | 206 | cd .. |
| 207 | cd lib | ||
| 208 | $(MAKE) $(MFLAGS) $@ | ||
| 209 | cd .. | ||
| 202 | cd lib-src | 210 | cd lib-src |
| 203 | $(MAKE) $(MFLAGS) $@ | 211 | $(MAKE) $(MFLAGS) $@ |
| 204 | cd .. | 212 | cd .. |
| @@ -228,6 +236,9 @@ extraclean: | |||
| 228 | cd src | 236 | cd src |
| 229 | $(MAKE) $(MFLAGS) $@ | 237 | $(MAKE) $(MFLAGS) $@ |
| 230 | cd .. | 238 | cd .. |
| 239 | cd lib | ||
| 240 | $(MAKE) $(MFLAGS) $@ | ||
| 241 | cd .. | ||
| 231 | cd lib-src | 242 | cd lib-src |
| 232 | $(MAKE) $(MFLAGS) $@ | 243 | $(MAKE) $(MFLAGS) $@ |
| 233 | cd .. | 244 | cd .. |
| @@ -257,6 +268,9 @@ extraclean: | |||
| 257 | .PHONY: bootstrap | 268 | .PHONY: bootstrap |
| 258 | 269 | ||
| 259 | bootstrap-clean: FRC | 270 | bootstrap-clean: FRC |
| 271 | cd lib | ||
| 272 | $(MAKE) $(MFLAGS) $@ | ||
| 273 | cd .. | ||
| 260 | cd src | 274 | cd src |
| 261 | $(MAKE) $(MFLAGS) $@ | 275 | $(MAKE) $(MFLAGS) $@ |
| 262 | cd .. | 276 | cd .. |
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index 1cfd4f803c2..2afce070e30 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -35,7 +35,7 @@ s/\.h\.in/.h-in/ | |||
| 35 | /^LIBES *=/,/^ *$/ { | 35 | /^LIBES *=/,/^ *$/ { |
| 36 | s/@[^@\n]*@//g | 36 | s/@[^@\n]*@//g |
| 37 | } | 37 | } |
| 38 | /^LIBOBJS *=/s/@[^@\n]*@/getloadavg.o/ | 38 | /^LIBOBJS *=/s/@[^@\n]*@// |
| 39 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// | 39 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// |
| 40 | /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@// | 40 | /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@// |
| 41 | /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@// | 41 | /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@// |
| @@ -98,6 +98,7 @@ s/\.h\.in/.h-in/ | |||
| 98 | /^ns_appbindir *=/s/@ns_appbindir@// | 98 | /^ns_appbindir *=/s/@ns_appbindir@// |
| 99 | /^ns_appsrc *=/s/@ns_appsrc@// | 99 | /^ns_appsrc *=/s/@ns_appsrc@// |
| 100 | /^NS_OBJ *=/s/@NS_OBJ@// | 100 | /^NS_OBJ *=/s/@NS_OBJ@// |
| 101 | /^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@// | ||
| 101 | /^NS_SUPPORT *=/s/@NS_SUPPORT@// | 102 | /^NS_SUPPORT *=/s/@NS_SUPPORT@// |
| 102 | /^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@// | 103 | /^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@// |
| 103 | /^LIBRESOLV *=/s/@LIBRESOLV@// | 104 | /^LIBRESOLV *=/s/@LIBRESOLV@// |
| @@ -130,7 +131,8 @@ s/\.h\.in/.h-in/ | |||
| 130 | /^M_FILE *=/s!@M_FILE@!$(srcdir)/m/intel386.h! | 131 | /^M_FILE *=/s!@M_FILE@!$(srcdir)/m/intel386.h! |
| 131 | /^S_FILE *=/s!@S_FILE@!$(srcdir)/s/msdos.h! | 132 | /^S_FILE *=/s!@S_FILE@!$(srcdir)/s/msdos.h! |
| 132 | /^@SET_MAKE@$/s/@SET_MAKE@// | 133 | /^@SET_MAKE@$/s/@SET_MAKE@// |
| 133 | /^.\$(libsrc)\/make-docfile.*>/s!make-docfile!make-docfile -o ../etc/DOC! | 134 | /^.\$(libsrc)\/make-docfile.*>.*\/DOC/s!make-docfile!make-docfile -o ../etc/DOC! |
| 135 | /^.\$(libsrc)\/make-docfile.*>.*gl-tmp/s!make-docfile!make-docfile -o gl-tmp! | ||
| 134 | /^.\$(libsrc)\/make-doc/s!>.*$!! | 136 | /^.\$(libsrc)\/make-doc/s!>.*$!! |
| 135 | /^[ ]*$/d | 137 | /^[ ]*$/d |
| 136 | /^ if test -f/,/^ fi$/c\ | 138 | /^ if test -f/,/^ fi$/c\ |
| @@ -145,6 +147,13 @@ s/\.h\.in/.h-in/ | |||
| 145 | stubedit emacs.exe minstack=2048k | 147 | stubedit emacs.exe minstack=2048k |
| 146 | s/ || exit 1\; \\$// | 148 | s/ || exit 1\; \\$// |
| 147 | s/ || true\; \\$// | 149 | s/ || true\; \\$// |
| 150 | s/ @true *$/ @rem/ | ||
| 151 | s/^ [^ ]*move-if-change / update / | ||
| 152 | /^ echo[ ][ ]*timestamp/s/echo /djecho / | ||
| 153 | /^ .*djecho timestamp/a\ | ||
| 154 | @rm -f gl-tmp | ||
| 155 | /^ cd \$(lib) && \$(MAKE)/c\ | ||
| 156 | $(MAKE) $(MFLAGS) -C $(lib) libgnu.a | ||
| 148 | /^RUN_TEMACS *=/s|`/bin/pwd`|.| | 157 | /^RUN_TEMACS *=/s|`/bin/pwd`|.| |
| 149 | /^ *@\$(MKDEPDIR) *$/d | 158 | /^ *@\$(MKDEPDIR) *$/d |
| 150 | /^ mv \.\/\.gdbinit/d | 159 | /^ mv \.\/\.gdbinit/d |
| @@ -176,4 +185,11 @@ s/echo.*buildobj.lst/dj&/ | |||
| 176 | /^ @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src| | 185 | /^ @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src| |
| 177 | /^ *THEFILE=/s|$|\; cd ../src| | 186 | /^ *THEFILE=/s|$|\; cd ../src| |
| 178 | /^ echo.* buildobj.h/s|echo |djecho | | 187 | /^ echo.* buildobj.h/s|echo |djecho | |
| 179 | 188 | # Make the GCC command line fit one screen line | |
| 189 | /^[ ][ ]*\$(C_SWITCH_X_SYSTEM)/d | ||
| 190 | /^[ ][ ]*\$(GCONF_CFLAGS)/d | ||
| 191 | /^[ ][ ]*\$(LIBGNUTLS_CFLAGS)/d | ||
| 192 | s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) // | ||
| 193 | s/ \$(C_SWITCH_X_SITE)// | ||
| 194 | s/ \$(DBUS_CFLAGS)// | ||
| 195 | s| -I\$(srcdir)/../lib|| | ||
diff --git a/msdos/sed2v2.inp b/msdos/sed2v2.inp index 98e398053e3..470c1bf60a6 100644 --- a/msdos/sed2v2.inp +++ b/msdos/sed2v2.inp | |||
| @@ -34,6 +34,8 @@ | |||
| 34 | /^#undef HAVE_FREXP *$/s/^.*$/#define HAVE_FREXP 1/ | 34 | /^#undef HAVE_FREXP *$/s/^.*$/#define HAVE_FREXP 1/ |
| 35 | /^#undef HAVE_FMOD *$/s/^.*$/#define HAVE_FMOD 1/ | 35 | /^#undef HAVE_FMOD *$/s/^.*$/#define HAVE_FMOD 1/ |
| 36 | /^#undef HAVE_RINT *$/s/^.*$/#define HAVE_RINT 1/ | 36 | /^#undef HAVE_RINT *$/s/^.*$/#define HAVE_RINT 1/ |
| 37 | /^#undef HAVE_ATTRIBUTE_ALIGNED *$/s/^.*$/#define HAVE_ATTRIBUTE_ALIGNED 1/ | ||
| 38 | /^#undef HAVE_C99_STRTOLD *$/s/^.*$/#define HAVE_C99_STRTOLD 1/ | ||
| 37 | /^#undef HAVE_CBRT *$/s/^.*$/#define HAVE_CBRT 1/ | 39 | /^#undef HAVE_CBRT *$/s/^.*$/#define HAVE_CBRT 1/ |
| 38 | /^#undef HAVE_DIFFTIME *$/s/^.*$/#define HAVE_DIFFTIME 1/ | 40 | /^#undef HAVE_DIFFTIME *$/s/^.*$/#define HAVE_DIFFTIME 1/ |
| 39 | /^#undef HAVE_FPATHCONF *$/s/^.*$/#define HAVE_FPATHCONF 1/ | 41 | /^#undef HAVE_FPATHCONF *$/s/^.*$/#define HAVE_FPATHCONF 1/ |
| @@ -56,8 +58,14 @@ | |||
| 56 | /^#undef PACKAGE_STRING/s/^.*$/#define PACKAGE_STRING ""/ | 58 | /^#undef PACKAGE_STRING/s/^.*$/#define PACKAGE_STRING ""/ |
| 57 | /^#undef PACKAGE_TARNAME/s/^.*$/#define PACKAGE_TARNAME ""/ | 59 | /^#undef PACKAGE_TARNAME/s/^.*$/#define PACKAGE_TARNAME ""/ |
| 58 | /^#undef PACKAGE_VERSION/s/^.*$/#define PACKAGE_VERSION ""/ | 60 | /^#undef PACKAGE_VERSION/s/^.*$/#define PACKAGE_VERSION ""/ |
| 61 | /^#undef VERSION/s/^.*$/#define VERSION "24.0.50"/ | ||
| 62 | /^#undef HAVE_DECL_GETENV/s/^.*$/#define HAVE_DECL_GETENV 1/ | ||
| 59 | /^#undef SYS_SIGLIST_DECLARED/s/^.*$/#define SYS_SIGLIST_DECLARED 1/ | 63 | /^#undef SYS_SIGLIST_DECLARED/s/^.*$/#define SYS_SIGLIST_DECLARED 1/ |
| 60 | /^#undef HAVE_DIRENT_H/s/^.*$/#define HAVE_DIRENT_H 1/ | 64 | /^#undef HAVE_DIRENT_H/s/^.*$/#define HAVE_DIRENT_H 1/ |
| 65 | /^#undef HAVE__BOOL/s/^.*$/#define HAVE__BOOL 1/ | ||
| 66 | /^#undef inline/s/^.*$/#define inline __inline__/ | ||
| 67 | /^#undef my_strftime/s/^.*$/#define my_strftime nstrftime/ | ||
| 68 | /^#undef restrict/s/^.*$/#define restrict __restrict/ | ||
| 61 | 69 | ||
| 62 | /^#undef GNU_MALLOC *$/s/^.*$/#define GNU_MALLOC 1/ | 70 | /^#undef GNU_MALLOC *$/s/^.*$/#define GNU_MALLOC 1/ |
| 63 | /^#undef REL_ALLOC *$/s/^.*$/#define REL_ALLOC 1/ | 71 | /^#undef REL_ALLOC *$/s/^.*$/#define REL_ALLOC 1/ |
| @@ -69,15 +77,6 @@ s!^#undef config_opsysfile *$!#define config_opsysfile "s/msdos.h"! | |||
| 69 | s!^#undef config_machfile *$!#define config_machfile "m/intel386.h"! | 77 | s!^#undef config_machfile *$!#define config_machfile "m/intel386.h"! |
| 70 | s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/ | 78 | s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/ |
| 71 | s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/ | 79 | s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/ |
| 72 | # ------------------------------------------------------------ | ||
| 73 | # Without this ifndef, gcc -E -traditional barfs with GCC 3.0 | ||
| 74 | # on the line which says if ! HAVE_MKTIME... | ||
| 75 | # ------------------------------------------------------------ | ||
| 76 | /^#if ! HAVE_MKTIME || BROKEN_MKTIME/i\ | ||
| 77 | #ifndef __DJGPP__ | ||
| 78 | /^#define mktime emacs_mktime/a\ | ||
| 79 | #endif | ||
| 80 | |||
| 81 | /^#undef HAVE_STDINT_H/c\ | 80 | /^#undef HAVE_STDINT_H/c\ |
| 82 | #if __DJGPP__ > 2 || __DJGPP_MINOR__ > 3\ | 81 | #if __DJGPP__ > 2 || __DJGPP_MINOR__ > 3\ |
| 83 | #define HAVE_STDINT_H 1\ | 82 | #define HAVE_STDINT_H 1\ |
diff --git a/msdos/sed3v2.inp b/msdos/sed3v2.inp index 3a9d14a35af..346f4e07e77 100644 --- a/msdos/sed3v2.inp +++ b/msdos/sed3v2.inp | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | /^# DIST: /d | 18 | /^# DIST: /d |
| 19 | /^SHELL *=/s/^/# / | 19 | /^SHELL *=/s/^/# / |
| 20 | /^CC *=/s/=.*$/=gcc/ | 20 | /^CC *=/s/=.*$/=gcc/ |
| 21 | /-DVERSION=/s/@version@/\${version}/ | 21 | s/-DVERSION[^ ]* // |
| 22 | /^configname *=/s/=.*$/=msdos/ | 22 | /^configname *=/s/=.*$/=msdos/ |
| 23 | /^archlibdir *=/s!=.*$!=/emacs/bin! | 23 | /^archlibdir *=/s!=.*$!=/emacs/bin! |
| 24 | /^bindir *=/s!=.*$!=/emacs/bin! | 24 | /^bindir *=/s!=.*$!=/emacs/bin! |
| @@ -40,7 +40,6 @@ | |||
| 40 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// | 40 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// |
| 41 | /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@// | 41 | /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@// |
| 42 | /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@// | 42 | /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@// |
| 43 | /^LOADLIBES *=/s!=.*$!=! | ||
| 44 | /^ALLOCA *=/s!@ALLOCA@!! | 43 | /^ALLOCA *=/s!@ALLOCA@!! |
| 45 | /^EXEEXT *=/s!@EXEEXT@!! | 44 | /^EXEEXT *=/s!@EXEEXT@!! |
| 46 | /^GETOPT_H *=/s!@GETOPT_H@!getopt.h! | 45 | /^GETOPT_H *=/s!@GETOPT_H@!getopt.h! |
diff --git a/msdos/sed6.inp b/msdos/sed6.inp index 2c5f0273608..888b680a6ca 100644 --- a/msdos/sed6.inp +++ b/msdos/sed6.inp | |||
| @@ -18,13 +18,11 @@ | |||
| 18 | # ---------------------------------------------------------------------- | 18 | # ---------------------------------------------------------------------- |
| 19 | /^srcdir *=/s/@[^@\n]*@/./ | 19 | /^srcdir *=/s/@[^@\n]*@/./ |
| 20 | /^VPATH *=/s/@[^@\n]*@/./ | 20 | /^VPATH *=/s/@[^@\n]*@/./ |
| 21 | /^ENVADD/c\ | 21 | /^MAKEINFO *=/s/@[^@\n]*@/makeinfo/ |
| 22 | /^ENVADD/,/^$/c\ | ||
| 22 | ENVADD =\ | 23 | ENVADD =\ |
| 23 | export TEXINPUTS := $(srcdir)";"$(TEXINPUTS)\ | 24 | export TEXINPUTS := $(srcdir)";"$(TEXINPUTS)\ |
| 24 | export MAKEINFO := $(MAKEINFO) -I$(srcdir) | 25 | export MAKEINFO := $(MAKEINFO) $(MAKEINFO_OPTS) |
| 25 | /^texinputdir/c\ | ||
| 26 | texinputdir =\ | ||
| 27 | export texinputdir := $(srcdir)";"$(TEXINPUTS) | ||
| 28 | /^SHELL *=/s/^/# / | 26 | /^SHELL *=/s/^/# / |
| 29 | /^elisp.dvi:/,/^$/ { | 27 | /^elisp.dvi:/,/^$/ { |
| 30 | /^ *if \[ *\a${permuted_index}/,/^ *fi *$/c\ | 28 | /^ *if \[ *\a${permuted_index}/,/^ *fi *$/c\ |
diff --git a/msdos/sedleim.inp b/msdos/sedleim.inp index c2f7d845422..2d70695ebe6 100644 --- a/msdos/sedleim.inp +++ b/msdos/sedleim.inp | |||
| @@ -31,9 +31,9 @@ INSTALLDIR=. | |||
| 31 | s|\([ ]\)echo|\1djecho|g | 31 | s|\([ ]\)echo|\1djecho|g |
| 32 | /^ @true *$/d | 32 | /^ @true *$/d |
| 33 | 33 | ||
| 34 | /RUN-EMACS *=/,/^$/c\ | 34 | /RUN_EMACS *=/,/^$/c\ |
| 35 | export EMACSLOADPATH=${buildlisppath}\ | 35 | export EMACSLOADPATH=${buildlisppath}\ |
| 36 | RUN-EMACS = ${BUILT-EMACS} -batch --no-site-file | 36 | RUN_EMACS = ${BUILT_EMACS} -batch --no-site-file |
| 37 | 37 | ||
| 38 | /^ cd ../c\ | 38 | /^ cd ../c\ |
| 39 | ${MAKE} -C ../src ${MFLAGS} emacs | 39 | ${MAKE} -C ../src ${MFLAGS} emacs |
diff --git a/msdos/sedlibcf.inp b/msdos/sedlibcf.inp new file mode 100644 index 00000000000..17584a796f7 --- /dev/null +++ b/msdos/sedlibcf.inp | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # -sedlibcf.inp----------------------------------------------------------- | ||
| 2 | # Configuration script for lib/Makefile.in under DJGPP v2.x | ||
| 3 | # | ||
| 4 | # This script is run by config.bat to account for renaming of | ||
| 5 | # files whose names are invalid on DOS 8+3 filesystems. | ||
| 6 | # ---------------------------------------------------------------------- | ||
| 7 | # | ||
| 8 | # Copyright (C) 2011 Free Software Foundation, Inc. | ||
| 9 | # | ||
| 10 | # This file is part of GNU Emacs. | ||
| 11 | # | ||
| 12 | # This file is free software; as a special exception, the author gives | ||
| 13 | # unlimited permission to copy and/or distribute it, with or without | ||
| 14 | # modifications, as long as this notice is preserved. | ||
| 15 | # | ||
| 16 | # This program is distributed in the hope that it will be useful, | ||
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 19 | # | ||
| 20 | # ---------------------------------------------------------------------- | ||
| 21 | s/c++defs/cxxdefs/g | ||
| 22 | s/\([a-zA-Z0-9_]*\)\.in\.h/\1.in-h/g | ||
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp new file mode 100644 index 00000000000..b85b20f1491 --- /dev/null +++ b/msdos/sedlibmk.inp | |||
| @@ -0,0 +1,312 @@ | |||
| 1 | # -sedlibmk.inp----------------------------------------------------------- | ||
| 2 | # Configuration script for lib/Makefile under DJGPP v2.x | ||
| 3 | # ---------------------------------------------------------------------- | ||
| 4 | # | ||
| 5 | # Copyright (C) 2011 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 | # | ||
| 19 | # Replace @..@ constants. | ||
| 20 | /^\# @configure_input@/s!@configure_input@!lib/Makefile. Generated from Makefile.in by config.bat! | ||
| 21 | /^@SET_MAKE@$/s/@SET_MAKE@// | ||
| 22 | /^VPATH *=/s/@[^@\n]*@/./ | ||
| 23 | s/@PACKAGE@/emacs/ | ||
| 24 | /^am__cd *=/c\ | ||
| 25 | am__cd = cd | ||
| 26 | /^ALLOCA *=/s/@[^@\n]*@// | ||
| 27 | /^ALSA_CFLAGS *=/s/@[^@\n]*@// | ||
| 28 | /^ALSA_LIBS *=/s/@[^@\n]*@// | ||
| 29 | /^AWK *=/s/@[^@\n]*@/gawk/ | ||
| 30 | /^CANNOT_DUMP *=/s/@[^@\n]*@/no/ | ||
| 31 | /^CC *=/s/@[^@\n]*@/gcc/ | ||
| 32 | /^CPP *=/s/@[^@\n]*@/gcc -e/ | ||
| 33 | /^CPPFLAGS *=/s/@[^@\n]*@// | ||
| 34 | /^CCDEPMODE *=/s/@[^@\n]*@/depmode=gcc3/ | ||
| 35 | /^CFLAGS *=/s/@[^@\n]*@/-g -O2/ | ||
| 36 | /^CYGPATH_W *=/s/@[^@\n]*@// | ||
| 37 | /^CYGWIN_OBJ *=/s/@[^@\n]*@// | ||
| 38 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// | ||
| 39 | /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@// | ||
| 40 | /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@// | ||
| 41 | /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@// | ||
| 42 | /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@// | ||
| 43 | /^DEFS *=/s/@[^@\n]*@/-DHAVE_CONFIG_H/ | ||
| 44 | /^DEPDIR *=/s/@[^@\n]*@/deps/ | ||
| 45 | /^DEPFLAGS *=/s/@[^@\n]*@/-MMD -MF ${DEPDIR}\/$*.d/ | ||
| 46 | /^ECHO_N *=/s/@[^@\n]*@/-n/ | ||
| 47 | /^EXEEXT *=/s/@[^@\n]*@/.exe/ | ||
| 48 | /^GETOPT_H *=/s/@[^@\n]*@/getopt.h/ | ||
| 49 | # | ||
| 50 | # Some GNULIB_* are replaced with zero even though DJGPP does not have | ||
| 51 | # these features. That's because the gnulib replacements cannot | ||
| 52 | # possibly work for DJGPP, so we prefer to fail the link than have a | ||
| 53 | # subtly botched executable. | ||
| 54 | /^GNULIB_ATOLL *=/s/@GNULIB_ATOLL@/1/ | ||
| 55 | /^GNULIB_CALLOC_POSIX *=/s/@GNULIB_CALLOC_POSIX@/0/ | ||
| 56 | /^GNULIB_CANONICALIZE_FILE_NAME *=/s/@GNULIB_CANONICALIZE_FILE_NAME@/0/ | ||
| 57 | /^GNULIB_CHOWN *=/s/@GNULIB_CHOWN@/0/ | ||
| 58 | /^GNULIB_CLOSE *=/s/@GNULIB_CLOSE@/0/ | ||
| 59 | /^GNULIB_DUP2 *=/s/@GNULIB_DUP2@/0/ | ||
| 60 | /^GNULIB_DUP3 *=/s/@GNULIB_DUP3@/1/ | ||
| 61 | /^GNULIB_ENVIRON *=/s/@GNULIB_ENVIRON@/0/ | ||
| 62 | /^GNULIB_EUIDACCESS *=/s/@GNULIB_EUIDACCESS@/0/ | ||
| 63 | /^GNULIB_FACCESSAT *=/s/@GNULIB_FACCESSAT@/0/ | ||
| 64 | /^GNULIB_FCHDIR *=/s/@GNULIB_FCHDIR@/0/ | ||
| 65 | /^GNULIB_FCHOWNAT *=/s/@GNULIB_FCHOWNAT@/0/ | ||
| 66 | /^GNULIB_FSYNC *=/s/@GNULIB_FSYNC@/0/ | ||
| 67 | /^GNULIB_FTRUNCATE *=/s/@GNULIB_FTRUNCATE@/0/ | ||
| 68 | /^GNULIB_GETCWD *=/s/@GNULIB_GETCWD@/0/ | ||
| 69 | /^GNULIB_GETDOMAINNAME *=/s/@GNULIB_GETDOMAINNAME@/0/ | ||
| 70 | /^GNULIB_GETDTABLESIZE *=/s/@GNULIB_GETDTABLESIZE@/0/ | ||
| 71 | /^GNULIB_GETGROUPS *=/s/@GNULIB_GETGROUPS@/0/ | ||
| 72 | /^GNULIB_GETHOSTNAME *=/s/@GNULIB_GETHOSTNAME@/0/ | ||
| 73 | /^GNULIB_GETLOADAVG *=/s/@GNULIB_GETLOADAVG@/1/ | ||
| 74 | /^GNULIB_GETLOGIN *=/s/@GNULIB_GETLOGIN@/0/ | ||
| 75 | /^GNULIB_GETLOGIN_R *=/s/@GNULIB_GETLOGIN_R@/0/ | ||
| 76 | /^GNULIB_GETPAGESIZE *=/s/@GNULIB_GETPAGESIZE@/0/ | ||
| 77 | /^GNULIB_GETSUBOPT *=/s/@GNULIB_GETSUBOPT@/0/ | ||
| 78 | /^GNULIB_GETUSERSHELL *=/s/@GNULIB_GETUSERSHELL@/0/ | ||
| 79 | /^GNULIB_GRANTPT *=/s/@GNULIB_GRANTPT@/0/ | ||
| 80 | /^GNULIB_LCHOWN *=/s/@GNULIB_LCHOWN@/0/ | ||
| 81 | /^GNULIB_LINK *=/s/@GNULIB_LINK@/0/ | ||
| 82 | /^GNULIB_LINKAT *=/s/@GNULIB_LINKAT@/0/ | ||
| 83 | /^GNULIB_LSEEK *=/s/@GNULIB_LSEEK@/0/ | ||
| 84 | /^GNULIB_MALLOC_POSIX *=/s/@GNULIB_MALLOC_POSIX@/0/ | ||
| 85 | /^GNULIB_MKDTEMP *=/s/@GNULIB_MKDTEMP@/0/ | ||
| 86 | /^GNULIB_MKOSTEMP *=/s/@GNULIB_MKOSTEMP@/0/ | ||
| 87 | /^GNULIB_MKOSTEMPS *=/s/@GNULIB_MKOSTEMPS@/0/ | ||
| 88 | /^GNULIB_MKSTEMP *=/s/@GNULIB_MKSTEMP@/0/ | ||
| 89 | /^GNULIB_MKSTEMPS *=/s/@GNULIB_MKSTEMPS@/0/ | ||
| 90 | /^GNULIB_MKTIME *=/s/@GNULIB_MKTIME@/0/ | ||
| 91 | /^GNULIB_NANOSLEEP *=/s/@GNULIB_NANOSLEEP@/0/ | ||
| 92 | /^GNULIB_PIPE *=/s/@GNULIB_PIPE@/0/ | ||
| 93 | /^GNULIB_PIPE2 *=/s/@GNULIB_PIPE2@/0/ | ||
| 94 | /^GNULIB_PREAD *=/s/@GNULIB_PREAD@/0/ | ||
| 95 | /^GNULIB_PTSNAME *=/s/@GNULIB_PTSNAME@/0/ | ||
| 96 | /^GNULIB_PUTENV *=/s/@GNULIB_PUTENV@/0/ | ||
| 97 | /^GNULIB_PWRITE *=/s/@GNULIB_PWRITE@/0/ | ||
| 98 | /^GNULIB_RANDOM_R *=/s/@GNULIB_RANDOM_R@/0/ | ||
| 99 | /^GNULIB_READLINK *=/s/@GNULIB_READLINK@/0/ | ||
| 100 | /^GNULIB_READLINKAT *=/s/@GNULIB_READLINKAT@/0/ | ||
| 101 | /^GNULIB_REALLOC_POSIX *=/s/@GNULIB_REALLOC_POSIX@/0/ | ||
| 102 | /^GNULIB_REALPATH *=/s/@GNULIB_REALPATH@/0/ | ||
| 103 | /^GNULIB_RMDIR *=/s/@GNULIB_RMDIR@/0/ | ||
| 104 | /^GNULIB_RPMATCH *=/s/@GNULIB_RPMATCH@/0/ | ||
| 105 | /^GNULIB_SETENV *=/s/@GNULIB_SETENV@/0/ | ||
| 106 | /^GNULIB_SLEEP *=/s/@GNULIB_SLEEP@/0/ | ||
| 107 | /^GNULIB_STRPTIME *=/s/@GNULIB_STRPTIME@/0/ | ||
| 108 | /^GNULIB_STRTOD *=/s/@GNULIB_STRTOD@/0/ | ||
| 109 | /^GNULIB_STRTOLL *=/s/@GNULIB_STRTOLL@/0/ | ||
| 110 | /^GNULIB_STRTOULL *=/s/@GNULIB_STRTOULL@/0/ | ||
| 111 | /^GNULIB_SYMLINK *=/s/@GNULIB_SYMLINK@/0/ | ||
| 112 | /^GNULIB_SYMLINKAT *=/s/@GNULIB_SYMLINKAT@/0/ | ||
| 113 | /^GNULIB_SYSTEM_POSIX *=/s/@GNULIB_SYSTEM_POSIX@/0/ | ||
| 114 | /^GNULIB_TIMEGM *=/s/@GNULIB_TIMEGM@/0/ | ||
| 115 | /^GNULIB_TIME_R *=/s/@GNULIB_TIME_R@/1/ | ||
| 116 | /^GNULIB_TTYNAME_R *=/s/@GNULIB_TTYNAME_R@/0/ | ||
| 117 | /^GNULIB_UNISTD_H_GETOPT *=/s/@GNULIB_UNISTD_H_GETOPT@/1/ | ||
| 118 | /^GNULIB_UNISTD_H_SIGPIPE *=/s/@GNULIB_UNISTD_H_SIGPIPE@/0/ | ||
| 119 | /^GNULIB_UNLINK *=/s/@GNULIB_UNLINK@/0/ | ||
| 120 | /^GNULIB_UNLINKAT *=/s/@GNULIB_UNLINKAT@/0/ | ||
| 121 | /^GNULIB_UNLOCKPT *=/s/@GNULIB_UNLOCKPT@/0/ | ||
| 122 | /^GNULIB_UNSETENV *=/s/@GNULIB_UNSETENV@/1/ | ||
| 123 | /^GNULIB_USLEEP *=/s/@GNULIB_USLEEP@/0/ | ||
| 124 | /^GNULIB_WRITE *=/s/@GNULIB_WRITE@/0/ | ||
| 125 | /^GNULIB__EXIT *=/s/@GNULIB__EXIT@/0/ | ||
| 126 | /^HAVE_ATOLL *=/s/@HAVE_ATOLL@/0/ | ||
| 127 | /^HAVE_CANONICALIZE_FILE_NAME *=/s/@HAVE_CANONICALIZE_FILE_NAME@/0/ | ||
| 128 | /^HAVE_CHOWN *=/s/@HAVE_CHOWN@/1/ | ||
| 129 | /^HAVE_DECL_ENVIRON *=/s/@HAVE_DECL_ENVIRON@/1/ | ||
| 130 | /^HAVE_DECL_FCHDIR *=/s/@HAVE_DECL_FCHDIR@/0/ | ||
| 131 | /^HAVE_DECL_GETDOMAINNAME *=/s/@HAVE_DECL_GETDOMAINNAME@/0/ | ||
| 132 | /^HAVE_DECL_GETLOADAVG *=/s/@HAVE_DECL_GETLOADAVG@/0/ | ||
| 133 | /^HAVE_DECL_GETLOGIN_R *=/s/@HAVE_DECL_GETLOGIN_R@/0/ | ||
| 134 | /^HAVE_DECL_GETPAGESIZE *=/s/@HAVE_DECL_GETPAGESIZE@/1/ | ||
| 135 | /^HAVE_DECL_GETUSERSHELL *=/s/@HAVE_DECL_GETUSERSHELL@/0/ | ||
| 136 | /^HAVE_DECL_LOCALTIME_R *=/s/@HAVE_DECL_LOCALTIME_R@/0/ | ||
| 137 | /^HAVE_DECL_SETENV *=/s/@HAVE_DECL_SETENV@/1/ | ||
| 138 | /^HAVE_DECL_TTYNAME_R *=/s/@HAVE_DECL_TTYNAME_R@/0/ | ||
| 139 | /^HAVE_DECL_UNSETENV *=/s/@HAVE_DECL_UNSETENV@/0/ | ||
| 140 | /^HAVE_DUP2 *=/s/@HAVE_DUP2@/1/ | ||
| 141 | /^HAVE_DUP3 *=/s/@HAVE_DUP3@/0/ | ||
| 142 | /^HAVE_EUIDACCESS *=/s/@HAVE_EUIDACCESS@/0/ | ||
| 143 | /^HAVE_FACCESSAT *=/s/@HAVE_FACCESSAT@/0/ | ||
| 144 | /^HAVE_FCHDIR *=/s/@HAVE_FCHDIR@/0/ | ||
| 145 | /^HAVE_FCHOWNAT *=/s/@HAVE_FCHOWNAT@/0/ | ||
| 146 | /^HAVE_FSYNC *=/s/@HAVE_FSYNC@/1/ | ||
| 147 | /^HAVE_FTRUNCATE *=/s/@HAVE_FTRUNCATE@/1/ | ||
| 148 | /^HAVE_GETDTABLESIZE *=/s/@HAVE_GETDTABLESIZE@/0/ | ||
| 149 | /^HAVE_GETGROUPS *=/s/@HAVE_GETGROUPS@/0/ | ||
| 150 | /^HAVE_GETHOSTNAME *=/s/@HAVE_GETHOSTNAME@/1/ | ||
| 151 | /^HAVE_GETLOGIN *=/s/@HAVE_GETLOGIN@/1/ | ||
| 152 | /^HAVE_GETOPT_H *=/s/@HAVE_GETOPT_H@/0/ | ||
| 153 | /^HAVE_GETPAGESIZE *=/s/@HAVE_GETPAGESIZE@/1/ | ||
| 154 | /^HAVE_GETSUBOPT *=/s/@HAVE_GETSUBOPT@/0/ | ||
| 155 | /^HAVE_GRANTPT *=/s/@HAVE_GRANTPT@/0/ | ||
| 156 | /^HAVE_LCHOWN *=/s/@HAVE_LCHOWN@/0/ | ||
| 157 | /^HAVE_LINK *=/s/@HAVE_LINK@/1/ | ||
| 158 | /^HAVE_LINKAT *=/s/@HAVE_LINKAT@/0/ | ||
| 159 | /^HAVE_MAKEINFO *=/s/@HAVE_MAKEINFO@/yes/ | ||
| 160 | /^HAVE_MKDTEMP *=/s/@HAVE_MKDTEMP@/0/ | ||
| 161 | /^HAVE_MKOSTEMP *=/s/@HAVE_MKOSTEMP@/0/ | ||
| 162 | /^HAVE_MKOSTEMPS *=/s/@HAVE_MKOSTEMPS@/0/ | ||
| 163 | /^HAVE_MKSTEMP *=/s/@HAVE_MKSTEMP@/1/ | ||
| 164 | /^HAVE_MKSTEMPS *=/s/@HAVE_MKSTEMPS@/0/ | ||
| 165 | /^HAVE_NANOSLEEP *=/s/@HAVE_NANOSLEEP@/0/ | ||
| 166 | /^HAVE_OS_H *=/s/@HAVE_OS_H@/0/ | ||
| 167 | /^HAVE_PIPE *=/s/@HAVE_PIPE@/0/ | ||
| 168 | /^HAVE_PIPE2 *=/s/@HAVE_PIPE2@/0/ | ||
| 169 | /^HAVE_PREAD *=/s/@HAVE_PREAD@/0/ | ||
| 170 | /^HAVE_PTSNAME *=/s/@HAVE_PTSNAME@/0/ | ||
| 171 | /^HAVE_PWRITE *=/s/@HAVE_PWRITE@/0/ | ||
| 172 | /^HAVE_RANDOM_H *=/s/@HAVE_RANDOM_H@/1/ | ||
| 173 | /^HAVE_RANDOM_R *=/s/@HAVE_RANDOM_R@/0/ | ||
| 174 | /^HAVE_READLINK *=/s/@HAVE_READLINK@/0/ | ||
| 175 | /^HAVE_READLINKAT *=/s/@HAVE_READLINKAT@/0/ | ||
| 176 | /^HAVE_REALPATH *=/s/@HAVE_REALPATH@/0/ | ||
| 177 | /^HAVE_RPMATCH *=/s/@HAVE_RPMATCH@/0/ | ||
| 178 | /^HAVE_SETENV *=/s/@HAVE_SETENV@/1/ | ||
| 179 | /^HAVE_SLEEP *=/s/@HAVE_SLEEP@/1/ | ||
| 180 | /^HAVE_STRPTIME *=/s/@HAVE_STRPTIME@/0/ | ||
| 181 | /^HAVE_STRTOD *=/s/@HAVE_STRTOD@/1/ | ||
| 182 | /^HAVE_STRTOLL *=/s/@HAVE_STRTOLL@/1/ | ||
| 183 | /^HAVE_STRTOULL *=/s/@HAVE_STRTOULL@/1/ | ||
| 184 | /^HAVE_STRUCT_RANDOM_DATA *=/s/@HAVE_STRUCT_RANDOM_DATA@/0/ | ||
| 185 | /^HAVE_SYMLINK *=/s/@HAVE_SYMLINK@/1/ | ||
| 186 | /^HAVE_SYMLINKAT *=/s/@HAVE_SYMLINKAT@/0/ | ||
| 187 | /^HAVE_SYS_LOADAVG_H *=/s/@HAVE_SYS_LOADAVG_H@/0/ | ||
| 188 | /^HAVE_SYS_PARAM_H *=/s/@HAVE_SYS_PARAM_H@/1/ | ||
| 189 | /^HAVE_TIMEGM *=/s/@HAVE_TIMEGM@/0/ | ||
| 190 | /^HAVE_UNISTD_H *=/s/@HAVE_UNISTD_H@/1/ | ||
| 191 | /^HAVE_UNLINKAT *=/s/@HAVE_UNLINKAT@/0/ | ||
| 192 | /^HAVE_UNLOCKPT *=/s/@HAVE_UNLOCKPT@/0/ | ||
| 193 | /^HAVE_USLEEP *=/s/@HAVE_USLEEP@/1/ | ||
| 194 | /^HAVE_WCHAR_T *=/s/@HAVE_WCHAR_T@/1/ | ||
| 195 | /^HAVE_XSERVER *=/s/@HAVE_XSERVER@/0/ | ||
| 196 | /^HAVE__BOOL *=/s/@HAVE__BOOL@/1/ | ||
| 197 | /^HAVE__EXIT *=/s/@HAVE__EXIT@/1/ | ||
| 198 | /^INCLUDE_NEXT *=/s/@INCLUDE_NEXT@/include_next/ | ||
| 199 | /^INCLUDE_NEXT_AS_FIRST_DIRECTIVE *=/s/@[^@\n]*@/include_next/ | ||
| 200 | /^LDFLAGS *=/s/@[^@\n]*@// | ||
| 201 | /^LD_FIRSTFLAG *=/s/@[^@\n]*@// | ||
| 202 | /^LIBS *=/s/@[^@\n]*@// | ||
| 203 | /^MAKEINFO *=/s/@MAKEINFO@/makeinfo/ | ||
| 204 | /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ | ||
| 205 | /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@// | ||
| 206 | /^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ | ||
| 207 | /^NEXT_AS_FIRST_DIRECTIVE_TIME_H *=/s/@[^@\n]*@/<time.h>/ | ||
| 208 | /^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/ | ||
| 209 | /^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ | ||
| 210 | /^NEXT_STDDEF_H *=/s/@[^@\n]*@// | ||
| 211 | /^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ | ||
| 212 | /^NEXT_TIME_H *=/s/@[^@\n]*@/<time.h>/ | ||
| 213 | /^NEXT_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/ | ||
| 214 | /^OBJEXT *=/s/@[^@\n]*@/o/ | ||
| 215 | /^PRAGMA_COLUMNS *=/s/@[^@\n]*@// | ||
| 216 | /^PRAGMA_SYSTEM_HEADER *=/s/@[^@\n]*@/\\\#pragma GCC system_header/ | ||
| 217 | /^PTHREAD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/ | ||
| 218 | /^RANLIB *=/s/@[^@\n]*@/ranlib/ | ||
| 219 | /^REPLACE_CALLOC *=/s/@REPLACE_CALLOC@/0/ | ||
| 220 | /^REPLACE_CANONICALIZE_FILE_NAME *=/s/@REPLACE_CANONICALIZE_FILE_NAME@/0/ | ||
| 221 | /^REPLACE_CHOWN *=/s/@REPLACE_CHOWN@/0/ | ||
| 222 | /^REPLACE_CLOSE *=/s/@REPLACE_CLOSE@/0/ | ||
| 223 | /^REPLACE_DUP *=/s/@REPLACE_DUP@/0/ | ||
| 224 | /^REPLACE_DUP2 *=/s/@REPLACE_DUP2@/0/ | ||
| 225 | /^REPLACE_FCHOWNAT *=/s/@REPLACE_FCHOWNAT@/0/ | ||
| 226 | /^REPLACE_GETCWD *=/s/@REPLACE_GETCWD@/0/ | ||
| 227 | /^REPLACE_GETDOMAINNAME *=/s/@REPLACE_GETDOMAINNAME@/0/ | ||
| 228 | /^REPLACE_GETGROUPS *=/s/@REPLACE_GETGROUPS@/0/ | ||
| 229 | /^REPLACE_GETLOGIN_R *=/s/@REPLACE_GETLOGIN_R@/0/ | ||
| 230 | /^REPLACE_GETPAGESIZE *=/s/@REPLACE_GETPAGESIZE@/0/ | ||
| 231 | /^REPLACE_LCHOWN *=/s/@REPLACE_LCHOWN@/0/ | ||
| 232 | /^REPLACE_LINK *=/s/@REPLACE_LINK@/0/ | ||
| 233 | /^REPLACE_LINKAT *=/s/@REPLACE_LINKAT@/0/ | ||
| 234 | /^REPLACE_LOCALTIME_R *=/s/@REPLACE_LOCALTIME_R@/0/ | ||
| 235 | /^REPLACE_LSEEK *=/s/@REPLACE_LSEEK@/0/ | ||
| 236 | /^REPLACE_MALLOC *=/s/@REPLACE_MALLOC@/0/ | ||
| 237 | /^REPLACE_MKSTEMP *=/s/@REPLACE_MKSTEMP@/0/ | ||
| 238 | /^REPLACE_MKTIME *=/s/@REPLACE_MKTIME@/0/ | ||
| 239 | /^REPLACE_NANOSLEEP *=/s/@REPLACE_NANOSLEEP@/0/ | ||
| 240 | /^REPLACE_NULL *=/s/@REPLACE_NULL@/0/ | ||
| 241 | /^REPLACE_PREAD *=/s/@REPLACE_PREAD@/0/ | ||
| 242 | /^REPLACE_PUTENV *=/s/@REPLACE_PUTENV@/0/ | ||
| 243 | /^REPLACE_PWRITE *=/s/@REPLACE_PWRITE@/0/ | ||
| 244 | /^REPLACE_READLINK *=/s/@REPLACE_READLINK@/0/ | ||
| 245 | /^REPLACE_REALLOC *=/s/@REPLACE_REALLOC@/0/ | ||
| 246 | /^REPLACE_REALPATH *=/s/@REPLACE_REALPATH@/0/ | ||
| 247 | /^REPLACE_RMDIR *=/s/@REPLACE_RMDIR@/0/ | ||
| 248 | /^REPLACE_SETENV *=/s/@REPLACE_SETENV@/0/ | ||
| 249 | /^REPLACE_SLEEP *=/s/@REPLACE_SLEEP@/0/ | ||
| 250 | /^REPLACE_STRTOD *=/s/@REPLACE_STRTOD@/0/ | ||
| 251 | /^REPLACE_SYMLINK *=/s/@REPLACE_SYMLINK@/0/ | ||
| 252 | /^REPLACE_TIMEGM *=/s/@REPLACE_TIMEGM@/0/ | ||
| 253 | /^REPLACE_TTYNAME_R *=/s/@REPLACE_TTYNAME_R@/0/ | ||
| 254 | /^REPLACE_UNLINK *=/s/@REPLACE_UNLINK@/0/ | ||
| 255 | /^REPLACE_UNLINKAT *=/s/@REPLACE_UNLINKAT@/0/ | ||
| 256 | /^REPLACE_UNSETENV *=/s/@REPLACE_UNSETENV@/0/ | ||
| 257 | /^REPLACE_USLEEP *=/s/@REPLACE_USLEEP@/0/ | ||
| 258 | /^REPLACE_WRITE *=/s/@REPLACE_WRITE@/0/ | ||
| 259 | /^STDBOOL_H *=/s/@[^@\n]*@// | ||
| 260 | /^STDDEF_H *=/s/@[^@\n]*@// | ||
| 261 | /^SYS_TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/ | ||
| 262 | /^TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/ | ||
| 263 | /^UNISTD_H_HAVE_WINSOCK2_H *=/s/@[^@\n]*@/0/ | ||
| 264 | /^UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS *=/s/@[^@\n]*@/0/ | ||
| 265 | /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o strftime.o time_r.o getloadavg.o/ | ||
| 266 | /^srcdir *=/s/@[^@\n]*@/./ | ||
| 267 | /^top_srcdir *=/s/@[^@\n]*@/../ | ||
| 268 | /^top_builddir *=/s/@[^@\n]*@/../ | ||
| 269 | s/@PRAGMA_SYSTEM_HEADER@/\#pragma GCC system_header/ | ||
| 270 | s/@PRAGMA_COLUMNS@// | ||
| 271 | # | ||
| 272 | # Delete the recipes we don't want to get in our way. | ||
| 273 | /^\$(srcdir)\/Makefile\.in:/,/^[ ][ ]*\$(AUTOMAKE)/d | ||
| 274 | /^Makefile:/,/^[ ][ ]*esac/d | ||
| 275 | /^\$(top_srcdir)\/configure:/,/^\$(ACLOCAL_M4)/d | ||
| 276 | # | ||
| 277 | # Fix the include-dependency lines | ||
| 278 | s/^@AMDEP_TRUE@// | ||
| 279 | s/^@AMDEP_FALSE@/\#/ | ||
| 280 | s/@am__include@/include/ | ||
| 281 | s/@am__quote@//g | ||
| 282 | s/^@am__fastdepCC_TRUE@// | ||
| 283 | s/^@am__fastdepCC_FALSE/\#/ | ||
| 284 | # | ||
| 285 | # Fix the *-clean rules, to not use a Unixy `test' command. Empty | ||
| 286 | # lists are replaced with a dummy file, to avoid an error message from | ||
| 287 | # "rm -f" with no arguments. | ||
| 288 | /^CONFIG_CLEAN_FILES *= *$/c\ | ||
| 289 | CONFIG_CLEAN_FILES = xyzzy | ||
| 290 | /^CONFIG_CLEAN_VPATH_FILES *= *$/c\ | ||
| 291 | CONFIG_CLEAN_VPATH_FILES = xyzzy | ||
| 292 | s/^ -*test -z.*|| rm/ -rm/ | ||
| 293 | s/@echo /@djecho/ | ||
| 294 | # | ||
| 295 | # Fix the recipes for header files | ||
| 296 | /^arg-nonnull\.h:/,/^[ ][ ]*mv /c\ | ||
| 297 | arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h\ | ||
| 298 | sed -n -e '/GL_ARG_NONNULL/,$$p' < $(top_srcdir)/./arg-nonnull.h > $@ | ||
| 299 | /^cxxdefs\.h:/,/^[ ][ ]*mv /c\ | ||
| 300 | cxxdefs.h: $(top_srcdir)/./cxxdefs.h\ | ||
| 301 | sed -n -e '/_GL_CXXDEFS/,$$p' < $(top_srcdir)/./cxxdefs.h > $@ | ||
| 302 | s/^ [ ]*{ echo \(.*\); \\/ djecho \1 > $@-t/ | ||
| 303 | s/^ [ ]*{ echo \(.*\) && \\/ djecho \1 > $@-t/ | ||
| 304 | s/ \&\& \\ *$// | ||
| 305 | s/\.in-h\; *\\$/.in-h >> $@-t/ | ||
| 306 | /^ [ ]*} /d | ||
| 307 | /^stdlib\.h:/,/^ [ ]*mv /{ | ||
| 308 | s/'\; \\ *$/' >> $@-t/ | ||
| 309 | } | ||
| 310 | /^unistd\.h:/,/^ [ ]*mv /{ | ||
| 311 | s/'\; \\ *$/' >> $@-t/ | ||
| 312 | } | ||