--- configure.in.orig 2002-11-09 15:10:55.000000000 +0000 +++ configure.in 2002-11-09 15:46:01.000000000 +0000 @@ -104,17 +104,19 @@ elif test -z "$withval" -o "$withval" = 'yes' then : Search for LDAP in normal directory path + HAVE_LDAP=1 + LIBLDAP="-lldap -lresolv -llber" else : Search for LDAP in specific directory LDFLAGS="$LDFLAGS -L${withval}/lib" - LIBLDAP="-L${withval}/lib" + LIBLDAP="-L${withval}/lib -lldap -llber -lresolv" LDAP_FLAGS="-I${withval}/include" fi ) if test -z "$HAVE_LDAP"; then HAVE_LDAP=0 - AC_CHECK_LIB(ldap, ldap_init, HAVE_LDAP=1 LIBLDAP="$LIBLDAP -lldap -llber", , - -llber) + AC_CHECK_LIB(ldap, ldap_init, HAVE_LDAP=1 LIBLDAP="$LIBLDAP -lldap -llber -lresolv", , + -llber -lresolv) fi AC_SUBST(LDAP_FLAGS)