OpenIndiana and Solaris port
[oweals/cde.git] / cde / config / cf / site.def
1 XCOMM site:  $TOG: site.def /main/23 1998/03/19 18:43:26 mgreess $
2
3 /***************************************************************************
4  *                                                                         *
5  *                X Consortium In-House Build Parameters                   *
6  *                      Use at Your Own Risk                               *
7  *                                                                         *
8  ***************************************************************************/
9
10 #ifndef SiteIConfigFiles
11 # define SiteIConfigFiles $(IRULESRC)/host.def
12 # define LocalConfigFiles host.def
13 #endif
14
15 #ifdef BeforeVendorCF
16
17 # define LocalThreadsDefines
18
19 # include <host.def>
20
21 /* CDE uses a .C suffix for C++ source, not the default .cxx */
22 # define CCsuf                  C
23
24 /* We will import x11 and Motif. */
25 # define ImportX11              YES
26 # define ImportMotif            YES
27
28 # ifndef TopLevelProject
29 #  define TopLevelProject       cde
30 # endif
31
32 /* On systems where cpp doesn't expand correctly macros in include directives
33  * the two following macros need to be defined directly (accordingly to the
34  * TopLevelProject macro defined above).
35  */
36 # if defined(SunArchitecture) || defined(AIXArchitecture) \
37      || defined(USLArchitecture) || defined(UXPArchitecture)
38 #  ifndef ProjectRulesFile
39 #   define ProjectRulesFile     <cde.rules>
40 #  endif
41 #  ifndef ProjectTmplFile
42 #   define ProjectTmplFile      <cde.tmpl>
43 #  endif
44 # endif
45
46 # ifdef AlphaArchitecture
47 #  define HasDECCplusplus       YES
48 # endif
49
50 # ifdef HPArchitecture
51 #  define HasHPCplusplus        YES
52 # endif
53
54 # if defined(SGIArchitecture)
55 #  define MipsN32Architecture   YES
56 # endif
57
58 # if defined(SunArchitecture)
59 #  ifndef HasSunC
60 #   define HasSunC              NO
61 #  endif
62 #  ifndef HasSunCplusplus
63 #   define HasSunCplusplus      HasSunC
64 #  endif
65 #  ifndef HasGcc2
66 #   if HasSunC
67 #    define HasGcc2             NO
68 #   else
69 #    define HasGcc2             YES
70 #   endif
71 #  endif
72 #  ifndef HasGcc2ForCplusplus
73 #   define HasGcc2ForCplusplus  HasGcc2
74 #  endif
75 # endif
76
77 # if defined(UXPArchitecture) || defined(USLArchitecture) \
78      || defined(AIXArchitecture)
79 #  define HasCplusplus          YES
80 # endif
81
82 #endif /* BeforeVendorCF */
83
84 #ifdef AfterVendorCF
85
86 #ifndef X11ProjectRoot
87 # if defined(LinuxArchitecture)
88 #  define X11ProjectRoot        /usr
89 # elif defined(FreeBSDArchitecture)
90 #  define X11ProjectRoot        /usr/local
91 # elif defined(SunArchitecture)
92 #  define X11ProjectRoot        /usr
93 # elif defined(OpenBSDArchitecture)
94 #  define X11ProjectRoot        /usr/X11R6
95 # elif defined(NetBSDArchitecture)
96 #  define X11ProjectRoot        /usr/X11R7
97 # else
98 #  define X11ProjectRoot        /X11
99 # endif
100 #endif
101
102 #ifndef MotifProjectRoot
103 # if defined(FreeBSDArchitecture)
104 #  define MotifProjectRoot      /usr/local
105 # elif defined(OpenBSDArchitecture)
106 #  define MotifProjectRoot      /usr/local
107 # elif defined(NetBSDArchitecture)
108 #  define MotifProjectRoot      /usr/pkg
109 # elif defined(SunArchitecture)
110 #  define MotifProjectRoot      /usr/X11
111 # endif
112 #endif
113
114 #ifndef ProjectRoot
115 # define ProjectRoot    /usr/dt
116 #endif
117
118 XCOMM build the DtXinerama support
119 #define CDE_USEXINERAMA         YES
120
121 #ifdef SunArchitecture
122 # define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
123 #endif
124
125 #ifdef UXPArchitecture
126 # define DtLocalesToBuild ja_JP.dt-eucJP
127 #endif
128
129 XCOMM Make sure you have installed the de_DE, es_ES, fr_FR and it_IT locales.
130 XCOMM  or building non-C locales will cause build failures.
131 #if defined(BSDArchitecture)
132 # define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
133 #endif
134
135 #if defined(LinuxArchitecture)
136 # define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1 en_US.UTF-8 
137 # define UTF8_NLS_SUPPORT
138 #endif
139
140 #ifdef SunArchitecture
141 #define HasCodeCenter        YES
142 #define HasTestCenter        YES
143 #ifdef SparcArchitecture
144 #define HasPurify        YES
145 #endif
146 #endif
147
148 #ifdef HPArchitecture
149 #define HasPurify        YES
150 #endif
151
152 #ifdef __hp9000s800
153 #define HasCodeCenter        YES
154 #define HasTestCenter        YES
155 #endif
156
157 #ifdef SGIArchitecture
158 #if OSMajorVersion > 5
159 #define HasPurify        YES
160 #endif
161 #endif
162
163 XCOMM define DtDocLocalesToBuild to be the same as DtLocalesToBuild if undefined
164 #ifndef DtDocLocalesToBuild
165 # define DtDocLocalesToBuild DtLocalesToBuild
166 #endif
167
168 #endif /* AfterVendorCF */