aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/config/cf/svr3.cf
blob: 88ee4faab79bc1824cf454d91b9ec7b62a5b5603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
XCOMM $Xorg: svr3.cf,v 1.3 2000/08/17 19:41:48 cpqbld Exp $



XCOMM $XFree86: xc/config/cf/svr3.cf,v 3.15 2002/08/19 03:16:31 tsi Exp $

#ifndef HasGcc
#define HasGcc      YES
#endif
#ifndef HasGcc2
#define HasGcc2     YES
#endif
#ifndef HasGcc3
#define HasGcc3     NO
#endif
#ifndef GccUsesGas
#define GccUsesGas  NO
#endif
#ifndef UseGas
#define UseGas      NO
#endif
#ifndef GnuCpp
#define GnuCpp      NO
#endif

#ifndef Gcc2MOption
# if HasGcc2
#  define Gcc2MOption /* */
# else
#  define Gcc2MOption /* */
# endif
#endif

#ifndef HasShadowPasswd
# define HasShadowPasswd	YES
#endif

#ifndef HasLibCrypt
# define HasLibCrypt		NO
#endif

#ifndef HasSVR3mmapDrv
# define HasSVR3mmapDrv		NO
#endif

#if HasSVR3mmapDrv
# define SVR3mmapFlags		-DHAS_SVR3_MMAPDRV
#else
# define SVR3mmapFlags 		/**/
#endif

#ifndef HasSockets
# define HasSockets		YES
#endif

#ifndef XmanSearchPath
#define XmanSearchPath		/usr/man
#endif

/*
 *	Most SVR3 do not have symbolic links, only some of the newer ones
 */
#ifndef HasSymLinks
# define HasSymLinks NO
#endif

#ifndef MotifBC
# define MotifBC	       	YES
#endif

#ifndef CompressAllFonts
# define CompressAllFonts	YES
#endif

/*
 * A default OS name
 */
#ifndef OSName
#ifdef i386Architecture
#define	OSName	UNIX System V/386 Release 3
#else
#define	OSName	UNIX System V Release 3
#endif
#endif
#ifndef OSVendor
#define OSVendor /**/
#endif

/*
 * The default version will be 3.0.0 which should be
 * the least common denominator of all SVR3
 */

#ifndef OSMajorVersion
#define	OSMajorVersion	3
#endif
#ifndef OSMinorVersion
#define	OSMinorVersion	0
#endif
#ifndef OSTeenyVersion
#define	OSTeenyVersion	0
#endif
#ifndef BootstrapCFlags
#ifdef SYSV386
#define BootstrapCFlags         -DSYSV -DSYSV386
#else
#define BootstrapCFlags         -DSYSV
#endif
#endif

/* Some stuff that all SYSV's should have */

#define SystemV	YES

#ifndef NeedBerklib
#define NeedBerklib	YES
#endif
#ifndef HasPoll
#define HasPoll		YES
#endif
#ifndef SVR3Architecture
#define SVR3Architecture
#endif
#ifndef PatheticCpp
#define PatheticCpp	YES
#endif

#ifndef StandardDefines
#ifdef i386Architecture
#define StandardDefines		-DSYSV OSDefines -Di386
#else
#define StandardDefines		-DSYSV OSDefines
#endif
#endif

#ifndef ServerOSDefines
# ifdef i386Architecture
#  define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
# else
#  define ServerOSDefines -DDDXTIME
# endif
#endif

#ifndef XawI18nDefines
# define XawI18nDefines          -DUSE_XWCHAR_STRING
#endif

#ifndef DefaultCDebugFlags
# if HasGcc2
#  if defined(i386Architecture)
#   define DefaultCDebugFlags DefaultGcc2i386Opt
#  else
#   define DefaultCDebugFlags -O2
#  endif
# else
#  define DefaultCDebugFlags -O
# endif
#endif

#ifndef LdCombineFlags
#define LdCombineFlags	-r
#endif

#if HasGcc
# if HasGcc2
#  define DefaultCCOptions Gcc2MOption -DNO_ASM -fpcc-struct-return \
			   -fwritable-strings
#  define LibraryCCOptions Gcc2MOption -DNO_ASM -fpcc-struct-return
#  if defined(i386Architecture)
#   define OptimizedCDebugFlags DefaultGcc2i386Opt
#  else
#   define OptimizedCDebugFlags -O2
#  endif
# else
#  define DefaultCCOptions -DNO_ASM -fpcc-struct-return -fwritable-strings
#  define LibraryCCOptions -DNO_ASM -fpcc-struct-return
#  define OptimizedCDebugFlags -O -fstrength-reduce
# endif
# define ShlibDefines -D__GNUC__ $(XDMAUTHDEFS)
#else
# define ShlibDefines $(XDMAUTHDEFS)
#endif

#ifndef Malloc0ReturnsNull
#define Malloc0ReturnsNull	YES
#endif

#ifndef SocketLibraries
# define SocketLibraries /**/
#endif
#ifndef LocalLibraries
# define LocalLibraries /**/
#endif
#ifndef ExtraLibraries
# if HasSockets
#  define ExtraLibraries SocketLibraries LocalLibraries
# else
#  define ExtraLibraries LocalLibraries
# endif
#endif

#if RemoveDSDENroffMacros
# define RemoveDSDENroffMacrosCmd sed -e '/^\.D[S|E]$$/d' 
#else
# define RemoveDSDENroffMacrosCmd cat
#endif

#ifndef ConnectionFlags
# define ConnectionFlags	-DLOCALCONN -DTCPCONN
#endif

#ifndef FormattedManPages
# define FormattedManPages	YES
#endif

#ifndef ManSuffix
# define ManSuffix               1x
# define ManDir			$(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
# define LibManSuffix            3x
# define LibmanDir		$(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
# define FileManSuffix           4
#endif

/*
 * Compress manual pages, default on ISC and SCO
 */
#ifndef CompressManPages
# define CompressManPages        YES
#endif

/*
 * The .DS and .DE macros used in some manual pages are obsolete
 * in the often used ISC's Textprocessing Workbench 2.1.0 and break it,
 * so it's better to remove these previously
 */
#ifndef RemoveDSDENroffMacros
# define RemoveDSDENroffMacros   NO
#endif

#if RemoveDSDENroffMacros
# define RemoveDSDENroffMacrosCmd sed -e '/^\.D[S|E]$$/d' 
#else
# define RemoveDSDENroffMacrosCmd cat
#endif

#ifndef CompressManCmd
# define CompressManCmd @true
#endif

     RMDSDEMACCMD = RemoveDSDENroffMacrosCmd
   COMPRESSMANCMD = CompressManCmd

#if FormattedManPages

#ifndef InstallManPageLong
#define InstallManPageLong(file,destdir,dest)                           @@\
BuildInstallHtmlManPage(file,dest,$(MANSUFFIX))				@@\
									@@\
install.man:: file.man                                                  @@\
        MakeDir($(DESTDIR)destdir)                                      @@\
        $(RM) $(DESTDIR)destdir/dest.$(MANSUFFIX)*                      @@\
        $(RMDSDEMACCMD) file.man | neqn | nroff -man >/tmp/file.man     @@\
        $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\
        -$(COMPRESSMANCMD) $(DESTDIR)destdir/dest.$(MANSUFFIX)          @@\
        $(RM) /tmp/file.man
#endif

#ifndef InstallGenManPageLong
#define InstallGenManPageLong(file,destdir,dest,suffix)                 @@\
BuildInstallHtmlManPage(file,dest,suffix)				@@\
									@@\
install.man:: file.man                                                  @@\
        MakeDir($(DESTDIR)destdir)                                      @@\
        $(RM) $(DESTDIR)destdir/dest.suffix*                            @@\
        $(RMDSDEMACCMD) file.man | neqn | nroff -man >/tmp/file.man     @@\
        $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.suffix @@\
        -$(COMPRESSMANCMD) $(DESTDIR)destdir/dest.suffix                @@\
        $(RM) /tmp/file.man
#endif

#ifndef InstallMultipleMan
#define InstallMultipleMan(list,dest)                                   @@\
install.man:: list                                                      @@\
	MakeDir($(DESTDIR)dest)						@@\
        @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
        for i in list; do \                                             @@\
                (MNAME=`echo $$i | cut -f1 -d.`; \			@@\
		set -x; \						@@\
                $(RM) $(DESTDIR)dest/$${MNAME}*; \                      @@\
                $(RMDSDEMACCMD) $$i | neqn | nroff -man >/tmp/$$i; \    @@\
                $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \      @@\
                $(COMPRESSMANCMD) $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \  @@\
                $(RM) /tmp/$$i); \                                      @@\
        done
#endif

/*
 * InstallManPageAliases - generate rules to install manual page aliases.
 * (Make hard links on SVR3.)
 */
#ifndef InstallManPageAliasesBase
#define InstallManPageAliasesBase(file,destdir,aliases)			@@\

install.man::                                                           @@\
        @(SUFFIX=`echo $(DESTDIR)destdir/file.* | cut -f2,3 -d.`; \     @@\
        for i in aliases; do (set -x; \                                 @@\
        $(RM) $(DESTDIR)destdir/$$i.*; \                                @@\
        (cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \                  @@\
        $$i.$${SUFFIX})); \                                             @@\
        done)
#endif

#ifndef InstallManPageAliases
#define InstallManPageAliases(file,destdir,aliases)			@@\
InstallHtmlManPageAliases(file,aliases,$(MANSUFFIX))			@@\
									@@\
InstallManPageAliasesBase(file,destdir,aliases)
#endif

#ifndef InstallGenManPageAliases
#define InstallGenManPageAliases(file,destdir,suffix,aliases)		@@\
InstallHtmlManPageAliases(file,aliases,suffix)				@@\
									@@\
InstallManPageAliasesBase(file,destdir,aliases)
#endif

#endif /* FormattedManPages */

/* If you have trouble with make bombing out in Xlib, try uncommenting this. */
/* You will not get dependencies as a result, but better than nothing. */
#ifndef MakeHashTableBug
#define MakeHashTableBug        NO
#endif

#if MakeHashTableBug
#define DependTarget3(srcs1,srcs2,srcs3)
#endif

#include <sv3Lib.rules>

#ifdef i386Architecture
#include <xorg.cf>
#endif