[Forensics-changes] [yara] 07/192: Conditional compilation for dotnet module

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:31:40 UTC 2017


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

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

commit a86f49ea8d5def032912dc07103ebeae4380b101
Author: plusvic <plusvic at gmail.com>
Date:   Wed Aug 3 17:03:36 2016 +0200

    Conditional compilation for dotnet module
---
 configure.ac                | 8 ++++++++
 libyara/modules/module_list | 3 +++
 2 files changed, 11 insertions(+)

diff --git a/configure.ac b/configure.ac
index e9e27ee..1ed382b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,13 @@ AC_ARG_ENABLE([magic],
     CFLAGS="$CFLAGS -DMAGIC_MODULE"
   fi])
 
+AC_ARG_ENABLE([dotnet],
+  [AS_HELP_STRING([--enable-dotnet], [enable dotnet module])],
+  [if test x$enableval = xyes; then
+    build_dotnet_module=true
+    CFLAGS="$CFLAGS -DDOTNET_MODULE"
+  fi])
+
 AC_ARG_WITH([crypto],
   AS_HELP_STRING([--without-crypto],
     [ignore presence of OpenSSL and disable it]))
@@ -123,6 +130,7 @@ AS_IF([test "x$have_crypto" = "xno"],
 AM_CONDITIONAL([CUCKOO_MODULE], [test x$build_cuckoo_module = xtrue])
 AM_CONDITIONAL([MAGIC_MODULE], [test x$build_magic_module = xtrue])
 AM_CONDITIONAL([HASH_MODULE], [test x$build_hash_module = xtrue])
+AM_CONDITIONAL([DOTNET_MODULE], [test x$build_dotnet_module = xtrue])
 AM_CONDITIONAL([GCC], [test "x$GCC" = xyes])
 
 AC_CONFIG_FILES([Makefile])
diff --git a/libyara/modules/module_list b/libyara/modules/module_list
index b35346d..77a9e4b 100644
--- a/libyara/modules/module_list
+++ b/libyara/modules/module_list
@@ -2,7 +2,10 @@ MODULE(tests)
 MODULE(pe)
 MODULE(elf)
 MODULE(math)
+
+#ifdef DOTNET_MODULE
 MODULE(dotnet)
+#endif
 
 #ifdef CUCKOO_MODULE
 MODULE(cuckoo)

-- 
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