|
Lines 1952-1972
Link Here
|
| 1952 |
|
1952 |
|
| 1953 |
AC_ARG_WITH(ssl-engine, |
1953 |
AC_ARG_WITH(ssl-engine, |
| 1954 |
[ --with-ssl-engine Enable OpenSSL (hardware) ENGINE support ], |
1954 |
[ --with-ssl-engine Enable OpenSSL (hardware) ENGINE support ], |
| 1955 |
[ if test "x$withval" != "xno" ; then |
1955 |
[], |
| 1956 |
AC_MSG_CHECKING(for OpenSSL ENGINE support) |
1956 |
[ withval=check ]) |
| 1957 |
AC_TRY_COMPILE( |
1957 |
if test "x$withval" != "xno" ; then |
| 1958 |
[ #include <openssl/engine.h>], |
1958 |
AC_MSG_CHECKING(for OpenSSL ENGINE support) |
| 1959 |
[ |
1959 |
AC_TRY_COMPILE( |
|
|
1960 |
[ #include <openssl/engine.h>], |
| 1961 |
[ |
| 1960 |
ENGINE_load_builtin_engines();ENGINE_register_all_complete(); |
1962 |
ENGINE_load_builtin_engines();ENGINE_register_all_complete(); |
| 1961 |
], |
1963 |
], |
| 1962 |
[ AC_MSG_RESULT(yes) |
1964 |
[ AC_MSG_RESULT(yes) |
| 1963 |
AC_DEFINE(USE_OPENSSL_ENGINE, 1, |
1965 |
AC_DEFINE(USE_OPENSSL_ENGINE, 1, |
| 1964 |
[Enable OpenSSL engine support]) |
1966 |
[Enable OpenSSL engine support]) |
| 1965 |
], |
1967 |
], |
| 1966 |
[ AC_MSG_ERROR(OpenSSL ENGINE support not found)] |
1968 |
[ if test "x$withval" != xcheck ; then |
| 1967 |
) |
1969 |
AC_MSG_ERROR(OpenSSL ENGINE support not found) |
| 1968 |
fi ] |
1970 |
fi |
| 1969 |
) |
1971 |
] |
|
|
1972 |
) |
| 1973 |
fi |
| 1970 |
|
1974 |
|
| 1971 |
# Check for OpenSSL without EVP_aes_{192,256}_cbc |
1975 |
# Check for OpenSSL without EVP_aes_{192,256}_cbc |
| 1972 |
AC_MSG_CHECKING([whether OpenSSL has crippled AES support]) |
1976 |
AC_MSG_CHECKING([whether OpenSSL has crippled AES support]) |