summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm/configure.in
blob: 26fef88d265ab5e0d07c8e927fc492b0c244f30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
dnl Process this file with autoconf to produce a configure script.
AC_INIT(dvipdfm.c)

define([_version_],"0.13.2d")

VERSION=_version_
AC_SUBST(VERSION)
AC_DEFINE(VERSION, _version_, [package version])
AC_DEFINE(PACKAGE, "dvipdfm", [package name])

AC_CONFIG_HEADERS([c-auto.h:c-auto.in], [date >stamp-auto])

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

sinclude(../kpathsea/withenable.ac)
sinclude(../../libs/zlib/withenable.ac)
sinclude(../../libs/libpng/withenable.ac)
sinclude(../../libs/zlib/zlib.ac)
sinclude(../../libs/libpng/libpng.ac)

AC_DEFINE([HAVE_KPATHSEA], 1, [define if you have kpathsea])
AC_DEFINE([HAVE_XBASENAME], 1, [define if you have xbasename() in your libkpathsea instead of basename()])
AC_DEFINE([HAVE_ZLIB], 1, [define if you have zlib and its headers])
AC_DEFINE([HAVE_ZLIB_COMPRESS2], 1, [define if your zlib has the compress2 function])
AC_DEFINE([HAVE_KPSE_FORMATS], 1, [define if kpathsea supports type1 and vf formats])
AC_DEFINE([HAVE_OMEGA_FORMATS], 1, [Define if kpathsea understands Omega (OFM/OVF) formats])
AC_DEFINE([HAVE_TTF_FORMATS], 1, [define if kpathsea understands TrueType (TTF) formats])
AC_DEFINE([HAVE_LIBPNG], 1, [define if you have libpng])
TTF_OPT=''
AC_SUBST(TTF_OPT)

# TEXMF='${datadir}/texmf'
# AC_SUBST(TEXMF)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_EXT_TIMEZONE
AC_TZ_HAS_TM_GMTOFF

AC_C_CONST
AC_TYPE_SIZE_T
AC_STRUCT_TM

dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(strspn system)
AC_CHECK_LIB(m, main)

KPSE_CONFIG_FILES([Makefile])
AC_OUTPUT