aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-03-20 20:08:44 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-03-20 20:08:44 +0000
commitc37cdbe2cf14c4159623c8e64769afa22fc9f40b (patch)
tree58d69780a0a99e79eefaaed162cd64aa6e370f9e /configure.ac
parentc0a30b04c267bf553e5337e8db8cf76ab2bc20e9 (diff)
Fixed a problem where curl-config --protocols could erroneously show LDAPS
support when curl didn't even have regular LDAP support. It looks like this could happen when the --enable-ldaps configure switch is given but configure couldn't find the LDAP headers or libraries.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7a944431a..15d3e93de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -625,6 +625,8 @@ if test x$CURL_DISABLE_LDAP != x1 ; then
AC_MSG_WARN(["$LDAPLIBNAME" is not an LDAP library: LDAP disabled])
AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])
AC_SUBST(CURL_DISABLE_LDAP, [1])])
+ AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
+ AC_SUBST(CURL_DISABLE_LDAPS, [1])
else
dnl Try to find the right ldap libraries for this system
CURL_CHECK_LIBS_LDAP
@@ -633,6 +635,8 @@ if test x$CURL_DISABLE_LDAP != x1 ; then
AC_MSG_WARN([Cannot find libraries for LDAP support: LDAP disabled])
AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])
AC_SUBST(CURL_DISABLE_LDAP, [1])
+ AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
+ AC_SUBST(CURL_DISABLE_LDAPS, [1])
;;
esac
fi
@@ -648,6 +652,8 @@ if test x$CURL_DISABLE_LDAP != x1 ; then
AC_MSG_WARN(["$LBERLIBNAME" is not an LBER library: LDAP disabled])
AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])
AC_SUBST(CURL_DISABLE_LDAP, [1])])
+ AC_DEFINE(CURL_DISABLE_LDAPS, 1, [to disable LDAPS])
+ AC_SUBST(CURL_DISABLE_LDAPS, [1])
fi
fi
fi