Revert "Enable the use of the TIRPC library on Linux."
[oweals/cde.git] / cde / config / cf / bsdi.cf
1 XCOMM platform:  $XConsortium: bsdi.cf /main/22 1996/09/28 16:09:30 rws $
2 XCOMM platform:  $XFree86: xc/config/cf/bsdi.cf,v 3.19 1995/10/21 11:26:00 dawes Exp $
3
4 #ifndef OSName
5 #define OSName            BSD/OS 2.0
6 #endif
7 #ifndef OSVendor
8 #define OSVendor          BSDI
9 #endif
10 XCOMM operating system:  OSName
11 #ifndef OSMajorVersion
12 #define OSMajorVersion    2
13 #endif
14 #ifndef OSMinorVersion
15 #define OSMinorVersion    0
16 #endif
17
18 #define HasPutenv       YES
19 #define HasBSD44Sockets YES
20
21 XCOMM BSD/OS 2.0 comes with gcc 2.6.3 installed as gcc2 and gcc.
22 XCOMM gcc 1.42 is installed as cc.
23 XCOMM BSD/386 1.1 comes with gcc 2.5.8 installed as gcc2.
24 XCOMM gcc 1.42 is installed as cc and gcc.
25 XCOMM BSD/386 1.0 comes with gcc 1.40 as the only compiler.
26 XCOMM The default is to use gcc2 on release 2.0 and 1.1 and gcc1 on 1.0
27 XCOMM The defaults can be altered by defining "HasGcc2" as YES or NO in
28 XCOMM xf86site.def
29
30 #ifndef HasGcc
31 # define HasGcc                 YES
32 #endif
33 #if OSMajorVersion > 1 || OSMinorVersion >= 1
34 # ifndef HasGcc2
35 #  define HasGcc2               YES
36 # endif
37 #endif
38 #if HasGcc2
39 # ifndef HasGcc2ForCplusplus
40 #  define HasGcc2ForCplusplus   YES
41 # endif
42 # define CcCmd                  gcc2
43 # define OptimizedCDebugFlags   DefaultGcc2i386Opt -m486
44 #else
45 # define CcCmd                  cc
46 # define OptimizedCDebugFlags   -O
47 #endif
48 #define CppCmd          /usr/bin/cpp
49 #define TroffCmd        groff -Tps
50 #define MkdirHierCmd    mkdir -p
51 #define SetTtyGroup     YES
52 #define HasNdbm         YES
53 #define HasWChar32      YES
54 #define DirFailPrefix -
55 #define AvoidNullMakeCommand YES
56 # ifndef GccUsesGas
57 #  define GccUsesGas    YES
58 # endif
59 #if HasGcc
60 #if UseInstalled
61 #define DefaultCCOptions        /**/
62 #else
63 #define DefaultCCOptions        -ansi
64 #endif
65 #endif
66
67 #if GccUsesGas
68 # define GccGasOption -DGCCUSESGAS
69 #else
70 # define GccGasOption /**/
71 #endif
72
73 #define ServerExtraDefines GccGasOption XFree86ServerDefines
74 #define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
75 #define XFree86ConsoleDefines /**/
76 #define AsmDefines -DUSE_GAS
77
78 #define StandardDefines -DCSRG_BASED
79
80 #define InstallCmd /usr/bin/install
81 #define EqnCmd eqn -Tps
82           COL = col
83          NEQN = eqn -Tascii
84         NROFF = nroff
85
86 #define DefaultUserPath         :/bin:/usr/bin:/usr/local/bin:$(BINDIR)
87 #define DefaultSystemPath       /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
88
89 XCOMM Man pages need to be formatted when installed, so override the default
90 XCOMM imake rules.
91
92 #define ManSuffix       1
93 #define ManSourcePath   $(MANPATH)/cat
94
95 #define InstallManPageLong(file,destdir,dest)                           @@\
96 all:: file.0                                                            @@\
97                                                                         @@\
98 file.0:: file.man                                                       @@\
99         @if [ -f file.man ]; \                                          @@\
100         then \                                                          @@\
101         cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \      @@\
102         cp /tmp/$$$$.man file.0; \                                      @@\
103         $(RM) /tmp/$$$$.man; \                                          @@\
104         fi                                                              @@\
105                                                                         @@\
106 file.man::                                                              @@\
107                                                                         @@\
108 install.man::                                                           @@\
109         MakeDir($(DESTDIR)destdir)                                      @@\
110         -@if [ -f file.0 ]; \                                           @@\
111         then \                                                          @@\
112         $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
113         fi
114
115 #define InstallGenManPageLong(file,destdir,dest,suffix)                 @@\
116         InstallManPageLong(file,destdir,dest)
117
118 #define InstallMultipleManSuffix(list,dest,suff)                        @@\
119 install.man::                                                           @@\
120         MakeDir($(DESTDIR)dest)                                         @@\
121         case '${MFLAGS}' in *[i]*) set +e;; esac; \                     @@\
122         for i in list; do \                                             @@\
123           (set -x; \                                                    @@\
124           cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \   @@\
125           $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \  @@\
126           $(RM) /tmp/$$$$.suff); \                                              @@\
127         done
128
129 #define InstallMultipleMan(list,dest)                                   @@\
130         InstallMultipleManSuffix(list,dest,man)
131
132 #define InstallManPageAliases(file,destdir,aliases)                     @@\
133 install.man::                                                           @@\
134         @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
135         for i in aliases; do \                                          @@\
136                 (set -x; \                                              @@\
137                 $(RM) $(DESTDIR)destdir/$$i.0;\                         @@\
138                 (cd $(DESTDIR)destdir; $(LN) file.0 $$i.0);\            @@\
139                 ); \                                                    @@\
140         done
141
142 #define InstallGenManPageAliases(file,destdir,suffix,aliases)           @@\
143         InstallManPageAliases(file,destdir,aliases)
144
145 /*
146  * These seem redundant, but leave them in for now.
147  */
148 #define i386Bsd 1
149 #define i386Bsdi 1
150 #include <xfree86.cf>