summaryrefslogtreecommitdiff
path: root/print/tex-xetex/files/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'print/tex-xetex/files/patch-configure')
-rw-r--r--print/tex-xetex/files/patch-configure52
1 files changed, 52 insertions, 0 deletions
diff --git a/print/tex-xetex/files/patch-configure b/print/tex-xetex/files/patch-configure
new file mode 100644
index 000000000000..31fbca576bd3
--- /dev/null
+++ b/print/tex-xetex/files/patch-configure
@@ -0,0 +1,52 @@
+--- configure.orig 2015-04-12 11:22:39 UTC
++++ configure
+@@ -1033,6 +1033,8 @@ with_system_poppler
+ with_system_xpdf
+ with_system_zziplib
+ with_system_teckit
++with_teckit_includes
++with_teckit_libdir
+ with_system_icu
+ with_system_graphite2
+ with_system_harfbuzz
+@@ -24071,17 +24073,33 @@ fi
+
+ ## _KPSE_LIB_FLAGS: Setup teckit (-lTECkit) flags
+
+-# Check whether --with-system-teckit was given.
++# Check whether --with-teckit-includes was given.
++if test "${with_teckit_includes+set}" = set; then :
++ withval=$with_teckit_includes;
++fi
++
++# Check whether --with-teckit-libdir was given.
++if test "${with_teckit_libdir+set}" = set; then :
++ withval=$with_teckit_libdir;
++fi
+ if test "${with_system_teckit+set}" = set; then :
+ withval=$with_system_teckit;
+ fi
+ if test "x$with_system_teckit" = xyes; then
+- if $PKG_CONFIG teckit; then
+- TECKIT_INCLUDES=`$PKG_CONFIG teckit --cflags`
+- TECKIT_LIBS=`$PKG_CONFIG teckit --libs`
+-elif test "x$need_teckit:$with_system_teckit" = xyes:yes; then
+- as_fn_error $? "did not find teckit" "$LINENO" 5
+-fi
++ if test "x$with_teckit_includes" != x && test "x$with_teckit_includes" != xyes; then
++ TECKIT_INCLUDES="-I$with_mpfr_includes"
++ fi
++ if test "x$with_teckit_libdir" != x && test "x$with_teckit_libdir" != xyes; then
++ TECKIT_LIBS="-L$with_teckit_libdir -lTECkit"
++ fi
++ if test "x$TECKIT_INCLUDES" = x && test "x$TECKIT_LIBS" = x; then
++ if $PKG_CONFIG teckit; then
++ TECKIT_INCLUDES=`$PKG_CONFIG teckit --cflags`
++ TECKIT_LIBS=`$PKG_CONFIG teckit --libs`
++ elif test "x$need_teckit:$with_system_teckit" = xyes:yes; then
++ as_fn_error $? "did not find teckit" "$LINENO" 5
++ fi
++ fi
+ else
+ TECKIT_INCLUDES="-I$kpse_BLD/libs/teckit/include"
+ TECKIT_LIBS="$kpse_BLD/libs/teckit/libTECkit.a"