1
# Thomas Esser, for teTeX. All settings here are my fault, don't blame
2
# the dvipng maintainers for it.
4
# Process this file with autoconf to produce a configure script.
6
AC_DEFINE(PACKAGE_NAME, ["dvipng"])
7
AC_DEFINE(PACKAGE_VERSION, ["1.6"])
8
AC_DEFINE(PACKAGE_STRING, ["dvipng 1.6"])
10
# Checks for programs.
14
AC_PATH_PROG(GS, gs, :)
15
AC_DEFINE_UNQUOTED(GS_PATH, "$GS", [Define as the path to GhostScript.])
17
ac_cv_lib_t1_T1_InitLib=yes
19
if test "$ac_cv_lib_t1_T1_InitLib" = yes; then
24
if test -n "$PSFONTS_O"; then
25
PSFONTS_O="$PSFONTS_O enc.o fontmap.o tfm.o"
30
AC_CHECK_HEADERS([inttypes.h fcntl.h sys/time.h stdbool.h])
32
# Checks for typedefs, structures, and compiler characteristics.
37
#if test "$ac_cv_header_inttypes_h" = yes; then
38
# Sometimes we want to use gcc -ansi -pedantic as a portability test
39
# The typedef of int64_t is not in the system header file in that
40
# case. Then, #define int64_t as "long long", which is non-ansi, but
41
# is present in most modern compilers. Using a #define rather than a
42
# typedef can be a problem, but in dvipng int64_t only is used as
43
# typecast, and there are no problems.
45
# MY_CHECK_TYPE(int64_t, long long)
46
# MY_CHECK_TYPE(uint64_t, unsigned long long)
49
# Checks for library functions.
53
AC_CHECK_FUNCS([dup2 strchr strrchr memchr memset putenv munmap strtol])
54
if test "$enable_timing" = "yes"; then
55
AC_CHECK_FUNCS([ftime gettimeofday])
58
sinclude(../../libs/zlib/withenable.ac)
59
sinclude(../../libs/zlib/zlib.ac)
60
sinclude(../../libs/libpng/withenable.ac)
61
sinclude(../../libs/libpng/libpng.ac)
62
sinclude(../../libs/t1lib/withenable.ac)
63
sinclude(../../libs/t1lib/t1lib.ac)
64
sinclude(../../libs/gd/withenable.ac)
65
sinclude(../../libs/gd/gd.ac)
66
sinclude(../kpathsea/withenable.ac)
68
AC_DEFINE(HAVE_KPATHSEA_KPATHSEA_H)
71
AC_CHECK_LIB(gen, basename)
73
AC_CONFIG_HEADERS([config.h])
74
AC_CONFIG_FILES(Makefile)