11544 |
|
|
11545 |
|
|
11546 |
# |
# |
11547 |
|
# crypto Need by gssapi under FreeBSD 5.4 |
11548 |
|
# |
11549 |
|
echo "$as_me:$LINENO: checking for library containing RC4" >&5 |
11550 |
|
echo $ECHO_N "checking for library containing RC4... $ECHO_C" >&6 |
11551 |
|
if test "${ac_cv_search_RC4+set}" = set; then |
11552 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11553 |
|
else |
11554 |
|
ac_func_search_save_LIBS=$LIBS |
11555 |
|
ac_cv_search_RC4=no |
11556 |
|
cat >conftest.$ac_ext <<_ACEOF |
11557 |
|
/* confdefs.h. */ |
11558 |
|
_ACEOF |
11559 |
|
cat confdefs.h >>conftest.$ac_ext |
11560 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11561 |
|
/* end confdefs.h. */ |
11562 |
|
|
11563 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
11564 |
|
#ifdef __cplusplus |
11565 |
|
extern "C" |
11566 |
|
#endif |
11567 |
|
/* We use char because int might match the return type of a gcc2 |
11568 |
|
builtin and then its argument prototype would still apply. */ |
11569 |
|
char RC4 (); |
11570 |
|
int |
11571 |
|
main () |
11572 |
|
{ |
11573 |
|
RC4 (); |
11574 |
|
; |
11575 |
|
return 0; |
11576 |
|
} |
11577 |
|
_ACEOF |
11578 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
11579 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11580 |
|
(eval $ac_link) 2>conftest.er1 |
11581 |
|
ac_status=$? |
11582 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11583 |
|
rm -f conftest.er1 |
11584 |
|
cat conftest.err >&5 |
11585 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11586 |
|
(exit $ac_status); } && |
11587 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
11588 |
|
|| test ! -s conftest.err' |
11589 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11590 |
|
(eval $ac_try) 2>&5 |
11591 |
|
ac_status=$? |
11592 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11593 |
|
(exit $ac_status); }; } && |
11594 |
|
{ ac_try='test -s conftest$ac_exeext' |
11595 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11596 |
|
(eval $ac_try) 2>&5 |
11597 |
|
ac_status=$? |
11598 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11599 |
|
(exit $ac_status); }; }; then |
11600 |
|
ac_cv_search_RC4="none required" |
11601 |
|
else |
11602 |
|
echo "$as_me: failed program was:" >&5 |
11603 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11604 |
|
|
11605 |
|
fi |
11606 |
|
rm -f conftest.err conftest.$ac_objext \ |
11607 |
|
conftest$ac_exeext conftest.$ac_ext |
11608 |
|
if test "$ac_cv_search_RC4" = no; then |
11609 |
|
for ac_lib in crypto; do |
11610 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
11611 |
|
cat >conftest.$ac_ext <<_ACEOF |
11612 |
|
/* confdefs.h. */ |
11613 |
|
_ACEOF |
11614 |
|
cat confdefs.h >>conftest.$ac_ext |
11615 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11616 |
|
/* end confdefs.h. */ |
11617 |
|
|
11618 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
11619 |
|
#ifdef __cplusplus |
11620 |
|
extern "C" |
11621 |
|
#endif |
11622 |
|
/* We use char because int might match the return type of a gcc2 |
11623 |
|
builtin and then its argument prototype would still apply. */ |
11624 |
|
char RC4 (); |
11625 |
|
int |
11626 |
|
main () |
11627 |
|
{ |
11628 |
|
RC4 (); |
11629 |
|
; |
11630 |
|
return 0; |
11631 |
|
} |
11632 |
|
_ACEOF |
11633 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
11634 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11635 |
|
(eval $ac_link) 2>conftest.er1 |
11636 |
|
ac_status=$? |
11637 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11638 |
|
rm -f conftest.er1 |
11639 |
|
cat conftest.err >&5 |
11640 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11641 |
|
(exit $ac_status); } && |
11642 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
11643 |
|
|| test ! -s conftest.err' |
11644 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11645 |
|
(eval $ac_try) 2>&5 |
11646 |
|
ac_status=$? |
11647 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11648 |
|
(exit $ac_status); }; } && |
11649 |
|
{ ac_try='test -s conftest$ac_exeext' |
11650 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11651 |
|
(eval $ac_try) 2>&5 |
11652 |
|
ac_status=$? |
11653 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11654 |
|
(exit $ac_status); }; }; then |
11655 |
|
ac_cv_search_RC4="-l$ac_lib" |
11656 |
|
break |
11657 |
|
else |
11658 |
|
echo "$as_me: failed program was:" >&5 |
11659 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11660 |
|
|
11661 |
|
fi |
11662 |
|
rm -f conftest.err conftest.$ac_objext \ |
11663 |
|
conftest$ac_exeext conftest.$ac_ext |
11664 |
|
done |
11665 |
|
fi |
11666 |
|
LIBS=$ac_func_search_save_LIBS |
11667 |
|
fi |
11668 |
|
echo "$as_me:$LINENO: result: $ac_cv_search_RC4" >&5 |
11669 |
|
echo "${ECHO_T}$ac_cv_search_RC4" >&6 |
11670 |
|
if test "$ac_cv_search_RC4" != no; then |
11671 |
|
test "$ac_cv_search_RC4" = "none required" || LIBS="$ac_cv_search_RC4 $LIBS" |
11672 |
|
|
11673 |
|
fi |
11674 |
|
|
11675 |
|
|
11676 |
|
# |
11677 |
# crypt Needed by roken under FreeBSD 4.6. |
# crypt Needed by roken under FreeBSD 4.6. |
11678 |
# |
# |
11679 |
echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
echo "$as_me:$LINENO: checking for library containing crypt" >&5 |