]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
arc4random_uniform does not need the support functions, and comments.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Sat, 12 Jul 2014 09:46:15 +0000 (09:46 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Sat, 12 Jul 2014 09:46:15 +0000 (09:46 +0000)
git-svn-id: file:///svn/unbound/trunk@3177 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac

index 5d50bd79e808685ffc7b9f0951858b881bb21f0b..e34161aee2ebeab1c8c11963544a798c3ead2d33 100755 (executable)
--- a/configure
+++ b/configure
@@ -18144,7 +18144,7 @@ esac
 fi
 
 
-       if test "$ac_cv_func_arc4random" = "no" -o "$ac_cv_func_arc4random_uniform" = "no"; then
+       if test "$ac_cv_func_arc4random" = "no"; then
                case " $LIBOBJS " in
   *" explicit_bzero.$ac_objext "* ) ;;
   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
@@ -18167,14 +18167,14 @@ _ACEOF
 
 else
 
-               if test "$USE_WINSOCK" = 1; then
+                   if test "$USE_WINSOCK" = 1; then
                        case " $LIBOBJS " in
   *" getentropy_win.$ac_objext "* ) ;;
   *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
  ;;
 esac
 
-               else
+                   else
                        case `uname` in
                        Darwin)
                                case " $LIBOBJS " in
@@ -18228,6 +18228,7 @@ fi
 done
 
                                if test "$ac_cv_header_sys_sha2_h" = "yes"; then
+                                       # this lib needed for sha2 on solaris
                                        LIBS="$LIBS -lmd"
                                fi
                        ;;
@@ -18319,7 +18320,7 @@ fi
 
                        ;;
                        esac
-               fi
+                   fi
 
 fi
 done
index 54e7cabb20731aeb5f0f517e5155b24c796659bc..bb1f16ed7790e1a472c36afe2e316ec4bf31b03a 100644 (file)
@@ -973,13 +973,13 @@ AC_SUBST(LIBOBJ_WITHOUT_CTIMEARC4)
 if test "$USE_NSS" = "no"; then
        AC_REPLACE_FUNCS(arc4random)
        AC_REPLACE_FUNCS(arc4random_uniform)
-       if test "$ac_cv_func_arc4random" = "no" -o "$ac_cv_func_arc4random_uniform" = "no"; then
+       if test "$ac_cv_func_arc4random" = "no"; then
                AC_LIBOBJ(explicit_bzero)
                AC_LIBOBJ(arc4_lock)
                AC_CHECK_FUNCS([getentropy],,[
-               if test "$USE_WINSOCK" = 1; then
+                   if test "$USE_WINSOCK" = 1; then
                        AC_LIBOBJ(getentropy_win)
-               else
+                   else
                        case `uname` in
                        Darwin)
                                AC_LIBOBJ(getentropy_osx)
@@ -992,6 +992,7 @@ if test "$USE_NSS" = "no"; then
                                        ])
                                ], [AC_INCLUDES_DEFAULT])
                                if test "$ac_cv_header_sys_sha2_h" = "yes"; then
+                                       # this lib needed for sha2 on solaris
                                        LIBS="$LIBS -lmd"
                                fi
                        ;;
@@ -1004,7 +1005,7 @@ if test "$USE_NSS" = "no"; then
                                AC_SEARCH_LIBS([clock_gettime], [rt])
                        ;;
                        esac
-               fi
+                   fi
                ])
        fi
 fi