head	1.10;
access;
symbols
	netbsd-7-2-RELEASE:1.9
	netbsd-7-1-2-RELEASE:1.9
	netbsd-7-1-1-RELEASE:1.9
	netbsd-7-1:1.9.0.28
	netbsd-7-1-RELEASE:1.9
	netbsd-7-1-RC2:1.9
	netbsd-7-1-RC1:1.9
	netbsd-7-0-2-RELEASE:1.9
	netbsd-7-0-1-RELEASE:1.9
	netbsd-7-0:1.9.0.26
	netbsd-7-0-RELEASE:1.9
	netbsd-7-0-RC3:1.9
	netbsd-7-0-RC2:1.9
	netbsd-7-0-RC1:1.9
	netbsd-5-2-3-RELEASE:1.9
	netbsd-5-1-5-RELEASE:1.9
	netbsd-6-0-6-RELEASE:1.9
	netbsd-6-1-5-RELEASE:1.9
	netbsd-7:1.9.0.24
	netbsd-7-base:1.9
	netbsd-6-1-4-RELEASE:1.9
	netbsd-6-0-5-RELEASE:1.9
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.9
	riastradh-drm2:1.9.0.22
	riastradh-drm2-base:1.9
	netbsd-6-1-3-RELEASE:1.9
	netbsd-6-0-4-RELEASE:1.9
	netbsd-5-2-2-RELEASE:1.9
	netbsd-5-1-4-RELEASE:1.9
	netbsd-6-1-2-RELEASE:1.9
	netbsd-6-0-3-RELEASE:1.9
	netbsd-5-2-1-RELEASE:1.9
	netbsd-5-1-3-RELEASE:1.9
	netbsd-6-1-1-RELEASE:1.9
	netbsd-6-1:1.9.0.20
	netbsd-6-0-2-RELEASE:1.9
	netbsd-6-1-RELEASE:1.9
	netbsd-6-1-RC4:1.9
	netbsd-6-1-RC3:1.9
	netbsd-6-1-RC2:1.9
	netbsd-6-1-RC1:1.9
	netbsd-5-2:1.9.0.18
	netbsd-6-0-1-RELEASE:1.9
	netbsd-5-2-RELEASE:1.9
	netbsd-5-2-RC1:1.9
	netbsd-6-0:1.9.0.16
	netbsd-6-0-RELEASE:1.9
	netbsd-6-0-RC2:1.9
	netbsd-6-0-RC1:1.9
	netbsd-6:1.9.0.14
	netbsd-6-base:1.9
	netbsd-5-1-2-RELEASE:1.9
	netbsd-5-1-1-RELEASE:1.9
	netbsd-5-1:1.9.0.12
	netbsd-5-1-RELEASE:1.9
	netbsd-5-1-RC4:1.9
	netbsd-5-1-RC3:1.9
	netbsd-5-1-RC2:1.9
	netbsd-5-1-RC1:1.9
	netbsd-5-0-2-RELEASE:1.9
	netbsd-5-0-1-RELEASE:1.9
	netbsd-5-0:1.9.0.10
	netbsd-5-0-RELEASE:1.9
	netbsd-5-0-RC4:1.9
	netbsd-5-0-RC3:1.9
	netbsd-5-0-RC2:1.9
	netbsd-5-0-RC1:1.9
	netbsd-5:1.9.0.8
	netbsd-5-base:1.9
	netbsd-4-0-1-RELEASE:1.9
	netbsd-4-0:1.9.0.6
	netbsd-4-0-RELEASE:1.9
	netbsd-4-0-RC5:1.9
	netbsd-4-0-RC4:1.9
	netbsd-4-0-RC3:1.9
	netbsd-4-0-RC2:1.9
	netbsd-4-0-RC1:1.9
	netbsd-3-1-1-RELEASE:1.8.6.1
	netbsd-3-0-3-RELEASE:1.8.6.1
	abandoned-netbsd-4-base:1.9
	abandoned-netbsd-4:1.9.0.2
	netbsd-3-1:1.8.6.1.0.4
	netbsd-3-1-RELEASE:1.8.6.1
	netbsd-3-0-2-RELEASE:1.8.6.1
	netbsd-3-1-RC4:1.8.6.1
	netbsd-3-1-RC3:1.8.6.1
	netbsd-3-1-RC2:1.8.6.1
	netbsd-3-1-RC1:1.8.6.1
	netbsd-4:1.9.0.4
	netbsd-4-base:1.9
	netbsd-3-0-1-RELEASE:1.8.6.1
	netbsd-3-0:1.8.6.1.0.2
	netbsd-3-0-RELEASE:1.8.6.1
	netbsd-3-0-RC6:1.8.6.1
	netbsd-3-0-RC5:1.8.6.1
	netbsd-3-0-RC4:1.8.6.1
	netbsd-3-0-RC3:1.8.6.1
	netbsd-3-0-RC2:1.8.6.1
	netbsd-3-0-RC1:1.8.6.1
	netbsd-2-0-3-RELEASE:1.8
	netbsd-2-1:1.8.0.8
	netbsd-2-1-RELEASE:1.8
	netbsd-2-1-RC6:1.8
	netbsd-2-1-RC5:1.8
	netbsd-2-1-RC4:1.8
	netbsd-2-1-RC3:1.8
	netbsd-2-1-RC2:1.8
	netbsd-2-1-RC1:1.8
	netbsd-2-0-2-RELEASE:1.8
	v4-5-0:1.1.1.9
	v4-5-0_beforeimport:1.8
	netbsd-3:1.8.0.6
	netbsd-3-base:1.8
	netbsd-2-0-1-RELEASE:1.8
	netbsd-2:1.8.0.4
	netbsd-2-base:1.8
	netbsd-2-0-RELEASE:1.8
	netbsd-2-0-RC5:1.8
	netbsd-2-0-RC4:1.8
	netbsd-2-0-RC3:1.8
	netbsd-2-0-RC2:1.8
	netbsd-2-0-RC1:1.8
	netbsd-2-0:1.8.0.2
	netbsd-2-0-base:1.8
	v4-4-0:1.1.1.8
	v4-4-0_beforeimport:1.7
	netbsd-1-6-PATCH002-RELEASE:1.6
	netbsd-1-6-PATCH002:1.6
	netbsd-1-6-PATCH002-RC4:1.6
	v4-3-0-2003-12-19:1.1.1.7
	netbsd-1-6-PATCH002-RC3:1.6
	netbsd-1-6-PATCH002-RC2:1.6
	netbsd-1-6-PATCH002-RC1:1.6
	netbsd-1-6:1.6.0.2
	netbsd-1-6-base:1.6
	v4-3-0:1.1.1.6
	v4-3-0_beforeimport:1.3
	netbsd-1-6-PATCH001:1.3
	netbsd-1-6-RELEASE:1.2
	v4-2-1:1.1.1.5
	v4-2-1_beforeimport:1.2
	netbsd-1-5-PATCH003:1.1.1.4
	v4-2-0:1.1.1.4
	netbsd-1-5-PATCH002:1.1.1.3
	netbsd-1-5-PATCH001:1.1.1.2
	v4-1-0:1.1.1.3
	v4-0-3:1.1.1.2
	v4-0-2:1.1.1.1
	XF86:1.1.1;
locks; strict;
comment	@# @;


1.10
date	2015.07.23.08.12.32;	author mrg;	state dead;
branches;
next	1.9;
commitid	3Fk7MoycOv7VSnuy;

1.9
date	2005.03.18.14.54.40;	author tron;	state Exp;
branches;
next	1.8;

1.8
date	2004.03.05.16.32.44;	author tron;	state Exp;
branches
	1.8.6.1;
next	1.7;

1.7
date	2003.12.19.13.03.47;	author tron;	state Exp;
branches;
next	1.6;

1.6
date	2003.10.18.18.06.38;	author tron;	state Exp;
branches;
next	1.5;

1.5
date	2003.06.12.22.49.25;	author tron;	state Exp;
branches;
next	1.4;

1.4
date	2003.02.28.21.49.17;	author tron;	state Exp;
branches;
next	1.3;

1.3
date	2002.09.04.20.38.56;	author tron;	state Exp;
branches;
next	1.2;

1.2
date	2002.09.03.21.03.09;	author tron;	state Exp;
branches;
next	1.1;

1.1
date	2001.01.01.12.43.50;	author veego;	state Exp;
branches
	1.1.1.1;
next	;

1.8.6.1
date	2005.04.06.19.59.31;	author tron;	state Exp;
branches;
next	;

1.1.1.1
date	2001.01.01.12.43.50;	author veego;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.03.18.16.55.46;	author veego;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2001.06.09.14.52.53;	author tron;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2002.01.19.14.53.37;	author tron;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2002.09.04.14.55.03;	author tron;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2003.02.28.13.18.41;	author tron;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2003.12.19.12.46.46;	author tron;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2004.03.05.14.23.51;	author tron;	state Exp;
branches;
next	1.1.1.9;

1.1.1.9
date	2005.03.18.13.03.04;	author tron;	state Exp;
branches;
next	;


desc
@@


1.10
log
@remove obsolete XFree86 sources.
@
text
@XCOMM ----------------------------------------------------------------------
XCOMM X Window System Build Parameters and Rules
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.277 2005/03/01 03:48:45 dawes Exp $
/*
 * Copyright (c) 1994-2005 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

/***************************************************************************
 *                                                                         *
 *                            DEFAULT DEFINITIONS                          *
 *                                                                         *
 * The following section contains defaults for things that can             *
 * overridden in the various *.cf and site.def files.  DO NOT EDIT!        *
 *                                                                         *
 **************************************************************************/

#define ProjectX		604	/* do *not* change this line */

/* The following project-specific rules are defined at the end of this file:
 *
 * InstallAppDefaults		(class)
 * InstallAppDefaultsLong	(file,class)
 * MakeFontsDir			(deplist)
 * MakeFcCache			(deplist)
 * MakeFonts			()
 * InstallFontObjs		(objs,dest)
 * InstallFonts			(dest)
 * InstallFontAliases		(dest)
 * InstallFcCache		(dest)
 * FontSrc			(basename)
 * FontBaseObj			(basename)
 * InstallFontScale		(dest)
 * UncompressedFontTarget	(basename)
 * CompressedFontTarget		(basename)
 * FontTarget			(basename)
 * FontObj			(basename)
 * MakeXkbDir			(basedir,subdir)
 */

#ifndef XVendorString
# define XVendorString  "The XFree86 Project, Inc"
#endif

#ifndef XVendorRelease
# define XVendorRelease 40400000
#endif

#ifndef XVendorManVersionString
#define XVendorManVersionString 4.x
#endif

#ifndef XVendorManNameString
#define XVendorManNameString XFree86
#endif

VENDORMANNAME = XVendorManNameString
VENDORMANVERSION = XVendorManVersionString

#ifndef VendorManDefs
#define VendorManDefs -D__vendorversion__="$(VENDORMANVERSION) $(VENDORMANNAME)"
#endif

/*
 * X-specific things
 */
#if CrossCompiling && !defined(UseInstalledOnCrossCompile)
# if defined(UseInstalled)
#  define UseInstalledOnCrossCompile YES
# else
#  define UseInstalledOnCrossCompile NO
# endif
#endif

#ifndef HasXServer
#define HasXServer		YES
#endif
#ifndef BuildServer
#define BuildServer		HasXServer
#endif
#ifndef BuildServersOnly
#define BuildServersOnly	NO
#endif
#ifndef BuildClients
#define BuildClients		!BuildServersOnly
#endif
#ifndef BuildDocs
#define BuildDocs		!BuildServersOnly
#endif
#ifndef BuildDmx
#define BuildDmx		YES
#endif
#ifndef XdmxServer
#define XdmxServer		BuildDmx && BuildServer
#endif
#ifndef BuildLibrariesForDmx
#define BuildLibrariesForDmx	XdmxServer
#endif
#ifndef BuildLibraries
#define BuildLibraries		(!BuildServersOnly || BuildClients || \
				 BuildLibrariesForDmx)
#endif
#ifndef BuildLibrariesForXServers
#define BuildLibrariesForXServers	BuildServer
#endif
#ifndef BuildFontServer
#define BuildFontServer		YES
#endif
#ifndef OmitSnfSupport
#define OmitSnfSupport		NO
#endif
#ifndef XserverStaticFontLib
#define XserverStaticFontLib	YES
#endif
#ifndef BuildSpeedo
#define BuildSpeedo		YES
#endif
#ifndef BuildType1
#define BuildType1		YES
#endif
#ifndef BuildCID
#define BuildCID		YES
#endif
#ifndef BuildFreeType
#define BuildFreeType		NO
#endif
#ifndef BuildXTrueType
#define BuildXTrueType		NO
#endif
#ifndef BuildBuiltinFonts
#define BuildBuiltinFonts	NO
#endif
#ifndef BuildFonts
#define BuildFonts		(BuildServer | BuildFontServer)
#endif
#ifndef Build75DpiFonts
#define Build75DpiFonts		YES
#endif
#ifndef Build100DpiFonts
#define Build100DpiFonts	YES
#endif
#ifndef BuildSpeedoFonts
#define BuildSpeedoFonts	YES
#endif
#ifndef BuildType1Fonts
#define BuildType1Fonts		YES
#endif
#ifndef BuildCIDFonts
#define BuildCIDFonts		YES
#endif
#ifndef BuildTrueTypeFonts
#define BuildTrueTypeFonts	YES
#endif
#ifndef BuildBethMarduthoFonts
#define BuildBethMarduthoFonts	NO
#endif
#ifndef BuildEthiopicFonts
#define BuildEthiopicFonts	NO
#endif
#ifndef BuildCyrillicFonts
#define BuildCyrillicFonts	YES
#endif
/* Some bdf font generation details.  The scripts for this require perl. */
#ifndef TruncateUCSFonts
#define TruncateUCSFonts	HasPerl5
#endif
#ifndef MaxUCSChar
#define MaxUCSChar		0x3200
#endif
#ifndef DerivedUCSFonts
#define DerivedUCSFonts		YES
#endif
/* These primarily control generation of derived 8-bit fonts. */
#ifndef BuildUCSFonts
#define BuildUCSFonts		YES
#endif
/* Setting BuildISO8859_1Fonts to NO may result in problems. */
#ifndef BuildISO8859_1Fonts
#define BuildISO8859_1Fonts	YES
#endif
#ifndef BuildISO8859_2Fonts
#define BuildISO8859_2Fonts	YES
#endif
#ifndef BuildISO8859_3Fonts
#define BuildISO8859_3Fonts	YES
#endif
#ifndef BuildISO8859_4Fonts
#define BuildISO8859_4Fonts	YES
#endif
#ifndef BuildISO8859_5Fonts
#define BuildISO8859_5Fonts	BuildCyrillicFonts
#endif
#ifndef BuildArabicFonts
#define BuildArabicFonts	YES
#endif
#ifndef BuildISO8859_6Fonts
#define BuildISO8859_6Fonts	BuildArabicFonts
#endif
#ifndef BuildGreekFonts
#define BuildGreekFonts		YES
#endif
#ifndef BuildISO8859_7Fonts
#define BuildISO8859_7Fonts	BuildGreekFonts
#endif
#ifndef BuildHebrewFonts
#define BuildHebrewFonts	YES
#endif
#ifndef BuildISO8859_8Fonts
#define BuildISO8859_8Fonts	BuildHebrewFonts
#endif
#ifndef BuildISO8859_9Fonts
#define BuildISO8859_9Fonts	YES
#endif
#ifndef BuildISO8859_10Fonts
#define BuildISO8859_10Fonts	YES
#endif
#ifndef BuildThaiFonts
#define BuildThaiFonts		YES
#endif
#ifndef BuildISO8859_11Fonts
#define BuildISO8859_11Fonts	BuildThaiFonts
#endif
#ifndef BuildISO8859_13Fonts
#define BuildISO8859_13Fonts	YES
#endif
#ifndef BuildISO8859_14Fonts
#define BuildISO8859_14Fonts	YES
#endif
#ifndef BuildISO8859_15Fonts
#define BuildISO8859_15Fonts	YES
#endif
#ifndef BuildISO8859_16Fonts
#define BuildISO8859_16Fonts	YES
#endif
#ifndef BuildKOI8_RFonts
#define BuildKOI8_RFonts	BuildCyrillicFonts
#endif
#ifndef BuildJapaneseFonts
#define BuildJapaneseFonts	YES
#endif
#ifndef BuildJISX0201Fonts
#define BuildJISX0201Fonts	BuildJapaneseFonts
#endif
#ifndef BuildKoreanFonts
#define BuildKoreanFonts	YES
#endif
#ifndef BuildChineseFonts
#define BuildChineseFonts	YES
#endif
#ifndef MakeLocalFontDir
#define MakeLocalFontDir	YES
#endif
#ifndef BuildX11Lib
#define BuildX11Lib		BuildLibraries
#endif

#ifndef BuildLoadableXlibI18n
#define BuildLoadableXlibI18n	(HasDlopen && SharedLibX11)
#endif
#ifndef InstallXcmsTxt
#define InstallXcmsTxt		YES
#endif
/*
 * This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
 * don't have either issetugid() or getresuid(), and you need to protect
 * clients that are setgid or setuid to an id other than 0.
 */
#ifndef DisableXLocaleDirEnv
#define DisableXLocaleDirEnv	BuildLoadableXlibI18n && \
					!(HasIssetugid || HasGetresuid)
#endif
#ifndef BuildLoadableXlibXcursor
#define BuildLoadableXlibXcursor (HasDlopen && SharedLibX11)
#endif
#ifndef BuildXextLib
#define BuildXextLib		BuildLibraries
#endif
#ifndef BuildXauLib
#define BuildXauLib		(BuildLibraries || BuildLibrariesForXServers)
#endif
#define UseInstalledXauLib	(defined(UseInstalled) || !BuildXauLib)
#ifndef BuildXdmcpLib
#define BuildXdmcpLib		(BuildLibraries || BuildLibrariesForXServers)
#endif
#define UseInstalledXdmcpLib	(defined(UseInstalled) || !BuildXdmcpLib)
#ifndef BuildMITMiscExt
#define BuildMITMiscExt		YES
#endif
#ifndef BuildTestExt
#define BuildTestExt		YES
#endif
#ifndef BuildSyncExt
#define BuildSyncExt		YES
#endif
#ifndef BuildXCMiscExt
#define BuildXCMiscExt		YES
#endif
#ifndef BuildShapeExt
#define BuildShapeExt		YES
#endif
#ifndef BuildBigReqsExt
#define BuildBigReqsExt		YES
#endif
#ifndef BuildXInputExt
#define BuildXInputExt		NO
#endif
#ifndef BuildXInputLib
#define BuildXInputLib		(BuildXInputExt && \
				 BuildLibraries && \
				 (!BuildServersOnly || BuildLibrariesForDmx))
#endif
#ifndef BuildEVI
#define BuildEVI		YES
#endif
#ifndef BuildDBE
#define BuildDBE		YES
#endif
#ifndef BuildDBElib
#define BuildDBElib		BuildDBE
#endif
#ifndef BuildDIS
#define BuildDIS		NO
#endif
#ifndef BuildDPMS
#define BuildDPMS		YES
#endif
#ifndef BuildFontLib
#if !defined(XF86Server) || !XF86Server
#define BuildFontLib		(BuildLibraries || BuildServer)
#else
#define BuildFontLib		(BuildLibraries || \
				 (BuildServer && !DoLoadableServer) || \
				 XnestServer || XVirtualFramebufferServer || \
				 XprtServer || XdmxServer || \
				 (defined(TinyXServer) && TinyXServer))
#endif
#endif
#ifndef BuildFontCache
#define BuildFontCache		YES
#endif
#ifndef BuildFontCacheLib
#define BuildFontCacheLib	(BuildFontCache && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildFontEncLib
#define BuildFontEncLib		BuildLibraries
#endif
/*
 * This enables binary compatibility with the older (XFree86 <= 4.1) fontenc
 * entry points in the Xfont library (and X server).  If this is turned off,
 * then SharedFontRev should have it's major revision bumped, and the
 * XFree86 font module ABI (in xfree86/common/xf86Module.h) should have it's
 * major revision bumped.
 *
 * Note: this does not enable those older functions in the separate libfontenc
 * library (which didn't exist previously).
 */
#ifndef FontencCompatibility
#define FontencCompatibility	YES
#endif
#ifndef BuildLowMem
#define BuildLowMem		NO
#endif

#ifndef BuildTinyDIX
#if (defined(TinyXServer) && TinyXServer) && \
	!(defined(XF86Server) && XF86Server)
#define BuildTinyDIX		YES
#else
#define BuildTinyDIX		NO
#endif
#endif
#ifndef BuildSeparateTinyDIX
#if (defined(TinyXServer) && TinyXServer) && !BuildTinyDIX
#define BuildSeparateTinyDIX	YES
#else
#define BuildSeparateTinyDIX	NO
#endif
#endif
#ifndef TinyXExcludedExtensions
#define TinyXExcludedExtensions	-UXKB -UXINPUT -ULBX -UXAPPGROUP -UXCSECURITY \
				-UDPMSExtension -UPANORAMIX -UGLXEXT \
				-UXF86VIDMODE -UXF86MISC -UXFreeXDGA \
				-UXF86DRI -UEVI -UXRECORD -USCREENSAVER \
				-URES -UXV -UXPRINT -UDBE -UXTRAP -UFONTCACHE \
				-UXF86BIGFONT -UXSYNC -UTOGCUP
#endif
#ifndef TinyXFontDefines
#define TinyXFontDefines	/**/
#endif
#ifndef TinyXFontServerAccess
#define TinyXFontServerAccess	NO
#endif
#if !TinyXFontServerAccess
#define TinyXFontServerDefines	-DNOFONTSERVERACCESS
#else
#define TinyXFontServerDefines	/**/
#endif
#ifndef TinyDIXDefines
#define TinyDIXDefines		TinyXExcludedExtensions TinyXFontServerDefines
#endif

#ifndef BuildLBX
#define BuildLBX		YES
#endif
#ifndef BuildXKB
#define BuildXKB		YES
#endif
#ifndef BuildXKBlib
#define BuildXKBlib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildXKBuilib
#define BuildXKBuilib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildXKBfilelib
#define BuildXKBfilelib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildXTrap
#define BuildXTrap		YES
#endif
#ifndef BuildXTrapLibrary
#define BuildXTrapLibrary	(BuildXTrap && !BuildServersOnly && \
				 BuildLibraries)
#endif

	/*
	 * WARNING: Setting UseXKBInClients to YES cause incompatibilities
	 *          between many clients (such as xterm) and pre-XKB shared
	 *          libraries.
	 */
#ifndef UseXKBInClients
#define	UseXKBInClients		NO	/* use XKB in "normal" clients? */
#endif
#ifndef BuildMultibuffer
#define BuildMultibuffer	NO
#endif
#ifndef BuildRECORD
#define BuildRECORD		YES
#endif
#ifndef BuildRECORDlib
#define BuildRECORDlib		BuildRECORD
#endif
#ifndef BuildXinerama
#define BuildXinerama		NO
#endif
#ifndef BuildXineramaLibrary
#define BuildXineramaLibrary	(BuildXinerama && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildDmxDevelTools
#define BuildDmxDevelTools	NO
#endif
#ifndef BuildDmxLibrary
#define BuildDmxLibrary		(BuildDmx && \
				 (BuildDmxDevelTools || \
				  (!BuildServersOnly && BuildLibraries)))
#endif
#ifndef BuildXCSecurity
#define BuildXCSecurity		YES
#endif
#ifndef BuildAppgroup
#define BuildAppgroup		YES
#endif
#ifndef BuildCup
#define BuildCup		YES
#endif
#ifndef HasPlugin
#define HasPlugin		NO
#endif
#ifndef BuildPlugin
#define BuildPlugin		HasPlugin
#endif
#ifndef XprtServer
#define XprtServer		BuildServer
#endif
#ifndef BuildXprint
#if XprtServer
#define BuildXprint		YES
#else
#define BuildXprint		NO
#endif
#endif
#if BuildXprint
#ifndef XpRasterDDX
#define XpRasterDDX		YES
#endif
#ifndef XpColorPclDDX
#define XpColorPclDDX		YES
#endif
#ifndef XpMonoPclDDX
#define XpMonoPclDDX		NO
#endif
#ifndef XpPostScriptDDX
#define XpPostScriptDDX		YES
#endif
#endif
#ifndef BuildXprintLib
#define BuildXprintLib		(BuildXprint && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildScreenSaverExt
#define BuildScreenSaverExt	NO
#endif
#ifndef BuildScreenSaverLibrary
#define BuildScreenSaverLibrary	(BuildScreenSaverExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildXF86VidModeExt
#define BuildXF86VidModeExt	NO
#endif
#ifndef BuildXF86VidModeLibrary
#define BuildXF86VidModeLibrary (BuildXF86VidModeExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildXF86MiscExt
#define BuildXF86MiscExt	NO
#endif
#ifndef BuildXF86MiscLibrary
#define BuildXF86MiscLibrary	(BuildXF86MiscExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildXF86BigfontExt
#define BuildXF86BigfontExt	NO
#endif
#ifndef BuildXF86DGA
#define BuildXF86DGA		NO
#endif
#ifndef BuildXF86DGALibrary
#define BuildXF86DGALibrary	(BuildXF86DGA && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildXResExt
#define BuildXResExt            NO
#endif
#ifndef BuildXResLibrary
#define BuildXResLibrary        (BuildXResExt && \
				 (BuildDmxDevelTools || \
				  (!BuildServersOnly && BuildLibraries)))
#endif
#ifndef BuildXvExt
#define BuildXvExt		NO
#endif
#ifndef BuildXvLibrary
#define BuildXvLibrary		(BuildXvExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildXvMCExt
#define BuildXvMCExt		NO
#endif
#ifndef BuildXvMCLibrary
#define BuildXvMCLibrary	(BuildXvMCExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildGlxExt
#define BuildGlxExt		NO
#else
#if     BuildGlxExt && !defined(XFree86Version)
#undef  BuildXF86DRI
#undef  BuildXF86DRIDriverSupport
#define BuildXF86DRI			NO
#define BuildXF86DRIDriverSupport	NO
#endif
#endif
#ifndef BuildGLXLibrary
#define BuildGLXLibrary		(BuildGlxExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildGlxInDmx
#define BuildGlxInDmx		(XdmxServer && BuildGlxExt)
#endif
#ifndef BuildOSMesaLib
#define BuildOSMesaLib		BuildGlxExt
#endif
#ifndef BuildGLULibrary
#define BuildGLULibrary		(BuildGLXLibrary && BuildLibraries && \
				 HasCplusplus)
#endif
#ifndef BuildGLwLibrary
#define BuildGLwLibrary		(BuildGLXLibrary && BuildLibraries)
#endif
#ifndef BuildXF86RushExt
#define BuildXF86RushExt	NO
#endif
#ifndef BuildXF86RushLibrary
#define BuildXF86RushLibrary	(BuildXF86RushExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildDPSLibraries
#define BuildDPSLibraries	(!BuildServersOnly && BuildLibraries)
#endif
#ifndef BuildDPSLibrary
#define BuildDPSLibrary		BuildDPSLibraries
#endif
#ifndef BuildDPSTkLibrary
#define BuildDPSTkLibrary	BuildDPSLibraries
#endif
#ifndef BuildPSResLibrary
#define BuildPSResLibrary	BuildDPSLibraries
#endif
#ifndef BuildDPSClients
#define BuildDPSClients         BuildDPSLibraries
#endif
#ifndef BuildRender
#define BuildRender		YES
#endif
#ifndef BuildRenderLibrary
#define BuildRenderLibrary	(XdmxServer || \
				 (!BuildServersOnly && BuildLibraries))
#endif
#ifndef BuildXftLibrary
#define BuildXftLibrary		BuildRenderLibrary
#endif
#ifndef BuildXft1Library
#define BuildXft1Library	BuildRenderLibrary
#endif
#ifndef UseFontconfig
#define UseFontconfig		BuildXftLibrary
#endif
#ifndef BuildFontconfigLibrary
#define BuildFontconfigLibrary	(UseFontconfig && !HasFontconfig)
#endif
#ifndef UseFreetype2
#define UseFreetype2		(BuildXftLibrary || BuildXft1Library || \
				 UseFontconfig || BuildFreeType)
#endif
#ifndef HasExpat
#define HasExpat		NO
#endif
#ifndef UseExpat
#define UseExpat		(UseFontconfig || \
				 (BuildXF86DRI && BuildGLXLibrary))
#endif
#ifndef BuildExpatLibrary
#define BuildExpatLibrary	(UseExpat && !HasExpat)
#endif
#ifndef BuildFreetype2Library
#define BuildFreetype2Library	(UseFreetype2 && !HasFreetype2)
#endif
#ifndef Freetype2BuildDefines
#define Freetype2BuildDefines	/**/
#endif
#ifndef UseMkfontscaleForMkfontdir
#define UseMkfontscaleForMkfontdir	NO
#endif

#ifndef BuildRandR
#define BuildRandR		YES
#endif
#ifndef BuildRandRLibrary
#define BuildRandRLibrary	(!BuildServersOnly && BuildLibraries)
#endif

#ifndef BuildXcursorLibrary
#define BuildXcursorLibrary	BuildRenderLibrary
#endif

#ifndef BuildXcursorgen
#define BuildXcursorgen		HasLibpng
#endif

#ifndef DefaultCursorTheme
#define DefaultCursorTheme	core
#endif

#ifndef BuildAppleWMLibrary
#define BuildAppleWMLibrary	NO
#endif

#ifndef BuildWindowsWMLibrary
#define BuildWindowsWMLibrary	NO
#endif

#ifndef BuildMiscDocs
#define BuildMiscDocs		NO
#endif
#ifndef BuildSpecsDocs
#define BuildSpecsDocs		NO
#endif
#ifndef BuildAllSpecsDocs
#define BuildAllSpecsDocs	NO
#endif

#ifndef InstallHardcopyDocs
#define InstallHardcopyDocs	NO
#endif

#ifndef InstallMiscManPages
#define InstallMiscManPages	NO
#endif

#ifndef FSUseSyslog
#define FSUseSyslog		NO
#endif

#ifndef InstallLibManPages
#define InstallLibManPages	YES
#endif
#ifndef InstallXtermSetUID
#define InstallXtermSetUID	YES	/* xterm needs to be set uid */
#endif
#ifndef InstallXloadSetGID
#define InstallXloadSetGID	YES	/* xload often needs set gid kmem */
#endif
#ifndef InstallXinitConfig
#define InstallXinitConfig	NO	/* install sample xinit config */
#endif
#ifndef InstallXdmConfig
#define InstallXdmConfig	NO	/* install sample xdm config */
#endif
#ifndef XdmServersType			/* what Xservers files to use */
#if BuildServer
#define XdmServersType ws
#else
#define XdmServersType fs
#endif
#endif
#ifndef InstallFSConfig
#define InstallFSConfig		NO	/* install sample fs config */
#endif
#ifndef InstallAppDefFiles
#define InstallAppDefFiles	YES	/* install application defaults */
#endif
#ifndef UseConfDirForAppDefaults
#define UseConfDirForAppDefaults YES
#endif
#ifndef UseConfDirForXkb
#define UseConfDirForXkb	YES
#endif
#ifndef CompressAllFonts
#define CompressAllFonts	NO
#endif
#ifndef ThreadedX
#if HasPosixThreads || HasCThreads
#define ThreadedX		YES	/* multi-threaded libraries */
#else
#define ThreadedX		NO
#endif
#endif
#ifndef ThreadedProject
#define ThreadedProject ThreadedX
#endif
#ifndef BuildThreadStubLibrary
#define BuildThreadStubLibrary	NO
#endif
#ifndef NeedUIThrStubs
#define NeedUIThrStubs		NO
#endif
#ifndef HasWChar32
#define HasWChar32		SystemV4
#endif
#ifndef HasXdmAuth
#define HasXdmAuth		YES
#endif
#ifndef PrimaryScreenResolution
#define PrimaryScreenResolution 72		/* a common resolution */
#endif
#ifndef DefaultFontPath
	/*
	 * Turn off building Speedo, Type1 and CID fonts if you are building
	 * for low memory footprint
	 */
#if BuildLowMem
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
#else
#if PrimaryScreenResolution < 88		/* (75 + 100) / 2 */
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/TTF/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
#else
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/TTF/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
#endif
#endif
#endif
#ifndef DefaultFSFontPath
	/*
	 * Define a default fontpath for Font Server independent of that
         * for X server if building the X server for low memory footprint
         */
#if BuildLowMem
#if PrimaryScreenResolution < 88                /* (75 + 100) / 2 */
#define DefaultFSFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
#else
#define DefaultFSFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
#endif
#else
#define DefaultFSFontPath DefaultFontPath
#endif
#endif
#ifndef DefaultRGBDatabase
#define DefaultRGBDatabase $(LIBDIR)/rgb
#endif
#ifndef UseRgbTxt
#define UseRgbTxt		NO	/* default is to compile with dbm */
#endif
#ifndef UseMemLeak
#define UseMemLeak		NO
#endif
#ifndef SpecialMalloc
#define SpecialMalloc		NO
#endif
#ifndef UseInternalMalloc
#define UseInternalMalloc	NO
#endif
#ifndef XallocDefines
#define XallocDefines		/**/
#endif
#ifndef ServerErrorDefines
#define ServerErrorDefines	/**/
#endif
#ifndef FontCompilerFlags
#define FontCompilerFlags -t
#endif
/*
 * NOTE:  IPv6Flags could be tacked on to either ConnectionFlags or
 *        ExtraConnectionDefs.  Here, we choose the later in order to
 *        maximise exposure of the IPv6 code (a number of <OS>.def files
 *        contain ConnectionFlags overrides).  Mind you, this might not
 *        the right thing to do when HasStreams is asserted.
 */
#ifndef BuildIPv6		/* If the OS also #define's AF_INET6 */
#define BuildIPv6		YES
#endif
#ifndef IPv6Flags
#if BuildIPv6
#define IPv6Flags -DIPv6
#else
#define IPv6Flags /**/
#endif
#endif
/*
 * Assume by default that IPv6 sockets also listen for IPv4 connections.
 * XDMCP support currently only works for both IPv4 and IPv6 when this is
 * true.
 */
#ifndef IPv6SocketsAlsoIPv4
#define IPv6SocketsAlsoIPv4	YES
#endif
#ifndef DECnetFlags
#if HasDECnet
#define DECnetFlags -DDNETCONN
#else
#define DECnetFlags
#endif
#endif
#ifndef ConnectionFlags
#if HasStreams
#define ConnectionFlags -DSTREAMSCONN
#else
#define ConnectionFlags -DTCPCONN -DUNIXCONN DECnetFlags
#endif
#endif
#if HasStickyDirBit
STICKY_DEFINES = -DHAS_STICKY_DIR_BIT
#endif
#if HasFchown
FCHOWN_DEFINES = -DHAS_FCHOWN
#endif
#ifndef ExtraConnectionDefs
#define ExtraConnectionDefs $(STICKY_DEFINES) $(FCHOWN_DEFINES) IPv6Flags
#endif
#ifndef ProjectThreadsDefines
#define ProjectThreadsDefines -DXTHREADS
#endif
#ifndef FontOSDefines
#define FontOSDefines /**/
#endif
#ifndef FontDefines
#define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
#endif
#ifndef XawI18nDefines
#if SystemV4
#define XawI18nDefines -DHAS_WCTYPE_H
#else
#define XawI18nDefines -DUSE_XWCHAR_STRING
#endif
#endif
#if Malloc0ReturnsNull
#ifndef XMalloc0ReturnsNullDefines
#define XMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines
#endif
#ifndef XtMalloc0ReturnsNullDefines
#define XtMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines -DXTMALLOC_BC
#endif
#endif
#ifndef ExtensionOSDefines
#define ExtensionOSDefines /**/
#endif

#ifndef ExtensionDefines
#ifndef MITMiscDefines
#if BuildMITMiscExt
#define MITMiscDefines -DMITMISC
#else
#define MITMiscDefines /**/
#endif
#endif
#ifndef XTestDefines
#if BuildTestExt
#define XTestDefines -DXTEST
#else
#define XTestDefines /**/
#endif
#endif
#ifndef XTrapDefines
#if BuildXTrap
#define XTrapDefines -DXTRAP
#else
#define XTrapDefines /**/
#endif
#endif
#ifndef XSyncDefines
#if BuildSyncExt
#define XSyncDefines -DXSYNC
#else
#define XSyncDefines /**/
#endif
#endif
#ifndef XCMiscDefines
#if BuildXCMiscExt
#define XCMiscDefines -DXCMISC
#else
#define XCMiscDefines /**/
#endif
#endif
#ifndef ShapeDefines
#if BuildShapeExt
#define ShapeDefines -DSHAPE
#else
#define ShapeDefines /**/
#endif
#endif
#ifndef GlxDefines
#if BuildGlxExt
#ifdef GlxExtraDefines
#define GlxDefines -DGLXEXT GlxExtraDefines
#else
#define GlxDefines -DGLXEXT
#endif
#else
#define GlxDefines /**/
#endif
#endif
#ifndef DRMIncludesDir
#define DRMIncludesDir $(XF86OSSRC)/shared/drm/kernel
#endif
#ifndef MesaSrcDir
#define MesaSrcDir $(TOP)/extras/Mesa
#endif
#ifndef OglSampleSrcDir
#define OglSampleSrcDir $(TOP)/extras/ogl-sample
#endif
#ifndef ShmDefines
#if HasShm
#define ShmDefines -DMITSHM
#else
#define ShmDefines /**/
#endif
#endif
#ifndef XInputDefines
#if BuildXInputExt
#define XInputDefines -DXINPUT
#else
#define XInputDefines /**/
#endif
#endif
#ifndef XineramaDefines
#if BuildXinerama
#define XineramaDefines -DPANORAMIX
#else
#define XineramaDefines /**/
#endif
#endif
#ifndef PrintOnlyServer
#define PrintOnlyServer YES
#endif
#ifndef XprintDefines
#if BuildXprint
#if PrintOnlyServer
#define XprintDefines -DPIXPRIV
#else
#define XprintDefines -DXPRINT -DPIXPRIV
#endif
#else
#define XprintDefines /**/
#endif
#endif
#ifndef XkbDefines
#if BuildXKB
#define XkbDefines -DXKB
#else
#define XkbDefines /**/
#endif
#endif
#ifndef XkbClientDefines
#if UseXKBInClients
#define XkbClientDefines -DXKB
#else
#define XkbClientDefines /**/
#endif
#endif
#ifndef XkbServerDefines
#define XkbServerDefines /**/
#endif
#ifndef LbxDefines
#if BuildLBX
#define LbxDefines -DLBX
#else
#define LbxDefines /**/
#endif
#endif
#ifndef BigReqDefines
#if BuildBigReqsExt
#define BigReqDefines -DBIGREQS
#else
#define BigReqDefines /**/
#endif
#endif

#ifndef EVIDefines
#if BuildEVI
#define EVIDefines -DEVI
#else
#define EVIDefines /**/
#endif
#endif

#ifndef DBEDefines
#if BuildDBE
#define DBEDefines -DDBE
#else
#define DBEDefines /**/
#endif
#endif

#ifndef PervasiveDBEDefines
#define PervasiveDBEDefines /* -DNEED_DBE_BUF_BITS -DNEED_DBE_BUF_VALIDATE */
#endif

#ifndef MultibufferDefines
#if BuildMultibuffer
#define MultibufferDefines -DMULTIBUFFER
#else
#define MultibufferDefines /**/
#endif
#endif

#ifndef ScreenSaverExtensionDefines
#if BuildScreenSaverExt
#define ScreenSaverExtensionDefines -DSCREENSAVER
#else
#define ScreenSaverExtensionDefines /**/
#endif
#endif
#ifndef VidModeExtensionDefines
#if BuildXF86VidModeExt
#define VidModeExtensionDefines -DXF86VIDMODE
#else
#define VidModeExtensionDefines /**/
#endif
#endif
#ifndef XF86MiscExtensionDefines
#if BuildXF86MiscExt
#define XF86MiscExtensionDefines -DXF86MISC
#else
#define XF86MiscExtensionDefines /**/
#endif
#endif

#ifndef XF86BigfontExtensionDefines
#if BuildXF86BigfontExt
#define XF86BigfontExtensionDefines -DXF86BIGFONT
#else
#define XF86BigfontExtensionDefines /**/
#endif
#endif

#ifndef XvExtensionDefines
#if BuildXvExt
#define XvExtensionDefines -DXV
#else
#define XvExtensionDefines /**/
#endif
#endif

#ifndef XvMCExtensionDefines
#if BuildXvMCExt
#define XvMCExtensionDefines -DXVMC
#else
#define XvMCExtensionDefines /**/
#endif
#endif

#ifndef XResExtensionDefines
#if BuildXResExt
#define XResExtensionDefines -DRES
#else
#define XResExtensionDefines /**/
#endif
#endif

#ifndef RECORDDefines
#if BuildRECORD
#define RECORDDefines -DXRECORD
#else
#define RECORDDefines /**/
#endif
#endif

#ifndef AppgroupDefines
#if BuildAppgroup
#define AppgroupDefines -DXAPPGROUP
#else
#define AppgroupDefines /**/
#endif
#endif

#ifndef XCSecurityDefines
#if BuildXCSecurity
#define XCSecurityDefines -DXCSECURITY
#else
#define XCSecurityDefines /**/
#endif
#endif

#ifndef CupDefines
#if BuildCup
#define CupDefines -DTOGCUP
#else
#define CupDefines /**/
#endif
#endif

#ifndef LowMemDefines
#if BuildLowMem
#define LowMemDefines -DLOWMEMFTPT
#else
#define LowMemDefines /**/
#endif
#endif

#ifndef DPMSDefines
#if BuildDPMS
#define DPMSDefines -DDPMSExtension
#else
#define DPMSDefines /**/
#endif
#endif

#ifndef RenderDefines
#if BuildRender
#define RenderDefines -DRENDER
#else
#define RenderDefines /**/
#endif
#endif

#ifndef RandRDefines
#if BuildRandR
#define RandRDefines -DRANDR
#else
#define RandRDefines /**/
#endif
#endif

#ifndef FontCacheExtentionDefines
#if BuildFontCache
#define FontCacheExtensionDefines	-DFONTCACHE
#else
#define FontCacheExtensionDefines	/**/
#endif
#endif

#ifndef SitePervasiveExtensionDefines
#define SitePervasiveExtensionDefines /**/
#endif
#ifndef PervasiveExtensionDefines
#define PervasiveExtensionDefines \
	ShapeDefines XInputDefines XkbDefines LbxDefines AppgroupDefines \
	XCSecurityDefines CupDefines PervasiveDBEDefines \
	XF86BigfontExtensionDefines DPMSDefines \
	LowMemDefines XprintDefines XineramaDefines \
	SitePervasiveExtensionDefines RenderDefines RandRDefines
#endif
#ifndef SiteExtensionDefines
#define SiteExtensionDefines /**/
#endif
#ifndef BaseExtensionDefines
#define BaseExtensionDefines \
	MultibufferDefines MITMiscDefines XTestDefines XTrapDefines \
	XSyncDefines XCMiscDefines RECORDDefines \
	ShmDefines BigReqDefines VidModeExtensionDefines \
	XF86MiscExtensionDefines DBEDefines DPMSDefines EVIDefines \
	ScreenSaverExtensionDefines XvExtensionDefines XvMCExtensionDefines \
	GlxDefines FontCacheExtensionDefines SiteExtensionDefines \
        XResExtensionDefines
#endif
#define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
#endif /* ExtensionDefines */

#ifndef HasStrcasecmp
#define HasStrcasecmp YES
#endif

#ifndef StrcasecmpDefines
# if HasStrcasecmp
#  define StrcasecmpDefines /**/
# else
#  define StrcasecmpDefines -DNEED_STRCASECMP
# endif
#endif

#ifndef HasDevRandom
#define HasDevRandom NO
#endif

#ifndef HasArc4Random
#define HasArc4Random NO
#endif

#ifndef RandomDefines
# if HasDevRandom
#  ifndef RandomDeviceFile
#   define RandomDeviceFile /dev/random
#  endif
#  ifndef ExtraRandomDefines
#   ifdef PollDevRandom /* Set if can poll() /dev/random to avoid blocking */
#    define ExtraRandomDefines -DPOLL_DEV_RANDOM
#   else
#    define ExtraRandomDefines /**/
#   endif
#  endif
#  define RandomDefines -DDEV_RANDOM=\"RandomDeviceFile\" ExtraRandomDefines
# elif HasArc4Random
#  define RandomDefines -DARC4_RANDOM
# else
#  define RandomDefines /**/
# endif
#endif

#ifndef PreferXdmcpIPv6
#define PreferXdmcpIPv6 NO
#endif
#ifndef ServerXdmcpIPv6Defines
#if BuildIPv6 && !IPv6SocketsAlsoIPv4 && !PreferXdmcpIPv6
#define ServerXdmcpIPv6Defines -DXDMCP_NO_IPV6
#else
#define ServerXdmcpIPv6Defines /**/
#endif
#endif

#ifndef ServerXdmcpDefines
#define ServerXdmcpDefines -DXDMCP ServerXdmcpIPv6Defines
#endif
#ifndef ServerOSDefines
#define ServerOSDefines /**/
#endif
#if HasKrbIV
#ifndef KrbIVDefines
#define KrbIVDefines -DKERBEROS
#endif
#else
#define KrbIVDefines /**/
#endif
#if HasKrb5
#ifndef Krb5Defines
#define Krb5Defines -DK5AUTH
#endif
#else
#define Krb5Defines /**/
#endif
#ifndef ServerExtraDefines
#define ServerExtraDefines /* -DPIXPRIV */
#endif
#ifndef ServerAssertDefines
#define ServerAssertDefines -DNDEBUG
#endif
#ifndef ServerSnprintfDefines
#if !HasSnprintf
#define ServerSnprintfDefines -DNEED_SNPRINTF
#else
#define ServerSnprintfDefines /**/
#endif
#endif
#ifndef ServerStrlcatDefines
#if !HasStrlcat
#define ServerStrlcatDefines -DNEED_STRLCAT
#else
#define ServerStrlcatDefines /**/
#endif
#endif
#ifndef ServerDefines
#define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines ServerSnprintfDefines ServerStrlcatDefines
#endif

#ifndef MesaUseX86Asm
/* The current Mesa X86 ASM code doesn't work well with SVR4 shared libs. */
# if HasX86Support && !SystemV4
#  define MesaUseX86Asm YES
# else
#  define MesaUseX86Asm NO
# endif
#endif

#ifndef MesaUseMMX
#ifdef HasMMXSupport
#define MesaUseMMX HasMMXSupport
#else
#define MesaUseMMX NO
#endif
#endif

#ifndef MesaUse3DNow
#ifdef Has3DNowSupport
#define MesaUse3DNow Has3DNowSupport
#else
#define MesaUse3DNow NO
#endif
#endif

#ifndef MesaUseSSE
#ifdef HasSSESupport
#define MesaUseSSE HasSSESupport
#else
#define MesaUseSSE NO
#endif
#endif

/* For compatibility */
#ifdef HasSSESupport
#undef HasKatmaiSupport
#define HasKatmaiSupport HasSSESupport
#endif
#undef MesaUseKatmai
#define MesaUseKatmai MesaUseSSE

#ifndef UsbMouseSupport
# define UsbMouseSupport NO
#endif

#ifndef DefaultFSConfigFile
#define DefaultFSConfigFile $(LIBDIR)/fs/config
#endif

/* X-TrueType settings */
#ifndef HasBlindFaithInUnicode
#define HasBlindFaithInUnicode YES
#endif
#ifndef XTrueTypeCConvModule
#if DoLoadableServer
#define XTrueTypeCConvModule YES
#else
#define XTrueTypeCConvModule NO
#endif
#endif
#ifndef XTrueTypeUseOptEncodings
#define XTrueTypeUseOptEncodings YES
#endif
#ifndef XTrueTypeCConvIncDir
#define XTrueTypeCConvIncDir $(INCROOT)/X11/fonts/codeconv
#endif
#ifndef XTrueTypeInstallCConvHeaders
#define XTrueTypeInstallCConvHeaders BuildLibraries
#endif
#ifndef XTrueTypeCConvModuleDir
#define XTrueTypeCConvModuleDir $(USRLIBDIR)/modules
#endif
#ifndef XTrueTypeCConvModuleSubDir
#define XTrueTypeCConvModuleSubDir codeconv
#endif
#ifndef XTrueTypeDebugXTT
#define XTrueTypeDebugXTT NO
#endif
#ifndef XTrueTypeStandAloneCConv
#define XTrueTypeStandAloneCConv NO
#endif
#ifndef XTrueTypeSrcDir
#define XTrueTypeSrcDir $(TOP)/extras/X-TrueType
#endif
#ifndef FreeTypeSrcDir
#define FreeTypeSrcDir $(TOP)/extras/FreeType
#endif

#ifndef BinDir
#ifdef ProjectRoot
#define BinDir Concat(ProjectRoot,/bin)
#else
#define BinDir /usr/bin/X11
#endif
#endif
#ifndef BuildIncRoot
#define BuildIncRoot $(TOP)/exports
#endif
#ifndef BuildIncDir
#define BuildIncDir $(BUILDINCROOT)/include
#endif
#ifndef BuildIncTop
#define BuildIncTop ../..	/* relative to BuildIncDir */
#endif
#ifndef XTop
# if ImportX11
#  define XTop $(TOP)/imports/x11
# else
#  define XTop $(TOP)
# endif
#endif
#ifndef XBuildIncRoot
# if ImportX11
#  define XBuildIncRoot	$(XTOP)
# else
#  define XBuildIncRoot	$(XTOP)/exports
# endif
#endif
#ifndef XBuildIncDir
# define XBuildIncDir	$(XBUILDINCROOT)/include/X11
#endif
#ifndef XBuildIncTop
# define XBuildIncTop	../../..
#endif
#ifndef XBuildBinDir
# define XBuildBinDir	$(XBUILDINCROOT)/bin
#endif
#ifndef BuildBinDir
#define BuildBinDir $(TOP)/exports/bin
#endif
#ifndef BuildBinTop
#define BuildBinTop ../..	/* relative to BuildBinDir */
#endif
#ifndef BuildLibDir
#define BuildLibDir $(TOP)/exports/lib
#endif
#ifndef BuildLibTop
#define BuildLibTop ../..	/* relative to BuildLibDir */
#endif
#ifndef BuildModuleDir
#define BuildModuleDir $(BUILDLIBDIR)/modules
#endif
#ifndef BuildModuleTop
#define BuildModuleTop $(BUILDLIBTOP)/..
#endif
#ifndef LibDir
# ifdef ProjectRoot
#  define LibDir Concat(ProjectRoot,/lib/X11)
# else
#  define LibDir /usr/lib/X11
# endif
#endif
#ifndef ModuleDir
#define ModuleDir $(USRLIBDIR)/modules
#endif
#ifndef InstSrcDir
#define InstSrcDir Concat(ProjectRoot,/src)
#endif
#ifndef LibexecDir
#ifdef ProjectRoot
#define LibexecDir Concat(ProjectRoot,/libexec)
#else
#define LibexecDir /usr/X11/libexec
#endif
#endif
#ifndef ConfigDir
#define ConfigDir $(LIBDIR)/config
#endif
#ifndef DocDir
#define DocDir $(LIBDIR)/doc
#endif
#ifndef DocHtmlDir
#define DocHtmlDir $(DOCDIR)/html
#endif
#ifndef DocPsDir
#define DocPsDir $(DOCDIR)/PostScript
#endif
#ifndef DocPdfDir
#define DocPdfDir $(DOCDIR)/PDF
#endif
#ifndef FontDir
#define FontDir $(LIBDIR)/fonts
#endif
#ifndef AdmDir
#define AdmDir /usr/adm
#endif
#ifndef XinitDir
#define XinitDir $(LIBDIR)/xinit
#endif
#ifndef XdmDir
#define XdmDir $(LIBDIR)/xdm
#endif
#ifndef XdmVarDir
#define XdmVarDir $(VARLIBDIR)/xdm
#endif
#ifndef XdmAuthDir
#define XdmAuthDir $(LIBDIR)/xdm
#endif
#ifndef XdmConfigurationSubdirectory		/* under xdm sources */
#define XdmConfigurationSubdirectory config
#endif
#ifndef TwmDir
#define TwmDir $(LIBDIR)/twm
#endif
#ifndef XsmDir
#define XsmDir $(LIBDIR)/xsm
#endif
#ifndef NlsDir
#define NlsDir $(LIBDIR)/nls
#endif
#ifndef XLocaleDir
#define XLocaleDir $(LIBDIR)/locale
#endif
#ifndef LbxproxyDir
#define LbxproxyDir $(LIBDIR)/lbxproxy
#endif
#ifndef LbxproxyConfigSubdir		/* under lbxproxy sources */
#define LbxproxyConfigSubdir config
#endif
#ifndef ProxyManagerDir
#define ProxyManagerDir $(LIBDIR)/proxymngr
#endif
#ifndef ServerConfigDir
#define ServerConfigDir $(LIBDIR)/xserver
#endif
#ifndef XPrintDir
#define XPrintDir ServerConfigDir
#endif
#ifndef EtcX11Directory
#define EtcX11Directory /etc/X11
#endif
#ifndef InstallSecurityConfig
#define InstallSecurityConfig YES	/* Install sample security policy */
#endif
#ifndef XFileSearchPathBase
/* avoid SCCS keyword */
#define XFileSearchPathBase Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
#endif
#ifndef XFileSearchPathDefault
#ifdef XAppLoadDir
/* avoid SCCS keyword */
#define XFileSearchPathDefault XAppLoadDir/Concat(%N%C,%S):XAppLoadDir/%N%S:XFileSearchPathBase
#else
#define XFileSearchPathDefault XFileSearchPathBase
#endif
#endif
#ifndef XAppLoadDir
#define XAppLoadDir $(LIBDIR)/app-defaults
#endif
#ifndef XtErrorPrefix
#define XtErrorPrefix /* as empty string */
#endif
#ifndef XtExtraDefines
#define XtExtraDefines /* as empty string */
#endif
#ifndef XtWarningPrefix
#define XtWarningPrefix /* as empty string */
#endif
#ifndef OsNameDefines
#define OsNameDefines /* as nothing */
#endif
#ifndef DefaultUserPath			/* for xdm */
#define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
#endif
#ifndef DefaultSystemPath		/* for xdm */
#define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
#endif
#ifndef DefaultSystemShell		/* for xdm to set in SHELL */
#define DefaultSystemShell BourneShell
#endif
#ifndef ContribDir
#define ContribDir $(XTOP)/../contrib	/* contrib is outside core tree */
#endif
#ifndef UnsupportedDir
#define UnsupportedDir $(XTOP)/unsupported
#endif
#ifndef AllocateLocalDefines
#define AllocateLocalDefines /**/
#endif

#ifndef ForceNormalLib
#define ForceNormalLib (HasGcc && !HasGcc2)
#endif

#ifndef XkbComp
#define XkbComp xkbcomp
#endif

#ifndef PsWrap
#define PsWrap $(PSWRAPSRC)/pswrap
#endif

#ifndef ResourceConfigurationManagement
#define ResourceConfigurationManagement YES
#endif

#ifndef XtPopdownConformance
#define XtPopdownConformance YES
#endif

XCOMM -----------------------------------------------------------------------
XCOMM X Window System make variables; these need to be coordinated with rules

/*
 * This list must be reflected in the DIRS_TO_BUILD list in the top-level
 * Makefile.
 */
             XTOP = XTop
           BINDIR = BinDir		/* programs */
     BUILDINCROOT = BuildIncRoot	/* base of build loc */
      BUILDINCDIR = BuildIncDir		/* built headers */
      BUILDINCTOP = BuildIncTop		/* top relative to BUILDINCDIR */
      BUILDLIBDIR = BuildLibDir		/* built libraries */
      BUILDLIBTOP = BuildLibTop		/* top relative to BUILDLIBDIR */
      BUILDBINDIR = BuildBinDir		/* built binaries */
      BUILDBINTOP = BuildBinTop		/* top relative to BUILDBINDIR */
   BUILDMODULEDIR = BuildModuleDir	/* built server modules */
   BUILDMODULETOP = BuildModuleTop	/* top relative to BUILDMODULEDIR */
    XBUILDINCROOT = XBuildIncRoot	/* base of X build loc */
     XBUILDINCDIR = XBuildIncDir
     XBUILDINCTOP = XBuildIncTop
     XBUILDBINDIR = XBuildBinDir
           INCDIR = $(INCROOT)		/* header files */
           ADMDIR = AdmDir		/* server log files */
           LIBDIR = LibDir		/* rgb, XErrorDB, etc. */
       LIBEXECDIR = LibexecDir
        MODULEDIR = ModuleDir
   TOP_X_INCLUDES = TopXInclude

       INSTSRCDIR = InstSrcDir		/* Installed source (kernel modules). */

#ifdef EtcX11Directory
        ETCX11DIR = EtcX11Directory
#endif
#if UseEtcX11
          CONFDIR = $(ETCX11DIR)
#elif HasVarDirectory
          CONFDIR = $(VARDIR)
#endif
           DOCDIR = DocDir
       DOCHTMLDIR = DocHtmlDir
         DOCPSDIR = DocPsDir
        DOCPDFDIR = DocPdfDir
          FONTDIR = FontDir		/* font directories */
     ENCODINGSDIR = $(FONTDIR)/encodings /* font encodings directory */
         XINITDIR = XinitDir		/* xinit config files */
           XDMDIR = XdmDir		/* xdm config files */
        XDMVARDIR = XdmVarDir		/* xdm config files */
           TWMDIR = TwmDir		/* twm config files */
           XSMDIR = XsmDir		/* xsm config files */
           NLSDIR = NlsDir		/* nls files */
       XLOCALEDIR = XLocaleDir		/* locale files */
      LBXPROXYDIR = LbxproxyDir		/* lbxproxy files */
  PROXYMANAGERDIR = ProxyManagerDir	/* proxy manager config files */
        XPRINTDIR = XPrintDir		/* print config file root */
      XAPPLOADDIR = XAppLoadDir		/* application default resource dir */
       FONTCFLAGS = FontCompilerFlags

     INSTAPPFLAGS = $(INSTDATFLAGS)	/* XXX - this should go away - XXX */

#if UseInstalledX11
              RGB = $(BINDIR)/rgb
            FONTC = $(BINDIR)/bdftopcf
      MKFONTSCALE = $(BINDIR)/mkfontscale
        MKFONTDIR = $(BINDIR)/mkfontdir
      MKHTMLINDEX = $(BINDIR)/mkhtmlindex
          UCS2ANY = $(BINDIR)/ProgramTargetName(ucs2any)
      BDFTRUNCATE = $(BINDIR)/bdftruncate
     UCSMAPPREFIX = $(FONTDIR)/util/map-
       XCURSORGEN = $(BINDIR)/xcursorgen
#else
              RGB = $(CLIENTENVSETUP) $(XBUILDBINDIR)/rgb
# if !CrossCompiling
            FONTC = $(CLIENTENVSETUP) $(PRELOADFONTSETUP) $(XBUILDBINDIR)/bdftopcf
      MKFONTSCALE = $(CLIENTENVSETUP) $(PRELOADFREETYPESETUP) $(XBUILDBINDIR)/mkfontscale
#if UseMkfontscaleForMkfontdir
        MKFONTDIR = $(MKFONTSCALE) -b -s -l
#else
        MKFONTDIR = $(CLIENTENVSETUP) $(PRELOADFONTSETUP) $(XBUILDBINDIR)/mkfontdir
#endif
       XCURSORGEN = $(CLIENTENVSETUP) $(PRELOADSETUP) $(XBUILDBINDIR)/xcursorgen
# elif UseInstalledOnCrossCompile
        MKFONTDIR = $(BINDIR)/mkfontdir
      MKFONTSCALE = $(BINDIR)/mkfontscale
            FONTC = $(BINDIR)/bdftopcf
       XCURSORGEN = $(BINDIR)/xcursorgen
# endif
# if HasPerl
      MKHTMLINDEX = RunPerlScript($(CONFIGSRC)/util/mkhtmlindex.pl,)
# else
      MKHTMLINDEX = $(SHELL) $(CONFIGSRC)/util/mkhtmlindex.sh
# endif
          UCS2ANY = $(XBUILDBINDIR)/ProgramTargetName(ucs2any)
      BDFTRUNCATE = $(FONTSRC)/util/bdftruncate.pl
     UCSMAPPREFIX = $(FONTSRC)/util/map-
#endif

     HTMLINDEXCMD = HtmlIndexCmd

       DOCUTILSRC = $(XTOP)/doc/util
        CLIENTSRC = $(TOP)/clients
          DEMOSRC = $(TOP)/demos
       XDOCMACROS = $(DOCUTILSRC)/macros.t
       XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
       PROGRAMSRC = $(TOP)/programs
           LIBSRC = $(XTOP)/lib
          FONTSRC = $(XTOP)/fonts
     ENCODINGSSRC = $(FONTSRC)/encodings
       INCLUDESRC = BuildIncDir
      XINCLUDESRC = $(INCLUDESRC)/X11
        SERVERSRC = $(XTOP)/programs/Xserver
       CONTRIBSRC = ContribDir
   UNSUPPORTEDSRC = UnsupportedDir
           DOCSRC = $(XTOP)/doc
           RGBSRC = $(XTOP)/programs/rgb
      BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
     MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
    FONTSERVERSRC = $(PROGRAMSRC)/xfs
       FONTINCSRC = $(XTOP)/include/fonts
        EXTINCSRC = $(XTOP)/include/extensions
      FTSOURCEDIR = FreeTypeSrcDir
     XTTSOURCEDIR = XTrueTypeSrcDir
       MESASRCDIR = MesaSrcDir
   DRMINCLUDESDIR = DRMIncludesDir
  OGLSAMPLESRCDIR = OglSampleSrcDir
        PSWRAPSRC = $(XTOP)/config/pswrap
     TRANSCOMMSRC = $(LIBSRC)/xtrans
   TRANS_INCLUDES = -I$(TRANSCOMMSRC)
 CONNECTION_FLAGS = ConnectionFlags ExtraConnectionDefs
#ifdef X11ProjectRoot
     XPROJECTROOT = X11ProjectRoot
#endif

    VENDORMANDEFS = VendorManDefs

#if HasSharedLibraries
#ifndef DontUseLibPathVar
#ifndef BuildLibPathVar
#define BuildLibPathVar LD_LIBRARY_PATH
#endif
#endif
#endif
#ifdef BuildLibPathVar
# ifdef SystemBuildLibPath
  SYSTEMENVLIBDIR = SystemBuildLibPath
# endif
       XENVLIBDIR = X11BuildLibPath
   CLIENTENVSETUP = Concat3(BuildLibPathVar,=,BuildLibPath)
#else
   CLIENTENVSETUP =
#endif

#ifdef PreloadSetup
     PRELOADSETUP = PreloadSetup
#endif
#ifdef PreloadFontSetup
 PRELOADFONTSETUP = PreloadFontSetup
#endif
#ifdef PreloadFreetypeSetup
 PRELOADFREETYPESETUP = PreloadFreetypeSetup
#endif
#ifdef PreloadXFTSetup
     PRELOADXFTSETUP = PreloadXFTSetup
#endif

#ifndef ShLibIncludeFile
/* need this to make ANSI-style preprocessors happy */
#define ShLibIncludeFile <noop.rules>
#endif

#include ShLibIncludeFile

#ifndef XBuildLibDir
# define XBuildLibDir	BuildLibDir
#endif

#ifndef NeedLibInsideFlag
#define NeedLibInsideFlag	NO
#endif

#ifndef SharedLibX11
#define SharedLibX11 HasSharedLibraries
#endif
#ifndef ExtraLibX11
#define ExtraLibX11 SharedLibX11
#endif
#ifndef NormalLibX11
#define NormalLibX11 (!SharedLibX11 | ForceNormalLib)
#endif
#ifndef DebugLibX11
#define DebugLibX11		NO	/* debugged X library */
#endif
#ifndef ProfileLibX11
#define ProfileLibX11		NO	/* profiled X library */
#endif
          XLIBSRC = $(LIBSRC)/X11
#if SharedLibX11
#ifndef SharedX11Rev
#define SharedX11Rev 6.2
#endif
SharedLibReferences(XONLY,X11,$(XLIBSRC),SOXLIBREV,SharedX11Rev)
#else
ProjectUnsharedLibReferences(XONLY,X11,$(XLIBSRC),XBuildLibDir)
#endif
      /* Common alternate spellings */
      DEPXLIBONLY = $(DEPXONLYLIB)
         XLIBONLY = $(XONLYLIB)

#if BuildThreadStubLibrary
#ifndef SharedLibXThrStub
#define SharedLibXThrStub	YES
#endif
#ifndef ExtraLibXThrStub
#define ExtraLibXThrStub	SharedLibXThrStub
#endif
#ifndef NormalLibXThrStub
#define NormalLibXThrStub	NO
#endif
#ifndef DebugLibXThrStub
#define DebugLibXThrStub	NO
#endif
#ifndef ProfileLibXThrStub
#define ProfileLibXThrStub	NO
#endif
   XTHRSTUBLIBSRC = $(LIBSRC)/XThrStub
#if SharedLibXThrStub
#ifndef SharedXThrStubRev
#define SharedXThrStubRev 6.1
#endif
SharedLibReferences(XTHRSTUB,XThrStub,$(XTHRSTUBLIBSRC),SOXTHRSTUBREV,SharedXThrStubRev)
#else
ProjectUnsharedLibReferences(XTHRSTUB,XThrStub,$(XTHRSTUBSRC),XBuildLibDir)
#endif
#else
#undef  SharedLibXThrStub
#define SharedLibXThrStub	NO
#undef  ExtraLibXThrStub
#define ExtraLibXThrStub	NO
#undef  NormalLibXThrStub
#define NormalLibXThrStub	NO
#undef  DebugLibXThrStub
#define DebugLibXThrStub	NO
#undef  ProfileLibXThrStub
#define ProfileLibXThrStub	NO
#endif

#if BuildScreenSaverLibrary
#ifndef SharedLibXss
#define SharedLibXss	HasSharedLibraries
#endif
#ifndef ExtraLibXss
#define ExtraLibXss	SharedLibXss
#endif
#ifndef NormalLibXss
#define NormalLibXss	(!SharedLibXss || ForceNormalLib)
#endif
#ifndef DebugLibXss
#define DebugLibXss	NO
#endif
#ifndef ProfileLibXss
#define ProfileLibXss	NO
#endif
#else
#undef  SharedLibXss
#define SharedLibXss	NO
#undef  ExtraLibXss
#define ExtraLibXss	NO
#undef  NormalLibXss
#define NormalLibXss	NO
#undef  DebugLibXss
#define DebugLibXss	NO
#undef  ProfileLibXss
#define ProfileLibXss	NO
#endif

#if BuildXF86MiscLibrary
#ifndef SharedLibXxf86misc
#define SharedLibXxf86misc	HasSharedLibraries
#endif
#ifndef ExtraLibXxf86misc
#define ExtraLibXxf86misc	SharedLibXxf86misc
#endif
#ifndef NormalLibXxf86misc
#define NormalLibXxf86misc	(!SharedLibXxf86misc || ForceNormalLib)
#endif
#ifndef DebugLibXxf86misc
#define DebugLibXxf86misc	NO
#endif
#ifndef ProfileLibXxf86misc
#define ProfileLibXxf86misc	NO
#endif
#else
#undef  SharedLibXxf86misc
#define SharedLibXxf86misc	NO
#undef  ExtraLibXxf86misc
#define ExtraLibXxf86misc	NO
#undef  NormalLibXxf86misc
#define NormalLibXxf86misc	NO
#undef  DebugLibXxf86misc
#define DebugLibXxf86misc	NO
#undef  ProfileLibXxf86misc
#define ProfileLibXxf86misc	NO
#endif

#if BuildXF86VidModeLibrary
#ifndef SharedLibXxf86vm
#define SharedLibXxf86vm	HasSharedLibraries
#endif
#ifndef ExtraLibXxf86vm
#define ExtraLibXxf86vm		SharedLibXxf86vm
#endif
#ifndef NormalLibXxf86vm
#define NormalLibXxf86vm	(!SharedLibXxf86vm || ForceNormalLib)
#endif
#ifndef DebugLibXxf86vm
#define DebugLibXxf86vm		NO
#endif
#ifndef ProfileLibXxf86vm
#define ProfileLibXxf86vm	NO
#endif
#else
#undef  SharedLibXxf86vm
#define SharedLibXxf86vm	NO
#undef  ExtraLibXxf86vm
#define ExtraLibXxf86vm	NO
#undef  NormalLibXxf86vm
#define NormalLibXxf86vm	NO
#undef  DebugLibXxf86vm
#define DebugLibXxf86vm		NO
#undef  ProfileLibXxf86vm
#define ProfileLibXxf86vm	NO
#endif

#if BuildXF86DGALibrary
#ifndef SharedLibXxf86dga
#define SharedLibXxf86dga	HasSharedLibraries
#endif
#ifndef ExtraLibXxf86dga
#define ExtraLibXxf86dga	SharedLibXxf86dga
#endif
#ifndef NormalLibXxf86dga
#define NormalLibXxf86dga	(!SharedLibXxf86dga || ForceNormalLib)
#endif
#ifndef DebugLibXxf86dga
#define DebugLibXxf86dga	NO
#endif
#ifndef ProfileLibXxf86dga
#define ProfileLibXxf86dga	NO
#endif
#else
#undef  SharedLibXxf86dga
#define SharedLibXxf86dga	NO
#undef  ExtraLibXxf86dga
#define ExtraLibXxf86dga	NO
#undef  NormalLibXxf86dga
#define NormalLibXxf86dga	NO
#undef  DebugLibXxf86dga
#define DebugLibXxf86dga	NO
#undef  ProfileLibXxf86dga
#define ProfileLibXxf86dga	NO
#endif

#if BuildXF86RushLibrary
#ifndef SharedLibXxf86rush
#define SharedLibXxf86rush	HasSharedLibraries
#endif
#ifndef ExtraLibXxf86rush
#define ExtraLibXxf86rush	SharedLibXxf86rush
#endif
#ifndef NormalLibXxf86rush
#define NormalLibXxf86rush	(!SharedLibXxf86rush || ForceNormalLib)
#endif
#ifndef DebugLibXxf86rush
#define DebugLibXxf86rush	NO
#endif
#ifndef ProfileLibXxf86rush
#define ProfileLibXxf86rush	NO
#endif
#else
#undef  SharedLibXxf86rush
#define SharedLibXxf86rush	NO
#undef  ExtraLibXxf86rush
#define ExtraLibXxf86rush	NO
#undef  NormalLibXxf86rush
#define NormalLibXxf86rush	NO
#undef  DebugLibXxf86rush
#define DebugLibXxf86rush	NO
#undef  ProfileLibXxf86rush
#define ProfileLibXxf86rush	NO
#endif

#if BuildXvLibrary
#ifndef SharedLibXv
#define SharedLibXv		HasSharedLibraries
#endif
#ifndef ExtraLibXv
#define ExtraLibXv		SharedLibXv
#endif
#ifndef NormalLibXv
#define NormalLibXv		(!SharedLibXv || ForceNormalLib)
#endif
#ifndef DebugLibXv
#define DebugLibXv		NO
#endif
#ifndef ProfileLibXv
#define ProfileLibXv		NO
#endif
#else
#undef  SharedLibXv
#define SharedLibXv		NO
#undef  ExtraLibXv
#define ExtraLibXv		NO
#undef  NormalLibXv
#define NormalLibXv		NO
#undef  DebugLibXv
#define DebugLibXv		NO
#undef  ProfileLibXv
#define ProfileLibXv		NO
#endif

#if BuildXvMCLibrary
#ifndef SharedLibXvMC
#define SharedLibXvMC		HasSharedLibraries
#endif
#ifndef ExtraLibXvMC
#define ExtraLibXvMC		SharedLibXvMC
#endif
#ifndef NormalLibXvMC
#define NormalLibXvMC		(!SharedLibXvMC || ForceNormalLib)
#endif
#ifndef DebugLibXvMC
#define DebugLibXvMC		NO
#endif
#ifndef ProfileLibXvMC
#define ProfileLibXvMC		NO
#endif
#else
#undef  SharedLibXvMC
#define SharedLibXvMC		NO
#undef  ExtraLibXvMC
#define ExtraLibXvMC		NO
#undef  NormalLibXvMC
#define NormalLibXvMC		NO
#undef  DebugLibXvMC
#define DebugLibXvMC		NO
#undef  ProfileLibXvMC
#define ProfileLibXvMC		NO
#endif

#if BuildXineramaLibrary
#ifndef SharedLibXinerama
#define SharedLibXinerama	HasSharedLibraries
#endif
#ifndef ExtraLibXinerama
#define ExtraLibXinerama	SharedLibXinerama
#endif
#ifndef NormalLibXinerama
#define NormalLibXinerama	(!SharedLibXinerama || ForceNormalLib)
#endif
#ifndef DebugLibXinerama
#define DebugLibXinerama	NO
#endif
#ifndef ProfileLibXinerama
#define ProfileLibXinerama	NO
#endif
#else
#undef  SharedLibXinerama
#define SharedLibXinerama	NO
#undef  ExtraLibXinerama
#define ExtraLibXinerama	NO
#undef  NormalLibXinerama
#define NormalLibXinerama	NO
#undef  DebugLibXinerama
#define DebugLibXinerama	NO
#undef  ProfileLibXinerama
#define ProfileLibXinerama	NO
#endif

#if BuildXResLibrary
#ifndef SharedLibXRes
#define SharedLibXRes		HasSharedLibraries
#endif
#ifndef ExtraLibXRes
#define ExtraLibXRes		SharedLibXRes
#endif
#ifndef NormalLibXRes
#define NormalLibXRes		(!SharedLibXRes || ForceNormalLib)
#endif
#ifndef DebugLibXRes
#define DebugLibXRes		NO
#endif
#ifndef ProfileLibXRes
#define ProfileLibXRes		NO
#endif
#else
#undef  SharedLibXRes
#define SharedLibXRes		NO
#undef  ExtraLibXRes
#define ExtraLibXRes		NO
#undef  NormalLibXRes
#define NormalLibXRes		NO
#undef  DebugLibXRes
#define DebugLibXRes		NO
#undef  ProfileLibXRes
#define ProfileLibXRes		NO
#endif

#if BuildDPSLibrary
#ifndef SharedLibDps
#define SharedLibDps		HasSharedLibraries
#endif
#ifndef ExtraLibDps
#define ExtraLibDps		SharedLibDps
#endif
#ifndef NormalLibDps
#define NormalLibDps		(!SharedLibDps || ForceNormalLib)
#endif
#ifndef DebugLibDps
#define DebugLibDps		NO
#endif
#ifndef ProfileLibDps
#define ProfileLibDps		NO
#endif
#else
#undef  SharedLibDps
#define SharedLibDps		NO
#undef  ExtraLibDps
#define ExtraLibDps		NO
#undef  NormalLibDps
#define NormalLibDps		NO
#undef  DebugLibDps
#define DebugLibDps		NO
#undef  ProfileLibDps
#define ProfileLibDps		NO
#endif

#if BuildDPSTkLibrary
#ifndef SharedLibDpsTk
#define SharedLibDpsTk		HasSharedLibraries
#endif
#ifndef ExtraLibDpsTk
#define ExtraLibDpsTk		SharedLibDpsTk
#endif
#ifndef NormalLibDpsTk
#define NormalLibDpsTk		(!SharedLibDpsTk || ForceNormalLib)
#endif
#ifndef DebugLibDpsTk
#define DebugLibDpsTk		NO
#endif
#ifndef ProfileLibDpsTk
#define ProfileLibDpsTk		NO
#endif
#else
#undef  SharedLibDpsTk
#define SharedLibDpsTk		NO
#undef  ExtraLibDpsTk
#define ExtraLibDpsTk		NO
#undef  NormalLibDpsTk
#define NormalLibDpsTk		NO
#undef  DebugLibDpsTk
#define DebugLibDpsTk		NO
#undef  ProfileLibDpsTk
#define ProfileLibDpsTk		NO
#endif

#if BuildPSResLibrary
#ifndef SharedLibPSRes
#define SharedLibPSRes		HasSharedLibraries
#endif
#ifndef ExtraLibPSRes
#define ExtraLibPSRes		SharedLibPSRes
#endif
#ifndef NormalLibPSRes
#define NormalLibPSRes		(!SharedLibPSRes || ForceNormalLib)
#endif
#ifndef DebugLibPSRes
#define DebugLibPSRes		NO
#endif
#ifndef ProfileLibPSRes
#define ProfileLibPSRes		NO
#endif
#else
#undef  SharedLibPSRes
#define SharedLibPSRes		NO
#undef  ExtraLibPSRes
#define ExtraLibPSRes		NO
#undef  NormalLibPSRes
#define NormalLibPSRes		NO
#undef  DebugLibPSRes
#define DebugLibPSRes		NO
#undef  ProfileLibPSRes
#define ProfileLibPSRes		NO
#endif

#if BuildRenderLibrary
#ifndef SharedLibXrender
#define SharedLibXrender	HasSharedLibraries
#endif
#ifndef ExtraLibXrender
#define ExtraLibXrender		SharedLibXrender
#endif
#ifndef NormalLibXrender
#define NormalLibXrender	(!SharedLibXrender || ForceNormalLib)
#endif
#ifndef DebugLibXrender
#define DebugLibXrender		NO
#endif
#ifndef ProfileLibXrender
#define ProfileLibXrender	NO
#endif
#else
#undef  SharedLibXrender
#define SharedLibXrender	NO
#undef  ExtraLibXrender
#define ExtraLibXrender		NO
#undef  NormalLibXrender
#define NormalLibXrender	NO
#undef  DebugLibXrender
#define DebugLibXrender		NO
#undef  ProfileLibXrender
#define ProfileLibXrender	NO
#endif

#if BuildRandRLibrary
#ifndef SharedLibXrandr
#define SharedLibXrandr		HasSharedLibraries
#endif
#ifndef ExtraLibXrandr
#define ExtraLibXrandr		SharedLibXrandr
#endif
#ifndef NormalLibXrandr
#define NormalLibXrandr		(!SharedLibXrandr || ForceNormalLib)
#endif
#ifndef DebugLibXrandr
#define DebugLibXrandr		NO
#endif
#ifndef ProfileLibXrandr
#define ProfileLibXrandr	NO
#endif
#else
#undef  SharedLibXrandr
#define SharedLibXrandr		NO
#undef  ExtraLibXrandr
#define ExtraLibXrandr		NO
#undef  NormalLibXrandr
#define NormalLibXrandr		NO
#undef  DebugLibXrandr
#define DebugLibXrandr		NO
#undef  ProfileLibXrandr
#define ProfileLibXrandr	NO
#endif

#if BuildXcursorLibrary
#ifndef SharedLibXcursor
#define SharedLibXcursor	HasSharedLibraries
#endif
#ifndef ExtraLibXcursor
#define ExtraLibXcursor		SharedLibXcursor
#endif
#ifndef NormalLibXcursor
#define NormalLibXcursor	(!SharedLibXcursor || ForceNormalLib)
#endif
#ifndef DebugLibXcursor
#define DebugLibXcursor		NO
#endif
#ifndef ProfileLibXcursor
#define ProfileLibXcursor	NO
#endif
#else
#undef  SharedLibXcursor
#define SharedLibXcursor	NO
#undef  ExtraLibXcursor
#define ExtraLibXcursor		NO
#undef  NormalLibXcursor
#define NormalLibXcursor	NO
#undef  DebugLibXcursor
#define DebugLibXcursor		NO
#undef  ProfileLibXcursor
#define ProfileLibXcursor	NO
#endif

#if BuildAppleWMLibrary
#ifndef SharedLibAppleWM
#define SharedLibAppleWM	HasSharedLibraries
#endif
#ifndef ExtraLibAppleWM
#define ExtraLibAppleWM		SharedLibAppleWM
#endif
#ifndef NormalLibAppleWM
#define NormalLibAppleWM	(!SharedLibAppleWM || ForceNormalLib)
#endif
#ifndef DebugLibAppleWM
#define DebugLibAppleWM		NO
#endif
#ifndef ProfileLibAppleWM
#define ProfileLibAppleWM	NO
#endif
#else
#undef  SharedLibAppleWM
#define SharedLibAppleWM	NO
#undef  ExtraLibAppleWM
#define ExtraLibAppleWM		NO
#undef  NormalLibAppleWM
#define NormalLibAppleWM	NO
#undef  DebugLibAppleWM
#define DebugLibAppleWM		NO
#undef  ProfileLibAppleWM
#define ProfileLibAppleWM	NO
#endif

#if BuildWindowsWMLibrary
#ifndef SharedLibWindowsWM
#define SharedLibWindowsWM	HasSharedLibraries
#endif
#ifndef ExtraLibWindowsWM
#define ExtraLibWindowsWM	SharedLibWindowsWM
#endif
#ifndef NormalLibWindowsWM
#define NormalLibWindowsWM	(!SharedLibWindowsWM || ForceNormalLib)
#endif
#ifndef DebugLibWindowsWM
#define DebugLibWindowsWM	NO
#endif
#ifndef ProfileLibWindowsWM
#define ProfileLibWindowsWM	NO
#endif
#else
#undef  SharedLibWindowsWM
#define SharedLibWindowsWM	NO
#undef  ExtraLibWindowsWM
#define ExtraLibWindowsWM	NO
#undef  NormalLibWindowsWM
#define NormalLibWindowsWM	NO
#undef  DebugLibWindowsWM
#define DebugLibWindowsWM	NO
#undef  ProfileLibWindowsWM
#define ProfileLibWindowsWM	NO
#endif

#if BuildGLULibrary
#ifndef SharedLibGlu
#define SharedLibGlu		HasSharedLibraries
#endif
#ifndef ExtraLibGlu
#define ExtraLibGlu		SharedLibGlu
#endif
#ifndef NormalLibGlu
#define NormalLibGlu		(!SharedLibX11 | ForceNormalLib)
#endif
#ifndef DebugLibGlu
#define DebugLibGlu		NO
#endif
#ifndef ProfileLibGlu
#define ProfileLibGlu		NO
#endif
#else
#undef  SharedLibGlu
#define SharedLibGlu		NO
#undef  ExtraLibGlu
#define ExtraLibGlu		NO
#undef  NormalLibGlu
#define NormalLibGlu		NO
#undef  DebugLibGlu
#define DebugLibGlu		NO
#undef  ProfileLibGlu
#define ProfileLibGlu		NO
#endif

#if BuildGLXLibrary
#ifndef SharedLibGlx
#define SharedLibGlx		HasSharedLibraries
#endif
#ifndef ExtraLibGlx
#define ExtraLibGlx		SharedLibGlx
#endif
#ifndef NormalLibGlx
#define NormalLibGlx		(!SharedLibX11 | ForceNormalLib)
#endif
#ifndef DebugLibGlx
#define DebugLibGlx		NO
#endif
#ifndef ProfileLibGlx
#define ProfileLibGlx		NO
#endif
#ifndef BuildLibGlxWithoutPIC
#define BuildLibGlxWithoutPIC	NO
#endif
#if BuildLibGlxWithoutPIC && SharedLibGlx
#define SharedLibGlxWithoutPIC	YES
#else
#define SharedLibGlxWithoutPIC	NO
#endif
#ifndef LinkGLToUsrLib
#define LinkGLToUsrLib		NO
#endif
#if NothingOutsideProjectRoot
#undef LinkGLToUsrLib
#define LinkGLToUsrLib		NO
#endif
#ifndef LinkGLToUsrInclude
#define LinkGLToUsrInclude	NO
#endif
#if NothingOutsideProjectRoot
#undef LinkGLToUsrInclude
#define LinkGLToUsrInclude	NO
#endif
#else
#undef  SharedLibGlx
#define SharedLibGlx		NO
#undef  ExtraLibGlx
#define ExtraLibGlx		NO
#undef  NormalLibGlx
#define NormalLibGlx		NO
#undef  DebugLibGlx
#define DebugLibGlx		NO
#undef  ProfileLibGlx
#define ProfileLibGlx		NO
#endif
/*
 * Only make a shared GLw library on systems with Weak symbols 
 * because it depends on Motif. See xc/lib/GLw/README.txt for details
 */
#if BuildGLwLibrary
#ifndef SharedLibGLw
#define SharedLibGLw		HasSharedLibraries && HasWeakSymbols
#endif
#ifndef ExtraLibGLw
#define ExtraLibGLw		SharedLibGLw
#endif
#ifndef NormalLibGLw
#define NormalLibGLw		(!SharedLibGLw || ForceNormalLib)
#endif
#ifndef DebugLibGLw
#define DebugLibGLw		NO	/* debugged widget library */
#endif
#ifndef ProfileLibGLw
#define ProfileLibGLw		NO	/* profiled widget library */
#endif
#ifndef GLwUseXmStubs
	/* create stub (weak) Motif symbols */
#define GLwUseXmStubs		SharedLibGLw && HasWeakSymbols
#endif
#else
#undef  SharedLibGLw
#define SharedLibGLw		NO
#undef  ExtraLibGLw
#define ExtraLibGLw		NO
#undef  NormalLibGLw
#define NormalLibGLw		NO
#undef  DebugLibGLw
#define DebugLibGLw		NO
#undef  ProfileLibGLw
#define ProfileLibGLw		NO
#endif

#ifndef SharedLibXext
#define SharedLibXext HasSharedLibraries
#endif
#ifndef ExtraLibXext
#define ExtraLibXext SharedLibXext
#endif
#ifndef NormalLibXext
#define NormalLibXext (!SharedLibXext | ForceNormalLib)
#endif
#ifndef DebugLibXext
#define DebugLibXext		NO	/* debugged Xext library */
#endif
#ifndef ProfileLibXext
#define ProfileLibXext		NO	/* profiled Xext library */
#endif
      XEXTLIBSRC = $(LIBSRC)/Xext
#if SharedLibXext
#ifndef SharedXextRev
#define SharedXextRev 6.4
#endif
SharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC),SOXEXTREV,SharedXextRev)
#else
ProjectUnsharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC),XBuildLibDir)
#endif
LINTEXTENSIONLIB = $(LINTEXTENSION)
          DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
             XLIB = $(EXTENSIONLIB) $(XONLYLIB)
         LINTXLIB = $(LINTXONLYLIB)

    XSSLIBSRC = $(LIBSRC)/Xss
#if SharedLibXss
#ifndef SharedXssRev
#define SharedXssRev 1.0
#endif
SharedLibReferences(XSS,Xss,$(XSSLIBSRC),SOXSSREV,SharedXssRev)
#else
ProjectUnsharedLibReferences(XSS,Xss,$(XSSLIBSRC),XBuildLibDir)
#endif

    XXF86MISCLIBSRC = $(LIBSRC)/Xxf86misc
#if SharedLibXxf86misc
#ifndef SharedXxf86miscRev
#define SharedXxf86miscRev 1.1
#endif
SharedLibReferences(XXF86MISC,Xxf86misc,$(XXF86MISCLIBSRC),SOXXF86MISCREV,SharedXxf86miscRev)
#else
ProjectUnsharedLibReferences(XXF86MISC,Xxf86misc,$(XXF86MISCLIBSRC),XBuildLibDir)
#endif

    XXF86VMLIBSRC = $(LIBSRC)/Xxf86vm
#if SharedLibXxf86vm
#ifndef SharedXxf86vmRev
#define SharedXxf86vmRev 1.0
#endif
SharedLibReferences(XXF86VM,Xxf86vm,$(XXF86VMLIBSRC),SOXXF86VMREV,SharedXxf86vmRev)
#else
ProjectUnsharedLibReferences(XXF86VM,Xxf86vm,$(XXF86VMLIBSRC),XBuildLibDir)
#endif

    XXF86DGALIBSRC = $(LIBSRC)/Xxf86dga
#if SharedLibXxf86dga
#ifndef SharedXxf86dgaRev
#define SharedXxf86dgaRev 1.1
#endif
SharedLibReferences(XXF86DGA,Xxf86dga,$(XXF86DGALIBSRC),SOXXF86DGAREV,SharedXxf86dgaRev)
#else
ProjectUnsharedLibReferences(XXF86DGA,Xxf86dga,$(XXF86DGALIBSRC),XBuildLibDir)
#endif

#if BuildDmxLibrary
#ifndef SharedLibDmx
#define SharedLibDmx		HasSharedLibraries
#endif
#ifndef ExtraLibDmx
#define ExtraLibDmx		SharedLibDmx
#endif
#ifndef NormalLibDmx
#define NormalLibDmx		YES
#endif
#ifndef DebugLibDmx
#define DebugLibDmx		NO
#endif
#ifndef ProfileLibDmx
#define ProfileLibDmx		NO
#endif
#else
#ifndef SharedLibDmx
#define SharedLibDmx		NO
#endif
#ifndef ExtraLibDmx
#define ExtraLibDmx		NO
#endif
#ifndef NormalLibDmx
#define NormalLibDmx		NO
#endif
#ifndef DebugLibDmx
#define DebugLibDmx		NO
#endif
#ifndef ProfileLibDmx
#define ProfileLibDmx		NO
#endif
#endif

    XXF86RUSHLIBSRC = $(LIBSRC)/Xxf86rush
#if SharedLibXxf86rush
#ifndef SharedXxf86rushRev
#define SharedXxf86rushRev 1.0
#endif
SharedLibReferences(XXF86RUSH,Xxf86rush,$(XXF86RUSHLIBSRC),SOXXF86RUSHREV,SharedXxf86rushRev)
#else
ProjectUnsharedLibReferences(XXF86RUSH,Xxf86rush,$(XXF86RUSHLIBSRC),XBuildLibDir)
#endif


    XVLIBSRC = $(LIBSRC)/Xv
#if SharedLibXv
#ifndef SharedXvRev
#define SharedXvRev 1.0
#endif
SharedLibReferences(XV,Xv,$(XVLIBSRC),SOXVREV,SharedXvRev)
#else
ProjectUnsharedLibReferences(XV,Xv,$(XVLIBSRC),XBuildLibDir)
#endif


    XVMCLIBSRC = $(LIBSRC)/XvMC
#if SharedLibXvMC
#ifndef SharedXvMCRev
#define SharedXvMCRev 1.0
#endif
SharedLibReferences(XVMC,XvMC,$(XVMCLIBSRC),SOXVMCREV,SharedXvMCRev)
#else
ProjectUnsharedLibReferences(XVMC,XvMC,$(XVMCLIBSRC),XBuildLibDir)
#endif

    XINERAMALIBSRC = $(LIBSRC)/Xinerama
#if SharedLibXinerama
#ifndef SharedXineramaRev
#define SharedXineramaRev 1.0
#endif
SharedLibReferences(XINERAMA,Xinerama,$(XINERAMALIBSRC),SOXINERAMAREV,SharedXineramaRev)
#else
ProjectUnsharedLibReferences(XINERAMA,Xinerama,$(XINERAMALIBSRC),XBuildLibDir)
#endif

    XRESLIBSRC = $(LIBSRC)/XRes
#if SharedLibXRes
#ifndef SharedXResRev
#define SharedXResRev 1.0
#endif
SharedLibReferences(XRES,XRes,$(XRESLIBSRC),SOXRESREV,SharedXResRev)
#else
ProjectUnsharedLibReferences(XRES,XRes,$(XRESLIBSRC),XBuildLibDir)
#endif

    DMXLIBSRC = $(LIBSRC)/dmx
#if SharedLibDmx
#ifndef SharedDmxRev
#define SharedDmxRev 1.0
#endif
SharedLibReferences(DMX,dmx,$(DMXLIBSRC),SODMXREV,SharedDmxRev)
#else
ProjectUnsharedLibReferences(DMX,dmx,$(DMXLIBSRC),XBuildLibDir)
#endif

    DPSLIBSRC = $(LIBSRC)/dps
#if SharedLibDps
#ifndef SharedDpsRev
#define SharedDpsRev 1.0
#endif
SharedLibReferences(DPS,dps,$(DPSLIBSRC),SODPSREV,SharedDpsRev)
#else
ProjectUnsharedLibReferences(DPS,dps,$(DPSLIBSRC),XBuildLibDir)
#endif

    DPSTKLIBSRC = $(LIBSRC)/dpstk
#if SharedLibDpsTk
#ifndef SharedDpsTkRev
#define SharedDpsTkRev 1.0
#endif
SharedLibReferences(DPSTK,dpstk,$(DPSTKLIBSRC),SODPSTKREV,SharedDpsTkRev)
#else
ProjectUnsharedLibReferences(DPSTK,dpstk,$(DPSTKLIBSRC),XBuildLibDir)
#endif

    PSRESLIBSRC = $(LIBSRC)/psres
#if SharedLibPSRes
#ifndef SharedPSResRev
#define SharedPSResRev 1.0
#endif
SharedLibReferences(PSRES,psres,$(PSRESLIBSRC),SOPSRESREV,SharedPSResRev)
#else
ProjectUnsharedLibReferences(PSRES,psres,$(PSRESLIBSRC),XBuildLibDir)
#endif

    GLULIBSRC = $(LIBSRC)/GLU
#if SharedLibGlu
#ifndef SharedGluRev
#define SharedGluRev 1.3
#endif
SharedLibReferences(GLU,GLU,$(GLULIBSRC),SOGLUREV,SharedGluRev)
#else
ProjectUnsharedLibReferences(GLU,GLU,$(GLULIBSRC),XBuildLibDir)
#endif

    GLXLIBSRC = $(LIBSRC)/GL
#if SharedLibGlx
#ifndef SharedGlxRev
#define SharedGlxRev 1.2
#endif
SharedLibReferences(GLX,GL,$(GLXLIBSRC),SOGLREV,SharedGlxRev)
#else
ProjectUnsharedLibReferences(GLX,GL,$(GLXLIBSRC),XBuildLibDir)
#endif
    GLWIDGETSRC = $(LIBSRC)/GLw
#if SharedLibGLw
#ifndef SharedGLwRev
#define SharedGLwRev 1.0		/* used to name the shared library */
#endif
SharedDSLibReferences(GLW,GLw,$(GLWIDGETSRC),SOGLWREV,SharedGLwRev)
#else
ProjectUnsharedLibReferences(GLW,GLw,$(GLWIDGETSRC),XBuildLibDir)
#endif

    XRENDERLIBSRC = $(LIBSRC)/Xrender
#if SharedLibXrender
#ifndef SharedXrenderRev
#define SharedXrenderRev 1.2
#endif
SharedLibReferences(XRENDER,Xrender,$(XRENDERLIBSRC),SOXRENDERREV,SharedXrenderRev)
#else
ProjectUnsharedLibReferences(XRENDER,Xrender,$(XRENDERLIBSRC),XBuildLibDir)
#endif

    XRANDRRLIBSRC = $(LIBSRC)/Xrandr
#if SharedLibXrandr
#ifndef SharedXrandrRev
#define SharedXrandrRev 2.0
#endif
SharedLibReferences(XRANDR,Xrandr,$(XRANDRLIBSRC),SOXRANDRREV,SharedXrandrRev)
#else
ProjectUnsharedLibReferences(XRANDR,Xrandr,$(XRANDRLIBSRC),XBuildLibDir)
#endif

   XCURSORRLIBSRC = $(LIBSRC)/Xcursor
#if SharedLibXcursor
#ifndef SharedXcursorRev
#define SharedXcursorRev 1.0
#endif
SharedLibReferences(XCURSOR,Xcursor,$(XCURSORLIBSRC),SOXCURSORREV,SharedXcursorRev)
#else
ProjectUnsharedLibReferences(XCURSOR,Xcursor,$(XCURSORLIBSRC),XBuildLibDir)
#endif

   APPLEWMLIBSRC = $(LIBSRC)/apple
#if SharedLibAppleWM
#ifndef SharedAppleWMRev
#define SharedAppleWMRev 1.0
#endif
SharedLibReferences(APPLEWM,AppleWM,$(APPLEWMLIBSRC),SOAPPLEWMREV,SharedAppleWMRev)
#else
ProjectUnsharedLibReferences(APPLEWM,AppleWM,$(APPLEWMLIBSRC),XBuildLibDir)
#endif

   WINDOWSWMLIBSRC = $(LIBSRC)/windows
#if SharedLibWindowsWM
#ifndef SharedWindowsWMRev
#define SharedWindowsWMRev 1.0
#endif
SharedLibReferences(WINDOWSWM,WindowsWM,$(WINDOWSWMLIBSRC),SOWINDOWSWMREV,SharedWindowsWMRev)
#else
ProjectUnsharedLibReferences(WINDOWSWM,WindowsWM,$(WINDOWSWMLIBSRC),XBuildLibDir)
#endif

# ifndef SharedLibXfontcache
#  define SharedLibXfontcache	HasSharedLibraries
# endif
# ifndef ExtraLibXfontcache
#  define ExtraLibXfontcache	SharedLibXfontcache
# endif
# ifndef NormalLibXfontcache
#  define NormalLibXfontcache	(!SharedLibXfontcache || ForceNormalLib)
# endif
# ifndef DebugLibXfontcache
#  define DebugLibXfontcache	NO
# endif
# ifndef ProfileLibXfontcache
#  define ProfileLibXfontcache	NO
# endif

    XFONTCACHELIBSRC = $(LIBSRC)/Xfontcache
#if SharedLibXfontcache
#ifndef SharedXfontcacheRev
#define SharedXfontcacheRev 1.2
#endif
SharedLibReferences(XFONTCACHE,Xfontcache,$(XFONTCACHELIBSRC),SOXFONTCACHEREV,SharedXfontcacheRev)
#else
ProjectUnsharedLibReferences(XFONTCACHE,Xfontcache,$(XFONTCACHELIBSRC),XBuildLibDir)
#endif

#ifndef SharedLibXau
#define SharedLibXau		NO
#endif
#ifndef ExtraLibXau
#define ExtraLibXau		SharedLibXau
#endif
#ifndef NormalLibXau
#define NormalLibXau (!SharedLibXau | ForceNormalLib)
#endif
#ifndef DebugLibXau
#define DebugLibXau		NO	/* debugged auth library */
#endif
#ifndef ProfileLibXau
#define ProfileLibXau		NO	/* profiled auth library */
#endif
         XAUTHSRC = $(LIBSRC)/Xau
#if SharedLibXau
#ifndef SharedXauRev
#define SharedXauRev 6.0
#endif
SharedLibReferences(XAUTH,Xau,$(XAUTHSRC),SOXAUTHREV,SharedXauRev)
#else
#if !UseInstalledXauLib
ProjectUnsharedLibReferences(XAUTH,Xau,$(XAUTHSRC),XBuildLibDir)
#else
ProjectUnsharedLibReferences(XAUTH,Xau,$(XAUTHSRC),$(USRLIBDIR))
#endif
#endif

#ifndef SharedLibXdmcp
#define SharedLibXdmcp		NO
#endif
#ifndef ExtraLibXdmcp
#define ExtraLibXdmcp		SharedLibXdmcp
#endif
#ifndef NormalLibXdmcp
#define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
#endif
#ifndef DebugLibXdmcp
#define DebugLibXdmcp		NO	/* debugged XDMCP library */
#endif
#ifndef ProfileLibXdmcp
#define ProfileLibXdmcp		NO	/* profiled XDMCP library */
#endif
      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
#if SharedLibXdmcp
#ifndef SharedXdmcpRev
#define SharedXdmcpRev 6.0
#endif
SharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),SOXDMCPREV,SharedXdmcpRev)
#else
#if !UseInstalledXdmcpLib
ProjectUnsharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),XBuildLibDir)
#else
ProjectUnsharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),$(USRLIBDIR))
#endif
#endif

#ifndef SharedLibXmu
#define SharedLibXmu HasSharedLibraries
#endif
#ifndef ExtraLibXmu
#define ExtraLibXmu SharedLibXmu
#endif
#ifndef NormalLibXmu
#define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
#endif
#ifndef DebugLibXmu
#define DebugLibXmu		NO	/* debugged Xmu library */
#endif
#ifndef ProfileLibXmu
#define ProfileLibXmu		NO	/* profiled Xmu library */
#endif
           XMUSRC = $(LIBSRC)/Xmu
#if SharedLibXmu
#ifndef SharedXmuRev
#define SharedXmuRev 6.2
#endif
SharedDSLibReferences(XMU,Xmu,$(XMUSRC),SOXMUREV,SharedXmuRev)
#else
ProjectUnsharedLibReferences(XMU,Xmu,$(XMUSRC),XBuildLibDir)
#endif

#ifndef SharedLibXmuu
#define SharedLibXmuu HasSharedLibraries
#endif
#ifndef ExtraLibXmuu
#define ExtraLibXmuu SharedLibXmuu
#endif
#ifndef NormalLibXmuu
#define NormalLibXmuu		(!SharedLibXmuu | ForceNormalLib)
#endif
#ifndef DebugLibXmuu
#define DebugLibXmuu		NO	/* debugged Xmuu library */
#endif
#ifndef ProfileLibXmuu
#define ProfileLibXmuu		NO	/* profiled Xmuu library */
#endif
           XMUUSRC = $(LIBSRC)/Xmuu
#if SharedLibXmuu
#ifndef SharedXmuuRev
#define SharedXmuuRev 1.0
#endif
SharedLibReferences(XMUU,Xmuu,$(XMUUSRC),SOXMUUREV,SharedXmuuRev)
#else
ProjectUnsharedLibReferences(XMUU,Xmuu,$(XMUUSRC),XBuildLibDir)
#endif

#ifndef SharedOldX
#define SharedOldX HasSharedLibraries
#endif
#ifndef ExtraOldX
#define ExtraOldX SharedOldX
#endif
#ifndef NormalOldX
#define NormalOldX (!SharedOldX | ForceNormalLib)
#endif
#ifndef DebugOldX
#define DebugOldX		NO	/* debugged old X library */
#endif
#ifndef ProfileOldX
#define ProfileOldX		NO	/* profiled old X library */
#endif
       OLDXLIBSRC = $(LIBSRC)/oldX
#if SharedOldX
#ifndef SharedOldXRev
#define SharedOldXRev 6.0
#endif
SharedLibReferences(OLDX,oldX,$(OLDXLIBSRC),SOOLDXREV,SharedOldXRev)
#else
ProjectUnsharedLibReferences(OLDX,oldX,$(OLDXLIBSRC),XBuildLibDir)
#endif

#ifndef SharedLibXp
#define SharedLibXp HasSharedLibraries
#endif
#ifndef ExtraLibXp
#define ExtraLibXp SharedLibXp
#endif
#ifndef NormalLibXp
#define NormalLibXp (!SharedLibXp | ForceNormalLib)
#endif
#ifndef DebugLibXp
#define DebugLibXp              NO      /* debugged Xp library */
#endif
#ifndef ProfileLibXp
#define ProfileLibXp            NO      /* profiled Xp library */
#endif
         XPLIBSRC = $(LIBSRC)/Xp
#if SharedLibXp
#ifndef SharedXpRev
#define SharedXpRev 6.2
#endif
SharedLibReferences(XP,Xp,$(XPLIBSRC),SOXPREV,SharedXpRev)
#else
ProjectUnsharedLibReferences(XP,Xp,$(XPLIBSRC),XBuildLibDir)
#endif

#ifndef SharedLibXt
#define SharedLibXt HasSharedLibraries
#endif
#ifndef ExtraLibXt
#define ExtraLibXt SharedLibXt
#endif
#ifndef NormalLibXt
#define NormalLibXt (!SharedLibXt | ForceNormalLib)
#endif
#ifndef DebugLibXt
#define DebugLibXt		NO	/* debugged toolkit library */
#endif
#ifndef ProfileLibXt
#define ProfileLibXt		NO	/* profiled toolkit library */
#endif
       TOOLKITSRC = $(LIBSRC)/Xt
#if SharedLibXt
#ifndef SharedXtRev
#define SharedXtRev 6.0
#endif
SharedDSLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),SOXTREV,SharedXtRev)
#else
ProjectUnsharedLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),XBuildLibDir)
#endif
      DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
         XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
     LINTXTOOLLIB = $(LINTXTOOLONLYLIB)

#ifndef SharedLibXaw
#define SharedLibXaw HasSharedLibraries
#endif
#ifndef ExtraLibXaw
#define ExtraLibXaw SharedLibXaw
#endif
#ifndef NormalLibXaw
#define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
#endif
#ifndef DebugLibXaw
#define DebugLibXaw		NO	/* debugged widget library */
#endif
#ifndef ProfileLibXaw
#define ProfileLibXaw		NO	/* profiled widget library */
#endif
       AWIDGETSRC = $(LIBSRC)/Xaw
#if SharedLibXaw
#ifndef SharedXawRev
#define SharedXawRev 7.0
#endif
SharedDSLibReferences(XAW,Xaw,$(AWIDGETSRC),SOXAWREV,SharedXawRev)
#else
ProjectUnsharedLibReferences(XAW,Xaw,$(AWIDGETSRC),XBuildLibDir)
#endif

#ifndef BuildXaw6
#define BuildXaw6 HasSharedLibraries
#endif

#if BuildXaw6
#ifndef SharedLibXaw6
#define SharedLibXaw6 HasSharedLibraries
#endif
#ifndef ExtraLibXaw6
#define ExtraLibXaw6 SharedLibXaw6
#endif
#ifndef NormalLibXaw6
#define NormalLibXaw6		NO
#endif
#ifndef DebugLibXaw6
#define DebugLibXaw6		NO	/* debugged widget library */
#endif
#ifndef ProfileLibXaw6
#define ProfileLibXaw6		NO	/* profiled widget library */
#endif
       AWIDGET6SRC = $(LIBSRC)/Xaw6
#if SharedLibXaw6
#ifndef SharedXaw6Rev
#define SharedXaw6Rev 6.1
#endif
SharedDSLibReferences(XAW6,Xaw,$(AWIDGET6SRC),SOXAW6REV,SharedXaw6Rev)
#else
ProjectUnsharedLibReferences(XAW6,Xaw,$(AWIDGET6SRC),XBuildLibDir)
#endif
#endif

#ifndef SharedLibXi
#define SharedLibXi HasSharedLibraries
#endif
#ifndef ExtraLibXi
#define ExtraLibXi SharedLibXi
#endif
#ifndef NormalLibXi
#define NormalLibXi (!SharedLibXi | ForceNormalLib)
#endif
#ifndef DebugLibXi
#define DebugLibXi		NO	/* debugged Xi library */
#endif
#ifndef ProfileLibXi
#define ProfileLibXi		NO	/* profiled Xi library */
#endif
         XILIBSRC = $(LIBSRC)/Xi
#if SharedLibXi
#ifndef SharedXiRev
#define SharedXiRev 6.0
#endif
SharedLibReferences(XI,Xi,$(XILIBSRC),SOXINPUTREV,SharedXiRev)
#else
ProjectUnsharedLibReferences(XI,Xi,$(XILIBSRC),XBuildLibDir)
#endif

#ifndef SharedLibXtst
#define SharedLibXtst HasSharedLibraries
#endif
#ifndef ExtraLibXtst
#define ExtraLibXtst SharedLibXtst
#endif
#ifndef NormalLibXtst
#define NormalLibXtst (!SharedLibXtst | ForceNormalLib)
#endif
#ifndef DebugLibXtst
#define DebugLibXtst		NO	/* debugged Xtst library */
#endif
#ifndef ProfileLibXtst
#define ProfileLibXtst		NO	/* profiled Xtst library */
#endif
      XTESTLIBSRC = $(LIBSRC)/Xtst
#if SharedLibXtst
#ifndef SharedXtstRev
#define SharedXtstRev 6.1
#endif
SharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),SOXTESTREV,SharedXtstRev)
#else
ProjectUnsharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),XBuildLibDir)
#endif

ProjectUnsharedLibReferences(XBSD,Xbsd,$(LIBSRC)/Xbsd,XBuildLibDir)

#ifndef SharedLibICE
#define SharedLibICE HasSharedLibraries
#endif
#ifndef ExtraLibICE
#define ExtraLibICE SharedLibICE
#endif
#ifndef NormalLibICE
#define NormalLibICE (!SharedLibICE | ForceNormalLib)
#endif
#ifndef DebugLibICE
#define DebugLibICE		NO	/* debugged ICE library */
#endif
#ifndef ProfileLibICE
#define ProfileLibICE		NO	/* profiled ICE library */
#endif
           ICESRC = $(LIBSRC)/ICE
#if SharedLibICE
#ifndef SharedICERev
#define SharedICERev 6.3
#endif
SharedLibReferences(ICE,ICE,$(ICESRC),SOICEREV,SharedICERev)
#else
ProjectUnsharedLibReferences(ICE,ICE,$(ICESRC),XBuildLibDir)
#endif

#ifndef SharedLibSM
#define SharedLibSM HasSharedLibraries
#endif
#ifndef ExtraLibSM
#define ExtraLibSM SharedLibSM
#endif
#ifndef NormalLibSM
#define NormalLibSM (!SharedLibSM | ForceNormalLib)
#endif
#ifndef DebugLibSM
#define DebugLibSM		NO	/* debugged SM library */
#endif
#ifndef ProfileLibSM
#define ProfileLibSM		NO	/* profiled SM library */
#endif
            SMSRC = $(LIBSRC)/SM
#if SharedLibSM
#ifndef SharedSMRev
#define SharedSMRev 6.0
#endif
SharedLibReferences(SM,SM,$(SMSRC),SOSMREV,SharedSMRev)
#else
ProjectUnsharedLibReferences(SM,SM,$(SMSRC),XBuildLibDir)
#endif

#ifndef SharedLibXkey
#define SharedLibXkey HasSharedLibraries
#endif
#ifndef ExtraLibXkey
#define ExtraLibXkey SharedLibXkey
#endif
#ifndef NormalLibXkey
#define NormalLibXkey (!SharedLibXkey | ForceNormalLib)
#endif
#ifndef DebugLibXkey
#define DebugLibXkey		NO	/* debugged Xkey library */
#endif
#ifndef ProfileLibXkey
#define ProfileLibXkey		NO	/* profiled Xkey library */
#endif
           XKEYSRC = $(LIBSRC)/Xkey
#if SharedLibXkey
#ifndef SharedXkeyRev
#define SharedXkeyRev 6.0
#endif
SharedLibReferences(XKEY,Xkey,$(XKEYSRC),SOXKEYREV,SharedXkeyRev)
#else
ProjectUnsharedLibReferences(XKEY,Xkey,$(XKEYSRC),XBuildLibDir)
#endif

#ifndef SharedLibFS
#define SharedLibFS		HasSharedLibraries
#endif
#ifndef ExtraLibFS
#define ExtraLibFS		SharedLibFS
#endif
#ifndef NormalLibFS
#define NormalLibFS (!SharedLibFS | ForceNormalLib)
#endif
#ifndef DebugLibFS
#define DebugLibFS		NO	/* debugged FS library */
#endif
#ifndef ProfileLibFS
#define ProfileLibFS		NO	/* profiled FS library */
#endif
         FSLIBSRC = $(LIBSRC)/FS
#if SharedLibFS
#ifndef SharedFSRev
#define SharedFSRev 6.0
#endif
SharedLibReferences(FS,FS,$(FSLIBSRC),SOFSREV,SharedFSRev)
#else
ProjectUnsharedLibReferences(FS,FS,$(FSLIBSRC),XBuildLibDir)
#endif

#ifndef SharedLibFont
#define SharedLibFont HasSharedLibraries
#endif
#ifndef ExtraLibFont
#define ExtraLibFont SharedLibFont
#endif
#ifndef NormalLibFont
#define NormalLibFont (!SharedLibFont | ForceNormalLib | XserverStaticFontLib)
#endif
#ifndef DebugLibFont
#define DebugLibFont		NO	/* debugged Font library */
#endif
#ifndef ProfileLibFont
#define ProfileLibFont		NO	/* profiled Font library */
#endif
         FONTLIBSRC = $(LIBSRC)/font
#if SharedLibFont
#ifndef SharedFontRev
#define SharedFontRev 1.5
#endif
SharedFontLibReferences()
XCOMM SharedLibReferences(XFONT,Xfont,$(FONTLIBSRC),SOFONTREV,SharedFontRev)
#else
ProjectUnsharedFontLibReferences()
XCOMM ProjectUnsharedLibReferences(XFONT,Xfont,$(FONTLIBSRC),XBuildLibDir)
#endif

     FONTSTUBLIBSRC = $(FONTLIBSRC)/stubs
ProjectUnsharedLibReferences(FONTSTUB,fntstubs,$(FONTSUBLIBSRC),XBuildLibDir)
         DEPFONTLIB = $(DEPXFONTLIB) $(DEPFONTSTUBLIB)
            FONTLIB = $(XFONTLIB) $(FONTSTUBLIB) $(FREETYPE2LIB)


#ifndef SharedLibFontEnc
#define SharedLibFontEnc	HasSharedLibraries
#endif
#ifndef ExtraLibFontEnc
#define ExtraLibFontEnc		SharedLibFontEnc
#endif
#ifndef NormalLibFontEnc
#define NormalLibFontEnc (!SharedLibFontEnc | ForceNormalLib)
#endif
#ifndef DebugLibFontEnc
#define DebugLibFontEnc		NO	/* debugged fontenc library */
#endif
#ifndef ProfileLibFontEnc
#define ProfileLibFontEnc	NO	/* profiled fontenc library */
#endif
         FONTENCLIBSRC = $(LIBSRC)/fontenc
#if SharedLibFontEnc
#ifndef SharedFontEncRev
#define SharedFontEncRev 1.0
#endif
SharedLibReferences(XFONTENC,fontenc,$(FONTENCLIBSRC),SOFONTENCREV,SharedFontEncRev)
#else
ProjectUnsharedLibReferences(XFONTENC,fontenc,$(FONTENCLIBSRC),XBuildLibDir)
#endif

#ifndef SharedLibXpm
#define SharedLibXpm HasSharedLibraries
#endif
#ifndef ExtraLibXpm
#define ExtraLibXpm SharedLibXpm
#endif
#ifndef NormalLibXpm
#define NormalLibXpm (!SharedLibXpm | ForceNormalLib)
#endif
#ifndef DebugLibXpm
#define DebugLibXpm		NO
#endif
#ifndef ProfileLibXpm
#define ProfileLibXpm		NO
#endif
          XPMLIBSRC = $(LIBSRC)/Xpm
#if SharedLibXpm
#ifndef SharedXpmRev
#define SharedXpmRev 4.11
#endif
SharedLibReferences(XPM,Xpm,$(XPMLIBSRC),SOXPMREV,SharedXpmRev)
#else
ProjectUnsharedLibReferences(XPM,Xpm,$(XPMLIBSRC),XBuildLibDir)
#endif

#if UseFreetype2

#if BuildFreetype2Library

#ifndef SharedLibFreetype2
#define SharedLibFreetype2 HasSharedLibraries
#endif
#ifndef ExtraLibFreetype2
#define ExtraLibFreetype2 SharedLibFreetype2
#endif
#ifndef NormalLibFreetype2
#define NormalLibFreetype2 (!SharedLibFreetype2 | ForceNormalLib)
#endif
#ifndef DebugLibFreetype2
#define DebugLibFreetype2		NO
#endif
#ifndef ProfileLibFreetype2
#define ProfileLibFreetype2		NO
#endif
          FREETYPE2LIBSRC = $(LIBSRC)/freetype2

/*
 * FreeType 2.1.8
 *
 * Get the library version information from version_info in
 * in xc/extras/freetype2/builds/unix/configure.ac.
 *
 * current:revision:age = 9:6:3
 *
 * The LibtoolMinorVersions revision is "(current - age).age".
 * The !LibtoolMinorVersions revision is "current.0".
 * Freetype2Version should be set to "current.revision.age"
 */
#ifndef Freetype2Version
#define Freetype2Version 9.6.3
#endif

#if SharedLibFreetype2
#ifndef SharedLibtoolFreetype2Rev
#define SharedLibtoolFreetype2Rev	9:6:3
#endif
#ifndef SharedFreetype2Rev
#if LibtoolMinorVersions
#define SharedFreetype2Rev 6.3
#else
#define SharedFreetype2Rev 9.0
#endif
#endif
SharedLibReferences(FREETYPE2,freetype,$(FREETYPE2LIBSRC),SOFREETYPE2REV,SharedFreetype2Rev)
#else
ProjectUnsharedLibReferences(FREETYPE2,freetype,$(FREETYPE2LIBSRC),XBuildLibDir)
#endif

#ifdef UseInstalled
FREETYPE2INCDIR=$(INCDIR)
#else
FREETYPE2INCDIR=$(BUILDINCDIR)
#endif

#else /* BuildFreetype2Library */

#if HasFreetype2

#ifndef Freetype2Dir
#define Freetype2Dir /usr
#ifndef Freetype2DirStandard
# define Freetype2DirStandard YES
#endif
#endif
#ifndef Freetype2DirStandard
#define Freetype2DirStandard NO
#endif

#ifndef Freetype2LibDir
#define Freetype2LibDir Freetype2Dir/LibDirName
# if Freetype2DirStandard
#  define Freetype2LibDirStandard YES
# endif
#endif
#ifndef Freetype2LibDirStandard
# define Freetype2LibDirStandard NO
#endif

#ifndef Freetype2IncDir
#define Freetype2IncDir Freetype2Dir/include
# if Freetype2DirStandard
#  define Freetype2IncDirStandard YES
# endif
#endif

FREETYPE2DIR = Freetype2Dir
FREETYPE2LIBDIR = Freetype2LibDir
FREETYPE2INCDIR = Freetype2IncDir
#if Freetype2LibDirStandard
FREETYPE2LIB = -lfreetype
#else
FREETYPE2LIB = -L$(FREETYPE2LIBDIR) -lfreetype
#endif

#endif /* HasFreetype2 */

#endif /* else BuildFreetype2Library */

#ifndef Freetype2IncDirStandard
# define Freetype2IncDirStandard NO
#endif

#if BuildFreetype2Library || HasFreetype2
#if Freetype2IncDirStandard
FREETYPE2INCLUDES = -I$(FREETYPE2INCDIR)/freetype2
#else
FREETYPE2INCLUDES = -I$(FREETYPE2INCDIR) -I$(FREETYPE2INCDIR)/freetype2
#endif
FREETYPE2DEFINES = -DFREETYPE2
#endif

#endif /* UseFreetype2 */

#ifndef SharedLibExpat
#define SharedLibExpat HasSharedLibraries
#endif
#ifndef ExtraLibExpat
#define ExtraLibExpat SharedLibExpat
#endif
#ifndef NormalLibExpat
#define NormalLibExpat (!SharedLibExpat | ForceNormalLib)
#endif
#ifndef DebugLibExpat
#define DebugLibExpat		NO
#endif
#ifndef ProfileLibExpat
#define ProfileLibExpat		NO
#endif
          EXPATLIBSRC = $(LIBSRC)/expat

/*
 * Expat 1.95.6.
 *
 * Get the library version information from LIBCURRENT, LIBREVISION and LIBAGE
 * in xc/extras/expat/configure.
 *
 * LIBCURRENT:LIBREVISION:LIBAGE = 4:0:4
 *
 * The LibtoolMinorVersions revision is "(LIBCURRENT - LIBAGE).LIBAGE".
 * The !LibtoolMinorVersions revision is "LIBCURRENT.0".
 */
#ifndef ExpatVersion
#define ExpatVersion 1.95.6
#endif

#if SharedLibExpat
#ifndef SharedLibtoolExpatRev
#define SharedLibtoolExpatRev	4:0:4
#endif
#ifndef SharedExpatRev
#if LibtoolMinorVersions
#define SharedExpatRev 0.4
#else
#define SharedExpatRev 4.0
#endif
#endif
SharedLibReferences(EXPAT,expat,$(EXPATLIBSRC),SOEXPATREV,SharedExpatRev)
#else
ProjectUnsharedLibReferences(EXPAT,expat,$(EXPATLIBSRC),XBuildLibDir)
#endif

#if UseExpat

#if BuildExpatLibrary
EXPATINCLUDES=$(TOP_X_INCLUDES)
EXPATDEFINES=-DEXPAT
#else	/* BuildExpatLibrary */

#if HasExpat

#ifndef ExpatDir
#define ExpatDir /usr
#define ExpatDirStandard YES
#endif
#ifndef ExpatDirStandard
#define ExpatDirStandard NO
#endif

#ifndef ExpatLibDir
#define ExpatLibDir ExpatDir/LibDirName
# if ExpatDirStandard
#  define ExpatLibDirStandard YES
# endif
#endif
#ifndef ExpatLibDirStandard
#define ExpatLibDirStandard NO
#endif

#ifndef ExpatIncDir
#define ExpatIncDir ExpatDir/include
# if ExpatDirStandard
#  define ExpatIncDirStandard YES
# endif
#endif
#ifndef ExpatIncDirStandard
#define ExpatIncDirStandard NO
#endif

EXPATDIR = ExpatDir
EXPATLIBDIR = ExpatLibDir
EXPATINCDIR = ExpatIncDir
#if ExpatIncDirStandard
EXPATINCLUDES =
#else
EXPATINCLUDES = -I$(EXPATINCDIR)
#endif
#if ExpatLibDirStandard
EXPATLIB = -lexpat
#else
EXPATLIB = -L$(EXPATLIBDIR) -lexpat
#endif
EXPATDEFINES = -DEXPAT
#endif /* HasExpat */

#endif /* else BuildExpatLibrary */

#define ExpatClientLibs $(EXPATLIB)
#define ExpatClientDepLibs $(DEPEXPATLIB)

#endif /* UseExpat */

#ifndef SharedLibXft1
#define SharedLibXft1 HasSharedLibraries
#endif
#ifndef ExtraLibXft1
#define ExtraLibXft1 SharedLibXft1
#endif
#ifndef NormalLibXft1
#define NormalLibXft1		NO
#endif
#ifndef DebugLibXft1
#define DebugLibXft1		NO
#endif
#ifndef ProfileLibXft1
#define ProfileLibXft1		NO
#endif
          XFT1LIBSRC = $(LIBSRC)/Xft1
#if SharedLibXft1
#ifndef SharedXft1Rev
#define SharedXft1Rev 1.1
#endif
SharedLibReferences(XFT1,Xft,$(XFT1LIBSRC),SOXFT1REV,SharedXft1Rev)
#else
ProjectUnsharedLibReferences(XFT1,Xft,$(XFT1LIBSRC),XBuildLibDir)
#endif

#ifndef Xft1ClientDepLibs
#if UseFreetype2
#define Xft1ClientDepLibs $(DEPXFT1LIB) $(DEPFREETYPE2LIB) $(DEPXRENDERLIB)
#else
#define Xft1ClientDepLibs $(DEPXFT1LIB) $(DEPXRENDERLIB)
#endif
#endif
#ifndef Xft1ClientLibs
#if UseFreetype2
#define Xft1ClientLibs $(XFT1LIB) $(FREETYPE2LIB) $(XRENDERLIB)
#else
#define Xft1ClientLibs $(XFT1LIB) $(XRENDERLIB)
#endif
#endif

#ifndef SharedLibXft
#define SharedLibXft HasSharedLibraries
#endif
#ifndef ExtraLibXft
#define ExtraLibXft SharedLibXft
#endif
#ifndef NormalLibXft
#define NormalLibXft (!SharedLibXft | ForceNormalLib)
#endif
#ifndef DebugLibXft
#define DebugLibXft		NO
#endif
#ifndef ProfileLibXft
#define ProfileLibXft		NO
#endif
          XFTLIBSRC = $(LIBSRC)/Xft
#if SharedLibXft
#ifndef SharedXftRev
#define SharedXftRev 2.1
#endif
SharedLibReferences(XFT,Xft,$(XFTLIBSRC),SOXFTREV,SharedXftRev)
#else
ProjectUnsharedLibReferences(XFT,Xft,$(XFTLIBSRC),XBuildLibDir)
#endif

#ifndef XftClientDepLibs
#define XftClientDepLibs $(DEPXFTLIB) FontconfigClientDepLibs $(DEPXRENDERLIB)
#endif
#ifndef XftClientLibs
#define XftClientLibs $(XFTLIB) FontconfigClientLibs $(XRENDERLIB)
#endif

#if UseFontconfig

#if BuildFontconfigLibrary

#ifndef SharedLibFontconfig
#define SharedLibFontconfig HasSharedLibraries
#endif
#ifndef ExtraLibFontconfig
#define ExtraLibFontconfig SharedLibFontconfig
#endif
#ifndef NormalLibFontconfig
#define NormalLibFontconfig (!SharedLibFontconfig | ForceNormalLib)
#endif
#ifndef DebugLibFontconfig
#define DebugLibFontconfig		NO
#endif
#ifndef ProfileLibFontconfig
#define ProfileLibFontconfig		NO
#endif
          FONTCONFIGLIBSRC = $(LIBSRC)/fontconfig
#if SharedLibFontconfig
#ifndef SharedFontconfigRev
#define SharedFontconfigRev 1.0
#endif
SharedLibReferences(FONTCONFIG,fontconfig,$(FONTCONFIGLIBSRC),SOFONTCONFIGREV,SharedFontconfigRev)
#else
ProjectUnsharedLibReferences(FONTCONFIG,fontconfig,$(FONTCONFIGLIBSRC),XBuildLibDir)
#endif

#ifdef UseInstalled
FONTCONFIGINCDIR=$(INCDIR)
#else
FONTCONFIGINCDIR=$(BUILDINCDIR)
#endif

FONTCONFIGINCLUDES = -I$(FONTCONFIGINCDIR)

#if UseInstalledX11
FCCACHE = $(BINDIR)/fc-cache
#else
FCCACHE = set -x; $(CLIENTENVSETUP) $(PRELOADXFTSETUP) FONTCONFIG_PATH=$(FONTCONFIGLIBSRC) $(XBUILDBINDIR)/fc-cache
#endif

#else /* BuildFontconfigLibrary */

#if HasFontconfig

#ifndef FontconfigDir
# define FontconfigDir /usr
# ifndef FontconfigDirStandard
#  define FontconfigDirStandard YES
# endif
#endif

#ifndef FontconfigDirStandard
# define FontconfigDirStandard NO
#endif

#ifndef FontconfigLibDir
# define FontconfigLibDir FontconfigDir/LibDirName
# if FontconfigDirStandard
#  define FontconfigLibDirStandard YES
# endif
#endif
#ifndef FontconfigLibDirStandard
# define FontconfigLibDirStandard NO
#endif

#ifndef FontconfigBinDir
# define FontconfigBinDir FontconfigDir/bin
#endif

#ifndef FontconfigIncDir
# define FontconfigIncDir FontconfigDir/include
# if FontconfigDirStandard
#  define FontconfigIncDirStandard YES
# endif
#endif

#ifndef FontconfigIncDirStandard
# define FontconfigIncDirStandard NO
#endif

FONTCONFIGDIR = FontconfigDir
FONTCONFIGLIBDIR = FontconfigLibDir
FONTCONFIGINCDIR = FontconfigIncDir
FONTCONFIGBINDIR = FontconfigBinDir
#if FontconfigLibDirStandard
FONTCONFIGLIB = -lfontconfig
#else
FONTCONFIGLIB = -L$(FONTCONFIGLIBDIR) -lfontconfig
#endif

#if FontconfigIncDirStandard
FONTCONFIGINCLUDES =
#else
FONTCONFIGINCLUDES = -I$(FONTCONFIGINCDIR)
#endif

FCCACHE = $(FONTCONFIGBINDIR)/fc-cache

#endif /* HasFontconfig */

#endif /* else BuildFontconfigLibrary */

#if BuildFontconfigLibrary || HasFontconfig
FONTCONFIGDEFINES = -DFONTCONFIG
#endif

#ifndef FontconfigClientDepLibs
#define FontconfigClientDepLibs $(DEPFONTCONFIGLIB) $(DEPFREETYPE2LIB) ExpatClientDepLibs
#endif
#ifndef FontconfigClientLibs
#define FontconfigClientLibs $(FONTCONFIGLIB) $(FREETYPE2LIB) ExpatClientLibs
#endif

#endif /* UseFontconfig */

XFTINCLUDES=$(FONTCONFIGINCLUDES) $(FREETYPE2INCLUDES)

#ifdef HasLibpng

/*
 * Libpng controls:
 *
 *	LibpngDir		prefix for all libpng files
 *	LibpngDirStandard	Boolean - whether png headers/libs are
 *				in default compile/link paths
 *	LibpngLibDir		Directory holding png library
 *	LibpngLibDirStandard	Boolean - whether png libs are
 *				in default link path
 *	LibpngIncDir		Directory holding png includes
 *	LibpngIncDirStandard	Boolean - whether png includes are
 *				in default compile path
 *
 * Make sure that *Standard is set correctly, if not, the
 * standard compile/link paths will be added *before* the
 * local X directorys and installed versions of the standard
 * X headers will end up getting used.
 */

#ifndef LibpngDir
#define LibpngDir /usr
#define LibpngDirStandard YES
#endif
#ifndef LibpngDirStandard
#define LibpngDirStandard NO
#endif

#ifndef LibpngLibDir
#define LibpngLibDir LibpngDir/LibDirName
#if LibpngDirStandard
#define LibpngLibDirStandard YES
#endif
#endif
#ifndef LibpngLibDirStandard
#define LibpngLibDirStandard NO
#endif

#ifndef LibpngIncDir
#define LibpngIncDir LibpngDir/include
#if LibpngDirStandard
#define LibpngIncDirStandard YES
#endif
#endif
#ifndef LibpngIncDirStandard
#define LibpngIncDirStandard NO
#endif

LIBPNGINCDIR = LibpngIncDir
#if LibpngIncDirStandard
LIBPNGINC=
#else
LIBPNGINC = -I$(LIBPNGINCDIR)
#endif
LIBPNGDIR = LibpngDir
LIBPNGLIBDIR = LibpngLibDir
LIBPNGINCDIR = LibpngIncDir
#if LibpngLibDirStandard
LIBPNGLIB = -lpng
#else
LIBPNGLIB = -L$(LIBPNGLIBDIR) -lpng
#endif

#endif

#ifndef XmuuClientDepLibs
#define XmuuClientDepLibs $(DEPXMUULIB) $(DEPXLIB)
#endif
#ifndef XmuuClientLibs
#define XmuuClientLibs $(XMUULIB) $(XLIB)
#endif

#ifndef LdLibraryPath
#define LdLibraryPath LD_LIBRARY_PATH
#endif

#if BuildXKBlib
# ifndef SharedLibxkbfile
#  define SharedLibxkbfile	HasSharedLibraries
# endif
# ifndef ExtraLibxkbfile
#  define ExtraLibxkbfile	SharedLibxkbfile
# endif
# ifndef NormalLibxkbfile
#  define NormalLibxkbfile	(!SharedLibxkbfile | ForceNormalLib)
# endif
# ifndef DebugLibxkbfile
#  define DebugLibxkbfile	NO
# endif
# ifndef ProfileLibxkbfile
#  define ProfileLibxkbfile	NO
# endif
#else
# ifndef SharedLibxkbfile
#  define SharedLibxkbfile	NO
# endif
# ifndef NormalLibxkbfile
#  define NormalLibxkbfile	NO
# endif
# ifndef DebugLibxkbfile
#  define DebugLibxkbfile	NO
# endif
# ifndef ProfileLibxkbfile
#  define ProfileLibxkbfile	NO
# endif
#endif
    XKBFILELIBSRC = $(LIBSRC)/xkbfile
#if SharedLibxkbfile
# ifndef SharedxkbfileRev
#  define SharedxkbfileRev	1.0
# endif
SharedLibReferences(XKBFILE,xkbfile,$(XKBFILESRC),SOXKBFILEREV, SharedxkbfileRev)
#else
ProjectUnsharedLibReferences(XKBFILE,xkbfile,$(XKBFILELIBSRC),XBuildLibDir)
#endif

#if BuildXKBlib
# ifndef XkbClientDepLibs
#  if UseXKBInClients
#   define XkbClientDepLibs	$(DEPXKBFILELIB)
#  else
#   define XkbClientDepLibs	/**/
#  endif
# endif
# ifndef XkbClientLibs
#  if UseXKBInClients
#   define XkbClientLibs	$(XKBFILELIB)
#  else
#   define XkbClientLibs	/**/
#  endif
# endif

# if defined(UseInstalled) || (CrossCompiling &&  UseInstalledOnCrossCompile)
     XKBCOMPCMD = $(BINDIR)/XkbComp
# else
     XKBCOMPSRC = $(PROGRAMSRC)/XkbComp
#  if CrossCompiling
     XKBCOMPCMD = $(PROGRAMSRC)/XkbComp/cross/XkbComp
#  else
     XKBCOMPCMD = $(CLIENTENVSETUP) $(PRELOADSETUP) $(XBUILDBINDIR)/XkbComp
#  endif
# endif
#else /* !BuildXKBlib */
# ifndef XkbClientDepLibs
#  define XkbClientDepLibs
# endif
# ifndef XkbClientLibs
#  define XkbClientLibs
# endif
#endif /* BuildXKBlib */

#if BuildXKBlib
# ifndef SharedLibxkbui
#  define SharedLibxkbui	HasSharedLibraries
# endif
# ifndef ExtraLibxkbui
#  define ExtraLibxkbui		SharedLibxkbui
# endif
# ifndef NormalLibxkbui
#  define NormalLibxkbui	(!SharedLibxkbui || ForceNormalLib)
# endif
# ifndef DebugLibxkbui
#  define DebugLibxkbui		NO
# endif
# ifndef ProfileLibxkbui
#  define ProfileLibxkbui	NO
# endif
#else
# ifndef SharedLibxkbui
#  define SharedLibxkbui	NO
# endif
# ifndef NormalLibxkbui
#  define NormalLibxkbui	NO
# endif
# ifndef DebugLibxkbui
#  define DebugLibxkbui		NO
# endif
# ifndef ProfileLibxkbui
#  define ProfileLibxkbui	NO
# endif
#endif
    XKBUILIBSRC = $(LIBSRC)/xkbui
#if SharedLibxkbui
# ifndef SharedxkbuiRev
#  define SharedxkbuiRev	1.0
# endif
SharedLibReferences(XKBUI,xkbui,$(XKBUISRC),SOXKBUIREV, SharedxkbuiRev)
#else
ProjectUnsharedLibReferences(XKBUI,xkbui,$(XKBUILIBSRC),XBuildLibDir)
#endif

#ifndef XkbuiLibs
# define	XkbuiLibs $(XKBUILIB)
#endif
#ifndef XkbuiDepLibs
# define	XkbuiDepLibs $(DEPXKBFILELIB)
#endif

#ifndef XawClientDepLibs
#define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXPMLIB) $(DEPXLIB)
#endif
#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#endif

#ifndef SharedLibXTrap
#define SharedLibXTrap HasSharedLibraries
#endif
#ifndef ExtraLibXTrap
#define ExtraLibXTrap SharedLibXTrap
#endif
#ifndef NormalLibXTrap
#define NormalLibXTrap (!SharedLibXTrap | ForceNormalLib)
#endif
#ifndef DebugLibXTrap
#define DebugLibXTrap		NO	/* debugged XTrap library */
#endif
#ifndef ProfileLibXTrap
#define ProfileLibXTrap		NO	/* profiled XTrap library */
#endif
        XTRAPLIBSRC = $(LIBSRC)/XTrap
#if SharedLibXTrap
#ifndef SharedXTrapRev
#define SharedXTrapRev 6.4
#endif
SharedLibReferences(XTRAP,XTrap,$(XTRAPLIBSRC),SOXTRAPREV,SharedXTrapRev)
#else
ProjectUnsharedLibReferences(XTRAP,XTrap,$(XTRAPLIBSRC),XBuildLibDir)
#endif

#ifndef NeedDefaultDepLibs
#define NeedDefaultDepLibs YES
#endif

#if NeedDefaultDepLibs
/*
 * Individual libraries should override this
 */
#if HasSharedLibraries || defined(UseInstalled)
          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
#else
          DEPLIBS = $(LOCAL_LIBRARIES)
#endif
         DEPLIBS1 = $(DEPLIBS)
         DEPLIBS2 = $(DEPLIBS)
         DEPLIBS3 = $(DEPLIBS)
         DEPLIBS4 = $(DEPLIBS)
         DEPLIBS5 = $(DEPLIBS)
         DEPLIBS6 = $(DEPLIBS)
         DEPLIBS7 = $(DEPLIBS)
         DEPLIBS8 = $(DEPLIBS)
         DEPLIBS9 = $(DEPLIBS)
         DEPLIBS10 = $(DEPLIBS)
#endif /* NeedDefaultDepLibs */


/*
 * InstallAppDefaults - simple rules to install application default file
 */
#ifndef InstallAppDefaults
#define InstallAppDefaults(class) InstallAppDefaultsLong(class,class)
#endif /* InstallAppDefaults */

/*
 * InstallAppDefaultsLong - general rule to install application default file
 * if the InstallAppDefFiles configuration parameter is set.
 */
#ifndef InstallAppDefaultsLong
#if UseConfDirForAppDefaults
#if InstallAppDefFiles
#define InstallAppDefaultsLong(file,class)				@@@@\
LinkConfDirectory(app-defaults,.,app-defaults,.)			@@@@\
InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
#else
#define InstallAppDefaultsLong(file,class)				@@@@\
LinkConfDirectory(app-defaults,.,app-defaults,.)			@@@@\
InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
#endif /* InstallAppDefFiles */
#else /* UseConfDirForAppDefaults */
#if InstallAppDefFiles
#define InstallAppDefaultsLong(file,class)				@@@@\
InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
#else
#define InstallAppDefaultsLong(file,class)				@@@@\
InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
#endif /* InstallAppDefFiles */
#endif /* UseConfDirForAppDefaults */
#endif /* InstallAppDefaultsLong */

/*
 * MakeFcCache - generate rules to build fontconfig cache database
 */

#if defined UseFreetype2 && !CrossCompiling

# ifndef MakeFcCache
#  define MakeFcCache(deplist)						@@@@\
all:: fonts.cache-1							@@@@\
									@@@@\
fonts.cache-1: deplist							@@@@\
	RunProgram(FCCACHE, $(FCCACHEOPTS) .)				@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(fonts.cache*)
# endif /* MakeFcCache */

# ifndef InstallFcCache
#  define InstallFcCache(dest)						@@@@\
install::								@@@@\
	RunProgram(FCCACHE, $(FCCACHEOPTS) $(DESTDIR)dest)
# endif /* InstallFcCache */

#else

#ifndef MakeFcCache
#define MakeFcCache(deplist)
#endif

#ifndef InstallFcCache
#define InstallFcCache(dest)
#endif

#endif

/*
 * MakeFontsScale - generate rules to build fonts.scale database.
 */
#ifndef MakeFontsScale
# if !CrossCompiling ||  UseInstalledOnCrossCompile
#  define MakeFontsScale(deplist)					@@@@\
all:: fonts.scale							@@@@\
									@@@@\
fonts.scale:  deplist							@@@@\
	RemoveFile(fonts.scale)						@@@@\
	RunProgram(MKFONTSCALE, .)					@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(fonts.scale)
# else
#  define MakeFontsScale(deplist)					@@@@\
clean::									@@@@\
	RemoveFile(fonts.scale)
# endif
#endif /* MakeFontsScale */

/*
 * MakeFontsDir - generate rules to build fonts.dir database.
 */
#ifndef MakeFontsDir
# if !CrossCompiling ||  UseInstalledOnCrossCompile
#  define MakeFontsDir(deplist)						@@@@\
all:: fonts.dir								@@@@\
									@@@@\
fonts.dir:  deplist							@@@@\
	RemoveFile(fonts.dir)						@@@@\
	RunProgram(MKFONTDIR, $(MKFONTDIROPTS) .)			@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(fonts.dir)
# else
#  define MakeFontsDir(deplist)						@@@@\
clean::									@@@@\
	RemoveFile(fonts.dir)
# endif
#endif /* MakeFontsDir */


/*
 * MakeFonts - generate rules to build font database.
 */
#ifndef MakeFonts
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define MakeFonts()							@@@@\
all::  $(OBJS)								@@@@\
									@@@@\
MakeFontsDir($(OBJS))							@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(*.pcf)						@@@@\
	RemoveFiles(*.pcf.Z)						@@@@\
	RemoveFiles(*.pcf.gz)
# else
#  define MakeFonts()							@@@@\
MakeFontsDir($(OBJS))							@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(*.pcf)						@@@@\
	RemoveFiles(*.pcf.Z)						@@@@\
	RemoveFiles(*.pcf.gz)
# endif
#endif /* MakeFonts */

#ifndef InstallFontsDir
# if !CrossCompiling ||  UseInstalledOnCrossCompile
#  define InstallFontsDir(dest)						@@@@\
install::								@@@@\
	MakeDir($(DESTDIR)dest)						@@@@\
	@@if [ X$(STATIC_FONTS_SCALE) = X ]; then (set -x; \		@@@@\
	  RemoveFile($(DESTDIR)dest/fonts.scale); \			@@@@\
	  RunProgram(MKFONTSCALE, $(DESTDIR)dest)); \			@@@@\
	else (set -x; \							@@@@\
	  InstallInline(fonts.scale,$(INSTDATFLAGS),dest)); \		@@@@\
	fi								@@@@\
	RemoveFile($(DESTDIR)dest/fonts.dir)				@@@@\
	RunProgram(MKFONTDIR, $(MKFONTDIROPTS) $(DESTDIR)dest)
# else
#  define InstallFontsDir(dest)
# endif
#endif

/*
 * InstallFontObjs - generate rules to install font files
 */
#ifndef InstallFontObjs
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define InstallFontObjs(objs,dest)					@@@@\
InstallMultipleFlags(objs,dest,$(INSTDATFLAGS))				@@@@\
									@@@@\
InstallFontsDir(dest)
# else
#  define InstallFontObjs(objs,dest)
# endif
#endif /* InstallFontObjs */


/*
 * InstallFonts - generate rules to install font files
 */
#ifndef InstallFonts
#define InstallFonts(dest)						@@@@\
InstallFontObjs($(OBJS),dest)
#endif /* InstallFonts */


/*
 * InstallFontAliases - generate rules to install font aliases databases.
 */
#ifndef InstallFontAliases
#define InstallFontAliases(dest)					@@@@\
InstallTarget(install,fonts.alias,$(INSTDATFLAGS),dest)
#endif /* InstallFontAliases */

#ifndef InstallNamedFontAliases
#define InstallNamedFontAliases(src,dest)				@@@@\
InstallNamedTarget(install,src,$(INSTDATFLAGS),dest,fonts.alias)
#endif /* InstallNamedFontAliases */

#ifndef FontSrc
#define FontSrc(basename) basename.bdf
#endif

#ifndef FontBaseObj
#define FontBaseObj(basename)basename.pcf
#endif

/*
 * InstallFontScale - generate rules to install font scale database.
 */
#ifndef InstallFontScale
#define InstallFontScale(dest)						@@@@\
InstallTarget(install,fonts.scale,$(INSTDATFLAGS),dest)
#endif /* InstallFontScale */

/*
 * UncompressedFontTargetLong
 */
#if ! CrossCompiling || UseInstalledOnCrossCompile
# ifndef UncompressedFontTargetLong
#  define UncompressedFontTargetLong(sname,tname)			@@@@\
FontBaseObj(tname):  FontSrc(sname)					@@@@\
	RunProgram(FONTC,$(FONTCFLAGS) $? -o $@@)
# endif /* UncompressedFontTargetLong */
#else
# ifndef UncompressedFontTargetLong
#  define UncompressedFontTargetLong(sname,tname)
# endif
#endif

/*
 * CompressedFontTarget
 */
#ifndef GzipFontCompression
#define GzipFontCompression NO
#endif

#if ! CrossCompiling || UseInstalledOnCrossCompile
# ifndef CompressedFontTargetLong
#  if GzipFontCompression
#   define CompressedFontTargetLong(sname,tname)			@@@@\
FontBaseObj(tname).gz:  FontSrc(sname)					@@@@\
	RunProgram(FONTC,$(FONTCFLAGS) $?) | $(GZIPCMD) > $@@		@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(FontBaseObj(tname).gz)
#  else
#   define CompressedFontTargetLong(sname,tname)			@@@@\
FontBaseObj(tname).Z:  FontSrc(sname)					@@@@\
	RunProgram(FONTC,$(FONTCFLAGS) $?) | $(COMPRESS) > $@@		@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(FontBaseObj(tname).Z)
#  endif
# endif /* CompressedFontTargetLong */
#else
#   define CompressedFontTargetLong(sname,tname)
#endif

/*
 * UncompressedFontTarget
 */
#ifndef UncompressedFontTarget
#define UncompressedFontTarget(basename) UncompressedFontTargetLong(basename,basename)
#endif /* UncompressedFontTarget */

#ifndef CompressedFontTarget
#define CompressedFontTarget(basename) CompressedFontTargetLong(basename,basename)
#endif /* CompressedFontTarget */

#if !defined(FontTarget) && !defined(FontObj)
#if CompressAllFonts
#define FontTargetLong(sname,tname) CompressedFontTargetLong(sname,tname)
#define FontTarget(basename) CompressedFontTarget(basename)
#if GzipFontCompression
#define FontObj(basename) FontBaseObj(basename).gz
#else
#define FontObj(basename) FontBaseObj(basename).Z
#endif
#else
#define FontTargetLong(sname,tname) UncompressedFontTargetLong(sname,tname)
#define FontTarget(basename) UncompressedFontTarget(basename)
#define FontObj(basename) FontBaseObj(basename)
#endif /* CompressAllFonts */
#endif


#ifndef EncObj
#define EncObj(basename) basename.enc
#endif
#ifndef EncObjComp
#if GzipFontCompression
#define EncObjComp(basename) basename.enc.gz
#else
#define EncObjComp(basename) basename.enc.Z
#endif
#endif

#ifndef EncodingTarget
#define EncodingTarget(basename) /**/
#endif

#ifndef CompEncodingTarget
#if GzipFontCompression
#define CompEncodingTarget(basename)					@@@@\
EncObjComp(basename): EncObj(basename)					@@@@\
	cat $? | $(GZIPCMD) > $@@
#else
#define CompEncodingTarget(basename)					@@@@\
EncObjComp(basename): EncObj(basename)					@@@@\
	cat $? | $(COMPRESS) > $@@
#endif
#endif

#ifndef MakeEncDir
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define MakeEncDir(deplist,inst,dirlist )				@@@@\
AllTarget(encodings.dir)						@@@@\
									@@@@\
encodings.dir: deplist							@@@@\
	RemoveFiles(encodings.dir fonts.dir)				@@@@\
	@@(E=; for i in dirlist; do \					@@@@\
	   E="$$E -e $$i"; done; \					@@@@\
	 set -x; \							@@@@\
	 RunProgram(MKFONTDIR, -n -r -p inst/ $$E .))			@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(fonts.dir encodings.dir)
# else
#  define MakeEncDir(deplist,inst,dirlist )				@@@@\
clean::									@@@@\
	RemoveFiles(fonts.dir encodings.dir)
# endif
#endif

#ifndef MakeEncodings
#define MakeEncodings(deplist,inst,dirlist)				@@@@\
									@@@@\
MakeEncDir(deplist $(OBJS),inst,dirlist)				@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(*.enc.Z *.enc.gz)
#endif /* MakeEncodings */

#ifndef InstallEncObjs
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define InstallEncObjs(objs,dest)					@@@@\
InstallMultipleFlags(objs,dest,$(INSTDATFLAGS))				@@@@\
									@@@@\
InstallTarget(install,encodings.dir,$(INSTDATFLAGS),dest)
# else
#  define InstallEncObjs(objs,dest)
# endif
#endif /* InstallEncObjs */

#ifndef InstallEncodings
#define InstallEncodings(dest)						@@@@\
InstallEncObjs($(OBJS),dest)
#endif /* InstallEncodings */

#ifndef InstallEncodingsDir
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define InstallEncodingsDir(edir,fdir)				@@@@\
InstallNamedTarget(install,edir/encodings.dir,$(INSTDATFLAGS),fdir,encodings.dir)
# else
#  define InstallEncodingsDir(edir,fdir)
# endif
#endif


#ifndef MakeBdfFontFromUCSMaster
#define MakeBdfFontFromUCSMaster(font,enc)				@@@@\
font-enc.bdf: font.bdf $(UCS2ANY)					@@@@\
	RemoveFile($@@)							@@@@\
	$(UCS2ANY) font.bdf $(UCSMAPPREFIX)enc enc			@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(font-enc.bdf)
#endif

#ifndef MakeTruncatedUCSBdfFont
#if HasPerl5
#define MakeTruncatedUCSBdfFont(font,trunc,name)			@@@@\
name.bdf: font.bdf $(BDFTRUNCATE)					@@@@\
	RemoveFile($@@)							@@@@\
	RunPerlScript($(BDFTRUNCATE),trunc < font.bdf > name.bdf)	@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(name.bdf)
#endif
#endif


/*
 * MakeXkbDir
 */
#ifndef MakeXkbDir
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define MakeXkbDir(basedir,subdir)					@@@@\
all::   Concat(subdir,.dir)						@@@@\
									@@@@\
Concat(subdir,.dir):							@@@@\
	RemoveFile(Concat(subdir,.dir))					@@@@\
	$(XKBCOMPCMD) -lfhlpR -o Concat(subdir,.dir) '*'		@@@@\
									@@@@\
InstallTarget(install,Concat(subdir,.dir),$(INSTDATFLAGS),basedir)	@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(Concat(subdir,.dir))
# else
#  define MakeXkbDir(basedir,subdir)					@@@@\
clean::									@@@@\
	RemoveFile(Concat(subdir,.dir))
# endif
#endif

/*
 * PostProcessTroffPS - by default moves the working output into place,
 * but can be a hook for more complicated post-processing.
 */
#ifndef PostProcessTroffPS
#define PostProcessTroffPS(temp,real) $(MV) temp real
#endif

/*
 * PostProcessTroffHTML - by default moves the working output into place,
 * but can be a hook for more complicated post-processing.
 */
#ifndef PostProcessTroffHTML
#define PostProcessTroffHTML(temp,real) $(MV) temp real
#endif

#ifdef HTMLroffCmd
#define HtmlTarget(file) file.html
#define HtmlClean(file) file.nhtml file.html file*.png
#else
#define HtmlTarget(file) /**/
#define HtmlClean(file) /**/
#endif

#ifdef PsToPdfCmd
#define PdfTarget(file) file.pdf
#define PdfClean(file) file.pdf
#else
#define PdfTarget(file) /**/
#define PdfClean(file) /**/
#endif

#ifndef ConvertPsToPdf
#ifdef PsToPdfCmd
#define ConvertPsToPdf(file)						@@@@\
file.pdf: file.ps							@@@@\
	RemoveFile(file.pdf)						@@@@\
	$(PSTOPDFCMD) < file.ps > file.pdf
#else
#define ConvertPsToPdf(file) /**/
#endif
#endif

#if HasPdfLatex
#define PdfLatexTarget(file) file.pdf
#define PdfLatexClean(file) file.pdf
#else
#define PdfLatexTarget(file) /**/
#define PdfLatexClean(file) /**/
#endif

#ifndef LatexToPdf
#if HasPdfLatex && defined(PdfLatexCmd)
#define LatexToPdf(file)						@@@@\
file.pdf: file.tex							@@@@\
	RemoveFile(file.pdf)						@@@@\
	$(PDFLATEXCMD) file.tex
#else
#define LatexToPdf(file) /**/
#endif
#endif


#ifndef MakeDepSimpleHtmlDoc
#ifdef HTMLroffCmd
#define MakeDepSimpleHtmlDoc(file,deps,srcs)				@@@@\
HtmlTarget(file): deps							@@@@\
	$(HTMLROFF) $(MSMACROS) $(XDOCMACROS) Concat(-P-I,file) srcs \		@@@@\
		2> index.raw > file.nhtml \				@@@@\
	  && PostProcessTroffHTML(file.nhtml,$@@)
#else
#define MakeDepSimpleHtmlDoc(file,deps,srcs) /**/
#endif
#endif

#ifndef MakeTblHtmlDoc
#ifdef HTMLroffCmd
#define MakeTblHtmlDoc(file,srcs)					@@@@\
file.html: srcs								@@@@\
	$(TBL) $(XDOCMACROS) srcs | $(HTMLROFF) $(MSMACROS) Concat(-P-I,file) \	@@@@\
		2> index.raw > file.nhtml \				@@@@\
	  && PostProcessTroffHTML(file.nhtml,$@@)
#else
#define MakeTblHtmlDoc(file,srcs) /**/
#endif
#endif

#ifndef MakeEqnHtmlDoc
#ifdef HTMLroffCmd
#define MakeEqnHtmlDoc(file,srcs)					@@@@\
file.html: srcs								@@@@\
	@@if [ X$(NOHTML) = X ]; then \					@@@@\
	  (set -x; \							@@@@\
	    $(TBL) $(XDOCMACROS) srcs | \				@@@@\
		$(EQN) | $(HTMLROFF) $(MSMACROS) Concat(-P-I,file) \	@@@@\
		2> index.raw > file.nhtml \				@@@@\
	      && PostProcessTroffHTML(file.nhtml,$@@)); else \		@@@@\
		: > file.html; fi
#else
#define MakeEqnHtmlDoc(file,srcs) /**/
#endif
#endif


#ifndef MakeDepSimpleDoc
#define MakeDepSimpleDoc(file,deps,srcs)				@@@@\
all:: file.ps file.txt HtmlTarget(file) PdfTarget(file)			@@@@\
.PRECIOUS: file.ps							@@@@\
									@@@@\
file.ps: deps								@@@@\
	-$(TROFF) $(MSMACROS) $(XDOCMACROS) srcs \			@@@@\
		2> index.raw > file.nps \				@@@@\
	&& PostProcessTroffPS(file.nps,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw | grep -v warning; then exit 1; \	@@@@\
		else test $$? -le 1; fi					@@@@\
									@@@@\
file.txt: deps								@@@@\
	$(NROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw | \	@@@@\
		 $(COL) $(COLFLAGS) > $@@				@@@@\
									@@@@\
MakeDepSimpleHtmlDoc(file,deps,srcs)					@@@@\
									@@@@\
ConvertPsToPdf(file)							@@@@\
									@@@@\
clean::									@@@@\
	$(RM) index.raw file.nps file.ps file.txt HtmlClean(file) PdfClean(file)
#endif

#ifndef MakeSimpleDoc
#define MakeSimpleDoc(file,srcs) MakeDepSimpleDoc(file,srcs,srcs)
#endif

#ifndef MakeTblDoc
#define MakeTblDoc(file,srcs)						@@@@\
all:: file.ps file.txt HtmlTarget(file) PdfTarget(file)			@@@@\
.PRECIOUS: file.ps							@@@@\
									@@@@\
file.ps: srcs								@@@@\
	-$(TBL) $(XDOCMACROS) srcs | $(TROFF) $(MSMACROS) \		@@@@\
		2> index.raw > file.nps \				@@@@\
	&& PostProcessTroffPS(file.nps,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw | grep -v warning; then exit 1; \	@@@@\
		else test $$? -le 1; fi					@@@@\
									@@@@\
file.txt: srcs								@@@@\
	$(TBL) $(XDOCMACROS) srcs | $(NROFF) $(MSMACROS) 2> index.raw \	@@@@\
		| $(COL) $(COLFLAGS) > $@@				@@@@\
									@@@@\
MakeTblHtmlDoc(file,srcs)						@@@@\
									@@@@\
ConvertPsToPdf(file)							@@@@\
									@@@@\
clean::									@@@@\
	$(RM) index.raw file.nps file.ps file.txt HtmlClean(file) PdfClean(file)
#endif

#ifndef MakeEqnDoc
#define MakeEqnDoc(file,srcs)						@@@@\
all:: file.ps file.txt HtmlTarget(file) PdfTarget(file)			@@@@\
.PRECIOUS: file.ps							@@@@\
									@@@@\
file.ps: srcs								@@@@\
	-$(TBL) $(XDOCMACROS) srcs | $(EQN) | $(TROFF) $(MSMACROS) \	@@@@\
		2> index.raw > file.nps \				@@@@\
	&& PostProcessTroffPS(file.nps,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw | grep -v warning; then exit 1; \	@@@@\
		else test $$? -le 1; fi					@@@@\
									@@@@\
file.txt: srcs								@@@@\
	$(TBL) $(XDOCMACROS) srcs | $(NEQN) | $(NROFF) $(MSMACROS) \	@@@@\
		2> index.raw | $(COL) $(COLFLAGS) > $@@			@@@@\
									@@@@\
MakeEqnHtmlDoc(file,srcs)						@@@@\
									@@@@\
ConvertPsToPdf(file)							@@@@\
									@@@@\
clean::									@@@@\
	$(RM) index.raw file.nps file.ps file.txt HtmlClean(file) PdfClean(file)
#endif

#ifndef MakeDocIndex
#define MakeDocIndex(file,srcs)						@@@@\
all:: file.idx.ps							@@@@\
									@@@@\
file.idx.ps: srcs index.raw						@@@@\
	sed -n '$$p' index.raw > index.pageno				@@@@\
	grep '^[1-9]' index.raw | \					@@@@\
		(sort -f '-t:' -k2,2 -k1,1n 2>/dev/null || \		@@@@\
		 sort -f '-t:' +1 -3 +0n -1n) | \			@@@@\
		awk -f $(DOCUTILSRC)/fixindex.awk | \			@@@@\
		awk -f $(DOCUTILSRC)/block.awk > index.troff		@@@@\
	cat srcs $(XIDXMACROS) index.troff | \				@@@@\
		$(TROFF) -me > file.idx.nps && \			@@@@\
		$(MV) file.idx.nps $@@					@@@@\
	$(RM) index.troff index.pageno					@@@@\
									@@@@\
clean::									@@@@\
	$(RM) index.troff index.pageno file.idx.nps file.idx.ps
#endif

#ifndef MakeLatexDoc
#if HasLatex
#define MakeLatexDoc(file,src)						@@@@\
all:: file.ps PdfLatexTarget(file)					@@@@\
									@@@@\
file.dvi: src								@@@@\
	$(LATEX) src							@@@@\
									@@@@\
file.ps: file.dvi							@@@@\
	$(DVIPS) -o file.nps file && $(MV) file.nps $@@			@@@@\
									@@@@\
LatexToPdf(file)							@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(file.nps file.ps file.dvi file.log)			@@@@\
	RemoveFiles(file.aux file.toc file.lof file.lot)		@@@@\
	$(RM) PdfLatexClean(file)
#else /* HasLatex */
#define MakeLatexDoc(file,src)						@@@@\
all::									@@@@\
file.ps: src								@@@@\
	@@echo "cannot make file.ps: no latex on this system"; exit 1
#endif /* HasLatex (else) */
#endif /* MakeLatexDoc */

#ifndef InstallDoc
#define InstallDoc(name,deps)						@@@@\
install::								@@@@\
	MakeDir($(DESTDIR)$(DOCPSDIR))					@@@@\
	@@if [ -f name.ps -a X$(NOPS) = X ]; then set -x; \		@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.ps \		@@@@\
		$(DESTDIR)$(DOCPSDIR); \				@@@@\
	fi								@@@@\
	RemoveOldFile(name.ps,name.PS,$(DOCPSDIR))			@@@@\
	MakeDir($(DESTDIR)$(DOCDIR))					@@@@\
	@@if [ -f name.txt -a X$(NOTXT) = X ]; then set -x; \		@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.txt \		@@@@\
		$(DESTDIR)$(DOCDIR); \					@@@@\
	fi								@@@@\
	RemoveOldFile(name.txt,name.TXT,$(DOCDIR))			@@@@\
	MakeDir($(DESTDIR)$(DOCHTMLDIR))				@@@@\
	@@if [ -f name.html -a X$(NOHTML) = X ]; then (set -x; \		@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.html \	@@@@\
		$(DESTDIR)$(DOCHTMLDIR)); \				@@@@\
	  for i in name*.png; do \					@@@@\
	    if [ -f $$i ]; then (set -x; \				@@@@\
	      $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) $$i \		@@@@\
		$(DESTDIR)$(DOCHTMLDIR)); \				@@@@\
	    fi; \							@@@@\
	  done; \							@@@@\
	fi								@@@@\
	MakeDir($(DESTDIR)$(DOCPDFDIR))					@@@@\
	@@if [ -f name.pdf -a X$(NOPDF) = X ]; then set -x; \		@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.pdf \		@@@@\
		$(DESTDIR)$(DOCPDFDIR); \				@@@@\
	fi
#endif

#ifndef InstallRoffDoc
#define InstallRoffDoc(name) InstallDoc(name,name.ps name.txt)
#endif

#ifndef InstallLatexDoc
#if HasLatex
#define InstallLatexDoc(name) InstallDoc(name,name.ps)
#else
#define InstallLatexDoc(name)
#endif
#endif

#ifndef InstallHardcopyDoc
#define InstallHardcopyDoc(name,deps)					@@@@\
all:: name.ps PdfTarget(name)						@@@@\
									@@@@\
name.ps: deps								@@@@\
	@@if [ -f name.PS.gz ]; then set -x; \				@@@@\
	  RemoveFile(name.ps); \					@@@@\
	  gzip -d < name.PS.gz > name.ps; \				@@@@\
	fi								@@@@\
	@@if [ -f name.PS ]; then set -x; \				@@@@\
	  RemoveFile(name.ps); \					@@@@\
	  $(LN) name.PS name.ps; \					@@@@\
	fi								@@@@\
									@@@@\
ConvertPsToPdf(name)							@@@@\
									@@@@\
clean::									@@@@\
	$(RM) name.ps PdfClean(name)					@@@@\
									@@@@\
InstallDoc(name,deps)
#endif

/*
 * Rule for maintainers to use to updated generated copies of fonts in the
 * source tree.  Use with care.
 */

#ifndef UpdateDerivedFont
#define UpdateDerivedFont(src,dst)					@@@@\
update.fonts:: src							@@@@\
	-@@if [ -f dst ]; then \						@@@@\
	    if [ "$(FORCEUPDATE)" = yes ]; then \			@@@@\
		if [ "$(FOLLOWLINK)" = no ]; then \			@@@@\
			(set -x; $(RM) dst); \				@@@@\
		fi; \							@@@@\
		set -x; cp src dst; \					@@@@\
	    else \							@@@@\
		grep -v "XFree86:" src > __tmp1__; \			@@@@\
		grep -v "XFree86:" dst > __tmp2__; \			@@@@\
		if diff __tmp1__ __tmp2__ > /dev/null 2>&1; then :; \	@@@@\
		else \							@@@@\
			if [ "$(FOLLOWLINK)" = no ]; then \		@@@@\
				(set -x; $(RM) dst); \			@@@@\
			fi; \						@@@@\
			set -x; cp src dst; \					@@@@\
		fi; \							@@@@\
	    fi; \							@@@@\
	fi								@@@@\
	@@$(RM) __tmp1__ __tmp2__
#endif

#if !HasFreetype2
      FT2PRELOADPATTERN = libfreetype.so.?
#endif
#if !HasFontconfig
       FCPRELOADPATTERN = libfontconfig.so.?
#endif
      XFTPRELOADPATTERN = libXft.so.?
  XRENDERPRELOADPATTERN = libXrender.so.?
    XFONTPRELOADPATTERN = libXfont*.so.?

@


1.9
log
@Resolve conflicts from import of XFree86 4.5.0.
@
text
@@


1.8
log
@Resolve conflicts from import of XFree86 4.4.0.
@
text
@d3 47
a49 6
XCOMM $Xorg: X11.tmpl,v 1.6 2000/08/17 19:41:46 cpqbld Exp $
XCOMM
XCOMM
XCOMM
XCOMM
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.249 2004/02/16 18:14:33 dawes Exp $
d83 2
a84 3
/* X.Org release string */
#ifndef XOrgReleaseString
#define XOrgReleaseString	Release 6.6
d87 2
a88 2
#ifndef XOrgManNameString
#define XOrgManNameString	X Version 11
d91 2
a92 5
XORGRELSTRING = XOrgReleaseString
XORGMANNAME = XOrgManNameString

#ifndef XOrgManDefs
#define XOrgManDefs -D__xorgversion__='"$(XORGRELSTRING)" "$(XORGMANNAME)"'
d96 1
a96 4
#define XVendorManNameString XOrgManNameString
#endif
#ifndef XVendorManVersionString
#define XVendorManVersionString XOrgReleaseString
d132 9
d142 2
a143 1
#define BuildLibraries		(!BuildServersOnly || BuildClients)
d151 3
a171 3
#ifndef XTTInLibFont
#define XTTInLibFont		NO
#endif
a294 12
#ifndef HasXAudio
#define HasXAudio		NO
#endif
#ifndef BuildXAudio
#define BuildXAudio		(HasXAudio & HasCplusplus)
#endif
#ifndef HasXAServer
#define HasXAServer		NO
#endif
#ifndef BuildXAServer
#define BuildXAServer		(HasXAServer & HasCplusplus)
#endif
d350 3
a352 1
#define BuildXInputLib		(BuildXInputExt && !BuildServersOnly)
d376 2
a377 1
				 XprtServer || KDriveXServer)
d384 2
a385 1
#define BuildFontCacheLib	(BuildFontCache && !BuildServersOnly)
d406 39
d452 2
a453 1
#define BuildXKBlib		(BuildXKB && !BuildServersOnly)
d456 2
a457 1
#define BuildXKBuilib		(BuildXKB && !BuildServersOnly)
d460 2
a461 1
#define BuildXKBfilelib		(BuildXKB && !BuildServersOnly)
d467 2
a468 1
#define BuildXTrapLibrary	(BuildXTrap && !BuildServersOnly)
d492 10
a501 1
#define BuildXineramaLibrary	(BuildXinerama && !BuildServersOnly)
d528 14
d543 2
a544 1
#define BuildXprintLib		(BuildXprint && !BuildServersOnly)
d550 2
a551 1
#define BuildScreenSaverLibrary	(BuildScreenSaverExt && !BuildServersOnly)
d557 2
a558 1
#define BuildXF86VidModeLibrary (BuildXF86VidModeExt && !BuildServersOnly)
d564 2
a565 1
#define BuildXF86MiscLibrary	(BuildXF86MiscExt && !BuildServersOnly)
d574 2
a575 1
#define BuildXF86DGALibrary	(BuildXF86DGA && !BuildServersOnly)
d581 3
a583 1
#define BuildXResLibrary        (BuildXResExt && !BuildServersOnly)
d589 2
a590 1
#define BuildXvLibrary		(BuildXvExt && !BuildServersOnly)
d596 2
a597 1
#define BuildXvMCLibrary	(BuildXvMCExt && !BuildServersOnly)
a603 1
#undef  BuildXF86DRM
a605 1
#define BuildXF86DRM			NO
d610 5
a614 1
#define BuildGLXLibrary		(BuildGlxExt && !BuildServersOnly)
d630 2
a631 1
#define BuildXF86RushLibrary	(BuildXF86RushExt && !BuildServersOnly)
d634 1
a634 1
#define BuildDPSLibraries	!BuildServersOnly
d652 2
a653 1
#define BuildRenderLibrary	!BuildServersOnly
d675 2
a676 1
#define UseExpat		(UseFontconfig)
d687 2
a688 3
/* For FreeType 1.x */
#ifndef Freetype1BuildDefines
#define Freetype1BuildDefines	Freetype2BuildDefines
d695 1
a695 1
#define BuildRandRLibrary	!BuildServersOnly
d797 1
a797 1
#define HasXdmAuth		NO	/* if you can not use XDM-AUTH* */
d986 3
d1327 7
d1335 1
a1335 1
#define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines ServerSnprintfDefines
d1713 1
d1715 3
d1761 1
a1770 1
      XORGMANDEFS = XOrgManDefs
d1821 3
d1850 3
d1874 2
d1888 3
d1903 2
d1917 3
d1932 2
d1946 3
d1961 2
d1975 3
d1990 2
d2004 3
d2019 2
d2033 3
d2048 2
d2062 3
d2077 2
d2091 3
d2106 2
d2118 4
a2121 1
#define SharedLibXRes           HasSharedLibraries
d2124 1
a2124 1
#define NormalLibXRes           (!SharedLibXRes || ForceNormalLib)
d2127 1
a2127 1
#define DebugLibXRes            NO
d2130 1
a2130 1
#define ProfileLibXRes          NO
d2135 2
d2149 3
d2164 2
d2178 3
d2193 2
d2207 3
d2222 2
d2236 3
d2251 2
d2265 3
d2280 2
d2294 3
d2309 2
d2323 3
d2338 2
d2352 3
d2367 2
d2381 3
d2396 2
d2410 3
d2447 2
d2464 3
d2483 2
d2496 3
d2555 1
a2555 1
#define SharedXxf86dgaRev 1.0
d2562 33
d2648 9
d2770 3
d2796 3
d2825 3
d2854 3
d2879 3
d2904 3
d2929 3
d2954 3
a2978 23
#ifndef SharedLibXa
#define SharedLibXa	(HasSharedLibraries & HasCplusplus)
#endif
#ifndef NormalLibXa
/* #define NormalLibXa	((!SharedLibXa | ForceNormalLib) & HasCplusplus) */
#define NormalLibXa	YES /* needed for current tests, will correct later */
#endif
#ifndef DebugLibXa
#define DebugLibXa	NO	/* debugged audio library */
#endif
#ifndef ProfileLibXa
#define ProfileLibXa	NO	/* profiled audio library */
#endif
       XALIBSRC = $(LIBSRC)/Xa
#if SharedLibXa
#ifndef SharedXaRev
#define SharedXaRev 1.0
#endif
SharedLibReferences(XA,Xa,$(XALIBSRC),SOXAREV,SharedXaRev)
#else
UnsharedLibReferences(XA,Xa,$(XALIBSRC))
#endif

d2982 3
d3012 3
d3038 3
d3063 3
d3090 3
d3115 3
d3140 3
d3165 3
d3190 3
d3223 3
d3248 3
d3277 3
d3292 1
a3292 1
 * FreeType 2.1.4
d3297 1
a3297 1
 * current:revision:age = 9:3:3
d3304 1
a3304 1
#define Freetype2Version 9.3.3
d3309 1
a3309 1
#define SharedLibtoolFreetype2Rev	9:3:3
d3391 3
d3499 3
d3539 3
d3575 3
d3769 3
d3844 3
d3897 3
d3986 1
a3986 1
all:: fonts.cache							@@@@\
d3988 1
a3988 1
fonts.cache: deplist							@@@@\
d4067 3
a4069 1
	RemoveFiles(*.pcf *.pcf.Z *.pcf.gz)
d4075 3
a4077 1
	RemoveFiles(*.pcf *.pcf.Z *.pcf.gz)
d4179 4
a4182 1
	RunProgram(FONTC,$(FONTCFLAGS) $?) | $(GZIPCMD) > $@@
d4186 4
a4189 1
	RunProgram(FONTC,$(FONTCFLAGS) $?) | $(COMPRESS) > $@@
d4444 4
a4447 1
	$(TBL) $(XDOCMACROS) srcs | $(EQN) | $(HTMLROFF) $(MSMACROS) Concat(-P-I,file) \ @@@@\
d4449 2
a4450 1
	  && PostProcessTroffHTML(file.nhtml,$@@)
d4580 1
a4580 1
install:: deps								@@@@\
@


1.8.6.1
log
@Apply patch (requested by jmc in ticket #114):
Update XFree86 to version 4.5.0.
@
text
@d3 6
a8 47
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.277 2005/03/01 03:48:45 dawes Exp $
/*
 * Copyright (c) 1994-2005 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
d42 3
a44 2
#ifndef XVendorString
# define XVendorString  "The XFree86 Project, Inc"
d47 2
a48 2
#ifndef XVendorRelease
# define XVendorRelease 40400000
d51 5
a55 2
#ifndef XVendorManVersionString
#define XVendorManVersionString 4.x
d59 4
a62 1
#define XVendorManNameString XFree86
a97 9
#ifndef BuildDmx
#define BuildDmx		YES
#endif
#ifndef XdmxServer
#define XdmxServer		BuildDmx && BuildServer
#endif
#ifndef BuildLibrariesForDmx
#define BuildLibrariesForDmx	XdmxServer
#endif
d99 1
a99 2
#define BuildLibraries		(!BuildServersOnly || BuildClients || \
				 BuildLibrariesForDmx)
a106 3
#ifndef OmitSnfSupport
#define OmitSnfSupport		NO
#endif
d125 3
d251 12
d318 1
a318 3
#define BuildXInputLib		(BuildXInputExt && \
				 BuildLibraries && \
				 (!BuildServersOnly || BuildLibrariesForDmx))
d342 1
a342 2
				 XprtServer || XdmxServer || \
				 (defined(TinyXServer) && TinyXServer))
d349 1
a349 2
#define BuildFontCacheLib	(BuildFontCache && !BuildServersOnly && \
				 BuildLibraries)
a369 39

#ifndef BuildTinyDIX
#if (defined(TinyXServer) && TinyXServer) && \
	!(defined(XF86Server) && XF86Server)
#define BuildTinyDIX		YES
#else
#define BuildTinyDIX		NO
#endif
#endif
#ifndef BuildSeparateTinyDIX
#if (defined(TinyXServer) && TinyXServer) && !BuildTinyDIX
#define BuildSeparateTinyDIX	YES
#else
#define BuildSeparateTinyDIX	NO
#endif
#endif
#ifndef TinyXExcludedExtensions
#define TinyXExcludedExtensions	-UXKB -UXINPUT -ULBX -UXAPPGROUP -UXCSECURITY \
				-UDPMSExtension -UPANORAMIX -UGLXEXT \
				-UXF86VIDMODE -UXF86MISC -UXFreeXDGA \
				-UXF86DRI -UEVI -UXRECORD -USCREENSAVER \
				-URES -UXV -UXPRINT -UDBE -UXTRAP -UFONTCACHE \
				-UXF86BIGFONT -UXSYNC -UTOGCUP
#endif
#ifndef TinyXFontDefines
#define TinyXFontDefines	/**/
#endif
#ifndef TinyXFontServerAccess
#define TinyXFontServerAccess	NO
#endif
#if !TinyXFontServerAccess
#define TinyXFontServerDefines	-DNOFONTSERVERACCESS
#else
#define TinyXFontServerDefines	/**/
#endif
#ifndef TinyDIXDefines
#define TinyDIXDefines		TinyXExcludedExtensions TinyXFontServerDefines
#endif

d377 1
a377 2
#define BuildXKBlib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
d380 1
a380 2
#define BuildXKBuilib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
d383 1
a383 2
#define BuildXKBfilelib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
d389 1
a389 2
#define BuildXTrapLibrary	(BuildXTrap && !BuildServersOnly && \
				 BuildLibraries)
d413 1
a413 10
#define BuildXineramaLibrary	(BuildXinerama && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildDmxDevelTools
#define BuildDmxDevelTools	NO
#endif
#ifndef BuildDmxLibrary
#define BuildDmxLibrary		(BuildDmx && \
				 (BuildDmxDevelTools || \
				  (!BuildServersOnly && BuildLibraries)))
a439 14
#if BuildXprint
#ifndef XpRasterDDX
#define XpRasterDDX		YES
#endif
#ifndef XpColorPclDDX
#define XpColorPclDDX		YES
#endif
#ifndef XpMonoPclDDX
#define XpMonoPclDDX		NO
#endif
#ifndef XpPostScriptDDX
#define XpPostScriptDDX		YES
#endif
#endif
d441 1
a441 2
#define BuildXprintLib		(BuildXprint && !BuildServersOnly && \
				 BuildLibraries)
d447 1
a447 2
#define BuildScreenSaverLibrary	(BuildScreenSaverExt && !BuildServersOnly && \
				 BuildLibraries)
d453 1
a453 2
#define BuildXF86VidModeLibrary (BuildXF86VidModeExt && !BuildServersOnly && \
				 BuildLibraries)
d459 1
a459 2
#define BuildXF86MiscLibrary	(BuildXF86MiscExt && !BuildServersOnly && \
				 BuildLibraries)
d468 1
a468 2
#define BuildXF86DGALibrary	(BuildXF86DGA && !BuildServersOnly && \
				 BuildLibraries)
d474 1
a474 3
#define BuildXResLibrary        (BuildXResExt && \
				 (BuildDmxDevelTools || \
				  (!BuildServersOnly && BuildLibraries)))
d480 1
a480 2
#define BuildXvLibrary		(BuildXvExt && !BuildServersOnly && \
				 BuildLibraries)
d486 1
a486 2
#define BuildXvMCLibrary	(BuildXvMCExt && !BuildServersOnly && \
				 BuildLibraries)
d493 1
d496 1
d501 1
a501 5
#define BuildGLXLibrary		(BuildGlxExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildGlxInDmx
#define BuildGlxInDmx		(XdmxServer && BuildGlxExt)
d517 1
a517 2
#define BuildXF86RushLibrary	(BuildXF86RushExt && !BuildServersOnly && \
				 BuildLibraries)
d520 1
a520 1
#define BuildDPSLibraries	(!BuildServersOnly && BuildLibraries)
d538 1
a538 2
#define BuildRenderLibrary	(XdmxServer || \
				 (!BuildServersOnly && BuildLibraries))
d560 1
a560 2
#define UseExpat		(UseFontconfig || \
				 (BuildXF86DRI && BuildGLXLibrary))
d571 3
a573 2
#ifndef UseMkfontscaleForMkfontdir
#define UseMkfontscaleForMkfontdir	NO
d580 1
a580 1
#define BuildRandRLibrary	(!BuildServersOnly && BuildLibraries)
d682 1
a682 1
#define HasXdmAuth		YES
a870 3
#ifndef DRMIncludesDir
#define DRMIncludesDir $(XF86OSSRC)/shared/drm/kernel
#endif
a1208 7
#ifndef ServerStrlcatDefines
#if !HasStrlcat
#define ServerStrlcatDefines -DNEED_STRLCAT
#else
#define ServerStrlcatDefines /**/
#endif
#endif
d1210 1
a1210 1
#define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines ServerSnprintfDefines ServerStrlcatDefines
a1587 1
#if UseMkfontscaleForMkfontdir
a1588 3
#else
        MKFONTDIR = $(CLIENTENVSETUP) $(PRELOADFONTSETUP) $(XBUILDBINDIR)/mkfontdir
#endif
a1631 1
   DRMINCLUDESDIR = DRMIncludesDir
d1641 1
a1691 3
#ifndef ExtraLibX11
#define ExtraLibX11 SharedLibX11
#endif
a1717 3
#ifndef ExtraLibXThrStub
#define ExtraLibXThrStub	SharedLibXThrStub
#endif
a1738 2
#undef  ExtraLibXThrStub
#define ExtraLibXThrStub	NO
a1750 3
#ifndef ExtraLibXss
#define ExtraLibXss	SharedLibXss
#endif
a1762 2
#undef  ExtraLibXss
#define ExtraLibXss	NO
a1774 3
#ifndef ExtraLibXxf86misc
#define ExtraLibXxf86misc	SharedLibXxf86misc
#endif
a1786 2
#undef  ExtraLibXxf86misc
#define ExtraLibXxf86misc	NO
a1798 3
#ifndef ExtraLibXxf86vm
#define ExtraLibXxf86vm		SharedLibXxf86vm
#endif
a1810 2
#undef  ExtraLibXxf86vm
#define ExtraLibXxf86vm	NO
a1822 3
#ifndef ExtraLibXxf86dga
#define ExtraLibXxf86dga	SharedLibXxf86dga
#endif
a1834 2
#undef  ExtraLibXxf86dga
#define ExtraLibXxf86dga	NO
a1846 3
#ifndef ExtraLibXxf86rush
#define ExtraLibXxf86rush	SharedLibXxf86rush
#endif
a1858 2
#undef  ExtraLibXxf86rush
#define ExtraLibXxf86rush	NO
a1870 3
#ifndef ExtraLibXv
#define ExtraLibXv		SharedLibXv
#endif
a1882 2
#undef  ExtraLibXv
#define ExtraLibXv		NO
a1894 3
#ifndef ExtraLibXvMC
#define ExtraLibXvMC		SharedLibXvMC
#endif
a1906 2
#undef  ExtraLibXvMC
#define ExtraLibXvMC		NO
a1918 3
#ifndef ExtraLibXinerama
#define ExtraLibXinerama	SharedLibXinerama
#endif
a1930 2
#undef  ExtraLibXinerama
#define ExtraLibXinerama	NO
d1941 1
a1941 4
#define SharedLibXRes		HasSharedLibraries
#endif
#ifndef ExtraLibXRes
#define ExtraLibXRes		SharedLibXRes
d1944 1
a1944 1
#define NormalLibXRes		(!SharedLibXRes || ForceNormalLib)
d1947 1
a1947 1
#define DebugLibXRes		NO
d1950 1
a1950 1
#define ProfileLibXRes		NO
a1954 2
#undef  ExtraLibXRes
#define ExtraLibXRes		NO
a1966 3
#ifndef ExtraLibDps
#define ExtraLibDps		SharedLibDps
#endif
a1978 2
#undef  ExtraLibDps
#define ExtraLibDps		NO
a1990 3
#ifndef ExtraLibDpsTk
#define ExtraLibDpsTk		SharedLibDpsTk
#endif
a2002 2
#undef  ExtraLibDpsTk
#define ExtraLibDpsTk		NO
a2014 3
#ifndef ExtraLibPSRes
#define ExtraLibPSRes		SharedLibPSRes
#endif
a2026 2
#undef  ExtraLibPSRes
#define ExtraLibPSRes		NO
a2038 3
#ifndef ExtraLibXrender
#define ExtraLibXrender		SharedLibXrender
#endif
a2050 2
#undef  ExtraLibXrender
#define ExtraLibXrender		NO
a2062 3
#ifndef ExtraLibXrandr
#define ExtraLibXrandr		SharedLibXrandr
#endif
a2074 2
#undef  ExtraLibXrandr
#define ExtraLibXrandr		NO
a2086 3
#ifndef ExtraLibXcursor
#define ExtraLibXcursor		SharedLibXcursor
#endif
a2098 2
#undef  ExtraLibXcursor
#define ExtraLibXcursor		NO
a2110 3
#ifndef ExtraLibAppleWM
#define ExtraLibAppleWM		SharedLibAppleWM
#endif
a2122 2
#undef  ExtraLibAppleWM
#define ExtraLibAppleWM		NO
a2134 3
#ifndef ExtraLibWindowsWM
#define ExtraLibWindowsWM	SharedLibWindowsWM
#endif
a2146 2
#undef  ExtraLibWindowsWM
#define ExtraLibWindowsWM	NO
a2158 3
#ifndef ExtraLibGlu
#define ExtraLibGlu		SharedLibGlu
#endif
a2170 2
#undef  ExtraLibGlu
#define ExtraLibGlu		NO
a2182 3
#ifndef ExtraLibGlx
#define ExtraLibGlx		SharedLibGlx
#endif
a2216 2
#undef  ExtraLibGlx
#define ExtraLibGlx		NO
a2231 3
#ifndef ExtraLibGLw
#define ExtraLibGLw		SharedLibGLw
#endif
a2247 2
#undef  ExtraLibGLw
#define ExtraLibGLw		NO
a2258 3
#ifndef ExtraLibXext
#define ExtraLibXext SharedLibXext
#endif
d2315 1
a2315 1
#define SharedXxf86dgaRev 1.1
a2321 33
#if BuildDmxLibrary
#ifndef SharedLibDmx
#define SharedLibDmx		HasSharedLibraries
#endif
#ifndef ExtraLibDmx
#define ExtraLibDmx		SharedLibDmx
#endif
#ifndef NormalLibDmx
#define NormalLibDmx		YES
#endif
#ifndef DebugLibDmx
#define DebugLibDmx		NO
#endif
#ifndef ProfileLibDmx
#define ProfileLibDmx		NO
#endif
#else
#ifndef SharedLibDmx
#define SharedLibDmx		NO
#endif
#ifndef ExtraLibDmx
#define ExtraLibDmx		NO
#endif
#ifndef NormalLibDmx
#define NormalLibDmx		NO
#endif
#ifndef DebugLibDmx
#define DebugLibDmx		NO
#endif
#ifndef ProfileLibDmx
#define ProfileLibDmx		NO
#endif
#endif
a2374 9
    DMXLIBSRC = $(LIBSRC)/dmx
#if SharedLibDmx
#ifndef SharedDmxRev
#define SharedDmxRev 1.0
#endif
SharedLibReferences(DMX,dmx,$(DMXLIBSRC),SODMXREV,SharedDmxRev)
#else
ProjectUnsharedLibReferences(DMX,dmx,$(DMXLIBSRC),XBuildLibDir)
#endif
a2487 3
# ifndef ExtraLibXfontcache
#  define ExtraLibXfontcache	SharedLibXfontcache
# endif
a2510 3
#ifndef ExtraLibXau
#define ExtraLibXau		SharedLibXau
#endif
a2536 3
#ifndef ExtraLibXdmcp
#define ExtraLibXdmcp		SharedLibXdmcp
#endif
a2562 3
#ifndef ExtraLibXmu
#define ExtraLibXmu SharedLibXmu
#endif
a2584 3
#ifndef ExtraLibXmuu
#define ExtraLibXmuu SharedLibXmuu
#endif
a2606 3
#ifndef ExtraOldX
#define ExtraOldX SharedOldX
#endif
a2628 3
#ifndef ExtraLibXp
#define ExtraLibXp SharedLibXp
#endif
a2650 3
#ifndef ExtraLibXt
#define ExtraLibXt SharedLibXt
#endif
d2673 23
a2698 3
#ifndef ExtraLibXaw
#define ExtraLibXaw SharedLibXaw
#endif
a2725 3
#ifndef ExtraLibXaw6
#define ExtraLibXaw6 SharedLibXaw6
#endif
a2748 3
#ifndef ExtraLibXi
#define ExtraLibXi SharedLibXi
#endif
a2770 3
#ifndef ExtraLibXtst
#define ExtraLibXtst SharedLibXtst
#endif
a2794 3
#ifndef ExtraLibICE
#define ExtraLibICE SharedLibICE
#endif
a2816 3
#ifndef ExtraLibSM
#define ExtraLibSM SharedLibSM
#endif
a2838 3
#ifndef ExtraLibXkey
#define ExtraLibXkey SharedLibXkey
#endif
a2860 3
#ifndef ExtraLibFS
#define ExtraLibFS		SharedLibFS
#endif
a2882 3
#ifndef ExtraLibFont
#define ExtraLibFont SharedLibFont
#endif
a2912 3
#ifndef ExtraLibFontEnc
#define ExtraLibFontEnc		SharedLibFontEnc
#endif
a2934 3
#ifndef ExtraLibXpm
#define ExtraLibXpm SharedLibXpm
#endif
a2960 3
#ifndef ExtraLibFreetype2
#define ExtraLibFreetype2 SharedLibFreetype2
#endif
d2973 1
a2973 1
 * FreeType 2.1.8
d2978 1
a2978 1
 * current:revision:age = 9:6:3
d2985 1
a2985 1
#define Freetype2Version 9.6.3
d2990 1
a2990 1
#define SharedLibtoolFreetype2Rev	9:6:3
a3071 3
#ifndef ExtraLibExpat
#define ExtraLibExpat SharedLibExpat
#endif
a3176 3
#ifndef ExtraLibXft1
#define ExtraLibXft1 SharedLibXft1
#endif
a3213 3
#ifndef ExtraLibXft
#define ExtraLibXft SharedLibXft
#endif
a3246 3
#ifndef ExtraLibFontconfig
#define ExtraLibFontconfig SharedLibFontconfig
#endif
a3437 3
# ifndef ExtraLibxkbfile
#  define ExtraLibxkbfile	SharedLibxkbfile
# endif
a3509 3
# ifndef ExtraLibxkbui
#  define ExtraLibxkbui		SharedLibxkbui
# endif
a3559 3
#ifndef ExtraLibXTrap
#define ExtraLibXTrap SharedLibXTrap
#endif
d3646 1
a3646 1
all:: fonts.cache-1							@@@@\
d3648 1
a3648 1
fonts.cache-1: deplist							@@@@\
d3727 1
a3727 3
	RemoveFiles(*.pcf)						@@@@\
	RemoveFiles(*.pcf.Z)						@@@@\
	RemoveFiles(*.pcf.gz)
d3733 1
a3733 3
	RemoveFiles(*.pcf)						@@@@\
	RemoveFiles(*.pcf.Z)						@@@@\
	RemoveFiles(*.pcf.gz)
d3835 1
a3835 4
	RunProgram(FONTC,$(FONTCFLAGS) $?) | $(GZIPCMD) > $@@		@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(FontBaseObj(tname).gz)
d3839 1
a3839 4
	RunProgram(FONTC,$(FONTCFLAGS) $?) | $(COMPRESS) > $@@		@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(FontBaseObj(tname).Z)
d4094 1
a4094 4
	@@if [ X$(NOHTML) = X ]; then \					@@@@\
	  (set -x; \							@@@@\
	    $(TBL) $(XDOCMACROS) srcs | \				@@@@\
		$(EQN) | $(HTMLROFF) $(MSMACROS) Concat(-P-I,file) \	@@@@\
d4096 1
a4096 2
	      && PostProcessTroffHTML(file.nhtml,$@@)); else \		@@@@\
		: > file.html; fi
d4226 1
a4226 1
install::								@@@@\
@


1.7
log
@Resolve conflicts from import of 2003-12-19 sources.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.196.2.3 2003/10/08 17:56:30 eich Exp $
a160 3
#ifndef UseKoi8RForCyrillic
#define UseKoi8RForCyrillic	YES
#endif
a313 9
#ifndef BuildPhigs
#define BuildPhigs		NO
#endif
#ifndef BuildPexExt
#define BuildPexExt		NO
#endif
#ifndef BuildPexLib
#define BuildPexLib		(BuildPexExt && !BuildServersOnly)
#endif
a372 14
#ifndef BuildXIE
	/*
	 * Turn off building XIE if you are building for low memory
	 * footprint
	 */
#if BuildLowMem
#define BuildXIE		NO
#else
#define BuildXIE		YES
#endif
#endif
#ifndef BuildXIElib
#define BuildXIElib		(BuildXIE && !BuildServersOnly)
#endif
a423 7
	/*
	 * Turn off building PEX if you are building for low memory
	 * footprint
	 */
#if BuildLowMem
#define BuildPexExt		NO
#endif
d471 1
a471 1
#define BuildXResExt            NO 
d504 1
a504 1
#define BuildOSMesaLib		(BuildGlxExt && defined(XFree86Version))
d553 2
a554 1
#define UseFreetype2		(BuildXftLibrary || BuildXft1Library || UseFontconfig)
d568 7
d577 1
a577 1
#define BuildRandR		BuildRender
d595 8
d696 1
a696 8
#if BuildCIDFonts
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
#else
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
#endif
#else
#if BuildCIDFonts
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
d698 1
a698 2
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
#endif
d741 32
d777 1
a777 5
#if HasDECnet
#define ConnectionFlags -DTCPCONN -DUNIXCONN -DDNETCONN
#else
#define ConnectionFlags -DTCPCONN -DUNIXCONN
#endif
d787 1
a787 1
#define ExtraConnectionDefs $(STICKY_DEFINES) $(FCHOWN_DEFINES)
a859 7
#ifndef PexDefines
#if BuildPexExt
#define PexDefines -DPEXEXT
#else
#define PexDefines /**/
#endif
#endif
a897 7
#ifndef XieDefines
#if BuildXIE
#define XieDefines -DXIE
#else
#define XieDefines /**/
#endif
#endif
d1116 1
a1116 1
	PexDefines ShmDefines XieDefines BigReqDefines VidModeExtensionDefines \
d1165 11
d1177 1
a1177 1
#define ServerXdmcpDefines -DXDMCP
d1202 3
a1204 15
#ifndef ServerDefines
#define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines
#endif
#ifndef PexDipexDefines
#define PexDipexDefines /**/
#endif
#ifndef PexDdpexDefines
#define PexDdpexDefines /**/
#endif
#ifndef PexPhigsDefines
#ifndef PexShmIPC
#define PexShmIPC HasShm
#endif
#if PexShmIPC
#define PexPhigsDefines /**/
d1206 1
a1206 1
#define PexPhigsDefines -DPEX_API_SOCKET_IPC
d1209 2
a1210 19
#ifndef PexClientDefines
#define PexClientDefines -DPEX_SI_PHIGS
#endif
#ifndef PhigsInclude
#ifdef UseInstalled
#define PhigsInclude -I$(INCDIR)/X11
#else
#define PhigsInclude -I$(BUILDINCDIR)
#endif
#endif
#ifndef PexCDebugFlags
#define PexCDebugFlags DebuggableCDebugFlags
#endif
#ifndef PexCCOptions
#ifdef LibraryCCOptions
#define PexCCOptions LibraryCCOptions
#else
#define PexCCOptions DefaultCCOptions
#endif
d1214 2
a1215 1
# if HasX86Support
d1266 1
a1266 1
#ifndef XTrueTypeCConvModule  
d1273 1
a1273 1
#ifndef XTrueTypeUseOptEncodings  
a1293 3
#ifndef XTTInLibXFont
#define XTTInLibXFont NO
#endif
d1368 3
d1390 3
a1425 3
#ifndef PexApiDir
#define PexApiDir $(LIBDIR)/PEX
#endif
d1505 1
a1505 1
#ifndef ResourceConfigurationManagement 
d1509 1
a1509 1
#ifndef XtPopdownConformance 
d1542 2
d1555 1
d1565 1
a1565 2
        PEXAPIDIR = PexApiDir		/* PEX support files */
      LBXPROXYDIR = LbxproxyDir	        /* lbxproxy files */
d1576 1
d1579 1
a1579 1
          UCS2ANY = $(BINDIR)/ucs2any
d1587 2
a1588 1
        MKFONTDIR = $(CLIENTENVSETUP) $(PRELOADFONTSETUP) $(XBUILDBINDIR)/mkfontdir
d1592 1
d1601 1
a1601 1
          UCS2ANY = $(FONTSRC)/util/ucs2any
d1656 1
a1656 1
   CLIENTENVSETUP = BuildLibPathVar=BuildLibPath
d1658 1
a1658 1
   CLIENTENVSETUP = 
d1667 3
d1710 2
d1869 1
a1869 1
#define SharedLibXv		YES
d2107 48
d2225 2
a2226 1
 * Don't make a shared GLw library because is would depend on Motif.
d2230 1
a2230 1
#define SharedLibGLw		NO	/* HasSharedLibraries */
d2233 1
a2233 1
#define NormalLibGLw		YES	/* (!SharedLibGLw | ForceNormalLib) */
d2242 2
a2243 1
#define GLwUseXmStubs		NO	/* create stub (weak) Motif symbols */
d2295 1
a2295 1
#define SharedXxf86miscRev 1.0
d2465 20
d2509 1
a2509 1
#define SharedLibXau 		NO
d2535 1
a2535 1
#define SharedLibXdmcp 		NO
d2586 1
a2586 1
#define NormalLibXmuu 		(!SharedLibXmuu | ForceNormalLib)
a2789 60
#ifndef SharedLibPex
#define SharedLibPex HasSharedLibraries
#endif
#ifndef NormalLibPex
#define NormalLibPex (!SharedLibPex | ForceNormalLib)
#endif
#ifndef DebugLibPex
#define DebugLibPex		NO	/* debugged PEX5 library */
#endif
#ifndef ProfileLibPex
#define ProfileLibPex		NO	/* profiled PEX5 library */
#endif
        PEXLIBSRC = $(LIBSRC)/PEX5
#if SharedLibPex
#ifndef SharedPexRev
#define SharedPexRev 6.0
#endif
SharedLibReferences(PEX,PEX5,$(PEXLIBSRC),SOPEXREV,SharedPexRev)
#else
ProjectUnsharedLibReferences(PEX,PEX5,$(PEXLIBSRC),XBuildLibDir)
#endif

#ifndef SharedLibXie
#define SharedLibXie HasSharedLibraries
#endif
#ifndef NormalLibXie
#define NormalLibXie (!SharedLibXie | ForceNormalLib)
#endif
#ifndef DebugLibXie
#define DebugLibXie		NO	/* debugged XIE library */
#endif
#ifndef ProfileLibXie
#define ProfileLibXie		NO	/* profiled XIE library */
#endif
        XIELIBSRC = $(LIBSRC)/XIE
#if SharedLibXie
#ifndef SharedXieRev
#define SharedXieRev 6.0
#endif
SharedLibReferences(XIE,XIE,$(XIELIBSRC),SOXIEREV,SharedXieRev)
#else
ProjectUnsharedLibReferences(XIE,XIE,$(XIELIBSRC),XBuildLibDir)
#endif

#ifndef SharedLibPhigs
#define SharedLibPhigs NO	/* XXX - haven't made it sharable yet */
#endif
#ifndef NormalLibPhigs
#define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
#endif
      PHIGSLIBSRC = $(LIBSRC)/PHIGS
#if SharedLibPhigs
#ifndef SharedPhigsRev
#define SharedPhigsRev 6.0
#endif
SharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),SOPHIGSREV,SharedPhigsRev)
#else
ProjectUnsharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),XBuildLibDir)
#endif

d2895 1
a2895 1
#define SharedFontRev 1.4
a2903 16
/*
 * There's no reason to use the statically built FreeType unless
 * you're using a loadable server.
 */
 
#ifndef FontLibSharedFreeType
#if BuildFreeType && UseFreetype2 && !DoLoadableServer 
#define FontLibSharedFreeType YES
#else
#define FontLibSharedFreeType NO
#endif
#endif

#if FontLibSharedFreeType
         FONTFT2LIB = $(FREETYPE2LIB)
#endif
d2907 1
a2907 1
            FONTLIB = $(XFONTLIB) $(FONTSTUBLIB) $(FONTFT2LIB)
d2972 12
a2983 1
/* FreeType 2.0.9, version_info 9:0:3 */
d2985 1
a2985 1
#define Freetype2Version 9.0.3
d2989 3
d3005 1
a3005 1
FREETYPE2INCDIR=$(INCDIR)/freetype2
d3007 1
a3007 1
FREETYPE2INCDIR=$(BUILDINCDIR)/freetype2
d3035 4
a3038 1
#define Freetype2IncDir Freetype2Dir/include/freetype2
d3054 4
d3059 5
a3063 1
FREETYPE2INCLUDES = -I$(FREETYPE2INCDIR)
d3083 11
a3093 1
/* Expat 1.95.2 */
d3095 1
a3095 1
#define ExpatVersion 1.95.2
d3099 3
d3103 5
a3107 1
#define SharedExpatRev 1.0
d3178 1
a3178 1
#define NormalLibXft1 		NO
a3239 2
XFTINCLUDES=$(FONTCONFIGINCLUDES) $(FREETYPE2INCLUDES)

d3279 1
a3279 1
	  
d3355 2
d3674 21
d3703 1
d3737 17
d3763 1
a3763 1
InstallTarget(install,fonts.dir,$(INSTDATFLAGS),dest)
d3780 1
a3780 1
 * InstallFontAliases - generate rules to install font aliases databases. 
a3958 2
includes:: font-enc.bdf							@@@@\
									@@@@\
a3969 2
includes:: name.bdf							@@@@\
									@@@@\
d4011 92
d4105 2
a4106 2
all:: file.PS file.txt							@@@@\
.PRECIOUS: file.PS							@@@@\
d4108 6
a4113 4
file.PS: deps								@@@@\
	-$(TROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > file.nPS \@@@@\
	&& PostProcessTroffPS(file.nPS,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw; then exit 1; else test $$? -le 1; fi @@@@\
d4116 6
a4121 1
	$(NROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw | $(COL) $(COLFLAGS) > $@@ @@@@\
d4124 1
a4124 1
	$(RM) index.raw file.nPS file.PS file.txt
d4133 2
a4134 2
all:: file.PS file.txt							@@@@\
.PRECIOUS: file.PS							@@@@\
d4136 6
a4141 4
file.PS: srcs								@@@@\
	-$(TBL) $(XDOCMACROS) srcs | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@@@\
	&& PostProcessTroffPS(file.nPS,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw; then exit 1; else test $$? -le 1; fi @@@@\
d4144 6
a4149 1
	$(TBL) $(XDOCMACROS) srcs | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) $(COLFLAGS) > $@@	@@@@\
d4152 1
a4152 1
	$(RM) index.raw file.nPS file.PS file.txt
d4157 2
a4158 2
all:: file.PS file.txt							@@@@\
.PRECIOUS: file.PS							@@@@\
d4160 6
a4165 4
file.PS: srcs								@@@@\
	-$(TBL) $(XDOCMACROS) srcs | $(EQN) | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@@@\
	&& PostProcessTroffPS(file.nPS,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw; then exit 1; else test $$? -le 1; fi @@@@\
d4168 6
a4173 1
	$(TBL) $(XDOCMACROS) srcs | $(NEQN) | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) $(COLFLAGS) > $@@ @@@@\
d4176 1
a4176 1
	$(RM) index.raw file.nPS file.PS file.txt
d4181 1
a4181 1
all:: file.idx.PS							@@@@\
d4183 1
a4183 1
file.idx.PS: srcs index.raw						@@@@\
d4185 8
a4192 3
	grep '^[1-9]' index.raw | (sort -f '-t:' -k1,1n 2>/dev/null || sort -f '-t:' +1 -3 +0n -1n) | awk -f $(DOCUTILSRC)/fixindex.awk | awk -f $(DOCUTILSRC)/block.awk > index.troff @@@@\
	cat srcs $(XIDXMACROS) index.troff | $(TROFF) -me > file.idx.nPS \@@@@\
	&& $(MV) file.idx.nPS $@@					@@@@\
d4196 1
a4196 1
	$(RM) index.troff index.pageno file.idx.nPS file.idx.PS
d4201 2
a4202 2
#define MakeLatexDoc(file,src)	 					@@@@\
all:: file.PS								@@@@\
d4204 1
a4204 1
file.dvi: src	  							@@@@\
d4207 4
a4210 2
file.PS: file.dvi							@@@@\
	$(DVIPS) -o file.nPS file && $(MV) file.nPS $@@			@@@@\
d4212 4
a4215 3
clean:: 								@@@@\
	RemoveFiles(file.nPS file.PS file.dvi file.log)			@@@@\
	RemoveFiles(file.aux file.toc file.lof file.lot)
d4217 1
a4217 1
#define MakeLatexDoc(file,src)	 					@@@@\
d4219 2
a4220 2
file.PS: src								@@@@\
	@@echo "cannot make file.PS: no latex on this system"; exit 1
d4228 3
a4230 2
	@@if [ -f name.PS ]; then set -x; \				@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.PS $(DESTDIR)$(DOCPSDIR); \ @@@@\
d4232 1
d4234 20
a4253 2
	@@if [ -f name.txt ]; then set -x; \				@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.txt $(DESTDIR)$(DOCDIR)/name.TXT; \ @@@@\
d4258 1
a4258 1
#define InstallRoffDoc(name) InstallDoc(name,name.PS name.txt)
d4263 1
a4263 1
#define InstallLatexDoc(name) InstallDoc(name,name.PS)
d4271 3
a4273 1
all:: deps								@@@@\
d4275 6
a4280 2
	  RemoveFile(name.PS); \					@@@@\
	  gzip -d < name.PS.gz > name.PS; \				@@@@\
d4283 2
d4286 1
a4286 3
	@@if [ -f name.PS.gz ]; then set -x; \				@@@@\
	  RemoveFile(name.PS); \					@@@@\
	fi								@@@@\
a4290 1

d4320 10
@


1.6
log
@Pull-in changes for XFree86-current which enable shared version of various
libraries (e.g. "libXss"). This fixes problems with various 3rd party
applications which required those shared versions.

Thanks to Matthieu Herrb for discussing this issue with the XFree86
core team.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.196 2003/02/25 21:57:52 dawes Exp $
d75 2
a76 2
#if CrossCompiling
# if defined UseInstalled && !defined UseInstalledOnCrossCompile
d78 2
d1148 28
d2214 8
a2221 8
#undef  SharedLibGlw
#define SharedLibGlw		NO
#undef  NormalLibGlw
#define NormalLibGlw		NO
#undef  DebugLibGlw
#define DebugLibGlw		NO
#undef  ProfileLibGlw
#define ProfileLibGlw		NO
@


1.5
log
@Add C implementation of "ucs2any" utility contributed by Ben Collver.
This allows us to build all international fonts without requiring Perl 5.
@
text
@d1737 1
a1737 1
#define SharedLibXss	NO
d1740 1
a1740 1
#define NormalLibXss	YES
d1761 1
a1761 1
#define SharedLibXxf86misc	NO
d1764 1
a1764 1
#define NormalLibXxf86misc	YES
d1785 1
a1785 1
#define SharedLibXxf86vm	NO
d1788 1
a1788 1
#define NormalLibXxf86vm	YES
d1809 1
a1809 1
#define SharedLibXxf86dga	NO
d1812 1
a1812 1
#define NormalLibXxf86dga	YES
d1833 1
a1833 1
#define SharedLibXxf86rush	NO
d1836 1
a1836 1
#define NormalLibXxf86rush	YES
d1860 1
a1860 1
#define NormalLibXv		YES
d1881 1
a1881 1
#define SharedLibXvMC		NO
d1884 1
a1884 1
#define NormalLibXvMC		YES
d1905 1
a1905 1
#define SharedLibXinerama	NO
d1908 1
a1908 1
#define NormalLibXinerama	YES
d1929 1
a1929 1
#define SharedLibXRes           NO
d1932 1
a1932 1
#define NormalLibXRes           YES
d1956 1
a1956 1
#define NormalLibDps		YES
d1980 1
a1980 1
#define NormalLibDpsTk		YES
d2004 1
a2004 1
#define NormalLibPSRes		YES
d2028 1
a2028 1
#define NormalLibXrender	YES
d2052 1
a2052 1
#define NormalLibXrandr		YES
d2076 1
a2076 1
#define NormalLibXcursor	YES
d2404 1
a2404 1
#  define SharedLibXfontcache	NO
d2407 1
a2407 1
#  define NormalLibXfontcache	YES
d2427 1
a2427 1
#define SharedLibXau NO		/* don't need shared form */
d2453 1
a2453 1
#define SharedLibXdmcp NO	/* don't need shared form */
d2837 1
a2837 1
#define SharedLibFS		NO	/* for now */
d2905 1
a2905 1
#define SharedLibFontEnc	NO
d3387 12
a3398 5
    XKBFILELIBSRC = $(LIBSRC)/xkbfile
ProjectUnsharedLibReferences(XKBFILE,xkbfile,$(XKBFILELIBSRC),XBuildLibDir)
#ifndef XkbClientDepLibs
#if UseXKBInClients
#define XkbClientDepLibs $(DEPXKBFILELIB)
d3400 12
a3411 1
#define XkbClientDepLibs /**/
d3413 6
a3418 4
#endif
#ifndef XkbClientLibs
#if UseXKBInClients
#define XkbClientLibs $(XKBFILELIB)
d3420 1
a3420 1
#define XkbClientLibs /**/
d3422 18
a3439 2
#endif
#if defined(UseInstalled) || (CrossCompiling &&  UseInstalledOnCrossCompile)
d3441 1
a3441 1
#else
d3443 1
a3443 1
#if CrossCompiling
d3445 1
a3445 1
#else
d3447 2
a3448 2
#endif
#endif
d3450 6
a3455 6
#ifndef XkbClientDepLibs
#define XkbClientDepLibs
#endif
#ifndef XkbClientLibs
#define XkbClientLibs
#endif
d3458 27
d3486 6
d3493 2
d3496 1
a3496 1
#define	XkbuiLibs $(XKBUILIB)
d3499 1
a3499 1
#define	XkbuiDepLibs $(DEPXKBFILELIB)
@


1.4
log
@Resolve conflicts from import of XFree86 4.3.0.
@
text
@d170 1
a170 1
#define DerivedUCSFonts		HasPerl5
d1594 1
a1594 1
          UCS2ANY = $(FONTSRC)/util/ucs2any.pl
a3799 1
#if HasPerl5
d3805 1
a3805 1
	RunPerlScript($(UCS2ANY),font.bdf $(UCSMAPPREFIX)enc enc)	@@@@\
a3808 1
#endif
@


1.3
log
@Resolve conflicts from last import.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.141.2.1 2002/09/04 02:38:08 dawes Exp $
d26 1
a26 1
 * MakeXftCache			(deplist)
d31 1
a31 1
 * InstallXftCache		(dest)
d75 6
d123 3
d150 5
a154 3
/* Not used now */
#ifndef BuildLatin2Fonts
#define BuildLatin2Fonts	NO
d216 6
d231 3
d249 3
d265 1
a265 1
#define BuildX11Lib		(BuildLibraries || (BuildLibrariesForXServers && XnestServer))
d267 1
d271 3
d283 3
d287 1
a287 1
#define BuildXextLib		(BuildLibraries || (BuildLibrariesForXServers && XnestServer))
d292 1
d296 1
d501 6
d534 3
d538 2
a539 1
#define BuildGLULibrary		(BuildGLXLibrary && HasCplusplus)
d542 1
a542 1
#define BuildGLwLibrary		(BuildGlxExt || BuildGLXLibrary)
d566 1
a566 1
#define BuildRender		NO
d574 9
d584 10
a593 1
#define UseFreetype2		BuildXftLibrary
d600 1
a600 1
#define BuildRandR		NO
d606 12
d690 3
d1027 8
d1128 2
a1129 1
	GlxDefines FontCacheExtensionDefines SiteExtensionDefines
d1212 8
d1236 3
a1238 3
#ifndef MesaUseKatmai
#ifdef HasKatmaiSupport
#define MesaUseKatmai HasKatmaiSupport
d1240 8
a1247 1
#define MesaUseKatmai NO
d1249 5
d1360 5
a1364 1
#define LibDir $(USRLIBDIR)/X11
a1572 1
         XFTCACHE = $(BINDIR)/xftcache
d1574 2
a1575 2
          UCS2ANY = $(BINDIR)/ucs2any.pl
      BDFTRUNCATE = $(BINDIR)/bdftruncate.pl
d1577 1
d1580 1
d1583 7
a1589 2
         XFTCACHE = $(CLIENTENVSETUP) $(PRELOADSETUP) XFT_CONFIG=$(XFTLIBSRC)/XftConfig $(XBUILDBINDIR)/xftcache
#if HasPerl
d1591 1
a1591 1
#else
d1593 1
a1593 1
#endif
d1660 3
d1675 4
d1704 1
a1704 1
#define SharedLibXThrStub YES
d1707 1
a1707 1
#define NormalLibXThrStub NO
d1710 1
a1710 1
#define DebugLibXThrStub NO
d1713 1
a1713 1
#define ProfileLibXThrStub NO
d1724 9
d1748 9
d1772 9
d1796 9
d1820 9
d1844 9
d1857 1
a1857 1
#define SharedLibXv		NO
d1868 9
d1892 9
d1916 9
d1927 23
d1964 9
d1988 9
d2012 9
d2036 9
d2060 33
d2108 9
d2137 2
d2154 10
d2167 1
d2183 10
a2192 1
#endif /* BuildGLXLibrary */
d2303 11
d2376 1
a2376 1
#define SharedXrenderRev 1.1
d2386 1
a2386 1
#define SharedXrandrRev 1.0
d2393 10
d2445 1
d2447 3
d2471 1
d2473 3
d2882 16
d2901 1
a2901 1
            FONTLIB = $(XFONTLIB) $(FONTSTUBLIB)
d2948 4
d2966 1
a2966 1
/* FreeType 2.0.6, version_info 8:0:2 */
d2968 1
a2968 1
#define Freetype2Version 8.0.2
d2974 1
a2974 1
#define SharedFreetype2Rev 6.2
d2976 1
a2976 1
#define SharedFreetype2Rev 8.0
d2984 5
a2988 1
#if UseFreetype2
d2990 1
a2990 4
#if BuildFreetype2Library
FREETYPE2INCLUDES=$(TOP_X_INCLUDES)/freetype2
FREETYPE2DEFINES=-DFREETYPE2
#else
d2996 6
d3005 7
a3011 1
#define Freetype2LibDir Freetype2Dir/lib
d3021 11
a3032 1
FREETYPE2LIB = -L$(FREETYPE2LIBDIR) -lfreetype
d3036 124
d3178 1
a3178 1
#define SharedXftRev 1.1
d3186 100
a3285 2
#if UseFreetype2
#define XftClientDepLibs $(DEPXFTLIB) $(DEPFREETYPE2LIB) $(DEPXRENDERLIB)
d3287 65
a3351 1
#define XftClientDepLibs $(DEPXFTLIB) $(DEPXRENDERLIB)
d3354 15
a3368 3
#ifndef XftClientLibs
#if UseFreetype2
#define XftClientLibs $(XFTLIB) $(FREETYPE2LIB) $(XRENDERLIB)
d3370 1
a3370 1
#define XftClientLibs $(XFTLIB) $(XRENDERLIB)
d3372 1
d3403 1
a3403 1
#if defined(UseInstalled) || defined(OS2Architecture)
d3520 1
a3520 1
 * MakeXftCache - generate rules to build XftCache database
d3523 1
a3523 1
#ifdef UseFreetype2
d3525 3
a3527 3
#ifndef MakeXftCache
#define MakeXftCache(deplist)						@@@@\
all:: XftCache								@@@@\
d3529 2
a3530 2
XftCache: deplist							@@@@\
	RunProgram(XFTCACHE, $(XFTCACHEOPTS) .)				@@@@\
d3533 2
a3534 2
	RemoveFile(XftCache)
#endif /* MakeXftCache */
d3536 5
a3540 4
#ifndef InstallXftCache
#define InstallXftCache(dest)						@@@@\
InstallTarget(install,XftCache,$(INSTDATFLAGS),dest)
#endif /* InstallXftCache */
d3544 2
a3545 2
#ifndef MakeXftCache
#define MakeXftCache(deplist)
d3548 2
a3549 2
#ifndef InstallXftCache
#define InstallXftCache(dest)
a3553 1

d3558 2
a3559 1
#define MakeFontsDir(deplist)						@@@@\
d3567 5
d3579 2
a3580 1
#define MakeFonts()							@@@@\
d3587 7
d3601 2
a3602 1
#define InstallFontObjs(objs,dest)					@@@@\
d3606 3
d3653 3
a3655 2
#ifndef UncompressedFontTargetLong
#define UncompressedFontTargetLong(sname,tname)				@@@@\
d3658 6
a3663 1
#endif /* UncompressedFontTargetLong */
d3672 4
a3675 3
#ifndef CompressedFontTargetLong
#if GzipFontCompression
#define CompressedFontTargetLong(sname,tname)				@@@@\
d3678 2
a3679 2
#else
#define CompressedFontTargetLong(sname,tname)				@@@@\
d3682 4
a3686 1
#endif /* CompressedFontTargetLong */
d3744 2
a3745 1
#define MakeEncDir(deplist,inst,dirlist )				@@@@\
d3757 5
d3774 2
a3775 1
#define InstallEncObjs(objs,dest)					@@@@\
d3779 3
d3790 2
a3791 1
#define InstallEncodingsDir(edir,fdir)					@@@@\
d3793 3
d3832 2
a3833 1
#define MakeXkbDir(basedir,subdir)					@@@@\
d3844 5
d3876 1
a3876 1
#ifndef MakeSimpleDoc(file,srcs)
d3919 2
a3920 2
	tail -1 index.raw > index.pageno				@@@@\
	grep '^[1-9]' index.raw | sort -f '-t:' +1 -3 +0n -1n | awk -f $(DOCUTILSRC)/fixindex.awk | awk -f $(DOCUTILSRC)/block.awk > index.troff @@@@\
@


1.2
log
@Fix security problem in the i18n module code for Xlib that was integrated
in XFree86 4.2.0 causing a vulnerability in setuid clients. For XFree86
only xterm is concerned. XFree86 versions before 4.2.0 are not vulnerable.
The patches were provided by Matthieu Herrb of the XFree86 project.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.141 2002/01/15 22:55:26 herrb Exp $
d253 2
a254 1
#define DisableXLocaleDirEnv	NO
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
XCOMM $TOG: X11.tmpl /main/308 1998/06/16 15:14:24 msr $
d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.93 2000/12/15 18:18:04 keithp Exp $
d26 1
d31 1
d42 30
d84 12
d138 4
d146 1
a146 1
#define BuildCyrillicFonts	NO
d149 79
a227 1
#define UseKoi8RForCyrillic	NO
d241 23
d288 3
d294 3
d312 10
d326 17
a342 1
#define BuildFontCacheLib	BuildFontCache
d362 1
a362 1
#define BuildXIElib		BuildXIE
d368 1
a368 1
#define BuildXKBlib		BuildXKB
d371 10
a380 1
#define BuildXKBuilib		BuildXKB
d382 1
d404 1
a404 1
#define BuildXineramaLibrary	BuildXinerama
d438 3
d445 1
a445 1
#define BuildScreenSaverLibrary	BuildScreenSaverExt
d451 1
a451 1
#define BuildXF86VidModeLibrary BuildXF86VidModeExt
d457 1
a457 1
#define BuildXF86MiscLibrary	BuildXF86MiscExt
d466 1
a466 1
#define BuildXF86DGALibrary	BuildXF86DGA
d472 7
a478 1
#define BuildXvLibrary		BuildXvExt
d482 9
d493 7
a499 1
#define BuildGLXLibrary		BuildGlxExt
d505 1
a505 1
#define BuildXF86RushLibrary	BuildXF86RushExt
d508 1
a508 1
#define BuildDPSLibraries	YES
d519 3
d526 1
a526 1
#define BuildRenderLibrary	YES
d531 13
d573 3
d595 6
d614 3
d729 1
a729 1
#define XtMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines
d751 7
d943 8
d1007 8
d1032 1
a1032 1
	SitePervasiveExtensionDefines RenderDefines
d1039 2
a1040 2
	MultibufferDefines MITMiscDefines XTestDefines XSyncDefines \
	XCMiscDefines RECORDDefines \
d1043 1
a1043 1
	ScreenSaverExtensionDefines XvExtensionDefines \
d1173 1
a1173 1
#define XTrueTypeInstallCConvHeaders YES
d1464 1
d1471 6
a1476 2
            FONTC = $(CLIENTENVSETUP) $(XBUILDBINDIR)/bdftopcf
        MKFONTDIR = $(CLIENTENVSETUP) $(XBUILDBINDIR)/mkfontdir
d1478 1
d1518 4
d1539 7
d1596 1
a1596 1
#define SharedXThrStubRev 6.0
d1694 15
d1785 30
d1828 6
a1893 1
#if BuildScreenSaverLibrary
a1902 1
#endif
a1903 1
#if BuildXF86MiscLibrary
a1912 1
#endif
a1913 1
#if BuildXF86VidModeLibrary
a1922 1
#endif
a1923 1
#if BuildXF86DGALibrary
a1932 1
#endif
a1934 1
#if BuildXF86RushLibrary
a1943 1
#endif
a1945 1
#if BuildXvLibrary
a1954 1
#endif
d1956 5
a1960 5
#if BuildXineramaLibrary
    XINERAMALIBSRC = $(LIBSRC)/Xinerama
#if SharedLibXinerama
#ifndef SharedXineramaRev
#define SharedXineramaRev 1.0
d1962 1
a1962 1
SharedLibReferences(XINERAMA,Xinerama,$(XINERAMALIBSRC),SOXINERAMAREV,SharedXineramaRev)
d1964 1
a1964 2
ProjectUnsharedLibReferences(XINERAMA,Xinerama,$(XINERAMALIBSRC),XBuildLibDir)
#endif
a1966 1
#if BuildXineramaLibrary
a1975 1
#endif
a1976 1
#if BuildDPSLibrary
a1985 1
#endif
a1986 1
#if BuildDPSTkLibrary
a1995 1
#endif
a1996 1
#if BuildPSResLibrary
d2006 9
a2016 1
#if BuildGLXLibrary
a2034 1
#endif /* BuildGLXLibrary */
a2035 1
#if BuildRenderLibrary
d2039 1
a2039 1
#define SharedXrenderRev 1.0
d2045 9
a2055 1
#if BuildFontCacheLib
d2068 1
a2077 1
#endif
d2145 22
d2518 1
a2518 1
#define SharedFontRev 1.3
d2532 23
d2577 11
a2587 2
#ifndef SharedLibXft
#define SharedLibXft HasSharedLibraries
d2589 5
a2593 2
#ifndef NormalLibXft
#define NormalLibXft (!SharedLibXft | ForceNormalLib)
d2595 7
a2601 2
#ifndef DebugLibXft
#define DebugLibXft		NO
a2602 2
#ifndef ProfileLibXft
#define ProfileLibXft		NO
d2604 3
a2606 4
          XFTLIBSRC = $(LIBSRC)/Xft
#if SharedLibXft
#ifndef SharedXftRev
#define SharedXftRev 1.0
d2608 6
a2613 1
SharedLibReferences(XFT,Xft,$(XFTLIBSRC),SOXFTREV,SharedXftRev)
d2615 5
a2619 1
ProjectUnsharedLibReferences(XFT,Xft,$(XFTLIBSRC),XBuildLibDir)
a2621 1
#ifdef Freetype2Dir
d2636 1
d2639 23
d2664 3
d2669 1
d2671 1
d2673 10
d2689 1
a2689 1
#ifdef BuildXKBlib
d2710 5
a2714 1
     XKBCOMPCMD = $(CLIENTENVSETUP) $(XBUILDBINDIR)/XkbComp
a2724 1
#ifdef BuildXKBuilib
a2732 8
#else /* !BuildXKBuilib */
#ifndef XkbuiLibs
#define	XkbuiLibs
#endif
#ifndef XkbuiDepLibs
#define	XkbuiDepLibs
#endif
#endif /* BuildXKBuilib */
d2741 22
d2801 1
d2811 9
d2823 35
d3027 1
a3027 1
	 RunProgram(MKFONTDIR, -r -p inst/ $$E .))			@@@@\
d3061 1
a3061 1
#if HasPerl
d3075 1
a3075 1
#if HasPerl
d3114 2
a3115 2
#ifndef MakeSimpleDoc
#define MakeSimpleDoc(file,srcs)					@@@@\
d3119 1
a3119 1
file.PS: srcs								@@@@\
d3124 1
a3124 1
file.txt: srcs								@@@@\
d3131 4
d3223 8
d3245 30
@


1.1.1.1
log
@Initial import of XFree86 4.x
@
text
@@


1.1.1.2
log
@Import of XFree86 4.0.3
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.93.2.2 2001/03/12 16:03:22 keithp Exp $
a312 3
#ifndef BuildFreetype2Library
#define BuildFreetype2Library	BuildXftLibrary
#endif
a341 3
#ifndef InstallXloadSetGID
#define InstallXloadSetGID	YES	/* xload often needs set gid kmem */
#endif
a360 6
#ifndef UseConfDirForAppDefaults
#define UseConfDirForAppDefaults YES
#endif
#ifndef UseConfDirForXkb
#define UseConfDirForXkb	YES
#endif
a1205 3
#if HasPerl
      MKHTMLINDEX = RunPerlScript($(CONFIGSRC)/util/mkhtmlindex.pl,)
#else
a1206 1
#endif
a2203 54
#ifndef SharedLibFreetype2
#define SharedLibFreetype2 HasSharedLibraries
#endif
#ifndef NormalLibFreetype2
#define NormalLibFreetype2 (!SharedLibFreetype2 | ForceNormalLib)
#endif
#ifndef DebugLibFreetype2
#define DebugLibFreetype2		NO
#endif
#ifndef ProfileLibFreetype2
#define ProfileLibFreetype2		NO
#endif
          FREETYPE2LIBSRC = $(LIBSRC)/freetype2
#if SharedLibFreetype2
#ifndef SharedFreetype2Rev
#define SharedFreetype2Rev 6.0
#endif
SharedLibReferences(FREETYPE2,freetype,$(FREETYPE2LIBSRC),SOFREETYPE2REV,SharedFreetype2Rev)
#else
ProjectUnsharedLibReferences(FREETYPE2,freetype,$(FREETYPE2LIBSRC),XBuildLibDir)
#endif

#if BuildFreetype2Library
FREETYPE2INCLUDES=$(TOP_X_INCLUDES)/freetype2
FREETYPE2DEFINES=-DFREETYPE2
#define HasFreetype2	YES
#else

#ifdef Freetype2Dir

#define HasFreetype2	YES

#ifndef Freetype2LibDir
#define Freetype2LibDir Freetype2Dir/lib
#endif

#ifndef Freetype2IncDir
#define Freetype2IncDir Freetype2Dir/include/freetype2
#endif

FREETYPE2DIR = Freetype2Dir
FREETYPE2LIBDIR = Freetype2LibDir
FREETYPE2INCDIR = Freetype2IncDir
FREETYPE2INCLUDES = -I$(FREETYPE2INCDIR)
FREETYPE2LIB = -L$(FREETYPE2LIBDIR) -lfreetype
FREETYPE2DEFINES = -DFREETYPE2
#endif

#endif

#ifndef HasFreetype2
#define HasFreetype2	NO
#endif

a2349 1
#if UseConfDirForAppDefaults
a2358 9
#else /* UseConfDirForAppDefaults */
#if InstallAppDefFiles
#define InstallAppDefaultsLong(file,class)				@@@@\
InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
#else
#define InstallAppDefaultsLong(file,class)				@@@@\
InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
#endif /* InstallAppDefFiles */
#endif /* UseConfDirForAppDefaults */
@


1.1.1.3
log
@Import of XFree86 4.1.0.
@
text
@d3 1
a3 1
XCOMM $Xorg: X11.tmpl,v 1.6 2000/08/17 19:41:46 cpqbld Exp $
d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.115.2.3 2001/06/01 02:24:14 dawes Exp $
a25 1
 * MakeXftCache			(deplist)
a29 1
 * InstallXftCache		(dest)
a39 30
/* X.Org release string */
#ifndef XOrgReleaseString
#define XOrgReleaseString	Release 6.5
#endif

#ifndef XOrgManNameString
#define XOrgManNameString	X Version 11
#endif

XORGRELSTRING = XOrgReleaseString
XORGMANNAME = XOrgManNameString

#ifndef XOrgManDefs
#define XOrgManDefs -D__xorgversion__='"$(XORGRELSTRING)" "$(XORGMANNAME)"'
#endif

#ifndef XVendorManNameString
#define XVendorManNameString XOrgManNameString
#endif
#ifndef XVendorManVersionString
#define XVendorManVersionString XOrgReleaseString
#endif

VENDORMANNAME = XVendorManNameString
VENDORMANVERSION = XVendorManVersionString

#ifndef VendorManDefs
#define VendorManDefs -D__vendorversion__='"$(VENDORMANVERSION)" "$(VENDORMANNAME)"'
#endif

a51 9
#ifndef BuildClients
#define BuildClients		!BuildServersOnly
#endif
#ifndef BuildDocs
#define BuildDocs		!BuildServersOnly
#endif
#ifndef BuildLibraries
#define BuildLibraries		(!BuildServersOnly || BuildClients)
#endif
a93 1
/* Not used now */
d95 1
a95 1
#define BuildLatin2Fonts	YES
d98 1
a98 1
#define BuildCyrillicFonts	YES
d101 1
a101 79
#define UseKoi8RForCyrillic	YES
#endif
/* Some bdf font generation details.  The scripts for this require perl. */
#ifndef TruncateUCSFonts
#define TruncateUCSFonts	HasPerl5
#endif
#ifndef MaxUCSChar
#define MaxUCSChar		0x3200
#endif
#ifndef DerivedUCSFonts
#define DerivedUCSFonts		HasPerl5
#endif
/* These primarily control generation of derived 8-bit fonts. */
#ifndef BuildUCSFonts
#define BuildUCSFonts		YES
#endif
/* Setting BuildISO8859_1Fonts to NO may result in problems. */
#ifndef BuildISO8859_1Fonts
#define BuildISO8859_1Fonts	YES
#endif
#ifndef BuildISO8859_2Fonts
#define BuildISO8859_2Fonts	YES
#endif
#ifndef BuildISO8859_3Fonts
#define BuildISO8859_3Fonts	YES
#endif
#ifndef BuildISO8859_4Fonts
#define BuildISO8859_4Fonts	YES
#endif
#ifndef BuildISO8859_5Fonts
#define BuildISO8859_5Fonts	BuildCyrillicFonts
#endif
#ifndef BuildArabicFonts
#define BuildArabicFonts	YES
#endif
#ifndef BuildISO8859_6Fonts
#define BuildISO8859_6Fonts	BuildArabicFonts
#endif
#ifndef BuildGreekFonts
#define BuildGreekFonts		YES
#endif
#ifndef BuildISO8859_7Fonts
#define BuildISO8859_7Fonts	BuildGreekFonts
#endif
#ifndef BuildHebrewFonts
#define BuildHebrewFonts	YES
#endif
#ifndef BuildISO8859_8Fonts
#define BuildISO8859_8Fonts	BuildHebrewFonts
#endif
#ifndef BuildISO8859_9Fonts
#define BuildISO8859_9Fonts	YES
#endif
#ifndef BuildISO8859_10Fonts
#define BuildISO8859_10Fonts	YES
#endif
#ifndef BuildISO8859_13Fonts
#define BuildISO8859_13Fonts	YES
#endif
#ifndef BuildISO8859_14Fonts
#define BuildISO8859_14Fonts	YES
#endif
#ifndef BuildISO8859_15Fonts
#define BuildISO8859_15Fonts	YES
#endif
#ifndef BuildKOI8_RFonts
#define BuildKOI8_RFonts	BuildCyrillicFonts
#endif
#ifndef BuildJapaneseFonts
#define BuildJapaneseFonts	YES
#endif
#ifndef BuildJISX0201Fonts
#define BuildJISX0201Fonts	BuildJapaneseFonts
#endif
#ifndef BuildKoreanFonts
#define BuildKoreanFonts	YES
#endif
#ifndef BuildChineseFonts
#define BuildChineseFonts	YES
a138 3
#ifndef BuildPexLib
#define BuildPexLib		(BuildPexExt && !BuildServersOnly)
#endif
a141 3
#ifndef BuildXInputLib
#define BuildXInputLib		(BuildXInputExt && !BuildServersOnly)
#endif
d161 1
a161 1
#define BuildFontCacheLib	(BuildFontCache && !BuildServersOnly)
d181 1
a181 1
#define BuildXIElib		(BuildXIE && !BuildServersOnly)
d187 1
a187 1
#define BuildXKBlib		(BuildXKB && !BuildServersOnly)
d190 1
a190 1
#define BuildXKBuilib		(BuildXKB && !BuildServersOnly)
d213 1
a213 1
#define BuildXineramaLibrary	(BuildXinerama && !BuildServersOnly)
a246 3
#ifndef BuildXprintLib
#define BuildXprintLib		(BuildXprint && !BuildServersOnly)
#endif
d251 1
a251 1
#define BuildScreenSaverLibrary	(BuildScreenSaverExt && !BuildServersOnly)
d257 1
a257 1
#define BuildXF86VidModeLibrary (BuildXF86VidModeExt && !BuildServersOnly)
d263 1
a263 1
#define BuildXF86MiscLibrary	(BuildXF86MiscExt && !BuildServersOnly)
d272 1
a272 1
#define BuildXF86DGALibrary	(BuildXF86DGA && !BuildServersOnly)
d278 1
a278 1
#define BuildXvLibrary		(BuildXvExt && !BuildServersOnly)
d284 1
a284 4
#define BuildGLXLibrary		(BuildGlxExt && !BuildServersOnly)
#endif
#ifndef BuildGLULibrary
#define BuildGLULibrary		(BuildGLXLibrary && HasCplusplus)
d290 1
a290 1
#define BuildXF86RushLibrary	(BuildXF86RushExt && !BuildServersOnly)
d293 1
a293 1
#define BuildDPSLibraries	!BuildServersOnly
a303 3
#ifndef BuildDPSClients
#define BuildDPSClients         BuildDPSLibraries
#endif
d308 1
a308 1
#define BuildRenderLibrary	!BuildServersOnly
a312 3
#ifndef UseFreetype2
#define UseFreetype2		BuildXftLibrary
#endif
d314 1
a314 1
#define BuildFreetype2Library	(UseFreetype2 && !HasFreetype2)
a385 3
#ifndef BuildThreadStubLibrary
#define BuildThreadStubLibrary	NO
#endif
d498 1
a498 1
#define XtMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines -DXTMALLOC_BC
a1209 1
         XFTCACHE = $(BINDIR)/xftcache
a1217 1
         XFTCACHE = $(CLIENTENVSETUP) XFT_CONFIG=$(XFTLIBSRC)/XftConfig $(XBUILDBINDIR)/xftcache
a1261 4

      XORGMANDEFS = XOrgManDefs
    VENDORMANDEFS = VendorManDefs

a1502 15
#if BuildGLULibrary
#ifndef SharedLibGlu
#define SharedLibGlu		HasSharedLibraries
#endif
#ifndef NormalLibGlu
#define NormalLibGlu		(!SharedLibX11 | ForceNormalLib)
#endif
#ifndef DebugLibGlu
#define DebugLibGlu		NO
#endif
#ifndef ProfileLibGlu
#define ProfileLibGlu		NO
#endif
#endif

a1515 6
#ifndef BuildLibGlxWithoutPIC
#define BuildLibGlxWithoutPIC	NO
#endif
#if BuildLibGlxWithoutPIC && SharedLibGlx
#define SharedLibGlxWithoutPIC	YES
#endif
d1662 12
a1709 12
#if BuildGLULibrary
    GLULIBSRC = $(LIBSRC)/GLU
#if SharedLibGlu
#ifndef SharedGluRev
#define SharedGluRev 1.3
#endif
SharedLibReferences(GLU,GLU,$(GLULIBSRC),SOGLUREV,SharedGluRev)
#else
ProjectUnsharedLibReferences(GLU,GLU,$(GLULIBSRC),XBuildLibDir)
#endif
#endif

a1832 22
#ifndef SharedLibXmuu
#define SharedLibXmuu HasSharedLibraries
#endif
#ifndef NormalLibXmuu
#define NormalLibXmuu 		(!SharedLibXmuu | ForceNormalLib)
#endif
#ifndef DebugLibXmuu
#define DebugLibXmuu		NO	/* debugged Xmuu library */
#endif
#ifndef ProfileLibXmuu
#define ProfileLibXmuu		NO	/* profiled Xmuu library */
#endif
           XMUUSRC = $(LIBSRC)/Xmuu
#if SharedLibXmuu
#ifndef SharedXmuuRev
#define SharedXmuuRev 1.0
#endif
SharedLibReferences(XMUU,Xmuu,$(XMUUSRC),SOXMUUREV,SharedXmuuRev)
#else
ProjectUnsharedLibReferences(XMUU,Xmuu,$(XMUUSRC),XBuildLibDir)
#endif

a2241 2
#if UseFreetype2

d2245 1
d2248 1
a2248 1
#if HasFreetype2
d2250 1
a2250 3
#ifndef Freetype2Dir
#define Freetype2Dir /usr
#endif
d2269 3
d2296 18
a2314 3
#if UseFreetype2
#define XftClientDepLibs $(DEPXFTLIB) $(DEPFREETYPE2LIB) $(DEPXRENDERLIB)
#else
a2316 1
#endif
a2317 1
#if UseFreetype2
a2318 10
#else
#define XftClientLibs $(XFTLIB) $(XRENDERLIB)
#endif
#endif

#ifndef XmuuClientDepLibs
#define XmuuClientDepLibs $(DEPXMUULIB) $(DEPXLIB)
#endif
#ifndef XmuuClientLibs
#define XmuuClientLibs $(XMUULIB) $(XLIB)
d2325 1
a2325 1
#if BuildXKBlib
d2357 1
a2357 1
#if BuildXKBuilib
a2441 35
 * MakeXftCache - generate rules to build XftCache database
 */

#ifdef UseFreetype2

#ifndef MakeXftCache
#define MakeXftCache(deplist)						@@@@\
all:: XftCache								@@@@\
									@@@@\
XftCache: deplist							@@@@\
	RunProgram(XFTCACHE, $(XFTCACHEOPTS) .)				@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(XftCache)
#endif /* MakeXftCache */

#ifndef InstallXftCache
#define InstallXftCache(dest)						@@@@\
InstallTarget(install,XftCache,$(INSTDATFLAGS),dest)
#endif /* InstallXftCache */

#else

#ifndef MakeXftCache
#define MakeXftCache(deplist)
#endif

#ifndef InstallXftCache
#define InstallXftCache(dest)
#endif

#endif


/*
d2645 1
a2645 1
#if HasPerl5
d2659 1
a2659 1
#if HasPerl5
d2698 2
a2699 2
#ifndef MakeDepSimpleDoc
#define MakeDepSimpleDoc(file,deps,srcs)				@@@@\
d2703 1
a2703 1
file.PS: deps								@@@@\
d2708 1
a2708 1
file.txt: deps								@@@@\
a2714 4
#ifndef MakeSimpleDoc(file,srcs)
#define MakeSimpleDoc(file,srcs) MakeDepSimpleDoc(file,srcs,srcs)
#endif

a2802 8
#ifndef InstallLatexDoc
#if HasLatex
#define InstallLatexDoc(name) InstallDoc(name,name.PS)
#else
#define InstallLatexDoc(name)
#endif
#endif

a2816 30
#endif


/*
 * Rule for maintainers to use to updated generated copies of fonts in the
 * source tree.  Use with care.
 */

#ifndef UpdateDerivedFont
#define UpdateDerivedFont(src,dst)					@@@@\
update.fonts:: src							@@@@\
	-@@if [ -f dst ]; then \						@@@@\
	    if [ "$(FORCEUPDATE)" = yes ]; then \			@@@@\
		if [ "$(FOLLOWLINK)" = no ]; then \			@@@@\
			(set -x; $(RM) dst); \				@@@@\
		fi; \							@@@@\
		set -x; cp src dst; \					@@@@\
	    else \							@@@@\
		grep -v "XFree86:" src > __tmp1__; \			@@@@\
		grep -v "XFree86:" dst > __tmp2__; \			@@@@\
		if diff __tmp1__ __tmp2__ > /dev/null 2>&1; then :; \	@@@@\
		else \							@@@@\
			if [ "$(FOLLOWLINK)" = no ]; then \		@@@@\
				(set -x; $(RM) dst); \			@@@@\
			fi; \						@@@@\
			set -x; cp src dst; \					@@@@\
		fi; \							@@@@\
	    fi; \							@@@@\
	fi								@@@@\
	@@$(RM) __tmp1__ __tmp2__
@


1.1.1.4
log
@Import of XFree86 4.2.0.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.141 2002/01/15 22:55:26 herrb Exp $
d44 1
a44 1
#define XOrgReleaseString	Release 6.6
d69 1
a69 1
#define VendorManDefs -D__vendorversion__="$(VENDORMANVERSION) $(VENDORMANNAME)"
a92 3
#ifndef BuildLibrariesForXServers
#define BuildLibrariesForXServers	BuildServer
#endif
a134 3
#ifndef BuildTrueTypeFonts
#define BuildTrueTypeFonts	YES
#endif
d137 1
a137 1
#define BuildLatin2Fonts	NO
a234 15
#ifndef BuildX11Lib
#define BuildX11Lib		(BuildLibraries || (BuildLibrariesForXServers && XnestServer))
#endif
#ifndef BuildLoadableXlibI18n
#define BuildLoadableXlibI18n	(HasDlopen && SharedLibX11)
#endif
#ifndef BuildXextLib
#define BuildXextLib		(BuildLibraries || (BuildLibrariesForXServers && XnestServer))
#endif
#ifndef BuildXauLib
#define BuildXauLib		(BuildLibraries || BuildLibrariesForXServers)
#endif
#ifndef BuildXdmcpLib
#define BuildXdmcpLib		(BuildLibraries || BuildLibrariesForXServers)
#endif
a282 10
#ifndef BuildFontLib
#if !defined(XF86Server) || !XF86Server
#define BuildFontLib		(BuildLibraries || BuildServer)
#else
#define BuildFontLib		(BuildLibraries || \
				 (BuildServer && !DoLoadableServer) || \
				 XnestServer || XVirtualFramebufferServer || \
				 XprtServer || KDriveXServer)
#endif
#endif
a288 16
#ifndef BuildFontEncLib
#define BuildFontEncLib		BuildLibraries
#endif
/*
 * This enables binary compatibility with the older (XFree86 <= 4.1) fontenc
 * entry points in the Xfont library (and X server).  If this is turned off,
 * then SharedFontRev should have it's major revision bumped, and the
 * XFree86 font module ABI (in xfree86/common/xf86Module.h) should have it's
 * major revision bumped.
 *
 * Note: this does not enable those older functions in the separate libfontenc
 * library (which didn't exist previously).
 */
#ifndef FontencCompatibility
#define FontencCompatibility	YES
#endif
a317 10
#ifndef BuildXKBfilelib
#define BuildXKBfilelib		(BuildXKB && !BuildServersOnly)
#endif
#ifndef BuildXTrap
#define BuildXTrap		YES
#endif
#ifndef BuildXTrapLibrary
#define BuildXTrapLibrary	(BuildXTrap && !BuildServersOnly)
#endif

a408 6
#ifndef BuildXvMCExt
#define BuildXvMCExt		NO
#endif
#ifndef BuildXvMCLibrary
#define BuildXvMCLibrary	(BuildXvMCExt && !BuildServersOnly)
#endif
a410 9
#else
#if     BuildGlxExt && !defined(XFree86Version)
#undef  BuildXF86DRI
#undef  BuildXF86DRM
#undef  BuildXF86DRIDriverSupport
#define BuildXF86DRI			NO
#define BuildXF86DRM			NO
#define BuildXF86DRIDriverSupport	NO
#endif
a417 3
#ifndef BuildGLwLibrary
#define BuildGLwLibrary		(BuildGlxExt || BuildGLXLibrary)
#endif
a454 7
#ifndef BuildRandR
#define BuildRandR		NO
#endif
#ifndef BuildRandRLibrary
#define BuildRandRLibrary	!BuildServersOnly
#endif

a660 7
#ifndef XTrapDefines
#if BuildXTrap
#define XTrapDefines -DXTRAP
#else
#define XTrapDefines /**/
#endif
#endif
a845 8
#ifndef XvMCExtensionDefines
#if BuildXvMCExt
#define XvMCExtensionDefines -DXVMC
#else
#define XvMCExtensionDefines /**/
#endif
#endif

a901 8
#ifndef RandRDefines
#if BuildRandR
#define RandRDefines -DRANDR
#else
#define RandRDefines /**/
#endif
#endif

d919 1
a919 1
	SitePervasiveExtensionDefines RenderDefines RandRDefines
d926 2
a927 2
	MultibufferDefines MITMiscDefines XTestDefines XTrapDefines \
	XSyncDefines XCMiscDefines RECORDDefines \
d930 1
a930 1
	ScreenSaverExtensionDefines XvExtensionDefines XvMCExtensionDefines \
d1060 1
a1060 1
#define XTrueTypeInstallCConvHeaders BuildLibraries
d1358 3
a1360 3
            FONTC = $(CLIENTENVSETUP) $(PRELOADFONTSETUP) $(XBUILDBINDIR)/bdftopcf
        MKFONTDIR = $(CLIENTENVSETUP) $(PRELOADFONTSETUP) $(XBUILDBINDIR)/mkfontdir
         XFTCACHE = $(CLIENTENVSETUP) $(PRELOADSETUP) XFT_CONFIG=$(XFTLIBSRC)/XftConfig $(XBUILDBINDIR)/xftcache
a1425 7
#ifdef PreloadSetup
     PRELOADSETUP = PreloadSetup
#endif
#ifdef PreloadFontSetup
 PRELOADFONTSETUP = PreloadFontSetup
#endif

d1476 1
a1476 1
#define SharedXThrStubRev 6.1
a1573 15
#if BuildXvMCLibrary
#ifndef SharedLibXvMC
#define SharedLibXvMC		NO
#endif
#ifndef NormalLibXvMC
#define NormalLibXvMC		YES
#endif
#ifndef DebugLibXvMC
#define DebugLibXvMC		NO
#endif
#ifndef ProfileLibXvMC
#define ProfileLibXvMC		NO
#endif
#endif

a1649 15
#if BuildRandRLibrary
#ifndef SharedLibXrandr
#define SharedLibXrandr		HasSharedLibraries
#endif
#ifndef NormalLibXrandr
#define NormalLibXrandr		YES
#endif
#ifndef DebugLibXrandr
#define DebugLibXrandr		NO
#endif
#ifndef ProfileLibXrandr
#define ProfileLibXrandr	NO
#endif
#endif

d1744 1
d1754 1
d1756 1
d1766 1
d1768 1
d1778 1
d1780 1
d1790 1
d1793 1
d1803 1
d1806 1
a1815 10


    XVMCLIBSRC = $(LIBSRC)/XvMC
#if SharedLibXvMC
#ifndef SharedXvMCRev
#define SharedXvMCRev 1.0
#endif
SharedLibReferences(XVMC,XvMC,$(XVMCLIBSRC),SOXVMCREV,SharedXvMCRev)
#else
ProjectUnsharedLibReferences(XVMC,XvMC,$(XVMCLIBSRC),XBuildLibDir)
d1818 1
d1828 1
d1830 1
d1840 1
d1842 1
d1852 1
d1854 1
d1864 1
d1866 1
d1876 1
d1878 1
d1897 1
d1899 1
d1903 1
a1903 1
#define SharedXrenderRev 1.1
a1908 9

    XRANDRRLIBSRC = $(LIBSRC)/Xrandr
#if SharedLibXrandr
#ifndef SharedXrandrRev
#define SharedXrandrRev 1.0
#endif
SharedLibReferences(XRANDR,Xrandr,$(XRANDRLIBSRC),SOXRANDRREV,SharedXrandrRev)
#else
ProjectUnsharedLibReferences(XRANDR,Xrandr,$(XRANDRLIBSRC),XBuildLibDir)
d1911 1
a1923 1

d1933 1
d2374 1
a2374 1
#define SharedFontRev 1.4
a2387 23

#ifndef SharedLibFontEnc
#define SharedLibFontEnc	NO
#endif
#ifndef NormalLibFontEnc
#define NormalLibFontEnc (!SharedLibFontEnc | ForceNormalLib)
#endif
#ifndef DebugLibFontEnc
#define DebugLibFontEnc		NO	/* debugged fontenc library */
#endif
#ifndef ProfileLibFontEnc
#define ProfileLibFontEnc	NO	/* profiled fontenc library */
#endif
         FONTENCLIBSRC = $(LIBSRC)/fontenc
#if SharedLibFontEnc
#ifndef SharedFontEncRev
#define SharedFontEncRev 1.0
#endif
SharedLibReferences(XFONTENC,fontenc,$(FONTENCLIBSRC),SOFONTENCREV,SharedFontEncRev)
#else
ProjectUnsharedLibReferences(XFONTENC,fontenc,$(FONTENCLIBSRC),XBuildLibDir)
#endif

a2422 6

/* FreeType 2.0.6, version_info 8:0:2 */
#ifndef Freetype2Version
#define Freetype2Version 8.0.2
#endif

d2425 1
a2425 5
#if LibtoolMinorVersions
#define SharedFreetype2Rev 6.2
#else
#define SharedFreetype2Rev 8.0
#endif
d2479 1
a2479 1
#define SharedXftRev 1.1
d2533 1
a2533 5
#if CrossCompiling
     XKBCOMPCMD = $(PROGRAMSRC)/XkbComp/cross/XkbComp
#else
     XKBCOMPCMD = $(CLIENTENVSETUP) $(PRELOADSETUP) $(XBUILDBINDIR)/XkbComp
#endif
d2544 1
d2553 8
a2568 22
#ifndef SharedLibXTrap
#define SharedLibXTrap HasSharedLibraries
#endif
#ifndef NormalLibXTrap
#define NormalLibXTrap (!SharedLibXTrap | ForceNormalLib)
#endif
#ifndef DebugLibXTrap
#define DebugLibXTrap		NO	/* debugged XTrap library */
#endif
#ifndef ProfileLibXTrap
#define ProfileLibXTrap		NO	/* profiled XTrap library */
#endif
        XTRAPLIBSRC = $(LIBSRC)/XTrap
#if SharedLibXTrap
#ifndef SharedXTrapRev
#define SharedXTrapRev 6.4
#endif
SharedLibReferences(XTRAP,XTrap,$(XTRAPLIBSRC),SOXTRAPREV,SharedXTrapRev)
#else
ProjectUnsharedLibReferences(XTRAP,XTrap,$(XTRAPLIBSRC),XBuildLibDir)
#endif

d2833 1
a2833 1
	 RunProgram(MKFONTDIR, -n -r -p inst/ $$E .))			@@@@\
@


1.1.1.5
log
@Import of XFree86 4.2.1.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.141.2.1 2002/09/04 02:38:08 dawes Exp $
a245 9
#endif
/*
 * This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
 * don't have either issetugid() or getresuid(), and you need to protect
 * clients that are setgid or setuid to an id other than 0.
 */
#ifndef DisableXLocaleDirEnv
#define DisableXLocaleDirEnv	BuildLoadableXlibI18n && \
					!(HasIssetugid || HasGetresuid)
@


1.1.1.6
log
@Import of XFree86 4.3.0.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.196 2003/02/25 21:57:52 dawes Exp $
d26 1
a26 1
 * MakeFcCache			(deplist)
d31 1
a31 1
 * InstallFcCache		(dest)
a74 6
#if CrossCompiling
# if defined UseInstalled && !defined UseInstalledOnCrossCompile
#  define UseInstalledOnCrossCompile YES
# endif
#endif

a116 3
#ifndef XTTInLibFont
#define XTTInLibFont		NO
#endif
d141 3
a143 5
#ifndef BuildBethMarduthoFonts
#define BuildBethMarduthoFonts	NO
#endif
#ifndef BuildEthiopicFonts
#define BuildEthiopicFonts	NO
a204 6
#ifndef BuildThaiFonts
#define BuildThaiFonts		YES
#endif
#ifndef BuildISO8859_11Fonts
#define BuildISO8859_11Fonts	BuildThaiFonts
#endif
a213 3
#ifndef BuildISO8859_16Fonts
#define BuildISO8859_16Fonts	YES
#endif
a228 3
#ifndef MakeLocalFontDir
#define MakeLocalFontDir	YES
#endif
d242 1
a242 1
#define BuildX11Lib		BuildLibraries
a243 1

a246 3
#ifndef InstallXcmsTxt
#define InstallXcmsTxt		YES
#endif
a255 3
#ifndef BuildLoadableXlibXcursor
#define BuildLoadableXlibXcursor (HasDlopen && SharedLibX11)
#endif
d257 1
a257 1
#define BuildXextLib		BuildLibraries
a261 1
#define UseInstalledXauLib	(defined(UseInstalled) || !BuildXauLib)
a264 1
#define UseInstalledXdmcpLib	(defined(UseInstalled) || !BuildXdmcpLib)
a468 6
#ifndef BuildXResExt
#define BuildXResExt            NO 
#endif
#ifndef BuildXResLibrary
#define BuildXResLibrary        (BuildXResExt && !BuildServersOnly)
#endif
a495 3
#ifndef BuildOSMesaLib
#define BuildOSMesaLib		(BuildGlxExt && defined(XFree86Version))
#endif
d497 1
a497 2
#define BuildGLULibrary		(BuildGLXLibrary && BuildLibraries && \
				 HasCplusplus)
d500 1
a500 1
#define BuildGLwLibrary		(BuildGLXLibrary && BuildLibraries)
d524 1
a524 1
#define BuildRender		YES
a531 9
#ifndef BuildXft1Library
#define BuildXft1Library	BuildRenderLibrary
#endif
#ifndef UseFontconfig
#define UseFontconfig		BuildXftLibrary
#endif
#ifndef BuildFontconfigLibrary
#define BuildFontconfigLibrary	(UseFontconfig && !HasFontconfig)
#endif
d533 1
a533 10
#define UseFreetype2		(BuildXftLibrary || BuildXft1Library || UseFontconfig)
#endif
#ifndef HasExpat
#define HasExpat		NO
#endif
#ifndef UseExpat
#define UseExpat		(UseFontconfig)
#endif
#ifndef BuildExpatLibrary
#define BuildExpatLibrary	(UseExpat && !HasExpat)
d540 1
a540 1
#define BuildRandR		BuildRender
a545 12
#ifndef BuildXcursorLibrary
#define BuildXcursorLibrary	BuildRenderLibrary
#endif

#ifndef BuildXcursorgen
#define BuildXcursorgen		HasLibpng
#endif

#ifndef DefaultCursorTheme
#define DefaultCursorTheme	core
#endif

a617 3
#ifndef NeedUIThrStubs
#define NeedUIThrStubs		NO
#endif
a951 8
#ifndef XResExtensionDefines
#if BuildXResExt
#define XResExtensionDefines -DRES
#else
#define XResExtensionDefines /**/
#endif
#endif

d1045 1
a1045 2
	GlxDefines FontCacheExtensionDefines SiteExtensionDefines \
        XResExtensionDefines
a1127 8
#ifndef MesaUseX86Asm
# if HasX86Support
#  define MesaUseX86Asm YES
# else
#  define MesaUseX86Asm NO
# endif
#endif

d1144 3
a1146 3
#ifndef MesaUseSSE
#ifdef HasSSESupport
#define MesaUseSSE HasSSESupport
d1148 1
a1148 8
#define MesaUseSSE NO
#endif
#endif

/* For compatibility */
#ifdef HasSSESupport
#undef HasKatmaiSupport
#define HasKatmaiSupport HasSSESupport
a1149 5
#undef MesaUseKatmai
#define MesaUseKatmai MesaUseSSE

#ifndef UsbMouseSupport
# define UsbMouseSupport NO
d1256 1
a1256 5
# ifdef ProjectRoot
#  define LibDir Concat(ProjectRoot,/lib/X11)
# else
#  define LibDir /usr/lib/X11
# endif
d1465 1
d1467 2
a1468 2
          UCS2ANY = $(BINDIR)/ucs2any
      BDFTRUNCATE = $(BINDIR)/bdftruncate
a1469 1
       XCURSORGEN = $(BINDIR)/xcursorgen
a1471 1
# if !CrossCompiling
d1474 2
a1475 7
       XCURSORGEN = $(CLIENTENVSETUP) $(PRELOADSETUP) $(XBUILDBINDIR)/xcursorgen
# elif UseInstalledOnCrossCompile
        MKFONTDIR = $(BINDIR)/mkfontdir
            FONTC = $(BINDIR)/bdftopcf
       XCURSORGEN = $(BINDIR)/xcursorgen
# endif
# if HasPerl
d1477 1
a1477 1
# else
d1479 1
a1479 1
# endif
a1545 3
#ifdef PreloadXFTSetup
     PRELOADXFTSETUP = PreloadXFTSetup
#endif
a1557 4
#ifndef NeedLibInsideFlag
#define NeedLibInsideFlag	NO
#endif

d1583 1
a1583 1
#define SharedLibXThrStub	YES
d1586 1
a1586 1
#define NormalLibXThrStub	NO
d1589 1
a1589 1
#define DebugLibXThrStub	NO
d1592 1
a1592 1
#define ProfileLibXThrStub	NO
a1602 9
#else
#undef  SharedLibXThrStub
#define SharedLibXThrStub	NO
#undef  NormalLibXThrStub
#define NormalLibXThrStub	NO
#undef  DebugLibXThrStub
#define DebugLibXThrStub	NO
#undef  ProfileLibXThrStub
#define ProfileLibXThrStub	NO
a1617 9
#else
#undef  SharedLibXss
#define SharedLibXss	NO
#undef  NormalLibXss
#define NormalLibXss	NO
#undef  DebugLibXss
#define DebugLibXss	NO
#undef  ProfileLibXss
#define ProfileLibXss	NO
a1632 9
#else
#undef  SharedLibXxf86misc
#define SharedLibXxf86misc	NO
#undef  NormalLibXxf86misc
#define NormalLibXxf86misc	NO
#undef  DebugLibXxf86misc
#define DebugLibXxf86misc	NO
#undef  ProfileLibXxf86misc
#define ProfileLibXxf86misc	NO
a1647 9
#else
#undef  SharedLibXxf86vm
#define SharedLibXxf86vm	NO
#undef  NormalLibXxf86vm
#define NormalLibXxf86vm	NO
#undef  DebugLibXxf86vm
#define DebugLibXxf86vm		NO
#undef  ProfileLibXxf86vm
#define ProfileLibXxf86vm	NO
a1662 9
#else
#undef  SharedLibXxf86dga
#define SharedLibXxf86dga	NO
#undef  NormalLibXxf86dga
#define NormalLibXxf86dga	NO
#undef  DebugLibXxf86dga
#define DebugLibXxf86dga	NO
#undef  ProfileLibXxf86dga
#define ProfileLibXxf86dga	NO
a1677 9
#else
#undef  SharedLibXxf86rush
#define SharedLibXxf86rush	NO
#undef  NormalLibXxf86rush
#define NormalLibXxf86rush	NO
#undef  DebugLibXxf86rush
#define DebugLibXxf86rush	NO
#undef  ProfileLibXxf86rush
#define ProfileLibXxf86rush	NO
d1682 1
a1682 1
#define SharedLibXv		YES
a1692 9
#else
#undef  SharedLibXv
#define SharedLibXv		NO
#undef  NormalLibXv
#define NormalLibXv		NO
#undef  DebugLibXv
#define DebugLibXv		NO
#undef  ProfileLibXv
#define ProfileLibXv		NO
a1707 9
#else
#undef  SharedLibXvMC
#define SharedLibXvMC		NO
#undef  NormalLibXvMC
#define NormalLibXvMC		NO
#undef  DebugLibXvMC
#define DebugLibXvMC		NO
#undef  ProfileLibXvMC
#define ProfileLibXvMC		NO
a1722 9
#else
#undef  SharedLibXinerama
#define SharedLibXinerama	NO
#undef  NormalLibXinerama
#define NormalLibXinerama	NO
#undef  DebugLibXinerama
#define DebugLibXinerama	NO
#undef  ProfileLibXinerama
#define ProfileLibXinerama	NO
a1724 23
#if BuildXResLibrary
#ifndef SharedLibXRes
#define SharedLibXRes           NO
#endif
#ifndef NormalLibXRes
#define NormalLibXRes           YES
#endif
#ifndef DebugLibXRes
#define DebugLibXRes            NO
#endif
#ifndef ProfileLibXRes
#define ProfileLibXRes          NO
#endif
#else
#undef  SharedLibXRes
#define SharedLibXRes		NO
#undef  NormalLibXRes
#define NormalLibXRes		NO
#undef  DebugLibXRes
#define DebugLibXRes		NO
#undef  ProfileLibXRes
#define ProfileLibXRes		NO
#endif
a1738 9
#else
#undef  SharedLibDps
#define SharedLibDps		NO
#undef  NormalLibDps
#define NormalLibDps		NO
#undef  DebugLibDps
#define DebugLibDps		NO
#undef  ProfileLibDps
#define ProfileLibDps		NO
a1753 9
#else
#undef  SharedLibDpsTk
#define SharedLibDpsTk		NO
#undef  NormalLibDpsTk
#define NormalLibDpsTk		NO
#undef  DebugLibDpsTk
#define DebugLibDpsTk		NO
#undef  ProfileLibDpsTk
#define ProfileLibDpsTk		NO
a1768 9
#else
#undef  SharedLibPSRes
#define SharedLibPSRes		NO
#undef  NormalLibPSRes
#define NormalLibPSRes		NO
#undef  DebugLibPSRes
#define DebugLibPSRes		NO
#undef  ProfileLibPSRes
#define ProfileLibPSRes		NO
a1783 9
#else
#undef  SharedLibXrender
#define SharedLibXrender	NO
#undef  NormalLibXrender
#define NormalLibXrender	NO
#undef  DebugLibXrender
#define DebugLibXrender		NO
#undef  ProfileLibXrender
#define ProfileLibXrender	NO
a1798 33
#else
#undef  SharedLibXrandr
#define SharedLibXrandr		NO
#undef  NormalLibXrandr
#define NormalLibXrandr		NO
#undef  DebugLibXrandr
#define DebugLibXrandr		NO
#undef  ProfileLibXrandr
#define ProfileLibXrandr	NO
#endif

#if BuildXcursorLibrary
#ifndef SharedLibXcursor
#define SharedLibXcursor	HasSharedLibraries
#endif
#ifndef NormalLibXcursor
#define NormalLibXcursor	YES
#endif
#ifndef DebugLibXcursor
#define DebugLibXcursor		NO
#endif
#ifndef ProfileLibXcursor
#define ProfileLibXcursor	NO
#endif
#else
#undef  SharedLibXcursor
#define SharedLibXcursor	NO
#undef  NormalLibXcursor
#define NormalLibXcursor	NO
#undef  DebugLibXcursor
#define DebugLibXcursor		NO
#undef  ProfileLibXcursor
#define ProfileLibXcursor	NO
a1813 9
#else
#undef  SharedLibGlu
#define SharedLibGlu		NO
#undef  NormalLibGlu
#define NormalLibGlu		NO
#undef  DebugLibGlu
#define DebugLibGlu		NO
#undef  ProfileLibGlu
#define ProfileLibGlu		NO
a1833 2
#else
#define SharedLibGlxWithoutPIC	NO
a1848 10
#else
#undef  SharedLibGlx
#define SharedLibGlx		NO
#undef  NormalLibGlx
#define NormalLibGlx		NO
#undef  DebugLibGlx
#define DebugLibGlx		NO
#undef  ProfileLibGlx
#define ProfileLibGlx		NO
#endif
a1851 1
#if BuildGLwLibrary
d1867 1
a1867 10
#else
#undef  SharedLibGlw
#define SharedLibGlw		NO
#undef  NormalLibGlw
#define NormalLibGlw		NO
#undef  DebugLibGlw
#define DebugLibGlw		NO
#undef  ProfileLibGlw
#define ProfileLibGlw		NO
#endif
a1977 11
    XRESLIBSRC = $(LIBSRC)/XRes
#if SharedLibXRes
#ifndef SharedXResRev
#define SharedXResRev 1.0
#endif
SharedLibReferences(XRES,XRes,$(XRESLIBSRC),SOXRESREV,SharedXResRev)
#else
ProjectUnsharedLibReferences(XRES,XRes,$(XRESLIBSRC),XBuildLibDir)
#endif


d2040 1
a2040 1
#define SharedXrenderRev 1.2
d2050 1
a2050 1
#define SharedXrandrRev 2.0
a2056 10
   XCURSORRLIBSRC = $(LIBSRC)/Xcursor
#if SharedLibXcursor
#ifndef SharedXcursorRev
#define SharedXcursorRev 1.0
#endif
SharedLibReferences(XCURSOR,Xcursor,$(XCURSORLIBSRC),SOXCURSORREV,SharedXcursorRev)
#else
ProjectUnsharedLibReferences(XCURSOR,Xcursor,$(XCURSORLIBSRC),XBuildLibDir)
#endif

a2098 1
#if !UseInstalledXauLib
a2099 3
#else
ProjectUnsharedLibReferences(XAUTH,Xau,$(XAUTHSRC),$(USRLIBDIR))
#endif
a2120 1
#if !UseInstalledXdmcpLib
a2121 3
#else
ProjectUnsharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),$(USRLIBDIR))
#endif
a2527 16
/*
 * There's no reason to use the statically built FreeType unless
 * you're using a loadable server.
 */
 
#ifndef FontLibSharedFreeType
#if BuildFreeType && UseFreetype2 && !DoLoadableServer 
#define FontLibSharedFreeType YES
#else
#define FontLibSharedFreeType NO
#endif
#endif

#if FontLibSharedFreeType
         FONTFT2LIB = $(FREETYPE2LIB)
#endif
d2531 1
a2531 1
            FONTLIB = $(XFONTLIB) $(FONTSTUBLIB) $(FONTFT2LIB)
a2577 4
#if UseFreetype2

#if BuildFreetype2Library

d2592 1
a2592 1
/* FreeType 2.0.9, version_info 9:0:3 */
d2594 1
a2594 1
#define Freetype2Version 9.0.3
d2600 1
a2600 1
#define SharedFreetype2Rev 6.3
d2602 1
a2602 1
#define SharedFreetype2Rev 9.0
d2610 5
a2614 2
#ifdef UseInstalled
FREETYPE2INCDIR=$(INCDIR)/freetype2
a2615 4
FREETYPE2INCDIR=$(BUILDINCDIR)/freetype2
#endif

#else /* BuildFreetype2Library */
a2620 6
#ifndef Freetype2DirStandard
# define Freetype2DirStandard YES
#endif
#endif
#ifndef Freetype2DirStandard
#define Freetype2DirStandard NO
d2624 1
a2624 7
#define Freetype2LibDir Freetype2Dir/LibDirName
# if Freetype2DirStandard
#  define Freetype2LibDirStandard YES
# endif
#endif
#ifndef Freetype2LibDirStandard
# define Freetype2LibDirStandard NO
d2634 1
a2634 3
#if Freetype2LibDirStandard
FREETYPE2LIB = -lfreetype
#else
a2635 8
#endif

#endif /* HasFreetype2 */

#endif /* else BuildFreetype2Library */

#if BuildFreetype2Library || HasFreetype2
FREETYPE2INCLUDES = -I$(FREETYPE2INCDIR)
a2638 124
#endif /* UseFreetype2 */

#ifndef SharedLibExpat
#define SharedLibExpat HasSharedLibraries
#endif
#ifndef NormalLibExpat
#define NormalLibExpat (!SharedLibExpat | ForceNormalLib)
#endif
#ifndef DebugLibExpat
#define DebugLibExpat		NO
#endif
#ifndef ProfileLibExpat
#define ProfileLibExpat		NO
#endif
          EXPATLIBSRC = $(LIBSRC)/expat

/* Expat 1.95.2 */
#ifndef ExpatVersion
#define ExpatVersion 1.95.2
#endif

#if SharedLibExpat
#ifndef SharedExpatRev
#define SharedExpatRev 1.0
#endif
SharedLibReferences(EXPAT,expat,$(EXPATLIBSRC),SOEXPATREV,SharedExpatRev)
#else
ProjectUnsharedLibReferences(EXPAT,expat,$(EXPATLIBSRC),XBuildLibDir)
#endif

#if UseExpat

#if BuildExpatLibrary
EXPATINCLUDES=$(TOP_X_INCLUDES)
EXPATDEFINES=-DEXPAT
#else	/* BuildExpatLibrary */

#if HasExpat

#ifndef ExpatDir
#define ExpatDir /usr
#define ExpatDirStandard YES
#endif
#ifndef ExpatDirStandard
#define ExpatDirStandard NO
#endif

#ifndef ExpatLibDir
#define ExpatLibDir ExpatDir/LibDirName
# if ExpatDirStandard
#  define ExpatLibDirStandard YES
# endif
#endif
#ifndef ExpatLibDirStandard
#define ExpatLibDirStandard NO
#endif

#ifndef ExpatIncDir
#define ExpatIncDir ExpatDir/include
# if ExpatDirStandard
#  define ExpatIncDirStandard YES
# endif
#endif
#ifndef ExpatIncDirStandard
#define ExpatIncDirStandard NO
#endif

EXPATDIR = ExpatDir
EXPATLIBDIR = ExpatLibDir
EXPATINCDIR = ExpatIncDir
#if ExpatIncDirStandard
EXPATINCLUDES =
#else
EXPATINCLUDES = -I$(EXPATINCDIR)
#endif
#if ExpatLibDirStandard
EXPATLIB = -lexpat
#else
EXPATLIB = -L$(EXPATLIBDIR) -lexpat
#endif
EXPATDEFINES = -DEXPAT
#endif /* HasExpat */

#endif /* else BuildExpatLibrary */

#define ExpatClientLibs $(EXPATLIB)
#define ExpatClientDepLibs $(DEPEXPATLIB)

#endif /* UseExpat */

#ifndef SharedLibXft1
#define SharedLibXft1 HasSharedLibraries
#endif
#ifndef NormalLibXft1
#define NormalLibXft1 		NO
#endif
#ifndef DebugLibXft1
#define DebugLibXft1		NO
#endif
#ifndef ProfileLibXft1
#define ProfileLibXft1		NO
#endif
          XFT1LIBSRC = $(LIBSRC)/Xft1
#if SharedLibXft1
#ifndef SharedXft1Rev
#define SharedXft1Rev 1.1
#endif
SharedLibReferences(XFT1,Xft,$(XFT1LIBSRC),SOXFT1REV,SharedXft1Rev)
#else
ProjectUnsharedLibReferences(XFT1,Xft,$(XFT1LIBSRC),XBuildLibDir)
#endif

#ifndef Xft1ClientDepLibs
#if UseFreetype2
#define Xft1ClientDepLibs $(DEPXFT1LIB) $(DEPFREETYPE2LIB) $(DEPXRENDERLIB)
#else
#define Xft1ClientDepLibs $(DEPXFT1LIB) $(DEPXRENDERLIB)
#endif
#endif
#ifndef Xft1ClientLibs
#if UseFreetype2
#define Xft1ClientLibs $(XFT1LIB) $(FREETYPE2LIB) $(XRENDERLIB)
#else
#define Xft1ClientLibs $(XFT1LIB) $(XRENDERLIB)
d2657 1
a2657 1
#define SharedXftRev 2.1
d2665 2
a2666 30
#define XftClientDepLibs $(DEPXFTLIB) FontconfigClientDepLibs $(DEPXRENDERLIB)
#endif
#ifndef XftClientLibs
#define XftClientLibs $(XFTLIB) FontconfigClientLibs $(XRENDERLIB)
#endif

XFTINCLUDES=$(FONTCONFIGINCLUDES) $(FREETYPE2INCLUDES)

#if UseFontconfig

#if BuildFontconfigLibrary

#ifndef SharedLibFontconfig
#define SharedLibFontconfig HasSharedLibraries
#endif
#ifndef NormalLibFontconfig
#define NormalLibFontconfig (!SharedLibFontconfig | ForceNormalLib)
#endif
#ifndef DebugLibFontconfig
#define DebugLibFontconfig		NO
#endif
#ifndef ProfileLibFontconfig
#define ProfileLibFontconfig		NO
#endif
          FONTCONFIGLIBSRC = $(LIBSRC)/fontconfig
#if SharedLibFontconfig
#ifndef SharedFontconfigRev
#define SharedFontconfigRev 1.0
#endif
SharedLibReferences(FONTCONFIG,fontconfig,$(FONTCONFIGLIBSRC),SOFONTCONFIGREV,SharedFontconfigRev)
d2668 1
a2668 1
ProjectUnsharedLibReferences(FONTCONFIG,fontconfig,$(FONTCONFIGLIBSRC),XBuildLibDir)
a2669 5

#ifdef UseInstalled
FONTCONFIGINCDIR=$(INCDIR)
#else
FONTCONFIGINCDIR=$(BUILDINCDIR)
d2671 3
a2673 5

FONTCONFIGINCLUDES = -I$(FONTCONFIGINCDIR)

#if UseInstalledX11
FCCACHE = $(BINDIR)/fc-cache
d2675 1
a2675 23
FCCACHE = set -x; $(CLIENTENVSETUP) $(PRELOADXFTSETUP) FONTCONFIG_PATH=$(FONTCONFIGLIBSRC) $(XBUILDBINDIR)/fc-cache
#endif
	  
#else /* BuildFontconfigLibrary */

#if HasFontconfig

#ifndef FontconfigDir
# define FontconfigDir /usr
# ifndef FontconfigDirStandard
#  define FontconfigDirStandard YES
# endif
#endif

#ifndef FontconfigDirStandard
# define FontconfigDirStandard NO
#endif

#ifndef FontconfigLibDir
# define FontconfigLibDir FontconfigDir/LibDirName
# if FontconfigDirStandard
#  define FontconfigLibDirStandard YES
# endif
a2676 118
#ifndef FontconfigLibDirStandard
# define FontconfigLibDirStandard NO
#endif

#ifndef FontconfigBinDir
# define FontconfigBinDir FontconfigDir/bin
#endif

#ifndef FontconfigIncDir
# define FontconfigIncDir FontconfigDir/include
# if FontconfigDirStandard
#  define FontconfigIncDirStandard YES
# endif
#endif

#ifndef FontconfigIncDirStandard
# define FontconfigIncDirStandard NO
#endif

FONTCONFIGDIR = FontconfigDir
FONTCONFIGLIBDIR = FontconfigLibDir
FONTCONFIGINCDIR = FontconfigIncDir
FONTCONFIGBINDIR = FontconfigBinDir
#if FontconfigLibDirStandard
FONTCONFIGLIB = -lfontconfig
#else
FONTCONFIGLIB = -L$(FONTCONFIGLIBDIR) -lfontconfig
#endif

#if FontconfigIncDirStandard
FONTCONFIGINCLUDES =
#else
FONTCONFIGINCLUDES = -I$(FONTCONFIGINCDIR)
#endif

FCCACHE = $(FONTCONFIGBINDIR)/fc-cache

#endif /* HasFontconfig */

#endif /* else BuildFontconfigLibrary */

#if BuildFontconfigLibrary || HasFontconfig
FONTCONFIGDEFINES = -DFONTCONFIG
#endif

#ifndef FontconfigClientDepLibs
#define FontconfigClientDepLibs $(DEPFONTCONFIGLIB) $(DEPFREETYPE2LIB) ExpatClientDepLibs
#endif
#ifndef FontconfigClientLibs
#define FontconfigClientLibs $(FONTCONFIGLIB) $(FREETYPE2LIB) ExpatClientLibs
#endif

#endif /* UseFontconfig */

#ifdef HasLibpng

/*
 * Libpng controls:
 *
 *	LibpngDir		prefix for all libpng files
 *	LibpngDirStandard	Boolean - whether png headers/libs are
 *				in default compile/link paths
 *	LibpngLibDir		Directory holding png library
 *	LibpngLibDirStandard	Boolean - whether png libs are
 *				in default link path
 *	LibpngIncDir		Directory holding png includes
 *	LibpngIncDirStandard	Boolean - whether png includes are
 *				in default compile path
 *
 * Make sure that *Standard is set correctly, if not, the
 * standard compile/link paths will be added *before* the
 * local X directorys and installed versions of the standard
 * X headers will end up getting used.
 */

#ifndef LibpngDir
#define LibpngDir /usr
#define LibpngDirStandard YES
#endif
#ifndef LibpngDirStandard
#define LibpngDirStandard NO
#endif

#ifndef LibpngLibDir
#define LibpngLibDir LibpngDir/LibDirName
#if LibpngDirStandard
#define LibpngLibDirStandard YES
#endif
#endif
#ifndef LibpngLibDirStandard
#define LibpngLibDirStandard NO
#endif

#ifndef LibpngIncDir
#define LibpngIncDir LibpngDir/include
#if LibpngDirStandard
#define LibpngIncDirStandard YES
#endif
#endif
#ifndef LibpngIncDirStandard
#define LibpngIncDirStandard NO
#endif

LIBPNGINCDIR = LibpngIncDir
#if LibpngIncDirStandard
LIBPNGINC=
#else
LIBPNGINC = -I$(LIBPNGINCDIR)
#endif
LIBPNGDIR = LibpngDir
LIBPNGLIBDIR = LibpngLibDir
LIBPNGINCDIR = LibpngIncDir
#if LibpngLibDirStandard
LIBPNGLIB = -lpng
#else
LIBPNGLIB = -L$(LIBPNGLIBDIR) -lpng
#endif

d2707 1
a2707 1
#if defined(UseInstalled) || (CrossCompiling &&  UseInstalledOnCrossCompile)
d2824 1
a2824 1
 * MakeFcCache - generate rules to build fontconfig cache database
d2827 1
a2827 1
#if defined UseFreetype2 && !CrossCompiling
d2829 3
a2831 3
# ifndef MakeFcCache
#  define MakeFcCache(deplist)						@@@@\
all:: fonts.cache							@@@@\
d2833 2
a2834 2
fonts.cache: deplist							@@@@\
	RunProgram(FCCACHE, $(FCCACHEOPTS) .)				@@@@\
d2837 2
a2838 2
	RemoveFiles(fonts.cache*)
# endif /* MakeFcCache */
d2840 4
a2843 5
# ifndef InstallFcCache
#  define InstallFcCache(dest)						@@@@\
install::								@@@@\
	RunProgram(FCCACHE, $(FCCACHEOPTS) $(DESTDIR)dest)
# endif /* InstallFcCache */
d2847 2
a2848 2
#ifndef MakeFcCache
#define MakeFcCache(deplist)
d2851 2
a2852 2
#ifndef InstallFcCache
#define InstallFcCache(dest)
d2857 1
d2862 1
a2862 2
# if !CrossCompiling ||  UseInstalledOnCrossCompile
#  define MakeFontsDir(deplist)						@@@@\
a2869 5
# else
#  define MakeFontsDir(deplist)						@@@@\
clean::									@@@@\
	RemoveFile(fonts.dir)
# endif
d2877 1
a2877 2
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define MakeFonts()							@@@@\
a2883 7
# else
#  define MakeFonts()							@@@@\
MakeFontsDir($(OBJS))							@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(*.pcf *.pcf.Z *.pcf.gz)
# endif
d2891 1
a2891 2
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define InstallFontObjs(objs,dest)					@@@@\
a2894 3
# else
#  define InstallFontObjs(objs,dest)
# endif
d2939 2
a2940 3
#if ! CrossCompiling || UseInstalledOnCrossCompile
# ifndef UncompressedFontTargetLong
#  define UncompressedFontTargetLong(sname,tname)			@@@@\
d2943 1
a2943 6
# endif /* UncompressedFontTargetLong */
#else
# ifndef UncompressedFontTargetLong
#  define UncompressedFontTargetLong(sname,tname)
# endif
#endif
d2952 3
a2954 4
#if ! CrossCompiling || UseInstalledOnCrossCompile
# ifndef CompressedFontTargetLong
#  if GzipFontCompression
#   define CompressedFontTargetLong(sname,tname)			@@@@\
d2957 2
a2958 2
#  else
#   define CompressedFontTargetLong(sname,tname)			@@@@\
a2960 4
#  endif
# endif /* CompressedFontTargetLong */
#else
#   define CompressedFontTargetLong(sname,tname)
d2962 1
d3020 1
a3020 2
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define MakeEncDir(deplist,inst,dirlist )				@@@@\
a3031 5
# else
#  define MakeEncDir(deplist,inst,dirlist )				@@@@\
clean::									@@@@\
	RemoveFiles(fonts.dir encodings.dir)
# endif
d3044 1
a3044 2
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define InstallEncObjs(objs,dest)					@@@@\
a3047 3
# else
#  define InstallEncObjs(objs,dest)
# endif
d3056 1
a3056 2
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define InstallEncodingsDir(edir,fdir)				@@@@\
a3057 3
# else
#  define InstallEncodingsDir(edir,fdir)
# endif
d3094 1
a3094 2
# if !CrossCompiling || UseInstalledOnCrossCompile
#  define MakeXkbDir(basedir,subdir)					@@@@\
a3104 5
# else
#  define MakeXkbDir(basedir,subdir)					@@@@\
clean::									@@@@\
	RemoveFile(Concat(subdir,.dir))
# endif
d3132 1
a3132 1
#ifndef MakeSimpleDoc
d3175 2
a3176 2
	sed -n '$$p' index.raw > index.pageno				@@@@\
	grep '^[1-9]' index.raw | (sort -f '-t:' -k1,1n 2>/dev/null || sort -f '-t:' +1 -3 +0n -1n) | awk -f $(DOCUTILSRC)/fixindex.awk | awk -f $(DOCUTILSRC)/block.awk > index.troff @@@@\
@


1.1.1.7
log
@Import of 2003-12-19 sources from XFree86's 4.3 branch.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.196.2.3 2003/10/08 17:56:30 eich Exp $
d75 2
a76 2
#if CrossCompiling && !defined(UseInstalledOnCrossCompile)
# if defined(UseInstalled)
a77 2
# else
#  define UseInstalledOnCrossCompile NO
a1145 28
#ifndef HasDevRandom
#define HasDevRandom NO
#endif

#ifndef HasArc4Random
#define HasArc4Random NO
#endif

#ifndef RandomDefines
# if HasDevRandom
#  ifndef RandomDeviceFile
#   define RandomDeviceFile /dev/random
#  endif
#  ifndef ExtraRandomDefines
#   ifdef PollDevRandom /* Set if can poll() /dev/random to avoid blocking */
#    define ExtraRandomDefines -DPOLL_DEV_RANDOM
#   else
#    define ExtraRandomDefines /**/
#   endif
#  endif
#  define RandomDefines -DDEV_RANDOM=\"RandomDeviceFile\" ExtraRandomDefines
# elif HasArc4Random
#  define RandomDefines -DARC4_RANDOM
# else
#  define RandomDefines /**/
# endif
#endif

d2184 8
a2191 8
#undef  SharedLibGLw
#define SharedLibGLw		NO
#undef  NormalLibGLw
#define NormalLibGLw		NO
#undef  DebugLibGLw
#define DebugLibGLw		NO
#undef  ProfileLibGLw
#define ProfileLibGLw		NO
@


1.1.1.8
log
@Import of XFree86 4.4.0.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.249 2004/02/16 18:14:33 dawes Exp $
d161 3
d172 1
a172 1
#define DerivedUCSFonts		YES
d317 9
d385 14
d450 7
d504 1
a504 1
#define BuildXResExt            NO
d537 1
a537 1
#define BuildOSMesaLib		BuildGlxExt
d586 1
a586 2
#define UseFreetype2		(BuildXftLibrary || BuildXft1Library || \
				 UseFontconfig || BuildFreeType)
a599 7
#ifndef Freetype2BuildDefines
#define Freetype2BuildDefines	/**/
#endif
/* For FreeType 1.x */
#ifndef Freetype1BuildDefines
#define Freetype1BuildDefines	Freetype2BuildDefines
#endif
d602 1
a602 1
#define BuildRandR		YES
a619 8
#ifndef BuildAppleWMLibrary
#define BuildAppleWMLibrary	NO
#endif

#ifndef BuildWindowsWMLibrary
#define BuildWindowsWMLibrary	NO
#endif

d713 2
a714 1
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/TTF/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
d716 8
a723 1
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/TTF/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/CID/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
d766 3
a768 13
/*
 * NOTE:  IPv6Flags could be tacked on to either ConnectionFlags or
 *        ExtraConnectionDefs.  Here, we choose the later in order to
 *        maximise exposure of the IPv6 code (a number of <OS>.def files
 *        contain ConnectionFlags overrides).  Mind you, this might not
 *        the right thing to do when HasStreams is asserted.
 */
#ifndef BuildIPv6		/* If the OS also #define's AF_INET6 */
#define BuildIPv6		YES
#endif
#ifndef IPv6Flags
#if BuildIPv6
#define IPv6Flags -DIPv6
a769 12
#define IPv6Flags /**/
#endif
#endif
/*
 * Assume by default that IPv6 sockets also listen for IPv4 connections.
 * XDMCP support currently only works for both IPv4 and IPv6 when this is
 * true.
 */
#ifndef IPv6SocketsAlsoIPv4
#define IPv6SocketsAlsoIPv4	YES
#endif
#ifndef DECnetFlags
d771 1
a771 1
#define DECnetFlags -DDNETCONN
d773 1
a773 1
#define DECnetFlags
a775 6
#ifndef ConnectionFlags
#if HasStreams
#define ConnectionFlags -DSTREAMSCONN
#else
#define ConnectionFlags -DTCPCONN -DUNIXCONN DECnetFlags
#endif
d784 1
a784 1
#define ExtraConnectionDefs $(STICKY_DEFINES) $(FCHOWN_DEFINES) IPv6Flags
d857 7
d902 7
d1127 1
a1127 1
	ShmDefines BigReqDefines VidModeExtensionDefines \
a1175 11
#ifndef PreferXdmcpIPv6
#define PreferXdmcpIPv6 NO
#endif
#ifndef ServerXdmcpIPv6Defines
#if BuildIPv6 && !IPv6SocketsAlsoIPv4 && !PreferXdmcpIPv6
#define ServerXdmcpIPv6Defines -DXDMCP_NO_IPV6
#else
#define ServerXdmcpIPv6Defines /**/
#endif
#endif

d1177 1
a1177 1
#define ServerXdmcpDefines -DXDMCP ServerXdmcpIPv6Defines
d1202 15
a1216 3
#ifndef ServerSnprintfDefines
#if !HasSnprintf
#define ServerSnprintfDefines -DNEED_SNPRINTF
d1218 12
a1229 1
#define ServerSnprintfDefines /**/
d1231 8
a1239 2
#ifndef ServerDefines
#define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines ServerSnprintfDefines
d1243 1
a1243 2
/* The current Mesa X86 ASM code doesn't work well with SVR4 shared libs. */
# if HasX86Support && !SystemV4
d1294 1
a1294 1
#ifndef XTrueTypeCConvModule
d1301 1
a1301 1
#ifndef XTrueTypeUseOptEncodings
d1322 3
a1398 3
#ifndef InstSrcDir
#define InstSrcDir Concat(ProjectRoot,/src)
#endif
a1417 3
#ifndef DocPdfDir
#define DocPdfDir $(DOCDIR)/PDF
#endif
d1451 3
d1533 1
a1533 1
#ifndef ResourceConfigurationManagement
d1537 1
a1537 1
#ifndef XtPopdownConformance
a1569 2
       INSTSRCDIR = InstSrcDir		/* Installed source (kernel modules). */

a1580 1
        DOCPDFDIR = DocPdfDir
d1590 2
a1591 1
      LBXPROXYDIR = LbxproxyDir		/* lbxproxy files */
a1601 1
      MKFONTSCALE = $(BINDIR)/mkfontscale
d1604 1
a1604 1
          UCS2ANY = $(BINDIR)/ProgramTargetName(ucs2any)
d1612 1
a1612 2
      MKFONTSCALE = $(CLIENTENVSETUP) $(PRELOADFREETYPESETUP) $(XBUILDBINDIR)/mkfontscale
        MKFONTDIR = $(MKFONTSCALE) -b -s -l
a1615 1
      MKFONTSCALE = $(BINDIR)/mkfontscale
d1624 1
a1624 1
          UCS2ANY = $(XBUILDBINDIR)/ProgramTargetName(ucs2any)
d1679 1
a1679 1
   CLIENTENVSETUP = Concat3(BuildLibPathVar,=,BuildLibPath)
d1681 1
a1681 1
   CLIENTENVSETUP =
a1689 3
#ifdef PreloadFreetypeSetup
 PRELOADFREETYPESETUP = PreloadFreetypeSetup
#endif
a1729 2
      /* Common alternate spellings */
      DEPXLIBONLY = $(DEPXONLYLIB)
d1767 1
a1767 1
#define SharedLibXss	HasSharedLibraries
d1770 1
a1770 1
#define NormalLibXss	(!SharedLibXss || ForceNormalLib)
d1791 1
a1791 1
#define SharedLibXxf86misc	HasSharedLibraries
d1794 1
a1794 1
#define NormalLibXxf86misc	(!SharedLibXxf86misc || ForceNormalLib)
d1815 1
a1815 1
#define SharedLibXxf86vm	HasSharedLibraries
d1818 1
a1818 1
#define NormalLibXxf86vm	(!SharedLibXxf86vm || ForceNormalLib)
d1839 1
a1839 1
#define SharedLibXxf86dga	HasSharedLibraries
d1842 1
a1842 1
#define NormalLibXxf86dga	(!SharedLibXxf86dga || ForceNormalLib)
d1863 1
a1863 1
#define SharedLibXxf86rush	HasSharedLibraries
d1866 1
a1866 1
#define NormalLibXxf86rush	(!SharedLibXxf86rush || ForceNormalLib)
d1887 1
a1887 1
#define SharedLibXv		HasSharedLibraries
d1890 1
a1890 1
#define NormalLibXv		(!SharedLibXv || ForceNormalLib)
d1911 1
a1911 1
#define SharedLibXvMC		HasSharedLibraries
d1914 1
a1914 1
#define NormalLibXvMC		(!SharedLibXvMC || ForceNormalLib)
d1935 1
a1935 1
#define SharedLibXinerama	HasSharedLibraries
d1938 1
a1938 1
#define NormalLibXinerama	(!SharedLibXinerama || ForceNormalLib)
d1959 1
a1959 1
#define SharedLibXRes           HasSharedLibraries
d1962 1
a1962 1
#define NormalLibXRes           (!SharedLibXRes || ForceNormalLib)
d1986 1
a1986 1
#define NormalLibDps		(!SharedLibDps || ForceNormalLib)
d2010 1
a2010 1
#define NormalLibDpsTk		(!SharedLibDpsTk || ForceNormalLib)
d2034 1
a2034 1
#define NormalLibPSRes		(!SharedLibPSRes || ForceNormalLib)
d2058 1
a2058 1
#define NormalLibXrender	(!SharedLibXrender || ForceNormalLib)
d2082 1
a2082 1
#define NormalLibXrandr		(!SharedLibXrandr || ForceNormalLib)
d2106 1
a2106 1
#define NormalLibXcursor	(!SharedLibXcursor || ForceNormalLib)
a2124 48
#if BuildAppleWMLibrary
#ifndef SharedLibAppleWM
#define SharedLibAppleWM	HasSharedLibraries
#endif
#ifndef NormalLibAppleWM
#define NormalLibAppleWM	(!SharedLibAppleWM || ForceNormalLib)
#endif
#ifndef DebugLibAppleWM
#define DebugLibAppleWM		NO
#endif
#ifndef ProfileLibAppleWM
#define ProfileLibAppleWM	NO
#endif
#else
#undef  SharedLibAppleWM
#define SharedLibAppleWM	NO
#undef  NormalLibAppleWM
#define NormalLibAppleWM	NO
#undef  DebugLibAppleWM
#define DebugLibAppleWM		NO
#undef  ProfileLibAppleWM
#define ProfileLibAppleWM	NO
#endif

#if BuildWindowsWMLibrary
#ifndef SharedLibWindowsWM
#define SharedLibWindowsWM	HasSharedLibraries
#endif
#ifndef NormalLibWindowsWM
#define NormalLibWindowsWM	(!SharedLibWindowsWM || ForceNormalLib)
#endif
#ifndef DebugLibWindowsWM
#define DebugLibWindowsWM	NO
#endif
#ifndef ProfileLibWindowsWM
#define ProfileLibWindowsWM	NO
#endif
#else
#undef  SharedLibWindowsWM
#define SharedLibWindowsWM	NO
#undef  NormalLibWindowsWM
#define NormalLibWindowsWM	NO
#undef  DebugLibWindowsWM
#define DebugLibWindowsWM	NO
#undef  ProfileLibWindowsWM
#define ProfileLibWindowsWM	NO
#endif

d2195 1
a2195 2
 * Only make a shared GLw library on systems with Weak symbols 
 * because it depends on Motif. See xc/lib/GLw/README.txt for details
d2199 1
a2199 1
#define SharedLibGLw		HasSharedLibraries && HasWeakSymbols
d2202 1
a2202 1
#define NormalLibGLw		(!SharedLibGLw || ForceNormalLib)
d2211 1
a2211 2
	/* create stub (weak) Motif symbols */
#define GLwUseXmStubs		SharedLibGLw && HasWeakSymbols
d2263 1
a2263 1
#define SharedXxf86miscRev 1.1
a2432 20
   APPLEWMLIBSRC = $(LIBSRC)/apple
#if SharedLibAppleWM
#ifndef SharedAppleWMRev
#define SharedAppleWMRev 1.0
#endif
SharedLibReferences(APPLEWM,AppleWM,$(APPLEWMLIBSRC),SOAPPLEWMREV,SharedAppleWMRev)
#else
ProjectUnsharedLibReferences(APPLEWM,AppleWM,$(APPLEWMLIBSRC),XBuildLibDir)
#endif

   WINDOWSWMLIBSRC = $(LIBSRC)/windows
#if SharedLibWindowsWM
#ifndef SharedWindowsWMRev
#define SharedWindowsWMRev 1.0
#endif
SharedLibReferences(WINDOWSWM,WindowsWM,$(WINDOWSWMLIBSRC),SOWINDOWSWMREV,SharedWindowsWMRev)
#else
ProjectUnsharedLibReferences(WINDOWSWM,WindowsWM,$(WINDOWSWMLIBSRC),XBuildLibDir)
#endif

d2434 1
a2434 1
#  define SharedLibXfontcache	HasSharedLibraries
d2437 1
a2437 1
#  define NormalLibXfontcache	(!SharedLibXfontcache || ForceNormalLib)
d2457 1
a2457 1
#define SharedLibXau		NO
d2483 1
a2483 1
#define SharedLibXdmcp		NO
d2534 1
a2534 1
#define NormalLibXmuu		(!SharedLibXmuu | ForceNormalLib)
d2738 60
d2867 1
a2867 1
#define SharedLibFS		HasSharedLibraries
d2903 1
a2903 1
#define SharedFontRev 1.5
d2912 16
d2931 1
a2931 1
            FONTLIB = $(XFONTLIB) $(FONTSTUBLIB) $(FREETYPE2LIB)
d2935 1
a2935 1
#define SharedLibFontEnc	HasSharedLibraries
d2996 1
a2996 12
/*
 * FreeType 2.1.4
 *
 * Get the library version information from version_info in
 * in xc/extras/freetype2/builds/unix/configure.ac.
 *
 * current:revision:age = 9:3:3
 *
 * The LibtoolMinorVersions revision is "(current - age).age".
 * The !LibtoolMinorVersions revision is "current.0".
 * Freetype2Version should be set to "current.revision.age"
 */
d2998 1
a2998 1
#define Freetype2Version 9.3.3
a3001 3
#ifndef SharedLibtoolFreetype2Rev
#define SharedLibtoolFreetype2Rev	9:3:3
#endif
d3015 1
a3015 1
FREETYPE2INCDIR=$(INCDIR)
d3017 1
a3017 1
FREETYPE2INCDIR=$(BUILDINCDIR)
d3045 1
a3045 4
#define Freetype2IncDir Freetype2Dir/include
# if Freetype2DirStandard
#  define Freetype2IncDirStandard YES
# endif
a3060 4
#ifndef Freetype2IncDirStandard
# define Freetype2IncDirStandard NO
#endif

d3062 1
a3062 5
#if Freetype2IncDirStandard
FREETYPE2INCLUDES = -I$(FREETYPE2INCDIR)/freetype2
#else
FREETYPE2INCLUDES = -I$(FREETYPE2INCDIR) -I$(FREETYPE2INCDIR)/freetype2
#endif
d3082 1
a3082 11
/*
 * Expat 1.95.6.
 *
 * Get the library version information from LIBCURRENT, LIBREVISION and LIBAGE
 * in xc/extras/expat/configure.
 *
 * LIBCURRENT:LIBREVISION:LIBAGE = 4:0:4
 *
 * The LibtoolMinorVersions revision is "(LIBCURRENT - LIBAGE).LIBAGE".
 * The !LibtoolMinorVersions revision is "LIBCURRENT.0".
 */
d3084 1
a3084 1
#define ExpatVersion 1.95.6
a3087 3
#ifndef SharedLibtoolExpatRev
#define SharedLibtoolExpatRev	4:0:4
#endif
d3089 1
a3089 5
#if LibtoolMinorVersions
#define SharedExpatRev 0.4
#else
#define SharedExpatRev 4.0
#endif
d3160 1
a3160 1
#define NormalLibXft1		NO
d3222 2
d3263 1
a3263 1

a3338 2
XFTINCLUDES=$(FONTCONFIGINCLUDES) $(FREETYPE2INCLUDES)

d3417 5
a3421 12
# ifndef SharedLibxkbfile
#  define SharedLibxkbfile	HasSharedLibraries
# endif
# ifndef NormalLibxkbfile
#  define NormalLibxkbfile	(!SharedLibxkbfile | ForceNormalLib)
# endif
# ifndef DebugLibxkbfile
#  define DebugLibxkbfile	NO
# endif
# ifndef ProfileLibxkbfile
#  define ProfileLibxkbfile	NO
# endif
d3423 2
a3424 12
# ifndef SharedLibxkbfile
#  define SharedLibxkbfile	NO
# endif
# ifndef NormalLibxkbfile
#  define NormalLibxkbfile	NO
# endif
# ifndef DebugLibxkbfile
#  define DebugLibxkbfile	NO
# endif
# ifndef ProfileLibxkbfile
#  define ProfileLibxkbfile	NO
# endif
d3426 3
a3428 6
    XKBFILELIBSRC = $(LIBSRC)/xkbfile
#if SharedLibxkbfile
# ifndef SharedxkbfileRev
#  define SharedxkbfileRev	1.0
# endif
SharedLibReferences(XKBFILE,xkbfile,$(XKBFILESRC),SOXKBFILEREV, SharedxkbfileRev)
d3430 2
a3431 1
ProjectUnsharedLibReferences(XKBFILE,xkbfile,$(XKBFILELIBSRC),XBuildLibDir)
d3433 1
a3433 18

#if BuildXKBlib
# ifndef XkbClientDepLibs
#  if UseXKBInClients
#   define XkbClientDepLibs	$(DEPXKBFILELIB)
#  else
#   define XkbClientDepLibs	/**/
#  endif
# endif
# ifndef XkbClientLibs
#  if UseXKBInClients
#   define XkbClientLibs	$(XKBFILELIB)
#  else
#   define XkbClientLibs	/**/
#  endif
# endif

# if defined(UseInstalled) || (CrossCompiling &&  UseInstalledOnCrossCompile)
d3435 1
a3435 1
# else
d3437 1
a3437 1
#  if CrossCompiling
d3439 1
a3439 1
#  else
d3441 2
a3442 2
#  endif
# endif
d3444 6
a3449 6
# ifndef XkbClientDepLibs
#  define XkbClientDepLibs
# endif
# ifndef XkbClientLibs
#  define XkbClientLibs
# endif
a3451 27
#if BuildXKBlib
# ifndef SharedLibxkbui
#  define SharedLibxkbui	HasSharedLibraries
# endif
# ifndef NormalLibxkbui
#  define NormalLibxkbui	(!SharedLibxkbui || ForceNormalLib)
# endif
# ifndef DebugLibxkbui
#  define DebugLibxkbui		NO
# endif
# ifndef ProfileLibxkbui
#  define ProfileLibxkbui	NO
# endif
#else
# ifndef SharedLibxkbui
#  define SharedLibxkbui	NO
# endif
# ifndef NormalLibxkbui
#  define NormalLibxkbui	NO
# endif
# ifndef DebugLibxkbui
#  define DebugLibxkbui		NO
# endif
# ifndef ProfileLibxkbui
#  define ProfileLibxkbui	NO
# endif
#endif
a3452 6
#if SharedLibxkbui
# ifndef SharedxkbuiRev
#  define SharedxkbuiRev	1.0
# endif
SharedLibReferences(XKBUI,xkbui,$(XKBUISRC),SOXKBUIREV, SharedxkbuiRev)
#else
a3453 2
#endif

d3455 1
a3455 1
# define	XkbuiLibs $(XKBUILIB)
d3458 1
a3458 1
# define	XkbuiDepLibs $(DEPXKBFILELIB)
a3584 21
 * MakeFontsScale - generate rules to build fonts.scale database.
 */
#ifndef MakeFontsScale
# if !CrossCompiling ||  UseInstalledOnCrossCompile
#  define MakeFontsScale(deplist)					@@@@\
all:: fonts.scale							@@@@\
									@@@@\
fonts.scale:  deplist							@@@@\
	RemoveFile(fonts.scale)						@@@@\
	RunProgram(MKFONTSCALE, .)					@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(fonts.scale)
# else
#  define MakeFontsScale(deplist)					@@@@\
clean::									@@@@\
	RemoveFile(fonts.scale)
# endif
#endif /* MakeFontsScale */

/*
a3592 1
	RemoveFile(fonts.dir)						@@@@\
a3625 17
#ifndef InstallFontsDir
# if !CrossCompiling ||  UseInstalledOnCrossCompile
#  define InstallFontsDir(dest)						@@@@\
install::								@@@@\
	MakeDir($(DESTDIR)dest)						@@@@\
	@@if [ X$(STATIC_FONTS_SCALE) = X ]; then (set -x; \		@@@@\
	  RemoveFile($(DESTDIR)dest/fonts.scale); \			@@@@\
	  RunProgram(MKFONTSCALE, $(DESTDIR)dest)); \			@@@@\
	else (set -x; \							@@@@\
	  InstallInline(fonts.scale,$(INSTDATFLAGS),dest)); \		@@@@\
	fi								@@@@\
	RemoveFile($(DESTDIR)dest/fonts.dir)				@@@@\
	RunProgram(MKFONTDIR, $(MKFONTDIROPTS) $(DESTDIR)dest)
# else
#  define InstallFontsDir(dest)
# endif
#endif
d3635 1
a3635 1
InstallFontsDir(dest)
d3652 1
a3652 1
 * InstallFontAliases - generate rules to install font aliases databases.
d3830 1
d3832 2
d3836 1
a3836 1
	$(UCS2ANY) font.bdf $(UCSMAPPREFIX)enc enc			@@@@\
d3841 1
d3846 2
a3888 92
/*
 * PostProcessTroffHTML - by default moves the working output into place,
 * but can be a hook for more complicated post-processing.
 */
#ifndef PostProcessTroffHTML
#define PostProcessTroffHTML(temp,real) $(MV) temp real
#endif

#ifdef HTMLroffCmd
#define HtmlTarget(file) file.html
#define HtmlClean(file) file.nhtml file.html file*.png
#else
#define HtmlTarget(file) /**/
#define HtmlClean(file) /**/
#endif

#ifdef PsToPdfCmd
#define PdfTarget(file) file.pdf
#define PdfClean(file) file.pdf
#else
#define PdfTarget(file) /**/
#define PdfClean(file) /**/
#endif

#ifndef ConvertPsToPdf
#ifdef PsToPdfCmd
#define ConvertPsToPdf(file)						@@@@\
file.pdf: file.ps							@@@@\
	RemoveFile(file.pdf)						@@@@\
	$(PSTOPDFCMD) < file.ps > file.pdf
#else
#define ConvertPsToPdf(file) /**/
#endif
#endif

#if HasPdfLatex
#define PdfLatexTarget(file) file.pdf
#define PdfLatexClean(file) file.pdf
#else
#define PdfLatexTarget(file) /**/
#define PdfLatexClean(file) /**/
#endif

#ifndef LatexToPdf
#if HasPdfLatex && defined(PdfLatexCmd)
#define LatexToPdf(file)						@@@@\
file.pdf: file.tex							@@@@\
	RemoveFile(file.pdf)						@@@@\
	$(PDFLATEXCMD) file.tex
#else
#define LatexToPdf(file) /**/
#endif
#endif


#ifndef MakeDepSimpleHtmlDoc
#ifdef HTMLroffCmd
#define MakeDepSimpleHtmlDoc(file,deps,srcs)				@@@@\
HtmlTarget(file): deps							@@@@\
	$(HTMLROFF) $(MSMACROS) $(XDOCMACROS) Concat(-P-I,file) srcs \		@@@@\
		2> index.raw > file.nhtml \				@@@@\
	  && PostProcessTroffHTML(file.nhtml,$@@)
#else
#define MakeDepSimpleHtmlDoc(file,deps,srcs) /**/
#endif
#endif

#ifndef MakeTblHtmlDoc
#ifdef HTMLroffCmd
#define MakeTblHtmlDoc(file,srcs)					@@@@\
file.html: srcs								@@@@\
	$(TBL) $(XDOCMACROS) srcs | $(HTMLROFF) $(MSMACROS) Concat(-P-I,file) \	@@@@\
		2> index.raw > file.nhtml \				@@@@\
	  && PostProcessTroffHTML(file.nhtml,$@@)
#else
#define MakeTblHtmlDoc(file,srcs) /**/
#endif
#endif

#ifndef MakeEqnHtmlDoc
#ifdef HTMLroffCmd
#define MakeEqnHtmlDoc(file,srcs)					@@@@\
file.html: srcs								@@@@\
	$(TBL) $(XDOCMACROS) srcs | $(EQN) | $(HTMLROFF) $(MSMACROS) Concat(-P-I,file) \ @@@@\
		2> index.raw > file.nhtml \				@@@@\
	  && PostProcessTroffHTML(file.nhtml,$@@)
#else
#define MakeEqnHtmlDoc(file,srcs) /**/
#endif
#endif


d3891 2
a3892 2
all:: file.ps file.txt HtmlTarget(file) PdfTarget(file)			@@@@\
.PRECIOUS: file.ps							@@@@\
d3894 4
a3897 6
file.ps: deps								@@@@\
	-$(TROFF) $(MSMACROS) $(XDOCMACROS) srcs \			@@@@\
		2> index.raw > file.nps \				@@@@\
	&& PostProcessTroffPS(file.nps,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw | grep -v warning; then exit 1; \	@@@@\
		else test $$? -le 1; fi					@@@@\
d3900 1
a3900 6
	$(NROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw | \	@@@@\
		 $(COL) $(COLFLAGS) > $@@				@@@@\
									@@@@\
MakeDepSimpleHtmlDoc(file,deps,srcs)					@@@@\
									@@@@\
ConvertPsToPdf(file)							@@@@\
d3903 1
a3903 1
	$(RM) index.raw file.nps file.ps file.txt HtmlClean(file) PdfClean(file)
d3912 2
a3913 2
all:: file.ps file.txt HtmlTarget(file) PdfTarget(file)			@@@@\
.PRECIOUS: file.ps							@@@@\
d3915 4
a3918 6
file.ps: srcs								@@@@\
	-$(TBL) $(XDOCMACROS) srcs | $(TROFF) $(MSMACROS) \		@@@@\
		2> index.raw > file.nps \				@@@@\
	&& PostProcessTroffPS(file.nps,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw | grep -v warning; then exit 1; \	@@@@\
		else test $$? -le 1; fi					@@@@\
d3921 1
a3921 6
	$(TBL) $(XDOCMACROS) srcs | $(NROFF) $(MSMACROS) 2> index.raw \	@@@@\
		| $(COL) $(COLFLAGS) > $@@				@@@@\
									@@@@\
MakeTblHtmlDoc(file,srcs)						@@@@\
									@@@@\
ConvertPsToPdf(file)							@@@@\
d3924 1
a3924 1
	$(RM) index.raw file.nps file.ps file.txt HtmlClean(file) PdfClean(file)
d3929 2
a3930 2
all:: file.ps file.txt HtmlTarget(file) PdfTarget(file)			@@@@\
.PRECIOUS: file.ps							@@@@\
d3932 4
a3935 6
file.ps: srcs								@@@@\
	-$(TBL) $(XDOCMACROS) srcs | $(EQN) | $(TROFF) $(MSMACROS) \	@@@@\
		2> index.raw > file.nps \				@@@@\
	&& PostProcessTroffPS(file.nps,$@@)				@@@@\
	@@if grep '^[^1-9.]' index.raw | grep -v warning; then exit 1; \	@@@@\
		else test $$? -le 1; fi					@@@@\
d3938 1
a3938 6
	$(TBL) $(XDOCMACROS) srcs | $(NEQN) | $(NROFF) $(MSMACROS) \	@@@@\
		2> index.raw | $(COL) $(COLFLAGS) > $@@			@@@@\
									@@@@\
MakeEqnHtmlDoc(file,srcs)						@@@@\
									@@@@\
ConvertPsToPdf(file)							@@@@\
d3941 1
a3941 1
	$(RM) index.raw file.nps file.ps file.txt HtmlClean(file) PdfClean(file)
d3946 1
a3946 1
all:: file.idx.ps							@@@@\
d3948 1
a3948 1
file.idx.ps: srcs index.raw						@@@@\
d3950 3
a3952 8
	grep '^[1-9]' index.raw | \					@@@@\
		(sort -f '-t:' -k2,2 -k1,1n 2>/dev/null || \		@@@@\
		 sort -f '-t:' +1 -3 +0n -1n) | \			@@@@\
		awk -f $(DOCUTILSRC)/fixindex.awk | \			@@@@\
		awk -f $(DOCUTILSRC)/block.awk > index.troff		@@@@\
	cat srcs $(XIDXMACROS) index.troff | \				@@@@\
		$(TROFF) -me > file.idx.nps && \			@@@@\
		$(MV) file.idx.nps $@@					@@@@\
d3956 1
a3956 1
	$(RM) index.troff index.pageno file.idx.nps file.idx.ps
d3961 2
a3962 2
#define MakeLatexDoc(file,src)						@@@@\
all:: file.ps PdfLatexTarget(file)					@@@@\
d3964 1
a3964 1
file.dvi: src								@@@@\
d3967 2
a3968 4
file.ps: file.dvi							@@@@\
	$(DVIPS) -o file.nps file && $(MV) file.nps $@@			@@@@\
									@@@@\
LatexToPdf(file)							@@@@\
d3970 3
a3972 4
clean::									@@@@\
	RemoveFiles(file.nps file.ps file.dvi file.log)			@@@@\
	RemoveFiles(file.aux file.toc file.lof file.lot)		@@@@\
	$(RM) PdfLatexClean(file)
d3974 1
a3974 1
#define MakeLatexDoc(file,src)						@@@@\
d3976 2
a3977 2
file.ps: src								@@@@\
	@@echo "cannot make file.ps: no latex on this system"; exit 1
d3985 2
a3986 3
	@@if [ -f name.ps -a X$(NOPS) = X ]; then set -x; \		@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.ps \		@@@@\
		$(DESTDIR)$(DOCPSDIR); \				@@@@\
a3987 1
	RemoveOldFile(name.ps,name.PS,$(DOCPSDIR))			@@@@\
d3989 2
a3990 20
	@@if [ -f name.txt -a X$(NOTXT) = X ]; then set -x; \		@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.txt \		@@@@\
		$(DESTDIR)$(DOCDIR); \					@@@@\
	fi								@@@@\
	RemoveOldFile(name.txt,name.TXT,$(DOCDIR))			@@@@\
	MakeDir($(DESTDIR)$(DOCHTMLDIR))				@@@@\
	@@if [ -f name.html -a X$(NOHTML) = X ]; then (set -x; \		@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.html \	@@@@\
		$(DESTDIR)$(DOCHTMLDIR)); \				@@@@\
	  for i in name*.png; do \					@@@@\
	    if [ -f $$i ]; then (set -x; \				@@@@\
	      $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) $$i \		@@@@\
		$(DESTDIR)$(DOCHTMLDIR)); \				@@@@\
	    fi; \							@@@@\
	  done; \							@@@@\
	fi								@@@@\
	MakeDir($(DESTDIR)$(DOCPDFDIR))					@@@@\
	@@if [ -f name.pdf -a X$(NOPDF) = X ]; then set -x; \		@@@@\
	  $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) name.pdf \		@@@@\
		$(DESTDIR)$(DOCPDFDIR); \				@@@@\
d3995 1
a3995 1
#define InstallRoffDoc(name) InstallDoc(name,name.ps name.txt)
d4000 1
a4000 1
#define InstallLatexDoc(name) InstallDoc(name,name.ps)
d4008 1
a4008 3
all:: name.ps PdfTarget(name)						@@@@\
									@@@@\
name.ps: deps								@@@@\
d4010 2
a4011 2
	  RemoveFile(name.ps); \					@@@@\
	  gzip -d < name.PS.gz > name.ps; \				@@@@\
a4012 6
	@@if [ -f name.PS ]; then set -x; \				@@@@\
	  RemoveFile(name.ps); \					@@@@\
	  $(LN) name.PS name.ps; \					@@@@\
	fi								@@@@\
									@@@@\
ConvertPsToPdf(name)							@@@@\
d4015 3
a4017 1
	$(RM) name.ps PdfClean(name)					@@@@\
d4022 1
a4051 10
#if !HasFreetype2
      FT2PRELOADPATTERN = libfreetype.so.?
#endif
#if !HasFontconfig
       FCPRELOADPATTERN = libfontconfig.so.?
#endif
      XFTPRELOADPATTERN = libXft.so.?
  XRENDERPRELOADPATTERN = libXrender.so.?
    XFONTPRELOADPATTERN = libXfont*.so.?

@


1.1.1.9
log
@Import of XFree86 4.5.0.
@
text
@d3 6
a8 47
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.277 2005/03/01 03:48:45 dawes Exp $
/*
 * Copyright (c) 1994-2005 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
d42 3
a44 2
#ifndef XVendorString
# define XVendorString  "The XFree86 Project, Inc"
d47 2
a48 2
#ifndef XVendorRelease
# define XVendorRelease 40400000
d51 5
a55 2
#ifndef XVendorManVersionString
#define XVendorManVersionString 4.x
d59 4
a62 1
#define XVendorManNameString XFree86
a97 9
#ifndef BuildDmx
#define BuildDmx		YES
#endif
#ifndef XdmxServer
#define XdmxServer		BuildDmx && BuildServer
#endif
#ifndef BuildLibrariesForDmx
#define BuildLibrariesForDmx	XdmxServer
#endif
d99 1
a99 2
#define BuildLibraries		(!BuildServersOnly || BuildClients || \
				 BuildLibrariesForDmx)
a106 3
#ifndef OmitSnfSupport
#define OmitSnfSupport		NO
#endif
d125 3
d251 12
d318 1
a318 3
#define BuildXInputLib		(BuildXInputExt && \
				 BuildLibraries && \
				 (!BuildServersOnly || BuildLibrariesForDmx))
d342 1
a342 2
				 XprtServer || XdmxServer || \
				 (defined(TinyXServer) && TinyXServer))
d349 1
a349 2
#define BuildFontCacheLib	(BuildFontCache && !BuildServersOnly && \
				 BuildLibraries)
a369 39

#ifndef BuildTinyDIX
#if (defined(TinyXServer) && TinyXServer) && \
	!(defined(XF86Server) && XF86Server)
#define BuildTinyDIX		YES
#else
#define BuildTinyDIX		NO
#endif
#endif
#ifndef BuildSeparateTinyDIX
#if (defined(TinyXServer) && TinyXServer) && !BuildTinyDIX
#define BuildSeparateTinyDIX	YES
#else
#define BuildSeparateTinyDIX	NO
#endif
#endif
#ifndef TinyXExcludedExtensions
#define TinyXExcludedExtensions	-UXKB -UXINPUT -ULBX -UXAPPGROUP -UXCSECURITY \
				-UDPMSExtension -UPANORAMIX -UGLXEXT \
				-UXF86VIDMODE -UXF86MISC -UXFreeXDGA \
				-UXF86DRI -UEVI -UXRECORD -USCREENSAVER \
				-URES -UXV -UXPRINT -UDBE -UXTRAP -UFONTCACHE \
				-UXF86BIGFONT -UXSYNC -UTOGCUP
#endif
#ifndef TinyXFontDefines
#define TinyXFontDefines	/**/
#endif
#ifndef TinyXFontServerAccess
#define TinyXFontServerAccess	NO
#endif
#if !TinyXFontServerAccess
#define TinyXFontServerDefines	-DNOFONTSERVERACCESS
#else
#define TinyXFontServerDefines	/**/
#endif
#ifndef TinyDIXDefines
#define TinyDIXDefines		TinyXExcludedExtensions TinyXFontServerDefines
#endif

d377 1
a377 2
#define BuildXKBlib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
d380 1
a380 2
#define BuildXKBuilib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
d383 1
a383 2
#define BuildXKBfilelib		(BuildXKB && !BuildServersOnly && \
				 BuildLibraries)
d389 1
a389 2
#define BuildXTrapLibrary	(BuildXTrap && !BuildServersOnly && \
				 BuildLibraries)
d413 1
a413 10
#define BuildXineramaLibrary	(BuildXinerama && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildDmxDevelTools
#define BuildDmxDevelTools	NO
#endif
#ifndef BuildDmxLibrary
#define BuildDmxLibrary		(BuildDmx && \
				 (BuildDmxDevelTools || \
				  (!BuildServersOnly && BuildLibraries)))
a439 14
#if BuildXprint
#ifndef XpRasterDDX
#define XpRasterDDX		YES
#endif
#ifndef XpColorPclDDX
#define XpColorPclDDX		YES
#endif
#ifndef XpMonoPclDDX
#define XpMonoPclDDX		NO
#endif
#ifndef XpPostScriptDDX
#define XpPostScriptDDX		YES
#endif
#endif
d441 1
a441 2
#define BuildXprintLib		(BuildXprint && !BuildServersOnly && \
				 BuildLibraries)
d447 1
a447 2
#define BuildScreenSaverLibrary	(BuildScreenSaverExt && !BuildServersOnly && \
				 BuildLibraries)
d453 1
a453 2
#define BuildXF86VidModeLibrary (BuildXF86VidModeExt && !BuildServersOnly && \
				 BuildLibraries)
d459 1
a459 2
#define BuildXF86MiscLibrary	(BuildXF86MiscExt && !BuildServersOnly && \
				 BuildLibraries)
d468 1
a468 2
#define BuildXF86DGALibrary	(BuildXF86DGA && !BuildServersOnly && \
				 BuildLibraries)
d474 1
a474 3
#define BuildXResLibrary        (BuildXResExt && \
				 (BuildDmxDevelTools || \
				  (!BuildServersOnly && BuildLibraries)))
d480 1
a480 2
#define BuildXvLibrary		(BuildXvExt && !BuildServersOnly && \
				 BuildLibraries)
d486 1
a486 2
#define BuildXvMCLibrary	(BuildXvMCExt && !BuildServersOnly && \
				 BuildLibraries)
d493 1
d496 1
d501 1
a501 5
#define BuildGLXLibrary		(BuildGlxExt && !BuildServersOnly && \
				 BuildLibraries)
#endif
#ifndef BuildGlxInDmx
#define BuildGlxInDmx		(XdmxServer && BuildGlxExt)
d517 1
a517 2
#define BuildXF86RushLibrary	(BuildXF86RushExt && !BuildServersOnly && \
				 BuildLibraries)
d520 1
a520 1
#define BuildDPSLibraries	(!BuildServersOnly && BuildLibraries)
d538 1
a538 2
#define BuildRenderLibrary	(XdmxServer || \
				 (!BuildServersOnly && BuildLibraries))
d560 1
a560 2
#define UseExpat		(UseFontconfig || \
				 (BuildXF86DRI && BuildGLXLibrary))
d571 3
a573 2
#ifndef UseMkfontscaleForMkfontdir
#define UseMkfontscaleForMkfontdir	NO
d580 1
a580 1
#define BuildRandRLibrary	(!BuildServersOnly && BuildLibraries)
d682 1
a682 1
#define HasXdmAuth		YES
a870 3
#ifndef DRMIncludesDir
#define DRMIncludesDir $(XF86OSSRC)/shared/drm/kernel
#endif
a1208 7
#ifndef ServerStrlcatDefines
#if !HasStrlcat
#define ServerStrlcatDefines -DNEED_STRLCAT
#else
#define ServerStrlcatDefines /**/
#endif
#endif
d1210 1
a1210 1
#define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines ServerSnprintfDefines ServerStrlcatDefines
a1587 1
#if UseMkfontscaleForMkfontdir
a1588 3
#else
        MKFONTDIR = $(CLIENTENVSETUP) $(PRELOADFONTSETUP) $(XBUILDBINDIR)/mkfontdir
#endif
a1631 1
   DRMINCLUDESDIR = DRMIncludesDir
d1641 1
a1691 3
#ifndef ExtraLibX11
#define ExtraLibX11 SharedLibX11
#endif
a1717 3
#ifndef ExtraLibXThrStub
#define ExtraLibXThrStub	SharedLibXThrStub
#endif
a1738 2
#undef  ExtraLibXThrStub
#define ExtraLibXThrStub	NO
a1750 3
#ifndef ExtraLibXss
#define ExtraLibXss	SharedLibXss
#endif
a1762 2
#undef  ExtraLibXss
#define ExtraLibXss	NO
a1774 3
#ifndef ExtraLibXxf86misc
#define ExtraLibXxf86misc	SharedLibXxf86misc
#endif
a1786 2
#undef  ExtraLibXxf86misc
#define ExtraLibXxf86misc	NO
a1798 3
#ifndef ExtraLibXxf86vm
#define ExtraLibXxf86vm		SharedLibXxf86vm
#endif
a1810 2
#undef  ExtraLibXxf86vm
#define ExtraLibXxf86vm	NO
a1822 3
#ifndef ExtraLibXxf86dga
#define ExtraLibXxf86dga	SharedLibXxf86dga
#endif
a1834 2
#undef  ExtraLibXxf86dga
#define ExtraLibXxf86dga	NO
a1846 3
#ifndef ExtraLibXxf86rush
#define ExtraLibXxf86rush	SharedLibXxf86rush
#endif
a1858 2
#undef  ExtraLibXxf86rush
#define ExtraLibXxf86rush	NO
a1870 3
#ifndef ExtraLibXv
#define ExtraLibXv		SharedLibXv
#endif
a1882 2
#undef  ExtraLibXv
#define ExtraLibXv		NO
a1894 3
#ifndef ExtraLibXvMC
#define ExtraLibXvMC		SharedLibXvMC
#endif
a1906 2
#undef  ExtraLibXvMC
#define ExtraLibXvMC		NO
a1918 3
#ifndef ExtraLibXinerama
#define ExtraLibXinerama	SharedLibXinerama
#endif
a1930 2
#undef  ExtraLibXinerama
#define ExtraLibXinerama	NO
d1941 1
a1941 4
#define SharedLibXRes		HasSharedLibraries
#endif
#ifndef ExtraLibXRes
#define ExtraLibXRes		SharedLibXRes
d1944 1
a1944 1
#define NormalLibXRes		(!SharedLibXRes || ForceNormalLib)
d1947 1
a1947 1
#define DebugLibXRes		NO
d1950 1
a1950 1
#define ProfileLibXRes		NO
a1954 2
#undef  ExtraLibXRes
#define ExtraLibXRes		NO
a1966 3
#ifndef ExtraLibDps
#define ExtraLibDps		SharedLibDps
#endif
a1978 2
#undef  ExtraLibDps
#define ExtraLibDps		NO
a1990 3
#ifndef ExtraLibDpsTk
#define ExtraLibDpsTk		SharedLibDpsTk
#endif
a2002 2
#undef  ExtraLibDpsTk
#define ExtraLibDpsTk		NO
a2014 3
#ifndef ExtraLibPSRes
#define ExtraLibPSRes		SharedLibPSRes
#endif
a2026 2
#undef  ExtraLibPSRes
#define ExtraLibPSRes		NO
a2038 3
#ifndef ExtraLibXrender
#define ExtraLibXrender		SharedLibXrender
#endif
a2050 2
#undef  ExtraLibXrender
#define ExtraLibXrender		NO
a2062 3
#ifndef ExtraLibXrandr
#define ExtraLibXrandr		SharedLibXrandr
#endif
a2074 2
#undef  ExtraLibXrandr
#define ExtraLibXrandr		NO
a2086 3
#ifndef ExtraLibXcursor
#define ExtraLibXcursor		SharedLibXcursor
#endif
a2098 2
#undef  ExtraLibXcursor
#define ExtraLibXcursor		NO
a2110 3
#ifndef ExtraLibAppleWM
#define ExtraLibAppleWM		SharedLibAppleWM
#endif
a2122 2
#undef  ExtraLibAppleWM
#define ExtraLibAppleWM		NO
a2134 3
#ifndef ExtraLibWindowsWM
#define ExtraLibWindowsWM	SharedLibWindowsWM
#endif
a2146 2
#undef  ExtraLibWindowsWM
#define ExtraLibWindowsWM	NO
a2158 3
#ifndef ExtraLibGlu
#define ExtraLibGlu		SharedLibGlu
#endif
a2170 2
#undef  ExtraLibGlu
#define ExtraLibGlu		NO
a2182 3
#ifndef ExtraLibGlx
#define ExtraLibGlx		SharedLibGlx
#endif
a2216 2
#undef  ExtraLibGlx
#define ExtraLibGlx		NO
a2231 3
#ifndef ExtraLibGLw
#define ExtraLibGLw		SharedLibGLw
#endif
a2247 2
#undef  ExtraLibGLw
#define ExtraLibGLw		NO
a2258 3
#ifndef ExtraLibXext
#define ExtraLibXext SharedLibXext
#endif
d2315 1
a2315 1
#define SharedXxf86dgaRev 1.1
a2321 33
#if BuildDmxLibrary
#ifndef SharedLibDmx
#define SharedLibDmx		HasSharedLibraries
#endif
#ifndef ExtraLibDmx
#define ExtraLibDmx		SharedLibDmx
#endif
#ifndef NormalLibDmx
#define NormalLibDmx		YES
#endif
#ifndef DebugLibDmx
#define DebugLibDmx		NO
#endif
#ifndef ProfileLibDmx
#define ProfileLibDmx		NO
#endif
#else
#ifndef SharedLibDmx
#define SharedLibDmx		NO
#endif
#ifndef ExtraLibDmx
#define ExtraLibDmx		NO
#endif
#ifndef NormalLibDmx
#define NormalLibDmx		NO
#endif
#ifndef DebugLibDmx
#define DebugLibDmx		NO
#endif
#ifndef ProfileLibDmx
#define ProfileLibDmx		NO
#endif
#endif
a2374 9
    DMXLIBSRC = $(LIBSRC)/dmx
#if SharedLibDmx
#ifndef SharedDmxRev
#define SharedDmxRev 1.0
#endif
SharedLibReferences(DMX,dmx,$(DMXLIBSRC),SODMXREV,SharedDmxRev)
#else
ProjectUnsharedLibReferences(DMX,dmx,$(DMXLIBSRC),XBuildLibDir)
#endif
a2487 3
# ifndef ExtraLibXfontcache
#  define ExtraLibXfontcache	SharedLibXfontcache
# endif
a2510 3
#ifndef ExtraLibXau
#define ExtraLibXau		SharedLibXau
#endif
a2536 3
#ifndef ExtraLibXdmcp
#define ExtraLibXdmcp		SharedLibXdmcp
#endif
a2562 3
#ifndef ExtraLibXmu
#define ExtraLibXmu SharedLibXmu
#endif
a2584 3
#ifndef ExtraLibXmuu
#define ExtraLibXmuu SharedLibXmuu
#endif
a2606 3
#ifndef ExtraOldX
#define ExtraOldX SharedOldX
#endif
a2628 3
#ifndef ExtraLibXp
#define ExtraLibXp SharedLibXp
#endif
a2650 3
#ifndef ExtraLibXt
#define ExtraLibXt SharedLibXt
#endif
d2673 23
a2698 3
#ifndef ExtraLibXaw
#define ExtraLibXaw SharedLibXaw
#endif
a2725 3
#ifndef ExtraLibXaw6
#define ExtraLibXaw6 SharedLibXaw6
#endif
a2748 3
#ifndef ExtraLibXi
#define ExtraLibXi SharedLibXi
#endif
a2770 3
#ifndef ExtraLibXtst
#define ExtraLibXtst SharedLibXtst
#endif
a2794 3
#ifndef ExtraLibICE
#define ExtraLibICE SharedLibICE
#endif
a2816 3
#ifndef ExtraLibSM
#define ExtraLibSM SharedLibSM
#endif
a2838 3
#ifndef ExtraLibXkey
#define ExtraLibXkey SharedLibXkey
#endif
a2860 3
#ifndef ExtraLibFS
#define ExtraLibFS		SharedLibFS
#endif
a2882 3
#ifndef ExtraLibFont
#define ExtraLibFont SharedLibFont
#endif
a2912 3
#ifndef ExtraLibFontEnc
#define ExtraLibFontEnc		SharedLibFontEnc
#endif
a2934 3
#ifndef ExtraLibXpm
#define ExtraLibXpm SharedLibXpm
#endif
a2960 3
#ifndef ExtraLibFreetype2
#define ExtraLibFreetype2 SharedLibFreetype2
#endif
d2973 1
a2973 1
 * FreeType 2.1.8
d2978 1
a2978 1
 * current:revision:age = 9:6:3
d2985 1
a2985 1
#define Freetype2Version 9.6.3
d2990 1
a2990 1
#define SharedLibtoolFreetype2Rev	9:6:3
a3071 3
#ifndef ExtraLibExpat
#define ExtraLibExpat SharedLibExpat
#endif
a3176 3
#ifndef ExtraLibXft1
#define ExtraLibXft1 SharedLibXft1
#endif
a3213 3
#ifndef ExtraLibXft
#define ExtraLibXft SharedLibXft
#endif
a3246 3
#ifndef ExtraLibFontconfig
#define ExtraLibFontconfig SharedLibFontconfig
#endif
a3437 3
# ifndef ExtraLibxkbfile
#  define ExtraLibxkbfile	SharedLibxkbfile
# endif
a3509 3
# ifndef ExtraLibxkbui
#  define ExtraLibxkbui		SharedLibxkbui
# endif
a3559 3
#ifndef ExtraLibXTrap
#define ExtraLibXTrap SharedLibXTrap
#endif
d3646 1
a3646 1
all:: fonts.cache-1							@@@@\
d3648 1
a3648 1
fonts.cache-1: deplist							@@@@\
d3727 1
a3727 3
	RemoveFiles(*.pcf)						@@@@\
	RemoveFiles(*.pcf.Z)						@@@@\
	RemoveFiles(*.pcf.gz)
d3733 1
a3733 3
	RemoveFiles(*.pcf)						@@@@\
	RemoveFiles(*.pcf.Z)						@@@@\
	RemoveFiles(*.pcf.gz)
d3835 1
a3835 4
	RunProgram(FONTC,$(FONTCFLAGS) $?) | $(GZIPCMD) > $@@		@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(FontBaseObj(tname).gz)
d3839 1
a3839 4
	RunProgram(FONTC,$(FONTCFLAGS) $?) | $(COMPRESS) > $@@		@@@@\
									@@@@\
clean::									@@@@\
	RemoveFile(FontBaseObj(tname).Z)
d4094 1
a4094 4
	@@if [ X$(NOHTML) = X ]; then \					@@@@\
	  (set -x; \							@@@@\
	    $(TBL) $(XDOCMACROS) srcs | \				@@@@\
		$(EQN) | $(HTMLROFF) $(MSMACROS) Concat(-P-I,file) \	@@@@\
d4096 1
a4096 2
	      && PostProcessTroffHTML(file.nhtml,$@@)); else \		@@@@\
		: > file.html; fi
d4226 1
a4226 1
install::								@@@@\
@


