summaryrefslogtreecommitdiff
path: root/security/yara/patches/patch-configure.ac
blob: f58cb6b0317783d8da6e63d6e4178ed696ab2b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-configure.ac,v 1.2 2022/11/29 08:35:01 adam Exp $

NetBSD does not use Linux proc interface.
Portability fix.

--- configure.ac.orig	2022-08-08 11:29:28.000000000 +0000
+++ configure.ac
@@ -54,7 +54,7 @@ case $host_os in
     mingw*|cygwin*) CFLAGS="$CFLAGS -DUSE_WINDOWS_PROC"
             proc_interface=windows
             jemalloc_prefix= ;;
-    linux*|netbsd*|dragonfly*|kfreebsd*)
+    linux*|dragonfly*|kfreebsd*)
             CFLAGS="$CFLAGS -DUSE_LINUX_PROC"
             posix=true
             proc_interface=linux
@@ -179,7 +179,7 @@ AC_ARG_ENABLE([pb-tests],
   [if test x$enableval = xyes; then
     build_pb_tests_module=true
     AC_CHECK_PROG(PROTOC, protoc, protoc)
-    AS_IF([test "x${PROTOC}" == "x"],
+    AS_IF([test "x${PROTOC}" = "x"],
         [AC_MSG_ERROR([protobuf compiler "protoc" not found])])
     # AC_CHECK_PROG(PROTOC_GEN_YARA, protoc-gen-yara, protoc-gen-yara)
     # AS_IF([test "x${PROTOC_GEN_YARA}" == "x"],