2000-09-18 Christopher James Lahey <clahey@helixcode.com> * configure.in: Added check for gnome-app-lib. Removed directories that have been moved to gal. From addressbook/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/Makefile.am, contact-editor/Makefile.am, ename/Makefile.am, gui/component/Makefile.am, gui/widgets/Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and $(EXTRA_GNOME_LIBS). Removed unneeded libraries. * backend/ebook/e-card.c, backend/pas/pas-backend-file.c, contact-editor/e-contact-editor-address.c, contact-editor/e-contact-editor-categories.c, contact-editor/e-contact-editor-categories.h, contact-editor/e-contact-editor-fullname.c, contact-editor/e-contact-editor.c, contact-editor/e-contact-save-as.c, ename/e-address-western.c, ename/test-ename-western-gtk.c, gui/component/addressbook-factory.c, gui/component/addressbook.c, gui/component/e-cardlist-model.h, gui/component/e-ldap-storage.c, gui/component/select-names/e-select-names-bonobo.c, gui/component/select-names/e-select-names-manager.c, gui/component/select-names/e-select-names-model.c, gui/component/select-names/e-select-names-table-model.c, gui/component/select-names/e-select-names-table-model.h, gui/component/select-names/e-select-names-text-model.h, gui/component/select-names/e-select-names.c, gui/component/select-names/e-select-names.h, gui/search/e-addressbook-search-dialog.c, gui/widgets/e-addressbook-model.h, gui/widgets/e-addressbook-view.c, gui/widgets/e-minicard-label.c, gui/widgets/e-minicard-view-widget.c, gui/widgets/e-minicard-view-widget.h, gui/widgets/e-minicard-view.c, gui/widgets/e-minicard-view.h, gui/widgets/e-minicard-widget.h, gui/widgets/e-minicard.c, gui/widgets/test-minicard-label.c, gui/widgets/test-reflow.c, printing/e-contact-print.c: Fixed the #include lines to deal properly with gal. From calendar/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * gui/Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and $(EXTRA_GNOME_LIBS). Removed unneeded libraries. * gui/calendar-model.h, gui/e-calendar-table.c, gui/e-day-view.c, gui/e-week-view-event-item.c, gui/e-week-view.c, gui/event-editor.c, gui/gncal-todo.c, gui/gnome-cal.c, gui/main.c, gui/print.c, gui/dialogs/task-editor.c: Fixed the #include lines to deal properly with gal. * gui/check-filled.xpm: New file since we can't include it from e-table anymore. From camel/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * camel-folder-search.c, camel-folder-search.h, camel-remote-store.c, providers/imap/camel-imap-folder.c, providers/imap/camel-imap-store.c: Fixed the #include lines to deal properly with gal. From composer/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and $(EXTRA_GNOME_LIBS). Removed unneeded libraries. * e-msg-composer-address-dialog.c, e-msg-composer-address-entry.c, e-msg-composer-attachment.c, e-msg-composer-hdrs.c, e-msg-composer.c: Fixed the #include lines to deal properly with gal. From e-util/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Removed all the files moved to gal. * e-dialog-widgets.c: Fixed the #include lines to deal properly with gal. * e-gui-utils.c, e-gui-utils.h: Removed all of the functionality that was moved to gal. * e-canvas-utils.c, e-canvas-utils.h, e-canvas-vbox.c, e-canvas-vbox.h, e-canvas.c, e-canvas.h, e-cursors.c, e-cursors.h, e-font.c, e-font.h, e-popup-menu.c, e-popup-menu.h, e-printable.c, e-printable.h, e-unicode.c, e-unicode.h, e-util.c, e-util.h, e-xml-utils.c, e-xml-utils.h: Moved to gal. From filter/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * filter-editor.c, filter-filter.c, filter-folder.c, filter-input.c, filter-message-search.c, filter-option.c, filter-rule.c, score-editor.c, vfolder-editor.c, vfolder-rule.c: Fixed the #include lines to deal properly with gal. From mail/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and $(EXTRA_GNOME_LIBS). Removed unneeded libraries. * component-factory.c, folder-browser-factory.c, folder-browser.c, mail-callbacks.c, mail-config-gui.c, mail-display.c, mail-display.h, main.c, message-list.c, message-list.h: Fixed the #include lines to deal properly with gal. From po/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * POTFILES.in: Removed files that have been moved to gal. From shell/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and $(EXTRA_GNOME_LIBS). Removed unneeded libraries. * e-component-registry.c, e-corba-storage-registry.c, e-corba-storage.c, e-folder-type-registry.c, e-folder.c, e-local-folder.c, e-local-storage.c, e-shell-folder-creation-dialog.c, e-shell-folder-selection-dialog.c, e-shell-folder-title-bar.c, e-shell-view.c, e-shell.c, e-shortcuts-view.c, e-shortcuts.c, e-storage-set-view.c, e-storage-set-view.h, e-storage-set.c, e-storage.c, evolution-local-storage.c, evolution-session.c, evolution-shell-client.c, evolution-shell-component-client.c, evolution-shell-component.c, evolution-shell-view.c, evolution-storage-listener.c, evolution-storage.c, main.c: Fixed the #include lines to deal properly with gal. From widgets/meeting-time-sel/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and $(EXTRA_GNOME_LIBS). Removed unneeded libraries. * e-meeting-time-sel-list-item.c, e-meeting-time-sel.c, e-meeting-time-sel.h: Fixed the #include lines to deal properly with gal. If you've read this far, you deserve a prize. The first email in my mailbox with the subject "What a commit message!" (and your physical mailing address somewhere in the message) will receive a free Helix Code T-shirt mailed to anywhere within the continental United States. I cannot be held responsible for problems with email systems anywhere. This is supposed to be for fun, so please don't make a fuss if something goes wrong and your mail doesn't reach me. Find my email elsewhere in this message, and if it's been more than a few days, you're probably too late. From widgets/misc/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and $(EXTRA_GNOME_LIBS). Removed unneeded libraries. * e-calendar-item.c, e-calendar.c, e-calendar.h, e-title-bar.c: Fixed the #include lines to deal properly with gal. * e-scroll-frame.c, e-scroll-frame.h: Moved to gal. From widgets/shortcut-bar/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and $(EXTRA_GNOME_LIBS). Removed unneeded libraries. * e-icon-bar.c, e-icon-bar.h, e-shortcut-bar.c, e-shortcut-model.c, test-shortcut-bar.c: Fixed the #include lines to deal properly with gal. From widgets/ChangeLog: 2000-09-18 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Removed directories that have been moved to gal. * e-paned/.cvsignore, e-paned/Makefile.am, e-paned/e-hpaned.c, e-paned/e-hpaned.h, e-paned/e-paned.c, e-paned/e-paned.h, e-paned/e-vpaned.c, e-paned/e-vpaned.h: Moved to gal. * e-reflow/.cvsignore, e-reflow/Makefile.am, e-reflow/e-reflow-sorted.c, e-reflow/e-reflow-sorted.h, e-reflow/e-reflow.c, e-reflow/e-reflow.h: Moved to gal. * e-table/.cvsignore, e-table/ChangeLog, e-table/LICENSE, e-table/Makefile.am, e-table/ROADMAP.e-table, e-table/TODO, e-table/add-col.xpm, e-table/arrow-down.xpm, e-table/arrow-up.xpm, e-table/check-empty.xpm, e-table/check-filled.xpm, e-table/clip.png, e-table/e-cell-checkbox.c, e-table/e-cell-checkbox.h, e-table/e-cell-string.c, e-table/e-cell-text.c, e-table/e-cell-text.h, e-table/e-cell-toggle.c, e-table/e-cell-toggle.h, e-table/e-cell-tree.c, e-table/e-cell-tree.h, e-table/e-cell.c, e-table/e-cell.h, e-table/e-table-click-to-add.c, e-table/e-table-click-to-add.h, e-table/e-table-col-dnd.h, e-table/e-table-col.c, e-table/e-table-col.h, e-table/e-table-column-model.h, e-table/e-table-column.c, e-table/e-table-config.c, e-table/e-table-config.glade, e-table/e-table-config.glade.h, e-table/e-table-config.h, e-table/e-table-defines.h, e-table/e-table-example-1.c, e-table/e-table-example-2.c, e-table/e-table-field-chooser-dialog.c, e-table/e-table-field-chooser-dialog.h, e-table/e-table-field-chooser-item.c, e-table/e-table-field-chooser-item.h, e-table/e-table-field-chooser.c, e-table/e-table-field-chooser.glade, e-table/e-table-field-chooser.glade.h, e-table/e-table-field-chooser.h, e-table/e-table-group-container.c, e-table/e-table-group-container.h, e-table/e-table-group-leaf.c, e-table/e-table-group-leaf.h, e-table/e-table-group.c, e-table/e-table-group.glade, e-table/e-table-group.glade.h, e-table/e-table-group.h, e-table/e-table-header-item.c, e-table/e-table-header-item.h, e-table/e-table-header.c, e-table/e-table-header.h, e-table/e-table-item.c, e-table/e-table-item.h, e-table/e-table-model.c, e-table/e-table-model.h, e-table/e-table-one.c, e-table/e-table-one.h, e-table/e-table-scrolled.c, e-table/e-table-scrolled.h, e-table/e-table-selection-model.c, e-table/e-table-selection-model.h, e-table/e-table-simple.c, e-table/e-table-simple.h, e-table/e-table-size-test.c, e-table/e-table-sort-info.c, e-table/e-table-sort-info.h, e-table/e-table-sorted-variable.c, e-table/e-table-sorted-variable.h, e-table/e-table-sorted.c, e-table/e-table-sorted.h, e-table/e-table-sorter.c, e-table/e-table-sorter.h, e-table/e-table-subset-variable.c, e-table/e-table-subset-variable.h, e-table/e-table-subset.c, e-table/e-table-subset.h, e-table/e-table-text-model.c, e-table/e-table-text-model.h, e-table/e-table-tooltip.h, e-table/e-table-tree.h, e-table/e-table.c, e-table/e-table.h, e-table/e-tree-example-1.c, e-table/e-tree-example-2.c, e-table/e-tree-model.c, e-table/e-tree-model.h, e-table/e-tree-simple.c, e-table/e-tree-simple.h, e-table/image1.png, e-table/image2.png, e-table/image3.png, e-table/remove-col.xpm, e-table/sample.table, e-table/table-test.c, e-table/table-test.h, e-table/test-check.c, e-table/test-cols.c, e-table/test-table.c: Moved to gal. * e-text/.cvsignore, e-text/Makefile.am, e-text/e-entry-test.c, e-text/e-entry.c, e-text/e-entry.h, e-text/e-text-event-processor-emacs-like.c, e-text/e-text-event-processor-emacs-like.h, e-text/e-text-event-processor-types.h, e-text/e-text-event-processor.c, e-text/e-text-event-processor.h, e-text/e-text-model.c, e-text/e-text-model.h, e-text/e-text-test.c, e-text/e-text.c, e-text/e-text.h: Moved to gal. i.e., ... changed evolution to work with gal. svn path=/trunk/; revision=5490
642 lines
17 KiB
Plaintext
642 lines
17 KiB
Plaintext
# Process this file with autoconf to produce a configure script.
|
|
AC_INIT(camel)
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
cflags_set=${CFLAGS+set}
|
|
|
|
EVOLUTION_MAJOR_VERSION=0
|
|
EVOLUTION_MINOR_VERSION=0
|
|
EVOLUTION_MICRO_VERSION=5
|
|
VERSION=$EVOLUTION_MINOR_VERSION.$EVOLUTION_MICRO_VERSION
|
|
PACKAGE=evolution
|
|
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
|
AC_SUBST(VERSION)
|
|
|
|
|
|
dnl Initialize libtool
|
|
AM_PROG_LIBTOOL
|
|
|
|
dnl Initialize maintainer mode
|
|
AM_MAINTAINER_MODE
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AM_ACLOCAL_INCLUDE(macros)
|
|
GNOME_INIT(capplet)
|
|
GNOME_COMPILE_WARNINGS
|
|
AC_ISC_POSIX
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
AM_PROG_LEX
|
|
AC_PROG_YACC
|
|
AC_STDC_HEADERS
|
|
AC_ARG_PROGRAM
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, /usr/sbin:/usr/lib)
|
|
AC_DEFINE_UNQUOTED(SENDMAIL_PATH, "$SENDMAIL")
|
|
|
|
AC_MSG_CHECKING(system mail directory)
|
|
if test -d /var/mail; then
|
|
system_mail_dir=/var/mail
|
|
else
|
|
system_mail_dir=/var/spool/mail
|
|
fi
|
|
AC_MSG_RESULT($system_mail_dir)
|
|
AC_DEFINE_UNQUOTED(SYSTEM_MAIL_DIR, "$system_mail_dir")
|
|
|
|
dnl Check for new enough gnome-libs
|
|
CFLAGS_save=$CFLAGS
|
|
LIBS_save=$LIBS
|
|
CFLAGS=`gnome-config --cflags gnomeui`
|
|
LIBS=`gnome-config --libs gnomeui`
|
|
|
|
AC_CHECK_LIB(gnomeui, gnome_window_icon_set_default_from_file, ,[
|
|
AC_MSG_ERROR(gnome-libs 1.0.59 or higher is required.)])
|
|
|
|
CFLAGS=$CFLAGS_save
|
|
LIBS=$LIBS_save
|
|
|
|
ALL_LINGUAS="da de el es fi fr ga gl hu it ja ko nl no pl pt ru sl sv tr uk"
|
|
|
|
AM_GNOME_GETTEXT
|
|
|
|
GNOME_X_CHECKS
|
|
|
|
dnl
|
|
dnl Purify support
|
|
dnl
|
|
AC_ARG_ENABLE(purify,
|
|
[ --enable-purify=[no/yes] Enable support for building executables with
|
|
Purify.],,enable_purify=no)
|
|
AC_PATH_PROG(PURIFY, purify, impure)
|
|
AC_ARG_WITH(purify-options, [ --with-purify-options=OPTIONS Options passed to the purify command line (defaults to PURIFYOPTIONS variable).])
|
|
if test "x$with_purify_options" = "xno"; then
|
|
with_purify_options="-always-use-cache-dir=yes -cache-dir=/gnome/lib/purify"
|
|
fi
|
|
if test "x$PURIFYOPTIONS" = "x"; then
|
|
PURIFYOPTIONS=$with_purify_options
|
|
fi
|
|
AC_SUBST(PURIFY)
|
|
AM_CONDITIONAL(ENABLE_PURIFY, test "x$enable_purify" = "xyes" -a "x$PURIFY" != "ximpure")
|
|
PURIFY="$PURIFY $PURIFYOPTIONS"
|
|
|
|
dnl * Time zone stuff
|
|
AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
|
|
AC_TRY_COMPILE([
|
|
#include <time.h>
|
|
], [
|
|
timezone = 1;
|
|
], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
|
|
if test $ac_cv_var_timezone = yes; then
|
|
AC_DEFINE(HAVE_TIMEZONE)
|
|
else
|
|
AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
|
|
AC_TRY_COMPILE([
|
|
#include <time.h>
|
|
], [
|
|
struct tm tm;
|
|
tm.tm_gmtoff = 1;
|
|
], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
|
|
if test $ac_cv_struct_tm_gmtoff = yes; then
|
|
AC_DEFINE(HAVE_TM_GMTOFF)
|
|
else
|
|
AC_ERROR(unable to find a way to determine timezone)
|
|
fi
|
|
fi
|
|
|
|
AC_CHECK_FUNCS(mkstemp mkdtemp)
|
|
|
|
dnl **************************************************
|
|
dnl ctime_r prototype
|
|
dnl **************************************************
|
|
|
|
AC_CACHE_CHECK([if ctime_r wants three arguments], ac_cv_ctime_r_three_args,
|
|
[
|
|
AC_TRY_COMPILE([
|
|
#include <time.h>
|
|
],[
|
|
char *buf;
|
|
time_t date;
|
|
ctime_r( &date, buf, 100 );
|
|
],[
|
|
ac_cv_ctime_r_three_args=yes
|
|
],[
|
|
ac_cv_ctime_r_three_args=no
|
|
])
|
|
])
|
|
|
|
if test x"$ac_cv_ctime_r_three_args" = xyes ; then
|
|
AC_DEFINE(CTIME_R_THREE_ARGS)
|
|
fi
|
|
|
|
dnl **************************************************
|
|
dnl * pas-backend-file stuff.
|
|
dnl * check for db_185.h. if it's there, we use it.
|
|
dnl * otherwise, we use db.h (since it'll be 185).
|
|
dnl * Except on RH7.0, which puts db in yet another place
|
|
dnl **************************************************
|
|
AC_CHECK_HEADERS(db_185.h)
|
|
AC_CHECK_HEADERS(db1/db.h)
|
|
|
|
dnl **************************************************
|
|
dnl * ldap related stuff.
|
|
dnl **************************************************
|
|
AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="-llber")
|
|
if test x$ac_cv_lib_lber_ber_get_tag = xyes; then
|
|
AC_CHECK_LIB(ldap, ldap_open, LDAP_LIBS="-lldap $LDAP_LIBS", ,-llber)
|
|
fi
|
|
if test x$ac_cv_lib_ldap_ldap_open = xyes; then
|
|
AC_DEFINE(HAVE_LDAP)
|
|
AC_SUBST(LDAP_LIBS)
|
|
else
|
|
AC_MSG_WARN(no ldap support present)
|
|
fi
|
|
AM_CONDITIONAL(ENABLE_LDAP, test x$ac_cv_lib_ldap_ldap_open = xyes)
|
|
|
|
dnl **************************************************
|
|
dnl * Posix thread support
|
|
dnl **************************************************
|
|
|
|
dnl Hah! Threads are no longer an option
|
|
dnl AC_ARG_WITH(threads, [ --with-threads Include thread support],[
|
|
dnl FIXME: support more thread types, pth at least
|
|
|
|
GNOME_PTHREAD_CHECK
|
|
|
|
if test "x$PTHREAD_LIB" = "x" ; then
|
|
AC_MSG_ERROR([POSIX threads are currently required for Evolution])
|
|
fi
|
|
|
|
dnl
|
|
dnl Notice that this is a hack, and we wont be able to use this forever, but
|
|
dnl at least for some time
|
|
dnl
|
|
|
|
THREADS_LIBS="$PTHREAD_LIB `glib-config --libs gthread`"
|
|
THREADS_CFLAGS="`glib-config --cflags gthread`"
|
|
|
|
AC_SUBST(THREADS_LIBS)
|
|
AC_SUBST(THREADS_CFLAGS)
|
|
|
|
dnl **************************************************
|
|
dnl * Print check
|
|
dnl **************************************************
|
|
AC_MSG_CHECKING(for GnomePrint libraries version either 0.20 or later)
|
|
if gnome-config --libs print > /dev/null 2>&1; then
|
|
vers=`gnome-config --modversion print | sed -e "s/gnome-print-//" | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
|
|
if test "$vers" -ge 20; then
|
|
if test "$vers" -ge 21; then
|
|
AC_MSG_RESULT(found >=0.21)
|
|
else
|
|
AC_MSG_RESULT(found 0.20)
|
|
AC_DEFINE(USING_GNOME_PRINT_0_20)
|
|
fi
|
|
else
|
|
AC_MSG_ERROR(Please upgrade your gnome-print to version 0.20 or later.)
|
|
fi
|
|
else
|
|
AC_MSG_ERROR(Did not find GnomePrint installed)
|
|
fi
|
|
|
|
GNOME_PRINT_LIBS=`gnome-config --libs print`
|
|
GNOME_PRINT_CFLAGS=`gnome-config --cflags print`
|
|
AC_SUBST(GNOME_PRINT_LIBS)
|
|
AC_SUBST(GNOME_PRINT_CFLAGS)
|
|
|
|
dnl ******************************
|
|
dnl Check for Bonobo
|
|
dnl ******************************
|
|
AC_MSG_CHECKING(for Bonobo >= 0.19)
|
|
if gnome-config --libs bonobox > /dev/null 2>&1; then
|
|
vers=`gnome-config --modversion bonobo | sed -e "s/bonobo-//" | \
|
|
awk 'BEGIN { FS = "."; } { printf "%d", $1 * 1000 + $2;}'`
|
|
if test "$vers" -ge 19; then
|
|
bonobo_ok=true
|
|
else
|
|
bonobo_ok=false
|
|
fi
|
|
else
|
|
bonobo_ok=false
|
|
fi
|
|
|
|
if $bonobo_ok; then
|
|
AC_MSG_RESULT($vers found)
|
|
else
|
|
AC_MSG_ERROR(Bonobo newer than 0.18 is required to compile Evolution)
|
|
fi
|
|
|
|
dnl ******************************
|
|
dnl OAF
|
|
dnl ******************************
|
|
|
|
AC_PATH_PROG(OAF_CONFIG,oaf-config,no)
|
|
if test x$OAF_CONFIG = xno; then
|
|
AC_MSG_ERROR("The oaf-config program was not found")
|
|
else
|
|
OAF_LIBS=`$OAF_CONFIG --libs`
|
|
OAF_CFLAGS=`$OAF_CONFIG --cflags`
|
|
fi
|
|
|
|
AC_SUBST(OAF_LIBS)
|
|
AC_SUBST(OAF_CFLAGS)
|
|
|
|
|
|
dnl ******************************
|
|
dnl LibGlade checking
|
|
dnl ******************************
|
|
AC_MSG_CHECKING(for Glade libraries)
|
|
if gnome-config --libs libglade > /dev/null 2>&1; then
|
|
AC_MSG_RESULT(found)
|
|
else
|
|
AC_MSG_ERROR(Did not find libGlade installed)
|
|
fi
|
|
|
|
dnl ******************************
|
|
dnl libunicode checking
|
|
dnl ******************************
|
|
AC_MSG_CHECKING(for libunicode)
|
|
if unicode-config --libs > /dev/null 2>&1; then
|
|
UNICODE_LIBS=`unicode-config --libs`
|
|
UNICODE_CFLAGS=`unicode-config --cflags`
|
|
AC_SUBST(UNICODE_LIBS)
|
|
AC_SUBST(UNICODE_CFLAGS)
|
|
AC_MSG_RESULT(found)
|
|
else
|
|
AC_MSG_ERROR(libunicode not found)
|
|
fi
|
|
|
|
dnl ******************************
|
|
dnl GdkPixbuf checking
|
|
dnl ******************************
|
|
AC_MSG_CHECKING(for Gdkpixbuf libraries)
|
|
if gnome-config --libs gdk_pixbuf gnomecanvaspixbuf > /dev/null 2>&1; then
|
|
AC_MSG_RESULT(found)
|
|
else
|
|
AC_MSG_ERROR(Did not find gdkpixbuf installed)
|
|
fi
|
|
|
|
dnl ******************************
|
|
dnl Gnome App Lib checking
|
|
dnl ******************************
|
|
AC_MSG_CHECKING(for Gnome App libraries (GAL) >= 0.01)
|
|
if gnome-config --libs gal > /dev/null 2>&1; then
|
|
vers=`gnome-config --modversion gal | sed -e "s/gal-//" -e 's/cvs$//' -e 's/pre$//' | \
|
|
awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
|
|
if test "$vers" -ge 1; then
|
|
AC_MSG_RESULT(found)
|
|
else
|
|
AC_MSG_ERROR(You need at least GNOME Application libs 0.01 for this version of Gnumeric)
|
|
fi
|
|
else
|
|
AC_MSG_ERROR(Did not find GnomeAppLib (GAL) installed)
|
|
fi
|
|
|
|
GLIB_CFLAGS="`glib-config --cflags`"
|
|
GLIB_LIBS="`glib-config --libs`"
|
|
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
AC_SUBST(GLIB_LIBS)
|
|
|
|
|
|
EXTRA_GNOME_LIBS="`gnome-config --libs libglade gdk_pixbuf gnomecanvaspixbuf gnomeui gal` $THREADS_LIBS $UNICODE_LIBS"
|
|
EXTRA_GNOME_CFLAGS="`gnome-config --cflags libglade gdk_pixbuf gnomecanvaspixbuf gnomeui gal` $THREADS_CFLAGS $UNICODE_CFLAGS"
|
|
|
|
AC_SUBST(EXTRA_GNOME_LIBS)
|
|
AC_SUBST(EXTRA_GNOME_CFLAGS)
|
|
|
|
|
|
BONOBO_GNOME_LIBS="`gnome-config --libs bonobox_print libglade gdk_pixbuf gnomecanvaspixbuf gnomeui` $UNICODE_LIBS $OAF_LIBS"
|
|
BONOBO_GNOME_CFLAGS="`gnome-config --cflags bonobox_print libglade gdk_pixbuf gnomecanvaspixbuf gnomeui ` $UNICODE_CFLAGS $OAF_CFLAGS"
|
|
AC_SUBST(BONOBO_GNOME_LIBS)
|
|
AC_SUBST(BONOBO_GNOME_CFLAGS)
|
|
|
|
BONOBO_HTML_GNOME_LIBS="`gnome-config --libs bonobox_print libglade gdk_pixbuf gtkhtml gnomecanvaspixbuf gnomeui ` $THREAD_LIBS $UNICODE_LIBS"
|
|
BONOBO_HTML_GNOME_CFLAGS="`gnome-config --cflags bonobox_print libglade gdk_pixbuf gtkhtml gnomecanvaspixbuf gnomeui ` $THREAD_CFLAGS $UNICODE_CFLAGS"
|
|
AC_SUBST(BONOBO_HTML_GNOME_LIBS)
|
|
AC_SUBST(BONOBO_HTML_GNOME_CFLAGS)
|
|
|
|
dnl ******************************
|
|
dnl GtkHTML checking
|
|
dnl ******************************
|
|
|
|
AC_MSG_CHECKING(for GtkHTML)
|
|
if gnome-config --libs gtkhtml > /dev/null 2>&1; then
|
|
vers=`gnome-config --modversion gtkhtml`
|
|
case $vers
|
|
in
|
|
gtkhtml-0.[01234]) gtkhtml_ok=false ;;
|
|
*) gtkhtml_ok=true ;;
|
|
esac
|
|
else
|
|
gtkhtml_ok=false
|
|
fi
|
|
|
|
if $gtkhtml_ok; then
|
|
AC_MSG_RESULT($vers found)
|
|
else
|
|
AC_MSG_ERROR(GtkHTML 0.5 or later is required to compile Evolution)
|
|
fi
|
|
|
|
GTKHTML_CFLAGS="`gnome-config --cflags gtkhtml`"
|
|
GTKHTML_LIBS="`gnome-config --libs gtkhtml`"
|
|
|
|
AC_SUBST(GTKHTML_CFLAGS)
|
|
AC_SUBST(GTKHTML_LIBS)
|
|
|
|
dnl ******************************
|
|
dnl Gnome-VFS checking
|
|
dnl ******************************
|
|
AC_MSG_CHECKING(for GNOME-VFS)
|
|
if gnome-config --libs vfs > /dev/null 2>&1; then
|
|
vers=`gnome-config --modversion vfs`
|
|
case $vers
|
|
in
|
|
gnome-vfs-0.[012]) vfs_ok=false ;;
|
|
*) vfs_ok=true ;;
|
|
esac
|
|
else
|
|
vfs_ok=false
|
|
fi
|
|
|
|
if $vfs_ok; then
|
|
AC_MSG_RESULT($vers)
|
|
else
|
|
AC_MSG_ERROR(GNOME-VFS 0.3 or newer is required to compile Evolution)
|
|
fi
|
|
|
|
GNOME_VFS_LIBS="`gnome-config --libs vfs`"
|
|
GNOME_VFS_CFLAGS="`gnome-config --cflags vfs`"
|
|
AC_SUBST(GNOME_VFS_LIBS)
|
|
AC_SUBST(GNOME_VFS_CFLAGS)
|
|
|
|
BONOBO_VFS_GNOME_LIBS="`gnome-config --libs bonobox libglade gdk_pixbuf gnomecanvaspixbuf vfs gnomeui `"
|
|
BONOBO_VFS_GNOME_CFLAGS="`gnome-config --cflags bonobox libglade gdk_pixbuf gnomecanvaspixbuf vfs gnomeui `"
|
|
AC_SUBST(BONOBO_VFS_GNOME_LIBS)
|
|
AC_SUBST(BONOBO_VFS_GNOME_CFLAGS)
|
|
|
|
dnl ******************************
|
|
dnl Pilot checking
|
|
dnl ******************************
|
|
AC_ARG_ENABLE(pilot-conduits,
|
|
[ --enable-pilot-conduits=[no/yes] Enable support for building pilot conduits.],,enable_pilot_conduits=no)
|
|
if test "x$enable_pilot_conduits" = "xyes"; then
|
|
GNOME_PILOT_CHECK
|
|
fi
|
|
AM_CONDITIONAL(ENABLE_PILOT_CONDUITS, test "x$enable_pilot_conduits" = "xyes")
|
|
|
|
dnl ******
|
|
dnl XML
|
|
dnl ******
|
|
GNOME_XML_CHECK
|
|
xmlversion=`xml-config --version | sed 's/^libxml//'`
|
|
xmlmajor=`echo $xmlversion | awk -F. '{print $1;}'`
|
|
xmlminor=`echo $xmlversion | awk -F. '{print $2;}'`
|
|
xmlpatch=`echo $xmlversion | awk -F. '{print $3;}'`
|
|
if test "$xmlmajor" -ne 1 -o "$xmlminor" -ne 8 -o "$xmlpatch" -lt 7; then
|
|
AC_MSG_ERROR(gnome-xml 1.8.7 (or later, but not 2.0) is required to compile Evolution)
|
|
fi
|
|
|
|
AC_SUBST(CAPPLET_LIBS)
|
|
|
|
|
|
dnl ********
|
|
dnl Kerberos
|
|
dnl ********
|
|
AC_ARG_WITH(krb5, [ --with-krb5=PREFIX Location of Kerberos 5 libs/includes])
|
|
AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Location of Kerberos 4 libs/includes])
|
|
if test x${with_krb5:=no} != xno; then
|
|
CFLAGS_save="$CFLAGS"
|
|
LDFLAGS_save="$LDFLAGS"
|
|
CFLAGS="-I$with_krb5/include/krb5"
|
|
LDFLAGS="-L$with_krb5/lib"
|
|
AC_CHECK_LIB(krb5, krb5_init_context,
|
|
[
|
|
AC_DEFINE(HAVE_KRB5)
|
|
KRB5_CFLAGS="$CFLAGS"
|
|
KRB5_LDFLAGS="$LDFLAGS -lkrb5 -lk5crypto -lcom_err"
|
|
],[
|
|
AC_MSG_WARN([A sample Kerberos 5 program could not be compiled with the
|
|
Kerberos found in $with_krb5. Please verify that the prefix is correct.])
|
|
with_krb5=no
|
|
], [-lk5crypto -lcom_err])
|
|
CFLAGS="$CFLAGS_save"
|
|
LDFLAGS="$LIBS_save"
|
|
else
|
|
AC_MSG_CHECKING(for Kerberos 5)
|
|
AC_MSG_RESULT($with_krb5)
|
|
fi
|
|
|
|
if test x${with_krb4:=no} != xno; then
|
|
CFLAGS_save="$CFLAGS"
|
|
LDFLAGS_save="$LDFLAGS"
|
|
CFLAGS="-I$with_krb4/include/kerberosIV -I$with_krb4/include/kerberos"
|
|
test -f "$with_krb4/include/krb.h" && \
|
|
CFLAGS="$CFLAGS -I$with_krb4/include"
|
|
test -f "$with_krb4/include/port-sockets.h" && \
|
|
CFLAGS="$CFLAGS -I$with_krb4/include"
|
|
|
|
LDFLAGS="-L$with_krb4/lib"
|
|
AC_CHECK_LIB(krb, krb_mk_req,
|
|
[
|
|
AC_DEFINE(HAVE_KRB4)
|
|
KRB4_CFLAGS="$CFLAGS"
|
|
KRB4_LDFLAGS="$LDFLAGS -lkrb"
|
|
],[
|
|
AC_CHECK_LIB(krb, krb_mk_req,
|
|
[
|
|
AC_DEFINE(HAVE_KRB4)
|
|
KRB4_CFLAGS="$CFLAGS"
|
|
KRB4_LDFLAGS="$LDFLAGS -lkrb -ldes"
|
|
],[
|
|
AC_CHECK_LIB(krb4, krb_mk_req,
|
|
[
|
|
AC_DEFINE(HAVE_KRB4)
|
|
KRB4_CFLAGS="$CFLAGS"
|
|
KRB4_LDFLAGS="$LDFLAGS -lkrb4 -ldes425 $KRB5_LDFLAGS"
|
|
],[
|
|
AC_MSG_WARN([A sample Kerberos 4 program could not be compiled with the
|
|
Kerberos found in $with_krb4. Please verify that the prefix is correct.])
|
|
with_krb4=no
|
|
],[-ldes425 $KRB5_LDFLAGS])
|
|
],[-ldes])
|
|
])
|
|
|
|
AC_TRY_COMPILE([#include "krb.h"
|
|
int krb_sendauth;
|
|
],[return 0],[AC_DEFINE(NEED_KRB_SENDAUTH_PROTO)],)
|
|
|
|
CFLAGS="$CFLAGS_save"
|
|
LDFLAGS="$LIBS_save"
|
|
else
|
|
AC_MSG_CHECKING(for Kerberos 4)
|
|
AC_MSG_RESULT(${with_krb4})
|
|
fi
|
|
|
|
AC_SUBST(KRB5_CFLAGS)
|
|
AC_SUBST(KRB5_LDFLAGS)
|
|
AC_SUBST(KRB4_CFLAGS)
|
|
AC_SUBST(KRB4_LDFLAGS)
|
|
|
|
|
|
dnl ******************************
|
|
dnl gtk-doc
|
|
dnl ******************************
|
|
|
|
AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
|
|
AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
|
|
AC_SUBST(HAVE_GTK_DOC)
|
|
|
|
dnl Let people disable the gtk-doc stuff.
|
|
AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
|
|
|
|
if test x$enable_gtk_doc = xauto ; then
|
|
if test x$GTKDOC = xtrue ; then
|
|
enable_gtk_doc=yes
|
|
else
|
|
enable_gtk_doc=no
|
|
fi
|
|
fi
|
|
|
|
dnl NOTE: We need to use a separate automake conditional for this
|
|
dnl to make this work with the tarballs.
|
|
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
|
|
|
|
dnl ********
|
|
dnl movemail
|
|
dnl ********
|
|
AC_ARG_WITH(movemail, [ --with-movemail=PATH Path to a movemail binary])
|
|
AC_MSG_CHECKING(for movemail)
|
|
if test x$with_movemail = xyes -o x$with_movemail = x; then
|
|
with_movemail=no
|
|
fi
|
|
if test x$with_movemail != xno; then
|
|
AC_DEFINE_UNQUOTED(MOVEMAIL_PATH, "$with_movemail")
|
|
AC_MSG_RESULT($with_movemail)
|
|
else
|
|
emacs_exec_dir=`emacs --batch --eval '(message exec-directory)' 2>&1`
|
|
case $emacs_exec_dir in
|
|
/*) if test -x $emacs_exec_dir/movemail; then
|
|
if test -u $emacs_exec_dir/movemail -o -g $emacs_exec_dir/movemail; then
|
|
AC_MSG_RESULT($emacs_exec_dir/movemail)
|
|
AC_DEFINE_UNQUOTED(MOVEMAIL_PATH, "$emacs_exec_dir/movemail")
|
|
else
|
|
AC_MSG_RESULT($emacs_exec_dir/movemail... not set-id: ignored)
|
|
fi
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
fi
|
|
;;
|
|
*)
|
|
AC_MSG_RESULT(no)
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
dnl **********
|
|
dnl GPGPGPGPGP
|
|
dnl **********
|
|
AC_PATH_PROG(GPG, gpg)
|
|
if test -n "$GPG"; then
|
|
AC_DEFINE_UNQUOTED(GPG_PATH, "$GPG")
|
|
AC_DEFINE(PGP_PROGRAM, "GPG")
|
|
else
|
|
AC_PATH_PROG(PGP5, pgpv)
|
|
if test -n "$PGP5"; then
|
|
AC_DEFINE_UNQUOTED(PGP5_PATH, "$PGP5")
|
|
AC_DEFINE(PGP_PROGRAM, "PGP")
|
|
else
|
|
AC_PATH_PROG(PGP, pgp)
|
|
if test -n "$PGP"; then
|
|
AC_DEFINE_UNQUOTED(PGP_PATH, "$PGP")
|
|
AC_DEFINE(PGP_PROGRAM, "PGP")
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
dnl ******************************
|
|
dnl Makefiles
|
|
dnl ******************************
|
|
|
|
AC_CONFIG_SUBDIRS(libical)
|
|
|
|
EVOLUTION_DIR=`(cd $srcdir; pwd)`
|
|
AC_SUBST(EVOLUTION_DIR)
|
|
|
|
AC_OUTPUT([
|
|
Makefile
|
|
macros/Makefile
|
|
intl/Makefile
|
|
po/Makefile.in
|
|
e-util/Makefile
|
|
libibex/Makefile
|
|
camel/Makefile
|
|
camel/providers/Makefile
|
|
camel/providers/mbox/Makefile
|
|
camel/providers/pop3/Makefile
|
|
camel/providers/sendmail/Makefile
|
|
camel/providers/smtp/Makefile
|
|
camel/providers/vee/Makefile
|
|
camel/providers/imap/Makefile
|
|
camel/providers/mh/Makefile
|
|
camel/providers/nntp/Makefile
|
|
composer/Makefile
|
|
widgets/Makefile
|
|
widgets/meeting-time-sel/Makefile
|
|
widgets/misc/Makefile
|
|
widgets/shortcut-bar/Makefile
|
|
addressbook/Makefile
|
|
addressbook/ename/Makefile
|
|
addressbook/conduit/Makefile
|
|
addressbook/contact-editor/Makefile
|
|
addressbook/printing/Makefile
|
|
addressbook/backend/Makefile
|
|
addressbook/backend/idl/Makefile
|
|
addressbook/backend/pas/Makefile
|
|
addressbook/backend/ebook/Makefile
|
|
addressbook/gui/Makefile
|
|
addressbook/gui/widgets/Makefile
|
|
addressbook/gui/search/Makefile
|
|
addressbook/gui/component/Makefile
|
|
addressbook/gui/component/select-names/Makefile
|
|
shell/Makefile
|
|
shell/glade/Makefile
|
|
mail/Makefile
|
|
data/Makefile
|
|
libversit/Makefile
|
|
libibex/Makefile
|
|
calendar/Makefile
|
|
calendar/idl/Makefile
|
|
calendar/cal-util/Makefile
|
|
calendar/cal-client/Makefile
|
|
calendar/pcs/Makefile
|
|
calendar/gui/Makefile
|
|
calendar/gui/dialogs/Makefile
|
|
calendar/conduits/Makefile
|
|
calendar/conduits/calendar/Makefile
|
|
calendar/conduits/todo/Makefile
|
|
filter/Makefile
|
|
wombat/Makefile
|
|
art/Makefile
|
|
ui/Makefile
|
|
default_user/Makefile
|
|
default_user/local/Makefile
|
|
default_user/local/Calendar/Makefile
|
|
default_user/local/Contacts/Makefile
|
|
default_user/local/Drafts/Makefile
|
|
default_user/local/Inbox/Makefile
|
|
default_user/local/Outbox/Makefile
|
|
default_user/local/Sent/Makefile
|
|
default_user/local/Trash/Makefile
|
|
tools/Makefile
|
|
doc/Makefile
|
|
doc/C/Makefile
|
|
doc/devel/Makefile
|
|
doc/devel/calendar/Makefile
|
|
doc/devel/calendar/cal-client/Makefile
|
|
doc/devel/calendar/cal-util/Makefile
|
|
])
|