diff options
author | Werner Koch <wk@gnupg.org> | 1999-06-01 16:08:57 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-06-01 16:08:57 +0200 |
commit | 3dddf602dd95863dab344486534874b4b561bd3d (patch) | |
tree | 322e4f944eb596a22af9fc4d98f2f000117672a7 /configure.in | |
parent | See ChangeLog: Mon May 31 19:41:10 CEST 1999 Werner Koch (diff) | |
download | gnupg2-3dddf602dd95863dab344486534874b4b561bd3d.tar.xz gnupg2-3dddf602dd95863dab344486534874b4b561bd3d.zip |
See ChangeLog: Tue Jun 1 16:01:46 CEST 1999 Werner Koch
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/configure.in b/configure.in index a67516c41..2faf657c2 100644 --- a/configure.in +++ b/configure.in @@ -330,20 +330,40 @@ if test "$ac_cv_header_sys_shm_h" = "yes"; then AC_DEFINE(USE_SHM_COPROCESSING) fi +dnl dnl check whether we have a random device +dnl if test "$try_dev_random" = yes ; then -AC_CACHE_CHECK(for random device, ac_cv_have_dev_random, -[if test -c "$NAME_OF_DEV_RANDOM" && test -c "$NAME_OF_DEV_URANDOM" ; then - ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi]) -if test "$ac_cv_have_dev_random" = yes; then - AC_DEFINE(HAVE_DEV_RANDOM) -fi + AC_CACHE_CHECK(for random device, ac_cv_have_dev_random, + [if test -c "$NAME_OF_DEV_RANDOM" && test -c "$NAME_OF_DEV_URANDOM" ; then + ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi]) + if test "$ac_cv_have_dev_random" = yes; then + AC_DEFINE(HAVE_DEV_RANDOM) + fi else AC_MSG_CHECKING(for random device) ac_cv_have_dev_random=no AC_MSG_RESULT(has been disabled) fi +dnl +dnl and whether this device supports ioctl +dnl (Note, that we should do a real test here) +dnl +if test "$ac_cv_have_dev_random" = yes ; then + AC_CHECK_HEADERS(linux/random.h) + AC_CACHE_CHECK(for random device ioctl, ac_cv_have_dev_random_ioctl, + [ if test "$ac_cv_header_linux_random_h" = yes ; then + ac_cv_have_dev_random_ioctl=yes; + else + ac_cv_have_dev_random_ioctl=no; + fi + ]) + if test "$ac_cv_have_dev_random_ioctl" = yes; then + AC_DEFINE(HAVE_DEV_RANDOM_IOCTL) + fi +fi + dnl dnl Figure out the default linkage mode for cipher modules |