1 dnl Check to find the OpenSSL headers/libraries
7 AC_CACHE_CHECK([for openssl], tinc_cv_openssl_include,
10 [ --with-openssl=DIR OpenSSL library and headers prefix],
12 openssl_lib="$withval/lib"
13 openssl_include="$withval/include"]
15 AC_ARG_WITH(openssl-include,
16 [ --with-openssl-include=DIR OpenSSL headers directory],
17 [echo -ne 'includes...'
18 openssl_include="$withvall"]
20 AC_ARG_WITH(openssl-lib,
21 [ --with-openssl-lib=DIR OpenSSL library directory],
22 [echo -ne 'libraries...'
23 openssl_lib="$withval"]
26 if test "x$openssl_lib" != "x" ; then
27 LIBS="$LIBS -L$openssl_lib"
29 if test "x$openssl_include" != "x" ; then
30 INCLUDES="$INCLUDES -I$openssl_include"
33 AC_MSG_RESULT([done.])
37 AC_CHECK_LIB(crypto, SHA1_version, [
41 if test $libcrypto = none; then
43 [It seems like OpenSSL is not installed on this system. But perhaps
44 you need to supply the exact location of the headers and libraries.
45 You can try running configure with the --with-openssl=/DIRECTORY
46 parameter. If you installed the headers and libraries in a different
47 location you can use --with-openssl-include=/DIR and
48 --with-openssl-lib=/DIR.])