Matthew Barnes b1f75a
--- evolution-data-server-1.10.3.1/configure.in.version-checks	2007-07-27 07:43:40.000000000 -0400
Matthew Barnes b1f75a
+++ evolution-data-server-1.10.3.1/configure.in	2007-07-27 07:47:38.000000000 -0400
Matthew Barnes b1f75a
@@ -12,6 +12,16 @@ AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PAC
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 AM_CONFIG_HEADER(config.h)
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
+# Required Package Versions
Matthew Barnes b1f75a
+m4_define([gtk_minimum_version], [2.10.0])
Matthew Barnes b1f75a
+m4_define([ORBit_minimum_version], [2.9.8])
Matthew Barnes b1f75a
+m4_define([gnome_vfs_minimum_version], [2.4.0])
Matthew Barnes b1f75a
+m4_define([libbonobo_minimum_version], [2.4.2])
Matthew Barnes b1f75a
+m4_define([gconf_minimum_version], [2.0.0])             # XXX Just a Guess
Matthew Barnes b1f75a
+m4_define([libglade_minimum_version], [2.0.0])          # XXX Just a Guess
Matthew Barnes b1f75a
+m4_define([libgnome_minimum_version], [2.0.0])          # XXX Just a Guess
Matthew Barnes b1f75a
+m4_define([libxml_minimum_version], [2.0.0])            # XXX Just a Guess
Matthew Barnes b1f75a
+
Matthew Barnes b1f75a
 dnl *************************************************************************************************
Matthew Barnes b1f75a
 dnl Base Version
Matthew Barnes b1f75a
 dnl
Matthew Barnes b1f75a
@@ -180,6 +190,17 @@ AC_CHECK_FUNCS(fsync strptime strtok_r)
Matthew Barnes b1f75a
 dnl alloca()
Matthew Barnes b1f75a
 AC_CHECK_HEADERS(alloca.h)
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
+# Check for base dependencies early.
Matthew Barnes b1f75a
+PKG_CHECK_MODULES(GNOME_PLATFORM,
Matthew Barnes b1f75a
+        [gtk+-2.0 >= gtk_minimum_version
Matthew Barnes b1f75a
+         ORBit-2.0 >= ORBit_minimum_version
Matthew Barnes b1f75a
+         gnome-vfs-2.0 >= gnome_vfs_minimum_version
Matthew Barnes b1f75a
+         libbonobo-2.0 >= libbonobo_minimum_version
Matthew Barnes b1f75a
+         gconf-2.0 >= gconf_minimum_version
Matthew Barnes b1f75a
+         libglade-2.0 >= libglade_minimum_version
Matthew Barnes b1f75a
+         libgnome-2.0 >= libgnome_minimum_version
Matthew Barnes b1f75a
+         libxml-2.0 >= libxml_minimum_version])
Matthew Barnes b1f75a
+
Matthew Barnes b1f75a
 dnl **************************************************
Matthew Barnes b1f75a
 dnl * regex checking
Matthew Barnes b1f75a
 dnl **************************************************
Matthew Barnes b1f75a
@@ -1165,12 +1186,10 @@ msg_no_ntlm="no"
Matthew Barnes b1f75a
 msg_exchange="yes"
Matthew Barnes b1f75a
 fi # Win32
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
-GLIB_REQUIRED="2.10.0"
Matthew Barnes b1f75a
-LIBBONOBO_REQUIRED="2.4.2"
Matthew Barnes b1f75a
-ORBIT_REQUIRED="2.9.8"
Matthew Barnes b1f75a
-
Matthew Barnes b1f75a
-AC_SUBST(GLIB_REQUIRED)
Matthew Barnes b1f75a
+LIBBONOBO_REQUIRED=libbonobo_minimum_version
Matthew Barnes b1f75a
 AC_SUBST(LIBBONOBO_REQUIRED)
Matthew Barnes b1f75a
+
Matthew Barnes b1f75a
+ORBIT_REQUIRED=ORBit_minimum_version
Matthew Barnes b1f75a
 AC_SUBST(ORBIT_REQUIRED)
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 dnl *******************
Matthew Barnes b1f75a
@@ -1219,7 +1238,7 @@ case $CFLAGS in
Matthew Barnes b1f75a
 	;;
Matthew Barnes b1f75a
 esac
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
-PKG_CHECK_MODULES(ORBIT, ORBit-2.0 >= 2.9.8)
Matthew Barnes b1f75a
+PKG_CHECK_MODULES(ORBIT, ORBit-2.0 >= ORBit_minimum_version)
Matthew Barnes b1f75a
 ORBIT_IDL=`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`
Matthew Barnes b1f75a
 AC_SUBST(ORBIT_CFLAGS)
Matthew Barnes b1f75a
 AC_SUBST(ORBIT_LIBS)
Matthew Barnes b1f75a
@@ -1249,13 +1268,13 @@ dnl ************************************
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 dnl --- libedataserver and libedataserverui flags
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
-E_DATA_SERVER_DEPS="libxml-2.0 gobject-2.0 >= $GLIB_REQUIRED libbonobo-2.0 >= $LIBBONOBO_REQUIRED gconf-2.0 $mozilla_nspr"
Matthew Barnes b1f75a
+E_DATA_SERVER_DEPS="libxml-2.0 libbonobo-2.0 gconf-2.0 $mozilla_nspr"
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 EVO_SET_COMPILE_FLAGS(E_DATA_SERVER, $E_DATA_SERVER_DEPS, $THREADS_CFLAGS $MANUAL_NSPR_CFLAGS, $THREADS_LIBS $MANUAL_NSPR_LIBS)
Matthew Barnes b1f75a
 AC_SUBST(E_DATA_SERVER_CFLAGS)
Matthew Barnes b1f75a
 AC_SUBST(E_DATA_SERVER_LIBS)
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
-E_DATA_SERVER_UI_DEPS="gtk+-2.0 libglade-2.0 gconf-2.0 libgnome-2.0 $GNOME_KEYRING_REQUIREMENT"
Matthew Barnes b1f75a
+E_DATA_SERVER_UI_DEPS="gtk+-2.0 libglade-2.0 libgnome-2.0 gnome-vfs-2.0 $GNOME_KEYRING_REQUIREMENT"
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 EVO_SET_COMPILE_FLAGS(E_DATA_SERVER_UI, $E_DATA_SERVER_UI_DEPS, $THREADS_CFLAGS, $THREADS_LIBS)
Matthew Barnes b1f75a
 AC_SUBST(E_DATA_SERVER_UI_CFLAGS)
Matthew Barnes b1f75a
@@ -1263,7 +1282,7 @@ AC_SUBST(E_DATA_SERVER_UI_LIBS)
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 dnl --- evolution-addressbook flags
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
-EVOLUTION_ADDRESSBOOK_DEPS="libxml-2.0 gobject-2.0 gconf-2.0 libbonobo-2.0 >= $LIBBONOBO_REQUIRED libgnome-2.0 gnome-vfs-2.0"
Matthew Barnes b1f75a
+EVOLUTION_ADDRESSBOOK_DEPS="libxml-2.0 libgnome-2.0 gnome-vfs-2.0"
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 EVO_SET_COMPILE_FLAGS(EVOLUTION_ADDRESSBOOK, $EVOLUTION_ADDRESSBOOK_DEPS)
Matthew Barnes b1f75a
 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
Matthew Barnes b1f75a
@@ -1271,7 +1290,7 @@ AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 dnl --- evolution-calendar flags
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
-EVOLUTION_CALENDAR_DEPS="libxml-2.0 gobject-2.0 gconf-2.0 libbonobo-2.0 >= $LIBBONOBO_REQUIRED libgnome-2.0 gnome-vfs-2.0"
Matthew Barnes b1f75a
+EVOLUTION_CALENDAR_DEPS="libxml-2.0 libgnome-2.0 gnome-vfs-2.0"
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 EVO_SET_COMPILE_FLAGS(EVOLUTION_CALENDAR, $EVOLUTION_CALENDAR_DEPS)
Matthew Barnes b1f75a
 AC_SUBST(EVOLUTION_CALENDAR_CFLAGS)
Matthew Barnes b1f75a
@@ -1279,7 +1298,7 @@ AC_SUBST(EVOLUTION_CALENDAR_LIBS)
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 dnl --- factory flags
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
-E_FACTORY_DEPS="gobject-2.0 >= $GLIB_REQUIRED libbonobo-2.0 >= $LIBBONOBO_REQUIRED gconf-2.0 gnome-vfs-2.0 libgnome-2.0 $mozilla_nspr"
Matthew Barnes b1f75a
+E_FACTORY_DEPS="gnome-vfs-2.0 libgnome-2.0 $mozilla_nspr"
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
 EVO_SET_COMPILE_FLAGS(E_FACTORY, $E_FACTORY_DEPS, $THREADS_CFLAGS $MANUAL_NSPR_CFLAGS, $THREADS_LIBS $MANUAL_NSPR_LIBS)
Matthew Barnes b1f75a
 AC_SUBST(E_FACTORY_CFLAGS)
Matthew Barnes b1f75a
@@ -1330,7 +1349,7 @@ AC_CACHE_CHECK([if large files (>2 GB) a
Matthew Barnes b1f75a
 	])
Matthew Barnes b1f75a
 ])
Matthew Barnes b1f75a
 
Matthew Barnes b1f75a
-EVO_SET_COMPILE_FLAGS(CAMEL, gthread-2.0 gmodule-2.0 gobject-2.0 $mozilla_nss gnome-vfs-2.0, 
Matthew Barnes b1f75a
+EVO_SET_COMPILE_FLAGS(CAMEL, $mozilla_nss gnome-vfs-2.0, 
Matthew Barnes b1f75a
 		      $THREADS_CFLAGS $KRB4_CFLAGS $KRB5_CFLAGS $MANUAL_NSS_CFLAGS $LARGEFILE_CFLAGS,
Matthew Barnes b1f75a
 	              -lz $THREADS_LIBS $KRB4_LDFLAGS $KRB5_LDFLAGS $MANUAL_NSS_LIBS)
Matthew Barnes b1f75a
 AC_SUBST(CAMEL_CFLAGS)