diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-07-16 06:04:51 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-07-16 06:04:51 +0000 |
commit | 8d657b11012fcd34de58f1b1391e702db435ce03 (patch) | |
tree | 1a697b477fd9d5f290dfbc32edb16812aa358f48 | |
parent | a84de82c7d7e52d978b5b88310a0e361752d3cdb (diff) |
LuaTeX: Fix build on demand
git-svn-id: svn://tug.org/texlive/trunk@34628 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/texk/web2c/configure | 23 | ||||
-rw-r--r-- | Build/source/texk/web2c/configure.ac | 10 |
2 files changed, 18 insertions, 15 deletions
diff --git a/Build/source/texk/web2c/configure b/Build/source/texk/web2c/configure index d725ddae395..5c8d449de8e 100755 --- a/Build/source/texk/web2c/configure +++ b/Build/source/texk/web2c/configure @@ -23742,21 +23742,20 @@ _ACEOF # Check of poppler 0.25 or better -eval CPPFLAGS=\"$POPPLER_INCLUDES \$CPPFLAGS\" +case $with_system_poppler in #( + yes) : + eval CPPFLAGS=\"$POPPLER_INCLUDES \$CPPFLAGS\" eval LIBS=\"$POPPLER_LIBS \$LIBS\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for StructTreeRoot.h (poppler 0.25 or better)" >&5 -$as_echo_n "checking for StructTreeRoot.h (poppler 0.25 or better)... " >&6; } -if ${kpse_cv_have_StructTreeRoot_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_ext=cpp +ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_link="./libtool --mode=link --tag=CXX $ac_link" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for StructTreeRoot.h (poppler 0.25 or better)" >&5 +$as_echo_n "checking for StructTreeRoot.h (poppler 0.25 or better)... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdio.h> @@ -23777,16 +23776,18 @@ else kpse_cv_have_StructTreeRoot_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_StructTreeRoot_h" >&5 +$as_echo "$kpse_cv_have_StructTreeRoot_h" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_link="./libtool --mode=link --tag=CC $ac_link" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_StructTreeRoot_h" >&5 -$as_echo "$kpse_cv_have_StructTreeRoot_h" >&6; } + ;; #( + *) : + kpse_cv_have_StructTreeRoot_h=yes ;; +esac if test "x$kpse_cv_have_StructTreeRoot_h" = xyes; then $as_echo "#define HAVE_STRUCTTREEROOT_H 1" >>confdefs.h diff --git a/Build/source/texk/web2c/configure.ac b/Build/source/texk/web2c/configure.ac index d65475db817..315af0206ea 100644 --- a/Build/source/texk/web2c/configure.ac +++ b/Build/source/texk/web2c/configure.ac @@ -288,11 +288,11 @@ AC_CHECK_SIZEOF([off_t], , AC_INCLUDES_DEFAULT [#include <kpathsea/config.h>]) # Check of poppler 0.25 or better +AS_CASE([$with_system_poppler], + [yes], [dnl KPSE_ADD_FLAGS([poppler]) -AC_CACHE_CHECK([for StructTreeRoot.h (poppler 0.25 or better)], - [kpse_cv_have_StructTreeRoot_h], - [dnl AC_LANG_PUSH([C++]) +AC_MSG_CHECKING([for StructTreeRoot.h (poppler 0.25 or better)]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> #include <StructTreeRoot.h>]], [[PDFDoc *doc; @@ -300,7 +300,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> StructTreeRoot root(doc, dict);]])], [kpse_cv_have_StructTreeRoot_h=yes], [kpse_cv_have_StructTreeRoot_h=no]) -AC_LANG_POP([C++])]) +AC_MSG_RESULT([$kpse_cv_have_StructTreeRoot_h]) +AC_LANG_POP([C++])], + [kpse_cv_have_StructTreeRoot_h=yes]) if test "x$kpse_cv_have_StructTreeRoot_h" = xyes; then AC_DEFINE([HAVE_STRUCTTREEROOT_H], 1, [Define to 1 if you have the <StructTreeRoot.h> header file.]) |