summary refs log tree commit diff
path: root/pkgs/applications/networking/irc/wraith/configure.patch
blob: 2ecba77920ebcaac4fcc5753d37637a7ba23d4ab (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- a/configure
+++ b/configure
@@ -6143,53 +6143,8 @@ rm -f confcache
 #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
 #AC_CHECK_HEADERS(zlib.h)
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
-$as_echo_n "checking for path to OpenSSL... " >&6; }
-
-
-# Check whether --with-openssl was given.
-if test "${with_openssl+set}" = set; then :
-  withval=$with_openssl; with_openssl_path=$withval
-else
-  with_openssl_path=auto
-fi
-
-
-
-cf_openssl_basedir=""
-if test "$with_openssl_path" != "auto"; then
-    cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
-else
-    for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
-    if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
-      cf_openssl_basedir="${dirs}"
-      break
-    fi
-  done
-  unset dirs
-fi
-if test ! -z "$cf_openssl_basedir"; then
-  if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
-    SSL_INCLUDES="-I${cf_openssl_basedir}/include"
-    SSL_LIBS="-L${cf_openssl_basedir}/lib"
-  else
-        cf_openssl_basedir=""
-  fi
-else
-    if test -f "/usr/include/openssl/opensslv.h" ; then
-    cf_openssl_basedir="/usr"
-  fi
-fi
-
-if test ! -z "$cf_openssl_basedir"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
-$as_echo "$cf_openssl_basedir" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
-  as_fn_error 1 "OpenSSL is required." "$LINENO" 5
-fi
-unset cf_openssl_basedir
+SSL_INCLUDES="-I@openssl.dev@/include"
+SSL_LIBS="-L@openssl-lib@/lib"
 
 save_CXX="$CXX"
 CXX="$CXX $SSL_INCLUDES"