diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-04-02 15:58:38 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-04-02 15:58:38 +0000 |
commit | 68de4bd53edb6bb668112064bcd67faa565a2e0a (patch) | |
tree | d0a3d41fdaa1283e4ebf32f10bf69059b627cfc6 /Build/source/texk/dvipng/configure.ac | |
parent | c8a8f5c5df97a7bfbf58693b9ac635903be7d55f (diff) |
dvipng with system libraries
git-svn-id: svn://tug.org/texlive/trunk@7287 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/configure.ac')
-rw-r--r-- | Build/source/texk/dvipng/configure.ac | 50 |
1 files changed, 37 insertions, 13 deletions
diff --git a/Build/source/texk/dvipng/configure.ac b/Build/source/texk/dvipng/configure.ac index c9439e40a23..1b3b49022ea 100644 --- a/Build/source/texk/dvipng/configure.ac +++ b/Build/source/texk/dvipng/configure.ac @@ -170,25 +170,49 @@ sinclude(../../libs/freetype2/withenable.ac) sinclude(../../libs/freetype2/freetype2.ac) sinclude(../kpathsea/withenable.ac) -AC_DEFINE(HAVE_GDIMAGEGIF) -AC_DEFINE(HAVE_GDIMAGECREATETRUECOLOR) -AC_DEFINE(HAVE_GDIMAGEPNGEX) -AC_DEFINE(HAVE_GD_H) -AC_DEFINE(HAVE_LIBGD) +if test "$with_system_freetype2" = yes; then + OLD_LIBS=$LIBS + LIBS="$LDFREETYPE2 $LIBS" + AC_CHECK_FUNCS([FT_Library_Version]) + LIBS=$OLD_LIBS +else + AC_DEFINE([HAVE_FT_LIBRARY_VERSION]) +fi + +if test "$with_system_gd" = yes; then + OLD_LIBS=$LIBS + LIBS="$LDGD $LIBS" + AC_CHECK_FUNCS([gdImageCreateTrueColor gdImagePngEx gdImageGif gdImageJpeg]) + LIBS=$OLD_LIBS +else + AC_DEFINE([HAVE_GDIMAGECREATETRUECOLOR]) + AC_DEFINE([HAVE_GDIMAGEPNGEX]) + AC_DEFINE([HAVE_GDIMAGEGIF]) +fi + +AC_DEFINE([HAVE_GD_H]) +AC_DEFINE([HAVE_LIBGD]) -AC_DEFINE(HAVE_T1LIB_H) -AC_DEFINE(HAVE_LIBT1) +AC_DEFINE([HAVE_T1LIB_H], 1, + [Define to 1 if you have the <t1lib.h> header file.]) +AC_DEFINE([HAVE_LIBT1], 1, + [Define to 1 if you have the `t1' library (-lt1).]) -AC_DEFINE(HAVE_PNG_H) -AC_DEFINE(HAVE_LIBPNG) +AC_DEFINE([HAVE_PNG_H], 1, + [Define to 1 if you have the <png.h> header file.]) +AC_DEFINE([HAVE_LIBPNG], 1, + [Define to 1 if you have the `png' library (-lpng).]) -AC_DEFINE(HAVE_LIBZ) +AC_DEFINE([HAVE_LIBZ]) # Allow shared or static libkpathsea LIBS="-L../kpathsea/.libs -lkpathsea $LIBS" -AC_DEFINE(HAVE_KPATHSEA_KPATHSEA_H) -AC_DEFINE(HAVE_KPSE_ENC_FORMATS) -AC_DEFINE(HAVE_LIBKPATHSEA) +AC_DEFINE([HAVE_KPATHSEA_KPATHSEA_H], 1, + [Define to 1 if you have the <kpathsea/kpathsea.h> header file.]) +AC_DEFINE([HAVE_KPSE_ENC_FORMATS], 1, + [Define to 1 if your kpathsea has kpse_enc_format.]) +AC_DEFINE([HAVE_LIBKPATHSEA], 1, + [Define to 1 if you have the `kpathsea' library (-lkpathsea).]) # # Check for ApplicationServices framework (Mac OS X) |