diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-06 12:39:49 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-06 12:39:49 +0000 |
commit | be2f62b1c99597ad47dde539964c3a4a3b5cf773 (patch) | |
tree | a18554b899589412522eea3340658b8bcca05a89 /Build/source/texk/dvipdf-x/configure.ac | |
parent | f231a5d58023c8f1319480643976f01b3b8797d3 (diff) |
Recover texk/dvipdfm-x@31034 (essentially dvipdfmx and xdvipdfmx from branch-2013)
as texk/dvipdf-x.
Not built by default, only used to analyze various problems
git-svn-id: svn://tug.org/texlive/trunk@31364 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 | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdf-x/configure.ac b/Build/source/texk/dvipdf-x/configure.ac new file mode 100644 index 00000000000..43533b9d6f0 --- /dev/null +++ b/Build/source/texk/dvipdf-x/configure.ac @@ -0,0 +1,94 @@ +dnl Process this file with autoconf to produce a configure script. +dnl +dnl Copyright (C) 2009-2013 Peter Breitenlohner <tex-live@tug.org> +dnl +dnl This file is free software; the copyright holder +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +AC_INIT([dvipdf-x], [20130624], [tex-k@tug.org]) +AC_PREREQ([2.65]) +AC_CONFIG_SRCDIR([agl.c]) +AC_CONFIG_AUX_DIR([../../build-aux]) +AC_CONFIG_MACRO_DIR([../../m4]) + +dnl Common code for all programs using libkpathsea. +KPSE_COMMON([dvipdf-x]) + +m4_include([ac/dvipdf-x.ac]) + +AC_CONFIG_HEADERS([config.h]) + +KPSE_LT_HACK + +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([unistd.h stdint.h inttypes.h sys/types.h sys/wait.h]) + +dnl Checks for library functions. +AC_FUNC_MEMCMP +AC_CHECK_FUNCS([open close getenv mkstemp basename]) + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_STRUCT_TM +AC_STRUCT_TIMEZONE +AC_C_BIGENDIAN +AC_TYPE_UINT32_T + +AC_CHECK_DECL([timezone], + [AC_DEFINE([HAVE_TIMEZONE], 1, + [Define if <time.h> has timezone as an external variable.])], + [], + [[#include <time.h>]]) +AC_CHECK_MEMBER([struct tm.tm_gmtoff], + [AC_DEFINE([HAVE_TM_GMTOFF], 1, + [Define if struct tm has tm_gmtoff as a member.])], + [], + [[#include <time.h>]]) + +AC_CHECK_SIZEOF([char]) +AC_CHECK_SIZEOF([short]) +AC_CHECK_SIZEOF([int]) +AC_CHECK_SIZEOF([long]) + +AC_SEARCH_LIBS([pow], [m]) + +KPSE_KPATHSEA_FLAGS +KPSE_ZLIB_FLAGS +KPSE_LIBPNG_FLAGS +KPSE_FREETYPE2_FLAGS + +if test "x$enable_build" != xno || test -f config.force; then + +KPSE_ADD_FLAGS([kpathsea]) +AC_CHECK_HEADER([kpathsea/version.h], [], + [AC_MSG_ERROR([Sorry, kpathsea too old])]) + +KPSE_ADD_FLAGS([zlib]) +CHO_CHECK_ZLIB + +KPSE_ADD_FLAGS([libpng]) +CHO_CHECK_LIBPNG + +KPSE_RESTORE_FLAGS + +echo timestamp >config.force +fi + +dnl Check for additional libraries. + +if test "x$enable_texlive_build" != xyes || test ! -d $srcdir/../kpathsea; then + CHO_CHECK_LIBPAPER +fi + +KPSE_WIN32_CALL + +AM_CONDITIONAL([DVIPDFMX], [test "x$enable_dvipdf" != xno]) +AM_CONDITIONAL([XDVIPDFMX], [test "x$enable_xdvipdf" != xno]) + +AC_CONFIG_FILES([Makefile + data/Makefile + man/Makefile + ]) + +AC_OUTPUT |