4 AC_CONFIG_AUX_DIR(config)
5 AC_CONFIG_MACRO_DIR([m4])
19 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
20 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
22 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}cvs${EXTRA_VERSION}${EXTRA_GTK2_VERSION}
29 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
30 dnl AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
31 dnl AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
34 AC_SUBST(MAJOR_VERSION)
35 AC_SUBST(MINOR_VERSION)
36 AC_SUBST(MICRO_VERSION)
37 AC_SUBST(EXTRA_VERSION)
39 AC_CHECK_PROG(HAVE_GTK_ICON_CACHE, gtk-update-icon-cache, yes, no)
40 AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes)
42 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
43 if test x$PKG_CONFIG = xno ; then
44 AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
47 dnl GNOME 2.x installed?
48 PKG_CHECK_MODULES(GNOME2, libgnome-2.0 >= 2.0, ac_enable_gnome2=yes, ac_enable_gnome2=no)
49 AM_CONDITIONAL(CLAWS_GNOME2, test x"$ac_enable_gnome2" = x"yes")
51 dnl libtool versioning
52 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
53 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
54 LT_REVISION=$INTERFACE_AGE
55 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
61 dnl Specify a header configuration file
62 AC_CONFIG_HEADERS(config.h)
63 AC_CONFIG_HEADERS(claws-features.h)
67 dnl Checks for programs.
87 dnl ******************************
89 dnl Not needed anymore because we
90 dnl do AC_CANONICAL_SYSTEM above
91 dnl ******************************
94 dnl Copied from the official gtk+-2 configure.in
95 AC_MSG_CHECKING([for some Win32 platform])
97 *-*-mingw*|*-*-cygwin*)
99 LDFLAGS="$LDFLAGS -mwindows"
105 AC_MSG_RESULT([$platform_win32])
106 AM_CONDITIONAL(PLATFORM_WIN32, test x"$platform_win32" = x"yes")
108 AC_MSG_CHECKING([for native Win32])
117 AC_MSG_RESULT([$os_win32])
118 AM_CONDITIONAL(OS_WIN32, test x"$os_win32" = x"yes")
120 AC_MSG_CHECKING([for Cygwin])
129 AC_MSG_RESULT([$env_cygwin])
130 AM_CONDITIONAL(CYGWIN, test x"$env_cygwin" = x"yes")
132 if test "$GCC" = "yes"
134 CFLAGS="$CFLAGS -Wno-unused-function"
135 #CFLAGS="-g -Wall -Wno-unused-function"
138 AC_MSG_CHECKING([if gcc supports -Wno-pointer-sign])
139 _gcc_cflags_save=$CFLAGS
140 CFLAGS="-Wno-pointer-sign"
141 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],_gcc_psign=yes,_gcc_psign=no)
142 AC_MSG_RESULT($_gcc_psign)
143 CFLAGS=$_gcc_cflags_save;
144 if test x"$_gcc_psign" = xyes ; then
145 CFLAGS="$CFLAGS -Wno-pointer-sign"
148 CFLAGS="$CFLAGS -Wall"
150 if test $USE_MAINTAINER_MODE = yes; then
151 CFLAGS="-g -Wall -Wno-pointer-sign"
157 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
160 # Note that we need to link to pthreadGC2 in all cases. This
161 # is because some locking is used even when pthread support is
163 pthread_name=pthreadGC2
164 CFLAGS="$CFLAGS -mms-bitfields"
165 LIBS="$LIBS -l${pthread_name} -lws2_32 -lregex"
168 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
169 CFLAGS="$CFLAGS -std=gnu99 -DSOLARIS"
176 dnl floor and ceil are in -lm
180 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
183 LIBS="$LIBS $GTK_LIBS"
184 AC_CHECK_FUNCS(bind_textdomain_codeset)
188 ALL_LINGUAS="bg ca cs de en_GB es fi fr he hu id_ID it ja lt nl pl pt_BR pt_PT ru sk sv uk zh_CN zh_TW"
189 GETTEXT_PACKAGE=claws-mail
190 AC_SUBST(GETTEXT_PACKAGE)
191 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
193 AM_GNU_GETTEXT_VERSION([0.15])
194 AM_GNU_GETTEXT([external])
196 AC_ARG_ENABLE(manual,
197 [ --disable-manual Do not build user manual],
198 [enable_manual=$enableval], [enable_manual=yes])
201 [ --disable-libsm Do not build libSM support for session management],
202 [enable_libsm=$enableval], [enable_libsm=yes])
205 [ --disable-ipv6 Do not build IPv6 support],
206 [enable_ipv6=$enableval], [enable_ipv6=yes])
208 AC_ARG_ENABLE(gnutls,
209 [ --disable-gnutls Do not build GnuTLS support for SSL/TLS],
210 [enable_gnutls=$enableval], [enable_gnutls=yes])
212 AC_ARG_ENABLE(enchant,
213 [ --disable-enchant Do not build Enchant support for spell-checking],
214 [enable_enchant=$enableval], [enable_enchant=yes])
216 AC_ARG_ENABLE(crash-dialog,
217 [ --enable-crash-dialog Build crash dialog],
218 [enable_crash_dialog=$enableval], [enable_crash_dialog=no])
220 AC_ARG_ENABLE(generic-umpc,
221 [ --enable-generic-umpc Build generic UMPC code],
222 [enable_generic_umpc=$enableval], [enable_generic_umpc=no])
225 [ --enable-maemo Build for the Maemo platform],
226 [enable_maemo=$enableval], [enable_maemo=no])
228 AC_ARG_ENABLE(compface,
229 [ --disable-compface Do not build compface support for X-Face],
230 [enable_compface=$enableval], [enable_compface=yes])
232 AC_ARG_ENABLE(pthread,
233 [ --disable-pthread Do not build pthread support],
234 [enable_pthread=$enableval], [enable_pthread=yes])
236 AC_ARG_ENABLE(startup-notification,
237 [ --disable-startup-notification Do not startup notification support],
238 [enable_startup_notification=$enableval], [enable_startup_notification=yes])
241 [ --disable-dbus Do not build DBUS support],
242 [enable_dbus=$enableval], [enable_dbus=yes])
245 [ --disable-ldap Do not build LDAP support],
246 [enable_ldap=$enableval], [enable_ldap=yes])
248 AC_ARG_ENABLE(jpilot,
249 [ --disable-jpilot Do not build JPilot support],
250 [enable_jpilot=$enableval], [enable_jpilot=yes])
252 AC_ARG_ENABLE(networkmanager,
253 [ --disable-networkmanager Do not build NetworkManager support],
254 [enable_networkmanager=$enableval], [enable_networkmanager=yes])
256 AC_ARG_ENABLE(libetpan,
257 [ --disable-libetpan Do not build libetpan support for IMAP4/NNTP],
258 [enable_libetpan=$enableval], [enable_libetpan=yes])
260 AC_ARG_ENABLE(valgrind,
261 [ --disable-valgrind Do not build valgrind support for debugging],
262 [enable_valgrind=$enableval], [enable_valgrind=yes])
264 AC_ARG_ENABLE(new-addrbook,
265 [ --enable-new-addrbook Build new external address book support],
266 [enable_new_addrbook=$enableval], [enable_new_addrbook=no])
269 [ --enable-gtk3 Build GTK3 support],
270 [enable_gtk3=$enableval], [enable_gtk3=no])
272 AC_ARG_ENABLE(deprecated,
273 [ --disable-deprecated Disable deprecated GTK functions],
274 [GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"], [])
276 manualdir='${docdir}/manual'
277 AC_ARG_WITH(manualdir,
278 [ --with-manualdir=DIR Manual directory],
279 [manualdir="$withval"])
282 dnl ******************************
283 dnl ** Check for required tools **
284 dnl ** to build manuals **
285 dnl ******************************
287 AC_PATH_PROG(DOCBOOK2HTML, docbook2html)
288 AC_PATH_PROG(DOCBOOK2TXT, docbook2txt)
289 AC_PATH_PROG(DOCBOOK2PS, docbook2ps)
290 AC_PATH_PROG(DOCBOOK2PDF, docbook2pdf)
292 AM_CONDITIONAL(MANUAL_HTML, test -n "$DOCBOOK2HTML")
293 AM_CONDITIONAL(MANUAL_TXT, test -n "$DOCBOOK2TXT")
294 AM_CONDITIONAL(MANUAL_PDF, test -n "$DOCBOOK2PDF")
295 AM_CONDITIONAL(MANUAL_PS, test -n "$DOCBOOK2PS")
297 if test x"$enable_manual" = x"yes"; then
298 if test -n "$DOCBOOK2TXT" -o -n "$DOCBOOK2HTML" \
299 -o -n "$DOCBOOK2PS" -o -n "$DOCBOOK2PDF"; then
306 AM_CONDITIONAL(BUILD_MANUAL, test x"$enable_manual" = xyes)
308 dnl Set PACKAGE_DATA_DIR in config.h.
309 if test "x${datarootdir}" = 'x${prefix}/share'; then
310 if test "x${prefix}" = "xNONE"; then
311 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR])
313 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR])
316 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datarootdir}/${PACKAGE}",[PACKAGE_DATA_DIR])
319 AC_CHECK_LIB(xpg4, setlocale)
323 AC_MSG_CHECKING([whether to use LibSM])
324 if test x"$enable_libsm" = xyes; then
326 AC_CHECK_LIB(SM, SmcSaveYourselfDone,
327 [SM_LIBS="$X_LIBS -lSM -lICE"],enable_libsm=no,
329 AC_CHECK_HEADERS(X11/SM/SMlib.h,,enable_libsm=no)
330 if test x"$enable_libsm" = xyes; then
331 AC_DEFINE(HAVE_LIBSM, 1, [Define to 1 if you have libSM installed])
333 AC_MSG_RESULT(not found)
334 AC_MSG_WARN([*** LibSM will not be supported ***])
341 dnl Check for d_type member in struct dirent
342 AC_MSG_CHECKING([whether struct dirent has d_type member])
343 AC_CACHE_VAL(ac_cv_dirent_d_type,[
344 AC_TRY_COMPILE([#include <dirent.h>],
345 [struct dirent d; d.d_type = DT_REG;],
346 ac_cv_dirent_d_type=yes, ac_cv_dirent_d_type=no)
348 AC_MSG_RESULT($ac_cv_dirent_d_type)
349 if test $ac_cv_dirent_d_type = yes; then
350 AC_DEFINE(HAVE_DIRENT_D_TYPE, 1,
351 Define if `struct dirent' has `d_type' member.)
354 # Check whether mkdir does not take the permission argument.
355 GNUPG_FUNC_MKDIR_TAKES_ONE_ARG
357 dnl Checks for header files.
361 AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \
362 sys/param.h sys/utsname.h sys/select.h \
363 wchar.h wctype.h locale.h netdb.h)
364 AC_CHECK_HEADER([execinfo.h], [AC_DEFINE(HAVE_BACKTRACE,1,[Has backtrace*() needed for retrieving stack traces])])
365 AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
367 dnl alf - Check for apache installation f*ck up. apache may also install an
368 dnl fnmatch, which includes their own regex stuff if USE_HSREGEX is defined
369 AC_TRY_COMPILE([#include <stdlib.h>
370 #include <fnmatch.h>],
371 [int x = USE_HSREGEX;],
372 ac_cv_have_apache_fnmatch=yes, ac_cv_have_apache_fnmatch=no)
373 if test $ac_cv_have_apache_fnmatch = yes; then
374 AC_DEFINE(HAVE_APACHE_FNMATCH, 1, Define if you need to work around apache regex/fnmatch !KLUDGE!)
376 AC_MSG_CHECKING([whether to use Apache regex header kludge])
377 AC_MSG_RESULT($ac_cv_have_apache_fnmatch)
379 dnl Checks for typedefs, structures, and compiler characteristics.
386 dnl AC_CHECK_TYPE(wint_t, unsigned int) does not work because wint_t
387 dnl may be defined only in wchar.h (this happens with gcc-2.96).
388 dnl So we need to use this extended macro.
389 CLAWS_CHECK_TYPE(wint_t, unsigned int,
394 ], Define to `unsigned int' if <stddef.h> or <wchar.h> doesn't define.)
396 GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF, Used to test for a u32 typedef)
397 AC_CHECK_SIZEOF(unsigned short, 2)
398 AC_CHECK_SIZEOF(unsigned int, 4)
399 AC_CHECK_SIZEOF(unsigned long, 4)
401 dnl Checks for library functions.
403 AC_CHECK_FUNCS(gethostname mkdir mktime socket strstr strchr \
404 uname flock lockf inet_aton inet_addr \
405 fchmod mkstemp truncate getuid regcomp)
407 AC_CHECK_FUNCS(fgets_unlocked fwrite_unlocked)
409 dnl *****************
410 dnl ** common code **
411 dnl *****************
414 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6)
416 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
417 AC_SUBST(GLIB_GENMARSHAL)
419 AC_SUBST(GLIB_CFLAGS)
422 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
424 LIBS="$LIBS $GTK_LIBS"
425 AC_CHECK_FUNCS(bind_textdomain_codeset)
428 dnl check for IPv6 option
429 dnl automated checks for IPv6 support.
430 AC_MSG_CHECKING([whether to use IPv6])
431 if test x"$enable_ipv6" = xyes; then
433 AC_MSG_CHECKING([for IPv6 support])
434 AC_CACHE_VAL(ac_cv_ipv6,[
435 AC_TRY_COMPILE([#define INET6
436 #include <sys/types.h>
437 #include <netinet/in.h>],
438 [int x = IPPROTO_IPV6; struct in6_addr a;],
439 ac_cv_ipv6=yes, ac_cv_ipv6=no)
441 AC_MSG_RESULT($ac_cv_ipv6)
442 if test $ac_cv_ipv6 = yes; then
443 AC_DEFINE(INET6, 1, Define if you want IPv6 support.)
445 AC_MSG_WARN(*** IPv6 will not be supported ***)
453 AC_MSG_CHECKING([whether to use GnuTLS])
454 AC_MSG_RESULT($enable_gnutls)
455 if test "x$enable_gnutls" != "xno"; then
456 PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.2,
458 AC_DEFINE(USE_GNUTLS, 1, gnutls)
459 echo "Building with GnuTLS"
462 echo "Building without gnutls"
464 PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.11,
466 dnl No linking against libgcrypt needed
469 dnl linking against libgcrypt *is* needed
470 GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt"
472 AC_SUBST(GNUTLS_LIBS)
473 AC_SUBST(GNUTLS_CFLAGS)
476 dnl password encryption
481 AC_SEARCH_LIBS(encrypt, cipher, [], AC_MSG_ERROR(['encrypt'-function not found.]))
484 AC_SEARCH_LIBS(encrypt, crypt, [], AC_MSG_ERROR(['encrypt'-function not found.]))
491 AC_ARG_WITH(passcrypt-key, [ --with-passcrypt-key=KEY Key used to encode passwords (8 byte string)],
492 with_passcrypt_key="$withval", with_passcrypt_key="passkey0")
493 AC_SUBST(PASSCRYPT_KEY, $with_passcrypt_key)
495 dnl RC dir (will be default at a certain point in time)
496 AC_ARG_WITH(config-dir, [ --with-config-dir=RCDIR Local configuration dir (default: .claws-mail)],
497 ac_cv_with_config_dir="$withval", ac_cv_with_config_dir=".claws-mail")
498 if test x"$ac_cv_with_config_dir" = x""; then
499 ac_cv_with_config_dir=".claws-mail"
501 AC_DEFINE_UNQUOTED(CFG_RC_DIR, "$ac_cv_with_config_dir", Configuration directory)
503 dnl ************************
504 dnl ** GTK user interface **
505 dnl ************************
508 AM_CONDITIONAL(GTK3, false)
509 AM_CONDITIONAL(GTK2, true)
510 if test x"$enable_gtk3" = x"yes"; then
511 PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.0 cairo)
512 AM_CONDITIONAL(GTK3, true)
513 AM_CONDITIONAL(GTK2, false)
515 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.16)
520 dnl enchant is used for spell checking
521 AC_MSG_CHECKING([whether to use enchant])
522 AC_MSG_RESULT($enable_enchant)
523 if test $enable_enchant = yes; then
524 PKG_CHECK_MODULES(ENCHANT, enchant >= 1.0.0,
526 AC_DEFINE(USE_ENCHANT, 1, enchant)
527 echo "Building with enchant"
529 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags enchant`"
532 echo "Building without enchant-notification"
535 AC_SUBST(ENCHANT_CFLAGS)
536 AC_SUBST(ENCHANT_LIBS)
539 dnl want crash dialog
540 if test $enable_crash_dialog = yes; then
541 dnl check if GDB is somewhere
542 AC_CHECK_PROG(enable_crash_dialog, gdb, yes, no)
543 AC_MSG_CHECKING([whether to use crash dialog])
544 if test $enable_crash_dialog = yes; then
545 AC_DEFINE(CRASH_DIALOG, 1, Pop up crash dialog)
547 AC_MSG_RESULT($enable_crash_dialog)
551 if test $enable_generic_umpc = yes; then
552 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
553 AC_MSG_RESULT($enable_generic_umpc)
557 if test $enable_maemo = yes; then
558 PKG_CHECK_MODULES(MAEMO, libosso hildon-libs hildon-fm gnome-vfs-2.0, enable_maemo=yes,
560 AC_SUBST(MAEMO_CFLAGS)
562 if test $enable_maemo = no; then
564 PKG_CHECK_MODULES(MAEMO, libosso hildon-1 hildon-fm-2 gnome-vfs-2.0 hal, enable_maemo=yes,
566 AC_SUBST(MAEMO_CFLAGS)
568 if test $enable_maemo = no; then
569 AC_MSG_ERROR(one of libosso hildon-libs hildon-fm hildon-1 hildon-fm-2 not found)
571 AC_DEFINE(MAEMO, 1, Build for maemo)
572 AC_DEFINE(CHINOOK, 1, Maemo chinook)
573 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
574 enable_generic_umpc=yes
577 AC_DEFINE(MAEMO, 1, Build for maemo)
578 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
579 enable_generic_umpc=yes
583 PKG_CHECK_MODULES(CONIC, conic, enable_conic=yes,
585 AC_SUBST(CONIC_CFLAGS)
587 if test $enable_conic = yes; then
588 AC_DEFINE(CONIC, 1, Have conic lib)
591 dnl Check for X-Face support
592 AC_MSG_CHECKING([whether to use compface])
593 if test x"$enable_compface" = xyes; then
595 AC_CHECK_LIB(compface, uncompface,
596 [AC_DEFINE(HAVE_LIBCOMPFACE, 1, Define if you want compface support.)],
597 [enable_compface=no])
598 if test x"$enable_compface" = xyes; then
599 COMPFACE_LIBS="-lcompface"
603 AC_SUBST(COMPFACE_LIBS)
608 dnl check for pthread support
609 AC_MSG_CHECKING([whether to use pthread])
610 if test x$enable_pthread = xno; then
615 # For W32 we need to use a special ptrhead lib. In this case we can't
616 # use AC_CHECK_LIB because it has no means of checking for a
617 # library installed under a different name. Checking for the
619 if test -n "${pthread_name}" ; then
622 AC_CHECK_LIB(pthread, pthread_create, :, enable_pthread=no)
624 AC_CHECK_HEADERS(pthread.h, :, enable_pthread=no)
626 if test x$enable_pthread = xyes; then
627 AC_DEFINE(USE_PTHREAD, 1, Define if you have pthread)
628 if test -z "${pthread_name}" ; then
629 PTHREAD_LIBS="-lpthread"
634 AC_SUBST(PTHREAD_LIBS)
637 dnl Check whether we need to pass -lresolv
638 dnl We know that we don't need it for W32.
640 if test x$os_win32 = xno; then
643 ac_cv_var__res_options=no
644 AC_TRY_LINK([#include <sys/types.h>
645 #include <sys/socket.h>
646 #include <netinet/in.h>
647 #include <arpa/nameser.h>
648 #include <resolv.h>],
649 [_res.options = RES_INIT;],
650 ac_cv_var__res_options=yes);
651 if test "$ac_cv_var__res_options" != "yes"; then
656 if test "x$LIBRESOLV" = "x"; then
657 AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
663 LIBS="$LIBS $LIBRESOLV"
665 dnl #######################################################################
666 dnl # Check for startup notification
667 dnl #######################################################################
668 if test "x$enable_startup_notification" = "xyes"; then
669 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5,
671 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
672 echo "Building with libstartup-notification"
673 enable_startup_notification=yes
676 echo "Building without libstartup-notification"
677 enable_startup_notification=no
680 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
681 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
684 dnl #######################################################################
685 dnl # Check for D-Bus support
686 dnl #######################################################################
687 if test "x$enable_dbus" = "xyes"; then
688 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60, dbus-glib-1 >= 0.60],
690 AC_DEFINE(HAVE_DBUS_GLIB, 1, [Define if glib bindings of D-Bus are available])
694 echo "D-Bus requirements not met. D-Bus support not activated."
697 AC_SUBST(DBUS_CFLAGS)
701 dnl #######################################################################
702 dnl # Configure address book support
703 dnl #######################################################################
705 dnl #######################################################################
706 dnl # Check for new address book support
707 dnl #######################################################################
708 AC_MSG_CHECKING([whether DBUS support for new address book is present])
709 if test x"$enable_dbus_glib" = xyes; then
711 AC_MSG_CHECKING([whether to enable new address book])
712 if test x"$enable_new_addrbook" = xyes; then
714 PKG_CHECK_MODULES(CONTACTS, [claws-contacts],
716 AC_DEFINE(USE_NEW_ADDRBOOK, 1, [Define if new address book is to be activated.])
717 enable_new_addrbook=yes
718 AC_SUBST(CONTACTS_CFLAGS)
719 AC_SUBST(CONTACTS_LIBS)
722 enable_new_addrbook=no
726 enable_new_addrbook=no
730 enable_new_addrbook=no
733 dnl #######################################################################
734 dnl # Check for old address book support
735 dnl #######################################################################
736 if test x"$enable_new_addrbook" = xno; then
737 dnl for LDAP support in addressbook
738 dnl no check for libraries; dynamically loaded
739 AC_MSG_CHECKING([whether to use LDAP])
740 if test x"$enable_ldap" = xno; then
742 elif test x"$enable_ldap" = xyes -a x"$enable_pthread" = xno; then
743 AC_MSG_RESULT(no - LDAP support needs pthread support)
746 elif test x"$platform_win32" = xyes; then
748 AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
749 LDAP_LIBS="-lwldap32"
754 dnl check for available libraries, and pull them in
755 AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="$LDAP_LIBS -lresolv")
756 AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
757 AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
758 AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="$LDAP_LIBS -llber",,
761 AC_CHECK_HEADERS(ldap.h lber.h,
765 if test "$enable_ldap" = yes; then
766 AC_CHECK_LIB(ldap, ldap_open,
771 AC_CHECK_LIB(ldap, ldap_start_tls_s,
772 [ ac_cv_have_tls=yes ],
773 [ ac_cv_have_tls=no ])
777 AC_MSG_CHECKING([whether ldap library is available])
778 AC_MSG_RESULT($enable_ldap)
780 AC_MSG_CHECKING([whether TLS library is available])
781 AC_MSG_RESULT($ac_cv_have_tls)
783 if test "$enable_ldap" = yes; then
784 AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
785 LDAP_LIBS="$LDAP_LIBS -lldap"
787 if test "$ac_cv_have_tls" = yes; then
788 AC_DEFINE(USE_LDAP_TLS, 1, Define if you want LDAP TLS support in addressbook.)
790 dnl As of OpenLDAP API version 3000 a number of functions has
791 dnl been deprecated. As Claws-mail compiles and runs on many
792 dnl platforms and many versions of OpenLDAP we need to be able
793 dnl to switch between the old and new API because new API has
794 dnl added new functions replacing old ones and at the same time
795 dnl old functions has been changed.
796 dnl If cross-compiling defaults to enable deprecated features
797 dnl for maximum portability
798 AC_MSG_CHECKING([The API version of OpenLDAP])
802 [if (LDAP_API_VERSION >= 3000)
805 [AC_MSG_RESULT([version < 3000])
806 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)],
807 [AC_MSG_RESULT([version >= 3000])
808 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 1, Define if OpenLDAP API is at least version 3000.)],
809 [AC_MSG_RESULT([Enabling deprecated features in OpenLDAP])
810 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)
811 AC_DEFINE(LDAP_DEPRECATED, 1, Define to activate deprecated features in OpenLDAP)]
816 dnl for JPilot support in addressbook
817 dnl no check for libraries; these are dynamically loaded
818 AC_MSG_CHECKING([whether to use JPilot])
819 if test "$enable_jpilot" = yes; then
821 AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address.h pi-version.h,
822 [ AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ],
823 [ enable_jpilot=no ])
824 if test "$enable_jpilot" = no; then
825 AC_CHECK_HEADERS(libpisock/pi-args.h libpisock/pi-appinfo.h libpisock/pi-address.h libpisock/pi-version.h,
827 AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ])
830 AC_CHECK_LIB(pisock, unpack_Address, [JPILOT_LIBS="-lpisock"], [JPILOT_LIBS="" enable_jpilot="no"])
831 if test x"$enable_jpilot" = xyes; then
832 AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.)
834 AC_MSG_NOTICE([JPilot support not available])
836 AC_SUBST(JPILOT_LIBS)
842 AM_CONDITIONAL(BUILD_NEWADDRBOOK, test x"$enable_new_addrbook" = x"yes")
844 dnl #######################################################################
845 dnl # Check for NetworkManager support
846 dnl #######################################################################
847 if test x"$enable_dbus_glib" = xyes; then
848 if test x"$enable_networkmanager" = xyes; then
849 PKG_CHECK_MODULES(NETWORKMANAGER_SUPPORT, NetworkManager >= 0.6.2,
851 AC_DEFINE(HAVE_NETWORKMANAGER_SUPPORT, 1, [Define if NetworkManager support is to be included.])
852 echo "Building with NetworkManager support"
853 enable_networkmanager=yes
856 echo "NetworkManager not found."
857 enable_networkmanager=no
859 AC_SUBST(NETWORKMANAGER_SUPPORT_CFLAGS)
862 echo "NetworkManager support deactivated as D-Bus requirements were not met."
863 enable_networkmanager=no
867 AC_MSG_CHECKING([whether to use libetpan])
868 if test x"$enable_libetpan" = xyes; then
871 AC_PATH_PROG(libetpanconfig, [libetpan-config])
872 if test "x$libetpanconfig" != "x"; then
873 CPPFLAGS="$CPPFLAGS `$libetpanconfig --cflags 2>/dev/null`"
874 AC_CHECK_HEADER(libetpan/libetpan.h, [libetpan_result=yes])
875 if test "x$libetpan_result" = "xyes"; then
876 AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine])
877 LIBS="$LIBS `$libetpanconfig --libs 2>/dev/null`"
878 AC_TRY_LINK([#include <libetpan/dbstorage.h>], [db_mailstorage_init(NULL, NULL);], [libetpan_result=yes], [libetpan_result=no])
879 AC_MSG_RESULT([$libetpan_result])
882 if test "x$libetpan_result" = "xyes"; then
883 LIBETPAN_CPPFLAGS="`$libetpanconfig --cflags`"
884 LIBETPAN_LIBS="`$libetpanconfig --libs`"
885 LIBETPAN_STABLE=`$libetpanconfig --version | grep -v ^0`
886 LIBETPAN_VERSION=`$libetpanconfig --version | sed "s/\.//g" | sed "s/-.*$//"`
887 if test x"$LIBETPAN_STABLE" != "x"; then
888 LIBETPAN_VERSION="100"
890 if test "$LIBETPAN_VERSION" -lt "057"; then
891 AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/])
892 AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
893 AC_MSG_ERROR([libetpan 0.57 not found])
895 AC_SUBST(LIBETPAN_FLAGS)
896 AC_SUBST(LIBETPAN_LIBS)
897 AC_DEFINE(HAVE_LIBETPAN, 1, Define if you want IMAP and/or NNTP support.)
899 AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/ ])
900 AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
901 AC_MSG_ERROR([libetpan 0.57 not found])
906 AM_CONDITIONAL(CLAWS_LIBETPAN, test "x$libetpan_result" = "xyes")
908 AC_MSG_CHECKING([whether to use valgrind])
909 if test x$enable_valgrind = xyes; then
911 PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
912 enable_valgrind=yes, enable_valgrind=no)
913 if test x"$enable_valgrind" = xyes; then
914 AC_DEFINE(HAVE_VALGRIND, 1, Define if you want valgrind support)
916 AC_MSG_RESULT(not found)
921 AM_CONDITIONAL(CLAWS_VALGRIND, test x"$enable_valgrind" = x"yes")
923 dnl *************************
924 dnl ** section for plugins **
925 dnl *************************
929 MISSING_DEPS_PLUGINS=""
931 dnl First we set the enabled status - either enabled (yes), auto-enabled (auto)
932 dnl or (auto-)disabled (no for both)
934 dnl All plugins are auto-enabled except for Demo which is just there to help
935 dnl potential plugins writers.
937 AC_ARG_ENABLE(acpi_notifier-plugin,
938 [ --disable-acpi_notifier-plugin Do not build acpi_notifier plugin],
939 [enable_acpi_notifier_plugin=$enableval], [enable_acpi_notifier_plugin=auto])
941 AC_ARG_ENABLE(address_keeper-plugin,
942 [ --disable-address_keeper-plugin Do not build address_keeper plugin],
943 [enable_address_keeper_plugin=$enableval], [enable_address_keeper_plugin=auto])
945 AC_ARG_ENABLE(archive-plugin,
946 [ --disable-archive-plugin Do not build archive plugin],
947 [enable_archive_plugin=$enableval], [enable_archive_plugin=auto])
949 AC_ARG_ENABLE(att_remover-plugin,
950 [ --disable-att_remover-plugin Do not build att_remover plugin],
951 [enable_att_remover_plugin=$enableval], [enable_att_remover_plugin=auto])
953 AC_ARG_ENABLE(attachwarner-plugin,
954 [ --disable-attachwarner-plugin Do not build attachwarner plugin],
955 [enable_attachwarner_plugin=$enableval], [enable_attachwarner_plugin=auto])
957 AC_ARG_ENABLE(bogofilter-plugin,
958 [ --disable-bogofilter-plugin Do not build bogofilter plugin],
959 [enable_bogofilter_plugin=$enableval], [enable_bogofilter_plugin=auto])
961 AC_ARG_ENABLE(bsfilter-plugin,
962 [ --disable-bsfilter-plugin Do not build bsfilter plugin],
963 [enable_bsfilter_plugin=$enableval], [enable_bsfilter_plugin=auto])
965 AC_ARG_ENABLE(clamd-plugin,
966 [ --disable-clamd-plugin Do not build clamd plugin],
967 [enable_clamd_plugin=$enableval], [enable_clamd_plugin=auto])
969 AC_ARG_ENABLE(fancy-plugin,
970 [ --disable-fancy-plugin Do not build fancy plugin],
971 [enable_fancy_plugin=$enableval], [enable_fancy_plugin=auto])
973 AC_ARG_ENABLE(fetchinfo-plugin,
974 [ --disable-fetchinfo-plugin Do not build fetchinfo plugin],
975 [enable_fetchinfo_plugin=$enableval], [enable_fetchinfo_plugin=auto])
977 AC_ARG_ENABLE(gdata-plugin,
978 [ --disable-gdata-plugin Do not build gdata plugin],
979 [enable_gdata_plugin=$enableval], [enable_gdata_plugin=auto])
981 AC_ARG_ENABLE(mailmbox-plugin,
982 [ --disable-mailmbox-plugin Do not build mailmbox plugin],
983 [enable_mailmbox_plugin=$enableval], [enable_mailmbox_plugin=auto])
985 AC_ARG_ENABLE(newmail-plugin,
986 [ --disable-newmail-plugin Do not build newmail plugin],
987 [enable_newmail_plugin=$enableval], [enable_newmail_plugin=auto])
989 AC_ARG_ENABLE(notification-plugin,
990 [ --disable-notification-plugin Do not build notification plugin],
991 [enable_notification_plugin=$enableval], [enable_notification_plugin=auto])
993 AC_ARG_ENABLE(pdf_viewer-plugin,
994 [ --disable-pdf_viewer-plugin Do not build pdf_viewer plugin],
995 [enable_pdf_viewer_plugin=$enableval], [enable_pdf_viewer_plugin=auto])
997 AC_ARG_ENABLE(perl-plugin,
998 [ --disable-perl-plugin Do not build perl plugin],
999 [enable_perl_plugin=$enableval], [enable_perl_plugin=auto])
1001 AC_ARG_ENABLE(python-plugin,
1002 [ --disable-python-plugin Do not build python plugin],
1003 [enable_python_plugin=$enableval], [enable_python_plugin=auto])
1005 AC_ARG_ENABLE(pgpcore-plugin,
1006 [ --disable-pgpcore-plugin Do not build pgpcore plugin],
1007 [enable_pgpcore_plugin=$enableval], [enable_pgpcore_plugin=auto])
1009 AC_ARG_ENABLE(pgpmime-plugin,
1010 [ --disable-pgpmime-plugin Do not build pgpmime plugin],
1011 [enable_pgpmime_plugin=$enableval], [enable_pgpmime_plugin=auto])
1013 AC_ARG_ENABLE(pgpinline-plugin,
1014 [ --disable-pgpinline-plugin Do not build pgpinline plugin],
1015 [enable_pgpinline_plugin=$enableval], [enable_pgpinline_plugin=auto])
1017 AC_ARG_ENABLE(rssyl-plugin,
1018 [ --disable-rssyl-plugin Do not build rssyl plugin],
1019 [enable_rssyl_plugin=$enableval], [enable_rssyl_plugin=auto])
1021 AC_ARG_ENABLE(smime-plugin,
1022 [ --disable-smime-plugin Do not build smime plugin],
1023 [enable_smime_plugin=$enableval], [enable_smime_plugin=auto])
1025 AC_ARG_ENABLE(spamassassin-plugin,
1026 [ --disable-spamassassin-plugin Do not build spamassassin plugin],
1027 [enable_spamassassin_plugin=$enableval], [enable_spamassassin_plugin=auto])
1029 AC_ARG_ENABLE(spam_report-plugin,
1030 [ --disable-spam_report-plugin Do not build spam_report plugin],
1031 [enable_spam_report_plugin=$enableval], [enable_spam_report_plugin=auto])
1033 AC_ARG_ENABLE(tnef_parse-plugin,
1034 [ --disable-tnef_parse-plugin Do not build tnef_parse plugin],
1035 [enable_tnef_parse_plugin=$enableval], [enable_tnef_parse_plugin=auto])
1037 AC_ARG_ENABLE(vcalendar-plugin,
1038 [ --disable-vcalendar-plugin Do not build vcalendar plugin],
1039 [enable_vcalendar_plugin=$enableval], [enable_vcalendar_plugin=auto])
1041 dnl disabled by default
1042 AC_ARG_ENABLE(demo-plugin,
1043 [ --enable-demo-plugin Build demo plugin],
1044 [enable_demo_plugin=$enableval], [enable_demo_plugin=no])
1047 dnl Then we check (unconditionnaly) for plugins dependencies
1048 dnl Some dependencies are optional, some mandatories. This is taken care of
1051 dnl During this dependancy check we do the checks themselves, define HAVE_X to
1052 dnl either yes or no, and do the AC_SUBST calls.
1054 dnl Archive: libarchive
1055 dnl Fancy: Webkit, curl, optionally libsoup-gnome
1057 dnl Notification: optionally libnotify libindicate libcanberra_gtk hotkey
1058 dnl Pdf-Viewer: libpoppler
1060 dnl PGP/Core: libgpgme
1061 dnl PGP/Mime: pgpcore libgpgme
1062 dnl PGP/Inline: pgpcore libgpgme
1063 dnl S/Mime: pgpcore libgpgme
1065 dnl RSSyl: libxml2 libcurl
1066 dnl SpamReport: libcurl
1067 dnl vCalendar: libcurl
1069 dnl libcurl ********************************************************************
1070 PKG_CHECK_MODULES(CURL, libcurl, HAVE_CURL=yes, HAVE_CURL=no)
1072 AC_SUBST(CURL_CFLAGS)
1074 dnl libxml2 ********************************************************************
1075 PKG_CHECK_MODULES(LIBXML, libxml-2.0, HAVE_LIBXML=yes, HAVE_LIBXML=no)
1076 AC_SUBST(LIBXML_LIBS)
1077 AC_SUBST(LIBXML_CFLAGS)
1079 dnl webkit *********************************************************************
1080 PKG_CHECK_MODULES(WEBKIT, webkit-1.0 >= 1.1.14, HAVE_WEBKIT=yes, HAVE_WEBKIT=no)
1081 AC_SUBST(WEBKIT_LIBS)
1082 AC_SUBST(WEBKIT_CFLAGS)
1084 dnl libsoup-gnome **************************************************************
1085 PKG_CHECK_MODULES(LIBSOUP_GNOME, libsoup-gnome-2.4 >= 2.26, HAVE_LIBSOUP_GNOME=yes, HAVE_LIBSOUP_GNOME=no)
1086 if test x"$HAVE_LIBSOUP_GNOME" = xyes; then
1087 AC_DEFINE(HAVE_LIBSOUP_GNOME, 1, [Define if libsoup is available])
1089 AC_SUBST(LIBSOUP_GNOME_CFLAGS)
1090 AC_SUBST(LIBSOUP_GNOME_LIBS)
1092 dnl libarchive *****************************************************************
1093 AC_SEARCH_LIBS([archive_read_new], [archive],
1094 ARCHIVE_LIBS=-larchive
1096 AC_SUBST(ARCHIVE_LIBS),
1100 dnl libgdata *******************************************************************
1101 dnl Plugin handles compatibility back to 0.6.4 so there are multiple checks.
1102 PKG_CHECK_MODULES(GDATA, libgdata >= 0.9.1, HAVE_GDATA=yes, HAVE_GDATA=no)
1103 if test x"$HAVE_GDATA" = xyes; then
1104 AC_DEFINE(HAVE_GDATA_VERSION_0_9_1, 1, [at least version 0.9.1 of libgdata is available])
1105 AC_DEFINE(HAVE_GDATA_VERSION_0_9, 1, [at least version 0.9 of libgdata is available])
1107 PKG_CHECK_MODULES(GDATA, libgdata >= 0.9, HAVE_GDATA=yes, HAVE_GDATA=no)
1109 if test x"$HAVE_GDATA" = xyes; then
1110 AC_DEFINE(HAVE_GDATA_VERSION_0_9, 1, [at least version 0.9 of libgdata is available])
1112 PKG_CHECK_MODULES(GDATA, libgdata >= 0.6.4, HAVE_GDATA=yes, HAVE_GDATA=no)
1114 if test x"$HAVE_GDATA" = xyes; then
1115 AC_DEFINE(CM_GDATA_CLIENT_ID, ["Claws Mail GData plugin"], [client id])
1117 AC_SUBST(GDATA_CFLAGS)
1118 AC_SUBST(GDATA_LIBS)
1120 dnl Poppler ********************************************************************
1121 PKG_CHECK_MODULES(POPPLER, poppler-glib >= 0.4.2, HAVE_POPPLER=yes, HAVE_POPPLER=no)
1122 AC_SUBST(POPPLER_LIBS)
1123 AC_SUBST(POPPLER_CFLAGS)
1125 dnl check for Poppler extra features that we conditionally support
1126 if test x"$HAVE_POPPLER" = xyes; then
1128 CFLAGS="$POPPLER_CFLAGS $GTK_CFLAGS $GLIB_CFLAGS"
1129 AC_CHECK_DECL(POPPLER_DEST_NAMED,
1130 [AC_DEFINE([HAVE_POPPLER_DEST_NAMED], [], [Description])],
1131 ,[#include <poppler-action.h>])
1132 AC_CHECK_DECL(POPPLER_DEST_XYZ,
1133 [AC_DEFINE([HAVE_POPPLER_DEST_XYZ], [], [Description])],
1134 ,[#include <poppler-action.h>])
1138 dnl sed ************************************************************************
1139 AC_CHECK_PROG(HAVE_SED, sed, yes, no)
1141 dnl perl ***********************************************************************
1142 AC_CHECK_PROG(HAVE_PERL, perl, yes, no)
1143 if test x"$HAVE_PERL" = xyes; then
1144 AC_MSG_CHECKING(for perl >= 5.8.0)
1145 PERL_VER=`perl -e 'print $] > 5.0079999?"yes":"no"'`
1146 if test "$PERL_VER" = "yes"; then
1153 if test x"$HAVE_PERL" = xyes; then
1154 AC_MSG_CHECKING(for Perl compile flags)
1155 if test x"$HAVE_SED" = xno; then
1156 AC_MSG_RESULT(no - missing sed)
1159 PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
1160 PERL_CFLAGS=`echo $PERL_CFLAGS | sed 's/-D_FILE_OFFSET_BITS=[[0-9]]*//'`
1161 PERL_LDFLAGS=`perl -MExtUtils::Embed -e ldopts |sed 's/-lgdbm//'`
1162 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-ldb//'`
1163 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lndbm//'`
1164 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lc//'`
1169 AC_SUBST(PERL_CFLAGS)
1170 AC_SUBST(PERL_LDFLAGS)
1173 dnl Gpgme **********************************************************************
1174 AM_PATH_GPGME(1.0.0, HAVE_GPGME=yes, HAVE_GPGME=no)
1175 if test x"$HAVE_GPGME" = xyes; then
1176 AC_DEFINE(USE_GPGME, 1, Define if you use GPGME to support OpenPGP.)
1177 AM_PATH_GPGME(1.1.1, AC_DEFINE(HAVE_GPGME_PKA_TRUST, 1, [Define if GPGME supports PKA.]))
1180 dnl Python *********************************************************************
1181 AM_PATH_PYTHON([2.5], [
1182 AC_PATH_PROG(PYTHON_CONFIG, python$PYTHON_VERSION-config)
1183 if test x"$PYTHON_CONFIG" = x"" ; then
1184 AC_PATH_PROG(PYTHON_CONFIG, python-config)
1186 if test x"$PYTHON_CONFIG" != x""; then
1187 PYTHON_CFLAGS=`$PYTHON_CONFIG --includes`
1188 PYTHON_LIBS=`$PYTHON_CONFIG --libs`
1189 PYTHON_PREFIX=`$PYTHON_CONFIG --prefix`
1192 AC_MSG_WARN(python-config not found. Maybe you need to install development packages for Python.)
1196 if test x"$HAVE_PYTHON" = xyes; then
1198 PYTHON_SO_FILE="libpython${PYTHON_VERSION}.so"
1199 found_libpython_so="no"
1200 if test -f "$PYTHON_PREFIX/lib/$PYTHON_SO_FILE"; then
1201 found_libpython_so="yes"
1202 PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib/$PYTHON_SO_FILE\"))"`
1204 if test -f "$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE"; then
1205 found_libpython_so="yes"
1206 PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE\"))"`
1208 if test x"$found_libpython_so" != x"yes"; then
1209 AC_MSG_WARN(Could not find Python shared libary: $PYTHON_SO_FILE does not exist. Maybe you need to install development packages for Python.)
1213 if test x"$HAVE_PYTHON" = xyes; then
1214 PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.10.3, [AC_DEFINE(ENABLE_PYTHON, [1], [Enable Python support])], HAVE_PYTHON=no)
1217 AC_SUBST(PYTHON_SHARED_LIB)
1218 AC_SUBST(PYTHON_CFLAGS)
1219 AC_SUBST(PYTHON_LIBS)
1220 AC_SUBST(PYGTK_CFLAGS)
1221 AC_SUBST(PYGTK_LIBS)
1223 dnl libnotify ******************************************************************
1224 PKG_CHECK_MODULES(libnotify, libnotify >= 0.4.3, HAVE_LIBNOTIFY=yes, HAVE_LIBNOTIFY=no)
1225 if test x"$HAVE_LIBNOTIFY" = xyes; then
1226 AC_DEFINE(HAVE_LIBNOTIFY, 1, [Define if libnotify support is enabled])
1228 AC_SUBST(libnotify_CFLAGS)
1229 AC_SUBST(libnotify_LIBS)
1231 dnl libcanberra-gtk ************************************************************
1232 PKG_CHECK_MODULES(libcanberra_gtk, libcanberra-gtk >= 0.6, HAVE_LIBCANBERRA_GTK=yes, HAVE_LIBCANBERRA_GTK=no)
1233 if test x"$HAVE_LIBCANBERRA_GTK" = xyes; then
1234 AC_DEFINE(HAVE_LIBCANBERRA_GTK, 1, [Define if libcanberra-gtk support is enabled])
1236 AC_SUBST(libcanberra_gtk_CFLAGS)
1237 AC_SUBST(libcanberra_gtk_LIBS)
1239 dnl libindicate ****************************************************************
1240 dnl We support either 0.3+ or 0.5+
1241 LIBINDICATE_MODULE=indicate
1242 LIBINDICATE_REQUIRED=0.3.0
1244 PKG_CHECK_EXISTS(indicate-0.5 >= 0.5.0, LIBINDICATE_MODULE=indicate-0.5)
1245 PKG_CHECK_MODULES(libindicate, $LIBINDICATE_MODULE >= $LIBINDICATE_REQUIRED, HAVE_LIBINDICATE=yes, HAVE_LIBINDICATE=no)
1246 if test x"$HAVE_LIBINDICATE" = xyes; then
1247 AC_DEFINE(NOTIFICATION_INDICATOR, 1, [Activate support for indicators])
1249 AC_SUBST(libindicate_CFLAGS)
1250 AC_SUBST(libindicate_LIBS)
1252 dnl hotkeys ********************************************************************
1253 PKG_CHECK_MODULES(CM_NP_HOTKEY, [gio-2.0 >= 2.15.6 gio-unix-2.0 >= 2.15.6], HAVE_HOTKEYS=yes, HAVE_HOTKEYS=no)
1254 if test x"$HAVE_HOTKEYS" = xyes; then
1255 AC_DEFINE(NOTIFICATION_HOTKEYS, 1, Activate support for global hotkeys)
1257 AC_SUBST(CM_NP_HOTKEY_CFLAGS)
1258 AC_SUBST(CM_NP_HOTKEY_LIBS)
1261 dnl Third, we now cross the requested plugins and the available dependencies
1262 dnl If some dependencies are missing and the plugin was explicitely enabled,
1263 dnl we error out, else we only inform.
1265 AC_MSG_CHECKING([whether to build acpi_notifier plugin])
1266 if test x"$enable_acpi_notifier_plugin" != xno; then
1267 PLUGINS="$PLUGINS acpi_notifier"
1270 DISABLED_PLUGINS="$DISABLED_PLUGINS acpi_notifier"
1274 AC_MSG_CHECKING([whether to build address_keeper plugin])
1275 if test x"$enable_address_keeper_plugin" != xno; then
1276 PLUGINS="$PLUGINS address_keeper"
1279 DISABLED_PLUGINS="$DISABLED_PLUGINS address_keeper"
1283 AC_MSG_CHECKING([whether to build archive plugin])
1284 if test x"$enable_archive_plugin" != xno; then
1285 dependencies_missing=""
1287 if test x"$HAVE_ARCHIVE" = xno; then
1288 dependencies_missing="libarchive $dependencies_missing"
1291 if test x"$dependencies_missing" = x; then
1292 PLUGINS="$PLUGINS archive"
1294 elif test x"$enable_archive_plugin" = xauto; then
1296 AC_MSG_WARN("Plugin archive will not be built; missing $dependencies_missing")
1297 enable_archive_plugin=no
1298 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS archive"
1301 AC_MSG_ERROR("Plugin archive cannot be built; missing $dependencies_missing")
1304 DISABLED_PLUGINS="$DISABLED_PLUGINS archive"
1308 AC_MSG_CHECKING([whether to build att_remover plugin])
1309 if test x"$enable_att_remover_plugin" != xno; then
1310 PLUGINS="$PLUGINS att_remover"
1313 DISABLED_PLUGINS="$DISABLED_PLUGINS att_remover"
1317 AC_MSG_CHECKING([whether to build attachwarner plugin])
1318 if test x"$enable_attachwarner_plugin" != xno; then
1319 PLUGINS="$PLUGINS attachwarner"
1322 DISABLED_PLUGINS="$DISABLED_PLUGINS attachwarner"
1326 AC_MSG_CHECKING([whether to build bogofilter plugin])
1327 if test x"$enable_bogofilter_plugin" != xno; then
1328 PLUGINS="$PLUGINS bogofilter"
1331 DISABLED_PLUGINS="$DISABLED_PLUGINS bogofilter"
1335 AC_MSG_CHECKING([whether to build bsfilter plugin])
1336 if test x"$enable_bsfilter_plugin" != xno; then
1337 PLUGINS="$PLUGINS bsfilter"
1340 DISABLED_PLUGINS="$DISABLED_PLUGINS bsfilter"
1344 AC_MSG_CHECKING([whether to build clamd plugin])
1345 if test x"$enable_clamd_plugin" != xno; then
1346 PLUGINS="$PLUGINS clamd"
1349 DISABLED_PLUGINS="$DISABLED_PLUGINS clamd"
1353 AC_MSG_CHECKING([whether to build demo plugin])
1354 if test x"$enable_demo_plugin" != xno; then
1355 PLUGINS="$PLUGINS demo"
1358 DISABLED_PLUGINS="$DISABLED_PLUGINS demo"
1362 AC_MSG_CHECKING([whether to build fancy plugin])
1363 if test x"$enable_fancy_plugin" != xno; then
1364 dependencies_missing=""
1366 if test x"$HAVE_WEBKIT" = xno; then
1367 dependencies_missing="libwebkit-1.0 $dependencies_missing"
1369 if test x"$HAVE_CURL" = xno; then
1370 dependencies_missing="libcurl $dependencies_missing"
1373 if test x"$dependencies_missing" = x; then
1374 PLUGINS="$PLUGINS fancy"
1376 elif test x"$enable_fancy_plugin" = xauto; then
1378 AC_MSG_WARN("Plugin fancy will not be built; missing $dependencies_missing")
1379 enable_fancy_plugin=no
1380 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS fancy"
1383 AC_MSG_ERROR("Plugin fancy cannot be built; missing $dependencies_missing")
1386 DISABLED_PLUGINS="$DISABLED_PLUGINS fancy"
1390 AC_MSG_CHECKING([whether to build fetchinfo plugin])
1391 if test x"$enable_fetchinfo_plugin" != xno; then
1392 PLUGINS="$PLUGINS fetchinfo"
1395 DISABLED_PLUGINS="$DISABLED_PLUGINS fetchinfo"
1399 AC_MSG_CHECKING([whether to build gdata plugin])
1400 if test x"$enable_gdata_plugin" != xno; then
1401 dependencies_missing=""
1403 if test x"$HAVE_GDATA" = xno; then
1404 dependencies_missing="libgdata $dependencies_missing"
1407 if test x"$dependencies_missing" = x; then
1408 PLUGINS="$PLUGINS gdata"
1410 elif test x"$enable_gdata_plugin" = xauto; then
1412 AC_MSG_WARN("Plugin gdata will not be built; missing $dependencies_missing")
1413 enable_gdata_plugin=no
1414 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS gdata"
1417 AC_MSG_ERROR("Plugin gdata cannot be built; missing $dependencies_missing")
1420 DISABLED_PLUGINS="$DISABLED_PLUGINS gdata"
1424 AC_MSG_CHECKING([whether to build mailmbox plugin])
1425 if test x"$enable_mailmbox_plugin" != xno; then
1426 PLUGINS="$PLUGINS mailmbox"
1429 DISABLED_PLUGINS="$DISABLED_PLUGINS mailmbox"
1433 AC_MSG_CHECKING([whether to build newmail plugin])
1434 if test x"$enable_newmail_plugin" != xno; then
1435 PLUGINS="$PLUGINS newmail"
1438 DISABLED_PLUGINS="$DISABLED_PLUGINS newmail"
1442 AC_MSG_CHECKING([whether to build notification plugin])
1443 if test x"$enable_notification_plugin" != xno; then
1444 PLUGINS="$PLUGINS notification"
1447 AC_DEFINE(NOTIFICATION_POPUP, 1, Activate notification popup)
1448 AC_DEFINE(NOTIFICATION_BANNER, 1, Activate notification banner)
1449 AC_DEFINE(NOTIFICATION_COMMAND, 1, Activate notification shell command)
1450 AC_DEFINE(NOTIFICATION_TRAYICON, 1, Activate notification trayicon)
1451 if test x"$platform_win32" = xno; then
1452 AC_DEFINE(NOTIFICATION_LCDPROC, 1, Activate lcdproc support)
1455 notification_features="banner command"
1456 notification_missing_dependencies=""
1457 if test x"$HAVE_HOTKEYS" = xyes; then
1458 notification_features="$notification_features hotkeys"
1460 notification_missing_dependencies="$notification_missing_dependencies hotkeys"
1462 notification_features="$notification_features lcdproc"
1463 if test x"$HAVE_LIBINDICATE" = xyes; then
1464 notification_features="$notification_features libindicate"
1466 notification_missing_dependencies="$notification_missing_dependencies libindicate"
1468 if test x"$HAVE_LIBNOTIFY" = xyes; then
1469 notification_features="$notification_features libnotify"
1471 notification_missing_dependencies="$notification_missing_dependencies libnotify"
1473 if test x"$HAVE_LIBCANBERRA_GTK" = xyes; then
1474 notification_features="$notification_features libcanberra-gtk"
1476 notification_missing_dependencies="$notification_missing_dependencies libcanberra-gtk"
1478 notification_features="$notification_features popup trayicon"
1480 DISABLED_PLUGINS="$DISABLED_PLUGINS notification"
1484 AC_MSG_CHECKING([whether to build pdf_viewer plugin])
1485 if test x"$enable_pdf_viewer_plugin" != xno; then
1486 dependencies_missing=""
1488 if test x"$HAVE_POPPLER" = xno; then
1489 dependencies_missing="libpoppler-glib $dependencies_missing"
1492 if test x"$dependencies_missing" = x; then
1493 PLUGINS="$PLUGINS pdf_viewer"
1495 elif test x"$enable_pdf_viewer_plugin" = xauto; then
1497 AC_MSG_WARN("Plugin pdf_viewer will not be built; missing $dependencies_missing")
1498 enable_pdf_viewer_plugin=no
1499 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pdf_viewer"
1502 AC_MSG_ERROR("Plugin pdf_viewer cannot be built; missing $dependencies_missing")
1505 DISABLED_PLUGINS="$DISABLED_PLUGINS pdf_viewer"
1509 AC_MSG_CHECKING([whether to build perl plugin])
1510 if test x"$enable_perl_plugin" != xno; then
1511 dependencies_missing=""
1513 if test x"$HAVE_PERL" = xno; then
1514 dependencies_missing="perl $dependencies_missing"
1517 if test x"$dependencies_missing" = x; then
1518 PLUGINS="$PLUGINS perl"
1520 elif test x"$enable_perl_plugin" = xauto; then
1522 AC_MSG_WARN("Plugin perl will not be built; missing $dependencies_missing")
1523 enable_perl_plugin=no
1524 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS perl"
1527 AC_MSG_ERROR("Plugin perl cannot be built; missing $dependencies_missing")
1530 DISABLED_PLUGINS="$DISABLED_PLUGINS perl"
1534 AC_MSG_CHECKING([whether to build python plugin])
1535 if test x"$enable_python_plugin" != xno; then
1536 dependencies_missing=""
1538 if test x"$HAVE_PYTHON" = xno; then
1539 dependencies_missing="python $dependencies_missing"
1542 if test x"$dependencies_missing" = x; then
1543 PLUGINS="$PLUGINS python"
1545 elif test x"$enable_python_plugin" = xauto; then
1547 AC_MSG_WARN("Plugin python will not be built; missing $dependencies_missing")
1548 enable_python_plugin=no
1549 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS python"
1552 AC_MSG_ERROR("Plugin python cannot be built; missing $dependencies_missing")
1555 DISABLED_PLUGINS="$DISABLED_PLUGINS python"
1559 AC_MSG_CHECKING([whether to build pgpcore plugin])
1560 if test x"$enable_pgpcore_plugin" != xno; then
1561 dependencies_missing=""
1563 if test x"$HAVE_GPGME" = xno; then
1564 dependencies_missing="libgpgme $dependencies_missing"
1567 if test x"$dependencies_missing" = x; then
1568 PLUGINS="$PLUGINS pgpcore"
1570 elif test x"$enable_pgpcore_plugin" = xauto; then
1572 AC_MSG_WARN("Plugin pgpcore will not be built; missing $dependencies_missing")
1573 enable_pgpcore_plugin=no
1574 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpcore"
1577 AC_MSG_ERROR("Plugin pgpcore cannot be built; missing $dependencies_missing")
1580 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpcore"
1584 AC_MSG_CHECKING([whether to build pgpmime plugin])
1585 if test x"$enable_pgpmime_plugin" != xno; then
1586 dependencies_missing=""
1588 if test x"$HAVE_GPGME" = xno; then
1589 dependencies_missing="libgpgme $dependencies_missing"
1591 if test x"$enable_pgpcore_plugin" = xno; then
1592 dependencies_missing="pgpcore plugin $dependencies_missing"
1595 if test x"$dependencies_missing" = x; then
1596 PLUGINS="$PLUGINS pgpmime"
1598 elif test x"$enable_pgpmime_plugin" = xauto; then
1600 AC_MSG_WARN("Plugin pgpmime will not be built; missing $dependencies_missing")
1601 enable_pgpmime_plugin=no
1602 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpmime"
1605 AC_MSG_ERROR("Plugin pgpmime cannot be built; missing $dependencies_missing")
1608 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpmime"
1612 AC_MSG_CHECKING([whether to build pgpinline plugin])
1613 if test x"$enable_pgpinline_plugin" != xno; then
1614 dependencies_missing=""
1616 if test x"$HAVE_GPGME" = xno; then
1617 dependencies_missing="libgpgme $dependencies_missing"
1619 if test x"$enable_pgpcore_plugin" = xno; then
1620 dependencies_missing="pgpcore plugin $dependencies_missing"
1623 if test x"$dependencies_missing" = x; then
1624 PLUGINS="$PLUGINS pgpinline"
1626 elif test x"$enable_pgpinline_plugin" = xauto; then
1628 AC_MSG_WARN("Plugin pgpinline will not be built; missing $dependencies_missing")
1629 enable_pgpinline_plugin=no
1630 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpinline"
1633 AC_MSG_ERROR("Plugin pgpinline cannot be built; missing $dependencies_missing")
1636 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpinline"
1640 AC_MSG_CHECKING([whether to build rssyl plugin])
1641 if test x"$enable_rssyl_plugin" != xno; then
1642 dependencies_missing=""
1644 if test x"$HAVE_LIBXML" = xno; then
1645 dependencies_missing="libxml2 $dependencies_missing"
1647 if test x"$HAVE_CURL" = xno; then
1648 dependencies_missing="libcurl $dependencies_missing"
1651 if test x"$dependencies_missing" = x; then
1652 PLUGINS="$PLUGINS rssyl"
1654 elif test x"$enable_rssyl_plugin" = xauto; then
1656 AC_MSG_WARN("Plugin rssyl will not be built; missing $dependencies_missing")
1657 enable_rssyl_plugin=no
1658 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS rssyl"
1661 AC_MSG_ERROR("Plugin rssyl cannot be built; missing $dependencies_missing")
1664 DISABLED_PLUGINS="$DISABLED_PLUGINS rssyl"
1668 AC_MSG_CHECKING([whether to build spamassassin plugin])
1669 if test x"$enable_spamassassin_plugin" != xno; then
1670 PLUGINS="$PLUGINS spamassassin"
1674 DISABLED_PLUGINS="$DISABLED_PLUGINS spamassassin"
1678 AC_MSG_CHECKING([whether to build smime plugin])
1679 if test x"$enable_smime_plugin" != xno; then
1680 dependencies_missing=""
1682 if test x"$HAVE_GPGME" = xno; then
1683 dependencies_missing="libgpgme $dependencies_missing"
1685 if test x"$enable_pgpcore_plugin" = xno; then
1686 dependencies_missing="pgpcore plugin $dependencies_missing"
1689 if test x"$dependencies_missing" = x; then
1690 PLUGINS="$PLUGINS smime"
1692 elif test x"$enable_smime_plugin" = xauto; then
1694 AC_MSG_WARN("Plugin smime will not be built; missing $dependencies_missing")
1695 enable_smime_plugin=no
1696 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS smime"
1699 AC_MSG_ERROR("Plugin smime cannot be built; missing $dependencies_missing")
1702 DISABLED_PLUGINS="$DISABLED_PLUGINS smime"
1706 AC_MSG_CHECKING([whether to build spam_report plugin])
1707 if test x"$enable_spam_report_plugin" != xno; then
1708 dependencies_missing=""
1710 if test x"$HAVE_CURL" = xno; then
1711 dependencies_missing="libcurl $dependencies_missing"
1714 if test x"$dependencies_missing" = x; then
1715 PLUGINS="$PLUGINS spam_report"
1717 elif test x"$enable_spam_report_plugin" = xauto; then
1719 AC_MSG_WARN("Plugin spam_report will not be built; missing $dependencies_missing")
1720 enable_spam_report_plugin=no
1721 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS spam_report"
1724 AC_MSG_ERROR("Plugin spam_report cannot be built; missing $dependencies_missing")
1727 DISABLED_PLUGINS="$DISABLED_PLUGINS spam_report"
1731 AC_MSG_CHECKING([whether to build tnef_parse plugin])
1732 if test x"$enable_tnef_parse_plugin" != xno; then
1733 PLUGINS="$PLUGINS tnef_parse"
1736 DISABLED_PLUGINS="$DISABLED_PLUGINS tnef_parse"
1740 AC_MSG_CHECKING([whether to build vcalendar plugin])
1741 if test x"$enable_vcalendar_plugin" != xno; then
1742 dependencies_missing=""
1744 if test x"$HAVE_CURL" = xno; then
1745 dependencies_missing="libcurl $dependencies_missing"
1748 if test x"$HAVE_PERL" = xno; then
1749 dependencies_missing="perl $dependencies_missing"
1752 if test x"$dependencies_missing" = x; then
1753 PLUGINS="$PLUGINS vcalendar"
1755 elif test x"$enable_vcalendar_plugin" = xauto; then
1757 AC_MSG_WARN("Plugin vcalendar will not be built; missing $dependencies_missing")
1758 enable_vcalendar_plugin=no
1759 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS vcalendar"
1762 AC_MSG_ERROR("Plugin vcalendar cannot be built; missing $dependencies_missing")
1765 DISABLED_PLUGINS="$DISABLED_PLUGINS vcalendar"
1769 dnl And finally the automake conditionals.
1771 AM_CONDITIONAL(BUILD_ACPI_NOTIFIER_PLUGIN, test x"$enable_acpi_notifier_plugin" != xno)
1772 AM_CONDITIONAL(BUILD_ADDRESS_KEEPER_PLUGIN, test x"$enable_address_keeper_plugin" != xno)
1773 AM_CONDITIONAL(BUILD_ARCHIVE_PLUGIN, test x"$enable_archive_plugin" != xno)
1774 AM_CONDITIONAL(BUILD_ATT_REMOVER_PLUGIN, test x"$enable_att_remover_plugin" != xno)
1775 AM_CONDITIONAL(BUILD_ATTACHWARNER_PLUGIN, test x"$enable_attachwarner_plugin" != xno)
1776 AM_CONDITIONAL(BUILD_BOGOFILTER_PLUGIN, test x"$enable_bogofilter_plugin" != xno)
1777 AM_CONDITIONAL(BUILD_BSFILTER_PLUGIN, test x"$enable_bsfilter_plugin" != xno)
1778 AM_CONDITIONAL(BUILD_CLAMD_PLUGIN, test x"$enable_clamd_plugin" != xno)
1779 AM_CONDITIONAL(BUILD_DEMO_PLUGIN, test x"$enable_demo_plugin" != xno)
1780 AM_CONDITIONAL(BUILD_FANCY_PLUGIN, test x"$enable_fancy_plugin" != xno)
1781 AM_CONDITIONAL(BUILD_FETCHINFO_PLUGIN, test x"$enable_fetchinfo_plugin" != xno)
1782 AM_CONDITIONAL(BUILD_GDATA_PLUGIN, test x"$enable_gdata_plugin" != xno)
1783 AM_CONDITIONAL(BUILD_MAILMBOX_PLUGIN, test x"$enable_mailmbox_plugin" != xno)
1784 AM_CONDITIONAL(BUILD_NEWMAIL_PLUGIN, test x"$enable_newmail_plugin" != xno)
1785 AM_CONDITIONAL(BUILD_NOTIFICATION_PLUGIN, test x"$enable_notification_plugin" != xno)
1786 AM_CONDITIONAL(BUILD_HOTKEYS, test x"$enable_notification_plugin" != xno -a x"$HAVE_HOTKEYS" = xyes)
1787 AM_CONDITIONAL(BUILD_PDF_VIEWER_PLUGIN, test x"$enable_pdf_viewer_plugin" != xno)
1788 AM_CONDITIONAL(BUILD_PERL_PLUGIN, test x"$enable_perl_plugin" != xno)
1789 AM_CONDITIONAL(BUILD_PYTHON_PLUGIN, test x"$enable_python_plugin" != xno)
1790 AM_CONDITIONAL(BUILD_PGPCORE_PLUGIN, test x"$enable_pgpcore_plugin" != xno)
1791 AM_CONDITIONAL(BUILD_PGPMIME_PLUGIN, test x"$enable_pgpmime_plugin" != xno)
1792 AM_CONDITIONAL(BUILD_PGPINLINE_PLUGIN, test x"$enable_pgpinline_plugin" != xno)
1793 AM_CONDITIONAL(BUILD_RSSYL_PLUGIN, test x"$enable_rssyl_plugin" != xno)
1794 AM_CONDITIONAL(BUILD_SMIME_PLUGIN, test x"$enable_smime_plugin" != xno)
1795 AM_CONDITIONAL(BUILD_SPAMASSASSIN_PLUGIN, test x"$enable_spamassassin_plugin" != xno)
1796 AM_CONDITIONAL(BUILD_SPAM_REPORT_PLUGIN, test x"$enable_spam_report_plugin" != xno)
1797 AM_CONDITIONAL(BUILD_TNEF_PARSE_PLUGIN, test x"$enable_tnef_parse_plugin" != xno)
1798 AM_CONDITIONAL(BUILD_VCALENDAR_PLUGIN, test x"$enable_vcalendar_plugin" != xno)
1801 dnl ****************************
1802 dnl ** Final configure output **
1803 dnl ****************************
1809 src/common/version.h
1812 src/common/passcrypt.h
1815 src/plugins/Makefile
1816 src/plugins/acpi_notifier/Makefile
1817 src/plugins/address_keeper/Makefile
1818 src/plugins/archive/Makefile
1819 src/plugins/att_remover/Makefile
1820 src/plugins/attachwarner/Makefile
1821 src/plugins/bogofilter/Makefile
1822 src/plugins/bsfilter/Makefile
1823 src/plugins/clamd/Makefile
1824 src/plugins/clamd/libclamd/Makefile
1825 src/plugins/demo/Makefile
1826 src/plugins/fancy/Makefile
1827 src/plugins/fetchinfo/Makefile
1828 src/plugins/gdata/Makefile
1829 src/plugins/mailmbox/Makefile
1830 src/plugins/newmail/Makefile
1831 src/plugins/notification/Makefile
1832 src/plugins/notification/gtkhotkey/Makefile
1833 src/plugins/pdf_viewer/Makefile
1834 src/plugins/perl/Makefile
1835 src/plugins/perl/tools/Makefile
1836 src/plugins/python/Makefile
1837 src/plugins/pgpcore/Makefile
1838 src/plugins/pgpmime/Makefile
1839 src/plugins/pgpinline/Makefile
1840 src/plugins/rssyl/Makefile
1841 src/plugins/smime/Makefile
1842 src/plugins/spamassassin/Makefile
1843 src/plugins/spam_report/Makefile
1844 src/plugins/tnef_parse/Makefile
1845 src/plugins/vcalendar/Makefile
1846 src/plugins/vcalendar/libical/Makefile
1847 src/plugins/vcalendar/libical/libical/icalversion.h
1848 src/plugins/vcalendar/libical/libical/Makefile
1849 src/plugins/vcalendar/libical/design-data/Makefile
1850 src/plugins/vcalendar/libical/scripts/Makefile
1857 manual/dist/Makefile
1858 manual/dist/pdf/Makefile
1859 manual/dist/ps/Makefile
1860 manual/dist/html/Makefile
1861 manual/dist/txt/Makefile
1863 manual/fr/dist/Makefile
1864 manual/fr/dist/pdf/Makefile
1865 manual/fr/dist/ps/Makefile
1866 manual/fr/dist/html/Makefile
1867 manual/fr/dist/txt/Makefile
1869 manual/pl/dist/Makefile
1870 manual/pl/dist/pdf/Makefile
1871 manual/pl/dist/ps/Makefile
1872 manual/pl/dist/html/Makefile
1873 manual/pl/dist/txt/Makefile
1875 manual/es/dist/Makefile
1876 manual/es/dist/pdf/Makefile
1877 manual/es/dist/ps/Makefile
1878 manual/es/dist/html/Makefile
1879 manual/es/dist/txt/Makefile
1881 manual/de/dist/Makefile
1882 manual/de/dist/pdf/Makefile
1883 manual/de/dist/ps/Makefile
1884 manual/de/dist/html/Makefile
1885 manual/de/dist/txt/Makefile
1889 dnl Output the configuration summary
1891 echo "$PACKAGE $VERSION"
1893 if test x"$enable_new_addrbook" = xyes; then
1894 echo "Using Address Book : New experimental interface"
1896 echo "Using Address Book : Old stable interface"
1897 echo "JPilot : $enable_jpilot"
1898 echo "LDAP : $enable_ldap"
1900 echo "gnuTLS : $enable_gnutls"
1901 echo "iconv : $am_cv_func_iconv"
1902 echo "compface : $enable_compface"
1903 echo "IPv6 : $enable_ipv6"
1904 echo "enchant : $enable_enchant"
1905 echo "IMAP4 : $enable_libetpan"
1906 echo "NNTP : $enable_libetpan"
1907 echo "Crash dialog : $enable_crash_dialog"
1908 echo "LibSM : $enable_libsm"
1909 echo "DBUS : $enable_dbus"
1910 echo "NetworkManager : $enable_networkmanager"
1911 echo "Manual : $enable_manual"
1912 echo "Generic UMPC code : $enable_generic_umpc"
1913 echo "Maemo build : $enable_maemo"
1914 echo "Config dir : $ac_cv_with_config_dir"
1918 for plugin in $PLUGINS; do
1920 if test x"$plugin" = xnotification; then
1922 for notif_feature in $notification_features; do
1923 echo " $notif_feature"
1925 if test "x$notification_missing_dependencies" != x; then
1926 echo " Disabled due to missing dependencies:"
1927 for notif_miss_dep in $notification_missing_dependencies; do
1928 echo " $notif_miss_dep"
1933 if test "x$DISABLED_PLUGINS" != x; then
1935 for plugin in $DISABLED_PLUGINS; do
1940 if test "x$MISSING_DEPS_PLUGINS" != x; then
1941 echo " Disabled due to missing dependencies:"
1942 for plugin in $MISSING_DEPS_PLUGINS; do
1947 echo "The binary will be installed in $prefix/bin"
1949 echo "Configure finished, type 'make' to build."