summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in29
1 files changed, 18 insertions, 11 deletions
diff --git a/configure.in b/configure.in
index b16c12919..244a3ce18 100644
--- a/configure.in
+++ b/configure.in
@@ -12,16 +12,20 @@ if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
12dnl Check for OpenSSL/SSLeay directories. 12dnl Check for OpenSSL/SSLeay directories.
13AC_MSG_CHECKING([for OpenSSL/SSLeay directory]) 13AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
14for ssldir in /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local $prefix /usr/pkg ; do 14for ssldir in /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local $prefix /usr/pkg ; do
15 if test -f "$ssldir/include/openssl/crypto.h"; then 15 if test -f "$ssldir/include/openssl/crypto.h"; then
16 AC_DEFINE(HAVE_OPENSSL) 16 AC_DEFINE(HAVE_OPENSSL)
17 break 17 GOT_SSL="yes"
18 fi 18 break
19 if test -f "$ssldir/include/ssl/crypto.h"; then 19 fi
20 AC_DEFINE(HAVE_SSL) 20 if test -f "$ssldir/include/ssl/crypto.h"; then
21 break 21 AC_DEFINE(HAVE_SSL)
22 fi 22 GOT_SSL="yes"
23 break
24 fi
23done 25done
24AC_MSG_RESULT($ssldir) 26if test -z "$GOT_SSL" ; then
27 AC_MSG_ERROR([Could not find SSLeay / OpenSSL libraries, please install])
28fi
25AC_SUBST(ssldir) 29AC_SUBST(ssldir)
26AC_DEFINE_UNQUOTED(ssldir, "$ssldir") 30AC_DEFINE_UNQUOTED(ssldir, "$ssldir")
27if test "$ssldir" != "/usr"; then 31if test "$ssldir" != "/usr"; then
@@ -29,6 +33,7 @@ if test "$ssldir" != "/usr"; then
29 LIBS="$LIBS -L$ssldir/lib" 33 LIBS="$LIBS -L$ssldir/lib"
30fi 34fi
31LIBS="$LIBS -lssl -lcrypto" 35LIBS="$LIBS -lssl -lcrypto"
36AC_MSG_RESULT($ssldir)
32 37
33dnl Check for RSAref library. 38dnl Check for RSAref library.
34AC_MSG_CHECKING([for RSAref library]) 39AC_MSG_CHECKING([for RSAref library])
@@ -81,7 +86,8 @@ AC_ARG_WITH(random,
81 AC_CHECK_FILE("/dev/urandom", 86 AC_CHECK_FILE("/dev/urandom",
82 [ 87 [
83 RANDOM_POOL="/dev/urandom"; 88 RANDOM_POOL="/dev/urandom";
84 AC_DEFINE(RANDOM_POOL, "$RANDOM_POOL") 89 AC_SUBST(RANDOM_POOL)
90 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
85 ] 91 ]
86 ) 92 )
87 ] 93 ]
@@ -93,7 +99,8 @@ AC_ARG_WITH(egd-pool,
93 [ 99 [
94 RANDOM_POOL="$withval"; 100 RANDOM_POOL="$withval";
95 AC_DEFINE(HAVE_EGD) 101 AC_DEFINE(HAVE_EGD)
96 AC_DEFINE(RANDOM_POOL, "$RANDOM_POOL") 102 AC_SUBST(RANDOM_POOL)
103 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
97 ] 104 ]
98) 105)
99 106