4 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
10 ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
11 if test $ac_cv_struct_tm_gmtoff = yes; then
12 AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
15 KDE_CHECK_HEADERS(knotifydialog.h)
17 KOPETE_INCLUDES='-I$(top_srcdir)/kopete/libkopete -I$(top_builddir)/kopete/libkopete -I$(top_srcdir)/kopete/libkopete/avdevice -I$(top_srcdir)/kopete/libkopete/ui -I$(top_builddir)/kopete/libkopete/ui'
20 [AC_HELP_STRING([--enable-smpppd], [enable support for the SuSE Meta PPP Daemon (smpppd) (default is NO)])],
22 if test $enableval = yes; then
23 AC_DEFINE(USE_SMPPPD, 1, [enable support for the smpppd])
31 AM_CONDITIONAL(include_smpppdcs, test -n "$COMPILESMPPPDCS")
33 KDE_FIND_PATH(xml2-config, XML_CONFIG, [${exec_prefix}/bin ${prefix}/bin], [
34 AC_MSG_WARN([libxml2 not found anywhere, check ftp://xmlsoft.org/ for libxml >= 2.4.8. ])
37 if test -n "$XML_CONFIG"; then
38 vers=`$XML_CONFIG --version 2>/dev/null | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
39 if test -n "$vers" && test "$vers" -ge 2004008
41 LIBXML_LIBS="`$XML_CONFIG --libs`"
43 for args in $LIBXML_LIBS; do
46 LIBXML_RPATH="$LIBXML_RPATH $args"
50 LIBXML_RPATH=`echo $LIBXML_RPATH | sed -e "s/-L/-R/g"`
51 LIBXML_CFLAGS="`$XML_CONFIG --cflags`"
53 KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin /usr/bin], [XMLLINT=""])
54 AC_DEFINE_UNQUOTED(XMLLINT, "$XMLLINT", [Defines the executable of xmllint])
56 AC_MSG_WARN([You need at least libxml 2.4.8])
57 DO_NOT_COMPILE="$DO_NOT_COMPILE kopete"
62 KDE_FIND_PATH(xslt-config, XSLT_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin /usr/bin], [
63 AC_MSG_WARN([Could not find libxslt anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.7.])
66 if test -n "$XSLT_CONFIG"; then
67 vers=`$XSLT_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
68 if test -n "$vers" && test "$vers" -ge 1000007; then
69 LIBXSLT_LIBS="`$XSLT_CONFIG --libs`"
71 for args in $LIBXSLT_LIBS; do
74 LIBXSLT_RPATH="$LIBXSLT_RPATH $args"
78 LIBXSLT_RPATH=`echo $LIBXSLT_RPATH | sed -e "s/-L/-R/g"`
79 LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`"
80 AC_DEFINE(HAVE_XSLT, 1, [Define if you have xslt libraries and header files])
82 AC_WARN([You need at least libxslt 1.0.7])
86 KDE_PKG_CHECK_MODULES(QCA, qca, have_qca2=yes, have_qca2=no)
87 if test x$have_qca2 = xno; then
88 AC_WARN([You need at least QCA 2.0 beta1. Get it at http://delta.affinix.com/download/qca/2.0/beta1/])
89 DO_NOT_COMPILE="$DO_NOT_COMPILE kopete"
94 if test ! "$USE_RPATH" = "yes"; then
99 if test -z "$XML_CONFIG"; then
100 DO_NOT_COMPILE="$DO_NOT_COMPILE kopete"
103 if test -z "$XSLT_CONFIG"; then
104 DO_NOT_COMPILE="$DO_NOT_COMPILE kopete"
106 AC_SUBST(LIBXSLT_LIBS)
107 AC_SUBST(LIBXSLT_CFLAGS)
108 AC_SUBST(LIBXSLT_RPATH)
110 AC_SUBST(LIBXML_LIBS)
111 AC_SUBST(LIBXML_CFLAGS)
112 AC_SUBST(LIBXML_RPATH)
114 AC_SUBST(KOPETE_INCLUDES)
115 AC_SUBST(KOPETE_COMPAT_INCLUDES)
116 AC_SUBST(LIB_KOPETECOMPAT)
118 # -- Check for installed Valgrind headers --------------------
120 AC_MSG_CHECKING([for valgrind.h])
123 #define __VALGRIND_SOMESKIN_H
124 #include <valgrind/valgrind.h>
129 ac_have_valgrind_h=yes
131 ac_have_valgrind_h=no
134 if test $ac_have_valgrind_h = yes; then
135 AC_DEFINE(HAVE_VALGRIND_H, 1, [Define if you have valgrind.h installed])
138 AC_MSG_RESULT($ac_have_valgrind_h)
140 # -- End valgrind ----------------------------------------------
142 # -- Determine pointer size for sqlite -------------------------
145 AC_DEFINE(SQLITE_PTR_SZ, SIZEOF_CHAR_P, [Determine pointer size for SQLite])
147 # -- End sqlite ------------------------------------------------