]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/sco.cf
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / sco.cf
1 XCOMM platform:  $XConsortium: sco.cf /main/5 1996/12/04 10:12:36 swick $
2 XCOMM platform:  $XFree86: xc/config/cf/sco.cf,v 3.12.2.1 1997/05/24 13:38:09 dawes Exp $
3
4 /*
5  * This is sco.cf, for SCO Open Server 5.0.2 and SCO UNIX.
6  * Please mail hug@netcom.com with any questions.
7  *
8  * This section is common to all versions of SCO
9  */
10
11 #ifndef ScoOsMouse
12 # define ScoOsMouse             YES
13 #endif
14
15 #ifndef OSVendor
16 #define OSVendor                Santa Cruz Operation
17 #endif
18
19 #define PosixLibraries          /**/
20 #define Malloc0ReturnsNull      YES
21 #define RemoveDSDENroffMacros   NO
22 #define ExtraLibraries          -lsocket -lmalloc -lpt
23
24 #define ManSourcePath           $(MANPATH)/cat.
25
26 #ifndef CompressManPages
27 #define CompressManPages        YES
28 #endif
29
30 #if ScoOsMouse
31 # define ServerExtraDefines     -DUSE_OSMOUSE XFree86ServerDefines
32 # define ServerExtraSysLibs     $(CBRT) -lm -levent
33 #else
34 # define ServerExtraSysLibs     $(CBRT) -lm
35 #endif
36
37 /*
38  * XBSDLIB is included with the Socket libraries, because SCO needs Xbsd
39  * as its bcopy routine doesn't handle overlapping regions. If HasSockets
40  * If HasSockets is false the XINETLIB does it for us anyway.
41  */
42 #define SocketLibraries         $(XBSDLIB) -lsocket
43
44 #define ConnectionFlags         -DLOCALCONN -DTCPCONN -DFD_SETSIZE=256
45
46 #if defined(i386Sco324Architecture) || defined(i386Sco325Architecture)
47 # ifndef HasSymLinks
48 #  define HasSymLinks           YES
49 # endif
50 # define CompressManCmd         $(COMPRESS) -v
51 #else /* SCO 3.2.2 */
52 # ifndef HasSymLinks
53 #  define HasSymLinks           NO
54 # endif
55 # define CommpressManCmd        pack
56 #endif
57
58 /*
59  * Due to the extra '.' chars in the SCO man pages file name we have
60  * to provide our own version of this macro.
61  */
62
63 #define InstallManPageAliases(file,destdir,aliases)                     @@\
64 install.man::                                                           @@\
65         @(SUFFIX=`echo $(DESTDIR)destdir/file.* | cut -f3,4 -d.`; \     @@\
66         for i in aliases; do (set -x; \                                 @@\
67         $(RM) $(DESTDIR)destdir/$$i.*; \                                @@\
68         (cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \                  @@\
69         $$i.$${SUFFIX})); \                                             @@\
70         done)
71
72 /*
73  * This is the SCO Open Server 5.0.2 section. BOOTSTRAPCFLAGS is computed
74  * automatically. You can simply run make World.
75  */
76 #ifdef i386Sco325Architecture
77 #ifndef OSName
78 #define OSName                  OpenServer Release 5
79 #endif
80 #ifndef OSMajorVersion
81 #define OSMajorVersion          5
82 #endif
83 #ifndef OSMinorVersion
84 #define OSMinorVersion          0
85 #endif
86 #ifndef OSTeenyVersion
87 #define OSTeenyVersion          2
88 #endif
89
90 #define StandardDefines         -Dsco -DSCO -DSYSV -Di386 -DSCO325 -DSCO324
91 #ifdef HasGcc2
92 # define DefaultCCOptions       -melf
93 # define CcCmd                  gcc
94 # define ExtraLoadOptions       -melf
95 # define DefaultCDebugFlags     DefaultGcc2i386Opt
96 # define OptimizedCDebugFlags   DefaultGcc2i386Opt
97 #else
98 # define DefaultCCOptions       -dy 
99 # define CcCmd                  cc
100 # define ExtraLoadOptions       -b elf
101 # define DefaultCDebugFlags     -O2
102 # define OptimizedCDebugFlags   -O2
103 #endif
104
105 #define XawI18nDefines          -DHAS_WCHAR_H -DHAS_ISW_FUNCS
106 #define NeedWidePrototypes      NO
107 #define ServerOSDefines         -DDDXTIME
108 #define ToolkitStringsABIOptions -intelabi
109 #define ThreadedX               NO
110 #define HasThreadSafeAPI        NO
111 #define HasNdbm                 YES
112 #define HasVFork                YES
113 #define HasPutenv               YES
114 #define ExecableScripts         YES
115 #define HasShadowPasswd         YES
116
117 #ifndef HasLibCrypt
118 # define HasLibCrypt            YES
119 # define SpecialLibCrypt        -lcrypt
120 #endif
121
122 #ifndef ForceNormalLib
123 # define ForceNormalLib         YES 
124 #endif
125
126 #define SharedLibXmu            NO
127 #define SystemV                 YES
128 #define LdCombineFlags          -r 
129
130 #define HasLdRunPath            YES
131 #define HasPoll                 YES
132 #define PatheticCpp             YES
133
134 #define ArCmdBase               ar
135 #define AsCmd                   as
136 #define CppCmd                  /lib/cpp
137 #define LdCmd                   ld
138 #define LexCmd                  lex
139 #define MakeCmd                 make
140 #define YaccCmd                 yacc
141
142 #include <scoLib.rules>  /* minor changes to sv4Lib.rules */
143 #include <sv4Lib.rules>
144
145 #define DtSvcDefines            -DXK_MISCELLANY -DMULTIBYTE
146 #define DtSearchDefines         -DI18N_MSG DtSvcDefines
147 #define DtWidgetDefines         DtSearchDefines
148 #define DtPrintDefines          DtSearchDefines
149
150 #else /* !i386Sco325Architecture */
151 /*
152  * This is the SCO 3.2v4.x and SCO 3.2v2.x section
153  */
154
155 /* You must manually compute BootstrapCFlags for initial build */
156
157 #define OSMinorVersion  2
158
159 #ifdef i386Sco324Architecture
160 # define BootstrapCFlags        -DSYSV -Di386 -DSCO -DSCO324
161 # define OSTeenyVersion         4
162 # define OSName                 (SCO Version 3.2.4)
163 # define OSDefines              -DSCO -DSCO324 -Dsco -Dsco324 -DBROKEN_FTOL \
164                                 -D_NO_PROTOTYPE -D_SVID
165 #else
166 # define BootstrapCFlags        -DSYSV -Di386 -DSCO
167 # define OSTeenyVersion         2
168 # define OSName                 (SCO Version 3.2.2)
169 # define OSDefines              -DSCO -Dsco -DBROKEN_FTOL -DNO_PROTOTYPE \
170                                 -D_SVID
171 #endif
172
173 #ifdef i386Sco324Architecture
174 /*
175  * if your gcc is compiled with STDC_VALUE=0 then change the 1 to 0
176  */
177 # define GCC_STDC_VALUE         1
178 # if !GCC_STDC_VALUE
179 #  define OSDefines             -DSCO -DSCO324 -Dsco -Dsco324 -DBROKEN_FTOL \
180                                 -D_NO_PROTOTYPE -D_SVID -D__STDC__=1
181 #  undef StandardCppDefines
182 #  define StandardCppDefines    -DUNIXCPP=1 StandardDefines
183 # endif
184 #endif
185
186 #define XawI18nDefines              -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
187
188 /*
189  * The user should override this in their site.def if they have the real
190  * crypt library. We default to the international crypt library here as
191  * anyone may obtain that.
192  */
193
194 #ifndef HasLibCrypt
195 # define HasLibCrypt            YES
196 # define SpecialLibCrypt        -lcrypt_i
197 #endif
198
199 #include <svr3.cf>
200
201 #endif /* SCO 3.2.4 and SCO 3.2.2 section */
202
203 #ifdef i386Architecture
204 #include <xfree86.cf>
205 #endif
206