#
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is this file as it was released upon August 6, 1998.
#
# The Initial Developer of the Original Code is
# Christopher Seawood.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#   Benjamin Smedberg <benjamin@smedbergs.us>
#
# Alternatively, the contents of this file may be used under the terms of
# either of the GNU General Public License Version 2 or later (the "GPL"),
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

# A netscape style .mk file for autoconf builds

INCLUDED_AUTOCONF_MK = 1
USE_AUTOCONF 	= 1
MOZILLA_CLIENT	= 1
target          = @target@
ac_configure_args = @ac_configure_args@
MOZILLA_VERSION = @MOZILLA_VERSION@
FIREFOX_VERSION	= @FIREFOX_VERSION@

MOZ_BUILD_APP = @MOZ_BUILD_APP@
MOZ_APP_NAME	= @MOZ_APP_NAME@
MOZ_APP_DISPLAYNAME = @MOZ_APP_DISPLAYNAME@
MOZ_APP_BASENAME = @MOZ_APP_BASENAME@
MOZ_APP_VENDOR = @MOZ_APP_VENDOR@
MOZ_APP_PROFILE = @MOZ_APP_PROFILE@
MOZ_APP_UA_NAME = @MOZ_APP_UA_NAME@
MOZ_APP_VERSION = @MOZ_APP_VERSION@
MOZ_UA_BUILDID = @MOZ_UA_BUILDID@
MOZ_MACBUNDLE_NAME = @MOZ_MACBUNDLE_NAME@

MOZ_PKG_SPECIAL = @MOZ_PKG_SPECIAL@

prefix		= @prefix@
exec_prefix	= @exec_prefix@
bindir		= @bindir@
includedir	= @includedir@/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
libdir		= @libdir@
datadir		= @datadir@
mandir		= @mandir@
idldir		= $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)

installdir	= $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
sdkdir		= $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)

DIST		= $(DEPTH)/dist
LIBXUL_SDK      = @LIBXUL_SDK@

MOZ_FS_LAYOUT = @MOZ_FS_LAYOUT@

L10NBASEDIR     = @L10NBASEDIR@

LIBXUL_DIST	= @LIBXUL_DIST@
SYSTEM_LIBXUL   = @SYSTEM_LIBXUL@

XULRUNNER_STUB_NAME = @XULRUNNER_STUB_NAME@

MOZ_CHROME_FILE_FORMAT	= @MOZ_CHROME_FILE_FORMAT@
MOZ_OMNIJAR		= @MOZ_OMNIJAR@
OMNIJAR_NAME		= @OMNIJAR_NAME@

MOZ_WIDGET_TOOLKIT	= @MOZ_WIDGET_TOOLKIT@
MOZ_GFX_OPTIMIZE_MOBILE = @MOZ_GFX_OPTIMIZE_MOBILE@

MOZ_DFB			= @MOZ_DFB@
MOZ_X11			= @MOZ_X11@

MOZ_PANGO = @MOZ_PANGO@

MOZ_JS_LIBS		   = @MOZ_JS_LIBS@

MOZ_DEBUG	= @MOZ_DEBUG@
MOZ_DEBUG_SYMBOLS = @MOZ_DEBUG_SYMBOLS@
MOZ_DEBUG_ENABLE_DEFS		= @MOZ_DEBUG_ENABLE_DEFS@
MOZ_DEBUG_DISABLE_DEFS	= @MOZ_DEBUG_DISABLE_DEFS@
MOZ_DEBUG_FLAGS	= @MOZ_DEBUG_FLAGS@
MOZ_DEBUG_LDFLAGS=@MOZ_DEBUG_LDFLAGS@
MOZ_EXTENSIONS  = @MOZ_EXTENSIONS@
MOZ_JSDEBUGGER  = @MOZ_JSDEBUGGER@
MOZ_IPDL_TESTS 	= @MOZ_IPDL_TESTS@
MOZ_LEAKY	= @MOZ_LEAKY@
MOZ_MEMORY      = @MOZ_MEMORY@
MOZ_PROFILING   = @MOZ_PROFILING@
MOZ_ENABLE_PROFILER_SPS = @MOZ_ENABLE_PROFILER_SPS@
MOZ_JPROF       = @MOZ_JPROF@
MOZ_SHARK       = @MOZ_SHARK@
MOZ_CALLGRIND   = @MOZ_CALLGRIND@
MOZ_VTUNE       = @MOZ_VTUNE@
MOZ_ETW         = @MOZ_ETW@
MOZ_TRACE_JSCALLS = @MOZ_TRACE_JSCALLS@
MOZ_TRACEVIS    = @MOZ_TRACEVIS@
DEHYDRA_PATH    = @DEHYDRA_PATH@

NS_TRACE_MALLOC = @NS_TRACE_MALLOC@
USE_ELF_DYNSTR_GC = @USE_ELF_DYNSTR_GC@
USE_ELF_HACK = @USE_ELF_HACK@
STDCXX_COMPAT = @STDCXX_COMPAT@
MOZ_LIBSTDCXX_TARGET_VERSION=@MOZ_LIBSTDCXX_TARGET_VERSION@
MOZ_LIBSTDCXX_HOST_VERSION=@MOZ_LIBSTDCXX_HOST_VERSION@
INCREMENTAL_LINKER = @INCREMENTAL_LINKER@
MACOSX_DEPLOYMENT_TARGET = @MACOSX_DEPLOYMENT_TARGET@
MOZ_MAIL_NEWS	= @MOZ_MAIL_NEWS@
ENABLE_TESTS	= @ENABLE_TESTS@
IBMBIDI = @IBMBIDI@
MOZ_UNIVERSALCHARDET = @MOZ_UNIVERSALCHARDET@
ACCESSIBILITY = @ACCESSIBILITY@
MOZ_BRANDING_DIRECTORY = @MOZ_BRANDING_DIRECTORY@
XPCOM_USE_LEA = @XPCOM_USE_LEA@
MOZ_INSTALLER	= @MOZ_INSTALLER@
MOZ_UPDATER	= @MOZ_UPDATER@
MOZ_UPDATE_CHANNEL	= @MOZ_UPDATE_CHANNEL@
MOZ_UPDATE_PACKAGING	= @MOZ_UPDATE_PACKAGING@
MOZ_DISABLE_PARENTAL_CONTROLS = @MOZ_DISABLE_PARENTAL_CONTROLS@
NS_ENABLE_TSF = @NS_ENABLE_TSF@
MOZ_SPELLCHECK = @MOZ_SPELLCHECK@
MOZ_PROFILELOCKING = @MOZ_PROFILELOCKING@
MOZ_FEEDS = @MOZ_FEEDS@
MOZ_TOOLKIT_SEARCH = @MOZ_TOOLKIT_SEARCH@
MOZ_PLACES = @MOZ_PLACES@
MOZ_SAFE_BROWSING = @MOZ_SAFE_BROWSING@
MOZ_URL_CLASSIFIER = @MOZ_URL_CLASSIFIER@
MOZ_ZIPWRITER = @MOZ_ZIPWRITER@
MOZ_OGG = @MOZ_OGG@
MOZ_RAW = @MOZ_RAW@
MOZ_SYDNEYAUDIO = @MOZ_SYDNEYAUDIO@
MOZ_WAVE = @MOZ_WAVE@
MOZ_MEDIA = @MOZ_MEDIA@
MOZ_VORBIS = @MOZ_VORBIS@
MOZ_TREMOR = @MOZ_TREMOR@
MOZ_NO_THEORA_ASM = @MOZ_NO_THEORA_ASM@
MOZ_WEBM = @MOZ_WEBM@
MOZ_VP8_ERROR_CONCEALMENT = @MOZ_VP8_ERROR_CONCEALMENT@
MOZ_VP8_ENCODER = @MOZ_VP8_ENCODER@
VPX_AS = @VPX_AS@
VPX_ASFLAGS = @VPX_ASFLAGS@
VPX_DASH_C_FLAG = @VPX_DASH_C_FLAG@
VPX_AS_CONVERSION = @VPX_AS_CONVERSION@
VPX_ASM_SUFFIX = @VPX_ASM_SUFFIX@
VPX_X86_ASM = @VPX_X86_ASM@
VPX_ARM_ASM = @VPX_ARM_ASM@
VPX_NEED_OBJ_INT_EXTRACT = @VPX_NEED_OBJ_INT_EXTRACT@
LIBJPEG_TURBO_AS = @LIBJPEG_TURBO_AS@
LIBJPEG_TURBO_ASFLAGS = @LIBJPEG_TURBO_ASFLAGS@
LIBJPEG_TURBO_X86_ASM = @LIBJPEG_TURBO_X86_ASM@
LIBJPEG_TURBO_X64_ASM = @LIBJPEG_TURBO_X64_ASM@
NS_PRINTING = @NS_PRINTING@
MOZ_PDF_PRINTING = @MOZ_PDF_PRINTING@
MOZ_CRASHREPORTER = @MOZ_CRASHREPORTER@
MOZ_HELP_VIEWER = @MOZ_HELP_VIEWER@
MOC= @MOC@
MOZ_NSS_PATCH = @MOZ_NSS_PATCH@
MOZ_WEBGL = @MOZ_WEBGL@
MOZ_ANGLE = @MOZ_ANGLE@
MOZ_DIRECTX_SDK_PATH = @MOZ_DIRECTX_SDK_PATH@
MOZ_DIRECTX_SDK_CPU_SUFFIX = @MOZ_DIRECTX_SDK_CPU_SUFFIX@
MOZ_D3DX9_VERSION = @MOZ_D3DX9_VERSION@
MOZ_D3DX9_CAB = @MOZ_D3DX9_CAB@
MOZ_D3DCOMPILER_CAB = @MOZ_D3DCOMPILER_CAB@
MOZ_D3DX9_DLL = @MOZ_D3DX9_DLL@
MOZ_D3DCOMPILER_DLL = @MOZ_D3DCOMPILER_DLL@


JAVA="@JAVA@"
JAVAC="@JAVAC@"
JAR="@JAR@"

TAR=@TAR@

MAKENSISU=@MAKENSISU@

RM = rm -f

# The MOZ_UI_LOCALE var is used to build a particular locale. Do *not*
# use the var to change any binary files. Do *not* use this var unless you
# write rules for the "clean-locale" and "locale" targets.
MOZ_UI_LOCALE = @MOZ_UI_LOCALE@

MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS = @MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS@
MOZ_COMPONENT_NSPR_LIBS=@MOZ_COMPONENT_NSPR_LIBS@

MOZ_FIX_LINK_PATHS=@MOZ_FIX_LINK_PATHS@

XPCOM_FROZEN_LDOPTS=@XPCOM_FROZEN_LDOPTS@
XPCOM_LIBS=@XPCOM_LIBS@
LIBXUL_LIBS=@LIBXUL_LIBS@

ENABLE_STRIP	= @ENABLE_STRIP@
PKG_SKIP_STRIP	= @PKG_SKIP_STRIP@

ClientWallet=1
CookieManagement=1
SingleSignon=1

MOZ_POST_DSO_LIB_COMMAND = @MOZ_POST_DSO_LIB_COMMAND@
MOZ_POST_PROGRAM_COMMAND = @MOZ_POST_PROGRAM_COMMAND@

MOZ_BUILD_ROOT             = @MOZ_BUILD_ROOT@

MOZ_XUL                    = @MOZ_XUL@

NECKO_PROTOCOLS = @NECKO_PROTOCOLS@
NECKO_COOKIES = @NECKO_COOKIES@
NECKO_WIFI = @NECKO_WIFI@
MOZ_AUTH_EXTENSION = @MOZ_AUTH_EXTENSION@

MOZ_NATIVE_HUNSPELL = @SYSTEM_HUNSPELL@
MOZ_HUNSPELL_LIBS = @MOZ_HUNSPELL_LIBS@
MOZ_HUNSPELL_CFLAGS = @MOZ_HUNSPELL_CFLAGS@

MOZ_NATIVE_LIBEVENT = @MOZ_NATIVE_LIBEVENT@
MOZ_LIBEVENT_LIBS = @MOZ_LIBEVENT_LIBS@
MOZ_LIBEVENT_INCLUDES = @MOZ_LIBEVENT_INCLUDES@

MOZ_NATIVE_LIBVPX = @MOZ_NATIVE_LIBVPX@
MOZ_LIBVPX_LIBS = @MOZ_LIBVPX_LIBS@
MOZ_LIBVPX_INCLUDES = @MOZ_LIBVPX_INCLUDES@

MOZ_NATIVE_ZLIB	= @SYSTEM_ZLIB@
MOZ_NATIVE_BZ2	= @SYSTEM_BZ2@
MOZ_NATIVE_JPEG	= @SYSTEM_JPEG@
MOZ_NATIVE_PNG	= @SYSTEM_PNG@
MOZ_TREE_CAIRO = @MOZ_TREE_CAIRO@
MOZ_TREE_PIXMAN = @MOZ_TREE_PIXMAN@

MOZ_UPDATE_XTERM = @MOZ_UPDATE_XTERM@
MOZ_PERMISSIONS = @MOZ_PERMISSIONS@
MOZ_XTF = @MOZ_XTF@
MOZ_SVG_DLISTS = @MOZ_SVG_DLISTS@
MOZ_CAIRO_CFLAGS = @MOZ_CAIRO_CFLAGS@

MOZ_PREF_EXTENSIONS = @MOZ_PREF_EXTENSIONS@

MOZ_CAIRO_LIBS = @MOZ_CAIRO_LIBS@

MOZ_ENABLE_GNOMEUI = @MOZ_ENABLE_GNOMEUI@
MOZ_GNOMEUI_CFLAGS = @MOZ_GNOMEUI_CFLAGS@
MOZ_GNOMEUI_LIBS = @MOZ_GNOMEUI_LIBS@

MOZ_ENABLE_STARTUP_NOTIFICATION = @MOZ_ENABLE_STARTUP_NOTIFICATION@
MOZ_STARTUP_NOTIFICATION_CFLAGS = @MOZ_STARTUP_NOTIFICATION_CFLAGS@
MOZ_STARTUP_NOTIFICATION_LIBS = @MOZ_STARTUP_NOTIFICATION_LIBS@

MOZ_ENABLE_GNOMEVFS = @MOZ_ENABLE_GNOMEVFS@
MOZ_GNOMEVFS_CFLAGS = @MOZ_GNOMEVFS_CFLAGS@
MOZ_GNOMEVFS_LIBS = @MOZ_GNOMEVFS_LIBS@

MOZ_ENABLE_GCONF = @MOZ_ENABLE_GCONF@
MOZ_GCONF_CFLAGS = @MOZ_GCONF_CFLAGS@
MOZ_GCONF_LIBS = @MOZ_GCONF_LIBS@

MOZ_ENABLE_GNOME_COMPONENT = @MOZ_ENABLE_GNOME_COMPONENT@

MOZ_ENABLE_GIO = @MOZ_ENABLE_GIO@
MOZ_GIO_CFLAGS = @MOZ_GIO_CFLAGS@
MOZ_GIO_LIBS = @MOZ_GIO_LIBS@

MOZ_NATIVE_NSPR = @MOZ_NATIVE_NSPR@
MOZ_NATIVE_NSS = @MOZ_NATIVE_NSS@

BUILD_CTYPES = @BUILD_CTYPES@

COMPILE_ENVIRONMENT = @COMPILE_ENVIRONMENT@
CROSS_COMPILE   = @CROSS_COMPILE@

WCHAR_CFLAGS	= @WCHAR_CFLAGS@

OS_CPPFLAGS	= @CPPFLAGS@
OS_CFLAGS	= $(OS_CPPFLAGS) @CFLAGS@
OS_CXXFLAGS	= $(OS_CPPFLAGS) @CXXFLAGS@
OS_LDFLAGS	= @LDFLAGS@

OS_COMPILE_CFLAGS = $(OS_CPPFLAGS) @COMPILE_CFLAGS@
OS_COMPILE_CXXFLAGS = $(OS_CPPFLAGS) @COMPILE_CXXFLAGS@

OS_INCLUDES	= $(NSPR_CFLAGS) $(NSS_CFLAGS) $(JPEG_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS)
OS_LIBS		= @LIBS@
ACDEFINES	= @MOZ_DEFINES@

WARNINGS_AS_ERRORS = @WARNINGS_AS_ERRORS@

MOZ_OPTIMIZE	= @MOZ_OPTIMIZE@
MOZ_FRAMEPTR_FLAGS = @MOZ_FRAMEPTR_FLAGS@
MOZ_OPTIMIZE_FLAGS = @MOZ_OPTIMIZE_FLAGS@
MOZ_PGO_OPTIMIZE_FLAGS = @MOZ_PGO_OPTIMIZE_FLAGS@
MOZ_OPTIMIZE_LDFLAGS = @MOZ_OPTIMIZE_LDFLAGS@
MOZ_OPTIMIZE_SIZE_TWEAK = @MOZ_OPTIMIZE_SIZE_TWEAK@

MOZ_RTTI_FLAGS_ON = @_MOZ_RTTI_FLAGS_ON@

PROFILE_GEN_CFLAGS = @PROFILE_GEN_CFLAGS@
PROFILE_GEN_LDFLAGS = @PROFILE_GEN_LDFLAGS@
PROFILE_USE_CFLAGS = @PROFILE_USE_CFLAGS@
PROFILE_USE_LDFLAGS = @PROFILE_USE_LDFLAGS@

XCFLAGS		= @XCFLAGS@
XLDFLAGS	= @XLDFLAGS@
XLIBS		= @XLIBS@
XEXT_LIBS	= @XEXT_LIBS@
XCOMPOSITE_LIBS	= @XCOMPOSITE_LIBS@
XSS_LIBS	= @XSS_LIBS@

MOZ_THUMB2	= @MOZ_THUMB2@
MOZ_EGL_XRENDER_COMPOSITE	= @MOZ_EGL_XRENDER_COMPOSITE@

WIN_TOP_SRC	= @WIN_TOP_SRC@
AR		= @AR@
AR_FLAGS	= @AR_FLAGS@
AR_EXTRACT	= @AR_EXTRACT@
AR_LIST		= @AR_LIST@
AR_DELETE	= @AR_DELETE@
AS		= @AS@
ASFLAGS		= @ASFLAGS@
AS_DASH_C_FLAG	= @AS_DASH_C_FLAG@
LD		= @LD@
RC		= @RC@
RCFLAGS		= @RCFLAGS@
MC		= @MC@
WINDRES		= @WINDRES@
IMPLIB		= @IMPLIB@
FILTER		= @FILTER@
BIN_FLAGS	= @BIN_FLAGS@
MIDL		= @MIDL@
MIDL_FLAGS	= @MIDL_FLAGS@
_MSC_VER	= @_MSC_VER@

DLL_PREFIX	= @DLL_PREFIX@
LIB_PREFIX	= @LIB_PREFIX@
# We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't
# manually use it before config.mk inclusion
OBJ_SUFFIX	= $(error config/config.mk needs to be included before using OBJ_SUFFIX)
_OBJ_SUFFIX	= @OBJ_SUFFIX@
LIB_SUFFIX	= @LIB_SUFFIX@
DLL_SUFFIX	= @DLL_SUFFIX@
BIN_SUFFIX	= @BIN_SUFFIX@
ASM_SUFFIX	= @ASM_SUFFIX@
IMPORT_LIB_SUFFIX = @IMPORT_LIB_SUFFIX@
LIBS_DESC_SUFFIX = @LIBS_DESC_SUFFIX@
USE_N32		= @USE_N32@
HAVE_64BIT_OS	= @HAVE_64BIT_OS@

CC		    = @CC@
CXX		    = @CXX@

CC_VERSION	= @CC_VERSION@
CXX_VERSION	= @CXX_VERSION@

GNU_AS		= @GNU_AS@
GNU_LD		= @GNU_LD@
GNU_CC		= @GNU_CC@
GNU_CXX		= @GNU_CXX@
INTEL_CC	= @INTEL_CC@
INTEL_CXX	= @INTEL_CXX@

STL_FLAGS		= @STL_FLAGS@
WRAP_STL_INCLUDES	= @WRAP_STL_INCLUDES@
MOZ_MSVC_STL_WRAP__Throw= @MOZ_MSVC_STL_WRAP__Throw@
MOZ_MSVC_STL_WRAP__RAISE= @MOZ_MSVC_STL_WRAP__RAISE@

HOST_CC		= @HOST_CC@
HOST_CXX	= @HOST_CXX@
HOST_CFLAGS	= @HOST_CFLAGS@
HOST_CXXFLAGS	= @HOST_CXXFLAGS@
HOST_LDFLAGS	= @HOST_LDFLAGS@
HOST_OPTIMIZE_FLAGS = @HOST_OPTIMIZE_FLAGS@
HOST_NSPR_MDCPUCFG = @HOST_NSPR_MDCPUCFG@
HOST_AR		= @HOST_AR@
HOST_AR_FLAGS	= @HOST_AR_FLAGS@
HOST_LD		= @HOST_LD@
HOST_RANLIB	= @HOST_RANLIB@
HOST_BIN_SUFFIX	= @HOST_BIN_SUFFIX@

HOST_OS_ARCH	= @HOST_OS_ARCH@
host_cpu	= @host_cpu@
host_vendor	= @host_vendor@
host_os		= @host_os@

TARGET_NSPR_MDCPUCFG = @TARGET_NSPR_MDCPUCFG@
TARGET_CPU	= @TARGET_CPU@
TARGET_VENDOR	= @TARGET_VENDOR@
TARGET_OS	= @TARGET_OS@
TARGET_MD_ARCH	= @TARGET_MD_ARCH@
TARGET_XPCOM_ABI = @TARGET_XPCOM_ABI@

AUTOCONF	= @AUTOCONF@
GMAKE		= @GMAKE@
PERL		= @PERL@
PYTHON		= @PYTHON@
RANLIB		= @RANLIB@
OBJCOPY		= @OBJCOPY@
UNZIP		= @UNZIP@
ZIP		= @ZIP@
XARGS		= @XARGS@
STRIP		= @STRIP@
DOXYGEN		= @DOXYGEN@
PBBUILD_BIN	= @PBBUILD@
SDP		= @SDP@
NSINSTALL_BIN	= @NSINSTALL_BIN@
WGET		= @WGET@
RPMBUILD	= @RPMBUILD@

ifdef MOZ_NATIVE_JPEG
JPEG_CFLAGS	= @JPEG_CFLAGS@
JPEG_LIBS	= @JPEG_LIBS@
JPEG_REQUIRES	=
else
JPEG_CFLAGS	= @MOZ_JPEG_CFLAGS@
JPEG_LIBS	= @MOZ_JPEG_LIBS@
JPEG_REQUIRES	= jpeg
endif

ifdef MOZ_NATIVE_ZLIB
ZLIB_CFLAGS	= @ZLIB_CFLAGS@
ZLIB_LIBS	= @ZLIB_LIBS@
ZLIB_REQUIRES	=
else
ZLIB_CFLAGS	= @MOZ_ZLIB_CFLAGS@
MOZ_ZLIB_LIBS = @MOZ_ZLIB_LIBS@
ZLIB_REQUIRES	= zlib
endif

ifdef MOZ_NATIVE_BZ2
BZ2_CFLAGS	= @BZ2_CFLAGS@
BZ2_LIBS	= @BZ2_LIBS@
BZ2_REQUIRES	=
else
BZ2_CFLAGS	= @MOZ_BZ2_CFLAGS@
BZ2_LIBS	= @MOZ_BZ2_LIBS@
BZ2_REQUIRES	= libbz2
endif

ifdef MOZ_NATIVE_PNG
PNG_CFLAGS	= @PNG_CFLAGS@
PNG_LIBS	= @PNG_LIBS@
PNG_REQUIRES	=
else
PNG_CFLAGS	= @MOZ_PNG_CFLAGS@
PNG_LIBS	= @MOZ_PNG_LIBS@
PNG_REQUIRES	= png
endif

QCMS_LIBS	= @QCMS_LIBS@

MOZ_HARFBUZZ_LIBS = @MOZ_HARFBUZZ_LIBS@
MOZ_OTS_LIBS = @MOZ_OTS_LIBS@
MOZ_SKIA_LIBS = @MOZ_SKIA_LIBS@

MOZ_NATIVE_SQLITE = @MOZ_NATIVE_SQLITE@
SQLITE_CFLAGS     = @SQLITE_CFLAGS@
SQLITE_LIBS       = @SQLITE_LIBS@

NSPR_CONFIG	= @NSPR_CONFIG@
NSPR_CFLAGS	= @NSPR_CFLAGS@
NSPR_LIBS	= @NSPR_LIBS@

NSS_CONFIG	= @NSS_CONFIG@
NSS_CFLAGS	= @NSS_CFLAGS@
NSS_LIBS	= @NSS_LIBS@
NSS_DEP_LIBS	= @NSS_DEP_LIBS@
NSS_DISABLE_DBM = @NSS_DISABLE_DBM@

XPCOM_GLUE_LDOPTS = @XPCOM_GLUE_LDOPTS@
XPCOM_STANDALONE_GLUE_LDOPTS = @XPCOM_STANDALONE_GLUE_LDOPTS@

USE_DEPENDENT_LIBS = @USE_DEPENDENT_LIBS@

# UNIX98 iconv support
LIBICONV = @LIBICONV@

# MKSHLIB_FORCE_ALL is used to force the linker to include all object
# files present in an archive. MKSHLIB_UNFORCE_ALL reverts the linker
# to normal behavior. Makefile's that create shared libraries out of
# archives use these flags to force in all of the .o files in the
# archives into the shared library.
WRAP_LDFLAGS            = @WRAP_LDFLAGS@
DSO_CFLAGS              = @DSO_CFLAGS@
DSO_PIC_CFLAGS          = @DSO_PIC_CFLAGS@
MKSHLIB                 = @MKSHLIB@
MKCSHLIB                = @MKCSHLIB@
MKSHLIB_FORCE_ALL       = @MKSHLIB_FORCE_ALL@
MKSHLIB_UNFORCE_ALL     = @MKSHLIB_UNFORCE_ALL@
DSO_LDOPTS              = @DSO_LDOPTS@
DLL_SUFFIX              = @DLL_SUFFIX@

NO_LD_ARCHIVE_FLAGS     = @NO_LD_ARCHIVE_FLAGS@

GTK_CONFIG	= @GTK_CONFIG@
QT_CONFIG	= @QT_CONFIG@
TK_CFLAGS	= @TK_CFLAGS@
TK_LIBS		= @TK_LIBS@

MOZ_TOOLKIT_REGISTRY_CFLAGS = \
	$(TK_CFLAGS)

CAIRO_FT_CFLAGS		= @CAIRO_FT_CFLAGS@

MOZ_TREE_FREETYPE		= @MOZ_TREE_FREETYPE@
MOZ_ENABLE_CAIRO_FT	= @MOZ_ENABLE_CAIRO_FT@
MOZ_ENABLE_GTK2		= @MOZ_ENABLE_GTK2@
MOZ_ENABLE_QT		= @MOZ_ENABLE_QT@
MOZ_ENABLE_XREMOTE	= @MOZ_ENABLE_XREMOTE@
MOZ_ENABLE_DWRITE_FONT	= @MOZ_ENABLE_DWRITE_FONT@
MOZ_ENABLE_D2D_SURFACE	= @MOZ_ENABLE_D2D_SURFACE@
MOZ_ENABLE_D3D9_LAYER	= @MOZ_ENABLE_D3D9_LAYER@
MOZ_ENABLE_D3D10_LAYER  = @MOZ_ENABLE_D3D10_LAYER@

MOZ_GTK2_CFLAGS		= @MOZ_GTK2_CFLAGS@
MOZ_GTK2_LIBS		= @MOZ_GTK2_LIBS@

MOZ_QT_CFLAGS		= @MOZ_QT_CFLAGS@
MOZ_QT_LIBS		= @MOZ_QT_LIBS@
MOZ_ENABLE_QTNETWORK    = @MOZ_ENABLE_QTNETWORK@
MOZ_ENABLE_QMSYSTEM2    = @MOZ_ENABLE_QMSYSTEM2@
MOZ_ENABLE_QTMOBILITY   = @MOZ_ENABLE_QTMOBILITY@
MOZ_ENABLE_CONTENTACTION   = @MOZ_ENABLE_CONTENTACTION@
MOZ_ENABLE_MEEGOTOUCHSHARE = @MOZ_ENABLE_MEEGOTOUCHSHARE@
MOZ_ENABLE_CONTENTMANAGER = @MOZ_ENABLE_CONTENTMANAGER@

MOZ_DBUS_CFLAGS         = @MOZ_DBUS_CFLAGS@
MOZ_DBUS_LIBS           = @MOZ_DBUS_LIBS@
MOZ_DBUS_GLIB_CFLAGS    = @MOZ_DBUS_GLIB_CFLAGS@
MOZ_DBUS_GLIB_LIBS      = @MOZ_DBUS_GLIB_LIBS@
MOZ_ENABLE_DBUS         = @MOZ_ENABLE_DBUS@

MOZ_GTHREAD_CFLAGS      = @MOZ_GTHREAD_CFLAGS@
MOZ_GTHREAD_LIBS        = @MOZ_GTHREAD_LIBS@

FT2_CFLAGS             = @FT2_CFLAGS@
FT2_LIBS               = @FT2_LIBS@

MOZ_PANGO_CFLAGS        = @MOZ_PANGO_CFLAGS@
MOZ_PANGO_LIBS          = @MOZ_PANGO_LIBS@

XT_LIBS			= @XT_LIBS@

MOZ_LIBPROXY_CFLAGS     = @MOZ_LIBPROXY_CFLAGS@
MOZ_LIBPROXY_LIBS       = @MOZ_LIBPROXY_LIBS@
MOZ_ENABLE_LIBPROXY     = @MOZ_ENABLE_LIBPROXY@

MOZ_LIBNOTIFY_CFLAGS	= @MOZ_LIBNOTIFY_CFLAGS@
MOZ_LIBNOTIFY_LIBS	= @MOZ_LIBNOTIFY_LIBS@
MOZ_ENABLE_LIBNOTIFY	= @MOZ_ENABLE_LIBNOTIFY@

MOZ_ALSA_LIBS           = @MOZ_ALSA_LIBS@

GLIB_CFLAGS	= @GLIB_CFLAGS@
GLIB_LIBS	= @GLIB_LIBS@
GLIB_GMODULE_LIBS	= @GLIB_GMODULE_LIBS@

MOZ_NATIVE_MAKEDEPEND	= @SYSTEM_MAKEDEPEND@

export CL_INCLUDES_PREFIX = @CL_INCLUDES_PREFIX@

MOZ_AUTO_DEPS	= @MOZ_AUTO_DEPS@
COMPILER_DEPEND = @COMPILER_DEPEND@
MDDEPDIR        := @MDDEPDIR@
CC_WRAPPER = @CC_WRAPPER@
CXX_WRAPPER = @CXX_WRAPPER@

MOZ_DEMANGLE_SYMBOLS = @MOZ_DEMANGLE_SYMBOLS@

# XXX - these need to be cleaned up and have real checks added -cls
CM_BLDTYPE=dbg
AWT_11=1
OS_TARGET=@OS_TARGET@
OS_ARCH=@OS_ARCH@
OS_RELEASE=@OS_RELEASE@
OS_TEST=@OS_TEST@
CPU_ARCH=@CPU_ARCH@
INTEL_ARCHITECTURE=@INTEL_ARCHITECTURE@

# For Solaris build
SOLARIS_SUNPRO_CC = @SOLARIS_SUNPRO_CC@
SOLARIS_SUNPRO_CXX = @SOLARIS_SUNPRO_CXX@

# For AIX build
AIX_OBJMODEL = @AIX_OBJMODEL@

# For OS/2 build
MOZ_OS2_TOOLS = @MOZ_OS2_TOOLS@
MOZ_OS2_HIGH_MEMORY = @MOZ_OS2_HIGH_MEMORY@

MOZ_PSM=@MOZ_PSM@

# Gssapi (krb5) libraries and headers for the Negotiate auth method
GSSAPI_INCLUDES = @GSSAPI_INCLUDES@
USE_GSSAPI	= @USE_GSSAPI@

MOZILLA_OFFICIAL = @MOZILLA_OFFICIAL@

# Win32 options
MOZ_BROWSE_INFO	= @MOZ_BROWSE_INFO@
MOZ_TOOLS_DIR	= @MOZ_TOOLS_DIR@
MOZ_QUANTIFY	= @MOZ_QUANTIFY@
MSMANIFEST_TOOL = @MSMANIFEST_TOOL@
WIN32_REDIST_DIR = @WIN32_REDIST_DIR@
MOZ_UTILS_LDFLAGS = @MOZ_UTILS_LDFLAGS@
MOZ_UTILS_PROGRAM_LDFLAGS = @MOZ_UTILS_PROGRAM_LDFLAGS@
WIN32_CRT_LIBS = @WIN32_CRT_LIBS@

# This is used to pass jemalloc flags to NSS
DLLFLAGS = @DLLFLAGS@

# Codesighs tools option, enables win32 mapfiles.
MOZ_MAPINFO	= @MOZ_MAPINFO@

MOZ_PHOENIX	= @MOZ_PHOENIX@
MOZ_XULRUNNER	= @MOZ_XULRUNNER@

MOZ_DISTRIBUTION_ID = @MOZ_DISTRIBUTION_ID@

MOZ_PLATFORM_MAEMO = @MOZ_PLATFORM_MAEMO@
MOZ_PLATFORM_MAEMO_CFLAGS	= @MOZ_PLATFORM_MAEMO_CFLAGS@
MOZ_PLATFORM_MAEMO_LIBS 	= @MOZ_PLATFORM_MAEMO_LIBS@
MOZ_MAEMO_LIBLOCATION 	= @MOZ_MAEMO_LIBLOCATION@

MOZ_ENABLE_LIBCONIC = @MOZ_ENABLE_LIBCONIC@
LIBCONIC_CFLAGS     = @LIBCONIC_CFLAGS@
LIBCONIC_LIBS       = @LIBCONIC_LIBS@

MACOS_SDK_DIR	= @MACOS_SDK_DIR@
NEXT_ROOT	= @NEXT_ROOT@
GCC_VERSION	= @GCC_VERSION@
UNIVERSAL_BINARY= @UNIVERSAL_BINARY@
MOZ_CAN_RUN_PROGRAMS = @MOZ_CAN_RUN_PROGRAMS@
HAVE_DTRACE= @HAVE_DTRACE@

VISIBILITY_FLAGS = @VISIBILITY_FLAGS@
WRAP_SYSTEM_INCLUDES = @WRAP_SYSTEM_INCLUDES@

HAVE_ARM_SIMD = @HAVE_ARM_SIMD@
HAVE_ARM_NEON = @HAVE_ARM_NEON@
HAVE_GCC_ALIGN_ARG_POINTER = @HAVE_GCC_ALIGN_ARG_POINTER@

MOZ_THEME_FASTSTRIPE = @MOZ_THEME_FASTSTRIPE@

MOZ_SERVICES_SYNC = @MOZ_SERVICES_SYNC@

MOZ_OFFICIAL_BRANDING = @MOZ_OFFICIAL_BRANDING@

HAVE_CLOCK_MONOTONIC = @HAVE_CLOCK_MONOTONIC@
REALTIME_LIBS = @REALTIME_LIBS@

MOZ_APP_COMPONENT_LIBS = @MOZ_APP_COMPONENT_LIBS@
MOZ_APP_EXTRA_LIBS = @MOZ_APP_EXTRA_LIBS@

ANDROID_NDK       = @ANDROID_NDK@
ANDROID_TOOLCHAIN = @ANDROID_TOOLCHAIN@
ANDROID_PLATFORM  = @ANDROID_PLATFORM@
ANDROID_SDK       = @ANDROID_SDK@
ANDROID_PLATFORM_TOOLS = @ANDROID_PLATFORM_TOOLS@
ANDROID_VERSION   = @ANDROID_VERSION@

ANDROID_PACKAGE_NAME = @ANDROID_PACKAGE_NAME@

JS_SHARED_LIBRARY = @JS_SHARED_LIBRARY@

MOZ_INSTRUMENT_EVENT_LOOP = @MOZ_INSTRUMENT_EVENT_LOOP@

# We only want to do the pymake sanity on Windows, other os's can cope
ifeq ($(HOST_OS_ARCH),WINNT)
# Ensure invariants between GNU Make and pymake
# Checked here since we want the sane error in a file that
# actually can be found regardless of path-style.
ifeq (_:,$(.PYMAKE)_$(findstring :,$(srcdir)))
$(error Windows-style srcdir being used with GNU make. Did you mean to run $(topsrcdir)/build/pymake/make.py instead? [see-also: https://developer.mozilla.org/en/Gmake_vs._Pymake])
endif
ifeq (1_a,$(.PYMAKE)_$(firstword a$(subst /, ,$(srcdir))))
$(error MSYS-style srcdir being used with Pymake. Did you mean to run GNU Make instead? [see-also: https://developer.mozilla.org/en/Gmake_vs._Pymake])
endif
endif # WINNT
