/**/# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $

/*****************************************************************************
 *                                                                           *
 *			   SITE-SPECIFIC DEFINITIONS                         *
 *                                                                           *
 * Override any of the defaults in *.tmpl here.  Use ifndef so that servers  *
 * can override you if necessary:                                            *
 *                                                                           *
 *     #ifndef ABuildParameter                                               *
 *     #define ABuildParameter myvalue                                       *
 *     #endif                                                                *
 *                                                                           *
 * Make sure you check the following parameters:                             *
 *                                                                           *
 *     1.  HasLargeTmp                                                       *
 *     2.  InstallOldHeaderFiles                                             *
 *     3.  ContribDir                                                        *
 *     4.  HasXwWidgets                                                      *
 *     5.  HasXcuWidgets                                                     *
 *                                                                           *
 * Note on using DESTDIR:  If you want to install into a scratch directory   *
 * but will eventually move the tree back to the root, compile with DESTDIR  *
 * blank and install with "make install DESTDIR=directory".                  *
 *                                                                           *
 * We strongly recommend that you don't change the installation directories  *
 * and just use symbolic links if you want things to be installed on a       *
 * different partition.  For example,                                        *
 *                                                                           *
 *     # cd directory_containing_X_distribution                              *
 *     # make World                                                          *
 *     # mkdir /otherdisk/X                                                  *
 *     # foreach i (bin lib include)                                         *
 *     >     mkdir /otherdisk/X/$i                                           *
 *     >     ln -s /otherdisk/X/$i /usr/$i/X11                               *
 *     > end                                                                 *
 *     # make install                                                        *
 *                                                                           *
 *****************************************************************************/

/********************************
 * Athena configuration changes *
 ********************************/
#define ATHENA
#define SAVESPACE /* No profile libs built */

/* IBM RT/PC AOS 4.3 */
#ifdef RtArchitecture
#undef HCRevision

#define HCRevision	21025
#if HCRevision < 21001
#define BandAidCompiler "rtcchack.bac"
#undef MacroFile
#define MacroFile ibm.cf $(IRULESRC)/rtcchack.bac
#else
#undef	ibmosdefs
#define	ibmosdefs	-DNOSTDHDRS -DHCVERSION=HCRevision -Hon=READ_ONLY_STRINGS
#endif
#undef HasNdbm
#define HasNdbm		YES

#undef ibmInclude8514
#undef ibmIncludeAED
#undef ibmIncludeAPA16
#undef ibmIncludeAPA8c
#undef ibmIncludeEGA
#undef ibmIncludeMPEL
#undef ibmIncludeVGA
#undef ibmIncludeGEN
#undef ibmIncludePLX

#define ibmInclude8514  NO /* YES */
#define ibmIncludeAED   NO /* YES */
#define ibmIncludeAPA16 YES
#define ibmIncludeAPA8c NO
#define ibmIncludeEGA   NO /* YES */
#define ibmIncludeMPEL  YES
#define ibmIncludeVGA   NO /* YES */
#define ibmIncludeGEN   NO
#define ibmIncludePLX	YES
#endif /* RtArchitecture */

/* MAC A/UX */
#ifdef MacIIArchitecture
#define HasGcc			YES
#define InstallCmd		install
#endif

/* IBM RISC/6000 AIX 3.1 */
#ifdef IBMR2Architecture
#define InstallCmd		install
#define InstKmemFlags		-o root -m 4755
#endif

/* IBM PS/2 AIX 1.2 */
#ifdef PS2Architecture
#define InstallCmd install
#endif

/* VAX BSD 4.3 */
#ifdef VaxArchitecture
#undef HasNdbm
#define HasNdbm		YES
#undef XqdssServer
#define XqdssServer     Xqdss
#undef XplxServer
#define	XplxServer	Xplx
#undef HasGcc
#define HasGcc	YES
#define MakeDependDefine '-DGCCINCPATH="/usr/local/libgcc/gcc-include"'
#if HasGcc
#ifndef CcCmd
#define CcCmd gcc -fpcc-struct-return
#endif

/* IBM machines that need -DNOSTDHDRS define it in ibmosdefs;
 * all other operating systems except ultrix 4.0 need it defined.
 */
#ifndef StandardDefines
#if !defined(ibm) && !(defined(ultrix) && OSMajorVersion > 3)
#define StandardDefines -DNOSTDHDRS
#endif
#endif
#define ServerDefines StandardDefines ExtensionDefines -DX11R4
#endif

#endif

/* On Ultrix */
#ifdef MipsArchitecture
#define	ArCmd ar cru
#define LintLibFlag -o
#endif

#ifdef SparcArchitecture
#if HasGcc
#define CcCmd gcc -traditional -B/usr/gcc/lib/ -I/usr/gcc/include -I/usr/athena/include
#else
#define CcCmd cc
#endif
#define OptimizedCDebugFlags -O
#endif

/* General */
#define StripInstalledPrograms	YES
#define InstUidFlags	-o root -m 4755
#ifndef InstKmemFlags
#define InstKmemFlags	-g kmem -m 2755
#endif
#define HasSaberC	YES

#ifndef SAVESPACE
#define	ProfileLibX		YES
#define ProfileLibXArchive	YES
#define ProfileLibXaw		YES
#define ProfileLibXext		YES
#define ProfileLibXmu		YES
#define ProfileLibXt		YES
#define ProfileOldLibX		YES
#define ProfileLibXau		YES
#define ProfileLibXdmcp		YES
#endif

#undef ServerCDebugFlags
#define ServerCDebugFlags -O -DATHENA

/* Force installation into X lib. */
#if defined(ATHENA)
#undef DoInstallExtensionsIntoXlib
#define DoInstallExtensionsIntoXlib YES		/* for Makefile hosers */
#endif

/* Directory structure for all Athena platforms */
#define UsrLibDir		$(DESTDIR)/usr/athena/lib
#define LibDir			$(DESTDIR)/usr/athena/lib/X11
#define BinDir			$(DESTDIR)/usr/athena/bin
#define IncRoot			$(DESTDIR)/usr/athena/include
#define ManDirectoryRoot	/usr/athena/man

#if defined(IBMR2Architecture) && defined(UseSharedLibs)
#undef UsrLibDir
#define UsrLibDir		$(DESTDIR)/usr/athena/lib/shared
#undef DoInstallExtensionsIntoXlib
#endif

/* Don't replace the following with two tabs or ultrix cpp loses */
#define ManSuffix	1
/* We don't want lint libraries */
#define LintCmd	\:



/****************************************
 * End of Athena specific configuration *
 ****************************************/

/*
 * SET THESE PARAMETERS FIRST !!!
 */

/*
 * 1.  HasLargeTmp - if your /tmp space is less than a 1meg, you should 
 * probably set this to NO
 */
#ifndef HasLargeTmp
#define HasLargeTmp YES
#endif


/*
 * 2.  InstallOldHeaderFiles - set the following to YES until you have 
 * converted your Xaw programs to use the new naming scheme.
 */
#ifndef InstallOldHeaderFiles
#define InstallOldHeaderFiles NO	/* set to YES for compat with R3 Xaw */
#endif


/*
 * 3.  ContribDir - set ContribDir to wherever you've placed your sources; the
 * R4 tape comes with the core tree in ./mit and the contrib tree in ./contrib,
 * so to get to contrib, go up from TOP:
 */
#ifndef ContribDir
#define ContribDir $(TOP)/../contrib
#endif

/*
 * 4.  HasXwWidgets - if you want to have make variables for the Xw widgets
 * used in Doug Young's book, set this to YES.
 */
#ifndef HasXwWidgets		/* whether or not to include make vars */
#define HasXwWidgets NO
#endif


/*
 * 5.  HasXcuWidgets - if you want to have make variables for the Xcu widgets,
 * set this to YES.
 */
#ifndef HasXcuWidgets		/* whether or not to include make vars */
#define HasXcuWidgets NO
#endif



/*****************************************************************************
 *                                                                           *
 *			       Build Parameters                              *
 *                                                                           *
 *****************************************************************************/

/*
 * If you want to use GCC, set HasGcc in the appropriate .cf files.  This 
 * results in substantial improvements for the server.
 */
#ifndef HasGcc
#define HasGcc NO
#endif

#if HasGcc
#ifndef CcCmd
#define CcCmd gcc -DNOSTDHDRS
#endif
#endif


#ifndef ExtensionDefines
#if SystemV
#define ExtensionDefines -DSHAPE -DMULTIBUFFER -DMITSHM -DMITMISC -DXIDLE
#else
#if defined(VaxArchitecture) || defined(RtArchitecture)
#define ExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC -DPLXVIDEO -DXIDLE
#else
#define ExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC -DXIDLE
#endif
#endif
#endif

/*
 * Make sure that the library has compatibility stuff built into it, for now
 */
#ifndef BuildXawBC
#define BuildXawBC YES			/* headers can be installed later */
#endif
#ifndef CompatibilityFlags
#if InstallOldHeaderFiles
#define CompatibilityFlags -DXAW_BC
#else
#define CompatibilityFlags /**/
#endif
#endif

#ifndef SharedLibXext
#define SharedLibXext NO	/* XXX - haven't made it sharable yet */
#endif
