aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 4e8cf97..2222e56 100644
--- a/configure.in
+++ b/configure.in
@@ -106,9 +106,11 @@ AC_ARG_WITH(openldap,
: Search for LDAP in normal directory path
else
: Search for LDAP in specific directory
- LDFLAGS="$LDFLAGS -L${withval}/lib"
- LIBLDAP="-L${withval}/lib"
- LDAP_FLAGS="-I${withval}/include"
+ if test "$withval" != "/usr" ; then
+ LDFLAGS="$LDFLAGS -L${withval}/lib"
+ LIBLDAP="-L${withval}/lib"
+ LDAP_FLAGS="-I${withval}/include"
+ fi
fi
)
if test -z "$HAVE_LDAP"; then