summaryrefslogtreecommitdiff
path: root/net-analyzer/ike-scan/files/ike-scan-1.9.5-openssl-libdir.patch
blob: 0ee12dc2f90736747ebebe5fc269e40659500477 (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
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
TODO: switch to pkgconfig
--- a/configure.ac
+++ b/configure.ac
@@ -187,49 +187,9 @@ AC_ARG_WITH(openssl,
    [
       if test "x$withval" != "xno" ; then
          AC_MSG_RESULT(yes)
-         for ssldir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
-            if test -f "${ssldir}/include/openssl/ssl.h"; then
-               found_openssl="yes"
-               openssl_header_dir="${ssldir}/include"
-               AC_MSG_NOTICE([Found ${ssldir}/include/openssl/ssl.h])
-               break
-            fi
-            if test -f "${ssldir}/openssl/ssl.h"; then
-               found_openssl="yes"
-               openssl_header_dir="${ssldir}"
-               AC_MSG_NOTICE([Found ${ssldir}/openssl/ssl.h])
-               break
-            fi
-         done
-         if test x$found_openssl != xyes; then
-            AC_MSG_ERROR([Cannot find OpenSSL header files])
-         else
-            AC_MSG_NOTICE([OpenSSL header files found in $openssl_header_dir])
-            CPPFLAGS="-I${openssl_header_dir} ${CPPFLAGS}"
-         fi
-         if test -f "${ssldir}/lib/libcrypto.so"; then
-            openssl_lib_dir="${ssldir}/lib"
-            AC_MSG_NOTICE([Found ${ssldir}/lib/libcrypto.so])
-         elif test -f "${ssldir}/libcrypto.so"; then
-            openssl_lib_dir="${ssldir}"
-            AC_MSG_NOTICE([Found ${ssldir}/libcrypto.so])
-         elif test -f "${ssldir}/lib/libcrypto.dylib"; then
-            openssl_lib_dir="${ssldir}/lib"
-            AC_MSG_NOTICE([Found ${ssldir}/lib/libcrypto.dylib])
-         elif test -f "${ssldir}/libcrypto.dylib"; then
-            openssl_lib_dir="${ssldir}"
-            AC_MSG_NOTICE([Found ${ssldir}/libcrypto.dylib])
-         elif test -f "${ssldir}/lib/libcrypto.a"; then
-            openssl_lib_dir="${ssldir}/lib"
-            AC_MSG_NOTICE([Found ${ssldir}/lib/libcrypto.a])
-         elif test -f "${ssldir}/libcrypto.a"; then
-            openssl_lib_dir="${ssldir}"
-            AC_MSG_NOTICE([Found ${ssldir}/libcrypto.a])
-         else
-            openssl_lib_dir="${ssldir}/lib"
-            AC_MSG_NOTICE([Cannot find libcrypto under $ssldir - assuming its in the standard search path])
-         fi
          AC_MSG_NOTICE([OpenSSL libraries found in $openssl_lib_dir])
+         openssl_header_dir="${withval}/include/openssl"
+         CPPFLAGS="${CPPFLAGS} -I${openssl_header_dir}"
          LDFLAGS="-L${openssl_lib_dir} ${LDFLAGS}"
          LIBS="-lcrypto ${LIBS}"