Browse code

fix typo causing build failure on ppc. minor cleanup in Makefiles.

git-svn: trunk@3465

Török Edvin authored on 2007/12/29 20:11:37
Showing 6 changed files
... ...
@@ -1,3 +1,8 @@
1
+Sat Dec 29 12:36:36 EET 2007 (edwin)
2
+------------------------------------
3
+  * libclamav/others.h: fix typo causing build failure on ppc.
4
+    libclamav/Makefile.in/am: minor cleanup
5
+
1 6
 Fri Dec 28 23:23:40 EET 2007 (edwin)
2 7
 ------------------------------------
3 8
   * configure, libclamav/Makefile.in/am : add ld version script support.
... ...
@@ -192,5 +192,6 @@ libclamav_internal_utils_la_SOURCES=str.c \
192 192
 
193 193
 libclamav_internal_utils_la_LDFLAGS=-static
194 194
 
195
-lib_LTLIBRARIES = libclamav.la libclamav_internal_utils.la
195
+lib_LTLIBRARIES = libclamav.la
196
+noinst_LTLIBRARIES = libclamav_internal_utils.la
196 197
 EXTRA_DIST = regex/engine.c
... ...
@@ -72,7 +72,7 @@ am__vpath_adj = case $$p in \
72 72
 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
73 73
 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
74 74
 libLTLIBRARIES_INSTALL = $(INSTALL)
75
-LTLIBRARIES = $(lib_LTLIBRARIES)
75
+LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
76 76
 @ENABLE_UNRAR_FALSE@libclamav_la_DEPENDENCIES = lzma/liblzma.la
77 77
 @ENABLE_UNRAR_TRUE@libclamav_la_DEPENDENCIES = lzma/liblzma.la \
78 78
 @ENABLE_UNRAR_TRUE@	$(top_builddir)/libclamunrar_iface/libclamunrar_iface.la
... ...
@@ -420,7 +420,8 @@ libclamav_internal_utils_la_SOURCES = str.c \
420 420
 				    md5.h
421 421
 
422 422
 libclamav_internal_utils_la_LDFLAGS = -static
423
-lib_LTLIBRARIES = libclamav.la libclamav_internal_utils.la
423
+lib_LTLIBRARIES = libclamav.la
424
+noinst_LTLIBRARIES = libclamav_internal_utils.la
424 425
 EXTRA_DIST = regex/engine.c
425 426
 all: all-recursive
426 427
 
... ...
@@ -482,10 +483,19 @@ clean-libLTLIBRARIES:
482 482
 	  echo "rm -f \"$${dir}/so_locations\""; \
483 483
 	  rm -f "$${dir}/so_locations"; \
484 484
 	done
485
+
486
+clean-noinstLTLIBRARIES:
487
+	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
488
+	@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
489
+	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
490
+	  test "$$dir" != "$$p" || dir=.; \
491
+	  echo "rm -f \"$${dir}/so_locations\""; \
492
+	  rm -f "$${dir}/so_locations"; \
493
+	done
485 494
 libclamav.la: $(libclamav_la_OBJECTS) $(libclamav_la_DEPENDENCIES) 
486 495
 	$(libclamav_la_LINK) -rpath $(libdir) $(libclamav_la_OBJECTS) $(libclamav_la_LIBADD) $(LIBS)
487 496
 libclamav_internal_utils.la: $(libclamav_internal_utils_la_OBJECTS) $(libclamav_internal_utils_la_DEPENDENCIES) 
488
-	$(libclamav_internal_utils_la_LINK) -rpath $(libdir) $(libclamav_internal_utils_la_OBJECTS) $(libclamav_internal_utils_la_LIBADD) $(LIBS)
497
+	$(libclamav_internal_utils_la_LINK)  $(libclamav_internal_utils_la_OBJECTS) $(libclamav_internal_utils_la_LIBADD) $(LIBS)
489 498
 
490 499
 mostlyclean-compile:
491 500
 	-rm -f *.$(OBJEXT)
... ...
@@ -864,7 +874,7 @@ maintainer-clean-generic:
864 864
 clean: clean-recursive
865 865
 
866 866
 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
867
-	mostlyclean-am
867
+	clean-noinstLTLIBRARIES mostlyclean-am
868 868
 
869 869
 distclean: distclean-recursive
870 870
 	-rm -rf ./$(DEPDIR)
... ...
@@ -925,12 +935,12 @@ uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
925 925
 
926 926
 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
927 927
 	all all-am check check-am clean clean-generic \
928
-	clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \
929
-	distclean distclean-compile distclean-generic \
930
-	distclean-libtool distclean-tags distdir dvi dvi-am html \
931
-	html-am info info-am install install-am install-data \
932
-	install-data-am install-dvi install-dvi-am install-exec \
933
-	install-exec-am install-html install-html-am \
928
+	clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \
929
+	ctags ctags-recursive distclean distclean-compile \
930
+	distclean-generic distclean-libtool distclean-tags distdir dvi \
931
+	dvi-am html html-am info info-am install install-am \
932
+	install-data install-data-am install-dvi install-dvi-am \
933
+	install-exec install-exec-am install-html install-html-am \
934 934
 	install-includeHEADERS install-info install-info-am \
935 935
 	install-libLTLIBRARIES install-man install-pdf install-pdf-am \
936 936
 	install-ps install-ps-am install-strip installcheck \
... ...
@@ -19,7 +19,9 @@
19 19
 
20 20
 AM_CFLAGS = -fPIC -DPIC
21 21
 
22
-lib_LTLIBRARIES = liblzma.la
23
-liblzma_la_SOURCES = LzmaStateDecode.c
22
+noinst_LTLIBRARIES = liblzma.la
23
+liblzma_la_SOURCES = LzmaStateDecode.c \
24
+		     LzmaStateDecode.h \
25
+		     LzmaTypes.h
24 26
 liblzma_la_LDFLAGS = -static
25 27
 
... ...
@@ -62,15 +62,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
62 62
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
63 63
 CONFIG_HEADER = $(top_builddir)/clamav-config.h
64 64
 CONFIG_CLEAN_FILES =
65
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
66
-am__vpath_adj = case $$p in \
67
-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
68
-    *) f=$$p;; \
69
-  esac;
70
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
71
-am__installdirs = "$(DESTDIR)$(libdir)"
72
-libLTLIBRARIES_INSTALL = $(INSTALL)
73
-LTLIBRARIES = $(lib_LTLIBRARIES)
65
+LTLIBRARIES = $(noinst_LTLIBRARIES)
74 66
 liblzma_la_LIBADD =
75 67
 am_liblzma_la_OBJECTS = LzmaStateDecode.lo
76 68
 liblzma_la_OBJECTS = $(am_liblzma_la_OBJECTS)
... ...
@@ -219,8 +211,11 @@ target_vendor = @target_vendor@
219 219
 top_builddir = @top_builddir@
220 220
 top_srcdir = @top_srcdir@
221 221
 AM_CFLAGS = -fPIC -DPIC
222
-lib_LTLIBRARIES = liblzma.la
223
-liblzma_la_SOURCES = LzmaStateDecode.c
222
+noinst_LTLIBRARIES = liblzma.la
223
+liblzma_la_SOURCES = LzmaStateDecode.c \
224
+		     LzmaStateDecode.h \
225
+		     LzmaTypes.h
226
+
224 227
 liblzma_la_LDFLAGS = -static
225 228
 all: all-am
226 229
 
... ...
@@ -255,35 +250,17 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
255 255
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
256 256
 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
257 257
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
-install-libLTLIBRARIES: $(lib_LTLIBRARIES)
259
-	@$(NORMAL_INSTALL)
260
-	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
261
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
262
-	  if test -f $$p; then \
263
-	    f=$(am__strip_dir) \
264
-	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
265
-	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
266
-	  else :; fi; \
267
-	done
268 258
 
269
-uninstall-libLTLIBRARIES:
270
-	@$(NORMAL_UNINSTALL)
271
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
272
-	  p=$(am__strip_dir) \
273
-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
274
-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
275
-	done
276
-
277
-clean-libLTLIBRARIES:
278
-	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
279
-	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
259
+clean-noinstLTLIBRARIES:
260
+	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
261
+	@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
280 262
 	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
281 263
 	  test "$$dir" != "$$p" || dir=.; \
282 264
 	  echo "rm -f \"$${dir}/so_locations\""; \
283 265
 	  rm -f "$${dir}/so_locations"; \
284 266
 	done
285 267
 liblzma.la: $(liblzma_la_OBJECTS) $(liblzma_la_DEPENDENCIES) 
286
-	$(liblzma_la_LINK) -rpath $(libdir) $(liblzma_la_OBJECTS) $(liblzma_la_LIBADD) $(LIBS)
268
+	$(liblzma_la_LINK)  $(liblzma_la_OBJECTS) $(liblzma_la_LIBADD) $(LIBS)
287 269
 
288 270
 mostlyclean-compile:
289 271
 	-rm -f *.$(OBJEXT)
... ...
@@ -398,9 +375,6 @@ check-am: all-am
398 398
 check: check-am
399 399
 all-am: Makefile $(LTLIBRARIES)
400 400
 installdirs:
401
-	for dir in "$(DESTDIR)$(libdir)"; do \
402
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
403
-	done
404 401
 install: install-am
405 402
 install-exec: install-exec-am
406 403
 install-data: install-data-am
... ...
@@ -427,7 +401,7 @@ maintainer-clean-generic:
427 427
 	@echo "it deletes files that may require special tools to rebuild."
428 428
 clean: clean-am
429 429
 
430
-clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
430
+clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
431 431
 	mostlyclean-am
432 432
 
433 433
 distclean: distclean-am
... ...
@@ -450,7 +424,7 @@ install-data-am:
450 450
 
451 451
 install-dvi: install-dvi-am
452 452
 
453
-install-exec-am: install-libLTLIBRARIES
453
+install-exec-am:
454 454
 
455 455
 install-html: install-html-am
456 456
 
... ...
@@ -482,23 +456,22 @@ ps: ps-am
482 482
 
483 483
 ps-am:
484 484
 
485
-uninstall-am: uninstall-libLTLIBRARIES
485
+uninstall-am:
486 486
 
487 487
 .MAKE: install-am install-strip
488 488
 
489 489
 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
490
-	clean-libLTLIBRARIES clean-libtool ctags distclean \
490
+	clean-libtool clean-noinstLTLIBRARIES ctags distclean \
491 491
 	distclean-compile distclean-generic distclean-libtool \
492 492
 	distclean-tags distdir dvi dvi-am html html-am info info-am \
493 493
 	install install-am install-data install-data-am install-dvi \
494 494
 	install-dvi-am install-exec install-exec-am install-html \
495
-	install-html-am install-info install-info-am \
496
-	install-libLTLIBRARIES install-man install-pdf install-pdf-am \
497
-	install-ps install-ps-am install-strip installcheck \
498
-	installcheck-am installdirs maintainer-clean \
499
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
500
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
501
-	tags uninstall uninstall-am uninstall-libLTLIBRARIES
495
+	install-html-am install-info install-info-am install-man \
496
+	install-pdf install-pdf-am install-ps install-ps-am \
497
+	install-strip installcheck installcheck-am installdirs \
498
+	maintainer-clean maintainer-clean-generic mostlyclean \
499
+	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
500
+	pdf pdf-am ps ps-am tags uninstall uninstall-am
502 501
 
503 502
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
504 503
 # Otherwise a system limit (for SysV at least) may be exceeded.
... ...
@@ -103,8 +103,8 @@ typedef struct {
103 103
 #define cbswap16(v) (((v & 0xff) << 8) | (((v) >> 8) & 0xff))
104 104
 #define cbswap32(v) ((((v) & 0x000000ff) << 24) | (((v) & 0x0000ff00) << 8) | \
105 105
 		    (((v) & 0x00ff0000) >> 8)  | (((v) & 0xff000000) >> 24))
106
-#define cbswap64(v) ((((x) & 0x00000000000000ff) << 56) | \
107
-		     (((x) & 0x000000000000ff00) << 40) | \
106
+#define cbswap64(v) ((((v) & 0x00000000000000ff) << 56) | \
107
+		     (((v) & 0x000000000000ff00) << 40) | \
108 108
 		     (((v) & 0x0000000000ff0000) << 24) | \
109 109
 		     (((v) & 0x00000000ff000000) <<  8) | \
110 110
 		     (((v) & 0x000000ff00000000) >>  8) | \