mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
Fix check that determines whether -llber is required.
This commit is contained in:
parent
9a07c1a7f1
commit
dde5143f08
9
configure
vendored
9
configure
vendored
@ -21979,9 +21979,16 @@ echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
|
|||||||
ac_res=$ac_cv_search_ber_set_option
|
ac_res=$ac_cv_search_ber_set_option
|
||||||
if test "$ac_res" != no; then
|
if test "$ac_res" != no; then
|
||||||
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
||||||
LDAP_LIBS="$LDAP_LIBS -llber"
|
found=yes
|
||||||
|
else
|
||||||
|
found=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test $found="yes"; then
|
||||||
|
case "$LIBS" in
|
||||||
|
*-llber*) LDAP_LIBS="$LDAP_LIBS -llber";;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
{ echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
|
{ echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
|
||||||
echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
|
echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
@ -2299,8 +2299,13 @@ if test ${with_ldap-'no'} != "no"; then
|
|||||||
else
|
else
|
||||||
AC_MSG_RESULT([$LDAP_LIBS])
|
AC_MSG_RESULT([$LDAP_LIBS])
|
||||||
fi
|
fi
|
||||||
dnl check for ber_set_option in -llber
|
dnl check if we need to link with -llbre for ber_set_option
|
||||||
AC_SEARCH_LIBS([ber_set_option], [lber], [LDAP_LIBS="$LDAP_LIBS -llber"])
|
AC_SEARCH_LIBS([ber_set_option], [lber], [found=yes], [found=no])
|
||||||
|
if test $found="yes"; then
|
||||||
|
case "$LIBS" in
|
||||||
|
*-llber*) LDAP_LIBS="$LDAP_LIBS -llber";;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
dnl check if ldap.h includes lber.h for us
|
dnl check if ldap.h includes lber.h for us
|
||||||
AC_MSG_CHECKING([whether lber.h is needed])
|
AC_MSG_CHECKING([whether lber.h is needed])
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user