diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 29 |
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 | |||
12 | dnl Check for OpenSSL/SSLeay directories. | 12 | dnl Check for OpenSSL/SSLeay directories. |
13 | AC_MSG_CHECKING([for OpenSSL/SSLeay directory]) | 13 | AC_MSG_CHECKING([for OpenSSL/SSLeay directory]) |
14 | for ssldir in /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local $prefix /usr/pkg ; do | 14 | for 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 | ||
23 | done | 25 | done |
24 | AC_MSG_RESULT($ssldir) | 26 | if test -z "$GOT_SSL" ; then |
27 | AC_MSG_ERROR([Could not find SSLeay / OpenSSL libraries, please install]) | ||
28 | fi | ||
25 | AC_SUBST(ssldir) | 29 | AC_SUBST(ssldir) |
26 | AC_DEFINE_UNQUOTED(ssldir, "$ssldir") | 30 | AC_DEFINE_UNQUOTED(ssldir, "$ssldir") |
27 | if test "$ssldir" != "/usr"; then | 31 | if 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" |
30 | fi | 34 | fi |
31 | LIBS="$LIBS -lssl -lcrypto" | 35 | LIBS="$LIBS -lssl -lcrypto" |
36 | AC_MSG_RESULT($ssldir) | ||
32 | 37 | ||
33 | dnl Check for RSAref library. | 38 | dnl Check for RSAref library. |
34 | AC_MSG_CHECKING([for RSAref library]) | 39 | AC_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 | ||