summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2006-11-22 03:00:30 +0000
committerRich Megginson <rmeggins@redhat.com>2006-11-22 03:00:30 +0000
commitd8b1c393b1baca17b2e0ed9097d5e1272e421ffd (patch)
tree86d4d36ad70ba8dd8a6923e7a4e9dc4ac11048eb /m4
parent4efc4a2ac13943b65f550e007c70265b835e8dd7 (diff)
downloadds-d8b1c393b1baca17b2e0ed9097d5e1272e421ffd.tar.gz
ds-d8b1c393b1baca17b2e0ed9097d5e1272e421ffd.tar.xz
ds-d8b1c393b1baca17b2e0ed9097d5e1272e421ffd.zip
Bug: 210947
Description: parameterizing the hardcoded paths (phase 3. installed binaries, change log, setup) Fix Description: RHEL4 64 is not able to find ldapsearch because the ldapsdk_bindir is hardcoded to /usr/lib/mozldap6. We should get ldapsdk_bindir from pkg-config or just simply use $libdir/mozldap6. Added -o -z "$ldapsdk_bindir" check suggested by nhosoi Reviewed by: nhosoi (Thanks!)
Diffstat (limited to 'm4')
-rw-r--r--m4/mozldap.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/mozldap.m4 b/m4/mozldap.m4
index 6db01ea0..1ac9d91b 100644
--- a/m4/mozldap.m4
+++ b/m4/mozldap.m4
@@ -72,7 +72,7 @@ AC_MSG_RESULT(no))
# if LDAPSDK is not found yet, try pkg-config
# last resort
-if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir"; then
+if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
AC_MSG_CHECKING(for mozldap with pkg-config)
AC_PATH_PROG(PKG_CONFIG, pkg-config)
if test -n "$PKG_CONFIG"; then
@@ -80,6 +80,7 @@ if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir"; then
ldapsdk_inc=`$PKG_CONFIG --cflags-only-I mozldap6`
ldapsdk_lib=`$PKG_CONFIG --libs-only-L mozldap6`
ldapsdk_libdir=`$PKG_CONFIG --libs-only-L mozldap6 | sed -e s/-L// | sed -e s/\ *$//`
+ ldapsdk_bindir=`$PKG_CONFIG --variable=bindir mozldap6`
AC_MSG_RESULT([using system mozldap6])
else
AC_MSG_ERROR([LDAPSDK not found, specify with --with-ldapsdk[-inc|-lib].])
@@ -90,7 +91,9 @@ if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
AC_MSG_ERROR([LDAPSDK not found, specify with --with-ldapsdk[-inc|-lib].])
fi
dnl default path for the ldap c sdk tools (see [210947] for more details)
-ldapsdk_bindir=/usr/lib/mozldap6
+if test -z "$ldapsdk_bindir" ; then
+ ldapsdk_bindir=$libdir/mozldap6
+fi
dnl make sure the ldap sdk version is 6 or greater - we do not support
dnl the old 5.x or prior versions - the ldap server code expects the new