diff options
Diffstat (limited to 'Build/source/texk/dvipdfm/aclocal.m4')
-rw-r--r-- | Build/source/texk/dvipdfm/aclocal.m4 | 111 |
1 files changed, 14 insertions, 97 deletions
diff --git a/Build/source/texk/dvipdfm/aclocal.m4 b/Build/source/texk/dvipdfm/aclocal.m4 index aa1ec43fb6f..8e5882fd3ac 100644 --- a/Build/source/texk/dvipdfm/aclocal.m4 +++ b/Build/source/texk/dvipdfm/aclocal.m4 @@ -1,99 +1,16 @@ -# -# Local tests written by MAW -# -AC_DEFUN([AC_EXT_TIMEZONE], -[AC_MSG_CHECKING([whether time.h defines timezone as an external variable]) -AC_TRY_LINK([#include <time.h>], [ -timezone; ], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TIMEZONE)], [AC_MSG_RESULT(no)])]) -AC_DEFUN([AC_HAVE_BASENAME], - [AC_MSG_CHECKING([whether basename is in either libgen.h or string.h]) - AC_TRY_COMPILE([#include <libgen.h> -#include <string.h>], [extern char basename(void)], - [AC_MSG_RESULT(no)], [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_BASENAME)])]) -AC_DEFUN([AC_TZ_HAS_TM_GMTOFF], -[AC_MSG_CHECKING([whether struct tz has tm_gmtoff as a member]) -AC_TRY_COMPILE([#include <time.h>], [struct tm *tp; tp->tm_gmtoff], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TM_GMTOFF)], [AC_MSG_RESULT(no)])]) -# -AC_DEFUN([AC_HAS_KPSE_FORMATS], - [AC_MSG_CHECKING([whether you have kpathsea headers and they whether they know about the required file formats]) - AC_TRY_COMPILE([#include <stdio.h> -#include <kpathsea/tex-file.h>], - [kpse_tex_ps_header_format; - kpse_type1_format;kpse_vf_format], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_KPSE_FORMATS)], - [AC_MSG_RESULT(no); -AC_MSG_ERROR([PS_HEADER and/or VF formats not found in Kpathsea header files. +# generated automatically by aclocal 1.10.1 -*- Autoconf -*- -This version of dvipdfm requires that kpathsea and its headers be installed. -If you are sure they are installed and in a standard place, maybe you need a -newer version of kpathsea? You also might try setting the environment -variable CPPFLAGS (or CFLAGS) with -I pointing to the directory containing -the file "tex-file.h" +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. -])])]) -# -AC_DEFUN([AC_HAS_OMEGA_FORMATS], - [AC_MSG_CHECKING([whether your kpathsea supports Omega OFM file formats]) - AC_TRY_COMPILE([#include <stdio.h> -#include <kpathsea/tex-file.h>], - [kpse_ofm_format], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_OMEGA_FORMATS)], - [AC_MSG_RESULT(no)])]) -AC_DEFUN([AC_HAS_TTF_FORMATS], - [AC_MSG_CHECKING([whether your kpathsea supports Truetype (TTF) file formats]) - AC_TRY_COMPILE([#include <stdio.h> -#include <kpathsea/tex-file.h>], - [kpse_truetype_format], - [AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_TTF_FORMATS) - TTF_OPT=''], - [AC_MSG_RESULT(no)])]) -# -# Check for zlib -# -AC_DEFUN([AC_HAS_ZLIB], -[_cppflags=$CPPFLAGS - _ldflags=$LDFLAGS -AC_ARG_WITH(zlib, -[ --with-zlib=DIR use zlib include/library files from DIR],[ - if test -d "$withval"; then - CPPFLAGS="$CPPFLAGS -I$withval/include" - LDFLAGS="$LDFLAGS -L$withval/lib" - fi -]) -AC_MSG_CHECKING([for zlib header files]) -AC_TRY_COMPILE([#include <zlib.h>], [z_stream p;], -[AC_MSG_RESULT(yes) - AC_CHECK_LIB(z, compress, -[AC_DEFINE(HAVE_ZLIB) - LIBS="$LIBS -lz" - AC_CHECK_LIB(z, compress2, -[AC_DEFINE(HAVE_ZLIB_COMPRESS2)])])], -[CPPFLAGS=$_cppflags - LDDFLAGS=$_ldflags - AC_MSG_RESULT(no)])]) -# -# Check for libpng -# -AC_DEFUN([AC_HAS_LIBPNG], -[_cppflags=$CPPFLAGS -_ldflags=$LDFLAGS -AC_ARG_WITH(png, -[ --with-png=DIR use png include/library files from DIR],[ - if test -d "$withval"; then - CPPFLAGS="$CPPFLAGS -I$withval/include" - LDFLAGS="$LDFLAGS -L$withval/lib" - fi -]) -AC_CHECK_FUNC(pow, , AC_CHECK_LIB(m, pow, LIBS="$LIBS -lm")) -AC_MSG_CHECKING([for png header files]) -AC_TRY_COMPILE([#include <png.h>], [png_infop p;], [ - AC_MSG_RESULT(yes) - AC_CHECK_LIB(png, png_get_image_width, [ - AC_DEFINE(HAVE_LIBPNG) - LIBS="$LIBS -lpng"], , -lz)], [ - AC_MSG_RESULT(no)])]) -# -# End of local tests -# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_include([../m4/kpse_inc.m4]) +m4_include([../m4/kpse_maint.m4]) +m4_include([acinclude.m4]) |