diff options
| -rw-r--r-- | admin/admin.el | 2 | ||||
| -rw-r--r-- | config.bat | 24 | ||||
| -rw-r--r-- | msdos/depfiles.bat | 2 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 40 | ||||
| -rw-r--r-- | msdos/sed2v2.inp | 35 | ||||
| -rw-r--r-- | msdos/sed3v2.inp | 6 | ||||
| -rw-r--r-- | msdos/sedlibmk.inp | 123 | ||||
| -rw-r--r-- | msdos/sedlisp.inp | 1 | ||||
| -rw-r--r-- | src/conf_post.h | 2 | ||||
| -rw-r--r-- | src/msdos.c | 2 | ||||
| -rw-r--r-- | src/msdos.h | 3 | ||||
| -rw-r--r-- | src/process.c | 11 | ||||
| -rw-r--r-- | src/sysdep.c | 3 | ||||
| -rw-r--r-- | src/sysselect.h | 5 | ||||
| -rw-r--r-- | src/thread.c | 4 | ||||
| -rw-r--r-- | src/thread.h | 4 |
16 files changed, 176 insertions, 91 deletions
diff --git a/admin/admin.el b/admin/admin.el index 44d091d1423..b2adfbf9f76 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -114,7 +114,7 @@ Root must be the root of an Emacs source tree." | |||
| 114 | ;; configure.ac with sed, rather than duplicating the information. | 114 | ;; configure.ac with sed, rather than duplicating the information. |
| 115 | (set-version-in-file root "msdos/sed2v2.inp" version | 115 | (set-version-in-file root "msdos/sed2v2.inp" version |
| 116 | (rx (and bol "/^#undef " (1+ not-newline) | 116 | (rx (and bol "/^#undef " (1+ not-newline) |
| 117 | "define VERSION" (1+ space) "\"" | 117 | "define PACKAGE_VERSION" (1+ space) "\"" |
| 118 | (submatch (1+ (in "0-9.")))))) | 118 | (submatch (1+ (in "0-9.")))))) |
| 119 | ;; Major version only. | 119 | ;; Major version only. |
| 120 | (when (string-match "\\([0-9]\\{2,\\}\\)" version) | 120 | (when (string-match "\\([0-9]\\{2,\\}\\)" version) |
diff --git a/config.bat b/config.bat index d0251df560d..90882218bc6 100644 --- a/config.bat +++ b/config.bat | |||
| @@ -189,9 +189,6 @@ rm -f junk.c junk junk.exe | |||
| 189 | update config.h2 config.h >nul | 189 | update config.h2 config.h >nul |
| 190 | rm -f config.tmp config.h2 | 190 | rm -f config.tmp config.h2 |
| 191 | 191 | ||
| 192 | rem On my system dir.h gets in the way. It's a VMS file so who cares. | ||
| 193 | if exist dir.h ren dir.h vmsdir.h | ||
| 194 | |||
| 195 | rem Create "makefile" from "makefile.in". | 192 | rem Create "makefile" from "makefile.in". |
| 196 | rm -f Makefile makefile.tmp | 193 | rm -f Makefile makefile.tmp |
| 197 | copy Makefile.in+deps.mk makefile.tmp | 194 | copy Makefile.in+deps.mk makefile.tmp |
| @@ -222,6 +219,10 @@ sed -e "/^LIBXML2_LIBS *=/s/=/= -lxml2 -lz -liconv/" <Makefile >makefile.tmp | |||
| 222 | sed -e "/^LIBXML2_CFLAGS *=/s|=|= -I/dev/env/DJDIR/include/libxml2|" <makefile.tmp >Makefile | 219 | sed -e "/^LIBXML2_CFLAGS *=/s|=|= -I/dev/env/DJDIR/include/libxml2|" <makefile.tmp >Makefile |
| 223 | rm -f makefile.tmp | 220 | rm -f makefile.tmp |
| 224 | :src7 | 221 | :src7 |
| 222 | Rem Create .d files for new files in src/ | ||
| 223 | If Not Exist deps\stamp mkdir deps | ||
| 224 | for %%f in (*.c) do @call ..\msdos\depfiles.bat %%f | ||
| 225 | echo deps-stamp > deps\stamp | ||
| 225 | cd .. | 226 | cd .. |
| 226 | rem ---------------------------------------------------------------------- | 227 | rem ---------------------------------------------------------------------- |
| 227 | Echo Configuring the library source directory... | 228 | Echo Configuring the library source directory... |
| @@ -273,6 +274,7 @@ Echo Configuring the lib directory... | |||
| 273 | If Exist build-aux\snippet\c++defs.h update build-aux/snippet/c++defs.h build-aux/snippet/cxxdefs.h | 274 | If Exist build-aux\snippet\c++defs.h update build-aux/snippet/c++defs.h build-aux/snippet/cxxdefs.h |
| 274 | cd lib | 275 | cd lib |
| 275 | Rem Rename files like djtar on plain DOS filesystem would. | 276 | Rem Rename files like djtar on plain DOS filesystem would. |
| 277 | If Exist c++defs.h update c++defs.h cxxdefs.h | ||
| 276 | If Exist alloca.in.h update alloca.in.h alloca.in-h | 278 | If Exist alloca.in.h update alloca.in.h alloca.in-h |
| 277 | If Exist byteswap.in.h update byteswap.in.h byteswap.in-h | 279 | If Exist byteswap.in.h update byteswap.in.h byteswap.in-h |
| 278 | If Exist dirent.in.h update dirent.in.h dirent.in-h | 280 | If Exist dirent.in.h update dirent.in.h dirent.in-h |
| @@ -280,12 +282,12 @@ If Exist errno.in.h update errno.in.h errno.in-h | |||
| 280 | If Exist execinfo.in.h update execinfo.in.h execinfo.in-h | 282 | If Exist execinfo.in.h update execinfo.in.h execinfo.in-h |
| 281 | If Exist fcntl.in.h update fcntl.in.h fcntl.in-h | 283 | If Exist fcntl.in.h update fcntl.in.h fcntl.in-h |
| 282 | If Exist getopt.in.h update getopt.in.h getopt.in-h | 284 | If Exist getopt.in.h update getopt.in.h getopt.in-h |
| 285 | If Exist getopt-cdefs.in.h update getopt-cdefs.in.h getopt-cdefs.in-h | ||
| 283 | If Exist inttypes.in.h update inttypes.in.h inttypes.in-h | 286 | If Exist inttypes.in.h update inttypes.in.h inttypes.in-h |
| 284 | If Exist stdarg.in.h update stdarg.in.h stdarg.in-h | 287 | If Exist limits.in.h update limits.in.h limits.in-h |
| 285 | If Exist stdalign.in.h update stdalign.in.h stdalign.in-h | ||
| 286 | If Exist stdbool.in.h update stdbool.in.h stdbool.in-h | ||
| 287 | If Exist signal.in.h update signal.in.h signal.in-h | 288 | If Exist signal.in.h update signal.in.h signal.in-h |
| 288 | If Exist stdalign.in.h update stdalign.in.h stdalign.in-h | 289 | If Exist signal.in.h update signal.in.h signal.in-h |
| 290 | If Exist stdalign.in.h update stdalign.in.h stdalign.in-h | ||
| 289 | If Exist stddef.in.h update stddef.in.h stddef.in-h | 291 | If Exist stddef.in.h update stddef.in.h stddef.in-h |
| 290 | If Exist stdint.in.h update stdint.in.h stdint.in-h | 292 | If Exist stdint.in.h update stdint.in.h stdint.in-h |
| 291 | If Exist stdio.in.h update stdio.in.h stdio.in-h | 293 | If Exist stdio.in.h update stdio.in.h stdio.in-h |
| @@ -293,16 +295,20 @@ If Exist stdlib.in.h update stdlib.in.h stdlib.in-h | |||
| 293 | If Exist string.in.h update string.in.h string.in-h | 295 | If Exist string.in.h update string.in.h string.in-h |
| 294 | If Exist sys_select.in.h update sys_select.in.h sys_select.in-h | 296 | If Exist sys_select.in.h update sys_select.in.h sys_select.in-h |
| 295 | If Exist sys_stat.in.h update sys_stat.in.h sys_stat.in-h | 297 | If Exist sys_stat.in.h update sys_stat.in.h sys_stat.in-h |
| 296 | If Exist sys_types.in.h update sys_types.in.h sys_types.in-h | ||
| 297 | If Exist sys_time.in.h update sys_time.in.h sys_time.in-h | 298 | If Exist sys_time.in.h update sys_time.in.h sys_time.in-h |
| 299 | If Exist sys_types.in.h update sys_types.in.h sys_types.in-h | ||
| 298 | If Exist time.in.h update time.in.h time.in-h | 300 | If Exist time.in.h update time.in.h time.in-h |
| 299 | If Exist unistd.in.h update unistd.in.h unistd.in-h | 301 | If Exist unistd.in.h update unistd.in.h unistd.in-h |
| 302 | If Exist gnulib.mk.in update gnulib.mk.in gnulib.mk-in | ||
| 300 | Rem Only repository has the msdos/autogen directory | 303 | Rem Only repository has the msdos/autogen directory |
| 301 | If Exist Makefile.in sed -f ../msdos/sedlibcf.inp < Makefile.in > makefile.tmp | 304 | If Exist Makefile.in sed -f ../msdos/sedlibcf.inp < Makefile.in > makefile.tmp |
| 302 | If Exist ..\msdos\autogen\Makefile.in sed -f ../msdos/sedlibcf.inp < ..\msdos\autogen\Makefile.in > makefile.tmp | 305 | If Exist ..\msdos\autogen\Makefile.in sed -f ../msdos/sedlibcf.inp < ..\msdos\autogen\Makefile.in > makefile.tmp |
| 303 | sed -f ../msdos/sedlibmk.inp < makefile.tmp > Makefile | 306 | sed -f ../msdos/sedlibmk.inp < makefile.tmp > Makefile |
| 304 | rm -f makefile.tmp | 307 | rm -f makefile.tmp |
| 305 | Rem Create .Po files for new files in lib/ | 308 | sed -f ../msdos/sedlibcf.inp < gnulib.mk-in > gnulib.tmp |
| 309 | sed -f ../msdos/sedlibmk.inp < gnulib.tmp > gnulib.mk | ||
| 310 | rm -f gnulib.tmp | ||
| 311 | Rem Create .d files for new files in lib/ | ||
| 306 | If Not Exist deps\stamp mkdir deps | 312 | If Not Exist deps\stamp mkdir deps |
| 307 | for %%f in (*.c) do @call ..\msdos\depfiles.bat %%f | 313 | for %%f in (*.c) do @call ..\msdos\depfiles.bat %%f |
| 308 | echo deps-stamp > deps\stamp | 314 | echo deps-stamp > deps\stamp |
diff --git a/msdos/depfiles.bat b/msdos/depfiles.bat index 31c8622f792..8910b009eb3 100644 --- a/msdos/depfiles.bat +++ b/msdos/depfiles.bat | |||
| @@ -20,6 +20,6 @@ rem along with GNU Emacs. If not, see https://www.gnu.org/licenses/. | |||
| 20 | 20 | ||
| 21 | rem ---------------------------------------------------------------------- | 21 | rem ---------------------------------------------------------------------- |
| 22 | 22 | ||
| 23 | echo %1 | sed -e "s,\(.*\)\.c,@if not exist deps\\\1.Po echo # dummy > deps\\\1.Po," > tdepfile.bat | 23 | echo %1 | sed -e "s,\(.*\)\.c,@if not exist deps\\\1.d echo # dummy > deps\\\1.d," > tdepfile.bat |
| 24 | call tdepfile | 24 | call tdepfile |
| 25 | del tdepfile.bat | 25 | del tdepfile.bat |
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index 5431d2bd6c1..cc51301cad3 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -94,6 +94,8 @@ s/ *@LIBXPM@// | |||
| 94 | /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@// | 94 | /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@// |
| 95 | /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@// | 95 | /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@// |
| 96 | /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@// | 96 | /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@// |
| 97 | /^GETADDRINFO_A_LIBS *=/s/@GETADDRINFO_A_LIBS@// | ||
| 98 | /^LIBLCMS2 *=/s/@LIBLCMS2@// | ||
| 97 | /^WIDGET_OBJ *=/s/@WIDGET_OBJ@// | 99 | /^WIDGET_OBJ *=/s/@WIDGET_OBJ@// |
| 98 | /^XWIDGETS_OBJ *=/s/@XWIDGETS_OBJ@// | 100 | /^XWIDGETS_OBJ *=/s/@XWIDGETS_OBJ@// |
| 99 | /^WEBKIT_LIBS *=/s/@WEBKIT_LIBS@// | 101 | /^WEBKIT_LIBS *=/s/@WEBKIT_LIBS@// |
| @@ -102,16 +104,19 @@ s/ *@LIBXPM@// | |||
| 102 | /^CAIRO_CFLAGS *=/s/@CAIRO_CFLAGS@// | 104 | /^CAIRO_CFLAGS *=/s/@CAIRO_CFLAGS@// |
| 103 | /^XFIXES_LIBS *=/s/@XFIXES_LIBS@// | 105 | /^XFIXES_LIBS *=/s/@XFIXES_LIBS@// |
| 104 | /^XFIXES_CFLAGS *=/s/@XFIXES_CFLAGS@// | 106 | /^XFIXES_CFLAGS *=/s/@XFIXES_CFLAGS@// |
| 107 | /^XDBE_LIBS *=/s/@XDBE_LIBS@// | ||
| 108 | /^XDBE_CFLAGS *=/s/@XDBE_CFLAGS@// | ||
| 105 | /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@// | 109 | /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@// |
| 106 | /^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@// | 110 | /^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@// |
| 107 | /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/ | 111 | /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/ |
| 108 | /^NS_OBJ *=/s/@NS_OBJ@// | 112 | /^NS_OBJ *=/s/@NS_OBJ@// |
| 109 | /^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@// | 113 | /^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@// |
| 110 | /^GNU_OBJC_CFLAGS*=/s/=.*$/=/ | 114 | /^GNU_OBJC_CFLAGS*=/s/=.*$/=/ |
| 111 | /^LIBRESOLV *=/s/@LIBRESOLV@// | ||
| 112 | /^LIBMODULES *=/s/@LIBMODULES@// | 115 | /^LIBMODULES *=/s/@LIBMODULES@// |
| 113 | /^MODULES_OBJ *=/s/@MODULES_OBJ@// | 116 | /^MODULES_OBJ *=/s/@MODULES_OBJ@// |
| 114 | /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@// | 117 | /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@// |
| 118 | /^LIBSYSTEMD_LIBS *=/s/@LIBSYSTEMD_LIBS@// | ||
| 119 | /^LIBSYSTEMD_CFLAGS *=/s/@LIBSYSTEMD_CFLAGS@// | ||
| 115 | /^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g | 120 | /^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g |
| 116 | /^LIB_TIMER_TIME *=/s/@[^@\n]*@//g | 121 | /^LIB_TIMER_TIME *=/s/@[^@\n]*@//g |
| 117 | /^LIB_EXECINFO *=/s/@[^@\n]*@//g | 122 | /^LIB_EXECINFO *=/s/@[^@\n]*@//g |
| @@ -133,6 +138,7 @@ s/ *@LIBXPM@// | |||
| 133 | /^XRANDR_CFLAGS *=/s/@XRANDR_CFLAGS@// | 138 | /^XRANDR_CFLAGS *=/s/@XRANDR_CFLAGS@// |
| 134 | /^XINERAMA_LIBS *=/s/@XINERAMA_LIBS@// | 139 | /^XINERAMA_LIBS *=/s/@XINERAMA_LIBS@// |
| 135 | /^XINERAMA_CFLAGS *=/s/@XINERAMA_CFLAGS@// | 140 | /^XINERAMA_CFLAGS *=/s/@XINERAMA_CFLAGS@// |
| 141 | /^HYBRID_MALLOC *=/s/@HYBRID_MALLOC@// | ||
| 136 | /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/ | 142 | /^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/ |
| 137 | /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/ | 143 | /^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/ |
| 138 | /^FIRSTFILE_OBJ *=/s/@FIRSTFILE_OBJ@// | 144 | /^FIRSTFILE_OBJ *=/s/@FIRSTFILE_OBJ@// |
| @@ -140,9 +146,8 @@ s/ *@LIBXPM@// | |||
| 140 | /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ | 146 | /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ |
| 141 | /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ | 147 | /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ |
| 142 | /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/ | 148 | /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexcoff.o/ |
| 149 | /^BUILD_DETAILS *=/s/@BUILD_DETAILS@// | ||
| 143 | /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/ | 150 | /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/ |
| 144 | /^DEPFLAGS *=/s/@DEPFLAGS@// | ||
| 145 | /^MKDEPDIR *=/s/@MKDEPDIR@// | ||
| 146 | /^W32_OBJ *=/s/@W32_OBJ@// | 151 | /^W32_OBJ *=/s/@W32_OBJ@// |
| 147 | /^W32_LIBS *=/s/@W32_LIBS@// | 152 | /^W32_LIBS *=/s/@W32_LIBS@// |
| 148 | /^version *=/s/@[^@\n]*@// | 153 | /^version *=/s/@[^@\n]*@// |
| @@ -172,20 +177,18 @@ lisp.mk: $(lispsource)/loadup.el\ | |||
| 172 | /^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-doc/s!>.*$!! | 177 | /^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-doc/s!>.*$!! |
| 173 | /^\$(libsrc)\/make-docfile\$(EXEEXT): /i\ | 178 | /^\$(libsrc)\/make-docfile\$(EXEEXT): /i\ |
| 174 | cd ../src | 179 | cd ../src |
| 175 | /^\$(leimdir)\/leim-list.el: /s/bootstrap-emacs\$(EXEEXT)/b-emacs$(EXEEXT)/ | ||
| 176 | /^ if test -f/,/^ fi$/c\ | 180 | /^ if test -f/,/^ fi$/c\ |
| 177 | command.com /c if exist .gdbinit rm -f _gdbinit | 181 | command.com /c if exist .gdbinit rm -f _gdbinit |
| 178 | /^ *ifneq (\$(PAXCTL_notdumped),)/,/^ *endif/d | 182 | /^ *ifneq (\$(PAXCTL_notdumped),)/,/^ *endif/d |
| 179 | /^ *ifneq (\$(PAXCTL_dumped),)/,/^ *endif/d | 183 | /^ *ifneq (\$(PAXCTL_dumped),)/,/^ *endif/d |
| 180 | /^ *ln /s/ln /cp / | 184 | /^ *ln /s/ln /cp / |
| 181 | /^ *\$(SETFATTR_if_present) -n/d | ||
| 182 | /^ fi/d | 185 | /^ fi/d |
| 183 | /^ *\$(RUN_TEMACS) /i\ | 186 | /^ *\$(RUN_TEMACS) /i\ |
| 184 | stubedit temacs.exe minstack=1024k | 187 | stubedit temacs.exe minstack=1024k |
| 185 | /^ *LC_ALL=C \$(RUN_TEMACS)/i\ | 188 | /^ *LC_ALL=C \$(RUN_TEMACS)/i\ |
| 186 | stubedit temacs.exe minstack=1024k | 189 | stubedit temacs.exe minstack=1024k |
| 187 | /^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/ | 190 | /^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/ |
| 188 | /-batch -l loadup/a\ | 191 | /-batch .* -l loadup/a\ |
| 189 | stubify emacs\ | 192 | stubify emacs\ |
| 190 | stubedit emacs.exe minstack=3072k | 193 | stubedit emacs.exe minstack=3072k |
| 191 | s/ @true *$/ @rem/ | 194 | s/ @true *$/ @rem/ |
| @@ -193,7 +196,6 @@ s/^ [^ ]*move-if-change / update / | |||
| 193 | /^ [^ ]*echo[ ][ ]*timestamp/s/echo /djecho / | 196 | /^ [^ ]*echo[ ][ ]*timestamp/s/echo /djecho / |
| 194 | /^ .*djecho timestamp/a\ | 197 | /^ .*djecho timestamp/a\ |
| 195 | @rm -f globals.tmp | 198 | @rm -f globals.tmp |
| 196 | /^ *@\$(MKDEPDIR) *$/d | ||
| 197 | /^ mv \.\/\.gdbinit/d | 199 | /^ mv \.\/\.gdbinit/d |
| 198 | /^ if test -f/,/^ fi$/c\ | 200 | /^ if test -f/,/^ fi$/c\ |
| 199 | command.com /c if exist .gdbinit rm -f _gdbinit | 201 | command.com /c if exist .gdbinit rm -f _gdbinit |
| @@ -201,12 +203,7 @@ s/^ [^ ]*move-if-change / update / | |||
| 201 | /^ @: /d | 203 | /^ @: /d |
| 202 | /^ -\{0,1\} *ln /s/ln /cp / | 204 | /^ -\{0,1\} *ln /s/ln /cp / |
| 203 | /^[ ]touch /s/touch/djecho $@ >/ | 205 | /^[ ]touch /s/touch/djecho $@ >/ |
| 204 | s/@YMF_PASS_LDFLAGS@/flags/ | ||
| 205 | s/@PRE_EDIT_LDFLAGS@// | ||
| 206 | s/@POST_EDIT_LDFLAGS@// | ||
| 207 | s/bootstrap-emacs/b-emacs/ | 206 | s/bootstrap-emacs/b-emacs/ |
| 208 | s/bootstrap-temacs/b-temacs/ | ||
| 209 | s/bootstrap-doc/b-doc/ | ||
| 210 | /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/ | 207 | /rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/ |
| 211 | s/echo.*buildobj.lst/dj&/ | 208 | s/echo.*buildobj.lst/dj&/ |
| 212 | / --load loadup bootstrap/a\ | 209 | / --load loadup bootstrap/a\ |
| @@ -222,25 +219,20 @@ s/echo.*buildobj.lst/dj&/ | |||
| 222 | } | 219 | } |
| 223 | # Remove or replace dependencies we cannot have | 220 | # Remove or replace dependencies we cannot have |
| 224 | /^\.PRECIOUS: /s!\.\./config.status !! | 221 | /^\.PRECIOUS: /s!\.\./config.status !! |
| 225 | /^\.\.\/config.status: /d | 222 | /^\.\.\/config.status: /,/^ /d |
| 226 | /^Makefile: /s!\.\./config.status !! | 223 | /^Makefile: /s!\.\./config.status !! |
| 227 | /^\$(top_srcdir)\/aclocal\.m4 /,/^doc\.o:/c\ | ||
| 228 | \ | ||
| 229 | doc.o: buildobj.h | ||
| 230 | # Make the GCC command line fit one screen line | 224 | # Make the GCC command line fit one screen line |
| 231 | /^[ ][ ]*\$(GNUSTEP_CFLAGS)/d | 225 | /^[ ][ ]*\$(GNUSTEP_CFLAGS)/d |
| 232 | /^[ ][ ]*\$(GCONF_CFLAGS)/d | ||
| 233 | /^[ ][ ]*\$(LIBGNUTLS_CFLAGS)/d | 226 | /^[ ][ ]*\$(LIBGNUTLS_CFLAGS)/d |
| 234 | s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) // | 227 | /^[ ][ ]*\$(LIBSYSTEMD_CFLAGS)/d |
| 228 | /^[ ][ ]*\$(XRANDR_CFLAGS)/d | ||
| 229 | /^[ ][ ]*\$(WEBKIT_CFLAGS)/d | ||
| 230 | /^[ ][ ]*\$(SETTINGS_CFLAGS)/d | ||
| 231 | s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) // | ||
| 235 | s/ \$(C_SWITCH_X_SITE)// | 232 | s/ \$(C_SWITCH_X_SITE)// |
| 236 | s/ \$(DBUS_CFLAGS)// | 233 | s/ \$(DBUS_CFLAGS)// |
| 237 | s/ \$(PNG_CFLAGS) // | 234 | s/ \$(PNG_CFLAGS) // |
| 238 | s/ \$(XINERAMA_CFLAGS)// | ||
| 239 | s/ \$(XFIXES_CFLAGS)// | ||
| 240 | s/ \$(FREETYPE_CFLAGS)// | ||
| 241 | s/ \$(FONTCONFIG_CFLAGS)// | ||
| 242 | s| -I\$(srcdir)/\.\./lib|| | 235 | s| -I\$(srcdir)/\.\./lib|| |
| 243 | s| -I\$(top_srcdir)/lib|| | 236 | s| -I\$(top_srcdir)/lib|| |
| 244 | # Add our local inttypes.h to prerequisites where needed | 237 | s| -I\. -I\$(srcdir)| -I.| |
| 245 | /^lread\.o:/s|lread\.c|& ../msdos/inttypes.h| | ||
| 246 | /^ *test "X/d | 238 | /^ *test "X/d |
diff --git a/msdos/sed2v2.inp b/msdos/sed2v2.inp index 2c9c03960cc..d4db26396ff 100644 --- a/msdos/sed2v2.inp +++ b/msdos/sed2v2.inp | |||
| @@ -55,6 +55,7 @@ | |||
| 55 | /^#undef HAVE_STRNCASECMP *$/s/^.*$/#define HAVE_STRNCASECMP 1/ | 55 | /^#undef HAVE_STRNCASECMP *$/s/^.*$/#define HAVE_STRNCASECMP 1/ |
| 56 | /^#undef HAVE_STRUCT_TM_TM_ZONE *$/s/^.*$/#define HAVE_STRUCT_TM_TM_ZONE 1/ | 56 | /^#undef HAVE_STRUCT_TM_TM_ZONE *$/s/^.*$/#define HAVE_STRUCT_TM_TM_ZONE 1/ |
| 57 | /^#undef HAVE_SYNC *$/s/^.*$/#define HAVE_SYNC 1/ | 57 | /^#undef HAVE_SYNC *$/s/^.*$/#define HAVE_SYNC 1/ |
| 58 | /^#undef HAVE___BUILTIN_FRAME_ADDRESS *$/s/^.*$/#define HAVE___BUILTIN_FRAME_ADDRESS 1/ | ||
| 58 | /^#undef HAVE___BUILTIN_UNWIND_INIT *$/s/^.*$/#define HAVE___BUILTIN_UNWIND_INIT 1/ | 59 | /^#undef HAVE___BUILTIN_UNWIND_INIT *$/s/^.*$/#define HAVE___BUILTIN_UNWIND_INIT 1/ |
| 59 | /^#undef HAVE_MENUS *$/s/^.*$/#define HAVE_MENUS 1/ | 60 | /^#undef HAVE_MENUS *$/s/^.*$/#define HAVE_MENUS 1/ |
| 60 | /^#undef DATA_START/s/^.*$/#define DATA_START (\&etext + 1)/ | 61 | /^#undef DATA_START/s/^.*$/#define DATA_START (\&etext + 1)/ |
| @@ -64,9 +65,7 @@ | |||
| 64 | /^#undef PACKAGE_NAME/s/^.*$/#define PACKAGE_NAME ""/ | 65 | /^#undef PACKAGE_NAME/s/^.*$/#define PACKAGE_NAME ""/ |
| 65 | /^#undef PACKAGE_STRING/s/^.*$/#define PACKAGE_STRING ""/ | 66 | /^#undef PACKAGE_STRING/s/^.*$/#define PACKAGE_STRING ""/ |
| 66 | /^#undef PACKAGE_TARNAME/s/^.*$/#define PACKAGE_TARNAME ""/ | 67 | /^#undef PACKAGE_TARNAME/s/^.*$/#define PACKAGE_TARNAME ""/ |
| 67 | /^#undef PACKAGE_VERSION/s/^.*$/#define PACKAGE_VERSION VERSION/ | 68 | /^#undef PACKAGE_VERSION/s/^.*$/#define PACKAGE_VERSION "26.0.90"/ |
| 68 | /^#undef PENDING_OUTPUT_COUNT/s/^.*$/#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)/ | ||
| 69 | /^#undef VERSION/s/^.*$/#define VERSION "26.0.90"/ | ||
| 70 | /^#undef SYSTEM_TYPE/s/^.*$/#define SYSTEM_TYPE "ms-dos"/ | 69 | /^#undef SYSTEM_TYPE/s/^.*$/#define SYSTEM_TYPE "ms-dos"/ |
| 71 | /^#undef HAVE_DECL_GETENV/s/^.*$/#define HAVE_DECL_GETENV 1/ | 70 | /^#undef HAVE_DECL_GETENV/s/^.*$/#define HAVE_DECL_GETENV 1/ |
| 72 | /^#undef SYS_SIGLIST_DECLARED/s/^.*$/#define SYS_SIGLIST_DECLARED 1/ | 71 | /^#undef SYS_SIGLIST_DECLARED/s/^.*$/#define SYS_SIGLIST_DECLARED 1/ |
| @@ -86,6 +85,8 @@ | |||
| 86 | /^#undef IS_DIRECTORY_SEP *$/s,^.*$,#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\'), | 85 | /^#undef IS_DIRECTORY_SEP *$/s,^.*$,#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\'), |
| 87 | /^#undef IS_DEVICE_SEP *$/s/^.*$/#define IS_DEVICE_SEP(_c_) ((_c_) == ':')/ | 86 | /^#undef IS_DEVICE_SEP *$/s/^.*$/#define IS_DEVICE_SEP(_c_) ((_c_) == ':')/ |
| 88 | /^#undef IS_ANY_SEP *$/s/^.*$/#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))/ | 87 | /^#undef IS_ANY_SEP *$/s/^.*$/#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))/ |
| 88 | /^#undef NEED_MKTIME_INTERNAL *$/s/^.*$/#define NEED_MKTIME_INTERNAL 1/ | ||
| 89 | /^#undef NEED_MKTIME_WORKING *$/s/^.*$/#define NEED_MKTIME_WORKING 1/ | ||
| 89 | /^#undef INTERNAL_TERMINAL *$/s,^.*$,#define INTERNAL_TERMINAL "pc|bios|IBM PC with color display::co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>::se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>::AB=<BG %d>:AF=<FG %d>:op=<DefC>:", | 90 | /^#undef INTERNAL_TERMINAL *$/s,^.*$,#define INTERNAL_TERMINAL "pc|bios|IBM PC with color display::co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>::se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>::AB=<BG %d>:AF=<FG %d>:op=<DefC>:", |
| 90 | /^#undef NULL_DEVICE *$/s/^.*$/#define NULL_DEVICE "nul"/ | 91 | /^#undef NULL_DEVICE *$/s/^.*$/#define NULL_DEVICE "nul"/ |
| 91 | /^#undef SEPCHAR *$/s/^.*$/#define SEPCHAR '\;'/ | 92 | /^#undef SEPCHAR *$/s/^.*$/#define SEPCHAR '\;'/ |
| @@ -102,6 +103,7 @@ s/^#undef STACK_DIRECTION *$/#define STACK_DIRECTION -1/ | |||
| 102 | s/^#undef EMACS_CONFIGURATION *$/#define EMACS_CONFIGURATION "i386-pc-msdosdjgpp"/ | 103 | s/^#undef EMACS_CONFIGURATION *$/#define EMACS_CONFIGURATION "i386-pc-msdosdjgpp"/ |
| 103 | s/^#undef EMACS_CONFIG_OPTIONS *$/#define EMACS_CONFIG_OPTIONS "msdos"/ | 104 | s/^#undef EMACS_CONFIG_OPTIONS *$/#define EMACS_CONFIG_OPTIONS "msdos"/ |
| 104 | s/^#undef EMACS_CONFIG_FEATURES *$/#define EMACS_CONFIG_FEATURES ""/ | 105 | s/^#undef EMACS_CONFIG_FEATURES *$/#define EMACS_CONFIG_FEATURES ""/ |
| 106 | s|^#undef FLEXIBLE_ARRAY_MEMBER *$|#define FLEXIBLE_ARRAY_MEMBER /**/| | ||
| 105 | s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/ | 107 | s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/ |
| 106 | s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/ | 108 | s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/ |
| 107 | /^#undef HAVE_INTTYPES_H/c\ | 109 | /^#undef HAVE_INTTYPES_H/c\ |
| @@ -117,12 +119,31 @@ s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/ | |||
| 117 | #undef HAVE_STDINT_H\ | 119 | #undef HAVE_STDINT_H\ |
| 118 | #endif | 120 | #endif |
| 119 | s/^#undef HAVE_C_VARARRAYS *$/#define HAVE_C_VARARRAYS 1/ | 121 | s/^#undef HAVE_C_VARARRAYS *$/#define HAVE_C_VARARRAYS 1/ |
| 122 | s/^#undef HAVE_DECL_ALIGNED_ALLOC *$/#define HAVE_DECL_ALIGNED_ALLOC 0/ | ||
| 123 | s/^#undef HAVE_DECL_CLEARERR_UNLOCKED *$/#define HAVE_DECL_CLEARERR_UNLOCKED 0/ | ||
| 124 | s/^#undef HAVE_DECL_FEOF_UNLOCKED *$/#define HAVE_DECL_FEOF_UNLOCKED 0/ | ||
| 125 | s/^#undef HAVE_DECL_FERROR_UNLOCKED *$/#define HAVE_DECL_FERROR_UNLOCKED 0/ | ||
| 126 | s/^#undef HAVE_DECL_FFLUSH_UNLOCKED *$/#define HAVE_DECL_FFLUSH_UNLOCKED 0/ | ||
| 127 | s/^#undef HAVE_DECL_FGETS_UNLOCKED *$/#define HAVE_DECL_FGETS_UNLOCKED 0/ | ||
| 128 | s/^#undef HAVE_DECL_FPUTC_UNLOCKED *$/#define HAVE_DECL_FPUTC_UNLOCKED 0/ | ||
| 129 | s/^#undef HAVE_DECL_FPUTS_UNLOCKED *$/#define HAVE_DECL_FPUTS_UNLOCKED 0/ | ||
| 130 | s/^#undef HAVE_DECL_FREAD_UNLOCKED *$/#define HAVE_DECL_FREAD_UNLOCKED 0/ | ||
| 131 | s/^#undef HAVE_DECL_FWRITE_UNLOCKED *$/#define HAVE_DECL_FWRITE_UNLOCKED 0/ | ||
| 132 | s/^#undef HAVE_DECL_GETCHAR_UNLOCKED *$/#define HAVE_DECL_GETCHAR_UNLOCKED 0/ | ||
| 133 | s/^#undef HAVE_DECL_GETC_UNLOCKED *$/#define HAVE_DECL_GETC_UNLOCKED 0/ | ||
| 134 | s/^#undef HAVE_DECL_PUTCHAR_UNLOCKED *$/#define HAVE_DECL_PUTCHAR_UNLOCKED 0/ | ||
| 135 | s/^#undef HAVE_DECL_PUTC_UNLOCKED *$/#define HAVE_DECL_PUTC_UNLOCKED 0/ | ||
| 120 | s/^#undef HAVE_DECL_STRTOLL *$/#define HAVE_DECL_STRTOLL 1/ | 136 | s/^#undef HAVE_DECL_STRTOLL *$/#define HAVE_DECL_STRTOLL 1/ |
| 121 | s/^#undef HAVE_DECL_STRTOULL *$/#define HAVE_DECL_STRTOULL 1/ | ||
| 122 | s/^#undef HAVE_DECL_STRTOIMAX *$/#define HAVE_DECL_STRTOIMAX 1/ | 137 | s/^#undef HAVE_DECL_STRTOIMAX *$/#define HAVE_DECL_STRTOIMAX 1/ |
| 123 | s/^#undef HAVE_DECL_STRTOUMAX *$/#define HAVE_DECL_STRTOUMAX 1/ | ||
| 124 | s/^#undef HAVE_STRTOLL *$/#define HAVE_STRTOLL 1/ | 138 | s/^#undef HAVE_STRTOLL *$/#define HAVE_STRTOLL 1/ |
| 125 | s/^#undef HAVE_STRTOULL *$/#define HAVE_STRTOULL 1/ | 139 | s/^#undef HAVE_STRTOULL *$/#define HAVE_STRTOULL 1/ |
| 140 | /^#undef HAVE_STRUCT_DIRENT_D_TYPE *$/c\ | ||
| 141 | #if __DJGPP__ + (__DJGPP_MINOR__ >= 5) >= 3\ | ||
| 142 | #define HAVE_STRUCT_DIRENT_D_TYPE 1/\ | ||
| 143 | #else\ | ||
| 144 | #undef HAVE_STRUCT_DIRENT_D_TYPE\ | ||
| 145 | #endif | ||
| 146 | s/^#undef HAVE_STRUCT_ATTRIBUTE_ALIGNED *$/#define HAVE_STRUCT_ATTRIBUTE_ALIGNED 1/ | ||
| 126 | s/^#undef HAVE_PUTENV *$/#define HAVE_PUTENV 1/ | 147 | s/^#undef HAVE_PUTENV *$/#define HAVE_PUTENV 1/ |
| 127 | /^#undef HAVE_SIGSET_T *$/s/^.*$/#define HAVE_SIGSET_T 1/ | 148 | /^#undef HAVE_SIGSET_T *$/s/^.*$/#define HAVE_SIGSET_T 1/ |
| 128 | /^#undef HAVE_SNPRINTF/c\ | 149 | /^#undef HAVE_SNPRINTF/c\ |
| @@ -133,7 +154,9 @@ s/^#undef HAVE_PUTENV *$/#define HAVE_PUTENV 1/ | |||
| 133 | #include <sys/types.h>\ | 154 | #include <sys/types.h>\ |
| 134 | extern int snprintf (char *__restrict, size_t, const char *__restrict, ...);\ | 155 | extern int snprintf (char *__restrict, size_t, const char *__restrict, ...);\ |
| 135 | #endif | 156 | #endif |
| 136 | s/^#undef PENDING_OUTPUT_N_BYTES *$/#define PENDING_OUTPUT_N_BYTES fp->_ptr - fp->_base/ | 157 | /^#include <conf_post.h>/i\ |
| 158 | /* From libc/file.h, needed by lib/fpending.c. */\ | ||
| 159 | #define _IOERR 000200 | ||
| 137 | 160 | ||
| 138 | # Comment out any remaining undef directives, because some of them | 161 | # Comment out any remaining undef directives, because some of them |
| 139 | # might be defined in sys/config.h we include at the top of config.h. | 162 | # might be defined in sys/config.h we include at the top of config.h. |
diff --git a/msdos/sed3v2.inp b/msdos/sed3v2.inp index b9600e6b016..174c63aacbe 100644 --- a/msdos/sed3v2.inp +++ b/msdos/sed3v2.inp | |||
| @@ -20,7 +20,7 @@ | |||
| 20 | /^archlibdir *=/s!=.*$!=/emacs/bin! | 20 | /^archlibdir *=/s!=.*$!=/emacs/bin! |
| 21 | /^bindir *=/s!=.*$!=/emacs/bin! | 21 | /^bindir *=/s!=.*$!=/emacs/bin! |
| 22 | /^libdir *=/s!=.*$!=/emacs/bin! | 22 | /^libdir *=/s!=.*$!=/emacs/bin! |
| 23 | /^srcdir=/s!srcdir=@srcdir@!srcdir := $(subst \\,/,$(shell command.com /c cd))! | 23 | /^srcdir=/s!srcdir=@srcdir@!srcdir := $(CURDIR)! |
| 24 | /^VPATH *=/s!=.*$!=.! | 24 | /^VPATH *=/s!=.*$!=.! |
| 25 | /^BLESSMAIL_TARGET *=/s!@BLESSMAIL_TARGET@!need-blessmail! | 25 | /^BLESSMAIL_TARGET *=/s!@BLESSMAIL_TARGET@!need-blessmail! |
| 26 | /^KRB4LIB *=/s/@[^@\n]*@//g | 26 | /^KRB4LIB *=/s/@[^@\n]*@//g |
| @@ -41,7 +41,6 @@ | |||
| 41 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// | 41 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// |
| 42 | /^WARN_CFLAGS *=/s/@WARN_CFLAGS@// | 42 | /^WARN_CFLAGS *=/s/@WARN_CFLAGS@// |
| 43 | /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// | 43 | /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// |
| 44 | /^UPDATE_MANIFEST *=/s/@UPDATE_MANIFEST@// | ||
| 45 | /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@// | 44 | /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@// |
| 46 | /^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/ | 45 | /^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/ |
| 47 | /^[Aa][Mm]_/s/@AM_V@/$(V)/ | 46 | /^[Aa][Mm]_/s/@AM_V@/$(V)/ |
| @@ -58,6 +57,3 @@ | |||
| 58 | /^GETOPT_H *=/s!@GETOPT_H@!getopt.h! | 57 | /^GETOPT_H *=/s!@GETOPT_H@!getopt.h! |
| 59 | /^GETOPTOBJS *=/s!@GETOPTOBJS@!getopt.o getopt1.o! | 58 | /^GETOPTOBJS *=/s!@GETOPTOBJS@!getopt.o getopt1.o! |
| 60 | /^INSTALLABLES/s/emacsclient[^ ]* *// | 59 | /^INSTALLABLES/s/emacsclient[^ ]* *// |
| 61 | /^UTILITIES *=/,/^$/{ | ||
| 62 | s/movemail[^ ]* *// | ||
| 63 | } | ||
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp index 22611351d67..30776b46d7e 100644 --- a/msdos/sedlibmk.inp +++ b/msdos/sedlibmk.inp | |||
| @@ -18,14 +18,9 @@ | |||
| 18 | # | 18 | # |
| 19 | # Checklist to add a new gnulib module: | 19 | # Checklist to add a new gnulib module: |
| 20 | # | 20 | # |
| 21 | # . If the module includes source files that need to be compiled, and | 21 | # . If a module appears in gnulib.mk.in that is not required for the |
| 22 | # does not appear in the am_libgnu_a_OBJECTS list, add the | 22 | # MSDOS build, disable its building by setting the corresponding |
| 23 | # corresponding .o file names to the list that gets assigned to the | 23 | # OMIT_GNULIB_MODULE_foo variable to true. |
| 24 | # gl_LIBOBJS variable. | ||
| 25 | # | ||
| 26 | # . If a module appears in am_libgnu_a_OBJECTS that is not required | ||
| 27 | # for the MSDOS build, edit it out by adding an appropriate command | ||
| 28 | # to the set that edits the am_libgnu_a_OBJECTS block. | ||
| 29 | # | 24 | # |
| 30 | # . If the module defines functions that need to replace DJGPP | 25 | # . If the module defines functions that need to replace DJGPP |
| 31 | # functions, edit the appropriate REPLACE_foo variables to 1: | 26 | # functions, edit the appropriate REPLACE_foo variables to 1: |
| @@ -38,22 +33,22 @@ | |||
| 38 | # as above should be placed before that catchall rule (search for | 33 | # as above should be placed before that catchall rule (search for |
| 39 | # "REPLACE_" below). | 34 | # "REPLACE_" below). |
| 40 | # | 35 | # |
| 41 | # . If the module is a header or adds headers, edit the corresponding | 36 | # . If the module generates a header from a .in.h file, edit the |
| 42 | # variable to either an empty value or to the name of the header. | 37 | # corresponding variable to either an empty value or to the name of |
| 43 | # Examples: | 38 | # the header. Examples: |
| 44 | # | 39 | # |
| 45 | # /^STDINT_H *=/s/@[^@\n]*@/stdint.h/ -- stdint.h is needed | 40 | # /^STDINT_H *=/s/@[^@\n]*@/stdint.h/ -- stdint.h is needed |
| 46 | # /^STDDEF_H *=/s/@[^@\n]*@// -- stddef.h is not needed | 41 | # /^STDDEF_H *=/s/@[^@\n]*@// -- stddef.h is not needed |
| 47 | # | 42 | # |
| 48 | # . Some of the headers are generated conditionally, and the | 43 | # . Some of the headers are generated conditionally, and the |
| 49 | # corresponding recipes are guarded by @GL_GENERATE_xxxx_H_TRUE@ | 44 | # corresponding recipes are guarded by |
| 50 | # and @GL_GENERATE_xxxx_H_FALSE@. Depending on whether DJGPP uses | 45 | # ifneq (,$(GL_GENERATE_xxxx_H)) |
| 51 | # the corresponding header, these should be edited either to | 46 | # Depending on whether DJGPP uses the corresponding header, these |
| 52 | # nothing (thus exposing the recipe) or to #, which comments the | 47 | # should be edited either to 1 (thus exposing the recipe) or |
| 53 | # recipe away. Example: | 48 | # to notyhing, which makes Make bypass the recipe away. Example: |
| 54 | # | 49 | # |
| 55 | # s/^@GL_GENERATE_STDBOOL_H_TRUE@/\#/ | 50 | # s/^@GL_GENERATE_STDBOOL_H@/1/ |
| 56 | # s/^@GL_GENERATE_STDBOOL_H_FALSE@// | 51 | # s/^@GL_GENERATE_STDINT_H@// |
| 57 | # | 52 | # |
| 58 | # . Also edit the NEXT_foo_H and NEXT_AS_FIRST_DIRECTIVE_foo_H | 53 | # . Also edit the NEXT_foo_H and NEXT_AS_FIRST_DIRECTIVE_foo_H |
| 59 | # variables as appropriately: to an empty value if the gnulib | 54 | # variables as appropriately: to an empty value if the gnulib |
| @@ -67,7 +62,7 @@ | |||
| 67 | # | 62 | # |
| 68 | # . Note that some gnulib headers cannot be left unused: those for | 63 | # . Note that some gnulib headers cannot be left unused: those for |
| 69 | # which there's no corresponding foo_H variable in | 64 | # which there's no corresponding foo_H variable in |
| 70 | # msdos/autogen/Makefile.in (example: stdio.h). For these the "not | 65 | # lib/Makefile.in (example: stdio.h). For these the "not |
| 71 | # needed" path is not applicable. | 66 | # needed" path is not applicable. |
| 72 | # | 67 | # |
| 73 | # . If the header is needed, edit all the variables it uses as | 68 | # . If the header is needed, edit all the variables it uses as |
| @@ -135,8 +130,6 @@ | |||
| 135 | /^@SET_MAKE@$/s/@SET_MAKE@// | 130 | /^@SET_MAKE@$/s/@SET_MAKE@// |
| 136 | /^VPATH *=/s/@[^@\n]*@/./ | 131 | /^VPATH *=/s/@[^@\n]*@/./ |
| 137 | s/@PACKAGE@/emacs/ | 132 | s/@PACKAGE@/emacs/ |
| 138 | /^am__cd *=/c\ | ||
| 139 | am__cd = cd | ||
| 140 | /^@BUILDING_FOR_WINDOWSNT_TRUE@/s/@[^@\n]*@/#/ | 133 | /^@BUILDING_FOR_WINDOWSNT_TRUE@/s/@[^@\n]*@/#/ |
| 141 | /^@BUILDING_FOR_WINDOWSNT_FALSE@/s/@[^@\n]*@// | 134 | /^@BUILDING_FOR_WINDOWSNT_FALSE@/s/@[^@\n]*@// |
| 142 | /^ALLOCA *=/s/@[^@\n]*@// | 135 | /^ALLOCA *=/s/@[^@\n]*@// |
| @@ -145,6 +138,7 @@ am__cd = cd | |||
| 145 | /^AR *=/s/@[^@\n]*@/ar/ | 138 | /^AR *=/s/@[^@\n]*@/ar/ |
| 146 | /^ARFLAGS *=/s/@[^@\n]*@/cru/ | 139 | /^ARFLAGS *=/s/@[^@\n]*@/cru/ |
| 147 | /^AWK *=/s/@[^@\n]*@/gawk/ | 140 | /^AWK *=/s/@[^@\n]*@/gawk/ |
| 141 | /^AUTO_DEPEND *=/s/@AUTO_DEPEND@/yes/ | ||
| 148 | /^CANNOT_DUMP *=/s/@[^@\n]*@/no/ | 142 | /^CANNOT_DUMP *=/s/@[^@\n]*@/no/ |
| 149 | /^CC *=/s/@[^@\n]*@/gcc -std=gnu99/ | 143 | /^CC *=/s/@[^@\n]*@/gcc -std=gnu99/ |
| 150 | /^CPP *=/s/@[^@\n]*@/gcc -e/ | 144 | /^CPP *=/s/@[^@\n]*@/gcc -e/ |
| @@ -159,6 +153,7 @@ am__cd = cd | |||
| 159 | /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@// | 153 | /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@// |
| 160 | /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@// | 154 | /^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@// |
| 161 | /^GNULIB_WARN_CFLAGS *=/s/@GNULIB_WARN_CFLAGS@// | 155 | /^GNULIB_WARN_CFLAGS *=/s/@GNULIB_WARN_CFLAGS@// |
| 156 | /^HYBRID_MALLOC *=/s/@HYBRID_MALLOC@// | ||
| 162 | /^WARN_CFLAGS *=/s/@WARN_CFLAGS@// | 157 | /^WARN_CFLAGS *=/s/@WARN_CFLAGS@// |
| 163 | /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// | 158 | /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// |
| 164 | /^DEFS *=/s/@[^@\n]*@// | 159 | /^DEFS *=/s/@[^@\n]*@// |
| @@ -191,6 +186,7 @@ am__cd = cd | |||
| 191 | /^GNULIB_MKOSTEMP *=/s/@GNULIB_MKOSTEMP@/1/ | 186 | /^GNULIB_MKOSTEMP *=/s/@GNULIB_MKOSTEMP@/1/ |
| 192 | /^GNULIB_MKTIME *=/s/@GNULIB_MKTIME@/1/ | 187 | /^GNULIB_MKTIME *=/s/@GNULIB_MKTIME@/1/ |
| 193 | /^GNULIB_TIME_R *=/s/@GNULIB_TIME_R@/1/ | 188 | /^GNULIB_TIME_R *=/s/@GNULIB_TIME_R@/1/ |
| 189 | /^GNULIB_TIMEGM *=/s/@GNULIB_TIMEGM@/1/ | ||
| 194 | /^GNULIB_TIME_RZ *=/s/@GNULIB_TIME_RZ@/1/ | 190 | /^GNULIB_TIME_RZ *=/s/@GNULIB_TIME_RZ@/1/ |
| 195 | /^GNULIB_UNSETENV *=/s/@GNULIB_UNSETENV@/1/ | 191 | /^GNULIB_UNSETENV *=/s/@GNULIB_UNSETENV@/1/ |
| 196 | /^GNULIB_[^ =]* *= *@/s/@[^@\n]*@/0/ | 192 | /^GNULIB_[^ =]* *= *@/s/@[^@\n]*@/0/ |
| @@ -250,6 +246,7 @@ am__cd = cd | |||
| 250 | /^HAVE_SYS_PARAM_H *=/s/@HAVE_SYS_PARAM_H@/1/ | 246 | /^HAVE_SYS_PARAM_H *=/s/@HAVE_SYS_PARAM_H@/1/ |
| 251 | /^HAVE_SYS_TIME_H *=/s/@HAVE_SYS_TIME_H@/1/ | 247 | /^HAVE_SYS_TIME_H *=/s/@HAVE_SYS_TIME_H@/1/ |
| 252 | /^HAVE_SYS_TYPES_H *=/s/@HAVE_SYS_TYPES_H@/1/ | 248 | /^HAVE_SYS_TYPES_H *=/s/@HAVE_SYS_TYPES_H@/1/ |
| 249 | /^HAVE_TIMEGM *=/s/@HAVE_TIMEGM@/0/ | ||
| 253 | /^HAVE_TYPE_VOLATILE_SIG_ATOMIC_T *=/s/@HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@/1/ | 250 | /^HAVE_TYPE_VOLATILE_SIG_ATOMIC_T *=/s/@HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@/1/ |
| 254 | /^HAVE_UNISTD_H *=/s/@HAVE_UNISTD_H@/1/ | 251 | /^HAVE_UNISTD_H *=/s/@HAVE_UNISTD_H@/1/ |
| 255 | /^HAVE_UNSIGNED_LONG_LONG_INT *=/s/@HAVE_UNSIGNED_LONG_LONG_INT@/1/ | 252 | /^HAVE_UNSIGNED_LONG_LONG_INT *=/s/@HAVE_UNSIGNED_LONG_LONG_INT@/1/ |
| @@ -273,6 +270,7 @@ am__cd = cd | |||
| 273 | /^NEXT_AS_FIRST_DIRECTIVE_ERRNO_H *=/s/@[^@\n]*@// | 270 | /^NEXT_AS_FIRST_DIRECTIVE_ERRNO_H *=/s/@[^@\n]*@// |
| 274 | /^NEXT_AS_FIRST_DIRECTIVE_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/ | 271 | /^NEXT_AS_FIRST_DIRECTIVE_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/ |
| 275 | /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ | 272 | /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ |
| 273 | /^NEXT_AS_FIRST_DIRECTIVE_LIMITS_H *=/s/@[^@\n]*@/<limits.h>/ | ||
| 276 | /^NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/ | 274 | /^NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/ |
| 277 | /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@/<stddef.h>/ | 275 | /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@/<stddef.h>/ |
| 278 | /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ | 276 | /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ |
| @@ -289,6 +287,7 @@ am__cd = cd | |||
| 289 | /^NEXT_ERRNO_H *=/s/@[^@\n]*@// | 287 | /^NEXT_ERRNO_H *=/s/@[^@\n]*@// |
| 290 | /^NEXT_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/ | 288 | /^NEXT_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/ |
| 291 | /^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ | 289 | /^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ |
| 290 | /^NEXT_LIMITS_H *=/s/@[^@\n]*@/<limits.h>/ | ||
| 292 | /^NEXT_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/ | 291 | /^NEXT_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/ |
| 293 | /^NEXT_STDDEF_H *=/s/@[^@\n]*@/<stddef.h>/ | 292 | /^NEXT_STDDEF_H *=/s/@[^@\n]*@/<stddef.h>/ |
| 294 | /^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ | 293 | /^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ |
| @@ -317,6 +316,8 @@ am__cd = cd | |||
| 317 | /^DIRENT_H *=/s/@[^@\n]*@// | 316 | /^DIRENT_H *=/s/@[^@\n]*@// |
| 318 | /^ERRNO_H *=/s/@[^@\n]*@// | 317 | /^ERRNO_H *=/s/@[^@\n]*@// |
| 319 | /^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/ | 318 | /^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/ |
| 319 | /^GETOPT_CDEFS_H *=/s/@[^@\n]*@/getopt-cdefs.h/ | ||
| 320 | /^LIMITS_H *=/s/@[^@\n]*@/limits.h/ | ||
| 320 | /^STDALIGN_H *=/s/@[^@\n]*@/stdalign.h/ | 321 | /^STDALIGN_H *=/s/@[^@\n]*@/stdalign.h/ |
| 321 | /^STDDEF_H *=/s/@[^@\n]*@/stddef.h/ | 322 | /^STDDEF_H *=/s/@[^@\n]*@/stddef.h/ |
| 322 | /^STDINT_H *=/s/@[^@\n]*@/stdint.h/ | 323 | /^STDINT_H *=/s/@[^@\n]*@/stdint.h/ |
| @@ -330,6 +331,8 @@ am__cd = cd | |||
| 330 | /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@// | 331 | /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@// |
| 331 | /^WINDOWS_64_BIT_OFF_T *=/s/@WINDOWS_64_BIT_OFF_T@/0/ | 332 | /^WINDOWS_64_BIT_OFF_T *=/s/@WINDOWS_64_BIT_OFF_T@/0/ |
| 332 | /^WINDOWS_64_BIT_ST_SIZE *=/s/@WINDOWS_64_BIT_ST_SIZE@/0/ | 333 | /^WINDOWS_64_BIT_ST_SIZE *=/s/@WINDOWS_64_BIT_ST_SIZE@/0/ |
| 334 | /^WINDOWS_STAT_INODES *=/s/@WINDOWS_STAT_INODES@/0/ | ||
| 335 | /^WINDOWS_STAT_TIMESPEC *=/s/@WINDOWS_STAT_TIMESPEC@/0/ | ||
| 333 | # Tailor lists of files to what we need | 336 | # Tailor lists of files to what we need |
| 334 | /am__append_[1-9][0-9]* *=.*gettext\.h/s/@[^@\n]*@/\#/ | 337 | /am__append_[1-9][0-9]* *=.*gettext\.h/s/@[^@\n]*@/\#/ |
| 335 | /am__append_2 *=.*verify\.h/s/@[^@\n]*@// | 338 | /am__append_2 *=.*verify\.h/s/@[^@\n]*@// |
| @@ -357,15 +360,18 @@ am__cd = cd | |||
| 357 | /^top_builddir *=/s/@[^@\n]*@/../ | 360 | /^top_builddir *=/s/@[^@\n]*@/../ |
| 358 | s/@PRAGMA_SYSTEM_HEADER@/\#pragma GCC system_header/ | 361 | s/@PRAGMA_SYSTEM_HEADER@/\#pragma GCC system_header/ |
| 359 | s/@PRAGMA_COLUMNS@// | 362 | s/@PRAGMA_COLUMNS@// |
| 363 | /^SYSTEM_TYPE *=/s/@SYSTEM_TYPE@/msdos/ | ||
| 364 | /^ifneq (\$(SYSTEM_TYPE),windows-nt)/,/^endif/d | ||
| 365 | /^DEPDIR *=/a\ | ||
| 366 | AUTO_DEPEND = yes | ||
| 360 | # | 367 | # |
| 361 | # Delete the recipes we don't want to get in our way. | 368 | # Delete the recipes we don't want to get in our way. |
| 362 | /^\$(srcdir)\/Makefile\.in:/,/^[ ][ ]*\$(AUTOMAKE)/d | 369 | /^\.\.\/config.status:/,/^Makefile:/c\ |
| 363 | /^Makefile:/,/^[ ][ ]*esac/d | 370 | Makefile: $(srcdir)/Makefile.in |
| 364 | /^\$(top_srcdir)\/configure:/,/^\$(am__aclocal_m4_deps):/d | ||
| 365 | /^\$(top_builddir)\/config.status:/,/^$/d | ||
| 366 | # | 371 | # |
| 367 | # Remove the dependencies on $(top_builddir)/config.status | 372 | # Remove the dependencies on $(top_builddir)/config.status |
| 368 | s/ $(top_builddir)\/config.status// | 373 | s/ \.\.\/config.status// |
| 374 | s/ \$(top_builddir)\/config.status// | ||
| 369 | # | 375 | # |
| 370 | # Fix the include-dependency lines | 376 | # Fix the include-dependency lines |
| 371 | s/^@AMDEP_TRUE@// | 377 | s/^@AMDEP_TRUE@// |
| @@ -387,23 +393,53 @@ CONFIG_CLEAN_VPATH_FILES = xyzzy | |||
| 387 | s/^ -*test -z.*|| rm/ -rm/ | 393 | s/^ -*test -z.*|| rm/ -rm/ |
| 388 | s/@echo /@djecho / | 394 | s/@echo /@djecho / |
| 389 | # | 395 | # |
| 390 | # Fix the recipes for header files | 396 | # Determine which headers to generate |
| 391 | s/^@GL_GENERATE_ALLOCA_H_TRUE@// | 397 | s/= @GL_GENERATE_ALLOCA_H@/= 1/ |
| 392 | s/^@GL_GENERATE_ALLOCA_H_FALSE@/\#/ | 398 | s/= @GL_GENERATE_BYTESWAP_H@/= 1/ |
| 393 | s/^@GL_GENERATE_BYTESWAP_H_TRUE@// | 399 | s/= @GL_GENERATE_EXECINFO_H@/= 1/ |
| 394 | s/^@GL_GENERATE_BYTESWAP_H_FALSE@/\#/ | 400 | s/= @GL_GENERATE_STDALIGN_H@/= 1/ |
| 395 | s/^@GL_GENERATE_ERRNO_H_TRUE@/\#/ | 401 | s/= @GL_GENERATE_STDDEF_H@/= 1/ |
| 396 | s/^@GL_GENERATE_ERRNO_H_FALSE@// | 402 | s/= @GL_GENERATE_STDINT_H@/= 1/ |
| 397 | s/^@GL_GENERATE_EXECINFO_H_TRUE@// | 403 | s/= @GL_GENERATE_LIMITS_H@/= 1/ |
| 398 | s/^@GL_GENERATE_EXECINFO_H_FALSE@/\#/ | 404 | s/= @GL_GENERATE_ERRNO_H@/= / |
| 399 | s/^@GL_GENERATE_STDALIGN_H_TRUE@// | 405 | s/= @GL_GENERATE_LIMITS_H@/= / |
| 400 | s/^@GL_GENERATE_STDALIGN_H_FALSE@/\#/ | 406 | # |
| 401 | s/^@GL_GENERATE_STDDEF_H_TRUE@// | 407 | # Determine which modules to build and which to omit |
| 402 | s/^@GL_GENERATE_STDDEF_H_FALSE@/\#/ | 408 | /^noinst_LIBRARIES /a\ |
| 403 | s/^@GL_GENERATE_STDINT_H_TRUE@// | 409 | OMIT_GNULIB_MODULE_acl-permissions = true\ |
| 404 | s/^@GL_GENERATE_STDINT_H_FALSE@/\#/ | 410 | OMIT_GNULIB_MODULE_allocator = true\ |
| 405 | s/^@GL_GENERATE_STDALIGN_H_TRUE@// | 411 | OMIT_GNULIB_MODULE_at-internal = true\ |
| 406 | s/^@GL_GENERATE_STDALIGN_H_FALSE@/\#/ | 412 | OMIT_GNULIB_MODULE_careadlinkat = true\ |
| 413 | OMIT_GNULIB_MODULE_cloexec = true\ | ||
| 414 | OMIT_GNULIB_MODULE_dirent = true\ | ||
| 415 | OMIT_GNULIB_MODULE_dirfd = true\ | ||
| 416 | OMIT_GNULIB_MODULE_dup2 = true\ | ||
| 417 | OMIT_GNULIB_MODULE_errno = true\ | ||
| 418 | OMIT_GNULIB_MODULE_euidaccess = true\ | ||
| 419 | OMIT_GNULIB_MODULE_faccessat = true\ | ||
| 420 | OMIT_GNULIB_MODULE_fcntl = true\ | ||
| 421 | OMIT_GNULIB_MODULE_fdopendir = true\ | ||
| 422 | OMIT_GNULIB_MODULE_fstatat = true\ | ||
| 423 | OMIT_GNULIB_MODULE_fsync = true\ | ||
| 424 | OMIT_GNULIB_MODULE_getdtablesize = true\ | ||
| 425 | OMIT_GNULIB_MODULE_getgroups = true\ | ||
| 426 | OMIT_GNULIB_MODULE_gettimeofday = true\ | ||
| 427 | OMIT_GNULIB_MODULE_group-member = true\ | ||
| 428 | OMIT_GNULIB_MODULE_inttypes-incomplete = true\ | ||
| 429 | OMIT_GNULIB_MODULE_localtime-buffer = true\ | ||
| 430 | OMIT_GNULIB_MODULE_lstat = true\ | ||
| 431 | OMIT_GNULIB_MODULE_open = true\ | ||
| 432 | OMIT_GNULIB_MODULE_pipe2 = true\ | ||
| 433 | OMIT_GNULIB_MODULE_pselect = true\ | ||
| 434 | OMIT_GNULIB_MODULE_putenv = true\ | ||
| 435 | OMIT_GNULIB_MODULE_qcopy-acl = true\ | ||
| 436 | OMIT_GNULIB_MODULE_readlink = true\ | ||
| 437 | OMIT_GNULIB_MODULE_readlinkat = true\ | ||
| 438 | OMIT_GNULIB_MODULE_strtoimax = true\ | ||
| 439 | OMIT_GNULIB_MODULE_strtoll = true\ | ||
| 440 | OMIT_GNULIB_MODULE_symlink = true\ | ||
| 441 | OMIT_GNULIB_MODULE_sys_select = true\ | ||
| 442 | OMIT_GNULIB_MODULE_sys_time = true | ||
| 407 | /^arg-nonnull\.h:/,/^[ ][ ]*mv /c\ | 443 | /^arg-nonnull\.h:/,/^[ ][ ]*mv /c\ |
| 408 | arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h\ | 444 | arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h\ |
| 409 | sed -n -e '/GL_ARG_NONNULL/,$$p' < $(top_srcdir)/build-aux/snippet/arg-nonnull.h > $@ | 445 | sed -n -e '/GL_ARG_NONNULL/,$$p' < $(top_srcdir)/build-aux/snippet/arg-nonnull.h > $@ |
| @@ -416,6 +452,7 @@ warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h\ | |||
| 416 | s/^ [ ]*{ echo \(.*\); \\/ djecho \1 > $@-t/ | 452 | s/^ [ ]*{ echo \(.*\); \\/ djecho \1 > $@-t/ |
| 417 | s/^ [ ]*{ echo \(.*\) && \\/ djecho \1 > $@-t/ | 453 | s/^ [ ]*{ echo \(.*\) && \\/ djecho \1 > $@-t/ |
| 418 | s/^ [ ]*cat \(.*\); \\/ sed -e '' \1 >> $@-t/ | 454 | s/^ [ ]*cat \(.*\); \\/ sed -e '' \1 >> $@-t/ |
| 455 | s/^ sed -e/ sed -e/ | ||
| 419 | s/ \&\& \\ *$// | 456 | s/ \&\& \\ *$// |
| 420 | s/\.in-h\; *\\$/.in-h >> $@-t/ | 457 | s/\.in-h\; *\\$/.in-h >> $@-t/ |
| 421 | /^ [ ]*} /d | 458 | /^ [ ]*} /d |
diff --git a/msdos/sedlisp.inp b/msdos/sedlisp.inp index d58e247d343..15f17ce3ee2 100644 --- a/msdos/sedlisp.inp +++ b/msdos/sedlisp.inp | |||
| @@ -25,6 +25,7 @@ export FNCASE=y | |||
| 25 | /^top_srcdir *=/s|@top_srcdir@|./..| | 25 | /^top_srcdir *=/s|@top_srcdir@|./..| |
| 26 | /^EXEEXT *=/s/@EXEEXT@/.exe/ | 26 | /^EXEEXT *=/s/@EXEEXT@/.exe/ |
| 27 | /^XARGS_LIMIT *=/s|@XARGS_LIMIT@|| | 27 | /^XARGS_LIMIT *=/s|@XARGS_LIMIT@|| |
| 28 | /^FIND_DELETE *=/s/@FIND_DELETE@/-delete/ | ||
| 28 | /^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/ | 29 | /^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/ |
| 29 | /^[Aa][Mm]_/s/@AM_V@/$(V)/ | 30 | /^[Aa][Mm]_/s/@AM_V@/$(V)/ |
| 30 | /^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/ | 31 | /^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/ |
diff --git a/src/conf_post.h b/src/conf_post.h index febdb8b8bf7..4c9eb32aba3 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -31,7 +31,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 31 | 31 | ||
| 32 | #include <stdbool.h> | 32 | #include <stdbool.h> |
| 33 | 33 | ||
| 34 | #if defined DOS_NT && !defined DEFER_MS_W32_H | 34 | #if defined WINDOWSNT && !defined DEFER_MS_W32_H |
| 35 | # include <ms-w32.h> | 35 | # include <ms-w32.h> |
| 36 | #endif | 36 | #endif |
| 37 | 37 | ||
diff --git a/src/msdos.c b/src/msdos.c index 68daa10fdb9..43730ebedc3 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -3943,6 +3943,8 @@ careadlinkat (int fd, char const *filename, | |||
| 3943 | int | 3943 | int |
| 3944 | faccessat (int dirfd, const char * path, int mode, int flags) | 3944 | faccessat (int dirfd, const char * path, int mode, int flags) |
| 3945 | { | 3945 | { |
| 3946 | char fullname[MAXPATHLEN]; | ||
| 3947 | |||
| 3946 | /* We silently ignore FLAGS. */ | 3948 | /* We silently ignore FLAGS. */ |
| 3947 | flags = flags; | 3949 | flags = flags; |
| 3948 | 3950 | ||
diff --git a/src/msdos.h b/src/msdos.h index 16292c551d9..e4f633e9df4 100644 --- a/src/msdos.h +++ b/src/msdos.h | |||
| @@ -21,6 +21,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <dpmi.h> | 22 | #include <dpmi.h> |
| 23 | 23 | ||
| 24 | #include "termhooks.h" /* struct terminal */ | ||
| 25 | |||
| 24 | int dos_ttraw (struct tty_display_info *); | 26 | int dos_ttraw (struct tty_display_info *); |
| 25 | int dos_ttcooked (void); | 27 | int dos_ttcooked (void); |
| 26 | int dos_get_saved_screen (char **, int *, int *); | 28 | int dos_get_saved_screen (char **, int *, int *); |
| @@ -67,6 +69,7 @@ void syms_of_win16select (void); | |||
| 67 | 69 | ||
| 68 | /* Constants. */ | 70 | /* Constants. */ |
| 69 | #define EINPROGRESS 112 | 71 | #define EINPROGRESS 112 |
| 72 | #define ENOTSUP ENOSYS | ||
| 70 | /* Gnulib sets O_CLOEXEC to O_NOINHERIT, which gets in the way when we | 73 | /* Gnulib sets O_CLOEXEC to O_NOINHERIT, which gets in the way when we |
| 71 | need to redirect standard handles for subprocesses using temporary | 74 | need to redirect standard handles for subprocesses using temporary |
| 72 | files created by mkostemp, see callproc.c. */ | 75 | files created by mkostemp, see callproc.c. */ |
diff --git a/src/process.c b/src/process.c index 943cb2a1048..fc46e743328 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -40,6 +40,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 40 | #include <netinet/in.h> | 40 | #include <netinet/in.h> |
| 41 | #include <arpa/inet.h> | 41 | #include <arpa/inet.h> |
| 42 | 42 | ||
| 43 | #endif /* subprocesses */ | ||
| 44 | |||
| 43 | #ifdef HAVE_SETRLIMIT | 45 | #ifdef HAVE_SETRLIMIT |
| 44 | # include <sys/resource.h> | 46 | # include <sys/resource.h> |
| 45 | 47 | ||
| @@ -49,6 +51,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 49 | static struct rlimit nofile_limit; | 51 | static struct rlimit nofile_limit; |
| 50 | #endif | 52 | #endif |
| 51 | 53 | ||
| 54 | #ifdef subprocesses | ||
| 55 | |||
| 52 | /* Are local (unix) sockets supported? */ | 56 | /* Are local (unix) sockets supported? */ |
| 53 | #if defined (HAVE_SYS_UN_H) | 57 | #if defined (HAVE_SYS_UN_H) |
| 54 | #if !defined (AF_LOCAL) && defined (AF_UNIX) | 58 | #if !defined (AF_LOCAL) && defined (AF_UNIX) |
| @@ -7455,6 +7459,13 @@ keyboard_bit_set (fd_set *mask) | |||
| 7455 | 7459 | ||
| 7456 | #else /* not subprocesses */ | 7460 | #else /* not subprocesses */ |
| 7457 | 7461 | ||
| 7462 | /* This is referenced in thread.c:run_thread (which is never actually | ||
| 7463 | called, since threads are not enabled for this configuration. */ | ||
| 7464 | void | ||
| 7465 | update_processes_for_thread_death (Lisp_Object dying_thread) | ||
| 7466 | { | ||
| 7467 | } | ||
| 7468 | |||
| 7458 | /* Defined in msdos.c. */ | 7469 | /* Defined in msdos.c. */ |
| 7459 | extern int sys_select (int, fd_set *, fd_set *, fd_set *, | 7470 | extern int sys_select (int, fd_set *, fd_set *, fd_set *, |
| 7460 | struct timespec *, void *); | 7471 | struct timespec *, void *); |
diff --git a/src/sysdep.c b/src/sysdep.c index dd0062b6f04..f9cc2c81762 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -831,6 +831,8 @@ unblock_child_signal (sigset_t const *oldset) | |||
| 831 | pthread_sigmask (SIG_SETMASK, oldset, 0); | 831 | pthread_sigmask (SIG_SETMASK, oldset, 0); |
| 832 | } | 832 | } |
| 833 | 833 | ||
| 834 | #endif /* !MSDOS */ | ||
| 835 | |||
| 834 | /* Block SIGINT. */ | 836 | /* Block SIGINT. */ |
| 835 | void | 837 | void |
| 836 | block_interrupt_signal (sigset_t *oldset) | 838 | block_interrupt_signal (sigset_t *oldset) |
| @@ -848,7 +850,6 @@ restore_signal_mask (sigset_t const *oldset) | |||
| 848 | pthread_sigmask (SIG_SETMASK, oldset, 0); | 850 | pthread_sigmask (SIG_SETMASK, oldset, 0); |
| 849 | } | 851 | } |
| 850 | 852 | ||
| 851 | #endif /* !MSDOS */ | ||
| 852 | 853 | ||
| 853 | /* Saving and restoring the process group of Emacs's terminal. */ | 854 | /* Saving and restoring the process group of Emacs's terminal. */ |
| 854 | 855 | ||
diff --git a/src/sysselect.h b/src/sysselect.h index 8295aeb8421..4d8a4d0a3a9 100644 --- a/src/sysselect.h +++ b/src/sysselect.h | |||
| @@ -50,6 +50,11 @@ typedef int fd_set; | |||
| 50 | #endif | 50 | #endif |
| 51 | 51 | ||
| 52 | #ifdef MSDOS | 52 | #ifdef MSDOS |
| 53 | /* The above #define for 'select' gets in the way because sysselect.h | ||
| 54 | is included in thread.h, which is included everywhere, and 'select' | ||
| 55 | declared in DJGPP system headers has a signature incompatible with | ||
| 56 | 'pselect', which we emulate in msdos.c. */ | ||
| 57 | #undef select | ||
| 53 | #define pselect sys_select | 58 | #define pselect sys_select |
| 54 | #endif | 59 | #endif |
| 55 | 60 | ||
diff --git a/src/thread.c b/src/thread.c index d075bdb3a13..c03cdda0fae 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -806,7 +806,11 @@ If NAME is given, it must be a string; it names the new thread. */) | |||
| 806 | { | 806 | { |
| 807 | /* Restore the previous situation. */ | 807 | /* Restore the previous situation. */ |
| 808 | all_threads = all_threads->next_thread; | 808 | all_threads = all_threads->next_thread; |
| 809 | #ifdef THREADS_ENABLED | ||
| 809 | error ("Could not start a new thread"); | 810 | error ("Could not start a new thread"); |
| 811 | #else | ||
| 812 | error ("Concurrency is not supported in this configuration"); | ||
| 813 | #endif | ||
| 810 | } | 814 | } |
| 811 | 815 | ||
| 812 | /* FIXME: race here where new thread might not be filled in? */ | 816 | /* FIXME: race here where new thread might not be filled in? */ |
diff --git a/src/thread.h b/src/thread.h index cb2133d72d4..19baafbf8a1 100644 --- a/src/thread.h +++ b/src/thread.h | |||
| @@ -25,6 +25,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 25 | #include <sys/socket.h> | 25 | #include <sys/socket.h> |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| 28 | #ifdef MSDOS | ||
| 29 | #include <signal.h> /* sigset_t */ | ||
| 30 | #endif | ||
| 31 | |||
| 28 | #include "sysselect.h" /* FIXME */ | 32 | #include "sysselect.h" /* FIXME */ |
| 29 | #include "systime.h" /* FIXME */ | 33 | #include "systime.h" /* FIXME */ |
| 30 | #include "systhread.h" | 34 | #include "systhread.h" |