3
AC_DEFINE([C_LINUX],1,[target is linux])
4
if test "$have_pthreads" = "yes"; then
5
THREAD_LIBS="-lpthread"
7
if test "$want_fanotify" = "yes"; then
8
AC_CHECK_HEADER([sys/fanotify.h],AC_DEFINE([FANOTIFY],1,[use fanotify]),)
13
AC_DEFINE([C_KFREEBSD_GNU],1,[target is kfreebsd-gnu])
14
if test "$have_pthreads" = "yes"; then
15
THREAD_LIBS="-lpthread"
16
TH_SAFE="-thread-safe"
20
CLAMDSCAN_LIBS="$CLAMDSCAN_LIBS -lresolv"
21
FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lresolv"
22
if test "$have_pthreads" = "yes"; then
23
THREAD_LIBS="-lpthread"
24
CLAMD_LIBS="$CLAMD_LIBS -lresolv"
25
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lresolv"
26
TH_SAFE="-thread-safe"
28
AC_DEFINE([C_SOLARIS],1,[os is solaris])
31
if test "$have_pthreads" = "yes"; then
32
THREAD_LIBS="-pthread -lc_r"
33
TH_SAFE="-thread-safe"
35
AC_DEFINE([C_BSD],1,[os is freebsd 4 or 5])
38
if test "$have_pthreads" = "yes"; then
40
TH_SAFE="-thread-safe"
42
AC_DEFINE([C_BSD],1,[os is freebsd 6])
45
if test "$have_pthreads" = "yes"; then
46
THREAD_LIBS="-pthread"
47
TH_SAFE="-thread-safe"
49
AC_DEFINE([C_BSD],1,[os is dragonfly])
52
if test "$have_pthreads" = "yes"; then
53
THREAD_LIBS="-pthread"
54
CLAMD_LIBS="$CLAMD_LIBS -pthread"
55
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
56
TH_SAFE="-thread-safe"
58
AC_DEFINE([C_BSD],1,[os is OpenBSD])
61
if test "$have_pthreads" = "yes"; then
62
THREAD_LIBS="-pthread"
63
TH_SAFE="-thread-safe"
65
AC_DEFINE([C_BSD],1,[os is BSDI BSD/OS])
68
if test "$have_pthreads" = "yes"; then
69
THREAD_LIBS="-lpthread"
71
AC_DEFINE([C_BSD],1,[os is NetBSD])
74
AC_MSG_RESULT([Unknown BSD detected. Disabling thread support.])
76
AC_DEFINE([C_BSD],1,[os is bsd flavor])
79
AC_MSG_RESULT([BeOS detected. Disabling thread support.])
81
AC_DEFINE([C_BEOS],1,[os is beos])
84
AC_DEFINE([C_INTERIX],1,[os is Interix])
87
AC_DEFINE([C_BSD],1,[os is bsd flavor])
88
AC_DEFINE([C_DARWIN],1,[os is darwin])
89
AC_DEFINE([BIND_8_COMPAT],1,[enable bind8 compatibility])
90
AC_DEFINE([CLAMAUTH],1,[use ClamAuth])
94
CLAMDSCAN_LIBS="$CLAMDSCAN_LIBS -lsyslog"
95
FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsyslog"
96
CLAMD_LIBS="$CLAMD_LIBS -lsyslog"
97
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsyslog"
98
if test "$have_pthreads" = "yes"; then
99
THREAD_LIBS="-lpthread"
100
TH_SAFE="-thread-safe"
102
AC_DEFINE([C_OS2],1,[os is OS/2])
105
dnl njh@bandsman.sco.uk: SCO Unix port
106
dnl FRESHCLAM_LIBS="-lsocket"
107
dnl CLAMD_LIBS="-lsocket"
108
dnl CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"
111
if test "$have_pthreads" = "yes"; then
112
THREAD_LIBS="-lpthread"
113
TH_SAFE="-thread-safe"
115
AC_DEFINE([C_HPUX],1,[os is hpux])
116
if test "$have_mempool" = "yes"; then
117
LDFLAGS="$LDFLAGS -Wl,+pd,1M"
121
if test "$have_pthreads" = "yes"; then
122
THREAD_LIBS="-lpthread"
123
TH_SAFE="-thread-safe"
124
AC_DEFINE([_THREAD_SAFE],1,[thread safe])
126
AC_DEFINE([C_AIX],1,[os is aix])
129
if test "$have_pthreads" = "yes"; then
130
THREAD_LIBS="-pthread"
131
TH_SAFE="-thread-safe"
132
AC_DEFINE([_POSIX_PII_SOCKET],1,[POSIX compatibility])
134
AC_DEFINE([C_OSF],1,[os is osf/tru64])
137
AC_DEFINE([C_QNX6],1,[os is QNX 6.x.x])
140
if test "$have_pthreads" = "yes"; then
141
THREAD_LIBS="-lpthread"
142
TH_SAFE="-thread-safe"
145
AC_DEFINE([C_IRIX],1,[os is irix])
148
AC_DEFINE([C_INTERIX],1,[os is interix])
149
if test "$test_clamav" = "yes"; then
150
if test ! -r /etc/passwd; then
154
if test "$have_pthreads" = "yes"; then
155
THREAD_LIBS="-lpthread"
156
TH_SAFE="-thread-safe"
160
AC_DEFINE([C_GNU_HURD],1,[target is gnu-hurd])
161
if test "$have_pthreads" = "yes"; then
162
THREAD_LIBS="-lpthread"
163
TH_SAFE="-thread-safe"