Don't look for stuff in /dev on AROS during configure, as this pops up an ugly 'Please insert disk' dialog box.
This commit is contained in:
parent
249c2cd33f
commit
9bdb855d9a
|
@ -6376,24 +6376,30 @@ done
|
|||
|
||||
|
||||
|
||||
if test -c "/dev/random"; then
|
||||
UNAME=`uname`
|
||||
|
||||
|
||||
if [ $UNAME != "AROS" ]; then
|
||||
|
||||
if test -c "/dev/random"; then
|
||||
|
||||
$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -c "/dev/urandom"; then
|
||||
if test -c "/dev/urandom"; then
|
||||
|
||||
$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -c "/dev/arandom"; then
|
||||
if test -c "/dev/arandom"; then
|
||||
|
||||
$as_echo "#define HAVE_DEV_ARANDOM 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5
|
||||
|
|
23
configure.ac
23
configure.ac
|
@ -171,18 +171,29 @@ dnl ##############################################
|
|||
dnl check for various RNG/PRNG devices
|
||||
dnl ##############################################
|
||||
|
||||
if test -c "/dev/random"; then
|
||||
UNAME=`uname`
|
||||
|
||||
dnl ##############################################
|
||||
dnl AROS pops up a "Please insert disk" dialog for /dev
|
||||
dnl if script looks for devices (which don't exist)
|
||||
dnl so don't even try looking.
|
||||
dnl ##############################################
|
||||
|
||||
if [[ $UNAME != "AROS" ]]; then
|
||||
|
||||
if test -c "/dev/random"; then
|
||||
AC_DEFINE(HAVE_DEV_RANDOM, [1], [Has /dev/random])
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -c "/dev/urandom"; then
|
||||
if test -c "/dev/urandom"; then
|
||||
AC_DEFINE(HAVE_DEV_URANDOM, [1], [Has /dev/urandom])
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -c "/dev/arandom"; then
|
||||
if test -c "/dev/arandom"; then
|
||||
AC_DEFINE(HAVE_DEV_ARANDOM, [1], [Has /dev/arandom])
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
dnl ##############################################
|
||||
dnl Checks for various platform specific libraries
|
||||
|
|
Loading…
Reference in New Issue