/*
 * SET VERSION NUMBERS BEFORE MAKING MAKEFILES
 *
 * If you change either of the following numbers, you will need to do a 
 * full build (make World) at the top of the sources....
 */
#define SunOSPlatform     YES		/* set to NO if not running SunOS */
#define OSName            SunOS 5.1
#define OSMajorVersion    5
#define OSMinorVersion    1
#define HasSaberC	  YES		/* for machines that have it */
#define HasNdbm		  YES
#define XsunServer Xsun

#define HasGcc YES 	/*RY USEFUL for server on Sun3 */

#define SystemV           YES
#define HasPutenv YES
#define HasBsearch YES

#if OSMajorVersion <= 4 
#define LibraryCcCmd gcc		/* until gcc can generate -pic code */
#endif

#if OSMajorVersion <= 3
#define HasVoidSignalReturn NO
#else
#define HasVoidSignalReturn YES
#endif

#ifdef sparc
#undef sparc
#define SparcArchitecture
#endif
#ifdef sun386
#undef sun386
#define i386Architecture
#endif

/* you may find one or both of these options useful on your system */
/* #define DefaultCCOptions -f68881 -pipe */

/* see below for ServerDefines */
#define LibraryDefines          -DSUNSYSV -DSYSV  -DUSE_USG_PTYS -DSOLARIS
#define StandardDefines         -DSUNSYSV -DSYSV  -DUSE_USG_PTYS -DSOLARIS
#define StandardCppDefines      -DSUNSYSV -DSYSV  -DUSE_USG_PTYS -DSOLARIS

#define LnCmd ln -s


/**/# platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
/**/# operating system:  OSName

#if OSMajorVersion == 3 && OSMinorVersion <= 2
#define OptimizedCDebugFlags /* as nothing */
#endif

#define UseSunWindowsInServer	NO	/* link in SunWindows support? */

#if UseSunWindowsInServer
#define SunWindowsDefines -DSUN_WINDOWS
#else
#define SunWindowsDefines /* as nothing */
#endif

/* define this as you like for server compilation */
#if OSMajorVersion >= 4 || defined(SparcArchitecture)
#define AllocateLocalDefines -DINCLUDE_ALLOCA_H
#else
#define AllocateLocalDefines /**/
#endif

#define ExtensionDefines -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC

#define ServerDefines -DXDMCP SunWindowsDefines ExtensionDefines AllocateLocalDefines

#if OSMajorVersion >= 4 && OSMinorVersion >= 0
#define SetTtyGroup YES
#endif

#define ExtraLibraries $(DEPXAUTHLIB) -lsocket /usr/athena/lib/libresolv.a -lnsl -lc /usr/ucblib/libucb.a -lelf -ldl
