changeset 3600:c0b91ff8928a

* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>: (BSD4_4, SVR4, HAVE_SETSID, HAVE_UNIX_DOMAIN): #define these. (FIRST_PTY_LETTER): This is 'r', not 'p'. (HAVE_TERMIO, SIGNALS_VIA_CHARACTERS): Don't #define these. (HAVE_TERMIOS): #define these instead. (XREBINDKEYSYM): Don't #define. Test THIS_IS_YMAKEFILE instead of MAKING_MAKEFILE. (sigmask, sigpause): #undef these after #including <signal.h>. (LD_SWITCH_SYSTEM, START_FILES, LIBS_SYSTEM, LIB_GCC): #define these to avoid problems with /lib/crt0.o. (C_DEBUG_SWITCH, C_OPTIMIZE_SWITCH): #define these.
author Jim Blandy <jimb@redhat.com>
date Thu, 10 Jun 1993 06:05:05 +0000
parents 3b928190a3e8
children d83673a740e8
files src/s/dgux.h
diffstat 1 files changed, 35 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/dgux.h	Thu Jun 10 05:46:10 1993 +0000
+++ b/src/s/dgux.h	Thu Jun 10 06:05:05 1993 +0000
@@ -32,13 +32,14 @@
 /* #define BSD4_1 */
 #define BSD4_2
 #define BSD4_3
+#define BSD4_4
 #define BSD
-/* #define VMS */
+#define SVR4
 
 /* SYSTEM_TYPE should indicate the kind of system you are using.
  It sets the Lisp variable system-type.  */
 
-#define SYSTEM_TYPE "berkeley-unix"
+#define SYSTEM_TYPE "dgc-unix"
 
 /* NOMULTIPLEJOBS should be defined if your system's shell
  does not have "job control" (the ability to stop a program,
@@ -69,7 +70,7 @@
 /* Letter to use in finding device name of first pty,
   if system supports pty's.  'a' means it is /dev/ptya0  */
 
-#define FIRST_PTY_LETTER 'r'
+#define FIRST_PTY_LETTER 'p'
 
 /*
  *	Define HAVE_TIMEVAL if the system supports the BSD style clock values.
@@ -85,12 +86,22 @@
 #define HAVE_SELECT
 
 /*
+ *	Define HAVE_SETSID if the system supports POSIX disassociate
+ *      terminal.
+ */
+#define HAVE_SETSID
+/*
  *	Define HAVE_SOCKETS if the system supports sockets.
  */
 
 #define HAVE_SOCKETS
 
 /*
+ *	Define HAVE_UNIX_DOMAIN if the system supports Unix
+ *      domain sockets.
+ */
+#define HAVE_UNIX_DOMAIN
+/*
  *	Define HAVE_PTYS if the system supports pty devices.
  */
 
@@ -216,24 +227,11 @@
 #define	TERMINFO
 
 /*
- *	Define HAVE_TERMIO if the system provides sysV-style ioctls
+ *	Define HAVE_TERMIOS since this is POSIX,
  *	for terminal control.
- *	DG/UX has both BSD and AT&T style ioctl's.  Bsd ioctl's don't
- *	seem to wait for the output to drain properly, so use System V.
  */
 
-#define HAVE_TERMIO
-#define SIGNALS_VIA_CHARACTERS
-
-/*
- *	DG/UX 4.10 needs the following to turn on berkeley ioctl's.
- */
-
-#ifndef HAVE_TERMIO
-#ifndef _BSD_TTY_FLAVOR		/* Already defined, in dgux 4.30.  */
-#define _BSD_TTY_FLAVOR
-#endif
-#endif
+#define HAVE_TERMIOS
 
 /*
  *	Use a Berkeley style sys/wait.h.
@@ -242,11 +240,6 @@
 
 #define _BSD_WAIT_FLAVOR
 
-/* Enable the x-rebind keysym function.  Do not try to map function
-   keys internally. */
-
-#define XREBINDKEYSYM
-
 /*
  *      Use BSD and POSIX-style signals.  This is crucial!
  */
@@ -255,13 +248,18 @@
 #define SYSTEM_MALLOC
 
 /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */
-#ifndef MAKING_MAKEFILE
+#ifndef THIS_IS_YMAKEFILE
 
 /* Make sure signal.h is included so macros below don't mess with it. */
 /* DG/UX include files prevent multiple inclusion. */
 
 #include <signal.h>
 
+/* but undefine the sigmask and sigpause macros since they will get
+   #define'd later. */
+#undef sigmask
+#undef sigpause
+
 #define POSIX_SIGNALS
 
 /* Define this if you use System 5 Release 4 Streams */
@@ -277,12 +275,19 @@
 #define INTERRUPTIBLE_IO
 
 /* Can't use sys_signal because then etc/server.c would need sysdep.o.  */
+extern struct sigaction act, oact;
 #define signal(SIG,FUNC) berk_signal(SIG,FUNC)
 
-#else /* MAKING_MAKEFILE */
+#else /* THIS_IS_YMAKEFILE */
 /* force gcc to be used */
 CC=gcc
-#endif /* not MAKING_MAKEFILE */
+#endif /* not THIS_IS_YMAKEFILE */
+
+#define LD_SWITCH_SYSTEM
+/* Cannot depend on /lib/crt0.o because make does not understand an elink(1) */
+#define START_FILES pre-crt0.o
+#define LIBS_SYSTEM -ldgc /lib/crt0.o
+#define LIB_GCC /usr/lib/gcc/libgcc.a
 
 #ifdef _M88KBCS_TARGET
 /* Karl Berry says: the environment
@@ -303,6 +308,7 @@
 #define MAKE_COMMAND \
   TARGET_BINARY_INTERFACE=m88kdguxcoff make
 
+#define C_DEBUG_SWITCH
 #else /* not COFF */
 
 #define C_COMPILER \
@@ -314,4 +320,7 @@
 #define MAKE_COMMAND \
   TARGET_BINARY_INTERFACE=m88kdguxelf make
 
+#define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard
 #endif /* COFF */
+/* Define switches affecting x/ymakefile */
+#define C_OPTIMIZE_SWITCH