summaryrefslogtreecommitdiff
path: root/mail/clamav/patches/patch-aa
blob: d5d2dbf0f8b897a41c940db9c238d064cf55b96b (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
26
27
28
29
30
31
32
33
$NetBSD: patch-aa,v 1.2 2003/06/07 17:39:15 jmmv Exp $

--- configure.in.orig	Thu Nov 21 01:43:16 2002
+++ configure.in	Tue Mar 11 17:48:07 2003
@@ -137,12 +137,7 @@
 AC_SUBST(DBDIR)
 
 # config file
-cfg_dir=`echo $sysconfdir | grep prefix`
-if test -n "$cfg_dir"; then
-    cfg_dir="$ac_default_prefix/etc"
-else
-    cfg_dir="$sysconfdir"
-fi
+cfg_dir=$sysconfdir
 
 CFGDIR=$cfg_dir
 AC_SUBST(CFGDIR)
@@ -224,9 +219,13 @@
     AC_DEFINE(C_BSD)
     ;;
 netbsd*)
-    AC_MSG_RESULT(NetBSD detected. Disabling thread support.)
+    AC_MSG_RESULT(NetBSD detected. Adding pth stuff.)
     have_pthreads="no"
     AC_DEFINE(C_BSD)
+    LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LDFLAGS -lpthread"
+    AC_DEFINE(CL_THREAD_SAFE)
+    CLAMD_LIBS="-lpthread $LDFLAGS"
+    CFLAGS="$CFLAGS"
     ;;
 bsd*)
     AC_MSG_RESULT(Unknown BSD detected. Disabling thread support.)