summaryrefslogtreecommitdiffstats
path: root/khtml/configure.in.in
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /khtml/configure.in.in
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/configure.in.in')
-rw-r--r--khtml/configure.in.in57
1 files changed, 57 insertions, 0 deletions
diff --git a/khtml/configure.in.in b/khtml/configure.in.in
new file mode 100644
index 000000000..b85dd8474
--- /dev/null
+++ b/khtml/configure.in.in
@@ -0,0 +1,57 @@
+AM_CONDITIONAL(DOJAVA, test "x$kde_use_qt_emb" != "xyes")
+
+AC_DEFUN([KDE_CHECK_LIBTHAI],
+[
+AC_MSG_CHECKING([if libthai should be compiled in])
+ AC_ARG_WITH(libthai,
+ AC_HELP_STRING(
+ [--with-libthai=yes],
+ [add Thai-language support from libthai library [default=no]]
+ ),
+ [ ac_libthai=$withval],
+ [ ac_libthai=no ]
+ )
+
+if test "$ac_libthai" != "no"; then
+ AC_CACHE_VAL(kde_link_libthai,
+ [
+ kde_ldflags_safe="$LDFLAGS"
+ kde_libs_safe="$LIBS"
+
+ LDFLAGS="$LDFLAGS $USER_LDFLAGS"
+ LIBS="-lthai"
+
+ AC_TRY_LINK([
+ #include <thai/thailib.h>
+ #include <thai/thbrk.h>
+ ],
+ [
+ thchar_t c = 'C';
+ int pos[1];
+ size_t n = 12;
+ (void)th_brk(&c, pos, n);
+ ],
+ kde_link_libthai=yes,
+ kde_link_libthai=no
+ )
+
+ LDFLAGS=$kde_ldflags_safe
+ LIBS=$kde_libs_safe
+ ])
+
+ LIBTHAI=""
+ if test "$kde_link_libthai" = "no"; then
+ AC_MSG_ERROR([Can't find libthai.])
+ else
+ AC_DEFINE(HAVE_LIBTHAI, 1,
+ [Defined if you have libthai and want to have it compiled in])
+ LIBTHAI="-lthai"
+ fi
+ AC_SUBST(LIBTHAI)
+fi
+AC_MSG_RESULT($ac_libthai)
+])
+
+KDE_CHECK_LIBTHAI
+
+KDE_CHECK_HEADERS(valgrind/memcheck.h)