[asterisk-commits] file: trunk r77875 - in /trunk: configure configure.ac

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 1 13:56:32 CDT 2007


Author: file
Date: Wed Aug  1 13:56:31 2007
New Revision: 77875

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77875
Log:
Don't look for /dev/urandom when cross compiling. Just assume it is not available.

Modified:
    trunk/configure
    trunk/configure.ac

Modified: trunk/configure
URL: http://svn.digium.com/view/asterisk/trunk/configure?view=diff&rev=77875&r1=77874&r2=77875
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Wed Aug  1 13:56:31 2007
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 77864 .
+# From configure.ac Revision: 77866 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61.
 #
@@ -15454,7 +15454,9 @@
 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
       conftest$ac_exeext conftest.$ac_ext
 
-{ echo "$as_me:$LINENO: checking for /dev/urandom" >&5
+if test "${cross_compiling}" = "no";
+then
+  { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
 if test "${ac_cv_file__dev_urandom+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -15479,6 +15481,7 @@
 
 fi
 
+fi
 
 
     if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1" -a "${USE_PTHREAD_RWLOCK_INITIALIZER}" != "no"; then

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=77875&r1=77874&r2=77875
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Wed Aug  1 13:56:31 2007
@@ -322,7 +322,10 @@
 AC_MSG_RESULT(no)
 )
 
-AC_CHECK_FILE(/dev/urandom, AC_DEFINE([HAVE_DEV_URANDOM], 1, [Define to 1 if your system has /dev/urandom.]))
+if test "${cross_compiling}" = "no";
+then
+  AC_CHECK_FILE(/dev/urandom, AC_DEFINE([HAVE_DEV_URANDOM], 1, [Define to 1 if your system has /dev/urandom.]))
+fi
 
 AST_C_DEFINE_CHECK([PTHREAD_RWLOCK_INITIALIZER], [PTHREAD_RWLOCK_INITIALIZER], [pthread.h])
 AST_C_DEFINE_CHECK([PTHREAD_RWLOCK_PREFER_WRITER_NP], [PTHREAD_RWLOCK_PREFER_WRITER_NP], [pthread.h])




More information about the asterisk-commits mailing list