Browse code

temporarily remove the RAR code

git-svn: trunk@3371

Tomasz Kojm authored on 2007/12/06 23:48:48
Showing 37 changed files
1 1
deleted file mode 100644
... ...
@@ -1,52 +0,0 @@
1
-The libclamunrar code is based on the work of Alexander L. Roshal (C)
2
-
3
-The UnRAR sources may be used in any software to handle RAR
4
-archives without limitations free of charge, but cannot be used
5
-to re-create the RAR compression algorithm, which is proprietary.
6
-Distribution of modified unRAR sources in separate form or as a
7
-part of other software is permitted, provided that it is clearly
8
-stated in the documentation and source comments that the code may
9
-not be used to develop a RAR (WinRAR) compatible archiver.
10
-
11
-Original UnRAR licence:
12
-
13
- ******    *****   ******   UnRAR - free utility for RAR archives
14
- **   **  **   **  **   **  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
- ******   *******  ******    License for use and distribution of
16
- **   **  **   **  **   **   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17
- **   **  **   **  **   **         FREE portable version
18
-                                   ~~~~~~~~~~~~~~~~~~~~~
19
-
20
-      The source code of UnRAR utility is freeware. This means:
21
-
22
-   1. All copyrights to RAR and the utility UnRAR are exclusively
23
-      owned by the author - Alexander Roshal.
24
-
25
-   2. The UnRAR sources may be used in any software to handle RAR
26
-      archives without limitations free of charge, but cannot be used
27
-      to re-create the RAR compression algorithm, which is proprietary.
28
-      Distribution of modified UnRAR sources in separate form or as a
29
-      part of other software is permitted, provided that it is clearly
30
-      stated in the documentation and source comments that the code may
31
-      not be used to develop a RAR (WinRAR) compatible archiver.
32
-
33
-   3. The UnRAR utility may be freely distributed. It is allowed
34
-      to distribute UnRAR inside of other software packages.
35
-
36
-   4. THE RAR ARCHIVER AND THE UnRAR UTILITY ARE DISTRIBUTED "AS IS".
37
-      NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED.  YOU USE AT 
38
-      YOUR OWN RISK. THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS, 
39
-      DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING
40
-      OR MISUSING THIS SOFTWARE.
41
-
42
-   5. Installing and using the UnRAR utility signifies acceptance of
43
-      these terms and conditions of the license.
44
-
45
-   6. If you don't agree with terms of the license you must remove
46
-      UnRAR files from your storage devices and cease to use the
47
-      utility.
48
-
49
-      Thank you for your interest in RAR and UnRAR.
50
-
51
-
52
-                                            Alexander L. Roshal
... ...
@@ -1,3 +1,7 @@
1
+Thu Dec  6 15:03:16 CET 2007 (tk)
2
+---------------------------------
3
+  * libclamunrar: temporarily remove the RAR code
4
+
1 5
 Mon Nov 12 17:47:21 GMT 2007 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/vba_extract.c:	Removed more unused code
... ...
@@ -16,7 +16,7 @@
16 16
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
 #  MA 02110-1301, USA.
18 18
 
19
-SUBDIRS = libclamunrar libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
19
+SUBDIRS = libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
20 20
 EXTRA_DIST = FAQ contrib test examples BUGS shared libclamav.pc.in UPGRADE COPYING.nsis
21 21
 
22 22
 bin_SCRIPTS=clamav-config
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,15 +33,11 @@
33 33
 #  MA 02110-1301, USA.
34 34
 
35 35
 
36
-srcdir = @srcdir@
37
-top_srcdir = @top_srcdir@
38 36
 VPATH = @srcdir@
39 37
 pkgdatadir = $(datadir)/@PACKAGE@
40 38
 pkglibdir = $(libdir)/@PACKAGE@
41 39
 pkgincludedir = $(includedir)/@PACKAGE@
42
-top_builddir = .
43 40
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
-INSTALL = @INSTALL@
45 41
 install_sh_DATA = $(install_sh) -c -m 644
46 42
 install_sh_PROGRAM = $(install_sh) -c
47 43
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -56,6 +52,7 @@ POST_UNINSTALL = :
56 56
 build_triplet = @build@
57 57
 host_triplet = @host@
58 58
 target_triplet = @target@
59
+subdir = .
59 60
 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
60 61
 	$(srcdir)/Makefile.in $(srcdir)/clamav-config.h.in \
61 62
 	$(srcdir)/clamav-config.in $(srcdir)/libclamav.pc.in \
... ...
@@ -71,14 +68,13 @@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
71 71
 	$(top_srcdir)/docs/man/sigtool.1.in AUTHORS COPYING ChangeLog \
72 72
 	INSTALL NEWS config.guess config.sub depcomp install-sh \
73 73
 	ltmain.sh missing mkinstalldirs
74
-subdir = .
75 74
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
76 75
 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
77 76
 	$(top_srcdir)/configure.in
78 77
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
79 78
 	$(ACLOCAL_M4)
80 79
 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
81
- configure.lineno configure.status.lineno
80
+ configure.lineno config.status.lineno
82 81
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
83 82
 CONFIG_HEADER = clamav-config.h
84 83
 CONFIG_CLEAN_FILES = clamav-config libclamav.pc \
... ...
@@ -93,10 +89,11 @@ SOURCES =
93 93
 DIST_SOURCES =
94 94
 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
95 95
 	html-recursive info-recursive install-data-recursive \
96
-	install-exec-recursive install-info-recursive \
97
-	install-recursive installcheck-recursive installdirs-recursive \
98
-	pdf-recursive ps-recursive uninstall-info-recursive \
99
-	uninstall-recursive
96
+	install-dvi-recursive install-exec-recursive \
97
+	install-html-recursive install-info-recursive \
98
+	install-pdf-recursive install-ps-recursive install-recursive \
99
+	installcheck-recursive installdirs-recursive pdf-recursive \
100
+	ps-recursive uninstall-recursive
100 101
 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
101 102
 am__vpath_adj = case $$p in \
102 103
     $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
... ...
@@ -105,6 +102,8 @@ am__vpath_adj = case $$p in \
105 105
 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
106 106
 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
107 107
 DATA = $(pkgconfig_DATA)
108
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
109
+  distclean-recursive maintainer-clean-recursive
108 110
 ETAGS = etags
109 111
 CTAGS = ctags
110 112
 DIST_SUBDIRS = $(SUBDIRS)
... ...
@@ -120,16 +119,12 @@ GZIP_ENV = --best
120 120
 distuninstallcheck_listfiles = find . -type f -print
121 121
 distcleancheck_listfiles = find . -type f -print
122 122
 ACLOCAL = @ACLOCAL@
123
-AMDEP_FALSE = @AMDEP_FALSE@
124
-AMDEP_TRUE = @AMDEP_TRUE@
125 123
 AMTAR = @AMTAR@
126 124
 AR = @AR@
127 125
 AUTOCONF = @AUTOCONF@
128 126
 AUTOHEADER = @AUTOHEADER@
129 127
 AUTOMAKE = @AUTOMAKE@
130 128
 AWK = @AWK@
131
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
132
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
133 129
 CC = @CC@
134 130
 CCDEPMODE = @CCDEPMODE@
135 131
 CFGDIR = @CFGDIR@
... ...
@@ -153,16 +148,13 @@ ECHO_C = @ECHO_C@
153 153
 ECHO_N = @ECHO_N@
154 154
 ECHO_T = @ECHO_T@
155 155
 EGREP = @EGREP@
156
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
157
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
158 156
 EXEEXT = @EXEEXT@
159 157
 F77 = @F77@
160 158
 FFLAGS = @FFLAGS@
161 159
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
162 160
 GETENT = @GETENT@
163 161
 GREP = @GREP@
164
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
165
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
162
+INSTALL = @INSTALL@
166 163
 INSTALL_DATA = @INSTALL_DATA@
167 164
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
168 165
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -176,9 +168,8 @@ LIBTOOL = @LIBTOOL@
176 176
 LN_S = @LN_S@
177 177
 LTLIBOBJS = @LTLIBOBJS@
178 178
 MAINT = @MAINT@
179
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
180
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
181 179
 MAKEINFO = @MAKEINFO@
180
+MKDIR_P = @MKDIR_P@
182 181
 OBJEXT = @OBJEXT@
183 182
 PACKAGE = @PACKAGE@
184 183
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -188,20 +179,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
188 188
 PACKAGE_VERSION = @PACKAGE_VERSION@
189 189
 PATH_SEPARATOR = @PATH_SEPARATOR@
190 190
 RANLIB = @RANLIB@
191
-SED = @SED@
192 191
 SET_MAKE = @SET_MAKE@
193 192
 SHELL = @SHELL@
194 193
 STRIP = @STRIP@
195 194
 THREAD_LIBS = @THREAD_LIBS@
196 195
 TH_SAFE = @TH_SAFE@
197 196
 VERSION = @VERSION@
197
+abs_builddir = @abs_builddir@
198
+abs_srcdir = @abs_srcdir@
199
+abs_top_builddir = @abs_top_builddir@
200
+abs_top_srcdir = @abs_top_srcdir@
198 201
 ac_ct_CC = @ac_ct_CC@
199 202
 ac_ct_CXX = @ac_ct_CXX@
200 203
 ac_ct_F77 = @ac_ct_F77@
201
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
202
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
203
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
204
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
205 204
 am__include = @am__include@
206 205
 am__leading_dot = @am__leading_dot@
207 206
 am__quote = @am__quote@
... ...
@@ -213,6 +203,7 @@ build_alias = @build_alias@
213 213
 build_cpu = @build_cpu@
214 214
 build_os = @build_os@
215 215
 build_vendor = @build_vendor@
216
+builddir = @builddir@
216 217
 datadir = @datadir@
217 218
 datarootdir = @datarootdir@
218 219
 docdir = @docdir@
... ...
@@ -241,13 +232,16 @@ psdir = @psdir@
241 241
 sbindir = @sbindir@
242 242
 sendmailprog = @sendmailprog@
243 243
 sharedstatedir = @sharedstatedir@
244
+srcdir = @srcdir@
244 245
 sysconfdir = @sysconfdir@
245 246
 target = @target@
246 247
 target_alias = @target_alias@
247 248
 target_cpu = @target_cpu@
248 249
 target_os = @target_os@
249 250
 target_vendor = @target_vendor@
250
-SUBDIRS = libclamunrar libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
251
+top_builddir = @top_builddir@
252
+top_srcdir = @top_srcdir@
253
+SUBDIRS = libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter
251 254
 EXTRA_DIST = FAQ contrib test examples BUGS shared libclamav.pc.in UPGRADE COPYING.nsis
252 255
 bin_SCRIPTS = clamav-config
253 256
 pkgconfigdir = $(libdir)/pkgconfig
... ...
@@ -293,7 +287,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
293 293
 clamav-config.h: stamp-h1
294 294
 	@if test ! -f $@; then \
295 295
 	  rm -f stamp-h1; \
296
-	  $(MAKE) stamp-h1; \
296
+	  $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
297 297
 	else :; fi
298 298
 
299 299
 stamp-h1: $(srcdir)/clamav-config.h.in $(top_builddir)/config.status
... ...
@@ -330,7 +324,7 @@ docs/man/sigtool.1: $(top_builddir)/config.status $(top_srcdir)/docs/man/sigtool
330 330
 	cd $(top_builddir) && $(SHELL) ./config.status $@
331 331
 install-binSCRIPTS: $(bin_SCRIPTS)
332 332
 	@$(NORMAL_INSTALL)
333
-	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
333
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
334 334
 	@list='$(bin_SCRIPTS)'; for p in $$list; do \
335 335
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
336 336
 	  if test -f $$d$$p; then \
... ...
@@ -356,10 +350,9 @@ clean-libtool:
356 356
 
357 357
 distclean-libtool:
358 358
 	-rm -f libtool
359
-uninstall-info-am:
360 359
 install-pkgconfigDATA: $(pkgconfig_DATA)
361 360
 	@$(NORMAL_INSTALL)
362
-	test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
361
+	test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
363 362
 	@list='$(pkgconfig_DATA)'; for p in $$list; do \
364 363
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
365 364
 	  f=$(am__strip_dir) \
... ...
@@ -406,8 +399,7 @@ $(RECURSIVE_TARGETS):
406 406
 	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
407 407
 	fi; test -z "$$fail"
408 408
 
409
-mostlyclean-recursive clean-recursive distclean-recursive \
410
-maintainer-clean-recursive:
409
+$(RECURSIVE_CLEAN_TARGETS):
411 410
 	@failcom='exit 1'; \
412 411
 	for f in x $$MAKEFLAGS; do \
413 412
 	  case $$f in \
... ...
@@ -509,24 +501,22 @@ distclean-tags:
509 509
 
510 510
 distdir: $(DISTFILES)
511 511
 	$(am__remove_distdir)
512
-	mkdir $(distdir)
513
-	$(mkdir_p) $(distdir)/. $(distdir)/docs/man
514
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
515
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
516
-	list='$(DISTFILES)'; for file in $$list; do \
517
-	  case $$file in \
518
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
519
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
520
-	  esac; \
512
+	test -d $(distdir) || mkdir $(distdir)
513
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
514
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
515
+	list='$(DISTFILES)'; \
516
+	  dist_files=`for file in $$list; do echo $$file; done | \
517
+	  sed -e "s|^$$srcdirstrip/||;t" \
518
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
519
+	case $$dist_files in \
520
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
521
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
522
+			   sort -u` ;; \
523
+	esac; \
524
+	for file in $$dist_files; do \
521 525
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
522
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
523
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
524
-	    dir="/$$dir"; \
525
-	    $(mkdir_p) "$(distdir)$$dir"; \
526
-	  else \
527
-	    dir=''; \
528
-	  fi; \
529 526
 	  if test -d $$d/$$file; then \
527
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
530 528
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
531 529
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
532 530
 	    fi; \
... ...
@@ -540,7 +530,7 @@ distdir: $(DISTFILES)
540 540
 	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
541 541
 	  if test "$$subdir" = .; then :; else \
542 542
 	    test -d "$(distdir)/$$subdir" \
543
-	    || $(mkdir_p) "$(distdir)/$$subdir" \
543
+	    || $(MKDIR_P) "$(distdir)/$$subdir" \
544 544
 	    || exit 1; \
545 545
 	    distdir=`$(am__cd) $(distdir) && pwd`; \
546 546
 	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
... ...
@@ -548,6 +538,8 @@ distdir: $(DISTFILES)
548 548
 	      $(MAKE) $(AM_MAKEFLAGS) \
549 549
 	        top_distdir="$$top_distdir" \
550 550
 	        distdir="$$distdir/$$subdir" \
551
+		am__remove_distdir=: \
552
+		am__skip_length_check=: \
551 553
 	        distdir) \
552 554
 	      || exit 1; \
553 555
 	  fi; \
... ...
@@ -555,7 +547,7 @@ distdir: $(DISTFILES)
555 555
 	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
556 556
 	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
557 557
 	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
558
-	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
558
+	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
559 559
 	|| chmod -R a+r $(distdir)
560 560
 dist-gzip: distdir
561 561
 	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
... ...
@@ -630,7 +622,7 @@ distcheck: dist
630 630
 	$(am__remove_distdir)
631 631
 	@(echo "$(distdir) archives ready for distribution: "; \
632 632
 	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
633
-	  sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
633
+	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
634 634
 distuninstallcheck:
635 635
 	@cd $(distuninstallcheck_dir) \
636 636
 	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
... ...
@@ -655,7 +647,7 @@ all-am: Makefile $(SCRIPTS) $(DATA) clamav-config.h
655 655
 installdirs: installdirs-recursive
656 656
 installdirs-am:
657 657
 	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"; do \
658
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
658
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
659 659
 	done
660 660
 install: install-recursive
661 661
 install-exec: install-exec-recursive
... ...
@@ -703,12 +695,20 @@ info-am:
703 703
 
704 704
 install-data-am: install-pkgconfigDATA
705 705
 
706
+install-dvi: install-dvi-recursive
707
+
706 708
 install-exec-am: install-binSCRIPTS
707 709
 
710
+install-html: install-html-recursive
711
+
708 712
 install-info: install-info-recursive
709 713
 
710 714
 install-man:
711 715
 
716
+install-pdf: install-pdf-recursive
717
+
718
+install-ps: install-ps-recursive
719
+
712 720
 installcheck-am:
713 721
 
714 722
 maintainer-clean: maintainer-clean-recursive
... ...
@@ -729,27 +729,28 @@ ps: ps-recursive
729 729
 
730 730
 ps-am:
731 731
 
732
-uninstall-am: uninstall-binSCRIPTS uninstall-info-am \
733
-	uninstall-pkgconfigDATA
732
+uninstall-am: uninstall-binSCRIPTS uninstall-pkgconfigDATA
734 733
 
735
-uninstall-info: uninstall-info-recursive
734
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
735
+	install-strip
736 736
 
737
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
738
-	check-am clean clean-generic clean-libtool clean-recursive \
739
-	ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
740
-	dist-shar dist-tarZ dist-zip distcheck distclean \
737
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
738
+	all all-am am--refresh check check-am clean clean-generic \
739
+	clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
740
+	dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
741 741
 	distclean-generic distclean-hdr distclean-libtool \
742
-	distclean-recursive distclean-tags distcleancheck distdir \
743
-	distuninstallcheck dvi dvi-am html html-am info info-am \
744
-	install install-am install-binSCRIPTS install-data \
745
-	install-data-am install-exec install-exec-am install-info \
746
-	install-info-am install-man install-pkgconfigDATA \
747
-	install-strip installcheck installcheck-am installdirs \
748
-	installdirs-am maintainer-clean maintainer-clean-generic \
749
-	maintainer-clean-recursive mostlyclean mostlyclean-generic \
750
-	mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
751
-	tags tags-recursive uninstall uninstall-am \
752
-	uninstall-binSCRIPTS uninstall-info-am uninstall-pkgconfigDATA
742
+	distclean-tags distcleancheck distdir distuninstallcheck dvi \
743
+	dvi-am html html-am info info-am install install-am \
744
+	install-binSCRIPTS install-data install-data-am install-dvi \
745
+	install-dvi-am install-exec install-exec-am install-html \
746
+	install-html-am install-info install-info-am install-man \
747
+	install-pdf install-pdf-am install-pkgconfigDATA install-ps \
748
+	install-ps-am install-strip installcheck installcheck-am \
749
+	installdirs installdirs-am maintainer-clean \
750
+	maintainer-clean-generic mostlyclean mostlyclean-generic \
751
+	mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
752
+	uninstall uninstall-am uninstall-binSCRIPTS \
753
+	uninstall-pkgconfigDATA
753 754
 
754 755
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
755 756
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,7 +1,7 @@
1
-# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
+# generated automatically by aclocal 1.10 -*- Autoconf -*-
2 2
 
3 3
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
-# 2005  Free Software Foundation, Inc.
4
+# 2005, 2006  Free Software Foundation, Inc.
5 5
 # This file is free software; the Free Software Foundation
6 6
 # gives unlimited permission to copy and/or distribute it,
7 7
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -11,9 +11,14 @@
11 11
 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 12
 # PARTICULAR PURPOSE.
13 13
 
14
+m4_if(m4_PACKAGE_VERSION, [2.61],,
15
+[m4_fatal([this file was generated for autoconf 2.61.
16
+You have another version of autoconf.  If you want to use that,
17
+you should regenerate the build system entirely.], [63])])
18
+
14 19
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15 20
 
16
-# serial 48 AC_PROG_LIBTOOL
21
+# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
17 22
 
18 23
 
19 24
 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
... ...
@@ -1397,18 +1402,6 @@ freebsd1*)
1397 1397
   dynamic_linker=no
1398 1398
   ;;
1399 1399
 
1400
-kfreebsd*-gnu)
1401
-  version_type=linux
1402
-  need_lib_prefix=no
1403
-  need_version=no
1404
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1405
-  soname_spec='${libname}${release}${shared_ext}$major'
1406
-  shlibpath_var=LD_LIBRARY_PATH
1407
-  shlibpath_overrides_runpath=no
1408
-  hardcode_into_libs=yes
1409
-  dynamic_linker='GNU ld.so'
1410
-  ;;
1411
-
1412 1400
 freebsd* | dragonfly*)
1413 1401
   # DragonFly does not have aout.  When/if they implement a new
1414 1402
   # versioning mechanism, adjust this.
... ...
@@ -1564,7 +1557,7 @@ linux*oldld* | linux*aout* | linux*coff*)
1564 1564
   ;;
1565 1565
 
1566 1566
 # This must be Linux ELF.
1567
-linux*)
1567
+linux* | k*bsd*-gnu)
1568 1568
   version_type=linux
1569 1569
   need_lib_prefix=no
1570 1570
   need_version=no
... ...
@@ -1578,27 +1571,10 @@ linux*)
1578 1578
   # before this can be enabled.
1579 1579
   hardcode_into_libs=yes
1580 1580
 
1581
-  # find out which ABI we are using
1582
-  libsuff=
1583
-  case "$host_cpu" in
1584
-  x86_64*|s390x*|powerpc64*)
1585
-    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1586
-    if AC_TRY_EVAL(ac_compile); then
1587
-      case `/usr/bin/file conftest.$ac_objext` in
1588
-      *64-bit*)
1589
-        libsuff=64
1590
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1591
-        ;;
1592
-      esac
1593
-    fi
1594
-    rm -rf conftest*
1595
-    ;;
1596
-  esac
1597
-
1598 1581
   # Append ld.so.conf contents to the search path
1599 1582
   if test -f /etc/ld.so.conf; then
1600
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^[	 ]*//;s/#.*//;/^[^\/]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1601
-    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1583
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1584
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1602 1585
   fi
1603 1586
 
1604 1587
   # We used to test for /lib/ld.so.1 and disable shared libraries on
... ...
@@ -1610,7 +1586,7 @@ linux*)
1610 1610
   dynamic_linker='GNU/Linux ld.so'
1611 1611
   ;;
1612 1612
 
1613
-knetbsd*-gnu)
1613
+netbsdelf*-gnu)
1614 1614
   version_type=linux
1615 1615
   need_lib_prefix=no
1616 1616
   need_version=no
... ...
@@ -1619,7 +1595,7 @@ knetbsd*-gnu)
1619 1619
   shlibpath_var=LD_LIBRARY_PATH
1620 1620
   shlibpath_overrides_runpath=no
1621 1621
   hardcode_into_libs=yes
1622
-  dynamic_linker='GNU ld.so'
1622
+  dynamic_linker='NetBSD ld.elf_so'
1623 1623
   ;;
1624 1624
 
1625 1625
 netbsd*)
... ...
@@ -2327,7 +2303,7 @@ darwin* | rhapsody*)
2327 2327
   lt_cv_deplibs_check_method=pass_all
2328 2328
   ;;
2329 2329
 
2330
-freebsd* | kfreebsd*-gnu | dragonfly*)
2330
+freebsd* | dragonfly*)
2331 2331
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2332 2332
     case $host_cpu in
2333 2333
     i*86 )
... ...
@@ -2381,11 +2357,11 @@ irix5* | irix6* | nonstopux*)
2381 2381
   ;;
2382 2382
 
2383 2383
 # This must be Linux ELF.
2384
-linux*)
2384
+linux* | k*bsd*-gnu)
2385 2385
   lt_cv_deplibs_check_method=pass_all
2386 2386
   ;;
2387 2387
 
2388
-netbsd*)
2388
+netbsd* | netbsdelf*-gnu)
2389 2389
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2390 2390
     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2391 2391
   else
... ...
@@ -3133,7 +3109,7 @@ case $host_os in
3133 3133
   freebsd-elf*)
3134 3134
     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3135 3135
     ;;
3136
-  freebsd* | kfreebsd*-gnu | dragonfly*)
3136
+  freebsd* | dragonfly*)
3137 3137
     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3138 3138
     # conventions
3139 3139
     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
... ...
@@ -3292,7 +3268,7 @@ case $host_os in
3292 3292
     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3293 3293
     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3294 3294
     ;;
3295
-  linux*)
3295
+  linux* | k*bsd*-gnu)
3296 3296
     case $cc_basename in
3297 3297
       KCC*)
3298 3298
 	# Kuck and Associates, Inc. (KAI) C++ Compiler
... ...
@@ -3394,7 +3370,7 @@ case $host_os in
3394 3394
 	;;
3395 3395
     esac
3396 3396
     ;;
3397
-  netbsd*)
3397
+  netbsd* | netbsdelf*-gnu)
3398 3398
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3399 3399
       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3400 3400
       wlarc=
... ...
@@ -4659,7 +4635,7 @@ hpux*) # Its linker distinguishes data from code symbols
4659 4659
   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4660 4660
   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4661 4661
   ;;
4662
-linux*)
4662
+linux* | k*bsd*-gnu)
4663 4663
   if test "$host_cpu" = ia64; then
4664 4664
     symcode='[[ABCDGIRSTW]]'
4665 4665
     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
... ...
@@ -4932,7 +4908,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4932 4932
 	    ;;
4933 4933
 	esac
4934 4934
 	;;
4935
-      freebsd* | kfreebsd*-gnu | dragonfly*)
4935
+      freebsd* | dragonfly*)
4936 4936
 	# FreeBSD uses GNU C++
4937 4937
 	;;
4938 4938
       hpux9* | hpux10* | hpux11*)
... ...
@@ -4975,7 +4951,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4975 4975
 	    ;;
4976 4976
 	esac
4977 4977
 	;;
4978
-      linux*)
4978
+      linux* | k*bsd*-gnu)
4979 4979
 	case $cc_basename in
4980 4980
 	  KCC*)
4981 4981
 	    # KAI C++ Compiler
... ...
@@ -5018,7 +4994,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
5018 5018
 	    ;;
5019 5019
 	esac
5020 5020
 	;;
5021
-      netbsd*)
5021
+      netbsd* | netbsdelf*-gnu)
5022 5022
 	;;
5023 5023
       osf3* | osf4* | osf5*)
5024 5024
 	case $cc_basename in
... ...
@@ -5229,7 +5205,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
5229 5229
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5230 5230
       ;;
5231 5231
 
5232
-    linux*)
5232
+    linux* | k*bsd*-gnu)
5233 5233
       case $cc_basename in
5234 5234
       icc* | ecc*)
5235 5235
 	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
... ...
@@ -5370,6 +5346,9 @@ ifelse([$1],[CXX],[
5370 5370
   cygwin* | mingw*)
5371 5371
     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5372 5372
   ;;
5373
+  linux* | k*bsd*-gnu)
5374
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5375
+  ;;
5373 5376
   *)
5374 5377
     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5375 5378
   ;;
... ...
@@ -5540,7 +5519,7 @@ EOF
5540 5540
       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5541 5541
       ;;
5542 5542
 
5543
-    linux*)
5543
+    linux* | k*bsd*-gnu)
5544 5544
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5545 5545
 	tmp_addflag=
5546 5546
 	case $cc_basename,$host_cpu in
... ...
@@ -5566,12 +5545,13 @@ EOF
5566 5566
   $echo "local: *; };" >> $output_objdir/$libname.ver~
5567 5567
 	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5568 5568
 	fi
5569
+	_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5569 5570
       else
5570 5571
 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
5571 5572
       fi
5572 5573
       ;;
5573 5574
 
5574
-    netbsd*)
5575
+    netbsd* | netbsdelf*-gnu)
5575 5576
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5576 5577
 	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5577 5578
 	wlarc=
... ...
@@ -5901,7 +5881,7 @@ _LT_EOF
5901 5901
       ;;
5902 5902
 
5903 5903
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5904
-    freebsd* | kfreebsd*-gnu | dragonfly*)
5904
+    freebsd* | dragonfly*)
5905 5905
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5906 5906
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5907 5907
       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
... ...
@@ -6003,7 +5983,7 @@ _LT_EOF
6003 6003
       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6004 6004
       ;;
6005 6005
 
6006
-    netbsd*)
6006
+    netbsd* | netbsdelf*-gnu)
6007 6007
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6008 6008
 	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6009 6009
       else
... ...
@@ -6370,7 +6350,6 @@ do
6370 6370
     done
6371 6371
   done
6372 6372
 done
6373
-IFS=$as_save_IFS
6374 6373
 lt_ac_max=0
6375 6374
 lt_ac_count=0
6376 6375
 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
... ...
@@ -6403,11 +6382,10 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6403 6403
 done
6404 6404
 ])
6405 6405
 SED=$lt_cv_path_SED
6406
-AC_SUBST([SED])
6407 6406
 AC_MSG_RESULT([$SED])
6408 6407
 ])
6409 6408
 
6410
-# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
6409
+# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
6411 6410
 #
6412 6411
 # This file is free software; the Free Software Foundation
6413 6412
 # gives unlimited permission to copy and/or distribute it,
... ...
@@ -6417,14 +6395,29 @@ AC_MSG_RESULT([$SED])
6417 6417
 # ----------------------------
6418 6418
 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6419 6419
 # generated from the m4 files accompanying Automake X.Y.
6420
-AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6420
+# (This private macro should not be called outside this file.)
6421
+AC_DEFUN([AM_AUTOMAKE_VERSION],
6422
+[am__api_version='1.10'
6423
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6424
+dnl require some minimum version.  Point them to the right macro.
6425
+m4_if([$1], [1.10], [],
6426
+      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6427
+])
6428
+
6429
+# _AM_AUTOCONF_VERSION(VERSION)
6430
+# -----------------------------
6431
+# aclocal traces this macro to find the Autoconf version.
6432
+# This is a private macro too.  Using m4_define simplifies
6433
+# the logic in aclocal, which can simply ignore this definition.
6434
+m4_define([_AM_AUTOCONF_VERSION], [])
6421 6435
 
6422 6436
 # AM_SET_CURRENT_AUTOMAKE_VERSION
6423 6437
 # -------------------------------
6424
-# Call AM_AUTOMAKE_VERSION so it can be traced.
6438
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6425 6439
 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6426 6440
 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6427
-	 [AM_AUTOMAKE_VERSION([1.9.6])])
6441
+[AM_AUTOMAKE_VERSION([1.10])dnl
6442
+_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6428 6443
 
6429 6444
 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6430 6445
 
... ...
@@ -6481,14 +6474,14 @@ am_aux_dir=`cd $ac_aux_dir && pwd`
6481 6481
 
6482 6482
 # AM_CONDITIONAL                                            -*- Autoconf -*-
6483 6483
 
6484
-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6484
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6485 6485
 # Free Software Foundation, Inc.
6486 6486
 #
6487 6487
 # This file is free software; the Free Software Foundation
6488 6488
 # gives unlimited permission to copy and/or distribute it,
6489 6489
 # with or without modifications, as long as this notice is preserved.
6490 6490
 
6491
-# serial 7
6491
+# serial 8
6492 6492
 
6493 6493
 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6494 6494
 # -------------------------------------
... ...
@@ -6497,8 +6490,10 @@ AC_DEFUN([AM_CONDITIONAL],
6497 6497
 [AC_PREREQ(2.52)dnl
6498 6498
  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6499 6499
 	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6500
-AC_SUBST([$1_TRUE])
6501
-AC_SUBST([$1_FALSE])
6500
+AC_SUBST([$1_TRUE])dnl
6501
+AC_SUBST([$1_FALSE])dnl
6502
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
6503
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6502 6504
 if $2; then
6503 6505
   $1_TRUE=
6504 6506
   $1_FALSE='#'
... ...
@@ -6512,15 +6507,14 @@ AC_CONFIG_COMMANDS_PRE(
6512 6512
 Usually this means the macro was only invoked conditionally.]])
6513 6513
 fi])])
6514 6514
 
6515
-
6516
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6515
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6517 6516
 # Free Software Foundation, Inc.
6518 6517
 #
6519 6518
 # This file is free software; the Free Software Foundation
6520 6519
 # gives unlimited permission to copy and/or distribute it,
6521 6520
 # with or without modifications, as long as this notice is preserved.
6522 6521
 
6523
-# serial 8
6522
+# serial 9
6524 6523
 
6525 6524
 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6526 6525
 # written in clear, in which case automake, when reading aclocal.m4,
... ...
@@ -6548,6 +6542,7 @@ AC_REQUIRE([AM_DEP_TRACK])dnl
6548 6548
 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6549 6549
        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6550 6550
        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6551
+       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6551 6552
        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6552 6553
                    [depcc="$$1"   am_compiler_list=])
6553 6554
 
... ...
@@ -6613,6 +6608,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
6613 6613
        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6614 6614
        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6615 6615
          >/dev/null 2>conftest.err &&
6616
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6616 6617
        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6617 6618
        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6618 6619
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
... ...
@@ -6665,7 +6661,8 @@ if test "x$enable_dependency_tracking" != xno; then
6665 6665
   AMDEPBACKSLASH='\'
6666 6666
 fi
6667 6667
 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6668
-AC_SUBST([AMDEPBACKSLASH])
6668
+AC_SUBST([AMDEPBACKSLASH])dnl
6669
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6669 6670
 ])
6670 6671
 
6671 6672
 # Generate code to set up dependency tracking.              -*- Autoconf -*-
... ...
@@ -6690,8 +6687,9 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6690 6690
   # some people rename them; so instead we look at the file content.
6691 6691
   # Grep'ing the first line is not enough: some people post-process
6692 6692
   # each Makefile.in and add a new line on top of each file to say so.
6693
-  # So let's grep whole file.
6694
-  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6693
+  # Grep'ing the whole file is not good either: AIX grep has a line
6694
+  # limit of 2048, but all sed's we know have understand at least 4000.
6695
+  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6695 6696
     dirpart=`AS_DIRNAME("$mf")`
6696 6697
   else
6697 6698
     continue
... ...
@@ -6750,8 +6748,8 @@ AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6750 6750
 
6751 6751
 # Do all the work for Automake.                             -*- Autoconf -*-
6752 6752
 
6753
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6754
-# Free Software Foundation, Inc.
6753
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
6754
+# 2005, 2006 Free Software Foundation, Inc.
6755 6755
 #
6756 6756
 # This file is free software; the Free Software Foundation
6757 6757
 # gives unlimited permission to copy and/or distribute it,
... ...
@@ -6774,16 +6772,20 @@ AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6774 6774
 # arguments mandatory, and then we can depend on a new Autoconf
6775 6775
 # release and drop the old call support.
6776 6776
 AC_DEFUN([AM_INIT_AUTOMAKE],
6777
-[AC_PREREQ([2.58])dnl
6777
+[AC_PREREQ([2.60])dnl
6778 6778
 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6779 6779
 dnl the ones we care about.
6780 6780
 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6781 6781
 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6782 6782
 AC_REQUIRE([AC_PROG_INSTALL])dnl
6783
-# test to see if srcdir already configured
6784
-if test "`cd $srcdir && pwd`" != "`pwd`" &&
6785
-   test -f $srcdir/config.status; then
6786
-  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6783
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
6784
+  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6785
+  # is not polluted with repeated "-I."
6786
+  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
6787
+  # test to see if srcdir already configured
6788
+  if test -f $srcdir/config.status; then
6789
+    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6790
+  fi
6787 6791
 fi
6788 6792
 
6789 6793
 # test whether we have cygpath
... ...
@@ -6803,6 +6805,9 @@ m4_ifval([$2],
6803 6803
  AC_SUBST([PACKAGE], [$1])dnl
6804 6804
  AC_SUBST([VERSION], [$2])],
6805 6805
 [_AM_SET_OPTIONS([$1])dnl
6806
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
6807
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
6808
+  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6806 6809
  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6807 6810
  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6808 6811
 
... ...
@@ -6838,6 +6843,10 @@ AC_PROVIDE_IFELSE([AC_PROG_CXX],
6838 6838
                   [_AM_DEPENDENCIES(CXX)],
6839 6839
                   [define([AC_PROG_CXX],
6840 6840
                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6841
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
6842
+                  [_AM_DEPENDENCIES(OBJC)],
6843
+                  [define([AC_PROG_OBJC],
6844
+                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6841 6845
 ])
6842 6846
 ])
6843 6847
 
... ...
@@ -6873,7 +6882,7 @@ echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6873 6873
 # Define $install_sh.
6874 6874
 AC_DEFUN([AM_PROG_INSTALL_SH],
6875 6875
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6876
-install_sh=${install_sh-"$am_aux_dir/install-sh"}
6876
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6877 6877
 AC_SUBST(install_sh)])
6878 6878
 
6879 6879
 # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
... ...
@@ -6951,14 +6960,14 @@ rm -f confinc confmf
6951 6951
 
6952 6952
 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
6953 6953
 
6954
-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
6954
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
6955 6955
 # Free Software Foundation, Inc.
6956 6956
 #
6957 6957
 # This file is free software; the Free Software Foundation
6958 6958
 # gives unlimited permission to copy and/or distribute it,
6959 6959
 # with or without modifications, as long as this notice is preserved.
6960 6960
 
6961
-# serial 4
6961
+# serial 5
6962 6962
 
6963 6963
 # AM_MISSING_PROG(NAME, PROGRAM)
6964 6964
 # ------------------------------
... ...
@@ -6974,6 +6983,7 @@ AC_SUBST($1)])
6974 6974
 # If it does, set am_missing_run to use it, otherwise, to nothing.
6975 6975
 AC_DEFUN([AM_MISSING_HAS_RUN],
6976 6976
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6977
+AC_REQUIRE_AUX_FILE([missing])dnl
6977 6978
 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6978 6979
 # Use eval to expand $SHELL
6979 6980
 if eval "$MISSING --run true"; then
... ...
@@ -6984,7 +6994,7 @@ else
6984 6984
 fi
6985 6985
 ])
6986 6986
 
6987
-# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
6987
+# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6988 6988
 #
6989 6989
 # This file is free software; the Free Software Foundation
6990 6990
 # gives unlimited permission to copy and/or distribute it,
... ...
@@ -6992,60 +7002,23 @@ fi
6992 6992
 
6993 6993
 # AM_PROG_MKDIR_P
6994 6994
 # ---------------
6995
-# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6996
-#
6997
-# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6998
-# created by `make install' are always world readable, even if the
6999
-# installer happens to have an overly restrictive umask (e.g. 077).
7000
-# This was a mistake.  There are at least two reasons why we must not
7001
-# use `-m 0755':
7002
-#   - it causes special bits like SGID to be ignored,
7003
-#   - it may be too restrictive (some setups expect 775 directories).
7004
-#
7005
-# Do not use -m 0755 and let people choose whatever they expect by
7006
-# setting umask.
7007
-#
7008
-# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7009
-# Some implementations (such as Solaris 8's) are not thread-safe: if a
7010
-# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7011
-# concurrently, both version can detect that a/ is missing, but only
7012
-# one can create it and the other will error out.  Consequently we
7013
-# restrict ourselves to GNU make (using the --version option ensures
7014
-# this.)
6995
+# Check for `mkdir -p'.
7015 6996
 AC_DEFUN([AM_PROG_MKDIR_P],
7016
-[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7017
-  # We used to keeping the `.' as first argument, in order to
7018
-  # allow $(mkdir_p) to be used without argument.  As in
7019
-  #   $(mkdir_p) $(somedir)
7020
-  # where $(somedir) is conditionally defined.  However this is wrong
7021
-  # for two reasons:
7022
-  #  1. if the package is installed by a user who cannot write `.'
7023
-  #     make install will fail,
7024
-  #  2. the above comment should most certainly read
7025
-  #     $(mkdir_p) $(DESTDIR)$(somedir)
7026
-  #     so it does not work when $(somedir) is undefined and
7027
-  #     $(DESTDIR) is not.
7028
-  #  To support the latter case, we have to write
7029
-  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7030
-  #  so the `.' trick is pointless.
7031
-  mkdir_p='mkdir -p --'
7032
-else
7033
-  # On NextStep and OpenStep, the `mkdir' command does not
7034
-  # recognize any option.  It will interpret all options as
7035
-  # directories to create, and then abort because `.' already
7036
-  # exists.
7037
-  for d in ./-p ./--version;
7038
-  do
7039
-    test -d $d && rmdir $d
7040
-  done
7041
-  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7042
-  if test -f "$ac_aux_dir/mkinstalldirs"; then
7043
-    mkdir_p='$(mkinstalldirs)'
7044
-  else
7045
-    mkdir_p='$(install_sh) -d'
7046
-  fi
7047
-fi
7048
-AC_SUBST([mkdir_p])])
6997
+[AC_PREREQ([2.60])dnl
6998
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
6999
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
7000
+dnl while keeping a definition of mkdir_p for backward compatibility.
7001
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7002
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7003
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
7004
+dnl adjustment using top_builddir (which is defined more often than
7005
+dnl MKDIR_P).
7006
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7007
+case $mkdir_p in
7008
+  [[\\/$]]* | ?:[[\\/]]*) ;;
7009
+  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7010
+esac
7011
+])
7049 7012
 
7050 7013
 # Helper functions for option handling.                     -*- Autoconf -*-
7051 7014
 
... ...
@@ -7157,9 +7130,21 @@ dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7157 7157
 if test "$cross_compiling" != no; then
7158 7158
   AC_CHECK_TOOL([STRIP], [strip], :)
7159 7159
 fi
7160
-INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7160
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7161 7161
 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7162 7162
 
7163
+# Copyright (C) 2006  Free Software Foundation, Inc.
7164
+#
7165
+# This file is free software; the Free Software Foundation
7166
+# gives unlimited permission to copy and/or distribute it,
7167
+# with or without modifications, as long as this notice is preserved.
7168
+
7169
+# _AM_SUBST_NOTMAKE(VARIABLE)
7170
+# ---------------------------
7171
+# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7172
+# This macro is traced by Automake.
7173
+AC_DEFUN([_AM_SUBST_NOTMAKE])
7174
+
7163 7175
 # Check how to create a tarball.                            -*- Autoconf -*-
7164 7176
 
7165 7177
 # Copyright (C) 2004, 2005  Free Software Foundation, Inc.
... ...
@@ -84,9 +84,6 @@
84 84
 /* "default FD_SETSIZE value" */
85 85
 #undef DEFAULT_FD_SETSIZE
86 86
 
87
-/* link with libclamunrar (non-GPL, see COPYING.unrar) */
88
-#undef ENABLE_UNRAR
89
-
90 87
 /* file i/o buffer size */
91 88
 #undef FILEBUFF
92 89
 
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,15 +32,11 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
-srcdir = @srcdir@
36
-top_srcdir = @top_srcdir@
37 35
 VPATH = @srcdir@
38 36
 pkgdatadir = $(datadir)/@PACKAGE@
39 37
 pkglibdir = $(libdir)/@PACKAGE@
40 38
 pkgincludedir = $(includedir)/@PACKAGE@
41
-top_builddir = ..
42 39
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
-INSTALL = @INSTALL@
44 40
 install_sh_DATA = $(install_sh) -c -m 644
45 41
 install_sh_PROGRAM = $(install_sh) -c
46 42
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -85,17 +81,18 @@ am__clamav_milter_SOURCES_DIST = $(top_srcdir)/shared/cfgparser.c \
85 85
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@	clamav-milter.$(OBJEXT)
86 86
 clamav_milter_OBJECTS = $(am_clamav_milter_OBJECTS)
87 87
 clamav_milter_LDADD = $(LDADD)
88
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
88
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
89 89
 depcomp = $(SHELL) $(top_srcdir)/depcomp
90 90
 am__depfiles_maybe = depfiles
91 91
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
92 92
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
93
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
94
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
95
-	$(AM_CFLAGS) $(CFLAGS)
93
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
94
+	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
95
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
96 96
 CCLD = $(CC)
97
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
98
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
97
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
98
+	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
99
+	$(LDFLAGS) -o $@
99 100
 SOURCES = $(clamav_milter_SOURCES)
100 101
 DIST_SOURCES = $(am__clamav_milter_SOURCES_DIST)
101 102
 man8dir = $(mandir)/man8
... ...
@@ -105,16 +102,12 @@ ETAGS = etags
105 105
 CTAGS = ctags
106 106
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
107 107
 ACLOCAL = @ACLOCAL@
108
-AMDEP_FALSE = @AMDEP_FALSE@
109
-AMDEP_TRUE = @AMDEP_TRUE@
110 108
 AMTAR = @AMTAR@
111 109
 AR = @AR@
112 110
 AUTOCONF = @AUTOCONF@
113 111
 AUTOHEADER = @AUTOHEADER@
114 112
 AUTOMAKE = @AUTOMAKE@
115 113
 AWK = @AWK@
116
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
117
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
118 114
 CC = @CC@
119 115
 CCDEPMODE = @CCDEPMODE@
120 116
 CFGDIR = @CFGDIR@
... ...
@@ -138,16 +131,13 @@ ECHO_C = @ECHO_C@
138 138
 ECHO_N = @ECHO_N@
139 139
 ECHO_T = @ECHO_T@
140 140
 EGREP = @EGREP@
141
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
142
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
143 141
 EXEEXT = @EXEEXT@
144 142
 F77 = @F77@
145 143
 FFLAGS = @FFLAGS@
146 144
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
147 145
 GETENT = @GETENT@
148 146
 GREP = @GREP@
149
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
150
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
147
+INSTALL = @INSTALL@
151 148
 INSTALL_DATA = @INSTALL_DATA@
152 149
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
153 150
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -161,9 +151,8 @@ LIBTOOL = @LIBTOOL@
161 161
 LN_S = @LN_S@
162 162
 LTLIBOBJS = @LTLIBOBJS@
163 163
 MAINT = @MAINT@
164
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
165
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
166 164
 MAKEINFO = @MAKEINFO@
165
+MKDIR_P = @MKDIR_P@
167 166
 OBJEXT = @OBJEXT@
168 167
 PACKAGE = @PACKAGE@
169 168
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -173,20 +162,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
173 173
 PACKAGE_VERSION = @PACKAGE_VERSION@
174 174
 PATH_SEPARATOR = @PATH_SEPARATOR@
175 175
 RANLIB = @RANLIB@
176
-SED = @SED@
177 176
 SET_MAKE = @SET_MAKE@
178 177
 SHELL = @SHELL@
179 178
 STRIP = @STRIP@
180 179
 THREAD_LIBS = @THREAD_LIBS@
181 180
 TH_SAFE = @TH_SAFE@
182 181
 VERSION = @VERSION@
182
+abs_builddir = @abs_builddir@
183
+abs_srcdir = @abs_srcdir@
184
+abs_top_builddir = @abs_top_builddir@
185
+abs_top_srcdir = @abs_top_srcdir@
183 186
 ac_ct_CC = @ac_ct_CC@
184 187
 ac_ct_CXX = @ac_ct_CXX@
185 188
 ac_ct_F77 = @ac_ct_F77@
186
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
187
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
188
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
189
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
190 189
 am__include = @am__include@
191 190
 am__leading_dot = @am__leading_dot@
192 191
 am__quote = @am__quote@
... ...
@@ -198,6 +186,7 @@ build_alias = @build_alias@
198 198
 build_cpu = @build_cpu@
199 199
 build_os = @build_os@
200 200
 build_vendor = @build_vendor@
201
+builddir = @builddir@
201 202
 datadir = @datadir@
202 203
 datarootdir = @datarootdir@
203 204
 docdir = @docdir@
... ...
@@ -226,12 +215,15 @@ psdir = @psdir@
226 226
 sbindir = @sbindir@
227 227
 sendmailprog = @sendmailprog@
228 228
 sharedstatedir = @sharedstatedir@
229
+srcdir = @srcdir@
229 230
 sysconfdir = @sysconfdir@
230 231
 target = @target@
231 232
 target_alias = @target_alias@
232 233
 target_cpu = @target_cpu@
233 234
 target_os = @target_os@
234 235
 target_vendor = @target_vendor@
236
+top_builddir = @top_builddir@
237
+top_srcdir = @top_srcdir@
235 238
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@clamav_milter_SOURCES = \
236 239
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@    $(top_srcdir)/shared/cfgparser.c \
237 240
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@    $(top_srcdir)/shared/cfgparser.h \
... ...
@@ -283,7 +275,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
283 283
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
284 284
 install-sbinPROGRAMS: $(sbin_PROGRAMS)
285 285
 	@$(NORMAL_INSTALL)
286
-	test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
286
+	test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
287 287
 	@list='$(sbin_PROGRAMS)'; for p in $$list; do \
288 288
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
289 289
 	  if test -f $$p \
... ...
@@ -311,7 +303,7 @@ clean-sbinPROGRAMS:
311 311
 	done
312 312
 clamav-milter$(EXEEXT): $(clamav_milter_OBJECTS) $(clamav_milter_DEPENDENCIES) 
313 313
 	@rm -f clamav-milter$(EXEEXT)
314
-	$(LINK) $(clamav_milter_LDFLAGS) $(clamav_milter_OBJECTS) $(clamav_milter_LDADD) $(LIBS)
314
+	$(LINK) $(clamav_milter_OBJECTS) $(clamav_milter_LDADD) $(LIBS)
315 315
 
316 316
 mostlyclean-compile:
317 317
 	-rm -f *.$(OBJEXT)
... ...
@@ -327,92 +319,92 @@ distclean-compile:
327 327
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output.Po@am__quote@
328 328
 
329 329
 .c.o:
330
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
331
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
330
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
332 332
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
333 333
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
334 334
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
335 335
 
336 336
 .c.obj:
337
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
338
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
337
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
338
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
339 339
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
340 340
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
341 341
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
342 342
 
343 343
 .c.lo:
344
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
345
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
344
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
345
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
346 346
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
347 347
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
348 348
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
349 349
 
350 350
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
351
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
352
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
351
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
352
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
353 353
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
354 354
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
355 355
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
356 356
 
357 357
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
358
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
359
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
358
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
359
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
360 360
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
361 361
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
362 362
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
363 363
 
364 364
 output.o: $(top_srcdir)/shared/output.c
365
-@am__fastdepCC_TRUE@	if $(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; \
366
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
365
+@am__fastdepCC_TRUE@	$(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
366
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
367 367
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
368 368
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
369 369
 @am__fastdepCC_FALSE@	$(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
370 370
 
371 371
 output.obj: $(top_srcdir)/shared/output.c
372
-@am__fastdepCC_TRUE@	if $(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`; \
373
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
372
+@am__fastdepCC_TRUE@	$(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`
373
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
374 374
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
375 375
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
376 376
 @am__fastdepCC_FALSE@	$(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`
377 377
 
378 378
 getopt.o: $(top_srcdir)/shared/getopt.c
379
-@am__fastdepCC_TRUE@	if $(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; \
380
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
379
+@am__fastdepCC_TRUE@	$(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
380
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
381 381
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
382 382
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
383 383
 @am__fastdepCC_FALSE@	$(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
384 384
 
385 385
 getopt.obj: $(top_srcdir)/shared/getopt.c
386
-@am__fastdepCC_TRUE@	if $(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`; \
387
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
386
+@am__fastdepCC_TRUE@	$(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`
387
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
388 388
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
389 389
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
390 390
 @am__fastdepCC_FALSE@	$(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`
391 391
 
392 392
 misc.o: $(top_srcdir)/shared/misc.c
393
-@am__fastdepCC_TRUE@	if $(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; \
394
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
393
+@am__fastdepCC_TRUE@	$(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
394
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
395 395
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
396 396
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
397 397
 @am__fastdepCC_FALSE@	$(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
398 398
 
399 399
 misc.obj: $(top_srcdir)/shared/misc.c
400
-@am__fastdepCC_TRUE@	if $(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`; \
401
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
400
+@am__fastdepCC_TRUE@	$(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`
401
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
402 402
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
403 403
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
404 404
 @am__fastdepCC_FALSE@	$(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`
405 405
 
406 406
 network.o: $(top_srcdir)/shared/network.c
407
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.o -MD -MP -MF "$(DEPDIR)/network.Tpo" -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c; \
408
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/network.Tpo" "$(DEPDIR)/network.Po"; else rm -f "$(DEPDIR)/network.Tpo"; exit 1; fi
407
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.o -MD -MP -MF $(DEPDIR)/network.Tpo -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c
408
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/network.Tpo $(DEPDIR)/network.Po
409 409
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/network.c' object='network.o' libtool=no @AMDEPBACKSLASH@
410 410
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
411 411
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c
412 412
 
413 413
 network.obj: $(top_srcdir)/shared/network.c
414
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.obj -MD -MP -MF "$(DEPDIR)/network.Tpo" -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`; \
415
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/network.Tpo" "$(DEPDIR)/network.Po"; else rm -f "$(DEPDIR)/network.Tpo"; exit 1; fi
414
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.obj -MD -MP -MF $(DEPDIR)/network.Tpo -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`
415
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/network.Tpo $(DEPDIR)/network.Po
416 416
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/network.c' object='network.obj' libtool=no @AMDEPBACKSLASH@
417 417
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
418 418
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`
... ...
@@ -422,13 +414,9 @@ mostlyclean-libtool:
422 422
 
423 423
 clean-libtool:
424 424
 	-rm -rf .libs _libs
425
-
426
-distclean-libtool:
427
-	-rm -f libtool
428
-uninstall-info-am:
429 425
 install-man8: $(man8_MANS) $(man_MANS)
430 426
 	@$(NORMAL_INSTALL)
431
-	test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
427
+	test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
432 428
 	@list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
433 429
 	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
434 430
 	for i in $$l2; do \
... ...
@@ -521,22 +509,21 @@ distclean-tags:
521 521
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
522 522
 
523 523
 distdir: $(DISTFILES)
524
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
525
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
526
-	list='$(DISTFILES)'; for file in $$list; do \
527
-	  case $$file in \
528
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
529
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
530
-	  esac; \
524
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
525
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
526
+	list='$(DISTFILES)'; \
527
+	  dist_files=`for file in $$list; do echo $$file; done | \
528
+	  sed -e "s|^$$srcdirstrip/||;t" \
529
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
530
+	case $$dist_files in \
531
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
532
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
533
+			   sort -u` ;; \
534
+	esac; \
535
+	for file in $$dist_files; do \
531 536
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
532
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
533
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
534
-	    dir="/$$dir"; \
535
-	    $(mkdir_p) "$(distdir)$$dir"; \
536
-	  else \
537
-	    dir=''; \
538
-	  fi; \
539 537
 	  if test -d $$d/$$file; then \
538
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
540 539
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
541 540
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
542 541
 	    fi; \
... ...
@@ -552,7 +539,7 @@ check: check-am
552 552
 all-am: Makefile $(PROGRAMS) $(MANS)
553 553
 installdirs:
554 554
 	for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)"; do \
555
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
555
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
556 556
 	done
557 557
 install: install-am
558 558
 install-exec: install-exec-am
... ...
@@ -587,7 +574,7 @@ distclean: distclean-am
587 587
 	-rm -rf ./$(DEPDIR)
588 588
 	-rm -f Makefile
589 589
 distclean-am: clean-am distclean-compile distclean-generic \
590
-	distclean-libtool distclean-tags
590
+	distclean-tags
591 591
 
592 592
 dvi: dvi-am
593 593
 
... ...
@@ -601,12 +588,20 @@ info-am:
601 601
 
602 602
 install-data-am: install-man
603 603
 
604
+install-dvi: install-dvi-am
605
+
604 606
 install-exec-am: install-sbinPROGRAMS
605 607
 
608
+install-html: install-html-am
609
+
606 610
 install-info: install-info-am
607 611
 
608 612
 install-man: install-man8
609 613
 
614
+install-pdf: install-pdf-am
615
+
616
+install-ps: install-ps-am
617
+
610 618
 installcheck-am:
611 619
 
612 620
 maintainer-clean: maintainer-clean-am
... ...
@@ -627,22 +622,26 @@ ps: ps-am
627 627
 
628 628
 ps-am:
629 629
 
630
-uninstall-am: uninstall-info-am uninstall-man uninstall-sbinPROGRAMS
630
+uninstall-am: uninstall-man uninstall-sbinPROGRAMS
631 631
 
632 632
 uninstall-man: uninstall-man8
633 633
 
634
+.MAKE: install-am install-strip
635
+
634 636
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
635 637
 	clean-libtool clean-sbinPROGRAMS ctags distclean \
636 638
 	distclean-compile distclean-generic distclean-libtool \
637 639
 	distclean-tags distdir dvi dvi-am html html-am info info-am \
638
-	install install-am install-data install-data-am install-exec \
639
-	install-exec-am install-info install-info-am install-man \
640
-	install-man8 install-sbinPROGRAMS install-strip installcheck \
640
+	install install-am install-data install-data-am install-dvi \
641
+	install-dvi-am install-exec install-exec-am install-html \
642
+	install-html-am install-info install-info-am install-man \
643
+	install-man8 install-pdf install-pdf-am install-ps \
644
+	install-ps-am install-sbinPROGRAMS install-strip installcheck \
641 645
 	installcheck-am installdirs maintainer-clean \
642 646
 	maintainer-clean-generic mostlyclean mostlyclean-compile \
643 647
 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
644
-	tags uninstall uninstall-am uninstall-info-am uninstall-man \
645
-	uninstall-man8 uninstall-sbinPROGRAMS
648
+	tags uninstall uninstall-am uninstall-man uninstall-man8 \
649
+	uninstall-sbinPROGRAMS
646 650
 
647 651
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
648 652
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,15 +32,11 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
-srcdir = @srcdir@
36
-top_srcdir = @top_srcdir@
37 35
 VPATH = @srcdir@
38 36
 pkgdatadir = $(datadir)/@PACKAGE@
39 37
 pkglibdir = $(libdir)/@PACKAGE@
40 38
 pkgincludedir = $(includedir)/@PACKAGE@
41
-top_builddir = ..
42 39
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
-INSTALL = @INSTALL@
44 40
 install_sh_DATA = $(install_sh) -c -m 644
45 41
 install_sh_PROGRAM = $(install_sh) -c
46 42
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -73,33 +69,30 @@ am_clamconf_OBJECTS = cfgparser.$(OBJEXT) misc.$(OBJEXT) \
73 73
 	getopt.$(OBJEXT) clamconf.$(OBJEXT)
74 74
 clamconf_OBJECTS = $(am_clamconf_OBJECTS)
75 75
 clamconf_LDADD = $(LDADD)
76
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
76
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
77 77
 depcomp = $(SHELL) $(top_srcdir)/depcomp
78 78
 am__depfiles_maybe = depfiles
79 79
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
80 80
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
81
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
82
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
83
-	$(AM_CFLAGS) $(CFLAGS)
81
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
82
+	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
83
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
84 84
 CCLD = $(CC)
85
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
86
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
85
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
86
+	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
87
+	$(LDFLAGS) -o $@
87 88
 SOURCES = $(clamconf_SOURCES)
88 89
 DIST_SOURCES = $(clamconf_SOURCES)
89 90
 ETAGS = etags
90 91
 CTAGS = ctags
91 92
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
92 93
 ACLOCAL = @ACLOCAL@
93
-AMDEP_FALSE = @AMDEP_FALSE@
94
-AMDEP_TRUE = @AMDEP_TRUE@
95 94
 AMTAR = @AMTAR@
96 95
 AR = @AR@
97 96
 AUTOCONF = @AUTOCONF@
98 97
 AUTOHEADER = @AUTOHEADER@
99 98
 AUTOMAKE = @AUTOMAKE@
100 99
 AWK = @AWK@
101
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
102
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
103 100
 CC = @CC@
104 101
 CCDEPMODE = @CCDEPMODE@
105 102
 CFGDIR = @CFGDIR@
... ...
@@ -123,16 +116,13 @@ ECHO_C = @ECHO_C@
123 123
 ECHO_N = @ECHO_N@
124 124
 ECHO_T = @ECHO_T@
125 125
 EGREP = @EGREP@
126
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
127
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
128 126
 EXEEXT = @EXEEXT@
129 127
 F77 = @F77@
130 128
 FFLAGS = @FFLAGS@
131 129
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
132 130
 GETENT = @GETENT@
133 131
 GREP = @GREP@
134
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
135
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
132
+INSTALL = @INSTALL@
136 133
 INSTALL_DATA = @INSTALL_DATA@
137 134
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
138 135
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -146,9 +136,8 @@ LIBTOOL = @LIBTOOL@
146 146
 LN_S = @LN_S@
147 147
 LTLIBOBJS = @LTLIBOBJS@
148 148
 MAINT = @MAINT@
149
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
150
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
151 149
 MAKEINFO = @MAKEINFO@
150
+MKDIR_P = @MKDIR_P@
152 151
 OBJEXT = @OBJEXT@
153 152
 PACKAGE = @PACKAGE@
154 153
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -158,20 +147,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
158 158
 PACKAGE_VERSION = @PACKAGE_VERSION@
159 159
 PATH_SEPARATOR = @PATH_SEPARATOR@
160 160
 RANLIB = @RANLIB@
161
-SED = @SED@
162 161
 SET_MAKE = @SET_MAKE@
163 162
 SHELL = @SHELL@
164 163
 STRIP = @STRIP@
165 164
 THREAD_LIBS = @THREAD_LIBS@
166 165
 TH_SAFE = @TH_SAFE@
167 166
 VERSION = @VERSION@
167
+abs_builddir = @abs_builddir@
168
+abs_srcdir = @abs_srcdir@
169
+abs_top_builddir = @abs_top_builddir@
170
+abs_top_srcdir = @abs_top_srcdir@
168 171
 ac_ct_CC = @ac_ct_CC@
169 172
 ac_ct_CXX = @ac_ct_CXX@
170 173
 ac_ct_F77 = @ac_ct_F77@
171
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
172
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
173
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
174
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
175 174
 am__include = @am__include@
176 175
 am__leading_dot = @am__leading_dot@
177 176
 am__quote = @am__quote@
... ...
@@ -183,6 +171,7 @@ build_alias = @build_alias@
183 183
 build_cpu = @build_cpu@
184 184
 build_os = @build_os@
185 185
 build_vendor = @build_vendor@
186
+builddir = @builddir@
186 187
 datadir = @datadir@
187 188
 datarootdir = @datarootdir@
188 189
 docdir = @docdir@
... ...
@@ -211,12 +200,15 @@ psdir = @psdir@
211 211
 sbindir = @sbindir@
212 212
 sendmailprog = @sendmailprog@
213 213
 sharedstatedir = @sharedstatedir@
214
+srcdir = @srcdir@
214 215
 sysconfdir = @sysconfdir@
215 216
 target = @target@
216 217
 target_alias = @target_alias@
217 218
 target_cpu = @target_cpu@
218 219
 target_os = @target_os@
219 220
 target_vendor = @target_vendor@
221
+top_builddir = @top_builddir@
222
+top_srcdir = @top_srcdir@
220 223
 clamconf_SOURCES = \
221 224
     $(top_srcdir)/shared/cfgparser.c \
222 225
     $(top_srcdir)/shared/cfgparser.h \
... ...
@@ -262,7 +254,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
262 262
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263 263
 install-binPROGRAMS: $(bin_PROGRAMS)
264 264
 	@$(NORMAL_INSTALL)
265
-	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
265
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
266 266
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
267 267
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
268 268
 	  if test -f $$p \
... ...
@@ -290,7 +282,7 @@ clean-binPROGRAMS:
290 290
 	done
291 291
 clamconf$(EXEEXT): $(clamconf_OBJECTS) $(clamconf_DEPENDENCIES) 
292 292
 	@rm -f clamconf$(EXEEXT)
293
-	$(LINK) $(clamconf_LDFLAGS) $(clamconf_OBJECTS) $(clamconf_LDADD) $(LIBS)
293
+	$(LINK) $(clamconf_OBJECTS) $(clamconf_LDADD) $(LIBS)
294 294
 
295 295
 mostlyclean-compile:
296 296
 	-rm -f *.$(OBJEXT)
... ...
@@ -304,64 +296,64 @@ distclean-compile:
304 304
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@
305 305
 
306 306
 .c.o:
307
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
308
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
307
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309 309
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310 310
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311 311
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
312 312
 
313 313
 .c.obj:
314
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
315
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
314
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316 316
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317 317
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318 318
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
319 319
 
320 320
 .c.lo:
321
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
322
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
321
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323 323
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
324 324
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325 325
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
326 326
 
327 327
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
328
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
329
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
328
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
329
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
330 330
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
331 331
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
332 332
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
333 333
 
334 334
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
335
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
336
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
335
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
336
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
337 337
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
338 338
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
339 339
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
340 340
 
341 341
 misc.o: $(top_srcdir)/shared/misc.c
342
-@am__fastdepCC_TRUE@	if $(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; \
343
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
342
+@am__fastdepCC_TRUE@	$(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
343
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
344 344
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
345 345
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346 346
 @am__fastdepCC_FALSE@	$(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
347 347
 
348 348
 misc.obj: $(top_srcdir)/shared/misc.c
349
-@am__fastdepCC_TRUE@	if $(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`; \
350
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
349
+@am__fastdepCC_TRUE@	$(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`
350
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
351 351
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
352 352
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
353 353
 @am__fastdepCC_FALSE@	$(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`
354 354
 
355 355
 getopt.o: $(top_srcdir)/shared/getopt.c
356
-@am__fastdepCC_TRUE@	if $(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; \
357
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
356
+@am__fastdepCC_TRUE@	$(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
357
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
358 358
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
359 359
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
360 360
 @am__fastdepCC_FALSE@	$(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
361 361
 
362 362
 getopt.obj: $(top_srcdir)/shared/getopt.c
363
-@am__fastdepCC_TRUE@	if $(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`; \
364
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
363
+@am__fastdepCC_TRUE@	$(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`
364
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
365 365
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
366 366
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
367 367
 @am__fastdepCC_FALSE@	$(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`
... ...
@@ -372,10 +364,6 @@ mostlyclean-libtool:
372 372
 clean-libtool:
373 373
 	-rm -rf .libs _libs
374 374
 
375
-distclean-libtool:
376
-	-rm -f libtool
377
-uninstall-info-am:
378
-
379 375
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
380 376
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
381 377
 	unique=`for i in $$list; do \
... ...
@@ -425,22 +413,21 @@ distclean-tags:
425 425
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
426 426
 
427 427
 distdir: $(DISTFILES)
428
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
429
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
430
-	list='$(DISTFILES)'; for file in $$list; do \
431
-	  case $$file in \
432
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
433
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
434
-	  esac; \
428
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
429
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
430
+	list='$(DISTFILES)'; \
431
+	  dist_files=`for file in $$list; do echo $$file; done | \
432
+	  sed -e "s|^$$srcdirstrip/||;t" \
433
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
434
+	case $$dist_files in \
435
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
436
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
437
+			   sort -u` ;; \
438
+	esac; \
439
+	for file in $$dist_files; do \
435 440
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
436
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
437
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
438
-	    dir="/$$dir"; \
439
-	    $(mkdir_p) "$(distdir)$$dir"; \
440
-	  else \
441
-	    dir=''; \
442
-	  fi; \
443 441
 	  if test -d $$d/$$file; then \
442
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
444 443
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
445 444
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
446 445
 	    fi; \
... ...
@@ -456,7 +443,7 @@ check: check-am
456 456
 all-am: Makefile $(PROGRAMS)
457 457
 installdirs:
458 458
 	for dir in "$(DESTDIR)$(bindir)"; do \
459
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
459
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
460 460
 	done
461 461
 install: install-am
462 462
 install-exec: install-exec-am
... ...
@@ -490,7 +477,7 @@ distclean: distclean-am
490 490
 	-rm -rf ./$(DEPDIR)
491 491
 	-rm -f Makefile
492 492
 distclean-am: clean-am distclean-compile distclean-generic \
493
-	distclean-libtool distclean-tags
493
+	distclean-tags
494 494
 
495 495
 dvi: dvi-am
496 496
 
... ...
@@ -504,12 +491,20 @@ info-am:
504 504
 
505 505
 install-data-am:
506 506
 
507
+install-dvi: install-dvi-am
508
+
507 509
 install-exec-am: install-binPROGRAMS
508 510
 
511
+install-html: install-html-am
512
+
509 513
 install-info: install-info-am
510 514
 
511 515
 install-man:
512 516
 
517
+install-pdf: install-pdf-am
518
+
519
+install-ps: install-ps-am
520
+
513 521
 installcheck-am:
514 522
 
515 523
 maintainer-clean: maintainer-clean-am
... ...
@@ -530,19 +525,23 @@ ps: ps-am
530 530
 
531 531
 ps-am:
532 532
 
533
-uninstall-am: uninstall-binPROGRAMS uninstall-info-am
533
+uninstall-am: uninstall-binPROGRAMS
534
+
535
+.MAKE: install-am install-strip
534 536
 
535 537
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
536 538
 	clean-generic clean-libtool ctags distclean distclean-compile \
537 539
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
538 540
 	dvi-am html html-am info info-am install install-am \
539
-	install-binPROGRAMS install-data install-data-am install-exec \
540
-	install-exec-am install-info install-info-am install-man \
541
+	install-binPROGRAMS install-data install-data-am install-dvi \
542
+	install-dvi-am install-exec install-exec-am install-html \
543
+	install-html-am install-info install-info-am install-man \
544
+	install-pdf install-pdf-am install-ps install-ps-am \
541 545
 	install-strip installcheck installcheck-am installdirs \
542 546
 	maintainer-clean maintainer-clean-generic mostlyclean \
543 547
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
544 548
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
545
-	uninstall-binPROGRAMS uninstall-info-am
549
+	uninstall-binPROGRAMS
546 550
 
547 551
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
548 552
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,15 +32,11 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
-srcdir = @srcdir@
36
-top_srcdir = @top_srcdir@
37 35
 VPATH = @srcdir@
38 36
 pkgdatadir = $(datadir)/@PACKAGE@
39 37
 pkglibdir = $(libdir)/@PACKAGE@
40 38
 pkgincludedir = $(includedir)/@PACKAGE@
41
-top_builddir = ..
42 39
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
-INSTALL = @INSTALL@
44 40
 install_sh_DATA = $(install_sh) -c -m 644
45 41
 install_sh_PROGRAM = $(install_sh) -c
46 42
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -93,33 +89,30 @@ am__clamd_SOURCES_DIST = $(top_srcdir)/shared/output.c \
93 93
 @BUILD_CLAMD_TRUE@	dazukoio.$(OBJEXT)
94 94
 clamd_OBJECTS = $(am_clamd_OBJECTS)
95 95
 clamd_LDADD = $(LDADD)
96
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
96
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
97 97
 depcomp = $(SHELL) $(top_srcdir)/depcomp
98 98
 am__depfiles_maybe = depfiles
99 99
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
100 100
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
101
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
102
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
103
-	$(AM_CFLAGS) $(CFLAGS)
101
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
102
+	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
103
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
104 104
 CCLD = $(CC)
105
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
106
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
105
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
106
+	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
107
+	$(LDFLAGS) -o $@
107 108
 SOURCES = $(clamd_SOURCES)
108 109
 DIST_SOURCES = $(am__clamd_SOURCES_DIST)
109 110
 ETAGS = etags
110 111
 CTAGS = ctags
111 112
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
112 113
 ACLOCAL = @ACLOCAL@
113
-AMDEP_FALSE = @AMDEP_FALSE@
114
-AMDEP_TRUE = @AMDEP_TRUE@
115 114
 AMTAR = @AMTAR@
116 115
 AR = @AR@
117 116
 AUTOCONF = @AUTOCONF@
118 117
 AUTOHEADER = @AUTOHEADER@
119 118
 AUTOMAKE = @AUTOMAKE@
120 119
 AWK = @AWK@
121
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
122
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
123 120
 CC = @CC@
124 121
 CCDEPMODE = @CCDEPMODE@
125 122
 CFGDIR = @CFGDIR@
... ...
@@ -143,16 +136,13 @@ ECHO_C = @ECHO_C@
143 143
 ECHO_N = @ECHO_N@
144 144
 ECHO_T = @ECHO_T@
145 145
 EGREP = @EGREP@
146
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
147
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
148 146
 EXEEXT = @EXEEXT@
149 147
 F77 = @F77@
150 148
 FFLAGS = @FFLAGS@
151 149
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
152 150
 GETENT = @GETENT@
153 151
 GREP = @GREP@
154
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
155
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
152
+INSTALL = @INSTALL@
156 153
 INSTALL_DATA = @INSTALL_DATA@
157 154
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
158 155
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -166,9 +156,8 @@ LIBTOOL = @LIBTOOL@
166 166
 LN_S = @LN_S@
167 167
 LTLIBOBJS = @LTLIBOBJS@
168 168
 MAINT = @MAINT@
169
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
170
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
171 169
 MAKEINFO = @MAKEINFO@
170
+MKDIR_P = @MKDIR_P@
172 171
 OBJEXT = @OBJEXT@
173 172
 PACKAGE = @PACKAGE@
174 173
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -178,20 +167,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
178 178
 PACKAGE_VERSION = @PACKAGE_VERSION@
179 179
 PATH_SEPARATOR = @PATH_SEPARATOR@
180 180
 RANLIB = @RANLIB@
181
-SED = @SED@
182 181
 SET_MAKE = @SET_MAKE@
183 182
 SHELL = @SHELL@
184 183
 STRIP = @STRIP@
185 184
 THREAD_LIBS = @THREAD_LIBS@
186 185
 TH_SAFE = @TH_SAFE@
187 186
 VERSION = @VERSION@
187
+abs_builddir = @abs_builddir@
188
+abs_srcdir = @abs_srcdir@
189
+abs_top_builddir = @abs_top_builddir@
190
+abs_top_srcdir = @abs_top_srcdir@
188 191
 ac_ct_CC = @ac_ct_CC@
189 192
 ac_ct_CXX = @ac_ct_CXX@
190 193
 ac_ct_F77 = @ac_ct_F77@
191
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
192
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
193
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
194
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
195 194
 am__include = @am__include@
196 195
 am__leading_dot = @am__leading_dot@
197 196
 am__quote = @am__quote@
... ...
@@ -203,6 +191,7 @@ build_alias = @build_alias@
203 203
 build_cpu = @build_cpu@
204 204
 build_os = @build_os@
205 205
 build_vendor = @build_vendor@
206
+builddir = @builddir@
206 207
 datadir = @datadir@
207 208
 datarootdir = @datarootdir@
208 209
 docdir = @docdir@
... ...
@@ -231,12 +220,15 @@ psdir = @psdir@
231 231
 sbindir = @sbindir@
232 232
 sendmailprog = @sendmailprog@
233 233
 sharedstatedir = @sharedstatedir@
234
+srcdir = @srcdir@
234 235
 sysconfdir = @sysconfdir@
235 236
 target = @target@
236 237
 target_alias = @target_alias@
237 238
 target_cpu = @target_cpu@
238 239
 target_os = @target_os@
239 240
 target_vendor = @target_vendor@
241
+top_builddir = @top_builddir@
242
+top_srcdir = @top_srcdir@
240 243
 @BUILD_CLAMD_TRUE@clamd_SOURCES = \
241 244
 @BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.c \
242 245
 @BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.h \
... ...
@@ -311,7 +303,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
311 311
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
312 312
 install-sbinPROGRAMS: $(sbin_PROGRAMS)
313 313
 	@$(NORMAL_INSTALL)
314
-	test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
314
+	test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
315 315
 	@list='$(sbin_PROGRAMS)'; for p in $$list; do \
316 316
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
317 317
 	  if test -f $$p \
... ...
@@ -339,7 +331,7 @@ clean-sbinPROGRAMS:
339 339
 	done
340 340
 clamd$(EXEEXT): $(clamd_OBJECTS) $(clamd_DEPENDENCIES) 
341 341
 	@rm -f clamd$(EXEEXT)
342
-	$(LINK) $(clamd_LDFLAGS) $(clamd_OBJECTS) $(clamd_LDADD) $(LIBS)
342
+	$(LINK) $(clamd_OBJECTS) $(clamd_LDADD) $(LIBS)
343 343
 
344 344
 mostlyclean-compile:
345 345
 	-rm -f *.$(OBJEXT)
... ...
@@ -366,106 +358,106 @@ distclean-compile:
366 366
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thrmgr.Po@am__quote@
367 367
 
368 368
 .c.o:
369
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
370
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
369
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
370
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
371 371
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
372 372
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
373 373
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
374 374
 
375 375
 .c.obj:
376
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
377
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
376
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
377
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
378 378
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
379 379
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
380 380
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
381 381
 
382 382
 .c.lo:
383
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
384
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
383
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
384
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
385 385
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
386 386
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
387 387
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
388 388
 
389 389
 output.o: $(top_srcdir)/shared/output.c
390
-@am__fastdepCC_TRUE@	if $(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; \
391
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
390
+@am__fastdepCC_TRUE@	$(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
391
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
392 392
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
393 393
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
394 394
 @am__fastdepCC_FALSE@	$(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
395 395
 
396 396
 output.obj: $(top_srcdir)/shared/output.c
397
-@am__fastdepCC_TRUE@	if $(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`; \
398
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
397
+@am__fastdepCC_TRUE@	$(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`
398
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
399 399
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
400 400
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
401 401
 @am__fastdepCC_FALSE@	$(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`
402 402
 
403 403
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
404
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
405
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
404
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
405
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
406 406
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
407 407
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
408 408
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
409 409
 
410 410
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
411
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
412
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
411
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
412
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
413 413
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
414 414
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
415 415
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
416 416
 
417 417
 getopt.o: $(top_srcdir)/shared/getopt.c
418
-@am__fastdepCC_TRUE@	if $(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; \
419
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
418
+@am__fastdepCC_TRUE@	$(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
419
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
420 420
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
421 421
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
422 422
 @am__fastdepCC_FALSE@	$(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
423 423
 
424 424
 getopt.obj: $(top_srcdir)/shared/getopt.c
425
-@am__fastdepCC_TRUE@	if $(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`; \
426
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
425
+@am__fastdepCC_TRUE@	$(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`
426
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
427 427
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
428 428
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
429 429
 @am__fastdepCC_FALSE@	$(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`
430 430
 
431 431
 misc.o: $(top_srcdir)/shared/misc.c
432
-@am__fastdepCC_TRUE@	if $(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; \
433
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
432
+@am__fastdepCC_TRUE@	$(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
433
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
434 434
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
435 435
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
436 436
 @am__fastdepCC_FALSE@	$(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
437 437
 
438 438
 misc.obj: $(top_srcdir)/shared/misc.c
439
-@am__fastdepCC_TRUE@	if $(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`; \
440
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
439
+@am__fastdepCC_TRUE@	$(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`
440
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
441 441
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
442 442
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
443 443
 @am__fastdepCC_FALSE@	$(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`
444 444
 
445 445
 network.o: $(top_srcdir)/shared/network.c
446
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.o -MD -MP -MF "$(DEPDIR)/network.Tpo" -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c; \
447
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/network.Tpo" "$(DEPDIR)/network.Po"; else rm -f "$(DEPDIR)/network.Tpo"; exit 1; fi
446
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.o -MD -MP -MF $(DEPDIR)/network.Tpo -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c
447
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/network.Tpo $(DEPDIR)/network.Po
448 448
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/network.c' object='network.o' libtool=no @AMDEPBACKSLASH@
449 449
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
450 450
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o network.o `test -f '$(top_srcdir)/shared/network.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/network.c
451 451
 
452 452
 network.obj: $(top_srcdir)/shared/network.c
453
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.obj -MD -MP -MF "$(DEPDIR)/network.Tpo" -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`; \
454
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/network.Tpo" "$(DEPDIR)/network.Po"; else rm -f "$(DEPDIR)/network.Tpo"; exit 1; fi
453
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network.obj -MD -MP -MF $(DEPDIR)/network.Tpo -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`
454
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/network.Tpo $(DEPDIR)/network.Po
455 455
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/network.c' object='network.obj' libtool=no @AMDEPBACKSLASH@
456 456
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
457 457
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o network.obj `if test -f '$(top_srcdir)/shared/network.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/network.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/network.c'; fi`
458 458
 
459 459
 options.o: $(top_srcdir)/shared/options.c
460
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
461
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
460
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
461
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
462 462
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
463 463
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
464 464
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
465 465
 
466 466
 options.obj: $(top_srcdir)/shared/options.c
467
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
468
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
467
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
468
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
469 469
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
470 470
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
471 471
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
... ...
@@ -476,10 +468,6 @@ mostlyclean-libtool:
476 476
 clean-libtool:
477 477
 	-rm -rf .libs _libs
478 478
 
479
-distclean-libtool:
480
-	-rm -f libtool
481
-uninstall-info-am:
482
-
483 479
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
484 480
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
485 481
 	unique=`for i in $$list; do \
... ...
@@ -529,22 +517,21 @@ distclean-tags:
529 529
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
530 530
 
531 531
 distdir: $(DISTFILES)
532
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
533
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
534
-	list='$(DISTFILES)'; for file in $$list; do \
535
-	  case $$file in \
536
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
537
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
538
-	  esac; \
532
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
533
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
534
+	list='$(DISTFILES)'; \
535
+	  dist_files=`for file in $$list; do echo $$file; done | \
536
+	  sed -e "s|^$$srcdirstrip/||;t" \
537
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
538
+	case $$dist_files in \
539
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
540
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
541
+			   sort -u` ;; \
542
+	esac; \
543
+	for file in $$dist_files; do \
539 544
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
540
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
541
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
542
-	    dir="/$$dir"; \
543
-	    $(mkdir_p) "$(distdir)$$dir"; \
544
-	  else \
545
-	    dir=''; \
546
-	  fi; \
547 545
 	  if test -d $$d/$$file; then \
546
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
548 547
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
549 548
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
550 549
 	    fi; \
... ...
@@ -560,7 +547,7 @@ check: check-am
560 560
 all-am: Makefile $(PROGRAMS)
561 561
 installdirs:
562 562
 	for dir in "$(DESTDIR)$(sbindir)"; do \
563
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
563
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
564 564
 	done
565 565
 install: install-am
566 566
 install-exec: install-exec-am
... ...
@@ -595,7 +582,7 @@ distclean: distclean-am
595 595
 	-rm -rf ./$(DEPDIR)
596 596
 	-rm -f Makefile
597 597
 distclean-am: clean-am distclean-compile distclean-generic \
598
-	distclean-libtool distclean-tags
598
+	distclean-tags
599 599
 
600 600
 dvi: dvi-am
601 601
 
... ...
@@ -609,12 +596,20 @@ info-am:
609 609
 
610 610
 install-data-am:
611 611
 
612
+install-dvi: install-dvi-am
613
+
612 614
 install-exec-am: install-sbinPROGRAMS
613 615
 
616
+install-html: install-html-am
617
+
614 618
 install-info: install-info-am
615 619
 
616 620
 install-man:
617 621
 
622
+install-pdf: install-pdf-am
623
+
624
+install-ps: install-ps-am
625
+
618 626
 installcheck-am:
619 627
 
620 628
 maintainer-clean: maintainer-clean-am
... ...
@@ -635,20 +630,23 @@ ps: ps-am
635 635
 
636 636
 ps-am:
637 637
 
638
-uninstall-am: uninstall-info-am uninstall-sbinPROGRAMS
638
+uninstall-am: uninstall-sbinPROGRAMS
639
+
640
+.MAKE: install-am install-strip
639 641
 
640 642
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
641 643
 	clean-libtool clean-sbinPROGRAMS ctags distclean \
642 644
 	distclean-compile distclean-generic distclean-libtool \
643 645
 	distclean-tags distdir dvi dvi-am html html-am info info-am \
644
-	install install-am install-data install-data-am install-exec \
645
-	install-exec-am install-info install-info-am install-man \
646
+	install install-am install-data install-data-am install-dvi \
647
+	install-dvi-am install-exec install-exec-am install-html \
648
+	install-html-am install-info install-info-am install-man \
649
+	install-pdf install-pdf-am install-ps install-ps-am \
646 650
 	install-sbinPROGRAMS install-strip installcheck \
647 651
 	installcheck-am installdirs maintainer-clean \
648 652
 	maintainer-clean-generic mostlyclean mostlyclean-compile \
649 653
 	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
650
-	tags uninstall uninstall-am uninstall-info-am \
651
-	uninstall-sbinPROGRAMS
654
+	tags uninstall uninstall-am uninstall-sbinPROGRAMS
652 655
 
653 656
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
654 657
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,15 +32,11 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
-srcdir = @srcdir@
36
-top_srcdir = @top_srcdir@
37 35
 VPATH = @srcdir@
38 36
 pkgdatadir = $(datadir)/@PACKAGE@
39 37
 pkglibdir = $(libdir)/@PACKAGE@
40 38
 pkgincludedir = $(includedir)/@PACKAGE@
41
-top_builddir = ..
42 39
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
-INSTALL = @INSTALL@
44 40
 install_sh_DATA = $(install_sh) -c -m 644
45 41
 install_sh_PROGRAM = $(install_sh) -c
46 42
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -82,33 +78,30 @@ am__clamdscan_SOURCES_DIST = $(top_srcdir)/shared/output.c \
82 82
 @BUILD_CLAMD_TRUE@	clamdscan.$(OBJEXT) client.$(OBJEXT)
83 83
 clamdscan_OBJECTS = $(am_clamdscan_OBJECTS)
84 84
 clamdscan_LDADD = $(LDADD)
85
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
85
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
86 86
 depcomp = $(SHELL) $(top_srcdir)/depcomp
87 87
 am__depfiles_maybe = depfiles
88 88
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
89 89
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
90
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
91
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
92
-	$(AM_CFLAGS) $(CFLAGS)
90
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
91
+	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
92
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
93 93
 CCLD = $(CC)
94
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
95
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
94
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
95
+	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
96
+	$(LDFLAGS) -o $@
96 97
 SOURCES = $(clamdscan_SOURCES)
97 98
 DIST_SOURCES = $(am__clamdscan_SOURCES_DIST)
98 99
 ETAGS = etags
99 100
 CTAGS = ctags
100 101
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
101 102
 ACLOCAL = @ACLOCAL@
102
-AMDEP_FALSE = @AMDEP_FALSE@
103
-AMDEP_TRUE = @AMDEP_TRUE@
104 103
 AMTAR = @AMTAR@
105 104
 AR = @AR@
106 105
 AUTOCONF = @AUTOCONF@
107 106
 AUTOHEADER = @AUTOHEADER@
108 107
 AUTOMAKE = @AUTOMAKE@
109 108
 AWK = @AWK@
110
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
111
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
112 109
 CC = @CC@
113 110
 CCDEPMODE = @CCDEPMODE@
114 111
 CFGDIR = @CFGDIR@
... ...
@@ -132,16 +125,13 @@ ECHO_C = @ECHO_C@
132 132
 ECHO_N = @ECHO_N@
133 133
 ECHO_T = @ECHO_T@
134 134
 EGREP = @EGREP@
135
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
136
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
137 135
 EXEEXT = @EXEEXT@
138 136
 F77 = @F77@
139 137
 FFLAGS = @FFLAGS@
140 138
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
141 139
 GETENT = @GETENT@
142 140
 GREP = @GREP@
143
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
144
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
141
+INSTALL = @INSTALL@
145 142
 INSTALL_DATA = @INSTALL_DATA@
146 143
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
147 144
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -155,9 +145,8 @@ LIBTOOL = @LIBTOOL@
155 155
 LN_S = @LN_S@
156 156
 LTLIBOBJS = @LTLIBOBJS@
157 157
 MAINT = @MAINT@
158
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
159
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
160 158
 MAKEINFO = @MAKEINFO@
159
+MKDIR_P = @MKDIR_P@
161 160
 OBJEXT = @OBJEXT@
162 161
 PACKAGE = @PACKAGE@
163 162
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -167,20 +156,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
167 167
 PACKAGE_VERSION = @PACKAGE_VERSION@
168 168
 PATH_SEPARATOR = @PATH_SEPARATOR@
169 169
 RANLIB = @RANLIB@
170
-SED = @SED@
171 170
 SET_MAKE = @SET_MAKE@
172 171
 SHELL = @SHELL@
173 172
 STRIP = @STRIP@
174 173
 THREAD_LIBS = @THREAD_LIBS@
175 174
 TH_SAFE = @TH_SAFE@
176 175
 VERSION = @VERSION@
176
+abs_builddir = @abs_builddir@
177
+abs_srcdir = @abs_srcdir@
178
+abs_top_builddir = @abs_top_builddir@
179
+abs_top_srcdir = @abs_top_srcdir@
177 180
 ac_ct_CC = @ac_ct_CC@
178 181
 ac_ct_CXX = @ac_ct_CXX@
179 182
 ac_ct_F77 = @ac_ct_F77@
180
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
181
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
182
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
183
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
184 183
 am__include = @am__include@
185 184
 am__leading_dot = @am__leading_dot@
186 185
 am__quote = @am__quote@
... ...
@@ -192,6 +180,7 @@ build_alias = @build_alias@
192 192
 build_cpu = @build_cpu@
193 193
 build_os = @build_os@
194 194
 build_vendor = @build_vendor@
195
+builddir = @builddir@
195 196
 datadir = @datadir@
196 197
 datarootdir = @datarootdir@
197 198
 docdir = @docdir@
... ...
@@ -220,12 +209,15 @@ psdir = @psdir@
220 220
 sbindir = @sbindir@
221 221
 sendmailprog = @sendmailprog@
222 222
 sharedstatedir = @sharedstatedir@
223
+srcdir = @srcdir@
223 224
 sysconfdir = @sysconfdir@
224 225
 target = @target@
225 226
 target_alias = @target_alias@
226 227
 target_cpu = @target_cpu@
227 228
 target_os = @target_os@
228 229
 target_vendor = @target_vendor@
230
+top_builddir = @top_builddir@
231
+top_srcdir = @top_srcdir@
229 232
 @BUILD_CLAMD_TRUE@clamdscan_SOURCES = \
230 233
 @BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.c \
231 234
 @BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.h \
... ...
@@ -278,7 +270,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
278 278
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
279 279
 install-binPROGRAMS: $(bin_PROGRAMS)
280 280
 	@$(NORMAL_INSTALL)
281
-	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
281
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
282 282
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
283 283
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
284 284
 	  if test -f $$p \
... ...
@@ -306,7 +298,7 @@ clean-binPROGRAMS:
306 306
 	done
307 307
 clamdscan$(EXEEXT): $(clamdscan_OBJECTS) $(clamdscan_DEPENDENCIES) 
308 308
 	@rm -f clamdscan$(EXEEXT)
309
-	$(LINK) $(clamdscan_LDFLAGS) $(clamdscan_OBJECTS) $(clamdscan_LDADD) $(LIBS)
309
+	$(LINK) $(clamdscan_OBJECTS) $(clamdscan_LDADD) $(LIBS)
310 310
 
311 311
 mostlyclean-compile:
312 312
 	-rm -f *.$(OBJEXT)
... ...
@@ -323,92 +315,92 @@ distclean-compile:
323 323
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output.Po@am__quote@
324 324
 
325 325
 .c.o:
326
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
327
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
326
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
328 328
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
329 329
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
330 330
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
331 331
 
332 332
 .c.obj:
333
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
334
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
333
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
334
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
335 335
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
336 336
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
337 337
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
338 338
 
339 339
 .c.lo:
340
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
341
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
340
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
341
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
342 342
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
343 343
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
344 344
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
345 345
 
346 346
 output.o: $(top_srcdir)/shared/output.c
347
-@am__fastdepCC_TRUE@	if $(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; \
348
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
347
+@am__fastdepCC_TRUE@	$(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
348
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
349 349
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
350 350
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
351 351
 @am__fastdepCC_FALSE@	$(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
352 352
 
353 353
 output.obj: $(top_srcdir)/shared/output.c
354
-@am__fastdepCC_TRUE@	if $(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`; \
355
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
354
+@am__fastdepCC_TRUE@	$(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`
355
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
356 356
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
357 357
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
358 358
 @am__fastdepCC_FALSE@	$(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`
359 359
 
360 360
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
361
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
362
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
361
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
362
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
363 363
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
364 364
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
365 365
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
366 366
 
367 367
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
368
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
369
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
368
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
369
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
370 370
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
371 371
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
372 372
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
373 373
 
374 374
 misc.o: $(top_srcdir)/shared/misc.c
375
-@am__fastdepCC_TRUE@	if $(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; \
376
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
375
+@am__fastdepCC_TRUE@	$(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
376
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
377 377
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
378 378
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379 379
 @am__fastdepCC_FALSE@	$(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
380 380
 
381 381
 misc.obj: $(top_srcdir)/shared/misc.c
382
-@am__fastdepCC_TRUE@	if $(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`; \
383
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
382
+@am__fastdepCC_TRUE@	$(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`
383
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
384 384
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
385 385
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386 386
 @am__fastdepCC_FALSE@	$(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`
387 387
 
388 388
 getopt.o: $(top_srcdir)/shared/getopt.c
389
-@am__fastdepCC_TRUE@	if $(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; \
390
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
389
+@am__fastdepCC_TRUE@	$(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
390
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
391 391
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
392 392
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
393 393
 @am__fastdepCC_FALSE@	$(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
394 394
 
395 395
 getopt.obj: $(top_srcdir)/shared/getopt.c
396
-@am__fastdepCC_TRUE@	if $(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`; \
397
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
396
+@am__fastdepCC_TRUE@	$(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`
397
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
398 398
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
399 399
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400 400
 @am__fastdepCC_FALSE@	$(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`
401 401
 
402 402
 options.o: $(top_srcdir)/shared/options.c
403
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
404
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
403
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
404
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
405 405
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
406 406
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407 407
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
408 408
 
409 409
 options.obj: $(top_srcdir)/shared/options.c
410
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
411
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
410
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
411
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
412 412
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
413 413
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
414 414
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
... ...
@@ -419,10 +411,6 @@ mostlyclean-libtool:
419 419
 clean-libtool:
420 420
 	-rm -rf .libs _libs
421 421
 
422
-distclean-libtool:
423
-	-rm -f libtool
424
-uninstall-info-am:
425
-
426 422
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
427 423
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
428 424
 	unique=`for i in $$list; do \
... ...
@@ -472,22 +460,21 @@ distclean-tags:
472 472
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
473 473
 
474 474
 distdir: $(DISTFILES)
475
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
476
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
477
-	list='$(DISTFILES)'; for file in $$list; do \
478
-	  case $$file in \
479
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
480
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
481
-	  esac; \
475
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
476
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
477
+	list='$(DISTFILES)'; \
478
+	  dist_files=`for file in $$list; do echo $$file; done | \
479
+	  sed -e "s|^$$srcdirstrip/||;t" \
480
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
481
+	case $$dist_files in \
482
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
483
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
484
+			   sort -u` ;; \
485
+	esac; \
486
+	for file in $$dist_files; do \
482 487
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
483
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
484
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
485
-	    dir="/$$dir"; \
486
-	    $(mkdir_p) "$(distdir)$$dir"; \
487
-	  else \
488
-	    dir=''; \
489
-	  fi; \
490 488
 	  if test -d $$d/$$file; then \
489
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
491 490
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
492 491
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
493 492
 	    fi; \
... ...
@@ -503,7 +490,7 @@ check: check-am
503 503
 all-am: Makefile $(PROGRAMS)
504 504
 installdirs:
505 505
 	for dir in "$(DESTDIR)$(bindir)"; do \
506
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
506
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
507 507
 	done
508 508
 install: install-am
509 509
 install-exec: install-exec-am
... ...
@@ -537,7 +524,7 @@ distclean: distclean-am
537 537
 	-rm -rf ./$(DEPDIR)
538 538
 	-rm -f Makefile
539 539
 distclean-am: clean-am distclean-compile distclean-generic \
540
-	distclean-libtool distclean-tags
540
+	distclean-tags
541 541
 
542 542
 dvi: dvi-am
543 543
 
... ...
@@ -551,12 +538,20 @@ info-am:
551 551
 
552 552
 install-data-am:
553 553
 
554
+install-dvi: install-dvi-am
555
+
554 556
 install-exec-am: install-binPROGRAMS
555 557
 
558
+install-html: install-html-am
559
+
556 560
 install-info: install-info-am
557 561
 
558 562
 install-man:
559 563
 
564
+install-pdf: install-pdf-am
565
+
566
+install-ps: install-ps-am
567
+
560 568
 installcheck-am:
561 569
 
562 570
 maintainer-clean: maintainer-clean-am
... ...
@@ -577,19 +572,23 @@ ps: ps-am
577 577
 
578 578
 ps-am:
579 579
 
580
-uninstall-am: uninstall-binPROGRAMS uninstall-info-am
580
+uninstall-am: uninstall-binPROGRAMS
581
+
582
+.MAKE: install-am install-strip
581 583
 
582 584
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
583 585
 	clean-generic clean-libtool ctags distclean distclean-compile \
584 586
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
585 587
 	dvi-am html html-am info info-am install install-am \
586
-	install-binPROGRAMS install-data install-data-am install-exec \
587
-	install-exec-am install-info install-info-am install-man \
588
+	install-binPROGRAMS install-data install-data-am install-dvi \
589
+	install-dvi-am install-exec install-exec-am install-html \
590
+	install-html-am install-info install-info-am install-man \
591
+	install-pdf install-pdf-am install-ps install-ps-am \
588 592
 	install-strip installcheck installcheck-am installdirs \
589 593
 	maintainer-clean maintainer-clean-generic mostlyclean \
590 594
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
591 595
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
592
-	uninstall-binPROGRAMS uninstall-info-am
596
+	uninstall-binPROGRAMS
593 597
 
594 598
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
595 599
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,15 +33,11 @@
33 33
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
34 34
 #  MA 02110-1301, USA.
35 35
 
36
-srcdir = @srcdir@
37
-top_srcdir = @top_srcdir@
38 36
 VPATH = @srcdir@
39 37
 pkgdatadir = $(datadir)/@PACKAGE@
40 38
 pkglibdir = $(libdir)/@PACKAGE@
41 39
 pkgincludedir = $(includedir)/@PACKAGE@
42
-top_builddir = ..
43 40
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
-INSTALL = @INSTALL@
45 41
 install_sh_DATA = $(install_sh) -c -m 644
46 42
 install_sh_PROGRAM = $(install_sh) -c
47 43
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -76,33 +72,30 @@ am_clamscan_OBJECTS = output.$(OBJEXT) getopt.$(OBJEXT) \
76 76
 	treewalk.$(OBJEXT)
77 77
 clamscan_OBJECTS = $(am_clamscan_OBJECTS)
78 78
 clamscan_LDADD = $(LDADD)
79
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
79
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
80 80
 depcomp = $(SHELL) $(top_srcdir)/depcomp
81 81
 am__depfiles_maybe = depfiles
82 82
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
83 83
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
84
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
85
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
86
-	$(AM_CFLAGS) $(CFLAGS)
84
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
85
+	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
86
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
87 87
 CCLD = $(CC)
88
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
89
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
88
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
89
+	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
90
+	$(LDFLAGS) -o $@
90 91
 SOURCES = $(clamscan_SOURCES)
91 92
 DIST_SOURCES = $(clamscan_SOURCES)
92 93
 ETAGS = etags
93 94
 CTAGS = ctags
94 95
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
95 96
 ACLOCAL = @ACLOCAL@
96
-AMDEP_FALSE = @AMDEP_FALSE@
97
-AMDEP_TRUE = @AMDEP_TRUE@
98 97
 AMTAR = @AMTAR@
99 98
 AR = @AR@
100 99
 AUTOCONF = @AUTOCONF@
101 100
 AUTOHEADER = @AUTOHEADER@
102 101
 AUTOMAKE = @AUTOMAKE@
103 102
 AWK = @AWK@
104
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
105
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
106 103
 CC = @CC@
107 104
 CCDEPMODE = @CCDEPMODE@
108 105
 CFGDIR = @CFGDIR@
... ...
@@ -126,16 +119,13 @@ ECHO_C = @ECHO_C@
126 126
 ECHO_N = @ECHO_N@
127 127
 ECHO_T = @ECHO_T@
128 128
 EGREP = @EGREP@
129
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
130
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
131 129
 EXEEXT = @EXEEXT@
132 130
 F77 = @F77@
133 131
 FFLAGS = @FFLAGS@
134 132
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
135 133
 GETENT = @GETENT@
136 134
 GREP = @GREP@
137
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
138
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
135
+INSTALL = @INSTALL@
139 136
 INSTALL_DATA = @INSTALL_DATA@
140 137
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
141 138
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -149,9 +139,8 @@ LIBTOOL = @LIBTOOL@
149 149
 LN_S = @LN_S@
150 150
 LTLIBOBJS = @LTLIBOBJS@
151 151
 MAINT = @MAINT@
152
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
153
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
154 152
 MAKEINFO = @MAKEINFO@
153
+MKDIR_P = @MKDIR_P@
155 154
 OBJEXT = @OBJEXT@
156 155
 PACKAGE = @PACKAGE@
157 156
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -161,20 +150,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
161 161
 PACKAGE_VERSION = @PACKAGE_VERSION@
162 162
 PATH_SEPARATOR = @PATH_SEPARATOR@
163 163
 RANLIB = @RANLIB@
164
-SED = @SED@
165 164
 SET_MAKE = @SET_MAKE@
166 165
 SHELL = @SHELL@
167 166
 STRIP = @STRIP@
168 167
 THREAD_LIBS = @THREAD_LIBS@
169 168
 TH_SAFE = @TH_SAFE@
170 169
 VERSION = @VERSION@
170
+abs_builddir = @abs_builddir@
171
+abs_srcdir = @abs_srcdir@
172
+abs_top_builddir = @abs_top_builddir@
173
+abs_top_srcdir = @abs_top_srcdir@
171 174
 ac_ct_CC = @ac_ct_CC@
172 175
 ac_ct_CXX = @ac_ct_CXX@
173 176
 ac_ct_F77 = @ac_ct_F77@
174
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
175
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
176
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
177
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
178 177
 am__include = @am__include@
179 178
 am__leading_dot = @am__leading_dot@
180 179
 am__quote = @am__quote@
... ...
@@ -186,6 +174,7 @@ build_alias = @build_alias@
186 186
 build_cpu = @build_cpu@
187 187
 build_os = @build_os@
188 188
 build_vendor = @build_vendor@
189
+builddir = @builddir@
189 190
 datadir = @datadir@
190 191
 datarootdir = @datarootdir@
191 192
 docdir = @docdir@
... ...
@@ -214,12 +203,15 @@ psdir = @psdir@
214 214
 sbindir = @sbindir@
215 215
 sendmailprog = @sendmailprog@
216 216
 sharedstatedir = @sharedstatedir@
217
+srcdir = @srcdir@
217 218
 sysconfdir = @sysconfdir@
218 219
 target = @target@
219 220
 target_alias = @target_alias@
220 221
 target_cpu = @target_cpu@
221 222
 target_os = @target_os@
222 223
 target_vendor = @target_vendor@
224
+top_builddir = @top_builddir@
225
+top_srcdir = @top_srcdir@
223 226
 clamscan_SOURCES = \
224 227
     $(top_srcdir)/shared/output.c \
225 228
     $(top_srcdir)/shared/output.h \
... ...
@@ -277,7 +269,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
277 277
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
278 278
 install-binPROGRAMS: $(bin_PROGRAMS)
279 279
 	@$(NORMAL_INSTALL)
280
-	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
280
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
281 281
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
282 282
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
283 283
 	  if test -f $$p \
... ...
@@ -305,7 +297,7 @@ clean-binPROGRAMS:
305 305
 	done
306 306
 clamscan$(EXEEXT): $(clamscan_OBJECTS) $(clamscan_DEPENDENCIES) 
307 307
 	@rm -f clamscan$(EXEEXT)
308
-	$(LINK) $(clamscan_LDFLAGS) $(clamscan_OBJECTS) $(clamscan_LDADD) $(LIBS)
308
+	$(LINK) $(clamscan_OBJECTS) $(clamscan_LDADD) $(LIBS)
309 309
 
310 310
 mostlyclean-compile:
311 311
 	-rm -f *.$(OBJEXT)
... ...
@@ -324,92 +316,92 @@ distclean-compile:
324 324
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/treewalk.Po@am__quote@
325 325
 
326 326
 .c.o:
327
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
328
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
327
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
328
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
329 329
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
330 330
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
331 331
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
332 332
 
333 333
 .c.obj:
334
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
335
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
334
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
335
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
336 336
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
337 337
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
338 338
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
339 339
 
340 340
 .c.lo:
341
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
342
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
341
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
342
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
343 343
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
344 344
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
345 345
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
346 346
 
347 347
 output.o: $(top_srcdir)/shared/output.c
348
-@am__fastdepCC_TRUE@	if $(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; \
349
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
348
+@am__fastdepCC_TRUE@	$(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
349
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
350 350
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
351 351
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
352 352
 @am__fastdepCC_FALSE@	$(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
353 353
 
354 354
 output.obj: $(top_srcdir)/shared/output.c
355
-@am__fastdepCC_TRUE@	if $(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`; \
356
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
355
+@am__fastdepCC_TRUE@	$(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`
356
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
357 357
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
358 358
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
359 359
 @am__fastdepCC_FALSE@	$(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`
360 360
 
361 361
 getopt.o: $(top_srcdir)/shared/getopt.c
362
-@am__fastdepCC_TRUE@	if $(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; \
363
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
362
+@am__fastdepCC_TRUE@	$(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
363
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
364 364
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
365 365
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
366 366
 @am__fastdepCC_FALSE@	$(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
367 367
 
368 368
 getopt.obj: $(top_srcdir)/shared/getopt.c
369
-@am__fastdepCC_TRUE@	if $(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`; \
370
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
369
+@am__fastdepCC_TRUE@	$(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`
370
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
371 371
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
372 372
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
373 373
 @am__fastdepCC_FALSE@	$(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`
374 374
 
375 375
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
376
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
377
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
376
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
377
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
378 378
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
379 379
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
380 380
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
381 381
 
382 382
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
383
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
384
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
383
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
384
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
385 385
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
386 386
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
387 387
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
388 388
 
389 389
 misc.o: $(top_srcdir)/shared/misc.c
390
-@am__fastdepCC_TRUE@	if $(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; \
391
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
390
+@am__fastdepCC_TRUE@	$(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
391
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
392 392
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
393 393
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
394 394
 @am__fastdepCC_FALSE@	$(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
395 395
 
396 396
 misc.obj: $(top_srcdir)/shared/misc.c
397
-@am__fastdepCC_TRUE@	if $(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`; \
398
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
397
+@am__fastdepCC_TRUE@	$(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`
398
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
399 399
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
400 400
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
401 401
 @am__fastdepCC_FALSE@	$(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`
402 402
 
403 403
 options.o: $(top_srcdir)/shared/options.c
404
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
405
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
404
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
405
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
406 406
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
407 407
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
408 408
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
409 409
 
410 410
 options.obj: $(top_srcdir)/shared/options.c
411
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
412
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
411
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
412
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
413 413
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
414 414
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
415 415
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
... ...
@@ -420,10 +412,6 @@ mostlyclean-libtool:
420 420
 clean-libtool:
421 421
 	-rm -rf .libs _libs
422 422
 
423
-distclean-libtool:
424
-	-rm -f libtool
425
-uninstall-info-am:
426
-
427 423
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
428 424
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
429 425
 	unique=`for i in $$list; do \
... ...
@@ -473,22 +461,21 @@ distclean-tags:
473 473
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
474 474
 
475 475
 distdir: $(DISTFILES)
476
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
477
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
478
-	list='$(DISTFILES)'; for file in $$list; do \
479
-	  case $$file in \
480
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
481
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
482
-	  esac; \
476
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
477
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
478
+	list='$(DISTFILES)'; \
479
+	  dist_files=`for file in $$list; do echo $$file; done | \
480
+	  sed -e "s|^$$srcdirstrip/||;t" \
481
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
482
+	case $$dist_files in \
483
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
484
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
485
+			   sort -u` ;; \
486
+	esac; \
487
+	for file in $$dist_files; do \
483 488
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
484
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
485
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
486
-	    dir="/$$dir"; \
487
-	    $(mkdir_p) "$(distdir)$$dir"; \
488
-	  else \
489
-	    dir=''; \
490
-	  fi; \
491 489
 	  if test -d $$d/$$file; then \
490
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
492 491
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
493 492
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
494 493
 	    fi; \
... ...
@@ -504,7 +491,7 @@ check: check-am
504 504
 all-am: Makefile $(PROGRAMS)
505 505
 installdirs:
506 506
 	for dir in "$(DESTDIR)$(bindir)"; do \
507
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
507
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
508 508
 	done
509 509
 install: install-am
510 510
 install-exec: install-exec-am
... ...
@@ -538,7 +525,7 @@ distclean: distclean-am
538 538
 	-rm -rf ./$(DEPDIR)
539 539
 	-rm -f Makefile
540 540
 distclean-am: clean-am distclean-compile distclean-generic \
541
-	distclean-libtool distclean-tags
541
+	distclean-tags
542 542
 
543 543
 dvi: dvi-am
544 544
 
... ...
@@ -552,12 +539,20 @@ info-am:
552 552
 
553 553
 install-data-am:
554 554
 
555
+install-dvi: install-dvi-am
556
+
555 557
 install-exec-am: install-binPROGRAMS
556 558
 
559
+install-html: install-html-am
560
+
557 561
 install-info: install-info-am
558 562
 
559 563
 install-man:
560 564
 
565
+install-pdf: install-pdf-am
566
+
567
+install-ps: install-ps-am
568
+
561 569
 installcheck-am:
562 570
 
563 571
 maintainer-clean: maintainer-clean-am
... ...
@@ -578,19 +573,23 @@ ps: ps-am
578 578
 
579 579
 ps-am:
580 580
 
581
-uninstall-am: uninstall-binPROGRAMS uninstall-info-am
581
+uninstall-am: uninstall-binPROGRAMS
582
+
583
+.MAKE: install-am install-strip
582 584
 
583 585
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
584 586
 	clean-generic clean-libtool ctags distclean distclean-compile \
585 587
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
586 588
 	dvi-am html html-am info info-am install install-am \
587
-	install-binPROGRAMS install-data install-data-am install-exec \
588
-	install-exec-am install-info install-info-am install-man \
589
+	install-binPROGRAMS install-data install-data-am install-dvi \
590
+	install-dvi-am install-exec install-exec-am install-html \
591
+	install-html-am install-info install-info-am install-man \
592
+	install-pdf install-pdf-am install-ps install-ps-am \
589 593
 	install-strip installcheck installcheck-am installdirs \
590 594
 	maintainer-clean maintainer-clean-generic mostlyclean \
591 595
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
592 596
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
593
-	uninstall-binPROGRAMS uninstall-info-am
597
+	uninstall-binPROGRAMS
594 598
 
595 599
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
596 600
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -819,6 +819,7 @@ target_os
819 819
 INSTALL_PROGRAM
820 820
 INSTALL_SCRIPT
821 821
 INSTALL_DATA
822
+am__isrc
822 823
 CYGPATH_W
823 824
 PACKAGE
824 825
 VERSION
... ...
@@ -855,7 +856,6 @@ CCDEPMODE
855 855
 am__fastdepCC_TRUE
856 856
 am__fastdepCC_FALSE
857 857
 LN_S
858
-SED
859 858
 GREP
860 859
 EGREP
861 860
 ECHO
... ...
@@ -889,8 +889,6 @@ BUILD_CLAMD_TRUE
889 889
 BUILD_CLAMD_FALSE
890 890
 HAVE_MILTER_TRUE
891 891
 HAVE_MILTER_FALSE
892
-ENABLE_UNRAR_TRUE
893
-ENABLE_UNRAR_FALSE
894 892
 GETENT
895 893
 CLAMAVUSER
896 894
 CLAMAVGROUP
... ...
@@ -1499,7 +1497,6 @@ Optional Features:
1499 1499
   --disable-libtool-lock  avoid locking (might break parallel builds)
1500 1500
   --disable-gcc-vcheck	  do not check for buggy gcc version
1501 1501
   --enable-experimental	enable experimental code
1502
-  --enable-unrar	build and link with libclamunrar (check the licence!)
1503 1502
   --enable-maintainer-mode enable make rules and dependencies not useful
1504 1503
                           (and sometimes confusing) to the casual installer
1505 1504
   --disable-zlib-vcheck	  do not check for buggy zlib version
... ...
@@ -2317,7 +2314,8 @@ do
2317 2317
 done
2318 2318
 
2319 2319
 
2320
-am__api_version="1.9"
2320
+am__api_version='1.10'
2321
+
2321 2322
 # Find a good install program.  We prefer a C program (faster),
2322 2323
 # so one script is as good as another.  But avoid the broken or
2323 2324
 # incompatible versions:
... ...
@@ -2469,38 +2467,53 @@ else
2469 2469
 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2470 2470
 fi
2471 2471
 
2472
-if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2473
-  # We used to keeping the `.' as first argument, in order to
2474
-  # allow $(mkdir_p) to be used without argument.  As in
2475
-  #   $(mkdir_p) $(somedir)
2476
-  # where $(somedir) is conditionally defined.  However this is wrong
2477
-  # for two reasons:
2478
-  #  1. if the package is installed by a user who cannot write `.'
2479
-  #     make install will fail,
2480
-  #  2. the above comment should most certainly read
2481
-  #     $(mkdir_p) $(DESTDIR)$(somedir)
2482
-  #     so it does not work when $(somedir) is undefined and
2483
-  #     $(DESTDIR) is not.
2484
-  #  To support the latter case, we have to write
2485
-  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2486
-  #  so the `.' trick is pointless.
2487
-  mkdir_p='mkdir -p --'
2488
-else
2489
-  # On NextStep and OpenStep, the `mkdir' command does not
2490
-  # recognize any option.  It will interpret all options as
2491
-  # directories to create, and then abort because `.' already
2492
-  # exists.
2493
-  for d in ./-p ./--version;
2494
-  do
2495
-    test -d $d && rmdir $d
2496
-  done
2497
-  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2498
-  if test -f "$ac_aux_dir/mkinstalldirs"; then
2499
-    mkdir_p='$(mkinstalldirs)'
2472
+{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2473
+echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2474
+if test -z "$MKDIR_P"; then
2475
+  if test "${ac_cv_path_mkdir+set}" = set; then
2476
+  echo $ECHO_N "(cached) $ECHO_C" >&6
2477
+else
2478
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2480
+do
2481
+  IFS=$as_save_IFS
2482
+  test -z "$as_dir" && as_dir=.
2483
+  for ac_prog in mkdir gmkdir; do
2484
+	 for ac_exec_ext in '' $ac_executable_extensions; do
2485
+	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2486
+	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2487
+	     'mkdir (GNU coreutils) '* | \
2488
+	     'mkdir (coreutils) '* | \
2489
+	     'mkdir (fileutils) '4.1*)
2490
+	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2491
+	       break 3;;
2492
+	   esac
2493
+	 done
2494
+       done
2495
+done
2496
+IFS=$as_save_IFS
2497
+
2498
+fi
2499
+
2500
+  if test "${ac_cv_path_mkdir+set}" = set; then
2501
+    MKDIR_P="$ac_cv_path_mkdir -p"
2500 2502
   else
2501
-    mkdir_p='$(install_sh) -d'
2503
+    # As a last resort, use the slow shell script.  Don't cache a
2504
+    # value for MKDIR_P within a source directory, because that will
2505
+    # break other packages using the cache if that directory is
2506
+    # removed, or if the value is a relative name.
2507
+    test -d ./--version && rmdir ./--version
2508
+    MKDIR_P="$ac_install_sh -d"
2502 2509
   fi
2503 2510
 fi
2511
+{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2512
+echo "${ECHO_T}$MKDIR_P" >&6; }
2513
+
2514
+mkdir_p="$MKDIR_P"
2515
+case $mkdir_p in
2516
+  [\\/$]* | ?:[\\/]*) ;;
2517
+  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2518
+esac
2504 2519
 
2505 2520
 for ac_prog in gawk mawk nawk awk
2506 2521
 do
... ...
@@ -2583,12 +2596,16 @@ else
2583 2583
 fi
2584 2584
 rmdir .tst 2>/dev/null
2585 2585
 
2586
-# test to see if srcdir already configured
2587
-if test "`cd $srcdir && pwd`" != "`pwd`" &&
2588
-   test -f $srcdir/config.status; then
2589
-  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2586
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
2587
+  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2588
+  # is not polluted with repeated "-I."
2589
+  am__isrc=' -I$(srcdir)'
2590
+  # test to see if srcdir already configured
2591
+  if test -f $srcdir/config.status; then
2592
+    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2590 2593
 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2591 2594
    { (exit 1); exit 1; }; }
2595
+  fi
2592 2596
 fi
2593 2597
 
2594 2598
 # test whether we have cygpath
... ...
@@ -2631,7 +2648,7 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2631 2631
 
2632 2632
 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2633 2633
 
2634
-install_sh=${install_sh-"$am_aux_dir/install-sh"}
2634
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2635 2635
 
2636 2636
 # Installed binaries are usually stripped using `strip' when the user
2637 2637
 # run `make install-strip'.  However `strip' might not be the right
... ...
@@ -2735,7 +2752,7 @@ else
2735 2735
 fi
2736 2736
 
2737 2737
 fi
2738
-INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2738
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2739 2739
 
2740 2740
 # We need awk for the "check" target.  The system "awk" is bad on
2741 2741
 # some platforms.
... ...
@@ -3771,9 +3788,7 @@ if test "x$enable_dependency_tracking" != xno; then
3771 3771
   am_depcomp="$ac_aux_dir/depcomp"
3772 3772
   AMDEPBACKSLASH='\'
3773 3773
 fi
3774
-
3775
-
3776
-if test "x$enable_dependency_tracking" != xno; then
3774
+ if test "x$enable_dependency_tracking" != xno; then
3777 3775
   AMDEP_TRUE=
3778 3776
   AMDEP_FALSE='#'
3779 3777
 else
... ...
@@ -3783,7 +3798,6 @@ fi
3783 3783
 
3784 3784
 
3785 3785
 
3786
-
3787 3786
 depcc="$CC"   am_compiler_list=
3788 3787
 
3789 3788
 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
... ...
@@ -3851,6 +3865,7 @@ else
3851 3851
        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3852 3852
        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3853 3853
          >/dev/null 2>conftest.err &&
3854
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3854 3855
        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3855 3856
        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3856 3857
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
... ...
@@ -3880,9 +3895,7 @@ fi
3880 3880
 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3881 3881
 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3882 3882
 
3883
-
3884
-
3885
-if
3883
+ if
3886 3884
   test "x$enable_dependency_tracking" != xno \
3887 3885
   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 3886
   am__fastdepCC_TRUE=
... ...
@@ -4106,7 +4119,6 @@ do
4106 4106
     done
4107 4107
   done
4108 4108
 done
4109
-IFS=$as_save_IFS
4110 4109
 lt_ac_max=0
4111 4110
 lt_ac_count=0
4112 4111
 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
... ...
@@ -4141,7 +4153,6 @@ done
4141 4141
 fi
4142 4142
 
4143 4143
 SED=$lt_cv_path_SED
4144
-
4145 4144
 { echo "$as_me:$LINENO: result: $SED" >&5
4146 4145
 echo "${ECHO_T}$SED" >&6; }
4147 4146
 
... ...
@@ -4543,7 +4554,7 @@ darwin* | rhapsody*)
4543 4543
   lt_cv_deplibs_check_method=pass_all
4544 4544
   ;;
4545 4545
 
4546
-freebsd* | kfreebsd*-gnu | dragonfly*)
4546
+freebsd* | dragonfly*)
4547 4547
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4548 4548
     case $host_cpu in
4549 4549
     i*86 )
... ...
@@ -4597,11 +4608,11 @@ irix5* | irix6* | nonstopux*)
4597 4597
   ;;
4598 4598
 
4599 4599
 # This must be Linux ELF.
4600
-linux*)
4600
+linux* | k*bsd*-gnu)
4601 4601
   lt_cv_deplibs_check_method=pass_all
4602 4602
   ;;
4603 4603
 
4604
-netbsd*)
4604
+netbsd* | netbsdelf*-gnu)
4605 4605
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4606 4606
     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4607 4607
   else
... ...
@@ -4718,7 +4729,7 @@ ia64-*-hpux*)
4718 4718
   ;;
4719 4719
 *-*-irix6*)
4720 4720
   # Find out which ABI we are using.
4721
-  echo '#line 4721 "configure"' > conftest.$ac_ext
4721
+  echo '#line 4732 "configure"' > conftest.$ac_ext
4722 4722
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 4723
   (eval $ac_compile) 2>&5
4724 4724
   ac_status=$?
... ...
@@ -5942,6 +5953,7 @@ else
5942 5942
        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5943 5943
        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5944 5944
          >/dev/null 2>conftest.err &&
5945
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5945 5946
        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5946 5947
        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5947 5948
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
... ...
@@ -5971,9 +5983,7 @@ fi
5971 5971
 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5972 5972
 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5973 5973
 
5974
-
5975
-
5976
-if
5974
+ if
5977 5975
   test "x$enable_dependency_tracking" != xno \
5978 5976
   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5979 5977
   am__fastdepCXX_TRUE=
... ...
@@ -6639,7 +6649,7 @@ hpux*) # Its linker distinguishes data from code symbols
6639 6639
   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6640 6640
   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6641 6641
   ;;
6642
-linux*)
6642
+linux* | k*bsd*-gnu)
6643 6643
   if test "$host_cpu" = ia64; then
6644 6644
     symcode='[ABCDGIRSTW]'
6645 6645
     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
... ...
@@ -7445,11 +7455,11 @@ else
7445 7445
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7446 7446
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7447 7447
    -e 's:$: $lt_compiler_flag:'`
7448
-   (eval echo "\"\$as_me:7448: $lt_compile\"" >&5)
7448
+   (eval echo "\"\$as_me:7458: $lt_compile\"" >&5)
7449 7449
    (eval "$lt_compile" 2>conftest.err)
7450 7450
    ac_status=$?
7451 7451
    cat conftest.err >&5
7452
-   echo "$as_me:7452: \$? = $ac_status" >&5
7452
+   echo "$as_me:7462: \$? = $ac_status" >&5
7453 7453
    if (exit $ac_status) && test -s "$ac_outfile"; then
7454 7454
      # The compiler can only warn and ignore the option if not recognized
7455 7455
      # So say no if there are warnings other than the usual output.
... ...
@@ -7607,7 +7617,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7607 7607
       lt_prog_compiler_static='-Bstatic'
7608 7608
       ;;
7609 7609
 
7610
-    linux*)
7610
+    linux* | k*bsd*-gnu)
7611 7611
       case $cc_basename in
7612 7612
       icc* | ecc*)
7613 7613
 	lt_prog_compiler_wl='-Wl,'
... ...
@@ -7713,11 +7723,11 @@ else
7713 7713
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7714 7714
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7715 7715
    -e 's:$: $lt_compiler_flag:'`
7716
-   (eval echo "\"\$as_me:7716: $lt_compile\"" >&5)
7716
+   (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
7717 7717
    (eval "$lt_compile" 2>conftest.err)
7718 7718
    ac_status=$?
7719 7719
    cat conftest.err >&5
7720
-   echo "$as_me:7720: \$? = $ac_status" >&5
7720
+   echo "$as_me:7730: \$? = $ac_status" >&5
7721 7721
    if (exit $ac_status) && test -s "$ac_outfile"; then
7722 7722
      # The compiler can only warn and ignore the option if not recognized
7723 7723
      # So say no if there are warnings other than the usual output.
... ...
@@ -7817,11 +7827,11 @@ else
7817 7817
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818 7818
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819 7819
    -e 's:$: $lt_compiler_flag:'`
7820
-   (eval echo "\"\$as_me:7820: $lt_compile\"" >&5)
7820
+   (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7821 7821
    (eval "$lt_compile" 2>out/conftest.err)
7822 7822
    ac_status=$?
7823 7823
    cat out/conftest.err >&5
7824
-   echo "$as_me:7824: \$? = $ac_status" >&5
7824
+   echo "$as_me:7834: \$? = $ac_status" >&5
7825 7825
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7826 7826
    then
7827 7827
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -8046,7 +8056,7 @@ EOF
8046 8046
       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8047 8047
       ;;
8048 8048
 
8049
-    linux*)
8049
+    linux* | k*bsd*-gnu)
8050 8050
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8051 8051
 	tmp_addflag=
8052 8052
 	case $cc_basename,$host_cpu in
... ...
@@ -8072,12 +8082,13 @@ EOF
8072 8072
   $echo "local: *; };" >> $output_objdir/$libname.ver~
8073 8073
 	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8074 8074
 	fi
8075
+	link_all_deplibs=no
8075 8076
       else
8076 8077
 	ld_shlibs=no
8077 8078
       fi
8078 8079
       ;;
8079 8080
 
8080
-    netbsd*)
8081
+    netbsd* | netbsdelf*-gnu)
8081 8082
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8082 8083
 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8083 8084
 	wlarc=
... ...
@@ -8505,7 +8516,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8505 8505
       ;;
8506 8506
 
8507 8507
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8508
-    freebsd* | kfreebsd*-gnu | dragonfly*)
8508
+    freebsd* | dragonfly*)
8509 8509
       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8510 8510
       hardcode_libdir_flag_spec='-R$libdir'
8511 8511
       hardcode_direct=yes
... ...
@@ -8607,7 +8618,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8607 8607
       link_all_deplibs=yes
8608 8608
       ;;
8609 8609
 
8610
-    netbsd*)
8610
+    netbsd* | netbsdelf*-gnu)
8611 8611
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8612 8612
 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8613 8613
       else
... ...
@@ -9097,18 +9108,6 @@ freebsd1*)
9097 9097
   dynamic_linker=no
9098 9098
   ;;
9099 9099
 
9100
-kfreebsd*-gnu)
9101
-  version_type=linux
9102
-  need_lib_prefix=no
9103
-  need_version=no
9104
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105
-  soname_spec='${libname}${release}${shared_ext}$major'
9106
-  shlibpath_var=LD_LIBRARY_PATH
9107
-  shlibpath_overrides_runpath=no
9108
-  hardcode_into_libs=yes
9109
-  dynamic_linker='GNU ld.so'
9110
-  ;;
9111
-
9112 9100
 freebsd* | dragonfly*)
9113 9101
   # DragonFly does not have aout.  When/if they implement a new
9114 9102
   # versioning mechanism, adjust this.
... ...
@@ -9264,7 +9263,7 @@ linux*oldld* | linux*aout* | linux*coff*)
9264 9264
   ;;
9265 9265
 
9266 9266
 # This must be Linux ELF.
9267
-linux*)
9267
+linux* | k*bsd*-gnu)
9268 9268
   version_type=linux
9269 9269
   need_lib_prefix=no
9270 9270
   need_version=no
... ...
@@ -9278,31 +9277,10 @@ linux*)
9278 9278
   # before this can be enabled.
9279 9279
   hardcode_into_libs=yes
9280 9280
 
9281
-  # find out which ABI we are using
9282
-  libsuff=
9283
-  case "$host_cpu" in
9284
-  x86_64*|s390x*|powerpc64*)
9285
-    echo '#line 9285 "configure"' > conftest.$ac_ext
9286
-    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9287
-  (eval $ac_compile) 2>&5
9288
-  ac_status=$?
9289
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290
-  (exit $ac_status); }; then
9291
-      case `/usr/bin/file conftest.$ac_objext` in
9292
-      *64-bit*)
9293
-        libsuff=64
9294
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9295
-        ;;
9296
-      esac
9297
-    fi
9298
-    rm -rf conftest*
9299
-    ;;
9300
-  esac
9301
-
9302 9281
   # Append ld.so.conf contents to the search path
9303 9282
   if test -f /etc/ld.so.conf; then
9304
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^	 *//;s/#.*//;/^[^\/]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9305
-    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9283
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9284
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9306 9285
   fi
9307 9286
 
9308 9287
   # We used to test for /lib/ld.so.1 and disable shared libraries on
... ...
@@ -9314,7 +9292,7 @@ linux*)
9314 9314
   dynamic_linker='GNU/Linux ld.so'
9315 9315
   ;;
9316 9316
 
9317
-knetbsd*-gnu)
9317
+netbsdelf*-gnu)
9318 9318
   version_type=linux
9319 9319
   need_lib_prefix=no
9320 9320
   need_version=no
... ...
@@ -9323,7 +9301,7 @@ knetbsd*-gnu)
9323 9323
   shlibpath_var=LD_LIBRARY_PATH
9324 9324
   shlibpath_overrides_runpath=no
9325 9325
   hardcode_into_libs=yes
9326
-  dynamic_linker='GNU ld.so'
9326
+  dynamic_linker='NetBSD ld.elf_so'
9327 9327
   ;;
9328 9328
 
9329 9329
 netbsd*)
... ...
@@ -10146,7 +10124,7 @@ else
10146 10146
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10147 10147
   lt_status=$lt_dlunknown
10148 10148
   cat > conftest.$ac_ext <<EOF
10149
-#line 10149 "configure"
10149
+#line 10127 "configure"
10150 10150
 #include "confdefs.h"
10151 10151
 
10152 10152
 #if HAVE_DLFCN_H
... ...
@@ -10246,7 +10224,7 @@ else
10246 10246
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10247 10247
   lt_status=$lt_dlunknown
10248 10248
   cat > conftest.$ac_ext <<EOF
10249
-#line 10249 "configure"
10249
+#line 10227 "configure"
10250 10250
 #include "confdefs.h"
10251 10251
 
10252 10252
 #if HAVE_DLFCN_H
... ...
@@ -11559,7 +11537,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11559 11559
   freebsd-elf*)
11560 11560
     archive_cmds_need_lc_CXX=no
11561 11561
     ;;
11562
-  freebsd* | kfreebsd*-gnu | dragonfly*)
11562
+  freebsd* | dragonfly*)
11563 11563
     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11564 11564
     # conventions
11565 11565
     ld_shlibs_CXX=yes
... ...
@@ -11718,7 +11696,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11718 11718
     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11719 11719
     hardcode_libdir_separator_CXX=:
11720 11720
     ;;
11721
-  linux*)
11721
+  linux* | k*bsd*-gnu)
11722 11722
     case $cc_basename in
11723 11723
       KCC*)
11724 11724
 	# Kuck and Associates, Inc. (KAI) C++ Compiler
... ...
@@ -11820,7 +11798,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11820 11820
 	;;
11821 11821
     esac
11822 11822
     ;;
11823
-  netbsd*)
11823
+  netbsd* | netbsdelf*-gnu)
11824 11824
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11825 11825
       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11826 11826
       wlarc=
... ...
@@ -12387,7 +12365,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12387 12387
 	    ;;
12388 12388
 	esac
12389 12389
 	;;
12390
-      freebsd* | kfreebsd*-gnu | dragonfly*)
12390
+      freebsd* | dragonfly*)
12391 12391
 	# FreeBSD uses GNU C++
12392 12392
 	;;
12393 12393
       hpux9* | hpux10* | hpux11*)
... ...
@@ -12430,7 +12408,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12430 12430
 	    ;;
12431 12431
 	esac
12432 12432
 	;;
12433
-      linux*)
12433
+      linux* | k*bsd*-gnu)
12434 12434
 	case $cc_basename in
12435 12435
 	  KCC*)
12436 12436
 	    # KAI C++ Compiler
... ...
@@ -12473,7 +12451,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12473 12473
 	    ;;
12474 12474
 	esac
12475 12475
 	;;
12476
-      netbsd*)
12476
+      netbsd* | netbsdelf*-gnu)
12477 12477
 	;;
12478 12478
       osf3* | osf4* | osf5*)
12479 12479
 	case $cc_basename in
... ...
@@ -12582,11 +12560,11 @@ else
12582 12582
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12583 12583
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12584 12584
    -e 's:$: $lt_compiler_flag:'`
12585
-   (eval echo "\"\$as_me:12585: $lt_compile\"" >&5)
12585
+   (eval echo "\"\$as_me:12563: $lt_compile\"" >&5)
12586 12586
    (eval "$lt_compile" 2>conftest.err)
12587 12587
    ac_status=$?
12588 12588
    cat conftest.err >&5
12589
-   echo "$as_me:12589: \$? = $ac_status" >&5
12589
+   echo "$as_me:12567: \$? = $ac_status" >&5
12590 12590
    if (exit $ac_status) && test -s "$ac_outfile"; then
12591 12591
      # The compiler can only warn and ignore the option if not recognized
12592 12592
      # So say no if there are warnings other than the usual output.
... ...
@@ -12686,11 +12664,11 @@ else
12686 12686
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12687 12687
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12688 12688
    -e 's:$: $lt_compiler_flag:'`
12689
-   (eval echo "\"\$as_me:12689: $lt_compile\"" >&5)
12689
+   (eval echo "\"\$as_me:12667: $lt_compile\"" >&5)
12690 12690
    (eval "$lt_compile" 2>out/conftest.err)
12691 12691
    ac_status=$?
12692 12692
    cat out/conftest.err >&5
12693
-   echo "$as_me:12693: \$? = $ac_status" >&5
12693
+   echo "$as_me:12671: \$? = $ac_status" >&5
12694 12694
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12695 12695
    then
12696 12696
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -12758,6 +12736,9 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
12758 12758
   cygwin* | mingw*)
12759 12759
     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12760 12760
   ;;
12761
+  linux* | k*bsd*-gnu)
12762
+    link_all_deplibs_CXX=no
12763
+  ;;
12761 12764
   *)
12762 12765
     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12763 12766
   ;;
... ...
@@ -13037,18 +13018,6 @@ freebsd1*)
13037 13037
   dynamic_linker=no
13038 13038
   ;;
13039 13039
 
13040
-kfreebsd*-gnu)
13041
-  version_type=linux
13042
-  need_lib_prefix=no
13043
-  need_version=no
13044
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13045
-  soname_spec='${libname}${release}${shared_ext}$major'
13046
-  shlibpath_var=LD_LIBRARY_PATH
13047
-  shlibpath_overrides_runpath=no
13048
-  hardcode_into_libs=yes
13049
-  dynamic_linker='GNU ld.so'
13050
-  ;;
13051
-
13052 13040
 freebsd* | dragonfly*)
13053 13041
   # DragonFly does not have aout.  When/if they implement a new
13054 13042
   # versioning mechanism, adjust this.
... ...
@@ -13204,7 +13173,7 @@ linux*oldld* | linux*aout* | linux*coff*)
13204 13204
   ;;
13205 13205
 
13206 13206
 # This must be Linux ELF.
13207
-linux*)
13207
+linux* | k*bsd*-gnu)
13208 13208
   version_type=linux
13209 13209
   need_lib_prefix=no
13210 13210
   need_version=no
... ...
@@ -13218,31 +13187,10 @@ linux*)
13218 13218
   # before this can be enabled.
13219 13219
   hardcode_into_libs=yes
13220 13220
 
13221
-  # find out which ABI we are using
13222
-  libsuff=
13223
-  case "$host_cpu" in
13224
-  x86_64*|s390x*|powerpc64*)
13225
-    echo '#line 13225 "configure"' > conftest.$ac_ext
13226
-    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227
-  (eval $ac_compile) 2>&5
13228
-  ac_status=$?
13229
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230
-  (exit $ac_status); }; then
13231
-      case `/usr/bin/file conftest.$ac_objext` in
13232
-      *64-bit*)
13233
-        libsuff=64
13234
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13235
-        ;;
13236
-      esac
13237
-    fi
13238
-    rm -rf conftest*
13239
-    ;;
13240
-  esac
13241
-
13242 13221
   # Append ld.so.conf contents to the search path
13243 13222
   if test -f /etc/ld.so.conf; then
13244
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^	 *//;s/#.*//;/^[^\/]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13245
-    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13223
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13224
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13246 13225
   fi
13247 13226
 
13248 13227
   # We used to test for /lib/ld.so.1 and disable shared libraries on
... ...
@@ -13254,7 +13202,7 @@ linux*)
13254 13254
   dynamic_linker='GNU/Linux ld.so'
13255 13255
   ;;
13256 13256
 
13257
-knetbsd*-gnu)
13257
+netbsdelf*-gnu)
13258 13258
   version_type=linux
13259 13259
   need_lib_prefix=no
13260 13260
   need_version=no
... ...
@@ -13263,7 +13211,7 @@ knetbsd*-gnu)
13263 13263
   shlibpath_var=LD_LIBRARY_PATH
13264 13264
   shlibpath_overrides_runpath=no
13265 13265
   hardcode_into_libs=yes
13266
-  dynamic_linker='GNU ld.so'
13266
+  dynamic_linker='NetBSD ld.elf_so'
13267 13267
   ;;
13268 13268
 
13269 13269
 netbsd*)
... ...
@@ -14171,7 +14119,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14171 14171
       lt_prog_compiler_static_F77='-Bstatic'
14172 14172
       ;;
14173 14173
 
14174
-    linux*)
14174
+    linux* | k*bsd*-gnu)
14175 14175
       case $cc_basename in
14176 14176
       icc* | ecc*)
14177 14177
 	lt_prog_compiler_wl_F77='-Wl,'
... ...
@@ -14277,11 +14225,11 @@ else
14277 14277
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14278 14278
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14279 14279
    -e 's:$: $lt_compiler_flag:'`
14280
-   (eval echo "\"\$as_me:14280: $lt_compile\"" >&5)
14280
+   (eval echo "\"\$as_me:14228: $lt_compile\"" >&5)
14281 14281
    (eval "$lt_compile" 2>conftest.err)
14282 14282
    ac_status=$?
14283 14283
    cat conftest.err >&5
14284
-   echo "$as_me:14284: \$? = $ac_status" >&5
14284
+   echo "$as_me:14232: \$? = $ac_status" >&5
14285 14285
    if (exit $ac_status) && test -s "$ac_outfile"; then
14286 14286
      # The compiler can only warn and ignore the option if not recognized
14287 14287
      # So say no if there are warnings other than the usual output.
... ...
@@ -14381,11 +14329,11 @@ else
14381 14381
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14382 14382
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14383 14383
    -e 's:$: $lt_compiler_flag:'`
14384
-   (eval echo "\"\$as_me:14384: $lt_compile\"" >&5)
14384
+   (eval echo "\"\$as_me:14332: $lt_compile\"" >&5)
14385 14385
    (eval "$lt_compile" 2>out/conftest.err)
14386 14386
    ac_status=$?
14387 14387
    cat out/conftest.err >&5
14388
-   echo "$as_me:14388: \$? = $ac_status" >&5
14388
+   echo "$as_me:14336: \$? = $ac_status" >&5
14389 14389
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14390 14390
    then
14391 14391
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -14610,7 +14558,7 @@ EOF
14610 14610
       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14611 14611
       ;;
14612 14612
 
14613
-    linux*)
14613
+    linux* | k*bsd*-gnu)
14614 14614
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14615 14615
 	tmp_addflag=
14616 14616
 	case $cc_basename,$host_cpu in
... ...
@@ -14636,12 +14584,13 @@ EOF
14636 14636
   $echo "local: *; };" >> $output_objdir/$libname.ver~
14637 14637
 	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14638 14638
 	fi
14639
+	link_all_deplibs_F77=no
14639 14640
       else
14640 14641
 	ld_shlibs_F77=no
14641 14642
       fi
14642 14643
       ;;
14643 14644
 
14644
-    netbsd*)
14645
+    netbsd* | netbsdelf*-gnu)
14645 14646
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14646 14647
 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14647 14648
 	wlarc=
... ...
@@ -15049,7 +14998,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15049 15049
       ;;
15050 15050
 
15051 15051
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15052
-    freebsd* | kfreebsd*-gnu | dragonfly*)
15052
+    freebsd* | dragonfly*)
15053 15053
       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15054 15054
       hardcode_libdir_flag_spec_F77='-R$libdir'
15055 15055
       hardcode_direct_F77=yes
... ...
@@ -15151,7 +15100,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15151 15151
       link_all_deplibs_F77=yes
15152 15152
       ;;
15153 15153
 
15154
-    netbsd*)
15154
+    netbsd* | netbsdelf*-gnu)
15155 15155
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15156 15156
 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15157 15157
       else
... ...
@@ -15641,18 +15590,6 @@ freebsd1*)
15641 15641
   dynamic_linker=no
15642 15642
   ;;
15643 15643
 
15644
-kfreebsd*-gnu)
15645
-  version_type=linux
15646
-  need_lib_prefix=no
15647
-  need_version=no
15648
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15649
-  soname_spec='${libname}${release}${shared_ext}$major'
15650
-  shlibpath_var=LD_LIBRARY_PATH
15651
-  shlibpath_overrides_runpath=no
15652
-  hardcode_into_libs=yes
15653
-  dynamic_linker='GNU ld.so'
15654
-  ;;
15655
-
15656 15644
 freebsd* | dragonfly*)
15657 15645
   # DragonFly does not have aout.  When/if they implement a new
15658 15646
   # versioning mechanism, adjust this.
... ...
@@ -15808,7 +15745,7 @@ linux*oldld* | linux*aout* | linux*coff*)
15808 15808
   ;;
15809 15809
 
15810 15810
 # This must be Linux ELF.
15811
-linux*)
15811
+linux* | k*bsd*-gnu)
15812 15812
   version_type=linux
15813 15813
   need_lib_prefix=no
15814 15814
   need_version=no
... ...
@@ -15822,31 +15759,10 @@ linux*)
15822 15822
   # before this can be enabled.
15823 15823
   hardcode_into_libs=yes
15824 15824
 
15825
-  # find out which ABI we are using
15826
-  libsuff=
15827
-  case "$host_cpu" in
15828
-  x86_64*|s390x*|powerpc64*)
15829
-    echo '#line 15829 "configure"' > conftest.$ac_ext
15830
-    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831
-  (eval $ac_compile) 2>&5
15832
-  ac_status=$?
15833
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834
-  (exit $ac_status); }; then
15835
-      case `/usr/bin/file conftest.$ac_objext` in
15836
-      *64-bit*)
15837
-        libsuff=64
15838
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15839
-        ;;
15840
-      esac
15841
-    fi
15842
-    rm -rf conftest*
15843
-    ;;
15844
-  esac
15845
-
15846 15825
   # Append ld.so.conf contents to the search path
15847 15826
   if test -f /etc/ld.so.conf; then
15848
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^	 *//;s/#.*//;/^[^\/]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15849
-    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15827
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15828
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15850 15829
   fi
15851 15830
 
15852 15831
   # We used to test for /lib/ld.so.1 and disable shared libraries on
... ...
@@ -15858,7 +15774,7 @@ linux*)
15858 15858
   dynamic_linker='GNU/Linux ld.so'
15859 15859
   ;;
15860 15860
 
15861
-knetbsd*-gnu)
15861
+netbsdelf*-gnu)
15862 15862
   version_type=linux
15863 15863
   need_lib_prefix=no
15864 15864
   need_version=no
... ...
@@ -15867,7 +15783,7 @@ knetbsd*-gnu)
15867 15867
   shlibpath_var=LD_LIBRARY_PATH
15868 15868
   shlibpath_overrides_runpath=no
15869 15869
   hardcode_into_libs=yes
15870
-  dynamic_linker='GNU ld.so'
15870
+  dynamic_linker='NetBSD ld.elf_so'
15871 15871
   ;;
15872 15872
 
15873 15873
 netbsd*)
... ...
@@ -16600,11 +16516,11 @@ else
16600 16600
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16601 16601
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16602 16602
    -e 's:$: $lt_compiler_flag:'`
16603
-   (eval echo "\"\$as_me:16603: $lt_compile\"" >&5)
16603
+   (eval echo "\"\$as_me:16519: $lt_compile\"" >&5)
16604 16604
    (eval "$lt_compile" 2>conftest.err)
16605 16605
    ac_status=$?
16606 16606
    cat conftest.err >&5
16607
-   echo "$as_me:16607: \$? = $ac_status" >&5
16607
+   echo "$as_me:16523: \$? = $ac_status" >&5
16608 16608
    if (exit $ac_status) && test -s "$ac_outfile"; then
16609 16609
      # The compiler can only warn and ignore the option if not recognized
16610 16610
      # So say no if there are warnings other than the usual output.
... ...
@@ -16762,7 +16678,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16762 16762
       lt_prog_compiler_static_GCJ='-Bstatic'
16763 16763
       ;;
16764 16764
 
16765
-    linux*)
16765
+    linux* | k*bsd*-gnu)
16766 16766
       case $cc_basename in
16767 16767
       icc* | ecc*)
16768 16768
 	lt_prog_compiler_wl_GCJ='-Wl,'
... ...
@@ -16868,11 +16784,11 @@ else
16868 16868
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16869 16869
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16870 16870
    -e 's:$: $lt_compiler_flag:'`
16871
-   (eval echo "\"\$as_me:16871: $lt_compile\"" >&5)
16871
+   (eval echo "\"\$as_me:16787: $lt_compile\"" >&5)
16872 16872
    (eval "$lt_compile" 2>conftest.err)
16873 16873
    ac_status=$?
16874 16874
    cat conftest.err >&5
16875
-   echo "$as_me:16875: \$? = $ac_status" >&5
16875
+   echo "$as_me:16791: \$? = $ac_status" >&5
16876 16876
    if (exit $ac_status) && test -s "$ac_outfile"; then
16877 16877
      # The compiler can only warn and ignore the option if not recognized
16878 16878
      # So say no if there are warnings other than the usual output.
... ...
@@ -16972,11 +16888,11 @@ else
16972 16972
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16973 16973
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16974 16974
    -e 's:$: $lt_compiler_flag:'`
16975
-   (eval echo "\"\$as_me:16975: $lt_compile\"" >&5)
16975
+   (eval echo "\"\$as_me:16891: $lt_compile\"" >&5)
16976 16976
    (eval "$lt_compile" 2>out/conftest.err)
16977 16977
    ac_status=$?
16978 16978
    cat out/conftest.err >&5
16979
-   echo "$as_me:16979: \$? = $ac_status" >&5
16979
+   echo "$as_me:16895: \$? = $ac_status" >&5
16980 16980
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16981 16981
    then
16982 16982
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -17201,7 +17117,7 @@ EOF
17201 17201
       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17202 17202
       ;;
17203 17203
 
17204
-    linux*)
17204
+    linux* | k*bsd*-gnu)
17205 17205
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17206 17206
 	tmp_addflag=
17207 17207
 	case $cc_basename,$host_cpu in
... ...
@@ -17227,12 +17143,13 @@ EOF
17227 17227
   $echo "local: *; };" >> $output_objdir/$libname.ver~
17228 17228
 	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17229 17229
 	fi
17230
+	link_all_deplibs_GCJ=no
17230 17231
       else
17231 17232
 	ld_shlibs_GCJ=no
17232 17233
       fi
17233 17234
       ;;
17234 17235
 
17235
-    netbsd*)
17236
+    netbsd* | netbsdelf*-gnu)
17236 17237
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17237 17238
 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17238 17239
 	wlarc=
... ...
@@ -17660,7 +17577,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17660 17660
       ;;
17661 17661
 
17662 17662
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17663
-    freebsd* | kfreebsd*-gnu | dragonfly*)
17663
+    freebsd* | dragonfly*)
17664 17664
       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17665 17665
       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17666 17666
       hardcode_direct_GCJ=yes
... ...
@@ -17762,7 +17679,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17762 17762
       link_all_deplibs_GCJ=yes
17763 17763
       ;;
17764 17764
 
17765
-    netbsd*)
17765
+    netbsd* | netbsdelf*-gnu)
17766 17766
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17767 17767
 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17768 17768
       else
... ...
@@ -18252,18 +18169,6 @@ freebsd1*)
18252 18252
   dynamic_linker=no
18253 18253
   ;;
18254 18254
 
18255
-kfreebsd*-gnu)
18256
-  version_type=linux
18257
-  need_lib_prefix=no
18258
-  need_version=no
18259
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18260
-  soname_spec='${libname}${release}${shared_ext}$major'
18261
-  shlibpath_var=LD_LIBRARY_PATH
18262
-  shlibpath_overrides_runpath=no
18263
-  hardcode_into_libs=yes
18264
-  dynamic_linker='GNU ld.so'
18265
-  ;;
18266
-
18267 18255
 freebsd* | dragonfly*)
18268 18256
   # DragonFly does not have aout.  When/if they implement a new
18269 18257
   # versioning mechanism, adjust this.
... ...
@@ -18419,7 +18324,7 @@ linux*oldld* | linux*aout* | linux*coff*)
18419 18419
   ;;
18420 18420
 
18421 18421
 # This must be Linux ELF.
18422
-linux*)
18422
+linux* | k*bsd*-gnu)
18423 18423
   version_type=linux
18424 18424
   need_lib_prefix=no
18425 18425
   need_version=no
... ...
@@ -18433,31 +18338,10 @@ linux*)
18433 18433
   # before this can be enabled.
18434 18434
   hardcode_into_libs=yes
18435 18435
 
18436
-  # find out which ABI we are using
18437
-  libsuff=
18438
-  case "$host_cpu" in
18439
-  x86_64*|s390x*|powerpc64*)
18440
-    echo '#line 18440 "configure"' > conftest.$ac_ext
18441
-    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18442
-  (eval $ac_compile) 2>&5
18443
-  ac_status=$?
18444
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445
-  (exit $ac_status); }; then
18446
-      case `/usr/bin/file conftest.$ac_objext` in
18447
-      *64-bit*)
18448
-        libsuff=64
18449
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18450
-        ;;
18451
-      esac
18452
-    fi
18453
-    rm -rf conftest*
18454
-    ;;
18455
-  esac
18456
-
18457 18436
   # Append ld.so.conf contents to the search path
18458 18437
   if test -f /etc/ld.so.conf; then
18459
-    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^	 *//;s/#.*//;/^[^\/]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18460
-    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18438
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18439
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18461 18440
   fi
18462 18441
 
18463 18442
   # We used to test for /lib/ld.so.1 and disable shared libraries on
... ...
@@ -18469,7 +18353,7 @@ linux*)
18469 18469
   dynamic_linker='GNU/Linux ld.so'
18470 18470
   ;;
18471 18471
 
18472
-knetbsd*-gnu)
18472
+netbsdelf*-gnu)
18473 18473
   version_type=linux
18474 18474
   need_lib_prefix=no
18475 18475
   need_version=no
... ...
@@ -18478,7 +18362,7 @@ knetbsd*-gnu)
18478 18478
   shlibpath_var=LD_LIBRARY_PATH
18479 18479
   shlibpath_overrides_runpath=no
18480 18480
   hardcode_into_libs=yes
18481
-  dynamic_linker='GNU ld.so'
18481
+  dynamic_linker='NetBSD ld.elf_so'
18482 18482
   ;;
18483 18483
 
18484 18484
 netbsd*)
... ...
@@ -20834,14 +20718,6 @@ _ACEOF
20834 20834
 
20835 20835
 fi
20836 20836
 
20837
-# Check whether --enable-unrar was given.
20838
-if test "${enable_unrar+set}" = set; then
20839
-  enableval=$enable_unrar; enable_unrar=$enableval
20840
-else
20841
-  enable_unrar="no"
20842
-fi
20843
-
20844
-
20845 20837
 { echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
20846 20838
 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6; }
20847 20839
 if test "${ac_cv_lib_socket_bind+set}" = set; then
... ...
@@ -21902,9 +21778,7 @@ fi
21902 21902
 
21903 21903
   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21904 21904
 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
21905
-
21906
-
21907
-if test $USE_MAINTAINER_MODE = yes; then
21905
+   if test $USE_MAINTAINER_MODE = yes; then
21908 21906
   MAINTAINER_MODE_TRUE=
21909 21907
   MAINTAINER_MODE_FALSE='#'
21910 21908
 else
... ...
@@ -24061,9 +23935,7 @@ done
24061 24061
 
24062 24062
 fi
24063 24063
 
24064
-
24065
-
24066
-if test "$have_pthreads" = "yes"; then
24064
+ if test "$have_pthreads" = "yes"; then
24067 24065
   BUILD_CLAMD_TRUE=
24068 24066
   BUILD_CLAMD_FALSE='#'
24069 24067
 else
... ...
@@ -24071,9 +23943,7 @@ else
24071 24071
   BUILD_CLAMD_FALSE=
24072 24072
 fi
24073 24073
 
24074
-
24075
-
24076
-if test "$have_milter" = "yes"; then
24074
+ if test "$have_milter" = "yes"; then
24077 24075
   HAVE_MILTER_TRUE=
24078 24076
   HAVE_MILTER_FALSE='#'
24079 24077
 else
... ...
@@ -24082,16 +23952,6 @@ else
24082 24082
 fi
24083 24083
 
24084 24084
 
24085
-
24086
-if test "$enable_unrar" = "yes"; then
24087
-  ENABLE_UNRAR_TRUE=
24088
-  ENABLE_UNRAR_FALSE='#'
24089
-else
24090
-  ENABLE_UNRAR_TRUE='#'
24091
-  ENABLE_UNRAR_FALSE=
24092
-fi
24093
-
24094
-
24095 24085
 if test "$have_pthreads" = "yes"
24096 24086
 then
24097 24087
 
... ...
@@ -24101,14 +23961,6 @@ _ACEOF
24101 24101
 
24102 24102
 fi
24103 24103
 
24104
-if test "$enable_unrar" = "yes"; then
24105
-
24106
-cat >>confdefs.h <<\_ACEOF
24107
-#define ENABLE_UNRAR 1
24108
-_ACEOF
24109
-
24110
-fi
24111
-
24112 24104
 
24113 24105
 
24114 24106
 for ac_func in recvmsg sendmsg
... ...
@@ -26257,7 +26109,7 @@ echo "$as_me: WARNING: Unable to determine FPU endianess, some features may not
26257 26257
 esac
26258 26258
 
26259 26259
 
26260
-ac_config_files="$ac_config_files libclamunrar/Makefile libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 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"
26260
+ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 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"
26261 26261
 
26262 26262
 cat >confcache <<\_ACEOF
26263 26263
 # This file is a shell script that caches the results of configure
... ...
@@ -26397,13 +26249,6 @@ echo "$as_me: error: conditional \"HAVE_MILTER\" was never defined.
26397 26397
 Usually this means the macro was only invoked conditionally." >&2;}
26398 26398
    { (exit 1); exit 1; }; }
26399 26399
 fi
26400
-if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then
26401
-  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNRAR\" was never defined.
26402
-Usually this means the macro was only invoked conditionally." >&5
26403
-echo "$as_me: error: conditional \"ENABLE_UNRAR\" was never defined.
26404
-Usually this means the macro was only invoked conditionally." >&2;}
26405
-   { (exit 1); exit 1; }; }
26406
-fi
26407 26400
 
26408 26401
 : ${CONFIG_STATUS=./config.status}
26409 26402
 ac_clean_files_save=$ac_clean_files
... ...
@@ -26768,6 +26613,7 @@ gives unlimited permission to copy, distribute and modify it."
26768 26768
 ac_pwd='$ac_pwd'
26769 26769
 srcdir='$srcdir'
26770 26770
 INSTALL='$INSTALL'
26771
+MKDIR_P='$MKDIR_P'
26771 26772
 _ACEOF
26772 26773
 
26773 26774
 cat >>$CONFIG_STATUS <<\_ACEOF
... ...
@@ -26872,7 +26718,6 @@ do
26872 26872
   case $ac_config_target in
26873 26873
     "clamav-config.h") CONFIG_HEADERS="$CONFIG_HEADERS clamav-config.h" ;;
26874 26874
     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26875
-    "libclamunrar/Makefile") CONFIG_FILES="$CONFIG_FILES libclamunrar/Makefile" ;;
26876 26875
     "libclamav/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/Makefile" ;;
26877 26876
     "clamscan/Makefile") CONFIG_FILES="$CONFIG_FILES clamscan/Makefile" ;;
26878 26877
     "database/Makefile") CONFIG_FILES="$CONFIG_FILES database/Makefile" ;;
... ...
@@ -27010,6 +26855,7 @@ target_os!$target_os$ac_delim
27010 27010
 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27011 27011
 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27012 27012
 INSTALL_DATA!$INSTALL_DATA$ac_delim
27013
+am__isrc!$am__isrc$ac_delim
27013 27014
 CYGPATH_W!$CYGPATH_W$ac_delim
27014 27015
 PACKAGE!$PACKAGE$ac_delim
27015 27016
 VERSION!$VERSION$ac_delim
... ...
@@ -27046,7 +26892,6 @@ CCDEPMODE!$CCDEPMODE$ac_delim
27046 27046
 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27047 27047
 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27048 27048
 LN_S!$LN_S$ac_delim
27049
-SED!$SED$ac_delim
27050 27049
 GREP!$GREP$ac_delim
27051 27050
 EGREP!$EGREP$ac_delim
27052 27051
 ECHO!$ECHO$ac_delim
... ...
@@ -27121,8 +26966,6 @@ BUILD_CLAMD_TRUE!$BUILD_CLAMD_TRUE$ac_delim
27121 27121
 BUILD_CLAMD_FALSE!$BUILD_CLAMD_FALSE$ac_delim
27122 27122
 HAVE_MILTER_TRUE!$HAVE_MILTER_TRUE$ac_delim
27123 27123
 HAVE_MILTER_FALSE!$HAVE_MILTER_FALSE$ac_delim
27124
-ENABLE_UNRAR_TRUE!$ENABLE_UNRAR_TRUE$ac_delim
27125
-ENABLE_UNRAR_FALSE!$ENABLE_UNRAR_FALSE$ac_delim
27126 27124
 GETENT!$GETENT$ac_delim
27127 27125
 CLAMAVUSER!$CLAMAVUSER$ac_delim
27128 27126
 CLAMAVGROUP!$CLAMAVGROUP$ac_delim
... ...
@@ -27130,7 +26973,7 @@ LIBOBJS!$LIBOBJS$ac_delim
27130 27130
 LTLIBOBJS!$LTLIBOBJS$ac_delim
27131 27131
 _ACEOF
27132 27132
 
27133
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
27133
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
27134 27134
     break
27135 27135
   elif $ac_last_try; then
27136 27136
     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
... ...
@@ -27357,6 +27200,11 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27357 27357
   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27358 27358
   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27359 27359
   esac
27360
+  ac_MKDIR_P=$MKDIR_P
27361
+  case $MKDIR_P in
27362
+  [\\/$]* | ?:[\\/]* ) ;;
27363
+  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27364
+  esac
27360 27365
 _ACEOF
27361 27366
 
27362 27367
 cat >>$CONFIG_STATUS <<\_ACEOF
... ...
@@ -27410,6 +27258,7 @@ s&@builddir@&$ac_builddir&;t t
27410 27410
 s&@abs_builddir@&$ac_abs_builddir&;t t
27411 27411
 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27412 27412
 s&@INSTALL@&$ac_INSTALL&;t t
27413
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
27413 27414
 $ac_datarootdir_hack
27414 27415
 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27415 27416
 
... ...
@@ -27574,8 +27423,9 @@ echo "$as_me: executing $ac_file commands" >&6;}
27574 27574
   # some people rename them; so instead we look at the file content.
27575 27575
   # Grep'ing the first line is not enough: some people post-process
27576 27576
   # each Makefile.in and add a new line on top of each file to say so.
27577
-  # So let's grep whole file.
27578
-  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27577
+  # Grep'ing the whole file is not good either: AIX grep has a line
27578
+  # limit of 2048, but all sed's we know have understand at least 4000.
27579
+  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27579 27580
     dirpart=`$as_dirname -- "$mf" ||
27580 27581
 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27581 27582
 	 X"$mf" : 'X\(//\)[^/]' \| \
... ...
@@ -205,10 +205,6 @@ if test "$enable_experimental" = "yes"; then
205 205
   AC_DEFINE(CL_EXPERIMENTAL,1,[enable experimental code])
206 206
 fi
207 207
 
208
-AC_ARG_ENABLE(unrar,
209
-[  --enable-unrar	build and link with libclamunrar (check the licence!)],
210
-enable_unrar=$enableval, enable_unrar="no")
211
-
212 208
 AC_CHECK_LIB(socket, bind, [LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"])
213 209
 AC_CHECK_LIB(nsl, gethostent, [LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl"])
214 210
 
... ...
@@ -750,17 +746,12 @@ fi
750 750
 
751 751
 AM_CONDITIONAL(BUILD_CLAMD, test "$have_pthreads" = "yes")
752 752
 AM_CONDITIONAL(HAVE_MILTER, test "$have_milter" = "yes")
753
-AM_CONDITIONAL(ENABLE_UNRAR, test "$enable_unrar" = "yes")
754 753
 
755 754
 if test "$have_pthreads" = "yes"
756 755
 then
757 756
     AC_DEFINE(BUILD_CLAMD, 1, "build clamd")
758 757
 fi
759 758
 
760
-if test "$enable_unrar" = "yes"; then
761
-    AC_DEFINE(ENABLE_UNRAR, 1, [link with libclamunrar (non-GPL, see COPYING.unrar)])
762
-fi
763
-
764 759
 dnl Check if we can do fd passing
765 760
 dnl Submitted by Richard Lyons <frob-clamav@webcentral.com.au>
766 761
 AC_CHECK_FUNCS(recvmsg sendmsg)
... ...
@@ -1213,7 +1204,6 @@ AC_MSG_RESULT($have_signed_rightshift_extended);
1213 1213
 AC_C_FPU_BIGENDIAN
1214 1214
 
1215 1215
 AC_OUTPUT([
1216
-libclamunrar/Makefile
1217 1216
 libclamav/Makefile
1218 1217
 clamscan/Makefile
1219 1218
 database/Makefile
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,15 +33,11 @@
33 33
 #  along with this program; if not, write to the Free Software
34 34
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
35 35
 #  MA 02110-1301, USA.
36
-srcdir = @srcdir@
37
-top_srcdir = @top_srcdir@
38 36
 VPATH = @srcdir@
39 37
 pkgdatadir = $(datadir)/@PACKAGE@
40 38
 pkglibdir = $(libdir)/@PACKAGE@
41 39
 pkgincludedir = $(includedir)/@PACKAGE@
42
-top_builddir = ..
43 40
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
-INSTALL = @INSTALL@
45 41
 install_sh_DATA = $(install_sh) -c -m 644
46 42
 install_sh_PROGRAM = $(install_sh) -c
47 43
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -70,16 +66,12 @@ SOURCES =
70 70
 DIST_SOURCES =
71 71
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
72 72
 ACLOCAL = @ACLOCAL@
73
-AMDEP_FALSE = @AMDEP_FALSE@
74
-AMDEP_TRUE = @AMDEP_TRUE@
75 73
 AMTAR = @AMTAR@
76 74
 AR = @AR@
77 75
 AUTOCONF = @AUTOCONF@
78 76
 AUTOHEADER = @AUTOHEADER@
79 77
 AUTOMAKE = @AUTOMAKE@
80 78
 AWK = @AWK@
81
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
82
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
83 79
 CC = @CC@
84 80
 CCDEPMODE = @CCDEPMODE@
85 81
 CFGDIR = @CFGDIR@
... ...
@@ -103,16 +95,13 @@ ECHO_C = @ECHO_C@
103 103
 ECHO_N = @ECHO_N@
104 104
 ECHO_T = @ECHO_T@
105 105
 EGREP = @EGREP@
106
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
107
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
108 106
 EXEEXT = @EXEEXT@
109 107
 F77 = @F77@
110 108
 FFLAGS = @FFLAGS@
111 109
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
112 110
 GETENT = @GETENT@
113 111
 GREP = @GREP@
114
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
115
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
112
+INSTALL = @INSTALL@
116 113
 INSTALL_DATA = @INSTALL_DATA@
117 114
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
118 115
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -126,9 +115,8 @@ LIBTOOL = @LIBTOOL@
126 126
 LN_S = @LN_S@
127 127
 LTLIBOBJS = @LTLIBOBJS@
128 128
 MAINT = @MAINT@
129
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
130
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
131 129
 MAKEINFO = @MAKEINFO@
130
+MKDIR_P = @MKDIR_P@
132 131
 OBJEXT = @OBJEXT@
133 132
 PACKAGE = @PACKAGE@
134 133
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -138,20 +126,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
138 138
 PACKAGE_VERSION = @PACKAGE_VERSION@
139 139
 PATH_SEPARATOR = @PATH_SEPARATOR@
140 140
 RANLIB = @RANLIB@
141
-SED = @SED@
142 141
 SET_MAKE = @SET_MAKE@
143 142
 SHELL = @SHELL@
144 143
 STRIP = @STRIP@
145 144
 THREAD_LIBS = @THREAD_LIBS@
146 145
 TH_SAFE = @TH_SAFE@
147 146
 VERSION = @VERSION@
147
+abs_builddir = @abs_builddir@
148
+abs_srcdir = @abs_srcdir@
149
+abs_top_builddir = @abs_top_builddir@
150
+abs_top_srcdir = @abs_top_srcdir@
148 151
 ac_ct_CC = @ac_ct_CC@
149 152
 ac_ct_CXX = @ac_ct_CXX@
150 153
 ac_ct_F77 = @ac_ct_F77@
151
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
152
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
153
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
154
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
155 154
 am__include = @am__include@
156 155
 am__leading_dot = @am__leading_dot@
157 156
 am__quote = @am__quote@
... ...
@@ -163,6 +150,7 @@ build_alias = @build_alias@
163 163
 build_cpu = @build_cpu@
164 164
 build_os = @build_os@
165 165
 build_vendor = @build_vendor@
166
+builddir = @builddir@
166 167
 datadir = @datadir@
167 168
 datarootdir = @datarootdir@
168 169
 docdir = @docdir@
... ...
@@ -191,12 +179,15 @@ psdir = @psdir@
191 191
 sbindir = @sbindir@
192 192
 sendmailprog = @sendmailprog@
193 193
 sharedstatedir = @sharedstatedir@
194
+srcdir = @srcdir@
194 195
 sysconfdir = @sysconfdir@
195 196
 target = @target@
196 197
 target_alias = @target_alias@
197 198
 target_cpu = @target_cpu@
198 199
 target_os = @target_os@
199 200
 target_vendor = @target_vendor@
201
+top_builddir = @top_builddir@
202
+top_srcdir = @top_srcdir@
200 203
 EXTRA_DIST = main.cvd daily.cvd
201 204
 DBINST = @DBDIR@
202 205
 all: all-am
... ...
@@ -237,10 +228,6 @@ mostlyclean-libtool:
237 237
 
238 238
 clean-libtool:
239 239
 	-rm -rf .libs _libs
240
-
241
-distclean-libtool:
242
-	-rm -f libtool
243
-uninstall-info-am:
244 240
 tags: TAGS
245 241
 TAGS:
246 242
 
... ...
@@ -249,22 +236,21 @@ CTAGS:
249 249
 
250 250
 
251 251
 distdir: $(DISTFILES)
252
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
253
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
254
-	list='$(DISTFILES)'; for file in $$list; do \
255
-	  case $$file in \
256
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
257
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
258
-	  esac; \
252
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
253
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
254
+	list='$(DISTFILES)'; \
255
+	  dist_files=`for file in $$list; do echo $$file; done | \
256
+	  sed -e "s|^$$srcdirstrip/||;t" \
257
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
258
+	case $$dist_files in \
259
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
260
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
261
+			   sort -u` ;; \
262
+	esac; \
263
+	for file in $$dist_files; do \
259 264
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
260
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
261
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
262
-	    dir="/$$dir"; \
263
-	    $(mkdir_p) "$(distdir)$$dir"; \
264
-	  else \
265
-	    dir=''; \
266
-	  fi; \
267 265
 	  if test -d $$d/$$file; then \
266
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
268 267
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
269 268
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
270 269
 	    fi; \
... ...
@@ -308,7 +294,7 @@ clean-am: clean-generic clean-libtool mostlyclean-am
308 308
 
309 309
 distclean: distclean-am
310 310
 	-rm -f Makefile
311
-distclean-am: clean-am distclean-generic distclean-libtool
311
+distclean-am: clean-am distclean-generic
312 312
 
313 313
 dvi: dvi-am
314 314
 
... ...
@@ -322,12 +308,20 @@ info-am:
322 322
 
323 323
 install-data-am:
324 324
 
325
+install-dvi: install-dvi-am
326
+
325 327
 install-exec-am:
326 328
 
329
+install-html: install-html-am
330
+
327 331
 install-info: install-info-am
328 332
 
329 333
 install-man:
330 334
 
335
+install-pdf: install-pdf-am
336
+
337
+install-ps: install-ps-am
338
+
331 339
 installcheck-am:
332 340
 
333 341
 maintainer-clean: maintainer-clean-am
... ...
@@ -346,17 +340,20 @@ ps: ps-am
346 346
 
347 347
 ps-am:
348 348
 
349
-uninstall-am: uninstall-info-am
349
+uninstall-am:
350
+
351
+.MAKE: install-am install-strip
350 352
 
351 353
 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
352 354
 	distclean distclean-generic distclean-libtool distdir dvi \
353 355
 	dvi-am html html-am info info-am install install-am \
354
-	install-data install-data-am install-exec install-exec-am \
355
-	install-info install-info-am install-man install-strip \
356
+	install-data install-data-am install-dvi install-dvi-am \
357
+	install-exec install-exec-am install-html install-html-am \
358
+	install-info install-info-am install-man install-pdf \
359
+	install-pdf-am install-ps install-ps-am install-strip \
356 360
 	installcheck installcheck-am installdirs maintainer-clean \
357 361
 	maintainer-clean-generic mostlyclean mostlyclean-generic \
358
-	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
359
-	uninstall-info-am
362
+	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
360 363
 
361 364
 
362 365
 install:
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -31,15 +31,11 @@
31 31
 #  along with this program; if not, write to the Free Software
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34
-srcdir = @srcdir@
35
-top_srcdir = @top_srcdir@
36 34
 VPATH = @srcdir@
37 35
 pkgdatadir = $(datadir)/@PACKAGE@
38 36
 pkglibdir = $(libdir)/@PACKAGE@
39 37
 pkgincludedir = $(includedir)/@PACKAGE@
40
-top_builddir = ..
41 38
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
42
-INSTALL = @INSTALL@
43 39
 install_sh_DATA = $(install_sh) -c -m 644
44 40
 install_sh_PROGRAM = $(install_sh) -c
45 41
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -75,16 +71,12 @@ NROFF = nroff
75 75
 MANS = $(man_MANS)
76 76
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77 77
 ACLOCAL = @ACLOCAL@
78
-AMDEP_FALSE = @AMDEP_FALSE@
79
-AMDEP_TRUE = @AMDEP_TRUE@
80 78
 AMTAR = @AMTAR@
81 79
 AR = @AR@
82 80
 AUTOCONF = @AUTOCONF@
83 81
 AUTOHEADER = @AUTOHEADER@
84 82
 AUTOMAKE = @AUTOMAKE@
85 83
 AWK = @AWK@
86
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
87
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
88 84
 CC = @CC@
89 85
 CCDEPMODE = @CCDEPMODE@
90 86
 CFGDIR = @CFGDIR@
... ...
@@ -108,16 +100,13 @@ ECHO_C = @ECHO_C@
108 108
 ECHO_N = @ECHO_N@
109 109
 ECHO_T = @ECHO_T@
110 110
 EGREP = @EGREP@
111
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
112
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
113 111
 EXEEXT = @EXEEXT@
114 112
 F77 = @F77@
115 113
 FFLAGS = @FFLAGS@
116 114
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
117 115
 GETENT = @GETENT@
118 116
 GREP = @GREP@
119
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
120
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
117
+INSTALL = @INSTALL@
121 118
 INSTALL_DATA = @INSTALL_DATA@
122 119
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
123 120
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -131,9 +120,8 @@ LIBTOOL = @LIBTOOL@
131 131
 LN_S = @LN_S@
132 132
 LTLIBOBJS = @LTLIBOBJS@
133 133
 MAINT = @MAINT@
134
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
135
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
136 134
 MAKEINFO = @MAKEINFO@
135
+MKDIR_P = @MKDIR_P@
137 136
 OBJEXT = @OBJEXT@
138 137
 PACKAGE = @PACKAGE@
139 138
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -143,20 +131,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
143 143
 PACKAGE_VERSION = @PACKAGE_VERSION@
144 144
 PATH_SEPARATOR = @PATH_SEPARATOR@
145 145
 RANLIB = @RANLIB@
146
-SED = @SED@
147 146
 SET_MAKE = @SET_MAKE@
148 147
 SHELL = @SHELL@
149 148
 STRIP = @STRIP@
150 149
 THREAD_LIBS = @THREAD_LIBS@
151 150
 TH_SAFE = @TH_SAFE@
152 151
 VERSION = @VERSION@
152
+abs_builddir = @abs_builddir@
153
+abs_srcdir = @abs_srcdir@
154
+abs_top_builddir = @abs_top_builddir@
155
+abs_top_srcdir = @abs_top_srcdir@
153 156
 ac_ct_CC = @ac_ct_CC@
154 157
 ac_ct_CXX = @ac_ct_CXX@
155 158
 ac_ct_F77 = @ac_ct_F77@
156
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
157
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
158
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
159
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
160 159
 am__include = @am__include@
161 160
 am__leading_dot = @am__leading_dot@
162 161
 am__quote = @am__quote@
... ...
@@ -168,6 +155,7 @@ build_alias = @build_alias@
168 168
 build_cpu = @build_cpu@
169 169
 build_os = @build_os@
170 170
 build_vendor = @build_vendor@
171
+builddir = @builddir@
171 172
 datadir = @datadir@
172 173
 datarootdir = @datarootdir@
173 174
 docdir = @docdir@
... ...
@@ -196,12 +184,15 @@ psdir = @psdir@
196 196
 sbindir = @sbindir@
197 197
 sendmailprog = @sendmailprog@
198 198
 sharedstatedir = @sharedstatedir@
199
+srcdir = @srcdir@
199 200
 sysconfdir = @sysconfdir@
200 201
 target = @target@
201 202
 target_alias = @target_alias@
202 203
 target_cpu = @target_cpu@
203 204
 target_os = @target_os@
204 205
 target_vendor = @target_vendor@
206
+top_builddir = @top_builddir@
207
+top_srcdir = @top_srcdir@
205 208
 EXTRA_DIST = html man/*.in clamdoc.pdf clamdoc.tex clamav-mirror-howto.pdf clamav-mirror-howto.tex signatures.pdf signatures.tex clam.eps
206 209
 man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/freshclam.conf.5 man/clamconf.1
207 210
 all: all-am
... ...
@@ -242,13 +233,9 @@ mostlyclean-libtool:
242 242
 
243 243
 clean-libtool:
244 244
 	-rm -rf .libs _libs
245
-
246
-distclean-libtool:
247
-	-rm -f libtool
248
-uninstall-info-am:
249 245
 install-man1: $(man1_MANS) $(man_MANS)
250 246
 	@$(NORMAL_INSTALL)
251
-	test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
247
+	test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
252 248
 	@list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
253 249
 	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
254 250
 	for i in $$l2; do \
... ...
@@ -293,7 +280,7 @@ uninstall-man1:
293 293
 	done
294 294
 install-man5: $(man5_MANS) $(man_MANS)
295 295
 	@$(NORMAL_INSTALL)
296
-	test -z "$(man5dir)" || $(mkdir_p) "$(DESTDIR)$(man5dir)"
296
+	test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)"
297 297
 	@list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
298 298
 	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
299 299
 	for i in $$l2; do \
... ...
@@ -338,7 +325,7 @@ uninstall-man5:
338 338
 	done
339 339
 install-man8: $(man8_MANS) $(man_MANS)
340 340
 	@$(NORMAL_INSTALL)
341
-	test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
341
+	test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
342 342
 	@list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
343 343
 	l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
344 344
 	for i in $$l2; do \
... ...
@@ -389,23 +376,21 @@ CTAGS:
389 389
 
390 390
 
391 391
 distdir: $(DISTFILES)
392
-	$(mkdir_p) $(distdir)/man
393
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
394
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
395
-	list='$(DISTFILES)'; for file in $$list; do \
396
-	  case $$file in \
397
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
398
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
399
-	  esac; \
392
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
393
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
394
+	list='$(DISTFILES)'; \
395
+	  dist_files=`for file in $$list; do echo $$file; done | \
396
+	  sed -e "s|^$$srcdirstrip/||;t" \
397
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
398
+	case $$dist_files in \
399
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
400
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
401
+			   sort -u` ;; \
402
+	esac; \
403
+	for file in $$dist_files; do \
400 404
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
401
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
402
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
403
-	    dir="/$$dir"; \
404
-	    $(mkdir_p) "$(distdir)$$dir"; \
405
-	  else \
406
-	    dir=''; \
407
-	  fi; \
408 405
 	  if test -d $$d/$$file; then \
406
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
409 407
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
410 408
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
411 409
 	    fi; \
... ...
@@ -421,7 +406,7 @@ check: check-am
421 421
 all-am: Makefile $(MANS)
422 422
 installdirs:
423 423
 	for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)"; do \
424
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
424
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
425 425
 	done
426 426
 install: install-am
427 427
 install-exec: install-exec-am
... ...
@@ -453,7 +438,7 @@ clean-am: clean-generic clean-libtool mostlyclean-am
453 453
 
454 454
 distclean: distclean-am
455 455
 	-rm -f Makefile
456
-distclean-am: clean-am distclean-generic distclean-libtool
456
+distclean-am: clean-am distclean-generic
457 457
 
458 458
 dvi: dvi-am
459 459
 
... ...
@@ -467,12 +452,20 @@ info-am:
467 467
 
468 468
 install-data-am: install-man
469 469
 
470
+install-dvi: install-dvi-am
471
+
470 472
 install-exec-am:
471 473
 
474
+install-html: install-html-am
475
+
472 476
 install-info: install-info-am
473 477
 
474 478
 install-man: install-man1 install-man5 install-man8
475 479
 
480
+install-pdf: install-pdf-am
481
+
482
+install-ps: install-ps-am
483
+
476 484
 installcheck-am:
477 485
 
478 486
 maintainer-clean: maintainer-clean-am
... ...
@@ -491,21 +484,24 @@ ps: ps-am
491 491
 
492 492
 ps-am:
493 493
 
494
-uninstall-am: uninstall-info-am uninstall-man
494
+uninstall-am: uninstall-man
495 495
 
496 496
 uninstall-man: uninstall-man1 uninstall-man5 uninstall-man8
497 497
 
498
+.MAKE: install-am install-strip
499
+
498 500
 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
499 501
 	distclean distclean-generic distclean-libtool distdir dvi \
500 502
 	dvi-am html html-am info info-am install install-am \
501
-	install-data install-data-am install-exec install-exec-am \
503
+	install-data install-data-am install-dvi install-dvi-am \
504
+	install-exec install-exec-am install-html install-html-am \
502 505
 	install-info install-info-am install-man install-man1 \
503
-	install-man5 install-man8 install-strip installcheck \
506
+	install-man5 install-man8 install-pdf install-pdf-am \
507
+	install-ps install-ps-am install-strip installcheck \
504 508
 	installcheck-am installdirs maintainer-clean \
505 509
 	maintainer-clean-generic mostlyclean mostlyclean-generic \
506 510
 	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
507
-	uninstall-info-am uninstall-man uninstall-man1 uninstall-man5 \
508
-	uninstall-man8
511
+	uninstall-man uninstall-man1 uninstall-man5 uninstall-man8
509 512
 
510 513
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
511 514
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -31,15 +31,11 @@
31 31
 #  along with this program; if not, write to the Free Software
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34
-srcdir = @srcdir@
35
-top_srcdir = @top_srcdir@
36 34
 VPATH = @srcdir@
37 35
 pkgdatadir = $(datadir)/@PACKAGE@
38 36
 pkglibdir = $(libdir)/@PACKAGE@
39 37
 pkgincludedir = $(includedir)/@PACKAGE@
40
-top_builddir = ..
41 38
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
42
-INSTALL = @INSTALL@
43 39
 install_sh_DATA = $(install_sh) -c -m 644
44 40
 install_sh_PROGRAM = $(install_sh) -c
45 41
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -68,16 +64,12 @@ SOURCES =
68 68
 DIST_SOURCES =
69 69
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
70 70
 ACLOCAL = @ACLOCAL@
71
-AMDEP_FALSE = @AMDEP_FALSE@
72
-AMDEP_TRUE = @AMDEP_TRUE@
73 71
 AMTAR = @AMTAR@
74 72
 AR = @AR@
75 73
 AUTOCONF = @AUTOCONF@
76 74
 AUTOHEADER = @AUTOHEADER@
77 75
 AUTOMAKE = @AUTOMAKE@
78 76
 AWK = @AWK@
79
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
80
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
81 77
 CC = @CC@
82 78
 CCDEPMODE = @CCDEPMODE@
83 79
 CFGDIR = @CFGDIR@
... ...
@@ -101,16 +93,13 @@ ECHO_C = @ECHO_C@
101 101
 ECHO_N = @ECHO_N@
102 102
 ECHO_T = @ECHO_T@
103 103
 EGREP = @EGREP@
104
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
105
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
106 104
 EXEEXT = @EXEEXT@
107 105
 F77 = @F77@
108 106
 FFLAGS = @FFLAGS@
109 107
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
110 108
 GETENT = @GETENT@
111 109
 GREP = @GREP@
112
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
113
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
110
+INSTALL = @INSTALL@
114 111
 INSTALL_DATA = @INSTALL_DATA@
115 112
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
116 113
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -124,9 +113,8 @@ LIBTOOL = @LIBTOOL@
124 124
 LN_S = @LN_S@
125 125
 LTLIBOBJS = @LTLIBOBJS@
126 126
 MAINT = @MAINT@
127
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
128
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
129 127
 MAKEINFO = @MAKEINFO@
128
+MKDIR_P = @MKDIR_P@
130 129
 OBJEXT = @OBJEXT@
131 130
 PACKAGE = @PACKAGE@
132 131
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -136,20 +124,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
136 136
 PACKAGE_VERSION = @PACKAGE_VERSION@
137 137
 PATH_SEPARATOR = @PATH_SEPARATOR@
138 138
 RANLIB = @RANLIB@
139
-SED = @SED@
140 139
 SET_MAKE = @SET_MAKE@
141 140
 SHELL = @SHELL@
142 141
 STRIP = @STRIP@
143 142
 THREAD_LIBS = @THREAD_LIBS@
144 143
 TH_SAFE = @TH_SAFE@
145 144
 VERSION = @VERSION@
145
+abs_builddir = @abs_builddir@
146
+abs_srcdir = @abs_srcdir@
147
+abs_top_builddir = @abs_top_builddir@
148
+abs_top_srcdir = @abs_top_srcdir@
146 149
 ac_ct_CC = @ac_ct_CC@
147 150
 ac_ct_CXX = @ac_ct_CXX@
148 151
 ac_ct_F77 = @ac_ct_F77@
149
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
150
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
151
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
152
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
153 152
 am__include = @am__include@
154 153
 am__leading_dot = @am__leading_dot@
155 154
 am__quote = @am__quote@
... ...
@@ -161,6 +148,7 @@ build_alias = @build_alias@
161 161
 build_cpu = @build_cpu@
162 162
 build_os = @build_os@
163 163
 build_vendor = @build_vendor@
164
+builddir = @builddir@
164 165
 datadir = @datadir@
165 166
 datarootdir = @datarootdir@
166 167
 docdir = @docdir@
... ...
@@ -189,12 +177,15 @@ psdir = @psdir@
189 189
 sbindir = @sbindir@
190 190
 sendmailprog = @sendmailprog@
191 191
 sharedstatedir = @sharedstatedir@
192
+srcdir = @srcdir@
192 193
 sysconfdir = @sysconfdir@
193 194
 target = @target@
194 195
 target_alias = @target_alias@
195 196
 target_cpu = @target_cpu@
196 197
 target_os = @target_os@
197 198
 target_vendor = @target_vendor@
199
+top_builddir = @top_builddir@
200
+top_srcdir = @top_srcdir@
198 201
 EXTRA_DIST = clamd.conf freshclam.conf
199 202
 CFGINST = @CFGDIR@
200 203
 all: all-am
... ...
@@ -235,10 +226,6 @@ mostlyclean-libtool:
235 235
 
236 236
 clean-libtool:
237 237
 	-rm -rf .libs _libs
238
-
239
-distclean-libtool:
240
-	-rm -f libtool
241
-uninstall-info-am:
242 238
 tags: TAGS
243 239
 TAGS:
244 240
 
... ...
@@ -247,22 +234,21 @@ CTAGS:
247 247
 
248 248
 
249 249
 distdir: $(DISTFILES)
250
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
251
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
252
-	list='$(DISTFILES)'; for file in $$list; do \
253
-	  case $$file in \
254
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
255
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
256
-	  esac; \
250
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
251
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
252
+	list='$(DISTFILES)'; \
253
+	  dist_files=`for file in $$list; do echo $$file; done | \
254
+	  sed -e "s|^$$srcdirstrip/||;t" \
255
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
256
+	case $$dist_files in \
257
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
258
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
259
+			   sort -u` ;; \
260
+	esac; \
261
+	for file in $$dist_files; do \
257 262
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
258
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
259
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
260
-	    dir="/$$dir"; \
261
-	    $(mkdir_p) "$(distdir)$$dir"; \
262
-	  else \
263
-	    dir=''; \
264
-	  fi; \
265 263
 	  if test -d $$d/$$file; then \
264
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
266 265
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
267 266
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
268 267
 	    fi; \
... ...
@@ -306,7 +292,7 @@ clean-am: clean-generic clean-libtool mostlyclean-am
306 306
 
307 307
 distclean: distclean-am
308 308
 	-rm -f Makefile
309
-distclean-am: clean-am distclean-generic distclean-libtool
309
+distclean-am: clean-am distclean-generic
310 310
 
311 311
 dvi: dvi-am
312 312
 
... ...
@@ -320,12 +306,20 @@ info-am:
320 320
 
321 321
 install-data-am:
322 322
 
323
+install-dvi: install-dvi-am
324
+
323 325
 install-exec-am:
324 326
 
327
+install-html: install-html-am
328
+
325 329
 install-info: install-info-am
326 330
 
327 331
 install-man:
328 332
 
333
+install-pdf: install-pdf-am
334
+
335
+install-ps: install-ps-am
336
+
329 337
 installcheck-am:
330 338
 
331 339
 maintainer-clean: maintainer-clean-am
... ...
@@ -344,17 +338,20 @@ ps: ps-am
344 344
 
345 345
 ps-am:
346 346
 
347
-uninstall-am: uninstall-info-am
347
+uninstall-am:
348
+
349
+.MAKE: install-am install-strip
348 350
 
349 351
 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
350 352
 	distclean distclean-generic distclean-libtool distdir dvi \
351 353
 	dvi-am html html-am info info-am install install-am \
352
-	install-data install-data-am install-exec install-exec-am \
353
-	install-info install-info-am install-man install-strip \
354
+	install-data install-data-am install-dvi install-dvi-am \
355
+	install-exec install-exec-am install-html install-html-am \
356
+	install-info install-info-am install-man install-pdf \
357
+	install-pdf-am install-ps install-ps-am install-strip \
354 358
 	installcheck installcheck-am installdirs maintainer-clean \
355 359
 	maintainer-clean-generic mostlyclean mostlyclean-generic \
356
-	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
357
-	uninstall-info-am
360
+	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
358 361
 
359 362
 
360 363
 install:
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,15 +33,11 @@
33 33
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
34 34
 #  MA 02110-1301, USA.
35 35
 
36
-srcdir = @srcdir@
37
-top_srcdir = @top_srcdir@
38 36
 VPATH = @srcdir@
39 37
 pkgdatadir = $(datadir)/@PACKAGE@
40 38
 pkglibdir = $(libdir)/@PACKAGE@
41 39
 pkgincludedir = $(includedir)/@PACKAGE@
42
-top_builddir = ..
43 40
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
-INSTALL = @INSTALL@
45 41
 install_sh_DATA = $(install_sh) -c -m 644
46 42
 install_sh_PROGRAM = $(install_sh) -c
47 43
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -77,33 +73,30 @@ am_freshclam_OBJECTS = output.$(OBJEXT) cfgparser.$(OBJEXT) \
77 77
 	execute.$(OBJEXT) nonblock.$(OBJEXT) mirman.$(OBJEXT)
78 78
 freshclam_OBJECTS = $(am_freshclam_OBJECTS)
79 79
 freshclam_LDADD = $(LDADD)
80
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
80
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
81 81
 depcomp = $(SHELL) $(top_srcdir)/depcomp
82 82
 am__depfiles_maybe = depfiles
83 83
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
84 84
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
85
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
86
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
87
-	$(AM_CFLAGS) $(CFLAGS)
85
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
86
+	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
87
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
88 88
 CCLD = $(CC)
89
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
90
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
89
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
90
+	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
91
+	$(LDFLAGS) -o $@
91 92
 SOURCES = $(freshclam_SOURCES)
92 93
 DIST_SOURCES = $(freshclam_SOURCES)
93 94
 ETAGS = etags
94 95
 CTAGS = ctags
95 96
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
96 97
 ACLOCAL = @ACLOCAL@
97
-AMDEP_FALSE = @AMDEP_FALSE@
98
-AMDEP_TRUE = @AMDEP_TRUE@
99 98
 AMTAR = @AMTAR@
100 99
 AR = @AR@
101 100
 AUTOCONF = @AUTOCONF@
102 101
 AUTOHEADER = @AUTOHEADER@
103 102
 AUTOMAKE = @AUTOMAKE@
104 103
 AWK = @AWK@
105
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
106
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
107 104
 CC = @CC@
108 105
 CCDEPMODE = @CCDEPMODE@
109 106
 CFGDIR = @CFGDIR@
... ...
@@ -127,16 +120,13 @@ ECHO_C = @ECHO_C@
127 127
 ECHO_N = @ECHO_N@
128 128
 ECHO_T = @ECHO_T@
129 129
 EGREP = @EGREP@
130
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
131
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
132 130
 EXEEXT = @EXEEXT@
133 131
 F77 = @F77@
134 132
 FFLAGS = @FFLAGS@
135 133
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
136 134
 GETENT = @GETENT@
137 135
 GREP = @GREP@
138
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
139
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
136
+INSTALL = @INSTALL@
140 137
 INSTALL_DATA = @INSTALL_DATA@
141 138
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
142 139
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -150,9 +140,8 @@ LIBTOOL = @LIBTOOL@
150 150
 LN_S = @LN_S@
151 151
 LTLIBOBJS = @LTLIBOBJS@
152 152
 MAINT = @MAINT@
153
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
154
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
155 153
 MAKEINFO = @MAKEINFO@
154
+MKDIR_P = @MKDIR_P@
156 155
 OBJEXT = @OBJEXT@
157 156
 PACKAGE = @PACKAGE@
158 157
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -162,20 +151,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
162 162
 PACKAGE_VERSION = @PACKAGE_VERSION@
163 163
 PATH_SEPARATOR = @PATH_SEPARATOR@
164 164
 RANLIB = @RANLIB@
165
-SED = @SED@
166 165
 SET_MAKE = @SET_MAKE@
167 166
 SHELL = @SHELL@
168 167
 STRIP = @STRIP@
169 168
 THREAD_LIBS = @THREAD_LIBS@
170 169
 TH_SAFE = @TH_SAFE@
171 170
 VERSION = @VERSION@
171
+abs_builddir = @abs_builddir@
172
+abs_srcdir = @abs_srcdir@
173
+abs_top_builddir = @abs_top_builddir@
174
+abs_top_srcdir = @abs_top_srcdir@
172 175
 ac_ct_CC = @ac_ct_CC@
173 176
 ac_ct_CXX = @ac_ct_CXX@
174 177
 ac_ct_F77 = @ac_ct_F77@
175
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
176
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
177
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
178
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
179 178
 am__include = @am__include@
180 179
 am__leading_dot = @am__leading_dot@
181 180
 am__quote = @am__quote@
... ...
@@ -187,6 +175,7 @@ build_alias = @build_alias@
187 187
 build_cpu = @build_cpu@
188 188
 build_os = @build_os@
189 189
 build_vendor = @build_vendor@
190
+builddir = @builddir@
190 191
 datadir = @datadir@
191 192
 datarootdir = @datarootdir@
192 193
 docdir = @docdir@
... ...
@@ -215,12 +204,15 @@ psdir = @psdir@
215 215
 sbindir = @sbindir@
216 216
 sendmailprog = @sendmailprog@
217 217
 sharedstatedir = @sharedstatedir@
218
+srcdir = @srcdir@
218 219
 sysconfdir = @sysconfdir@
219 220
 target = @target@
220 221
 target_alias = @target_alias@
221 222
 target_cpu = @target_cpu@
222 223
 target_os = @target_os@
223 224
 target_vendor = @target_vendor@
225
+top_builddir = @top_builddir@
226
+top_srcdir = @top_srcdir@
224 227
 freshclam_SOURCES = \
225 228
     $(top_srcdir)/shared/output.c \
226 229
     $(top_srcdir)/shared/output.h \
... ...
@@ -285,7 +277,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
285 285
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
286 286
 install-binPROGRAMS: $(bin_PROGRAMS)
287 287
 	@$(NORMAL_INSTALL)
288
-	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
288
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
289 289
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
290 290
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
291 291
 	  if test -f $$p \
... ...
@@ -313,7 +305,7 @@ clean-binPROGRAMS:
313 313
 	done
314 314
 freshclam$(EXEEXT): $(freshclam_OBJECTS) $(freshclam_DEPENDENCIES) 
315 315
 	@rm -f freshclam$(EXEEXT)
316
-	$(LINK) $(freshclam_LDFLAGS) $(freshclam_OBJECTS) $(freshclam_LDADD) $(LIBS)
316
+	$(LINK) $(freshclam_OBJECTS) $(freshclam_LDADD) $(LIBS)
317 317
 
318 318
 mostlyclean-compile:
319 319
 	-rm -f *.$(OBJEXT)
... ...
@@ -337,120 +329,120 @@ distclean-compile:
337 337
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sha256.Po@am__quote@
338 338
 
339 339
 .c.o:
340
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
341
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
340
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
341
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
342 342
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
343 343
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
344 344
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
345 345
 
346 346
 .c.obj:
347
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
348
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
347
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
348
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
349 349
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
350 350
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
351 351
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
352 352
 
353 353
 .c.lo:
354
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
355
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
354
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
355
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
356 356
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
357 357
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
358 358
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
359 359
 
360 360
 output.o: $(top_srcdir)/shared/output.c
361
-@am__fastdepCC_TRUE@	if $(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; \
362
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
361
+@am__fastdepCC_TRUE@	$(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
362
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
363 363
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
364 364
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
365 365
 @am__fastdepCC_FALSE@	$(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
366 366
 
367 367
 output.obj: $(top_srcdir)/shared/output.c
368
-@am__fastdepCC_TRUE@	if $(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`; \
369
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
368
+@am__fastdepCC_TRUE@	$(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`
369
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
370 370
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
371 371
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
372 372
 @am__fastdepCC_FALSE@	$(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`
373 373
 
374 374
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
375
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
376
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
375
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
376
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
377 377
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
378 378
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379 379
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
380 380
 
381 381
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
382
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
383
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
382
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
383
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
384 384
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
385 385
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386 386
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
387 387
 
388 388
 getopt.o: $(top_srcdir)/shared/getopt.c
389
-@am__fastdepCC_TRUE@	if $(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; \
390
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
389
+@am__fastdepCC_TRUE@	$(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
390
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
391 391
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
392 392
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
393 393
 @am__fastdepCC_FALSE@	$(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
394 394
 
395 395
 getopt.obj: $(top_srcdir)/shared/getopt.c
396
-@am__fastdepCC_TRUE@	if $(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`; \
397
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
396
+@am__fastdepCC_TRUE@	$(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`
397
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
398 398
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
399 399
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400 400
 @am__fastdepCC_FALSE@	$(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`
401 401
 
402 402
 misc.o: $(top_srcdir)/shared/misc.c
403
-@am__fastdepCC_TRUE@	if $(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; \
404
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
403
+@am__fastdepCC_TRUE@	$(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
404
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
405 405
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
406 406
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407 407
 @am__fastdepCC_FALSE@	$(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
408 408
 
409 409
 misc.obj: $(top_srcdir)/shared/misc.c
410
-@am__fastdepCC_TRUE@	if $(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`; \
411
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
410
+@am__fastdepCC_TRUE@	$(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`
411
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
412 412
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
413 413
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
414 414
 @am__fastdepCC_FALSE@	$(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`
415 415
 
416 416
 options.o: $(top_srcdir)/shared/options.c
417
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
418
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
417
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
418
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
419 419
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
420 420
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
421 421
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
422 422
 
423 423
 options.obj: $(top_srcdir)/shared/options.c
424
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
425
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
424
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
425
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
426 426
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
427 427
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428 428
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
429 429
 
430 430
 sha256.o: $(top_srcdir)/shared/sha256.c
431
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.o -MD -MP -MF "$(DEPDIR)/sha256.Tpo" -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c; \
432
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/sha256.Tpo" "$(DEPDIR)/sha256.Po"; else rm -f "$(DEPDIR)/sha256.Tpo"; exit 1; fi
431
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.o -MD -MP -MF $(DEPDIR)/sha256.Tpo -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c
432
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/sha256.Tpo $(DEPDIR)/sha256.Po
433 433
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/sha256.c' object='sha256.o' libtool=no @AMDEPBACKSLASH@
434 434
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
435 435
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c
436 436
 
437 437
 sha256.obj: $(top_srcdir)/shared/sha256.c
438
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.obj -MD -MP -MF "$(DEPDIR)/sha256.Tpo" -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`; \
439
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/sha256.Tpo" "$(DEPDIR)/sha256.Po"; else rm -f "$(DEPDIR)/sha256.Tpo"; exit 1; fi
438
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.obj -MD -MP -MF $(DEPDIR)/sha256.Tpo -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`
439
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/sha256.Tpo $(DEPDIR)/sha256.Po
440 440
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/sha256.c' object='sha256.obj' libtool=no @AMDEPBACKSLASH@
441 441
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
442 442
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`
443 443
 
444 444
 cdiff.o: $(top_srcdir)/shared/cdiff.c
445
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.o -MD -MP -MF "$(DEPDIR)/cdiff.Tpo" -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c; \
446
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cdiff.Tpo" "$(DEPDIR)/cdiff.Po"; else rm -f "$(DEPDIR)/cdiff.Tpo"; exit 1; fi
445
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.o -MD -MP -MF $(DEPDIR)/cdiff.Tpo -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c
446
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cdiff.Tpo $(DEPDIR)/cdiff.Po
447 447
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cdiff.c' object='cdiff.o' libtool=no @AMDEPBACKSLASH@
448 448
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
449 449
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c
450 450
 
451 451
 cdiff.obj: $(top_srcdir)/shared/cdiff.c
452
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.obj -MD -MP -MF "$(DEPDIR)/cdiff.Tpo" -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`; \
453
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cdiff.Tpo" "$(DEPDIR)/cdiff.Po"; else rm -f "$(DEPDIR)/cdiff.Tpo"; exit 1; fi
452
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.obj -MD -MP -MF $(DEPDIR)/cdiff.Tpo -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`
453
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cdiff.Tpo $(DEPDIR)/cdiff.Po
454 454
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cdiff.c' object='cdiff.obj' libtool=no @AMDEPBACKSLASH@
455 455
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
456 456
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`
... ...
@@ -461,10 +453,6 @@ mostlyclean-libtool:
461 461
 clean-libtool:
462 462
 	-rm -rf .libs _libs
463 463
 
464
-distclean-libtool:
465
-	-rm -f libtool
466
-uninstall-info-am:
467
-
468 464
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
469 465
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
470 466
 	unique=`for i in $$list; do \
... ...
@@ -514,22 +502,21 @@ distclean-tags:
514 514
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
515 515
 
516 516
 distdir: $(DISTFILES)
517
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
518
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
519
-	list='$(DISTFILES)'; for file in $$list; do \
520
-	  case $$file in \
521
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
522
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
523
-	  esac; \
517
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
518
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
519
+	list='$(DISTFILES)'; \
520
+	  dist_files=`for file in $$list; do echo $$file; done | \
521
+	  sed -e "s|^$$srcdirstrip/||;t" \
522
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
523
+	case $$dist_files in \
524
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
525
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
526
+			   sort -u` ;; \
527
+	esac; \
528
+	for file in $$dist_files; do \
524 529
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
525
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
526
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
527
-	    dir="/$$dir"; \
528
-	    $(mkdir_p) "$(distdir)$$dir"; \
529
-	  else \
530
-	    dir=''; \
531
-	  fi; \
532 530
 	  if test -d $$d/$$file; then \
531
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
533 532
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
534 533
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
535 534
 	    fi; \
... ...
@@ -545,7 +532,7 @@ check: check-am
545 545
 all-am: Makefile $(PROGRAMS)
546 546
 installdirs:
547 547
 	for dir in "$(DESTDIR)$(bindir)"; do \
548
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
548
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
549 549
 	done
550 550
 install: install-am
551 551
 install-exec: install-exec-am
... ...
@@ -579,7 +566,7 @@ distclean: distclean-am
579 579
 	-rm -rf ./$(DEPDIR)
580 580
 	-rm -f Makefile
581 581
 distclean-am: clean-am distclean-compile distclean-generic \
582
-	distclean-libtool distclean-tags
582
+	distclean-tags
583 583
 
584 584
 dvi: dvi-am
585 585
 
... ...
@@ -593,12 +580,20 @@ info-am:
593 593
 
594 594
 install-data-am:
595 595
 
596
+install-dvi: install-dvi-am
597
+
596 598
 install-exec-am: install-binPROGRAMS
597 599
 
600
+install-html: install-html-am
601
+
598 602
 install-info: install-info-am
599 603
 
600 604
 install-man:
601 605
 
606
+install-pdf: install-pdf-am
607
+
608
+install-ps: install-ps-am
609
+
602 610
 installcheck-am:
603 611
 
604 612
 maintainer-clean: maintainer-clean-am
... ...
@@ -619,19 +614,23 @@ ps: ps-am
619 619
 
620 620
 ps-am:
621 621
 
622
-uninstall-am: uninstall-binPROGRAMS uninstall-info-am
622
+uninstall-am: uninstall-binPROGRAMS
623
+
624
+.MAKE: install-am install-strip
623 625
 
624 626
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
625 627
 	clean-generic clean-libtool ctags distclean distclean-compile \
626 628
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
627 629
 	dvi-am html html-am info info-am install install-am \
628
-	install-binPROGRAMS install-data install-data-am install-exec \
629
-	install-exec-am install-info install-info-am install-man \
630
+	install-binPROGRAMS install-data install-data-am install-dvi \
631
+	install-dvi-am install-exec install-exec-am install-html \
632
+	install-html-am install-info install-info-am install-man \
633
+	install-pdf install-pdf-am install-ps install-ps-am \
630 634
 	install-strip installcheck installcheck-am installdirs \
631 635
 	maintainer-clean maintainer-clean-generic mostlyclean \
632 636
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
633 637
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
634
-	uninstall-binPROGRAMS uninstall-info-am
638
+	uninstall-binPROGRAMS
635 639
 
636 640
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
637 641
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -19,11 +19,7 @@
19 19
 
20 20
 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/libclamunrar -I@srcdir@/nsis
21 21
 
22
-if ENABLE_UNRAR
23
-libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@ $(top_builddir)/libclamunrar/libclamunrar.la
24
-else
25 22
 libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@
26
-endif
27 23
 
28 24
 libclamav_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
29 25
 
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -33,15 +33,11 @@
33 33
 #  MA 02110-1301, USA.
34 34
 
35 35
 
36
-srcdir = @srcdir@
37
-top_srcdir = @top_srcdir@
38 36
 VPATH = @srcdir@
39 37
 pkgdatadir = $(datadir)/@PACKAGE@
40 38
 pkglibdir = $(libdir)/@PACKAGE@
41 39
 pkgincludedir = $(includedir)/@PACKAGE@
42
-top_builddir = ..
43 40
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
44
-INSTALL = @INSTALL@
45 41
 install_sh_DATA = $(install_sh) -c -m 644
46 42
 install_sh_PROGRAM = $(install_sh) -c
47 43
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -76,7 +72,7 @@ am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
76 76
 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
77 77
 libLTLIBRARIES_INSTALL = $(INSTALL)
78 78
 LTLIBRARIES = $(lib_LTLIBRARIES)
79
-@ENABLE_UNRAR_TRUE@libclamav_la_DEPENDENCIES = $(top_builddir)/libclamunrar/libclamunrar.la
79
+libclamav_la_DEPENDENCIES =
80 80
 am_libclamav_la_OBJECTS = matcher-ac.lo matcher-bm.lo matcher.lo \
81 81
 	md5.lo others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo \
82 82
 	filetypes.lo rtf.lo blob.lo mbox.lo message.lo snprintf.lo \
... ...
@@ -91,17 +87,21 @@ am_libclamav_la_OBJECTS = matcher-ac.lo matcher-bm.lo matcher.lo \
91 91
 	phish_whitelist.lo regex_list.lo mspack.lo cab.lo entconv.lo \
92 92
 	hashtab.lo dconf.lo lockdb.lo
93 93
 libclamav_la_OBJECTS = $(am_libclamav_la_OBJECTS)
94
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
94
+libclamav_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
95
+	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
96
+	$(libclamav_la_LDFLAGS) $(LDFLAGS) -o $@
97
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
95 98
 depcomp = $(SHELL) $(top_srcdir)/depcomp
96 99
 am__depfiles_maybe = depfiles
97 100
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
98 101
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
99
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
100
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
101
-	$(AM_CFLAGS) $(CFLAGS)
102
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
103
+	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
104
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
102 105
 CCLD = $(CC)
103
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
104
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
106
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
107
+	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
108
+	$(LDFLAGS) -o $@
105 109
 SOURCES = $(libclamav_la_SOURCES)
106 110
 DIST_SOURCES = $(libclamav_la_SOURCES)
107 111
 includeHEADERS_INSTALL = $(INSTALL_HEADER)
... ...
@@ -110,16 +110,12 @@ ETAGS = etags
110 110
 CTAGS = ctags
111 111
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
112 112
 ACLOCAL = @ACLOCAL@
113
-AMDEP_FALSE = @AMDEP_FALSE@
114
-AMDEP_TRUE = @AMDEP_TRUE@
115 113
 AMTAR = @AMTAR@
116 114
 AR = @AR@
117 115
 AUTOCONF = @AUTOCONF@
118 116
 AUTOHEADER = @AUTOHEADER@
119 117
 AUTOMAKE = @AUTOMAKE@
120 118
 AWK = @AWK@
121
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
122
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
123 119
 CC = @CC@
124 120
 CCDEPMODE = @CCDEPMODE@
125 121
 CFGDIR = @CFGDIR@
... ...
@@ -143,16 +139,13 @@ ECHO_C = @ECHO_C@
143 143
 ECHO_N = @ECHO_N@
144 144
 ECHO_T = @ECHO_T@
145 145
 EGREP = @EGREP@
146
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
147
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
148 146
 EXEEXT = @EXEEXT@
149 147
 F77 = @F77@
150 148
 FFLAGS = @FFLAGS@
151 149
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
152 150
 GETENT = @GETENT@
153 151
 GREP = @GREP@
154
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
155
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
152
+INSTALL = @INSTALL@
156 153
 INSTALL_DATA = @INSTALL_DATA@
157 154
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
158 155
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -166,9 +159,8 @@ LIBTOOL = @LIBTOOL@
166 166
 LN_S = @LN_S@
167 167
 LTLIBOBJS = @LTLIBOBJS@
168 168
 MAINT = @MAINT@
169
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
170
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
171 169
 MAKEINFO = @MAKEINFO@
170
+MKDIR_P = @MKDIR_P@
172 171
 OBJEXT = @OBJEXT@
173 172
 PACKAGE = @PACKAGE@
174 173
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -178,20 +170,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
178 178
 PACKAGE_VERSION = @PACKAGE_VERSION@
179 179
 PATH_SEPARATOR = @PATH_SEPARATOR@
180 180
 RANLIB = @RANLIB@
181
-SED = @SED@
182 181
 SET_MAKE = @SET_MAKE@
183 182
 SHELL = @SHELL@
184 183
 STRIP = @STRIP@
185 184
 THREAD_LIBS = @THREAD_LIBS@
186 185
 TH_SAFE = @TH_SAFE@
187 186
 VERSION = @VERSION@
187
+abs_builddir = @abs_builddir@
188
+abs_srcdir = @abs_srcdir@
189
+abs_top_builddir = @abs_top_builddir@
190
+abs_top_srcdir = @abs_top_srcdir@
188 191
 ac_ct_CC = @ac_ct_CC@
189 192
 ac_ct_CXX = @ac_ct_CXX@
190 193
 ac_ct_F77 = @ac_ct_F77@
191
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
192
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
193
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
194
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
195 194
 am__include = @am__include@
196 195
 am__leading_dot = @am__leading_dot@
197 196
 am__quote = @am__quote@
... ...
@@ -203,6 +194,7 @@ build_alias = @build_alias@
203 203
 build_cpu = @build_cpu@
204 204
 build_os = @build_os@
205 205
 build_vendor = @build_vendor@
206
+builddir = @builddir@
206 207
 datadir = @datadir@
207 208
 datarootdir = @datarootdir@
208 209
 docdir = @docdir@
... ...
@@ -231,15 +223,17 @@ psdir = @psdir@
231 231
 sbindir = @sbindir@
232 232
 sendmailprog = @sendmailprog@
233 233
 sharedstatedir = @sharedstatedir@
234
+srcdir = @srcdir@
234 235
 sysconfdir = @sysconfdir@
235 236
 target = @target@
236 237
 target_alias = @target_alias@
237 238
 target_cpu = @target_cpu@
238 239
 target_os = @target_os@
239 240
 target_vendor = @target_vendor@
241
+top_builddir = @top_builddir@
242
+top_srcdir = @top_srcdir@
240 243
 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/libclamunrar -I@srcdir@/nsis
241
-@ENABLE_UNRAR_FALSE@libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@
242
-@ENABLE_UNRAR_TRUE@libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@ $(top_builddir)/libclamunrar/libclamunrar.la
244
+libclamav_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@
243 245
 libclamav_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
244 246
 include_HEADERS = clamav.h
245 247
 libclamav_la_SOURCES = \
... ...
@@ -428,7 +422,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
428 428
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
429 429
 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
430 430
 	@$(NORMAL_INSTALL)
431
-	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
431
+	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
432 432
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
433 433
 	  if test -f $$p; then \
434 434
 	    f=$(am__strip_dir) \
... ...
@@ -439,7 +433,7 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
439 439
 
440 440
 uninstall-libLTLIBRARIES:
441 441
 	@$(NORMAL_UNINSTALL)
442
-	@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
442
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
443 443
 	  p=$(am__strip_dir) \
444 444
 	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
445 445
 	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
... ...
@@ -454,7 +448,7 @@ clean-libLTLIBRARIES:
454 454
 	  rm -f "$${dir}/so_locations"; \
455 455
 	done
456 456
 libclamav.la: $(libclamav_la_OBJECTS) $(libclamav_la_DEPENDENCIES) 
457
-	$(LINK) -rpath $(libdir) $(libclamav_la_LDFLAGS) $(libclamav_la_OBJECTS) $(libclamav_la_LIBADD) $(LIBS)
457
+	$(libclamav_la_LINK) -rpath $(libdir) $(libclamav_la_OBJECTS) $(libclamav_la_LIBADD) $(LIBS)
458 458
 
459 459
 mostlyclean-compile:
460 460
 	-rm -f *.$(OBJEXT)
... ...
@@ -533,101 +527,97 @@ distclean-compile:
533 533
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yc.Plo@am__quote@
534 534
 
535 535
 .c.o:
536
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
537
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
536
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
537
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
538 538
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
539 539
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
540 540
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
541 541
 
542 542
 .c.obj:
543
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
544
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
543
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
544
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
545 545
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
546 546
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547 547
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
548 548
 
549 549
 .c.lo:
550
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
551
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
550
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
551
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
552 552
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
553 553
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
554 554
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
555 555
 
556 556
 strlcpy.lo: regex/strlcpy.c
557
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT strlcpy.lo -MD -MP -MF "$(DEPDIR)/strlcpy.Tpo" -c -o strlcpy.lo `test -f 'regex/strlcpy.c' || echo '$(srcdir)/'`regex/strlcpy.c; \
558
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/strlcpy.Tpo" "$(DEPDIR)/strlcpy.Plo"; else rm -f "$(DEPDIR)/strlcpy.Tpo"; exit 1; fi
557
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT strlcpy.lo -MD -MP -MF $(DEPDIR)/strlcpy.Tpo -c -o strlcpy.lo `test -f 'regex/strlcpy.c' || echo '$(srcdir)/'`regex/strlcpy.c
558
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/strlcpy.Tpo $(DEPDIR)/strlcpy.Plo
559 559
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/strlcpy.c' object='strlcpy.lo' libtool=yes @AMDEPBACKSLASH@
560 560
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
561
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o strlcpy.lo `test -f 'regex/strlcpy.c' || echo '$(srcdir)/'`regex/strlcpy.c
561
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o strlcpy.lo `test -f 'regex/strlcpy.c' || echo '$(srcdir)/'`regex/strlcpy.c
562 562
 
563 563
 regcomp.lo: regex/regcomp.c
564
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regcomp.lo -MD -MP -MF "$(DEPDIR)/regcomp.Tpo" -c -o regcomp.lo `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c; \
565
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/regcomp.Tpo" "$(DEPDIR)/regcomp.Plo"; else rm -f "$(DEPDIR)/regcomp.Tpo"; exit 1; fi
564
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regcomp.lo -MD -MP -MF $(DEPDIR)/regcomp.Tpo -c -o regcomp.lo `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c
565
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/regcomp.Tpo $(DEPDIR)/regcomp.Plo
566 566
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/regcomp.c' object='regcomp.lo' libtool=yes @AMDEPBACKSLASH@
567 567
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
568
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regcomp.lo `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c
568
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regcomp.lo `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c
569 569
 
570 570
 regerror.lo: regex/regerror.c
571
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regerror.lo -MD -MP -MF "$(DEPDIR)/regerror.Tpo" -c -o regerror.lo `test -f 'regex/regerror.c' || echo '$(srcdir)/'`regex/regerror.c; \
572
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/regerror.Tpo" "$(DEPDIR)/regerror.Plo"; else rm -f "$(DEPDIR)/regerror.Tpo"; exit 1; fi
571
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regerror.lo -MD -MP -MF $(DEPDIR)/regerror.Tpo -c -o regerror.lo `test -f 'regex/regerror.c' || echo '$(srcdir)/'`regex/regerror.c
572
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/regerror.Tpo $(DEPDIR)/regerror.Plo
573 573
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/regerror.c' object='regerror.lo' libtool=yes @AMDEPBACKSLASH@
574 574
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
575
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regerror.lo `test -f 'regex/regerror.c' || echo '$(srcdir)/'`regex/regerror.c
575
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regerror.lo `test -f 'regex/regerror.c' || echo '$(srcdir)/'`regex/regerror.c
576 576
 
577 577
 regexec.lo: regex/regexec.c
578
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regexec.lo -MD -MP -MF "$(DEPDIR)/regexec.Tpo" -c -o regexec.lo `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c; \
579
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/regexec.Tpo" "$(DEPDIR)/regexec.Plo"; else rm -f "$(DEPDIR)/regexec.Tpo"; exit 1; fi
578
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regexec.lo -MD -MP -MF $(DEPDIR)/regexec.Tpo -c -o regexec.lo `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c
579
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/regexec.Tpo $(DEPDIR)/regexec.Plo
580 580
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/regexec.c' object='regexec.lo' libtool=yes @AMDEPBACKSLASH@
581 581
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
582
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regexec.lo `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c
582
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regexec.lo `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c
583 583
 
584 584
 regfree.lo: regex/regfree.c
585
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regfree.lo -MD -MP -MF "$(DEPDIR)/regfree.Tpo" -c -o regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c; \
586
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/regfree.Tpo" "$(DEPDIR)/regfree.Plo"; else rm -f "$(DEPDIR)/regfree.Tpo"; exit 1; fi
585
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regfree.lo -MD -MP -MF $(DEPDIR)/regfree.Tpo -c -o regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c
586
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/regfree.Tpo $(DEPDIR)/regfree.Plo
587 587
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='regex/regfree.c' object='regfree.lo' libtool=yes @AMDEPBACKSLASH@
588 588
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
589
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c
589
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c
590 590
 
591 591
 LZMADecode.lo: nsis/LZMADecode.c
592
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT LZMADecode.lo -MD -MP -MF "$(DEPDIR)/LZMADecode.Tpo" -c -o LZMADecode.lo `test -f 'nsis/LZMADecode.c' || echo '$(srcdir)/'`nsis/LZMADecode.c; \
593
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/LZMADecode.Tpo" "$(DEPDIR)/LZMADecode.Plo"; else rm -f "$(DEPDIR)/LZMADecode.Tpo"; exit 1; fi
592
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT LZMADecode.lo -MD -MP -MF $(DEPDIR)/LZMADecode.Tpo -c -o LZMADecode.lo `test -f 'nsis/LZMADecode.c' || echo '$(srcdir)/'`nsis/LZMADecode.c
593
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/LZMADecode.Tpo $(DEPDIR)/LZMADecode.Plo
594 594
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='nsis/LZMADecode.c' object='LZMADecode.lo' libtool=yes @AMDEPBACKSLASH@
595 595
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
596
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o LZMADecode.lo `test -f 'nsis/LZMADecode.c' || echo '$(srcdir)/'`nsis/LZMADecode.c
596
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o LZMADecode.lo `test -f 'nsis/LZMADecode.c' || echo '$(srcdir)/'`nsis/LZMADecode.c
597 597
 
598 598
 bzlib.lo: nsis/bzlib.c
599
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bzlib.lo -MD -MP -MF "$(DEPDIR)/bzlib.Tpo" -c -o bzlib.lo `test -f 'nsis/bzlib.c' || echo '$(srcdir)/'`nsis/bzlib.c; \
600
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/bzlib.Tpo" "$(DEPDIR)/bzlib.Plo"; else rm -f "$(DEPDIR)/bzlib.Tpo"; exit 1; fi
599
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bzlib.lo -MD -MP -MF $(DEPDIR)/bzlib.Tpo -c -o bzlib.lo `test -f 'nsis/bzlib.c' || echo '$(srcdir)/'`nsis/bzlib.c
600
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/bzlib.Tpo $(DEPDIR)/bzlib.Plo
601 601
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='nsis/bzlib.c' object='bzlib.lo' libtool=yes @AMDEPBACKSLASH@
602 602
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
603
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bzlib.lo `test -f 'nsis/bzlib.c' || echo '$(srcdir)/'`nsis/bzlib.c
603
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bzlib.lo `test -f 'nsis/bzlib.c' || echo '$(srcdir)/'`nsis/bzlib.c
604 604
 
605 605
 infblock.lo: nsis/infblock.c
606
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT infblock.lo -MD -MP -MF "$(DEPDIR)/infblock.Tpo" -c -o infblock.lo `test -f 'nsis/infblock.c' || echo '$(srcdir)/'`nsis/infblock.c; \
607
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/infblock.Tpo" "$(DEPDIR)/infblock.Plo"; else rm -f "$(DEPDIR)/infblock.Tpo"; exit 1; fi
606
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT infblock.lo -MD -MP -MF $(DEPDIR)/infblock.Tpo -c -o infblock.lo `test -f 'nsis/infblock.c' || echo '$(srcdir)/'`nsis/infblock.c
607
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/infblock.Tpo $(DEPDIR)/infblock.Plo
608 608
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='nsis/infblock.c' object='infblock.lo' libtool=yes @AMDEPBACKSLASH@
609 609
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
610
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o infblock.lo `test -f 'nsis/infblock.c' || echo '$(srcdir)/'`nsis/infblock.c
610
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o infblock.lo `test -f 'nsis/infblock.c' || echo '$(srcdir)/'`nsis/infblock.c
611 611
 
612 612
 nulsft.lo: nsis/nulsft.c
613
-@am__fastdepCC_TRUE@	if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nulsft.lo -MD -MP -MF "$(DEPDIR)/nulsft.Tpo" -c -o nulsft.lo `test -f 'nsis/nulsft.c' || echo '$(srcdir)/'`nsis/nulsft.c; \
614
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/nulsft.Tpo" "$(DEPDIR)/nulsft.Plo"; else rm -f "$(DEPDIR)/nulsft.Tpo"; exit 1; fi
613
+@am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT nulsft.lo -MD -MP -MF $(DEPDIR)/nulsft.Tpo -c -o nulsft.lo `test -f 'nsis/nulsft.c' || echo '$(srcdir)/'`nsis/nulsft.c
614
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/nulsft.Tpo $(DEPDIR)/nulsft.Plo
615 615
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='nsis/nulsft.c' object='nulsft.lo' libtool=yes @AMDEPBACKSLASH@
616 616
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
617
-@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nulsft.lo `test -f 'nsis/nulsft.c' || echo '$(srcdir)/'`nsis/nulsft.c
617
+@am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o nulsft.lo `test -f 'nsis/nulsft.c' || echo '$(srcdir)/'`nsis/nulsft.c
618 618
 
619 619
 mostlyclean-libtool:
620 620
 	-rm -f *.lo
621 621
 
622 622
 clean-libtool:
623 623
 	-rm -rf .libs _libs
624
-
625
-distclean-libtool:
626
-	-rm -f libtool
627
-uninstall-info-am:
628 624
 install-includeHEADERS: $(include_HEADERS)
629 625
 	@$(NORMAL_INSTALL)
630
-	test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
626
+	test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
631 627
 	@list='$(include_HEADERS)'; for p in $$list; do \
632 628
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
633 629
 	  f=$(am__strip_dir) \
... ...
@@ -692,23 +682,21 @@ distclean-tags:
692 692
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
693 693
 
694 694
 distdir: $(DISTFILES)
695
-	$(mkdir_p) $(distdir)/regex
696
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
697
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
698
-	list='$(DISTFILES)'; for file in $$list; do \
699
-	  case $$file in \
700
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
701
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
702
-	  esac; \
695
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
696
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
697
+	list='$(DISTFILES)'; \
698
+	  dist_files=`for file in $$list; do echo $$file; done | \
699
+	  sed -e "s|^$$srcdirstrip/||;t" \
700
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
701
+	case $$dist_files in \
702
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
703
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
704
+			   sort -u` ;; \
705
+	esac; \
706
+	for file in $$dist_files; do \
703 707
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
704
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
705
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
706
-	    dir="/$$dir"; \
707
-	    $(mkdir_p) "$(distdir)$$dir"; \
708
-	  else \
709
-	    dir=''; \
710
-	  fi; \
711 708
 	  if test -d $$d/$$file; then \
709
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
712 710
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
713 711
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
714 712
 	    fi; \
... ...
@@ -724,7 +712,7 @@ check: check-am
724 724
 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
725 725
 installdirs:
726 726
 	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
727
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
727
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
728 728
 	done
729 729
 install: install-am
730 730
 install-exec: install-exec-am
... ...
@@ -759,7 +747,7 @@ distclean: distclean-am
759 759
 	-rm -rf ./$(DEPDIR)
760 760
 	-rm -f Makefile
761 761
 distclean-am: clean-am distclean-compile distclean-generic \
762
-	distclean-libtool distclean-tags
762
+	distclean-tags
763 763
 
764 764
 dvi: dvi-am
765 765
 
... ...
@@ -773,12 +761,20 @@ info-am:
773 773
 
774 774
 install-data-am: install-includeHEADERS
775 775
 
776
+install-dvi: install-dvi-am
777
+
776 778
 install-exec-am: install-libLTLIBRARIES
777 779
 
780
+install-html: install-html-am
781
+
778 782
 install-info: install-info-am
779 783
 
780 784
 install-man:
781 785
 
786
+install-pdf: install-pdf-am
787
+
788
+install-ps: install-ps-am
789
+
782 790
 installcheck-am:
783 791
 
784 792
 maintainer-clean: maintainer-clean-am
... ...
@@ -799,21 +795,23 @@ ps: ps-am
799 799
 
800 800
 ps-am:
801 801
 
802
-uninstall-am: uninstall-includeHEADERS uninstall-info-am \
803
-	uninstall-libLTLIBRARIES
802
+uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
803
+
804
+.MAKE: install-am install-strip
804 805
 
805 806
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
806 807
 	clean-libLTLIBRARIES clean-libtool ctags distclean \
807 808
 	distclean-compile distclean-generic distclean-libtool \
808 809
 	distclean-tags distdir dvi dvi-am html html-am info info-am \
809
-	install install-am install-data install-data-am install-exec \
810
-	install-exec-am install-includeHEADERS install-info \
811
-	install-info-am install-libLTLIBRARIES install-man \
812
-	install-strip installcheck installcheck-am installdirs \
813
-	maintainer-clean maintainer-clean-generic mostlyclean \
814
-	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
815
-	pdf pdf-am ps ps-am tags uninstall uninstall-am \
816
-	uninstall-includeHEADERS uninstall-info-am \
810
+	install install-am install-data install-data-am install-dvi \
811
+	install-dvi-am install-exec install-exec-am install-html \
812
+	install-html-am install-includeHEADERS install-info \
813
+	install-info-am install-libLTLIBRARIES install-man install-pdf \
814
+	install-pdf-am install-ps install-ps-am install-strip \
815
+	installcheck installcheck-am installdirs maintainer-clean \
816
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
817
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
818
+	tags uninstall uninstall-am uninstall-includeHEADERS \
817 819
 	uninstall-libLTLIBRARIES
818 820
 
819 821
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
... ...
@@ -2064,8 +2064,6 @@ int cli_magic_scandesc(int desc, cli_ctx *ctx)
2064 2064
 #ifdef ENABLE_UNRAR
2065 2065
 	    if(SCAN_ARCHIVE && (DCONF_ARCH & ARCH_CONF_RAR))
2066 2066
 		ret = cli_scanrar(desc, ctx, 0, NULL);
2067
-#else
2068
-	    cli_warnmsg("RAR support not compiled in\n");
2069 2067
 #endif
2070 2068
 	    break;
2071 2069
 
2072 2070
deleted file mode 100644
... ...
@@ -1,32 +0,0 @@
1
-#
2
-#  Copyright (C) 2007 Trog <trog@clamav.net>
3
-#
4
-
5
-if ENABLE_UNRAR
6
-
7
-INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/libclamav
8
-
9
-libclamunrar_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@
10
-
11
-libclamunrar_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
12
-
13
-libclamunrar_la_SOURCES = \
14
-	unrar15.c \
15
-	unrar20.h \
16
-	unrar.h \
17
-	unrar15.h \
18
-	unrar.c \
19
-	unrar20.c \
20
-	unrarcmd.h \
21
-	unrarfilter.h \
22
-	unrarppm.c \
23
-	unrarvm.c \
24
-	unrarcmd.c \
25
-	unrarfilter.c \
26
-	unrar.h \
27
-	unrarppm.h \
28
-	unrarvm.h
29
-
30
-lib_LTLIBRARIES = libclamunrar.la
31
-
32
-endif
33 1
deleted file mode 100644
... ...
@@ -1,518 +0,0 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
2
-# @configure_input@
3
-
4
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software 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) 2007 Trog <trog@clamav.net>
19
-#
20
-
21
-srcdir = @srcdir@
22
-top_srcdir = @top_srcdir@
23
-VPATH = @srcdir@
24
-pkgdatadir = $(datadir)/@PACKAGE@
25
-pkglibdir = $(libdir)/@PACKAGE@
26
-pkgincludedir = $(includedir)/@PACKAGE@
27
-top_builddir = ..
28
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
29
-INSTALL = @INSTALL@
30
-install_sh_DATA = $(install_sh) -c -m 644
31
-install_sh_PROGRAM = $(install_sh) -c
32
-install_sh_SCRIPT = $(install_sh) -c
33
-INSTALL_HEADER = $(INSTALL_DATA)
34
-transform = $(program_transform_name)
35
-NORMAL_INSTALL = :
36
-PRE_INSTALL = :
37
-POST_INSTALL = :
38
-NORMAL_UNINSTALL = :
39
-PRE_UNINSTALL = :
40
-POST_UNINSTALL = :
41
-build_triplet = @build@
42
-host_triplet = @host@
43
-target_triplet = @target@
44
-subdir = libclamunrar
45
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
46
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
47
-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
48
-	$(top_srcdir)/configure.in
49
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50
-	$(ACLOCAL_M4)
51
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
52
-CONFIG_HEADER = $(top_builddir)/clamav-config.h
53
-CONFIG_CLEAN_FILES =
54
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55
-am__vpath_adj = case $$p in \
56
-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
57
-    *) f=$$p;; \
58
-  esac;
59
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
60
-am__installdirs = "$(DESTDIR)$(libdir)"
61
-libLTLIBRARIES_INSTALL = $(INSTALL)
62
-LTLIBRARIES = $(lib_LTLIBRARIES)
63
-libclamunrar_la_DEPENDENCIES =
64
-am__libclamunrar_la_SOURCES_DIST = unrar15.c unrar20.h unrar.h \
65
-	unrar15.h unrar.c unrar20.c unrarcmd.h unrarfilter.h \
66
-	unrarppm.c unrarvm.c unrarcmd.c unrarfilter.c unrarppm.h \
67
-	unrarvm.h
68
-@ENABLE_UNRAR_TRUE@am_libclamunrar_la_OBJECTS = unrar15.lo unrar.lo \
69
-@ENABLE_UNRAR_TRUE@	unrar20.lo unrarppm.lo unrarvm.lo \
70
-@ENABLE_UNRAR_TRUE@	unrarcmd.lo unrarfilter.lo
71
-libclamunrar_la_OBJECTS = $(am_libclamunrar_la_OBJECTS)
72
-@ENABLE_UNRAR_TRUE@am_libclamunrar_la_rpath = -rpath $(libdir)
73
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
74
-depcomp = $(SHELL) $(top_srcdir)/depcomp
75
-am__depfiles_maybe = depfiles
76
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
77
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
78
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
79
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
80
-	$(AM_CFLAGS) $(CFLAGS)
81
-CCLD = $(CC)
82
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
83
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
84
-SOURCES = $(libclamunrar_la_SOURCES)
85
-DIST_SOURCES = $(am__libclamunrar_la_SOURCES_DIST)
86
-ETAGS = etags
87
-CTAGS = ctags
88
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
89
-ACLOCAL = @ACLOCAL@
90
-AMDEP_FALSE = @AMDEP_FALSE@
91
-AMDEP_TRUE = @AMDEP_TRUE@
92
-AMTAR = @AMTAR@
93
-AR = @AR@
94
-AUTOCONF = @AUTOCONF@
95
-AUTOHEADER = @AUTOHEADER@
96
-AUTOMAKE = @AUTOMAKE@
97
-AWK = @AWK@
98
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
99
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
100
-CC = @CC@
101
-CCDEPMODE = @CCDEPMODE@
102
-CFGDIR = @CFGDIR@
103
-CFLAGS = @CFLAGS@
104
-CLAMAVGROUP = @CLAMAVGROUP@
105
-CLAMAVUSER = @CLAMAVUSER@
106
-CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
107
-CLAMD_LIBS = @CLAMD_LIBS@
108
-CPP = @CPP@
109
-CPPFLAGS = @CPPFLAGS@
110
-CXX = @CXX@
111
-CXXCPP = @CXXCPP@
112
-CXXDEPMODE = @CXXDEPMODE@
113
-CXXFLAGS = @CXXFLAGS@
114
-CYGPATH_W = @CYGPATH_W@
115
-DBDIR = @DBDIR@
116
-DEFS = @DEFS@
117
-DEPDIR = @DEPDIR@
118
-ECHO = @ECHO@
119
-ECHO_C = @ECHO_C@
120
-ECHO_N = @ECHO_N@
121
-ECHO_T = @ECHO_T@
122
-EGREP = @EGREP@
123
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
124
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
125
-EXEEXT = @EXEEXT@
126
-F77 = @F77@
127
-FFLAGS = @FFLAGS@
128
-FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
129
-GETENT = @GETENT@
130
-GREP = @GREP@
131
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
132
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
133
-INSTALL_DATA = @INSTALL_DATA@
134
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
135
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
136
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
137
-LDFLAGS = @LDFLAGS@
138
-LIBCLAMAV_LIBS = @LIBCLAMAV_LIBS@
139
-LIBCLAMAV_VERSION = @LIBCLAMAV_VERSION@
140
-LIBOBJS = @LIBOBJS@
141
-LIBS = @LIBS@
142
-LIBTOOL = @LIBTOOL@
143
-LN_S = @LN_S@
144
-LTLIBOBJS = @LTLIBOBJS@
145
-MAINT = @MAINT@
146
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
147
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
148
-MAKEINFO = @MAKEINFO@
149
-OBJEXT = @OBJEXT@
150
-PACKAGE = @PACKAGE@
151
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
152
-PACKAGE_NAME = @PACKAGE_NAME@
153
-PACKAGE_STRING = @PACKAGE_STRING@
154
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
155
-PACKAGE_VERSION = @PACKAGE_VERSION@
156
-PATH_SEPARATOR = @PATH_SEPARATOR@
157
-RANLIB = @RANLIB@
158
-SED = @SED@
159
-SET_MAKE = @SET_MAKE@
160
-SHELL = @SHELL@
161
-STRIP = @STRIP@
162
-THREAD_LIBS = @THREAD_LIBS@
163
-TH_SAFE = @TH_SAFE@
164
-VERSION = @VERSION@
165
-ac_ct_CC = @ac_ct_CC@
166
-ac_ct_CXX = @ac_ct_CXX@
167
-ac_ct_F77 = @ac_ct_F77@
168
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
169
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
170
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
171
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
172
-am__include = @am__include@
173
-am__leading_dot = @am__leading_dot@
174
-am__quote = @am__quote@
175
-am__tar = @am__tar@
176
-am__untar = @am__untar@
177
-bindir = @bindir@
178
-build = @build@
179
-build_alias = @build_alias@
180
-build_cpu = @build_cpu@
181
-build_os = @build_os@
182
-build_vendor = @build_vendor@
183
-datadir = @datadir@
184
-datarootdir = @datarootdir@
185
-docdir = @docdir@
186
-dvidir = @dvidir@
187
-exec_prefix = @exec_prefix@
188
-host = @host@
189
-host_alias = @host_alias@
190
-host_cpu = @host_cpu@
191
-host_os = @host_os@
192
-host_vendor = @host_vendor@
193
-htmldir = @htmldir@
194
-includedir = @includedir@
195
-infodir = @infodir@
196
-install_sh = @install_sh@
197
-libdir = @libdir@
198
-libexecdir = @libexecdir@
199
-localedir = @localedir@
200
-localstatedir = @localstatedir@
201
-mandir = @mandir@
202
-mkdir_p = @mkdir_p@
203
-oldincludedir = @oldincludedir@
204
-pdfdir = @pdfdir@
205
-prefix = @prefix@
206
-program_transform_name = @program_transform_name@
207
-psdir = @psdir@
208
-sbindir = @sbindir@
209
-sendmailprog = @sendmailprog@
210
-sharedstatedir = @sharedstatedir@
211
-sysconfdir = @sysconfdir@
212
-target = @target@
213
-target_alias = @target_alias@
214
-target_cpu = @target_cpu@
215
-target_os = @target_os@
216
-target_vendor = @target_vendor@
217
-@ENABLE_UNRAR_TRUE@INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/libclamav
218
-@ENABLE_UNRAR_TRUE@libclamunrar_la_LIBADD = @LIBCLAMAV_LIBS@ @THREAD_LIBS@
219
-@ENABLE_UNRAR_TRUE@libclamunrar_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
220
-@ENABLE_UNRAR_TRUE@libclamunrar_la_SOURCES = \
221
-@ENABLE_UNRAR_TRUE@	unrar15.c \
222
-@ENABLE_UNRAR_TRUE@	unrar20.h \
223
-@ENABLE_UNRAR_TRUE@	unrar.h \
224
-@ENABLE_UNRAR_TRUE@	unrar15.h \
225
-@ENABLE_UNRAR_TRUE@	unrar.c \
226
-@ENABLE_UNRAR_TRUE@	unrar20.c \
227
-@ENABLE_UNRAR_TRUE@	unrarcmd.h \
228
-@ENABLE_UNRAR_TRUE@	unrarfilter.h \
229
-@ENABLE_UNRAR_TRUE@	unrarppm.c \
230
-@ENABLE_UNRAR_TRUE@	unrarvm.c \
231
-@ENABLE_UNRAR_TRUE@	unrarcmd.c \
232
-@ENABLE_UNRAR_TRUE@	unrarfilter.c \
233
-@ENABLE_UNRAR_TRUE@	unrar.h \
234
-@ENABLE_UNRAR_TRUE@	unrarppm.h \
235
-@ENABLE_UNRAR_TRUE@	unrarvm.h
236
-
237
-@ENABLE_UNRAR_TRUE@lib_LTLIBRARIES = libclamunrar.la
238
-all: all-am
239
-
240
-.SUFFIXES:
241
-.SUFFIXES: .c .lo .o .obj
242
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
243
-	@for dep in $?; do \
244
-	  case '$(am__configure_deps)' in \
245
-	    *$$dep*) \
246
-	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
247
-		&& exit 0; \
248
-	      exit 1;; \
249
-	  esac; \
250
-	done; \
251
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  libclamunrar/Makefile'; \
252
-	cd $(top_srcdir) && \
253
-	  $(AUTOMAKE) --gnu  libclamunrar/Makefile
254
-.PRECIOUS: Makefile
255
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
256
-	@case '$?' in \
257
-	  *config.status*) \
258
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
259
-	  *) \
260
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
261
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
262
-	esac;
263
-
264
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
265
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266
-
267
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
268
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
270
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271
-install-libLTLIBRARIES: $(lib_LTLIBRARIES)
272
-	@$(NORMAL_INSTALL)
273
-	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
274
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
275
-	  if test -f $$p; then \
276
-	    f=$(am__strip_dir) \
277
-	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
278
-	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
279
-	  else :; fi; \
280
-	done
281
-
282
-uninstall-libLTLIBRARIES:
283
-	@$(NORMAL_UNINSTALL)
284
-	@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
285
-	  p=$(am__strip_dir) \
286
-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
287
-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
288
-	done
289
-
290
-clean-libLTLIBRARIES:
291
-	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
292
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
293
-	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
294
-	  test "$$dir" != "$$p" || dir=.; \
295
-	  echo "rm -f \"$${dir}/so_locations\""; \
296
-	  rm -f "$${dir}/so_locations"; \
297
-	done
298
-libclamunrar.la: $(libclamunrar_la_OBJECTS) $(libclamunrar_la_DEPENDENCIES) 
299
-	$(LINK) $(am_libclamunrar_la_rpath) $(libclamunrar_la_LDFLAGS) $(libclamunrar_la_OBJECTS) $(libclamunrar_la_LIBADD) $(LIBS)
300
-
301
-mostlyclean-compile:
302
-	-rm -f *.$(OBJEXT)
303
-
304
-distclean-compile:
305
-	-rm -f *.tab.c
306
-
307
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrar.Plo@am__quote@
308
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrar15.Plo@am__quote@
309
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrar20.Plo@am__quote@
310
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrarcmd.Plo@am__quote@
311
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrarfilter.Plo@am__quote@
312
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrarppm.Plo@am__quote@
313
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unrarvm.Plo@am__quote@
314
-
315
-.c.o:
316
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
317
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
318
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
319
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320
-@am__fastdepCC_FALSE@	$(COMPILE) -c $<
321
-
322
-.c.obj:
323
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
324
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
325
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
326
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
327
-@am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
328
-
329
-.c.lo:
330
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
331
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
332
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
333
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
334
-@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
335
-
336
-mostlyclean-libtool:
337
-	-rm -f *.lo
338
-
339
-clean-libtool:
340
-	-rm -rf .libs _libs
341
-
342
-distclean-libtool:
343
-	-rm -f libtool
344
-uninstall-info-am:
345
-
346
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
347
-	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348
-	unique=`for i in $$list; do \
349
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350
-	  done | \
351
-	  $(AWK) '    { files[$$0] = 1; } \
352
-	       END { for (i in files) print i; }'`; \
353
-	mkid -fID $$unique
354
-tags: TAGS
355
-
356
-TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
357
-		$(TAGS_FILES) $(LISP)
358
-	tags=; \
359
-	here=`pwd`; \
360
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
361
-	unique=`for i in $$list; do \
362
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363
-	  done | \
364
-	  $(AWK) '    { files[$$0] = 1; } \
365
-	       END { for (i in files) print i; }'`; \
366
-	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
367
-	  test -n "$$unique" || unique=$$empty_fix; \
368
-	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
369
-	    $$tags $$unique; \
370
-	fi
371
-ctags: CTAGS
372
-CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
373
-		$(TAGS_FILES) $(LISP)
374
-	tags=; \
375
-	here=`pwd`; \
376
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
377
-	unique=`for i in $$list; do \
378
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379
-	  done | \
380
-	  $(AWK) '    { files[$$0] = 1; } \
381
-	       END { for (i in files) print i; }'`; \
382
-	test -z "$(CTAGS_ARGS)$$tags$$unique" \
383
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
384
-	     $$tags $$unique
385
-
386
-GTAGS:
387
-	here=`$(am__cd) $(top_builddir) && pwd` \
388
-	  && cd $(top_srcdir) \
389
-	  && gtags -i $(GTAGS_ARGS) $$here
390
-
391
-distclean-tags:
392
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
393
-
394
-distdir: $(DISTFILES)
395
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
396
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
397
-	list='$(DISTFILES)'; for file in $$list; do \
398
-	  case $$file in \
399
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
400
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
401
-	  esac; \
402
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
404
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
405
-	    dir="/$$dir"; \
406
-	    $(mkdir_p) "$(distdir)$$dir"; \
407
-	  else \
408
-	    dir=''; \
409
-	  fi; \
410
-	  if test -d $$d/$$file; then \
411
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
412
-	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
413
-	    fi; \
414
-	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
415
-	  else \
416
-	    test -f $(distdir)/$$file \
417
-	    || cp -p $$d/$$file $(distdir)/$$file \
418
-	    || exit 1; \
419
-	  fi; \
420
-	done
421
-check-am: all-am
422
-check: check-am
423
-all-am: Makefile $(LTLIBRARIES)
424
-installdirs:
425
-	for dir in "$(DESTDIR)$(libdir)"; do \
426
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
427
-	done
428
-install: install-am
429
-install-exec: install-exec-am
430
-install-data: install-data-am
431
-uninstall: uninstall-am
432
-
433
-install-am: all-am
434
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
435
-
436
-installcheck: installcheck-am
437
-install-strip:
438
-	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
439
-	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
440
-	  `test -z '$(STRIP)' || \
441
-	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
442
-mostlyclean-generic:
443
-
444
-clean-generic:
445
-
446
-distclean-generic:
447
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
448
-
449
-maintainer-clean-generic:
450
-	@echo "This command is intended for maintainers to use"
451
-	@echo "it deletes files that may require special tools to rebuild."
452
-clean: clean-am
453
-
454
-clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
455
-	mostlyclean-am
456
-
457
-distclean: distclean-am
458
-	-rm -rf ./$(DEPDIR)
459
-	-rm -f Makefile
460
-distclean-am: clean-am distclean-compile distclean-generic \
461
-	distclean-libtool distclean-tags
462
-
463
-dvi: dvi-am
464
-
465
-dvi-am:
466
-
467
-html: html-am
468
-
469
-info: info-am
470
-
471
-info-am:
472
-
473
-install-data-am:
474
-
475
-install-exec-am: install-libLTLIBRARIES
476
-
477
-install-info: install-info-am
478
-
479
-install-man:
480
-
481
-installcheck-am:
482
-
483
-maintainer-clean: maintainer-clean-am
484
-	-rm -rf ./$(DEPDIR)
485
-	-rm -f Makefile
486
-maintainer-clean-am: distclean-am maintainer-clean-generic
487
-
488
-mostlyclean: mostlyclean-am
489
-
490
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
491
-	mostlyclean-libtool
492
-
493
-pdf: pdf-am
494
-
495
-pdf-am:
496
-
497
-ps: ps-am
498
-
499
-ps-am:
500
-
501
-uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
502
-
503
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504
-	clean-libLTLIBRARIES clean-libtool ctags distclean \
505
-	distclean-compile distclean-generic distclean-libtool \
506
-	distclean-tags distdir dvi dvi-am html html-am info info-am \
507
-	install install-am install-data install-data-am install-exec \
508
-	install-exec-am install-info install-info-am \
509
-	install-libLTLIBRARIES install-man install-strip installcheck \
510
-	installcheck-am installdirs maintainer-clean \
511
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
512
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513
-	tags uninstall uninstall-am uninstall-info-am \
514
-	uninstall-libLTLIBRARIES
515
-
516
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
517
-# Otherwise a system limit (for SysV at least) may be exceeded.
518
-.NOEXPORT:
519 1
deleted file mode 100644
... ...
@@ -1,1684 +0,0 @@
1
-/*
2
- *  Extract RAR archives
3
- *
4
- *  Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- *  This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- *  The unRAR sources may be used in any software to handle RAR
9
- *  archives without limitations free of charge, but cannot be used
10
- *  to re-create the RAR compression algorithm, which is proprietary.
11
- *  Distribution of modified unRAR sources in separate form or as a
12
- *  part of other software is permitted, provided that it is clearly
13
- *  stated in the documentation and source comments that the code may
14
- *  not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-#if HAVE_CONFIG_H
19
-#include "clamav-config.h"
20
-#endif
21
-
22
-#include <sys/types.h>
23
-#include <sys/stat.h>
24
-#include <fcntl.h>
25
-#include <stdio.h>
26
-#ifdef HAVE_UNISTD_H
27
-#include <unistd.h>
28
-#endif
29
-#include <errno.h>
30
-#include <stdlib.h>
31
-#include <string.h>
32
-
33
-#include "unrar.h"
34
-#include "unrarppm.h"
35
-#include "unrarvm.h"
36
-#include "unrarfilter.h"
37
-#include "unrar20.h"
38
-#include "unrar15.h"
39
-#include "clamav.h"
40
-#include "others.h"
41
-#include "cltypes.h"
42
-
43
-#ifndef O_BINARY
44
-#define O_BINARY        0
45
-#endif
46
-
47
-#define int64to32(x) ((unsigned int)(x))
48
-#define rar_endian_convert_16(v)	le16_to_host(v)
49
-#define rar_endian_convert_32(v)	le32_to_host(v)
50
-
51
-#ifdef RAR_HIGH_DEBUG
52
-#define rar_dbgmsg printf
53
-#else
54
-static void rar_dbgmsg(const char* fmt,...){}
55
-#endif
56
-
57
-static void dump_tables(unpack_data_t *unpack_data)
58
-{
59
-	int i;
60
-	
61
-	/* Dump LD table */
62
-	cli_dbgmsg("LD Table MaxNum=%d\n", unpack_data->LD.MaxNum);
63
-	cli_dbgmsg("\tDecodeLen:");
64
-	for (i=0 ; i < 16; i++) {
65
-		cli_dbgmsg(" %.8d", unpack_data->LD.DecodeLen[i]);
66
-	}
67
-	cli_dbgmsg("\n\tDecodePos:");
68
-	for (i=0 ; i < 16; i++) {
69
-		cli_dbgmsg(" %.8d", unpack_data->LD.DecodePos[i]);
70
-	}
71
-	cli_dbgmsg("\n\tDecodeNum:");
72
-	for (i=0 ; i < NC; i++) {
73
-		cli_dbgmsg(" %.8d", unpack_data->LD.DecodeNum[i]);
74
-	}
75
-	
76
-	
77
-	cli_dbgmsg("\nDD Table MaxNum=%d\n", unpack_data->DD.MaxNum);
78
-	cli_dbgmsg("\tDecodeLen:");
79
-	for (i=0 ; i < 16; i++) {
80
-		cli_dbgmsg(" %.8d", unpack_data->DD.DecodeLen[i]);
81
-	}
82
-	cli_dbgmsg("\n\tDecodePos:");
83
-	for (i=0 ; i < 16; i++) {
84
-		cli_dbgmsg(" %.8d", unpack_data->DD.DecodePos[i]);
85
-	}
86
-	cli_dbgmsg("\n\tDecodeNum:");
87
-	for (i=0 ; i < DC; i++) {
88
-		cli_dbgmsg(" %.8d", unpack_data->DD.DecodeNum[i]);
89
-	}
90
-	
91
-	cli_dbgmsg("\nLDD Table MaxNum=%d\n", unpack_data->LDD.MaxNum);
92
-	cli_dbgmsg("\tDecodeLen:");
93
-	for (i=0 ; i < 16; i++) {
94
-		cli_dbgmsg(" %.8d", unpack_data->LDD.DecodeLen[i]);
95
-	}
96
-	cli_dbgmsg("\n\tDecodePos:");
97
-	for (i=0 ; i < 16; i++) {
98
-		cli_dbgmsg(" %.8d", unpack_data->LDD.DecodePos[i]);
99
-	}
100
-	cli_dbgmsg("\n\tDecodeNum:");
101
-	for (i=0 ; i < LDC; i++) {
102
-		cli_dbgmsg(" %.8d", unpack_data->LDD.DecodeNum[i]);
103
-	}
104
-	
105
-	cli_dbgmsg("\nRD Table MaxNum=%d\n", unpack_data->RD.MaxNum);
106
-	cli_dbgmsg("\tDecodeLen:");
107
-	for (i=0 ; i < 16; i++) {
108
-		cli_dbgmsg(" %.8d", unpack_data->RD.DecodeLen[i]);
109
-	}
110
-	cli_dbgmsg("\n\tDecodePos:");
111
-	for (i=0 ; i < 16; i++) {
112
-		cli_dbgmsg(" %.8d", unpack_data->RD.DecodePos[i]);
113
-	}
114
-	cli_dbgmsg("\n\tDecodeNum:");
115
-	for (i=0 ; i < RC; i++) {
116
-		cli_dbgmsg(" %.8d", unpack_data->RD.DecodeNum[i]);
117
-	}
118
-	
119
-	cli_dbgmsg("\nBD Table MaxNum=%d\n", unpack_data->BD.MaxNum);
120
-	cli_dbgmsg("\tDecodeLen:");
121
-	for (i=0 ; i < 16; i++) {
122
-		cli_dbgmsg(" %.8d", unpack_data->BD.DecodeLen[i]);
123
-	}
124
-	cli_dbgmsg("\n\tDecodePos:");
125
-	for (i=0 ; i < 16; i++) {
126
-		cli_dbgmsg(" %.8d", unpack_data->BD.DecodePos[i]);
127
-	}
128
-	cli_dbgmsg("\n\tDecodeNum:");
129
-	for (i=0 ; i < BC; i++) {
130
-		cli_dbgmsg(" %.8d", unpack_data->BD.DecodeNum[i]);
131
-	}
132
-	cli_dbgmsg("\n");
133
-}
134
-
135
-static uint64_t copy_file_data(int ifd, int ofd, uint64_t len)
136
-{
137
-	unsigned char data[8192];
138
-	uint64_t count, rem;
139
-	unsigned int todo;
140
-
141
-	rem = len;
142
-
143
-	while (rem > 0) {
144
-		todo = MIN(8192, rem);
145
-		count = cli_readn(ifd, data, todo);
146
-		if (count != todo) {
147
-			return len-rem;
148
-		}
149
-		if (cli_writen(ofd, data, count) != count) {
150
-			return len-rem-count;
151
-		}
152
-		rem -= count;
153
-	}
154
-	return len;
155
-}
156
-
157
-static int is_rar_archive(int fd)
158
-{
159
-	mark_header_t mark;
160
-	const mark_header_t rar_hdr[2] = {{0x52, 0x61, 0x72, 0x21, 0x1a, 0x07, 0x00},
161
-		{'U', 'n', 'i', 'q', 'u', 'E', '!'}};
162
-
163
-	if (cli_readn(fd, &mark, SIZEOF_MARKHEAD) != SIZEOF_MARKHEAD) {
164
-		return FALSE;
165
-	}
166
-	
167
-	if (memcmp(&mark, &rar_hdr[0], SIZEOF_MARKHEAD) == 0) {
168
-		return TRUE;
169
-	}
170
-	if (memcmp(&mark, &rar_hdr[1], SIZEOF_MARKHEAD) == 0) {
171
-		return TRUE;
172
-	}
173
-
174
-	cli_dbgmsg("Not a rar archive\n");
175
-	return FALSE;
176
-}
177
-
178
-static int is_sfx_rar_archive(int fd)
179
-{
180
-	unsigned char buff[8192];
181
-	const mark_header_t rar_hdr = {0x52, 0x61, 0x72, 0x21, 0x1a, 0x07, 0x00};
182
-	off_t offset=0, size, pos;
183
-	
184
-	lseek(fd, 0, SEEK_SET);
185
-	for (;;) {
186
-		size = cli_readn(fd, buff, 8192);
187
-		if ((size == 0) || (size <= 9)) {
188
-			return FALSE;
189
-		}
190
-		for (pos=0 ; pos < size-9 ; pos++) {
191
-			if (buff[0] == 0x52) {
192
-				if (memcmp(buff, &rar_hdr, 7) == 0) {
193
-					offset += pos;
194
-					lseek(fd, offset, SEEK_SET);
195
-					return TRUE;
196
-				}
197
-			}
198
-		}
199
-		offset += size-9;
200
-		lseek(fd, offset, SEEK_SET);
201
-	}
202
-	return FALSE;
203
-}
204
-	
205
-static void insert_old_dist(unpack_data_t *unpack_data, unsigned int distance)
206
-{
207
-	unpack_data->old_dist[3] = unpack_data->old_dist[2];
208
-	unpack_data->old_dist[2] = unpack_data->old_dist[1];
209
-	unpack_data->old_dist[1] = unpack_data->old_dist[0];
210
-	unpack_data->old_dist[0] = distance;
211
-}
212
-
213
-static void insert_last_match(unpack_data_t *unpack_data, unsigned int length, unsigned int distance)
214
-{
215
-	unpack_data->last_dist = distance;
216
-	unpack_data->last_length = length;
217
-}
218
-
219
-static void copy_string(unpack_data_t *unpack_data, unsigned int length, unsigned int distance)
220
-{
221
-	unsigned int dest_ptr;
222
-	
223
-	dest_ptr = unpack_data->unp_ptr - distance;
224
-	if (dest_ptr < MAXWINSIZE-260 && unpack_data->unp_ptr < MAXWINSIZE - 260) {
225
-		unpack_data->window[unpack_data->unp_ptr++] = unpack_data->window[dest_ptr++];
226
-		while (--length > 0) {
227
-			unpack_data->window[unpack_data->unp_ptr++] = unpack_data->window[dest_ptr++];
228
-		}
229
-	} else {
230
-		while (length--) {
231
-			unpack_data->window[unpack_data->unp_ptr] =
232
-						unpack_data->window[dest_ptr++ & MAXWINMASK];
233
-			unpack_data->unp_ptr = (unpack_data->unp_ptr + 1) & MAXWINMASK;
234
-		}
235
-	}
236
-}
237
-
238
-static void *read_header(int fd, header_type hdr_type)
239
-{
240
-	uint8_t encrypt_ver;
241
-
242
-	switch(hdr_type) {
243
-	case MAIN_HEAD: {
244
-		main_header_t *main_hdr;
245
-		
246
-		main_hdr = (main_header_t *) cli_malloc(sizeof(main_header_t));
247
-		if (!main_hdr) {
248
-			return NULL;
249
-		}
250
-		if (cli_readn(fd, main_hdr, SIZEOF_NEWMHD) != SIZEOF_NEWMHD) {
251
-			free(main_hdr);
252
-			return NULL;
253
-		}
254
-		main_hdr->flags = rar_endian_convert_16(main_hdr->flags);
255
-		main_hdr->head_size = rar_endian_convert_16(main_hdr->head_size);
256
-		main_hdr->head_crc = rar_endian_convert_16(main_hdr->head_crc);
257
-		if (main_hdr->flags & MHD_ENCRYPTVER) {
258
-	                if (cli_readn(fd, &encrypt_ver, sizeof(uint8_t)) != sizeof(uint8_t)) {
259
-                        	free(main_hdr);
260
-                        	return NULL;
261
-			}
262
-			cli_dbgmsg("RAR Encrypt version: %d\n", encrypt_ver);
263
-                }
264
-
265
-		return main_hdr;
266
-		}
267
-	case FILE_HEAD: {
268
-		file_header_t *file_hdr;
269
-		
270
-		file_hdr = (file_header_t *) cli_malloc(sizeof(file_header_t));
271
-		if (!file_hdr) {
272
-			return NULL;
273
-		}
274
-		if (cli_readn(fd, file_hdr, SIZEOF_NEWLHD) != SIZEOF_NEWLHD) {
275
-			free(file_hdr);
276
-			return NULL;
277
-		}
278
-		file_hdr->flags = rar_endian_convert_16(file_hdr->flags);
279
-		file_hdr->head_size = rar_endian_convert_16(file_hdr->head_size);
280
-		file_hdr->pack_size = rar_endian_convert_32(file_hdr->pack_size);
281
-		file_hdr->unpack_size = rar_endian_convert_32(file_hdr->unpack_size);
282
-		file_hdr->file_crc = rar_endian_convert_32(file_hdr->file_crc);
283
-		file_hdr->name_size = rar_endian_convert_16(file_hdr->name_size);
284
-		if(file_hdr->flags & 0x100) {
285
-			if (cli_readn(fd, (char *) file_hdr + SIZEOF_NEWLHD, 8) != 8) {
286
-				free(file_hdr);
287
-				return NULL;
288
-			}
289
-			file_hdr->high_pack_size = rar_endian_convert_32(file_hdr->high_pack_size);
290
-			file_hdr->high_unpack_size = rar_endian_convert_32(file_hdr->high_unpack_size);
291
-		} else {
292
-			file_hdr->high_pack_size = 0;
293
-			file_hdr->high_unpack_size = 0;
294
-		}
295
-
296
-		return file_hdr;
297
-		}
298
-	case COMM_HEAD: {
299
-		comment_header_t *comment_hdr;
300
-
301
-		comment_hdr = (comment_header_t *) cli_malloc(sizeof(comment_header_t));
302
-		if (!comment_hdr) {
303
-			return NULL;
304
-		}
305
-		if (cli_readn(fd, comment_hdr, SIZEOF_COMMHEAD) != SIZEOF_COMMHEAD) {
306
-			free(comment_hdr);
307
-			return NULL;
308
-		}
309
-		comment_hdr->unpack_size = rar_endian_convert_16(comment_hdr->unpack_size);
310
-		comment_hdr->comm_crc = rar_endian_convert_16(comment_hdr->comm_crc);
311
-		return comment_hdr;
312
-		}
313
-	default:
314
-		cli_dbgmsg("ERROR: Unknown header type requested\n");
315
-		return NULL;
316
-	}
317
-	return NULL;
318
-}
319
-
320
-static file_header_t *read_block(int fd, header_type hdr_type)
321
-{
322
-	file_header_t *file_header;
323
-	off_t offset;
324
-	
325
-	for (;;) {
326
-		offset = lseek(fd, 0, SEEK_CUR);
327
-		rar_dbgmsg("read_block offset=%ld\n", offset);
328
-		file_header = read_header(fd, FILE_HEAD);
329
-		if (!file_header) {
330
-			return NULL;
331
-		}
332
-		rar_dbgmsg(" head_size=%u\n", file_header->head_size);
333
-		file_header->start_offset = offset;
334
-		file_header->next_offset = offset + file_header->head_size;
335
-		if (file_header->flags & LONG_BLOCK) {
336
-			file_header->next_offset += file_header->pack_size;
337
-		}
338
-		if (file_header->next_offset <= offset) {
339
-			free(file_header);
340
-			return NULL;
341
-		}
342
-
343
-		/* Check if the block is of the requested type */
344
-		if (file_header->head_type == hdr_type) {
345
-			/* TODO check what to do with SUBBLOCKS */
346
-			break;
347
-		}
348
-		cli_dbgmsg("Found block type: 0x%x\n", file_header->head_type);
349
-		cli_dbgmsg("Head Size: %.4x\n", file_header->head_size);
350
-		if (lseek(fd, file_header->next_offset, SEEK_SET) != file_header->next_offset) {
351
-			cli_dbgmsg("seek: %ld\n", file_header->next_offset);
352
-			return NULL;
353
-		}
354
-		free(file_header);
355
-	}
356
-	rar_dbgmsg("read_block out offset=%ld\n", lseek(fd, 0, SEEK_CUR));
357
-	cli_dbgmsg("Found file block.\n");
358
-	cli_dbgmsg("Pack Size: %u\n", file_header->pack_size);
359
-	cli_dbgmsg("UnPack Version: 0x%.2x\n", file_header->unpack_ver);
360
-	cli_dbgmsg("Pack Method: 0x%.2x\n", file_header->method);
361
-	file_header->filename = (unsigned char *) cli_malloc(file_header->name_size+1);
362
-	if (!file_header->filename) {
363
-		free(file_header);
364
-		return NULL;
365
-	}
366
-	if (cli_readn(fd, file_header->filename, file_header->name_size) != file_header->name_size) {
367
-		free(file_header->filename);
368
-		free(file_header);
369
-		return NULL;
370
-	}
371
-	file_header->filename[file_header->name_size] = '\0';
372
-	cli_dbgmsg("Filename: %s\n", file_header->filename);
373
-
374
-	return file_header;
375
-}
376
-
377
-void addbits(unpack_data_t *unpack_data, int bits)
378
-{
379
-
380
-	/*rar_dbgmsg("addbits: in_addr=%d in_bit=%d\n", unpack_data->in_addr, unpack_data->in_bit);*/
381
-	bits += unpack_data->in_bit;
382
-	unpack_data->in_addr += bits >> 3;
383
-	unpack_data->in_bit = bits & 7;
384
-}
385
-
386
-unsigned int getbits(unpack_data_t *unpack_data)
387
-{
388
-	unsigned int bit_field;
389
-
390
-	/*rar_dbgmsg("getbits: in_addr=%d in_bit=%d\n", unpack_data->in_addr, unpack_data->in_bit);*/
391
-	bit_field = (unsigned int) unpack_data->in_buf[unpack_data->in_addr] << 16;
392
-	bit_field |= (unsigned int) unpack_data->in_buf[unpack_data->in_addr+1] << 8;
393
-	bit_field |= (unsigned int) unpack_data->in_buf[unpack_data->in_addr+2];
394
-	bit_field >>= (8-unpack_data->in_bit);
395
-	/*rar_dbgmsg("getbits return(%d)\n", BitField & 0xffff);*/
396
-	return(bit_field & 0xffff);
397
-}
398
-
399
-int unp_read_buf(int fd, unpack_data_t *unpack_data)
400
-{
401
-	int data_size, retval;
402
-	unsigned int read_size;
403
-
404
-	data_size = unpack_data->read_top - unpack_data->in_addr;
405
-	if (data_size < 0) {
406
-		return FALSE;
407
-	}
408
-	
409
-	/* Is buffer read pos more than half way? */
410
-	if (unpack_data->in_addr > MAX_BUF_SIZE/2) {
411
-		if (data_size > 0) {
412
-			memmove(unpack_data->in_buf, unpack_data->in_buf+unpack_data->in_addr,
413
-					data_size);
414
-		}
415
-		unpack_data->in_addr = 0;
416
-		unpack_data->read_top = data_size;
417
-	} else {
418
-		data_size = unpack_data->read_top;
419
-	}
420
-	/* RAR2 depends on us only reading upto the end of the current compressed file */
421
-	if (unpack_data->pack_size < ((MAX_BUF_SIZE-data_size)&~0xf)) {
422
-		read_size = unpack_data->pack_size;
423
-	} else {
424
-		read_size = (MAX_BUF_SIZE-data_size)&~0xf;
425
-	}
426
-	retval = cli_readn(fd, unpack_data->in_buf+data_size, read_size);	
427
-	if (retval > 0) {
428
-		unpack_data->read_top += retval;
429
-		unpack_data->pack_size -= retval;
430
-	}
431
-	unpack_data->read_border = unpack_data->read_top - 30;
432
-	if(unpack_data->read_border < unpack_data->in_addr) {
433
-		const ssize_t fill = ((unpack_data->read_top + 30) < MAX_BUF_SIZE) ? 30 : (MAX_BUF_SIZE - unpack_data->read_top);
434
-		if(fill)
435
-			memset(unpack_data->in_buf + unpack_data->read_top, 0, fill);
436
-	}
437
-	return (retval!=-1);
438
-}
439
-
440
-unsigned int rar_get_char(int fd, unpack_data_t *unpack_data)
441
-{
442
-	if (unpack_data->in_addr > MAX_BUF_SIZE-30) {
443
-		if (!unp_read_buf(fd, unpack_data)) {
444
-			cli_errmsg("rar_get_char: unp_read_buf FAILED\n");
445
-			return -1;
446
-		}
447
-	}
448
-	rar_dbgmsg("rar_get_char = %u\n", unpack_data->in_buf[unpack_data->in_addr]);
449
-	return(unpack_data->in_buf[unpack_data->in_addr++]);
450
-}
451
-
452
-static void unp_write_data(unpack_data_t *unpack_data, uint8_t *data, int size)
453
-{
454
-	rar_dbgmsg("in unp_write_data length=%d\n", size);
455
-	cli_writen(unpack_data->ofd, data, size);
456
-	unpack_data->written_size += size;
457
-	unpack_data->unp_crc = rar_crc(unpack_data->unp_crc, data, size);
458
-}
459
-
460
-static void unp_write_area(unpack_data_t *unpack_data, unsigned int start_ptr, unsigned int end_ptr)
461
-{
462
-	if (end_ptr < start_ptr) {
463
-		unp_write_data(unpack_data, &unpack_data->window[start_ptr], -start_ptr & MAXWINMASK);
464
-		unp_write_data(unpack_data, unpack_data->window, end_ptr);
465
-	} else {
466
-		unp_write_data(unpack_data, &unpack_data->window[start_ptr], end_ptr-start_ptr);
467
-	}
468
-}
469
-
470
-void unp_write_buf_old(unpack_data_t *unpack_data)
471
-{
472
-	rar_dbgmsg("in unp_write_buf_old\n");
473
-	if (unpack_data->unp_ptr < unpack_data->wr_ptr) {
474
-		unp_write_data(unpack_data, &unpack_data->window[unpack_data->wr_ptr],
475
-				-unpack_data->wr_ptr & MAXWINMASK);
476
-		unp_write_data(unpack_data, unpack_data->window, unpack_data->unp_ptr);
477
-	} else {
478
-		unp_write_data(unpack_data, &unpack_data->window[unpack_data->wr_ptr],
479
-				unpack_data->unp_ptr - unpack_data->wr_ptr);
480
-	}
481
-	unpack_data->wr_ptr = unpack_data->unp_ptr;
482
-}
483
-
484
-static void execute_code(unpack_data_t *unpack_data, struct rarvm_prepared_program *prg)
485
-{
486
-	rar_dbgmsg("in execute_code\n");
487
-	rar_dbgmsg("global_size: %ld\n", prg->global_size);
488
-	if (prg->global_size > 0) {
489
-		prg->init_r[6] = int64to32(unpack_data->written_size);
490
-		rarvm_set_value(FALSE, (unsigned int *)&prg->global_data[0x24],
491
-				int64to32(unpack_data->written_size));
492
-		rarvm_set_value(FALSE, (unsigned int *)&prg->global_data[0x28],
493
-				int64to32(unpack_data->written_size>>32));
494
-		rarvm_execute(&unpack_data->rarvm_data, prg);
495
-	}
496
-}
497
-
498
-		
499
-static void unp_write_buf(unpack_data_t *unpack_data)
500
-{
501
-	unsigned int written_border, part_length, filtered_size;
502
-	unsigned int write_size, block_start, block_length, block_end;
503
-	struct UnpackFilter *flt, *next_filter;
504
-	struct rarvm_prepared_program *prg, *next_prg;
505
-	uint8_t *filtered_data;
506
-	int i, j;
507
-	
508
-	rar_dbgmsg("in unp_write_buf\n");
509
-	written_border = unpack_data->wr_ptr;
510
-	write_size = (unpack_data->unp_ptr - written_border) & MAXWINMASK;
511
-	for (i=0 ; i < unpack_data->PrgStack.num_items ; i++) {
512
-		flt = unpack_data->PrgStack.array[i];
513
-		if (flt == NULL) {
514
-			continue;
515
-		}
516
-		if (flt->next_window) {
517
-			flt->next_window = FALSE;
518
-			continue;
519
-		}
520
-		block_start = flt->block_start;
521
-		block_length = flt->block_length;
522
-		if (((block_start-written_border)&MAXWINMASK) < write_size) {
523
-			if (written_border != block_start) {
524
-				unp_write_area(unpack_data, written_border, block_start);
525
-				written_border = block_start;
526
-				write_size = (unpack_data->unp_ptr - written_border) & MAXWINMASK;
527
-			}
528
-			if (block_length <= write_size) {
529
-				block_end = (block_start + block_length) & MAXWINMASK;
530
-				if (block_start < block_end || block_end==0) {
531
-					rarvm_set_memory(&unpack_data->rarvm_data, 0,
532
-							unpack_data->window+block_start, block_length);
533
-				} else {
534
-					part_length = MAXWINMASK - block_start;
535
-					rarvm_set_memory(&unpack_data->rarvm_data, 0,
536
-							unpack_data->window+block_start, part_length);
537
-					rarvm_set_memory(&unpack_data->rarvm_data, part_length,
538
-							unpack_data->window, block_end);
539
-				}
540
-				prg = &flt->prg;
541
-				execute_code(unpack_data, prg);
542
-				
543
-				filtered_data = prg->filtered_data;
544
-				filtered_size = prg->filtered_data_size;
545
-				
546
-				rar_filter_delete(unpack_data->PrgStack.array[i]);
547
-				unpack_data->PrgStack.array[i] = NULL;
548
-				while (i+1 < unpack_data->PrgStack.num_items) {
549
-					next_filter = unpack_data->PrgStack.array[i+1];
550
-					if (next_filter==NULL ||
551
-							next_filter->block_start!=block_start ||
552
-							next_filter->block_length!=filtered_size ||
553
-							next_filter->next_window) {
554
-						break;
555
-					}
556
-					rarvm_set_memory(&unpack_data->rarvm_data, 0,
557
-							filtered_data, filtered_size);
558
-					next_prg = &unpack_data->PrgStack.array[i+1]->prg;
559
-					execute_code(unpack_data, next_prg);
560
-					filtered_data = next_prg->filtered_data;
561
-					filtered_size = next_prg->filtered_data_size;
562
-					i++;
563
-					rar_filter_delete(unpack_data->PrgStack.array[i]);
564
-					unpack_data->PrgStack.array[i] = NULL;
565
-				}
566
-				unp_write_data(unpack_data, filtered_data, filtered_size);
567
-				written_border = block_end;
568
-				write_size = (unpack_data->unp_ptr - written_border) & MAXWINMASK;
569
-			} else {
570
-				for (j=i ; j < unpack_data->PrgStack.num_items ; j++) {
571
-					flt = unpack_data->PrgStack.array[j];
572
-					if (flt != NULL && flt->next_window) {
573
-						flt->next_window = FALSE;
574
-					}
575
-				}
576
-				unpack_data->wr_ptr = written_border;
577
-				return;
578
-				
579
-			}
580
-		}
581
-	}
582
-	unp_write_area(unpack_data, written_border, unpack_data->unp_ptr);
583
-	unpack_data->wr_ptr = unpack_data->unp_ptr;
584
-}
585
-
586
-void make_decode_tables(unsigned char *len_tab, struct Decode *decode, int size)
587
-{
588
-	int len_count[16], tmp_pos[16], i;
589
-	long m,n;
590
-	
591
-	memset(len_count, 0, sizeof(len_count));
592
-	memset(decode->DecodeNum,0,size*sizeof(*decode->DecodeNum));
593
-	for (i=0 ; i < size ; i++) {
594
-		len_count[len_tab[i] & 0x0f]++;
595
-	}
596
-	
597
-	len_count[0]=0;
598
-	for (tmp_pos[0]=decode->DecodePos[0]=decode->DecodeLen[0]=0,n=0,i=1;i<16;i++) {
599
-		n=2*(n+len_count[i]);
600
-		m=n<<(15-i);
601
-		if (m>0xFFFF) {
602
-			m=0xFFFF;
603
-		}
604
-		decode->DecodeLen[i]=(unsigned int)m;
605
-		tmp_pos[i]=decode->DecodePos[i]=decode->DecodePos[i-1]+len_count[i-1];
606
-	}
607
-	
608
-	for (i=0;i<size;i++) {
609
-		if (len_tab[i]!=0) {
610
-			decode->DecodeNum[tmp_pos[len_tab[i] & 0x0f]++]=i;
611
-		}
612
-	}
613
-	decode->MaxNum=size;
614
-}
615
-
616
-int decode_number(unpack_data_t *unpack_data, struct Decode *decode)
617
-{
618
-	unsigned int bits, bit_field, n;
619
-	
620
-	bit_field = getbits(unpack_data) & 0xfffe;
621
-	rar_dbgmsg("decode_number BitField=%u\n", bit_field);
622
-	if (bit_field < decode->DecodeLen[8])
623
-		if (bit_field < decode->DecodeLen[4])
624
-			if (bit_field < decode->DecodeLen[2])
625
-				if (bit_field < decode->DecodeLen[1])
626
-					bits=1;
627
-				else
628
-					bits=2;
629
-			else
630
-				if (bit_field < decode->DecodeLen[3])
631
-					bits=3;
632
-				else
633
-					bits=4;
634
-		else
635
-			if (bit_field < decode->DecodeLen[6])
636
-				if (bit_field < decode->DecodeLen[5])
637
-					bits=5;
638
-				else
639
-					bits=6;
640
-			else
641
-				if (bit_field < decode->DecodeLen[7])
642
-					bits=7;
643
-				else
644
-					bits=8;
645
-	else
646
-		if (bit_field < decode->DecodeLen[12])
647
-			if (bit_field < decode->DecodeLen[10])
648
-				if (bit_field < decode->DecodeLen[9])
649
-					bits=9;
650
-				else
651
-					bits=10;
652
-			else
653
-				if (bit_field < decode->DecodeLen[11])
654
-					bits=11;
655
-				else
656
-					bits=12;
657
-		else
658
-			if (bit_field < decode->DecodeLen[14])
659
-				if (bit_field < decode->DecodeLen[13])
660
-					bits=13;
661
-				else
662
-					bits=14;
663
-			else
664
-				bits=15;
665
-
666
-	rar_dbgmsg("decode_number: bits=%d\n", bits);
667
-
668
-	addbits(unpack_data, bits);
669
-	n=decode->DecodePos[bits]+((bit_field-decode->DecodeLen[bits-1])>>(16-bits));
670
-	if (n >= decode->MaxNum) {
671
-		n=0;
672
-	}
673
-	/*rar_dbgmsg("decode_number return(%d)\n", decode->DecodeNum[n]);*/
674
-
675
-	return(decode->DecodeNum[n]);
676
-}
677
-
678
-static int read_tables(int fd, unpack_data_t *unpack_data)
679
-{
680
-	uint8_t bit_length[BC];
681
-	unsigned char table[HUFF_TABLE_SIZE];
682
-	unsigned int bit_field;
683
-	int i, length, zero_count, number, n;
684
-	const int table_size=HUFF_TABLE_SIZE;
685
-	
686
-	cli_dbgmsg("in read_tables Offset=%ld in_addr=%d read_top=%d\n", lseek(fd, 0, SEEK_CUR),
687
-				unpack_data->in_addr, unpack_data->read_top);
688
-	if (unpack_data->in_addr > unpack_data->read_top-25) {
689
-		if (!unp_read_buf(fd, unpack_data)) {
690
-			cli_dbgmsg("ERROR: read_tables unp_read_buf failed\n");
691
-			return FALSE;
692
-		}
693
-	}
694
-	addbits(unpack_data, (8-unpack_data->in_bit) & 7);
695
-	bit_field = getbits(unpack_data);
696
-	rar_dbgmsg("BitField = 0x%x\n", bit_field);
697
-	if (bit_field & 0x8000) {
698
-		unpack_data->unp_block_type = BLOCK_PPM;
699
-		rar_dbgmsg("Calling ppm_decode_init\n");
700
-		if(!ppm_decode_init(&unpack_data->ppm_data, fd, unpack_data, &unpack_data->ppm_esc_char)) {
701
-		    cli_dbgmsg("unrar: read_tables: ppm_decode_init failed\n");
702
-		    return FALSE;
703
-		}
704
-		return(TRUE);
705
-	}
706
-	unpack_data->unp_block_type = BLOCK_LZ;
707
-	unpack_data->prev_low_dist = 0;
708
-	unpack_data->low_dist_rep_count = 0;
709
-
710
-	if (!(bit_field & 0x4000)) {
711
-		memset(unpack_data->unp_old_table, 0, sizeof(unpack_data->unp_old_table));
712
-	}
713
-	addbits(unpack_data, 2);
714
-	
715
-	for (i=0 ; i < BC ; i++) {
716
-		length = (uint8_t)(getbits(unpack_data) >> 12);
717
-		addbits(unpack_data, 4);
718
-		if (length == 15) {
719
-			zero_count = (uint8_t)(getbits(unpack_data) >> 12);
720
-			addbits(unpack_data, 4);
721
-			if (zero_count == 0) {
722
-				bit_length[i] = 15;
723
-			} else {
724
-				zero_count += 2;
725
-				while (zero_count-- > 0 &&
726
-						i<sizeof(bit_length)/sizeof(bit_length[0])) {
727
-					bit_length[i++]=0;
728
-				}
729
-				i--;
730
-			}
731
-		} else {
732
-			bit_length[i] = length;
733
-		}
734
-	}
735
-	make_decode_tables(bit_length,(struct Decode *)&unpack_data->BD,BC);
736
-	
737
-	for (i=0;i<table_size;) {
738
-		if (unpack_data->in_addr > unpack_data->read_top-5) {
739
-			if (!unp_read_buf(fd, unpack_data)) {
740
-				cli_dbgmsg("ERROR: read_tables unp_read_buf failed 2\n");
741
-				return FALSE;
742
-			}
743
-		}
744
-		number = decode_number(unpack_data, (struct Decode *)&unpack_data->BD);
745
-		if (number < 16) {
746
-			table[i] = (number+unpack_data->unp_old_table[i]) & 0xf;
747
-			i++;
748
-		} else if (number < 18) {
749
-			if (number == 16) {
750
-				n = (getbits(unpack_data) >> 13) + 3;
751
-				addbits(unpack_data, 3);
752
-			} else {
753
-				n = (getbits(unpack_data) >> 9) + 11;
754
-				addbits(unpack_data, 7);
755
-			}
756
-			while (n-- > 0 && i < table_size) {
757
-				table[i] = table[i-1];
758
-				i++;
759
-			}
760
-		} else {
761
-			if (number == 18) {
762
-				n = (getbits(unpack_data) >> 13) + 3;
763
-				addbits(unpack_data, 3);
764
-			} else {
765
-				n = (getbits(unpack_data) >> 9) + 11;
766
-				addbits(unpack_data, 7);
767
-			}
768
-			while (n-- > 0 && i < table_size) {
769
-				table[i++] = 0;
770
-			}
771
-		}
772
-	}
773
-	unpack_data->tables_read = TRUE;
774
-	if (unpack_data->in_addr > unpack_data->read_top) {
775
-		cli_dbgmsg("ERROR: read_tables check failed\n");
776
-		return FALSE;
777
-	}
778
-	make_decode_tables(&table[0], (struct Decode *)&unpack_data->LD,NC);
779
-	make_decode_tables(&table[NC], (struct Decode *)&unpack_data->DD,DC);
780
-	make_decode_tables(&table[NC+DC], (struct Decode *)&unpack_data->LDD,LDC);
781
-	make_decode_tables(&table[NC+DC+LDC], (struct Decode *)&unpack_data->RD,RC);
782
-	memcpy(unpack_data->unp_old_table,table,sizeof(unpack_data->unp_old_table));
783
-	
784
-
785
-	/*dump_tables(unpack_data);*/
786
-	rar_dbgmsg("ReadTables finished\n");
787
-  	return TRUE;
788
-}
789
-
790
-static int read_end_of_block(int fd, unpack_data_t *unpack_data)
791
-{
792
-	unsigned int bit_field;
793
-	int new_table, new_file=FALSE;
794
-	
795
-	bit_field = getbits(unpack_data);
796
-	if (bit_field & 0x8000) {
797
-		new_table = TRUE;
798
-		addbits(unpack_data, 1);
799
-	} else {
800
-		new_file = TRUE;
801
-		new_table = (bit_field & 0x4000);
802
-		addbits(unpack_data, 2);
803
-	}
804
-	unpack_data->tables_read = !new_table;
805
-	rar_dbgmsg("NewFile=%d NewTable=%d TablesRead=%d\n", new_file,
806
-			new_table, unpack_data->tables_read);
807
-	return !(new_file || (new_table && !read_tables(fd, unpack_data)));
808
-}
809
-
810
-static void init_filters(unpack_data_t *unpack_data)
811
-{	
812
-	if (unpack_data->old_filter_lengths) {
813
-		free(unpack_data->old_filter_lengths);
814
-		unpack_data->old_filter_lengths = NULL;
815
-	}
816
-	unpack_data->old_filter_lengths_size = 0;
817
-	unpack_data->last_filter = 0;
818
-	
819
-	rar_filter_array_reset(&unpack_data->Filters);
820
-	rar_filter_array_reset(&unpack_data->PrgStack);
821
-}
822
-
823
-static int add_vm_code(unpack_data_t *unpack_data, unsigned int first_byte,
824
-			unsigned char *vmcode, int code_size)
825
-{
826
-	rarvm_input_t rarvm_input;
827
-	unsigned int filter_pos, new_filter, block_start, init_mask, cur_size;
828
-	struct UnpackFilter *filter, *stack_filter;
829
-	int i, empty_count, stack_pos, vm_codesize, static_size, data_size;
830
-	unsigned char *vm_code, *global_data;
831
-	
832
-	rar_dbgmsg("in add_vm_code first_byte=0x%x code_size=%d\n", first_byte, code_size);
833
-	rarvm_input.in_buf = vmcode;
834
-	rarvm_input.buf_size = code_size;
835
-	rarvm_input.in_addr = 0;
836
-	rarvm_input.in_bit = 0;
837
-
838
-	if (first_byte & 0x80) {
839
-		filter_pos = rarvm_read_data(&rarvm_input);
840
-		if (filter_pos == 0) {
841
-			init_filters(unpack_data);
842
-		} else {
843
-			filter_pos--;
844
-		}
845
-	} else {
846
-		filter_pos = unpack_data->last_filter;
847
-	}
848
-	rar_dbgmsg("filter_pos = %u\n", filter_pos);
849
-	if (filter_pos > unpack_data->Filters.num_items ||
850
-			filter_pos > unpack_data->old_filter_lengths_size) {
851
-		cli_dbgmsg("filter_pos check failed\n");
852
-		return FALSE;
853
-	}
854
-	unpack_data->last_filter = filter_pos;
855
-	new_filter = (filter_pos == unpack_data->Filters.num_items);
856
-	rar_dbgmsg("Filters.num_items=%d\n", unpack_data->Filters.num_items);
857
-	rar_dbgmsg("new_filter=%d\n", new_filter);
858
-	if (new_filter) {
859
-		if (!rar_filter_array_add(&unpack_data->Filters, 1)) {
860
-			cli_dbgmsg("rar_filter_array_add failed\n");
861
-			return FALSE;
862
-		}
863
-		unpack_data->Filters.array[unpack_data->Filters.num_items-1] =
864
-					filter = rar_filter_new();
865
-		if (!unpack_data->Filters.array[unpack_data->Filters.num_items-1]) {
866
-			cli_dbgmsg("rar_filter_new failed\n");
867
-			return FALSE;
868
-		}	
869
-		unpack_data->old_filter_lengths_size++;
870
-		unpack_data->old_filter_lengths = (int *) cli_realloc2(unpack_data->old_filter_lengths,
871
-				sizeof(int) * unpack_data->old_filter_lengths_size);
872
-		if(!unpack_data->old_filter_lengths) {
873
-		    cli_dbgmsg("unrar: add_vm_code: cli_realloc2 failed for unpack_data->old_filter_lengths\n");
874
-		    return FALSE;
875
-		}
876
-		unpack_data->old_filter_lengths[unpack_data->old_filter_lengths_size-1] = 0;
877
-		filter->exec_count = 0;
878
-	} else {
879
-		filter = unpack_data->Filters.array[filter_pos];
880
-		filter->exec_count++;
881
-	}
882
-	
883
-	stack_filter = rar_filter_new();
884
-
885
-	empty_count = 0;
886
-	for (i=0 ; i < unpack_data->PrgStack.num_items; i++) {
887
-		unpack_data->PrgStack.array[i-empty_count] = unpack_data->PrgStack.array[i];
888
-		if (unpack_data->PrgStack.array[i] == NULL) {
889
-			empty_count++;
890
-		}
891
-		if (empty_count > 0) {
892
-			unpack_data->PrgStack.array[i] = NULL;
893
-		}
894
-	}
895
-	
896
-	if (empty_count == 0) {
897
-		rar_filter_array_add(&unpack_data->PrgStack, 1);
898
-		empty_count = 1;
899
-	}
900
-	stack_pos = unpack_data->PrgStack.num_items - empty_count;
901
-	unpack_data->PrgStack.array[stack_pos] = stack_filter;
902
-	stack_filter->exec_count = filter->exec_count;
903
-	
904
-	block_start = rarvm_read_data(&rarvm_input);
905
-	rar_dbgmsg("block_start=%u\n", block_start);
906
-	if (first_byte & 0x40) {
907
-		block_start += 258;
908
-	}
909
-	stack_filter->block_start = (block_start + unpack_data->unp_ptr) & MAXWINMASK;
910
-	if (first_byte & 0x20) {
911
-		stack_filter->block_length = rarvm_read_data(&rarvm_input);
912
-	} else {
913
-		stack_filter->block_length = filter_pos < unpack_data->old_filter_lengths_size ?
914
-				unpack_data->old_filter_lengths[filter_pos] : 0;
915
-	}
916
-	rar_dbgmsg("block_length=%u\n", stack_filter->block_length);
917
-	stack_filter->next_window = unpack_data->wr_ptr != unpack_data->unp_ptr &&
918
-		((unpack_data->wr_ptr - unpack_data->unp_ptr) & MAXWINMASK) <= block_start;
919
-		
920
-	unpack_data->old_filter_lengths[filter_pos] = stack_filter->block_length;
921
-	
922
-	memset(stack_filter->prg.init_r, 0, sizeof(stack_filter->prg.init_r));
923
-	stack_filter->prg.init_r[3] = VM_GLOBALMEMADDR;
924
-	stack_filter->prg.init_r[4] = stack_filter->block_length;
925
-	stack_filter->prg.init_r[5] = stack_filter->exec_count;
926
-	if (first_byte & 0x10) {
927
-		init_mask = rarvm_getbits(&rarvm_input) >> 9;
928
-		rarvm_addbits(&rarvm_input, 7);
929
-		for (i=0 ; i<7 ; i++) {
930
-			if (init_mask & (1<<i)) {
931
-				stack_filter->prg.init_r[i] =
932
-					rarvm_read_data(&rarvm_input);
933
-				rar_dbgmsg("prg.init_r[%d] = %u\n", i, stack_filter->prg.init_r[i]);
934
-			}
935
-		}
936
-	}
937
-	if (new_filter) {
938
-		vm_codesize = rarvm_read_data(&rarvm_input);
939
-		if (vm_codesize >= 0x1000 || vm_codesize == 0 || (vm_codesize > rarvm_input.buf_size)) {
940
-			cli_dbgmsg("ERROR: vm_codesize=0x%x buf_size=0x%x\n", vm_codesize, rarvm_input.buf_size);
941
-			return FALSE;
942
-		}
943
-		vm_code = (unsigned char *) cli_malloc(vm_codesize);
944
-		if(!vm_code) {
945
-		    cli_dbgmsg("unrar: add_vm_code: cli_malloc failed for vm_code\n");
946
-		    return FALSE;
947
-		}
948
-		for (i=0 ; i < vm_codesize ; i++) {
949
-			vm_code[i] = rarvm_getbits(&rarvm_input) >> 8;
950
-			rarvm_addbits(&rarvm_input, 8);
951
-		}
952
-		if(!rarvm_prepare(&unpack_data->rarvm_data, &rarvm_input, &vm_code[0], vm_codesize, &filter->prg)) {
953
-		    cli_dbgmsg("unrar: add_vm_code: rarvm_prepare failed\n");
954
-		    free(vm_code);
955
-		    return FALSE;
956
-		}
957
-		free(vm_code);
958
-	}
959
-	stack_filter->prg.alt_cmd = &filter->prg.cmd.array[0];
960
-	stack_filter->prg.cmd_count = filter->prg.cmd_count;
961
-	
962
-	static_size = filter->prg.static_size;
963
-	if (static_size > 0 && static_size < VM_GLOBALMEMSIZE) {
964
-		stack_filter->prg.static_data = cli_malloc(static_size);
965
-		if(!stack_filter->prg.static_data) {
966
-		    cli_dbgmsg("unrar: add_vm_code: cli_malloc failed for stack_filter->prg.static_data\n");
967
-		    return FALSE;
968
-		}
969
-		memcpy(stack_filter->prg.static_data, filter->prg.static_data, static_size);
970
-	}
971
-	
972
-	if (stack_filter->prg.global_size < VM_FIXEDGLOBALSIZE) {
973
-		free(stack_filter->prg.global_data);
974
-		stack_filter->prg.global_data = cli_malloc(VM_FIXEDGLOBALSIZE);
975
-		if(!stack_filter->prg.global_data) {
976
-		    cli_dbgmsg("unrar: add_vm_code: cli_malloc failed for stack_filter->prg.global_data\n");
977
-		    return FALSE;
978
-		}
979
-		memset(stack_filter->prg.global_data, 0, VM_FIXEDGLOBALSIZE);
980
-		stack_filter->prg.global_size = VM_FIXEDGLOBALSIZE;
981
-	}
982
-	global_data = &stack_filter->prg.global_data[0];
983
-	for (i=0 ; i<7 ; i++) {
984
-		rar_dbgmsg("init_r[%d]=%u\n", i, stack_filter->prg.init_r[i]);
985
-		rarvm_set_value(FALSE, (unsigned int *)&global_data[i*4],
986
-				stack_filter->prg.init_r[i]);
987
-	}
988
-	rarvm_set_value(FALSE, (unsigned int *)&global_data[0x1c], stack_filter->block_length);
989
-	rarvm_set_value(FALSE, (unsigned int *)&global_data[0x20], 0);
990
-	rarvm_set_value(FALSE, (unsigned int *)&global_data[0x2c], stack_filter->exec_count);
991
-	memset(&global_data[0x30], 0, 16);
992
-	for (i=0 ; i< 30 ; i++) {
993
-		rar_dbgmsg("global_data[%d] = %d\n", i, global_data[i]);
994
-	}
995
-	if (first_byte & 8) {
996
-		data_size = rarvm_read_data(&rarvm_input);
997
-		if (data_size >= 0x10000) {
998
-			return FALSE;
999
-		}
1000
-		cur_size = stack_filter->prg.global_size;
1001
-		if (cur_size < data_size+VM_FIXEDGLOBALSIZE) {
1002
-			stack_filter->prg.global_size += data_size+VM_FIXEDGLOBALSIZE-cur_size;
1003
-			stack_filter->prg.global_data = cli_realloc2(stack_filter->prg.global_data,
1004
-				stack_filter->prg.global_size);
1005
-			if(!stack_filter->prg.global_data) {
1006
-			    cli_dbgmsg("unrar: add_vm_code: cli_realloc2 failed for stack_filter->prg.global_data\n");
1007
-			    return FALSE;
1008
-			}
1009
-		}
1010
-		global_data = &stack_filter->prg.global_data[VM_FIXEDGLOBALSIZE];
1011
-		for (i=0 ; i< data_size ; i++) {
1012
-			if ((rarvm_input.in_addr+2) > rarvm_input.buf_size) {
1013
-				cli_dbgmsg("Buffer truncated\n");
1014
-				return FALSE;
1015
-			}
1016
-			global_data[i] = rarvm_getbits(&rarvm_input) >> 8;
1017
-			rar_dbgmsg("global_data[%d] = %d\n", i, global_data[i]);
1018
-			rarvm_addbits(&rarvm_input, 8);
1019
-		}
1020
-	}
1021
-	return TRUE;
1022
-}
1023
-
1024
-static int read_vm_code(unpack_data_t *unpack_data, int fd)
1025
-{
1026
-	unsigned int first_byte;
1027
-	int length, i, retval;
1028
-	unsigned char *vmcode;
1029
-	
1030
-	first_byte = getbits(unpack_data)>>8;
1031
-	addbits(unpack_data, 8);
1032
-	length = (first_byte & 7) + 1;
1033
-	if (length == 7) {
1034
-		length = (getbits(unpack_data) >> 8) + 7;
1035
-		addbits(unpack_data, 8);
1036
-	} else if (length == 8) {
1037
-		length = getbits(unpack_data);
1038
-		addbits(unpack_data, 16);
1039
-	}
1040
-	vmcode = (unsigned char *) cli_malloc(length + 2);
1041
-	rar_dbgmsg("VM code length: %d\n", length);
1042
-	if (!vmcode) {
1043
-		return FALSE;
1044
-	}
1045
-	for (i=0 ; i < length ; i++) {
1046
-		if (unpack_data->in_addr >= unpack_data->read_top-1 &&
1047
-				!unp_read_buf(fd, unpack_data) && i<length-1) {
1048
-			return FALSE;
1049
-		}
1050
-		vmcode[i] = getbits(unpack_data) >> 8;
1051
-		addbits(unpack_data, 8);
1052
-	}
1053
-	retval = add_vm_code(unpack_data, first_byte, vmcode, length);
1054
-	free(vmcode);
1055
-	return retval;
1056
-}
1057
-
1058
-static int read_vm_code_PPM(unpack_data_t *unpack_data, int fd)
1059
-{
1060
-	unsigned int first_byte;
1061
-	int length, i, ch, retval, b1, b2;
1062
-	unsigned char *vmcode;
1063
-	
1064
-	first_byte = ppm_decode_char(&unpack_data->ppm_data, fd, unpack_data);
1065
-	if ((int)first_byte == -1) {
1066
-		return FALSE;
1067
-	}
1068
-	length = (first_byte & 7) + 1;
1069
-	if (length == 7) {
1070
-		b1 = ppm_decode_char(&unpack_data->ppm_data, fd, unpack_data);
1071
-		if (b1 == -1) {
1072
-			return FALSE;
1073
-		}
1074
-		length = b1 + 7;
1075
-	} else if (length == 8) {
1076
-		b1 = ppm_decode_char(&unpack_data->ppm_data, fd, unpack_data);
1077
-		if (b1 == -1) {
1078
-			return FALSE;
1079
-		}
1080
-		b2 = ppm_decode_char(&unpack_data->ppm_data, fd, unpack_data);
1081
-		if (b2 == -1) {
1082
-			return FALSE;
1083
-		}
1084
-		length = b1*256 + b2;
1085
-	}
1086
-	vmcode = (unsigned char *) cli_malloc(length + 2);
1087
-	rar_dbgmsg("VM PPM code length: %d\n", length);
1088
-	if (!vmcode) {
1089
-		return FALSE;
1090
-	}
1091
-	for (i=0 ; i < length ; i++) {
1092
-		ch = ppm_decode_char(&unpack_data->ppm_data, fd, unpack_data);
1093
-		if (ch == -1) {
1094
-			free(vmcode);
1095
-			return FALSE;
1096
-		}
1097
-		vmcode[i] = ch;
1098
-	}
1099
-	retval = add_vm_code(unpack_data, first_byte, vmcode, length);
1100
-	free(vmcode);
1101
-	return retval;
1102
-}
1103
-
1104
-void unpack_init_data(int solid, unpack_data_t *unpack_data)
1105
-{
1106
-	if (!solid) {
1107
-		unpack_data->tables_read = FALSE;
1108
-		memset(unpack_data->old_dist, 0, sizeof(unpack_data->old_dist));
1109
-		unpack_data->old_dist_ptr= 0;
1110
-		memset(unpack_data->unp_old_table, 0, sizeof(unpack_data->unp_old_table));
1111
-		unpack_data->last_dist= 0;
1112
-		unpack_data->last_length=0;
1113
-		unpack_data->ppm_esc_char = 2;
1114
-		unpack_data->unp_ptr = 0;
1115
-		unpack_data->wr_ptr = 0;
1116
-		init_filters(unpack_data);
1117
-	}
1118
-	unpack_data->in_bit = 0;
1119
-	unpack_data->in_addr = 0;
1120
-	unpack_data->read_top = 0;
1121
-	unpack_data->ppm_error = FALSE;
1122
-	
1123
-	unpack_data->written_size = 0;
1124
-	rarvm_init(&unpack_data->rarvm_data);
1125
-	unpack_data->unp_crc = 0xffffffff;
1126
-	
1127
-	unpack_init_data20(solid, unpack_data);
1128
-
1129
-}
1130
-
1131
-static void unpack_free_data(unpack_data_t *unpack_data)
1132
-{
1133
-	if (!unpack_data) {
1134
-		return;
1135
-	}
1136
-	/*init_filters(unpack_data);*/
1137
-	rarvm_free(&unpack_data->rarvm_data);
1138
-}
1139
-
1140
-static int rar_unpack29(int fd, int solid, unpack_data_t *unpack_data)
1141
-{
1142
-	unsigned char ldecode[]={0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,
1143
-			32,40,48,56,64,80,96,112,128,160,192,224};
1144
-	unsigned char lbits[]=  {0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5};
1145
-	int ddecode[DC]={0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,
1146
-		1536,2048,3072,4096,6144,8192,12288,16384,24576,32768,49152,65536,
1147
-		98304,131072,196608,262144,327680,393216,458752,524288,589824,655360,
1148
-		720896,786432,851968,917504,983040,1048576,1310720,1572864,
1149
-		1835008,2097152,2359296,2621440,2883584,3145728,3407872,3670016,3932160};
1150
-	uint8_t dbits[DC]= {0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,
1151
-		11,11,12,12,13,13,14,14,15,15,16,16,16,16,16,16,16,16,16,
1152
-		16,16,16,16,16,18,18,18,18,18,18,18,18,18,18,18,18};
1153
-	unsigned char sddecode[]={0,4,8,16,32,64,128,192};
1154
-	unsigned char sdbits[]=  {2,2,3, 4, 5, 6,  6,  6};
1155
-	unsigned int bits, distance;
1156
-	int retval=TRUE, i, number, length, dist_number, low_dist, ch, next_ch;
1157
-	int length_number, failed;
1158
-
1159
-	cli_dbgmsg("Offset: %ld\n", lseek(fd, 0, SEEK_CUR));
1160
-	if (!solid) {
1161
-		cli_dbgmsg("Not solid\n");
1162
-	}
1163
-	unpack_init_data(solid, unpack_data);
1164
-	if (!unp_read_buf(fd, unpack_data)) {
1165
-		return FALSE;
1166
-	}
1167
-	if (!solid || !unpack_data->tables_read) {
1168
-		cli_dbgmsg("Read tables\n");
1169
-		if (!read_tables(fd, unpack_data)) {
1170
-			return FALSE;
1171
-		}
1172
-	}
1173
-
1174
-	cli_dbgmsg("init done\n");
1175
-	while(1) {
1176
-		unpack_data->unp_ptr &= MAXWINMASK;
1177
-		rar_dbgmsg("UnpPtr = %d\n", unpack_data->unp_ptr);
1178
-		if (unpack_data->in_addr > unpack_data->read_border) {
1179
-			if (!unp_read_buf(fd, unpack_data)) {
1180
-				retval = FALSE;
1181
-				break;
1182
-			}
1183
-		}
1184
-		if (((unpack_data->wr_ptr - unpack_data->unp_ptr) & MAXWINMASK) < 260 &&
1185
-				unpack_data->wr_ptr != unpack_data->unp_ptr) {
1186
-			unp_write_buf(unpack_data);
1187
-		}
1188
-		if (unpack_data->unp_block_type == BLOCK_PPM) {
1189
-			ch = ppm_decode_char(&unpack_data->ppm_data, fd, unpack_data);
1190
-			rar_dbgmsg("PPM char: %d\n", ch);
1191
-			if (ch == -1) {
1192
-				retval = FALSE;
1193
-				unpack_data->ppm_error = TRUE;
1194
-				break;
1195
-			}
1196
-			if (ch == unpack_data->ppm_esc_char) {
1197
-				next_ch = ppm_decode_char(&unpack_data->ppm_data,
1198
-							fd, unpack_data);
1199
-				rar_dbgmsg("PPM next char: %d\n", next_ch);
1200
-				if (next_ch == -1) {
1201
-					retval = FALSE;
1202
-					unpack_data->ppm_error = TRUE;
1203
-					break;
1204
-				}
1205
-				if (next_ch == 0) {
1206
-					if (!read_tables(fd, unpack_data)) {
1207
-						retval = FALSE;
1208
-						break;
1209
-					}
1210
-					continue;
1211
-				}
1212
-				if (next_ch == 2 || next_ch == -1) {
1213
-					break;
1214
-				}
1215
-				if (next_ch == 3) {
1216
-					if (!read_vm_code_PPM(unpack_data, fd)) {
1217
-						retval = FALSE;
1218
-						break;
1219
-					}
1220
-					continue;
1221
-				}
1222
-				if (next_ch == 4) {
1223
-					unsigned int length;
1224
-					distance = 0;
1225
-					failed = FALSE;
1226
-					for (i=0 ; i < 4 && !failed; i++) {
1227
-						ch = ppm_decode_char(&unpack_data->ppm_data,
1228
-								fd, unpack_data);
1229
-						if (ch == -1) {
1230
-							failed = TRUE;
1231
-						} else {
1232
-							if (i==3) {
1233
-								length = (uint8_t)ch;
1234
-							} else {
1235
-								distance = (distance << 8) +
1236
-										(uint8_t)ch;
1237
-							}
1238
-						}
1239
-					}
1240
-					if (failed) {
1241
-						retval = FALSE;
1242
-						break;
1243
-					}
1244
-					copy_string(unpack_data, length+32, distance+2);
1245
-					continue;
1246
-				}
1247
-				if (next_ch == 5) {
1248
-					int length = ppm_decode_char(&unpack_data->ppm_data,
1249
-								fd, unpack_data);
1250
-					rar_dbgmsg("PPM length: %d\n", length);
1251
-					if (length == -1) {
1252
-						retval = FALSE;
1253
-						break;
1254
-					}
1255
-					copy_string(unpack_data, length+4, 1);
1256
-					continue;
1257
-				}
1258
-			}
1259
-			unpack_data->window[unpack_data->unp_ptr++] = ch;
1260
-			continue;
1261
-		} else {
1262
-			number = decode_number(unpack_data, (struct Decode *)&unpack_data->LD);
1263
-			rar_dbgmsg("number = %d\n", number);
1264
-			if (number < 256) {
1265
-				unpack_data->window[unpack_data->unp_ptr++] = (uint8_t) number;
1266
-				continue;
1267
-			}
1268
-			if (number >= 271) {
1269
-				length = ldecode[number-=271]+3;
1270
-				if ((bits=lbits[number]) > 0) {
1271
-					length += getbits(unpack_data) >> (16-bits);
1272
-					addbits(unpack_data, bits);
1273
-				}
1274
-				dist_number = decode_number(unpack_data,
1275
-							(struct Decode *)&unpack_data->DD);
1276
-				distance = ddecode[dist_number] + 1;
1277
-				if ((bits = dbits[dist_number]) > 0) {
1278
-					if (dist_number > 9) {
1279
-						if (bits > 4) {
1280
-							distance += ((getbits(unpack_data) >>
1281
-									(20-bits)) << 4);
1282
-							addbits(unpack_data, bits-4);
1283
-						}
1284
-						if (unpack_data->low_dist_rep_count > 0) {
1285
-							unpack_data->low_dist_rep_count--;
1286
-							distance += unpack_data->prev_low_dist;
1287
-						} else {
1288
-							low_dist = decode_number(unpack_data,
1289
-								(struct Decode *) &unpack_data->LDD);
1290
-							if (low_dist == 16) {
1291
-								unpack_data->low_dist_rep_count =
1292
-									LOW_DIST_REP_COUNT-1;
1293
-								distance += unpack_data->prev_low_dist;
1294
-							} else {
1295
-								distance += low_dist;
1296
-								unpack_data->prev_low_dist = low_dist;
1297
-							}
1298
-						}
1299
-					} else {
1300
-						distance += getbits(unpack_data) >> (16-bits);
1301
-						addbits(unpack_data, bits);
1302
-					}
1303
-				}
1304
-				
1305
-				if (distance >= 0x2000) {
1306
-					length++;
1307
-					if (distance >= 0x40000L) {
1308
-						length++;
1309
-					}
1310
-				}
1311
-				
1312
-				insert_old_dist(unpack_data, distance);
1313
-				insert_last_match(unpack_data, length, distance);
1314
-				copy_string(unpack_data, length, distance);
1315
-				continue;
1316
-			}
1317
-			if (number == 256) {
1318
-				if (!read_end_of_block(fd, unpack_data)) {
1319
-					break;
1320
-				}
1321
-				continue;
1322
-			}
1323
-			if (number == 257) {
1324
-				if (!read_vm_code(unpack_data, fd)) {
1325
-					retval = FALSE;
1326
-					break;
1327
-				}
1328
-				continue;
1329
-			}
1330
-			if (number == 258) {
1331
-				if (unpack_data->last_length != 0) {
1332
-					copy_string(unpack_data, unpack_data->last_length,
1333
-							unpack_data->last_dist);
1334
-				}
1335
-				continue;
1336
-			}
1337
-			if (number < 263) {
1338
-				dist_number = number-259;
1339
-				distance = unpack_data->old_dist[dist_number];
1340
-				for (i=dist_number ; i > 0 ; i--) {
1341
-					unpack_data->old_dist[i] = unpack_data->old_dist[i-1];
1342
-				}
1343
-				unpack_data->old_dist[0] = distance;
1344
-				
1345
-				length_number = decode_number(unpack_data,
1346
-							(struct Decode *)&unpack_data->RD);
1347
-				length = ldecode[length_number]+2;
1348
-				if ((bits = lbits[length_number]) > 0) {
1349
-					length += getbits(unpack_data) >> (16-bits);
1350
-					addbits(unpack_data, bits);
1351
-				}
1352
-				insert_last_match(unpack_data, length, distance);
1353
-				copy_string(unpack_data, length, distance);
1354
-				continue;
1355
-			}
1356
-			if (number < 272) {
1357
-				distance = sddecode[number-=263]+1;
1358
-				if ((bits = sdbits[number]) > 0) {
1359
-					distance += getbits(unpack_data) >> (16-bits);
1360
-					addbits(unpack_data, bits);
1361
-				}
1362
-				insert_old_dist(unpack_data, distance);
1363
-				insert_last_match(unpack_data, 2, distance);
1364
-				copy_string(unpack_data, 2, distance);
1365
-				continue;
1366
-			}
1367
-	
1368
-		}
1369
-	}
1370
-	if (retval) {
1371
-		unp_write_buf(unpack_data);
1372
-	}
1373
-	cli_dbgmsg("Finished length: %ld\n", unpack_data->written_size);
1374
-	return retval;
1375
-}
1376
-
1377
-static int rar_unpack(int fd, int method, int solid, unpack_data_t *unpack_data)
1378
-{
1379
-	int retval = FALSE;
1380
-	switch(method) {
1381
-	case 15:
1382
-		retval = rar_unpack15(fd, solid, unpack_data);
1383
-		break;
1384
-	case 20:
1385
-	case 26:
1386
-		retval = rar_unpack20(fd, solid, unpack_data);
1387
-		break;
1388
-	case 29:
1389
-		retval = rar_unpack29(fd, solid, unpack_data);
1390
-		break;
1391
-	default:
1392
-		cli_errmsg("ERROR: Unknown RAR pack method: %d\n", method);
1393
-		break;
1394
-	}
1395
-	return retval;
1396
-}
1397
-
1398
-int cli_unrar_open(int fd, const char *dirname, rar_state_t* state)
1399
-{
1400
-	int ofd, retval;
1401
-	unsigned char filename[1024];
1402
-	unpack_data_t *unpack_data;
1403
-	main_header_t *main_hdr;
1404
-	off_t offset;
1405
-
1406
-	cli_dbgmsg("in cli_unrar\n");
1407
-	if(!state) {
1408
-		return CL_ENULLARG;
1409
-	}
1410
-	if (!is_rar_archive(fd)) {
1411
-		return CL_EFORMAT;
1412
-	}
1413
-	unpack_data = cli_malloc(sizeof(unpack_data_t));
1414
-	if(!unpack_data) {
1415
-	    cli_dbgmsg("unrar: cli_unrar: cli_malloc failed for unpack_data\n");
1416
-	    return CL_EMEM;
1417
-	}
1418
-	unpack_data->rarvm_data.mem = NULL;
1419
-	unpack_data->old_filter_lengths = NULL;
1420
-	unpack_data->PrgStack.array = unpack_data->Filters.array = NULL;
1421
-	unpack_data->PrgStack.num_items = unpack_data->Filters.num_items = 0;
1422
-	unpack_data->unp_crc = 0xffffffff;
1423
-
1424
-	/* unpack_init_data(FALSE, unpack_data); */
1425
-	ppm_constructor(&unpack_data->ppm_data);
1426
-	
1427
-	main_hdr = read_header(fd, MAIN_HEAD);
1428
-	if (!main_hdr) {
1429
-		ppm_destructor(&unpack_data->ppm_data);
1430
-		init_filters(unpack_data);
1431
-		unpack_free_data(unpack_data);
1432
-		free(unpack_data);
1433
-		return CL_ERAR;
1434
-	}
1435
-	cli_dbgmsg("Head CRC: %.4x\n", main_hdr->head_crc);
1436
-	cli_dbgmsg("Head Type: %.2x\n", main_hdr->head_type);
1437
-	cli_dbgmsg("Flags: %.4x\n", main_hdr->flags);
1438
-	cli_dbgmsg("Head Size: %.4x\n", main_hdr->head_size);
1439
-
1440
-	snprintf(filename,1024,"%s/comments",dirname);
1441
-	if(mkdir(filename,0700)) {
1442
-		cli_dbgmsg("cli_unrar: Unable to create comment temporary directory\n");
1443
-		free(main_hdr);
1444
-		ppm_destructor(&unpack_data->ppm_data);
1445
-		init_filters(unpack_data);
1446
-		unpack_free_data(unpack_data);
1447
-		free(unpack_data);
1448
-		return CL_ETMPDIR;
1449
-	}
1450
-	state->comment_dir = cli_strdup(filename);
1451
-	if(!state->comment_dir) {
1452
-		free(main_hdr);
1453
-		ppm_destructor(&unpack_data->ppm_data);
1454
-		init_filters(unpack_data);
1455
-		unpack_free_data(unpack_data);
1456
-		free(unpack_data);
1457
-		return CL_EMEM;
1458
-	}
1459
-
1460
-	if (main_hdr->head_size < SIZEOF_NEWMHD) {
1461
-		free(main_hdr);
1462
-		ppm_destructor(&unpack_data->ppm_data);
1463
-		init_filters(unpack_data);
1464
-		unpack_free_data(unpack_data);
1465
-		free(unpack_data);
1466
-		free(state->comment_dir);
1467
-		return CL_EFORMAT;
1468
-	}
1469
-	if (main_hdr->flags & MHD_COMMENT) {
1470
-		comment_header_t *comment_header;
1471
-		cli_dbgmsg("RAR main comment\n");
1472
-		offset = lseek(fd, 0, SEEK_CUR);
1473
-		cli_dbgmsg("Offset: %x\n", offset);
1474
-		comment_header = read_header(fd, COMM_HEAD);
1475
-		if (comment_header) {
1476
-			cli_dbgmsg("Comment type: 0x%.2x\n", comment_header->head_type);
1477
-			cli_dbgmsg("Head size: 0x%.4x\n", comment_header->head_size);
1478
-			cli_dbgmsg("UnPack Size: 0x%.4x\n", comment_header->unpack_size);
1479
-			cli_dbgmsg("UnPack Version: 0x%.2x\n", comment_header->unpack_ver);
1480
-			cli_dbgmsg("Pack Method: 0x%.2x\n", comment_header->method);
1481
-			snprintf(filename, 1024, "%s/main.cmt", state->comment_dir);
1482
-			ofd = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0600);
1483
-			if (ofd < 0) {
1484
-				free(comment_header);
1485
-				cli_dbgmsg("ERROR: Failed to open output file\n");
1486
-				free(main_hdr);
1487
-				ppm_destructor(&unpack_data->ppm_data);
1488
-				init_filters(unpack_data);
1489
-				unpack_free_data(unpack_data);
1490
-				free(unpack_data);
1491
-				free(state->comment_dir);
1492
-				return CL_EIO;
1493
-			} else {
1494
-				if (comment_header->method == 0x30) {
1495
-					cli_dbgmsg("Copying stored comment (not packed)\n");
1496
-					copy_file_data(fd, ofd, comment_header->unpack_size);
1497
-				} else {
1498
-					unpack_data->ofd = ofd;
1499
-					unpack_data->dest_unp_size = comment_header->unpack_size;
1500
-					unpack_data->pack_size = comment_header->head_size - SIZEOF_COMMHEAD;
1501
-                        		retval = rar_unpack(fd, comment_header->unpack_ver, FALSE, unpack_data);
1502
-					unpack_free_data(unpack_data);
1503
-				}
1504
-				close(ofd);
1505
-			}
1506
-			free(comment_header);
1507
-		}
1508
-		lseek(fd, offset, SEEK_SET);
1509
-	}
1510
-
1511
-	if (main_hdr->head_size > SIZEOF_NEWMHD) {
1512
-		if (!lseek(fd, main_hdr->head_size - SIZEOF_NEWMHD, SEEK_CUR)) {
1513
-			free(main_hdr);
1514
-			ppm_destructor(&unpack_data->ppm_data);
1515
-			init_filters(unpack_data);
1516
-			unpack_free_data(unpack_data);
1517
-			free(unpack_data);
1518
-			free(state->comment_dir);
1519
-			return CL_EFORMAT; /* truncated? */
1520
-		}
1521
-	}
1522
-
1523
-	state->unpack_data = unpack_data;
1524
-	state->main_hdr = main_hdr;
1525
-	state->metadata_tail = state->metadata = NULL;
1526
-	state->file_count = 1;
1527
-	state->offset = offset;
1528
-	state->fd = fd;
1529
-
1530
-	return CL_SUCCESS;
1531
-}
1532
-
1533
-int cli_unrar_extract_next_prepare(rar_state_t* state,const char* dirname)
1534
-{
1535
-	unsigned char filename[1024];
1536
-	int ofd;
1537
-
1538
-	rar_metadata_t *new_metadata;
1539
-	state->file_header = read_block(state->fd, FILE_HEAD);
1540
-	if (!state->file_header) {
1541
-		return CL_BREAK;/* end of archive */
1542
-	}
1543
-	new_metadata = cli_malloc(sizeof(rar_metadata_t));
1544
-	if (!new_metadata) {
1545
-		return CL_EMEM;
1546
-	}
1547
-	new_metadata->pack_size = state->file_header->high_pack_size * 0x100000000 + state->file_header->pack_size;
1548
-	new_metadata->unpack_size = state->file_header->high_unpack_size * 0x100000000 + state->file_header->unpack_size;
1549
-	new_metadata->crc = state->file_header->file_crc;
1550
-	new_metadata->method = state->file_header->method;
1551
-	new_metadata->filename = cli_strdup(state->file_header->filename);
1552
-	new_metadata->next = NULL;
1553
-	new_metadata->encrypted = FALSE;
1554
-	if (state->metadata_tail == NULL) {
1555
-		state->metadata_tail = state->metadata = new_metadata;
1556
-	} else {
1557
-		state->metadata_tail->next = new_metadata;
1558
-		state->metadata_tail = new_metadata;
1559
-	}
1560
-	if (state->file_header->flags & LHD_COMMENT) {
1561
-		comment_header_t *comment_header;
1562
-		
1563
-		cli_dbgmsg("File comment present\n");
1564
-		comment_header = read_header(state->fd, COMM_HEAD);
1565
-		if (comment_header) {
1566
-			cli_dbgmsg("Comment type: 0x%.2x\n", comment_header->head_type);
1567
-			cli_dbgmsg("Head size: 0x%.4x\n", comment_header->head_size);
1568
-			cli_dbgmsg("UnPack Size: 0x%.4x\n", comment_header->unpack_size);
1569
-			cli_dbgmsg("UnPack Version: 0x%.2x\n", comment_header->unpack_ver);
1570
-			cli_dbgmsg("Pack Method: 0x%.2x\n", comment_header->method);
1571
-			
1572
-			if ((comment_header->unpack_ver < 15) || (comment_header->unpack_ver > 29) ||
1573
-					(comment_header->method > 0x30)) {
1574
-				cli_dbgmsg("Can't process file comment - skipping\n");
1575
-			} else {
1576
-				snprintf(filename, 1024, "%s/%lu.cmt", state->comment_dir, state->file_count);
1577
-				ofd = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0600);
1578
-				if (ofd < 0) {
1579
-					free(comment_header);
1580
-					cli_dbgmsg("ERROR: Failed to open output file\n");
1581
-				} else {
1582
-					cli_dbgmsg("Copying file comment (not packed)\n");
1583
-					copy_file_data(state->fd, ofd, comment_header->unpack_size);
1584
-					close(ofd);
1585
-				}
1586
-			}
1587
-			free(comment_header);
1588
-		}
1589
-	}
1590
-	return CL_SUCCESS;
1591
-}
1592
-
1593
-int cli_unrar_extract_next(rar_state_t* state,const char* dirname)
1594
-{
1595
-	int ofd;
1596
-	int retval;
1597
-
1598
-	if (lseek(state->fd, state->file_header->start_offset+state->file_header->head_size, SEEK_SET) !=
1599
-			state->file_header->start_offset+state->file_header->head_size) {
1600
-		cli_dbgmsg("Seek failed: %ld\n", state->offset+state->file_header->head_size);
1601
-		free(state->file_header->filename);
1602
-		free(state->file_header);
1603
-		return CL_ERAR;
1604
-	}
1605
-	if (state->file_header->flags & LHD_PASSWORD) {
1606
-		cli_dbgmsg("PASSWORDed file: %s\n", state->file_header->filename);
1607
-		state->metadata_tail->encrypted = TRUE;
1608
-
1609
-	} else if(state->file_header->flags & (LHD_SPLIT_BEFORE | LHD_SPLIT_AFTER)) {
1610
-	        cli_dbgmsg("Skipping split file\n");
1611
-
1612
-	} else if((state->main_hdr->flags & MHD_VOLUME) && (state->main_hdr->flags & MHD_SOLID)) {
1613
-	        cli_dbgmsg("Skipping file inside multi-volume solid archive\n");
1614
-
1615
-	} else /*if (file_header->unpack_size)*/ {
1616
-		snprintf(state->filename, 1024, "%s/%lu.ura", dirname, state->file_count);
1617
-		ofd = open(state->filename, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0600);
1618
-		if (ofd < 0) {
1619
-			free(state->file_header->filename);
1620
-			free(state->file_header);
1621
-			cli_dbgmsg("ERROR: Failed to open output file\n");
1622
-			return CL_EOPEN;
1623
-		}
1624
-		state->unpack_data->ofd = ofd;
1625
-		if (state->file_header->method == 0x30) {
1626
-			cli_dbgmsg("Copying stored file (not packed)\n");
1627
-			copy_file_data(state->fd, ofd, state->file_header->pack_size);
1628
-		} else {
1629
-			state->unpack_data->dest_unp_size = state->file_header->unpack_size;
1630
-			state->unpack_data->pack_size = state->file_header->pack_size;
1631
-			if (state->file_header->unpack_ver <= 15) {
1632
-				retval = rar_unpack(state->fd, 15, (state->file_count>1) &&
1633
-						((state->main_hdr->flags&MHD_SOLID)!=0), state->unpack_data);
1634
-			} else {
1635
-				if ((state->file_count == 1) && (state->file_header->flags & LHD_SOLID)) {
1636
-					cli_warnmsg("RAR: Bad header. First file can't be SOLID.\n");
1637
-					cli_warnmsg("RAR: Clearing flag and continuing.\n");
1638
-					state->file_header->flags -= LHD_SOLID;
1639
-				}
1640
-				retval = rar_unpack(state->fd, state->file_header->unpack_ver,
1641
-							state->file_header->flags & LHD_SOLID,	state->unpack_data);
1642
-			}
1643
-			cli_dbgmsg("Expected File CRC: 0x%x\n", state->file_header->file_crc);
1644
-			cli_dbgmsg("Computed File CRC: 0x%x\n", state->unpack_data->unp_crc^0xffffffff);
1645
-			if (state->unpack_data->unp_crc != 0xffffffff) {
1646
-				if (state->file_header->file_crc != (state->unpack_data->unp_crc^0xffffffff)) {
1647
-					cli_warnmsg("RAR CRC error. If the file is not corrupted, please report at http://bugs.clamav.net/\n");
1648
-				}
1649
-			}
1650
-			if (!retval) {
1651
-				cli_dbgmsg("Corrupt file detected\n");
1652
-				if (state->file_header->flags & LHD_SOLID) {
1653
-					cli_dbgmsg("SOLID archive, can't continue\n");
1654
-					free(state->file_header->filename);
1655
-					free(state->file_header);
1656
-					
1657
-					return CL_ERAR;
1658
-				}
1659
-			}
1660
-		}
1661
-		
1662
-	}
1663
-	if (lseek(state->fd, state->file_header->next_offset, SEEK_SET) != state->file_header->next_offset) {
1664
-		cli_dbgmsg("ERROR: seek failed: %ld\n", state->file_header->next_offset);
1665
-		free(state->file_header->filename);
1666
-		free(state->file_header);
1667
-		return CL_ERAR;
1668
-	}
1669
-	free(state->file_header->filename);
1670
-	free(state->file_header);
1671
-	unpack_free_data(state->unpack_data);
1672
-	state->file_count++;
1673
-	return CL_SUCCESS;
1674
-}
1675
-
1676
-void cli_unrar_close(rar_state_t* state)
1677
-{
1678
-	ppm_destructor(&state->unpack_data->ppm_data);
1679
-	free(state->main_hdr);
1680
-	init_filters(state->unpack_data);
1681
-	unpack_free_data(state->unpack_data);
1682
-	free(state->unpack_data);
1683
-	free(state->comment_dir);
1684
-}
1685 1
deleted file mode 100644
... ...
@@ -1,352 +0,0 @@
1
-/*
2
- * Extract RAR archives
3
- *
4
- * Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- * This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- * The unRAR sources may be used in any software to handle RAR
9
- * archives without limitations free of charge, but cannot be used
10
- * to re-create the RAR compression algorithm, which is proprietary.
11
- * Distribution of modified unRAR sources in separate form or as a
12
- * part of other software is permitted, provided that it is clearly
13
- * stated in the documentation and source comments that the code may
14
- * not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-
19
-#ifndef UNRAR_H
20
-#define UNRAR_H 1
21
-
22
-#include <sys/types.h>
23
-#ifdef	HAVE_UNISTD_H
24
-#include <unistd.h>
25
-#endif
26
-
27
-/*	#define RAR_HIGH_DEBUG */
28
-
29
-struct unpack_data_tag;
30
-
31
-#include "unrarppm.h"
32
-#include "unrarvm.h"
33
-#include "unrarcmd.h"
34
-#include "unrarfilter.h"
35
-#include "clamav.h"
36
-
37
-#define FALSE (0)
38
-#define TRUE (1)
39
-#ifndef MIN
40
-#define MIN(a,b) ((a < b) ? a : b)
41
-#endif
42
-
43
-typedef struct rar_metadata_tag
44
-{
45
-	uint64_t pack_size;
46
-	uint64_t unpack_size;
47
-	uint32_t crc;
48
-	unsigned int encrypted;
49
-	uint8_t method;
50
-	unsigned char *filename;
51
-	struct rar_metadata_tag *next;
52
-} rar_metadata_t;
53
-
54
-
55
-#define SIZEOF_MARKHEAD 7
56
-#define SIZEOF_NEWMHD 13
57
-#define SIZEOF_NEWLHD 32
58
-#define SIZEOF_SHORTBLOCKHEAD 7
59
-#define SIZEOF_LONGBLOCKHEAD 11
60
-#define SIZEOF_SUBBLOCKHEAD 14
61
-#define SIZEOF_COMMHEAD 13
62
-#define SIZEOF_PROTECTHEAD 26
63
-#define SIZEOF_AVHEAD 14
64
-#define SIZEOF_SIGNHEAD 15
65
-#define SIZEOF_UOHEAD 18
66
-#define SIZEOF_MACHEAD 22
67
-#define SIZEOF_EAHEAD 24
68
-#define SIZEOF_BEEAHEAD 24
69
-#define SIZEOF_STREAMHEAD 26
70
-
71
-#define MHD_VOLUME		0x0001
72
-#define MHD_COMMENT		0x0002
73
-#define MHD_LOCK		0x0004
74
-#define MHD_SOLID		0x0008
75
-#define MHD_PACK_COMMENT	0x0010
76
-#define MHD_NEWNUMBERING	0x0010
77
-#define MHD_AV			0x0020
78
-#define MHD_PROTECT		0x0040
79
-#define MHD_PASSWORD		0x0080
80
-#define MHD_FIRSTVOLUME		0x0100
81
-#define MHD_ENCRYPTVER		0x0200
82
-
83
-#define LHD_SPLIT_BEFORE	0x0001
84
-#define LHD_SPLIT_AFTER		0x0002
85
-#define LHD_PASSWORD		0x0004
86
-#define LHD_COMMENT		0x0008
87
-#define LHD_SOLID		0x0010
88
-
89
-#define LONG_BLOCK         0x8000
90
-
91
-#define NC                 299  /* alphabet = {0, 1, 2, ..., NC - 1} */
92
-#define DC                 60
93
-#define RC		    28
94
-#define LDC		    17
95
-#define BC		    20
96
-#define HUFF_TABLE_SIZE    (NC+DC+RC+LDC)
97
-
98
-#define MAX_BUF_SIZE        32768
99
-#define MAXWINSIZE          0x400000
100
-#define MAXWINMASK          (MAXWINSIZE-1)
101
-#define LOW_DIST_REP_COUNT  16
102
-
103
-typedef struct mark_header_tag
104
-{
105
-	unsigned char mark[SIZEOF_MARKHEAD];
106
-} mark_header_t;
107
-
108
-#ifndef HAVE_ATTRIB_PACKED
109
-#define __attribute__(x)
110
-#endif
111
-
112
-#ifdef HAVE_PRAGMA_PACK
113
-#pragma pack(1)
114
-#endif
115
-
116
-#ifdef HAVE_PRAGMA_PACK_HPPA
117
-#pragma pack 1
118
-#endif
119
-
120
-typedef struct main_header_tag
121
-{
122
-	uint16_t head_crc __attribute__ ((packed));
123
-	uint8_t head_type;
124
-	uint16_t flags __attribute__ ((packed));
125
-	uint16_t head_size __attribute__ ((packed));
126
-	uint16_t highposav __attribute__ ((packed));
127
-	uint32_t posav __attribute__ ((packed));
128
-} main_header_t;
129
-
130
-typedef struct file_header_tag
131
-{
132
-	uint16_t head_crc __attribute__ ((packed));
133
-	uint8_t head_type;
134
-	uint16_t flags __attribute__ ((packed));
135
-	uint16_t head_size __attribute__ ((packed));
136
-	uint32_t pack_size __attribute__ ((packed));
137
-	uint32_t unpack_size __attribute__ ((packed));
138
-	uint8_t host_os;
139
-	uint32_t file_crc __attribute__ ((packed));
140
-	uint32_t file_time __attribute__ ((packed));
141
-	uint8_t unpack_ver;
142
-	uint8_t method;
143
-	uint16_t name_size __attribute__ ((packed));
144
-	uint32_t file_attr __attribute__ ((packed));
145
-	uint32_t high_pack_size __attribute__ ((packed));   /* optional */
146
-	uint32_t high_unpack_size __attribute__ ((packed)); /* optional */
147
-	unsigned char *filename __attribute__ ((packed));
148
-	off_t start_offset __attribute__ ((packed));
149
-	off_t next_offset __attribute__ ((packed));
150
-} file_header_t;
151
-
152
-typedef struct comment_header_tag
153
-{
154
-	uint16_t head_crc __attribute__ ((packed));
155
-	uint8_t head_type;
156
-	uint16_t flags __attribute__ ((packed));
157
-	uint16_t head_size __attribute__ ((packed));
158
-	uint16_t unpack_size __attribute__ ((packed));
159
-	uint8_t unpack_ver;
160
-	uint8_t method;
161
-	uint16_t comm_crc __attribute__ ((packed));
162
-} comment_header_t;
163
-
164
-struct Decode
165
-{
166
-  unsigned int MaxNum;
167
-  unsigned int DecodeLen[16];
168
-  unsigned int DecodePos[16];
169
-  unsigned int DecodeNum[2];
170
-};
171
-
172
-struct LitDecode
173
-{
174
-  unsigned int MaxNum;
175
-  unsigned int DecodeLen[16];
176
-  unsigned int DecodePos[16];
177
-  unsigned int DecodeNum[NC];
178
-};
179
-
180
-struct DistDecode
181
-{
182
-  unsigned int MaxNum;
183
-  unsigned int DecodeLen[16];
184
-  unsigned int DecodePos[16];
185
-  unsigned int DecodeNum[DC];
186
-};
187
-
188
-struct LowDistDecode
189
-{
190
-  unsigned int MaxNum;
191
-  unsigned int DecodeLen[16];
192
-  unsigned int DecodePos[16];
193
-  unsigned int DecodeNum[LDC];
194
-};
195
-
196
-struct RepDecode
197
-{
198
-  unsigned int MaxNum;
199
-  unsigned int DecodeLen[16];
200
-  unsigned int DecodePos[16];
201
-  unsigned int DecodeNum[RC];
202
-};
203
-
204
-struct BitDecode
205
-{
206
-  unsigned int MaxNum;
207
-  unsigned int DecodeLen[16];
208
-  unsigned int DecodePos[16];
209
-  unsigned int DecodeNum[BC];
210
-};
211
-
212
-struct UnpackFilter
213
-{
214
-  unsigned int block_start;
215
-  unsigned int block_length;
216
-  unsigned int exec_count;
217
-  int next_window;
218
-  struct rarvm_prepared_program prg;
219
-};
220
-
221
-/* RAR2 structures */
222
-#define MC20 257
223
-struct MultDecode
224
-{
225
-  unsigned int MaxNum;
226
-  unsigned int DecodeLen[16];
227
-  unsigned int DecodePos[16];
228
-  unsigned int DecodeNum[MC20];
229
-};
230
-
231
-struct AudioVariables
232
-{
233
-  int K1,K2,K3,K4,K5;
234
-  int D1,D2,D3,D4;
235
-  int last_delta;
236
-  unsigned int dif[11];
237
-  unsigned int byte_count;
238
-  int last_char;
239
-};
240
-/* *************** */
241
-
242
-typedef struct unpack_data_tag
243
-{
244
-	int ofd;
245
-	
246
-	unsigned char in_buf[MAX_BUF_SIZE];
247
-	uint8_t window[MAXWINSIZE];
248
-	int in_addr;
249
-	int in_bit;
250
-	unsigned int unp_ptr;
251
-	unsigned int wr_ptr;
252
-	int tables_read;
253
-	int read_top;
254
-	int read_border;
255
-	int unp_block_type;
256
-	int prev_low_dist;
257
-	int low_dist_rep_count;
258
-	unsigned char unp_old_table[HUFF_TABLE_SIZE];
259
-	struct LitDecode LD;
260
-	struct DistDecode DD;
261
-	struct LowDistDecode LDD;
262
-	struct RepDecode RD;
263
-	struct BitDecode BD;
264
-	unsigned int old_dist[4];
265
-	unsigned int old_dist_ptr;
266
-	unsigned int last_dist;
267
-	unsigned int last_length;
268
-	ppm_data_t ppm_data;
269
-	int ppm_esc_char;
270
-	int ppm_error;
271
-	rar_filter_array_t Filters;
272
-	rar_filter_array_t PrgStack;
273
-	int *old_filter_lengths;
274
-	int last_filter, old_filter_lengths_size;
275
-	int64_t written_size;
276
-	int64_t dest_unp_size;
277
-	uint32_t pack_size;
278
-	rarvm_data_t rarvm_data;
279
-	unsigned int unp_crc;
280
-	
281
-	/* RAR2 variables */
282
-	int unp_cur_channel, unp_channel_delta, unp_audio_block, unp_channels;
283
-	unsigned char unp_old_table20[MC20 * 4];
284
-	struct MultDecode MD[4];
285
-	struct AudioVariables audv[4];
286
-	
287
-	/* RAR1 variables */
288
-	unsigned int  flag_buf, avr_plc, avr_plcb, avr_ln1, avr_ln2, avr_ln3;
289
-	int buf60, num_huf, st_mode, lcount, flags_cnt;
290
-	unsigned int nhfb, nlzb, max_dist3;
291
-	unsigned int chset[256], chseta[256], chsetb[256], chsetc[256];
292
-	unsigned int place[256], placea[256], placeb[256], placec[256];
293
-	unsigned int ntopl[256], ntoplb[256], ntoplc[256];
294
-} unpack_data_t;
295
-
296
-typedef struct rar_state_tag {
297
-	file_header_t* file_header;
298
-	rar_metadata_t *metadata;
299
-	rar_metadata_t *metadata_tail;
300
-	unpack_data_t *unpack_data;
301
-	main_header_t *main_hdr;
302
-	const char* comment_dir;
303
-	unsigned long file_count;
304
-	off_t offset;
305
-	int fd;
306
-	char  filename[1024];
307
-} rar_state_t;
308
-
309
-typedef enum
310
-{
311
-	ALL_HEAD=0,
312
-	MARK_HEAD=0x72,
313
-	MAIN_HEAD=0x73,
314
-	FILE_HEAD=0x74,
315
-	COMM_HEAD=0x75,
316
-	AV_HEAD=0x76,
317
-	SUB_HEAD=0x77,
318
-	PROTECT_HEAD=0x78,
319
-	SIGN_HEAD=0x79,
320
-	NEWSUB_HEAD=0x7a,
321
-	ENDARC_HEAD=0x7b
322
-} header_type;
323
-
324
-enum BLOCK_TYPES
325
-{
326
-	BLOCK_LZ,
327
-	BLOCK_PPM
328
-};
329
-
330
-
331
-int cli_unrar_extract_next(rar_state_t* state,const char* dirname);
332
-int cli_unrar_extract_next_prepare(rar_state_t* state,const char* dirname);
333
-int cli_unrar_open(int fd, const char *dirname, rar_state_t* state);
334
-void cli_unrar_close(rar_state_t* state);
335
-unsigned int rar_get_char(int fd, unpack_data_t *unpack_data);
336
-void addbits(unpack_data_t *unpack_data, int bits);
337
-unsigned int getbits(unpack_data_t *unpack_data);
338
-int unp_read_buf(int fd, unpack_data_t *unpack_data);
339
-void unpack_init_data(int solid, unpack_data_t *unpack_data);
340
-void make_decode_tables(unsigned char *len_tab, struct Decode *decode, int size);
341
-void unp_write_buf_old(unpack_data_t *unpack_data);
342
-int decode_number(unpack_data_t *unpack_data, struct Decode *decode);
343
-
344
-#ifdef HAVE_PRAGMA_PACK
345
-#pragma pack()
346
-#endif
347
-
348
-#ifdef HAVE_PRAGMA_PACK_HPPA
349
-#pragma pack
350
-#endif
351
-
352
-#endif
353 1
deleted file mode 100644
... ...
@@ -1,503 +0,0 @@
1
-/*
2
- *  Extract RAR archives
3
- *
4
- *  Copyright (C) 2005 trog@uncon.org
5
- *
6
- *  This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- *  The unRAR sources may be used in any software to handle RAR
9
- *  archives without limitations free of charge, but cannot be used
10
- *  to re-create the RAR compression algorithm, which is proprietary.
11
- *  Distribution of modified unRAR sources in separate form or as a
12
- *  part of other software is permitted, provided that it is clearly
13
- *  stated in the documentation and source comments that the code may
14
- *  not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-#include "unrar.h"
19
-#include "unrar15.h"
20
-#include <string.h>
21
-
22
-#define STARTL1  2
23
-static unsigned int dec_l1[]={0x8000,0xa000,0xc000,0xd000,0xe000,0xea00,
24
-			0xee00,0xf000,0xf200,0xf200,0xffff};
25
-static unsigned int pos_l1[]={0,0,0,2,3,5,7,11,16,20,24,32,32};
26
-
27
-#define STARTL2  3
28
-static unsigned int dec_l2[]={0xa000,0xc000,0xd000,0xe000,0xea00,0xee00,
29
-			0xf000,0xf200,0xf240,0xffff};
30
-static unsigned int pos_l2[]={0,0,0,0,5,7,9,13,18,22,26,34,36};
31
-
32
-#define STARTHF0  4
33
-static unsigned int dec_hf0[]={0x8000,0xc000,0xe000,0xf200,0xf200,0xf200,
34
-			0xf200,0xf200,0xffff};
35
-static unsigned int pos_hf0[]={0,0,0,0,0,8,16,24,33,33,33,33,33};
36
-
37
-
38
-#define STARTHF1  5
39
-static unsigned int dec_hf1[]={0x2000,0xc000,0xe000,0xf000,0xf200,0xf200,
40
-			0xf7e0,0xffff};
41
-static unsigned int pos_hf1[]={0,0,0,0,0,0,4,44,60,76,80,80,127};
42
-
43
-
44
-#define STARTHF2  5
45
-static unsigned int dec_hf2[]={0x1000,0x2400,0x8000,0xc000,0xfa00,0xffff,
46
-			0xffff,0xffff};
47
-static unsigned int pos_hf2[]={0,0,0,0,0,0,2,7,53,117,233,0,0};
48
-
49
-
50
-#define STARTHF3  6
51
-static unsigned int dec_hf3[]={0x800,0x2400,0xee00,0xfe80,0xffff,0xffff,
52
-			0xffff};
53
-static unsigned int pos_hf3[]={0,0,0,0,0,0,0,2,16,218,251,0,0};
54
-
55
-
56
-#define STARTHF4  8
57
-static unsigned int dec_hf4[]={0xff00,0xffff,0xffff,0xffff,0xffff,0xffff};
58
-static unsigned int pos_hf4[]={0,0,0,0,0,0,0,0,0,255,0,0,0};
59
-
60
-static void unpack_init_data15(int solid, unpack_data_t *unpack_data)
61
-{
62
-	if (!solid) {
63
-		unpack_data->avr_plcb = unpack_data->avr_ln1 = unpack_data->avr_ln2 =
64
-			unpack_data->avr_ln3 = unpack_data->num_huf =
65
-			unpack_data->buf60 = 0;
66
-		unpack_data->avr_plc = 0x3500;
67
-		unpack_data->max_dist3 = 0x2001;
68
-		unpack_data->nhfb = unpack_data->nlzb = 0x80;
69
-	}
70
-	
71
-	unpack_data->flags_cnt = 0;
72
-	unpack_data->flag_buf = 0;
73
-	unpack_data->st_mode = 0;
74
-	unpack_data->lcount = 0;
75
-	unpack_data->read_top = 0;
76
-}
77
-
78
-static void corr_huff(unpack_data_t *unpack_data, unsigned int *char_set,
79
-			unsigned int *num_to_place)
80
-{
81
-	int i, j;
82
-	
83
-	for (i=7 ; i >= 0 ; i--) {
84
-		for (j=0 ; j < 32 ; j++, char_set++) {
85
-			*char_set = (*char_set & ~0xff) | i;
86
-		}
87
-	}
88
-	memset(num_to_place, 0, sizeof(unpack_data->ntopl));
89
-	for (i=6 ; i >= 0 ; i--) {
90
-		num_to_place[i] = (7-i) * 32;
91
-	}
92
-}
93
-
94
-static void init_huff(unpack_data_t *unpack_data)
95
-{
96
-	unsigned int i;
97
-	
98
-	for (i=0 ; i<256 ; i++) {
99
-		unpack_data->place[i] = unpack_data->placea[i] = unpack_data->placeb[i] = i;
100
-		unpack_data->placec[i] = (~i+1) & 0xff;
101
-		unpack_data->chset[i] = unpack_data->chsetb[i] = i << 8;
102
-		unpack_data->chseta[i] = i;
103
-		unpack_data->chsetc[i] = ((~i+1) & 0xff) << 8;
104
-	}
105
-	memset(unpack_data->ntopl, 0, sizeof(unpack_data->ntopl));
106
-	memset(unpack_data->ntoplb, 0, sizeof(unpack_data->ntoplb));
107
-	memset(unpack_data->ntoplc, 0, sizeof(unpack_data->ntoplc));
108
-	corr_huff(unpack_data, unpack_data->chsetb, unpack_data->ntoplb);
109
-}
110
-
111
-static void copy_string15(unpack_data_t *unpack_data, unsigned int distance,
112
-				unsigned int length)
113
-{
114
-	unpack_data->dest_unp_size -= length;
115
-	while (length--) {
116
-		unpack_data->window[unpack_data->unp_ptr] =
117
-			unpack_data->window[(unpack_data->unp_ptr - distance) & MAXWINMASK];
118
-		unpack_data->unp_ptr = (unpack_data->unp_ptr + 1) & MAXWINMASK;
119
-	}
120
-}
121
-
122
-static unsigned int decode_num(unpack_data_t *unpack_data, int num, unsigned int start_pos,
123
-			unsigned int *dec_tab, unsigned int *pos_tab)
124
-{
125
-	int i;
126
-	
127
-	for (num&=0xfff0, i=0 ; dec_tab[i] <= num ; i++) {
128
-		start_pos++;
129
-	}
130
-	addbits(unpack_data, start_pos);
131
-	return (((num-(i ? dec_tab[i-1]:0)) >> (16-start_pos)) + pos_tab[start_pos]);
132
-}
133
-
134
-static void huff_decode(unpack_data_t *unpack_data)
135
-{
136
-	unsigned int cur_byte, new_byte_place, length, distance, bit_field;
137
-	int byte_place;
138
-	
139
-	bit_field = getbits(unpack_data);
140
-	
141
-	if (unpack_data->avr_plc > 0x75ff) {
142
-		byte_place = decode_num(unpack_data, bit_field,
143
-					STARTHF4, dec_hf4, pos_hf4);
144
-	} else if (unpack_data->avr_plc > 0x5dff) {
145
-		byte_place = decode_num(unpack_data, bit_field,
146
-					STARTHF3, dec_hf3, pos_hf3);
147
-	} else if (unpack_data->avr_plc > 0x35ff) {
148
-		byte_place = decode_num(unpack_data, bit_field,
149
-					STARTHF2, dec_hf2, pos_hf2);
150
-	} else if (unpack_data->avr_plc > 0x0dff) {
151
-		byte_place = decode_num(unpack_data, bit_field,
152
-					STARTHF1, dec_hf1, pos_hf1);
153
-	} else {
154
-		byte_place = decode_num(unpack_data, bit_field,
155
-					STARTHF0, dec_hf0, pos_hf0);
156
-	}
157
-	
158
-	byte_place &= 0xff;
159
-	if (unpack_data->st_mode) {
160
-		if (byte_place == 0 && bit_field > 0xfff) {
161
-			byte_place = 0x100;
162
-		}
163
-		if (--byte_place == -1) {
164
-			bit_field = getbits(unpack_data);
165
-			addbits(unpack_data, 1);
166
-			if (bit_field & 0x8000) {
167
-				unpack_data->num_huf = unpack_data->st_mode = 0;
168
-				return;
169
-			} else {
170
-				length = (bit_field & 0x4000) ? 4 : 3;
171
-				addbits(unpack_data, 1);
172
-				distance = decode_num(unpack_data, getbits(unpack_data),
173
-					STARTHF2, dec_hf2, pos_hf2);
174
-				distance = (distance << 5) | (getbits(unpack_data) >> 11);
175
-				addbits(unpack_data, 5);
176
-				copy_string15(unpack_data, distance, length);
177
-				return;
178
-			}
179
-		}
180
-	} else if (unpack_data->num_huf++ >= 16 && unpack_data->flags_cnt == 0) {
181
-		unpack_data->st_mode = 1;
182
-	}
183
-	unpack_data->avr_plc += byte_place;
184
-	unpack_data->avr_plc -= unpack_data->avr_plc >> 8;
185
-	unpack_data->nhfb += 16;
186
-	if (unpack_data->nhfb > 0xff) {
187
-		unpack_data->nhfb = 0x90;
188
-		unpack_data->nlzb >>= 1;
189
-	}
190
-	
191
-	unpack_data->window[unpack_data->unp_ptr++] = 
192
-			(unsigned char) (unpack_data->chset[byte_place] >>8);
193
-	--unpack_data->dest_unp_size;
194
-	
195
-	while (1) {
196
-		cur_byte = unpack_data->chset[byte_place];
197
-		new_byte_place = unpack_data->ntopl[cur_byte++ & 0xff]++;
198
-		if ((cur_byte & 0xff) > 0xa1) {
199
-			corr_huff(unpack_data, unpack_data->chset, unpack_data->ntopl);
200
-		} else {
201
-			break;
202
-		}
203
-	}
204
-	
205
-	unpack_data->chset[byte_place] = unpack_data->chset[new_byte_place];
206
-	unpack_data->chset[new_byte_place] = cur_byte;
207
-}
208
-
209
-	
210
-	
211
-static void get_flag_buf(unpack_data_t *unpack_data)
212
-{
213
-	unsigned int flags, new_flags_place, flags_place;
214
-	
215
-	flags_place = decode_num(unpack_data, getbits(unpack_data), STARTHF2,
216
-				dec_hf2, pos_hf2);
217
-	for (;;) {
218
-		flags = unpack_data->chsetc[flags_place];
219
-		unpack_data->flag_buf = flags >> 8;
220
-		new_flags_place = unpack_data->ntoplc[flags++ & 0xff]++;
221
-		if ((flags & 0xff) != 0) {
222
-			break;
223
-		}
224
-		corr_huff(unpack_data, unpack_data->chsetc, unpack_data->ntoplc);
225
-	}
226
-	unpack_data->chsetc[flags_place] = unpack_data->chsetc[new_flags_place];
227
-	unpack_data->chsetc[new_flags_place] = flags;
228
-}
229
-
230
-static void short_lz(unpack_data_t *unpack_data)
231
-{
232
-	static unsigned int short_len1[]={1,3,4,4,5,6,7,8,8,4,4,5,6,6,4,0};
233
-	static unsigned int short_xor1[]={0,0xa0,0xd0,0xe0,0xf0,0xf8,0xfc,0xfe,
234
-			0xff,0xc0,0x80,0x90,0x98,0x9c,0xb0};
235
-	static unsigned int short_len2[]={2,3,3,3,4,4,5,6,6,4,4,5,6,6,4,0};
236
-	static unsigned int short_xor2[]={0,0x40,0x60,0xa0,0xd0,0xe0,0xf0,0xf8,
237
-			0xfc,0xc0,0x80,0x90,0x98,0x9c,0xb0};
238
-
239
-	unsigned int length, save_length, last_distance, distance, bit_field;
240
-	int distance_place;
241
-	
242
-	unpack_data->num_huf = 0;
243
-	bit_field = getbits(unpack_data);
244
-	if (unpack_data->lcount == 2) {
245
-		addbits(unpack_data, 1);
246
-		if (bit_field >= 0x8000) {
247
-			copy_string15(unpack_data,
248
-				(unsigned int)unpack_data->last_dist,
249
-				unpack_data->last_length);
250
-			return;
251
-		}
252
-		bit_field <<= 1;
253
-		unpack_data->lcount = 0;
254
-	}
255
-	
256
-	bit_field >>= 8;
257
-	short_len1[1] = short_len2[3] = unpack_data->buf60+3;
258
-	if (unpack_data->avr_ln1 < 37) {
259
-		for (length=0 ;; length++) {
260
-			if (((bit_field^short_xor1[length]) &
261
-					(~(0xff>>short_len1[length]))) == 0) {
262
-				break;
263
-			}
264
-		}
265
-		addbits(unpack_data, short_len1[length]);
266
-	} else {
267
-		for (length=0; ;length++) {
268
-				if (((bit_field^short_xor2[length]) &
269
-						(~(0xff>>short_len2[length]))) == 0) {
270
-					break;
271
-				}
272
-		}
273
-		addbits(unpack_data, short_len2[length]);
274
-	}
275
-	
276
-	if (length >= 9) {
277
-		if (length == 9) {
278
-			unpack_data->lcount++;
279
-			copy_string15(unpack_data, (unsigned int) unpack_data->last_dist,
280
-				unpack_data->last_length);
281
-			return;
282
-		}
283
-		if (length == 14) {
284
-			unpack_data->lcount = 0;
285
-			length = decode_num(unpack_data, getbits(unpack_data),
286
-					STARTL2, dec_l2, pos_l2) + 5;
287
-			distance = (getbits(unpack_data) >> 1) | 0x8000;
288
-			addbits(unpack_data, 15);
289
-			unpack_data->last_length = length;
290
-			unpack_data->last_dist = distance;
291
-			copy_string15(unpack_data, distance, length);
292
-			return;
293
-		}
294
-		
295
-		unpack_data->lcount = 0;
296
-		save_length = length;
297
-		distance = unpack_data->old_dist[(unpack_data->old_dist_ptr-(length-9)) & 3];
298
-		length = decode_num(unpack_data,
299
-				getbits(unpack_data), STARTL1, dec_l1, pos_l1) + 2;
300
-		if (length == 0x101 && save_length == 10) {
301
-			unpack_data->buf60 ^= 1;
302
-			return;
303
-		}
304
-		if (distance > 256) {
305
-			length++;
306
-		}
307
-		if (distance >= unpack_data->max_dist3) {
308
-			length++;
309
-		}
310
-		
311
-		unpack_data->old_dist[unpack_data->old_dist_ptr++] = distance;
312
-		unpack_data->old_dist_ptr = unpack_data->old_dist_ptr & 3;
313
-		unpack_data->last_length = length;
314
-		unpack_data->last_dist = distance;
315
-		copy_string15(unpack_data, distance, length);
316
-		return;
317
-	}
318
-	
319
-	unpack_data->lcount = 0;
320
-	unpack_data->avr_ln1 += length;
321
-	unpack_data->avr_ln1 -= unpack_data->avr_ln1 >> 4;
322
-	
323
-	distance_place = decode_num(unpack_data, getbits(unpack_data),
324
-					STARTHF2, dec_hf2, pos_hf2) & 0xff;
325
-	distance = unpack_data->chseta[distance_place];
326
-	if (--distance_place != -1) {
327
-		unpack_data->placea[distance]--;
328
-		last_distance = unpack_data->chseta[distance_place];
329
-		unpack_data->placea[last_distance]++;
330
-		unpack_data->chseta[distance_place+1] = last_distance;
331
-		unpack_data->chseta[distance_place] = distance;
332
-	}
333
-	length += 2;
334
-	unpack_data->old_dist[unpack_data->old_dist_ptr++] = ++distance;
335
-	unpack_data->old_dist_ptr = unpack_data->old_dist_ptr & 3;
336
-	unpack_data->last_length = length;
337
-	unpack_data->last_dist = distance;
338
-	copy_string15(unpack_data, distance, length);
339
-}
340
-
341
-static void long_lz(unpack_data_t *unpack_data)
342
-{
343
-	unsigned int length, distance, distance_place, new_distance_place;
344
-	unsigned int old_avr2, old_avr3, bit_field;
345
-	
346
-	unpack_data->num_huf = 0;
347
-	unpack_data->nlzb += 16;
348
-	
349
-	if (unpack_data->nlzb > 0xff) {
350
-		unpack_data->nlzb = 0x90;
351
-		unpack_data->nhfb >>= 1;
352
-	}
353
-	old_avr2 = unpack_data->avr_ln2;
354
-	
355
-	bit_field = getbits(unpack_data);
356
-	if (unpack_data->avr_ln2 >= 122) {
357
-		length = decode_num(unpack_data, bit_field, STARTL2, dec_l2, pos_l2);
358
-	} else if (unpack_data->avr_ln2 >= 64) {
359
-		length = decode_num(unpack_data, bit_field, STARTL1, dec_l1, pos_l1);
360
-	} else if (bit_field < 0x100) {
361
-		length = bit_field;
362
-		addbits(unpack_data, 16);
363
-	} else {
364
-		for (length=0 ; ((bit_field << length) & 0x8000)==0 ; length++) {
365
-			/* Empty loop */
366
-		}
367
-		addbits(unpack_data, length+1);
368
-	}
369
-	
370
-	unpack_data->avr_ln2 += length;
371
-	unpack_data->avr_ln2 -= unpack_data->avr_ln2 >> 5;
372
-	
373
-	bit_field = getbits(unpack_data);
374
-	if (unpack_data->avr_plcb > 0x28ff) {
375
-		distance_place = decode_num(unpack_data, bit_field, STARTHF2,
376
-					dec_hf2, pos_hf2);
377
-	} else if (unpack_data->avr_plcb > 0x6ff) {
378
-		distance_place = decode_num(unpack_data, bit_field, STARTHF1,
379
-					dec_hf1, pos_hf1);
380
-	} else {
381
-		distance_place = decode_num(unpack_data, bit_field, STARTHF0,
382
-					dec_hf0, pos_hf0);
383
-	}
384
-	
385
-	unpack_data->avr_plcb += distance_place;
386
-	unpack_data->avr_plcb -= unpack_data->avr_plcb >> 8;
387
-	for (;;) {
388
-		distance = unpack_data->chsetb[distance_place & 0xff];
389
-		new_distance_place = unpack_data->ntoplb[distance++ & 0xff]++;
390
-		if (!(distance & 0xff)) {
391
-			corr_huff(unpack_data, unpack_data->chsetb, unpack_data->ntoplb);
392
-		} else {
393
-			break;
394
-		}
395
-	}
396
-	
397
-	unpack_data->chsetb[distance_place] = unpack_data->chsetb[new_distance_place];
398
-	unpack_data->chsetb[new_distance_place] = distance;
399
-	
400
-	distance = ((distance & 0xff00) | (getbits(unpack_data) >> 8)) >> 1;
401
-	addbits(unpack_data, 7);
402
-	
403
-	old_avr3 = unpack_data->avr_ln3;
404
-	if (length != 1 && length != 4) {
405
-		if (length==0 && distance <= unpack_data->max_dist3) {
406
-			unpack_data->avr_ln3++;
407
-			unpack_data->avr_ln3 -= unpack_data->avr_ln3 >> 8;
408
-		} else if (unpack_data->avr_ln3 > 0) {
409
-			unpack_data->avr_ln3--;
410
-		}
411
-	}
412
-	
413
-	length += 3;
414
-	
415
-	if (distance >= unpack_data->max_dist3) {
416
-		length++;
417
-	}
418
-	if (distance <= 256) {
419
-		length += 8;
420
-	}
421
-	if (old_avr3 > 0xb0 || (unpack_data->avr_plc >= 0x2a00 && old_avr2 < 0x40)) {
422
-		unpack_data->max_dist3 = 0x7f00;
423
-	} else {
424
-		unpack_data->max_dist3 = 0x2001;
425
-	}
426
-	unpack_data->old_dist[unpack_data->old_dist_ptr++] = distance;
427
-	unpack_data->old_dist_ptr = unpack_data->old_dist_ptr & 3;
428
-	unpack_data->last_length = length;
429
-	unpack_data->last_dist = distance;
430
-	copy_string15(unpack_data, distance, length);
431
-}
432
-
433
-int rar_unpack15(int fd, int solid, unpack_data_t *unpack_data)
434
-{
435
-	unpack_init_data(solid, unpack_data);
436
-	unpack_init_data15(solid, unpack_data);
437
-	if (!unp_read_buf(fd, unpack_data)) {
438
-		return FALSE;
439
-	}
440
-	if (!solid) {
441
-		init_huff(unpack_data);
442
-		unpack_data->unp_ptr = 0;
443
-	} else {
444
-		unpack_data->unp_ptr = unpack_data->wr_ptr;
445
-	}
446
-	--unpack_data->dest_unp_size;
447
-	
448
-	if (unpack_data->dest_unp_size >= 0) {
449
-		get_flag_buf(unpack_data);
450
-		unpack_data->flags_cnt = 8;
451
-	}
452
-	
453
-	while (unpack_data->dest_unp_size >= 0) {
454
-		unpack_data->unp_ptr &= MAXWINMASK;
455
-		
456
-		if (unpack_data->in_addr > unpack_data->read_top-30 &&
457
-				!unp_read_buf(fd, unpack_data)) {
458
-			break;
459
-		}
460
-		
461
-		if (((unpack_data->wr_ptr - unpack_data->unp_ptr) & MAXWINMASK) < 270 &&
462
-				(unpack_data->wr_ptr != unpack_data->unp_ptr)) {
463
-			unp_write_buf_old(unpack_data);
464
-		}
465
-		if (unpack_data->st_mode) {
466
-			huff_decode(unpack_data);
467
-			continue;
468
-		}
469
-		
470
-		if (--unpack_data->flags_cnt < 0) {
471
-			get_flag_buf(unpack_data);
472
-			unpack_data->flags_cnt = 7;
473
-		}
474
-		
475
-		if (unpack_data->flag_buf & 0x80) {
476
-			unpack_data->flag_buf <<= 1;
477
-			if (unpack_data->nlzb > unpack_data->nhfb) {
478
-				long_lz(unpack_data);
479
-			} else {
480
-				huff_decode(unpack_data);
481
-			}
482
-		} else {
483
-			unpack_data->flag_buf <<= 1;
484
-			if (--unpack_data->flags_cnt < 0) {
485
-				get_flag_buf(unpack_data);
486
-				unpack_data->flags_cnt = 7;
487
-			}
488
-			if (unpack_data->flag_buf & 0x80) {
489
-				unpack_data->flag_buf <<= 1;
490
-				if (unpack_data->nlzb > unpack_data->nhfb) {
491
-					huff_decode(unpack_data);
492
-				} else {
493
-					long_lz(unpack_data);
494
-				}
495
-			} else {
496
-				unpack_data->flag_buf <<= 1;
497
-				short_lz(unpack_data);
498
-			}
499
-		}
500
-	}
501
-	unp_write_buf_old(unpack_data);
502
-	return TRUE;
503
-}
504 1
deleted file mode 100644
... ...
@@ -1,23 +0,0 @@
1
-/*
2
- * Extract RAR archives
3
- *
4
- * Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- * This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- * The unRAR sources may be used in any software to handle RAR
9
- * archives without limitations free of charge, but cannot be used
10
- * to re-create the RAR compression algorithm, which is proprietary.
11
- * Distribution of modified unRAR sources in separate form or as a
12
- * part of other software is permitted, provided that it is clearly
13
- * stated in the documentation and source comments that the code may
14
- * not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-#ifndef UNRAR15_H
19
-#define UNRAR15_H 1
20
-
21
-int rar_unpack15(int fd, int solid, unpack_data_t *unpack_data);
22
-
23
-#endif
24 1
deleted file mode 100644
... ...
@@ -1,405 +0,0 @@
1
-/*
2
- *  Extract RAR archives
3
- *
4
- *  Copyright (C) 2005 trog@uncon.org
5
- *
6
- *  This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- *  The unRAR sources may be used in any software to handle RAR
9
- *  archives without limitations free of charge, but cannot be used
10
- *  to re-create the RAR compression algorithm, which is proprietary.
11
- *  Distribution of modified unRAR sources in separate form or as a
12
- *  part of other software is permitted, provided that it is clearly
13
- *  stated in the documentation and source comments that the code may
14
- *  not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-#include <string.h>
19
-
20
-#include "others.h"
21
-#include "unrar.h"
22
-#include "unrar20.h"
23
-
24
-#ifdef RAR_HIGH_DEBUG
25
-#define rar_dbgmsg printf
26
-#else
27
-static void rar_dbgmsg(const char* fmt,...){}
28
-#endif
29
-
30
-void unpack_init_data20(int solid, unpack_data_t *unpack_data)
31
-{
32
-	if (!solid) {
33
-		unpack_data->unp_channel_delta = 0;
34
-		unpack_data->unp_cur_channel = 0;
35
-		unpack_data->unp_channels = 1;
36
-		memset(unpack_data->audv, 0, sizeof(unpack_data->audv));
37
-		memset(unpack_data->unp_old_table20, 0, sizeof(unpack_data->unp_old_table20));
38
-	}
39
-}
40
-
41
-static void copy_string20(unpack_data_t *unpack_data, unsigned int length, unsigned int distance)
42
-{
43
-	unsigned int dest_ptr;
44
-	
45
-	unpack_data->last_dist = unpack_data->old_dist[unpack_data->old_dist_ptr++ & 3] = distance;
46
-	unpack_data->last_length = length;
47
-	unpack_data->dest_unp_size -= length;
48
-	
49
-	dest_ptr = unpack_data->unp_ptr - distance;
50
-	if (dest_ptr < MAXWINSIZE-300 && unpack_data->unp_ptr < MAXWINSIZE-300) {
51
-		unpack_data->window[unpack_data->unp_ptr++] = unpack_data->window[dest_ptr++];
52
-		unpack_data->window[unpack_data->unp_ptr++] = unpack_data->window[dest_ptr++];
53
-		while (length > 2) {
54
-			length--;
55
-			unpack_data->window[unpack_data->unp_ptr++] = unpack_data->window[dest_ptr++];
56
-		}
57
-	} else while (length--) {
58
-		unpack_data->window[unpack_data->unp_ptr] = unpack_data->window[dest_ptr++ & MAXWINMASK];
59
-		unpack_data->unp_ptr = (unpack_data->unp_ptr+1) & MAXWINMASK;
60
-	}
61
-}
62
-			
63
-static int read_tables20(int fd, unpack_data_t *unpack_data)
64
-{
65
-	unsigned char bit_length[BC20];
66
-	unsigned char table[MC20 * 4];
67
-	int table_size, n, i, number;
68
-	unsigned int bit_field;
69
-	
70
-	rar_dbgmsg("in read_tables20\n");
71
-	
72
-	if (unpack_data->in_addr > unpack_data->read_top-25) {
73
-		if (!unp_read_buf(fd, unpack_data)) {
74
-			return FALSE;
75
-		}
76
-	}
77
-	bit_field = getbits(unpack_data);
78
-	unpack_data->unp_audio_block = (bit_field & 0x8000);
79
-	
80
-	if (!(bit_field & 0x4000)) {
81
-		memset(unpack_data->unp_old_table20, 0, sizeof(unpack_data->unp_old_table20));
82
-	}
83
-	addbits(unpack_data, 2);
84
-	
85
-	if (unpack_data->unp_audio_block) {
86
-		unpack_data->unp_channels = ((bit_field>>12) & 3) + 1;
87
-		if (unpack_data->unp_cur_channel >= unpack_data->unp_channels) {
88
-			unpack_data->unp_cur_channel = 0;
89
-		}
90
-		addbits(unpack_data, 2);
91
-		table_size = MC20 * unpack_data->unp_channels;
92
-	} else {
93
-		table_size = NC20+DC20+RC20;
94
-	}
95
-	
96
-	for (i=0 ; i < BC20 ; i++) {
97
-		bit_length[i] = (unsigned char) (getbits(unpack_data) >> 12);
98
-		addbits(unpack_data, 4);
99
-	}
100
-	make_decode_tables(bit_length, (struct Decode *)&unpack_data->BD, BC20);
101
-	i=0;
102
-	while (i < table_size) {
103
-		if (unpack_data->in_addr > unpack_data->read_top-5) {
104
-			if (!unp_read_buf(fd, unpack_data)) {
105
-				return FALSE;
106
-			}
107
-		}
108
-		number = decode_number(unpack_data, (struct Decode *)&unpack_data->BD);
109
-		if (number < 16) {
110
-			table[i] = (number + unpack_data->unp_old_table20[i]) & 0xf;
111
-			i++;
112
-		} else if (number == 16) {
113
-			n = (getbits(unpack_data) >> 14) + 3;
114
-			addbits(unpack_data, 2);
115
-			while ((n-- > 0) && (i < table_size)) {
116
-				table[i] = table[i-1];
117
-				i++;
118
-			}
119
-		} else {
120
-			if (number == 17) {
121
-				n = (getbits(unpack_data) >> 13) + 3;
122
-				addbits(unpack_data, 3);
123
-			} else {
124
-				n = (getbits(unpack_data) >> 9) + 11;
125
-				addbits(unpack_data, 7);
126
-			}
127
-			while ((n-- > 0) && (i < table_size)) {
128
-				table[i++] = 0;
129
-			}
130
-		}
131
-	}
132
-	if (unpack_data->in_addr > unpack_data->read_top) {
133
-		return TRUE;
134
-	}
135
-	if (unpack_data->unp_audio_block) {
136
-		for (i=0 ; i < unpack_data->unp_channels ; i++) {
137
-			make_decode_tables(&table[i*MC20], (struct Decode *)&unpack_data->MD[i], MC20);
138
-		}
139
-	} else {
140
-		make_decode_tables(&table[0], (struct Decode *)&unpack_data->LD, NC20);
141
-		make_decode_tables(&table[NC20], (struct Decode *)&unpack_data->DD, DC20);
142
-		make_decode_tables(&table[NC20+DC20], (struct Decode *)&unpack_data->RD, RC20);
143
-	}
144
-	memcpy(unpack_data->unp_old_table20, table, sizeof(unpack_data->unp_old_table20));
145
-	return TRUE;
146
-}
147
-
148
-static void read_last_tables(int fd, unpack_data_t *unpack_data)
149
-{
150
-	if (unpack_data->read_top >= unpack_data->in_addr+5) {
151
-		if (unpack_data->unp_audio_block) {
152
-			if (decode_number(unpack_data,
153
-				(struct Decode *)&unpack_data->MD[unpack_data->unp_cur_channel]) == 256) {
154
-				read_tables20(fd, unpack_data);
155
-			}
156
-		} else if (decode_number(unpack_data, (struct Decode *)&unpack_data->LD) == 269) {
157
-			read_tables20(fd, unpack_data);
158
-		}
159
-	}
160
-}
161
-
162
-static unsigned char decode_audio(unpack_data_t *unpack_data, int delta)
163
-{
164
-	struct AudioVariables *v;
165
-	int pch, d, i;
166
-	unsigned int ch, mindif, num_min_dif;
167
-	
168
-	v = &unpack_data->audv[unpack_data->unp_cur_channel];
169
-	v->byte_count++;
170
-	v->D4 = v->D3;
171
-	v->D3 = v->D2;
172
-	v->D2 = v->last_delta - v->D1;
173
-	v->D1 = v->last_delta;
174
-	
175
-	pch = 8 * v->last_char + v->K1 * v->D1 + v->K2 * v->D2 + v->K3 *
176
-		v->D3 + v->K4 * v->D4 + v->K5 * unpack_data->unp_channel_delta;
177
-	pch = (pch >> 3) & 0xff;
178
-	
179
-	ch = pch - delta;
180
-	
181
-	d = ((signed char) delta) << 3;
182
-	
183
-	v->dif[0] += abs(d);
184
-	v->dif[1] += abs(d - v->D1);
185
-	v->dif[2] += abs(d + v->D1);
186
-	v->dif[3] += abs(d - v->D2);
187
-	v->dif[4] += abs(d + v->D2);
188
-	v->dif[5] += abs(d - v->D3);
189
-	v->dif[6] += abs(d + v->D3);
190
-	v->dif[7] += abs(d - v->D4);
191
-	v->dif[8] += abs(d + v->D4);
192
-	v->dif[9] += abs(d - unpack_data->unp_channel_delta);
193
-	v->dif[10] += abs(d + unpack_data->unp_channel_delta);
194
-
195
-	unpack_data->unp_channel_delta = v->last_delta = (signed char) (ch - v->last_char);
196
-	v->last_char = ch;
197
-	
198
-	if ((v->byte_count & 0x1f) == 0) {
199
-		mindif = v->dif[0];
200
-		num_min_dif = 0;
201
-		v->dif[0] = 0;
202
-		for (i = 1 ; i < 11 ; i++) {
203
-			if (v->dif[i] < mindif) {
204
-				mindif = v->dif[i];
205
-				num_min_dif = i;
206
-			}
207
-			v->dif[i]=0; /* ?????? looks wrong to me */
208
-		}
209
-		switch(num_min_dif) {
210
-			case 1:
211
-				if (v->K1 >= -16) {
212
-					v->K1--;
213
-				}
214
-				break;
215
-			case 2:
216
-				if (v->K1 < 16) {
217
-					v->K1++;
218
-				}
219
-				break;
220
-			case 3:
221
-				if (v->K2 >= -16) {
222
-					v->K2--;
223
-				}
224
-				break;
225
-			case 4:
226
-				if (v->K2 < 16) {
227
-					v->K2++;
228
-				}
229
-				break;
230
-			case 5:
231
-				if (v->K3 >= -16) {
232
-					v->K3--;
233
-				}
234
-				break;
235
-			case 6:
236
-				if (v->K3 < 16) {
237
-					v->K3++;
238
-				}
239
-				break;
240
-			case 7:
241
-				if (v->K4 >= -16) {
242
-					v->K4--;
243
-				}
244
-				break;
245
-			case 8:
246
-				if (v->K4 < 16) {
247
-					v->K4++;
248
-				}
249
-				break;
250
-			case 9:
251
-				if (v->K5 >= -16) {
252
-					v->K5--;
253
-				}
254
-				break;
255
-			case 10:
256
-				if (v->K5 < 16) {
257
-					v->K5++;
258
-				}
259
-				break;
260
-		}
261
-	}
262
-	return ((unsigned char) ch);
263
-}
264
-
265
-int rar_unpack20(int fd, int solid, unpack_data_t *unpack_data)
266
-{
267
-	unsigned char ldecode[]={0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,
268
-			32,40,48,56,64,80,96,112,128,160,192,224};
269
-	unsigned char lbits[]={0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5};
270
-	int ddecode[]={0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,
271
-			768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576,
272
-			32768U,49152U,65536,98304,131072,196608,262144,327680,393216,
273
-			458752,524288,589824,655360,720896,786432,851968,917504,983040};
274
-	unsigned char dbits[]={0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,
275
-			12,12,13,13,14,14,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16};
276
-	unsigned char sddecode[]={0,4,8,16,32,64,128,192};
277
-	unsigned char sdbits[]={2,2,3,4,5,6,6,6};
278
-	unsigned int bits, distance;
279
-	int retval=TRUE, audio_number, number, length, dist_number, length_number;
280
-	
281
-	rar_dbgmsg("in rar_unpack20\n");
282
-
283
-	unpack_init_data(solid, unpack_data);
284
-	if (!unp_read_buf(fd, unpack_data)) {
285
-		cli_dbgmsg("unp_read_buf 1 failed\n");
286
-		return FALSE;
287
-	}
288
-	if (!solid) {
289
-		if (!read_tables20(fd, unpack_data)) {
290
-			cli_dbgmsg("read_tables20 failed\n");
291
-			return FALSE;
292
-		}
293
-	}
294
-	--unpack_data->dest_unp_size;
295
-	
296
-	while (unpack_data->dest_unp_size >= 0) {
297
-		rar_dbgmsg("dest_unp_size = %ld\n", unpack_data->dest_unp_size);
298
-		unpack_data->unp_ptr &= MAXWINMASK;
299
-		
300
-		if (unpack_data->in_addr > unpack_data->read_top-30) {
301
-			if (!unp_read_buf(fd, unpack_data)) {
302
-				cli_dbgmsg("unp_read_buf 2 failed\n");
303
-				break;
304
-			}
305
-		}
306
-		if (((unpack_data->wr_ptr - unpack_data->unp_ptr) & MAXWINMASK) < 270 &&
307
-				(unpack_data->wr_ptr != unpack_data->unp_ptr)) {
308
-			unp_write_buf_old(unpack_data);
309
-		}
310
-		if (unpack_data->unp_audio_block) {
311
-			audio_number = decode_number(unpack_data,
312
-				(struct Decode *)&unpack_data->MD[unpack_data->unp_cur_channel]);
313
-			if (audio_number == 256) {
314
-				if (!read_tables20(fd, unpack_data)) {
315
-					retval = FALSE;
316
-					break;
317
-				}
318
-				continue;
319
-			}
320
-			unpack_data->window[unpack_data->unp_ptr++] =
321
-					decode_audio(unpack_data, audio_number);
322
-			if (++unpack_data->unp_cur_channel == unpack_data->unp_channels) {
323
-				unpack_data->unp_cur_channel = 0;
324
-			}
325
-			--unpack_data->dest_unp_size;
326
-			continue;
327
-		}
328
-		
329
-		number = decode_number(unpack_data, (struct Decode *)&unpack_data->LD);
330
-		if (number < 256) {
331
-			unpack_data->window[unpack_data->unp_ptr++] = (unsigned char) number;
332
-			--unpack_data->dest_unp_size;
333
-			continue;
334
-		}
335
-		if (number > 269) {
336
-			length = ldecode[number-=270]+3;
337
-			if ((bits = lbits[number]) > 0) {
338
-				length += getbits(unpack_data) >> (16-bits);
339
-				addbits(unpack_data, bits);
340
-			}
341
-			
342
-			dist_number = decode_number(unpack_data, (struct Decode *)&unpack_data->DD);
343
-			distance = ddecode[dist_number] + 1;
344
-			if ((bits = dbits[dist_number]) > 0) {
345
-				distance += getbits(unpack_data)>>(16-bits);
346
-				addbits(unpack_data, bits);
347
-			}
348
-			
349
-			if (distance >= 0x2000) {
350
-				length++;
351
-				if (distance >= 0x40000L) {
352
-					length++;
353
-				}
354
-			}
355
-			
356
-			copy_string20(unpack_data, length, distance);
357
-			continue;
358
-		}
359
-		if (number == 269) {
360
-			if (!read_tables20(fd, unpack_data)) {
361
-				retval = FALSE;
362
-				break;
363
-			}
364
-			continue;
365
-		}
366
-		if (number == 256) {
367
-			copy_string20(unpack_data, unpack_data->last_length, unpack_data->last_dist);
368
-			continue;
369
-		}
370
-		if (number < 261) {
371
-			distance = unpack_data->old_dist[(unpack_data->old_dist_ptr-(number-256)) & 3];
372
-			length_number = decode_number(unpack_data, (struct Decode *)&unpack_data->RD);
373
-			length = ldecode[length_number]+2;
374
-			if ((bits = lbits[length_number]) > 0) {
375
-				length += getbits(unpack_data) >> (16-bits);
376
-				addbits(unpack_data, bits);
377
-			}
378
-			if (distance >= 0x101) {
379
-				length++;
380
-				if (distance >= 0x2000) {
381
-					length++;
382
-					if (distance >= 0x40000) {
383
-						length++;
384
-					}
385
-				}
386
-			}
387
-			copy_string20(unpack_data, length, distance);
388
-			continue;
389
-		}
390
-		if (number < 270) {
391
-			distance = sddecode[number-=261]+1;
392
-			if ((bits=sdbits[number]) > 0) {
393
-				distance += getbits(unpack_data) >> (16-bits);
394
-				addbits(unpack_data, bits);
395
-			}
396
-			copy_string20(unpack_data, 2, distance);
397
-			continue;
398
-		}
399
-	}
400
-	if (retval) {
401
-		read_last_tables(fd, unpack_data);
402
-		unp_write_buf_old(unpack_data);
403
-	}
404
-	return retval;
405
-}
406 1
deleted file mode 100644
... ...
@@ -1,31 +0,0 @@
1
-/*
2
- * Extract RAR archives
3
- *
4
- * Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- * This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- * The unRAR sources may be used in any software to handle RAR
9
- * archives without limitations free of charge, but cannot be used
10
- * to re-create the RAR compression algorithm, which is proprietary.
11
- * Distribution of modified unRAR sources in separate form or as a
12
- * part of other software is permitted, provided that it is clearly
13
- * stated in the documentation and source comments that the code may
14
- * not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-
19
-#ifndef UNRAR20_H
20
-#define UNRAR20_H 1
21
-
22
-#define BC20 19
23
-#define DC20 48
24
-#define RC20 28
25
-#define MC20 257
26
-#define NC20 298  /* alphabet = {0, 1, 2, ..., NC - 1} */
27
-
28
-void unpack_init_data20(int solid, unpack_data_t *unpack_data);
29
-int rar_unpack20(int fd, int solid, unpack_data_t *unpack_data);
30
-
31
-#endif
32 1
deleted file mode 100644
... ...
@@ -1,52 +0,0 @@
1
-/*
2
- *  Extract RAR archives
3
- *
4
- *  Copyright (C) 2005 trog@uncon.org
5
- *
6
- *  This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- *  The unRAR sources may be used in any software to handle RAR
9
- *  archives without limitations free of charge, but cannot be used
10
- *  to re-create the RAR compression algorithm, which is proprietary.
11
- *  Distribution of modified unRAR sources in separate form or as a
12
- *  part of other software is permitted, provided that it is clearly
13
- *  stated in the documentation and source comments that the code may
14
- *  not be used to develop a RAR (WinRAR) compatible archiver.
15
- */
16
-
17
-#include <string.h>
18
-#include <stdlib.h>
19
-
20
-#include "unrar.h"
21
-#include "unrarcmd.h"
22
-#include "others.h"
23
-
24
-void rar_cmd_array_init(rar_cmd_array_t *cmd_a)
25
-{
26
-	cmd_a->array = NULL;
27
-	cmd_a->num_items = 0;
28
-}
29
-
30
-void rar_cmd_array_reset(rar_cmd_array_t *cmd_a)
31
-{	
32
-	if (!cmd_a) {
33
-		return;
34
-	}
35
-	if (cmd_a->array) {
36
-		free(cmd_a->array);
37
-	}
38
-	cmd_a->array = NULL;
39
-	cmd_a->num_items = 0;
40
-}
41
-
42
-int rar_cmd_array_add(rar_cmd_array_t *cmd_a, int num)
43
-{
44
-	cmd_a->num_items += num;
45
-	cmd_a->array = (struct rarvm_prepared_command *) cli_realloc2(cmd_a->array,
46
-			cmd_a->num_items * sizeof(struct rarvm_prepared_command));
47
-	if (cmd_a->array == NULL) {
48
-		return FALSE;
49
-	}
50
-	memset(&cmd_a->array[cmd_a->num_items-1], 0, sizeof(struct rarvm_prepared_command));
51
-	return TRUE;
52
-}
53 1
deleted file mode 100644
... ...
@@ -1,36 +0,0 @@
1
-/*
2
- * Extract RAR archives
3
- *
4
- * Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- * This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- * The unRAR sources may be used in any software to handle RAR
9
- * archives without limitations free of charge, but cannot be used
10
- * to re-create the RAR compression algorithm, which is proprietary.
11
- * Distribution of modified unRAR sources in separate form or as a
12
- * part of other software is permitted, provided that it is clearly
13
- * stated in the documentation and source comments that the code may
14
- * not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-
19
-#ifndef RAR_CMD_ARRAY_H
20
-#define RAR_CMD_ARRAY_H
21
-
22
-#include <stdlib.h>
23
-
24
-#include "unrarvm.h"
25
-
26
-typedef struct rar_cmd_array_tag
27
-{
28
-	struct rarvm_prepared_command *array;
29
-	size_t num_items;
30
-} rar_cmd_array_t;
31
-
32
-void rar_cmd_array_init(rar_cmd_array_t *cmd_a);
33
-void rar_cmd_array_reset(rar_cmd_array_t *cmd_a);
34
-int rar_cmd_array_add(rar_cmd_array_t *cmd_a, int num);
35
-
36
-#endif
37 1
deleted file mode 100644
... ...
@@ -1,101 +0,0 @@
1
-/*
2
- *  Extract RAR archives
3
- *
4
- *  Copyright (C) 2005 trog@uncon.org
5
- *
6
- *  This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- *  The unRAR sources may be used in any software to handle RAR
9
- *  archives without limitations free of charge, but cannot be used
10
- *  to re-create the RAR compression algorithm, which is proprietary.
11
- *  Distribution of modified unRAR sources in separate form or as a
12
- *  part of other software is permitted, provided that it is clearly
13
- *  stated in the documentation and source comments that the code may
14
- *  not be used to develop a RAR (WinRAR) compatible archiver.
15
- */
16
-
17
-#if HAVE_CONFIG_H
18
-#include "clamav-config.h"
19
-#endif
20
-
21
-
22
-#ifdef	HAVE_UNISTD_H
23
-#include <unistd.h>
24
-#endif
25
-
26
-#include "unrar.h"
27
-#include "unrarfilter.h"
28
-#include "others.h"
29
-
30
-void rar_filter_array_init(rar_filter_array_t *filter_a)
31
-{
32
-	filter_a->array = NULL;
33
-	filter_a->num_items = 0;
34
-}
35
-
36
-void rar_filter_array_reset(rar_filter_array_t *filter_a)
37
-{
38
-	int i;
39
-	
40
-	if (!filter_a) {
41
-		return;
42
-	}
43
-	for (i=0 ; i < filter_a->num_items ; i++) {
44
-		rar_filter_delete(filter_a->array[i]);
45
-	}
46
-	if (filter_a->array) {
47
-		free(filter_a->array);
48
-	}
49
-	filter_a->array = NULL;
50
-	filter_a->num_items = 0;
51
-}
52
-
53
-int rar_filter_array_add(rar_filter_array_t *filter_a, int num)
54
-{
55
-	filter_a->num_items += num;
56
-	filter_a->array = (struct UnpackFilter **) cli_realloc2(filter_a->array,
57
-			filter_a->num_items * sizeof(struct UnpackFilter **));
58
-	if (filter_a->array == NULL) {
59
-		filter_a->num_items=0;
60
-		return FALSE;
61
-	}
62
-	filter_a->array[filter_a->num_items-1] = NULL;
63
-	return TRUE;
64
-}
65
-
66
-struct UnpackFilter *rar_filter_new(void)
67
-{
68
-	struct UnpackFilter *filter;
69
-	
70
-	filter = (struct UnpackFilter *) cli_malloc(sizeof(struct UnpackFilter));
71
-	if (!filter) {
72
-		return NULL;
73
-	}
74
-	filter->block_start = 0;
75
-  	filter->block_length = 0;
76
-  	filter->exec_count = 0;
77
-  	filter->next_window = 0;
78
-  	
79
-   	rar_cmd_array_init(&filter->prg.cmd);
80
-	filter->prg.global_data = NULL;
81
-	filter->prg.static_data = NULL;
82
-	filter->prg.global_size = filter->prg.static_size = 0;
83
-	filter->prg.filtered_data = NULL;
84
-	filter->prg.filtered_data_size = 0;
85
-  	return filter;
86
-}
87
-
88
-void rar_filter_delete(struct UnpackFilter *filter)
89
-{
90
-	if (!filter) {
91
-		return;
92
-	}
93
-	if (filter->prg.global_data) {
94
-		free(filter->prg.global_data);
95
-	}
96
-	if (filter->prg.static_data) {
97
-		free(filter->prg.static_data);
98
-	}
99
-	rar_cmd_array_reset(&filter->prg.cmd);
100
-	free(filter);
101
-}
102 1
deleted file mode 100644
... ...
@@ -1,35 +0,0 @@
1
-/*
2
- * Extract RAR archives
3
- *
4
- * Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- * This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- * The unRAR sources may be used in any software to handle RAR
9
- * archives without limitations free of charge, but cannot be used
10
- * to re-create the RAR compression algorithm, which is proprietary.
11
- * Distribution of modified unRAR sources in separate form or as a
12
- * part of other software is permitted, provided that it is clearly
13
- * stated in the documentation and source comments that the code may
14
- * not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-
19
-#ifndef RAR_FILTER_ARRAY_H
20
-#define RAR_FILTER_ARRAY_H
21
-
22
-#include <stdlib.h>
23
-
24
-typedef struct rar_filter_array_tag
25
-{
26
-	struct UnpackFilter **array;
27
-	size_t num_items;
28
-} rar_filter_array_t;
29
-
30
-void rar_filter_array_init(rar_filter_array_t *filter_a);
31
-void rar_filter_array_reset(rar_filter_array_t *filter_a);
32
-int rar_filter_array_add(rar_filter_array_t *filter_a, int num);
33
-struct UnpackFilter *rar_filter_new(void);
34
-void rar_filter_delete(struct UnpackFilter *filter);
35
-#endif
36 1
deleted file mode 100644
... ...
@@ -1,1024 +0,0 @@
1
-/*
2
- *  Extract RAR archives
3
- *
4
- *  Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- *  This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- *  The unRAR sources may be used in any software to handle RAR
9
- *  archives without limitations free of charge, but cannot be used
10
- *  to re-create the RAR compression algorithm, which is proprietary.
11
- *  Distribution of modified unRAR sources in separate form or as a
12
- *  part of other software is permitted, provided that it is clearly
13
- *  stated in the documentation and source comments that the code may
14
- *  not be used to develop a RAR (WinRAR) compatible archiver.
15
- */
16
-
17
-#include <stdio.h>
18
-#include <string.h>
19
-
20
-#include "unrar.h"
21
-#include "unrarppm.h"
22
-#include "others.h"
23
-
24
-#ifdef RAR_HIGH_DEBUG
25
-#define rar_dbgmsg printf
26
-#else
27
-static void rar_dbgmsg(const char* fmt,...){}
28
-#endif
29
-
30
-#define MAX(a,b)    (((a) > (b)) ? (a) : (b))
31
-#define MAX_O 64
32
-
33
-const unsigned int UNIT_SIZE=MAX(sizeof(struct ppm_context), sizeof(struct rar_mem_blk_tag));
34
-const unsigned int FIXED_UNIT_SIZE=12;
35
-const int INT_BITS=7, PERIOD_BITS=7, TOT_BITS=14;
36
-const int INTERVAL=1 << 7, BIN_SCALE=1 << 14, MAX_FREQ=124;
37
-const unsigned int TOP=1 << 24, BOT=1 << 15;
38
-
39
-/************* Start of Allocator code block ********************/
40
-static void sub_allocator_init(sub_allocator_t *sub_alloc)
41
-{
42
-	sub_alloc->sub_allocator_size = 0;
43
-}
44
-
45
-static void sub_allocator_insert_node(sub_allocator_t *sub_alloc, void *p, int indx)
46
-{
47
-	((struct rar_node *) p)->next = sub_alloc->free_list[indx].next;
48
-	sub_alloc->free_list[indx].next = (struct rar_node *) p;
49
-}
50
-
51
-static void *sub_allocator_remove_node(sub_allocator_t *sub_alloc, int indx)
52
-{
53
-	struct rar_node *ret_val;
54
-	
55
-	ret_val = sub_alloc->free_list[indx].next;
56
-	sub_alloc->free_list[indx].next = ret_val->next;
57
-	return ret_val;
58
-}
59
-
60
-static int sub_allocator_u2b(int nu)
61
-{
62
-	return UNIT_SIZE*nu;
63
-}
64
-
65
-static rar_mem_blk_t* sub_allocator_mbptr(rar_mem_blk_t* base_ptr, int items)
66
-{
67
-        return ((rar_mem_blk_t*) (((unsigned char *)(base_ptr)) + sub_allocator_u2b(items) ));
68
-}
69
-
70
-static void sub_allocator_split_block(sub_allocator_t *sub_alloc, void *pv,
71
-				int old_indx, int new_indx)
72
-{
73
-	int i, udiff;
74
-	uint8_t *p;
75
-	
76
-	udiff = sub_alloc->indx2units[old_indx] - sub_alloc->indx2units[new_indx];
77
-	p = ((uint8_t *) pv) + sub_allocator_u2b(sub_alloc->indx2units[new_indx]);
78
-	if (sub_alloc->indx2units[i=sub_alloc->units2indx[udiff-1]] != udiff) {
79
-		sub_allocator_insert_node(sub_alloc, p, --i);
80
-		p += sub_allocator_u2b(i=sub_alloc->indx2units[i]);
81
-		udiff -= i;
82
-	}
83
-	sub_allocator_insert_node(sub_alloc, p, sub_alloc->units2indx[udiff-1]);
84
-}
85
-
86
-static long sub_allocator_get_allocated_memory(sub_allocator_t *sub_alloc)
87
-{
88
-	return sub_alloc->sub_allocator_size;
89
-}
90
-
91
-static void sub_allocator_stop_sub_allocator(sub_allocator_t *sub_alloc)
92
-{
93
-	if (sub_alloc->sub_allocator_size) {
94
-		sub_alloc->sub_allocator_size = 0;
95
-		free(sub_alloc->heap_start);
96
-	}
97
-}
98
-
99
-static int sub_allocator_start_sub_allocator(sub_allocator_t *sub_alloc, int sa_size)
100
-{
101
-	unsigned int t, alloc_size;
102
-	
103
-	t = sa_size << 20;
104
-	if (sub_alloc->sub_allocator_size == t) {
105
-		return TRUE;
106
-	}
107
-	sub_allocator_stop_sub_allocator(sub_alloc);
108
-	alloc_size = t/FIXED_UNIT_SIZE*UNIT_SIZE+UNIT_SIZE;
109
-#if defined(__sparc) || defined(sparc) || defined(__sparcv9)
110
-	/* Allow for aligned access requirements */
111
-	alloc_size += UNIT_SIZE;
112
-#endif
113
-	if ((sub_alloc->heap_start = (uint8_t *) cli_malloc(alloc_size)) == NULL) {
114
-		cli_dbgmsg("sub_alloc start failed\n");
115
-		return FALSE;
116
-	}
117
-	sub_alloc->heap_end = sub_alloc->heap_start + alloc_size - UNIT_SIZE;
118
-	sub_alloc->sub_allocator_size = t;
119
-	return TRUE;
120
-}
121
-
122
-static void sub_allocator_init_sub_allocator(sub_allocator_t *sub_alloc)
123
-{
124
-	int i, k;
125
-	unsigned int size1, real_size1, size2, real_size2;
126
-
127
-	memset(sub_alloc->free_list, 0, sizeof(sub_alloc->free_list));
128
-	sub_alloc->ptext = sub_alloc->heap_start;
129
-	
130
-	size2 = FIXED_UNIT_SIZE*(sub_alloc->sub_allocator_size/8/FIXED_UNIT_SIZE*7);
131
-	real_size2 = size2/FIXED_UNIT_SIZE*UNIT_SIZE;
132
-	size1 = sub_alloc->sub_allocator_size - size2;
133
-	real_size1 = size1/FIXED_UNIT_SIZE*UNIT_SIZE+size1%FIXED_UNIT_SIZE;
134
-#if defined(__sparc) || defined(sparc) || defined(__sparcv9)
135
-	/* Allow for aligned access requirements */
136
-	if (size1%FIXED_UNIT_SIZE != 0) {
137
-		real_size1 += UNIT_SIZE - size1%FIXED_UNIT_SIZE;
138
-	}
139
-#endif
140
-	sub_alloc->hi_unit = sub_alloc->heap_start + sub_alloc->sub_allocator_size;
141
-	sub_alloc->lo_unit = sub_alloc->units_start = sub_alloc->heap_start + real_size1;
142
-	sub_alloc->fake_units_start = sub_alloc->heap_start + size1;
143
-	sub_alloc->hi_unit = sub_alloc->lo_unit + real_size2;
144
-	
145
-	for (i=0,k=1; i < N1 ; i++, k+=1) {
146
-		sub_alloc->indx2units[i] = k;
147
-	}
148
-	for (k++; i < N1+N2 ; i++, k+=2) {
149
-		sub_alloc->indx2units[i] = k;
150
-	}
151
-	for (k++; i < N1+N2+N3 ; i++, k+=3) {
152
-		sub_alloc->indx2units[i] = k;
153
-	}
154
-	for (k++; i < N1+N2+N3+N4 ; i++, k+=4) {
155
-		sub_alloc->indx2units[i] = k;
156
-	}
157
-	
158
-	for (sub_alloc->glue_count=k=i=0; k < 128; k++) {
159
-		i += (sub_alloc->indx2units[i] < k+1);
160
-		sub_alloc->units2indx[k] = i;
161
-	}
162
-}
163
-
164
-static void rar_mem_blk_insertAt(rar_mem_blk_t *a, rar_mem_blk_t *p)
165
-{
166
-	a->next = (a->prev=p)->next;
167
-	p->next = a->next->prev = a;
168
-}
169
-
170
-static void rar_mem_blk_remove(rar_mem_blk_t *a)
171
-{
172
-	a->prev->next = a->next;
173
-	a->next->prev = a->prev;
174
-}
175
-
176
-static void sub_allocator_glue_free_blocks(sub_allocator_t *sub_alloc)
177
-{
178
-	rar_mem_blk_t s0, *p, *p1;
179
-	int i, k, sz;
180
-	
181
-	if (sub_alloc->lo_unit != sub_alloc->hi_unit) {
182
-		*sub_alloc->lo_unit = 0;
183
-	}
184
-	for (i=0, s0.next=s0.prev=&s0; i < N_INDEXES; i++) {
185
-		while (sub_alloc->free_list[i].next) {
186
-			p = (rar_mem_blk_t *) sub_allocator_remove_node(sub_alloc, i);
187
-			rar_mem_blk_insertAt(p, &s0);
188
-			p->stamp = 0xFFFF;
189
-			p->nu = sub_alloc->indx2units[i];
190
-		}
191
-	}
192
-	
193
-	for (p=s0.next ; p != &s0 ; p=p->next) {
194
-		while ((p1 = sub_allocator_mbptr(p,p->nu))->stamp == 0xFFFF &&
195
-				((int)p->nu)+p1->nu < 0x10000) {
196
-			rar_mem_blk_remove(p1);
197
-			p->nu += p1->nu;
198
-		}
199
-	}
200
-	
201
-	while ((p=s0.next) != &s0) {
202
-		for (rar_mem_blk_remove(p), sz=p->nu; sz > 128; sz-=128, p=sub_allocator_mbptr(p, 128)) {
203
-			sub_allocator_insert_node(sub_alloc, p, N_INDEXES-1);
204
-		}
205
-		if (sub_alloc->indx2units[i=sub_alloc->units2indx[sz-1]] != sz) {
206
-			k = sz-sub_alloc->indx2units[--i];
207
-			sub_allocator_insert_node(sub_alloc, sub_allocator_mbptr(p,sz-k), k-1);
208
-		}
209
-		sub_allocator_insert_node(sub_alloc, p, i);
210
-	}
211
-}
212
-
213
-static void *sub_allocator_alloc_units_rare(sub_allocator_t *sub_alloc, int indx)
214
-{
215
-	int i, j;
216
-	void *ret_val;
217
-	
218
-	if (!sub_alloc->glue_count) {
219
-		sub_alloc->glue_count = 255;
220
-		sub_allocator_glue_free_blocks(sub_alloc);
221
-		if (sub_alloc->free_list[indx].next) {
222
-			return sub_allocator_remove_node(sub_alloc, indx);
223
-		}
224
-	}
225
-	i=indx;
226
-	do {
227
-		if (++i == N_INDEXES) {
228
-			sub_alloc->glue_count--;
229
-			i = sub_allocator_u2b(sub_alloc->indx2units[indx]);
230
-			j = 12 * sub_alloc->indx2units[indx];
231
-			if (sub_alloc->fake_units_start - sub_alloc->ptext > j) {
232
-				sub_alloc->fake_units_start -= j;
233
-				sub_alloc->units_start -= i;
234
-				return sub_alloc->units_start;
235
-			}
236
-			return NULL;
237
-		}
238
-	} while ( !sub_alloc->free_list[i].next);
239
-	ret_val = sub_allocator_remove_node(sub_alloc, i);
240
-	sub_allocator_split_block(sub_alloc, ret_val, i, indx);
241
-	return ret_val;
242
-}
243
-
244
-static void *sub_allocator_alloc_units(sub_allocator_t *sub_alloc, int nu)
245
-{
246
-	int indx;
247
-	void *ret_val;
248
-	
249
-	indx = sub_alloc->units2indx[nu-1];
250
-	if (sub_alloc->free_list[indx].next) {
251
-		return sub_allocator_remove_node(sub_alloc, indx);
252
-	}
253
-	ret_val = sub_alloc->lo_unit;
254
-	sub_alloc->lo_unit += sub_allocator_u2b(sub_alloc->indx2units[indx]);
255
-	if (sub_alloc->lo_unit <= sub_alloc->hi_unit) {
256
-		return ret_val;
257
-	}
258
-	sub_alloc->lo_unit -= sub_allocator_u2b(sub_alloc->indx2units[indx]);
259
-	return sub_allocator_alloc_units_rare(sub_alloc, indx);
260
-}
261
-
262
-static void *sub_allocator_alloc_context(sub_allocator_t *sub_alloc)
263
-{
264
-	if (sub_alloc->hi_unit != sub_alloc->lo_unit) {
265
-		return (sub_alloc->hi_unit -= UNIT_SIZE);
266
-	}
267
-	if (sub_alloc->free_list->next) {
268
-		return sub_allocator_remove_node(sub_alloc, 0);
269
-	}
270
-	return sub_allocator_alloc_units_rare(sub_alloc, 0);
271
-}
272
-
273
-static void *sub_allocator_expand_units(sub_allocator_t *sub_alloc, void *old_ptr, int old_nu)
274
-{
275
-	int i0, i1;
276
-	void *ptr;
277
-	
278
-	i0 = sub_alloc->units2indx[old_nu-1];
279
-	i1 = sub_alloc->units2indx[old_nu];
280
-	if (i0 == i1) {
281
-		return old_ptr;
282
-	}
283
-	ptr = sub_allocator_alloc_units(sub_alloc, old_nu+1);
284
-	if (ptr) {
285
-		memcpy(ptr, old_ptr, sub_allocator_u2b(old_nu));
286
-		sub_allocator_insert_node(sub_alloc, old_ptr, i0);
287
-	}
288
-	return ptr;
289
-}
290
-
291
-static void *sub_allocator_shrink_units(sub_allocator_t *sub_alloc, void *old_ptr,
292
-			int old_nu, int new_nu)
293
-{
294
-	int i0, i1;
295
-	void *ptr;
296
-	
297
-	i0 = sub_alloc->units2indx[old_nu-1];
298
-	i1 = sub_alloc->units2indx[new_nu-1];
299
-	if (i0 == i1) {
300
-		return old_ptr;
301
-	}
302
-	if (sub_alloc->free_list[i1].next) {
303
-		ptr = sub_allocator_remove_node(sub_alloc, i1);
304
-		memcpy(ptr, old_ptr, sub_allocator_u2b(new_nu));
305
-		sub_allocator_insert_node(sub_alloc, old_ptr, i0);
306
-		return ptr;
307
-	} else {
308
-		sub_allocator_split_block(sub_alloc, old_ptr, i0, i1);
309
-		return old_ptr;
310
-	}
311
-}
312
-
313
-static void  sub_allocator_free_units(sub_allocator_t *sub_alloc, void *ptr, int old_nu)
314
-{
315
-	sub_allocator_insert_node(sub_alloc, ptr, sub_alloc->units2indx[old_nu-1]);
316
-}
317
-
318
-/************** End of Allocator code block *********************/
319
-
320
-/************** Start of Range Coder code block *********************/
321
-static void range_coder_init_decoder(range_coder_t *coder, int fd,
322
-			unpack_data_t *unpack_data)
323
-{
324
-	int i;
325
-	coder->low = coder->code = 0;
326
-	coder->range = (unsigned int) -1;
327
-	
328
-	for (i=0; i < 4 ; i++) {
329
-		coder->code = (coder->code << 8) | rar_get_char(fd, unpack_data);
330
-	}
331
-}
332
-
333
-static int coder_get_current_count(range_coder_t *coder)
334
-{
335
-	return (coder->code - coder->low) / (coder->range /= coder->scale);
336
-}
337
-
338
-static unsigned int  coder_get_current_shift_count(range_coder_t *coder, unsigned int shift)
339
-{
340
-	return (coder->code - coder->low) / (coder->range >>= shift);
341
-}
342
-
343
-#define ARI_DEC_NORMALISE(fd, unpack_data, code, low, range)					\
344
-{												\
345
-	while ((low^(low+range)) < TOP || (range < BOT && ((range=-low&(BOT-1)),1))) {		\
346
-		code = (code << 8) | rar_get_char(fd, unpack_data);				\
347
-		range <<= 8;									\
348
-		low <<= 8;									\
349
-	}											\
350
-}
351
-
352
-static void coder_decode(range_coder_t *coder)
353
-{
354
-	coder->low += coder->range * coder->low_count;
355
-	coder->range *= coder->high_count - coder->low_count;
356
-}
357
-
358
-/******(******** End of Range Coder code block ***********(**********/
359
-
360
-static void see2_init(struct see2_context_tag *see2_cont, int init_val)
361
-{
362
-	see2_cont->summ = init_val << (see2_cont->shift=PERIOD_BITS-4);
363
-	see2_cont->count = 4;
364
-}
365
-
366
-static unsigned int get_mean(struct see2_context_tag *see2_cont)
367
-{
368
-	unsigned int ret_val;
369
-	
370
-	ret_val = see2_cont->summ >> see2_cont->shift;
371
-	see2_cont->summ -= ret_val;
372
-	return ret_val + (ret_val == 0);
373
-}
374
-
375
-static void update(struct see2_context_tag *see2_cont)
376
-{
377
-	if (see2_cont->shift < PERIOD_BITS && --see2_cont->count == 0) {
378
-		see2_cont->summ += see2_cont->summ;
379
-		see2_cont->count = 3 << see2_cont->shift++;
380
-	}
381
-}
382
-
383
-static int restart_model_rare(ppm_data_t *ppm_data)
384
-{
385
-	int i, k, m;
386
-	static const uint16_t init_bin_esc[] = {
387
-		0x3cdd, 0x1f3f, 0x59bf, 0x48f3, 0x64a1, 0x5abc, 0x6632, 0x6051
388
-	};
389
-	rar_dbgmsg("in restart_model_rare\n");
390
-	memset(ppm_data->char_mask, 0, sizeof(ppm_data->char_mask));
391
-	
392
-	sub_allocator_init_sub_allocator(&ppm_data->sub_alloc);
393
-	
394
-	ppm_data->init_rl=-(ppm_data->max_order < 12 ? ppm_data->max_order:12)-1;
395
-	ppm_data->min_context = ppm_data->max_context =
396
-		(struct ppm_context *) sub_allocator_alloc_context(&ppm_data->sub_alloc);
397
-	if(!ppm_data->min_context) {
398
-	    cli_errmsg("unrar: restart_model_rare: sub_allocator_alloc_context failed\n");
399
-	    return FALSE;
400
-	}
401
-	ppm_data->min_context->suffix = NULL;
402
-	ppm_data->order_fall = ppm_data->max_order;
403
-	ppm_data->min_context->con_ut.u.summ_freq = (ppm_data->min_context->num_stats=256)+1;
404
-	ppm_data->found_state = ppm_data->min_context->con_ut.u.stats=
405
-		(struct state_tag *)sub_allocator_alloc_units(&ppm_data->sub_alloc, 256/2);
406
-	if(!ppm_data->found_state) {
407
-	    cli_errmsg("unrar: restart_model_rare: sub_allocator_alloc_units failed\n");
408
-	    return FALSE;
409
-	}
410
-	for (ppm_data->run_length = ppm_data->init_rl, ppm_data->prev_success=i=0; i < 256 ; i++) {
411
-		ppm_data->min_context->con_ut.u.stats[i].symbol = i;
412
-		ppm_data->min_context->con_ut.u.stats[i].freq = 1;
413
-		ppm_data->min_context->con_ut.u.stats[i].successor = NULL;
414
-	}
415
-	
416
-	for (i=0 ; i < 128 ; i++) {
417
-		for (k=0 ; k < 8 ; k++) {
418
-			for (m=0 ; m < 64 ; m+=8) {
419
-				ppm_data->bin_summ[i][k+m]=BIN_SCALE-init_bin_esc[k]/(i+2);
420
-			}
421
-		}
422
-	}
423
-	for (i=0; i < 25; i++) {
424
-		for (k=0 ; k < 16 ; k++) {
425
-			see2_init(&ppm_data->see2cont[i][k], 5*i+10);
426
-		}
427
-	}
428
-
429
-	return TRUE;
430
-}
431
-	
432
-static int start_model_rare(ppm_data_t *ppm_data, int max_order)
433
-{
434
-	int i, k, m, step, ret;
435
-	
436
-	ppm_data->esc_count = 1;
437
-	ppm_data->max_order = max_order;
438
-	
439
-	if (!restart_model_rare(ppm_data)) {
440
-	    cli_dbgmsg("unrar: start_model_rare: restart_model_rare failed\n");
441
-	    return FALSE;
442
-	}
443
-	
444
-	ppm_data->ns2bsindx[0] = 2*0;
445
-	ppm_data->ns2bsindx[1] = 2*1;
446
-	
447
-	memset(ppm_data->ns2bsindx+2, 2*2, 9);
448
-	memset(ppm_data->ns2bsindx+11, 2*3, 256-11);
449
-	
450
-	for (i=0 ; i < 3; i++) {
451
-		ppm_data->ns2indx[i] = i;
452
-	}
453
-	for (m=i, k=step=1; i < 256; i++) {
454
-		ppm_data->ns2indx[i]=m;
455
-		if (!--k) {
456
-			k = ++step;
457
-			m++;
458
-		}
459
-	}
460
-	memset(ppm_data->hb2flag, 0, 0x40);
461
-	memset(ppm_data->hb2flag+0x40, 0x08, 0x100-0x40);
462
-	ppm_data->dummy_sse2cont.shift = PERIOD_BITS;
463
-	return TRUE;
464
-}
465
-
466
-	
467
-/* ****************** PPM Code ***************/
468
-
469
-static void ppmd_swap(struct state_tag *p0, struct state_tag *p1)
470
-{
471
-	struct state_tag tmp;
472
-	
473
-	tmp = *p0;
474
-	*p0 = *p1;
475
-	*p1 = tmp;
476
-}
477
-
478
-static void rescale(ppm_data_t *ppm_data, struct ppm_context *context)
479
-{
480
-	int old_ns, i, adder, esc_freq, n0, n1;
481
-	struct state_tag *p1, *p;
482
-	
483
-	rar_dbgmsg("in rescale\n");
484
-	old_ns = context->num_stats;
485
-	i = context->num_stats-1;
486
-	
487
-	for (p=ppm_data->found_state ; p != context->con_ut.u.stats ; p--) {
488
-		ppmd_swap(&p[0], &p[-1]);
489
-	}
490
-	context->con_ut.u.stats->freq += 4;
491
-	context->con_ut.u.summ_freq += 4;
492
-	esc_freq = context->con_ut.u.summ_freq - p->freq;
493
-	adder = (ppm_data->order_fall != 0);
494
-	context->con_ut.u.summ_freq = (p->freq = (p->freq+adder) >> 1);
495
-	do {
496
-		esc_freq -= (++p)->freq;
497
-		context->con_ut.u.summ_freq += (p->freq = (p->freq + adder) >> 1);
498
-		if (p[0].freq > p[-1].freq) {
499
-			struct state_tag tmp = *(p1=p);
500
-			do {
501
-				p1[0] = p1[-1];
502
-			} while (--p1 != context->con_ut.u.stats && tmp.freq > p1[-1].freq);
503
-			*p1 = tmp;
504
-		}
505
-	} while (--i);
506
-	
507
-	if (p->freq == 0) {
508
-		do {
509
-			i++;
510
-		} while ((--p)->freq == 0);
511
-		esc_freq += i;
512
-		if ((context->num_stats -= i) == 1) {
513
-			struct state_tag tmp = *context->con_ut.u.stats;
514
-			do {
515
-				tmp.freq -= (tmp.freq >> 1);
516
-				esc_freq >>= 1;
517
-			} while (esc_freq > 1);
518
-			sub_allocator_free_units(&ppm_data->sub_alloc,
519
-					context->con_ut.u.stats, (old_ns+1)>>1);
520
-			*(ppm_data->found_state=&context->con_ut.one_state)=tmp;
521
-			return;
522
-		}
523
-	}
524
-	context->con_ut.u.summ_freq += (esc_freq -= (esc_freq >> 1));
525
-	n0 = (old_ns+1) >> 1;
526
-	n1 = (context->num_stats+1) >> 1;
527
-	if (n0 != n1) {
528
-		context->con_ut.u.stats = (struct state_tag *) sub_allocator_shrink_units(&ppm_data->sub_alloc,
529
-						context->con_ut.u.stats, n0, n1);
530
-	}
531
-	ppm_data->found_state = context->con_ut.u.stats;
532
-}
533
-
534
-static struct ppm_context *create_child(ppm_data_t *ppm_data, struct ppm_context *context,
535
-				struct state_tag *pstats, struct state_tag *first_state)
536
-{
537
-	struct ppm_context *pc;
538
-	rar_dbgmsg("in create_child\n");
539
-	pc = (struct ppm_context *) sub_allocator_alloc_context(&ppm_data->sub_alloc);
540
-	if (pc) {
541
-		pc->num_stats = 1;
542
-		pc->con_ut.one_state = *first_state;
543
-		pc->suffix = context;
544
-		pstats->successor = pc;
545
-	}
546
-	return pc;
547
-}
548
-
549
-static struct ppm_context *create_successors(ppm_data_t *ppm_data,
550
-			int skip, struct state_tag *p1)
551
-{
552
-	struct state_tag up_state;
553
-	struct ppm_context *pc, *up_branch;
554
-	struct state_tag *p, *ps[MAX_O], **pps;
555
-	unsigned int cf, s0;
556
-	
557
-	rar_dbgmsg("in create_successors\n");
558
-	pc = ppm_data->min_context;
559
-	up_branch = ppm_data->found_state->successor;
560
-	pps = ps;
561
-	
562
-	if (!skip) {
563
-		*pps++ = ppm_data->found_state;
564
-		if (!pc->suffix) {
565
-			goto NO_LOOP;
566
-		}
567
-	}
568
-	if (p1) {
569
-		p = p1;
570
-		pc = pc->suffix;
571
-		goto LOOP_ENTRY;
572
-	}
573
-	do {
574
-		pc = pc->suffix;
575
-		if (pc->num_stats != 1) {
576
-			if ((p=pc->con_ut.u.stats)->symbol != ppm_data->found_state->symbol) {
577
-				do {
578
-					p++;
579
-				} while (p->symbol != ppm_data->found_state->symbol);
580
-			}
581
-		} else {
582
-			p = &(pc->con_ut.one_state);
583
-		}
584
-LOOP_ENTRY:
585
-		if (p->successor != up_branch) {
586
-			pc = p->successor;
587
-			break;
588
-		}
589
-		*pps++ = p;
590
-	} while (pc->suffix);
591
-NO_LOOP:
592
-	if (pps == ps) {
593
-		return pc;
594
-	}
595
-	up_state.symbol= *(uint8_t *) up_branch;
596
-	up_state.successor = (struct ppm_context *) (((uint8_t *) up_branch)+1);
597
-	if (pc->num_stats != 1) {
598
-		if ((uint8_t *) pc <= ppm_data->sub_alloc.ptext) {
599
-			return NULL;
600
-		}
601
-		if ((p=pc->con_ut.u.stats)->symbol != up_state.symbol) {
602
-			do {
603
-				p++;
604
-			} while (p->symbol != up_state.symbol);
605
-		}
606
-		cf = p->freq - 1;
607
-		s0 = pc->con_ut.u.summ_freq - pc->num_stats - cf;
608
-		up_state.freq = 1 + ((2*cf <= s0)?(5*cf > s0):((2*cf+3*s0-1)/(2*s0)));
609
-	} else {
610
-		up_state.freq = pc->con_ut.one_state.freq;
611
-	}
612
-	do {
613
-		pc = create_child(ppm_data, pc, *--pps, &up_state);
614
-		if (!pc) {
615
-			cli_dbgmsg("create_child failed\n");
616
-			return NULL;
617
-		}
618
-	} while (pps != ps);
619
-	return pc;
620
-}
621
-
622
-static int update_model(ppm_data_t *ppm_data)
623
-{
624
-	struct state_tag fs, *p;
625
-	struct ppm_context *pc, *successor;
626
-	unsigned int ns1, ns, cf, sf, s0;
627
-	int ret;
628
-	
629
-	rar_dbgmsg("in update_model\n");
630
-	fs = *ppm_data->found_state;
631
-	p = NULL;
632
-
633
-	if (fs.freq < MAX_FREQ/4 && (pc=ppm_data->min_context->suffix) != NULL) {
634
-		if (pc->num_stats != 1) {
635
-			if ((p=pc->con_ut.u.stats)->symbol != fs.symbol) {
636
-				do {
637
-					p++;
638
-				} while (p->symbol != fs.symbol);
639
-				if (p[0].freq >= p[-1].freq) {
640
-					ppmd_swap(&p[0], &p[-1]);
641
-					p--;
642
-				}
643
-			}
644
-			if (p->freq < MAX_FREQ-9) {
645
-				p->freq += 2;
646
-				pc->con_ut.u.summ_freq += 2;
647
-			}
648
-		} else {
649
-			p = &(pc->con_ut.one_state);
650
-			p->freq += (p->freq < 32);
651
-		}
652
-	}
653
-	if (!ppm_data->order_fall) {
654
-		ppm_data->min_context = ppm_data->max_context =
655
-			ppm_data->found_state->successor = create_successors(ppm_data, TRUE, p);
656
-		if (!ppm_data->min_context) {
657
-			goto RESTART_MODEL;
658
-		}
659
-		return TRUE;
660
-	}
661
-	*ppm_data->sub_alloc.ptext++ = fs.symbol;
662
-	successor = (struct ppm_context *) ppm_data->sub_alloc.ptext;
663
-	if (ppm_data->sub_alloc.ptext >= ppm_data->sub_alloc.fake_units_start) {
664
-		goto RESTART_MODEL;
665
-	}
666
-	if (fs.successor) {
667
-		if ((uint8_t *)fs.successor <= ppm_data->sub_alloc.ptext &&
668
-				(fs.successor = create_successors(ppm_data, FALSE, p)) == NULL) {
669
-			goto RESTART_MODEL;
670
-		}
671
-		if (!--ppm_data->order_fall) {
672
-			successor = fs.successor;
673
-			ppm_data->sub_alloc.ptext -= (ppm_data->max_context != ppm_data->min_context);
674
-		}
675
-	} else {
676
-		ppm_data->found_state->successor = successor;
677
-		fs.successor = ppm_data->min_context;
678
-	}
679
-	s0 = ppm_data->min_context->con_ut.u.summ_freq-(ns=ppm_data->min_context->num_stats)-(fs.freq-1);
680
-	for (pc=ppm_data->max_context; pc != ppm_data->min_context ; pc=pc->suffix) {
681
-		if ((ns1=pc->num_stats) != 1) {
682
-			if ((ns1 & 1) == 0) {
683
-				pc->con_ut.u.stats = (struct state_tag *)
684
-					sub_allocator_expand_units(&ppm_data->sub_alloc,
685
-								pc->con_ut.u.stats, ns1>>1);
686
-				if (!pc->con_ut.u.stats) {
687
-					goto RESTART_MODEL;
688
-				}
689
-			}
690
-			pc->con_ut.u.summ_freq += (2*ns1 < ns)+2*((4*ns1 <= ns) & (pc->con_ut.u.summ_freq <= 8*ns1));
691
-		} else {
692
-			p = (struct state_tag *) sub_allocator_alloc_units(&ppm_data->sub_alloc, 1);
693
-			if (!p) {
694
-				goto RESTART_MODEL;
695
-			}
696
-			*p = pc->con_ut.one_state;
697
-			pc->con_ut.u.stats = p;
698
-			if (p->freq < MAX_FREQ/4-1) {
699
-				p->freq += p->freq;
700
-			} else {
701
-				p->freq = MAX_FREQ - 4;
702
-			}
703
-			pc->con_ut.u.summ_freq = p->freq + ppm_data->init_esc + (ns > 3);
704
-		}
705
-		cf = 2*fs.freq*(pc->con_ut.u.summ_freq+6);
706
-		sf = s0 + pc->con_ut.u.summ_freq;
707
-		if (cf < 6*sf) {
708
-			cf = 1 + (cf > sf) + (cf >= 4*sf);
709
-			pc->con_ut.u.summ_freq += 3;
710
-		} else {
711
-			cf = 4 + (cf >= 9*sf) + (cf >= 12*sf) + (cf >= 15*sf);
712
-			pc->con_ut.u.summ_freq += cf;
713
-		}
714
-		p = pc->con_ut.u.stats + ns1;
715
-		p->successor = successor;
716
-		p->symbol = fs.symbol;
717
-		p->freq = cf;
718
-		pc->num_stats = ++ns1;
719
-	}
720
-	ppm_data->max_context = ppm_data->min_context = fs.successor;
721
-	return TRUE;
722
-	
723
-RESTART_MODEL:
724
-	if (!restart_model_rare(ppm_data)) {
725
-	    cli_dbgmsg("unrar: update_model: restart_model_rare: failed\n");
726
-	    return FALSE;
727
-	}
728
-	ppm_data->esc_count = 0;
729
-	return TRUE;
730
-}
731
-
732
-static void update1(ppm_data_t *ppm_data, struct state_tag *p, struct ppm_context *context)
733
-{
734
-	rar_dbgmsg("in update1\n");
735
-	(ppm_data->found_state=p)->freq += 4;
736
-	context->con_ut.u.summ_freq += 4;
737
-	if (p[0].freq > p[-1].freq) {
738
-		ppmd_swap(&p[0], &p[-1]);
739
-		ppm_data->found_state = --p;
740
-		if (p->freq > MAX_FREQ) {
741
-			rescale(ppm_data, context);
742
-		}
743
-	}
744
-}
745
-
746
-static int ppm_decode_symbol1(ppm_data_t *ppm_data, struct ppm_context *context)
747
-{
748
-	struct state_tag *p;
749
-	int i, hi_cnt, count;
750
-	
751
-	rar_dbgmsg("in ppm_decode_symbol1\n");
752
-	ppm_data->coder.scale = context->con_ut.u.summ_freq;
753
-	p = context->con_ut.u.stats;
754
-	count = coder_get_current_count(&ppm_data->coder);
755
-	if (count >= ppm_data->coder.scale) {
756
-		return FALSE;
757
-	}
758
-	if (count < (hi_cnt = p->freq)) {
759
-		ppm_data->prev_success = (2 * (ppm_data->coder.high_count=hi_cnt) >
760
-						ppm_data->coder.scale);
761
-		ppm_data->run_length += ppm_data->prev_success;
762
-		(ppm_data->found_state=p)->freq=(hi_cnt += 4);
763
-		context->con_ut.u.summ_freq += 4;
764
-		if (hi_cnt > MAX_FREQ) {
765
-			rescale(ppm_data, context);
766
-		}
767
-		ppm_data->coder.low_count = 0;
768
-		return TRUE;
769
-	} else if (ppm_data->found_state == NULL) {
770
-		return FALSE;
771
-	}
772
-	ppm_data->prev_success = 0;
773
-	i = context->num_stats-1;
774
-	while ((hi_cnt += (++p)->freq) <= count) {
775
-		if (--i == 0) {
776
-			ppm_data->hi_bits_flag = ppm_data->hb2flag[ppm_data->found_state->symbol];
777
-			ppm_data->coder.low_count = hi_cnt;
778
-			ppm_data->char_mask[p->symbol] = ppm_data->esc_count;
779
-			i = (ppm_data->num_masked=context->num_stats) - 1;
780
-			ppm_data->found_state = NULL;
781
-			do {
782
-				ppm_data->char_mask[(--p)->symbol] = ppm_data->esc_count;
783
-			} while (--i);
784
-			ppm_data->coder.high_count = ppm_data->coder.scale;
785
-			return TRUE;
786
-		}
787
-	}
788
-	ppm_data->coder.low_count = (ppm_data->coder.high_count = hi_cnt) - p->freq;
789
-	update1(ppm_data, p, context);
790
-	return TRUE;
791
-}
792
-
793
-static const uint8_t ExpEscape[16]={ 25,14, 9, 7, 5, 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 2 };
794
-#define GET_MEAN(SUMM,SHIFT,ROUND) ((SUMM+(1 << (SHIFT-ROUND))) >> (SHIFT))
795
-
796
-static void ppm_decode_bin_symbol(ppm_data_t *ppm_data, struct ppm_context *context)
797
-{
798
-	struct state_tag *rs;
799
-	uint16_t *bs;
800
-	
801
-	rar_dbgmsg("in ppm_decode_bin_symbol\n");
802
-	
803
-	rs = &context->con_ut.one_state;
804
-	
805
-	ppm_data->hi_bits_flag = ppm_data->hb2flag[ppm_data->found_state->symbol];
806
-	bs = &ppm_data->bin_summ[rs->freq-1][ppm_data->prev_success +
807
-		ppm_data->ns2bsindx[context->suffix->num_stats-1] +
808
-		ppm_data->hi_bits_flag+2*ppm_data->hb2flag[rs->symbol] +
809
-		((ppm_data->run_length >> 26) & 0x20)];
810
-	if (coder_get_current_shift_count(&ppm_data->coder, TOT_BITS) < *bs) {
811
-		ppm_data->found_state = rs;
812
-		rs->freq += (rs->freq < 128);
813
-		ppm_data->coder.low_count = 0;
814
-		ppm_data->coder.high_count = *bs;
815
-		*bs = (uint16_t) (*bs + INTERVAL - GET_MEAN(*bs, PERIOD_BITS, 2));
816
-		ppm_data->prev_success = 1;
817
-		ppm_data->run_length++;
818
-	} else {
819
-		ppm_data->coder.low_count = *bs;
820
-		*bs = (uint16_t) (*bs - GET_MEAN(*bs, PERIOD_BITS, 2));
821
-		ppm_data->coder.high_count = BIN_SCALE;
822
-		ppm_data->init_esc = ExpEscape[*bs >> 10];
823
-		ppm_data->num_masked = 1;
824
-		ppm_data->char_mask[rs->symbol] = ppm_data->esc_count;
825
-		ppm_data->prev_success = 0;
826
-		ppm_data->found_state = NULL;
827
-	}
828
-}
829
-
830
-static void update2(ppm_data_t *ppm_data, struct state_tag *p, struct ppm_context *context)
831
-{
832
-	rar_dbgmsg("in update2\n");
833
-	(ppm_data->found_state = p)->freq += 4;
834
-	context->con_ut.u.summ_freq += 4;
835
-	if (p->freq > MAX_FREQ) {
836
-		rescale(ppm_data, context);
837
-	}
838
-	ppm_data->esc_count++;
839
-	ppm_data->run_length = ppm_data->init_rl;
840
-}
841
-
842
-static struct see2_context_tag *make_esc_freq(ppm_data_t *ppm_data,
843
-			struct ppm_context *context, int diff)
844
-{
845
-	struct see2_context_tag *psee2c;
846
-	
847
-	if (context->num_stats != 256) {
848
-		psee2c = ppm_data->see2cont[ppm_data->ns2indx[diff-1]] +
849
-			(diff < context->suffix->num_stats-context->num_stats) +
850
-			2 * (context->con_ut.u.summ_freq < 11*context->num_stats)+4*
851
-			(ppm_data->num_masked > diff) +	ppm_data->hi_bits_flag;
852
-		ppm_data->coder.scale = get_mean(psee2c);
853
-	} else {
854
-		psee2c = &ppm_data->dummy_sse2cont;
855
-		ppm_data->coder.scale = 1;
856
-	}
857
-	return psee2c;
858
-}
859
-
860
-static int ppm_decode_symbol2(ppm_data_t *ppm_data, struct ppm_context *context)
861
-{
862
-	int count, hi_cnt, i;
863
-	struct see2_context_tag *psee2c;
864
-	struct state_tag *ps[256], **pps, *p;
865
-	
866
-	rar_dbgmsg("in ppm_decode_symbol2\n");
867
-	i = context->num_stats - ppm_data->num_masked;
868
-	psee2c = make_esc_freq(ppm_data, context, i);
869
-	pps = ps;
870
-	p = context->con_ut.u.stats - 1;
871
-	hi_cnt = 0;
872
-	
873
-	do {
874
-		do {
875
-			p++;
876
-		} while (ppm_data->char_mask[p->symbol] == ppm_data->esc_count);
877
-		hi_cnt += p->freq;
878
-		*pps++ = p;
879
-	} while (--i);
880
-	ppm_data->coder.scale += hi_cnt;
881
-	count = coder_get_current_count(&ppm_data->coder);
882
-	if (count >= ppm_data->coder.scale) {
883
-		return FALSE;
884
-	}
885
-	p=*(pps=ps);
886
-	if (count < hi_cnt) {
887
-		hi_cnt = 0;
888
-		while ((hi_cnt += p->freq) <= count) {
889
-			p=*++pps;
890
-		}
891
-		ppm_data->coder.low_count = (ppm_data->coder.high_count=hi_cnt) - p->freq;
892
-		update(psee2c);
893
-		update2(ppm_data, p, context);
894
-	} else {
895
-		ppm_data->coder.low_count = hi_cnt;
896
-		ppm_data->coder.high_count = ppm_data->coder.scale;
897
-		i = context->num_stats - ppm_data->num_masked;
898
-		pps--;
899
-		do {
900
-			ppm_data->char_mask[(*++pps)->symbol] = ppm_data->esc_count;
901
-		} while (--i);
902
-		psee2c->summ += ppm_data->coder.scale;
903
-		ppm_data->num_masked = context->num_stats;
904
-	}
905
-	return TRUE;
906
-}
907
-
908
-static void clear_mask(ppm_data_t *ppm_data)
909
-{
910
-	ppm_data->esc_count = 1;
911
-	memset(ppm_data->char_mask, 0, sizeof(ppm_data->char_mask));
912
-}
913
-
914
-void ppm_constructor(ppm_data_t *ppm_data)
915
-{
916
-	sub_allocator_init(&ppm_data->sub_alloc);
917
-	ppm_data->min_context = NULL;
918
-	ppm_data->max_context = NULL;
919
-}
920
-
921
-void ppm_destructor(ppm_data_t *ppm_data)
922
-{
923
-	sub_allocator_stop_sub_allocator(&ppm_data->sub_alloc);
924
-}
925
-
926
-int ppm_decode_init(ppm_data_t *ppm_data, int fd, unpack_data_t *unpack_data, int *EscChar)
927
-{
928
-	int max_order, Reset, MaxMB;
929
-	
930
-	max_order = rar_get_char(fd, unpack_data);
931
-	rar_dbgmsg("ppm_decode_init max_order=%d\n", max_order);
932
-	Reset = (max_order & 0x20) ? 1 : 0;
933
-	rar_dbgmsg("ppm_decode_init Reset=%d\n", Reset);
934
-	if (Reset) {
935
-		MaxMB = rar_get_char(fd, unpack_data);
936
-		rar_dbgmsg("ppm_decode_init MaxMB=%d\n", MaxMB);
937
-	} else {
938
-		if (sub_allocator_get_allocated_memory(&ppm_data->sub_alloc) == 0) {
939
-			return FALSE;
940
-		}
941
-	}
942
-	if (max_order & 0x40) {
943
-		*EscChar = rar_get_char(fd, unpack_data);
944
-		rar_dbgmsg("ppm_decode_init EscChar=%d\n", *EscChar);
945
-	}
946
-	range_coder_init_decoder(&ppm_data->coder, fd, unpack_data);
947
-	if (Reset) {
948
-		max_order = (max_order & 0x1f) + 1;
949
-		if (max_order > 16) {
950
-			max_order = 16 + (max_order - 16) * 3;
951
-		}
952
-		if (max_order == 1) {
953
-			sub_allocator_stop_sub_allocator(&ppm_data->sub_alloc);
954
-			return FALSE;
955
-		}
956
-		if(!sub_allocator_start_sub_allocator(&ppm_data->sub_alloc, MaxMB+1)) {
957
-		    sub_allocator_stop_sub_allocator(&ppm_data->sub_alloc);
958
-		    return FALSE;
959
-		}
960
-		if (!start_model_rare(ppm_data, max_order)) {
961
-		    sub_allocator_stop_sub_allocator(&ppm_data->sub_alloc);
962
-		    return FALSE;
963
-		}
964
-	}
965
-	rar_dbgmsg("ppm_decode_init done: %d\n", ppm_data->min_context != NULL);
966
-	return (ppm_data->min_context != NULL);
967
-}
968
-
969
-int ppm_decode_char(ppm_data_t *ppm_data, int fd, unpack_data_t *unpack_data)
970
-{
971
-	int symbol;
972
-
973
-	if ((uint8_t *) ppm_data->min_context <= ppm_data->sub_alloc.ptext ||
974
-			(uint8_t *)ppm_data->min_context > ppm_data->sub_alloc.heap_end) {
975
-		return -1;
976
-	}
977
-	if (ppm_data->min_context->num_stats != 1) {
978
-		if ((uint8_t *) ppm_data->min_context->con_ut.u.stats <= ppm_data->sub_alloc.ptext ||
979
-			(uint8_t *) ppm_data->min_context->con_ut.u.stats > ppm_data->sub_alloc.heap_end) {
980
-			return -1;
981
-		}
982
-		if (!ppm_decode_symbol1(ppm_data, ppm_data->min_context)) {
983
-			return -1;
984
-		}
985
-	} else {
986
-		ppm_decode_bin_symbol(ppm_data, ppm_data->min_context);
987
-	}
988
-	coder_decode(&ppm_data->coder);
989
-	
990
-	while (!ppm_data->found_state) {
991
-		ARI_DEC_NORMALISE(fd, unpack_data, ppm_data->coder.code, 
992
-				ppm_data->coder.low, ppm_data->coder.range);
993
-		do {
994
-			ppm_data->order_fall++;
995
-			ppm_data->min_context = ppm_data->min_context->suffix;
996
-			if ((uint8_t *)ppm_data->min_context <= ppm_data->sub_alloc.ptext ||
997
-					(uint8_t *)ppm_data->min_context >
998
-					ppm_data->sub_alloc.heap_end) {
999
-				return -1;
1000
-			}
1001
-		} while (ppm_data->min_context->num_stats == ppm_data->num_masked);
1002
-		if (!ppm_decode_symbol2(ppm_data, ppm_data->min_context)) {
1003
-			return -1;
1004
-		}
1005
-		coder_decode(&ppm_data->coder);
1006
-	}
1007
-	
1008
-	symbol = ppm_data->found_state->symbol;
1009
-	if (!ppm_data->order_fall && (uint8_t *) ppm_data->found_state->successor > ppm_data->sub_alloc.ptext) {
1010
-		ppm_data->min_context = ppm_data->max_context = ppm_data->found_state->successor;
1011
-	} else {
1012
-		if(!update_model(ppm_data)) {
1013
-		    cli_dbgmsg("unrar: ppm_decode_char: update_model failed\n");
1014
-		    return -1;
1015
-		}
1016
-
1017
-		if (ppm_data->esc_count == 0) {
1018
-			clear_mask(ppm_data);
1019
-		}
1020
-	}
1021
-	ARI_DEC_NORMALISE(fd, unpack_data, ppm_data->coder.code, ppm_data->coder.low,
1022
-				ppm_data->coder.range);
1023
-	return symbol;
1024
-}
1025 1
deleted file mode 100644
... ...
@@ -1,105 +0,0 @@
1
-/*
2
- * Extract RAR archives
3
- *
4
- * Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- * This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- * The unRAR sources may be used in any software to handle RAR
9
- * archives without limitations free of charge, but cannot be used
10
- * to re-create the RAR compression algorithm, which is proprietary.
11
- * Distribution of modified unRAR sources in separate form or as a
12
- * part of other software is permitted, provided that it is clearly
13
- * stated in the documentation and source comments that the code may
14
- * not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-
19
-#ifndef UNRAR_PPM_H
20
-#define UNRAR_PPM_H 1
21
-
22
-#include "cltypes.h"
23
-
24
-#define N1 4
25
-#define N2 4
26
-#define N3 4
27
-#define N4 26
28
-#define N_INDEXES 38
29
-
30
-typedef struct rar_mem_blk_tag
31
-{
32
-	uint16_t stamp, nu;
33
-	struct rar_mem_blk_tag *next, *prev;
34
-} rar_mem_blk_t;
35
-
36
-struct rar_node
37
-{
38
-	struct rar_node *next;
39
-};
40
-
41
-typedef struct sub_allocator_tag
42
-{
43
-	long sub_allocator_size;
44
-	int16_t indx2units[N_INDEXES], units2indx[128], glue_count;
45
-	uint8_t *heap_start, *lo_unit, *hi_unit;
46
-	struct rar_node free_list[N_INDEXES];
47
-	
48
-	uint8_t *ptext, *units_start, *heap_end, *fake_units_start;
49
-} sub_allocator_t;
50
-
51
-typedef struct range_coder_tag
52
-{
53
-	unsigned int low, code, range;
54
-	unsigned int low_count, high_count, scale;
55
-}range_coder_t;
56
-
57
-struct ppm_context;
58
-
59
-struct see2_context_tag
60
-{
61
-	uint16_t summ;
62
-	uint8_t shift, count;
63
-};
64
-
65
-struct state_tag
66
-{
67
-	uint8_t symbol;
68
-	uint8_t freq;
69
-	struct ppm_context *successor;
70
-};
71
-
72
-struct freq_data_tag
73
-{
74
-	uint16_t summ_freq;
75
-	struct state_tag *stats;
76
-};
77
-
78
-struct ppm_context {
79
-	uint16_t num_stats;
80
-	union {
81
-		struct freq_data_tag u;
82
-		struct state_tag one_state;
83
-	} con_ut;
84
-	struct ppm_context *suffix;
85
-};
86
-
87
-typedef struct ppm_data_tag
88
-{
89
-	sub_allocator_t sub_alloc;
90
-	range_coder_t coder;
91
-	int num_masked, init_esc, order_fall, max_order, run_length, init_rl;
92
-	struct ppm_context *min_context, *max_context;
93
-	struct state_tag *found_state;
94
-	uint8_t char_mask[256], ns2indx[256], ns2bsindx[256], hb2flag[256];
95
-	uint8_t esc_count, prev_success, hi_bits_flag;
96
-	struct see2_context_tag see2cont[25][16], dummy_sse2cont;
97
-	uint16_t bin_summ[128][64];
98
-} ppm_data_t;
99
-
100
-int ppm_decode_init(ppm_data_t *ppm_data, int fd, struct unpack_data_tag *unpack_data, int *EscChar);
101
-int ppm_decode_char(ppm_data_t *ppm_data, int fd, struct unpack_data_tag *unpack_data);
102
-void ppm_constructor(ppm_data_t *ppm_data);
103
-void ppm_destructor(ppm_data_t *ppm_data);
104
-
105
-#endif
106 1
deleted file mode 100644
... ...
@@ -1,1164 +0,0 @@
1
-/*
2
- *  Extract RAR archives
3
- *
4
- *  Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- *  This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- *  The unRAR sources may be used in any software to handle RAR
9
- *  archives without limitations free of charge, but cannot be used
10
- *  to re-create the RAR compression algorithm, which is proprietary.
11
- *  Distribution of modified unRAR sources in separate form or as a
12
- *  part of other software is permitted, provided that it is clearly
13
- *  stated in the documentation and source comments that the code may
14
- *  not be used to develop a RAR (WinRAR) compatible archiver.
15
- */
16
-
17
-#if HAVE_CONFIG_H
18
-#include "clamav-config.h"
19
-#endif
20
-
21
-#include <string.h>
22
-
23
-#include "unrar.h"
24
-#include "unrarvm.h"
25
-#include "unrarcmd.h"
26
-#include "others.h"
27
-
28
-#ifdef RAR_HIGH_DEBUG
29
-#define rar_dbgmsg printf
30
-#else
31
-static void rar_dbgmsg(){};
32
-#endif
33
-
34
-#define VMCF_OP0             0
35
-#define VMCF_OP1             1
36
-#define VMCF_OP2             2
37
-#define VMCF_OPMASK          3
38
-#define VMCF_BYTEMODE        4
39
-#define VMCF_JUMP            8
40
-#define VMCF_PROC           16
41
-#define VMCF_USEFLAGS       32
42
-#define VMCF_CHFLAGS        64
43
-
44
-static uint8_t vm_cmdflags[]=
45
-{
46
-  /* VM_MOV   */ VMCF_OP2 | VMCF_BYTEMODE                                ,
47
-  /* VM_CMP   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
48
-  /* VM_ADD   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
49
-  /* VM_SUB   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
50
-  /* VM_JZ    */ VMCF_OP1 | VMCF_JUMP | VMCF_USEFLAGS                    ,
51
-  /* VM_JNZ   */ VMCF_OP1 | VMCF_JUMP | VMCF_USEFLAGS                    ,
52
-  /* VM_INC   */ VMCF_OP1 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
53
-  /* VM_DEC   */ VMCF_OP1 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
54
-  /* VM_JMP   */ VMCF_OP1 | VMCF_JUMP                                    ,
55
-  /* VM_XOR   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
56
-  /* VM_AND   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
57
-  /* VM_OR    */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
58
-  /* VM_TEST  */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
59
-  /* VM_JS    */ VMCF_OP1 | VMCF_JUMP | VMCF_USEFLAGS                    ,
60
-  /* VM_JNS   */ VMCF_OP1 | VMCF_JUMP | VMCF_USEFLAGS                    ,
61
-  /* VM_JB    */ VMCF_OP1 | VMCF_JUMP | VMCF_USEFLAGS                    ,
62
-  /* VM_JBE   */ VMCF_OP1 | VMCF_JUMP | VMCF_USEFLAGS                    ,
63
-  /* VM_JA    */ VMCF_OP1 | VMCF_JUMP | VMCF_USEFLAGS                    ,
64
-  /* VM_JAE   */ VMCF_OP1 | VMCF_JUMP | VMCF_USEFLAGS                    ,
65
-  /* VM_PUSH  */ VMCF_OP1                                                ,
66
-  /* VM_POP   */ VMCF_OP1                                                ,
67
-  /* VM_CALL  */ VMCF_OP1 | VMCF_PROC                                    ,
68
-  /* VM_RET   */ VMCF_OP0 | VMCF_PROC                                    ,
69
-  /* VM_NOT   */ VMCF_OP1 | VMCF_BYTEMODE                                ,
70
-  /* VM_SHL   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
71
-  /* VM_SHR   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
72
-  /* VM_SAR   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
73
-  /* VM_NEG   */ VMCF_OP1 | VMCF_BYTEMODE | VMCF_CHFLAGS                 ,
74
-  /* VM_PUSHA */ VMCF_OP0                                                ,
75
-  /* VM_POPA  */ VMCF_OP0                                                ,
76
-  /* VM_PUSHF */ VMCF_OP0 | VMCF_USEFLAGS                                ,
77
-  /* VM_POPF  */ VMCF_OP0 | VMCF_CHFLAGS                                 ,
78
-  /* VM_MOVZX */ VMCF_OP2                                                ,
79
-  /* VM_MOVSX */ VMCF_OP2                                                ,
80
-  /* VM_XCHG  */ VMCF_OP2 | VMCF_BYTEMODE                                ,
81
-  /* VM_MUL   */ VMCF_OP2 | VMCF_BYTEMODE                                ,
82
-  /* VM_DIV   */ VMCF_OP2 | VMCF_BYTEMODE                                ,
83
-  /* VM_ADC   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_USEFLAGS | VMCF_CHFLAGS ,
84
-  /* VM_SBB   */ VMCF_OP2 | VMCF_BYTEMODE | VMCF_USEFLAGS | VMCF_CHFLAGS ,
85
-  /* VM_PRINT */ VMCF_OP0
86
-};
87
-
88
-#define UINT32(x)  (sizeof(uint32_t)==4 ? (uint32_t)(x):((x)&0xffffffff))
89
-
90
-static unsigned int rarvm_get_value(int byte_mode, unsigned int *addr)
91
-{
92
-	if (byte_mode) {
93
-		return *addr;
94
-	} else {
95
-#if WORDS_BIGENDIAN == 0
96
-		return UINT32(*addr);
97
-#else
98
-                unsigned char *B = (unsigned char *)addr;
99
-                return UINT32((uint8_t)B[0]|((uint8_t)B[1]<<8)|((uint8_t)B[2]<<16)|((uint8_t)B[3]<<24));
100
-#endif
101
-	}
102
-}
103
-
104
-#if WORDS_BIGENDIAN == 0
105
-#define GET_VALUE(byte_mode,addr) ((byte_mode) ? (*(unsigned char *)(addr)) : UINT32((*(unsigned int *)(addr))))
106
-#else
107
-#define GET_VALUE(byte_mode,addr) rarvm_get_value(byte_mode, (unsigned int *)addr)
108
-#endif
109
-
110
-void rarvm_set_value(int byte_mode, unsigned int *addr, unsigned int value)
111
-{
112
-	if (byte_mode) {
113
-		*(unsigned char *)addr=value;
114
-	} else {
115
-#if WORDS_BIGENDIAN == 0
116
-		*(uint32_t *)addr = value;
117
-#else
118
-		((unsigned char *)addr)[0]=(unsigned char)value;
119
-		((unsigned char *)addr)[1]=(unsigned char)(value>>8);
120
-		((unsigned char *)addr)[2]=(unsigned char)(value>>16);
121
-		((unsigned char *)addr)[3]=(unsigned char)(value>>24);
122
-#endif
123
-	}
124
-}
125
-
126
-		
127
-#if WORDS_BIGENDIAN == 0
128
-#define SET_VALUE(byte_mode,addr,value) ((byte_mode) ? (*(unsigned char *)(addr)=(value)):(*(uint32_t *)(addr)=((uint32_t)(value))))
129
-#else
130
-#define SET_VALUE(byte_mode,addr,value) rarvm_set_value(byte_mode, (unsigned int *)addr, value);
131
-#endif
132
-
133
-uint32_t crc_tab[256];
134
-
135
-static void rar_crc_init()
136
-{
137
-	int i, j;
138
-	unsigned int c;
139
-	
140
-	for (i=0 ; i < 256 ; i++) {
141
-		c = i;
142
-		for (j = 0 ; j < 8 ; j++) {
143
-			c = (c & 1) ? (c >> 1) ^ 0xedb88320L : (c>>1);
144
-		}
145
-		crc_tab[i] = c;
146
-	}
147
-}
148
-
149
-uint32_t rar_crc(uint32_t start_crc, void *addr, uint32_t size)
150
-{
151
-	unsigned char *data;
152
-	int i;
153
-
154
-	data = addr;
155
-#if WORDS_BIGENDIAN == 0
156
-	while (size > 0 && ((int)data & 7))
157
-	{
158
-		start_crc = crc_tab[(unsigned char)(start_crc^data[0])]^(start_crc>>8);
159
-		size--;
160
-		data++;
161
-	}
162
-	while (size >= 8)
163
-	{
164
-		start_crc ^= *(uint32_t *) data;
165
-		start_crc = crc_tab[(unsigned char)start_crc] ^ (start_crc>>8);
166
-		start_crc = crc_tab[(unsigned char)start_crc] ^ (start_crc>>8);
167
-		start_crc = crc_tab[(unsigned char)start_crc] ^ (start_crc>>8);
168
-		start_crc = crc_tab[(unsigned char)start_crc] ^ (start_crc>>8);
169
-		start_crc ^= *(uint32_t *)(data+4);
170
-		start_crc = crc_tab[(unsigned char)start_crc] ^ (start_crc>>8);
171
-		start_crc = crc_tab[(unsigned char)start_crc] ^ (start_crc>>8);
172
-		start_crc = crc_tab[(unsigned char)start_crc] ^ (start_crc>>8);
173
-		start_crc = crc_tab[(unsigned char)start_crc] ^ (start_crc>>8);
174
-		data += 8;
175
-		size -= 8;
176
-	}
177
-#endif
178
-	for (i=0 ; i < size ; i++) {
179
-		start_crc = crc_tab[(unsigned char)(start_crc^data[i])]^(start_crc >> 8);
180
-	}
181
-	return start_crc;
182
-}
183
-
184
-int rarvm_init(rarvm_data_t *rarvm_data)
185
-{
186
-	rarvm_data->mem = (uint8_t *) cli_malloc(RARVM_MEMSIZE+4);
187
-	rar_crc_init();
188
-	if (!rarvm_data->mem) {
189
-		return FALSE;
190
-	}
191
-	return TRUE;
192
-}
193
-
194
-void rarvm_free(rarvm_data_t *rarvm_data)
195
-{
196
-	if (rarvm_data && rarvm_data->mem) {
197
-		free(rarvm_data->mem);
198
-		rarvm_data->mem = NULL;
199
-	}
200
-}
201
-
202
-void rarvm_addbits(rarvm_input_t *rarvm_input, int bits)
203
-{
204
-	bits += rarvm_input->in_bit;
205
-	rarvm_input->in_addr += bits >> 3;
206
-	rarvm_input->in_bit = bits & 7;
207
-}
208
-
209
-unsigned int rarvm_getbits(rarvm_input_t *rarvm_input)
210
-{
211
-	unsigned int bit_field;
212
-
213
-	bit_field = (unsigned int) rarvm_input->in_buf[rarvm_input->in_addr] << 16;
214
-	bit_field |= (unsigned int) rarvm_input->in_buf[rarvm_input->in_addr+1] << 8;
215
-	bit_field |= (unsigned int) rarvm_input->in_buf[rarvm_input->in_addr+2];
216
-	bit_field >>= (8-rarvm_input->in_bit);
217
-
218
-	return (bit_field & 0xffff);
219
-}
220
-
221
-unsigned int rarvm_read_data(rarvm_input_t *rarvm_input)
222
-{
223
-	unsigned int data;
224
-	
225
-	data = rarvm_getbits(rarvm_input);
226
-	rar_dbgmsg("rarvm_read_data getbits=%u\n", data);
227
-	switch (data & 0xc000) {
228
-	case 0:
229
-		rarvm_addbits(rarvm_input,6);
230
-		rar_dbgmsg("rarvm_read_data=%u\n", ((data>>10)&0x0f));
231
-		return ((data>>10)&0x0f);
232
-	case 0x4000:
233
-		if ((data & 0x3c00) == 0) {
234
-			data = 0xffffff00 | ((data>>2) & 0xff);
235
-			rarvm_addbits(rarvm_input,14);
236
-		} else {
237
-			data = (data >> 6) &0xff;
238
-			rarvm_addbits(rarvm_input,10);
239
-		}
240
-		rar_dbgmsg("rarvm_read_data=%u\n", data);
241
-		return data;
242
-	case 0x8000:
243
-		rarvm_addbits(rarvm_input,2);
244
-		data = rarvm_getbits(rarvm_input);
245
-		rarvm_addbits(rarvm_input,16);
246
-		rar_dbgmsg("rarvm_read_data=%u\n", data);
247
-		return data;
248
-	default:
249
-		rarvm_addbits(rarvm_input,2);
250
-		data = (rarvm_getbits(rarvm_input) << 16);
251
-		rarvm_addbits(rarvm_input,16);
252
-		data |= rarvm_getbits(rarvm_input);
253
-		rarvm_addbits(rarvm_input,16);
254
-		rar_dbgmsg("rarvm_read_data=%u\n", data);
255
-		return data;
256
-	}
257
-}
258
-
259
-static rarvm_standard_filters_t is_standard_filter(unsigned char *code, int code_size)
260
-{
261
-	uint32_t code_crc;
262
-	int i;
263
-
264
-	struct standard_filter_signature
265
-	{
266
-		int length;
267
-		uint32_t crc;
268
-		rarvm_standard_filters_t type;
269
-	} std_filt_list[] = {
270
-		{53,  0xad576887, VMSF_E8},
271
-		{57,  0x3cd7e57e, VMSF_E8E9},
272
-		{120, 0x3769893f, VMSF_ITANIUM},
273
-		{29,  0x0e06077d, VMSF_DELTA},
274
-		{149, 0x1c2c5dc8, VMSF_RGB},
275
- 		{216, 0xbc85e701, VMSF_AUDIO},
276
-		{40,  0x46b9c560, VMSF_UPCASE}
277
-	};
278
-	
279
-	code_crc = rar_crc(0xffffffff, code, code_size)^0xffffffff;
280
-	rar_dbgmsg("code_crc=%u\n", code_crc);
281
-	for (i=0 ; i<sizeof(std_filt_list)/sizeof(std_filt_list[0]) ; i++) {
282
-		if (std_filt_list[i].crc == code_crc && std_filt_list[i].length == code_size) {
283
-			return std_filt_list[i].type;
284
-		}
285
-	}
286
-	return VMSF_NONE;
287
-}
288
-
289
-void rarvm_set_memory(rarvm_data_t *rarvm_data, unsigned int pos, uint8_t *data, unsigned int data_size)
290
-{
291
-	if (pos<RARVM_MEMSIZE && data!=rarvm_data->mem+pos) {
292
-		memmove(rarvm_data->mem+pos, data, MIN(data_size, RARVM_MEMSIZE-pos));
293
-	}
294
-}
295
-
296
-static unsigned int *rarvm_get_operand(rarvm_data_t *rarvm_data,
297
-				struct rarvm_prepared_operand *cmd_op)
298
-{
299
-	if (cmd_op->type == VM_OPREGMEM) {
300
-		return ((unsigned int *)&rarvm_data->mem[(*cmd_op->addr+cmd_op->base) & RARVM_MEMMASK]);
301
-	} else {
302
-		return cmd_op->addr;
303
-	}
304
-}
305
-
306
-static unsigned int filter_itanium_getbits(unsigned char *data, int bit_pos, int bit_count)
307
-{
308
-	int in_addr=bit_pos/8;
309
-	int in_bit=bit_pos&7;
310
-	unsigned int bit_field=(unsigned int)data[in_addr++];
311
-	bit_field|=(unsigned int)data[in_addr++] << 8;
312
-	bit_field|=(unsigned int)data[in_addr++] << 16;
313
-	bit_field|=(unsigned int)data[in_addr] << 24;
314
-	bit_field >>= in_bit;
315
-	return(bit_field & (0xffffffff>>(32-bit_count)));
316
-}
317
-
318
-static void filter_itanium_setbits(unsigned char *data, unsigned int bit_field, int bit_pos, int bit_count)
319
-{
320
-	int i, in_addr=bit_pos/8;
321
-	int in_bit=bit_pos&7;
322
-	unsigned int and_mask=0xffffffff>>(32-bit_count);
323
-	and_mask=~(and_mask<<in_bit);
324
-
325
-	bit_field<<=in_bit;
326
-
327
-	for (i=0 ; i<4 ; i++) {
328
-		data[in_addr+i]&=and_mask;
329
-		data[in_addr+i]|=bit_field;
330
-		and_mask=(and_mask>>8)|0xff000000;
331
-		bit_field>>=8;
332
-	}
333
-}
334
-
335
-static void execute_standard_filter(rarvm_data_t *rarvm_data, rarvm_standard_filters_t filter_type)
336
-{
337
-	unsigned char *data, cmp_byte2, cur_byte, *src_data, *dest_data;
338
-	int i, j, data_size, channels, src_pos, dest_pos, border, width, PosR;
339
-	int op_type, cur_channel, byte_count, start_pos, pa, pb, pc;
340
-	unsigned int file_offset, cur_pos, predicted;
341
-	int32_t offset, addr;
342
-	const int file_size=0x1000000;
343
-
344
-	switch(filter_type) {
345
-	case VMSF_E8:
346
-	case VMSF_E8E9:
347
-		data=rarvm_data->mem;
348
-		data_size = rarvm_data->R[4];
349
-		file_offset = rarvm_data->R[6];
350
-
351
-		if ((data_size >= VM_GLOBALMEMADDR) || (data_size < 4)) {
352
-			break;
353
-		}
354
-
355
-		cmp_byte2 = filter_type==VMSF_E8E9 ? 0xe9:0xe8;
356
-		for (cur_pos = 0 ; cur_pos < data_size-4 ; ) {
357
-			cur_byte = *(data++);
358
-			cur_pos++;
359
-			if (cur_byte==0xe8 || cur_byte==cmp_byte2) {
360
-				offset = cur_pos+file_offset;
361
-				addr = GET_VALUE(FALSE, data);
362
-				if (addr < 0) {
363
-					if (addr+offset >=0 ) {
364
-						SET_VALUE(FALSE, data, addr+file_size);
365
-					}
366
-				} else {
367
-					if (addr<file_size) {
368
-						SET_VALUE(FALSE, data, addr-offset);
369
-					}
370
-				}
371
-				data += 4;
372
-				cur_pos += 4;
373
-			}
374
-		}
375
-		break;
376
-	case VMSF_ITANIUM:
377
-		data=rarvm_data->mem;
378
-		data_size = rarvm_data->R[4];
379
-		file_offset = rarvm_data->R[6];
380
-		
381
-		if ((data_size >= VM_GLOBALMEMADDR) || (data_size < 21)) {
382
-			break;
383
-		}
384
-		
385
-		cur_pos = 0;
386
-		
387
-		file_offset>>=4;
388
-		
389
-		while (cur_pos < data_size-21) {
390
-			int Byte = (data[0] & 0x1f) - 0x10;
391
-			if (Byte >= 0) {
392
-				static unsigned char masks[16]={4,4,6,6,0,0,7,7,4,4,0,0,4,4,0,0};
393
-				unsigned char cmd_mask = masks[Byte];
394
-				
395
-				if (cmd_mask != 0) {
396
-					for (i=0 ; i <= 2 ; i++) {
397
-						if (cmd_mask & (1<<i)) {
398
-							start_pos = i*41+5;
399
-							op_type = filter_itanium_getbits(data,
400
-									start_pos+37, 4);
401
-							if (op_type == 5) {
402
-								offset = filter_itanium_getbits(data,
403
-										start_pos+13, 20);
404
-								filter_itanium_setbits(data,
405
-									(offset-file_offset)
406
-									&0xfffff,start_pos+13,20);
407
-							}
408
-						}
409
-					}
410
-				}
411
-			}
412
-			data += 16;
413
-			cur_pos += 16;
414
-			file_offset++;
415
-		}
416
-		break;
417
-	case VMSF_DELTA:
418
-		data_size = rarvm_data->R[4];
419
-		channels = rarvm_data->R[0];
420
-		src_pos = 0;
421
-		border = data_size*2;
422
-		
423
-		SET_VALUE(FALSE, &rarvm_data->mem[VM_GLOBALMEMADDR+0x20], data_size);
424
-		if (data_size >= VM_GLOBALMEMADDR/2) {
425
-			break;
426
-		}
427
-		for (cur_channel=0 ; cur_channel < channels ; cur_channel++) {
428
-			unsigned char prev_byte = 0;
429
-			for (dest_pos=data_size+cur_channel ; dest_pos<border ; dest_pos+=channels) {
430
-				rarvm_data->mem[dest_pos] = (prev_byte -= rarvm_data->mem[src_pos++]);
431
-			}
432
-		}
433
-		break;
434
-	case VMSF_RGB: {
435
-		const int channels=3;
436
-		data_size = rarvm_data->R[4];
437
-		width = rarvm_data->R[0] - 3;
438
-		PosR = rarvm_data->R[1];
439
-		src_data = rarvm_data->mem;
440
-		dest_data = src_data + data_size;
441
-		
442
-		SET_VALUE(FALSE, &rarvm_data->mem[VM_GLOBALMEMADDR+0x20], data_size);
443
-		if (data_size >= VM_GLOBALMEMADDR/2) {
444
-			break;
445
-		}
446
-		for (cur_channel=0 ; cur_channel < channels; cur_channel++) {
447
-			unsigned int prev_byte = 0;
448
-			for (i=cur_channel ; i<data_size ; i+=channels) {
449
-				int upper_pos=i-width;
450
-				if (upper_pos >= 3) {
451
-					unsigned char *upper_data = dest_data+upper_pos;
452
-					unsigned int upper_byte = *upper_data;
453
-					unsigned int upper_left_byte = *(upper_data-3);
454
-					predicted = prev_byte+upper_byte-upper_left_byte;
455
-					pa = abs((int)(predicted-prev_byte));
456
-					pb = abs((int)(predicted-upper_byte));
457
-					pc = abs((int)(predicted-upper_left_byte));
458
-					if (pa <= pb && pa <= pc) {
459
-						predicted = prev_byte;
460
-					} else {
461
-						if (pb <= pc) {
462
-							predicted = upper_byte;
463
-						} else {
464
-							predicted = upper_left_byte;
465
-						}
466
-					}
467
-				} else {
468
-					predicted = prev_byte;
469
-				}
470
-				dest_data[i] = prev_byte = (unsigned char)(predicted-*(src_data++));
471
-			}
472
-		}
473
-		for (i=PosR,border=data_size-2 ; i < border ; i+=3) {
474
-			unsigned char g=dest_data[i+1];
475
-			dest_data[i] += g;
476
-			dest_data[i+2] += g;
477
-		}
478
-		break;
479
-	}
480
-	case VMSF_AUDIO: {
481
-		int channels=rarvm_data->R[0];
482
-		data_size = rarvm_data->R[4];
483
-		src_data = rarvm_data->mem;
484
-		dest_data = src_data + data_size;
485
-		
486
-		SET_VALUE(FALSE, &rarvm_data->mem[VM_GLOBALMEMADDR+0x20], data_size);
487
-		if (data_size >= VM_GLOBALMEMADDR/2) {
488
-			break;
489
-		}
490
-		for (cur_channel=0 ; cur_channel < channels ; cur_channel++) {
491
-			unsigned int prev_byte = 0, prev_delta=0, Dif[7];
492
-			int D, D1=0, D2=0, D3=0, K1=0, K2=0, K3=0;
493
-			
494
-			memset(Dif, 0, sizeof(Dif));
495
-			
496
-			for (i=cur_channel, byte_count=0 ; i<data_size ; i+=channels, byte_count++) {
497
-				D3=D2;
498
-				D2 = prev_delta-D1;
499
-				D1 = prev_delta;
500
-				
501
-				predicted = 8*prev_byte+K1*D1+K2*D2+K3*D3;
502
-				predicted = (predicted>>3) & 0xff;
503
-				
504
-				cur_byte = *(src_data++);
505
-				
506
-				predicted -= cur_byte;
507
-				dest_data[i] = predicted;
508
-				prev_delta = (signed char)(predicted-prev_byte);
509
-				prev_byte = predicted;
510
-				
511
-				D=((signed char)cur_byte) << 3;
512
-				
513
-				Dif[0] += abs(D);
514
-				Dif[1] += abs(D-D1);
515
-				Dif[2] += abs(D+D1);
516
-				Dif[3] += abs(D-D2);
517
-				Dif[4] += abs(D+D2);
518
-				Dif[5] += abs(D-D3);
519
-				Dif[6] += abs(D+D3);
520
-				
521
-				if ((byte_count & 0x1f) == 0) {
522
-					unsigned int min_dif=Dif[0], num_min_dif=0;
523
-					Dif[0]=0;
524
-					for (j=1 ; j<sizeof(Dif)/sizeof(Dif[0]) ; j++) {
525
-						if (Dif[j] < min_dif) {
526
-							min_dif = Dif[j];
527
-							num_min_dif = j;
528
-						}
529
-						Dif[j]=0;
530
-					}
531
-					switch(num_min_dif) {
532
-					case 1: if (K1>=-16) K1--; break;
533
-					case 2: if (K1 < 16) K1++; break;
534
-					case 3: if (K2>=-16) K2--; break;
535
-					case 4: if (K2 < 16) K2++; break;
536
-					case 5: if (K3>=-16) K3--; break;
537
-					case 6: if (K3 < 16) K3++; break;
538
-					}
539
-				}
540
-			}
541
-		}
542
-		break;
543
-	}
544
-	case VMSF_UPCASE:
545
-		data_size = rarvm_data->R[4];
546
-		src_pos = 0;
547
-		dest_pos = data_size;
548
-		if (data_size >= VM_GLOBALMEMADDR/2) {
549
-			break;
550
-		}
551
-		while (src_pos < data_size) {
552
-			cur_byte = rarvm_data->mem[src_pos++];
553
-			if (cur_byte==2 && (cur_byte=rarvm_data->mem[src_pos++]) != 2) {
554
-				cur_byte -= 32;
555
-			}
556
-			rarvm_data->mem[dest_pos++]=cur_byte;
557
-		}
558
-		SET_VALUE(FALSE, &rarvm_data->mem[VM_GLOBALMEMADDR+0x1c], dest_pos-data_size);
559
-		SET_VALUE(FALSE, &rarvm_data->mem[VM_GLOBALMEMADDR+0x20], data_size);
560
-		break;
561
-	}
562
-}
563
-				
564
-#define SET_IP(IP)                      \
565
-  if ((IP)>=code_size)                   \
566
-    return TRUE;                       \
567
-  if (--max_ops<=0)                  \
568
-    return FALSE;                      \
569
-  cmd=prepared_code+(IP);
570
-
571
-static int rarvm_execute_code(rarvm_data_t *rarvm_data,
572
-		struct rarvm_prepared_command *prepared_code, int code_size)
573
-{
574
-	int max_ops=25000000, i, SP;
575
-	struct rarvm_prepared_command *cmd;
576
-	unsigned int value1, value2, result, divider, FC, *op1, *op2;
577
-	const int reg_count=sizeof(rarvm_data->R)/sizeof(rarvm_data->R[0]);
578
-	
579
-	rar_dbgmsg("in rarvm_execute_code\n");
580
-	cmd = prepared_code;
581
-	while (1) {
582
-		if (cmd > (prepared_code + code_size)) {
583
-			cli_dbgmsg("RAR: code overrun detected\n");
584
-			return FALSE;
585
-		}
586
-		if (cmd < prepared_code) {
587
-			cli_dbgmsg("RAR: code underrun detected\n");
588
-                        return FALSE;
589
-                }
590
-		op1 = rarvm_get_operand(rarvm_data, &cmd->op1);
591
-		op2 = rarvm_get_operand(rarvm_data, &cmd->op2);
592
-		rar_dbgmsg("op(%d) op_code: %d, op1=%u, op2=%u\n", 25000000-max_ops,
593
-					cmd->op_code, op1, op2);
594
-		switch(cmd->op_code) {
595
-		case VM_MOV:
596
-			SET_VALUE(cmd->byte_mode, op1, GET_VALUE(cmd->byte_mode, op2));
597
-			break;
598
-		case VM_MOVB:
599
-			SET_VALUE(TRUE, op1, GET_VALUE(TRUE, op2));
600
-			break;
601
-		case VM_MOVD:
602
-			SET_VALUE(FALSE, op1, GET_VALUE(FALSE, op2));
603
-			break;
604
-		case VM_CMP:
605
-			value1 = GET_VALUE(cmd->byte_mode, op1);
606
-			result = UINT32(value1 - GET_VALUE(cmd->byte_mode, op2));
607
-			rarvm_data->Flags = result==0 ? VM_FZ : (result>value1)|(result&VM_FS);
608
-			break;
609
-		case VM_CMPB:
610
-			value1 = GET_VALUE(TRUE, op1);
611
-			result = UINT32(value1 - GET_VALUE(TRUE, op2));
612
-			rarvm_data->Flags = result==0 ? VM_FZ : (result>value1)|(result&VM_FS);
613
-			break;
614
-		case VM_CMPD:
615
-			value1 = GET_VALUE(FALSE, op1);
616
-			result = UINT32(value1 - GET_VALUE(FALSE, op2));
617
-			rarvm_data->Flags = result==0 ? VM_FZ : (result>value1)|(result&VM_FS);
618
-			break;
619
-		case VM_ADD:
620
-			value1 = GET_VALUE(cmd->byte_mode, op1);
621
-			result = UINT32(value1 + GET_VALUE(cmd->byte_mode, op2));
622
-			rarvm_data->Flags = result==0 ? VM_FZ : (result<value1)|(result&VM_FS);
623
-			SET_VALUE(cmd->byte_mode, op1, result);
624
-			break;
625
-		case VM_ADDB:
626
-			SET_VALUE(TRUE, op1, GET_VALUE(TRUE, op1)+GET_VALUE(TRUE, op2));
627
-			break;
628
-		case VM_ADDD:
629
-			SET_VALUE(FALSE, op1, GET_VALUE(FALSE, op1)+GET_VALUE(FALSE, op2));
630
-			break;
631
-		case VM_SUB:
632
-			value1 = GET_VALUE(cmd->byte_mode, op1);
633
-			result = UINT32(value1 - GET_VALUE(cmd->byte_mode, op2));
634
-			rarvm_data->Flags = result==0 ? VM_FZ : (result>value1)|(result&VM_FS);
635
-			SET_VALUE(cmd->byte_mode, op1, result);
636
-			break;
637
-		case VM_SUBB:
638
-			SET_VALUE(TRUE, op1, GET_VALUE(TRUE, op1)-GET_VALUE(TRUE, op2));
639
-			break;
640
-		case VM_SUBD:
641
-			SET_VALUE(FALSE, op1, GET_VALUE(FALSE, op1)-GET_VALUE(FALSE, op2));
642
-			break;
643
-		case VM_JZ:
644
-			if ((rarvm_data->Flags & VM_FZ) != 0) {
645
-				SET_IP(GET_VALUE(FALSE, op1));
646
-				continue;
647
-			}
648
-			break;
649
-		case VM_JNZ:
650
-			if ((rarvm_data->Flags & VM_FZ) == 0) {
651
-				SET_IP(GET_VALUE(FALSE, op1));
652
-				continue;
653
-			}
654
-			break;
655
-		case VM_INC:
656
-			result = UINT32(GET_VALUE(cmd->byte_mode, op1)+1);
657
-			SET_VALUE(cmd->byte_mode, op1, result);
658
-			rarvm_data->Flags = result==0 ? VM_FZ : result&VM_FS;
659
-			break;
660
-		case VM_INCB:
661
-			SET_VALUE(TRUE, op1, GET_VALUE(TRUE, op1)+1);
662
-			break;
663
-		case VM_INCD:
664
-			SET_VALUE(FALSE, op1, GET_VALUE(FALSE, op1)+1);
665
-			break;
666
-		case VM_DEC:
667
-			result = UINT32(GET_VALUE(cmd->byte_mode, op1)-1);
668
-			SET_VALUE(cmd->byte_mode, op1, result);
669
-			rarvm_data->Flags = result==0 ? VM_FZ : result&VM_FS;
670
-			break;
671
-		case VM_DECB:
672
-			SET_VALUE(TRUE, op1, GET_VALUE(TRUE, op1)-1);
673
-			break;
674
-		case VM_DECD:
675
-			SET_VALUE(FALSE, op1, GET_VALUE(FALSE, op1)-1);
676
-			break;
677
-		case VM_JMP:
678
-			SET_IP(GET_VALUE(FALSE, op1));
679
-			continue;
680
-		case VM_XOR:
681
-			result = UINT32(GET_VALUE(cmd->byte_mode, op1)^GET_VALUE(cmd->byte_mode, op2));
682
-			rarvm_data->Flags = result==0 ? VM_FZ : result&VM_FS;
683
-			SET_VALUE(cmd->byte_mode, op1, result);
684
-			break;
685
-		case VM_AND:
686
-			result = UINT32(GET_VALUE(cmd->byte_mode, op1)&GET_VALUE(cmd->byte_mode, op2));
687
-			rarvm_data->Flags = result==0 ? VM_FZ : result&VM_FS;
688
-			SET_VALUE(cmd->byte_mode, op1, result);
689
-			break;
690
-		case VM_OR:
691
-			result = UINT32(GET_VALUE(cmd->byte_mode, op1)|GET_VALUE(cmd->byte_mode, op2));
692
-			rarvm_data->Flags = result==0 ? VM_FZ : result&VM_FS;
693
-			SET_VALUE(cmd->byte_mode, op1, result);
694
-			break;
695
-		case VM_TEST:
696
-			result = UINT32(GET_VALUE(cmd->byte_mode, op1)&GET_VALUE(cmd->byte_mode, op2));
697
-			rarvm_data->Flags = result==0 ? VM_FZ : result&VM_FS;
698
-			break;
699
-		case VM_JS:
700
-			if ((rarvm_data->Flags & VM_FS) != 0) {
701
-				SET_IP(GET_VALUE(FALSE, op1));
702
-				continue;
703
-			}
704
-			break;
705
-		case VM_JNS:
706
-			if ((rarvm_data->Flags & VM_FS) == 0) {
707
-				SET_IP(GET_VALUE(FALSE, op1));
708
-				continue;
709
-			}
710
-			break;
711
-		case VM_JB:
712
-			if ((rarvm_data->Flags & VM_FC) != 0) {
713
-				SET_IP(GET_VALUE(FALSE, op1));
714
-				continue;
715
-			}
716
-			break;
717
-		case VM_JBE:
718
-			if ((rarvm_data->Flags & (VM_FC|VM_FZ)) != 0) {
719
-				SET_IP(GET_VALUE(FALSE, op1));
720
-				continue;
721
-			}
722
-			break;
723
-		case VM_JA:
724
-			if ((rarvm_data->Flags & (VM_FC|VM_FZ)) == 0) {
725
-				SET_IP(GET_VALUE(FALSE, op1));
726
-				continue;
727
-			}
728
-			break;
729
-		case VM_JAE:
730
-			if ((rarvm_data->Flags & VM_FC) == 0) {
731
-				SET_IP(GET_VALUE(FALSE, op1));
732
-				continue;
733
-			}
734
-			break;
735
-		case VM_PUSH:
736
-			rarvm_data->R[7] -= 4;
737
-			SET_VALUE(FALSE, (unsigned int *)&rarvm_data->mem[rarvm_data->R[7] &
738
-				RARVM_MEMMASK],	GET_VALUE(FALSE, op1));
739
-			break;
740
-		case VM_POP:
741
-			SET_VALUE(FALSE, op1, GET_VALUE(FALSE,
742
-				(unsigned int *)&rarvm_data->mem[rarvm_data->R[7] & RARVM_MEMMASK]));
743
-			rarvm_data->R[7] += 4;
744
-			break;
745
-		case VM_CALL:
746
-			rarvm_data->R[7] -= 4;
747
-			SET_VALUE(FALSE, (unsigned int *)&rarvm_data->mem[rarvm_data->R[7] &
748
-					RARVM_MEMMASK], cmd-prepared_code+1);
749
-			SET_IP(GET_VALUE(FALSE, op1));
750
-			continue;
751
-		case VM_NOT:
752
-			SET_VALUE(cmd->byte_mode, op1, ~GET_VALUE(cmd->byte_mode, op1));
753
-			break;
754
-		case VM_SHL:
755
-			value1 = GET_VALUE(cmd->byte_mode, op1);
756
-			value2 = GET_VALUE(cmd->byte_mode, op1);
757
-			result = UINT32(value1 << value2);
758
-			rarvm_data->Flags = (result==0 ? VM_FZ : (result&VM_FS))|
759
-				((value1 << (value2-1))&0x80000000 ? VM_FC:0);
760
-			SET_VALUE(cmd->byte_mode, op1, result);
761
-			break;
762
-		case VM_SHR:
763
-			value1 = GET_VALUE(cmd->byte_mode, op1);
764
-			value2 = GET_VALUE(cmd->byte_mode, op1);
765
-			result = UINT32(value1 >> value2);
766
-			rarvm_data->Flags = (result==0 ? VM_FZ : (result&VM_FS))|
767
-				((value1 >> (value2-1)) & VM_FC);
768
-			SET_VALUE(cmd->byte_mode, op1, result);
769
-			break;
770
-		case VM_SAR:
771
-			value1 = GET_VALUE(cmd->byte_mode, op1);
772
-			value2 = GET_VALUE(cmd->byte_mode, op1);
773
-			result = UINT32(((int)value1) >> value2);
774
-			rarvm_data->Flags = (result==0 ? VM_FZ : (result&VM_FS))|
775
-				((value1 >> (value2-1)) & VM_FC);
776
-			SET_VALUE(cmd->byte_mode, op1, result);
777
-			break;
778
-		case VM_NEG:
779
-			result = UINT32(-GET_VALUE(cmd->byte_mode, op1));
780
-			rarvm_data->Flags = result==0 ? VM_FZ:VM_FC|(result&VM_FS);
781
-			SET_VALUE(cmd->byte_mode, op1, result);
782
-			break;
783
-		case VM_NEGB:
784
-			SET_VALUE(TRUE, op1, -GET_VALUE(TRUE, op1));
785
-			break;
786
-		case VM_NEGD:
787
-			SET_VALUE(FALSE, op1, -GET_VALUE(FALSE, op1));
788
-			break;
789
-		case VM_PUSHA:
790
-			for (i=0, SP=rarvm_data->R[7]-4 ; i<reg_count ; i++, SP-=4) {
791
-				SET_VALUE(FALSE,
792
-					(unsigned int *)&rarvm_data->mem[SP & RARVM_MEMMASK],
793
-					rarvm_data->R[i]);
794
-			}
795
-			rarvm_data->R[7] -= reg_count*4;
796
-			break;
797
-		case VM_POPA:
798
-			for (i=0,SP=rarvm_data->R[7] ; i<reg_count ; i++, SP+=4) {
799
-				rarvm_data->R[7-i] = GET_VALUE(FALSE,
800
-					(unsigned int *)&rarvm_data->mem[SP & RARVM_MEMMASK]);
801
-			}
802
-			break;
803
-		case VM_PUSHF:
804
-			rarvm_data->R[7] -= 4;
805
-			SET_VALUE(FALSE,
806
-				(unsigned int *)&rarvm_data->mem[rarvm_data->R[7] & RARVM_MEMMASK],
807
-				rarvm_data->Flags);
808
-			break;
809
-		case VM_POPF:
810
-			rarvm_data->Flags = GET_VALUE(FALSE,
811
-				(unsigned int *)&rarvm_data->mem[rarvm_data->R[7] & RARVM_MEMMASK]);
812
-			rarvm_data->R[7] += 4;
813
-			break;
814
-		case VM_MOVZX:
815
-			SET_VALUE(FALSE, op1, GET_VALUE(TRUE, op2));
816
-			break;
817
-		case VM_MOVSX:
818
-			SET_VALUE(FALSE, op1, (signed char)GET_VALUE(TRUE, op2));
819
-			break;
820
-		case VM_XCHG:
821
-			value1 = GET_VALUE(cmd->byte_mode, op1);
822
-			SET_VALUE(cmd->byte_mode, op1, GET_VALUE(cmd->byte_mode, op2));
823
-			SET_VALUE(cmd->byte_mode, op2, value1);
824
-			break;
825
-		case VM_MUL:
826
-			result = GET_VALUE(cmd->byte_mode, op1) * GET_VALUE(cmd->byte_mode, op2);
827
-			SET_VALUE(cmd->byte_mode, op1, result);
828
-			break;
829
-		case VM_DIV:
830
-			divider = GET_VALUE(cmd->byte_mode, op2);
831
-			if (divider != 0) {
832
-				result = GET_VALUE(cmd->byte_mode, op1) / divider;
833
-				SET_VALUE(cmd->byte_mode, op1, result);
834
-			}
835
-			break;
836
-		case VM_ADC:
837
-			value1 = GET_VALUE(cmd->byte_mode, op1);
838
-			FC = (rarvm_data->Flags & VM_FC);
839
-			result = UINT32(value1+GET_VALUE(cmd->byte_mode, op2)+FC);
840
-			rarvm_data->Flags = result==0 ? VM_FZ:(result<value1 ||
841
-				(result==value1 && FC))|(result&VM_FS);
842
-			SET_VALUE(cmd->byte_mode, op1, result);
843
-			break;
844
-		case VM_SBB:
845
-			value1 = GET_VALUE(cmd->byte_mode, op1);
846
-			FC = (rarvm_data->Flags & VM_FC);
847
-			result = UINT32(value1-GET_VALUE(cmd->byte_mode, op2)-FC);
848
-			rarvm_data->Flags = result==0 ? VM_FZ:(result>value1 ||
849
-				(result==value1 && FC))|(result&VM_FS);
850
-			SET_VALUE(cmd->byte_mode, op1, result);
851
-			break;
852
-		case VM_RET:
853
-			if (rarvm_data->R[7] >= RARVM_MEMSIZE) {
854
-				return TRUE;
855
-			}
856
-			SET_IP(GET_VALUE(FALSE, (unsigned int *)&rarvm_data->mem[rarvm_data->R[7] &
857
-				RARVM_MEMMASK]));
858
-			rarvm_data->R[7] += 4;
859
-			continue;
860
-		case VM_STANDARD:
861
-			execute_standard_filter(rarvm_data,
862
-					(rarvm_standard_filters_t)cmd->op1.data);
863
-			break;
864
-		case VM_PRINT:
865
-			/* DEBUG */
866
-			break;
867
-		}
868
-		cmd++;
869
-		--max_ops;
870
-	}
871
-}
872
-
873
-int rarvm_execute(rarvm_data_t *rarvm_data, struct rarvm_prepared_program *prg)
874
-{
875
-	unsigned int global_size, static_size, new_pos, new_size, data_size;
876
-	struct rarvm_prepared_command *prepared_code;
877
-	
878
-	rar_dbgmsg("in rarvm_execute\n");
879
-	memcpy(rarvm_data->R, prg->init_r, sizeof(prg->init_r));
880
-	global_size = MIN(prg->global_size, VM_GLOBALMEMSIZE);
881
-	if (global_size) {
882
-		memcpy(rarvm_data->mem+VM_GLOBALMEMADDR, &prg->global_data[0], global_size);
883
-	}
884
-	static_size = MIN(prg->static_size, VM_GLOBALMEMSIZE-global_size);
885
-	if (static_size) {
886
-		memcpy(rarvm_data->mem+VM_GLOBALMEMADDR+global_size,
887
-				&prg->static_data[0], static_size);
888
-	}
889
-	
890
-	rarvm_data->R[7] = RARVM_MEMSIZE;
891
-	rarvm_data->Flags = 0;
892
-	
893
-	prepared_code=prg->alt_cmd ? prg->alt_cmd : &prg->cmd.array[0];
894
-	if(!prepared_code) {
895
-	    cli_dbgmsg("unrar: rarvm_execute: prepared_code == NULL\n");
896
-	    return FALSE;
897
-	}
898
-	if (!rarvm_execute_code(rarvm_data, prepared_code, prg->cmd_count)) {
899
-		prepared_code[0].op_code = VM_RET;
900
-	}
901
-	new_pos = GET_VALUE(FALSE, &rarvm_data->mem[VM_GLOBALMEMADDR+0x20])&RARVM_MEMMASK;
902
-	new_size = GET_VALUE(FALSE, &rarvm_data->mem[VM_GLOBALMEMADDR+0x1c])&RARVM_MEMMASK;
903
-	if (new_pos+new_size >= RARVM_MEMSIZE) {
904
-		new_pos = new_size = 0;
905
-	}
906
-	prg->filtered_data = rarvm_data->mem + new_pos;
907
-	prg->filtered_data_size = new_size;
908
-	
909
-	if (prg->global_data) {
910
-		free(prg->global_data);
911
-		prg->global_data = NULL;
912
-		prg->global_size = 0;
913
-	}
914
-	data_size = MIN(GET_VALUE(FALSE,
915
-		(unsigned int *)&rarvm_data->mem[VM_GLOBALMEMADDR+0x30]),VM_GLOBALMEMSIZE);
916
-	if (data_size != 0) {
917
-		prg->global_size += data_size+VM_FIXEDGLOBALSIZE;
918
-		prg->global_data = cli_realloc2(prg->global_data, prg->global_size);
919
-		if(!prg->global_data) {
920
-		    cli_dbgmsg("unrar: rarvm_execute: cli_realloc2 failed for prg->global_data\n");
921
-		    return FALSE;
922
-		}
923
-		memcpy(prg->global_data, &rarvm_data->mem[VM_GLOBALMEMADDR],
924
-				data_size+VM_FIXEDGLOBALSIZE);
925
-	}
926
-
927
-	return TRUE;
928
-}
929
-
930
-void rarvm_decode_arg(rarvm_data_t *rarvm_data, rarvm_input_t *rarvm_input,
931
-		struct rarvm_prepared_operand *op, int byte_mode)
932
-{
933
-	uint16_t data;
934
-	
935
-	data = rarvm_getbits(rarvm_input);
936
-	if (data & 0x8000) {
937
-		op->type = VM_OPREG;
938
-		op->data = (data >> 12) & 7;
939
-		op->addr = &rarvm_data->R[op->data];
940
-		rarvm_addbits(rarvm_input,4);
941
-	} else if ((data & 0xc000) == 0) {
942
-		op->type = VM_OPINT;
943
-		if (byte_mode) {
944
-			op->data = (data>>6) & 0xff;
945
-			rarvm_addbits(rarvm_input,10);
946
-		} else {
947
-			rarvm_addbits(rarvm_input,2);
948
-			op->data = rarvm_read_data(rarvm_input);
949
-		}
950
-	} else {
951
-		op->type = VM_OPREGMEM;
952
-		if ((data & 0x2000) == 0) {
953
-			op->data = (data >> 10) & 7;
954
-			op->addr = &rarvm_data->R[op->data];
955
-			op->base = 0;
956
-			rarvm_addbits(rarvm_input,6);
957
-		} else {
958
-			if ((data & 0x1000) == 0) {
959
-				op->data = (data >> 9) & 7;
960
-				op->addr = &rarvm_data->R[op->data];
961
-				rarvm_addbits(rarvm_input,7);
962
-			} else {
963
-				op->data = 0;
964
-				rarvm_addbits(rarvm_input,4);
965
-			}
966
-			op->base = rarvm_read_data(rarvm_input);
967
-		}
968
-	}
969
-}
970
-
971
-void rarvm_optimize(struct rarvm_prepared_program *prg)
972
-{
973
-	struct rarvm_prepared_command *code, *cmd;
974
-	int code_size, i, flags_required, j, flags;
975
-	
976
-	code = prg->cmd.array;
977
-	code_size = prg->cmd_count;
978
-	
979
-	for (i=0 ; i < code_size ; i++) {
980
-		cmd = &code[i];
981
-		switch(cmd->op_code) {
982
-			case VM_MOV:
983
-				cmd->op_code = cmd->byte_mode ? VM_MOVB:VM_MOVD;
984
-				continue;
985
-			case VM_CMP:
986
-				cmd->op_code = cmd->byte_mode ? VM_CMPB:VM_CMPD;
987
-				continue;
988
-		}
989
-		if ((vm_cmdflags[cmd->op_code] & VMCF_CHFLAGS) == 0) {
990
-			continue;
991
-		}
992
-		flags_required = FALSE;
993
-		for (j=i+1 ; j < code_size ; j++) {
994
-			flags = vm_cmdflags[code[j].op_code];
995
-			if (flags & (VMCF_JUMP|VMCF_PROC|VMCF_USEFLAGS)) {
996
-				flags_required=TRUE;
997
-				break;
998
-			}
999
-			if (flags & VMCF_CHFLAGS) {
1000
-				break;
1001
-			}
1002
-		}
1003
-		if (flags_required) {
1004
-			continue;
1005
-		}
1006
-		switch(cmd->op_code) {
1007
-			case VM_ADD:
1008
-				cmd->op_code = cmd->byte_mode ? VM_ADDB:VM_ADDD;
1009
-				continue;
1010
-			case VM_SUB:
1011
-				cmd->op_code = cmd->byte_mode ? VM_SUBB:VM_SUBD;
1012
-				continue;
1013
-			case VM_INC:
1014
-				cmd->op_code = cmd->byte_mode ? VM_INCB:VM_INCD;
1015
-				continue;
1016
-			case VM_DEC:
1017
-				cmd->op_code = cmd->byte_mode ? VM_DECB:VM_DECD;
1018
-				continue;
1019
-			case VM_NEG:
1020
-				cmd->op_code = cmd->byte_mode ? VM_NEGB:VM_NEGD;
1021
-				continue;
1022
-		}
1023
-	}
1024
-}
1025
-
1026
-int rarvm_prepare(rarvm_data_t *rarvm_data, rarvm_input_t *rarvm_input, unsigned char *code,
1027
-		int code_size, struct rarvm_prepared_program *prg)
1028
-{
1029
-	unsigned char xor_sum;
1030
-	int i, op_num, distance;
1031
-	rarvm_standard_filters_t filter_type;
1032
-	struct rarvm_prepared_command *cur_cmd;
1033
-	uint32_t data_flag, data;
1034
- 	struct rarvm_prepared_command *cmd;
1035
- 	
1036
- 	rar_dbgmsg("in rarvm_prepare code_size=%d\n", code_size);
1037
-	rarvm_input->in_addr = rarvm_input->in_bit = 0;
1038
-	memcpy(rarvm_input->in_buf, code, MIN(code_size, 0x8000));
1039
-	xor_sum = 0;
1040
-	for (i=1 ; i<code_size; i++) {
1041
-		rar_dbgmsg("code[%d]=%d\n", i, code[i]);
1042
-		xor_sum ^= code[i];
1043
-	}
1044
-	rar_dbgmsg("xor_sum=%d\n", xor_sum);
1045
-	rarvm_addbits(rarvm_input,8);
1046
-	
1047
-	prg->cmd_count = 0;
1048
-	if (xor_sum == code[0]) {
1049
-		filter_type = is_standard_filter(code, code_size);
1050
-		rar_dbgmsg("filter_type=%d\n", filter_type);
1051
-		if (filter_type != VMSF_NONE) {
1052
-			rar_cmd_array_add(&prg->cmd, 1);
1053
-			cur_cmd = &prg->cmd.array[prg->cmd_count++];
1054
-			cur_cmd->op_code = VM_STANDARD;
1055
-			cur_cmd->op1.data = filter_type;
1056
-			cur_cmd->op1.addr = &cur_cmd->op1.data;
1057
-			cur_cmd->op2.addr = &cur_cmd->op2.data;
1058
-			cur_cmd->op1.type = cur_cmd->op2.type = VM_OPNONE;
1059
-			code_size = 0;
1060
-		}
1061
-
1062
-		data_flag = rarvm_getbits(rarvm_input);
1063
-		rar_dbgmsg("data_flag=%u\n", data_flag);
1064
-		rarvm_addbits(rarvm_input, 1);
1065
-		if (data_flag & 0x8000) {
1066
-			int data_size = rarvm_read_data(rarvm_input)+1;
1067
-			rar_dbgmsg("data_size=%d\n", data_size);
1068
-			prg->static_data = cli_malloc(data_size);
1069
-			if(!prg->static_data) {
1070
-			    cli_dbgmsg("unrar: rarvm_prepare: cli_malloc failed for prg->static_data\n");
1071
-			    return FALSE;
1072
-			}
1073
-			for (i=0 ; rarvm_input->in_addr < code_size && i < data_size ; i++) {
1074
-				prg->static_size++;
1075
-				prg->static_data = cli_realloc2(prg->static_data, prg->static_size);
1076
-				if(!prg->static_data) {
1077
-				    cli_dbgmsg("unrar: rarvm_prepare: cli_realloc2 failed for prg->static_data\n");
1078
-				    return FALSE;
1079
-				}
1080
-				prg->static_data[i] = rarvm_getbits(rarvm_input) >> 8;
1081
-				rarvm_addbits(rarvm_input, 8);
1082
-			}
1083
-		}
1084
-		while (rarvm_input->in_addr < code_size) {
1085
-			rar_cmd_array_add(&prg->cmd, 1);
1086
-			cur_cmd = &prg->cmd.array[prg->cmd_count];
1087
-			data = rarvm_getbits(rarvm_input);
1088
-			rar_dbgmsg("data: %u\n", data);
1089
-			if ((data & 0x8000) == 0) {
1090
-				cur_cmd->op_code = (rarvm_commands_t) (data>>12);
1091
-				rarvm_addbits(rarvm_input, 4);
1092
-			} else {
1093
-				cur_cmd->op_code = (rarvm_commands_t) ((data>>10)-24);
1094
-				rarvm_addbits(rarvm_input, 6);
1095
-			}
1096
-			if (vm_cmdflags[cur_cmd->op_code] & VMCF_BYTEMODE) {
1097
-				cur_cmd->byte_mode = rarvm_getbits(rarvm_input) >> 15;
1098
-				rarvm_addbits(rarvm_input, 1);
1099
-			} else {
1100
-				cur_cmd->byte_mode = 0;
1101
-			}
1102
-			cur_cmd->op1.type = cur_cmd->op2.type = VM_OPNONE;
1103
-			op_num = (vm_cmdflags[cur_cmd->op_code] & VMCF_OPMASK);
1104
-			rar_dbgmsg("op_num: %d\n", op_num);
1105
-			cur_cmd->op1.addr = cur_cmd->op2.addr = NULL;
1106
-			if (op_num > 0) {
1107
-				rarvm_decode_arg(rarvm_data, rarvm_input,
1108
-					&cur_cmd->op1, cur_cmd->byte_mode);
1109
-				if (op_num == 2) {
1110
-					rarvm_decode_arg(rarvm_data, rarvm_input,
1111
-							&cur_cmd->op2, cur_cmd->byte_mode);
1112
-				} else {
1113
-					if (cur_cmd->op1.type == VM_OPINT &&
1114
-							(vm_cmdflags[cur_cmd->op_code] &
1115
-							(VMCF_JUMP|VMCF_PROC))) {
1116
-						distance = cur_cmd->op1.data;
1117
-						rar_dbgmsg("distance = %d\n", distance);
1118
-						if (distance >= 256) {
1119
-							distance -= 256;
1120
-						} else {
1121
-							if (distance >=136) {
1122
-								distance -= 264;
1123
-							} else {
1124
-								if (distance >= 16) {
1125
-									distance -= 8;
1126
-								} else if (distance >= 8) {
1127
-									distance -= 16;
1128
-								}
1129
-							}
1130
-							distance += prg->cmd_count;
1131
-						}
1132
-						rar_dbgmsg("distance = %d\n", distance);
1133
-						cur_cmd->op1.data = distance;
1134
-					}
1135
-				}
1136
-			}
1137
-			prg->cmd_count++;
1138
-		}
1139
-	}
1140
-	rar_cmd_array_add(&prg->cmd,1);
1141
-	cur_cmd = &prg->cmd.array[prg->cmd_count++];
1142
-	cur_cmd->op_code = VM_RET;
1143
-	cur_cmd->op1.addr = &cur_cmd->op1.data;
1144
-	cur_cmd->op2.addr = &cur_cmd->op2.data;
1145
-	cur_cmd->op1.type = cur_cmd->op2.type = VM_OPNONE;
1146
-	
1147
-	for (i=0 ; i < prg->cmd_count ; i++) {
1148
-		cmd = &prg->cmd.array[i];
1149
-		rar_dbgmsg("op_code[%d]=%d\n", i, cmd->op_code);
1150
-		if (cmd->op1.addr == NULL) {
1151
-			cmd->op1.addr = &cmd->op1.data;
1152
-		}
1153
-		if (cmd->op2.addr == NULL) {
1154
-			cmd->op2.addr = &cmd->op2.data;
1155
-		}
1156
-	}
1157
-	
1158
-
1159
-	if (code_size!=0) {
1160
-		rarvm_optimize(prg);
1161
-	}
1162
-
1163
-	return TRUE;
1164
-}
1165 1
deleted file mode 100644
... ...
@@ -1,116 +0,0 @@
1
-/*
2
- * Extract RAR archives
3
- *
4
- * Copyright (C) 2005-2006 trog@uncon.org
5
- *
6
- * This code is based on the work of Alexander L. Roshal (C)
7
- *
8
- * The unRAR sources may be used in any software to handle RAR
9
- * archives without limitations free of charge, but cannot be used
10
- * to re-create the RAR compression algorithm, which is proprietary.
11
- * Distribution of modified unRAR sources in separate form or as a
12
- * part of other software is permitted, provided that it is clearly
13
- * stated in the documentation and source comments that the code may
14
- * not be used to develop a RAR (WinRAR) compatible archiver.
15
- *
16
- */
17
-
18
-
19
-#ifndef _RAR_VM_
20
-#define _RAR_VM_
21
-
22
-#include "cltypes.h"
23
-#include "unrarcmd.h"
24
-
25
-#define FALSE (0)
26
-#define TRUE (1)
27
-#ifndef MIN
28
-#define MIN(a,b) ((a < b) ? a : b)
29
-#endif
30
-
31
-#define RARVM_MEMSIZE	0x40000
32
-#define RARVM_MEMMASK	(RARVM_MEMSIZE-1)
33
-
34
-#define VM_GLOBALMEMADDR            0x3C000
35
-#define VM_GLOBALMEMSIZE             0x2000
36
-#define VM_FIXEDGLOBALSIZE               64
37
-
38
-typedef enum rarvm_commands
39
-{
40
-  VM_MOV,  VM_CMP,  VM_ADD,  VM_SUB,  VM_JZ,   VM_JNZ,  VM_INC,  VM_DEC,
41
-  VM_JMP,  VM_XOR,  VM_AND,  VM_OR,   VM_TEST, VM_JS,   VM_JNS,  VM_JB,
42
-  VM_JBE,  VM_JA,   VM_JAE,  VM_PUSH, VM_POP,  VM_CALL, VM_RET,  VM_NOT,
43
-  VM_SHL,  VM_SHR,  VM_SAR,  VM_NEG,  VM_PUSHA,VM_POPA, VM_PUSHF,VM_POPF,
44
-  VM_MOVZX,VM_MOVSX,VM_XCHG, VM_MUL,  VM_DIV,  VM_ADC,  VM_SBB,  VM_PRINT,
45
-  VM_MOVB, VM_MOVD, VM_CMPB, VM_CMPD, VM_ADDB, VM_ADDD, VM_SUBB, VM_SUBD,
46
-  VM_INCB, VM_INCD, VM_DECB, VM_DECD, VM_NEGB, VM_NEGD, VM_STANDARD
47
-} rarvm_commands_t;
48
-
49
-typedef enum rarvm_standard_filters {
50
-  VMSF_NONE, VMSF_E8, VMSF_E8E9, VMSF_ITANIUM, VMSF_RGB, VMSF_AUDIO,
51
-  VMSF_DELTA, VMSF_UPCASE
52
-} rarvm_standard_filters_t;
53
-
54
-enum VM_Flags {
55
-	VM_FC=1,
56
-	VM_FZ=2,
57
-	VM_FS=0x80000000
58
-};
59
-
60
-enum rarvm_op_type {
61
-	VM_OPREG,
62
-	VM_OPINT,
63
-	VM_OPREGMEM,
64
-	VM_OPNONE
65
-};
66
-
67
-struct rarvm_prepared_operand {
68
-	enum rarvm_op_type type;
69
-	unsigned int data;
70
-	unsigned int base;
71
-	unsigned int *addr;
72
-};
73
-
74
-struct rarvm_prepared_command {
75
-	rarvm_commands_t op_code;
76
-	int byte_mode;
77
-	struct rarvm_prepared_operand op1, op2;
78
-};
79
-
80
-struct rarvm_prepared_program {
81
-	rar_cmd_array_t cmd;
82
-	struct rarvm_prepared_command *alt_cmd;
83
-	int cmd_count;
84
-	unsigned char *global_data;
85
-	unsigned char *static_data;
86
-	long global_size, static_size;
87
-	unsigned int init_r[7];
88
-	uint8_t *filtered_data;
89
-	unsigned int filtered_data_size;
90
-};
91
-
92
-typedef struct rarvm_input_tag {
93
-	unsigned char *in_buf;
94
-	int buf_size;
95
-	int in_addr;
96
-	int in_bit;
97
-} rarvm_input_t;
98
-
99
-typedef struct rarvm_data_tag {
100
-	uint8_t *mem;
101
-	unsigned int R[8];
102
-	unsigned int Flags;
103
-} rarvm_data_t;
104
-
105
-unsigned int rarvm_getbits(rarvm_input_t *rarvm_input);
106
-void rarvm_addbits(rarvm_input_t *rarvm_input, int bits);
107
-int rarvm_init(rarvm_data_t *rarvm_data);
108
-void rarvm_free(rarvm_data_t *rarvm_data);
109
-int rarvm_prepare(rarvm_data_t *rarvm_data, rarvm_input_t *rarvm_input, unsigned char *code,
110
-		int code_size, struct rarvm_prepared_program *prg);
111
-void rarvm_set_memory(rarvm_data_t *rarvm_data, unsigned int pos, uint8_t *data, unsigned int data_size);
112
-int rarvm_execute(rarvm_data_t *rarvm_data, struct rarvm_prepared_program *prg);
113
-void rarvm_set_value(int byte_mode, unsigned int *addr, unsigned int value);
114
-unsigned int rarvm_read_data(rarvm_input_t *rarvm_input);
115
-uint32_t rar_crc(uint32_t start_crc, void *addr, uint32_t size);
116
-#endif
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
1
+# Makefile.in generated by automake 1.10 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -32,15 +32,11 @@
32 32
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
33 33
 #  MA 02110-1301, USA.
34 34
 
35
-srcdir = @srcdir@
36
-top_srcdir = @top_srcdir@
37 35
 VPATH = @srcdir@
38 36
 pkgdatadir = $(datadir)/@PACKAGE@
39 37
 pkglibdir = $(libdir)/@PACKAGE@
40 38
 pkgincludedir = $(includedir)/@PACKAGE@
41
-top_builddir = ..
42 39
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43
-INSTALL = @INSTALL@
44 40
 install_sh_DATA = $(install_sh) -c -m 644
45 41
 install_sh_PROGRAM = $(install_sh) -c
46 42
 install_sh_SCRIPT = $(install_sh) -c
... ...
@@ -75,33 +71,30 @@ am_sigtool_OBJECTS = output.$(OBJEXT) getopt.$(OBJEXT) \
75 75
 	sigtool.$(OBJEXT)
76 76
 sigtool_OBJECTS = $(am_sigtool_OBJECTS)
77 77
 sigtool_LDADD = $(LDADD)
78
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
78
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
79 79
 depcomp = $(SHELL) $(top_srcdir)/depcomp
80 80
 am__depfiles_maybe = depfiles
81 81
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
82 82
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
83
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
84
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
85
-	$(AM_CFLAGS) $(CFLAGS)
83
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
84
+	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
85
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
86 86
 CCLD = $(CC)
87
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
88
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
87
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
88
+	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
89
+	$(LDFLAGS) -o $@
89 90
 SOURCES = $(sigtool_SOURCES)
90 91
 DIST_SOURCES = $(sigtool_SOURCES)
91 92
 ETAGS = etags
92 93
 CTAGS = ctags
93 94
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
94 95
 ACLOCAL = @ACLOCAL@
95
-AMDEP_FALSE = @AMDEP_FALSE@
96
-AMDEP_TRUE = @AMDEP_TRUE@
97 96
 AMTAR = @AMTAR@
98 97
 AR = @AR@
99 98
 AUTOCONF = @AUTOCONF@
100 99
 AUTOHEADER = @AUTOHEADER@
101 100
 AUTOMAKE = @AUTOMAKE@
102 101
 AWK = @AWK@
103
-BUILD_CLAMD_FALSE = @BUILD_CLAMD_FALSE@
104
-BUILD_CLAMD_TRUE = @BUILD_CLAMD_TRUE@
105 102
 CC = @CC@
106 103
 CCDEPMODE = @CCDEPMODE@
107 104
 CFGDIR = @CFGDIR@
... ...
@@ -127,16 +120,13 @@ ECHO_C = @ECHO_C@
127 127
 ECHO_N = @ECHO_N@
128 128
 ECHO_T = @ECHO_T@
129 129
 EGREP = @EGREP@
130
-ENABLE_UNRAR_FALSE = @ENABLE_UNRAR_FALSE@
131
-ENABLE_UNRAR_TRUE = @ENABLE_UNRAR_TRUE@
132 130
 EXEEXT = @EXEEXT@
133 131
 F77 = @F77@
134 132
 FFLAGS = @FFLAGS@
135 133
 FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
136 134
 GETENT = @GETENT@
137 135
 GREP = @GREP@
138
-HAVE_MILTER_FALSE = @HAVE_MILTER_FALSE@
139
-HAVE_MILTER_TRUE = @HAVE_MILTER_TRUE@
136
+INSTALL = @INSTALL@
140 137
 INSTALL_DATA = @INSTALL_DATA@
141 138
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
142 139
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
... ...
@@ -150,9 +140,8 @@ LIBTOOL = @LIBTOOL@
150 150
 LN_S = @LN_S@
151 151
 LTLIBOBJS = @LTLIBOBJS@
152 152
 MAINT = @MAINT@
153
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
154
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
155 153
 MAKEINFO = @MAKEINFO@
154
+MKDIR_P = @MKDIR_P@
156 155
 OBJEXT = @OBJEXT@
157 156
 PACKAGE = @PACKAGE@
158 157
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
... ...
@@ -162,20 +151,19 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
162 162
 PACKAGE_VERSION = @PACKAGE_VERSION@
163 163
 PATH_SEPARATOR = @PATH_SEPARATOR@
164 164
 RANLIB = @RANLIB@
165
-SED = @SED@
166 165
 SET_MAKE = @SET_MAKE@
167 166
 SHELL = @SHELL@
168 167
 STRIP = @STRIP@
169 168
 THREAD_LIBS = @THREAD_LIBS@
170 169
 TH_SAFE = @TH_SAFE@
171 170
 VERSION = @VERSION@
171
+abs_builddir = @abs_builddir@
172
+abs_srcdir = @abs_srcdir@
173
+abs_top_builddir = @abs_top_builddir@
174
+abs_top_srcdir = @abs_top_srcdir@
172 175
 ac_ct_CC = @ac_ct_CC@
173 176
 ac_ct_CXX = @ac_ct_CXX@
174 177
 ac_ct_F77 = @ac_ct_F77@
175
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
176
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
177
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
178
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
179 178
 am__include = @am__include@
180 179
 am__leading_dot = @am__leading_dot@
181 180
 am__quote = @am__quote@
... ...
@@ -187,6 +175,7 @@ build_alias = @build_alias@
187 187
 build_cpu = @build_cpu@
188 188
 build_os = @build_os@
189 189
 build_vendor = @build_vendor@
190
+builddir = @builddir@
190 191
 datadir = @datadir@
191 192
 datarootdir = @datarootdir@
192 193
 docdir = @docdir@
... ...
@@ -215,12 +204,15 @@ psdir = @psdir@
215 215
 sbindir = @sbindir@
216 216
 sendmailprog = @sendmailprog@
217 217
 sharedstatedir = @sharedstatedir@
218
+srcdir = @srcdir@
218 219
 sysconfdir = @sysconfdir@
219 220
 target = @target@
220 221
 target_alias = @target_alias@
221 222
 target_cpu = @target_cpu@
222 223
 target_os = @target_os@
223 224
 target_vendor = @target_vendor@
225
+top_builddir = @top_builddir@
226
+top_srcdir = @top_srcdir@
224 227
 sigtool_SOURCES = \
225 228
     $(top_srcdir)/shared/output.c \
226 229
     $(top_srcdir)/shared/output.h \
... ...
@@ -275,7 +267,7 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
275 275
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
276 276
 install-binPROGRAMS: $(bin_PROGRAMS)
277 277
 	@$(NORMAL_INSTALL)
278
-	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
278
+	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
279 279
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
280 280
 	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
281 281
 	  if test -f $$p \
... ...
@@ -303,7 +295,7 @@ clean-binPROGRAMS:
303 303
 	done
304 304
 sigtool$(EXEEXT): $(sigtool_OBJECTS) $(sigtool_DEPENDENCIES) 
305 305
 	@rm -f sigtool$(EXEEXT)
306
-	$(LINK) $(sigtool_LDFLAGS) $(sigtool_OBJECTS) $(sigtool_LDADD) $(LIBS)
306
+	$(LINK) $(sigtool_OBJECTS) $(sigtool_LDADD) $(LIBS)
307 307
 
308 308
 mostlyclean-compile:
309 309
 	-rm -f *.$(OBJEXT)
... ...
@@ -322,120 +314,120 @@ distclean-compile:
322 322
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vba.Po@am__quote@
323 323
 
324 324
 .c.o:
325
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
326
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
325
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
327 327
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
328 328
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329 329
 @am__fastdepCC_FALSE@	$(COMPILE) -c $<
330 330
 
331 331
 .c.obj:
332
-@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
333
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
332
+@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
333
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
334 334
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
335 335
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
336 336
 @am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
337 337
 
338 338
 .c.lo:
339
-@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
340
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
339
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
340
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
341 341
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
342 342
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
343 343
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
344 344
 
345 345
 output.o: $(top_srcdir)/shared/output.c
346
-@am__fastdepCC_TRUE@	if $(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; \
347
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
346
+@am__fastdepCC_TRUE@	$(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
347
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
348 348
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.o' libtool=no @AMDEPBACKSLASH@
349 349
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
350 350
 @am__fastdepCC_FALSE@	$(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
351 351
 
352 352
 output.obj: $(top_srcdir)/shared/output.c
353
-@am__fastdepCC_TRUE@	if $(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`; \
354
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/output.Tpo" "$(DEPDIR)/output.Po"; else rm -f "$(DEPDIR)/output.Tpo"; exit 1; fi
353
+@am__fastdepCC_TRUE@	$(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`
354
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/output.Tpo $(DEPDIR)/output.Po
355 355
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/output.c' object='output.obj' libtool=no @AMDEPBACKSLASH@
356 356
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
357 357
 @am__fastdepCC_FALSE@	$(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`
358 358
 
359 359
 getopt.o: $(top_srcdir)/shared/getopt.c
360
-@am__fastdepCC_TRUE@	if $(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; \
361
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
360
+@am__fastdepCC_TRUE@	$(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
361
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
362 362
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
363 363
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
364 364
 @am__fastdepCC_FALSE@	$(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
365 365
 
366 366
 getopt.obj: $(top_srcdir)/shared/getopt.c
367
-@am__fastdepCC_TRUE@	if $(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`; \
368
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
367
+@am__fastdepCC_TRUE@	$(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`
368
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
369 369
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
370 370
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
371 371
 @am__fastdepCC_FALSE@	$(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`
372 372
 
373 373
 cfgparser.o: $(top_srcdir)/shared/cfgparser.c
374
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c; \
375
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
374
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.o -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
375
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
376 376
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.o' libtool=no @AMDEPBACKSLASH@
377 377
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
378 378
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.o `test -f '$(top_srcdir)/shared/cfgparser.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cfgparser.c
379 379
 
380 380
 cfgparser.obj: $(top_srcdir)/shared/cfgparser.c
381
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF "$(DEPDIR)/cfgparser.Tpo" -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`; \
382
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cfgparser.Tpo" "$(DEPDIR)/cfgparser.Po"; else rm -f "$(DEPDIR)/cfgparser.Tpo"; exit 1; fi
381
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cfgparser.obj -MD -MP -MF $(DEPDIR)/cfgparser.Tpo -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
382
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cfgparser.Tpo $(DEPDIR)/cfgparser.Po
383 383
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cfgparser.c' object='cfgparser.obj' libtool=no @AMDEPBACKSLASH@
384 384
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
385 385
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cfgparser.obj `if test -f '$(top_srcdir)/shared/cfgparser.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cfgparser.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cfgparser.c'; fi`
386 386
 
387 387
 misc.o: $(top_srcdir)/shared/misc.c
388
-@am__fastdepCC_TRUE@	if $(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; \
389
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
388
+@am__fastdepCC_TRUE@	$(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
389
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
390 390
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.o' libtool=no @AMDEPBACKSLASH@
391 391
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
392 392
 @am__fastdepCC_FALSE@	$(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
393 393
 
394 394
 misc.obj: $(top_srcdir)/shared/misc.c
395
-@am__fastdepCC_TRUE@	if $(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`; \
396
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/misc.Tpo" "$(DEPDIR)/misc.Po"; else rm -f "$(DEPDIR)/misc.Tpo"; exit 1; fi
395
+@am__fastdepCC_TRUE@	$(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`
396
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/misc.Tpo $(DEPDIR)/misc.Po
397 397
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/misc.c' object='misc.obj' libtool=no @AMDEPBACKSLASH@
398 398
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
399 399
 @am__fastdepCC_FALSE@	$(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`
400 400
 
401 401
 options.o: $(top_srcdir)/shared/options.c
402
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c; \
403
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
402
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
403
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
404 404
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@
405 405
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
406 406
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '$(top_srcdir)/shared/options.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/options.c
407 407
 
408 408
 options.obj: $(top_srcdir)/shared/options.c
409
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF "$(DEPDIR)/options.Tpo" -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`; \
410
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/options.Tpo" "$(DEPDIR)/options.Po"; else rm -f "$(DEPDIR)/options.Tpo"; exit 1; fi
409
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
410
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po
411 411
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@
412 412
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
413 413
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '$(top_srcdir)/shared/options.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/options.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/options.c'; fi`
414 414
 
415 415
 sha256.o: $(top_srcdir)/shared/sha256.c
416
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.o -MD -MP -MF "$(DEPDIR)/sha256.Tpo" -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c; \
417
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/sha256.Tpo" "$(DEPDIR)/sha256.Po"; else rm -f "$(DEPDIR)/sha256.Tpo"; exit 1; fi
416
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.o -MD -MP -MF $(DEPDIR)/sha256.Tpo -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c
417
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/sha256.Tpo $(DEPDIR)/sha256.Po
418 418
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/sha256.c' object='sha256.o' libtool=no @AMDEPBACKSLASH@
419 419
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
420 420
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sha256.o `test -f '$(top_srcdir)/shared/sha256.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/sha256.c
421 421
 
422 422
 sha256.obj: $(top_srcdir)/shared/sha256.c
423
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.obj -MD -MP -MF "$(DEPDIR)/sha256.Tpo" -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`; \
424
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/sha256.Tpo" "$(DEPDIR)/sha256.Po"; else rm -f "$(DEPDIR)/sha256.Tpo"; exit 1; fi
423
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sha256.obj -MD -MP -MF $(DEPDIR)/sha256.Tpo -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`
424
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/sha256.Tpo $(DEPDIR)/sha256.Po
425 425
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/sha256.c' object='sha256.obj' libtool=no @AMDEPBACKSLASH@
426 426
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
427 427
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sha256.obj `if test -f '$(top_srcdir)/shared/sha256.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/sha256.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/sha256.c'; fi`
428 428
 
429 429
 cdiff.o: $(top_srcdir)/shared/cdiff.c
430
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.o -MD -MP -MF "$(DEPDIR)/cdiff.Tpo" -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c; \
431
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cdiff.Tpo" "$(DEPDIR)/cdiff.Po"; else rm -f "$(DEPDIR)/cdiff.Tpo"; exit 1; fi
430
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.o -MD -MP -MF $(DEPDIR)/cdiff.Tpo -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c
431
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cdiff.Tpo $(DEPDIR)/cdiff.Po
432 432
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cdiff.c' object='cdiff.o' libtool=no @AMDEPBACKSLASH@
433 433
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
434 434
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cdiff.o `test -f '$(top_srcdir)/shared/cdiff.c' || echo '$(srcdir)/'`$(top_srcdir)/shared/cdiff.c
435 435
 
436 436
 cdiff.obj: $(top_srcdir)/shared/cdiff.c
437
-@am__fastdepCC_TRUE@	if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.obj -MD -MP -MF "$(DEPDIR)/cdiff.Tpo" -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`; \
438
-@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/cdiff.Tpo" "$(DEPDIR)/cdiff.Po"; else rm -f "$(DEPDIR)/cdiff.Tpo"; exit 1; fi
437
+@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT cdiff.obj -MD -MP -MF $(DEPDIR)/cdiff.Tpo -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`
438
+@am__fastdepCC_TRUE@	mv -f $(DEPDIR)/cdiff.Tpo $(DEPDIR)/cdiff.Po
439 439
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/shared/cdiff.c' object='cdiff.obj' libtool=no @AMDEPBACKSLASH@
440 440
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
441 441
 @am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o cdiff.obj `if test -f '$(top_srcdir)/shared/cdiff.c'; then $(CYGPATH_W) '$(top_srcdir)/shared/cdiff.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/shared/cdiff.c'; fi`
... ...
@@ -446,10 +438,6 @@ mostlyclean-libtool:
446 446
 clean-libtool:
447 447
 	-rm -rf .libs _libs
448 448
 
449
-distclean-libtool:
450
-	-rm -f libtool
451
-uninstall-info-am:
452
-
453 449
 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
454 450
 	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
455 451
 	unique=`for i in $$list; do \
... ...
@@ -499,22 +487,21 @@ distclean-tags:
499 499
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
500 500
 
501 501
 distdir: $(DISTFILES)
502
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
503
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
504
-	list='$(DISTFILES)'; for file in $$list; do \
505
-	  case $$file in \
506
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
507
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
508
-	  esac; \
502
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
503
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
504
+	list='$(DISTFILES)'; \
505
+	  dist_files=`for file in $$list; do echo $$file; done | \
506
+	  sed -e "s|^$$srcdirstrip/||;t" \
507
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
508
+	case $$dist_files in \
509
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
510
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
511
+			   sort -u` ;; \
512
+	esac; \
513
+	for file in $$dist_files; do \
509 514
 	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
510
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
511
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
512
-	    dir="/$$dir"; \
513
-	    $(mkdir_p) "$(distdir)$$dir"; \
514
-	  else \
515
-	    dir=''; \
516
-	  fi; \
517 515
 	  if test -d $$d/$$file; then \
516
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
518 517
 	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
519 518
 	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
520 519
 	    fi; \
... ...
@@ -530,7 +517,7 @@ check: check-am
530 530
 all-am: Makefile $(PROGRAMS)
531 531
 installdirs:
532 532
 	for dir in "$(DESTDIR)$(bindir)"; do \
533
-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
533
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
534 534
 	done
535 535
 install: install-am
536 536
 install-exec: install-exec-am
... ...
@@ -564,7 +551,7 @@ distclean: distclean-am
564 564
 	-rm -rf ./$(DEPDIR)
565 565
 	-rm -f Makefile
566 566
 distclean-am: clean-am distclean-compile distclean-generic \
567
-	distclean-libtool distclean-tags
567
+	distclean-tags
568 568
 
569 569
 dvi: dvi-am
570 570
 
... ...
@@ -578,12 +565,20 @@ info-am:
578 578
 
579 579
 install-data-am:
580 580
 
581
+install-dvi: install-dvi-am
582
+
581 583
 install-exec-am: install-binPROGRAMS
582 584
 
585
+install-html: install-html-am
586
+
583 587
 install-info: install-info-am
584 588
 
585 589
 install-man:
586 590
 
591
+install-pdf: install-pdf-am
592
+
593
+install-ps: install-ps-am
594
+
587 595
 installcheck-am:
588 596
 
589 597
 maintainer-clean: maintainer-clean-am
... ...
@@ -604,19 +599,23 @@ ps: ps-am
604 604
 
605 605
 ps-am:
606 606
 
607
-uninstall-am: uninstall-binPROGRAMS uninstall-info-am
607
+uninstall-am: uninstall-binPROGRAMS
608
+
609
+.MAKE: install-am install-strip
608 610
 
609 611
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
610 612
 	clean-generic clean-libtool ctags distclean distclean-compile \
611 613
 	distclean-generic distclean-libtool distclean-tags distdir dvi \
612 614
 	dvi-am html html-am info info-am install install-am \
613
-	install-binPROGRAMS install-data install-data-am install-exec \
614
-	install-exec-am install-info install-info-am install-man \
615
+	install-binPROGRAMS install-data install-data-am install-dvi \
616
+	install-dvi-am install-exec install-exec-am install-html \
617
+	install-html-am install-info install-info-am install-man \
618
+	install-pdf install-pdf-am install-ps install-ps-am \
615 619
 	install-strip installcheck installcheck-am installdirs \
616 620
 	maintainer-clean maintainer-clean-generic mostlyclean \
617 621
 	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
618 622
 	pdf pdf-am ps ps-am tags uninstall uninstall-am \
619
-	uninstall-binPROGRAMS uninstall-info-am
623
+	uninstall-binPROGRAMS
620 624
 
621 625
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
622 626
 # Otherwise a system limit (for SysV at least) may be exceeded.