fi
-echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
-echo "configure:1457: checking for main in -lcrypto" >&5
-ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
+echo "configure:1457: checking for main in -lk5crypto" >&5
+ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lcrypto $LIBS"
+LIBS="-lk5crypto $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1465 "configure"
#include "confdefs.h"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- crypto="crypto"
+ crypto="k5crypto"
else
echo "$ac_t""no" 1>&6
-echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
-echo "configure:1491: checking for main in -lk5crypto" >&5
-ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
+echo "configure:1491: checking for main in -lcrypto" >&5
+ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lk5crypto $LIBS"
+LIBS="-lcrypto $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1499 "configure"
#include "confdefs.h"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- crypto="k5crypto"
+ crypto="crypto"
else
echo "$ac_t""no" 1>&6
fi
elif test -d /usr/include/kerberosIV; then
MR_INCLUDE(/usr/include/kerberosIV)
fi
-AC_CHECK_LIB(crypto, main, crypto="crypto",
- [AC_CHECK_LIB(k5crypto, main, crypto="k5crypto")])
+AC_CHECK_LIB(k5crypto, main, crypto="k5crypto",
+ [AC_CHECK_LIB(crypto, main, crypto="crypto")])
AC_CHECK_LIB(krb4, krb_rd_req,
[KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto}"],
[AC_CHECK_LIB(krb, krb_rd_req,