Browse code

Regenerate build system.

This also upgrades autoconf to 2.65, and libtool to 2.2.6b.

Török Edvin authored on 2009/12/11 18:08:34
Showing 10 changed files
... ...
@@ -344,49 +344,7 @@ pkgconfig_DATA = libclamav.pc
344 344
 # don't complain that configuration files and databases are not removed, this is intended
345 345
 distuninstallcheck_listfiles = find . -type f ! -name clamd.conf ! -name freshclam.conf ! -name daily.cvd ! -name main.cvd -print
346 346
 DISTCLEANFILES = target.h
347
-@DISTCHECK_ENABLE_FLAGS_FALSE@DISTCHECK_CONFIGURE_FLAGS = --enable-milter --disable-clamav
348
-@DISTCHECK_ENABLE_FLAGS_TRUE@DISTCHECK_CONFIGURE_FLAGS =  \
349
-@DISTCHECK_ENABLE_FLAGS_TRUE@	--enable-milter --disable-clamav \
350
-@DISTCHECK_ENABLE_FLAGS_TRUE@	CFLAGS="-Wno-pointer-sign \
351
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Werror-implicit-function-declaration \
352
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Werror -Wextra -Wall \
353
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wbad-function-cast -Wcast-align \
354
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wendif-labels -Wfloat-equal \
355
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wformat=2 -Wformat-security \
356
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wmissing-declarations \
357
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wmissing-prototypes \
358
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=missing-prototypes \
359
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wnested-externs \
360
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=nested-externs \
361
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wpointer-arith \
362
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wstrict-prototypes \
363
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=strict-prototypes \
364
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-switch -Wno-switch-enum \
365
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wundef -Wwrite-strings \
366
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wstrict-overflow=1 -Winit-self \
367
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wmissing-include-dirs \
368
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wstrict-aliasing \
369
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wdeclaration-after-statement \
370
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Waggregate-return \
371
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wmissing-format-attribute \
372
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=missing-format-attribute \
373
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=type-limits \
374
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=unused-function \
375
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=unused-value \
376
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=unused-variable \
377
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wcast-qual -Wno-error=cast-qual \
378
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=sign-compare -Wshadow \
379
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=shadow \
380
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=uninitialized \
381
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-fdiagnostics-show-option \
382
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-unused-parameter \
383
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=unreachable-code \
384
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Winvalid-pch \
385
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=invalid-pch -O2 \
386
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-D_FORTIFY_SOURCE=2 \
387
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-fstack-protector-all \
388
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wstack-protector \
389
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=aggregate-return"
347
+DISTCHECK_CONFIGURE_FLAGS = --enable-milter --disable-clamav --enable-distcheck-werror
390 348
 all: clamav-config.h
391 349
 	$(MAKE) $(AM_MAKEFLAGS) all-recursive
392 350
 
... ...
@@ -13,8 +13,8 @@
13 13
 
14 14
 m4_ifndef([AC_AUTOCONF_VERSION],
15 15
   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
-m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
17
-[m4_warning([this file was generated for autoconf 2.64.
16
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
+[m4_warning([this file was generated for autoconf 2.65.
18 18
 You have another version of autoconf.  It may work, but is not guaranteed to.
19 19
 If you have problems, you may need to regenerate the build system entirely.
20 20
 To do so, use the procedure documented by the package, typically `autoreconf'.])])
... ...
@@ -1,6 +1,6 @@
1 1
 # Generated from ltmain.m4sh.
2 2
 
3
-# ltmain.sh (GNU libtool) 2.2.6
3
+# ltmain.sh (GNU libtool) 2.2.6b
4 4
 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5 5
 
6 6
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
... ...
@@ -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 Debian-2.2.6a-4
68
+#       $progname:		(GNU libtool) 2.2.6b Debian-2.2.6b-2
69 69
 #       automake:		$automake_version
70 70
 #       autoconf:		$autoconf_version
71 71
 #
... ...
@@ -73,9 +73,9 @@
73 73
 
74 74
 PROGRAM=ltmain.sh
75 75
 PACKAGE=libtool
76
-VERSION="2.2.6 Debian-2.2.6a-4"
76
+VERSION="2.2.6b Debian-2.2.6b-2"
77 77
 TIMESTAMP=""
78
-package_revision=1.3012
78
+package_revision=1.3017
79 79
 
80 80
 # Be Bourne compatible
81 81
 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
... ...
@@ -1,12 +1,14 @@
1 1
 #! /bin/sh
2 2
 # Guess values for system-dependent variables and create Makefiles.
3
-# Generated by GNU Autoconf 2.64 for ClamAV devel.
3
+# Generated by GNU Autoconf 2.65 for ClamAV devel.
4 4
 #
5 5
 # Report bugs to <http://bugs.clamav.net/>.
6 6
 #
7
+#
7 8
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
-# Foundation, Inc.
9
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
+# Inc.
11
+#
10 12
 #
11 13
 # This configure script is free software; the Free Software Foundation
12 14
 # gives unlimited permission to copy, distribute and modify it.
... ...
@@ -678,7 +680,8 @@ fi
678 678
 
679 679
 
680 680
 
681
-exec 7<&0 </dev/null 6>&1
681
+test -n "$DJDIR" || exec 7<&0 </dev/null
682
+exec 6>&1
682 683
 
683 684
 # Name of the host.
684 685
 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
... ...
@@ -790,8 +793,6 @@ GPERF
790 790
 VERSIONSCRIPT_FALSE
791 791
 VERSIONSCRIPT_TRUE
792 792
 VERSIONSCRIPTFLAG
793
-DISTCHECK_ENABLE_FLAGS_FALSE
794
-DISTCHECK_ENABLE_FLAGS_TRUE
795 793
 LIBM
796 794
 LTDLOPEN
797 795
 LT_CONFIG_H
... ...
@@ -976,6 +977,7 @@ enable_fdpassing
976 976
 enable_clamdtop
977 977
 with_libncurses_prefix
978 978
 with_libpdcurses_prefix
979
+enable_distcheck_werror
979 980
 '
980 981
       ac_precious_vars='build_alias
981 982
 host_alias
... ...
@@ -1645,6 +1647,8 @@ Optional Features:
1645 1645
   --enable-readdir_r		    enable support for readdir_r
1646 1646
   --disable-fdpassing        don't build file descriptor passing support
1647 1647
   --enable-clamdtop       Enable 'clamdtop' tool [default=auto]
1648
+  --enable-distcheck-werror
1649
+                          enable warnings as error for distcheck [default=no]
1648 1650
 
1649 1651
 Optional Packages:
1650 1652
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
... ...
@@ -1679,7 +1683,7 @@ Some influential environment variables:
1679 1679
   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1680 1680
               nonstandard directory <lib dir>
1681 1681
   LIBS        libraries to pass to the linker, e.g. -l<library>
1682
-  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682
+  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1683 1683
               you have headers in a nonstandard directory <include dir>
1684 1684
   CPP         C preprocessor
1685 1685
 
... ...
@@ -1751,7 +1755,7 @@ test -n "$ac_init_help" && exit $ac_status
1751 1751
 if $ac_init_version; then
1752 1752
   cat <<\_ACEOF
1753 1753
 ClamAV configure devel
1754
-generated by GNU Autoconf 2.64
1754
+generated by GNU Autoconf 2.65
1755 1755
 
1756 1756
 Copyright (C) 2009 Free Software Foundation, Inc.
1757 1757
 This configure script is free software; the Free Software Foundation
... ...
@@ -1798,7 +1802,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
1798 1798
 	ac_retval=1
1799 1799
 fi
1800 1800
   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
-  return $ac_retval
1801
+  as_fn_set_status $ac_retval
1802 1802
 
1803 1803
 } # ac_fn_c_try_compile
1804 1804
 
... ...
@@ -1844,7 +1848,7 @@ fi
1844 1844
   # left behind by Apple's compiler.  We do this before executing the actions.
1845 1845
   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 1846
   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847
-  return $ac_retval
1847
+  as_fn_set_status $ac_retval
1848 1848
 
1849 1849
 } # ac_fn_c_try_link
1850 1850
 
... ...
@@ -1912,7 +1916,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
1912 1912
     ac_retval=1
1913 1913
 fi
1914 1914
   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
-  return $ac_retval
1915
+  as_fn_set_status $ac_retval
1916 1916
 
1917 1917
 } # ac_fn_c_try_cpp
1918 1918
 
... ...
@@ -1954,7 +1958,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
1954 1954
 fi
1955 1955
   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1956 1956
   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
-  return $ac_retval
1957
+  as_fn_set_status $ac_retval
1958 1958
 
1959 1959
 } # ac_fn_c_try_run
1960 1960
 
... ...
@@ -2215,7 +2219,7 @@ This file contains any messages produced by compilers while
2215 2215
 running configure, to aid debugging if configure makes a mistake.
2216 2216
 
2217 2217
 It was created by ClamAV $as_me devel, which was
2218
-generated by GNU Autoconf 2.64.  Invocation command line was
2218
+generated by GNU Autoconf 2.65.  Invocation command line was
2219 2219
 
2220 2220
   $ $0 $@
2221 2221
 
... ...
@@ -2468,7 +2472,7 @@ fi
2468 2468
 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469 2469
 do
2470 2470
   test "x$ac_site_file" = xNONE && continue
2471
-  if test -r "$ac_site_file"; then
2471
+  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472 2472
     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473 2473
 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474 2474
     sed 's/^/| /' "$ac_site_file" >&5
... ...
@@ -2477,9 +2481,9 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2477 2477
 done
2478 2478
 
2479 2479
 if test -r "$cache_file"; then
2480
-  # Some versions of bash will fail to source /dev/null (special
2481
-  # files actually), so we avoid doing that.
2482
-  if test -f "$cache_file"; then
2480
+  # Some versions of bash will fail to source /dev/null (special files
2481
+  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2482
+  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2483 2483
     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2484 2484
 $as_echo "$as_me: loading cache $cache_file" >&6;}
2485 2485
     case $cache_file in
... ...
@@ -3204,6 +3208,7 @@ IFS=$as_save_IFS
3204 3204
 
3205 3205
 fi
3206 3206
 
3207
+  test -d ./--version && rmdir ./--version
3207 3208
   if test "${ac_cv_path_mkdir+set}" = set; then
3208 3209
     MKDIR_P="$ac_cv_path_mkdir -p"
3209 3210
   else
... ...
@@ -3211,7 +3216,6 @@ fi
3211 3211
     # value for MKDIR_P within a source directory, because that will
3212 3212
     # break other packages using the cache if that directory is
3213 3213
     # removed, or if the value is a relative name.
3214
-    test -d ./--version && rmdir ./--version
3215 3214
     MKDIR_P="$ac_install_sh -d"
3216 3215
   fi
3217 3216
 fi
... ...
@@ -3572,8 +3576,8 @@ esac
3572 3572
 
3573 3573
 
3574 3574
 
3575
-macro_version='2.2.6'
3576
-macro_revision='1.3012'
3575
+macro_version='2.2.6b'
3576
+macro_revision='1.3017'
3577 3577
 
3578 3578
 
3579 3579
 
... ...
@@ -3973,32 +3977,30 @@ $as_echo "$ac_try_echo"; } >&5
3973 3973
 ... rest of stderr output deleted ...
3974 3974
          10q' conftest.err >conftest.er1
3975 3975
     cat conftest.er1 >&5
3976
-    rm -f conftest.er1 conftest.err
3977 3976
   fi
3977
+  rm -f conftest.er1 conftest.err
3978 3978
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 3979
   test $ac_status = 0; }
3980 3980
 done
3981 3981
 
3982 3982
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 3983
 /* end confdefs.h.  */
3984
-#include <stdio.h>
3984
+
3985 3985
 int
3986 3986
 main ()
3987 3987
 {
3988
-FILE *f = fopen ("conftest.out", "w");
3989
- return ferror (f) || fclose (f) != 0;
3990 3988
 
3991 3989
   ;
3992 3990
   return 0;
3993 3991
 }
3994 3992
 _ACEOF
3995 3993
 ac_clean_files_save=$ac_clean_files
3996
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3994
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3997 3995
 # Try to create an executable without -o first, disregard a.out.
3998 3996
 # It will help us diagnose broken compilers, and finding out an intuition
3999 3997
 # of exeext.
4000
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4001
-$as_echo_n "checking for C compiler default output file name... " >&6; }
3998
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3999
+$as_echo_n "checking whether the C compiler works... " >&6; }
4002 4000
 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4003 4001
 
4004 4002
 # The possible output files:
... ...
@@ -4060,10 +4062,10 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
4060 4060
 else
4061 4061
   ac_file=''
4062 4062
 fi
4063
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4064
-$as_echo "$ac_file" >&6; }
4065 4063
 if test -z "$ac_file"; then :
4066
-  $as_echo "$as_me: failed program was:" >&5
4064
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065
+$as_echo "no" >&6; }
4066
+$as_echo "$as_me: failed program was:" >&5
4067 4067
 sed 's/^/| /' conftest.$ac_ext >&5
4068 4068
 
4069 4069
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
... ...
@@ -4071,51 +4073,18 @@ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 4071
 { as_fn_set_status 77
4072 4072
 as_fn_error "C compiler cannot create executables
4073 4073
 See \`config.log' for more details." "$LINENO" 5; }; }
4074
+else
4075
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076
+$as_echo "yes" >&6; }
4074 4077
 fi
4078
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079
+$as_echo_n "checking for C compiler default output file name... " >&6; }
4080
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4081
+$as_echo "$ac_file" >&6; }
4075 4082
 ac_exeext=$ac_cv_exeext
4076 4083
 
4077
-# Check that the compiler produces executables we can run.  If not, either
4078
-# the compiler is broken, or we cross compile.
4079
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4080
-$as_echo_n "checking whether the C compiler works... " >&6; }
4081
-# If not cross compiling, check that we can run a simple program.
4082
-if test "$cross_compiling" != yes; then
4083
-  if { ac_try='./$ac_file'
4084
-  { { case "(($ac_try" in
4085
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086
-  *) ac_try_echo=$ac_try;;
4087
-esac
4088
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089
-$as_echo "$ac_try_echo"; } >&5
4090
-  (eval "$ac_try") 2>&5
4091
-  ac_status=$?
4092
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093
-  test $ac_status = 0; }; }; then
4094
-    cross_compiling=no
4095
-  else
4096
-    if test "$cross_compiling" = maybe; then
4097
-	cross_compiling=yes
4098
-    else
4099
-	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101
-as_fn_error "cannot run C compiled programs.
4102
-If you meant to cross compile, use \`--host'.
4103
-See \`config.log' for more details." "$LINENO" 5; }
4104
-    fi
4105
-  fi
4106
-fi
4107
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4108
-$as_echo "yes" >&6; }
4109
-
4110
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4084
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4111 4085
 ac_clean_files=$ac_clean_files_save
4112
-# Check that the compiler produces executables we can run.  If not, either
4113
-# the compiler is broken, or we cross compile.
4114
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4115
-$as_echo_n "checking whether we are cross compiling... " >&6; }
4116
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4117
-$as_echo "$cross_compiling" >&6; }
4118
-
4119 4086
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4120 4087
 $as_echo_n "checking for suffix of executables... " >&6; }
4121 4088
 if { { ac_try="$ac_link"
... ...
@@ -4148,13 +4117,72 @@ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148 4148
 as_fn_error "cannot compute suffix of executables: cannot compile and link
4149 4149
 See \`config.log' for more details." "$LINENO" 5; }
4150 4150
 fi
4151
-rm -f conftest$ac_cv_exeext
4151
+rm -f conftest conftest$ac_cv_exeext
4152 4152
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4153 4153
 $as_echo "$ac_cv_exeext" >&6; }
4154 4154
 
4155 4155
 rm -f conftest.$ac_ext
4156 4156
 EXEEXT=$ac_cv_exeext
4157 4157
 ac_exeext=$EXEEXT
4158
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159
+/* end confdefs.h.  */
4160
+#include <stdio.h>
4161
+int
4162
+main ()
4163
+{
4164
+FILE *f = fopen ("conftest.out", "w");
4165
+ return ferror (f) || fclose (f) != 0;
4166
+
4167
+  ;
4168
+  return 0;
4169
+}
4170
+_ACEOF
4171
+ac_clean_files="$ac_clean_files conftest.out"
4172
+# Check that the compiler produces executables we can run.  If not, either
4173
+# the compiler is broken, or we cross compile.
4174
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4175
+$as_echo_n "checking whether we are cross compiling... " >&6; }
4176
+if test "$cross_compiling" != yes; then
4177
+  { { ac_try="$ac_link"
4178
+case "(($ac_try" in
4179
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180
+  *) ac_try_echo=$ac_try;;
4181
+esac
4182
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183
+$as_echo "$ac_try_echo"; } >&5
4184
+  (eval "$ac_link") 2>&5
4185
+  ac_status=$?
4186
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187
+  test $ac_status = 0; }
4188
+  if { ac_try='./conftest$ac_cv_exeext'
4189
+  { { case "(($ac_try" in
4190
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191
+  *) ac_try_echo=$ac_try;;
4192
+esac
4193
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4194
+$as_echo "$ac_try_echo"; } >&5
4195
+  (eval "$ac_try") 2>&5
4196
+  ac_status=$?
4197
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198
+  test $ac_status = 0; }; }; then
4199
+    cross_compiling=no
4200
+  else
4201
+    if test "$cross_compiling" = maybe; then
4202
+	cross_compiling=yes
4203
+    else
4204
+	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206
+as_fn_error "cannot run C compiled programs.
4207
+If you meant to cross compile, use \`--host'.
4208
+See \`config.log' for more details." "$LINENO" 5; }
4209
+    fi
4210
+  fi
4211
+fi
4212
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4213
+$as_echo "$cross_compiling" >&6; }
4214
+
4215
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4216
+ac_clean_files=$ac_clean_files_save
4158 4217
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4159 4218
 $as_echo_n "checking for suffix of object files... " >&6; }
4160 4219
 if test "${ac_cv_objext+set}" = set; then :
... ...
@@ -5129,13 +5157,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :
5129 5129
 else
5130 5130
   lt_cv_nm_interface="BSD nm"
5131 5131
   echo "int some_variable = 0;" > conftest.$ac_ext
5132
-  (eval echo "\"\$as_me:5132: $ac_compile\"" >&5)
5132
+  (eval echo "\"\$as_me:5160: $ac_compile\"" >&5)
5133 5133
   (eval "$ac_compile" 2>conftest.err)
5134 5134
   cat conftest.err >&5
5135
-  (eval echo "\"\$as_me:5135: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5135
+  (eval echo "\"\$as_me:5163: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5136 5136
   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5137 5137
   cat conftest.err >&5
5138
-  (eval echo "\"\$as_me:5138: output\"" >&5)
5138
+  (eval echo "\"\$as_me:5166: output\"" >&5)
5139 5139
   cat conftest.out >&5
5140 5140
   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5141 5141
     lt_cv_nm_interface="MS dumpbin"
... ...
@@ -5590,7 +5618,7 @@ irix5* | irix6* | nonstopux*)
5590 5590
   ;;
5591 5591
 
5592 5592
 # This must be Linux ELF.
5593
-linux* | k*bsd*-gnu)
5593
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
5594 5594
   lt_cv_deplibs_check_method=pass_all
5595 5595
   ;;
5596 5596
 
... ...
@@ -6330,7 +6358,7 @@ ia64-*-hpux*)
6330 6330
   ;;
6331 6331
 *-*-irix6*)
6332 6332
   # Find out which ABI we are using.
6333
-  echo '#line 6333 "configure"' > conftest.$ac_ext
6333
+  echo '#line 6361 "configure"' > conftest.$ac_ext
6334 6334
   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6335 6335
   (eval $ac_compile) 2>&5
6336 6336
   ac_status=$?
... ...
@@ -7859,11 +7887,11 @@ else
7859 7859
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7860 7860
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7861 7861
    -e 's:$: $lt_compiler_flag:'`
7862
-   (eval echo "\"\$as_me:7862: $lt_compile\"" >&5)
7862
+   (eval echo "\"\$as_me:7890: $lt_compile\"" >&5)
7863 7863
    (eval "$lt_compile" 2>conftest.err)
7864 7864
    ac_status=$?
7865 7865
    cat conftest.err >&5
7866
-   echo "$as_me:7866: \$? = $ac_status" >&5
7866
+   echo "$as_me:7894: \$? = $ac_status" >&5
7867 7867
    if (exit $ac_status) && test -s "$ac_outfile"; then
7868 7868
      # The compiler can only warn and ignore the option if not recognized
7869 7869
      # So say no if there are warnings other than the usual output.
... ...
@@ -8028,7 +8056,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8028 8028
       lt_prog_compiler_static='-non_shared'
8029 8029
       ;;
8030 8030
 
8031
-    linux* | k*bsd*-gnu)
8031
+    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8032 8032
       case $cc_basename in
8033 8033
       # old Intel for x86_64 which still supported -KPIC.
8034 8034
       ecc*)
... ...
@@ -8198,11 +8226,11 @@ else
8198 8198
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8199 8199
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8200 8200
    -e 's:$: $lt_compiler_flag:'`
8201
-   (eval echo "\"\$as_me:8201: $lt_compile\"" >&5)
8201
+   (eval echo "\"\$as_me:8229: $lt_compile\"" >&5)
8202 8202
    (eval "$lt_compile" 2>conftest.err)
8203 8203
    ac_status=$?
8204 8204
    cat conftest.err >&5
8205
-   echo "$as_me:8205: \$? = $ac_status" >&5
8205
+   echo "$as_me:8233: \$? = $ac_status" >&5
8206 8206
    if (exit $ac_status) && test -s "$ac_outfile"; then
8207 8207
      # The compiler can only warn and ignore the option if not recognized
8208 8208
      # So say no if there are warnings other than the usual output.
... ...
@@ -8303,11 +8331,11 @@ else
8303 8303
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 8304
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 8305
    -e 's:$: $lt_compiler_flag:'`
8306
-   (eval echo "\"\$as_me:8306: $lt_compile\"" >&5)
8306
+   (eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8307 8307
    (eval "$lt_compile" 2>out/conftest.err)
8308 8308
    ac_status=$?
8309 8309
    cat out/conftest.err >&5
8310
-   echo "$as_me:8310: \$? = $ac_status" >&5
8310
+   echo "$as_me:8338: \$? = $ac_status" >&5
8311 8311
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8312 8312
    then
8313 8313
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -8358,11 +8386,11 @@ else
8358 8358
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 8359
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 8360
    -e 's:$: $lt_compiler_flag:'`
8361
-   (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
8361
+   (eval echo "\"\$as_me:8389: $lt_compile\"" >&5)
8362 8362
    (eval "$lt_compile" 2>out/conftest.err)
8363 8363
    ac_status=$?
8364 8364
    cat out/conftest.err >&5
8365
-   echo "$as_me:8365: \$? = $ac_status" >&5
8365
+   echo "$as_me:8393: \$? = $ac_status" >&5
8366 8366
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8367 8367
    then
8368 8368
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -8501,6 +8529,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
8501 8501
     fi
8502 8502
     supports_anon_versioning=no
8503 8503
     case `$LD -v 2>&1` in
8504
+      *GNU\ gold*) supports_anon_versioning=yes ;;
8504 8505
       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8505 8506
       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8506 8507
       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
... ...
@@ -8592,7 +8621,7 @@ _LT_EOF
8592 8592
       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'
8593 8593
       ;;
8594 8594
 
8595
-    gnu* | linux* | tpf* | k*bsd*-gnu)
8595
+    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8596 8596
       tmp_diet=no
8597 8597
       if test "$host_os" = linux-dietlibc; then
8598 8598
 	case $cc_basename in
... ...
@@ -10054,7 +10083,7 @@ linux*oldld* | linux*aout* | linux*coff*)
10054 10054
   ;;
10055 10055
 
10056 10056
 # This must be Linux ELF.
10057
-linux* | k*bsd*-gnu)
10057
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
10058 10058
   version_type=linux
10059 10059
   need_lib_prefix=no
10060 10060
   need_version=no
... ...
@@ -10741,7 +10770,7 @@ else
10741 10741
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10742 10742
   lt_status=$lt_dlunknown
10743 10743
   cat > conftest.$ac_ext <<_LT_EOF
10744
-#line 10744 "configure"
10744
+#line 10773 "configure"
10745 10745
 #include "confdefs.h"
10746 10746
 
10747 10747
 #if HAVE_DLFCN_H
... ...
@@ -10837,7 +10866,7 @@ else
10837 10837
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10838 10838
   lt_status=$lt_dlunknown
10839 10839
   cat > conftest.$ac_ext <<_LT_EOF
10840
-#line 10840 "configure"
10840
+#line 10869 "configure"
10841 10841
 #include "confdefs.h"
10842 10842
 
10843 10843
 #if HAVE_DLFCN_H
... ...
@@ -11509,7 +11538,7 @@ else
11509 11509
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11510 11510
   lt_status=$lt_dlunknown
11511 11511
   cat > conftest.$ac_ext <<_LT_EOF
11512
-#line 11512 "configure"
11512
+#line 11541 "configure"
11513 11513
 #include "confdefs.h"
11514 11514
 
11515 11515
 #if HAVE_DLFCN_H
... ...
@@ -11635,7 +11664,7 @@ else
11635 11635
   freebsd* | dragonfly*)
11636 11636
     lt_cv_sys_dlopen_deplibs=yes
11637 11637
     ;;
11638
-  gnu* | linux* | k*bsd*-gnu)
11638
+  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
11639 11639
     # GNU and its variants, using gnu ld.so (Glibc)
11640 11640
     lt_cv_sys_dlopen_deplibs=yes
11641 11641
     ;;
... ...
@@ -12917,14 +12946,6 @@ if test "x$ac_compiler_gnu" = "xyes"; then
12917 12917
 			;;
12918 12918
 	esac
12919 12919
 fi
12920
- if test "x$distcheck_enable_flags" = "x1"; then
12921
-  DISTCHECK_ENABLE_FLAGS_TRUE=
12922
-  DISTCHECK_ENABLE_FLAGS_FALSE='#'
12923
-else
12924
-  DISTCHECK_ENABLE_FLAGS_TRUE='#'
12925
-  DISTCHECK_ENABLE_FLAGS_FALSE=
12926
-fi
12927
-
12928 12920
 
12929 12921
 
12930 12922
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc bug PR27603" >&5
... ...
@@ -19769,6 +19790,25 @@ else
19769 19769
 fi
19770 19770
 
19771 19771
 
19772
+# Check whether --enable-distcheck-werror was given.
19773
+if test "${enable_distcheck_werror+set}" = set; then :
19774
+  enableval=$enable_distcheck_werror; enable_distcheckwerror=$enableval
19775
+else
19776
+  enable_distcheckwerror="no"
19777
+fi
19778
+
19779
+
19780
+# Enable distcheck warnings and Werror only for gcc versions that support them,
19781
+# and only after we've run the configure tests.
19782
+# Some configure tests fail (like checking for cos in -lm) if we enable these
19783
+# Werror flags for configure too (for example -Wstrict-prototypes makes
19784
+# configure think that -lm doesn't have cos, hence its in libc).
19785
+if test "x$enable_distcheckwerror" = "xyes"; then
19786
+    if test "$distcheck_enable_flags" = "1"; then
19787
+	CFLAGS="$CFLAGS -Wno-pointer-sign -Werror-implicit-function-declaration -Werror -Wextra -Wall -Wno-error=bad-function-cast -Wbad-function-cast -Wcast-align -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wno-error=missing-prototypes -Wnested-externs -Wno-error=nested-externs -Wpointer-arith -Wstrict-prototypes -Wno-error=strict-prototypes -Wno-switch -Wno-switch-enum -Wundef -Wwrite-strings -Wstrict-overflow=1 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wdeclaration-after-statement -Waggregate-return -Wmissing-format-attribute -Wno-error=missing-format-attribute -Wno-error=type-limits -Wno-error=unused-function -Wno-error=unused-value -Wno-error=unused-variable -Wcast-qual -Wno-error=cast-qual -Wno-error=sign-compare -Wshadow -Wno-error=shadow -Wno-error=uninitialized -fdiagnostics-show-option -Wno-unused-parameter -Wno-error=unreachable-code -Winvalid-pch -Wno-error=invalid-pch -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -Wno-error=aggregate-return"
19788
+    fi
19789
+fi
19790
+
19772 19791
 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 test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h 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 docs/man/clamdtop.1"
19773 19792
 
19774 19793
 cat >confcache <<\_ACEOF
... ...
@@ -19910,10 +19950,6 @@ LT_CONFIG_H=clamav-config.h
19910 19910
 
19911 19911
 
19912 19912
 
19913
-if test -z "${DISTCHECK_ENABLE_FLAGS_TRUE}" && test -z "${DISTCHECK_ENABLE_FLAGS_FALSE}"; then
19914
-  as_fn_error "conditional \"DISTCHECK_ENABLE_FLAGS\" was never defined.
19915
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
19916
-fi
19917 19913
 if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then
19918 19914
   as_fn_error "conditional \"VERSIONSCRIPT\" was never defined.
19919 19915
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
... ...
@@ -20359,7 +20395,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20359 20359
 # values after options handling.
20360 20360
 ac_log="
20361 20361
 This file was extended by ClamAV $as_me devel, which was
20362
-generated by GNU Autoconf 2.64.  Invocation command line was
20362
+generated by GNU Autoconf 2.65.  Invocation command line was
20363 20363
 
20364 20364
   CONFIG_FILES    = $CONFIG_FILES
20365 20365
   CONFIG_HEADERS  = $CONFIG_HEADERS
... ...
@@ -20399,6 +20435,7 @@ Usage: $0 [OPTION]... [TAG]...
20399 20399
 
20400 20400
   -h, --help       print this help, then exit
20401 20401
   -V, --version    print version number and configuration settings, then exit
20402
+      --config     print configuration, then exit
20402 20403
   -q, --quiet, --silent
20403 20404
                    do not print progress messages
20404 20405
   -d, --debug      don't remove temporary files
... ...
@@ -20422,10 +20459,11 @@ ClamAV home page: <http://www.clamav.net/>."
20422 20422
 
20423 20423
 _ACEOF
20424 20424
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20425
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20425 20426
 ac_cs_version="\\
20426 20427
 ClamAV config.status devel
20427
-configured by $0, generated by GNU Autoconf 2.64,
20428
-  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20428
+configured by $0, generated by GNU Autoconf 2.65,
20429
+  with options \\"\$ac_cs_config\\"
20429 20430
 
20430 20431
 Copyright (C) 2009 Free Software Foundation, Inc.
20431 20432
 This config.status script is free software; the Free Software Foundation
... ...
@@ -20463,6 +20501,8 @@ do
20463 20463
     ac_cs_recheck=: ;;
20464 20464
   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20465 20465
     $as_echo "$ac_cs_version"; exit ;;
20466
+  --config | --confi | --conf | --con | --co | --c )
20467
+    $as_echo "$ac_cs_config"; exit ;;
20466 20468
   --debug | --debu | --deb | --de | --d | -d )
20467 20469
     debug=: ;;
20468 20470
   --file | --fil | --fi | --f )
... ...
@@ -20935,7 +20975,7 @@ s/'"$ac_delim"'$//
20935 20935
 t delim
20936 20936
 :nl
20937 20937
 h
20938
-s/\(.\{148\}\).*/\1/
20938
+s/\(.\{148\}\)..*/\1/
20939 20939
 t more1
20940 20940
 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20941 20941
 p
... ...
@@ -20949,7 +20989,7 @@ s/.\{148\}//
20949 20949
 t nl
20950 20950
 :delim
20951 20951
 h
20952
-s/\(.\{148\}\).*/\1/
20952
+s/\(.\{148\}\)..*/\1/
20953 20953
 t more2
20954 20954
 s/["\\]/\\&/g; s/^/"/; s/$/"/
20955 20955
 p
... ...
@@ -50,7 +50,7 @@ AM_CPPFLAGS	       += -DLT_CONFIG_H='<$(LT_CONFIG_H)>' \
50 50
 			  -DLTDL -I. -I$(srcdir) -Ilibltdl \
51 51
 			  -I$(srcdir)/libltdl -I$(srcdir)/libltdl
52 52
 AM_LDFLAGS	       += -no-undefined
53
-LTDL_VERSION_INFO	= -version-info 9:0:2
53
+LTDL_VERSION_INFO	= -version-info 9:1:2
54 54
 
55 55
 noinst_LTLIBRARIES	+= $(LT_DLLOADERS)
56 56
 
... ...
@@ -364,7 +364,7 @@ EXTRA_DIST = lt__dirent.c lt__strl.c COPYING.LIB README argz_.h argz.c
364 364
 CLEANFILES = libltdl.la libltdlc.la libdlloader.la $(ltdl_LIBOBJS) \
365 365
 	$(ltdl_LTLIBOBJS)
366 366
 MOSTLYCLEANFILES = argz.h argz.h-t
367
-LTDL_VERSION_INFO = -version-info 9:0:2
367
+LTDL_VERSION_INFO = -version-info 9:1:2
368 368
 @INSTALL_LTDL_TRUE@ltdlincludedir = $(includedir)/libltdl
369 369
 @INSTALL_LTDL_TRUE@ltdlinclude_HEADERS = libltdl/lt_system.h \
370 370
 @INSTALL_LTDL_TRUE@			  libltdl/lt_error.h \
... ...
@@ -529,7 +529,8 @@ find_module (lt_dlhandle *handle, const char *dir, const char *libdir,
529 529
   /* Try to open the old library first; if it was dlpreopened,
530 530
      we want the preopened version of it, even if a dlopenable
531 531
      module is available.  */
532
-  if (old_name && tryall_dlopen (handle, old_name, advise, 0) == 0)
532
+  if (old_name && tryall_dlopen (handle, old_name,
533
+			  advise, lt_dlloader_find ("lt_preopen") ) == 0)
533 534
     {
534 535
       return 0;
535 536
     }
... ...
@@ -1345,7 +1346,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
1345 1345
 	    }
1346 1346
 #endif
1347 1347
 	}
1348
-      if (!file)
1348
+      else
1349 1349
 	{
1350 1350
 	  file = fopen (attempt, LT_READTEXT_MODE);
1351 1351
 	}
... ...
@@ -2445,7 +2445,7 @@ linux*oldld* | linux*aout* | linux*coff*)
2445 2445
   ;;
2446 2446
 
2447 2447
 # This must be Linux ELF.
2448
-linux* | k*bsd*-gnu)
2448
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
2449 2449
   version_type=linux
2450 2450
   need_lib_prefix=no
2451 2451
   need_version=no
... ...
@@ -3084,7 +3084,7 @@ irix5* | irix6* | nonstopux*)
3084 3084
   ;;
3085 3085
 
3086 3086
 # This must be Linux ELF.
3087
-linux* | k*bsd*-gnu)
3087
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
3088 3088
   lt_cv_deplibs_check_method=pass_all
3089 3089
   ;;
3090 3090
 
... ...
@@ -3705,7 +3705,7 @@ m4_if([$1], [CXX], [
3705 3705
 	    ;;
3706 3706
 	esac
3707 3707
 	;;
3708
-      linux* | k*bsd*-gnu)
3708
+      linux* | k*bsd*-gnu | kopensolaris*-gnu)
3709 3709
 	case $cc_basename in
3710 3710
 	  KCC*)
3711 3711
 	    # KAI C++ Compiler
... ...
@@ -3989,7 +3989,7 @@ m4_if([$1], [CXX], [
3989 3989
       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3990 3990
       ;;
3991 3991
 
3992
-    linux* | k*bsd*-gnu)
3992
+    linux* | k*bsd*-gnu | kopensolaris*-gnu)
3993 3993
       case $cc_basename in
3994 3994
       # old Intel for x86_64 which still supported -KPIC.
3995 3995
       ecc*)
... ...
@@ -4285,6 +4285,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
4285 4285
     fi
4286 4286
     supports_anon_versioning=no
4287 4287
     case `$LD -v 2>&1` in
4288
+      *GNU\ gold*) supports_anon_versioning=yes ;;
4288 4289
       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4289 4290
       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4290 4291
       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
... ...
@@ -4376,7 +4377,7 @@ _LT_EOF
4376 4376
       _LT_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'
4377 4377
       ;;
4378 4378
 
4379
-    gnu* | linux* | tpf* | k*bsd*-gnu)
4379
+    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4380 4380
       tmp_diet=no
4381 4381
       if test "$host_os" = linux-dietlibc; then
4382 4382
 	case $cc_basename in
... ...
@@ -5860,7 +5861,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5860 5860
         _LT_TAGVAR(inherit_rpath, $1)=yes
5861 5861
         ;;
5862 5862
 
5863
-      linux* | k*bsd*-gnu)
5863
+      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5864 5864
         case $cc_basename in
5865 5865
           KCC*)
5866 5866
 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
... ...
@@ -467,7 +467,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
467 467
   freebsd* | dragonfly*)
468 468
     lt_cv_sys_dlopen_deplibs=yes
469 469
     ;;
470
-  gnu* | linux* | k*bsd*-gnu)
470
+  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
471 471
     # GNU and its variants, using gnu ld.so (Glibc)
472 472
     lt_cv_sys_dlopen_deplibs=yes
473 473
     ;;
... ...
@@ -9,15 +9,15 @@
9 9
 
10 10
 # Generated from ltversion.in.
11 11
 
12
-# serial 3012 ltversion.m4
12
+# serial 3017 ltversion.m4
13 13
 # This file is part of GNU Libtool
14 14
 
15
-m4_define([LT_PACKAGE_VERSION], [2.2.6])
16
-m4_define([LT_PACKAGE_REVISION], [1.3012])
15
+m4_define([LT_PACKAGE_VERSION], [2.2.6b])
16
+m4_define([LT_PACKAGE_REVISION], [1.3017])
17 17
 
18 18
 AC_DEFUN([LTVERSION_VERSION],
19
-[macro_version='2.2.6'
20
-macro_revision='1.3012'
19
+[macro_version='2.2.6b'
20
+macro_revision='1.3017'
21 21
 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
22 22
 _LT_DECL(, macro_revision, 0)
23 23
 ])