summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/configure.ac
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-07-16 06:04:51 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-07-16 06:04:51 +0000
commit8d657b11012fcd34de58f1b1391e702db435ce03 (patch)
tree1a697b477fd9d5f290dfbc32edb16812aa358f48 /Build/source/texk/web2c/configure.ac
parenta84de82c7d7e52d978b5b88310a0e361752d3cdb (diff)
LuaTeX: Fix build on demand
git-svn-id: svn://tug.org/texlive/trunk@34628 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/configure.ac')
-rw-r--r--Build/source/texk/web2c/configure.ac10
1 files changed, 6 insertions, 4 deletions
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.])