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 $
5 * This is sco.cf, for SCO Open Server 5.0.2 and SCO UNIX.
6 * Please mail hug@netcom.com with any questions.
8 * This section is common to all versions of SCO
12 # define ScoOsMouse YES
16 #define OSVendor Santa Cruz Operation
19 #define PosixLibraries /**/
20 #define Malloc0ReturnsNull YES
21 #define RemoveDSDENroffMacros NO
22 #define ExtraLibraries -lsocket -lmalloc -lpt
24 #define ManSourcePath $(MANPATH)/cat.
26 #ifndef CompressManPages
27 #define CompressManPages YES
31 # define ServerExtraDefines -DUSE_OSMOUSE XFree86ServerDefines
32 # define ServerExtraSysLibs $(CBRT) -lm -levent
34 # define ServerExtraSysLibs $(CBRT) -lm
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.
42 #define SocketLibraries $(XBSDLIB) -lsocket
44 #define ConnectionFlags -DLOCALCONN -DTCPCONN -DFD_SETSIZE=256
46 #if defined(i386Sco324Architecture) || defined(i386Sco325Architecture)
48 # define HasSymLinks YES
50 # define CompressManCmd $(COMPRESS) -v
53 # define HasSymLinks NO
55 # define CommpressManCmd pack
59 * Due to the extra '.' chars in the SCO man pages file name we have
60 * to provide our own version of this macro.
63 #define InstallManPageAliases(file,destdir,aliases) @@\
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})); \ @@\
73 * This is the SCO Open Server 5.0.2 section. BOOTSTRAPCFLAGS is computed
74 * automatically. You can simply run make World.
76 #ifdef i386Sco325Architecture
78 #define OSName OpenServer Release 5
80 #ifndef OSMajorVersion
81 #define OSMajorVersion 5
83 #ifndef OSMinorVersion
84 #define OSMinorVersion 0
86 #ifndef OSTeenyVersion
87 #define OSTeenyVersion 2
90 #define StandardDefines -Dsco -DSCO -DSYSV -Di386 -DSCO325 -DSCO324
92 # define DefaultCCOptions -melf
94 # define ExtraLoadOptions -melf
95 # define DefaultCDebugFlags DefaultGcc2i386Opt
96 # define OptimizedCDebugFlags DefaultGcc2i386Opt
98 # define DefaultCCOptions -dy
100 # define ExtraLoadOptions -b elf
101 # define DefaultCDebugFlags -O2
102 # define OptimizedCDebugFlags -O2
105 #define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
106 #define NeedWidePrototypes NO
107 #define ServerOSDefines -DDDXTIME
108 #define ToolkitStringsABIOptions -intelabi
110 #define HasThreadSafeAPI NO
113 #define HasPutenv YES
114 #define ExecableScripts YES
115 #define HasShadowPasswd YES
118 # define HasLibCrypt YES
119 # define SpecialLibCrypt -lcrypt
122 #ifndef ForceNormalLib
123 # define ForceNormalLib YES
126 #define SharedLibXmu NO
128 #define LdCombineFlags -r
130 #define HasLdRunPath YES
132 #define PatheticCpp YES
136 #define CppCmd /lib/cpp
142 #include <scoLib.rules> /* minor changes to sv4Lib.rules */
143 #include <sv4Lib.rules>
145 #define DtSvcDefines -DXK_MISCELLANY -DMULTIBYTE
146 #define DtSearchDefines -DI18N_MSG DtSvcDefines
147 #define DtWidgetDefines DtSearchDefines
148 #define DtPrintDefines DtSearchDefines
150 #else /* !i386Sco325Architecture */
152 * This is the SCO 3.2v4.x and SCO 3.2v2.x section
155 /* You must manually compute BootstrapCFlags for initial build */
157 #define OSMinorVersion 2
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
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 \
173 #ifdef i386Sco324Architecture
175 * if your gcc is compiled with STDC_VALUE=0 then change the 1 to 0
177 # define GCC_STDC_VALUE 1
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
186 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
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.
195 # define HasLibCrypt YES
196 # define SpecialLibCrypt -lcrypt_i
201 #endif /* SCO 3.2.4 and SCO 3.2.2 section */
203 #ifdef i386Architecture
204 #include <xfree86.cf>