1 XCOMM $TOG: svr4.cf /main/17 1997/06/08 20:08:31 kaleb $
2 XCOMM $XFree86: xc/config/cf/svr4.cf,v 3.25.2.2 1997/07/05 15:55:30 dawes Exp $
7 #ifdef i386Architecture
8 #define OSName UNIX System V/386 Release 4
10 #define OSName UNIX System V Release 4
18 * The default version will be 4.0.0 which should be
19 * the least common denominator of all SVR4
22 #ifndef OSMajorVersion
23 #define OSMajorVersion 4
25 #ifndef OSMinorVersion
26 #define OSMinorVersion 0
28 #ifndef OSTeenyVersion
29 #define OSTeenyVersion 0
31 #ifndef BootstrapCFlags
32 #ifdef i386Architecture
33 #define BootstrapCFlags -DSVR4 -Di386
36 #define BootstrapCFlags -DSVR4 -Di386
38 #define BootstrapCFlags -DSVR4
43 /* Some stuff that all SVR4s should have */
47 #define HasLdRunPath YES
50 #ifndef SVR4Architecture
51 #define SVR4Architecture
54 #define PatheticCpp YES
56 #define Malloc0ReturnsNull YES /* in case -lmalloc used */
59 * Here are the default paths to use to pick up tools for building.
62 #define ArCmdBase /usr/ccs/bin/ar
65 #define AsCmd /usr/ccs/bin/as
68 #define CppCmd /usr/ccs/lib/cpp
71 #define LdCmd /usr/ccs/bin/ld
74 #define LexCmd /usr/ccs/bin/lex
77 #define YaccCmd /usr/ccs/bin/yacc
80 #define MkdirHierCmd mkdir -p
83 #ifndef SunArchitecture
85 * These come from usl.cf, and at least some are required by other
89 #define UseLocalRegex YES
93 -DNO_REGCOMP -DNEED_STRCASECMP \
94 -DSUPPORT_ZERO_WIDTH -DHAS_WIDECHAR_FUNCTIONS
97 #define DtSvcDefines -DXK_MISCELLANY -DMULTIBYTE -DNO_REGCOMP
99 #ifndef DtSearchDefines
100 #define DtSearchDefines -DI18N_MSG DtSvcDefines
102 #ifndef DtWidgetDefines
103 #define DtWidgetDefines DtSearchDefines
105 #ifndef DtPrintDefines
106 #define DtPrintDefines DtSearchDefines
108 #ifndef HasStrcasecmp
109 #define HasStrcasecmp NO
113 #ifndef SunArchitecture
114 #if (OSMinorVersion == 0)
115 #ifndef XawI18nDefines
116 #define XawI18nDefines -DUSE_XWCHAR_STRING
125 #define HasGcc HasGcc2
128 #ifdef i386Architecture
129 #ifndef SunArchitecture
130 #if (OSMinorVersion > 2) || ((OSMinorVersion == 2) && (OSTeenyVersion >= 2))
131 #ifndef StandardDefines
132 #define StandardDefines -DSVR4 -DSVR42MP -Di386
134 #ifndef HasParallelMake
135 #define HasParallelMake YES
138 #define ParallelDefines -P -B
139 #define MutexDirective .MUTEX
141 #else /* SVR4 < 4.2.2 */
142 #ifndef StandardDefines
143 #define StandardDefines -DSVR4 -Di386
147 #ifndef ToolkitStringsABIOptions
148 #define ToolkitStringsABIOptions -intelabi -earlyR6bc
150 #ifndef DefaultCCOptions
152 #define DefaultCCOptions -Xa -Dasm=__asm
155 #define DefaultCCOptions /**/
157 #define DefaultCCOptions -ansi -pedantic
161 #ifndef DefaultCDebugFlags
164 #define DefaultCDebugFlags DefaultGcc2i386Opt
166 #define DefaultCDebugFlags -O2
169 #define DefaultCDebugFlags -O
172 #ifndef ServerOSDefines
173 #define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
175 #ifndef BuildDynamicLoading
176 #define BuildDynamicLoading NO
178 #if BuildDynamicLoading
179 #define ServerExtraSysLibs -ldl
184 * The TLI interface is more robust on most SVR4s, so it will be the default.
186 #if !defined(SunArchitecture)
187 #ifndef ConnectionFlags
188 #define ConnectionFlags -DSTREAMSCONN -DUNIXCONN -DLOCALCONN
194 #define ManDir $(MANSOURCEPATH)1
197 #define LibManSuffix 3x
198 #define LibmanDir $(MANSOURCEPATH)3
200 #ifndef FileManSuffix
201 #define FileManSuffix 4
204 #ifndef StaticLibrary
206 #define StaticLibrary(libpath,libname) -B static Concat(-L,libpath) Concat(-l,libname) -B dynamic
210 #ifdef i386Architecture
211 #include <xfree86.cf>
214 #include <sv4Lib.rules>