diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /kmail/configure.in.in | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.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/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/configure.in.in')
-rw-r--r-- | kmail/configure.in.in | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/kmail/configure.in.in b/kmail/configure.in.in new file mode 100644 index 000000000..bcf4e8bcc --- /dev/null +++ b/kmail/configure.in.in @@ -0,0 +1,90 @@ +AC_DEFUN([KMAIL_CHECK_INDEXLIB], +[ +AC_REQUIRE([KDE_CHECK_LIB64]) + +AC_MSG_CHECKING(for indexlib) + +missing_indexlib=ignore +AC_ARG_ENABLE(indexlib, + AC_HELP_STRING([--enable-indexlib],[Enable EXPERIMENTAL full-text indexing in KMail. + Use are your own risk!]), + AC_DEFINE(HAVE_INDEXLIB,1,[Define if you want EXPERIMENTAL full-text indexing in KMail]) + missing_indexlib=no + ) + + +AM_CONDITIONAL(add_indexlib, test no = "$missing_indexlib") + + + +]) + +dnl The following test is taken from kdelibs/kio/kio +dnl ------------------------------------------------------------------------ +dnl Try to find if we have Linux Inode based Dir Notification +dnl ------------------------------------------------------------------------ + +AC_ARG_ENABLE(inotify, +AC_HELP_STRING([--disable-inotify],[enable use of Linux inode notifications]), +[ kde_enable_inotify=$enableval ], [kde_enable_inotify=yes])dnl + +AC_CHECK_GNU_EXTENSIONS + +if test "x$kde_enable_inotify" = "xyes"; then + AC_MSG_CHECKING([for Linux Inotify Notification]) + AC_CACHE_VAL(kde_cv_have_inotify, + [ + kde_cv_have_inotify=no + AC_LANG_SAVE + AC_LANG_C + + AC_TRY_COMPILE( + [ +#include <asm/unistd.h> +#define _S390_BITOPS_H +#include <linux/inotify.h> + ], + [ +#ifndef IN_ALL_EVENTS +#error no inotify notification +#endif +#ifndef __NR_inotify_init +#error no __NR_inotify_init +#endif + + ],kde_cv_have_inotify=yes,kde_cv_have_inotify=no) + + AC_LANG_RESTORE + ]) + + AC_CACHE_VAL(kde_cv_have_sys_inotify, + [ + kde_cv_have_sys_inotify=no + AC_LANG_SAVE + AC_LANG_C + + AC_TRY_COMPILE( + [ +#include <sys/inotify.h> + ], + [ +#ifndef IN_ALL_EVENTS +#error no inotify notification +#endif + ],kde_cv_have_sys_inotify=yes,kde_cv_have_sys_inotify=no) + + AC_LANG_RESTORE + ]) + + if test "$kde_cv_have_inotify" = "yes" -o "$kde_cv_have_sys_inotify" = "yes"; then + AC_DEFINE_UNQUOTED(HAVE_INOTIFY, 1, [Define if your system has Linux Inode Notification]) + if test "$kde_cv_have_sys_inotify" = "yes"; then + AC_DEFINE_UNQUOTED(HAVE_SYS_INOTIFY, 1, [Define if your system has glibc support for inotify]) + fi + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi +fi + +KMAIL_CHECK_INDEXLIB |