summaryrefslogtreecommitdiff
path: root/Build/source/m4/kpse-poppler-flags.m4
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/m4/kpse-poppler-flags.m4')
-rw-r--r--Build/source/m4/kpse-poppler-flags.m410
1 files changed, 6 insertions, 4 deletions
diff --git a/Build/source/m4/kpse-poppler-flags.m4 b/Build/source/m4/kpse-poppler-flags.m4
index 29f741a97d4..029e495d64c 100644
--- a/Build/source/m4/kpse-poppler-flags.m4
+++ b/Build/source/m4/kpse-poppler-flags.m4
@@ -12,10 +12,12 @@
# Set the make variables POPPLER_INCLUDES and POPPLER_LIBS to the CPPFLAGS and
# LIBS required for the `-lpoppler' library in libs/poppler/ of the TL tree.
AC_DEFUN([KPSE_POPPLER_FLAGS],
-[_KPSE_LIB_FLAGS([poppler], [poppler], [],
- [-IBLD/libs/poppler -IBLD/libs/poppler/goo -IBLD/libs/poppler/poppler],
- [BLD/libs/poppler/libpoppler.a], [],
- [], [${top_builddir}/../../libs/poppler/poppler/Stream.h])[]dnl
+[AC_REQUIRE([KPSE_CHECK_WIN32])[]dnl
+_KPSE_LIB_FLAGS([poppler], [poppler], [],
+ [-IBLD/libs/poppler -IBLD/libs/poppler/goo -IBLD/libs/poppler/poppler],
+ [BLD/libs/poppler/libpoppler.a], [],
+ [], [${top_builddir}/../../libs/poppler/poppler/Stream.h])[]dnl
+test "x$kpse_cv_have_win32" = xno || POPPLER_LIBS="$POPPLER_LIBS -lgdi32"
]) # KPSE_POPPLER_FLAGS
# KPSE_POPPLER_OPTIONS([WITH-SYSTEM])