Files
cdesktop/cde/config/cf/site.def
Jon Trulson aaa9305653 linux/site.def: use an if !defined() gaurd for DtLocalesToBuild
Without this, you cannot use the command line to select the languages
to build, you would have to edit site.def directly.

With this fix, you can build a language on linux with something like:

make World IMAKE_DEFINES='-DDtLocalesToBuild="de_DE.ISO8859-1 es_ES.ISO8859-1"'

to build the DE (German) and es (Spanish) locales.
2018-06-24 12:48:14 -06:00

164 lines
4.0 KiB
Modula-2

XCOMM site: $TOG: site.def /main/23 1998/03/19 18:43:26 mgreess $
/***************************************************************************
* *
* X Consortium In-House Build Parameters *
* Use at Your Own Risk *
* *
***************************************************************************/
#ifndef SiteIConfigFiles
# define SiteIConfigFiles $(IRULESRC)/host.def
# define LocalConfigFiles host.def
#endif
#ifdef BeforeVendorCF
# define LocalThreadsDefines
# include <host.def>
/* CDE uses a .C suffix for C++ source, not the default .cxx */
# define CCsuf C
/* We will import x11 and Motif. */
# define ImportX11 YES
# define ImportMotif YES
# ifndef TopLevelProject
# define TopLevelProject cde
# endif
/* On systems where cpp doesn't expand correctly macros in include directives
* the two following macros need to be defined directly (accordingly to the
* TopLevelProject macro defined above).
*/
# if defined(SunArchitecture) || defined(AIXArchitecture)
# ifndef ProjectRulesFile
# define ProjectRulesFile <cde.rules>
# endif
# ifndef ProjectTmplFile
# define ProjectTmplFile <cde.tmpl>
# endif
# endif
# ifdef HPArchitecture
# define HasHPCplusplus YES
# endif
# if defined(SGIArchitecture)
# define MipsN32Architecture YES
# endif
# if defined(SunArchitecture)
# ifndef HasSunC
# define HasSunC NO
# endif
# ifndef HasSunCplusplus
# define HasSunCplusplus HasSunC
# endif
# ifndef HasGcc2
# if HasSunC
# define HasGcc2 NO
# else
# define HasGcc2 YES
# endif
# endif
# ifndef HasGcc2ForCplusplus
# define HasGcc2ForCplusplus HasGcc2
# endif
# endif
# if defined(AIXArchitecture)
# define HasCplusplus YES
# endif
#endif /* BeforeVendorCF */
#ifdef AfterVendorCF
#ifndef X11ProjectRoot
# if defined(LinuxArchitecture)
# define X11ProjectRoot /usr
# elif defined(FreeBSDArchitecture)
# define X11ProjectRoot /usr/local
# elif defined(SunArchitecture)
# define X11ProjectRoot /usr
# elif defined(OpenBSDArchitecture)
# define X11ProjectRoot /usr/X11R6
# elif defined(NetBSDArchitecture)
# define X11ProjectRoot /usr/X11R7
# else
# define X11ProjectRoot /X11
# endif
#endif
#ifndef MotifProjectRoot
# if defined(FreeBSDArchitecture)
# define MotifProjectRoot /usr/local
# elif defined(OpenBSDArchitecture)
# define MotifProjectRoot /usr/local
# elif defined(NetBSDArchitecture)
# define MotifProjectRoot /usr/pkg
# elif defined(SunArchitecture)
# define MotifProjectRoot /usr/X11
# endif
#endif
#ifndef ProjectRoot
# define ProjectRoot /usr/dt
#endif
XCOMM build the DtXinerama support
#define CDE_USEXINERAMA YES
#ifdef SunArchitecture
# define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
#endif
XCOMM Make sure you have installed the de_DE, es_ES, fr_FR and it_IT locales.
XCOMM or building non-C locales will cause build failures.
#if defined(BSDArchitecture)
# define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
#endif
#if defined(LinuxArchitecture)
XCOMM Make sure you have installed the de_DE, es_ES, fr_FR and it_IT locales.
XCOMM or building non-C locales will cause build failures.
XCOMM DtLocalesToBuild: de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1 en_US.UTF-8
# if !defined(DtLocalesToBuild)
# define DtLocalesToBuild en_US.UTF-8
# endif
# define UTF8_NLS_SUPPORT
#endif
#ifdef SunArchitecture
#define HasCodeCenter YES
#define HasTestCenter YES
#ifdef SparcArchitecture
#define HasPurify YES
#endif
#endif
#ifdef HPArchitecture
#define HasPurify YES
#endif
#ifdef __hp9000s800
#define HasCodeCenter YES
#define HasTestCenter YES
#endif
#ifdef SGIArchitecture
#if OSMajorVersion > 5
#define HasPurify YES
#endif
#endif
XCOMM define DtDocLocalesToBuild to be the same as DtLocalesToBuild if undefined
#ifndef DtDocLocalesToBuild
# define DtDocLocalesToBuild DtLocalesToBuild
#endif
#endif /* AfterVendorCF */