]> granicus.if.org Git - sudo/commitdiff
No need for -lcrypt when using pam.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 29 Aug 2004 15:39:31 +0000 (15:39 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 29 Aug 2004 15:39:31 +0000 (15:39 +0000)
configure
configure.in

index 589f44330b33a09f95da1b428d9e0653017d08d0..feea9810259b8e92a13c59266c51748e3cf378b1 100755 (executable)
--- a/configure
+++ b/configure
@@ -26415,7 +26415,7 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 if test -n "$NEED_SNPRINTF"; then
     LIBOBJS="$LIBOBJS snprintf.$ac_objext"
 fi
-if test -z "$LIB_CRYPT"; then
+if test -z "$LIB_CRYPT" -a "$with_pam" != "yes"; then
     echo "$as_me:$LINENO: checking for crypt" >&5
 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
 if test "${ac_cv_func_crypt+set}" = set; then
index 97ff024d56fadd083c7d672a32946ae1f0710e50..bff371fef95460929a61eab90aa46a5d158427d2 100644 (file)
@@ -1726,7 +1726,7 @@ fi
 dnl
 dnl if crypt(3) not in libc, look elsewhere
 dnl
-if test -z "$LIB_CRYPT"; then
+if test -z "$LIB_CRYPT" -a "$with_pam" != "yes"; then
     AC_CHECK_FUNC(crypt, , [AC_CHECK_LIB(crypt, crypt, [SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"], AC_CHECK_LIB(crypt_d, crypt, [SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"], AC_CHECK_LIB(ufc, crypt, [SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"])))])
 fi
 dnl