diff options
author | Dan Winship <danw@src.gnome.org> | 2002-07-23 02:24:30 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-07-23 02:24:30 +0800 |
commit | ed309c6a1523e3b48392781aeafd0a94a1c9042b (patch) | |
tree | 346ae12cd97c4696205fcb89effb8ed2e5b26402 /configure.in | |
parent | 3112b6942561e0b027133547feb66cdf24dbd945 (diff) | |
download | gsoc2013-evolution-ed309c6a1523e3b48392781aeafd0a94a1c9042b.tar gsoc2013-evolution-ed309c6a1523e3b48392781aeafd0a94a1c9042b.tar.gz gsoc2013-evolution-ed309c6a1523e3b48392781aeafd0a94a1c9042b.tar.bz2 gsoc2013-evolution-ed309c6a1523e3b48392781aeafd0a94a1c9042b.tar.lz gsoc2013-evolution-ed309c6a1523e3b48392781aeafd0a94a1c9042b.tar.xz gsoc2013-evolution-ed309c6a1523e3b48392781aeafd0a94a1c9042b.tar.zst gsoc2013-evolution-ed309c6a1523e3b48392781aeafd0a94a1c9042b.zip |
Move EVO_CHECK_LIB into here, and also create EVO_PURIFY_SUPPORT,
* acinclude.m4: Move EVO_CHECK_LIB into here, and also create
EVO_PURIFY_SUPPORT, EVO_TIMEZONE_CHECK, and EVO_LDAP_CHECK from
stuff in configure.in. (This stuff is also used by Connector.)
* configure.in: Remove the stuff that was moved to acinclude.m4.
* evolution_addressbookConf.sh.in: Remove db3 and ldap references
since pas-backend-file and pas-backend-ldap are no longer in
libpas, and those flags weren't doing anything useful here before
anyway. (Our attempts to force static linking to those libraries
end up getting mangled when passed through gnome-config.)
* evolution_calendarConf.sh.in: Likewise, remove db3 references.
svn path=/trunk/; revision=17531
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 204 |
1 files changed, 19 insertions, 185 deletions
diff --git a/configure.in b/configure.in index bfcd6e686a..aef1c3f008 100644 --- a/configure.in +++ b/configure.in @@ -31,54 +31,6 @@ AC_CANONICAL_HOST AC_DEFINE_UNQUOTED(VERSION_COMMENT, "(Preview Release)") -AC_DEFUN(EVO_CHECK_LIB, [ - dispname="$1" - pkgname="$2" - minvers="$3" - maxvers="$4" - - AC_MSG_CHECKING(for $dispname) - - if gnome-config --libs $pkgname > /dev/null 2>&1; then - pkgvers=`gnome-config --modversion $pkgname | sed -e 's/^[[^0-9]]*//'` - else - pkgvers=not - fi - AC_MSG_RESULT($pkgvers found) - - pkgvers=`echo $pkgvers | awk -F. '{ print $[]1 * 1000000 + $[]2 * 10000 + $[]3 * 100 + $[]4;}'` - cmpminvers=`echo $minvers | awk -F. '{ print $[]1 * 1000000 + $[]2 * 10000 + $[]3 * 100 + $[]4;}'` - cmpmaxvers=`echo $maxvers | awk -F. '{ print $[]1 * 1000000 + $[]2 * 10000 + $[]3 * 100 + $[]4;}'` - ok=yes - if test "$pkgvers" -lt $cmpminvers; then - ok=no - elif test -n "$maxvers"; then - if test "$pkgvers" -gt $cmpmaxvers; then - ok=no - elif test "$maxvers" != "$minvers" -a "$cmpmaxvers" -eq "$pkgvers"; then - ok=no - fi - fi - if test $ok = no; then - case $maxvers in - "") - dispvers="$minvers or higher" - ;; - $minvers) - dispvers="$minvers (exactly)" - ;; - *) - dispvers="$minvers or higher, but less than $maxvers," - ;; - esac - - AC_MSG_ERROR([ -"" -"You need $dispname $dispvers to build Evolution" -"If you think you already have this installed, consult the README."]) - fi -]) - SCROLLKEEPER_REQUIRED=0.1.4 AC_SUBST(SCROLLKEEPER_REQUIRED) @@ -153,22 +105,11 @@ AC_SUBST(localedir) 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" - +EVO_PURIFY_SUPPORT +dnl +dnl system mail stuff +dnl AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, /usr/sbin:/usr/lib) AC_DEFINE_UNQUOTED(SENDMAIL_PATH, "$SENDMAIL") @@ -210,29 +151,8 @@ AC_MSG_RESULT([$system_mail_dir, $system_mail_perm]) AC_SUBST(CAMEL_LOCK_HELPER_USER) AC_SUBST(CAMEL_LOCK_HELPER_GROUP) -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 + +EVO_TIMEZONE_CHECK AC_CHECK_FUNCS(mkstemp mkdtemp isblank) @@ -451,110 +371,24 @@ LIBS="$LIBS_save" dnl ************************************************** -dnl * ldap related stuff. +dnl LDAP support. dnl ************************************************** -AC_ARG_WITH(openldap, [ --with-openldap=[no/yes/PREFIX] Enable LDAP support in evolution]) -AC_ARG_WITH(static-ldap, [ --with-static-ldap=[no/yes] Link LDAP support statically into evolution ]) -AC_CACHE_CHECK([for OpenLDAP], ac_cv_with_openldap, ac_cv_with_openldap="${with_openldap:=no}") -case $ac_cv_with_openldap in -no|"") +EVO_LDAP_CHECK(no) +case $with_openldap in +no) msg_ldap=no ;; -yes) - with_openldap=/usr - msg_ldap=yes - ;; *) - with_openldap=$ac_cv_with_openldap - LDAP_CFLAGS="-I$ac_cv_with_openldap/include" - LDAP_LDFLAGS="-L$ac_cv_with_openldap/lib" - msg_ldap=yes - ;; + case $with_static_ldap in + yes) + msg_ldap="yes (static)" + ;; + *) + msg_ldap="yes (dynamic)" + ;; + esac esac -if test "$msg_ldap" = yes; then - - AC_DEFINE(HAVE_LDAP) - - if test -f $with_openldap/lib/libldap.la; then - msg_ldap_linktype="(static)" - else - msg_ldap_linktype="(dynamic)" - fi - - - if test "${with_static_ldap+set}" = set; then - case $with_static_ldap in - no|"") - msg_ldap_linktype="(dynamic)" - ;; - *) - msg_ldap_linktype="(static)" - ;; - esac - fi - - AC_CACHE_CHECK(if OpenLDAP is version 2.x, ac_cv_openldap_version2, [ - CPPFLAGS_save="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $LDAP_CFLAGS" - AC_EGREP_CPP(yes, [ - #include "ldap.h" - #if LDAP_VENDOR_VERSION > 20000 - yes - #endif - ], ac_cv_openldap_version2=yes, ac_cv_openldap_version2=no) - CPPFLAGS="$CPPFLAGS_save" - ]) - if test "$ac_cv_openldap_version2" = no; then - AC_MSG_ERROR(evolution requires OpenLDAP version >= 2) - fi - - AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="-lresolv") - AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket") - AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl") - AC_CHECK_LIB(lber, ber_get_tag, [ - if test "$msg_ldap_linktype" = "(static)"; then - LDAP_LIBS="$with_openldap/lib/liblber.a $LDAP_LIBS" - - # libldap might depend on OpenSSL... We need to pull - # in the dependency libs explicitly here since we're - # not using libtool for the configure test. - if test -f $with_openldap/lib/libldap.la; then - LDAP_LIBS="`. $with_openldap/lib/libldap.la; echo $dependency_libs` $LDAP_LIBS" - fi - else - LDAP_LIBS="-llber $LDAP_LIBS" - fi - AC_CHECK_LIB(ldap, ldap_open, [ - if test $msg_ldap_linktype = "(static)"; then - LDAP_LIBS="$with_openldap/lib/libldap.a $LDAP_LIBS" - else - LDAP_LIBS="-lldap $LDAP_LIBS" - fi], - LDAP_LIBS="", $LDAP_LDFLAGS $LDAP_LIBS) - LDAP_LIBS="$LDAP_LDFLAGS $LDAP_LIBS" - ], LDAP_LIBS="", $LDAP_LDFLAGS $LDAP_LIBS) - - if test -z "$LDAP_LIBS"; then - AC_MSG_ERROR(could not find OpenLDAP libraries) - elif test "$msg_ldap_linktype" = "(static)"; then - case "$host" in - *solaris*) - if echo $LDAP_LIBS | grep -- "-lresolv" >/dev/null 2>&1; then - LDAP_LIBS=`echo $LDAP_LIBS | sed "s,-lresolv ,,g"` - LDAP_SHARED="-lresolv" - fi - ;; - esac - - LDAP_LIBS="-Wl,-Bstatic $LDAP_LIBS -Wl,-Bdynamic $LDAP_SHARED" - fi - - AC_SUBST(LDAP_CFLAGS) - AC_SUBST(LDAP_LIBS) -fi -AM_CONDITIONAL(ENABLE_LDAP, test $msg_ldap = yes) - dnl ************************************************** dnl NNTP support. dnl ************************************************** @@ -1372,7 +1206,7 @@ fi echo " Mail Directory: $system_mail_dir, $system_mail_perm - LDAP support: $msg_ldap $msg_ldap_linktype" + LDAP support: $msg_ldap" if test "$msg_nntp" = "yes"; then echo "\ NNTP support: $msg_nntp" |