]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
No getentropy needed if arc4random available.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Jul 2014 10:44:00 +0000 (10:44 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Jul 2014 10:44:00 +0000 (10:44 +0000)
git-svn-id: file:///svn/unbound/trunk@3164 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac

index f70082175b4867e78db7393ea0818a22cfb14d9d..3e25921c1612198387bf5e8e65c6113c51c5256d 100755 (executable)
--- a/configure
+++ b/configure
@@ -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"
 
index 73075844906a8060dd05f1b3f2e16fe67dfbc3a4..9c8b1ff82f1673faf5707906fa2ee00d40cc3d94 100644 (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)