0
|
1 /* Synched up with: FSF 19.31. */
|
|
2
|
|
3 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */
|
|
4
|
|
5 #define SOLARIS2
|
|
6
|
|
7 /* SIGIO seems to be working under Solaris and it makes ^G work better... */
|
|
8 #undef BROKEN_SIGIO
|
|
9
|
|
10 /* eggert@twinsun.com said these work in Solaris.
|
|
11 Perhaps they work in all kinds of SVR4, but this is more conservative. */
|
|
12 #undef BROKEN_TIOCGETC
|
|
13 #undef BROKEN_TIOCGWINSZ
|
|
14
|
|
15 /* This triggers a conditional in xfaces.c. */
|
|
16 #define XOS_NEEDS_TIME_H
|
|
17
|
|
18 #define POSIX
|
|
19
|
|
20 /* FSF uses LD_SWITCH_X_SITE_AUX in the following definitions to deal with
|
|
21 the -R flags. While the intention is good, it doesn't seem to work that
|
|
22 well -- Solaris is just too damn screwy. So we go ahead and let
|
|
23 configure have special checks for Solaris. */
|
|
24
|
|
25 /* Here is how to find X Windows. The -R option says where
|
|
26 to find X windows at run time. */
|
24
|
27 #define LD_SWITCH_SYSTEM_RPATH -R/usr/dt/lib:/opt/SUNWdt/lib:/usr/openwin/lib
|
0
|
28 #ifdef __GNUC__
|
24
|
29 #define LD_SWITCH_SYSTEM -Xlinker LD_SWITCH_SYSTEM_RPATH
|
|
30 #else
|
|
31 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_RPATH
|
0
|
32 #endif
|
|
33
|
|
34 /* XEmacs change -- Sun CC needs this to default to ANSI */
|
|
35 #ifdef __SUNPRO_C
|
|
36 #define C_SWITCH_SYSTEM -Xa
|
|
37 #endif /* __SUNPRO_C */
|
|
38
|
|
39 #ifndef NOT_C_CODE
|
|
40 /* The standard Solaris library nsl has this function in it which is
|
|
41 supposed to only be in the BSD compat stuff. Yuck. Of course,
|
|
42 there isn't a prototype for it other than in /usr/ucbinclude. */
|
70
|
43 int gethostname (char *, int);
|
24
|
44
|
0
|
45 /* XEmacs: Solaris include files miss this. */
|
|
46 struct timeval;
|
|
47 int utimes (char *file, struct timeval *tvp);
|
|
48
|
|
49 /* XEmacs addition: to this to avoid having problems when we later
|
|
50 define INT_MAX etc. */
|
|
51 #include <limits.h>
|
70
|
52 #endif
|
0
|
53
|
|
54 /* XEmacs change -- removed flags to force K & R compilation */
|
|
55
|
|
56 /*
|
|
57 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp
|
|
58 */
|
|
59
|
|
60 #undef LIBS_SYSTEM
|
|
61 #define LIBS_SYSTEM -lsocket -lnsl -lkvm -lelf -lgen -ldl
|
|
62
|
|
63 /* XEmacs change -- Mark Borges says this is needed. */
|
|
64 #define LIBS_TERMCAP -ltermlib
|
|
65
|
|
66 /* #### XEmacs change: until we've gotten the Energize builds converted
|
|
67 over to use configure instead of ymakefile, we still need this.
|
|
68 */
|
|
69 #if defined (NOT_C_CODE) && defined (ENERGIZE)
|
|
70
|
|
71 # define LIB_INTL -L/usr/openwin/lib -lintl -lw
|
|
72 # define LIBS_DEBUG
|
|
73 # undef LIBS_SYSTEM
|
|
74 # define LIBS_SYSTEM -lsocket -lnsl -lintl -lelf -lkvm -lgen -ldl
|
|
75 # define START_FILES
|
|
76 # define LD_CMD $(CC)
|
|
77
|
|
78 #endif
|
|
79
|
|
80 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does
|
|
81 not work with a static definition of malloc(). */
|
|
82 /* We want to be able to test out ralloc.c. */
|
|
83 /* #define SYSTEM_MALLOC */
|
|
84
|
|
85 /* XEmacs: there used to be a special definition of
|
|
86 PTY_TTY_NAME_SPRINTF here that was identical to the
|
|
87 other SYSV R4 definitions except that it didn't
|
|
88 block SIGCHLD around the call to grantpt(). This
|
|
89 is *not* in 19.29 and is almost certainly incorrect.
|
|
90 */
|
|
91
|
|
92 /* XEmacs change from Georg.Nikodym@Canada.Sun.COM. */
|
|
93 #ifdef UNEXEC
|
|
94 #undef UNEXEC
|
|
95 #endif
|
|
96 #define UNEXEC unexsol2.o
|
|
97
|
|
98 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at
|
|
99 least under 2.4 */
|
|
100 #undef _setjmp
|
|
101 #define _setjmp setjmp
|