diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-08 10:50:58 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-08 10:50:58 +0000 |
commit | de9ca7eda14337c01d1f75c831fdd2e78ef97381 (patch) | |
tree | ef8e1fb83568345217b05a1c726f711316e9f57a /Build/source/texk/dvipdf-x/configure.ac | |
parent | e565d5d60693a481de552c3345c1538252caf705 (diff) |
dvipdfm-x: Bug fix - handle pdf:bann, pdf:eann, and pdf:ann specials
git-svn-id: svn://tug.org/texlive/trunk@31386 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdf-x/configure.ac')
-rw-r--r-- | Build/source/texk/dvipdf-x/configure.ac | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdf-x/configure.ac b/Build/source/texk/dvipdf-x/configure.ac index 43533b9d6f0..f708f7c9079 100644 --- a/Build/source/texk/dvipdf-x/configure.ac +++ b/Build/source/texk/dvipdf-x/configure.ac @@ -58,6 +58,8 @@ KPSE_ZLIB_FLAGS KPSE_LIBPNG_FLAGS KPSE_FREETYPE2_FLAGS +KPSE_SAVE_FLAGS + if test "x$enable_build" != xno || test -f config.force; then KPSE_ADD_FLAGS([kpathsea]) @@ -65,20 +67,33 @@ AC_CHECK_HEADER([kpathsea/version.h], [], [AC_MSG_ERROR([Sorry, kpathsea too old])]) KPSE_ADD_FLAGS([zlib]) -CHO_CHECK_ZLIB +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <zlib.h>]], + [[Bytef *dst,*src; uLong dstlen, srclen; int lvl, err; + err=compress2(dst, &dstlen, src, srclen, lvl);]])], + [], + [AC_MSG_ERROR([Sorry, you need zlib with compress2])]) KPSE_ADD_FLAGS([libpng]) -CHO_CHECK_LIBPNG +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <png.h>]], + [[png_const_structp png; png_const_infop info; int err; + err=png_get_image_width(png, info);]])], + [], + [AC_MSG_ERROR([Sorry, you need libpng])]) KPSE_RESTORE_FLAGS echo timestamp >config.force fi +dnl We require zlib with compress2 and libpng +AC_DEFINE([HAVE_ZLIB], 1, [Define if you have zlib and its headers.]) +AC_DEFINE([HAVE_ZLIB_COMPRESS2], 1, [Define if your zlib has the compress2 function.]) +AC_DEFINE([HAVE_LIBPNG], 1, [Define if you have libpng and its headers.]) + dnl Check for additional libraries. if test "x$enable_texlive_build" != xyes || test ! -d $srcdir/../kpathsea; then - CHO_CHECK_LIBPAPER + KPSE_LIBPAPER fi KPSE_WIN32_CALL |