blob: a3ca7b8e0a1e95304171b0021a6dca5ce25f8d33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-aa,v 1.2 2002/11/14 22:21:14 seb Exp $
--- configure.in.orig Fri Oct 11 22:56:29 2002
+++ configure.in
@@ -114,6 +114,13 @@ target=$save_target
dnl ltconfig might not have found support for shared libs
dnl just do static libs if so.
+
+_build_libtool_libs=`${CONFIG_SHELL-/bin/sh} $srcdir/libtool --config | grep '^build_libtool_libs='`
+case "x$_build_libtool_libs" in
+ x*=yes) ac_cv_can_build_shared=yes;;
+ x*) ac_cv_can_build_shared=no;;
+esac
+
if test "$ac_cv_can_build_shared" = no; then
enable_shared=no
enable_static=yes
@@ -832,6 +839,9 @@ AC_SUBST(LTGETNAMEINFOOBJS)
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
AC_SUBST(LIBOBJS)
AC_SUBST(LTLIBOBJS)
+
+dnl Check for /dev/urandom
+AC_CHECK_FILE(/dev/urandom, AC_DEFINE_UNQUOTED(SASL_DEV_RANDOM, "/dev/urandom"))
AC_C_CONST
AC_C_INLINE
|