1 # Process this file with autoconf to produce a configure script.
4 m4_define([evo_major_version], [2])
5 m4_define([evo_minor_version], [25])
6 m4_define([evo_micro_version], [91])
7 m4_define([evo_version],
8 [evo_major_version.evo_minor_version.evo_micro_version])
9 m4_define([evo_stable_version],
10 [m4_if(m4_eval(evo_minor_version % 2), [1],
11 [evo_major_version.m4_eval(evo_minor_version - 1)],
14 AC_INIT(evolution, [evo_version], http://bugzilla.gnome.org/enter_bug.cgi?product=Evolution)
15 AC_CONFIG_SRCDIR(README)
17 # Some requirements have versioned package names
18 # XXX In the spirit of getting rid of versioned
19 # files, can we please drop these suffixes?
24 m4_define([glib_minimum_version], [2.18.0])
25 m4_define([gtk_minimum_version], [2.14.0])
26 m4_define([eds_minimum_version], [evo_version])
27 m4_define([gnome_icon_theme_minimum_version], [2.19.91])
28 m4_define([libbonobo_minimum_version], [2.20.3])
29 m4_define([libbonoboui_minimum_version], [2.4.2])
30 m4_define([libgtkhtml_minimum_version], [3.25.4])
31 m4_define([gconf_minimum_version], [2.0.0]) # XXX Just a Guess
32 m4_define([libglade_minimum_version], [2.0.0]) # XXX Just a Guess
33 m4_define([libgnomecanvas_minimum_version], [2.0.0]) # XXX Just a Guess
34 m4_define([libgnomeui_minimum_version], [2.0.0]) # XXX Just a Guess
35 m4_define([libxml_minimum_version], [2.0.0]) # XXX Just a Guess
36 m4_define([shared_mime_info_minimum_version], [0.22])
40 # FIXME Minimum versions for dbus-glib-1 and libnm_glib ?
42 m4_define([dbus_minimum_version], [1.0.0])
43 m4_define([hal_minimum_version], [0.5.4])
44 m4_define([libnotify_minimum_version], [0.3.0])
45 m4_define([gnome_pilot_minimum_version], [2.0.15])
46 m4_define([gweather_minimum_version], [2.25.3])
50 # Gross hack to enable 'make dist' on automake 1.9+tar 1.14.
51 # The extra brackets are to foil regex-based scans.
52 m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
54 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
55 AM_CONFIG_HEADER(config.h)
58 AC_DEFINE_UNQUOTED(VERSION_COMMENT, "", [Define if you want a comment appended to the version number])
60 dnl Put the ACLOCAL flags in the Makefile
61 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
63 dnl Initialize maintainer mode
66 if test "$evo_version" != "$evo_stable_version"; then
67 AC_DEFINE(STABLE_VERSION, ["evo_stable_version"],
68 [Define to the latest stable version if this version is unstable])
71 dnl *************************************************************************************************
74 dnl This is for api/versioning tracking for things like bonobo .server files
76 dnl This should always be the major/minor of the stable version or stable version to be
77 dnl *************************************************************************************************
79 AC_SUBST(BASE_VERSION)
80 AC_DEFINE_UNQUOTED(BASE_VERSION, "$BASE_VERSION", [Base version (Major.Minor)])
82 dnl *************************************************************************************************
85 dnl This is for triggering migration calls between varying versions.
87 dnl This should be reset to 0 whenever BASE_VERSION changes
88 dnl *************************************************************************************************
90 AC_SUBST(UPGRADE_REVISION)
91 AC_DEFINE_UNQUOTED(UPGRADE_REVISION, "$UPGRADE_REVISION", [The number of times we've upgraded since the BASE_VERSION release])
100 AC_PATH_PROG([PERL], [perl])
105 AC_MSG_ERROR(You need bison to build Evolution)
114 dnl Test whether jw is installed
115 AC_PATH_PROG(JW,jw,no)
116 if test x$JW = xno; then
121 AM_CONDITIONAL(HAVE_JW, [test x$HAVE_JW = xyes])
125 AC_PROG_INTLTOOL([0.35.5])
129 GETTEXT_PACKAGE=evolution-$BASE_VERSION
130 AC_SUBST(GETTEXT_PACKAGE)
131 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
133 localedir='$(prefix)/$(DATADIRNAME)/locale'
136 dnl Initialize libtool
145 AC_MSG_CHECKING([for Win32])
149 NO_UNDEFINED='-no-undefined'
160 SA_JUNK_PLUGIN=sa-junk-plugin
161 BF_JUNK_PLUGIN=bogo-junk-plugin
163 SOFTOKN3_LIB='-lsoftokn3'
164 HAL_REQUIREMENT='hal'
167 AC_MSG_RESULT([$os_win32])
168 AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes])
169 AC_SUBST(NO_UNDEFINED)
172 # Check for base dependencies early.
173 PKG_CHECK_MODULES(GNOME_PLATFORM,
174 [glib-2.0 >= glib_minimum_version
175 gtk+-2.0 >= gtk_minimum_version
176 gconf-2.0 >= gconf_minimum_version
177 libbonobo-2.0 >= libbonobo_minimum_version
178 libbonoboui-2.0 >= libbonoboui_minimum_version
179 libglade-2.0 >= libglade_minimum_version
180 libgnomecanvas-2.0 >= libgnomecanvas_minimum_version
181 libgnomeui-2.0 >= libgnomeui_minimum_version
182 libxml-2.0 >= libxml_minimum_version
183 shared-mime-info >= shared_mime_info_minimum_version])
184 AC_SUBST(GNOME_PLATFORM_CFLAGS)
185 AC_SUBST(GNOME_PLATFORM_LIBS)
187 PKG_CHECK_MODULES(EVOLUTION_DATA_SERVER,
188 [libebook-$EDS_PACKAGE >= eds_minimum_version
189 libecal-$EDS_PACKAGE >= eds_minimum_version
190 libedataserver-$EDS_PACKAGE >= eds_minimum_version
191 libedataserverui-$EDS_PACKAGE >= eds_minimum_version
192 libegroupwise-$EDS_PACKAGE >= eds_minimum_version
193 libebackend-$EDS_PACKAGE >= eds_minimum_version
194 libgdata-$EDS_PACKAGE >= eds_minimum_version
195 libgdata-google-$EDS_PACKAGE >= eds_minimum_version])
198 dnl ******************
199 dnl User documentation
200 dnl ******************
201 AC_MSG_CHECKING([whether to build user documentation])
203 [AC_HELP_STRING([--with-help],
204 [Build user documentation [default=yes]])],
205 with_help="$withval", with_help="yes")
206 AM_CONDITIONAL(WITH_HELP, test "x$with_help" != "xno")
207 AC_MSG_RESULT($with_help)
209 dnl ******************************
211 dnl ******************************
213 AC_ARG_WITH([libiconv],
214 AC_HELP_STRING([--with-libiconv=PATH],
215 [Prefix where libiconv is installed]))
216 if test -d $withval; then
217 ICONV_CFLAGS="-I$withval/include"
218 ICONV_LIBS="-L$withval/lib"
221 save_CFLAGS="$CFLAGS"
223 CFLAGS="$CFLAGS $ICONV_CFLAGS"
224 LIBS="$LIBS $ICONV_LIBS -liconv"
225 AC_CACHE_CHECK(for iconv in -liconv, ac_cv_libiconv,
228 #include <stdlib.h>],[
229 int main (int argc, char **argv)
232 cd = iconv_open ("UTF-8", "ISO-8859-1");
235 ], [ac_cv_libiconv=yes], [ac_cv_libiconv=no]))
237 if test $ac_cv_libiconv = yes; then
238 ICONV_LIBS="$ICONV_LIBS -liconv"
239 if test $os_win32 = yes; then
240 # Don't pointlessly auto-export the global symbols
241 # from a potentially static libiconv.a
242 ICONV_LIBS="$ICONV_LIBS -Wl,--exclude-libs=libiconv.a"
246 CFLAGS="$save_CFLAGS"
248 AC_CHECK_FUNC(iconv, have_iconv=yes, have_iconv=no)
251 if test $have_iconv = yes; then
252 if test $ac_cv_libiconv = no; then
253 AC_CHECK_FUNCS(gnu_get_libc_version)
255 AC_CACHE_CHECK([if iconv() handles UTF-8], ac_cv_libiconv_utf8, AC_TRY_RUN([
259 #ifdef HAVE_GNU_GET_LIBC_VERSION
260 #include <gnu/libc-version.h>
263 int main (int argc, char **argv)
265 char *jp = "\x1B\x24\x42\x46\x7C\x4B\x5C\x38\x6C";
266 char *utf8 = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E";
267 char *transbuf = malloc (10), *trans = transbuf;
269 size_t jp_len = strlen (jp), utf8_len = 10;
270 size_t utf8_real_len = strlen (utf8);
272 #ifdef HAVE_GNU_GET_LIBC_VERSION
273 /* glibc 2.1.2's iconv is broken in hard to test ways. */
274 if (!strcmp (gnu_get_libc_version (), "2.1.2"))
278 cd = iconv_open ("UTF-8", "ISO-2022-JP");
279 if (cd == (iconv_t) -1)
281 if (iconv (cd, &jp, &jp_len, &trans, &utf8_len) == -1 || jp_len != 0
284 if (memcmp (utf8, transbuf, utf8_real_len) != 0)
288 }], ac_cv_libiconv_utf8=yes, [ac_cv_libiconv_utf8=no; have_iconv=no], [ac_cv_libiconv_utf8=hopefully]))
291 if test "$have_iconv" = no; then
292 AC_MSG_ERROR([You need to install a working iconv implementation, such as ftp://ftp.gnu.org/pub/gnu/libiconv])
294 AC_SUBST(ICONV_CFLAGS)
297 CFLAGS="$CFLAGS -I$srcdir"
299 AC_MSG_CHECKING(preferred charset name formats for system iconv)
302 #include "iconv-detect.c"
306 AC_MSG_RESULT(not found)
308 *** The iconv-detect program was unable to determine the
309 *** preferred charset name formats recognized by your
310 *** iconv library. It is suggested that you install a
311 *** working iconv library such as the one found at
312 *** ftp://ftp.gnu.org/pub/gnu/libiconv
314 if test x$os_win32 = xyes; then
315 AC_MSG_RESULT([using known win32 result])
316 echo '/* This is an auto-generated header, DO NOT EDIT! */' > iconv-detect.h
317 echo >>iconv-detect.h
318 echo '#define ICONV_ISO_D_FORMAT "iso-%d-%d"' >>iconv-detect.h
319 echo '#define ICONV_ISO_S_FORMAT "iso-%d-%s"' >>iconv-detect.h
320 echo '#define ICONV_10646 "UCS-4BE"' >>iconv-detect.h
322 AC_MSG_RESULT(unknown)
324 *** We can't determine the preferred charset name formats
325 *** recognized by your iconv library. You are
326 *** cross-compiling and supposed to know what you are doing.
327 *** Please construct the iconv-detect.h file manually.
332 CFLAGS="$save_CFLAGS"
336 AC_CHECK_HEADERS(alloca.h)
339 AC_CHECK_HEADERS(sys/wait.h)
341 if test x$os_win32 != xyes; then
342 dnl check for socklen_t (in Unix98)
343 AC_MSG_CHECKING(for socklen_t)
344 AC_TRY_COMPILE([#include <sys/types.h>
345 #include <sys/socket.h>
347 ],[],[AC_MSG_RESULT(yes)],[
348 AC_TRY_COMPILE([#include <sys/types.h>
349 #include <sys/socket.h>
350 int accept (int, struct sockaddr *, size_t *);
352 AC_MSG_RESULT(size_t)
353 AC_DEFINE(socklen_t,size_t,[Define to appropriate type if socklen_t is not defined])], [
355 AC_DEFINE(socklen_t,int)])])
366 AC_ARG_ENABLE([test-component],
367 AC_HELP_STRING([--enable-test-component],
368 [Enable test component.]),
369 [enable_test_comp=$enableval],[enable_test_comp=no])
371 AM_CONDITIONAL(ENABLE_TEST_COMPONENT, [test x$enable_test_comp = xyes])
376 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
382 ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
383 if test $ac_cv_struct_tm_gmtoff = yes; then
384 AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if struct tm has a tm_gmtoff member])
386 AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
391 ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
392 if test $ac_cv_var_timezone = yes; then
393 AC_DEFINE(HAVE_TIMEZONE, 1, [Define if libc defines a timezone variable])
394 AC_CACHE_CHECK(for altzone variable, ac_cv_var_altzone,
399 ], ac_cv_var_altzone=yes, ac_cv_var_altzone=no))
400 if test $ac_cv_var_altzone = yes; then
401 AC_DEFINE(HAVE_ALTZONE, 1, [Define if libc defines an altzone variable])
404 AC_ERROR(unable to find a way to determine timezone)
409 AC_CHECK_FUNCS(mkstemp mkdtemp isblank)
411 dnl **************************************************
412 dnl ctime_r prototype
413 dnl **************************************************
415 AC_CACHE_CHECK([if ctime_r wants three arguments], ac_cv_ctime_r_three_args,
422 ctime_r (&date, buf, 100);
424 ac_cv_ctime_r_three_args=yes
426 ac_cv_ctime_r_three_args=no
430 if test x"$ac_cv_ctime_r_three_args" = xyes ; then
431 AC_DEFINE(CTIME_R_THREE_ARGS, 1, [Solaris-style ctime_r])
434 dnl **************************************************
435 dnl gethostbyname_r prototype
436 dnl **************************************************
438 AC_CHECK_FUNCS(gethostbyname_r,[
439 AC_CACHE_CHECK([if gethostbyname_r wants five arguments], ac_cv_gethostbyname_r_five_args,
442 #include "confdefs.h"
443 #include <sys/types.h>
444 #include <sys/socket.h>
445 #include <netinet/in.h>
448 #define BUFSIZE (sizeof(struct hostent)+10)
451 char buffer[BUFSIZE];
455 (void)gethostbyname_r ("www.ximian.com", &hent, buffer, bufsize, &h_errno);
457 ac_cv_gethostbyname_r_five_args=yes
459 ac_cv_gethostbyname_r_five_args=no
463 if test "x$ac_cv_gethostbyname_r_five_args" = "xyes" ; then
464 AC_DEFINE(GETHOSTBYNAME_R_FIVE_ARGS, 1, [Solaris-style gethostbyname_r])
467 dnl **************************************************
468 dnl gethostbyaddr_r prototype
469 dnl **************************************************
471 AC_CHECK_FUNCS(gethostbyaddr_r,[
472 AC_CACHE_CHECK([if gethostbyaddr_r wants seven arguments], ac_cv_gethostbyaddr_r_seven_args,
475 #include "confdefs.h"
476 #include <sys/types.h>
477 #include <sys/socket.h>
478 #include <netinet/in.h>
481 #define BUFSIZE (sizeof(struct hostent)+10)
484 char buffer[BUFSIZE];
488 (void)gethostbyaddr_r ("www.ximian.com", 14, AF_INET, &hent, buffer, bufsize, &h_errno);
490 ac_cv_gethostbyaddr_r_seven_args=yes
492 ac_cv_gethostbyaddr_r_seven_args=no
496 if test "x$ac_cv_gethostbyaddr_r_seven_args" = "xyes" ; then
497 AC_DEFINE(GETHOSTBYADDR_R_SEVEN_ARGS, 1, [Solaris-style gethostbyaddr_r])
500 dnl **************************************************
501 dnl stat(v)fs location/type
502 dnl **************************************************
504 AC_CHECK_HEADERS(sys/statvfs.h)
505 AC_CHECK_FUNCS(statvfs)
506 AC_CHECK_HEADERS(sys/param.h)
507 AC_CHECK_HEADERS(sys/mount.h)
508 AC_CHECK_FUNCS(statfs)
510 dnl **************************************************
511 dnl * Gnome Icon Theme
512 dnl **************************************************
513 PKG_CHECK_MODULES(GIT, gnome-icon-theme >= gnome_icon_theme_minimum_version)
515 dnl **************************************************
516 dnl * Accessibility support
517 dnl **************************************************
518 PKG_CHECK_MODULES(A11Y, atk)
519 AC_SUBST(A11Y_CFLAGS)
522 dnl **************************************************
523 dnl * XF86 multimedia keys support
524 dnl **************************************************
527 #include <X11/XF86keysym.h>
528 int main(int argc,char **argv) {
534 AC_MSG_CHECKING(for X11 XFree86 headers)
535 AC_MSG_RESULT([$have_xfree])
536 if test x"$have_xfree" = "xyes" ; then
537 AC_DEFINE(HAVE_XFREE, 1, [defined if you have X11/XF86keysym.h])
540 dnl **************************************************
542 dnl **************************************************
543 if test "$os_win32" != yes; then
545 case $with_openldap in
550 case $with_static_ldap in
552 msg_ldap="yes (static)"
555 msg_ldap="yes (dynamic)"
560 SAVE_CFLAGS="$CFLAGS"
562 LDAP_CFLAGS="-DLDAP_DEPRECATED"
563 CFLAGS="$CFLAGS $LDAP_CFLAGS"
564 LIBS="$LIBS $LDAP_LIBS"
565 AC_CHECK_FUNCS(ldap_ntlm_bind)
566 CFLAGS="$SAVE_CFLAGS"
570 LDAP_CFLAGS="-DLDAP_DEPRECATED"
571 LDAP_LIBS="-lwldap32"
572 AC_SUBST(LDAP_CFLAGS)
574 AC_DEFINE(HAVE_LDAP,1,[Define if you have LDAP support])
575 AM_CONDITIONAL(ENABLE_LDAP, true)
579 dnl **************************************************
580 dnl SunLDAP support, but if OpenLDAP support, skip check SunLDAP.
581 dnl **************************************************
582 if test "$with_openldap" = no ; then
583 EVO_SUNLDAP_CHECK(no)
584 case $with_sunldap in
589 case $with_static_sunldap in
591 msg_ldap="$with_sunldap (static)"
594 msg_ldap="$with_sunldap (dynamic)"
601 AM_CONDITIONAL(SUNLDAP, [test x$with_sunldap != xno])
603 dnl **************************************************
605 dnl **************************************************
606 AC_ARG_ENABLE([nntp],
607 AC_HELP_STRING([--enable-nntp],
608 [Build Usenet news (NNTP) backend]),
609 [enable_nntp=$enableval],[enable_nntp=yes])
610 if test "x$enable_nntp" = "xyes"; then
611 AC_DEFINE(ENABLE_NNTP,1,[Build NNTP backend])
616 AM_CONDITIONAL(ENABLE_NNTP, [test x$enable_nntp = xyes])
618 dnl **************************************************
619 dnl New IMAP code support.
620 dnl **************************************************
621 AC_ARG_ENABLE([imapp],
622 AC_HELP_STRING([--enable-imapp],
623 [Attempt to compile alternative, incomplete, very unsupported IMAPv4r1 code]),,
625 if test "x$enable_imapp" = "xyes"; then
626 AC_DEFINE(ENABLE_IMAPP,1,[Really don't try this at home])
631 AM_CONDITIONAL(ENABLE_IMAPP, [test x$enable_imapp = xyes])
633 dnl **************************************************
634 dnl New IMAP code support.
635 dnl **************************************************
636 AC_ARG_ENABLE([imap4],
637 AC_HELP_STRING([--enable-imap4],
638 [Attempt to compile yet another, incomplete, very unsupported IMAPv4r1 implementation]),,
640 if test "x$enable_imap4" = "xyes"; then
641 AC_DEFINE(ENABLE_IMAP4,1,[Really don't try this at home])
646 AM_CONDITIONAL(ENABLE_IMAP4, [test x$enable_imap4 = xyes])
648 AC_DEFINE(HANDLE_LIBICAL_MEMORY, 1, [Define it once memory returned by libical is free'ed properly])
650 dnl **************************************************
651 dnl * Posix thread support
652 dnl **************************************************
654 dnl GLIB_CONFIG=${GLIB_CONFIG-glib-config}
655 dnl GNOME_PTHREAD_CHECK
657 dnl if test "x$PTHREAD_LIB" = "x" ; then
658 dnl AC_MSG_ERROR([POSIX threads are currently required for Evolution])
662 dnl Notice that this is a hack, and we wont be able to use this forever, but
663 dnl at least for some time
668 THREADS_LIBS="$PTHREAD_LIB"
669 THREADS_CFLAGS="$PTHREAD_CFLAGS"
671 AC_SUBST(THREADS_LIBS)
672 AC_SUBST(THREADS_CFLAGS)
673 AC_DEFINE(ENABLE_THREADS,1,[Required])
680 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec,
682 AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])],
683 [AC_MSG_ERROR([No regex library found])])])
686 # XXX Drop the version from the package name?
687 PKG_CHECK_MODULES(GTKHTML, libgtkhtml-3.14 >= libgtkhtml_minimum_version)
688 AC_SUBST(GTKHTML_CFLAGS)
689 AC_SUBST(GTKHTML_LIBS)
690 GTKHTML_DATADIR=`$PKG_CONFIG --variable gtkhtml_datadir libgtkhtml-3.14`
691 AC_SUBST(GTKHTML_DATADIR)
692 GTKHTML_API_VERSION=`$PKG_CONFIG --variable gtkhtml_apiversion libgtkhtml-3.14`
693 AC_DEFINE_UNQUOTED(GTKHTML_API_VERSION, "$GTKHTML_API_VERSION", [The gtkhtml api version])
698 dnl ******************************
700 dnl ******************************
701 AC_ARG_ENABLE([pilot-conduits],
702 AC_HELP_STRING([--enable-pilot-conduits],
703 [Enable support for building pilot conduits.]),,
704 [enable_pilot_conduits=no])
705 if test "x$enable_pilot_conduits" = "xyes"; then
706 PKG_CHECK_MODULES(GNOME_PILOT, gnome-pilot-2.0 >= gnome_pilot_minimum_version)
708 CFLAGS_save="$CFLAGS"
709 CFLAGS="$CFLAGS $GNOME_PILOT_CFLAGS"
710 LDFLAGS_save="$LDFLAGS"
711 LDFLAGS="$GNOME_PILOT_LIBS $LDFLAGS"
713 AC_CACHE_CHECK([if pilot-link handles UTF-8 conversions], ac_cv_pilot_link_utf8, AC_TRY_RUN([
719 int main (int argc, char **argv)
721 const char *utf8 = "\x66\x66\x66\x66\x66\x66\x66\xC2\xA9";
722 size_t utf8_real_len = strlen (utf8);
725 if (convert_ToPilotChar ("UTF-8", utf8, utf8_real_len, &pstring) == -1)
730 ], ac_cv_pilot_link_utf8=yes, ac_cv_pilot_link_utf8=no, ac_cv_pilot_link_utf8=no))
732 CFLAGS="$CFLAGS_save"
733 LDFLAGS="$LDFLAGS_save"
735 if test "$ac_cv_pilot_link_utf8" = no; then
736 AC_MSG_ERROR(evolution requires pilot-link to have working UTF-8 conversion routines)
739 AM_CONDITIONAL(ENABLE_PILOT_CONDUITS, [test x$enable_pilot_conduits = xyes])
740 dnl ******************************
741 dnl If pilot conduits are enabled, check version of pilot-link
742 dnl ******************************
743 if test x$enable_pilot_conduits = xyes; then
746 PILOT_LINK_CHECK(0.11.4)
747 AC_SUBST(PILOT_LINK_MAJOR)
748 AC_SUBST(PILOT_LINK_MINOR)
749 AC_SUBST(PILOT_LINK_MICRO)
750 AC_SUBST(PILOT_LINK_PATCH)
751 AC_SUBST(PILOT_LINK_VERSION)
753 if test $PILOT_LINK_MINOR -ge 12; then
754 AC_DEFINE(PILOT_LINK_0_12,,[Building against pilot-link 0.12.0 or greater])
759 AC_SUBST(GNOME_PILOT_CFLAGS)
760 AC_SUBST(GNOME_PILOT_LIBS)
766 AC_HELP_STRING([--with-krb5=PATH],
767 [Location of Kerberos 5 install dir]),
768 [with_krb5=$withval],[with_krb5=no])
769 AC_ARG_WITH([krb5-libs],
770 AC_HELP_STRING([--with-krb5-libs=PATH],
771 [Location of Kerberos 5 libraries]),
772 [with_krb5_libs=$withval],[with_krb5_libs=$with_krb5/lib])
773 AC_ARG_WITH([krb5-includes],
774 AC_HELP_STRING([--with-krb5-includes=PATH],
775 [Location of Kerberos 5 headers]),
776 [with_krb5_includes=$withval],[with_krb5_includes=""])
778 AC_HELP_STRING([--with-krb4=PATH],
779 [Location of Kerberos 4 install dir]),
780 [with_krb4=$withval],[with_krb4=no])
781 AC_ARG_WITH([krb4-libs],
782 AC_HELP_STRING([--with-krb4-libs=PATH],
783 [Location of Kerberos 4 libraries]),
784 [with_krb4_libs=$withval],[with_krb4_libs=$with_krb4/lib])
785 AC_ARG_WITH([krb4-includes],
786 AC_HELP_STRING([--with-krb4-includes=PATH],
787 [Location of Kerberos 4 headers]),
788 [with_krb4_includes=$withval],[with_krb4_includes=""])
792 if test "x${with_krb5}" != "xno"; then
793 LDFLAGS_save="$LDFLAGS"
795 mitlibs="-lkrb5 -lk5crypto -lcom_err -lgssapi_krb5"
796 heimlibs="-lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lgssapi"
797 sunlibs="-lkrb5 -lgss"
798 AC_CACHE_CHECK([for Kerberos 5], ac_cv_lib_kerberos5,
800 LDFLAGS="$LDFLAGS -L$with_krb5_libs $mitlibs"
801 AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$mitlibs",
803 LDFLAGS="$LDFLAGS_save -L$with_krb5_libs $heimlibs"
804 AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$heimlibs",
806 LDFLAGS="$LDFLAGS_save -L$with_krb5_libs $sunlibs"
807 AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$sunlibs", ac_cv_lib_kerberos5="no")
810 LDFLAGS="$LDFLAGS_save"
812 if test "$ac_cv_lib_kerberos5" != "no"; then
813 AC_DEFINE(HAVE_KRB5,1,[Define if you have Krb5])
814 if test "$ac_cv_lib_kerberos5" = "$mitlibs"; then
815 AC_DEFINE(HAVE_MIT_KRB5,1,[Define if you have MIT Krb5])
816 if test -z "$with_krb5_includes"; then
817 KRB5_CFLAGS="-I$with_krb5/include"
819 KRB5_CFLAGS="-I$with_krb5_includes"
823 if test "$ac_cv_lib_kerberos5" = "$heimlibs"; then
824 AC_DEFINE(HAVE_HEIMDAL_KRB5,1,[Define if you have Heimdal])
825 if test -z "$with_krb5_includes"; then
826 KRB5_CFLAGS="-I$with_krb5/include/heimdal"
828 KRB5_CFLAGS="-I$with_krb5_includes"
830 msg_krb5="yes (Heimdal)"
832 AC_DEFINE(HAVE_SUN_KRB5,1,[Define if you have Sun Kerberosv5])
833 if test -z "$with_krb5_includes"; then
834 KRB5_CFLAGS="-I$with_krb5/include/kerberosv5"
836 KRB5_CFLAGS="-I$with_krb5_includes"
841 KRB5_LIBS="-L$with_krb5_libs $ac_cv_lib_kerberos5"
844 AC_MSG_CHECKING(for Kerberos 5)
845 AC_MSG_RESULT($with_krb5)
848 AC_CHECK_HEADER([et/com_err.h],[AC_DEFINE([HAVE_ET_COM_ERR_H], 1, [Have et/comm_err.h])])
849 AC_CHECK_HEADER([com_err.h],[AC_DEFINE([HAVE_COM_ERR_H], 1, [Have comm_err.h])])
852 if test "x${with_krb4}" != "xno"; then
853 LDFLAGS_save="$LDFLAGS"
854 AC_CACHE_CHECK(for Kerberos 4, ac_cv_lib_kerberos4,
856 ac_cv_lib_kerberos4="no"
858 mitcompatlibs="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
859 # Look for MIT krb5 compat krb4
860 LDFLAGS="$LDFLAGS -L$with_krb4_libs $mitcompatlibs"
861 AC_TRY_LINK_FUNC(krb_mk_req, ac_cv_lib_kerberos4="$mitcompatlibs")
863 if test "$ac_cv_lib_kerberos4" = "no"; then
865 LDFLAGS="$LDFLAGS_save -L$with_krb4_libs -lkrb -lcrypto -lcom_err -lroken"
866 AC_TRY_LINK_FUNC(krb_mk_req, ac_cv_lib_kerberos4="-lkrb -lcrypto -lcom_err -lroken")
868 if test "$ac_cv_lib_kerberos4" = "no"; then
869 # Look for old MIT krb4
870 LDFLAGS="$LDFLAGS_save -L$with_krb4_libs -lkrb"
871 AC_TRY_LINK_FUNC(krb_mk_req, ac_cv_lib_kerberos4="-lkrb",
873 LDFLAGS="$LDFLAGS -ldes"
874 AC_TRY_LINK_FUNC(krb_mk_req, ac_cv_lib_kerberos4="-lkrb -ldes")
878 LDFLAGS="$LDFLAGS_save"
879 if test "$ac_cv_lib_kerberos4" != "no"; then
880 AC_DEFINE(HAVE_KRB4,1,[Define if you have Krb4])
883 if test -z "$with_krb4_includes"; then
884 if test -f "$with_krb4/include/krb.h" -o -f "$with_krb4/include/port-sockets.h"; then
885 KRB4_CFLAGS="-I$with_krb4/include"
887 if test -d "$with_krb4/include/kerberosIV"; then
888 KRB4_CFLAGS="$KRB4_CFLAGS -I$with_krb4/include/kerberosIV"
891 KRB4_CFLAGS="-I$with_krb4_includes"
893 KRB4_LIBS="-L$with_krb4_libs $ac_cv_lib_kerberos4"
895 CFLAGS_save="$CFLAGS"
896 CFLAGS="$CFLAGS $KRB4_CFLAGS"
897 AC_TRY_COMPILE([#include "krb.h"
899 ],[return 0],[AC_DEFINE(NEED_KRB_SENDAUTH_PROTO,1,[Need krb_sendauth proto])],)
900 CFLAGS="$CFLAGS_save"
903 AC_MSG_CHECKING(for Kerberos 4)
904 AC_MSG_RESULT(${with_krb4})
907 AC_SUBST(KRB5_CFLAGS)
909 AC_SUBST(KRB4_CFLAGS)
913 dnl This should just define mono CFLAGS etc here, it is used later to
914 dnl turn on the mono plugin or not.
918 AC_ARG_ENABLE([mono],
919 AC_HELP_STRING([--enable-mono],
920 [Add Mono embedded hooks.]),
921 [enable_mono=$enableval],[enable_mono=no])
922 if test "x${enable_mono}" = "xyes"; then
923 PKG_CHECK_MODULES(MONO, "mono")
924 AC_DEFINE(ENABLE_MONO,1,[Define if Mono embedding should be enabled])
927 AC_SUBST(MONO_CFLAGS)
931 dnl This should just define python CFLAGS etc here, it is used later to
932 dnl turn on the python plugin or not.
933 dnl (Thanks to Pidgin)
935 AC_ARG_ENABLE([python],
936 AC_HELP_STRING([--enable-python],
937 [Add python embedded hooks.]),
938 [enable_python=$enableval],[enable_python=no])
940 if test "x${enable_python}" = "xyes"; then
941 AC_PATH_PROG(pythonpath, python)
942 if test "_$pythonpath" != _ ; then
943 AC_MSG_CHECKING(for python compile flags)
944 PY_PREFIX=`$pythonpath -c 'import sys ; print sys.prefix'`
945 PY_EXEC_PREFIX=`$pythonpath -c 'import sys ; print sys.exec_prefix'`
946 changequote(<<, >>)dnl
947 PY_VERSION=`$pythonpath -c 'import sys ; print sys.version[0:3]'`
948 PY_MAJOR=`$pythonpath -c 'import sys ; print sys.version[0:2]'`
951 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then
952 PY_LIBS="-lpython$PY_VERSION -L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
953 PY_INCLUDES="-I$PY_PREFIX/include/python$PY_VERSION"
955 python_package="python-devel"
956 PYTHON_PLUGIN="python"
958 AC_MSG_ERROR([Can't find Python.h])
966 AC_SUBST(PY_INCLUDES)
970 dnl ********************************************************************************
971 dnl security extension support (SSL and S/MIME)
973 dnl The following voodoo does detection of mozilla libraries (nspr and nss)
974 dnl needed by Camel (SSL and S/MIME).
976 dnl The Evolution security extensions are only built if these libraries are found
977 dnl ********************************************************************************
981 dnl these 2 enable's are inverses of each other
984 AC_HELP_STRING([--enable-nss=@<:@yes/no/static@:>@],
985 [Attempt to use Mozilla libnss for SSL support.]),
986 [enable_nss=$enableval],[enable_nss=yes])
988 AC_ARG_ENABLE([smime],
989 AC_HELP_STRING([--enable-smime],
990 [Attempt to use Mozilla libnss for SMIME support (this requires --enable-nss)]),
991 [enable_smime=$enableval],[enable_smime=yes])
993 AC_ARG_WITH([nspr-includes],
994 AC_HELP_STRING([--with-nspr-includes=PATH],
995 [Location of Mozilla nspr4 includes.]))
997 AC_ARG_WITH([nspr-libs],
998 AC_HELP_STRING([--with-nspr-libs=PATH],
999 [Location of Mozilla nspr4 libs.]))
1001 AC_ARG_WITH([nss-includes],
1002 AC_HELP_STRING([--with-nss-includes=PATH],
1003 [Location of Mozilla nss3 includes.]))
1005 AC_ARG_WITH([nss-libs],
1006 AC_HELP_STRING([--with-nss-libs=PATH],
1007 [Location of Mozilla nss3 libs.]))
1009 if test "x${enable_nss}" = "xyes" || test "x${enable_nss}" = "xstatic"; then
1010 if test -n "${with_nspr_includes}" || test -n "${with_nspr_libs}" || test -n "${with_nss_includes}" || test -n "${with_nss_libs}" || test "x${enable_nss}" = "xstatic"; then
1011 check_manually="yes"
1016 if test "x${check_manually}" = "xno"; then
1017 AC_MSG_CHECKING(Mozilla NSPR pkg-config module name)
1018 mozilla_nspr_pcs="nspr mozilla-nspr firefox-nspr xulrunner-nspr seamonkey-nspr"
1019 for pc in $mozilla_nspr_pcs; do
1020 if $PKG_CONFIG --exists $pc; then
1027 AC_MSG_CHECKING(Mozilla NSS pkg-config module name)
1028 mozilla_nss_pcs="nss mozilla-nss firefox-nss xulrunner-nss seamonkey-nss"
1029 for pc in $mozilla_nss_pcs; do
1030 if $PKG_CONFIG --exists $pc; then
1037 if test -n "$mozilla_nspr" -a -n "$mozilla_nss"; then
1038 msg_ssl="yes (Mozilla NSS)"
1039 if test "x$enable_smime" = "xyes"; then
1040 AC_DEFINE(ENABLE_SMIME,1,[Define if SMIME should be enabled])
1041 msg_smime="yes (Mozilla NSS)"
1043 AC_DEFINE(HAVE_NSS,1,[Define if you have NSS])
1044 AC_DEFINE(HAVE_SSL,1,[Define if you have a supported SSL library])
1045 AC_DEFINE_UNQUOTED(MOZILLA_NSS_LIB_DIR,"`$PKG_CONFIG --variable=libdir $mozilla_nss`",[Define to the full path of mozilla nss library])
1046 MANUAL_NSPR_CFLAGS=""
1048 MANUAL_NSS_CFLAGS=""
1051 check_manually="yes"
1057 if test "x${check_manually}" = "xyes"; then
1059 have_nspr_includes="no"
1060 if test "x${with_nspr_includes}" != "xno"; then
1061 CPPFLAGS_save="$CPPFLAGS"
1063 AC_MSG_CHECKING(for Mozilla nspr4 includes in $with_nspr_includes)
1066 CPPFLAGS="$CPPFLAGS -I$with_nspr_includes"
1067 AC_CHECK_HEADERS(nspr.h prio.h, [ moz_nspr_includes="yes" ])
1068 CPPFLAGS="$CPPFLAGS_save"
1070 if test "x{$moz_nspr_includes}" != "xno" -a "x{$moz_nspr_includes}" != "x" ; then
1071 have_nspr_includes="yes"
1072 MANUAL_NSPR_CFLAGS="-I$with_nspr_includes"
1075 AC_MSG_CHECKING(for Mozilla nspr4 includes)
1080 if test "x${with_nspr_libs}" != "xno" -a "x${have_nspr_includes}" != "xno"; then
1081 CFLAGS_save="$CFLAGS"
1082 LDFLAGS_save="$LDFLAGS"
1084 if test "$enable_nss" = "static"; then
1085 if test -z "${with_nspr_libs}"; then
1086 AC_MSG_ERROR([Static linkage requested, but path to nspr libraries not set.]
1087 [Please specify the path to libnspr4.a]
1088 [Example: --with-nspr-libs=/usr/lib])
1090 nsprlibs="$DL_LIB $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB"
1093 nsprlibs="$DL_LIB -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB"
1096 AC_CACHE_CHECK([for Mozilla nspr libraries], moz_nspr_libs,
1099 CFLAGS="$CFLAGS $MANUAL_NSPR_CFLAGS"
1101 if test "x${with_nspr_libs}" != "x"; then
1103 LDFLAGS="$LDFLAGS -L$with_nspr_libs"
1109 AC_TRY_LINK_FUNC(PR_Init, moz_nspr_libs="yes", moz_nspr_libs="no")
1110 CFLAGS="$CFLAGS_save"
1111 LDFLAGS="$LDFLAGS_save"
1114 if test "x$moz_nspr_libs" != "xno"; then
1115 have_nspr_libs="yes"
1116 MANUAL_NSPR_LIBS="-L$with_nspr_libs $nsprlibs"
1118 MANUAL_NSPR_CLFAGS=""
1121 AC_MSG_CHECKING(for Mozilla nspr4 libraries)
1125 if test "x${with_nss_includes}" != "xno" -a "x${have_nspr_libs}" != "xno"; then
1126 CPPFLAGS_save="$CPPFLAGS"
1128 AC_MSG_CHECKING(for Mozilla nss3 includes in $with_nss_includes)
1131 if test "x${with_nspr_includes}" != "x"; then
1132 CPPFLAGS="$CPPFLAGS -I$with_nspr_includes -I$with_nss_includes"
1134 CPPFLAGS="$CPPFLAGS -I$with_nss_includes"
1137 AC_CHECK_HEADERS(nss.h ssl.h smime.h,
1138 [ have_nss_includes="yes" ],
1139 [ have_nss_includes="no" ])
1141 CPPFLAGS="$CPPFLAGS_save"
1143 if test "x${have_nss_includes}" = "xyes"; then
1144 have_nss_includes="yes"
1145 MANUAL_NSS_CFLAGS="-I$with_nss_includes"
1147 MANUAL_NSPR_CFLAGS=""
1151 AC_MSG_CHECKING(for Mozilla nss3 includes)
1155 if test "x${with_nss_libs}" != "xno" -a "x${have_nss_includes}" != "xno"; then
1156 LDFLAGS_save="$LDFLAGS"
1158 if test "$enable_nss" = "static"; then
1159 if test -z "${with_nss_libs}"; then
1160 AC_MSG_ERROR([Static linkage requested, but path to nss libraries not set.]
1161 [Please specify the path to libnss3.a]
1162 [Example: --with-nspr-libs=/usr/lib/mozilla])
1164 nsslibs="-ldb1 $with_nss_libs/libnssckfw.a $with_nss_libs/libasn1.a $with_nss_libs/libcrmf.a $with_nss_libs/libswfci.a $with_nss_libs/libjar.a $with_nss_libs/libpkcs12.a $with_nss_libs/libpkcs7.a $with_nss_libs/libpki1.a $with_nss_libs/libsmime.a $with_nss_libs/libssl.a $with_nss_libs/libnss.a $with_nss_libs/libpk11wrap.a $with_nss_libs/libsoftokn.a $with_nss_libs/libfreebl.a $with_nss_libs/libnsspki.a $with_nss_libs/libnssdev.a $with_nss_libs/libcryptohi.a $with_nss_libs/libcerthi.a $with_nss_libs/libcertdb.a $with_nss_libs/libsecutil.a $with_nss_libs/libnssb.a"
1167 nsslibs="$nsslibs $with_nss_libs/libfreebl.a"
1172 nsslibs="-lssl3 -lsmime3 -lnss3 $SOFTOKN3_LIB"
1175 AC_CACHE_CHECK([for Mozilla nss libraries], moz_nss_libs,
1178 LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs"
1179 LIBS="$nsslibs $nsprlibs"
1180 AC_TRY_LINK_FUNC(NSS_Init, moz_nss_libs="yes", moz_nss_libs="no")
1181 if test "$moz_nss_libs" = no; then
1182 nsslibs="-lssl3 -lsmime3 -lnss3 $SOFTOKN3_LIB"
1183 LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs"
1184 AC_TRY_LINK_FUNC(NSS_Init, moz_nss_libs="yes", moz_nss_libs="no")
1186 LDFLAGS="$LDFLAGS_save"
1189 if test "$moz_nss_libs" != no; then
1192 AC_DEFINE_UNQUOTED(MOZILLA_NSS_LIB_DIR,"$with_nss_libs", [Define to the full path of mozilla nss library])
1193 if test "$enable_nss" = "static"; then
1194 msg_ssl="yes (Mozilla NSS:static)"
1196 msg_ssl="yes (Mozilla NSS)"
1198 if test "$enable_smime" = "yes"; then
1199 AC_DEFINE(ENABLE_SMIME,1,[Define if SMIME should be enabled])
1200 msg_smime="yes (Mozilla NSS)"
1202 MANUAL_NSS_LIBS="-L$with_nss_libs $nsslibs"
1204 MANUAL_NSS_CFLAGS=""
1205 MANUAL_NSPR_CFLAGS=""
1209 AC_MSG_CHECKING(for Mozilla nss libraries)
1213 MANUAL_NSS_CFLAGS="$MANUAL_NSPR_CFLAGS $MANUAL_NSS_CFLAGS"
1214 MANUAL_NSS_LIBS="$MANUAL_NSPR_LIBS $MANUAL_NSS_LIBS"
1218 AM_CONDITIONAL(ENABLE_SMIME, [test "x$msg_smime" != "xno"])
1220 AC_SUBST(MANUAL_NSPR_CFLAGS)
1221 AC_SUBST(MANUAL_NSPR_LIBS)
1222 AC_SUBST(MANUAL_NSS_CFLAGS)
1223 AC_SUBST(MANUAL_NSS_LIBS)
1225 dnl **************************************************
1226 dnl Check if we should build the weather calendar plugin
1227 dnl **************************************************
1228 AC_MSG_CHECKING(if we should build the weather calendar plugin)
1229 AC_ARG_WITH([weather],
1230 [AS_HELP_STRING([--with-weather], [Build the weather calendar setup plugin (default=yes)])],
1231 [use_gweather=$withval],
1233 AC_MSG_RESULT($use_gweather)
1235 if test $use_gweather = yes; then
1236 PKG_CHECK_MODULES([LIBGWEATHER],
1237 [gweather >= gweather_minimum_version],
1238 [CALENDAR_WEATHER="calendar-weather"],
1239 [AC_MSG_ERROR([The weather calendar setup plugin requires GWeather >= gweather_minimum_version. Alternatively, you may specify --without-weather as a configure option to avoid building the plugin.])])
1244 dnl **************************************************
1245 dnl Exchange support.
1246 dnl **************************************************
1247 AC_ARG_ENABLE([exchange],
1248 AC_HELP_STRING([--enable-exchange],
1249 [Build Exchange plugins]),
1250 [enable_exchange=$enableval],[enable_exchange=yes])
1251 if test "x$enable_exchange" = "xyes"; then
1253 EXCHANGE_PLUGIN="exchange-operations"
1257 AM_CONDITIONAL(ENABLE_EXCHANGE, [test x$enable_exchange = xyes])
1259 dnl ******************
1260 dnl CDE dtappintegrate
1261 dnl ******************
1263 AC_ARG_WITH([cde-path],
1264 AC_HELP_STRING([--with-cde-path=PATH],
1265 [Location of CDE installation]),
1266 [with_cde_path=$withval],[with_cde_path=/usr/dt])
1268 AC_MSG_CHECKING(for dtappintegrate)
1269 if test -x "$with_cde_path/bin/dtappintegrate" ; then
1270 DTAPPINTEGRATE="$with_cde_path/bin/dtappintegrate"
1274 AC_MSG_RESULT([$DTAPPINTEGRATE])
1276 AC_SUBST(DTAPPINTEGRATE)
1277 AM_CONDITIONAL(HAVE_DTAPPINTEGRATE, [test x$DTAPPINTEGRATE != xno])
1279 dnl *****************
1280 dnl killall or pkill?
1281 dnl *****************
1285 KILL_PROCESS_CMD="/usr/bin/pkill -x"
1288 AC_PATH_PROGS(KILL_PROCESS_CMD, killall pkill)
1291 if test -z "$KILL_PROCESS_CMD"; then
1292 AC_MSG_WARN([Could not find a command to kill a process by name])
1294 AC_DEFINE_UNQUOTED([KILL_PROCESS_CMD], "$KILL_PROCESS_CMD",
1295 [Command to kill processes by name])
1298 dnl ******************************
1300 dnl ******************************
1302 dnl only continue detecting OpenSSL if we haven't already found all of the
1303 dnl Mozilla libnss includes/libraries and if user actually wants ssl support
1304 dnl if test "$msg_ssl" = "no" -a "x${enable_openssl}" != "xno"; then
1305 dnl AC_ARG_WITH(openssl-includes, [ --with-openssl-includes=PREFIX Location of OpenSSL includes.],
1306 dnl with_openssl_includes="$withval", with_openssl_includes="/usr/include")
1307 dnl have_openssl_includes="no"
1308 dnl if test "x${with_openssl_includes}" != "xno"; then
1309 dnl CPPFLAGS_save="$CPPFLAGS"
1311 dnl AC_MSG_CHECKING(for OpenSSL includes)
1312 dnl AC_MSG_RESULT("")
1314 dnl CPPFLAGS="$CPPFLAGS -I$with_openssl_includes"
1315 dnl AC_CHECK_HEADERS(openssl/ssl.h openssl/x509.h, [ openssl_includes="yes" ])
1316 dnl CPPFLAGS="$CPPFLAGS_save"
1318 dnl if test "x{$openssl_includes}" != "xno" -a "x{$openssl_includes}" != "x"; then
1319 dnl have_openssl_includes="yes"
1320 dnl OPENSSL_CFLAGS="-I$with_openssl_includes"
1322 dnl OPENSSL_CFLAGS=""
1325 dnl AC_MSG_CHECKING(for OpenSSL includes)
1326 dnl AC_MSG_RESULT(no)
1329 dnl AC_ARG_WITH(openssl-libs, [ --with-openssl-libs=PREFIX Location of OpenSSL libs.],
1330 dnl with_openssl_libs="$withval")
1331 dnl if test "x${with_openssl_libs}" != "xno" -a "x${have_openssl_includes}" != "xno"; then
1332 dnl LDFLAGS_save="$LDFLAGS"
1334 dnl case $with_openssl_libs in
1336 dnl *) with_openssl_libs="-L$with_openssl_libs" ;;
1339 dnl AC_CHECK_LIB(dl, dlopen, DL_LDFLAGS="-ldl", DL_LDFLAGS="")
1340 dnl AC_CACHE_CHECK([for OpenSSL libraries], openssl_libs,
1342 dnl LDFLAGS="$LDFLAGS $with_openssl_libs -lssl -lcrypto $DL_LDFLAGS"
1343 dnl AC_TRY_LINK_FUNC(SSL_read, openssl_libs="yes", openssl_libs="no")
1344 dnl LDFLAGS="$LDFLAGS_save"
1346 dnl if test "x${openssl_libs}" != "xno"; then
1347 dnl AC_DEFINE(HAVE_OPENSSL,1,[Define if you have OpenSSL])
1348 dnl AC_DEFINE(HAVE_SSL)
1349 dnl msg_ssl="yes (OpenSSL)"
1350 dnl OPENSSL_LDFLAGS="$with_openssl_libs -lssl -lcrypto $DL_LDFLAGS"
1352 dnl OPENSSL_CFLAGS=""
1353 dnl OPENSSL_LDFLAGS=""
1356 dnl AC_MSG_CHECKING(for OpenSSL libraries)
1357 dnl AC_MSG_RESULT(no)
1360 dnl OPENSSL_CFLAGS=""
1361 dnl OPENSSL_LDFLAGS=""
1364 dnl AC_SUBST(OPENSSL_CFLAGS)
1365 dnl AC_SUBST(OPENSSL_LDFLAGS)
1367 dnl *******************
1368 dnl GObject marshalling
1369 dnl *******************
1372 dnl We use AC_SUBST_FILE because AC_SUBST won't deal with newlines
1373 EVO_MARSHAL_RULE=$srcdir/marshal.mk
1374 AC_SUBST_FILE(EVO_MARSHAL_RULE)
1376 dnl *************************
1377 dnl CFLAGS and LIBS and stuff
1378 dnl *************************
1380 GNOME_COMPILE_WARNINGS(yes)
1381 CFLAGS="$CFLAGS $WARN_CFLAGS"
1384 # Turn off the annoying "comparison between signed and unsigned"
1385 # warning in gcc 3.3
1386 CFLAGS="$CFLAGS -Wno-sign-compare"
1391 dnl **************************
1392 dnl Check for X libs and -lX11
1393 dnl **************************
1395 PKG_CHECK_MODULES(X, x11, :, [
1396 # pkg-config modules not found (only present since X11R7 aka Xorg); use
1397 # old-style detection
1400 if test x$no_x != xyes ; then
1401 evolution_save_cflags="$CFLAGS"
1402 evolution_save_libs="$LIBS"
1404 LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
1405 AC_CHECK_LIB(X11, XFree, :, AC_MSG_ERROR([libX11 not found]))
1406 CFLAGS="$evolution_save_cflags"
1407 LIBS="$evolution_save_libs"
1408 X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
1412 dnl *************************
1413 dnl Check for the Gtk backend
1414 dnl if it's X11, we -lX11
1415 dnl *************************
1417 evolution_save_cflags="$CFLAGS"
1418 # pull in the CFLAGS to locate gdkconfig.h
1419 CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
1421 #include <gdkconfig.h>
1424 #ifndef GDK_WINDOWING_X11
1425 #error GDK_WINDOWING_X11 not defined
1430 GDK_BACKEND_X11=yes,
1433 CFLAGS="$evolution_save_cflags"
1436 AM_PATH_ORBIT2(2.9.8)
1438 AC_MSG_CHECKING(for CORBA include paths)
1439 IDL_INCLUDES="-I "`pkg-config --variable=idldir libbonobo-2.0`" -I "`pkg-config --variable=idldir bonobo-activation-2.0`" -I "`pkg-config --variable=idldir evolution-data-server-1.2`
1440 AC_MSG_RESULT($IDL_INCLUDES)
1441 AC_SUBST(IDL_INCLUDES)
1443 dnl Utility macro to set compiler flags for a specific lib.
1444 dnl EVO_SET_COMPILE_FLAGS(VAR-PREFIX, DEPS, EXTRA-CFLAGS, EXTRA-LIBS)
1445 AC_DEFUN([EVO_SET_COMPILE_FLAGS], [
1446 PKG_CHECK_MODULES([$1], [$2])
1447 $1_CFLAGS="[$]$1_CFLAGS \$(WERROR) $3"
1448 $1_LIBS="[$]$1_LIBS $4"
1451 dnl --- Required version numbers
1453 BONOBOUI_REQUIRED=libbonoboui_minimum_version
1454 AC_SUBST(BONOBOUI_REQUIRED)
1456 dnl --- Flags to get all the GNOME stuff
1458 FULL_GNOME_DEPS="libbonoboui-2.0 gconf-2.0 gthread-2.0 gobject-2.0 libgnomeui-2.0 libglade-2.0"
1460 CPPFLAGS_save="$CPPFLAGS"
1461 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags-only-I libgnomeui-2.0`"
1462 AC_CHECK_HEADERS(libgnomeui/gnome-icon-lookup.h)
1463 AC_CHECK_HEADERS(libgnomeui/gnome-thumbnail.h)
1464 CPPFLAGS="$CPPFLAGS_save"
1466 PKG_CHECK_MODULES(HAL, hal >= hal_minimum_version, HAVE_HAL="yes", HAVE_HAL="no")
1467 if test "x$HAVE_HAL" = "xyes"; then
1468 AC_DEFINE(HAVE_HAL, 1, [hal available])
1469 HAL_REQUIREMENT="hal"
1470 IPOD_SYNC="ipod-sync"
1476 AC_MSG_CHECKING([for yTNEF])
1477 AC_TRY_COMPILE([#include <stdio.h>
1478 #include <ytnef.h>],
1479 [TNEFStruct *tnef;], tnef_ok=yes, tnef_ok=no)
1480 if test "$tnef_ok" = "yes"; then
1481 AC_MSG_RESULT([yes])
1482 TNEF_ATTACHMENTS="tnef-attachments"
1483 TNEF_CFLAGS="-DHAVE_YTNEF_H"
1485 AC_TRY_COMPILE([#include <stdio.h>
1486 #include <libytnef/ytnef.h>],
1487 [TNEFStruct *tnef;], tnef_ok=yes, tnef_ok=no)
1488 if test "$tnef_ok" = "yes"; then
1489 AC_MSG_RESULT([yes])
1490 TNEF_ATTACHMENTS="tnef-attachments"
1491 TNEF_CFLAGS="-DHAVE_LIBYTNEF_YTNEF_H"
1498 AC_SUBST(TNEF_CFLAGS)
1500 echo "TNEF is "$TNEF_ATTACHMENTS
1502 dnl --- Flags for the various libraries we build
1504 EVO_SET_COMPILE_FLAGS(CAMEL, camel-provider-$EDS_PACKAGE)
1505 AC_SUBST(CAMEL_CFLAGS)
1506 AC_SUBST(CAMEL_LIBS)
1508 EVO_SET_COMPILE_FLAGS(CAMEL_GROUPWISE, camel-provider-$EDS_PACKAGE libedataserver-$EDS_PACKAGE libegroupwise-$EDS_PACKAGE)
1509 AC_SUBST(CAMEL_GROUPWISE_CFLAGS)
1510 AC_SUBST(CAMEL_GROUPWISE_LIBS)
1512 if test "x$mozilla_nss" != "x"; then
1513 EVO_SET_COMPILE_FLAGS(MOZILLA_NSS, $mozilla_nss)
1514 MOZILLA_L_DIR=`pkg-config --libs-only-L $mozilla_nss`
1516 if test "x$MOZILLA_MANUAL_LIBS" != "x"; then
1517 MOZILLA_L_DIR="-L$with_nss_lib"
1521 EVO_SET_COMPILE_FLAGS(CERT_UI, libedataserverui-$EDS_PACKAGE libglade-2.0 gthread-2.0,
1522 $MANUAL_NSS_CFLAGS $MOZILLA_NSS_CFLAGS,
1523 $MOZILLA_L_DIR $MANUAL_NSS_LIBS $MOZILLA_NSS_LIBS)
1524 AC_SUBST(CERT_UI_CFLAGS)
1525 AC_SUBST(CERT_UI_LIBS)
1527 EVO_SET_COMPILE_FLAGS(E_NAME, libgnomeui-2.0 libbonoboui-2.0)
1528 AC_SUBST(E_NAME_CFLAGS)
1529 AC_SUBST(E_NAME_LIBS)
1531 # If Gtk/Gdk is built against X11, e-util uses some
1532 # X11-specific code so link with X11.
1533 if test "x$GDK_BACKEND_X11" = "xyes"; then
1534 E_UTIL_X11_CFLAGS="$X_CFLAGS"
1535 E_UTIL_X11_LIBS="$X_LIBS"
1537 E_UTIL_X11_CFLAGS=""
1540 EVO_SET_COMPILE_FLAGS(E_UTIL, libbonoboui-2.0 libglade-2.0 libgnomeui-2.0 libedataserver-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE camel-$EDS_PACKAGE $mozilla_nspr, $THREADS_CFLAGS $MANUAL_NSPR_CFLAGS $E_UTIL_X11_CFLAGS, $THREADS_LIBS $MANUAL_NSPR_LIBS $E_UTIL_X11_LIBS)
1541 AC_SUBST(E_UTIL_CFLAGS)
1542 AC_SUBST(E_UTIL_LIBS)
1544 EVO_SET_COMPILE_FLAGS(TZDIALOG, libecal-$EDS_PACKAGE, $GNOME_PLATFORM_CFLAGS, $GNOME_PLATFORM_LIBS)
1545 AC_SUBST(TZDIALOG_CFLAGS)
1546 AC_SUBST(TZDIALOG_LIBS)
1548 EVO_SET_COMPILE_FLAGS(E_WIDGETS, libbonoboui-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgnomeui-2.0 libglade-2.0 libedataserverui-$EDS_PACKAGE libedataserver-$EDS_PACKAGE)
1549 AC_SUBST(E_WIDGETS_CFLAGS)
1550 AC_SUBST(E_WIDGETS_LIBS)
1552 EVO_SET_COMPILE_FLAGS(IMPORTERS, libedataserverui-$EDS_PACKAGE camel-provider-$EDS_PACKAGE camel-$EDS_PACKAGE libglade-2.0 libbonoboui-2.0 libgnomeui-2.0 libebook-$EDS_PACKAGE)
1553 AC_SUBST(IMPORTERS_CFLAGS)
1554 AC_SUBST(IMPORTERS_LIBS)
1556 EVO_SET_COMPILE_FLAGS(LIBFILTER, libgnomeui-2.0 libglade-2.0 libedataserver-$EDS_PACKAGE)
1557 AC_SUBST(LIBFILTER_CFLAGS)
1558 AC_SUBST(LIBFILTER_LIBS)
1560 dnl --- evolution (shell) flags
1562 NM_SUPPORT_PACKAGES=""
1564 PKG_CHECK_MODULES(NM, dbus-glib-1, NM_SUPPORT="yes", NM_SUPPORT="no")
1565 AC_CHECK_HEADER(NetworkManager/NetworkManager.h, [ nm_header="yes" ] )
1566 if test "x$NM_SUPPORT" = "xyes" -a "x$nm_header" = "xyes"; then
1567 AC_DEFINE(NM_SUPPORT, 1, [network manager available])
1568 NM_SUPPORT_PACKAGES="dbus-1 dbus-glib-1"
1573 AM_CONDITIONAL(NM_SUPPORT, test x$NM_SUPPORT = xyes)
1576 EVO_SET_COMPILE_FLAGS(SHELL, libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE $NM_SUPPORT_PACKAGES)
1578 AC_SUBST(SHELL_CFLAGS)
1579 AC_SUBST(SHELL_LIBS)
1581 dnl --- evolution-addressbook flags
1583 EVOLUTION_ADDRESSBOOK_DEPS="libbonoboui-2.0 libglade-2.0 libgnomeui-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE libebook-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE camel-$EDS_PACKAGE gtkhtml-editor"
1585 EVO_SET_COMPILE_FLAGS(EVOLUTION_ADDRESSBOOK, $EVOLUTION_ADDRESSBOOK_DEPS)
1586 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
1587 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
1589 if test x$enable_pilot_conduits = xyes; then
1590 EVO_SET_COMPILE_FLAGS(EVOLUTION_ADDRESSBOOK_CONDUIT, gnome-pilot-2.0 $EVOLUTION_ADDRESSBOOK_DEPS)
1591 AC_SUBST(EVOLUTION_ADDRESSBOOK_CONDUIT_CFLAGS)
1592 AC_SUBST(EVOLUTION_ADDRESSBOOK_CONDUIT_LIBS)
1597 PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= libnotify_minimum_version, HAVE_LIBNOTIFY="yes", HAVE_LIBNOTIFY="no")
1598 if test "x$HAVE_LIBNOTIFY" = "xyes"; then
1599 AC_DEFINE(HAVE_LIBNOTIFY, 1, [libnotify available])
1600 libnotify="libnotify"
1604 AC_SUBST(LIBNOTIFY_CFLAGS)
1605 AC_SUBST(LIBNOTIFY_LIBS)
1607 dnl --- evolution-calendar flags
1608 EVO_SET_COMPILE_FLAGS(LIBSOUP, libsoup-2.4 >= 2.3.0)
1609 AC_SUBST(LIBSOUP_CFLAGS)
1610 AC_SUBST(LIBSOUP_LIBS)
1612 EVO_SET_COMPILE_FLAGS(EVOLUTION_CALENDAR, libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE libebook-$EDS_PACKAGE libecal-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE libebackend-$EDS_PACKAGE $HAL_REQUIREMENT $libnotify gtkhtml-editor libgdata-$EDS_PACKAGE libgdata-google-$EDS_PACKAGE)
1613 AC_SUBST(EVOLUTION_CALENDAR_CFLAGS)
1614 AC_SUBST(EVOLUTION_CALENDAR_LIBS)
1616 if test x$enable_pilot_conduits = xyes; then
1617 EVO_SET_COMPILE_FLAGS(EVOLUTION_CALENDAR_CONDUIT, gnome-pilot-2.0, $EVOLUTION_CALENDAR_CFLAGS, $EVOLUTION_CALENDAR_LIBS)
1618 AC_SUBST(EVOLUTION_CALENDAR_CONDUIT_CFLAGS)
1619 AC_SUBST(EVOLUTION_CALENDAR_CONDUIT_LIBS)
1622 dnl --- evolution-mail flags
1624 EVO_SET_COMPILE_FLAGS(EVOLUTION_MAIL, camel-provider-$EDS_PACKAGE libgnomeui-2.0 libbonoboui-2.0 libglade-2.0 gio-2.0 gconf-2.0 gobject-2.0 libgtkhtml-$GTKHTML_PACKAGE gtkhtml-editor bonobo-activation-2.0 $mozilla_nss libebook-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE)
1625 AC_SUBST(EVOLUTION_MAIL_CFLAGS)
1626 AC_SUBST(EVOLUTION_MAIL_LIBS)
1628 dnl -- evolution-data-server IDL and version
1630 AC_DEFINE(DATASERVER_API_VERSION, "1.2", evolution-data-server API version)
1631 AC_DEFINE_UNQUOTED(DATASERVER_VERSION, "`pkg-config --modversion evolution-data-server-1.2`", evolution-data-server version)
1633 DATASERVER_EXEC_VERSION=`pkg-config --variable=execversion evolution-data-server-1.2`
1634 AC_SUBST(DATASERVER_EXEC_VERSION)
1636 AC_MSG_CHECKING(for evolution-data-server IDL)
1637 DATASERVER_IDL=`pkg-config --variable=idldir evolution-data-server-1.2`/Evolution-DataServer.idl
1638 if test -f "$DATASERVER_IDL"; then
1639 AC_MSG_RESULT($DATASERVER_IDL)
1640 AC_SUBST(DATASERVER_IDL)
1645 dnl --- evolution-test flags
1647 EVO_SET_COMPILE_FLAGS(EVOLUTION_TEST, libgnomeui-2.0 libbonoboui-2.0)
1648 AC_SUBST(EVOLUTION_TEST_CFLAGS)
1649 AC_SUBST(EVOLUTION_TEST_LIBS)
1651 dnl *******************
1652 dnl Special directories
1653 dnl *******************
1655 dnl --- If you add something here, consider whether or not you also
1656 dnl --- need to add it to one or more .pc.in files (for Connector,
1659 privlibdir='${libdir}'/evolution/$BASE_VERSION
1660 AC_SUBST(privlibdir)
1662 privlibexecdir='${libexecdir}'/evolution/$BASE_VERSION
1663 AC_SUBST(privlibexecdir)
1665 privdatadir='${datadir}'/evolution/$BASE_VERSION
1666 AC_SUBST(privdatadir)
1668 privincludedir='${includedir}'/evolution-$BASE_VERSION
1669 AC_SUBST(privincludedir)
1671 componentdir="$privlibdir/components"
1672 AC_SUBST(componentdir)
1674 idldir='${datadir}'/idl/evolution-$BASE_VERSION
1677 serverdir="$libdir/bonobo/servers"
1680 evolutionuidir="$privdatadir/ui"
1681 AC_SUBST(evolutionuidir)
1683 evolutionhelpdir="$privdatadir/help"
1684 AC_SUBST(evolutionhelpdir)
1686 imagesdir="$privdatadir/images"
1689 images16dir="$privdatadir/images/16x16"
1690 AC_SUBST(images16dir)
1692 if test "$os_win32" = yes; then
1693 # On Win32 there is no "rpath" mechanism. We install the private
1694 # shared libraries in $libdir, meaning the DLLs will actually be in
1695 # $bindir. This means just having $bindir in PATH will be enough. This
1696 # also means gnome_win32_get_prefixes() will be able to deduce the
1697 # installation folder correctly.
1698 privsolibdir=$libdir
1699 # On Win32, use a relative path to the executables in .server
1700 # files. The path is relative to the folder where the .server file
1701 # is, i.e. $prefix/lib/bonobo/servers.
1702 bindir_in_server_file=../../../bin
1703 privlibexecdir_in_server_file=../../../libexec/evolution/$BASE_VERSION
1704 componentdir_in_server_file=../../../lib/evolution/$BASE_VERSION/components
1706 privsolibdir=$privlibdir
1707 bindir_in_server_file="$bindir"
1708 privlibexecdir_in_server_file='${libexecdir}'/evolution/$BASE_VERSION
1709 componentdir_in_server_file="$componentdir"
1711 AC_SUBST(privsolibdir)
1712 AC_SUBST(bindir_in_server_file)
1713 AC_SUBST(privlibexecdir_in_server_file)
1714 AC_SUBST(componentdir_in_server_file)
1716 dnl images18dir="$privdatadir/images/18x18"
1717 dnl AC_SUBST(images18dir)
1719 dnl images20dir="$privdatadir/images/20x20"
1720 dnl AC_SUBST(images20dir)
1722 dnl images24dir="$privdatadir/images/24x24"
1723 dnl AC_SUBST(images24dir)
1725 dnl images32dir="$privdatadir/images/32x32"
1726 dnl AC_SUBST(images32dir)
1728 images48dir="$privdatadir/images/48x48"
1729 AC_SUBST(images48dir)
1731 soundsdir="$privdatadir/sounds"
1734 gladedir="$privdatadir/glade"
1737 etspecdir="$privdatadir/etspec"
1740 viewsdir="$privdatadir/views"
1743 privconduitdir='${libdir}'/evolution/$BASE_VERSION/conduits
1744 AC_SUBST(privconduitdir)
1746 dnl ************************
1747 dnl IDL/Component Versioning
1748 dnl ************************
1750 INTERFACE_VERSION="$BASE_VERSION"
1751 AC_SUBST(INTERFACE_VERSION)
1752 AC_DEFINE_UNQUOTED(INTERFACE_VERSION, "$INTERFACE_VERSION", [IDL interface version (Major.Minor)])
1754 EVO_SERVER_RULE=$srcdir/server.mk
1755 AC_SUBST_FILE(EVO_SERVER_RULE)
1757 dnl ************************
1759 dnl ************************
1761 plugindir="$privlibdir/plugins"
1764 EVO_PLUGIN_RULE=$srcdir/plugin.mk
1765 AC_SUBST_FILE(EVO_PLUGIN_RULE)
1767 AC_ARG_ENABLE([plugins],
1768 AC_HELP_STRING([--enable-plugins=[no/base/all/experimental/list]],
1770 [enable_plugins="$enableval"],[enable_plugins=all])
1772 dnl Add any new plugins here
1773 plugins_base_always="calendar-file calendar-http $CALENDAR_WEATHER itip-formatter plugin-manager default-source addressbook-file startup-wizard mark-all-read groupwise-features groupwise-account-setup mail-account-disable publish-calendar caldav imap-features google-account-setup webdav-account-setup"
1775 plugins_base="$plugins_base_always $SA_JUNK_PLUGIN $BF_JUNK_PLUGIN $EXCHANGE_PLUGIN $MONO_PLUGIN "
1776 all_plugins_base="$plugins_base_always sa-junk-plugin bogo-junk-plugin exchange-operations mono"
1778 plugins_standard_always="bbdb subject-thread save-calendar select-one-source copy-tool mail-to-task audio-inline mailing-list-actions default-mailer import-ics-attachments prefer-plain mail-notification attachment-reminder face backup-restore email-custom-header templates pst-import"
1780 plugins_standard="$plugins_standard_always"
1781 all_plugins_standard="$plugins_standard"
1783 plugins_experimental_always="folder-unsubscribe mail-to-meeting save-attachments external-editor hula-account-setup"
1784 plugins_experimental="$plugins_experimental_always $IPOD_SYNC $TNEF_ATTACHMENTS $PYTHON_PLUGIN"
1785 all_plugins_experimental="$plugins_experimental_always ipod-sync tnef-attachments"
1787 case x"$enable_plugins" in
1790 msg_plugins="no (some core functionality will not be available)"
1793 plugins_enabled="$plugins_base $plugins_standard"
1794 msg_plugins="yes (all)"
1797 plugins_enabled="$plugins_base"
1798 msg_plugins="yes ($plugins_base)"
1801 plugins_enabled="$plugins_base $plugins_standard $plugins_experimental"
1802 msg_plugins="yes ($plugins_base $plugins_standard $plugins_experimental)"
1805 plugins_enabled="$enable_plugins"
1806 msg_plugins="yes ($enable_plugins)"
1810 AC_ARG_ENABLE([profiling],
1811 AC_HELP_STRING([--enable-profiling],
1812 [Enable profiling plugin.]),
1813 [enable_profiling=$enableval],[enable_profiling=no])
1814 case x"$enable_profiling" in
1816 plugins_enabled="$plugins_enabled profiler"
1817 msg_plugins="$msg_plugins (and profiling)"
1818 AC_DEFINE(ENABLE_PROFILING,1,[Profiling Hooks Enabled])
1822 if test "x${enable_mono}" = "xyes"; then
1823 plugins_enabled="$plugins_enabled mono"
1824 msg_plugins="$msg_plugins (and mono)"
1828 if test "x${enable_python}" = "xyes"; then
1829 plugins_enabled="$plugins_enabled python"
1830 msg_plugins="$msg_plugins (and python)"
1833 AC_SUBST(plugins_enabled)
1834 AC_SUBST(all_plugins_base)
1835 AC_SUBST(all_plugins_standard)
1836 AC_SUBST(all_plugins_experimental)
1838 if echo ${plugins_enabled} | grep "audio-inline" > /dev/null
1840 if ${PKG_CONFIG} --exists gstreamer-0.10
1842 dnl *********************
1844 dnl *********************
1845 PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10)
1846 AC_SUBST(GSTREAMER_CFLAGS)
1847 AC_SUBST(GSTREAMER_LIBS)
1849 plugins_enabled=`echo $plugins_enabled | sed -e "s/audio-inline//g"`
1850 echo "warning: gstreamer was not found, audio-inline plugin will not be built."
1851 echo "you are probably missing gstreamer-devel package."
1855 if ${PKG_CONFIG} --exists dbus-glib-1 ; then
1856 dnl **************************************************
1857 dnl * Mail Notification plugin's DBus messages
1858 dnl **************************************************
1859 PKG_CHECK_MODULES(NMN, dbus-glib-1)
1860 AC_SUBST(NMN_CFLAGS)
1863 # Get the version of the DBus API, so we can hack around API changes until the API stabilises:
1864 # multiply by 1000 to convert decimal to integer; so e.g. 0.31 become 310
1865 # since preprocessor values must be integral
1866 FOUND_DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1 | $AWK '{print 1000 * $1}'`"
1867 AC_SUBST(FOUND_DBUS_VERSION)
1868 AC_DEFINE(HAVE_DBUS,1,[Define if you have DBUS support])
1870 AM_CONDITIONAL(ENABLE_DBUS, true)
1873 echo "warning: dbus-glib-1 was not found, Mail notification plugins's dbus message support not built"
1874 AM_CONDITIONAL(ENABLE_DBUS, false)
1878 if echo ${plugins_enabled} | grep "exchange-operations" > /dev/null ; then
1879 PKG_CHECK_MODULES(LIBEXCHANGESTORAGE, libexchange-storage-$EDS_PACKAGE >= eds_minimum_version, have_libexchange="yes", have_libexchange="no")
1880 if test "x$have_libexchange" = "xyes"; then
1881 dnl **************************************************
1882 dnl * Exchange Operations plugin
1883 dnl **************************************************
1884 EVO_SET_COMPILE_FLAGS(CAMEL_EXCHANGE, libbonoboui-2.0 libglade-2.0 gconf-2.0 camel-provider-$EDS_PACKAGE libebook-$EDS_PACKAGE libedataserverui-$EDS_PACKAGE libexchange-storage-$EDS_PACKAGE libecal-$EDS_PACKAGE)
1885 AC_SUBST(CAMEL_EXCHANGE_CFLAGS)
1886 AC_SUBST(CAMEL_EXCHANGE_LIBS)
1888 plugins_enabled=`echo $plugins_enabled | sed -e "s/exchange-operations//g"`
1889 echo "warning: libevolution-exchange-$EDS_PACKAGE was not found, Exchange Operations plugin will not be built."
1893 if echo ${plugins_enabled} | grep "pst-import" > /dev/null
1895 if ${PKG_CONFIG} --exists libpst
1897 dnl *********************
1899 dnl *********************
1900 PKG_CHECK_MODULES(LIBPST, libpst)
1901 AC_SUBST(LIBPST_CFLAGS)
1902 AC_SUBST(LIBPST_LIBS)
1904 plugins_enabled=`echo $plugins_enabled | sed -e "s/pst-import//g"`
1905 echo "warning: libpst was not found, pst-import plugin will not be built."
1906 echo "you are probably missing libpst-devel package."
1913 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
1916 dnl ******************
1917 dnl Sub-version number
1918 dnl ******************
1919 AC_ARG_WITH([sub-version],
1920 AC_HELP_STRING([--with-sub-version=VERSION],
1921 [Specify a sub-version string]))
1923 AC_DEFINE_UNQUOTED(SUB_VERSION, "$with_sub_version", [Version substring, for packagers])
1925 AC_ARG_ENABLE([default-binary],
1926 AC_HELP_STRING([--disable-default-binary],
1927 [Do not install as the default "evolution" binary]),,
1928 [enable_default_binary=no])
1930 AM_CONDITIONAL(DEFAULT_BINARY, test x$enable_default_binary = xyes)
1932 dnl ********************
1933 dnl KDE applnk directory
1934 dnl ********************
1935 AC_ARG_WITH([kde-applnk-path],
1936 AC_HELP_STRING([--with-kde-applnk-path=PATH],
1937 [Location of KDE applnk files]),
1938 [with_kde_applnk_path=$withval], [with_kde_applnk_path="no"])
1940 if test x"$with_kde_applnk_path" != x"no"; then
1941 if test -z "$with_kde_applnk_path"; then
1942 with_kde_applnk_path="$datadir/applnk"
1944 KDE_APPLNK_DIR="$with_kde_applnk_path"
1948 AM_CONDITIONAL(HAVE_KDE_APPLNK, test x"$KDE_APPLNK_DIR" != x)
1949 AC_SUBST(KDE_APPLNK_DIR)
1951 dnl ******************************
1953 dnl ******************************
1956 export privincludedir
1960 EVOLUTION_DIR=`(cd $srcdir; pwd)`
1961 AC_SUBST(EVOLUTION_DIR)
1963 AC_OUTPUT([ po/Makefile.in
1967 a11y/addressbook/Makefile
1968 a11y/calendar/Makefile
1969 a11y/widgets/Makefile
1970 a11y/e-table/Makefile
1971 a11y/e-text/Makefile
1972 addressbook/Makefile
1973 addressbook/conduit/Makefile
1974 addressbook/gui/Makefile
1975 addressbook/gui/component/Makefile
1976 addressbook/gui/contact-editor/Makefile
1977 addressbook/gui/contact-list-editor/Makefile
1978 addressbook/gui/merging/Makefile
1979 addressbook/gui/widgets/Makefile
1980 addressbook/importers/Makefile
1981 addressbook/printing/Makefile
1982 addressbook/tools/Makefile
1983 addressbook/tools/csv2vcard
1984 addressbook/util/Makefile
1987 data/cde_app_root/Makefile
1988 data/cde_app_root/dt/Makefile
1989 data/cde_app_root/dt/appconfig/Makefile
1990 data/cde_app_root/dt/appconfig/appmanager/Makefile
1991 data/cde_app_root/dt/appconfig/appmanager/C/Makefile
1992 data/cde_app_root/dt/appconfig/appmanager/C/Ximian/Makefile
1993 data/cde_app_root/dt/appconfig/icons/Makefile
1994 data/cde_app_root/dt/appconfig/icons/C/Makefile
1995 data/cde_app_root/dt/appconfig/types/Makefile
1996 data/cde_app_root/dt/appconfig/types/C/Makefile
1997 data/cde_app_root/dt/appconfig/types/C/Ximian.dt
2002 help/quickref/Makefile
2003 help/quickref/C/Makefile
2004 help/quickref/cs/Makefile
2005 help/quickref/de/Makefile
2006 help/quickref/es/Makefile
2007 help/quickref/hu/Makefile
2008 help/quickref/it/Makefile
2009 help/quickref/fr/Makefile
2010 help/quickref/oc/Makefile
2011 help/quickref/pl/Makefile
2012 help/quickref/pt/Makefile
2013 help/quickref/sv/Makefile
2014 help/quickref/sq/Makefile
2016 shell/evolution-nognome
2020 views/addressbook/Makefile
2021 views/calendar/Makefile
2023 views/tasks/Makefile
2024 views/memos/Makefile
2026 widgets/e-timezone-dialog/Makefile
2027 widgets/menus/Makefile
2028 widgets/misc/Makefile
2029 widgets/text/Makefile
2030 widgets/table/Makefile
2032 calendar/importers/Makefile
2033 calendar/common/Makefile
2034 calendar/idl/Makefile
2035 calendar/conduits/Makefile
2036 calendar/conduits/common/Makefile
2037 calendar/conduits/todo/Makefile
2038 calendar/conduits/calendar/Makefile
2039 calendar/conduits/memo/Makefile
2040 calendar/gui/Makefile
2041 calendar/gui/alarm-notify/Makefile
2042 calendar/gui/dialogs/Makefile
2045 mail/default/Makefile
2046 mail/default/C/Makefile
2047 mail/default/cs/Makefile
2048 mail/default/de/Makefile
2049 mail/default/es/Makefile
2050 mail/default/fi/Makefile
2051 mail/default/fr/Makefile
2052 mail/default/it/Makefile
2053 mail/default/lt/Makefile
2054 mail/default/mk/Makefile
2055 mail/default/zh_CN/Makefile
2056 mail/default/ja/Makefile
2057 mail/default/ko/Makefile
2058 mail/default/nl/Makefile
2059 mail/default/pl/Makefile
2060 mail/default/pt/Makefile
2061 mail/default/sr/Makefile
2062 mail/default/sr@latin/Makefile
2063 mail/default/sv/Makefile
2064 mail/default/hu/Makefile
2065 mail/importers/Makefile
2067 plugins/mark-all-read/Makefile
2068 plugins/caldav/Makefile
2069 plugins/google-account-setup/Makefile
2070 plugins/calendar-file/Makefile
2071 plugins/calendar-http/Makefile
2072 plugins/calendar-weather/Makefile
2073 plugins/plugin-manager/Makefile
2074 plugins/bbdb/Makefile
2075 plugins/audio-inline/Makefile
2076 plugins/attachment-reminder/Makefile
2077 plugins/mail-notification/Makefile
2078 plugins/mail-to-meeting/Makefile
2079 plugins/mail-to-task/Makefile
2080 plugins/mono/Makefile
2081 plugins/subject-thread/Makefile
2082 plugins/save-attachments/Makefile
2083 plugins/save-calendar/Makefile
2084 plugins/select-one-source/Makefile
2085 plugins/prefer-plain/Makefile
2086 plugins/profiler/Makefile
2087 plugins/python/Makefile
2088 plugins/copy-tool/Makefile
2089 plugins/folder-unsubscribe/Makefile
2090 plugins/mailing-list-actions/Makefile
2091 plugins/itip-formatter/Makefile
2092 plugins/backup-restore/Makefile
2093 plugins/email-custom-header/Makefile
2094 plugins/exchange-operations/Makefile
2095 plugins/default-source/Makefile
2096 plugins/default-mailer/Makefile
2097 plugins/addressbook-file/Makefile
2098 plugins/startup-wizard/Makefile
2099 plugins/groupwise-account-setup/Makefile
2100 plugins/hula-account-setup/Makefile
2101 plugins/groupwise-features/Makefile
2102 plugins/mail-account-disable/Makefile
2103 plugins/sa-junk-plugin/Makefile
2104 plugins/bogo-junk-plugin/Makefile
2105 plugins/ipod-sync/Makefile
2106 plugins/publish-calendar/Makefile
2107 plugins/import-ics-attachments/Makefile
2108 plugins/imap-features/Makefile
2109 plugins/tnef-attachments/Makefile
2110 plugins/templates/Makefile
2111 plugins/pst-import/Makefile
2112 plugins/face/Makefile
2113 plugins/external-editor/Makefile
2114 plugins/webdav-account-setup/Makefile
2125 if test "x$with_sub_version" != "x"; then
2127 Evolution ($with_sub_version) has been configured as follows: "
2130 Evolution has been configured as follows: "
2134 LDAP support: $msg_ldap
2136 if test "$msg_nntp" = "yes"; then
2138 NNTP support: $msg_nntp"
2141 Pilot conduits: $msg_pilot
2142 Libnotify: $HAVE_LIBNOTIFY
2143 Kerberos 4/5: $msg_krb4/$msg_krb5
2144 SSL support: $msg_ssl
2145 SMIME support: $msg_smime
2146 Plugins: $msg_plugins
2147 DBus API version: $FOUND_DBUS_VERSION
2148 User documentation: $with_help
2149 Mono bindings: $enable_mono
2150 Python bindings: $enable_python