Home | History | Annotate | Download | only in m4
      1 dnl
      2 dnl LTP_CHECK_CRYPTO
      3 dnl ----------------------------
      4 dnl
      5 AC_DEFUN([LTP_CHECK_CRYPTO], [
      6 	AC_CHECK_LIB([crypto], [SHA1_Init], [have_libcrypto=yes], [AC_MSG_WARN(missing libcrypto)])
      7 	AC_CHECK_HEADERS([openssl/sha.h], [have_sha=yes], [AC_MSG_WARN(missing openssl headers)])
      8 	if test "x$have_libcrypto" = "xyes" -a "x$have_sha" = "xyes"; then
      9 		AC_DEFINE(HAVE_LIBCRYPTO, 1, [Define whether libcrypto and openssl headers are installed])
     10 		AC_SUBST(CRYPTO_LIBS, "-lcrypto")
     11 	fi
     12 ])
     13