[Forensics-changes] [yara] 01/15: Check for header files in configure.ac

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:33:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.6.2
in repository yara.

commit 268bef8fda7da97e470cf89fc75ea2f3f3aaeb22
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Tue Jun 6 16:50:21 2017 +0200

    Check for header files in configure.ac
---
 configure.ac | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/configure.ac b/configure.ac
index 85cefba..3ae01e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,6 +85,8 @@ AC_ARG_ENABLE([cuckoo],
   [AS_HELP_STRING([--enable-cuckoo], [enable cuckoo module])],
   [if test x$enableval = xyes; then
     build_cuckoo_module=true
+    AC_CHECK_HEADERS([jansson.h],,
+      AC_MSG_ERROR([please install Jansson library]))
     AC_CHECK_LIB(jansson, json_loadb,,
       AC_MSG_ERROR([please install Jansson library]))
     CFLAGS="$CFLAGS -DCUCKOO_MODULE"
@@ -94,6 +96,8 @@ AC_ARG_ENABLE([magic],
   [AS_HELP_STRING([--enable-magic], [enable magic module])],
   [if test x$enableval = xyes; then
     build_magic_module=true
+    AC_CHECK_HEADERS([magic.h],,
+      AC_MSG_ERROR([please install libmagic library]))
     AC_CHECK_LIB(magic, magic_open,,
       AC_MSG_ERROR([please install libmagic library]))
     CFLAGS="$CFLAGS -DMAGIC_MODULE"
@@ -112,6 +116,14 @@ AC_ARG_WITH([crypto],
 
 AS_IF([test "x$with_crypto" != "xno"],
   [
+    AC_CHECK_HEADERS([openssl/md5.h],, [have_crypto=no])
+    AC_CHECK_HEADERS([openssl/sha.h],, [have_crypto=no])
+    AC_CHECK_HEADERS([openssl/asn1.h],, [have_crypto=no])
+    AC_CHECK_HEADERS([openssl/crypto.h],, [have_crypto=no])
+    AC_CHECK_HEADERS([openssl/bio.h],, [have_crypto=no])
+    AC_CHECK_HEADERS([openssl/pkcs7.h],, [have_crypto=no])
+    AC_CHECK_HEADERS([openssl/x509.h],, [have_crypto=no])
+    AC_CHECK_HEADERS([openssl/safestack.h],, [have_crypto=no])
     AC_CHECK_LIB(crypto, MD5_Init,, [have_crypto=no])
     AC_CHECK_LIB(crypto, MD5_Update,, [have_crypto=no])
     AC_CHECK_LIB(crypto, MD5_Final,, [have_crypto=no])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list