Browse code

attempt to fix AC_C_BIGENDIAN action-if-universal, regenerate files.

git-svn: trunk@4887

Török Edvin authored on 2009/03/03 05:12:13
Showing 7 changed files
... ...
@@ -1,3 +1,9 @@
1
+Mon Mar  2 22:11:48 EET 2009 (edwin)
2
+------------------------------------
3
+ * clamav-config.h.in, config/ltmain.sh, configure, configure.in,
4
+ m4/libtool.m4, m4/ltdl.m4: attempt to fix AC_C_BIGENDIAN
5
+ action-if-universal, regenerate files.
6
+
1 7
 Mon Mar  2 17:57:50 EET 2009 (edwin)
2 8
 ------------------------------------
3 9
  * clamdtop/clamdtop.c: fix use-after-free.
... ...
@@ -490,8 +490,17 @@
490 490
 /* Version suffix for package */
491 491
 #undef VERSION_SUFFIX
492 492
 
493
-/* endianess */
494
-#undef WORDS_BIGENDIAN
493
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
494
+   significant byte first (like Motorola and SPARC, unlike Intel). */
495
+#if defined AC_APPLE_UNIVERSAL_BUILD
496
+# if defined __BIG_ENDIAN__
497
+#  define WORDS_BIGENDIAN 1
498
+# endif
499
+#else
500
+# ifndef WORDS_BIGENDIAN
501
+#  undef WORDS_BIGENDIAN
502
+# endif
503
+#endif
495 504
 
496 505
 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
497 506
 #undef _LARGEFILE_SOURCE
... ...
@@ -65,7 +65,7 @@
65 65
 #       compiler:		$LTCC
66 66
 #       compiler flags:		$LTCFLAGS
67 67
 #       linker:		$LD (gnu? $with_gnu_ld)
68
-#       $progname:		(GNU libtool) 2.2.6
68
+#       $progname:		(GNU libtool) 2.2.6 Debian-2.2.6a-1
69 69
 #       automake:		$automake_version
70 70
 #       autoconf:		$autoconf_version
71 71
 #
... ...
@@ -73,7 +73,7 @@
73 73
 
74 74
 PROGRAM=ltmain.sh
75 75
 PACKAGE=libtool
76
-VERSION=2.2.6
76
+VERSION="2.2.6 Debian-2.2.6a-1"
77 77
 TIMESTAMP=""
78 78
 package_revision=1.3012
79 79
 
... ...
@@ -116,15 +116,15 @@ $lt_unset CDPATH
116 116
 
117 117
 : ${CP="cp -f"}
118 118
 : ${ECHO="echo"}
119
-: ${EGREP="/usr/bin/grep -E"}
120
-: ${FGREP="/usr/bin/grep -F"}
121
-: ${GREP="/usr/bin/grep"}
119
+: ${EGREP="/bin/grep -E"}
120
+: ${FGREP="/bin/grep -F"}
121
+: ${GREP="/bin/grep"}
122 122
 : ${LN_S="ln -s"}
123 123
 : ${MAKE="make"}
124 124
 : ${MKDIR="mkdir"}
125 125
 : ${MV="mv -f"}
126 126
 : ${RM="rm -f"}
127
-: ${SED="/opt/local/bin/gsed"}
127
+: ${SED="/bin/sed"}
128 128
 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
129 129
 : ${Xsed="$SED -e 1s/^X//"}
130 130
 
... ...
@@ -5033,7 +5033,10 @@ func_mode_link ()
5033 5033
 	case $pass in
5034 5034
 	dlopen) libs="$dlfiles" ;;
5035 5035
 	dlpreopen) libs="$dlprefiles" ;;
5036
-	link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
5036
+	link)
5037
+	  libs="$deplibs %DEPLIBS%"
5038
+	  test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
5039
+	  ;;
5037 5040
 	esac
5038 5041
       fi
5039 5042
       if test "$linkmode,$pass" = "lib,dlpreopen"; then
... ...
@@ -6207,6 +6210,9 @@ func_mode_link ()
6207 6207
 	    revision="$number_minor"
6208 6208
 	    lt_irix_increment=no
6209 6209
 	    ;;
6210
+	  *)
6211
+	    func_fatal_configuration "$modename: unknown library version type \`$version_type'"
6212
+	    ;;
6210 6213
 	  esac
6211 6214
 	  ;;
6212 6215
 	no)
... ...
@@ -5375,7 +5375,7 @@ linux* | k*bsd*-gnu)
5375 5375
   lt_cv_deplibs_check_method=pass_all
5376 5376
   ;;
5377 5377
 
5378
-netbsd*)
5378
+netbsd* | netbsdelf*-gnu)
5379 5379
   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5380 5380
     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5381 5381
   else
... ...
@@ -8767,7 +8767,7 @@ _LT_EOF
8767 8767
       fi
8768 8768
       ;;
8769 8769
 
8770
-    netbsd*)
8770
+    netbsd* | netbsdelf*-gnu)
8771 8771
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8772 8772
 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8773 8773
 	wlarc=
... ...
@@ -8942,6 +8942,7 @@ _LT_EOF
8942 8942
 	if test "$aix_use_runtimelinking" = yes; then
8943 8943
 	  shared_flag="$shared_flag "'${wl}-G'
8944 8944
 	fi
8945
+	link_all_deplibs=no
8945 8946
       else
8946 8947
 	# not using gcc
8947 8948
 	if test "$host_cpu" = ia64; then
... ...
@@ -9356,7 +9357,7 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9356 9356
       link_all_deplibs=yes
9357 9357
       ;;
9358 9358
 
9359
-    netbsd*)
9359
+    netbsd* | netbsdelf*-gnu)
9360 9360
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9361 9361
 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9362 9362
       else
... ...
@@ -10333,6 +10334,18 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10333 10333
   dynamic_linker='GNU/Linux ld.so'
10334 10334
   ;;
10335 10335
 
10336
+netbsdelf*-gnu)
10337
+  version_type=linux
10338
+  need_lib_prefix=no
10339
+  need_version=no
10340
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10341
+  soname_spec='${libname}${release}${shared_ext}$major'
10342
+  shlibpath_var=LD_LIBRARY_PATH
10343
+  shlibpath_overrides_runpath=no
10344
+  hardcode_into_libs=yes
10345
+  dynamic_linker='NetBSD ld.elf_so'
10346
+  ;;
10347
+
10336 10348
 netbsd*)
10337 10349
   version_type=sunos
10338 10350
   need_lib_prefix=no
... ...
@@ -11266,7 +11279,7 @@ else
11266 11266
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11267 11267
   lt_status=$lt_dlunknown
11268 11268
   cat > conftest.$ac_ext <<_LT_EOF
11269
-#line 11269 "configure"
11269
+#line 11282 "configure"
11270 11270
 #include "confdefs.h"
11271 11271
 
11272 11272
 #if HAVE_DLFCN_H
... ...
@@ -11362,7 +11375,7 @@ else
11362 11362
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11363 11363
   lt_status=$lt_dlunknown
11364 11364
   cat > conftest.$ac_ext <<_LT_EOF
11365
-#line 11365 "configure"
11365
+#line 11378 "configure"
11366 11366
 #include "confdefs.h"
11367 11367
 
11368 11368
 #if HAVE_DLFCN_H
... ...
@@ -12513,7 +12526,7 @@ else
12513 12513
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12514 12514
   lt_status=$lt_dlunknown
12515 12515
   cat > conftest.$ac_ext <<_LT_EOF
12516
-#line 12516 "configure"
12516
+#line 12529 "configure"
12517 12517
 #include "confdefs.h"
12518 12518
 
12519 12519
 #if HAVE_DLFCN_H
... ...
@@ -12661,7 +12674,7 @@ else
12661 12661
     # at 6.2 and later dlopen does load deplibs.
12662 12662
     lt_cv_sys_dlopen_deplibs=yes
12663 12663
     ;;
12664
-  netbsd*)
12664
+  netbsd* | netbsdelf*-gnu)
12665 12665
     lt_cv_sys_dlopen_deplibs=yes
12666 12666
     ;;
12667 12667
   openbsd*)
... ...
@@ -14704,19 +14717,6 @@ $as_echo "$as_me: error: unknown endianness
14704 14704
    { (exit 1); exit 1; }; } ;;
14705 14705
  esac
14706 14706
 
14707
-if test $ac_cv_c_bigendian = yes; then
14708
-
14709
-cat >>confdefs.h <<\_ACEOF
14710
-#define WORDS_BIGENDIAN 1
14711
-_ACEOF
14712
-
14713
-else
14714
-
14715
-cat >>confdefs.h <<\_ACEOF
14716
-#define WORDS_BIGENDIAN 0
14717
-_ACEOF
14718
-
14719
-fi
14720 14707
 
14721 14708
 # Check whether --enable-gcc-vcheck was given.
14722 14709
 if test "${enable_gcc_vcheck+set}" = set; then
... ...
@@ -70,11 +70,8 @@ AC_C_CONST
70 70
 AC_C_INLINE
71 71
 AC_C_FPU_BIGENDIAN
72 72
 AC_C_BIGENDIAN
73
-if test $ac_cv_c_bigendian = yes; then
74
-  AC_DEFINE([WORDS_BIGENDIAN],1,endianess)
75
-else
76
-  AC_DEFINE([WORDS_BIGENDIAN],0,endianess)
77
-fi
73
+dnl don't define WORDS_BIGENDIAN ourselves, AC_C_BIGENDIAN's default action is
74
+dnl to define it appropriately. If we do define it we break universal builds.
78 75
 
79 76
 AC_ARG_ENABLE([gcc-vcheck],
80 77
 [  --disable-gcc-vcheck	  do not check for buggy gcc version ],
... ...
@@ -2485,6 +2485,18 @@ linux* | k*bsd*-gnu)
2485 2485
   dynamic_linker='GNU/Linux ld.so'
2486 2486
   ;;
2487 2487
 
2488
+netbsdelf*-gnu)
2489
+  version_type=linux
2490
+  need_lib_prefix=no
2491
+  need_version=no
2492
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2493
+  soname_spec='${libname}${release}${shared_ext}$major'
2494
+  shlibpath_var=LD_LIBRARY_PATH
2495
+  shlibpath_overrides_runpath=no
2496
+  hardcode_into_libs=yes
2497
+  dynamic_linker='NetBSD ld.elf_so'
2498
+  ;;
2499
+
2488 2500
 netbsd*)
2489 2501
   version_type=sunos
2490 2502
   need_lib_prefix=no
... ...
@@ -3076,7 +3088,7 @@ linux* | k*bsd*-gnu)
3076 3076
   lt_cv_deplibs_check_method=pass_all
3077 3077
   ;;
3078 3078
 
3079
-netbsd*)
3079
+netbsd* | netbsdelf*-gnu)
3080 3080
   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3081 3081
     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3082 3082
   else
... ...
@@ -3757,7 +3769,7 @@ m4_if([$1], [CXX], [
3757 3757
 	    ;;
3758 3758
 	esac
3759 3759
 	;;
3760
-      netbsd*)
3760
+      netbsd* | netbsdelf*-gnu)
3761 3761
 	;;
3762 3762
       *qnx* | *nto*)
3763 3763
         # QNX uses GNU C++, but need to define -shared option too, otherwise
... ...
@@ -4182,6 +4194,9 @@ m4_if([$1], [CXX], [
4182 4182
   cygwin* | mingw* | cegcc*)
4183 4183
     _LT_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'
4184 4184
   ;;
4185
+  linux* | k*bsd*-gnu)
4186
+    _LT_TAGVAR(link_all_deplibs, $1)=no
4187
+  ;;
4185 4188
   *)
4186 4189
     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4187 4190
   ;;
... ...
@@ -4428,7 +4443,7 @@ _LT_EOF
4428 4428
       fi
4429 4429
       ;;
4430 4430
 
4431
-    netbsd*)
4431
+    netbsd* | netbsdelf*-gnu)
4432 4432
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4433 4433
 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4434 4434
 	wlarc=
... ...
@@ -4603,6 +4618,7 @@ _LT_EOF
4603 4603
 	if test "$aix_use_runtimelinking" = yes; then
4604 4604
 	  shared_flag="$shared_flag "'${wl}-G'
4605 4605
 	fi
4606
+	_LT_TAGVAR(link_all_deplibs, $1)=no
4606 4607
       else
4607 4608
 	# not using gcc
4608 4609
 	if test "$host_cpu" = ia64; then
... ...
@@ -4841,7 +4857,7 @@ _LT_EOF
4841 4841
       _LT_TAGVAR(link_all_deplibs, $1)=yes
4842 4842
       ;;
4843 4843
 
4844
-    netbsd*)
4844
+    netbsd* | netbsdelf*-gnu)
4845 4845
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4846 4846
 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4847 4847
       else
... ...
@@ -487,7 +487,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
487 487
     # at 6.2 and later dlopen does load deplibs.
488 488
     lt_cv_sys_dlopen_deplibs=yes
489 489
     ;;
490
-  netbsd*)
490
+  netbsd* | netbsdelf*-gnu)
491 491
     lt_cv_sys_dlopen_deplibs=yes
492 492
     ;;
493 493
   openbsd*)