annotate src/s/sol2-3.h @ 64:a01e7a40045c r19-16-pre7

Import from CVS: tag r19-16-pre7
author cvs
date Mon, 13 Aug 2007 08:59:30 +0200
parents 376386a54a3c
children 59463afc5666
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 #include "sol2.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 /* Solaris 2.3 has a bug in XListFontsWithInfo. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 #define BROKEN_XLISTFONTSWITHINFO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 #if 0 /* RMSmacs */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 /* Unless this proves necessary, I'm going to leave it out. --ben
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 Also see comment in sol2.h about LD_SWITCH_X_SITE_AUX. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 /* Override LD_SWITCH_SYSTEM: add -L /usr/ccs/lib to the sol2.h value. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 #undef LD_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 #ifndef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 #define LD_SWITCH_SYSTEM -L /usr/ccs/lib LD_SWITCH_X_SITE_AUX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 #else /* GCC */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 /* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 has anything in it. It can be empty.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 This works ok in src. Luckily lib-src does not use LD_SWITCH_SYSTEM. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #define LD_SWITCH_SYSTEM -L /usr/ccs/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 #endif /* GCC */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 #endif /* 0 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 /* Motif is an optional package for Solaris 2.3. The standard location is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 /usr/dt/lib, but it may have been installed in /opt/SUNWspro/lib when
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 SPARCworks was installed. For Solaris 2.4 and beyond, the default location
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 is /usr/dt/lib. This "-R" definition allows an XEmacs built on Solaris 2.3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 to run on 2.3 and beyond at the cost of some extra, bound-to-fail searches
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 in either /usr/dt/lib or /opt/SUNWspro/lib.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 Even though /usr/lib is automatically appended to the -R search path, we
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 include it at the begining of the search path to speed up the entire
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 process. "ldd xemacs" shows that there are 9 libraries found in /usr/lib,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 4 in /usr/openwin/lib and only 1 in /usr/dt/lib or /opt/SUNWspro/lib.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 -- vladimir@Eng.Sun.COM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 #ifdef LD_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 #undef LD_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #define LD_SWITCH_SYSTEM -R/usr/lib:/usr/openwin/lib:/usr/dt/lib:/opt/SUNWspro/lib
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 /* XEmacs: remove unnecessary signal stuff */