1996-04-10 00:53:52 +00:00
|
|
|
# -sed3v2.inp-------------------------------------------------------------
|
|
|
|
# Configuration script for lib-src/makefile under DJGPP v2
|
|
|
|
# ----------------------------------------------------------------------
|
2001-03-01 17:19:33 +00:00
|
|
|
#
|
2012-01-05 09:46:05 +00:00
|
|
|
# Copyright (C) 1996, 1998, 2000-2012 Free Software Foundation, Inc.
|
2001-03-01 17:19:33 +00:00
|
|
|
#
|
|
|
|
# This file is part of GNU Emacs.
|
|
|
|
#
|
|
|
|
# This file is free software; as a special exception, the author gives
|
|
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------
|
1996-04-10 00:53:52 +00:00
|
|
|
/^# DIST: /d
|
|
|
|
/^SHELL *=/s/^/# /
|
|
|
|
/^CC *=/s/=.*$/=gcc/
|
2011-02-19 17:54:18 +00:00
|
|
|
s/-DVERSION[^ ]* //
|
1996-04-10 00:53:52 +00:00
|
|
|
/^configname *=/s/=.*$/=msdos/
|
|
|
|
/^archlibdir *=/s!=.*$!=/emacs/bin!
|
|
|
|
/^bindir *=/s!=.*$!=/emacs/bin!
|
|
|
|
/^libdir *=/s!=.*$!=/emacs/bin!
|
2003-08-31 16:44:25 +00:00
|
|
|
/^srcdir=/s!srcdir=@srcdir@!srcdir := $(subst \\,/,$(shell command.com /c cd))!
|
1996-04-10 00:53:52 +00:00
|
|
|
/^VPATH *=/s!=.*$!=.!
|
2010-05-10 00:07:47 +00:00
|
|
|
/^BLESSMAIL_TARGET *=/s!@BLESSMAIL_TARGET@!need-blessmail!
|
Fix the MSDOS build as fallout from the latest Makefile.in changes.
config.bat <lib-src>: Edit out lines that begin with several #
characters.
msdos/sedlisp.inp (VPATH): Don't edit, no longer needed.
(lisp, srcdir): Adapt to lisp/Makefile.in changes.
(abs_top_builddir): New edit.
msdos/sed3v2.inp (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
(LIBHESIOD, LIBRESOLV, LIBS_MAIL): Edit to empty values.
msdos/sed3.inp (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
(LIBHESIOD, LIBRESOLV, LIBS_MAIL): Edit to empty values.
msdos/sed1v2.inp (abs_builddir): Edit into "../src".
2010-03-27 10:49:18 +00:00
|
|
|
/^KRB4LIB *=/s/@[^@\n]*@//g
|
|
|
|
/^DESLIB *=/s/@[^@\n]*@//g
|
|
|
|
/^KRB5LIB *=/s/@[^@\n]*@//g
|
|
|
|
/^CRYPTOLIB *=/s/@[^@\n]*@//g
|
|
|
|
/^COM_ERRLIB *=/s/@[^@\n]*@//g
|
|
|
|
/^LIBHESIOD *=/s/@[^@\n]*@//g
|
|
|
|
/^LIBRESOLV *=/s/@[^@\n]*@//g
|
|
|
|
/^LIBS_MAIL *=/s/@[^@\n]*@//g
|
2010-05-10 02:16:09 +00:00
|
|
|
/^LIBS_SYSTEM *=/s/@[^@\n]*@//g
|
Adapt the MS-DOS build to the latest changes.
msdos/mainmake.v2 (bootstrap-clean): Do a maintainer-clean in lib, not
bootstrap-clean (which doesn't exist).
msdos/inttypes.h (PRIuMAX) [__DJGPP__ < 2.04]: Define to "llu".
msdos/sedleim.inp (MKDIR_P): Edit to DOS "md" command.
msdos/sed1v2.inp: (LIB_CLOCK_GETTIME): Edit to empty.
Remove lines that invoke PAXCTL.
(clean): Fix recipe not to run Unixy shell commands.
msdos/sed2v2.inp (GETTIMEOFDAY_TIMEZONE): Edit to 'struct timezone'.
(HAVE_STRNCASECMP): Edit to 1.
msdos/sed3v2.inp (LIB_CLOCK_GETTIME): Edit to empty.
(C_SWITCH_SYSTEM): Add "-I../msdos".
msdos/sedlibmk.inp (GNULIB_GETTIMEOFDAY, GNULIB_PSELECT)
(GNULIB_SELECT, HAVE_STRUCT_TIMEVAL, HAVE_SYS_SELECT_H)
(HAVE_SYS_TIME_H, NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H)
(NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H, NEXT_SYS_SELECT_H)
(NEXT_SYS_TIME_H, REPLACE_GETTIMEOFDAY, REPLACE_PSELECT)
(REPLACE_STRUCT_TIMEVAL): Edit to appropriate values.
(BUILT_SOURCES): Edit out sys/select.h and sys/time.h.
(mostlyclean-local, distclean-generic): Fix recipe not to run
Unixy shell commands.
src/sysselect.h [DOS_NT]: Don't include sys/select.h.
src/s/ms-w32.h (select, pselect): Don't define here, they are
defined in sysselect.h
src/sysselect.h (pselect) [!HAVE_PSELECT]: Redirect to sys_select.
src/sysdep.c: Don't include dos.h and dosfns.h.
src/process.c (sys_select):
src/msdos.c (sys_select): Accept one more argument and ignore it.
src/msdos.c (event_timestamp, sys_select): Use gnulib's gettime;
adapt data types and code to that.
src/dosfns.c:
src/msdos.c (gettime, settime): Define away the prototypes in dos.h,
which clashes with the gnulib function of the same name.
lisp/emacs-lisp/timer.el (timer-until): Subtract results of
float-time, instead of taking float-time of the result of
time-subtract, since float-time signals an error for negative time
arguments.
2012-06-30 15:32:51 +00:00
|
|
|
/^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g
|
2012-09-27 23:02:23 +00:00
|
|
|
/^LIB_TIMER_TIME *=/s/@[^@\n]*@//g
|
1996-04-10 00:53:52 +00:00
|
|
|
/^CFLAGS *=/s!=.*$!=-O2 -g!
|
Adapt the MS-DOS build to the latest changes.
msdos/mainmake.v2 (bootstrap-clean): Do a maintainer-clean in lib, not
bootstrap-clean (which doesn't exist).
msdos/inttypes.h (PRIuMAX) [__DJGPP__ < 2.04]: Define to "llu".
msdos/sedleim.inp (MKDIR_P): Edit to DOS "md" command.
msdos/sed1v2.inp: (LIB_CLOCK_GETTIME): Edit to empty.
Remove lines that invoke PAXCTL.
(clean): Fix recipe not to run Unixy shell commands.
msdos/sed2v2.inp (GETTIMEOFDAY_TIMEZONE): Edit to 'struct timezone'.
(HAVE_STRNCASECMP): Edit to 1.
msdos/sed3v2.inp (LIB_CLOCK_GETTIME): Edit to empty.
(C_SWITCH_SYSTEM): Add "-I../msdos".
msdos/sedlibmk.inp (GNULIB_GETTIMEOFDAY, GNULIB_PSELECT)
(GNULIB_SELECT, HAVE_STRUCT_TIMEVAL, HAVE_SYS_SELECT_H)
(HAVE_SYS_TIME_H, NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H)
(NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H, NEXT_SYS_SELECT_H)
(NEXT_SYS_TIME_H, REPLACE_GETTIMEOFDAY, REPLACE_PSELECT)
(REPLACE_STRUCT_TIMEVAL): Edit to appropriate values.
(BUILT_SOURCES): Edit out sys/select.h and sys/time.h.
(mostlyclean-local, distclean-generic): Fix recipe not to run
Unixy shell commands.
src/sysselect.h [DOS_NT]: Don't include sys/select.h.
src/s/ms-w32.h (select, pselect): Don't define here, they are
defined in sysselect.h
src/sysselect.h (pselect) [!HAVE_PSELECT]: Redirect to sys_select.
src/sysdep.c: Don't include dos.h and dosfns.h.
src/process.c (sys_select):
src/msdos.c (sys_select): Accept one more argument and ignore it.
src/msdos.c (event_timestamp, sys_select): Use gnulib's gettime;
adapt data types and code to that.
src/dosfns.c:
src/msdos.c (gettime, settime): Define away the prototypes in dos.h,
which clashes with the gnulib function of the same name.
lisp/emacs-lisp/timer.el (timer-until): Subtract results of
float-time, instead of taking float-time of the result of
time-subtract, since float-time signals an error for negative time
arguments.
2012-06-30 15:32:51 +00:00
|
|
|
/^C_SWITCH_SYSTEM *=/s!=.*$!=-DMSDOS -I../msdos!
|
Fix MS-DOS configuring in lib-src/ and src/, broken by autoconfiscation.
src/Makefile.in: Don't use Make-style comments past the "start of
cpp stuff" line.
(MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
src/s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
edited directly by msdos/sed1v2.inp).
msdos/sed3v2.inp (C_SWITCH_MACHINE): Edit to empty.
msdos/sed1v2.inp (@LIB_MATH@): Edit to -lm.
(C_SWITCH_MACHINE, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_TEMACS)
(LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH)
(LD_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_EXTRA, LIBTIFF, LIBJPEG)
(LIBPNG, LIBGIF, LIBXPM, XFT_LIBS, DBUS_CFLAGS, DBUS_LIBS)
(DBUS_OBJ, GCONF_CFLAGS, GCONF_LIBS, GTK_OBJ, LIBXMU, LIBXSM)
(LIBXTR6, XOBJ, TOOLKIT_LIBW, WIDGET_OBJ, CYGWIN_OBJ, NS_OBJ)
(NS_SUPPORT, LIBSELINUX_LIBS, START_FILES): Edit to empty.
(XMENU_OBJ): Edit to xmenu.o.
(FONT_OBJ): Edit to value used for X on Unix.
(PRE_ALLOC_OBJ): Edit to lastfile.o.
(POST_ALLOC_OBJ): Edit to $(vmlimitobj).
(@unexec@): Edit to unexec.o.
2010-05-07 12:57:24 +00:00
|
|
|
/^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
|
2012-04-14 05:04:54 +00:00
|
|
|
/^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
|
|
|
|
/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
|
2010-07-12 18:23:00 +00:00
|
|
|
/^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
|
2000-07-23 12:59:00 +00:00
|
|
|
/^ALLOCA *=/s!@ALLOCA@!!
|
2003-08-24 15:10:52 +00:00
|
|
|
/^EXEEXT *=/s!@EXEEXT@!!
|
2005-09-10 11:15:41 +00:00
|
|
|
/^GETOPT_H *=/s!@GETOPT_H@!getopt.h!
|
|
|
|
/^GETOPTOBJS *=/s!@GETOPTOBJS@!getopt.o getopt1.o!
|
2010-05-15 07:19:59 +00:00
|
|
|
/^INSTALLABLES/s/emacsclient[^ ]* *//
|
1996-04-10 00:53:52 +00:00
|
|
|
s!^ \./! !
|
2010-05-15 07:19:59 +00:00
|
|
|
/^UTILITIES *=/,/^$/{
|
|
|
|
s/movemail[^ ]* *//
|
|
|
|
}
|
2011-10-31 17:37:39 +00:00
|
|
|
/^insrcdir=/s/^.*$/\#&/
|
2012-02-04 08:03:49 +00:00
|
|
|
/^ *\$(insrcdir) ||/s,\$(insrcdir) ||,command.com /c if not exist $(<F),
|