3 AM_INIT_AUTOMAKE(basket, '1.0.2')
9 dnl -----------------------------------------------------------------
10 dnl AC_LIB_GPGME([ACTION-IF-TRUE], [ACTION-IF-FALSE])
11 dnl -----------------------------------------------------------------
13 OPTION=" --with-encryption=yes/no compile with encryption support (gpgme)"
15 AC_DEFUN([AC_ENCRYPTION], [
16 AH_TEMPLATE([HAVE_LIBGPGME], [Define if libgpgme is available])
18 AC_ARG_WITH(encryption, [$OPTION], [
19 if test "$withval" = "no"; then
22 elif test "$withval" = "yes"; then
29 if test "$ac_gpg" != ""; then
30 AM_PATH_GPGME(1.0.0, ac_libgpgme=yes, ac_libgpgme=no)
31 AM_PATH_GPG_ERROR(1.0, ac_libgpgerror=yes, ac_libgpgerror=no)
33 if test "$ac_libgpgme" != "no" -a "$ac_libgpgerror" != "no"; then
34 AC_DEFINE([HAVE_LIBGPGME])
42 AM_CONDITIONAL(HAVE_LIBGPGME, test "$ac_have_gpgme" = "yes")
45 AC_ENCRYPTION([], [basket_warning_gpgme=yes])
47 KDE_CHECK_HEADER(kontact/core.h, [KONTACT_SUBDIR="yes"], [KONTACT_SUBDIR="no"])
49 if test "$KONTACT_SUBDIR" = "no"; then
50 basket_warning_kontact=yes
51 DO_NOT_COMPILE="$DO_NOT_COMPILE kontact_plugin"