summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2012-09-03 19:57:05 -0400
committerJason Woodward2012-09-03 19:57:05 -0400
commit42b9ee409d502bc0a52653defa979bd01abc23cf (patch)
tree81e535561092560c0f98182a7d6d08ae752980f9
parenta0624ce468cd327c7c6ee54a1af100f5ee4d1d06 (diff)
downloadslapt-src-42b9ee409d502bc0a52653defa979bd01abc23cf.tar.gz
use AC_SEARCH_LIBS for EVP_md5 in libssl or libcrypto0.3.2d
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2f280f9..a05bab9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,7 +24,7 @@ AC_CHECK_HEADER(slapt.h, [], [AC_MSG_ERROR(libslapt headers are missing)])
# Checks for library functions.
AC_CHECK_LIB(z,gzopen, [LIBS="$LIBS -lz"], [AC_MSG_ERROR(libz is missing)])
AC_CHECK_LIB(curl,curl_global_init, [LIBS="$LIBS `curl-config --libs`"], [AC_MSG_ERROR(curl libs are missing)])
-AC_CHECK_LIB(ssl,EVP_md5, [LIBS="$LIBS -lssl"], [AC_MSG_ERROR(openssl libs are missing)])
+AC_SEARCH_LIBS([EVP_md5],[ssl crypto],[],[AC_MSG_ERROR(openssl libs are missing)])
AC_CHECK_LIB(gpgme,gpgme_new, [
LIBS="`gpgme-config --libs` $LIBS"
AC_CHECK_LIB(slapt,slapt_add_pkg_source_gpg_key,