-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
69 lines (61 loc) · 1.73 KB
/
configure.ac
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
59
60
61
62
63
64
65
66
67
68
69
AC_INIT([xpopple], [3.03.0], [[email protected]])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_PROG_CXX
AC_LANG([C++])
PKG_CHECK_MODULES([POPPLER], [poppler >= 0.19.0])
CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
LIBS="$LIBS $POPPLER_LIBS"
dnl Check for versions that introduced non-backwards-compatible API changes.
PKG_CHECK_EXISTS([poppler >= 0.23.0], [
AC_DEFINE([STARTPAGE_XREF])
])
PKG_CHECK_EXISTS([poppler >= 0.25.0], [
AC_DEFINE([PSOUTPUTDEV_NOCROP])
])
PKG_CHECK_EXISTS([poppler >= 0.30.0], [
AC_DEFINE([PSOUTPUTDEV_PAGE_LIST])
])
PKG_CHECK_EXISTS([poppler >= 0.58.0], [
AC_DEFINE([OBJECT_NO_FREE])
])
PKG_CHECK_EXISTS([poppler >= 0.64.0], [
AC_DEFINE([POPPLER_64_CONST_API])
])
PKG_CHECK_EXISTS([poppler >= 0.65.0], [
AC_DEFINE([ADDFONTFILE_NO_OWN])
])
PKG_CHECK_EXISTS([poppler >= 0.72.0], [
AC_DEFINE([GOOSTRING_NO_GETCSTRING])
])
PKG_CHECK_EXISTS([poppler >= 0.76.0], [
AC_DEFINE([NO_GOOLIST])
AC_DEFINE([FINDPAGE_REF])
])
PKG_CHECK_EXISTS([poppler >= 0.83.0], [
AC_DEFINE([GLOBALPARAMS_UNIQUE_PTR])
])
PKG_CHECK_EXISTS([poppler >= 0.84.0], [
AC_DEFINE([TEXTPAGE_GETTEXT_EOL])
])
PKG_CHECK_EXISTS([poppler >= 0.85.0], [
AC_DEFINE([UNICODEMAP_NO_REFCOUNT])
])
PKG_CHECK_EXISTS([poppler >= 0.90.0], [
AC_DEFINE([PSOUTPUTDEV_FORCERASTERIZE])
])
PKG_CHECK_EXISTS([poppler >= 20.12.0], [
AC_DEFINE([GLOBALPARAMS_NO_PSLEVEL])
])
AC_SEARCH_LIBS([XmCreateFormDialog], [Xm], [], [
AC_MSG_ERROR([Motif is required])
])
PKG_CHECK_MODULES([XT], [xt x11])
CPPFLAGS="$CPPFLAGS $XT_CFLAGS"
LIBS="$LIBS $XT_LIBS"
AC_SEARCH_LIBS([pthread_mutexattr_settype], [pthread], [], [
AC_MSG_ERROR([pthreads is required])
])
dnl Motif's API uses char * parameters for strings.
CPPFLAGS="$CPPFLAGS -Wno-write-strings"
AC_CONFIG_FILES([Makefile])
AC_OUTPUT