Git init
[framework/uifw/xorg/util/xutils-dev.git] / xorg-cf-files / svr3.cf
1 XCOMM $Xorg: svr3.cf,v 1.3 2000/08/17 19:41:48 cpqbld Exp $
2
3
4
5 XCOMM $XFree86: xc/config/cf/svr3.cf,v 3.15 2002/08/19 03:16:31 tsi Exp $
6
7 #ifndef HasGcc
8 #define HasGcc      YES
9 #endif
10 #ifndef HasGcc2
11 #define HasGcc2     YES
12 #endif
13 #ifndef HasGcc3
14 #define HasGcc3     NO
15 #endif
16 #ifndef GccUsesGas
17 #define GccUsesGas  NO
18 #endif
19 #ifndef UseGas
20 #define UseGas      NO
21 #endif
22 #ifndef GnuCpp
23 #define GnuCpp      NO
24 #endif
25
26 #ifndef Gcc2MOption
27 # if HasGcc2
28 #  define Gcc2MOption /* */
29 # else
30 #  define Gcc2MOption /* */
31 # endif
32 #endif
33
34 #ifndef HasShadowPasswd
35 # define HasShadowPasswd        YES
36 #endif
37
38 #ifndef HasLibCrypt
39 # define HasLibCrypt            NO
40 #endif
41
42 #ifndef HasSVR3mmapDrv
43 # define HasSVR3mmapDrv         NO
44 #endif
45
46 #if HasSVR3mmapDrv
47 # define SVR3mmapFlags          -DHAS_SVR3_MMAPDRV
48 #else
49 # define SVR3mmapFlags          /**/
50 #endif
51
52 #ifndef HasSockets
53 # define HasSockets             YES
54 #endif
55
56 #ifndef XmanSearchPath
57 #define XmanSearchPath          /usr/man
58 #endif
59
60 /*
61  *      Most SVR3 do not have symbolic links, only some of the newer ones
62  */
63 #ifndef HasSymLinks
64 # define HasSymLinks NO
65 #endif
66
67 #ifndef MotifBC
68 # define MotifBC                YES
69 #endif
70
71 #ifndef CompressAllFonts
72 # define CompressAllFonts       YES
73 #endif
74
75 /*
76  * A default OS name
77  */
78 #ifndef OSName
79 #ifdef i386Architecture
80 #define OSName  UNIX System V/386 Release 3
81 #else
82 #define OSName  UNIX System V Release 3
83 #endif
84 #endif
85 #ifndef OSVendor
86 #define OSVendor /**/
87 #endif
88
89 /*
90  * The default version will be 3.0.0 which should be
91  * the least common denominator of all SVR3
92  */
93
94 #ifndef OSMajorVersion
95 #define OSMajorVersion  3
96 #endif
97 #ifndef OSMinorVersion
98 #define OSMinorVersion  0
99 #endif
100 #ifndef OSTeenyVersion
101 #define OSTeenyVersion  0
102 #endif
103 #ifndef BootstrapCFlags
104 #ifdef SYSV386
105 #define BootstrapCFlags         -DSYSV -DSYSV386
106 #else
107 #define BootstrapCFlags         -DSYSV
108 #endif
109 #endif
110
111 /* Some stuff that all SYSV's should have */
112
113 #define SystemV YES
114
115 #ifndef NeedBerklib
116 #define NeedBerklib     YES
117 #endif
118 #ifndef HasPoll
119 #define HasPoll         YES
120 #endif
121 #ifndef SVR3Architecture
122 #define SVR3Architecture
123 #endif
124 #ifndef PatheticCpp
125 #define PatheticCpp     YES
126 #endif
127
128 #ifndef StandardDefines
129 #ifdef i386Architecture
130 #define StandardDefines         -DSYSV OSDefines -Di386
131 #else
132 #define StandardDefines         -DSYSV OSDefines
133 #endif
134 #endif
135
136 #ifndef ServerOSDefines
137 # ifdef i386Architecture
138 #  define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
139 # else
140 #  define ServerOSDefines -DDDXTIME
141 # endif
142 #endif
143
144 #ifndef XawI18nDefines
145 # define XawI18nDefines          -DUSE_XWCHAR_STRING
146 #endif
147
148 #ifndef DefaultCDebugFlags
149 # if HasGcc2
150 #  if defined(i386Architecture)
151 #   define DefaultCDebugFlags DefaultGcc2i386Opt
152 #  else
153 #   define DefaultCDebugFlags -O2
154 #  endif
155 # else
156 #  define DefaultCDebugFlags -O
157 # endif
158 #endif
159
160 #ifndef LdCombineFlags
161 #define LdCombineFlags  -r
162 #endif
163
164 #if HasGcc
165 # if HasGcc2
166 #  define DefaultCCOptions Gcc2MOption -DNO_ASM -fpcc-struct-return \
167                            -fwritable-strings
168 #  define LibraryCCOptions Gcc2MOption -DNO_ASM -fpcc-struct-return
169 #  if defined(i386Architecture)
170 #   define OptimizedCDebugFlags DefaultGcc2i386Opt
171 #  else
172 #   define OptimizedCDebugFlags -O2
173 #  endif
174 # else
175 #  define DefaultCCOptions -DNO_ASM -fpcc-struct-return -fwritable-strings
176 #  define LibraryCCOptions -DNO_ASM -fpcc-struct-return
177 #  define OptimizedCDebugFlags -O -fstrength-reduce
178 # endif
179 # define ShlibDefines -D__GNUC__ $(XDMAUTHDEFS)
180 #else
181 # define ShlibDefines $(XDMAUTHDEFS)
182 #endif
183
184 #ifndef Malloc0ReturnsNull
185 #define Malloc0ReturnsNull      YES
186 #endif
187
188 #ifndef SocketLibraries
189 # define SocketLibraries /**/
190 #endif
191 #ifndef LocalLibraries
192 # define LocalLibraries /**/
193 #endif
194 #ifndef ExtraLibraries
195 # if HasSockets
196 #  define ExtraLibraries SocketLibraries LocalLibraries
197 # else
198 #  define ExtraLibraries LocalLibraries
199 # endif
200 #endif
201
202 #if RemoveDSDENroffMacros
203 # define RemoveDSDENroffMacrosCmd sed -e '/^\.D[S|E]$$/d' 
204 #else
205 # define RemoveDSDENroffMacrosCmd cat
206 #endif
207
208 #ifndef ConnectionFlags
209 # define ConnectionFlags        -DLOCALCONN -DTCPCONN
210 #endif
211
212 #ifndef FormattedManPages
213 # define FormattedManPages      YES
214 #endif
215
216 #ifndef ManSuffix
217 # define ManSuffix               1x
218 # define ManDir                 $(MANSOURCEPATH)1
219 #endif
220 #ifndef LibManSuffix
221 # define LibManSuffix            3x
222 # define LibmanDir              $(MANSOURCEPATH)3
223 #endif
224 #ifndef FileManSuffix
225 # define FileManSuffix           4
226 #endif
227
228 /*
229  * Compress manual pages, default on ISC and SCO
230  */
231 #ifndef CompressManPages
232 # define CompressManPages        YES
233 #endif
234
235 /*
236  * The .DS and .DE macros used in some manual pages are obsolete
237  * in the often used ISC's Textprocessing Workbench 2.1.0 and break it,
238  * so it's better to remove these previously
239  */
240 #ifndef RemoveDSDENroffMacros
241 # define RemoveDSDENroffMacros   NO
242 #endif
243
244 #if RemoveDSDENroffMacros
245 # define RemoveDSDENroffMacrosCmd sed -e '/^\.D[S|E]$$/d' 
246 #else
247 # define RemoveDSDENroffMacrosCmd cat
248 #endif
249
250 #ifndef CompressManCmd
251 # define CompressManCmd @true
252 #endif
253
254      RMDSDEMACCMD = RemoveDSDENroffMacrosCmd
255    COMPRESSMANCMD = CompressManCmd
256
257 #if FormattedManPages
258
259 #ifndef InstallManPageLong
260 #define InstallManPageLong(file,destdir,dest)                           @@\
261 BuildInstallHtmlManPage(file,dest,$(MANSUFFIX))                         @@\
262                                                                         @@\
263 install.man:: file.man                                                  @@\
264         MakeDir($(DESTDIR)destdir)                                      @@\
265         $(RM) $(DESTDIR)destdir/dest.$(MANSUFFIX)*                      @@\
266         $(RMDSDEMACCMD) file.man | neqn | nroff -man >/tmp/file.man     @@\
267         $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\
268         -$(COMPRESSMANCMD) $(DESTDIR)destdir/dest.$(MANSUFFIX)          @@\
269         $(RM) /tmp/file.man
270 #endif
271
272 #ifndef InstallGenManPageLong
273 #define InstallGenManPageLong(file,destdir,dest,suffix)                 @@\
274 BuildInstallHtmlManPage(file,dest,suffix)                               @@\
275                                                                         @@\
276 install.man:: file.man                                                  @@\
277         MakeDir($(DESTDIR)destdir)                                      @@\
278         $(RM) $(DESTDIR)destdir/dest.suffix*                            @@\
279         $(RMDSDEMACCMD) file.man | neqn | nroff -man >/tmp/file.man     @@\
280         $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.suffix @@\
281         -$(COMPRESSMANCMD) $(DESTDIR)destdir/dest.suffix                @@\
282         $(RM) /tmp/file.man
283 #endif
284
285 #ifndef InstallMultipleMan
286 #define InstallMultipleMan(list,dest)                                   @@\
287 install.man:: list                                                      @@\
288         MakeDir($(DESTDIR)dest)                                         @@\
289         @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
290         for i in list; do \                                             @@\
291                 (MNAME=`echo $$i | cut -f1 -d.`; \                      @@\
292                 set -x; \                                               @@\
293                 $(RM) $(DESTDIR)dest/$${MNAME}*; \                      @@\
294                 $(RMDSDEMACCMD) $$i | neqn | nroff -man >/tmp/$$i; \    @@\
295                 $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \      @@\
296                 $(COMPRESSMANCMD) $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \  @@\
297                 $(RM) /tmp/$$i); \                                      @@\
298         done
299 #endif
300
301 /*
302  * InstallManPageAliases - generate rules to install manual page aliases.
303  * (Make hard links on SVR3.)
304  */
305 #ifndef InstallManPageAliasesBase
306 #define InstallManPageAliasesBase(file,destdir,aliases)                 @@\
307
308 install.man::                                                           @@\
309         @(SUFFIX=`echo $(DESTDIR)destdir/file.* | cut -f2,3 -d.`; \     @@\
310         for i in aliases; do (set -x; \                                 @@\
311         $(RM) $(DESTDIR)destdir/$$i.*; \                                @@\
312         (cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \                  @@\
313         $$i.$${SUFFIX})); \                                             @@\
314         done)
315 #endif
316
317 #ifndef InstallManPageAliases
318 #define InstallManPageAliases(file,destdir,aliases)                     @@\
319 InstallHtmlManPageAliases(file,aliases,$(MANSUFFIX))                    @@\
320                                                                         @@\
321 InstallManPageAliasesBase(file,destdir,aliases)
322 #endif
323
324 #ifndef InstallGenManPageAliases
325 #define InstallGenManPageAliases(file,destdir,suffix,aliases)           @@\
326 InstallHtmlManPageAliases(file,aliases,suffix)                          @@\
327                                                                         @@\
328 InstallManPageAliasesBase(file,destdir,aliases)
329 #endif
330
331 #endif /* FormattedManPages */
332
333 /* If you have trouble with make bombing out in Xlib, try uncommenting this. */
334 /* You will not get dependencies as a result, but better than nothing. */
335 #ifndef MakeHashTableBug
336 #define MakeHashTableBug        NO
337 #endif
338
339 #if MakeHashTableBug
340 #define DependTarget3(srcs1,srcs2,srcs3)
341 #endif
342
343 #include <sv3Lib.rules>
344
345 #ifdef i386Architecture
346 #include <xorg.cf>
347 #endif
348