diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-25 10:27:56 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-25 10:27:56 +0000 |
commit | 14fdf58582eb34614c899048041260830bf11319 (patch) | |
tree | 24c257e172a5759d4653886820e0debc19a79e75 /Build/source/texk/xdv2pdf | |
parent | 1d49a87a191295313dd1fdbce07dfb18ddd65bfc (diff) |
new build system: update
git-svn-id: svn://tug.org/texlive/trunk@12515 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdv2pdf')
-rwxr-xr-x | Build/source/texk/xdv2pdf/configure | 43 | ||||
-rw-r--r-- | Build/source/texk/xdv2pdf/configure.ac | 24 |
2 files changed, 31 insertions, 36 deletions
diff --git a/Build/source/texk/xdv2pdf/configure b/Build/source/texk/xdv2pdf/configure index 32c06d1f686..23169dbbea5 100755 --- a/Build/source/texk/xdv2pdf/configure +++ b/Build/source/texk/xdv2pdf/configure @@ -19951,26 +19951,28 @@ if test "$ac_res" != no; then fi -save_CPPFLAGS=$CPPFLAGS -save_LIBS=$LIBS +kpse_save_CPPFLAGS=$CPPFLAGS +kpse_save_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $KPATHSEA_INCLUDES" LIBS="$KPATHSEA_LIBS $LIBS" -{ $as_echo "$as_me:$LINENO: checking whether you have kpathsea headers and they know about opentype files" >&5 -$as_echo_n "checking whether you have kpathsea headers and they know about opentype files... " >&6; } -cat >conftest.$ac_ext <<_ACEOF +{ $as_echo "$as_me:$LINENO: checking whether kpathsea declares the kpse_opentype_format" >&5 +$as_echo_n "checking whether kpathsea declares the kpse_opentype_format... " >&6; } +if test "${kpse_cv_have_opentype_format+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <stdio.h> -#include <kpathsea/tex-file.h> +#include <kpathsea/kpathsea.h> int main () { -kpse_opentype_format; +kpse_opentype_format ; return 0; } @@ -19996,26 +19998,31 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } + kpse_cv_have_opentype_format=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - build=no - { $as_echo "$as_me:$LINENO: WARNING: Kpathsea does not support opentype files, can not build xdv2pdf." >&5 -$as_echo "$as_me: WARNING: Kpathsea does not support opentype files, can not build xdv2pdf." >&2;} - + kpse_cv_have_opentype_format=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:$LINENO: result: $kpse_cv_have_opentype_format" >&5 +$as_echo "$kpse_cv_have_opentype_format" >&6; } +if test "x$kpse_cv_have_opentype_format" = xyes; then + : +else + build=no +{ $as_echo "$as_me:$LINENO: WARNING: Kpathsea does not support opentype files, can not build xdv2pdf." >&5 +$as_echo "$as_me: WARNING: Kpathsea does not support opentype files, can not build xdv2pdf." >&2;} +fi + +CPPFLAGS=$kpse_save_CPPFLAGS +LIBS=$kpse_save_LIBS -CPPFLAGS=$save_CPPFLAGS -LIBS=$save_LIBS fi diff --git a/Build/source/texk/xdv2pdf/configure.ac b/Build/source/texk/xdv2pdf/configure.ac index af3ae6d8a18..efe6e62ccc5 100644 --- a/Build/source/texk/xdv2pdf/configure.ac +++ b/Build/source/texk/xdv2pdf/configure.ac @@ -46,24 +46,12 @@ dnl Checks for library functions. AC_CHECK_FUNCS([strspn system]) AC_SEARCH_LIBS([pow], [m]) -save_CPPFLAGS=$CPPFLAGS -save_LIBS=$LIBS - -CPPFLAGS="$CPPFLAGS $KPATHSEA_INCLUDES" -LIBS="$KPATHSEA_LIBS $LIBS" - -AC_MSG_CHECKING([whether you have kpathsea headers and they know about opentype files]) -AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> -#include <kpathsea/tex-file.h>]], - [[kpse_opentype_format;]])], - [AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no]) - build=no - AC_MSG_WARN([Kpathsea does not support opentype files, can not build xdv2pdf.]) -]) - -CPPFLAGS=$save_CPPFLAGS -LIBS=$save_LIBS +dnl Check that Kpathsea supports the opentype file format. +KPSE_ADD_FLAGS([kpathsea]) +KPSE_CHECK_KPSE_FORMAT([opentype], , + [build=no +AC_MSG_WARN([Kpathsea does not support opentype files, can not build xdv2pdf.])]) +KPSE_RESTORE_FLAGS fi |