Browse code

Initial commit for clamsubmit app

Shawn Webb authored on 2014/01/07 06:05:00
Showing 24 changed files
... ...
@@ -23,6 +23,10 @@ EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefil
23 23
 
24 24
 bin_SCRIPTS=clamav-config
25 25
 
26
+if ENABLE_CLAMSUBMIT
27
+SUBDIRS += clamsubmit
28
+endif
29
+
26 30
 pkgconfigdir = $(libdir)/pkgconfig
27 31
 pkgconfig_DATA = libclamav.pc
28 32
 
... ...
@@ -71,6 +71,7 @@ POST_UNINSTALL = :
71 71
 build_triplet = @build@
72 72
 host_triplet = @host@
73 73
 target_triplet = @target@
74
+@ENABLE_CLAMSUBMIT_TRUE@am__append_1 = clamsubmit
74 75
 subdir = .
75 76
 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
76 77
 	$(srcdir)/Makefile.in $(srcdir)/clamav-config.h.in \
... ...
@@ -173,7 +174,9 @@ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
173 173
 	distdir dist dist-all distcheck
174 174
 ETAGS = etags
175 175
 CTAGS = ctags
176
-DIST_SUBDIRS = $(SUBDIRS)
176
+DIST_SUBDIRS = libltdl libclamav clamscan clamd clamdscan freshclam \
177
+	sigtool clamconf database docs etc clamav-milter test clamdtop \
178
+	clambc unit_tests clamsubmit
177 179
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
178 180
 distdir = $(PACKAGE)-$(VERSION)
179 181
 top_distdir = $(distdir)
... ...
@@ -234,6 +237,7 @@ CLAMAVUSER = @CLAMAVUSER@
234 234
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
235 235
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
236 236
 CLAMD_LIBS = @CLAMD_LIBS@
237
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
237 238
 CPP = @CPP@
238 239
 CPPFLAGS = @CPPFLAGS@
239 240
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -381,7 +385,9 @@ top_build_prefix = @top_build_prefix@
381 381
 top_builddir = @top_builddir@
382 382
 top_srcdir = @top_srcdir@
383 383
 ACLOCAL_AMFLAGS = -I m4
384
-SUBDIRS = libltdl libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter test clamdtop clambc unit_tests
384
+SUBDIRS = libltdl libclamav clamscan clamd clamdscan freshclam sigtool \
385
+	clamconf database docs etc clamav-milter test clamdtop clambc \
386
+	unit_tests $(am__append_1)
385 387
 EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.llvm COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256 platform.h.in clamdscan/clamdscan.map win32
386 388
 bin_SCRIPTS = clamav-config
387 389
 pkgconfigdir = $(libdir)/pkgconfig
... ...
@@ -203,6 +203,7 @@ CLAMAVUSER = @CLAMAVUSER@
203 203
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
204 204
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
205 205
 CLAMD_LIBS = @CLAMD_LIBS@
206
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
206 207
 CPP = @CPP@
207 208
 CPPFLAGS = @CPPFLAGS@
208 209
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -139,6 +139,7 @@ CLAMAVUSER = @CLAMAVUSER@
139 139
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
140 140
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
141 141
 CLAMD_LIBS = @CLAMD_LIBS@
142
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
142 143
 CPP = @CPP@
143 144
 CPPFLAGS = @CPPFLAGS@
144 145
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -157,6 +157,7 @@ CLAMAVUSER = @CLAMAVUSER@
157 157
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
158 158
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
159 159
 CLAMD_LIBS = @CLAMD_LIBS@
160
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
160 161
 CPP = @CPP@
161 162
 CPPFLAGS = @CPPFLAGS@
162 163
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -170,6 +170,7 @@ CLAMAVUSER = @CLAMAVUSER@
170 170
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
171 171
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
172 172
 CLAMD_LIBS = @CLAMD_LIBS@
173
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
173 174
 CPP = @CPP@
174 175
 CPPFLAGS = @CPPFLAGS@
175 176
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -168,6 +168,7 @@ CLAMAVUSER = @CLAMAVUSER@
168 168
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
169 169
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
170 170
 CLAMD_LIBS = @CLAMD_LIBS@
171
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
171 172
 CPP = @CPP@
172 173
 CPPFLAGS = @CPPFLAGS@
173 174
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -174,6 +174,7 @@ CLAMAVUSER = @CLAMAVUSER@
174 174
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
175 175
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
176 176
 CLAMD_LIBS = @CLAMD_LIBS@
177
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
177 178
 CPP = @CPP@
178 179
 CPPFLAGS = @CPPFLAGS@
179 180
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -159,6 +159,7 @@ CLAMAVUSER = @CLAMAVUSER@
159 159
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
160 160
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
161 161
 CLAMD_LIBS = @CLAMD_LIBS@
162
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
162 163
 CPP = @CPP@
163 164
 CPPFLAGS = @CPPFLAGS@
164 165
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
165 166
new file mode 100644
... ...
@@ -0,0 +1 @@
0
+clamsubmit
0 1
new file mode 100644
... ...
@@ -0,0 +1,38 @@
0
+#
1
+#  Copyright (C) 2014 Sourcefire, Inc
2
+#  Author: Shawn Webb
3
+#
4
+#  This program is free software; you can redistribute it and/or modify
5
+#  it under the terms of the GNU General Public License version 2 as
6
+#  published by the Free Software Foundation.
7
+#
8
+#  This program is distributed in the hope that it will be useful,
9
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
+#  GNU General Public License for more details.
12
+#
13
+#  You should have received a copy of the GNU General Public License
14
+#  along with this program; if not, write to the Free Software
15
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16
+#  MA 02110-1301, USA.
17
+
18
+bin_PROGRAMS = clamsubmit
19
+
20
+clamsubmit_SOURCES = \
21
+    $(top_srcdir)/shared/output.c \
22
+    $(top_srcdir)/shared/output.h \
23
+    $(top_srcdir)/shared/optparser.c \
24
+    $(top_srcdir)/shared/optparser.h \
25
+    $(top_srcdir)/shared/getopt.c \
26
+    $(top_srcdir)/shared/getopt.h \
27
+    $(top_srcdir)/shared/misc.c \
28
+    $(top_srcdir)/shared/misc.h \
29
+	clamsubmit.c
30
+
31
+AM_CFLAGS=@WERR_CFLAGS@
32
+DEFS = @DEFS@ -DCL_NOTHREADS
33
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav
34
+LIBS = $(top_builddir)/libclamav/libclamav.la @CLAMSUBMIT_LIBS@ @THREAD_LIBS@
35
+
36
+AM_INSTALLCHECK_STD_OPTIONS_EXEMPT=clamsubmit$(EXEEXT)
37
+CLEANFILES=*.gcda *.gcno
0 38
new file mode 100644
... ...
@@ -0,0 +1,726 @@
0
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
1
+# @configure_input@
2
+
3
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5
+# Foundation, Inc.
6
+# This Makefile.in is free software; the Free Software Foundation
7
+# gives unlimited permission to copy and/or distribute it,
8
+# with or without modifications, as long as this notice is preserved.
9
+
10
+# This program is distributed in the hope that it will be useful,
11
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
+# PARTICULAR PURPOSE.
14
+
15
+@SET_MAKE@
16
+
17
+#
18
+#  Copyright (C) 2014 Sourcefire, Inc
19
+#  Author: Shawn Webb
20
+#
21
+#  This program is free software; you can redistribute it and/or modify
22
+#  it under the terms of the GNU General Public License version 2 as
23
+#  published by the Free Software Foundation.
24
+#
25
+#  This program is distributed in the hope that it will be useful,
26
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
+#  GNU General Public License for more details.
29
+#
30
+#  You should have received a copy of the GNU General Public License
31
+#  along with this program; if not, write to the Free Software
32
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33
+#  MA 02110-1301, USA.
34
+
35
+VPATH = @srcdir@
36
+am__make_dryrun = \
37
+  { \
38
+    am__dry=no; \
39
+    case $$MAKEFLAGS in \
40
+      *\\[\ \	]*) \
41
+        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
42
+          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
43
+      *) \
44
+        for am__flg in $$MAKEFLAGS; do \
45
+          case $$am__flg in \
46
+            *=*|--*) ;; \
47
+            *n*) am__dry=yes; break;; \
48
+          esac; \
49
+        done;; \
50
+    esac; \
51
+    test $$am__dry = yes; \
52
+  }
53
+pkgdatadir = $(datadir)/@PACKAGE@
54
+pkgincludedir = $(includedir)/@PACKAGE@
55
+pkglibdir = $(libdir)/@PACKAGE@
56
+pkglibexecdir = $(libexecdir)/@PACKAGE@
57
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
58
+install_sh_DATA = $(install_sh) -c -m 644
59
+install_sh_PROGRAM = $(install_sh) -c
60
+install_sh_SCRIPT = $(install_sh) -c
61
+INSTALL_HEADER = $(INSTALL_DATA)
62
+transform = $(program_transform_name)
63
+NORMAL_INSTALL = :
64
+PRE_INSTALL = :
65
+POST_INSTALL = :
66
+NORMAL_UNINSTALL = :
67
+PRE_UNINSTALL = :
68
+POST_UNINSTALL = :
69
+build_triplet = @build@
70
+host_triplet = @host@
71
+target_triplet = @target@
72
+bin_PROGRAMS = clamsubmit$(EXEEXT)
73
+subdir = clamsubmit
74
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
75
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
76
+am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
77
+	$(top_srcdir)/m4/argz.m4 \
78
+	$(top_srcdir)/m4/ax_check_uname_syscall.m4 \
79
+	$(top_srcdir)/m4/fdpassing.m4 $(top_srcdir)/m4/lib-ld.m4 \
80
+	$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
81
+	$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/llvm.m4 \
82
+	$(top_srcdir)/m4/ltdl.m4 $(top_srcdir)/m4/ltoptions.m4 \
83
+	$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
84
+	$(top_srcdir)/m4/lt~obsolete.m4 \
85
+	$(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \
86
+	$(top_srcdir)/configure.ac
87
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
88
+	$(ACLOCAL_M4)
89
+mkinstalldirs = $(install_sh) -d
90
+CONFIG_HEADER = $(top_builddir)/clamav-config.h
91
+CONFIG_CLEAN_FILES =
92
+CONFIG_CLEAN_VPATH_FILES =
93
+am__installdirs = "$(DESTDIR)$(bindir)"
94
+PROGRAMS = $(bin_PROGRAMS)
95
+am_clamsubmit_OBJECTS = output.$(OBJEXT) optparser.$(OBJEXT) \
96
+	getopt.$(OBJEXT) misc.$(OBJEXT) clamsubmit.$(OBJEXT)
97
+clamsubmit_OBJECTS = $(am_clamsubmit_OBJECTS)
98
+clamsubmit_LDADD = $(LDADD)
99
+AM_V_lt = $(am__v_lt_@AM_V@)
100
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
101
+am__v_lt_0 = --silent
102
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
103
+depcomp = $(SHELL) $(top_srcdir)/config/depcomp
104
+am__depfiles_maybe = depfiles
105
+am__mv = mv -f
106
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
107
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
108
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
109
+	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
110
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
111
+	$(AM_CFLAGS) $(CFLAGS)
112
+AM_V_CC = $(am__v_CC_@AM_V@)
113
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
114
+am__v_CC_0 = @echo "  CC    " $@;
115
+AM_V_at = $(am__v_at_@AM_V@)
116
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
117
+am__v_at_0 = @
118
+CCLD = $(CC)
119
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
120
+	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
121
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
122
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
123
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
124
+am__v_CCLD_0 = @echo "  CCLD  " $@;
125
+AM_V_GEN = $(am__v_GEN_@AM_V@)
126
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
127
+am__v_GEN_0 = @echo "  GEN   " $@;
128
+SOURCES = $(clamsubmit_SOURCES)
129
+DIST_SOURCES = $(clamsubmit_SOURCES)
130
+am__can_run_installinfo = \
131
+  case $$AM_UPDATE_INFO_DIR in \
132
+    n|no|NO) false;; \
133
+    *) (install-info --version) >/dev/null 2>&1;; \
134
+  esac
135
+ETAGS = etags
136
+CTAGS = ctags
137
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
138
+ACLOCAL = @ACLOCAL@
139
+AMTAR = @AMTAR@
140
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
141
+AR = @AR@
142
+ARGZ_H = @ARGZ_H@
143
+AUTOCONF = @AUTOCONF@
144
+AUTOHEADER = @AUTOHEADER@
145
+AUTOMAKE = @AUTOMAKE@
146
+AWK = @AWK@
147
+BUILD_CONFIGURE_FLAGS = @BUILD_CONFIGURE_FLAGS@
148
+CC = @CC@
149
+CCDEPMODE = @CCDEPMODE@
150
+CFGDIR = @CFGDIR@
151
+CFLAGS = @CFLAGS@
152
+CHECK_CPPFLAGS = @CHECK_CPPFLAGS@
153
+CHECK_LIBS = @CHECK_LIBS@
154
+CLAMAVGROUP = @CLAMAVGROUP@
155
+CLAMAVUSER = @CLAMAVUSER@
156
+CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
157
+CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
158
+CLAMD_LIBS = @CLAMD_LIBS@
159
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
160
+CPP = @CPP@
161
+CPPFLAGS = @CPPFLAGS@
162
+CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
163
+CURSES_LIBS = @CURSES_LIBS@
164
+CYGPATH_W = @CYGPATH_W@
165
+DBDIR = @DBDIR@
166
+DEFS = @DEFS@ -DCL_NOTHREADS
167
+DEPDIR = @DEPDIR@
168
+DLLTOOL = @DLLTOOL@
169
+DSYMUTIL = @DSYMUTIL@
170
+DUMPBIN = @DUMPBIN@
171
+ECHO_C = @ECHO_C@
172
+ECHO_N = @ECHO_N@
173
+ECHO_T = @ECHO_T@
174
+EGREP = @EGREP@
175
+EXEEXT = @EXEEXT@
176
+FGREP = @FGREP@
177
+FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
178
+GCOV = @GCOV@
179
+GENHTML = @GENHTML@
180
+GETENT = @GETENT@
181
+GPERF = @GPERF@
182
+GREP = @GREP@
183
+INCLTDL = @INCLTDL@
184
+INSTALL = @INSTALL@
185
+INSTALL_DATA = @INSTALL_DATA@
186
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
187
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
188
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
189
+LCOV = @LCOV@
190
+LD = @LD@
191
+LDFLAGS = @LDFLAGS@
192
+LIBADD_DL = @LIBADD_DL@
193
+LIBADD_DLD_LINK = @LIBADD_DLD_LINK@
194
+LIBADD_DLOPEN = @LIBADD_DLOPEN@
195
+LIBADD_SHL_LOAD = @LIBADD_SHL_LOAD@
196
+LIBBZ2 = @LIBBZ2@
197
+LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
198
+LIBCLAMAV_LIBS = @LIBCLAMAV_LIBS@
199
+LIBCLAMAV_VERSION = @LIBCLAMAV_VERSION@
200
+LIBLTDL = @LIBLTDL@
201
+LIBM = @LIBM@
202
+LIBOBJS = @LIBOBJS@
203
+LIBS = $(top_builddir)/libclamav/libclamav.la @CLAMSUBMIT_LIBS@ @THREAD_LIBS@
204
+LIBTOOL = @LIBTOOL@
205
+LIPO = @LIPO@
206
+LN_S = @LN_S@
207
+LTDLDEPS = @LTDLDEPS@
208
+LTDLINCL = @LTDLINCL@
209
+LTDLOPEN = @LTDLOPEN@
210
+LTLIBBZ2 = @LTLIBBZ2@
211
+LTLIBOBJS = @LTLIBOBJS@
212
+LT_CONFIG_H = @LT_CONFIG_H@
213
+LT_DLLOADERS = @LT_DLLOADERS@
214
+LT_DLPREOPEN = @LT_DLPREOPEN@
215
+MAINT = @MAINT@
216
+MAKEINFO = @MAKEINFO@
217
+MANIFEST_TOOL = @MANIFEST_TOOL@
218
+MKDIR_P = @MKDIR_P@
219
+NM = @NM@
220
+NMEDIT = @NMEDIT@
221
+OBJDUMP = @OBJDUMP@
222
+OBJEXT = @OBJEXT@
223
+OTOOL = @OTOOL@
224
+OTOOL64 = @OTOOL64@
225
+PACKAGE = @PACKAGE@
226
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
227
+PACKAGE_NAME = @PACKAGE_NAME@
228
+PACKAGE_STRING = @PACKAGE_STRING@
229
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
230
+PACKAGE_URL = @PACKAGE_URL@
231
+PACKAGE_VERSION = @PACKAGE_VERSION@
232
+PATH_SEPARATOR = @PATH_SEPARATOR@
233
+RANLIB = @RANLIB@
234
+SED = @SED@
235
+SET_MAKE = @SET_MAKE@
236
+SHELL = @SHELL@
237
+STRIP = @STRIP@
238
+THREAD_LIBS = @THREAD_LIBS@
239
+TH_SAFE = @TH_SAFE@
240
+VERSION = @VERSION@
241
+VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@
242
+WERR_CFLAGS = @WERR_CFLAGS@
243
+WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@
244
+XML_CPPFLAGS = @XML_CPPFLAGS@
245
+XML_LIBS = @XML_LIBS@
246
+abs_builddir = @abs_builddir@
247
+abs_srcdir = @abs_srcdir@
248
+abs_top_builddir = @abs_top_builddir@
249
+abs_top_srcdir = @abs_top_srcdir@
250
+ac_ct_AR = @ac_ct_AR@
251
+ac_ct_CC = @ac_ct_CC@
252
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
253
+am__include = @am__include@
254
+am__leading_dot = @am__leading_dot@
255
+am__quote = @am__quote@
256
+am__tar = @am__tar@
257
+am__untar = @am__untar@
258
+bindir = @bindir@
259
+build = @build@
260
+build_alias = @build_alias@
261
+build_cpu = @build_cpu@
262
+build_os = @build_os@
263
+build_vendor = @build_vendor@
264
+builddir = @builddir@
265
+datadir = @datadir@
266
+datarootdir = @datarootdir@
267
+docdir = @docdir@
268
+dvidir = @dvidir@
269
+exec_prefix = @exec_prefix@
270
+host = @host@
271
+host_alias = @host_alias@
272
+host_cpu = @host_cpu@
273
+host_os = @host_os@
274
+host_vendor = @host_vendor@
275
+htmldir = @htmldir@
276
+includedir = @includedir@
277
+infodir = @infodir@
278
+install_sh = @install_sh@
279
+libdir = @libdir@
280
+libexecdir = @libexecdir@
281
+localedir = @localedir@
282
+localstatedir = @localstatedir@
283
+ltdl_LIBOBJS = @ltdl_LIBOBJS@
284
+ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@
285
+mandir = @mandir@
286
+mkdir_p = @mkdir_p@
287
+oldincludedir = @oldincludedir@
288
+pdfdir = @pdfdir@
289
+prefix = @prefix@
290
+program_transform_name = @program_transform_name@
291
+psdir = @psdir@
292
+sbindir = @sbindir@
293
+sharedstatedir = @sharedstatedir@
294
+srcdir = @srcdir@
295
+subdirs = @subdirs@
296
+sys_symbol_underscore = @sys_symbol_underscore@
297
+sysconfdir = @sysconfdir@
298
+target = @target@
299
+target_alias = @target_alias@
300
+target_cpu = @target_cpu@
301
+target_os = @target_os@
302
+target_vendor = @target_vendor@
303
+top_build_prefix = @top_build_prefix@
304
+top_builddir = @top_builddir@
305
+top_srcdir = @top_srcdir@
306
+clamsubmit_SOURCES = \
307
+    $(top_srcdir)/shared/output.c \
308
+    $(top_srcdir)/shared/output.h \
309
+    $(top_srcdir)/shared/optparser.c \
310
+    $(top_srcdir)/shared/optparser.h \
311
+    $(top_srcdir)/shared/getopt.c \
312
+    $(top_srcdir)/shared/getopt.h \
313
+    $(top_srcdir)/shared/misc.c \
314
+    $(top_srcdir)/shared/misc.h \
315
+	clamsubmit.c
316
+
317
+AM_CFLAGS = @WERR_CFLAGS@
318
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav
319
+AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = clamsubmit$(EXEEXT)
320
+CLEANFILES = *.gcda *.gcno
321
+all: all-am
322
+
323
+.SUFFIXES:
324
+.SUFFIXES: .c .lo .o .obj
325
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
326
+	@for dep in $?; do \
327
+	  case '$(am__configure_deps)' in \
328
+	    *$$dep*) \
329
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
330
+	        && { if test -f $@; then exit 0; else break; fi; }; \
331
+	      exit 1;; \
332
+	  esac; \
333
+	done; \
334
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign clamsubmit/Makefile'; \
335
+	$(am__cd) $(top_srcdir) && \
336
+	  $(AUTOMAKE) --foreign clamsubmit/Makefile
337
+.PRECIOUS: Makefile
338
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
339
+	@case '$?' in \
340
+	  *config.status*) \
341
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
342
+	  *) \
343
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
344
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
345
+	esac;
346
+
347
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
348
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
349
+
350
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
351
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
352
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
353
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
354
+$(am__aclocal_m4_deps):
355
+install-binPROGRAMS: $(bin_PROGRAMS)
356
+	@$(NORMAL_INSTALL)
357
+	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
358
+	if test -n "$$list"; then \
359
+	  echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
360
+	  $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
361
+	fi; \
362
+	for p in $$list; do echo "$$p $$p"; done | \
363
+	sed 's/$(EXEEXT)$$//' | \
364
+	while read p p1; do if test -f $$p || test -f $$p1; \
365
+	  then echo "$$p"; echo "$$p"; else :; fi; \
366
+	done | \
367
+	sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
368
+	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
369
+	sed 'N;N;N;s,\n, ,g' | \
370
+	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
371
+	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
372
+	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
373
+	    else { print "f", $$3 "/" $$4, $$1; } } \
374
+	  END { for (d in files) print "f", d, files[d] }' | \
375
+	while read type dir files; do \
376
+	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
377
+	    test -z "$$files" || { \
378
+	    echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
379
+	    $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
380
+	    } \
381
+	; done
382
+
383
+uninstall-binPROGRAMS:
384
+	@$(NORMAL_UNINSTALL)
385
+	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
386
+	files=`for p in $$list; do echo "$$p"; done | \
387
+	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
388
+	      -e 's/$$/$(EXEEXT)/' `; \
389
+	test -n "$$list" || exit 0; \
390
+	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
391
+	cd "$(DESTDIR)$(bindir)" && rm -f $$files
392
+
393
+clean-binPROGRAMS:
394
+	@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
395
+	echo " rm -f" $$list; \
396
+	rm -f $$list || exit $$?; \
397
+	test -n "$(EXEEXT)" || exit 0; \
398
+	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
399
+	echo " rm -f" $$list; \
400
+	rm -f $$list
401
+
402
+installcheck-binPROGRAMS: $(bin_PROGRAMS)
403
+	bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
404
+	  case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
405
+	   *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
406
+	  esac; \
407
+	  f=`echo "$$p" | \
408
+	     sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
409
+	  for opt in --help --version; do \
410
+	    if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \
411
+	         2>c$${pid}_.err </dev/null \
412
+		 && test -n "`cat c$${pid}_.out`" \
413
+		 && test -z "`cat c$${pid}_.err`"; then :; \
414
+	    else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
415
+	  done; \
416
+	done; rm -f c$${pid}_.???; exit $$bad
417
+clamsubmit$(EXEEXT): $(clamsubmit_OBJECTS) $(clamsubmit_DEPENDENCIES) $(EXTRA_clamsubmit_DEPENDENCIES) 
418
+	@rm -f clamsubmit$(EXEEXT)
419
+	$(AM_V_CCLD)$(LINK) $(clamsubmit_OBJECTS) $(clamsubmit_LDADD) $(LIBS)
420
+
421
+mostlyclean-compile:
422
+	-rm -f *.$(OBJEXT)
423
+
424
+distclean-compile:
425
+	-rm -f *.tab.c
426
+
427
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clamsubmit.Po@am__quote@
428
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@
429
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@
430
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optparser.Po@am__quote@
431
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output.Po@am__quote@
432
+
433
+.c.o:
434
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
435
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
436
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
437
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
438
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c $<
439
+
440
+.c.obj:
441
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
442
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
443
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
444
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
445
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
446
+
447
+.c.lo:
448
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
449
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
450
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
451
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
452
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
453
+
454
+output.o: $(top_srcdir)/shared/output.c
455
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.o -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
456
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
457
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
458
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
459
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.o `test -f '$(top_srcdir)/shared/output.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/output.c
460
+
461
+output.obj: $(top_srcdir)/shared/output.c
462
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT output.obj -MD -MP -MF $(DEPDIR)/output.Tpo -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
463
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
464
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
465
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
466
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o output.obj `if test -f '$(top_srcdir)/shared/output.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/output.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/output.c'; fi`
467
+
468
+optparser.o: $(top_srcdir)/shared/optparser.c
469
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.o -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c
470
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po
471
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.o' libtool=no @AMDEPBACKSLASH@
472
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
473
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.o `test -f '$(top_srcdir)/shared/optparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/optparser.c
474
+
475
+optparser.obj: $(top_srcdir)/shared/optparser.c
476
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT optparser.obj -MD -MP -MF $(DEPDIR)/optparser.Tpo -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi`
477
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/optparser.Tpo $(DEPDIR)/optparser.Po
478
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(top_srcdir)/shared/optparser.c' object='optparser.obj' libtool=no @AMDEPBACKSLASH@
479
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
480
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o optparser.obj `if test -f '$(top_srcdir)/shared/optparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/optparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/optparser.c'; fi`
481
+
482
+getopt.o: $(top_srcdir)/shared/getopt.c
483
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
484
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
485
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
486
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
487
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/shared/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/getopt.c
488
+
489
+getopt.obj: $(top_srcdir)/shared/getopt.c
490
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
491
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
492
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
493
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
494
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/shared/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/getopt.c'; fi`
495
+
496
+misc.o: $(top_srcdir)/shared/misc.c
497
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.o -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
498
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
499
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
500
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
501
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.o `test -f '$(top_srcdir)/shared/misc.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/misc.c
502
+
503
+misc.obj: $(top_srcdir)/shared/misc.c
504
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT misc.obj -MD -MP -MF $(DEPDIR)/misc.Tpo -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
505
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
506
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
507
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
508
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.obj `if test -f '$(top_srcdir)/shared/misc.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/misc.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/misc.c'; fi`
509
+
510
+mostlyclean-libtool:
511
+	-rm -f *.lo
512
+
513
+clean-libtool:
514
+	-rm -rf .libs _libs
515
+
516
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
517
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
518
+	unique=`for i in $$list; do \
519
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
520
+	  done | \
521
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
522
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
523
+	mkid -fID $$unique
524
+tags: TAGS
525
+
526
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
527
+		$(TAGS_FILES) $(LISP)
528
+	set x; \
529
+	here=`pwd`; \
530
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
531
+	unique=`for i in $$list; do \
532
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
533
+	  done | \
534
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
535
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
536
+	shift; \
537
+	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
538
+	  test -n "$$unique" || unique=$$empty_fix; \
539
+	  if test $$# -gt 0; then \
540
+	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
541
+	      "$$@" $$unique; \
542
+	  else \
543
+	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
544
+	      $$unique; \
545
+	  fi; \
546
+	fi
547
+ctags: CTAGS
548
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
549
+		$(TAGS_FILES) $(LISP)
550
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
551
+	unique=`for i in $$list; do \
552
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
553
+	  done | \
554
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
555
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
556
+	test -z "$(CTAGS_ARGS)$$unique" \
557
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
558
+	     $$unique
559
+
560
+GTAGS:
561
+	here=`$(am__cd) $(top_builddir) && pwd` \
562
+	  && $(am__cd) $(top_srcdir) \
563
+	  && gtags -i $(GTAGS_ARGS) "$$here"
564
+
565
+distclean-tags:
566
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
567
+
568
+distdir: $(DISTFILES)
569
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
570
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
571
+	list='$(DISTFILES)'; \
572
+	  dist_files=`for file in $$list; do echo $$file; done | \
573
+	  sed -e "s|^$$srcdirstrip/||;t" \
574
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
575
+	case $$dist_files in \
576
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
577
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
578
+			   sort -u` ;; \
579
+	esac; \
580
+	for file in $$dist_files; do \
581
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
582
+	  if test -d $$d/$$file; then \
583
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
584
+	    if test -d "$(distdir)/$$file"; then \
585
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
586
+	    fi; \
587
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
588
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
589
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
590
+	    fi; \
591
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
592
+	  else \
593
+	    test -f "$(distdir)/$$file" \
594
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
595
+	    || exit 1; \
596
+	  fi; \
597
+	done
598
+check-am: all-am
599
+check: check-am
600
+all-am: Makefile $(PROGRAMS)
601
+installdirs:
602
+	for dir in "$(DESTDIR)$(bindir)"; do \
603
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
604
+	done
605
+install: install-am
606
+install-exec: install-exec-am
607
+install-data: install-data-am
608
+uninstall: uninstall-am
609
+
610
+install-am: all-am
611
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
612
+
613
+installcheck: installcheck-am
614
+install-strip:
615
+	if test -z '$(STRIP)'; then \
616
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
617
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
618
+	      install; \
619
+	else \
620
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
621
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
622
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
623
+	fi
624
+mostlyclean-generic:
625
+
626
+clean-generic:
627
+	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
628
+
629
+distclean-generic:
630
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
631
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
632
+
633
+maintainer-clean-generic:
634
+	@echo "This command is intended for maintainers to use"
635
+	@echo "it deletes files that may require special tools to rebuild."
636
+clean: clean-am
637
+
638
+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
639
+
640
+distclean: distclean-am
641
+	-rm -rf ./$(DEPDIR)
642
+	-rm -f Makefile
643
+distclean-am: clean-am distclean-compile distclean-generic \
644
+	distclean-tags
645
+
646
+dvi: dvi-am
647
+
648
+dvi-am:
649
+
650
+html: html-am
651
+
652
+html-am:
653
+
654
+info: info-am
655
+
656
+info-am:
657
+
658
+install-data-am:
659
+
660
+install-dvi: install-dvi-am
661
+
662
+install-dvi-am:
663
+
664
+install-exec-am: install-binPROGRAMS
665
+
666
+install-html: install-html-am
667
+
668
+install-html-am:
669
+
670
+install-info: install-info-am
671
+
672
+install-info-am:
673
+
674
+install-man:
675
+
676
+install-pdf: install-pdf-am
677
+
678
+install-pdf-am:
679
+
680
+install-ps: install-ps-am
681
+
682
+install-ps-am:
683
+
684
+installcheck-am: installcheck-binPROGRAMS
685
+
686
+maintainer-clean: maintainer-clean-am
687
+	-rm -rf ./$(DEPDIR)
688
+	-rm -f Makefile
689
+maintainer-clean-am: distclean-am maintainer-clean-generic
690
+
691
+mostlyclean: mostlyclean-am
692
+
693
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
694
+	mostlyclean-libtool
695
+
696
+pdf: pdf-am
697
+
698
+pdf-am:
699
+
700
+ps: ps-am
701
+
702
+ps-am:
703
+
704
+uninstall-am: uninstall-binPROGRAMS
705
+
706
+.MAKE: install-am install-strip
707
+
708
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
709
+	clean-generic clean-libtool ctags distclean distclean-compile \
710
+	distclean-generic distclean-libtool distclean-tags distdir dvi \
711
+	dvi-am html html-am info info-am install install-am \
712
+	install-binPROGRAMS install-data install-data-am install-dvi \
713
+	install-dvi-am install-exec install-exec-am install-html \
714
+	install-html-am install-info install-info-am install-man \
715
+	install-pdf install-pdf-am install-ps install-ps-am \
716
+	install-strip installcheck installcheck-am \
717
+	installcheck-binPROGRAMS installdirs maintainer-clean \
718
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
719
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
720
+	tags uninstall uninstall-am uninstall-binPROGRAMS
721
+
722
+
723
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
724
+# Otherwise a system limit (for SysV at least) may be exceeded.
725
+.NOEXPORT:
0 726
new file mode 100644
... ...
@@ -0,0 +1,6 @@
0
+#include <stdio.h>
1
+
2
+int main(int argc, char *argv[])
3
+{
4
+    return 0;
5
+}
... ...
@@ -643,6 +643,8 @@ am__EXEEXT_FALSE
643 643
 am__EXEEXT_TRUE
644 644
 LTLIBOBJS
645 645
 LIBOBJS
646
+ENABLE_CLAMSUBMIT_FALSE
647
+ENABLE_CLAMSUBMIT_TRUE
646 648
 subdirs
647 649
 WERR_CFLAGS_MILTER
648 650
 WERR_CFLAGS
... ...
@@ -657,6 +659,7 @@ HAVE_MILTER_FALSE
657 657
 HAVE_MILTER_TRUE
658 658
 BUILD_CLAMD_FALSE
659 659
 BUILD_CLAMD_TRUE
660
+CLAMSUBMIT_LIBS
660 661
 THREAD_LIBS
661 662
 TH_SAFE
662 663
 CLAMDSCAN_LIBS
... ...
@@ -856,6 +859,7 @@ with_zlib
856 856
 enable_zlib_vcheck
857 857
 enable_bzip2
858 858
 with_libbz2_prefix
859
+with_libcurl
859 860
 enable_unrar
860 861
 enable_xml
861 862
 with_xml
... ...
@@ -1579,6 +1583,8 @@ Optional Packages:
1579 1579
 			  /usr/local or /usr if not found in /usr/local)
1580 1580
   --with-libbz2-prefix[=DIR]  search for libbz2 in DIR/include and DIR/lib
1581 1581
   --without-libbz2-prefix     don't search for libbz2 in includedir and libdir
1582
+  --with-libcurl=DIR   path to directory containing libcurl (default=
1583
+    /usr/local or /usr if not found in /usr/local)
1582 1584
   --with-xml=DIR	  path to directory containing libxml2 library (default=
1583 1585
 			  /usr/local or /usr if not found in /usr/local)
1584 1586
   --with-iconv supports iconv() (default=auto)
... ...
@@ -16946,6 +16952,92 @@ $as_echo "$as_me: WARNING: ****** bzip2 support disabled" >&2;}
16946 16946
     fi
16947 16947
 fi
16948 16948
 
16949
+have_curl="no"
16950
+curl_msg="Please use the web interface for submitting FPs/FNs."
16951
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl installation" >&5
16952
+$as_echo_n "checking for libcurl installation... " >&6; }
16953
+
16954
+
16955
+# Check whether --with-libcurl was given.
16956
+if test "${with_libcurl+set}" = set; then :
16957
+  withval=$with_libcurl;
16958
+if test "$withval"; then
16959
+    LIBCURL_HOME="$withval"
16960
+fi
16961
+
16962
+else
16963
+
16964
+LIBCURL_HOME=/usr/local
16965
+if test ! -f "$LIBCURL_HOME/include/curl/curl.h"
16966
+then
16967
+    LIBCURL_HOME=/usr
16968
+fi
16969
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBCURL_HOME" >&5
16970
+$as_echo "$LIBCURL_HOME" >&6; }
16971
+
16972
+fi
16973
+
16974
+
16975
+if test ! -f "$LIBCURL_HOME/include/curl/curl.h"
16976
+then
16977
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl not found. Please use the web interface for submitting FPs/FNs." >&5
16978
+$as_echo "$as_me: WARNING: libcurl not found. Please use the web interface for submitting FPs/FNs." >&2;}
16979
+else
16980
+    if test -f "$LIBCURL_HOME/bin/curl-config"; then
16981
+        CURL_LDFLAGS=$($LIBCURL_HOME/bin/curl-config --libs)
16982
+        CURL_CPPFLAGS=$($LIBCURL_HOME/bin/curl-config --cflags)
16983
+    else
16984
+        CURL_LDFLAGS="-L$LIBCURL_HOME/lib -lcurl"
16985
+        CURL_CPPFLAGS="-I$LIBCURL_HOME/include"
16986
+    fi
16987
+
16988
+    save_LDFLAGS="$LDFLAGS"
16989
+    LDFLAGS="-L$LIBCURL_HOME/lib -lcurl"
16990
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
16991
+$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
16992
+if ${ac_cv_lib_curl_curl_easy_init+:} false; then :
16993
+  $as_echo_n "(cached) " >&6
16994
+else
16995
+  ac_check_lib_save_LIBS=$LIBS
16996
+LIBS="-lcurl  $LIBS"
16997
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998
+/* end confdefs.h.  */
16999
+
17000
+/* Override any GCC internal prototype to avoid an error.
17001
+   Use char because int might match the return type of a GCC
17002
+   builtin and then its argument prototype would still apply.  */
17003
+#ifdef __cplusplus
17004
+extern "C"
17005
+#endif
17006
+char curl_easy_init ();
17007
+int
17008
+main ()
17009
+{
17010
+return curl_easy_init ();
17011
+  ;
17012
+  return 0;
17013
+}
17014
+_ACEOF
17015
+if ac_fn_c_try_link "$LINENO"; then :
17016
+  ac_cv_lib_curl_curl_easy_init=yes
17017
+else
17018
+  ac_cv_lib_curl_curl_easy_init=no
17019
+fi
17020
+rm -f core conftest.err conftest.$ac_objext \
17021
+    conftest$ac_exeext conftest.$ac_ext
17022
+LIBS=$ac_check_lib_save_LIBS
17023
+fi
17024
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
17025
+$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
17026
+if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then :
17027
+  curl_msg="";have_curl="yes";CLAMSUBMIT_LIBS="$CLAMSUBMIT_LIBS $CURL_LDFLAGS"
17028
+else
17029
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your libcurl is misconfigured. Please use the web interface for submitting FPs/FNs." >&5
17030
+$as_echo "$as_me: WARNING: Your libcurl is misconfigured. Please use the web interface for submitting FPs/FNs." >&2;}
17031
+fi
17032
+
17033
+fi
17034
+
16949 17035
  if test "x$HAVE_LIBBZ2" = "xyes"; then
16950 17036
   HAVE_LIBBZ2_TRUE=
16951 17037
   HAVE_LIBBZ2_FALSE='#'
... ...
@@ -18022,6 +18114,7 @@ esac
18022 18022
 
18023 18023
 
18024 18024
 
18025
+
18025 18026
 if test "$have_milter" = "yes"; then
18026 18027
 
18027 18028
         save_LIBS="$LIBS"
... ...
@@ -21079,7 +21172,16 @@ $as_echo "#define HAVE__INTERNAL__SHA_COLLECT 1" >>confdefs.h
21079 21079
 
21080 21080
 fi
21081 21081
 
21082
-ac_config_files="$ac_config_files clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h docs/man/clamav-milter.8 docs/man/clamav-milter.conf.5 docs/man/clambc.1 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1 docs/man/clamdtop.1"
21082
+ if test "$have_curl" = "yes"; then
21083
+  ENABLE_CLAMSUBMIT_TRUE=
21084
+  ENABLE_CLAMSUBMIT_FALSE='#'
21085
+else
21086
+  ENABLE_CLAMSUBMIT_TRUE='#'
21087
+  ENABLE_CLAMSUBMIT_FALSE=
21088
+fi
21089
+
21090
+
21091
+ac_config_files="$ac_config_files clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile clamsubmit/Makefile etc/Makefile test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h docs/man/clamav-milter.8 docs/man/clamav-milter.conf.5 docs/man/clambc.1 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1 docs/man/clamdtop.1"
21083 21092
 
21084 21093
 cat >confcache <<\_ACEOF
21085 21094
 # This file is a shell script that caches the results of configure
... ...
@@ -21268,6 +21370,10 @@ if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
21268 21268
   as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
21269 21269
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21270 21270
 fi
21271
+if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then
21272
+  as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined.
21273
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
21274
+fi
21271 21275
 
21272 21276
 : "${CONFIG_STATUS=./config.status}"
21273 21277
 ac_write_fail=0
... ...
@@ -22151,6 +22257,7 @@ do
22151 22151
     "freshclam/Makefile") CONFIG_FILES="$CONFIG_FILES freshclam/Makefile" ;;
22152 22152
     "sigtool/Makefile") CONFIG_FILES="$CONFIG_FILES sigtool/Makefile" ;;
22153 22153
     "clamconf/Makefile") CONFIG_FILES="$CONFIG_FILES clamconf/Makefile" ;;
22154
+    "clamsubmit/Makefile") CONFIG_FILES="$CONFIG_FILES clamsubmit/Makefile" ;;
22154 22155
     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
22155 22156
     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22156 22157
     "unit_tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit_tests/Makefile" ;;
... ...
@@ -23880,6 +23987,10 @@ if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
23880 23880
   as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
23881 23881
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23882 23882
 fi
23883
+if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then
23884
+  as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined.
23885
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
23886
+fi
23883 23887
 if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
23884 23888
   as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
23885 23889
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
... ...
@@ -24772,6 +24883,7 @@ do
24772 24772
     "freshclam/Makefile") CONFIG_FILES="$CONFIG_FILES freshclam/Makefile" ;;
24773 24773
     "sigtool/Makefile") CONFIG_FILES="$CONFIG_FILES sigtool/Makefile" ;;
24774 24774
     "clamconf/Makefile") CONFIG_FILES="$CONFIG_FILES clamconf/Makefile" ;;
24775
+    "clamsubmit/Makefile") CONFIG_FILES="$CONFIG_FILES clamsubmit/Makefile" ;;
24775 24776
     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24776 24777
     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24777 24778
     "unit_tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit_tests/Makefile" ;;
... ...
@@ -26415,6 +26527,19 @@ else
26415 26415
 fi
26416 26416
 
26417 26417
 
26418
+
26419
+   $as_echo_n "              clamsubmit  : "
26420
+   if test "x$curl_msg" = "xno"; then :
26421
+  $as_echo "$have_curl (disabled)"
26422
+elif test "x$curl_msg" = "xyes"; then :
26423
+  $as_echo "$have_curl"
26424
+elif test "x$curl_msg" = "x"; then :
26425
+  $as_echo "$have_curl"
26426
+else
26427
+  $as_echo "$have_curl ($curl_msg)"
26428
+fi
26429
+
26430
+
26418 26431
 { $as_echo "$as_me:${as_lineno-$LINENO}: Summary of engine performance features)" >&5
26419 26432
 $as_echo "$as_me: Summary of engine performance features)" >&6;}
26420 26433
 if test "x$enable_debug" = "xyes"; then
... ...
@@ -653,6 +653,44 @@ then
653 653
     fi
654 654
 fi
655 655
 
656
+have_curl="no"
657
+curl_msg="Please use the web interface for submitting FPs/FNs."
658
+AC_MSG_CHECKING([for libcurl installation])
659
+
660
+AC_ARG_WITH([libcurl],
661
+[  --with-libcurl=DIR   path to directory containing libcurl (default=
662
+    /usr/local or /usr if not found in /usr/local)],
663
+[
664
+if test "$withval"; then
665
+    LIBCURL_HOME="$withval"
666
+fi
667
+], [
668
+LIBCURL_HOME=/usr/local
669
+if test ! -f "$LIBCURL_HOME/include/curl/curl.h"
670
+then
671
+    LIBCURL_HOME=/usr
672
+fi
673
+AC_MSG_RESULT([$LIBCURL_HOME])
674
+])
675
+
676
+if test ! -f "$LIBCURL_HOME/include/curl/curl.h"
677
+then
678
+    AC_MSG_WARN([libcurl not found. Please use the web interface for submitting FPs/FNs.])
679
+else
680
+    if test -f "$LIBCURL_HOME/bin/curl-config"; then
681
+        CURL_LDFLAGS=$($LIBCURL_HOME/bin/curl-config --libs)
682
+        CURL_CPPFLAGS=$($LIBCURL_HOME/bin/curl-config --cflags)
683
+    else
684
+        CURL_LDFLAGS="-L$LIBCURL_HOME/lib -lcurl"
685
+        CURL_CPPFLAGS="-I$LIBCURL_HOME/include"
686
+    fi
687
+
688
+    save_LDFLAGS="$LDFLAGS"
689
+    LDFLAGS="-L$LIBCURL_HOME/lib -lcurl"
690
+    AC_CHECK_LIB([curl], [curl_easy_init], [curl_msg="";have_curl="yes";CLAMSUBMIT_LIBS="$CLAMSUBMIT_LIBS $CURL_LDFLAGS"],
691
+            [AC_MSG_WARN([Your libcurl is misconfigured. Please use the web interface for submitting FPs/FNs.])])
692
+fi
693
+
656 694
 AM_CONDITIONAL([HAVE_LIBBZ2], test "x$HAVE_LIBBZ2" = "xyes")
657 695
 
658 696
 AC_ARG_ENABLE([unrar],
... ...
@@ -1203,6 +1241,7 @@ AC_SUBST([FRESHCLAM_LIBS])
1203 1203
 AC_SUBST([CLAMDSCAN_LIBS])
1204 1204
 AC_SUBST([TH_SAFE])
1205 1205
 AC_SUBST([THREAD_LIBS])
1206
+AC_SUBST([CLAMSUBMIT_LIBS])
1206 1207
 
1207 1208
 dnl --enable-milter
1208 1209
 if test "$have_milter" = "yes"; then
... ...
@@ -1726,6 +1765,8 @@ if test "$enable_sha_collector" != "no"; then
1726 1726
     AC_DEFINE([HAVE__INTERNAL__SHA_COLLECT], 1, [For internal use only - DO NOT DEFINE])
1727 1727
 fi
1728 1728
 
1729
+AM_CONDITIONAL([ENABLE_CLAMSUBMIT], [test "$have_curl" = "yes"])
1730
+
1729 1731
 AC_OUTPUT([
1730 1732
 clamscan/Makefile
1731 1733
 database/Makefile
... ...
@@ -1736,6 +1777,7 @@ clamav-milter/Makefile
1736 1736
 freshclam/Makefile
1737 1737
 sigtool/Makefile
1738 1738
 clamconf/Makefile
1739
+clamsubmit/Makefile
1739 1740
 etc/Makefile
1740 1741
 test/Makefile
1741 1742
 unit_tests/Makefile
... ...
@@ -1793,6 +1835,7 @@ CL_MSG_STATUS([IPv6        ],[$have_cv_ipv6],[$want_ipv6])
1793 1793
 AC_MSG_NOTICE([Summary of optional tools])
1794 1794
 CL_MSG_STATUS([clamdtop    ],[$CURSES_LIBS],[$enable_clamdtop])
1795 1795
 CL_MSG_STATUS([milter      ],[yes],[$have_milter])
1796
+CL_MSG_STATUS([clamsubmit  ],[$have_curl],[$curl_msg])
1796 1797
 
1797 1798
 AC_MSG_NOTICE([Summary of engine performance features)])
1798 1799
 if test "x$enable_debug" = "xyes"; then
... ...
@@ -125,6 +125,7 @@ CLAMAVUSER = @CLAMAVUSER@
125 125
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
126 126
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
127 127
 CLAMD_LIBS = @CLAMD_LIBS@
128
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
128 129
 CPP = @CPP@
129 130
 CPPFLAGS = @CPPFLAGS@
130 131
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -158,6 +158,7 @@ CLAMAVUSER = @CLAMAVUSER@
158 158
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
159 159
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
160 160
 CLAMD_LIBS = @CLAMD_LIBS@
161
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
161 162
 CPP = @CPP@
162 163
 CPPFLAGS = @CPPFLAGS@
163 164
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -155,6 +155,7 @@ CLAMAVUSER = @CLAMAVUSER@
155 155
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
156 156
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
157 157
 CLAMD_LIBS = @CLAMD_LIBS@
158
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
158 159
 CPP = @CPP@
159 160
 CPPFLAGS = @CPPFLAGS@
160 161
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -161,6 +161,7 @@ CLAMAVUSER = @CLAMAVUSER@
161 161
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
162 162
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
163 163
 CLAMD_LIBS = @CLAMD_LIBS@
164
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
164 165
 CPP = @CPP@
165 166
 CPPFLAGS = @CPPFLAGS@
166 167
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -430,6 +430,7 @@ CLAMAVUSER = @CLAMAVUSER@
430 430
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
431 431
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
432 432
 CLAMD_LIBS = @CLAMD_LIBS@
433
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
433 434
 CPP = @CPP@
434 435
 CPPFLAGS = @CPPFLAGS@
435 436
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -237,6 +237,7 @@ CLAMAVUSER = @CLAMAVUSER@
237 237
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
238 238
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
239 239
 CLAMD_LIBS = @CLAMD_LIBS@
240
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
240 241
 CPP = @CPP@
241 242
 CPPFLAGS = @CPPFLAGS@
242 243
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -158,6 +158,7 @@ CLAMAVUSER = @CLAMAVUSER@
158 158
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
159 159
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
160 160
 CLAMD_LIBS = @CLAMD_LIBS@
161
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
161 162
 CPP = @CPP@
162 163
 CPPFLAGS = @CPPFLAGS@
163 164
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -107,6 +107,7 @@ CLAMAVUSER = @CLAMAVUSER@
107 107
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
108 108
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
109 109
 CLAMD_LIBS = @CLAMD_LIBS@
110
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
110 111
 CPP = @CPP@
111 112
 CPPFLAGS = @CPPFLAGS@
112 113
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
... ...
@@ -298,6 +298,7 @@ CLAMAVUSER = @CLAMAVUSER@
298 298
 CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
299 299
 CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
300 300
 CLAMD_LIBS = @CLAMD_LIBS@
301
+CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
301 302
 CPP = @CPP@
302 303
 CPPFLAGS = @CPPFLAGS@
303 304
 CURSES_CPPFLAGS = @CURSES_CPPFLAGS@