No getentropy needed if arc4random available.

git-svn-id: file:///svn/unbound/trunk@3164 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2014-07-11 10:44:00 +00:00
parent b9af2fa48d
commit d5d87b3b13
2 changed files with 5 additions and 5 deletions

4
configure vendored
View File

@ -18157,8 +18157,7 @@ esac
;;
esac
fi
for ac_func in getentropy
for ac_func in getentropy
do :
ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
if test "x$ac_cv_func_getentropy" = xyes; then :
@ -18257,6 +18256,7 @@ done
fi
done
fi
fi
LIBOBJ_WITHOUT_CTIME="$LIBOBJS"

View File

@ -976,8 +976,7 @@ if test "$USE_NSS" = "no"; then
if test "$ac_cv_func_arc4random" = "no" -o "$ac_cv_func_arc4random_uniform" = "no"; then
AC_LIBOBJ(explicit_bzero)
AC_LIBOBJ(arc4_lock)
fi
AC_CHECK_FUNCS([getentropy],,[
AC_CHECK_FUNCS([getentropy],,[
case `uname` in
Darwin)
AC_LIBOBJ(getentropy_osx)
@ -1000,7 +999,8 @@ if test "$USE_NSS" = "no"; then
])
;;
esac
])
])
fi
fi
LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
AC_SUBST(LIBOBJ_WITHOUT_CTIME)