From cdae43322cc315a65b9bee9f62b2e28934fefa6a Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Fri, 30 Nov 2012 10:42:45 +0000 Subject: libs/harfbuzz: Added for future XeTeX git-svn-id: svn://tug.org/texlive/trunk@28390 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/m4/kpse-harfbuzz-flags.m4 | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Build/source/m4/kpse-harfbuzz-flags.m4 (limited to 'Build/source/m4/kpse-harfbuzz-flags.m4') diff --git a/Build/source/m4/kpse-harfbuzz-flags.m4 b/Build/source/m4/kpse-harfbuzz-flags.m4 new file mode 100644 index 00000000000..e8fb50d0b1e --- /dev/null +++ b/Build/source/m4/kpse-harfbuzz-flags.m4 @@ -0,0 +1,42 @@ +# Public macros for the TeX Live (TL) tree. +# Copyright (C) 2012 Peter Breitenlohner +# +# This file is free software; the copyright holder +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# KPSE_HARFBUZZ_FLAGS +# ----------------- +# Provide the configure options '--with-system-harfbuzz' (if in the TL tree). +# +# Set the make variables HARFBUZZ_INCLUDES and HARFBUZZ_LIBS to the CPPFLAGS and +# LIBS required for the `-lpng' library in libs/harfbuzz/ of the TL tree. +AC_DEFUN([KPSE_HARFBUZZ_FLAGS], +[AC_REQUIRE([KPSE_FREETYPE2_FLAGS])[]dnl +AC_REQUIRE([KPSE_ICU_FLAGS])[]dnl +_KPSE_LIB_FLAGS([harfbuzz], [harfbuzz], [], + [-IBLD/libs/harfbuzz/include], [BLD/libs/harfbuzz/libharfbuzz.a], [], + [], [${top_builddir}/../../libs/harfbuzz/include/hb.h])[]dnl +]) # KPSE_HARFBUZZ_FLAGS + +# KPSE_HARFBUZZ_OPTIONS([WITH-SYSTEM]) +# ---------------------------------- +AC_DEFUN([KPSE_HARFBUZZ_OPTIONS], +[m4_ifval([$1], + [AC_ARG_WITH([system-harfbuzz], + AS_HELP_STRING([--with-system-harfbuzz], + [use installed harfbuzz headers and library + (requires pkg-config)]))])[]dnl +]) # KPSE_HARFBUZZ_OPTIONS + +# KPSE_HARFBUZZ_SYSTEM_FLAGS +# ------------------------ +AC_DEFUN([KPSE_HARFBUZZ_SYSTEM_FLAGS], +[AC_REQUIRE([_KPSE_CHECK_PKG_CONFIG])[]dnl +if $PKG_CONFIG harfbuzz; then + HARFBUZZ_INCLUDES=`$PKG_CONFIG harfbuzz --cflags` + HARFBUZZ_LIBS=`$PKG_CONFIG harfbuzz --libs` +elif test "x$need_harfbuzz:$with_system_harfbuzz" = xyes:yes; then + AC_MSG_ERROR([did not find harfbuzz]) +fi +]) # KPSE_HARFBUZZ_SYSTEM_FLAGS -- cgit v1.2.3