[evolution-patches] EVO_LDAP_CHECK patches again
- From: Rodney Dawes <dobey novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] EVO_LDAP_CHECK patches again
- Date: Thu, 12 Aug 2004 15:23:38 -0400
These patches are better and do --with-openldap-{libs,includes} instead
of trying to be smart and look in lib64 also.
-- dobey
? component/Makefile
? component/Makefile.in
Index: acinclude.m4
===================================================================
RCS file: /cvs/gnome/evolution-exchange/acinclude.m4,v
retrieving revision 1.2
diff -u -r1.2 acinclude.m4
--- acinclude.m4 3 Jun 2004 19:15:55 -0000 1.2
+++ acinclude.m4 12 Aug 2004 19:25:19 -0000
@@ -30,33 +30,23 @@
AC_DEFUN(EVO_LDAP_CHECK, [
default="$1"
- AC_ARG_WITH(openldap, [ --with-openldap=[no/yes/PREFIX] Enable LDAP support in evolution])
+ AC_ARG_ENABLE(openldap, [ --enable-openldap=[no/yes/PREFIX] Enable LDAP support in evolution], with_openldap_prefix="$withval", with_openldap_prefix="/usr")
+ AC_ARG_WITH(openldap-libs,[ --with-openldap-libs=DIR Location of openldap libraries to link with], with_openldap_libs="$withval", with_openldap_libs="$with_openldap/lib")
+ AC_ARG_WITH(openldap-includes,[ --with-openldap-includes=DIR Location of openldap libraries to link with], with_openldap_includes="$withval", with_openldap_includes="$with_openldap/include")
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:=$default}")
- case $ac_cv_with_openldap in
- no|"")
- with_openldap=no
- ;;
- yes)
- with_openldap=/usr
- ;;
- *)
- with_openldap=$ac_cv_with_openldap
- LDAP_CFLAGS="-I$ac_cv_with_openldap/include"
- LDAP_LDFLAGS="-L$ac_cv_with_openldap/lib"
- ;;
- esac
+
+ with_openldap="$ac_cv_with_openldap"
+ LDAP_CFLAGS="-I$with_openldap_includes"
+ LDAP_LDFLAGS="-L$with_openldap_libs"
if test "$with_openldap" != no; then
- AC_DEFINE(HAVE_LDAP, 1, [Define if you have OpenLDAP])
+ AC_DEFINE(HAVE_LDAP,1,[Define if you have LDAP support])
case $with_static_ldap in
no|"")
- if test -f $with_openldap/lib/libldap.la; then
- with_static_ldap=no
- else
- with_static_ldap=yes
- fi
+ with_static_ldap=no
;;
*)
with_static_ldap=yes
@@ -83,13 +73,20 @@
AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
AC_CHECK_LIB(lber, ber_get_tag, [
if test "$with_static_ldap" = "yes"; then
- LDAP_LIBS="$with_openldap/lib/liblber.a $LDAP_LIBS"
+ LDAP_LIBS="$with_openldap_libs/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_libs/libldap.la; then
+ LDAP_LIBS="`. $with_openldap_libs/libldap.la; echo $dependency_libs` $LDAP_LIBS"
+ fi
else
LDAP_LIBS="-llber $LDAP_LIBS"
fi
AC_CHECK_LIB(ldap, ldap_open, [
if test $with_static_ldap = "yes"; then
- LDAP_LIBS="$with_openldap/lib/libldap.a $LDAP_LIBS"
+ LDAP_LIBS="$with_openldap_libs/libldap.a $LDAP_LIBS"
else
LDAP_LIBS="-lldap $LDAP_LIBS"
fi],
@@ -103,7 +100,6 @@
AC_SUBST(LDAP_CFLAGS)
AC_SUBST(LDAP_LIBS)
- AC_SUBST(LDAP_LDFLAGS)
fi
AM_CONDITIONAL(ENABLE_LDAP, test $with_openldap != no)
-])
\ No newline at end of file
+])
? calendar/libical/src/libicalss/icalssyacc.output
? calendar/libical/src/python/Makefile
? calendar/libical/src/python/Makefile.in
? libdb/dist/acinclude.m4
? libdb/dist/aclocal.m4
? libdb/dist/autom4te.cache
? po/notexist
Index: acinclude.m4
===================================================================
RCS file: /cvs/gnome/evolution-data-server/acinclude.m4,v
retrieving revision 1.3
diff -u -r1.3 acinclude.m4
--- acinclude.m4 21 Apr 2004 19:19:01 -0000 1.3
+++ acinclude.m4 12 Aug 2004 19:28:15 -0000
@@ -85,22 +85,16 @@
AC_DEFUN([EVO_LDAP_CHECK], [
default="$1"
- AC_ARG_WITH(openldap, [ --with-openldap=[no/yes/PREFIX] Enable LDAP support in evolution])
+ AC_ARG_ENABLE(openldap, [ --enable-openldap=[no/yes/PREFIX] Enable LDAP support in evolution], with_openldap_prefix="$withval", with_openldap_prefix="/usr")
+ AC_ARG_WITH(openldap-libs,[ --with-openldap-libs=DIR Location of openldap libraries to link with], with_openldap_libs="$withval", with_openldap_libs="$with_openldap/lib")
+ AC_ARG_WITH(openldap-includes,[ --with-openldap-includes=DIR Location of openldap libraries to link with], with_openldap_includes="$withval", with_openldap_includes="$with_openldap/include")
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:=$default}")
- case $ac_cv_with_openldap in
- no|"")
- with_openldap=no
- ;;
- yes)
- with_openldap=/usr
- ;;
- *)
- with_openldap=$ac_cv_with_openldap
- LDAP_CFLAGS="-I$ac_cv_with_openldap/include"
- LDAP_LDFLAGS="-L$ac_cv_with_openldap/lib"
- ;;
- esac
+
+ with_openldap="$ac_cv_with_openldap"
+ LDAP_CFLAGS="-I$with_openldap_includes"
+ LDAP_LDFLAGS="-L$with_openldap_libs"
if test "$with_openldap" != no; then
AC_DEFINE(HAVE_LDAP,1,[Define if you have LDAP support])
@@ -134,20 +128,20 @@
AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
AC_CHECK_LIB(lber, ber_get_tag, [
if test "$with_static_ldap" = "yes"; then
- LDAP_LIBS="$with_openldap/lib/liblber.a $LDAP_LIBS"
+ LDAP_LIBS="$with_openldap_libs/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"
+ if test -f $with_openldap_libs/libldap.la; then
+ LDAP_LIBS="`. $with_openldap_libs/libldap.la; echo $dependency_libs` $LDAP_LIBS"
fi
else
LDAP_LIBS="-llber $LDAP_LIBS"
fi
AC_CHECK_LIB(ldap, ldap_open, [
if test $with_static_ldap = "yes"; then
- LDAP_LIBS="$with_openldap/lib/libldap.a $LDAP_LIBS"
+ LDAP_LIBS="$with_openldap_libs/libldap.a $LDAP_LIBS"
else
LDAP_LIBS="-lldap $LDAP_LIBS"
fi],
@@ -164,6 +158,7 @@
fi
AM_CONDITIONAL(ENABLE_LDAP, test $with_openldap != no)
])
+
# EVO_PTHREAD_CHECK
AC_DEFUN([EVO_PTHREAD_CHECK],[
? calendar/libical/src/libicalss/icalssyacc.output
? calendar/libical/src/python/Makefile
? calendar/libical/src/python/Makefile.in
? libdb/dist/acinclude.m4
? libdb/dist/aclocal.m4
? libdb/dist/autom4te.cache
? po/notexist
Index: acinclude.m4
===================================================================
RCS file: /cvs/gnome/evolution-data-server/acinclude.m4,v
retrieving revision 1.3
diff -u -r1.3 acinclude.m4
--- acinclude.m4 21 Apr 2004 19:19:01 -0000 1.3
+++ acinclude.m4 12 Aug 2004 19:28:15 -0000
@@ -85,22 +85,16 @@
AC_DEFUN([EVO_LDAP_CHECK], [
default="$1"
- AC_ARG_WITH(openldap, [ --with-openldap=[no/yes/PREFIX] Enable LDAP support in evolution])
+ AC_ARG_ENABLE(openldap, [ --enable-openldap=[no/yes/PREFIX] Enable LDAP support in evolution], with_openldap_prefix="$withval", with_openldap_prefix="/usr")
+ AC_ARG_WITH(openldap-libs,[ --with-openldap-libs=DIR Location of openldap libraries to link with], with_openldap_libs="$withval", with_openldap_libs="$with_openldap/lib")
+ AC_ARG_WITH(openldap-includes,[ --with-openldap-includes=DIR Location of openldap libraries to link with], with_openldap_includes="$withval", with_openldap_includes="$with_openldap/include")
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:=$default}")
- case $ac_cv_with_openldap in
- no|"")
- with_openldap=no
- ;;
- yes)
- with_openldap=/usr
- ;;
- *)
- with_openldap=$ac_cv_with_openldap
- LDAP_CFLAGS="-I$ac_cv_with_openldap/include"
- LDAP_LDFLAGS="-L$ac_cv_with_openldap/lib"
- ;;
- esac
+
+ with_openldap="$ac_cv_with_openldap"
+ LDAP_CFLAGS="-I$with_openldap_includes"
+ LDAP_LDFLAGS="-L$with_openldap_libs"
if test "$with_openldap" != no; then
AC_DEFINE(HAVE_LDAP,1,[Define if you have LDAP support])
@@ -134,20 +128,20 @@
AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
AC_CHECK_LIB(lber, ber_get_tag, [
if test "$with_static_ldap" = "yes"; then
- LDAP_LIBS="$with_openldap/lib/liblber.a $LDAP_LIBS"
+ LDAP_LIBS="$with_openldap_libs/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"
+ if test -f $with_openldap_libs/libldap.la; then
+ LDAP_LIBS="`. $with_openldap_libs/libldap.la; echo $dependency_libs` $LDAP_LIBS"
fi
else
LDAP_LIBS="-llber $LDAP_LIBS"
fi
AC_CHECK_LIB(ldap, ldap_open, [
if test $with_static_ldap = "yes"; then
- LDAP_LIBS="$with_openldap/lib/libldap.a $LDAP_LIBS"
+ LDAP_LIBS="$with_openldap_libs/libldap.a $LDAP_LIBS"
else
LDAP_LIBS="-lldap $LDAP_LIBS"
fi],
@@ -164,6 +158,7 @@
fi
AM_CONDITIONAL(ENABLE_LDAP, test $with_openldap != no)
])
+
# EVO_PTHREAD_CHECK
AC_DEFUN([EVO_PTHREAD_CHECK],[
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]