summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-08 10:07:08 +1100
committerDamien Miller <djm@mindrot.org>2001-02-08 10:07:08 +1100
commit4864e8f9c023509845e772b43bbd98fdf81d6e72 (patch)
tree1e544c716fb0f69289fda3ce9b0bfba8390b5946 /configure.in
parent3d0a7d59cb18c33ab7e72acf0761c6c7aa469e66 (diff)
- (djm) Fix linking of sftp, don't need arc4random any more.
- (djm) Try to use shell that supports "test -S" for EGD socket search. Based on patch from Tim Rice <tim@multitalents.net>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 8f7f5d2b..e99d0160 100644
--- a/configure.in
+++ b/configure.in
@@ -14,6 +14,9 @@ AC_SUBST(PERL)
AC_PATH_PROG(ENT, ent)
AC_SUBST(ENT)
AC_PATH_PROGS(FILEPRIV, filepriv, true, /sbin:/usr/sbin)
+AC_PATH_PROG(TEST_MINUS_S_SH, bash)
+AC_PATH_PROG(TEST_MINUS_S_SH, ksh)
+AC_PATH_PROG(TEST_MINUS_S_SH, sh)
if test -z "$AR" ; then
AC_MSG_ERROR([*** 'ar' missing, please install or fix your \$PATH ***])
@@ -1079,14 +1082,18 @@ AC_ARG_WITH(egd-pool,
if test -z "$RANDOM_POOL" ; then
AC_MSG_CHECKING(for PRNGD/EGD socket)
# Insert other locations here
- for egdsock in /var/run/egd-pool /etc/entropy ; do
- if test -S $egdsock ; then
+ for egdsock in /var/run/egd-pool /etc/entropy /tmp/entropy ; do
+ if $TEST_MINUS_S_SH -c "test -S $egdsock -o -p $egdsock" ; then
EGD_SOCKET="$egdsock"
AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
- AC_MSG_RESULT($egdsock)
break;
fi
done
+ if test -x "$EGD_SOCKET" ; then
+ AC_MSG_RESULT($EGD_SOCKET)
+ else
+ AC_MSG_RESULT(not found)
+ fi
fi
]
)