From: Daniel Stenberg Date: Tue, 4 Jul 2017 09:33:51 +0000 (+0200) Subject: configure: try ldap/lber in reversed order first X-Git-Tag: curl-7_55_0~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c53438481068cf712fc96e97205acb8df489894d;p=curl configure: try ldap/lber in reversed order first When scanning for which LDAP libraries to use, try the -lldap -llber combination before the reversed order since it has a greater chance of working when linking with libcurl statically. Fixes #1619 Closes #1634 Reported-by: David E. Narváez --- diff --git a/acinclude.m4 b/acinclude.m4 index 1e1cf790c..fe0e020b0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -790,8 +790,8 @@ AC_DEFUN([CURL_CHECK_LIBS_LDAP], [ # for x_nlibs in '' "$u_libs" \ '-lldap' \ - '-llber -lldap' \ '-lldap -llber' \ + '-llber -lldap' \ '-lldapssl -lldapx -lldapsdk' \ '-lldapsdk -lldapx -lldapssl' ; do if test "$curl_cv_ldap_LIBS" = "unknown"; then