diff options
author | Jim Carroll <thecarrolls@jiminger.com> | 2011-11-05 14:34:25 -0400 |
---|---|---|
committer | Jim Carroll <thecarrolls@jiminger.com> | 2011-11-15 11:58:38 -0500 |
commit | 8541cc38192985425704147c0e417203d7d685b6 (patch) | |
tree | 0fb1dd68ca545368a49f5ba94ac2794bf67d8469 /configure.in | |
parent | 1c6460362b92581f4c7147f7be18c1ccbb59e961 (diff) |
Added a utility to set the ssl library's MT hooks.
Diffstat (limited to 'configure.in')
-rwxr-xr-x | configure.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 83840a8f9a..95661a54f1 100755 --- a/configure.in +++ b/configure.in @@ -698,6 +698,18 @@ AC_CHECK_HEADER([vorbis/vorbisenc.h],, AC_MSG_ERROR($missing_library)) AC_CHECK_HEADER([libmodplug/modplug.h],, AC_MSG_ERROR($missing_library)) AC_CHECK_HEADER([curl/curl.h],, AC_MSG_ERROR($missing_library)) AC_CHECK_HEADER([FLAC/stream_decoder.h],, AC_MSG_ERROR($missing_library)) + +# we need to check for the header because if it exists we set the openssl +# and gcrypt MT callback hooks. This is mostly so that libcurl operates +# in MT manner correctly. +AC_CHECK_HEADER([openssl/crypto.h], AC_DEFINE([HAVE_OPENSSL],[1],[Define if we have openssl]),) +AC_CHECK_HEADER([gcrypt.h], gcrypt_headers_available=yes,gcrypt_headers_available=no) +if test "$gcrypt_headers_available" = "yes"; then + # if we have the headers then we must have the lib + AC_CHECK_LIB([gcrypt],[gcry_control],, AC_MSG_ERROR($missing_library)) + AC_DEFINE([HAVE_GCRYPT],[1],[Define if we have gcrypt]) +fi + AC_CHECK_LIB([bz2], [main],, AC_MSG_ERROR($missing_library)) AC_CHECK_LIB([jpeg], [main],, AC_MSG_ERROR($missing_library)) # check for cximage AC_CHECK_LIB([tiff], [main],, AC_MSG_ERROR($missing_library)) |