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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
KDE_PKG_CHECK_MODULES(LIBXML, libxml-2.0,
have_libxml=yes, have_libxml=no)
if test "x$have_libxml" != "xyes"; then
KDE_FIND_PATH(xml2-config, XML_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [
AC_MSG_WARN([Could not find libxml2 anywhere, check ftp://xmlsoft.org/ for libxml >= 2.4.8. (we also keep a version of it in tdesupport for CVS users' convience)])
HELP_SUBDIR=
])
if test -n "$XML_CONFIG"; then
vers=`$XML_CONFIG --version 2>/dev/null | $SED -e 's/libxml //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test -n "$vers" && test "$vers" -ge 2004008
then
LIBXML_LIBS="`$XML_CONFIG --libs`"
LIBXML_CFLAGS="`$XML_CONFIG --cflags`"
have_libxml=yes
else
AC_MSG_WARN([You need at least libxml 2.4.8])
HELP_SUBDIR=
fi
fi
fi
if test "x$have_libxml" = "xyes"; then
KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [XMLLINT=""])
AC_DEFINE_UNQUOTED(XMLLINT, "$XMLLINT", [Defines the executable of xmllint])
fi
KDE_PKG_CHECK_MODULES(LIBXSLT, libxslt,
have_libxslt=yes, have_libxslt=no)
if test "x$have_libxslt" != "xyes"; then
KDE_FIND_PATH(xslt-config, XSLT_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [
AC_MSG_WARN([Could not find libxslt anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.7. (we also keep a version of it in tdesupport for CVS users' convience)])
HELP_SUBDIR=
])
if test -n "$XSLT_CONFIG"; then
vers=`$XSLT_CONFIG --version 2>/dev/null | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test -n "$vers" && test "$vers" -ge 1000007; then
LIBXSLT_LIBS="`$XSLT_CONFIG --libs`"
LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`"
have_libxslt=yes
else
AC_MSG_WARN([You need at least libxslt 1.0.7])
HELP_SUBDIR=
fi
fi
fi
if test ! "$USE_RPATH" = "yes"; then
LIBXSLT_RPATH=
LIBXML_RPATH=
else
if test "x$have_libxml" = "xyes"; then
LIBXML_RPATH=
for args in $LIBXML_LIBS; do
case $args in
-L*)
LIBXML_RPATH="$LIBXML_RPATH $args"
;;
esac
done
LIBXML_RPATH=`echo $LIBXML_RPATH | $SED -e "s/-L/-R/g"`
fi
if test "x$have_libxslt" = "xyes"; then
LIBXSLT_RPATH=
for args in $LIBXSLT_LIBS; do
case $args in
-L*)
LIBXSLT_RPATH="$LIBXSLT_RPATH $args"
;;
esac
done
LIBXSLT_RPATH=`echo $LIBXSLT_RPATH | $SED -e "s/-L/-R/g"`
fi
fi
AC_SUBST(LIBXSLT_LIBS)
AC_SUBST(LIBXSLT_CFLAGS)
AC_SUBST(LIBXSLT_RPATH)
AC_SUBST(LIBXML_LIBS)
AC_SUBST(LIBXML_CFLAGS)
AC_SUBST(LIBXML_RPATH)
AM_CONDITIONAL(include_XSLTFILTERS, test -n "$LIBXML_LIBS" -a -n "$LIBXSLT_LIBS")
KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
AC_MSG_WARN([Could not find pkg-config])
])
if test -n "$PKGCONFIG"; then
ICU_VERSION=`$PKGCONFIG icu-uc --modversion 2>/dev/null`
if test -n "$ICU_VERSION"; then
ICU_CXXFLAGS=`$PKGCONFIG icu-uc --variable=CXXFLAGS`
fi
fi
if test -z "$ICU_VERSION"; then
KDE_FIND_PATH(icu-config, ICU_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [
AC_MSG_WARN([Could not find icu-config])
])
if test -n "$ICU_CONFIG"; then
ICU_CXXFLAGS=`$ICU_CONFIG --cxxflags`
fi
fi
AC_SUBST(ICU_CXXFLAGS)
|