diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-08 12:43:14 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-08 12:43:14 +0000 |
commit | 4913215ea3abb4340bcf56564eca84e8f6d0d9f3 (patch) | |
tree | 883cfb6d56fbfccb32f4687714a7de99b44f9874 /Build/source/texk/dvisvgm/configure.ac | |
parent | de9ca7eda14337c01d1f75c831fdd2e78ef97381 (diff) |
dvisvgm 1.4
git-svn-id: svn://tug.org/texlive/trunk@31387 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/configure.ac')
-rw-r--r-- | Build/source/texk/dvisvgm/configure.ac | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/Build/source/texk/dvisvgm/configure.ac b/Build/source/texk/dvisvgm/configure.ac index 81c1b684067..f428120bbce 100644 --- a/Build/source/texk/dvisvgm/configure.ac +++ b/Build/source/texk/dvisvgm/configure.ac @@ -103,32 +103,45 @@ AC_SUBST([LIBGS_INCLUDES]) AC_SUBST([LIBGS_LIBS]) AM_CONDITIONAL([dlloader], [test "x$libgs_mode" = xload]) +KPSE_SAVE_FLAGS + if test "x$enable_build" != xno || test -f config.force; then # Checks for more libraries. KPSE_ADD_FLAGS([zlib]) -AC_CHECK_FUNC([gzopen], - [AC_DEFINE([HAVE_LIBZ], 1, - [Define to 1 if you have the `z' library (-lz).])], +AC_CHECK_FUNC([gzopen], [], [AC_MSG_ERROR([cannot find/use zlib])]) KPSE_ADD_FLAGS([freetype2]) -AC_CHECK_FUNC([FT_Init_FreeType], - [AC_DEFINE([HAVE_LIBFREETYPE], 1, - [Define to 1 if you have the `freetype2' library (-lfreetype).])], +AC_CHECK_FUNC([FT_Init_FreeType], [], [AC_MSG_ERROR([cannot find/use libfreetype])]) KPSE_ADD_FLAGS([kpathsea]) -AC_CHECK_FUNC([kpse_set_program_name], - [AC_DEFINE([HAVE_LIBKPATHSEA], 1, - [Define to 1 if you have the `kpathsea' library (-lkpathsea).])], +AC_CHECK_FUNC([kpse_set_program_name], [], [AC_MSG_ERROR([cannot find/use libkpathsea])]) +# Check if the kpathsea headers are C++ safe. +AC_LANG_PUSH([C++]) +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <kpathsea/kpathsea.h>]], + [[printf("%s\n", concat("one", "two"))]])], + [], + [AC_MSG_ERROR([Sorry, your kpathsea headers are too old]) + AC_DEFINE([KPSE_CXX_UNSAFE], 1, + [Define to 1 if the kpathsea headers are not C++ safe.])]) +AC_LANG_POP([C++]) + echo timestamp >config.force fi KPSE_RESTORE_FLAGS +AC_DEFINE([HAVE_LIBZ], 1, [Define to 1 if you have the `z' library (-lz).]) +AC_DEFINE([HAVE_LIBFREETYPE], 1, [Define to 1 if you have the `freetype2' library (-lfreetype).]) +AC_DEFINE([HAVE_LIBKPATHSEA], 1, [Define to 1 if you have the `kpathsea' library (-lkpathsea).]) +if false; then + AC_DEFINE([KPSE_CXX_UNSAFE], 1, [Define to 1 if the kpathsea headers are not C++ safe.]) +fi + AC_SUBST([DVISVGM_TREE], [dvisvgm-]dvisvgm_version) AC_CONFIG_FILES([Makefile]) |