diff options
Diffstat (limited to 'Build/source/texk/web2c/configure.ac')
-rw-r--r-- | Build/source/texk/web2c/configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/configure.ac b/Build/source/texk/web2c/configure.ac index 0464fc66479..12f73ae9194 100644 --- a/Build/source/texk/web2c/configure.ac +++ b/Build/source/texk/web2c/configure.ac @@ -293,6 +293,20 @@ KPSE_ADD_FLAGS([kpathsea]) AC_CHECK_SIZEOF([off_t], , AC_INCLUDES_DEFAULT [#include <kpathsea/config.h>]) +# Check poppler features +KPSE_ADD_FLAGS([poppler]) +AC_LANG_PUSH([C++]) +AC_CACHE_CHECK([if getStructTreeRoot() returns an Object], + [kpse_cv_getStructTreeRoot_returns_Object], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Catalog.h>]], + [[Catalog *cat; Object *obj = cat->getStructTreeRoot();]])], + [kpse_cv_getStructTreeRoot_returns_Object=yes], + [kpse_cv_getStructTreeRoot_returns_Object=no])]) +AS_IF([test "x$kpse_cv_getStructTreeRoot_returns_Object" = xyes], + [AC_DEFINE([GETSTRUCTTREEROOT_RETURNS_OBJECT], 1, + [Define to 1 if Catalog::getStructTree_Root() returns an Object.])]) +AC_LANG_POP([C++]) + KPSE_RESTORE_FLAGS dnl Write output here, instead of putting a zillion -D's on the command line. |