⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 IN
📖 第 1 页 / 共 3 页
字号:
have_cairo=falsehave_cairo_png=falsehave_cairo_ps=falsehave_cairo_pdf=falsehave_cairo_xlib=falsehave_cairo_freetype=falsehave_cairo_win32=falsehave_cairo_atsui=falsePKG_CHECK_MODULES(CAIRO, cairo >= 1.2.2, have_cairo=true, AC_MSG_RESULT([no]))   if $have_cairo ; then  pango_save_ldflags=$LDFLAGS  m4_pattern_allow([PKG_CONFIG_DISABLE_UNINSTALLED])  INSTALLED_CAIRO_LIBS=`PKG_CONFIG_DISABLE_UNINSTALLED=yes $PKG_CONFIG --libs cairo`  LDFLAGS="$LDFLAGS $INSTALLED_CAIRO_LIBS"  AC_CHECK_LIB(cairo, cairo_surface_write_to_png, have_cairo_png=true, :)  if $have_cairo_png; then    AC_DEFINE(HAVE_CAIRO_PNG, 1, [Whether Cairo has PNG support])  fi  AC_CHECK_LIB(cairo, cairo_ps_surface_create, have_cairo_ps=true, :)  if $have_cairo_ps; then    AC_DEFINE(HAVE_CAIRO_PS, 1, [Whether Cairo has PS support])  fi  AC_CHECK_LIB(cairo, cairo_pdf_surface_create, have_cairo_pdf=true, :)  if $have_cairo_pdf; then    AC_DEFINE(HAVE_CAIRO_PDF, 1, [Whether Cairo has PDF support])  fi  AC_CHECK_LIB(cairo, cairo_xlib_surface_create, have_cairo_xlib=true, :)  if $have_cairo_xlib; then    AC_DEFINE(HAVE_CAIRO_XLIB, 1, [Whether Cairo has Xlib support])  fi  have_cairo=false  AC_CHECK_LIB(cairo, cairo_win32_scaled_font_select_font, have_cairo_win32=true, :)  if $have_cairo_win32 && $have_win32; then    AC_DEFINE(HAVE_CAIRO_WIN32, 1, [Whether Cairo uses the Win32 GDI for fonts])    have_cairo=true  fi  AC_CHECK_LIB(cairo, cairo_ft_scaled_font_lock_face, have_cairo_freetype=true, :)  if $have_cairo_freetype && $have_freetype ; then    AC_DEFINE(HAVE_CAIRO_FREETYPE, 1, [Whether Cairo uses FreeType for fonts])    have_cairo=true  fi  AC_CHECK_LIB(cairo, cairo_atsui_font_face_create_for_atsu_font_id, have_cairo_atsui=true, :)  if $have_cairo_atsui && $have_atsui ; then    AC_DEFINE(HAVE_CAIRO_ATSUI, 1, [Whether Cairo uses ATSUI for fonts])    have_cairo=true  fi  LDFLAGS=$pango_save_ldflagsfiAM_CONDITIONAL(HAVE_CAIRO, $have_cairo)AM_CONDITIONAL(HAVE_CAIRO_PNG, $have_cairo_png)AM_CONDITIONAL(HAVE_CAIRO_PS, $have_cairo_ps)AM_CONDITIONAL(HAVE_CAIRO_PDF, $have_cairo_pdf)AM_CONDITIONAL(HAVE_CAIRO_XLIB, $have_cairo_xlib)AM_CONDITIONAL(HAVE_CAIRO_WIN32, $have_cairo_win32 && $have_win32)AM_CONDITIONAL(HAVE_CAIRO_FREETYPE, $have_cairo_freetype && $have_freetype)AM_CONDITIONAL(HAVE_CAIRO_ATSUI, $have_cairo_atsui && $have_atsui)## We must have some backend defined, in order for the pango-querymodules# rule in pango/Makefile.am to work correctly. If you are up to writing# a new Pango backend outside of Pango, you are up to sending the necessary# patch to fix that rule. :-)#if $have_freetype || $have_x || $have_xft || $have_win32 || $have_cairo_atsui ; then : ; else  AC_MSG_ERROR([*** Didn't find any of FreeType, X11, ATSUI or Win32.*** Must have at least one backend to build Pango.])fi## Checks for GLib#GLIB_REQUIRED_VERSION=2.12.0GLIB_MODULES="glib-2.0 >= $GLIB_REQUIRED_VERSION gobject-2.0 gmodule-no-export-2.0"PKG_CHECK_MODULES(GLIB, $GLIB_MODULES, :,  AC_MSG_ERROR([*** Glib $GLIB_REQUIRED_VERSION or better is required. The latest version of *** Glib is always available from ftp://ftp.gtk.org/.]))# Add in gthread-2.0 to CFLAGS but not to LIBS so we get any# necesary defines for thread-safety.GLIB_CFLAGS=`$PKG_CONFIG --cflags $GLIB_MODULES gthread-2.0`# See if it's safe to turn G_DISABLE_DEPRECATED on.GLIB_VERSION_MAJOR_MINOR=`$PKG_CONFIG --modversion glib-2.0 | sed "s/\.@<:@^.@:>@*\$//"`GLIB_REQUIRED_VERSION_MAJOR_MINOR=`echo $GLIB_REQUIRED_VERSION | sed "s/\.@<:@^.@:>@*\$//"`if test "x$GLIB_VERSION_MAJOR_MINOR" = "x$GLIB_REQUIRED_VERSION_MAJOR_MINOR"; then  GLIB_CFLAGS="-DG_DISABLE_DEPRECATED $GLIB_CFLAGS"fi## Checks for LibThai#have_libthai=falseLIBTHAI_REQUIRED_VERSION=0.1.7PKG_CHECK_MODULES(LIBTHAI, libthai >= $LIBTHAI_REQUIRED_VERSION, have_libthai=true, AC_MSG_RESULT([no]))## Modules to build#arabic_modules="arabic-fc,arabic-lang"basic_modules="basic-fc,basic-win32,basic-x,basic-atsui"hangul_modules="hangul-fc"hebrew_modules="hebrew-fc"indic_modules="indic-fc,indic-lang"khmer_modules="khmer-fc"syriac_modules="syriac-fc"thai_modules="thai-fc"tibetan_modules="tibetan-fc"if $have_libthai ; then  thai_modules="$thai_modules,thai-lang"fiall_modules="$arabic_modules,$basic_modules,$hangul_modules,$hebrew_modules,$indic_modules,$khmer_modules,$syriac_modules,$thai_modules,$tibetan_modules"## Allow building some or all modules included#AC_MSG_CHECKING(modules to link statically)AC_ARG_WITH(included_modules,   AC_HELP_STRING([--with-included-modules=no/yes/MODULE1 MODULE2 ...],                  [build the given modules included @<:@default=no@:>@]))included_modules=""case x$with_included_modules in	xyes)	included_modules=$all_modules ;;	xno|x)	included_modules="" ;;	*)	included_modules=$with_included_modules ;;esacAC_MSG_RESULT($included_modules)AM_CONDITIONAL(HAVE_INCLUDED_MODULES, test "x$included_modules" != x)## Allow building only some or none of modules dynamic#AC_MSG_CHECKING(dynamic modules to build)AC_ARG_WITH(dynamic_modules,   AC_HELP_STRING([--with-dynamic-modules=no/yes/MODULE1 MODULE2 ...],                  [build the given dynamic modules @<:@default=yes@:>@]))dynamic_modules=""case x$with_dynamic_modules in	xyes|x)	dynamic_modules=$all_modules ;;	xno)	dynamic_modules="" ;;	*)	dynamic_modules=$with_dynamic_modules ;;esacAC_MSG_RESULT([$dynamic_modules (those built into Pango will be excluded)])AM_CONDITIONAL(HAVE_DYNAMIC_MODULES, test "x$dynamic_modules" != x)INCLUDED_X_MODULES=INCLUDED_FC_MODULES=INCLUDED_WIN32_MODULES=INCLUDED_ATSUI_MODULES=INCLUDED_LANG_MODULES=AC_SUBST(INCLUDED_X_MODULES)AC_SUBST(INCLUDED_FC_MODULES)AC_SUBST(INCLUDED_WIN32_MODULES)AC_SUBST(INCLUDED_ATSUI_MODULES)AC_SUBST(INCLUDED_LANG_MODULES)IFS="${IFS= 	}"; pango_save_ifs="$IFS"; IFS=", "for module in $included_modules; do  case $indic_modules in    *$module*)	dir=indic ;;    *)		dir=`echo $module | sed "s/-.*//"` ;;  esac  included_path="\$(top_builddir)/modules/$dir/libpango-$module.la"  case $module in    *-x)	INCLUDED_X_MODULES="$INCLUDED_X_MODULES $included_path" ;;    *-fc)	INCLUDED_FC_MODULES="$INCLUDED_FC_MODULES $included_path" ;;    *-win32)	INCLUDED_WIN32_MODULES="$INCLUDED_WIN32_MODULES $included_path" ;;    *-atsui)	INCLUDED_ATSUI_MODULES="$INCLUDED_ATSUI_MODULES $included_path" ;;    *-lang)	INCLUDED_LANG_MODULES="$INCLUDED_LANG_MODULES $included_path" ;;    *)		AC_MSG_ERROR([specified module $module not recognized]) ;;  esacdoneIFS="$pango_save_ifs"AM_CONDITIONAL(INCLUDE_ARABIC_FC,	echo $included_modules | egrep '(^|,)arabic-fc($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_ARABIC_LANG,	echo $included_modules | egrep '(^|,)arabic-lang($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_BASIC_FC,	echo $included_modules | egrep '(^|,)basic-fc($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_BASIC_WIN32,	echo $included_modules | egrep '(^|,)basic-win32($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_BASIC_X,		echo $included_modules | egrep '(^|,)basic-x($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_BASIC_ATSUI,	echo $included_modules | egrep '(^|,)basic-atsui($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_HANGUL_FC,	echo $included_modules | egrep '(^|,)hangul-fc($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_HEBREW_FC,	echo $included_modules | egrep '(^|,)hebrew-fc($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_INDIC_FC,	echo $included_modules | egrep '(^|,)indic-fc($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_INDIC_LANG,	echo $included_modules | egrep '(^|,)indic-lang($|,)'	> /dev/null)AM_CONDITIONAL(INCLUDE_KHMER_FC,	echo $included_modules | egrep '(^|,)khmer-fc($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_SYRIAC_FC,	echo $included_modules | egrep '(^|,)syriac-fc($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_THAI_FC,		echo $included_modules | egrep '(^|,)thai-fc($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_THAI_LANG,	echo $included_modules | egrep '(^|,)thai-lang($|,)' 	> /dev/null)AM_CONDITIONAL(INCLUDE_TIBETAN_FC,	echo $included_modules | egrep '(^|,)tibetan-fc($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_ARABIC_FC,	echo $dynamic_modules | egrep '(^|,)arabic-fc($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_ARABIC_LANG,	echo $dynamic_modules | egrep '(^|,)arabic-lang($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_BASIC_FC,	echo $dynamic_modules | egrep '(^|,)basic-fc($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_BASIC_WIN32,	echo $dynamic_modules | egrep '(^|,)basic-win32($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_BASIC_X,		echo $dynamic_modules | egrep '(^|,)basic-x($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_BASIC_ATSUI,	echo $dynamic_modules | egrep '(^|,)basic-atsui($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_HANGUL_FC,	echo $dynamic_modules | egrep '(^|,)hangul-fc($|,)'	> /dev/null)AM_CONDITIONAL(DYNAMIC_HEBREW_FC,	echo $dynamic_modules | egrep '(^|,)hebrew-fc($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_INDIC_FC,	echo $dynamic_modules | egrep '(^|,)indic-fc($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_INDIC_LANG,	echo $dynamic_modules | egrep '(^|,)indic-lang($|,)'	> /dev/null)AM_CONDITIONAL(DYNAMIC_KHMER_FC,	echo $dynamic_modules | egrep '(^|,)khmer-fc($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_SYRIAC_FC,	echo $dynamic_modules | egrep '(^|,)syriac-fc($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_THAI_FC,		echo $dynamic_modules | egrep '(^|,)thai-fc($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_THAI_LANG,	echo $dynamic_modules | egrep '(^|,)thai-lang($|,)' 	> /dev/null)AM_CONDITIONAL(DYNAMIC_TIBETAN_FC,	echo $dynamic_modules | egrep '(^|,)tibetan-fc($|,)' 	> /dev/null)## We use flockfile to implement pango_getline() - should be moved to GLib# strtok_r isn't present on some systems#AC_CHECK_FUNCS(flockfile strtok_r)## Check for the Uniscribe header usp10.h for Win32#AC_ARG_WITH(usp10,             [AC_HELP_STRING([--with-usp10=DIRECTORY],                            [where to find the usp10.h header file for Win32                             (typically the Include directory in the                             Platform SDK)])])USP10_H=noif test "${with_usp10+set}" = set && test "$with_usp10" != no; then  AC_MSG_CHECKING([for usp10.h])  if test -f "$with_usp10"/usp10.h; then    USP10_H="$with_usp10"/usp10.h  elif test -f "$with_usp10"/include/usp10.h; then    USP10_H="$with_usp10"/include/usp10.h  fi  if test "x$USP10_H" != "xno" ; then    AC_MSG_RESULT(yes)    AC_DEFINE(HAVE_USP10_H, 1, [Have the usp10.h header file for Win32])  else    AC_MSG_RESULT(no)  fifiAC_SUBST(USP10_H)AM_CONDITIONAL(HAVE_USP10_H, test "$USP10_H" != no)    dnl **************************dnl *** Checks for gtk-doc ***dnl **************************if $have_cairo ; then : ; else   if  test x$enable_gtk_doc = xyes ; then      AC_MSG_WARN([Cairo not present, disabling doc building])            enable_gtk_doc=no   fifiGTK_DOC_CHECK([1.0])AC_ARG_ENABLE(man,              AC_HELP_STRING([--enable-man],                             [regenerate man pages from Docbook @<:@default=no@:>@]),	      enable_man=yes,              enable_man=no)if test "x$enable_man" != xno ; then  dnl  dnl Check for xsltproc  dnl  AC_PATH_PROG([XSLTPROC], [xsltproc])  if test -z "$XSLTPROC"; then    enable_man=no  fifiif test "x$enable_man" != xno ; then  dnl check for DocBook DTD and stylesheets in the local catalog.  JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],     [DocBook XML DTD V4.1.2],,enable_man=no)  JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],     [DocBook XSL Stylesheets],,enable_man=no)fiAM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)dnl ********************************************************dnl * Options to pass to libtooldnl ********************************************************# Note that -module isn't included here since automake needs to see it to know# that something like pango-arabic-fc.la is a valid libtool archive#LIBRARY_LIBTOOL_OPTIONS="-version-info $VERSION_INFO"MODULE_LIBTOOL_OPTIONS="-export-dynamic -avoid-version"if test "$pango_os_win32" = yes; then    # We currently use .def files on Windows    true    LIBRARY_LIBTOOL_OPTIONS="$LIBRARY_LIBTOOL_OPTIONS -no-undefined"    MODULE_LIBTOOL_OPTIONS="$MODULE_LIBTOOL_OPTIONS -no-undefined"else    # libtool option to control which symbols are exported    # right now, symbols starting with '_' are not exported    LIBRARY_LIBTOOL_OPTIONS="$LIBRARY_LIBTOOL_OPTIONS "'-export-symbols-regex "^pango_.*"'    MODULE_LIBTOOL_OPTIONS="$MODULE_LIBTOOL_OPTIONS "'-export-symbols-regex "^script_engine_.*"'fiAC_SUBST(LIBRARY_LIBTOOL_OPTIONS)AC_SUBST(MODULE_LIBTOOL_OPTIONS)dnl ********************************************************dnl * See whether we need to load our modules as .la files *

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -