ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
(Generate patch)

Comparing ircd-hybrid/trunk/configure (file contents):
Revision 3814 by michael, Tue Jun 3 20:13:35 2014 UTC vs.
Revision 8356 by michael, Sun Mar 4 13:57:08 2018 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 3724 2014-05-31 16:27:09Z michael .
2 > # From configure.ac Id: configure.ac 8355 2018-03-04 13:56:48Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5   #
# Line 648 | Line 648 | DATADIR
648   LIBDIR
649   SYSCONFDIR
650   PREFIX
651 – ENABLE_SSL_FALSE
652 – ENABLE_SSL_TRUE
651   LTDLOPEN
652   LT_CONFIG_H
653   CONVENIENCE_LTDL_FALSE
654   CONVENIENCE_LTDL_TRUE
655   INSTALL_LTDL_FALSE
656   INSTALL_LTDL_TRUE
657 < ARGZ_H
657 > LT_ARGZ_H
658   sys_symbol_underscore
659   LIBADD_DL
660   LT_DLPREOPEN
# Line 669 | Line 667 | LTDLINCL
667   LTDLDEPS
668   LIBLTDL
669   CPP
670 + LT_SYS_LIBRARY_PATH
671   OTOOL64
672   OTOOL
673   LIPO
# Line 798 | Line 797 | enable_static
797   enable_shared
798   with_pic
799   enable_fast_install
800 + with_aix_soname
801   with_gnu_ld
802   with_sysroot
803   enable_libtool_lock
# Line 805 | Line 805 | with_included_ltdl
805   with_ltdl_include
806   with_ltdl_lib
807   enable_ltdl_install
808 – enable_libgeoip
809 – enable_openssl
810 – enable_assert
808   enable_kqueue
809   enable_epoll
810   enable_devpoll
811   enable_poll
812 < enable_select
812 > enable_assert
813   enable_debugging
814   enable_warnings
815 + enable_efence
816 + enable_mempool
817 + enable_openssl
818 + enable_gnutls
819   '
820        ac_precious_vars='build_alias
821   host_alias
# Line 826 | Line 827 | LIBS
827   CPPFLAGS
828   YACC
829   YFLAGS
830 + LT_SYS_LIBRARY_PATH
831   CPP'
832  
833  
# Line 1460 | Line 1462 | Optional Features:
1462                            optimize for fast installation [default=yes]
1463    --disable-libtool-lock  avoid locking (might break parallel builds)
1464    --enable-ltdl-install   install libltdl
1463 –  --disable-libgeoip      Disable GeoIP support
1464 –  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1465 –  --disable-openssl            Disable OpenSSL support.
1466 –  --enable-assert         Enable assert() statements
1465    --enable-kqueue         Force kqueue usage.
1466    --enable-epoll          Force epoll usage.
1467    --enable-devpoll        Force devpoll usage.
1468    --enable-poll           Force poll usage.
1469 <  --enable-select         Force select usage.
1469 >  --enable-assert         Enable assert() statements
1470    --enable-debugging      Enable debugging.
1471    --enable-warnings       Enable compiler warnings.
1472 +  --enable-efence         Enable linking with Electric Fence 'efence' memory
1473 +                          debugger library.
1474 +  --disable-mempool       Disables the memory pooling allocator.
1475 +  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1476 +  --disable-openssl            Disable LibreSSL/OpenSSL support.
1477 +  --enable-gnutls             Enable GnuTLS support.
1478 +  --disable-gnutls             Disable GnuTLS support.
1479  
1480   Optional Packages:
1481    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1484                            both]
1485 +  --with-aix-soname=aix|svr4|both
1486 +                          shared library versioning (aka "SONAME") variant to
1487 +                          provide on AIX, [default=aix].
1488    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489 <  --with-sysroot=DIR Search for dependent libraries within DIR
1490 <                        (or the compiler's sysroot if not specified).
1489 >  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1490 >                          compiler's sysroot if not specified).
1491    --with-included-ltdl    use the GNU ltdl sources included here
1492    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1493    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
# Line 1498 | Line 1506 | Some influential environment variables:
1506    YFLAGS      The list of arguments that will be passed by default to $YACC.
1507                This script will default YFLAGS to the empty string to avoid a
1508                default value of `-d' given by some make applications.
1509 +  LT_SYS_LIBRARY_PATH
1510 +              User-defined run-time library search path.
1511    CPP         C preprocessor
1512  
1513   Use these variables to override the choices made by `configure' or to help
# Line 1941 | Line 1951 | $as_echo "$ac_res" >&6; }
1951  
1952   } # ac_fn_c_check_type
1953  
1944 – # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1945 – # ----------------------------------------------------
1946 – # Tries to find if the field MEMBER exists in type AGGR, after including
1947 – # INCLUDES, setting cache variable VAR accordingly.
1948 – ac_fn_c_check_member ()
1949 – {
1950 –  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1952 – $as_echo_n "checking for $2.$3... " >&6; }
1953 – if eval \${$4+:} false; then :
1954 –  $as_echo_n "(cached) " >&6
1955 – else
1956 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 – /* end confdefs.h.  */
1958 – $5
1959 – int
1960 – main ()
1961 – {
1962 – static $2 ac_aggr;
1963 – if (ac_aggr.$3)
1964 – return 0;
1965 –  ;
1966 –  return 0;
1967 – }
1968 – _ACEOF
1969 – if ac_fn_c_try_compile "$LINENO"; then :
1970 –  eval "$4=yes"
1971 – else
1972 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 – /* end confdefs.h.  */
1974 – $5
1975 – int
1976 – main ()
1977 – {
1978 – static $2 ac_aggr;
1979 – if (sizeof ac_aggr.$3)
1980 – return 0;
1981 –  ;
1982 –  return 0;
1983 – }
1984 – _ACEOF
1985 – if ac_fn_c_try_compile "$LINENO"; then :
1986 –  eval "$4=yes"
1987 – else
1988 –  eval "$4=no"
1989 – fi
1990 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 – fi
1992 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 – fi
1994 – eval ac_res=\$$4
1995 –               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 – $as_echo "$ac_res" >&6; }
1997 –  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 –
1999 – } # ac_fn_c_check_member
2000 –
1954   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1955   # -------------------------------------------------------
1956   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2373 | Line 2326 | $as_echo "$as_me: creating cache $cache_
2326   fi
2327  
2328   as_fn_append ac_func_list " strtok_r"
2376 – as_fn_append ac_func_list " usleep"
2329   as_fn_append ac_func_list " strlcat"
2330   as_fn_append ac_func_list " strlcpy"
2331   as_fn_append ac_header_list " crypt.h"
2380 – as_fn_append ac_header_list " sys/resource.h"
2332   as_fn_append ac_header_list " sys/param.h"
2333   as_fn_append ac_header_list " types.h"
2334   as_fn_append ac_header_list " socket.h"
2335   as_fn_append ac_header_list " sys/wait.h"
2385 – as_fn_append ac_header_list " wait.h"
2336   # Check that the precious variables saved in the cache have kept the same
2337   # value.
2338   ac_cache_corrupted=false
# Line 2451 | Line 2401 | ac_link='$CC -o conftest$ac_exeext $CFLA
2401   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402  
2403  
2404 < am__api_version='1.14'
2404 > am__api_version='1.15'
2405  
2406   ac_aux_dir=
2407   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2652 | Line 2602 | test "$program_suffix" != NONE &&
2602   ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2603   program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2604  
2605 < # expand $ac_aux_dir to an absolute path
2606 < am_aux_dir=`cd $ac_aux_dir && pwd`
2605 > # Expand $ac_aux_dir to an absolute path.
2606 > am_aux_dir=`cd "$ac_aux_dir" && pwd`
2607  
2608   if test x"${MISSING+set}" != xset; then
2609    case $am_aux_dir in
# Line 2672 | Line 2622 | else
2622   $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2623   fi
2624  
2625 < if test x"${install_sh}" != xset; then
2625 > if test x"${install_sh+set}" != xset; then
2626    case $am_aux_dir in
2627    *\ * | *\     *)
2628      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
# Line 3000 | Line 2950 | MAKEINFO=${MAKEINFO-"${am_missing_run}ma
2950   # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2951   mkdir_p='$(MKDIR_P)'
2952  
2953 < # We need awk for the "check" target.  The system "awk" is bad on
2954 < # some platforms.
2953 > # We need awk for the "check" target (and possibly the TAP driver).  The
2954 > # system "awk" is bad on some platforms.
2955   # Always define AMTAR for backward compatibility.  Yes, it's still used
2956   # in the wild :-(  We should find a proper way to deprecate it ...
2957   AMTAR='$${TAR-tar}'
# Line 3059 | Line 3009 | END
3009    fi
3010   fi
3011  
3012 +
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3014   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3015      # Check whether --enable-maintainer-mode was given.
# Line 4530 | Line 4481 | esac
4481  
4482  
4483  
4484 < macro_version='2.4.2'
4485 < macro_revision='1.3337'
4484 > macro_version='2.4.6'
4485 > macro_revision='2.4.6'
4486  
4487  
4488  
# Line 4545 | Line 4496 | macro_revision='1.3337'
4496  
4497  
4498  
4499 < ltmain="$ac_aux_dir/ltmain.sh"
4499 > ltmain=$ac_aux_dir/ltmain.sh
4500  
4501   # Make sure we can run config.sub.
4502   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4665 | Line 4616 | func_echo_all ()
4616      $ECHO ""
4617   }
4618  
4619 < case "$ECHO" in
4619 > case $ECHO in
4620    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4621   $as_echo "printf" >&6; } ;;
4622    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 4988 | Line 4939 | test -z "$GREP" && GREP=grep
4939  
4940   # Check whether --with-gnu-ld was given.
4941   if test "${with_gnu_ld+set}" = set; then :
4942 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4942 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4943   else
4944    with_gnu_ld=no
4945   fi
4946  
4947   ac_prog=ld
4948 < if test "$GCC" = yes; then
4948 > if test yes = "$GCC"; then
4949    # Check if gcc -print-prog-name=ld gives a path.
4950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4951   $as_echo_n "checking for ld used by $CC... " >&6; }
4952    case $host in
4953    *-*-mingw*)
4954 <    # gcc leaves a trailing carriage return which upsets mingw
4954 >    # gcc leaves a trailing carriage return, which upsets mingw
4955      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4956    *)
4957      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 5014 | Line 4965 | $as_echo_n "checking for ld used by $CC.
4965        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4966          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4967        done
4968 <      test -z "$LD" && LD="$ac_prog"
4968 >      test -z "$LD" && LD=$ac_prog
4969        ;;
4970    "")
4971      # If it fails, then pretend we aren't using GCC.
# Line 5025 | Line 4976 | $as_echo_n "checking for ld used by $CC.
4976      with_gnu_ld=unknown
4977      ;;
4978    esac
4979 < elif test "$with_gnu_ld" = yes; then
4979 > elif test yes = "$with_gnu_ld"; then
4980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4981   $as_echo_n "checking for GNU ld... " >&6; }
4982   else
# Line 5036 | Line 4987 | if ${lt_cv_path_LD+:} false; then :
4987    $as_echo_n "(cached) " >&6
4988   else
4989    if test -z "$LD"; then
4990 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4990 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4991    for ac_dir in $PATH; do
4992 <    IFS="$lt_save_ifs"
4992 >    IFS=$lt_save_ifs
4993      test -z "$ac_dir" && ac_dir=.
4994      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4995 <      lt_cv_path_LD="$ac_dir/$ac_prog"
4995 >      lt_cv_path_LD=$ac_dir/$ac_prog
4996        # Check to see if the program is GNU ld.  I'd rather use --version,
4997        # but apparently some variants of GNU ld only accept -v.
4998        # Break only if it was the GNU/non-GNU ld that we prefer.
4999        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5000        *GNU* | *'with BFD'*)
5001 <        test "$with_gnu_ld" != no && break
5001 >        test no != "$with_gnu_ld" && break
5002          ;;
5003        *)
5004 <        test "$with_gnu_ld" != yes && break
5004 >        test yes != "$with_gnu_ld" && break
5005          ;;
5006        esac
5007      fi
5008    done
5009 <  IFS="$lt_save_ifs"
5009 >  IFS=$lt_save_ifs
5010   else
5011 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5011 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5012   fi
5013   fi
5014  
5015 < LD="$lt_cv_path_LD"
5015 > LD=$lt_cv_path_LD
5016   if test -n "$LD"; then
5017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5018   $as_echo "$LD" >&6; }
# Line 5104 | Line 5055 | if ${lt_cv_path_NM+:} false; then :
5055   else
5056    if test -n "$NM"; then
5057    # Let the user override the test.
5058 <  lt_cv_path_NM="$NM"
5058 >  lt_cv_path_NM=$NM
5059   else
5060 <  lt_nm_to_check="${ac_tool_prefix}nm"
5060 >  lt_nm_to_check=${ac_tool_prefix}nm
5061    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5062      lt_nm_to_check="$lt_nm_to_check nm"
5063    fi
5064    for lt_tmp_nm in $lt_nm_to_check; do
5065 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5065 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5066      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5067 <      IFS="$lt_save_ifs"
5067 >      IFS=$lt_save_ifs
5068        test -z "$ac_dir" && ac_dir=.
5069 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5070 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5069 >      tmp_nm=$ac_dir/$lt_tmp_nm
5070 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5071          # Check to see if the nm accepts a BSD-compat flag.
5072 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5072 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5073          #   nm: unknown option "B" ignored
5074          # Tru64's nm complains that /dev/null is an invalid object file
5075 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5076 <        */dev/null* | *'Invalid file or object type'*)
5075 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5076 >        case $build_os in
5077 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5078 >        *) lt_bad_file=/dev/null ;;
5079 >        esac
5080 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5081 >        *$lt_bad_file* | *'Invalid file or object type'*)
5082            lt_cv_path_NM="$tmp_nm -B"
5083 <          break
5083 >          break 2
5084            ;;
5085          *)
5086            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5087            */dev/null*)
5088              lt_cv_path_NM="$tmp_nm -p"
5089 <            break
5089 >            break 2
5090              ;;
5091            *)
5092              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 5141 | Line 5097 | else
5097          esac
5098        fi
5099      done
5100 <    IFS="$lt_save_ifs"
5100 >    IFS=$lt_save_ifs
5101    done
5102    : ${lt_cv_path_NM=no}
5103   fi
5104   fi
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5106   $as_echo "$lt_cv_path_NM" >&6; }
5107 < if test "$lt_cv_path_NM" != "no"; then
5108 <  NM="$lt_cv_path_NM"
5107 > if test no != "$lt_cv_path_NM"; then
5108 >  NM=$lt_cv_path_NM
5109   else
5110    # Didn't find any BSD compatible name lister, look for dumpbin.
5111    if test -n "$DUMPBIN"; then :
# Line 5255 | Line 5211 | esac
5211    fi
5212   fi
5213  
5214 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5214 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5215      *COFF*)
5216 <      DUMPBIN="$DUMPBIN -symbols"
5216 >      DUMPBIN="$DUMPBIN -symbols -headers"
5217        ;;
5218      *)
5219        DUMPBIN=:
# Line 5265 | Line 5221 | fi
5221      esac
5222    fi
5223  
5224 <  if test "$DUMPBIN" != ":"; then
5225 <    NM="$DUMPBIN"
5224 >  if test : != "$DUMPBIN"; then
5225 >    NM=$DUMPBIN
5226    fi
5227   fi
5228   test -z "$NM" && NM=nm
# Line 5317 | Line 5273 | if ${lt_cv_sys_max_cmd_len+:} false; the
5273    $as_echo_n "(cached) " >&6
5274   else
5275      i=0
5276 <  teststring="ABCD"
5276 >  teststring=ABCD
5277  
5278    case $build_os in
5279    msdosdjgpp*)
# Line 5357 | Line 5313 | else
5313      lt_cv_sys_max_cmd_len=8192;
5314      ;;
5315  
5316 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5316 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5317      # This has been around since 386BSD, at least.  Likely further.
5318      if test -x /sbin/sysctl; then
5319        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5407 | Line 5363 | else
5363      ;;
5364    *)
5365      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5366 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5366 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5367 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5368        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5369        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5370      else
5371        # Make teststring a little bigger before we do anything with it.
5372        # a 1K string should be a reasonable start.
5373 <      for i in 1 2 3 4 5 6 7 8 ; do
5373 >      for i in 1 2 3 4 5 6 7 8; do
5374          teststring=$teststring$teststring
5375        done
5376        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5377        # If test is not a shell built-in, we'll probably end up computing a
5378        # maximum length that is only half of the actual maximum length, but
5379        # we can't tell.
5380 <      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5380 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5381                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5382 <              test $i != 17 # 1/2 MB should be enough
5382 >              test 17 != "$i" # 1/2 MB should be enough
5383        do
5384          i=`expr $i + 1`
5385          teststring=$teststring$teststring
# Line 5440 | Line 5397 | else
5397  
5398   fi
5399  
5400 < if test -n $lt_cv_sys_max_cmd_len ; then
5400 > if test -n "$lt_cv_sys_max_cmd_len"; then
5401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5402   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5403   else
# Line 5458 | Line 5415 | max_cmd_len=$lt_cv_sys_max_cmd_len
5415   : ${MV="mv -f"}
5416   : ${RM="rm -f"}
5417  
5461 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5462 – $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5463 – # Try some XSI features
5464 – xsi_shell=no
5465 – ( _lt_dummy="a/b/c"
5466 –  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5467 –      = c,a/b,b/c, \
5468 –    && eval 'test $(( 1 + 1 )) -eq 2 \
5469 –    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5470 –  && xsi_shell=yes
5471 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5472 – $as_echo "$xsi_shell" >&6; }
5473 –
5474 –
5475 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5476 – $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5477 – lt_shell_append=no
5478 – ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5479 –    >/dev/null 2>&1 \
5480 –  && lt_shell_append=yes
5481 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5482 – $as_echo "$lt_shell_append" >&6; }
5483 –
5484 –
5418   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5419    lt_unset=unset
5420   else
# Line 5604 | Line 5537 | esac
5537   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5538   case $host_os in
5539    cygwin* | mingw* | pw32* | cegcc*)
5540 <    if test "$GCC" != yes; then
5540 >    if test yes != "$GCC"; then
5541        reload_cmds=false
5542      fi
5543      ;;
5544    darwin*)
5545 <    if test "$GCC" = yes; then
5546 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5545 >    if test yes = "$GCC"; then
5546 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5547      else
5548        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5549      fi
# Line 5738 | Line 5671 | lt_cv_deplibs_check_method='unknown'
5671   # Need to set the preceding variable on all platforms that support
5672   # interlibrary dependencies.
5673   # 'none' -- dependencies not supported.
5674 < # `unknown' -- same as none, but documents that we really don't know.
5674 > # 'unknown' -- same as none, but documents that we really don't know.
5675   # 'pass_all' -- all dependencies passed with no checks.
5676   # 'test_compile' -- check by making test program.
5677   # 'file_magic [[regex]]' -- check by looking for files in library path
5678 < # which responds to the $file_magic_cmd with a given extended regex.
5679 < # If you have `file' or equivalent on your system and you're not sure
5680 < # whether `pass_all' will *always* work, you probably want this one.
5678 > # that responds to the $file_magic_cmd with a given extended regex.
5679 > # If you have 'file' or equivalent on your system and you're not sure
5680 > # whether 'pass_all' will *always* work, you probably want this one.
5681  
5682   case $host_os in
5683   aix[4-9]*)
# Line 5771 | Line 5704 | mingw* | pw32*)
5704    # Base MSYS/MinGW do not provide the 'file' command needed by
5705    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5706    # unless we find 'file', for example because we are cross-compiling.
5707 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5775 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5707 >  if ( file / ) >/dev/null 2>&1; then
5708      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5709      lt_cv_file_magic_cmd='func_win32_libid'
5710    else
# Line 5808 | Line 5740 | freebsd* | dragonfly*)
5740    fi
5741    ;;
5742  
5811 – gnu*)
5812 –  lt_cv_deplibs_check_method=pass_all
5813 –  ;;
5814 –
5743   haiku*)
5744    lt_cv_deplibs_check_method=pass_all
5745    ;;
# Line 5850 | Line 5778 | irix5* | irix6* | nonstopux*)
5778    ;;
5779  
5780   # This must be glibc/ELF.
5781 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5781 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5782    lt_cv_deplibs_check_method=pass_all
5783    ;;
5784  
# Line 5872 | Line 5800 | newos6*)
5800    lt_cv_deplibs_check_method=pass_all
5801    ;;
5802  
5803 < openbsd*)
5804 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5803 > openbsd* | bitrig*)
5804 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5805      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5806    else
5807      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5926 | Line 5854 | sysv4 | sysv4.3*)
5854   tpf*)
5855    lt_cv_deplibs_check_method=pass_all
5856    ;;
5857 + os2*)
5858 +  lt_cv_deplibs_check_method=pass_all
5859 +  ;;
5860   esac
5861  
5862   fi
# Line 6083 | Line 6014 | else
6014  
6015   case $host_os in
6016   cygwin* | mingw* | pw32* | cegcc*)
6017 <  # two different shell functions defined in ltmain.sh
6018 <  # decide which to use based on capabilities of $DLLTOOL
6017 >  # two different shell functions defined in ltmain.sh;
6018 >  # decide which one to use based on capabilities of $DLLTOOL
6019    case `$DLLTOOL --help 2>&1` in
6020    *--identify-strict*)
6021      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 6096 | Line 6027 | cygwin* | mingw* | pw32* | cegcc*)
6027    ;;
6028   *)
6029    # fallback: assume linklib IS sharedlib
6030 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6030 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6031    ;;
6032   esac
6033  
# Line 6250 | Line 6181 | if ac_fn_c_try_compile "$LINENO"; then :
6181    ac_status=$?
6182    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183    test $ac_status = 0; }
6184 <      if test "$ac_status" -eq 0; then
6184 >      if test 0 -eq "$ac_status"; then
6185          # Ensure the archiver fails upon bogus file names.
6186          rm -f conftest.$ac_objext libconftest.a
6187          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6258 | Line 6189 | if ac_fn_c_try_compile "$LINENO"; then :
6189    ac_status=$?
6190    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6191    test $ac_status = 0; }
6192 <        if test "$ac_status" -ne 0; then
6192 >        if test 0 -ne "$ac_status"; then
6193            lt_cv_ar_at_file=@
6194          fi
6195        fi
# Line 6271 | Line 6202 | fi
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6203   $as_echo "$lt_cv_ar_at_file" >&6; }
6204  
6205 < if test "x$lt_cv_ar_at_file" = xno; then
6205 > if test no = "$lt_cv_ar_at_file"; then
6206    archiver_list_spec=
6207   else
6208    archiver_list_spec=$lt_cv_ar_at_file
# Line 6488 | Line 6419 | old_postuninstall_cmds=
6419  
6420   if test -n "$RANLIB"; then
6421    case $host_os in
6422 <  openbsd*)
6422 >  bitrig* | openbsd*)
6423      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6424      ;;
6425    *)
# Line 6578 | Line 6509 | cygwin* | mingw* | pw32* | cegcc*)
6509    symcode='[ABCDGISTW]'
6510    ;;
6511   hpux*)
6512 <  if test "$host_cpu" = ia64; then
6512 >  if test ia64 = "$host_cpu"; then
6513      symcode='[ABCDEGRST]'
6514    fi
6515    ;;
# Line 6611 | Line 6542 | case `$NM -V 2>&1` in
6542    symcode='[ABCDGIRSTW]' ;;
6543   esac
6544  
6545 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6546 +  # Gets list of data symbols to import.
6547 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6548 +  # Adjust the below global symbol transforms to fixup imported variables.
6549 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6550 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6551 +  lt_c_name_lib_hook="\
6552 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6553 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6554 + else
6555 +  # Disable hooks by default.
6556 +  lt_cv_sys_global_symbol_to_import=
6557 +  lt_cdecl_hook=
6558 +  lt_c_name_hook=
6559 +  lt_c_name_lib_hook=
6560 + fi
6561 +
6562   # Transform an extracted symbol line into a proper C declaration.
6563   # Some systems (esp. on ia64) link data and code symbols differently,
6564   # so use this general approach.
6565 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6565 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6566 > $lt_cdecl_hook\
6567 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6568 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6569  
6570   # Transform an extracted symbol line into symbol name and symbol address
6571 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6572 < lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6571 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6572 > $lt_c_name_hook\
6573 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6574 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6575 >
6576 > # Transform an extracted symbol line into symbol name with lib prefix and
6577 > # symbol address.
6578 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6579 > $lt_c_name_lib_hook\
6580 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6581 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6582 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6583  
6584   # Handle CRLF in mingw tool chain
6585   opt_cr=
# Line 6636 | Line 6597 | for ac_symprfx in "" "_"; do
6597  
6598    # Write the raw and C identifiers.
6599    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6600 <    # Fake it for dumpbin and say T for any non-static function
6601 <    # and D for any global variable.
6600 >    # Fake it for dumpbin and say T for any non-static function,
6601 >    # D for any global variable and I for any imported variable.
6602      # Also find C++ and __fastcall symbols from MSVC++,
6603      # which start with @ or ?.
6604      lt_cv_sys_global_symbol_pipe="$AWK '"\
6605   "     {last_section=section; section=\$ 3};"\
6606   "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6607   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6608 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6609 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6610 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6611   "     \$ 0!~/External *\|/{next};"\
6612   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6613   "     {if(hide[section]) next};"\
6614 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6615 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6616 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6617 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6614 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6615 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6616 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6617 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6618   "     ' prfx=^$ac_symprfx"
6619    else
6620      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6698 | Line 6662 | _LT_EOF
6662          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6663            cat <<_LT_EOF > conftest.$ac_ext
6664   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6665 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6666 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6665 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6666 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6667     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6668   # define LT_DLSYM_CONST
6669 < #elif defined(__osf__)
6669 > #elif defined __osf__
6670   /* This system does not cope well with relocations in const data.  */
6671   # define LT_DLSYM_CONST
6672   #else
# Line 6728 | Line 6692 | lt__PROGRAM__LTX_preloaded_symbols[] =
6692   {
6693    { "@PROGRAM@", (void *) 0 },
6694   _LT_EOF
6695 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6695 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6696            cat <<\_LT_EOF >> conftest.$ac_ext
6697    {0, (void *) 0}
6698   };
# Line 6748 | Line 6712 | _LT_EOF
6712            mv conftest.$ac_objext conftstm.$ac_objext
6713            lt_globsym_save_LIBS=$LIBS
6714            lt_globsym_save_CFLAGS=$CFLAGS
6715 <          LIBS="conftstm.$ac_objext"
6715 >          LIBS=conftstm.$ac_objext
6716            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6717            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6718    (eval $ac_link) 2>&5
6719    ac_status=$?
6720    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6721 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6722              pipe_works=yes
6723            fi
6724            LIBS=$lt_globsym_save_LIBS
# Line 6775 | Line 6739 | _LT_EOF
6739    rm -rf conftest* conftst*
6740  
6741    # Do not use the global_symbol_pipe unless it works.
6742 <  if test "$pipe_works" = yes; then
6742 >  if test yes = "$pipe_works"; then
6743      break
6744    else
6745      lt_cv_sys_global_symbol_pipe=
# Line 6828 | Line 6792 | fi
6792  
6793  
6794  
6795 +
6796 +
6797 +
6798 +
6799 +
6800 +
6801 +
6802 +
6803 +
6804 +
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6806   $as_echo_n "checking for sysroot... " >&6; }
6807  
# Line 6840 | Line 6814 | fi
6814  
6815  
6816   lt_sysroot=
6817 < case ${with_sysroot} in #(
6817 > case $with_sysroot in #(
6818   yes)
6819 <   if test "$GCC" = yes; then
6819 >   if test yes = "$GCC"; then
6820       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6821     fi
6822     ;; #(
# Line 6852 | Line 6826 | case ${with_sysroot} in #(
6826   no|'')
6827     ;; #(
6828   *)
6829 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6830 < $as_echo "${with_sysroot}" >&6; }
6829 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6830 > $as_echo "$with_sysroot" >&6; }
6831     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6832     ;;
6833   esac
# Line 6865 | Line 6839 | $as_echo "${lt_sysroot:-no}" >&6; }
6839  
6840  
6841  
6842 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6843 + $as_echo_n "checking for a working dd... " >&6; }
6844 + if ${ac_cv_path_lt_DD+:} false; then :
6845 +  $as_echo_n "(cached) " >&6
6846 + else
6847 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6848 + cat conftest.i conftest.i >conftest2.i
6849 + : ${lt_DD:=$DD}
6850 + if test -z "$lt_DD"; then
6851 +  ac_path_lt_DD_found=false
6852 +  # Loop through the user's path and test for each of PROGNAME-LIST
6853 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 + for as_dir in $PATH
6855 + do
6856 +  IFS=$as_save_IFS
6857 +  test -z "$as_dir" && as_dir=.
6858 +    for ac_prog in dd; do
6859 +    for ac_exec_ext in '' $ac_executable_extensions; do
6860 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6861 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6862 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6863 +  cmp -s conftest.i conftest.out \
6864 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6865 + fi
6866 +      $ac_path_lt_DD_found && break 3
6867 +    done
6868 +  done
6869 +  done
6870 + IFS=$as_save_IFS
6871 +  if test -z "$ac_cv_path_lt_DD"; then
6872 +    :
6873 +  fi
6874 + else
6875 +  ac_cv_path_lt_DD=$lt_DD
6876 + fi
6877 +
6878 + rm -f conftest.i conftest2.i conftest.out
6879 + fi
6880 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6881 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6882 +
6883 +
6884 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6885 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6886 + if ${lt_cv_truncate_bin+:} false; then :
6887 +  $as_echo_n "(cached) " >&6
6888 + else
6889 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6890 + cat conftest.i conftest.i >conftest2.i
6891 + lt_cv_truncate_bin=
6892 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6893 +  cmp -s conftest.i conftest.out \
6894 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6895 + fi
6896 + rm -f conftest.i conftest2.i conftest.out
6897 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6898 + fi
6899 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6900 + $as_echo "$lt_cv_truncate_bin" >&6; }
6901 +
6902 +
6903 +
6904 +
6905 +
6906 +
6907 +
6908 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6909 + func_cc_basename ()
6910 + {
6911 +    for cc_temp in $*""; do
6912 +      case $cc_temp in
6913 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6914 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6915 +        \-*) ;;
6916 +        *) break;;
6917 +      esac
6918 +    done
6919 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6920 + }
6921 +
6922   # Check whether --enable-libtool-lock was given.
6923   if test "${enable_libtool_lock+set}" = set; then :
6924    enableval=$enable_libtool_lock;
6925   fi
6926  
6927 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6927 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6928  
6929   # Some flags need to be propagated to the compiler or linker for good
6930   # libtool support.
6931   case $host in
6932   ia64-*-hpux*)
6933 <  # Find out which ABI we are using.
6933 >  # Find out what ABI is being produced by ac_compile, and set mode
6934 >  # options accordingly.
6935    echo 'int i;' > conftest.$ac_ext
6936    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937    (eval $ac_compile) 2>&5
# Line 6885 | Line 6940 | ia64-*-hpux*)
6940    test $ac_status = 0; }; then
6941      case `/usr/bin/file conftest.$ac_objext` in
6942        *ELF-32*)
6943 <        HPUX_IA64_MODE="32"
6943 >        HPUX_IA64_MODE=32
6944          ;;
6945        *ELF-64*)
6946 <        HPUX_IA64_MODE="64"
6946 >        HPUX_IA64_MODE=64
6947          ;;
6948      esac
6949    fi
6950    rm -rf conftest*
6951    ;;
6952   *-*-irix6*)
6953 <  # Find out which ABI we are using.
6953 >  # Find out what ABI is being produced by ac_compile, and set linker
6954 >  # options accordingly.
6955    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6956    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6957    (eval $ac_compile) 2>&5
6958    ac_status=$?
6959    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960    test $ac_status = 0; }; then
6961 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6961 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6962        case `/usr/bin/file conftest.$ac_objext` in
6963          *32-bit*)
6964            LD="${LD-ld} -melf32bsmip"
# Line 6931 | Line 6987 | ia64-*-hpux*)
6987    rm -rf conftest*
6988    ;;
6989  
6990 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6990 > mips64*-*linux*)
6991 >  # Find out what ABI is being produced by ac_compile, and set linker
6992 >  # options accordingly.
6993 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6994 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6995 >  (eval $ac_compile) 2>&5
6996 >  ac_status=$?
6997 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998 >  test $ac_status = 0; }; then
6999 >    emul=elf
7000 >    case `/usr/bin/file conftest.$ac_objext` in
7001 >      *32-bit*)
7002 >        emul="${emul}32"
7003 >        ;;
7004 >      *64-bit*)
7005 >        emul="${emul}64"
7006 >        ;;
7007 >    esac
7008 >    case `/usr/bin/file conftest.$ac_objext` in
7009 >      *MSB*)
7010 >        emul="${emul}btsmip"
7011 >        ;;
7012 >      *LSB*)
7013 >        emul="${emul}ltsmip"
7014 >        ;;
7015 >    esac
7016 >    case `/usr/bin/file conftest.$ac_objext` in
7017 >      *N32*)
7018 >        emul="${emul}n32"
7019 >        ;;
7020 >    esac
7021 >    LD="${LD-ld} -m $emul"
7022 >  fi
7023 >  rm -rf conftest*
7024 >  ;;
7025 >
7026 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7027   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7028 <  # Find out which ABI we are using.
7028 >  # Find out what ABI is being produced by ac_compile, and set linker
7029 >  # options accordingly.  Note that the listed cases only cover the
7030 >  # situations where additional linker options are needed (such as when
7031 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7032 >  # vice versa); the common cases where no linker options are needed do
7033 >  # not appear in the list.
7034    echo 'int i;' > conftest.$ac_ext
7035    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7036    (eval $ac_compile) 2>&5
# Line 6947 | Line 7044 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7044              LD="${LD-ld} -m elf_i386_fbsd"
7045              ;;
7046            x86_64-*linux*)
7047 <            LD="${LD-ld} -m elf_i386"
7047 >            case `/usr/bin/file conftest.o` in
7048 >              *x86-64*)
7049 >                LD="${LD-ld} -m elf32_x86_64"
7050 >                ;;
7051 >              *)
7052 >                LD="${LD-ld} -m elf_i386"
7053 >                ;;
7054 >            esac
7055 >            ;;
7056 >          powerpc64le-*linux*)
7057 >            LD="${LD-ld} -m elf32lppclinux"
7058              ;;
7059 <          ppc64-*linux*|powerpc64-*linux*)
7059 >          powerpc64-*linux*)
7060              LD="${LD-ld} -m elf32ppclinux"
7061              ;;
7062            s390x-*linux*)
# Line 6968 | Line 7075 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7075            x86_64-*linux*)
7076              LD="${LD-ld} -m elf_x86_64"
7077              ;;
7078 <          ppc*-*linux*|powerpc*-*linux*)
7078 >          powerpcle-*linux*)
7079 >            LD="${LD-ld} -m elf64lppc"
7080 >            ;;
7081 >          powerpc-*linux*)
7082              LD="${LD-ld} -m elf64ppc"
7083              ;;
7084            s390*-*linux*|s390*-*tpf*)
# Line 6986 | Line 7096 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7096  
7097   *-*-sco3.2v5*)
7098    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7099 <  SAVE_CFLAGS="$CFLAGS"
7099 >  SAVE_CFLAGS=$CFLAGS
7100    CFLAGS="$CFLAGS -belf"
7101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7102   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 7026 | Line 7136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136   fi
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7138   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7139 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7139 >  if test yes != "$lt_cv_cc_needs_belf"; then
7140      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7141 <    CFLAGS="$SAVE_CFLAGS"
7141 >    CFLAGS=$SAVE_CFLAGS
7142    fi
7143    ;;
7144   *-*solaris*)
7145 <  # Find out which ABI we are using.
7145 >  # Find out what ABI is being produced by ac_compile, and set linker
7146 >  # options accordingly.
7147    echo 'int i;' > conftest.$ac_ext
7148    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7149    (eval $ac_compile) 2>&5
# Line 7044 | Line 7155 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7155        case $lt_cv_prog_gnu_ld in
7156        yes*)
7157          case $host in
7158 <        i?86-*-solaris*)
7158 >        i?86-*-solaris*|x86_64-*-solaris*)
7159            LD="${LD-ld} -m elf_x86_64"
7160            ;;
7161          sparc*-*-solaris*)
# Line 7053 | Line 7164 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7164          esac
7165          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7166          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7167 <          LD="${LD-ld}_sol2"
7167 >          LD=${LD-ld}_sol2
7168          fi
7169          ;;
7170        *)
# Line 7069 | Line 7180 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7180    ;;
7181   esac
7182  
7183 < need_locks="$enable_libtool_lock"
7183 > need_locks=$enable_libtool_lock
7184  
7185   if test -n "$ac_tool_prefix"; then
7186    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 7180 | Line 7291 | else
7291   fi
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7293   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7294 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7294 > if test yes != "$lt_cv_path_mainfest_tool"; then
7295    MANIFEST_TOOL=:
7296   fi
7297  
# Line 7683 | Line 7794 | if ${lt_cv_apple_cc_single_mod+:} false;
7794    $as_echo_n "(cached) " >&6
7795   else
7796    lt_cv_apple_cc_single_mod=no
7797 <      if test -z "${LT_MULTI_MODULE}"; then
7797 >      if test -z "$LT_MULTI_MODULE"; then
7798          # By default we will add the -single_module flag. You can override
7799          # by either setting the environment variable LT_MULTI_MODULE
7800          # non-empty at configure time, or by adding -multi_module to the
# Line 7701 | Line 7812 | else
7812            cat conftest.err >&5
7813          # Otherwise, if the output was created with a 0 exit code from
7814          # the compiler, it worked.
7815 <        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7815 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7816            lt_cv_apple_cc_single_mod=yes
7817          else
7818            cat conftest.err >&5
# Line 7740 | Line 7851 | else
7851   fi
7852   rm -f core conftest.err conftest.$ac_objext \
7853      conftest$ac_exeext conftest.$ac_ext
7854 <        LDFLAGS="$save_LDFLAGS"
7854 >        LDFLAGS=$save_LDFLAGS
7855  
7856   fi
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
# Line 7769 | Line 7880 | _LT_EOF
7880        _lt_result=$?
7881        if test -s conftest.err && $GREP force_load conftest.err; then
7882          cat conftest.err >&5
7883 <      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7883 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7884          lt_cv_ld_force_load=yes
7885        else
7886          cat conftest.err >&5
# Line 7782 | Line 7893 | fi
7893   $as_echo "$lt_cv_ld_force_load" >&6; }
7894      case $host_os in
7895      rhapsody* | darwin1.[012])
7896 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7896 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7897      darwin1.*)
7898 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7898 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7899      darwin*) # darwin 5.x on
7900        # if running on 10.5 or later, the deployment target defaults
7901        # to the OS version, if on x86, and 10.4, the deployment
7902        # target defaults to 10.4. Don't you love it?
7903        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7904          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7905 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7906 <        10.[012]*)
7907 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7905 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7906 >        10.[012][,.]*)
7907 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7908          10.*)
7909 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7909 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7910        esac
7911      ;;
7912    esac
7913 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7913 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7914        _lt_dar_single_mod='$single_module'
7915      fi
7916 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7917 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7916 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7917 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7918      else
7919 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7919 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7920      fi
7921 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7921 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7922        _lt_dsymutil='~$DSYMUTIL $lib || :'
7923      else
7924        _lt_dsymutil=
# Line 7815 | Line 7926 | $as_echo "$lt_cv_ld_force_load" >&6; }
7926      ;;
7927    esac
7928  
7929 + # func_munge_path_list VARIABLE PATH
7930 + # -----------------------------------
7931 + # VARIABLE is name of variable containing _space_ separated list of
7932 + # directories to be munged by the contents of PATH, which is string
7933 + # having a format:
7934 + # "DIR[:DIR]:"
7935 + #       string "DIR[ DIR]" will be prepended to VARIABLE
7936 + # ":DIR[:DIR]"
7937 + #       string "DIR[ DIR]" will be appended to VARIABLE
7938 + # "DIRP[:DIRP]::[DIRA:]DIRA"
7939 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7940 + #       "DIRA[ DIRA]" will be appended to VARIABLE
7941 + # "DIR[:DIR]"
7942 + #       VARIABLE will be replaced by "DIR[ DIR]"
7943 + func_munge_path_list ()
7944 + {
7945 +    case x$2 in
7946 +    x)
7947 +        ;;
7948 +    *:)
7949 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7950 +        ;;
7951 +    x:*)
7952 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7953 +        ;;
7954 +    *::*)
7955 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7956 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7957 +        ;;
7958 +    *)
7959 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7960 +        ;;
7961 +    esac
7962 + }
7963 +
7964   ac_ext=c
7965   ac_cpp='$CPP $CPPFLAGS'
7966   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8110 | Line 8256 | if test "${enable_static+set}" = set; th
8256      *)
8257       enable_static=no
8258        # Look at the argument we got.  We use all the common list separators.
8259 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8259 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8260        for pkg in $enableval; do
8261 <        IFS="$lt_save_ifs"
8261 >        IFS=$lt_save_ifs
8262          if test "X$pkg" = "X$p"; then
8263            enable_static=yes
8264          fi
8265        done
8266 <      IFS="$lt_save_ifs"
8266 >      IFS=$lt_save_ifs
8267        ;;
8268      esac
8269   else
# Line 8146 | Line 8292 | if test "${enable_shared+set}" = set; th
8292      *)
8293        enable_shared=no
8294        # Look at the argument we got.  We use all the common list separators.
8295 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8296        for pkg in $enableval; do
8297 <        IFS="$lt_save_ifs"
8297 >        IFS=$lt_save_ifs
8298          if test "X$pkg" = "X$p"; then
8299            enable_shared=yes
8300          fi
8301        done
8302 <      IFS="$lt_save_ifs"
8302 >      IFS=$lt_save_ifs
8303        ;;
8304      esac
8305   else
# Line 8178 | Line 8324 | if test "${with_pic+set}" = set; then :
8324      *)
8325        pic_mode=default
8326        # Look at the argument we got.  We use all the common list separators.
8327 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8327 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8328        for lt_pkg in $withval; do
8329 <        IFS="$lt_save_ifs"
8329 >        IFS=$lt_save_ifs
8330          if test "X$lt_pkg" = "X$lt_p"; then
8331            pic_mode=yes
8332          fi
8333        done
8334 <      IFS="$lt_save_ifs"
8334 >      IFS=$lt_save_ifs
8335        ;;
8336      esac
8337   else
# Line 8193 | Line 8339 | else
8339   fi
8340  
8341  
8196 – test -z "$pic_mode" && pic_mode=default
8197 –
8342  
8343  
8344  
# Line 8210 | Line 8354 | if test "${enable_fast_install+set}" = s
8354      *)
8355        enable_fast_install=no
8356        # Look at the argument we got.  We use all the common list separators.
8357 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8357 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8358        for pkg in $enableval; do
8359 <        IFS="$lt_save_ifs"
8359 >        IFS=$lt_save_ifs
8360          if test "X$pkg" = "X$p"; then
8361            enable_fast_install=yes
8362          fi
8363        done
8364 <      IFS="$lt_save_ifs"
8364 >      IFS=$lt_save_ifs
8365        ;;
8366      esac
8367   else
# Line 8231 | Line 8375 | fi
8375  
8376  
8377  
8378 +  shared_archive_member_spec=
8379 + case $host,$enable_shared in
8380 + power*-*-aix[5-9]*,yes)
8381 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8382 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8383 +
8384 + # Check whether --with-aix-soname was given.
8385 + if test "${with_aix_soname+set}" = set; then :
8386 +  withval=$with_aix_soname; case $withval in
8387 +    aix|svr4|both)
8388 +      ;;
8389 +    *)
8390 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8391 +      ;;
8392 +    esac
8393 +    lt_cv_with_aix_soname=$with_aix_soname
8394 + else
8395 +  if ${lt_cv_with_aix_soname+:} false; then :
8396 +  $as_echo_n "(cached) " >&6
8397 + else
8398 +  lt_cv_with_aix_soname=aix
8399 + fi
8400 +
8401 +    with_aix_soname=$lt_cv_with_aix_soname
8402 + fi
8403 +
8404 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8405 + $as_echo "$with_aix_soname" >&6; }
8406 +  if test aix != "$with_aix_soname"; then
8407 +    # For the AIX way of multilib, we name the shared archive member
8408 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8409 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8410 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8411 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8412 +    if test 64 = "${OBJECT_MODE-32}"; then
8413 +      shared_archive_member_spec=shr_64
8414 +    else
8415 +      shared_archive_member_spec=shr
8416 +    fi
8417 +  fi
8418 +  ;;
8419 + *)
8420 +  with_aix_soname=aix
8421 +  ;;
8422 + esac
8423 +
8424 +
8425 +
8426 +
8427 +
8428 +
8429 +
8430  
8431  
8432  
8433   # This can be used to rebuild libtool when needed
8434 < LIBTOOL_DEPS="$ltmain"
8434 > LIBTOOL_DEPS=$ltmain
8435  
8436   # Always use our own libtool.
8437   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8284 | Line 8480 | test -z "$LN_S" && LN_S="ln -s"
8480  
8481  
8482  
8483 < if test -n "${ZSH_VERSION+set}" ; then
8483 > if test -n "${ZSH_VERSION+set}"; then
8484     setopt NO_GLOB_SUBST
8485   fi
8486  
# Line 8323 | Line 8519 | aix3*)
8519    # AIX sometimes has problems with the GCC collect2 program.  For some
8520    # reason, if we set the COLLECT_NAMES environment variable, the problems
8521    # vanish in a puff of smoke.
8522 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8522 >  if test set != "${COLLECT_NAMES+set}"; then
8523      COLLECT_NAMES=
8524      export COLLECT_NAMES
8525    fi
# Line 8334 | Line 8530 | esac
8530   ofile=libtool
8531   can_build_shared=yes
8532  
8533 < # All known linkers require a `.a' archive for static linking (except MSVC,
8533 > # All known linkers require a '.a' archive for static linking (except MSVC,
8534   # which needs '.lib').
8535   libext=a
8536  
8537 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8537 > with_gnu_ld=$lt_cv_prog_gnu_ld
8538  
8539 < old_CC="$CC"
8540 < old_CFLAGS="$CFLAGS"
8539 > old_CC=$CC
8540 > old_CFLAGS=$CFLAGS
8541  
8542   # Set sane defaults for various variables
8543   test -z "$CC" && CC=cc
# Line 8350 | Line 8546 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8546   test -z "$LD" && LD=ld
8547   test -z "$ac_objext" && ac_objext=o
8548  
8549 < for cc_temp in $compiler""; do
8550 <  case $cc_temp in
8355 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8356 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8357 <    \-*) ;;
8358 <    *) break;;
8359 <  esac
8360 < done
8361 < cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8549 > func_cc_basename $compiler
8550 > cc_basename=$func_cc_basename_result
8551  
8552  
8553   # Only perform the check for file, if the check method requires it
# Line 8373 | Line 8562 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8562   else
8563    case $MAGIC_CMD in
8564   [\\/*] |  ?:[\\/]*)
8565 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8566    ;;
8567   *)
8568 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8569 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8568 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8569 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8570    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8571    for ac_dir in $ac_dummy; do
8572 <    IFS="$lt_save_ifs"
8572 >    IFS=$lt_save_ifs
8573      test -z "$ac_dir" && ac_dir=.
8574 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8575 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8574 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8575 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8576        if test -n "$file_magic_test_file"; then
8577          case $deplibs_check_method in
8578          "file_magic "*)
8579            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8580 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8581            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8582              $EGREP "$file_magic_regex" > /dev/null; then
8583              :
# Line 8411 | Line 8600 | _LT_EOF
8600        break
8601      fi
8602    done
8603 <  IFS="$lt_save_ifs"
8604 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8603 >  IFS=$lt_save_ifs
8604 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8605    ;;
8606   esac
8607   fi
8608  
8609 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8610   if test -n "$MAGIC_CMD"; then
8611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8612   $as_echo "$MAGIC_CMD" >&6; }
# Line 8439 | Line 8628 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8628   else
8629    case $MAGIC_CMD in
8630   [\\/*] |  ?:[\\/]*)
8631 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8631 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8632    ;;
8633   *)
8634 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8635 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8634 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8635 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8636    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8637    for ac_dir in $ac_dummy; do
8638 <    IFS="$lt_save_ifs"
8638 >    IFS=$lt_save_ifs
8639      test -z "$ac_dir" && ac_dir=.
8640 <    if test -f $ac_dir/file; then
8641 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8640 >    if test -f "$ac_dir/file"; then
8641 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8642        if test -n "$file_magic_test_file"; then
8643          case $deplibs_check_method in
8644          "file_magic "*)
8645            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8646 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8646 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8647            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8648              $EGREP "$file_magic_regex" > /dev/null; then
8649              :
# Line 8477 | Line 8666 | _LT_EOF
8666        break
8667      fi
8668    done
8669 <  IFS="$lt_save_ifs"
8670 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8669 >  IFS=$lt_save_ifs
8670 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8671    ;;
8672   esac
8673   fi
8674  
8675 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8676   if test -n "$MAGIC_CMD"; then
8677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8678   $as_echo "$MAGIC_CMD" >&6; }
# Line 8504 | Line 8693 | esac
8693  
8694   # Use C for the default configuration in the libtool script
8695  
8696 < lt_save_CC="$CC"
8696 > lt_save_CC=$CC
8697   ac_ext=c
8698   ac_cpp='$CPP $CPPFLAGS'
8699   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8566 | Line 8755 | if test -n "$compiler"; then
8755  
8756   lt_prog_compiler_no_builtin_flag=
8757  
8758 < if test "$GCC" = yes; then
8758 > if test yes = "$GCC"; then
8759    case $cc_basename in
8760    nvcc*)
8761      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8582 | Line 8771 | else
8771    lt_cv_prog_compiler_rtti_exceptions=no
8772     ac_outfile=conftest.$ac_objext
8773     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8774 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8775     # Insert the option either (1) after the last *FLAGS variable, or
8776     # (2) before a word containing "conftest.", or (3) at the end.
8777     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8612 | Line 8801 | fi
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8802   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8803  
8804 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8804 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8805      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8806   else
8807      :
# Line 8630 | Line 8819 | lt_prog_compiler_pic=
8819   lt_prog_compiler_static=
8820  
8821  
8822 <  if test "$GCC" = yes; then
8822 >  if test yes = "$GCC"; then
8823      lt_prog_compiler_wl='-Wl,'
8824      lt_prog_compiler_static='-static'
8825  
8826      case $host_os in
8827        aix*)
8828        # All AIX code is PIC.
8829 <      if test "$host_cpu" = ia64; then
8829 >      if test ia64 = "$host_cpu"; then
8830          # AIX 5 now supports IA64 processor
8831          lt_prog_compiler_static='-Bstatic'
8832        fi
8833 +      lt_prog_compiler_pic='-fPIC'
8834        ;;
8835  
8836      amigaos*)
# Line 8651 | Line 8841 | lt_prog_compiler_static=
8841          ;;
8842        m68k)
8843              # FIXME: we need at least 68020 code to build shared libraries, but
8844 <            # adding the `-m68020' flag to GCC prevents building anything better,
8845 <            # like `-m68040'.
8844 >            # adding the '-m68020' flag to GCC prevents building anything better,
8845 >            # like '-m68040'.
8846              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8847          ;;
8848        esac
# Line 8668 | Line 8858 | lt_prog_compiler_static=
8858        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8859        # (--disable-auto-import) libraries
8860        lt_prog_compiler_pic='-DDLL_EXPORT'
8861 +      case $host_os in
8862 +      os2*)
8863 +        lt_prog_compiler_static='$wl-static'
8864 +        ;;
8865 +      esac
8866        ;;
8867  
8868      darwin* | rhapsody*)
# Line 8738 | Line 8933 | lt_prog_compiler_static=
8933      case $host_os in
8934      aix*)
8935        lt_prog_compiler_wl='-Wl,'
8936 <      if test "$host_cpu" = ia64; then
8936 >      if test ia64 = "$host_cpu"; then
8937          # AIX 5 now supports IA64 processor
8938          lt_prog_compiler_static='-Bstatic'
8939        else
# Line 8746 | Line 8941 | lt_prog_compiler_static=
8941        fi
8942        ;;
8943  
8944 +    darwin* | rhapsody*)
8945 +      # PIC is the default on this platform
8946 +      # Common symbols not allowed in MH_DYLIB files
8947 +      lt_prog_compiler_pic='-fno-common'
8948 +      case $cc_basename in
8949 +      nagfor*)
8950 +        # NAG Fortran compiler
8951 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8952 +        lt_prog_compiler_pic='-PIC'
8953 +        lt_prog_compiler_static='-Bstatic'
8954 +        ;;
8955 +      esac
8956 +      ;;
8957 +
8958      mingw* | cygwin* | pw32* | os2* | cegcc*)
8959        # This hack is so that the source file can tell whether it is being
8960        # built for inclusion in a dll (and should export symbols for example).
8961        lt_prog_compiler_pic='-DDLL_EXPORT'
8962 +      case $host_os in
8963 +      os2*)
8964 +        lt_prog_compiler_static='$wl-static'
8965 +        ;;
8966 +      esac
8967        ;;
8968  
8969      hpux9* | hpux10* | hpux11*)
# Line 8765 | Line 8979 | lt_prog_compiler_static=
8979          ;;
8980        esac
8981        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8982 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8982 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8983        ;;
8984  
8985      irix5* | irix6* | nonstopux*)
# Line 8774 | Line 8988 | lt_prog_compiler_static=
8988        lt_prog_compiler_static='-non_shared'
8989        ;;
8990  
8991 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8991 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8992        case $cc_basename in
8993 <      # old Intel for x86_64 which still supported -KPIC.
8993 >      # old Intel for x86_64, which still supported -KPIC.
8994        ecc*)
8995          lt_prog_compiler_wl='-Wl,'
8996          lt_prog_compiler_pic='-KPIC'
# Line 8801 | Line 9015 | lt_prog_compiler_static=
9015          lt_prog_compiler_pic='-PIC'
9016          lt_prog_compiler_static='-Bstatic'
9017          ;;
9018 +      tcc*)
9019 +        # Fabrice Bellard et al's Tiny C Compiler
9020 +        lt_prog_compiler_wl='-Wl,'
9021 +        lt_prog_compiler_pic='-fPIC'
9022 +        lt_prog_compiler_static='-static'
9023 +        ;;
9024        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9025          # Portland Group compilers (*not* the Pentium gcc compiler,
9026          # which looks to be a dead project)
# Line 8898 | Line 9118 | lt_prog_compiler_static=
9118        ;;
9119  
9120      sysv4*MP*)
9121 <      if test -d /usr/nec ;then
9121 >      if test -d /usr/nec; then
9122          lt_prog_compiler_pic='-Kconform_pic'
9123          lt_prog_compiler_static='-Bstatic'
9124        fi
# Line 8927 | Line 9147 | lt_prog_compiler_static=
9147    fi
9148  
9149   case $host_os in
9150 <  # For platforms which do not support PIC, -DPIC is meaningless:
9150 >  # For platforms that do not support PIC, -DPIC is meaningless:
9151    *djgpp*)
9152      lt_prog_compiler_pic=
9153      ;;
# Line 8959 | Line 9179 | else
9179    lt_cv_prog_compiler_pic_works=no
9180     ac_outfile=conftest.$ac_objext
9181     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9182 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9182 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9183     # Insert the option either (1) after the last *FLAGS variable, or
9184     # (2) before a word containing "conftest.", or (3) at the end.
9185     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8989 | Line 9209 | fi
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9210   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9211  
9212 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9212 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9213      case $lt_prog_compiler_pic in
9214       "" | " "*) ;;
9215       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 9021 | Line 9241 | if ${lt_cv_prog_compiler_static_works+:}
9241    $as_echo_n "(cached) " >&6
9242   else
9243    lt_cv_prog_compiler_static_works=no
9244 <   save_LDFLAGS="$LDFLAGS"
9244 >   save_LDFLAGS=$LDFLAGS
9245     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9246     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9247     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9040 | Line 9260 | else
9260       fi
9261     fi
9262     $RM -r conftest*
9263 <   LDFLAGS="$save_LDFLAGS"
9263 >   LDFLAGS=$save_LDFLAGS
9264  
9265   fi
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9267   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9268  
9269 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9269 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9270      :
9271   else
9272      lt_prog_compiler_static=
# Line 9166 | Line 9386 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9386  
9387  
9388  
9389 < hard_links="nottested"
9390 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9389 > hard_links=nottested
9390 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9391    # do not overwrite the value of need_locks provided by the user
9392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9393   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 9179 | Line 9399 | $as_echo_n "checking if we can lock with
9399    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9401   $as_echo "$hard_links" >&6; }
9402 <  if test "$hard_links" = no; then
9403 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9404 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9402 >  if test no = "$hard_links"; then
9403 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9404 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9405      need_locks=warn
9406    fi
9407   else
# Line 9224 | Line 9444 | $as_echo_n "checking whether the $compil
9444    # included in the symbol list
9445    include_expsyms=
9446    # exclude_expsyms can be an extended regexp of symbols to exclude
9447 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9448 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9449 <  # as well as any symbol that contains `d'.
9447 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9448 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9449 >  # as well as any symbol that contains 'd'.
9450    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9451    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9452    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9241 | Line 9461 | $as_echo_n "checking whether the $compil
9461      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9462      # When not using gcc, we currently assume that we are using
9463      # Microsoft Visual C++.
9464 <    if test "$GCC" != yes; then
9464 >    if test yes != "$GCC"; then
9465        with_gnu_ld=no
9466      fi
9467      ;;
# Line 9249 | Line 9469 | $as_echo_n "checking whether the $compil
9469      # we just hope/assume this is gcc and not c89 (= MSVC++)
9470      with_gnu_ld=yes
9471      ;;
9472 <  openbsd*)
9472 >  openbsd* | bitrig*)
9473      with_gnu_ld=no
9474      ;;
9475    esac
# Line 9259 | Line 9479 | $as_echo_n "checking whether the $compil
9479    # On some targets, GNU ld is compatible enough with the native linker
9480    # that we're better off using the native interface for both.
9481    lt_use_gnu_ld_interface=no
9482 <  if test "$with_gnu_ld" = yes; then
9482 >  if test yes = "$with_gnu_ld"; then
9483      case $host_os in
9484        aix*)
9485          # The AIX port of GNU ld has always aspired to compatibility
# Line 9281 | Line 9501 | $as_echo_n "checking whether the $compil
9501      esac
9502    fi
9503  
9504 <  if test "$lt_use_gnu_ld_interface" = yes; then
9504 >  if test yes = "$lt_use_gnu_ld_interface"; then
9505      # If archive_cmds runs LD, not CC, wlarc should be empty
9506 <    wlarc='${wl}'
9506 >    wlarc='$wl'
9507  
9508      # Set some defaults for GNU ld with shared library support. These
9509      # are reset later if shared libraries are not supported. Putting them
9510      # here allows them to be overridden if necessary.
9511      runpath_var=LD_RUN_PATH
9512 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9512 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9513 >    export_dynamic_flag_spec='$wl--export-dynamic'
9514      # ancient GNU ld didn't support --whole-archive et. al.
9515      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9516 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9516 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9517      else
9518        whole_archive_flag_spec=
9519      fi
9520      supports_anon_versioning=no
9521 <    case `$LD -v 2>&1` in
9521 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9522        *GNU\ gold*) supports_anon_versioning=yes ;;
9523        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9524        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9311 | Line 9531 | $as_echo_n "checking whether the $compil
9531      case $host_os in
9532      aix[3-9]*)
9533        # On AIX/PPC, the GNU linker is very broken
9534 <      if test "$host_cpu" != ia64; then
9534 >      if test ia64 != "$host_cpu"; then
9535          ld_shlibs=no
9536          cat <<_LT_EOF 1>&2
9537  
# Line 9330 | Line 9550 | _LT_EOF
9550        case $host_cpu in
9551        powerpc)
9552              # see comment about AmigaOS4 .so support
9553 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9554              archive_expsym_cmds=''
9555          ;;
9556        m68k)
# Line 9346 | Line 9566 | _LT_EOF
9566          allow_undefined_flag=unsupported
9567          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9568          # support --undefined.  This deserves some investigation.  FIXME
9569 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9570        else
9571          ld_shlibs=no
9572        fi
# Line 9356 | Line 9576 | _LT_EOF
9576        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9577        # as there is no search path for DLLs.
9578        hardcode_libdir_flag_spec='-L$libdir'
9579 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9579 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9580        allow_undefined_flag=unsupported
9581        always_export_symbols=no
9582        enable_shared_with_static_runtimes=yes
# Line 9364 | Line 9584 | _LT_EOF
9584        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9585  
9586        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9587 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9588 <        # If the export-symbols file already is a .def file (1st line
9589 <        # is EXPORTS), use it as is; otherwise, prepend...
9590 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9591 <          cp $export_symbols $output_objdir/$soname.def;
9592 <        else
9593 <          echo EXPORTS > $output_objdir/$soname.def;
9594 <          cat $export_symbols >> $output_objdir/$soname.def;
9595 <        fi~
9596 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9587 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9588 >        # If the export-symbols file already is a .def file, use it as
9589 >        # is; otherwise, prepend EXPORTS...
9590 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9591 >          cp $export_symbols $output_objdir/$soname.def;
9592 >        else
9593 >          echo EXPORTS > $output_objdir/$soname.def;
9594 >          cat $export_symbols >> $output_objdir/$soname.def;
9595 >        fi~
9596 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9597        else
9598          ld_shlibs=no
9599        fi
9600        ;;
9601  
9602      haiku*)
9603 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9604        link_all_deplibs=yes
9605        ;;
9606  
9607 +    os2*)
9608 +      hardcode_libdir_flag_spec='-L$libdir'
9609 +      hardcode_minus_L=yes
9610 +      allow_undefined_flag=unsupported
9611 +      shrext_cmds=.dll
9612 +      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9613 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9614 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9615 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9616 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9617 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9618 +        emximp -o $lib $output_objdir/$libname.def'
9619 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9620 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9621 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9622 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9623 +        prefix_cmds="$SED"~
9624 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9625 +          prefix_cmds="$prefix_cmds -e 1d";
9626 +        fi~
9627 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9628 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9629 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9630 +        emximp -o $lib $output_objdir/$libname.def'
9631 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9632 +      enable_shared_with_static_runtimes=yes
9633 +      ;;
9634 +
9635      interix[3-9]*)
9636        hardcode_direct=no
9637        hardcode_shlibpath_var=no
9638 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9639 <      export_dynamic_flag_spec='${wl}-E'
9638 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9639 >      export_dynamic_flag_spec='$wl-E'
9640        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9641        # Instead, shared libraries are loaded at an image base (0x10000000 by
9642        # default) and relocated if they conflict, which is a slow very memory
9643        # consuming and fragmenting process.  To avoid this, we pick a random,
9644        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9645        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9646 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9647 <      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'
9646 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9647 >      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'
9648        ;;
9649  
9650      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9651        tmp_diet=no
9652 <      if test "$host_os" = linux-dietlibc; then
9652 >      if test linux-dietlibc = "$host_os"; then
9653          case $cc_basename in
9654            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9655          esac
9656        fi
9657        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9658 <         && test "$tmp_diet" = no
9658 >         && test no = "$tmp_diet"
9659        then
9660          tmp_addflag=' $pic_flag'
9661          tmp_sharedflag='-shared'
9662          case $cc_basename,$host_cpu in
9663          pgcc*)                          # Portland Group C compiler
9664 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9664 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9665            tmp_addflag=' $pic_flag'
9666            ;;
9667          pgf77* | pgf90* | pgf95* | pgfortran*)
9668                                          # Portland Group f77 and f90 compilers
9669 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9669 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9670            tmp_addflag=' $pic_flag -Mnomain' ;;
9671          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9672            tmp_addflag=' -i_dynamic' ;;
# Line 9429 | Line 9677 | _LT_EOF
9677          lf95*)                          # Lahey Fortran 8.1
9678            whole_archive_flag_spec=
9679            tmp_sharedflag='--shared' ;;
9680 +        nagfor*)                        # NAGFOR 5.3
9681 +          tmp_sharedflag='-Wl,-shared' ;;
9682          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9683            tmp_sharedflag='-qmkshrobj'
9684            tmp_addflag= ;;
9685          nvcc*)  # Cuda Compiler Driver 2.2
9686 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9686 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9687            compiler_needs_object=yes
9688            ;;
9689          esac
9690          case `$CC -V 2>&1 | sed 5q` in
9691          *Sun\ C*)                       # Sun C 5.9
9692 <          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9692 >          whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9693            compiler_needs_object=yes
9694            tmp_sharedflag='-G' ;;
9695          *Sun\ F*)                       # Sun Fortran 8.3
9696            tmp_sharedflag='-G' ;;
9697          esac
9698 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9698 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9699  
9700 <        if test "x$supports_anon_versioning" = xyes; then
9700 >        if test yes = "$supports_anon_versioning"; then
9701            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9702 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9703 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9704 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9702 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9703 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9704 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9705          fi
9706  
9707          case $cc_basename in
9708 +        tcc*)
9709 +          export_dynamic_flag_spec='-rdynamic'
9710 +          ;;
9711          xlf* | bgf* | bgxlf* | mpixlf*)
9712            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9713            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9714 <          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9715            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9716 <          if test "x$supports_anon_versioning" = xyes; then
9716 >          if test yes = "$supports_anon_versioning"; then
9717              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9718 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9719 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9720 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9718 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9719 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9720 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9721            fi
9722            ;;
9723          esac
# Line 9478 | Line 9731 | _LT_EOF
9731          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9732          wlarc=
9733        else
9734 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9734 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9736        fi
9737        ;;
9738  
# Line 9497 | Line 9750 | _LT_EOF
9750  
9751   _LT_EOF
9752        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9753 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9754 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9753 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9754 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9755        else
9756          ld_shlibs=no
9757        fi
# Line 9510 | Line 9763 | _LT_EOF
9763          ld_shlibs=no
9764          cat <<_LT_EOF 1>&2
9765  
9766 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9766 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9767   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9768   *** is disabling shared libraries support.  We urge you to upgrade GNU
9769   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9525 | Line 9778 | _LT_EOF
9778            # DT_RUNPATH tag from executables and libraries.  But doing so
9779            # requires that you compile everything twice, which is a pain.
9780            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9781 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9781 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9782 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9783 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9784            else
9785              ld_shlibs=no
9786            fi
# Line 9544 | Line 9797 | _LT_EOF
9797  
9798      *)
9799        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9800 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9801 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9802        else
9803          ld_shlibs=no
9804        fi
9805        ;;
9806      esac
9807  
9808 <    if test "$ld_shlibs" = no; then
9808 >    if test no = "$ld_shlibs"; then
9809        runpath_var=
9810        hardcode_libdir_flag_spec=
9811        export_dynamic_flag_spec=
# Line 9568 | Line 9821 | _LT_EOF
9821        # Note: this linker hardcodes the directories in LIBPATH if there
9822        # are no directories specified by -L.
9823        hardcode_minus_L=yes
9824 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9824 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9825          # Neither direct hardcoding nor static linking is supported with a
9826          # broken collect2.
9827          hardcode_direct=unsupported
# Line 9576 | Line 9829 | _LT_EOF
9829        ;;
9830  
9831      aix[4-9]*)
9832 <      if test "$host_cpu" = ia64; then
9832 >      if test ia64 = "$host_cpu"; then
9833          # On IA64, the linker does run time linking by default, so we don't
9834          # have to do anything special.
9835          aix_use_runtimelinking=no
9836          exp_sym_flag='-Bexport'
9837 <        no_entry_flag=""
9837 >        no_entry_flag=
9838        else
9839          # If we're using GNU nm, then we don't want the "-C" option.
9840 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9841 <        # Also, AIX nm treats weak defined symbols like other global
9842 <        # defined symbols, whereas GNU nm marks them as "W".
9840 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9841 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9842 >        # weak defined symbols like other global defined symbols, whereas
9843 >        # GNU nm marks them as "W".
9844 >        # While the 'weak' keyword is ignored in the Export File, we need
9845 >        # it in the Import File for the 'aix-soname' feature, so we have
9846 >        # to replace the "-B" option with "-P" for AIX nm.
9847          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9848 <          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9848 >          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9849          else
9850 <          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9850 >          export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9851          fi
9852          aix_use_runtimelinking=no
9853  
9854          # Test if we are trying to use run time linking or normal
9855          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9856 <        # need to do runtime linking.
9856 >        # have runtime linking enabled, and use it for executables.
9857 >        # For shared libraries, we enable/disable runtime linking
9858 >        # depending on the kind of the shared library created -
9859 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9860 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9861 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9862 >        #            lib.a           static archive
9863 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9864 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9865 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9866 >        #            lib.a(lib.so.V) shared, rtl:no
9867 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9868 >        #            lib.a           static archive
9869          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9870            for ld_flag in $LDFLAGS; do
9871 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9871 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9872              aix_use_runtimelinking=yes
9873              break
9874            fi
9875            done
9876 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9877 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9878 +            # so we don't have lib.a shared libs to link our executables.
9879 +            # We have to force runtime linking in this case.
9880 +            aix_use_runtimelinking=yes
9881 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9882 +          fi
9883            ;;
9884          esac
9885  
# Line 9622 | Line 9898 | _LT_EOF
9898        hardcode_direct_absolute=yes
9899        hardcode_libdir_separator=':'
9900        link_all_deplibs=yes
9901 <      file_list_spec='${wl}-f,'
9901 >      file_list_spec='$wl-f,'
9902 >      case $with_aix_soname,$aix_use_runtimelinking in
9903 >      aix,*) ;; # traditional, no import file
9904 >      svr4,* | *,yes) # use import file
9905 >        # The Import File defines what to hardcode.
9906 >        hardcode_direct=no
9907 >        hardcode_direct_absolute=no
9908 >        ;;
9909 >      esac
9910  
9911 <      if test "$GCC" = yes; then
9911 >      if test yes = "$GCC"; then
9912          case $host_os in aix4.[012]|aix4.[012].*)
9913          # We only want to do this on AIX 4.2 and lower, the check
9914          # below for broken collect2 doesn't work under 4.3+
9915 <          collect2name=`${CC} -print-prog-name=collect2`
9915 >          collect2name=`$CC -print-prog-name=collect2`
9916            if test -f "$collect2name" &&
9917             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9918            then
# Line 9647 | Line 9931 | _LT_EOF
9931            ;;
9932          esac
9933          shared_flag='-shared'
9934 <        if test "$aix_use_runtimelinking" = yes; then
9935 <          shared_flag="$shared_flag "'${wl}-G'
9934 >        if test yes = "$aix_use_runtimelinking"; then
9935 >          shared_flag="$shared_flag "'$wl-G'
9936          fi
9937 +        # Need to ensure runtime linking is disabled for the traditional
9938 +        # shared library, or the linker may eventually find shared libraries
9939 +        # /with/ Import File - we do not want to mix them.
9940 +        shared_flag_aix='-shared'
9941 +        shared_flag_svr4='-shared $wl-G'
9942        else
9943          # not using gcc
9944 <        if test "$host_cpu" = ia64; then
9944 >        if test ia64 = "$host_cpu"; then
9945          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9946          # chokes on -Wl,-G. The following line is correct:
9947            shared_flag='-G'
9948          else
9949 <          if test "$aix_use_runtimelinking" = yes; then
9950 <            shared_flag='${wl}-G'
9949 >          if test yes = "$aix_use_runtimelinking"; then
9950 >            shared_flag='$wl-G'
9951            else
9952 <            shared_flag='${wl}-bM:SRE'
9952 >            shared_flag='$wl-bM:SRE'
9953            fi
9954 +          shared_flag_aix='$wl-bM:SRE'
9955 +          shared_flag_svr4='$wl-G'
9956          fi
9957        fi
9958  
9959 <      export_dynamic_flag_spec='${wl}-bexpall'
9959 >      export_dynamic_flag_spec='$wl-bexpall'
9960        # It seems that -bexpall does not export symbols beginning with
9961        # underscore (_), so it is better to generate a list of symbols to export.
9962        always_export_symbols=yes
9963 <      if test "$aix_use_runtimelinking" = yes; then
9963 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9964          # Warning - without using the other runtime loading flags (-brtl),
9965          # -berok will link without error, but may produce a broken library.
9966          allow_undefined_flag='-berok'
9967          # Determine the default libpath from the value encoded in an
9968          # empty executable.
9969 <        if test "${lt_cv_aix_libpath+set}" = set; then
9969 >        if test set = "${lt_cv_aix_libpath+set}"; then
9970    aix_libpath=$lt_cv_aix_libpath
9971   else
9972    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9710 | Line 10001 | fi
10001   rm -f core conftest.err conftest.$ac_objext \
10002      conftest$ac_exeext conftest.$ac_ext
10003    if test -z "$lt_cv_aix_libpath_"; then
10004 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10004 >    lt_cv_aix_libpath_=/usr/lib:/lib
10005    fi
10006  
10007   fi
# Line 9718 | Line 10009 | fi
10009    aix_libpath=$lt_cv_aix_libpath_
10010   fi
10011  
10012 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10013 <        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10012 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10013 >        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10014        else
10015 <        if test "$host_cpu" = ia64; then
10016 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10015 >        if test ia64 = "$host_cpu"; then
10016 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10017            allow_undefined_flag="-z nodefs"
10018 <          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10018 >          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10019          else
10020           # Determine the default libpath from the value encoded in an
10021           # empty executable.
10022 <         if test "${lt_cv_aix_libpath+set}" = set; then
10022 >         if test set = "${lt_cv_aix_libpath+set}"; then
10023    aix_libpath=$lt_cv_aix_libpath
10024   else
10025    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9763 | Line 10054 | fi
10054   rm -f core conftest.err conftest.$ac_objext \
10055      conftest$ac_exeext conftest.$ac_ext
10056    if test -z "$lt_cv_aix_libpath_"; then
10057 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10057 >    lt_cv_aix_libpath_=/usr/lib:/lib
10058    fi
10059  
10060   fi
# Line 9771 | Line 10062 | fi
10062    aix_libpath=$lt_cv_aix_libpath_
10063   fi
10064  
10065 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10065 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10066            # Warning - without using the other run time loading flags,
10067            # -berok will link without error, but may produce a broken library.
10068 <          no_undefined_flag=' ${wl}-bernotok'
10069 <          allow_undefined_flag=' ${wl}-berok'
10070 <          if test "$with_gnu_ld" = yes; then
10068 >          no_undefined_flag=' $wl-bernotok'
10069 >          allow_undefined_flag=' $wl-berok'
10070 >          if test yes = "$with_gnu_ld"; then
10071              # We only use this code for GNU lds that support --whole-archive.
10072 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10072 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10073            else
10074              # Exported symbols can be pulled into shared objects from archives
10075              whole_archive_flag_spec='$convenience'
10076            fi
10077            archive_cmds_need_lc=yes
10078 <          # This is similar to how AIX traditionally builds its shared libraries.
10079 <          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10078 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10079 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10080 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10081 >          if test svr4 != "$with_aix_soname"; then
10082 >            # This is similar to how AIX traditionally builds its shared libraries.
10083 >            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10084 >          fi
10085 >          if test aix != "$with_aix_soname"; then
10086 >            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10087 >          else
10088 >            # used by -dlpreopen to get the symbols
10089 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10090 >          fi
10091 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10092          fi
10093        fi
10094        ;;
# Line 9794 | Line 10097 | fi
10097        case $host_cpu in
10098        powerpc)
10099              # see comment about AmigaOS4 .so support
10100 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10101              archive_expsym_cmds=''
10102          ;;
10103        m68k)
# Line 9824 | Line 10127 | fi
10127          # Tell ltmain to make .lib files, not .a files.
10128          libext=lib
10129          # Tell ltmain to make .dll files, not .so files.
10130 <        shrext_cmds=".dll"
10130 >        shrext_cmds=.dll
10131          # FIXME: Setting linknames here is a bad hack.
10132 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10133 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10134 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10135 <          else
10136 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10137 <          fi~
10138 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10139 <          linknames='
10132 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10133 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10134 >            cp "$export_symbols" "$output_objdir/$soname.def";
10135 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10136 >          else
10137 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10138 >          fi~
10139 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10140 >          linknames='
10141          # The linker will not automatically build a static lib if we build a DLL.
10142          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10143          enable_shared_with_static_runtimes=yes
# Line 9842 | Line 10146 | fi
10146          # Don't use ranlib
10147          old_postinstall_cmds='chmod 644 $oldlib'
10148          postlink_cmds='lt_outputfile="@OUTPUT@"~
10149 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
10150 <          case $lt_outputfile in
10151 <            *.exe|*.EXE) ;;
10152 <            *)
10153 <              lt_outputfile="$lt_outputfile.exe"
10154 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
10155 <              ;;
10156 <          esac~
10157 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10158 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10159 <            $RM "$lt_outputfile.manifest";
10160 <          fi'
10149 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10150 >          case $lt_outputfile in
10151 >            *.exe|*.EXE) ;;
10152 >            *)
10153 >              lt_outputfile=$lt_outputfile.exe
10154 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10155 >              ;;
10156 >          esac~
10157 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10158 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10159 >            $RM "$lt_outputfile.manifest";
10160 >          fi'
10161          ;;
10162        *)
10163          # Assume MSVC wrapper
# Line 9862 | Line 10166 | fi
10166          # Tell ltmain to make .lib files, not .a files.
10167          libext=lib
10168          # Tell ltmain to make .dll files, not .so files.
10169 <        shrext_cmds=".dll"
10169 >        shrext_cmds=.dll
10170          # FIXME: Setting linknames here is a bad hack.
10171          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10172          # The linker will automatically build a .lib file if we build a DLL.
# Line 9881 | Line 10185 | fi
10185    hardcode_direct=no
10186    hardcode_automatic=yes
10187    hardcode_shlibpath_var=unsupported
10188 <  if test "$lt_cv_ld_force_load" = "yes"; then
10189 <    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10188 >  if test yes = "$lt_cv_ld_force_load"; then
10189 >    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10190  
10191    else
10192      whole_archive_flag_spec=''
10193    fi
10194    link_all_deplibs=yes
10195 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10195 >  allow_undefined_flag=$_lt_dar_allow_undefined
10196    case $cc_basename in
10197 <     ifort*) _lt_dar_can_shared=yes ;;
10197 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10198       *) _lt_dar_can_shared=$GCC ;;
10199    esac
10200 <  if test "$_lt_dar_can_shared" = "yes"; then
10200 >  if test yes = "$_lt_dar_can_shared"; then
10201      output_verbose_link_cmd=func_echo_all
10202 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10203 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10204 <    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10205 <    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10202 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10203 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10204 >    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10205 >    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10206  
10207    else
10208    ld_shlibs=no
# Line 9940 | Line 10244 | fi
10244        ;;
10245  
10246      hpux9*)
10247 <      if test "$GCC" = yes; then
10248 <        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10247 >      if test yes = "$GCC"; then
10248 >        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10249        else
10250 <        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10250 >        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10251        fi
10252 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10253        hardcode_libdir_separator=:
10254        hardcode_direct=yes
10255  
10256        # hardcode_minus_L: Not really in the search PATH,
10257        # but as the default location of the library.
10258        hardcode_minus_L=yes
10259 <      export_dynamic_flag_spec='${wl}-E'
10259 >      export_dynamic_flag_spec='$wl-E'
10260        ;;
10261  
10262      hpux10*)
10263 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10264 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10263 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10264 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10265        else
10266          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10267        fi
10268 <      if test "$with_gnu_ld" = no; then
10269 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10268 >      if test no = "$with_gnu_ld"; then
10269 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10270          hardcode_libdir_separator=:
10271          hardcode_direct=yes
10272          hardcode_direct_absolute=yes
10273 <        export_dynamic_flag_spec='${wl}-E'
10273 >        export_dynamic_flag_spec='$wl-E'
10274          # hardcode_minus_L: Not really in the search PATH,
10275          # but as the default location of the library.
10276          hardcode_minus_L=yes
# Line 9974 | Line 10278 | fi
10278        ;;
10279  
10280      hpux11*)
10281 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10281 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10282          case $host_cpu in
10283          hppa*64*)
10284 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10285            ;;
10286          ia64*)
10287 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10287 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10288            ;;
10289          *)
10290 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10290 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10291            ;;
10292          esac
10293        else
10294          case $host_cpu in
10295          hppa*64*)
10296 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10297            ;;
10298          ia64*)
10299 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10299 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10300            ;;
10301          *)
10302  
# Line 10004 | Line 10308 | if ${lt_cv_prog_compiler__b+:} false; th
10308    $as_echo_n "(cached) " >&6
10309   else
10310    lt_cv_prog_compiler__b=no
10311 <   save_LDFLAGS="$LDFLAGS"
10311 >   save_LDFLAGS=$LDFLAGS
10312     LDFLAGS="$LDFLAGS -b"
10313     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10314     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 10023 | Line 10327 | else
10327       fi
10328     fi
10329     $RM -r conftest*
10330 <   LDFLAGS="$save_LDFLAGS"
10330 >   LDFLAGS=$save_LDFLAGS
10331  
10332   fi
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10334   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10335  
10336 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10337 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10336 > if test yes = "$lt_cv_prog_compiler__b"; then
10337 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10338   else
10339      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10340   fi
# Line 10038 | Line 10342 | fi
10342            ;;
10343          esac
10344        fi
10345 <      if test "$with_gnu_ld" = no; then
10346 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10345 >      if test no = "$with_gnu_ld"; then
10346 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10347          hardcode_libdir_separator=:
10348  
10349          case $host_cpu in
# Line 10050 | Line 10354 | fi
10354          *)
10355            hardcode_direct=yes
10356            hardcode_direct_absolute=yes
10357 <          export_dynamic_flag_spec='${wl}-E'
10357 >          export_dynamic_flag_spec='$wl-E'
10358  
10359            # hardcode_minus_L: Not really in the search PATH,
10360            # but as the default location of the library.
# Line 10061 | Line 10365 | fi
10365        ;;
10366  
10367      irix5* | irix6* | nonstopux*)
10368 <      if test "$GCC" = yes; then
10369 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10368 >      if test yes = "$GCC"; then
10369 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10370          # Try to use the -exported_symbol ld option, if it does not
10371          # work, assume that -exports_file does not work either and
10372          # implicitly export all symbols.
# Line 10072 | Line 10376 | $as_echo_n "checking whether the $host_o
10376   if ${lt_cv_irix_exported_symbol+:} false; then :
10377    $as_echo_n "(cached) " >&6
10378   else
10379 <  save_LDFLAGS="$LDFLAGS"
10380 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10379 >  save_LDFLAGS=$LDFLAGS
10380 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10381             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382   /* end confdefs.h.  */
10383   int foo (void) { return 0; }
# Line 10085 | Line 10389 | else
10389   fi
10390   rm -f core conftest.err conftest.$ac_objext \
10391      conftest$ac_exeext conftest.$ac_ext
10392 <           LDFLAGS="$save_LDFLAGS"
10392 >           LDFLAGS=$save_LDFLAGS
10393   fi
10394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10395   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10396 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10397 <          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10396 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10397 >          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10398          fi
10399        else
10400 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10401 <        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10400 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10401 >        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10402        fi
10403        archive_cmds_need_lc='no'
10404 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10405        hardcode_libdir_separator=:
10406        inherit_rpath=yes
10407        link_all_deplibs=yes
10408        ;;
10409  
10410 +    linux*)
10411 +      case $cc_basename in
10412 +      tcc*)
10413 +        # Fabrice Bellard et al's Tiny C Compiler
10414 +        ld_shlibs=yes
10415 +        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416 +        ;;
10417 +      esac
10418 +      ;;
10419 +
10420      netbsd*)
10421        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10422          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
# Line 10117 | Line 10431 | $as_echo "$lt_cv_irix_exported_symbol" >
10431      newsos6)
10432        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433        hardcode_direct=yes
10434 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10434 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10435        hardcode_libdir_separator=:
10436        hardcode_shlibpath_var=no
10437        ;;
# Line 10125 | Line 10439 | $as_echo "$lt_cv_irix_exported_symbol" >
10439      *nto* | *qnx*)
10440        ;;
10441  
10442 <    openbsd*)
10442 >    openbsd* | bitrig*)
10443        if test -f /usr/libexec/ld.so; then
10444          hardcode_direct=yes
10445          hardcode_shlibpath_var=no
10446          hardcode_direct_absolute=yes
10447 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10447 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10448            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10449 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10450 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10451 <          export_dynamic_flag_spec='${wl}-E'
10449 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10450 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10451 >          export_dynamic_flag_spec='$wl-E'
10452          else
10453 <          case $host_os in
10454 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10141 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10142 <             hardcode_libdir_flag_spec='-R$libdir'
10143 <             ;;
10144 <           *)
10145 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147 <             ;;
10148 <          esac
10453 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10455          fi
10456        else
10457          ld_shlibs=no
# Line 10156 | Line 10462 | $as_echo "$lt_cv_irix_exported_symbol" >
10462        hardcode_libdir_flag_spec='-L$libdir'
10463        hardcode_minus_L=yes
10464        allow_undefined_flag=unsupported
10465 <      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10466 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10465 >      shrext_cmds=.dll
10466 >      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10467 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10468 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10469 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10470 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10471 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10472 >        emximp -o $lib $output_objdir/$libname.def'
10473 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10474 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10475 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10476 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10477 >        prefix_cmds="$SED"~
10478 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10479 >          prefix_cmds="$prefix_cmds -e 1d";
10480 >        fi~
10481 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10482 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10483 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10484 >        emximp -o $lib $output_objdir/$libname.def'
10485 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10486 >      enable_shared_with_static_runtimes=yes
10487        ;;
10488  
10489      osf3*)
10490 <      if test "$GCC" = yes; then
10491 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10492 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10490 >      if test yes = "$GCC"; then
10491 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10492 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10493        else
10494          allow_undefined_flag=' -expect_unresolved \*'
10495 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10495 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10496        fi
10497        archive_cmds_need_lc='no'
10498 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10498 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10499        hardcode_libdir_separator=:
10500        ;;
10501  
10502      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10503 <      if test "$GCC" = yes; then
10504 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10505 <        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10506 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10503 >      if test yes = "$GCC"; then
10504 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10505 >        archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10506 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10507        else
10508          allow_undefined_flag=' -expect_unresolved \*'
10509 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10509 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10510          archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10511 <        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10511 >          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10512  
10513          # Both c and cxx compiler support -rpath directly
10514          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 10193 | Line 10519 | $as_echo "$lt_cv_irix_exported_symbol" >
10519  
10520      solaris*)
10521        no_undefined_flag=' -z defs'
10522 <      if test "$GCC" = yes; then
10523 <        wlarc='${wl}'
10524 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10522 >      if test yes = "$GCC"; then
10523 >        wlarc='$wl'
10524 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10525          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10526 <          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10526 >          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10527        else
10528          case `$CC -V 2>&1` in
10529          *"Compilers 5.0"*)
10530            wlarc=''
10531 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10531 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10532            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10533 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10533 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10534            ;;
10535          *)
10536 <          wlarc='${wl}'
10537 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10536 >          wlarc='$wl'
10537 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10538            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10539 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10539 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10540            ;;
10541          esac
10542        fi
# Line 10220 | Line 10546 | $as_echo "$lt_cv_irix_exported_symbol" >
10546        solaris2.[0-5] | solaris2.[0-5].*) ;;
10547        *)
10548          # The compiler driver will combine and reorder linker options,
10549 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10549 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10550          # but is careful enough not to reorder.
10551          # Supported since Solaris 2.6 (maybe 2.5.1?)
10552 <        if test "$GCC" = yes; then
10553 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10552 >        if test yes = "$GCC"; then
10553 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10554          else
10555            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10556          fi
# Line 10234 | Line 10560 | $as_echo "$lt_cv_irix_exported_symbol" >
10560        ;;
10561  
10562      sunos4*)
10563 <      if test "x$host_vendor" = xsequent; then
10563 >      if test sequent = "$host_vendor"; then
10564          # Use $CC to link under sequent, because it throws in some extra .o
10565          # files that make .init and .fini sections work.
10566 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10566 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10567        else
10568          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10569        fi
# Line 10286 | Line 10612 | $as_echo "$lt_cv_irix_exported_symbol" >
10612        ;;
10613  
10614      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10615 <      no_undefined_flag='${wl}-z,text'
10615 >      no_undefined_flag='$wl-z,text'
10616        archive_cmds_need_lc=no
10617        hardcode_shlibpath_var=no
10618        runpath_var='LD_RUN_PATH'
10619  
10620 <      if test "$GCC" = yes; then
10621 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 >      if test yes = "$GCC"; then
10621 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623        else
10624 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626        fi
10627        ;;
10628  
10629      sysv5* | sco3.2v5* | sco5v6*)
10630 <      # Note: We can NOT use -z defs as we might desire, because we do not
10630 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10631        # link with -lc, and that would cause any symbols used from libc to
10632        # always be unresolved, which means just about no library would
10633        # ever link correctly.  If we're not using GNU ld we use -z text
10634        # though, which does catch some bad symbols but isn't as heavy-handed
10635        # as -z defs.
10636 <      no_undefined_flag='${wl}-z,text'
10637 <      allow_undefined_flag='${wl}-z,nodefs'
10636 >      no_undefined_flag='$wl-z,text'
10637 >      allow_undefined_flag='$wl-z,nodefs'
10638        archive_cmds_need_lc=no
10639        hardcode_shlibpath_var=no
10640 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10640 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10641        hardcode_libdir_separator=':'
10642        link_all_deplibs=yes
10643 <      export_dynamic_flag_spec='${wl}-Bexport'
10643 >      export_dynamic_flag_spec='$wl-Bexport'
10644        runpath_var='LD_RUN_PATH'
10645  
10646 <      if test "$GCC" = yes; then
10647 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 >      if test yes = "$GCC"; then
10647 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649        else
10650 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652        fi
10653        ;;
10654  
# Line 10337 | Line 10663 | $as_echo "$lt_cv_irix_exported_symbol" >
10663        ;;
10664      esac
10665  
10666 <    if test x$host_vendor = xsni; then
10666 >    if test sni = "$host_vendor"; then
10667        case $host in
10668        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10669 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10669 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10670          ;;
10671        esac
10672      fi
# Line 10348 | Line 10674 | $as_echo "$lt_cv_irix_exported_symbol" >
10674  
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10676   $as_echo "$ld_shlibs" >&6; }
10677 < test "$ld_shlibs" = no && can_build_shared=no
10677 > test no = "$ld_shlibs" && can_build_shared=no
10678  
10679   with_gnu_ld=$with_gnu_ld
10680  
# Line 10374 | Line 10700 | x|xyes)
10700    # Assume -lc should be added
10701    archive_cmds_need_lc=yes
10702  
10703 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10703 >  if test yes,yes = "$GCC,$enable_shared"; then
10704      case $archive_cmds in
10705      *'~'*)
10706        # FIXME: we may have to deal with multi-command sequences.
# Line 10589 | Line 10915 | esac
10915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10916   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10917  
10918 < if test "$GCC" = yes; then
10918 > if test yes = "$GCC"; then
10919    case $host_os in
10920 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10921 <    *) lt_awk_arg="/^libraries:/" ;;
10920 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10921 >    *) lt_awk_arg='/^libraries:/' ;;
10922    esac
10923    case $host_os in
10924 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10925 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10924 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10925 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10926    esac
10927    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10928    case $lt_search_path_spec in
# Line 10612 | Line 10938 | if test "$GCC" = yes; then
10938      ;;
10939    esac
10940    # Ok, now we have the path, separated by spaces, we can step through it
10941 <  # and add multilib dir if necessary.
10941 >  # and add multilib dir if necessary...
10942    lt_tmp_lt_search_path_spec=
10943 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10943 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10944 >  # ...but if some path component already ends with the multilib dir we assume
10945 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10946 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10947 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10948 >    lt_multi_os_dir=
10949 >    ;;
10950 >  esac
10951    for lt_sys_path in $lt_search_path_spec; do
10952 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10953 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10954 <    else
10952 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10953 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10954 >    elif test -n "$lt_multi_os_dir"; then
10955        test -d "$lt_sys_path" && \
10956          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10957      fi
10958    done
10959    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10960 < BEGIN {RS=" "; FS="/|\n";} {
10961 <  lt_foo="";
10962 <  lt_count=0;
10960 > BEGIN {RS = " "; FS = "/|\n";} {
10961 >  lt_foo = "";
10962 >  lt_count = 0;
10963    for (lt_i = NF; lt_i > 0; lt_i--) {
10964      if ($lt_i != "" && $lt_i != ".") {
10965        if ($lt_i == "..") {
10966          lt_count++;
10967        } else {
10968          if (lt_count == 0) {
10969 <          lt_foo="/" $lt_i lt_foo;
10969 >          lt_foo = "/" $lt_i lt_foo;
10970          } else {
10971            lt_count--;
10972          }
# Line 10647 | Line 10980 | BEGIN {RS=" "; FS="/|\n";} {
10980    # for these hosts.
10981    case $host_os in
10982      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10983 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10983 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10984    esac
10985    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10986   else
# Line 10656 | Line 10989 | fi
10989   library_names_spec=
10990   libname_spec='lib$name'
10991   soname_spec=
10992 < shrext_cmds=".so"
10992 > shrext_cmds=.so
10993   postinstall_cmds=
10994   postuninstall_cmds=
10995   finish_cmds=
# Line 10673 | Line 11006 | hardcode_into_libs=no
11006   # flags to be left without arguments
11007   need_version=unknown
11008  
11009 +
11010 +
11011   case $host_os in
11012   aix3*)
11013    version_type=linux # correct to gnu/linux during the next big refactor
11014 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11014 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11015    shlibpath_var=LIBPATH
11016  
11017    # AIX 3 has no versioning support, so we append a major version to the name.
11018 <  soname_spec='${libname}${release}${shared_ext}$major'
11018 >  soname_spec='$libname$release$shared_ext$major'
11019    ;;
11020  
11021   aix[4-9]*)
# Line 10688 | Line 11023 | aix[4-9]*)
11023    need_lib_prefix=no
11024    need_version=no
11025    hardcode_into_libs=yes
11026 <  if test "$host_cpu" = ia64; then
11026 >  if test ia64 = "$host_cpu"; then
11027      # AIX 5 supports IA64
11028 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11028 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11029      shlibpath_var=LD_LIBRARY_PATH
11030    else
11031      # With GCC up to 2.95.x, collect2 would create an import file
11032      # for dependence libraries.  The import file would start with
11033 <    # the line `#! .'.  This would cause the generated library to
11034 <    # depend on `.', always an invalid library.  This was fixed in
11033 >    # the line '#! .'.  This would cause the generated library to
11034 >    # depend on '.', always an invalid library.  This was fixed in
11035      # development snapshots of GCC prior to 3.0.
11036      case $host_os in
11037        aix4 | aix4.[01] | aix4.[01].*)
11038        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11039             echo ' yes '
11040 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11040 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11041          :
11042        else
11043          can_build_shared=no
11044        fi
11045        ;;
11046      esac
11047 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11047 >    # Using Import Files as archive members, it is possible to support
11048 >    # filename-based versioning of shared library archives on AIX. While
11049 >    # this would work for both with and without runtime linking, it will
11050 >    # prevent static linking of such archives. So we do filename-based
11051 >    # shared library versioning with .so extension only, which is used
11052 >    # when both runtime linking and shared linking is enabled.
11053 >    # Unfortunately, runtime linking may impact performance, so we do
11054 >    # not want this to be the default eventually. Also, we use the
11055 >    # versioned .so libs for executables only if there is the -brtl
11056 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11057 >    # To allow for filename-based versioning support, we need to create
11058 >    # libNAME.so.V as an archive file, containing:
11059 >    # *) an Import File, referring to the versioned filename of the
11060 >    #    archive as well as the shared archive member, telling the
11061 >    #    bitwidth (32 or 64) of that shared object, and providing the
11062 >    #    list of exported symbols of that shared object, eventually
11063 >    #    decorated with the 'weak' keyword
11064 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11065 >    #    it being seen by the linker.
11066 >    # At run time we better use the real file rather than another symlink,
11067 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11068 >
11069 >    case $with_aix_soname,$aix_use_runtimelinking in
11070 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11071      # soname into executable. Probably we can add versioning support to
11072      # collect2, so additional links can be useful in future.
11073 <    if test "$aix_use_runtimelinking" = yes; then
11073 >    aix,yes) # traditional libtool
11074 >      dynamic_linker='AIX unversionable lib.so'
11075        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11076        # instead of lib<name>.a to let people know that these are not
11077        # typical AIX shared libraries.
11078 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 <    else
11078 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 >      ;;
11080 >    aix,no) # traditional AIX only
11081 >      dynamic_linker='AIX lib.a(lib.so.V)'
11082        # We preserve .a as extension for shared libraries through AIX4.2
11083        # and later when we are not doing run time linking.
11084 <      library_names_spec='${libname}${release}.a $libname.a'
11085 <      soname_spec='${libname}${release}${shared_ext}$major'
11086 <    fi
11084 >      library_names_spec='$libname$release.a $libname.a'
11085 >      soname_spec='$libname$release$shared_ext$major'
11086 >      ;;
11087 >    svr4,*) # full svr4 only
11088 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11089 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11090 >      # We do not specify a path in Import Files, so LIBPATH fires.
11091 >      shlibpath_overrides_runpath=yes
11092 >      ;;
11093 >    *,yes) # both, prefer svr4
11094 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11095 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11096 >      # unpreferred sharedlib libNAME.a needs extra handling
11097 >      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11098 >      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11099 >      # We do not specify a path in Import Files, so LIBPATH fires.
11100 >      shlibpath_overrides_runpath=yes
11101 >      ;;
11102 >    *,no) # both, prefer aix
11103 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11104 >      library_names_spec='$libname$release.a $libname.a'
11105 >      soname_spec='$libname$release$shared_ext$major'
11106 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11107 >      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11108 >      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11109 >      ;;
11110 >    esac
11111      shlibpath_var=LIBPATH
11112    fi
11113    ;;
# Line 10732 | Line 11117 | amigaos*)
11117    powerpc)
11118      # Since July 2007 AmigaOS4 officially supports .so libraries.
11119      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11120 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121      ;;
11122    m68k)
11123      library_names_spec='$libname.ixlibrary $libname.a'
11124      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11125 <    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11125 >    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11126      ;;
11127    esac
11128    ;;
11129  
11130   beos*)
11131 <  library_names_spec='${libname}${shared_ext}'
11131 >  library_names_spec='$libname$shared_ext'
11132    dynamic_linker="$host_os ld.so"
11133    shlibpath_var=LIBRARY_PATH
11134    ;;
# Line 10751 | Line 11136 | beos*)
11136   bsdi[45]*)
11137    version_type=linux # correct to gnu/linux during the next big refactor
11138    need_version=no
11139 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 <  soname_spec='${libname}${release}${shared_ext}$major'
11139 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11140 >  soname_spec='$libname$release$shared_ext$major'
11141    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11142    shlibpath_var=LD_LIBRARY_PATH
11143    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10764 | Line 11149 | bsdi[45]*)
11149  
11150   cygwin* | mingw* | pw32* | cegcc*)
11151    version_type=windows
11152 <  shrext_cmds=".dll"
11152 >  shrext_cmds=.dll
11153    need_version=no
11154    need_lib_prefix=no
11155  
# Line 10773 | Line 11158 | cygwin* | mingw* | pw32* | cegcc*)
11158      # gcc
11159      library_names_spec='$libname.dll.a'
11160      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11161 <    postinstall_cmds='base_file=`basename \${file}`~
11162 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11161 >    postinstall_cmds='base_file=`basename \$file`~
11162 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11163        dldir=$destdir/`dirname \$dlpath`~
11164        test -d \$dldir || mkdir -p \$dldir~
11165        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10790 | Line 11175 | cygwin* | mingw* | pw32* | cegcc*)
11175      case $host_os in
11176      cygwin*)
11177        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11178 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11178 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11179  
11180        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11181        ;;
11182      mingw* | cegcc*)
11183        # MinGW DLLs use traditional 'lib' prefix
11184 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11184 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11185        ;;
11186      pw32*)
11187        # pw32 DLLs use 'pw' prefix rather than 'lib'
11188 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11188 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11189        ;;
11190      esac
11191      dynamic_linker='Win32 ld.exe'
# Line 10809 | Line 11194 | cygwin* | mingw* | pw32* | cegcc*)
11194    *,cl*)
11195      # Native MSVC
11196      libname_spec='$name'
11197 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11198 <    library_names_spec='${libname}.dll.lib'
11197 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11198 >    library_names_spec='$libname.dll.lib'
11199  
11200      case $build_os in
11201      mingw*)
# Line 10837 | Line 11222 | cygwin* | mingw* | pw32* | cegcc*)
11222        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11223        ;;
11224      *)
11225 <      sys_lib_search_path_spec="$LIB"
11225 >      sys_lib_search_path_spec=$LIB
11226        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11227          # It is most probably a Windows format PATH.
11228          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10850 | Line 11235 | cygwin* | mingw* | pw32* | cegcc*)
11235      esac
11236  
11237      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11238 <    postinstall_cmds='base_file=`basename \${file}`~
11239 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11238 >    postinstall_cmds='base_file=`basename \$file`~
11239 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11240        dldir=$destdir/`dirname \$dlpath`~
11241        test -d \$dldir || mkdir -p \$dldir~
11242        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10864 | Line 11249 | cygwin* | mingw* | pw32* | cegcc*)
11249  
11250    *)
11251      # Assume MSVC wrapper
11252 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11252 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11253      dynamic_linker='Win32 ld.exe'
11254      ;;
11255    esac
# Line 10877 | Line 11262 | darwin* | rhapsody*)
11262    version_type=darwin
11263    need_lib_prefix=no
11264    need_version=no
11265 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11266 <  soname_spec='${libname}${release}${major}$shared_ext'
11265 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11266 >  soname_spec='$libname$release$major$shared_ext'
11267    shlibpath_overrides_runpath=yes
11268    shlibpath_var=DYLD_LIBRARY_PATH
11269    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10891 | Line 11276 | dgux*)
11276    version_type=linux # correct to gnu/linux during the next big refactor
11277    need_lib_prefix=no
11278    need_version=no
11279 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11280 <  soname_spec='${libname}${release}${shared_ext}$major'
11279 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11280 >  soname_spec='$libname$release$shared_ext$major'
11281    shlibpath_var=LD_LIBRARY_PATH
11282    ;;
11283  
# Line 10910 | Line 11295 | freebsd* | dragonfly*)
11295    version_type=freebsd-$objformat
11296    case $version_type in
11297      freebsd-elf*)
11298 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11299 >      soname_spec='$libname$release$shared_ext$major'
11300        need_version=no
11301        need_lib_prefix=no
11302        ;;
11303      freebsd-*)
11304 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11304 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11305        need_version=yes
11306        ;;
11307    esac
# Line 10940 | Line 11326 | freebsd* | dragonfly*)
11326    esac
11327    ;;
11328  
10943 – gnu*)
10944 –  version_type=linux # correct to gnu/linux during the next big refactor
10945 –  need_lib_prefix=no
10946 –  need_version=no
10947 –  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948 –  soname_spec='${libname}${release}${shared_ext}$major'
10949 –  shlibpath_var=LD_LIBRARY_PATH
10950 –  shlibpath_overrides_runpath=no
10951 –  hardcode_into_libs=yes
10952 –  ;;
10953 –
11329   haiku*)
11330    version_type=linux # correct to gnu/linux during the next big refactor
11331    need_lib_prefix=no
11332    need_version=no
11333    dynamic_linker="$host_os runtime_loader"
11334 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11335 <  soname_spec='${libname}${release}${shared_ext}$major'
11334 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11335 >  soname_spec='$libname$release$shared_ext$major'
11336    shlibpath_var=LIBRARY_PATH
11337 <  shlibpath_overrides_runpath=yes
11337 >  shlibpath_overrides_runpath=no
11338    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11339    hardcode_into_libs=yes
11340    ;;
# Line 10977 | Line 11352 | hpux9* | hpux10* | hpux11*)
11352      dynamic_linker="$host_os dld.so"
11353      shlibpath_var=LD_LIBRARY_PATH
11354      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11355 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 <    soname_spec='${libname}${release}${shared_ext}$major'
11357 <    if test "X$HPUX_IA64_MODE" = X32; then
11355 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356 >    soname_spec='$libname$release$shared_ext$major'
11357 >    if test 32 = "$HPUX_IA64_MODE"; then
11358        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11359 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11360      else
11361        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11362 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11363      fi
10987 –    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364      ;;
11365    hppa*64*)
11366      shrext_cmds='.sl'
# Line 10992 | Line 11368 | hpux9* | hpux10* | hpux11*)
11368      dynamic_linker="$host_os dld.sl"
11369      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11370      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11371 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 <    soname_spec='${libname}${release}${shared_ext}$major'
11371 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11372 >    soname_spec='$libname$release$shared_ext$major'
11373      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11374      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375      ;;
# Line 11002 | Line 11378 | hpux9* | hpux10* | hpux11*)
11378      dynamic_linker="$host_os dld.sl"
11379      shlibpath_var=SHLIB_PATH
11380      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11381 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 <    soname_spec='${libname}${release}${shared_ext}$major'
11381 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382 >    soname_spec='$libname$release$shared_ext$major'
11383      ;;
11384    esac
11385    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 11016 | Line 11392 | interix[3-9]*)
11392    version_type=linux # correct to gnu/linux during the next big refactor
11393    need_lib_prefix=no
11394    need_version=no
11395 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11396 <  soname_spec='${libname}${release}${shared_ext}$major'
11395 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11396 >  soname_spec='$libname$release$shared_ext$major'
11397    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11398    shlibpath_var=LD_LIBRARY_PATH
11399    shlibpath_overrides_runpath=no
# Line 11028 | Line 11404 | irix5* | irix6* | nonstopux*)
11404    case $host_os in
11405      nonstopux*) version_type=nonstopux ;;
11406      *)
11407 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11407 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11408                  version_type=linux # correct to gnu/linux during the next big refactor
11409          else
11410                  version_type=irix
# Line 11036 | Line 11412 | irix5* | irix6* | nonstopux*)
11412    esac
11413    need_lib_prefix=no
11414    need_version=no
11415 <  soname_spec='${libname}${release}${shared_ext}$major'
11416 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11415 >  soname_spec='$libname$release$shared_ext$major'
11416 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11417    case $host_os in
11418    irix5* | nonstopux*)
11419      libsuff= shlibsuff=
# Line 11056 | Line 11432 | irix5* | irix6* | nonstopux*)
11432    esac
11433    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11434    shlibpath_overrides_runpath=no
11435 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11436 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11435 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11436 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11437    hardcode_into_libs=yes
11438    ;;
11439  
# Line 11066 | Line 11442 | linux*oldld* | linux*aout* | linux*coff*
11442    dynamic_linker=no
11443    ;;
11444  
11445 + linux*android*)
11446 +  version_type=none # Android doesn't support versioned libraries.
11447 +  need_lib_prefix=no
11448 +  need_version=no
11449 +  library_names_spec='$libname$release$shared_ext'
11450 +  soname_spec='$libname$release$shared_ext'
11451 +  finish_cmds=
11452 +  shlibpath_var=LD_LIBRARY_PATH
11453 +  shlibpath_overrides_runpath=yes
11454 +
11455 +  # This implies no fast_install, which is unacceptable.
11456 +  # Some rework will be needed to allow for fast_install
11457 +  # before this can be enabled.
11458 +  hardcode_into_libs=yes
11459 +
11460 +  dynamic_linker='Android linker'
11461 +  # Don't embed -rpath directories since the linker doesn't support them.
11462 +  hardcode_libdir_flag_spec='-L$libdir'
11463 +  ;;
11464 +
11465   # This must be glibc/ELF.
11466 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11466 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11467    version_type=linux # correct to gnu/linux during the next big refactor
11468    need_lib_prefix=no
11469    need_version=no
11470 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 <  soname_spec='${libname}${release}${shared_ext}$major'
11470 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 >  soname_spec='$libname$release$shared_ext$major'
11472    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11473    shlibpath_var=LD_LIBRARY_PATH
11474    shlibpath_overrides_runpath=no
# Line 11116 | Line 11512 | fi
11512    # before this can be enabled.
11513    hardcode_into_libs=yes
11514  
11515 <  # Append ld.so.conf contents to the search path
11515 >  # Ideally, we could use ldconfig to report *all* directores which are
11516 >  # searched for libraries, however this is still not possible.  Aside from not
11517 >  # being certain /sbin/ldconfig is available, command
11518 >  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11519 >  # even though it is searched at run-time.  Try to do the best guess by
11520 >  # appending ld.so.conf contents (and includes) to the search path.
11521    if test -f /etc/ld.so.conf; then
11522      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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11523      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
# Line 11136 | Line 11537 | netbsd*)
11537    need_lib_prefix=no
11538    need_version=no
11539    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11540 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11541      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11542      dynamic_linker='NetBSD (a.out) ld.so'
11543    else
11544 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11545 <    soname_spec='${libname}${release}${shared_ext}$major'
11544 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545 >    soname_spec='$libname$release$shared_ext$major'
11546      dynamic_linker='NetBSD ld.elf_so'
11547    fi
11548    shlibpath_var=LD_LIBRARY_PATH
# Line 11151 | Line 11552 | netbsd*)
11552  
11553   newsos6)
11554    version_type=linux # correct to gnu/linux during the next big refactor
11555 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556    shlibpath_var=LD_LIBRARY_PATH
11557    shlibpath_overrides_runpath=yes
11558    ;;
# Line 11160 | Line 11561 | newsos6)
11561    version_type=qnx
11562    need_lib_prefix=no
11563    need_version=no
11564 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 <  soname_spec='${libname}${release}${shared_ext}$major'
11564 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565 >  soname_spec='$libname$release$shared_ext$major'
11566    shlibpath_var=LD_LIBRARY_PATH
11567    shlibpath_overrides_runpath=no
11568    hardcode_into_libs=yes
11569    dynamic_linker='ldqnx.so'
11570    ;;
11571  
11572 < openbsd*)
11572 > openbsd* | bitrig*)
11573    version_type=sunos
11574 <  sys_lib_dlsearch_path_spec="/usr/lib"
11574 >  sys_lib_dlsearch_path_spec=/usr/lib
11575    need_lib_prefix=no
11576 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11577 <  case $host_os in
11177 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11178 <    *)                          need_version=no  ;;
11179 <  esac
11180 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11181 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11182 <  shlibpath_var=LD_LIBRARY_PATH
11183 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11184 <    case $host_os in
11185 <      openbsd2.[89] | openbsd2.[89].*)
11186 <        shlibpath_overrides_runpath=no
11187 <        ;;
11188 <      *)
11189 <        shlibpath_overrides_runpath=yes
11190 <        ;;
11191 <      esac
11576 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11577 >    need_version=no
11578    else
11579 <    shlibpath_overrides_runpath=yes
11579 >    need_version=yes
11580    fi
11581 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11582 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11583 +  shlibpath_var=LD_LIBRARY_PATH
11584 +  shlibpath_overrides_runpath=yes
11585    ;;
11586  
11587   os2*)
11588    libname_spec='$name'
11589 <  shrext_cmds=".dll"
11589 >  version_type=windows
11590 >  shrext_cmds=.dll
11591 >  need_version=no
11592    need_lib_prefix=no
11593 <  library_names_spec='$libname${shared_ext} $libname.a'
11593 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11594 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11595 >    v=$($ECHO $release$versuffix | tr -d .-);
11596 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11597 >    $ECHO $n$v`$shared_ext'
11598 >  library_names_spec='${libname}_dll.$libext'
11599    dynamic_linker='OS/2 ld.exe'
11600 <  shlibpath_var=LIBPATH
11600 >  shlibpath_var=BEGINLIBPATH
11601 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11602 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11603 >  postinstall_cmds='base_file=`basename \$file`~
11604 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11605 >    dldir=$destdir/`dirname \$dlpath`~
11606 >    test -d \$dldir || mkdir -p \$dldir~
11607 >    $install_prog $dir/$dlname \$dldir/$dlname~
11608 >    chmod a+x \$dldir/$dlname~
11609 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11610 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11611 >    fi'
11612 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11613 >    dlpath=$dir/\$dldll~
11614 >    $RM \$dlpath'
11615    ;;
11616  
11617   osf3* | osf4* | osf5*)
11618    version_type=osf
11619    need_lib_prefix=no
11620    need_version=no
11621 <  soname_spec='${libname}${release}${shared_ext}$major'
11622 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 >  soname_spec='$libname$release$shared_ext$major'
11622 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623    shlibpath_var=LD_LIBRARY_PATH
11624    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11625 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11625 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626    ;;
11627  
11628   rdos*)
# Line 11222 | Line 11633 | solaris*)
11633    version_type=linux # correct to gnu/linux during the next big refactor
11634    need_lib_prefix=no
11635    need_version=no
11636 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 <  soname_spec='${libname}${release}${shared_ext}$major'
11636 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637 >  soname_spec='$libname$release$shared_ext$major'
11638    shlibpath_var=LD_LIBRARY_PATH
11639    shlibpath_overrides_runpath=yes
11640    hardcode_into_libs=yes
# Line 11233 | Line 11644 | solaris*)
11644  
11645   sunos4*)
11646    version_type=sunos
11647 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11647 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11648    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11649    shlibpath_var=LD_LIBRARY_PATH
11650    shlibpath_overrides_runpath=yes
11651 <  if test "$with_gnu_ld" = yes; then
11651 >  if test yes = "$with_gnu_ld"; then
11652      need_lib_prefix=no
11653    fi
11654    need_version=yes
# Line 11245 | Line 11656 | sunos4*)
11656  
11657   sysv4 | sysv4.3*)
11658    version_type=linux # correct to gnu/linux during the next big refactor
11659 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11660 <  soname_spec='${libname}${release}${shared_ext}$major'
11659 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11660 >  soname_spec='$libname$release$shared_ext$major'
11661    shlibpath_var=LD_LIBRARY_PATH
11662    case $host_vendor in
11663      sni)
# Line 11267 | Line 11678 | sysv4 | sysv4.3*)
11678    ;;
11679  
11680   sysv4*MP*)
11681 <  if test -d /usr/nec ;then
11681 >  if test -d /usr/nec; then
11682      version_type=linux # correct to gnu/linux during the next big refactor
11683 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11684 <    soname_spec='$libname${shared_ext}.$major'
11683 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11684 >    soname_spec='$libname$shared_ext.$major'
11685      shlibpath_var=LD_LIBRARY_PATH
11686    fi
11687    ;;
11688  
11689   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11690 <  version_type=freebsd-elf
11690 >  version_type=sco
11691    need_lib_prefix=no
11692    need_version=no
11693 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11694 <  soname_spec='${libname}${release}${shared_ext}$major'
11693 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11694 >  soname_spec='$libname$release$shared_ext$major'
11695    shlibpath_var=LD_LIBRARY_PATH
11696    shlibpath_overrides_runpath=yes
11697    hardcode_into_libs=yes
11698 <  if test "$with_gnu_ld" = yes; then
11698 >  if test yes = "$with_gnu_ld"; then
11699      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11700    else
11701      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11302 | Line 11713 | tpf*)
11713    version_type=linux # correct to gnu/linux during the next big refactor
11714    need_lib_prefix=no
11715    need_version=no
11716 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11717    shlibpath_var=LD_LIBRARY_PATH
11718    shlibpath_overrides_runpath=no
11719    hardcode_into_libs=yes
# Line 11310 | Line 11721 | tpf*)
11721  
11722   uts4*)
11723    version_type=linux # correct to gnu/linux during the next big refactor
11724 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 <  soname_spec='${libname}${release}${shared_ext}$major'
11724 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725 >  soname_spec='$libname$release$shared_ext$major'
11726    shlibpath_var=LD_LIBRARY_PATH
11727    ;;
11728  
# Line 11321 | Line 11732 | uts4*)
11732   esac
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11734   $as_echo "$dynamic_linker" >&6; }
11735 < test "$dynamic_linker" = no && can_build_shared=no
11735 > test no = "$dynamic_linker" && can_build_shared=no
11736  
11737   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11738 < if test "$GCC" = yes; then
11738 > if test yes = "$GCC"; then
11739    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11740   fi
11741  
11742 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11743 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11742 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11743 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11744   fi
11745 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11746 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11745 >
11746 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11747 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11748   fi
11749  
11750 + # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11751 + configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11752 +
11753 + # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11754 + func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11755 +
11756 + # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11757 + configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11758 +
11759 +
11760 +
11761 +
11762 +
11763 +
11764  
11765  
11766  
# Line 11431 | Line 11857 | $as_echo_n "checking how to hardcode lib
11857   hardcode_action=
11858   if test -n "$hardcode_libdir_flag_spec" ||
11859     test -n "$runpath_var" ||
11860 <   test "X$hardcode_automatic" = "Xyes" ; then
11860 >   test yes = "$hardcode_automatic"; then
11861  
11862    # We can hardcode non-existent directories.
11863 <  if test "$hardcode_direct" != no &&
11863 >  if test no != "$hardcode_direct" &&
11864       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11865       # have to relink, otherwise we might link with an installed library
11866       # when we should be linking with a yet-to-be-installed one
11867 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11868 <     test "$hardcode_minus_L" != no; then
11867 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11868 >     test no != "$hardcode_minus_L"; then
11869      # Linking always hardcodes the temporary library directory.
11870      hardcode_action=relink
11871    else
# Line 11454 | Line 11880 | fi
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11881   $as_echo "$hardcode_action" >&6; }
11882  
11883 < if test "$hardcode_action" = relink ||
11884 <   test "$inherit_rpath" = yes; then
11883 > if test relink = "$hardcode_action" ||
11884 >   test yes = "$inherit_rpath"; then
11885    # Fast installation is not supported
11886    enable_fast_install=no
11887 < elif test "$shlibpath_overrides_runpath" = yes ||
11888 <     test "$enable_shared" = no; then
11887 > elif test yes = "$shlibpath_overrides_runpath" ||
11888 >     test no = "$enable_shared"; then
11889    # Fast installation is not necessary
11890    enable_fast_install=needless
11891   fi
# Line 11469 | Line 11895 | fi
11895  
11896  
11897  
11898 <  if test "x$enable_dlopen" != xyes; then
11898 >  if test yes != "$enable_dlopen"; then
11899    enable_dlopen=unknown
11900    enable_dlopen_self=unknown
11901    enable_dlopen_self_static=unknown
# Line 11479 | Line 11905 | else
11905  
11906    case $host_os in
11907    beos*)
11908 <    lt_cv_dlopen="load_add_on"
11908 >    lt_cv_dlopen=load_add_on
11909      lt_cv_dlopen_libs=
11910      lt_cv_dlopen_self=yes
11911      ;;
11912  
11913    mingw* | pw32* | cegcc*)
11914 <    lt_cv_dlopen="LoadLibrary"
11914 >    lt_cv_dlopen=LoadLibrary
11915      lt_cv_dlopen_libs=
11916      ;;
11917  
11918    cygwin*)
11919 <    lt_cv_dlopen="dlopen"
11919 >    lt_cv_dlopen=dlopen
11920      lt_cv_dlopen_libs=
11921      ;;
11922  
11923    darwin*)
11924 <  # if libdl is installed we need to link against it
11924 >    # if libdl is installed we need to link against it
11925      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11926   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11927   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11533 | Line 11959 | fi
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11960   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11961   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11962 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11962 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11963   else
11964  
11965 <    lt_cv_dlopen="dyld"
11965 >    lt_cv_dlopen=dyld
11966      lt_cv_dlopen_libs=
11967      lt_cv_dlopen_self=yes
11968  
# Line 11544 | Line 11970 | fi
11970  
11971      ;;
11972  
11973 +  tpf*)
11974 +    # Don't try to run any link tests for TPF.  We know it's impossible
11975 +    # because TPF is a cross-compiler, and we know how we open DSOs.
11976 +    lt_cv_dlopen=dlopen
11977 +    lt_cv_dlopen_libs=
11978 +    lt_cv_dlopen_self=no
11979 +    ;;
11980 +
11981    *)
11982      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11983   if test "x$ac_cv_func_shl_load" = xyes; then :
11984 <  lt_cv_dlopen="shl_load"
11984 >  lt_cv_dlopen=shl_load
11985   else
11986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11987   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11586 | Line 12020 | fi
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12021   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12022   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12023 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12023 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12024   else
12025    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12026   if test "x$ac_cv_func_dlopen" = xyes; then :
12027 <  lt_cv_dlopen="dlopen"
12027 >  lt_cv_dlopen=dlopen
12028   else
12029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12030   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11629 | Line 12063 | fi
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12064   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12065   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12066 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12066 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12067   else
12068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12069   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11668 | Line 12102 | fi
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12103   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12104   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12105 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12105 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12106   else
12107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12108   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11707 | Line 12141 | fi
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12142   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12143   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12144 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12144 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12145   fi
12146  
12147  
# Line 11728 | Line 12162 | fi
12162      ;;
12163    esac
12164  
12165 <  if test "x$lt_cv_dlopen" != xno; then
11732 <    enable_dlopen=yes
11733 <  else
12165 >  if test no = "$lt_cv_dlopen"; then
12166      enable_dlopen=no
12167 +  else
12168 +    enable_dlopen=yes
12169    fi
12170  
12171    case $lt_cv_dlopen in
12172    dlopen)
12173 <    save_CPPFLAGS="$CPPFLAGS"
12174 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12173 >    save_CPPFLAGS=$CPPFLAGS
12174 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12175  
12176 <    save_LDFLAGS="$LDFLAGS"
12176 >    save_LDFLAGS=$LDFLAGS
12177      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12178  
12179 <    save_LIBS="$LIBS"
12179 >    save_LIBS=$LIBS
12180      LIBS="$lt_cv_dlopen_libs $LIBS"
12181  
12182      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11750 | Line 12184 | $as_echo_n "checking whether a program c
12184   if ${lt_cv_dlopen_self+:} false; then :
12185    $as_echo_n "(cached) " >&6
12186   else
12187 <          if test "$cross_compiling" = yes; then :
12187 >          if test yes = "$cross_compiling"; then :
12188    lt_cv_dlopen_self=cross
12189   else
12190    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11797 | Line 12231 | else
12231   #  endif
12232   #endif
12233  
12234 < /* When -fvisbility=hidden is used, assume the code has been annotated
12234 > /* When -fvisibility=hidden is used, assume the code has been annotated
12235     correspondingly for the symbols needed.  */
12236 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12236 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12237   int fnord () __attribute__((visibility("default")));
12238   #endif
12239  
# Line 11829 | Line 12263 | _LT_EOF
12263    (eval $ac_link) 2>&5
12264    ac_status=$?
12265    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12266 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12267      (./conftest; exit; ) >&5 2>/dev/null
12268      lt_status=$?
12269      case x$lt_status in
# Line 11849 | Line 12283 | fi
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12284   $as_echo "$lt_cv_dlopen_self" >&6; }
12285  
12286 <    if test "x$lt_cv_dlopen_self" = xyes; then
12286 >    if test yes = "$lt_cv_dlopen_self"; then
12287        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12288        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12289   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12290   if ${lt_cv_dlopen_self_static+:} false; then :
12291    $as_echo_n "(cached) " >&6
12292   else
12293 <          if test "$cross_compiling" = yes; then :
12293 >          if test yes = "$cross_compiling"; then :
12294    lt_cv_dlopen_self_static=cross
12295   else
12296    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11903 | Line 12337 | else
12337   #  endif
12338   #endif
12339  
12340 < /* When -fvisbility=hidden is used, assume the code has been annotated
12340 > /* When -fvisibility=hidden is used, assume the code has been annotated
12341     correspondingly for the symbols needed.  */
12342 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12342 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12343   int fnord () __attribute__((visibility("default")));
12344   #endif
12345  
# Line 11935 | Line 12369 | _LT_EOF
12369    (eval $ac_link) 2>&5
12370    ac_status=$?
12371    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12372 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12372 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12373      (./conftest; exit; ) >&5 2>/dev/null
12374      lt_status=$?
12375      case x$lt_status in
# Line 11956 | Line 12390 | fi
12390   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12391      fi
12392  
12393 <    CPPFLAGS="$save_CPPFLAGS"
12394 <    LDFLAGS="$save_LDFLAGS"
12395 <    LIBS="$save_LIBS"
12393 >    CPPFLAGS=$save_CPPFLAGS
12394 >    LDFLAGS=$save_LDFLAGS
12395 >    LIBS=$save_LIBS
12396      ;;
12397    esac
12398  
# Line 12002 | Line 12436 | else
12436   # FIXME - insert some real tests, host_os isn't really good enough
12437    case $host_os in
12438    darwin*)
12439 <    if test -n "$STRIP" ; then
12439 >    if test -n "$STRIP"; then
12440        striplib="$STRIP -x"
12441        old_striplib="$STRIP -S"
12442        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 12030 | Line 12464 | fi
12464  
12465  
12466  
12467 <  # Report which library types will actually be built
12467 >  # Report what library types will actually be built
12468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12469   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12470    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 12038 | Line 12472 | $as_echo "$can_build_shared" >&6; }
12472  
12473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12474   $as_echo_n "checking whether to build shared libraries... " >&6; }
12475 <  test "$can_build_shared" = "no" && enable_shared=no
12475 >  test no = "$can_build_shared" && enable_shared=no
12476  
12477    # On AIX, shared libraries and static libraries use the same namespace, and
12478    # are all built from PIC.
12479    case $host_os in
12480    aix3*)
12481 <    test "$enable_shared" = yes && enable_static=no
12481 >    test yes = "$enable_shared" && enable_static=no
12482      if test -n "$RANLIB"; then
12483        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12484        postinstall_cmds='$RANLIB $lib'
# Line 12052 | Line 12486 | $as_echo_n "checking whether to build sh
12486      ;;
12487  
12488    aix[4-9]*)
12489 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12490 <      test "$enable_shared" = yes && enable_static=no
12489 >    if test ia64 != "$host_cpu"; then
12490 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12491 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12492 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12493 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12494 >      esac
12495      fi
12496      ;;
12497    esac
# Line 12063 | Line 12501 | $as_echo "$enable_shared" >&6; }
12501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12502   $as_echo_n "checking whether to build static libraries... " >&6; }
12503    # Make sure either enable_shared or enable_static is yes.
12504 <  test "$enable_shared" = yes || enable_static=yes
12504 >  test yes = "$enable_shared" || enable_static=yes
12505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12506   $as_echo "$enable_static" >&6; }
12507  
# Line 12077 | Line 12515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12515   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517  
12518 < CC="$lt_save_CC"
12518 > CC=$lt_save_CC
12519  
12520  
12521  
# Line 12101 | Line 12539 | CC="$lt_save_CC"
12539   # Only expand once:
12540  
12541  
12542 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12543 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12542 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12543 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12544   if ${libltdl_cv_shlibext+:} false; then :
12545    $as_echo_n "(cached) " >&6
12546   else
# Line 12129 | Line 12567 | cat >>confdefs.h <<_ACEOF
12567   _ACEOF
12568  
12569   fi
12570 + if test -n "$shared_archive_member_spec"; then
12571 +
12572 + cat >>confdefs.h <<_ACEOF
12573 + #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12574 + _ACEOF
12575  
12576 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12577 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12576 > fi
12577 >
12578 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12579 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12580   if ${lt_cv_module_path_var+:} false; then :
12581    $as_echo_n "(cached) " >&6
12582   else
12583 <  lt_cv_module_path_var="$shlibpath_var"
12583 >  lt_cv_module_path_var=$shlibpath_var
12584   fi
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12586   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 12152 | Line 12597 | $as_echo_n "checking for the default lib
12597   if ${lt_cv_sys_dlsearch_path+:} false; then :
12598    $as_echo_n "(cached) " >&6
12599   else
12600 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12600 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12601   fi
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12603   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 12160 | Line 12605 | if test -n "$lt_cv_sys_dlsearch_path"; t
12605    sys_dlsearch_path=
12606    for dir in $lt_cv_sys_dlsearch_path; do
12607      if test -z "$sys_dlsearch_path"; then
12608 <      sys_dlsearch_path="$dir"
12608 >      sys_dlsearch_path=$dir
12609      else
12610 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12610 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12611      fi
12612    done
12613  
# Line 12182 | Line 12627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12627   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12628   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12629  
12630 + lt_dlload_save_LIBS=$LIBS
12631  
12632   LIBADD_DLOPEN=
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
# Line 12240 | Line 12686 | if test "$ac_res" != no; then :
12686  
12687   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12688  
12689 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12690 <          LIBADD_DLOPEN="-ldl"
12689 >        if test "$ac_cv_search_dlopen" != "none required"; then
12690 >          LIBADD_DLOPEN=-ldl
12691          fi
12692 <        libltdl_cv_lib_dl_dlopen="yes"
12692 >        libltdl_cv_lib_dl_dlopen=yes
12693          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12694   else
12695    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12264 | Line 12710 | if ac_fn_c_try_link "$LINENO"; then :
12710  
12711   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12712  
12713 <            libltdl_cv_func_dlopen="yes"
12713 >            libltdl_cv_func_dlopen=yes
12714              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12715   else
12716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12307 | Line 12753 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12753  
12754   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12755  
12756 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12756 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12757                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12758   fi
12759  
# Line 12316 | Line 12762 | rm -f core conftest.err conftest.$ac_obj
12762      conftest$ac_exeext conftest.$ac_ext
12763   fi
12764  
12765 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12765 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12766   then
12767 <  lt_save_LIBS="$LIBS"
12767 >  lt_save_LIBS=$LIBS
12768    LIBS="$LIBS $LIBADD_DLOPEN"
12769    for ac_func in dlerror
12770   do :
# Line 12331 | Line 12777 | _ACEOF
12777   fi
12778   done
12779  
12780 <  LIBS="$lt_save_LIBS"
12780 >  LIBS=$lt_save_LIBS
12781   fi
12782  
12783  
# Line 12384 | Line 12830 | if test "x$ac_cv_lib_dld_shl_load" = xye
12830   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12831  
12832              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12833 <            LIBADD_SHL_LOAD="-ldld"
12833 >            LIBADD_SHL_LOAD=-ldld
12834   fi
12835  
12836   fi
# Line 12406 | Line 12852 | fi
12852   beos*)
12853    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12854    ;;
12855 < cygwin* | mingw* | os2* | pw32*)
12855 > cygwin* | mingw* | pw32*)
12856    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12857   "
12858   if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
# Line 12484 | Line 12930 | fi
12930   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12931  
12932  
12933 + LIBS=$lt_dlload_save_LIBS
12934   ac_ext=c
12935   ac_cpp='$CPP $CPPFLAGS'
12936   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12538 | Line 12985 | $as_echo "$lt_cv_sys_symbol_underscore"
12985    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12986  
12987  
12988 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12989 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
12990 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12544 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12988 > if test yes = "$lt_cv_sys_symbol_underscore"; then
12989 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
12990 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12991   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12992   if ${libltdl_cv_need_uscore+:} false; then :
12993    $as_echo_n "(cached) " >&6
12994   else
12995    libltdl_cv_need_uscore=unknown
12996 <          save_LIBS="$LIBS"
12997 <          LIBS="$LIBS $LIBADD_DLOPEN"
12998 <          if test "$cross_compiling" = yes; then :
12999 <  libltdl_cv_need_uscore=cross
12554 < else
12555 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556 <  lt_status=$lt_dlunknown
12557 <  cat > conftest.$ac_ext <<_LT_EOF
12996 >      dlsym_uscore_save_LIBS=$LIBS
12997 >      LIBS="$LIBS $LIBADD_DLOPEN"
12998 >      libname=conftmod # stay within 8.3 filename limits!
12999 >      cat >$libname.$ac_ext <<_LT_EOF
13000   #line $LINENO "configure"
13001   #include "confdefs.h"
13002 + /* When -fvisibility=hidden is used, assume the code has been annotated
13003 +   correspondingly for the symbols needed.  */
13004 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13005 + int fnord () __attribute__((visibility("default")));
13006 + #endif
13007 + int fnord () { return 42; }
13008 + _LT_EOF
13009  
13010 +      # ltfn_module_cmds module_cmds
13011 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
13012 +      # $module_cmds or $archive_cmds type content.
13013 +      ltfn_module_cmds ()
13014 +      {( # subshell avoids polluting parent global environment
13015 +          module_cmds_save_ifs=$IFS; IFS='~'
13016 +          for cmd in $1; do
13017 +            IFS=$module_cmds_save_ifs
13018 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13019 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13020 +            major=; versuffix=; verstring=; deplibs=
13021 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13022 +            eval $cmd
13023 +          done
13024 +          IFS=$module_cmds_save_ifs
13025 +      )}
13026 +
13027 +      # Compile a loadable module using libtool macro expansion results.
13028 +      $CC $pic_flag -c $libname.$ac_ext
13029 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13030 +
13031 +      # Try to fetch fnord with dlsym().
13032 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13033 +      cat >conftest.$ac_ext <<_LT_EOF
13034 + #line $LINENO "configure"
13035 + #include "confdefs.h"
13036   #if HAVE_DLFCN_H
13037   #include <dlfcn.h>
13038   #endif
12564 –
13039   #include <stdio.h>
13040 <
12567 < #ifdef RTLD_GLOBAL
12568 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12569 < #else
13040 > #ifndef RTLD_GLOBAL
13041   #  ifdef DL_GLOBAL
13042 < #    define LT_DLGLOBAL         DL_GLOBAL
13042 > #    define RTLD_GLOBAL DL_GLOBAL
13043   #  else
13044 < #    define LT_DLGLOBAL         0
13044 > #    define RTLD_GLOBAL 0
13045   #  endif
13046   #endif
13047 <
13048 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13049 <   find out it does not work in some platform. */
12579 < #ifndef LT_DLLAZY_OR_NOW
12580 < #  ifdef RTLD_LAZY
12581 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13047 > #ifndef RTLD_NOW
13048 > #  ifdef DL_NOW
13049 > #    define RTLD_NOW DL_NOW
13050   #  else
13051 < #    ifdef DL_LAZY
12584 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12585 < #    else
12586 < #      ifdef RTLD_NOW
12587 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12588 < #      else
12589 < #        ifdef DL_NOW
12590 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12591 < #        else
12592 < #          define LT_DLLAZY_OR_NOW      0
12593 < #        endif
12594 < #      endif
12595 < #    endif
13051 > #    define RTLD_NOW 0
13052   #  endif
13053   #endif
13054 <
13055 < /* When -fvisbility=hidden is used, assume the code has been annotated
13056 <   correspondingly for the symbols needed.  */
13057 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13058 < int fnord () __attribute__((visibility("default")));
13059 < #endif
13060 <
13061 < int fnord () { return 42; }
13062 < int main ()
12607 < {
12608 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12609 <  int status = $lt_dlunknown;
12610 <
12611 <  if (self)
12612 <    {
12613 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13054 > int main () {
13055 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13056 >  int status = $libltdl_dlunknown;
13057 >  if (handle) {
13058 >    if (dlsym (handle, "fnord"))
13059 >      status = $libltdl_dlnouscore;
13060 >    else {
13061 >      if (dlsym (handle, "_fnord"))
13062 >        status = $libltdl_dluscore;
13063        else
13064 <        {
12616 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12617 <          else puts (dlerror ());
12618 <        }
12619 <      /* dlclose (self); */
13064 >        puts (dlerror ());
13065      }
13066 <  else
13066 >    dlclose (handle);
13067 >  } else
13068      puts (dlerror ());
12623 –
13069    return status;
13070   }
13071   _LT_EOF
13072 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13072 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13073    (eval $ac_link) 2>&5
13074    ac_status=$?
13075    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13077 <    (./conftest; exit; ) >&5 2>/dev/null
13078 <    lt_status=$?
13079 <    case x$lt_status in
13080 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13081 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13082 <      x$lt_dlunknown|x*)  ;;
13083 <    esac
13084 <  else :
13085 <    # compilation failed
13086 <
12642 <  fi
12643 < fi
12644 < rm -fr conftest*
12645 <
12646 <          LIBS="$save_LIBS"
13076 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13077 >        (./conftest; exit; ) >&5 2>/dev/null
13078 >        libltdl_status=$?
13079 >        case x$libltdl_status in
13080 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13081 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13082 >          x*) libltdl_cv_need_uscore=unknown ;;
13083 >        esac
13084 >      fi
13085 >      rm -rf conftest* $libname*
13086 >      LIBS=$dlsym_uscore_save_LIBS
13087  
13088   fi
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12651 | Line 13091 | $as_echo "$libltdl_cv_need_uscore" >&6;
13091    fi
13092   fi
13093  
13094 < if test x"$libltdl_cv_need_uscore" = xyes; then
13094 > if test yes = "$libltdl_cv_need_uscore"; then
13095  
13096   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13097  
# Line 12670 | Line 13110 | else
13110    case $host_os in
13111    aix3*|aix4.1.*|aix4.2.*)
13112      # Unknown whether this is true for these versions of AIX, but
13113 <    # we want this `case' here to explicitly catch those versions.
13113 >    # we want this 'case' here to explicitly catch those versions.
13114      lt_cv_sys_dlopen_deplibs=unknown
13115      ;;
13116    aix[4-9]*)
# Line 12683 | Line 13123 | else
13123        ;;
13124      esac
13125      ;;
13126 +  bitrig*)
13127 +    lt_cv_sys_dlopen_deplibs=yes
13128 +    ;;
13129    darwin*)
13130      # Assuming the user has installed a libdl from somewhere, this is true
13131      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12720 | Line 13163 | else
13163    osf[1234]*)
13164      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13165      # it did *not* use an RPATH in a shared library to find objects the
13166 <    # library depends on, so we explicitly say `no'.
13166 >    # library depends on, so we explicitly say 'no'.
13167      lt_cv_sys_dlopen_deplibs=no
13168      ;;
13169    osf5.0|osf5.0a|osf5.1)
# Line 12729 | Line 13172 | else
13172      # that the library depends on, but there's no easy way to know if that
13173      # patch is installed.  Since this is the case, all we can really
13174      # say is unknown -- it depends on the patch being installed.  If
13175 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13175 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13176      lt_cv_sys_dlopen_deplibs=unknown
13177      ;;
13178    osf*)
13179      # the two cases above should catch all versions of osf <= 5.1.  Read
13180      # the comments above for what we know about them.
13181      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13182 <    # is used to find them so we can finally say `yes'.
13182 >    # is used to find them so we can finally say 'yes'.
13183      lt_cv_sys_dlopen_deplibs=yes
13184      ;;
13185    qnx*)
# Line 12753 | Line 13196 | else
13196   fi
13197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13198   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13199 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13199 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13200  
13201   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13202  
13203   fi
13204  
12762 – :
13205  
13206   for ac_header in argz.h
13207   do :
# Line 12796 | Line 13238 | $as_echo "#define __error_t_defined 1" >
13238   fi
13239  
13240  
13241 < ARGZ_H=
13241 > LT_ARGZ_H=
13242   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13243          argz_next argz_stringify
13244   do :
# Line 12808 | Line 13250 | if eval test \"x\$"$as_ac_var"\" = x"yes
13250   _ACEOF
13251  
13252   else
13253 <  ARGZ_H=argz.h;
13253 >  LT_ARGZ_H=lt__argz.h;
13254  
13255 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13255 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13256  
13257   fi
13258   done
13259  
13260  
13261 < if test -z "$ARGZ_H"; then :
13261 > if test -z "$LT_ARGZ_H"; then :
13262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13263   $as_echo_n "checking if argz actually works... " >&6; }
13264   if ${lt_cv_sys_argz_works+:} false; then :
# Line 12825 | Line 13267 | else
13267    case $host_os in #(
13268           *cygwin*)
13269             lt_cv_sys_argz_works=no
13270 <           if test "$cross_compiling" != no; then
13270 >           if test no != "$cross_compiling"; then
13271               lt_cv_sys_argz_works="guessing no"
13272             else
13273               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12836 | Line 13278 | else
13278               lt_os_major=${2-0}
13279               lt_os_minor=${3-0}
13280               lt_os_micro=${4-0}
13281 <             if test "$lt_os_major" -gt 1 \
13282 <                || { test "$lt_os_major" -eq 1 \
13283 <                  && { test "$lt_os_minor" -gt 5 \
13284 <                    || { test "$lt_os_minor" -eq 5 \
13285 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13281 >             if test 1 -lt "$lt_os_major" \
13282 >                || { test 1 -eq "$lt_os_major" \
13283 >                  && { test 5 -lt "$lt_os_minor" \
13284 >                    || { test 5 -eq "$lt_os_minor" \
13285 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13286                 lt_cv_sys_argz_works=yes
13287               fi
13288             fi
# Line 12850 | Line 13292 | else
13292   fi
13293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13294   $as_echo "$lt_cv_sys_argz_works" >&6; }
13295 <     if test "$lt_cv_sys_argz_works" = yes; then :
13295 >     if test yes = "$lt_cv_sys_argz_works"; then :
13296  
13297   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13298  
13299   else
13300 <  ARGZ_H=argz.h
13300 >  LT_ARGZ_H=lt__argz.h
13301  
13302  
13303 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13303 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13304  
13305   fi
13306   fi
# Line 12879 | Line 13321 | else
13321   fi
13322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13323   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13324 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13324 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13325  
13326   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13327  
# Line 12903 | Line 13345 | if test "${with_included_ltdl+set}" = se
13345   fi
13346  
13347  
13348 < if test "x$with_included_ltdl" != xyes; then
13348 > if test yes != "$with_included_ltdl"; then
13349    # We are not being forced to use the included libltdl sources, so
13350    # decide whether there is a useful installed version we can use.
13351    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 12979 | Line 13421 | fi
13421   if test -n "$with_ltdl_include"; then
13422    if test -f "$with_ltdl_include/ltdl.h"; then :
13423    else
13424 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13424 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13425    fi
13426   else
13427    with_ltdl_include=no
# Line 12995 | Line 13437 | fi
13437   if test -n "$with_ltdl_lib"; then
13438    if test -f "$with_ltdl_lib/libltdl.la"; then :
13439    else
13440 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13440 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13441    fi
13442   else
13443    with_ltdl_lib=no
# Line 13008 | Line 13450 | case ,$with_included_ltdl,$with_ltdl_inc
13450    "") enable_ltdl_convenience=yes
13451        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13452   esac
13453 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13453 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13454   LTDLDEPS=$LIBLTDL
13455 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13455 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13456  
13457  
13458  
13459  
13460  
13461   # For backwards non-gettext consistent compatibility...
13462 < INCLTDL="$LTDLINCL"
13462 > INCLTDL=$LTDLINCL
13463  
13464  
13465          ;;
# Line 13032 | Line 13474 | $as_echo "#define HAVE_LTDL 1" >>confdef
13474          LTDLINCL=
13475          ;;
13476    ,no*,no,*)
13477 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13477 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13478          ;;
13479    *)    with_included_ltdl=no
13480          LIBLTDL="-L$with_ltdl_lib -lltdl"
13481          LTDLDEPS=
13482 <        LTDLINCL="-I$with_ltdl_include"
13482 >        LTDLINCL=-I$with_ltdl_include
13483          ;;
13484   esac
13485 < INCLTDL="$LTDLINCL"
13485 > INCLTDL=$LTDLINCL
13486  
13487   # Report our decision...
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 13060 | Line 13502 | if test "${enable_ltdl_install+set}" = s
13502   fi
13503  
13504  
13505 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13505 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13506    *yes*) ;;
13507    *) enable_ltdl_convenience=yes ;;
13508   esac
13509  
13510 < if test x"${enable_ltdl_install-no}" != xno; then
13510 > if test no != "${enable_ltdl_install-no}"; then
13511    INSTALL_LTDL_TRUE=
13512    INSTALL_LTDL_FALSE='#'
13513   else
# Line 13073 | Line 13515 | else
13515    INSTALL_LTDL_FALSE=
13516   fi
13517  
13518 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13518 >  if test no != "${enable_ltdl_convenience-no}"; then
13519    CONVENIENCE_LTDL_TRUE=
13520    CONVENIENCE_LTDL_FALSE='#'
13521   else
# Line 13177 | Line 13619 | LIBTOOL="$LIBTOOL --silent"
13619  
13620  
13621    if test "X$CC" != "X"; then
13622 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13623 < $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13622 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13623 > $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13624   if ${ssp_cv_cc+:} false; then :
13625    $as_echo_n "(cached) " >&6
13626   else
13627    ssp_old_cflags="$CFLAGS"
13628 <       CFLAGS="$CFLAGS -fstack-protector"
13628 >       CFLAGS="$CFLAGS -fstack-protector-strong"
13629         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630   /* end confdefs.h.  */
13631  
# Line 13207 | Line 13649 | fi
13649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13650   $as_echo "$ssp_cv_cc" >&6; }
13651      if test $ssp_cv_cc = yes; then
13652 <      CFLAGS="$CFLAGS -fstack-protector"
13652 >      CFLAGS="$CFLAGS -fstack-protector-strong"
13653  
13654   $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13655  
13656 <    fi
13657 <  fi
13658 <
13659 <
13660 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
13219 < $as_echo_n "checking whether C compiler accepts ... " >&6; }
13220 < if ${ax_cv_check_cflags__+:} false; then :
13656 >    else
13657 >      unset ssp_cv_cc
13658 >      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13659 > $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13660 > if ${ssp_cv_cc+:} false; then :
13661    $as_echo_n "(cached) " >&6
13662   else
13663 <
13664 <  ax_check_save_flags=$CFLAGS
13665 <  CFLAGS="$CFLAGS  "
13226 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 >  ssp_old_cflags="$CFLAGS"
13664 >         CFLAGS="$CFLAGS -fstack-protector"
13665 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666   /* end confdefs.h.  */
13667  
13668   int
# Line 13235 | Line 13674 | main ()
13674   }
13675   _ACEOF
13676   if ac_fn_c_try_compile "$LINENO"; then :
13677 <  ax_cv_check_cflags__=yes
13677 >  ssp_cv_cc=yes
13678   else
13679 <  ax_cv_check_cflags__=no
13679 >  ssp_cv_cc=no
13680   fi
13681   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 <  CFLAGS=$ax_check_save_flags
13682 >         CFLAGS="$ssp_old_cflags"
13683 >
13684   fi
13685 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
13686 < $as_echo "$ax_cv_check_cflags__" >&6; }
13687 < if test x"$ax_cv_check_cflags__" = xyes; then :
13688 <  :
13685 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13686 > $as_echo "$ssp_cv_cc" >&6; }
13687 >      if test $ssp_cv_cc = yes; then
13688 >        CFLAGS="$CFLAGS -fstack-protector"
13689 >
13690 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13691 >
13692 >      fi
13693 >    fi
13694 >  fi
13695 >
13696 >
13697 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13698 > $as_echo_n "checking whether libssp exists... " >&6; }
13699 > if ${ssp_cv_lib+:} false; then :
13700 >  $as_echo_n "(cached) " >&6
13701   else
13702 <  :
13703 < fi
13702 >  ssp_old_libs="$LIBS"
13703 >     LIBS="$LIBS -lssp"
13704 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 > /* end confdefs.h.  */
13706  
13707 < if ${CFLAGS+:} false; then :
13708 <  case " $CFLAGS " in
13709 <    *"  "*)
13710 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13711 <  (: CFLAGS already contains ) 2>&5
13712 <  ac_status=$?
13713 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13714 <  test $ac_status = 0; }
13715 <      ;;
13716 <    *)
13263 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13264 <  (: CFLAGS="$CFLAGS ") 2>&5
13265 <  ac_status=$?
13266 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267 <  test $ac_status = 0; }
13268 <      CFLAGS="$CFLAGS "
13269 <      ;;
13270 <   esac
13707 > int
13708 > main ()
13709 > {
13710 >
13711 >  ;
13712 >  return 0;
13713 > }
13714 > _ACEOF
13715 > if ac_fn_c_try_link "$LINENO"; then :
13716 >  ssp_cv_lib=yes
13717   else
13718 <  CFLAGS=""
13718 >  ssp_cv_lib=no
13719   fi
13720 + rm -f core conftest.err conftest.$ac_objext \
13721 +    conftest$ac_exeext conftest.$ac_ext
13722 +     LIBS="$ssp_old_libs"
13723 +
13724 + fi
13725 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13726 + $as_echo "$ssp_cv_lib" >&6; }
13727 +  if test $ssp_cv_lib = yes; then
13728 +    LIBS="$LIBS -lssp"
13729 +  fi
13730 +
13731 +
13732 +
13733  
13734  
13735  
# Line 13306 | Line 13765 | fi
13765   eval ac_res=\$$as_CACHEVAR
13766                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13767   $as_echo "$ac_res" >&6; }
13768 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13769 <  if ${CFLAGS+:} false; then :
13770 <  case " $CFLAGS " in
13771 <    *" $flag "*)
13772 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13768 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13769 >
13770 > if ${CFLAGS+:} false; then :
13771 >
13772 >  case " $CFLAGS " in #(
13773 >  *" $flag "*) :
13774 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13775    (: CFLAGS already contains $flag) 2>&5
13776    ac_status=$?
13777    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 <  test $ac_status = 0; }
13779 <      ;;
13780 <    *)
13781 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
13782 <  (: CFLAGS="$CFLAGS $flag") 2>&5
13778 >  test $ac_status = 0; } ;; #(
13779 >  *) :
13780 >
13781 >     as_fn_append CFLAGS " $flag"
13782 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13783 >  (: CFLAGS="$CFLAGS") 2>&5
13784    ac_status=$?
13785    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13786    test $ac_status = 0; }
13787 <      CFLAGS="$CFLAGS $flag"
13788 <      ;;
13789 <   esac
13787 >     ;;
13788 > esac
13789 >
13790   else
13791 <  CFLAGS="$flag"
13791 >
13792 >  CFLAGS=$flag
13793 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13794 >  (: CFLAGS="$CFLAGS") 2>&5
13795 >  ac_status=$?
13796 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13797 >  test $ac_status = 0; }
13798 >
13799   fi
13800  
13801   else
# Line 13336 | Line 13805 | fi
13805   done
13806  
13807  
13339 –
13808    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13809   if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13810  
# Line 13519 | Line 13987 | else
13987    as_fn_error $? "socket library not found" "$LINENO" 5
13988   fi
13989  
13522 –  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13523 –   #include <sys/socket.h>
13524 –   #include <netdb.h>
13525 –
13526 – "
13527 – if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13528 –
13529 – cat >>confdefs.h <<_ACEOF
13530 – #define HAVE_STRUCT_SOCKADDR_IN 1
13531 – _ACEOF
13532 –
13533 –
13534 – fi
13535 – ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13536 –   #include <sys/socket.h>
13537 –   #include <netdb.h>
13538 –
13539 – "
13540 – if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13541 –
13542 – cat >>confdefs.h <<_ACEOF
13543 – #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13544 – _ACEOF
13545 –
13546 –
13547 – fi
13548 – ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13549 –   #include <sys/socket.h>
13550 –   #include <netdb.h>
13551 –
13552 – "
13553 – if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13554 –
13555 – cat >>confdefs.h <<_ACEOF
13556 – #define HAVE_STRUCT_ADDRINFO 1
13557 – _ACEOF
13558 –
13559 –
13560 – fi
13561 –
13562 –  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13563 –  <sys/socket.h>
13564 – "
13565 – if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13566 –
13567 – cat >>confdefs.h <<_ACEOF
13568 – #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13569 – _ACEOF
13570 –
13571 –
13572 – fi
13573 –
13574 –
13575 –
13576 –  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13577 – "
13578 – if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13579 –
13580 – $as_echo "#define IPV6 1" >>confdefs.h
13581 –
13582 – fi
13583 –
13990  
13991  
13992   # Checks for typedefs, structures, and compiler characteristics.
# Line 13833 | Line 14239 | done
14239  
14240  
14241  
13836 –
13837 –
14242   # Checks for header files.
14243  
14244  
# Line 13865 | Line 14269 | done
14269  
14270  
14271  
13868 –
13869 –
13870 –
13871 –
14272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14273   $as_echo_n "checking for library containing crypt... " >&6; }
14274   if ${ac_cv_search_crypt+:} false; then :
# Line 13926 | Line 14326 | if test "$ac_res" != no; then :
14326   fi
14327  
14328  
14329 < # Check whether --enable-libgeoip was given.
13930 < if test "${enable_libgeoip+set}" = set; then :
13931 <  enableval=$enable_libgeoip;
13932 < else
13933 <  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13934 < if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13935 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13936 < $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13937 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13938 <  $as_echo_n "(cached) " >&6
13939 < else
13940 <  ac_func_search_save_LIBS=$LIBS
13941 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 < /* end confdefs.h.  */
13943 <
13944 < /* Override any GCC internal prototype to avoid an error.
13945 <   Use char because int might match the return type of a GCC
13946 <   builtin and then its argument prototype would still apply.  */
13947 < #ifdef __cplusplus
13948 < extern "C"
13949 < #endif
13950 < char GeoIP_id_by_ipnum_v6_gl ();
13951 < int
13952 < main ()
13953 < {
13954 < return GeoIP_id_by_ipnum_v6_gl ();
13955 <  ;
13956 <  return 0;
13957 < }
13958 < _ACEOF
13959 < for ac_lib in '' GeoIP; do
13960 <  if test -z "$ac_lib"; then
13961 <    ac_res="none required"
13962 <  else
13963 <    ac_res=-l$ac_lib
13964 <    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13965 <  fi
13966 <  if ac_fn_c_try_link "$LINENO"; then :
13967 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13968 < fi
13969 < rm -f core conftest.err conftest.$ac_objext \
13970 <    conftest$ac_exeext
13971 <  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13972 <  break
13973 < fi
13974 < done
13975 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13976 <
13977 < else
13978 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13979 < fi
13980 < rm conftest.$ac_ext
13981 < LIBS=$ac_func_search_save_LIBS
13982 < fi
13983 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13984 < $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13985 < ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13986 < if test "$ac_res" != no; then :
13987 <  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13988 <
13989 < $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13990 <
13991 < fi
13992 <
13993 < fi
13994 <
13995 <
13996 < fi
13997 <
13998 <
13999 <
14000 < # Check whether --enable-openssl was given.
14001 < if test "${enable_openssl+set}" = set; then :
14002 <  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14003 < else
14004 <   cf_enable_openssl="auto"
14005 < fi
14006 <
14007 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14008 < $as_echo_n "checking for OpenSSL... " >&6; }
14009 < if test "$cf_enable_openssl" != "no"; then
14010 <  cf_openssl_basedir=""
14011 <  if test "$cf_enable_openssl" != "auto" &&
14012 <     test "$cf_enable_openssl" != "yes"; then
14013 <          cf_openssl_basedir="${cf_enable_openssl}"
14014 <  else
14015 <        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14016 <                /opt /opt/openssl /usr/local/openssl; do
14017 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
14018 <        cf_openssl_basedir="${dirs}"
14019 <        break
14020 <      fi
14021 <    done
14022 <    unset dirs
14023 <  fi
14024 <
14025 <    if test ! -z "$cf_openssl_basedir"; then
14026 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14027 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14028 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14029 <    else
14030 <                  cf_openssl_basedir=""
14031 <    fi
14032 <  else
14033 <                            if test -f "/usr/include/openssl/opensslv.h"; then
14034 <      cf_openssl_basedir="/usr"
14035 <    fi
14036 <  fi
14037 <
14038 <      if test ! -z "$cf_openssl_basedir"; then
14039 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14040 < $as_echo "$cf_openssl_basedir" >&6; }
14041 <    cf_enable_openssl="yes"
14042 <  else
14043 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14044 < $as_echo "not found. Please check your path." >&6; }
14045 <    cf_enable_openssl="no"
14046 <  fi
14047 <  unset cf_openssl_basedir
14048 < else
14049 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14050 < $as_echo "disabled" >&6; }
14051 < fi
14052 <
14053 < if test "$cf_enable_openssl" != "no"; then :
14054 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14055 < $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14056 <  if test "$cross_compiling" = yes; then :
14057 <  cf_openssl_version_ok=no
14058 < else
14059 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 < /* end confdefs.h.  */
14061 <
14062 <
14063 <    #include <openssl/opensslv.h>
14064 <    #include <stdlib.h>
14065 < int
14066 < main ()
14067 < {
14068 < exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14069 <  ;
14070 <  return 0;
14071 < }
14072 < _ACEOF
14073 < if ac_fn_c_try_run "$LINENO"; then :
14074 <  cf_openssl_version_ok=yes
14075 < else
14076 <  cf_openssl_version_ok=no
14077 < fi
14078 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14079 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14080 < fi
14081 <
14082 <
14083 <  if test "$cf_openssl_version_ok" = "yes"; then :
14084 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14085 < $as_echo "found" >&6; }
14086 <
14087 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14088 < $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14089 < if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14090 <  $as_echo_n "(cached) " >&6
14091 < else
14092 <  ac_check_lib_save_LIBS=$LIBS
14093 < LIBS="-lcrypto  $LIBS"
14094 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 < /* end confdefs.h.  */
14096 <
14097 < /* Override any GCC internal prototype to avoid an error.
14098 <   Use char because int might match the return type of a GCC
14099 <   builtin and then its argument prototype would still apply.  */
14100 < #ifdef __cplusplus
14101 < extern "C"
14102 < #endif
14103 < char RSA_free ();
14104 < int
14105 < main ()
14106 < {
14107 < return RSA_free ();
14108 <  ;
14109 <  return 0;
14110 < }
14111 < _ACEOF
14112 < if ac_fn_c_try_link "$LINENO"; then :
14113 <  ac_cv_lib_crypto_RSA_free=yes
14114 < else
14115 <  ac_cv_lib_crypto_RSA_free=no
14116 < fi
14117 < rm -f core conftest.err conftest.$ac_objext \
14118 <    conftest$ac_exeext conftest.$ac_ext
14119 < LIBS=$ac_check_lib_save_LIBS
14120 < fi
14121 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14122 < $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14123 < if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14124 <  cat >>confdefs.h <<_ACEOF
14125 < #define HAVE_LIBCRYPTO 1
14126 < _ACEOF
14127 <
14128 <  LIBS="-lcrypto $LIBS"
14129 <
14130 < fi
14131 <
14132 <    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14133 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14134 < $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14135 < if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14136 <  $as_echo_n "(cached) " >&6
14137 < else
14138 <  ac_check_lib_save_LIBS=$LIBS
14139 < LIBS="-lssl  $LIBS"
14140 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 < /* end confdefs.h.  */
14142 <
14143 < /* Override any GCC internal prototype to avoid an error.
14144 <   Use char because int might match the return type of a GCC
14145 <   builtin and then its argument prototype would still apply.  */
14146 < #ifdef __cplusplus
14147 < extern "C"
14148 < #endif
14149 < char SSL_connect ();
14150 < int
14151 < main ()
14152 < {
14153 < return SSL_connect ();
14154 <  ;
14155 <  return 0;
14156 < }
14157 < _ACEOF
14158 < if ac_fn_c_try_link "$LINENO"; then :
14159 <  ac_cv_lib_ssl_SSL_connect=yes
14160 < else
14161 <  ac_cv_lib_ssl_SSL_connect=no
14162 < fi
14163 < rm -f core conftest.err conftest.$ac_objext \
14164 <    conftest$ac_exeext conftest.$ac_ext
14165 < LIBS=$ac_check_lib_save_LIBS
14166 < fi
14167 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14168 < $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14169 < if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14170 <  cat >>confdefs.h <<_ACEOF
14171 < #define HAVE_LIBSSL 1
14172 < _ACEOF
14173 <
14174 <  LIBS="-lssl $LIBS"
14175 <
14176 < fi
14177 <
14178 < fi
14179 <
14180 < else
14181 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14182 < $as_echo "no - OpenSSL support disabled" >&6; }
14183 <    cf_enable_openssl="no"
14184 < fi
14185 < fi
14186 <
14187 < if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14188 <  ENABLE_SSL_TRUE=
14189 <  ENABLE_SSL_FALSE='#'
14190 < else
14191 <  ENABLE_SSL_TRUE='#'
14192 <  ENABLE_SSL_FALSE=
14193 < fi
14194 <
14195 <
14196 <
14197 < # Check whether --enable-assert was given.
14198 < if test "${enable_assert+set}" = set; then :
14199 <  enableval=$enable_assert; assert=$enableval
14200 < else
14201 <  assert=no
14202 < fi
14203 <
14204 <
14205 < if test "$assert" = "no"; then :
14206 <
14207 < $as_echo "#define NDEBUG 1" >>confdefs.h
14208 <
14209 < fi
14210 <
14211 <
14212 < $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14329 > # Define various chunk sizes for the pooling allocator
14330  
14331  
14332   $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
# Line 14221 | Line 14338 | $as_echo "#define MP_CHUNK_SIZE_MEMBER 2
14338   $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14339  
14340  
14341 + $as_echo "#define MP_CHUNK_SIZE_INVITE 4*1024" >>confdefs.h
14342 +
14343 +
14344   $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14345  
14346  
14347 < $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14347 > $as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h
14348  
14349  
14350   $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
# Line 14242 | Line 14362 | $as_echo "#define MP_CHUNK_SIZE_DNS 64*1
14362   $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14363  
14364  
14245 – $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14246 –
14247 –
14365   $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14366  
14367  
14368   $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14369  
14370  
14371 + $as_echo "#define MP_CHUNK_SIZE_WHOWAS 256*1024" >>confdefs.h
14372 +
14373 +
14374 +
14375   # Argument processing.
14376  
14377 <    desired_iopoll_mechanism="none"
14378 <    # Check whether --enable-kqueue was given.
14377 >  desired_iopoll_mechanism="none"
14378 >
14379 >  # Check whether --enable-kqueue was given.
14380   if test "${enable_kqueue+set}" = set; then :
14381    enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14382   fi
# Line 14274 | Line 14396 | if test "${enable_poll+set}" = set; then
14396    enableval=$enable_poll; desired_iopoll_mechanism="poll"
14397   fi
14398  
14277 –  # Check whether --enable-select was given.
14278 – if test "${enable_select+set}" = set; then :
14279 –  enableval=$enable_select; desired_iopoll_mechanism="select"
14280 – fi
14399  
14400 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14400 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14401   $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14402 +
14403    iopoll_mechanism_none=0
14404  
14405   cat >>confdefs.h <<_ACEOF
14406   #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14407   _ACEOF
14408  
14409 <      iopoll_mechanism_kqueue=1
14409 >
14410 >  iopoll_mechanism_kqueue=1
14411  
14412   cat >>confdefs.h <<_ACEOF
14413   #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
# Line 14341 | Line 14461 | else
14461   fi
14462   rm -f core conftest.err conftest.$ac_objext \
14463      conftest$ac_exeext conftest.$ac_ext
14464 <      iopoll_mechanism_epoll=2
14464 >
14465 >  iopoll_mechanism_epoll=2
14466  
14467   cat >>confdefs.h <<_ACEOF
14468   #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14469   _ACEOF
14470  
14350 –  if test "$cross_compiling" = yes; then :
14351 –  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14352 – $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14353 – as_fn_error $? "cannot run test program while cross compiling
14354 – See \`config.log' for more details" "$LINENO" 5; }
14355 – else
14471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472   /* end confdefs.h.  */
14358 –
14473   #include <sys/epoll.h>
14360 – #include <sys/syscall.h>
14361 – #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14362 – #if !defined(__NR_epoll_create)
14363 – #if defined(__ia64__)
14364 – #define __NR_epoll_create 1243
14365 – #elif defined(__x86_64__)
14366 – #define __NR_epoll_create 214
14367 – #elif defined(__sparc64__) || defined(__sparc__)
14368 – #define __NR_epoll_create 193
14369 – #elif defined(__s390__) || defined(__m68k__)
14370 – #define __NR_epoll_create 249
14371 – #elif defined(__ppc64__) || defined(__ppc__)
14372 – #define __NR_epoll_create 236
14373 – #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14374 – #define __NR_epoll_create 224
14375 – #elif defined(__alpha__)
14376 – #define __NR_epoll_create 407
14377 – #elif defined(__sh64__)
14378 – #define __NR_epoll_create 282
14379 – #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14380 – #define __NR_epoll_create 254
14381 – #else
14382 – #error No system call numbers defined for epoll family.
14383 – #endif
14384 – #endif
14385 – _syscall1(int, epoll_create, int, size)
14386 – #endif
14387 –
14474   int
14475   main ()
14476   {
14477 < return epoll_create(256) == -1 ? 1 : 0
14477 > epoll_create(256);
14478    ;
14479    return 0;
14480   }
14481   _ACEOF
14482 < if ac_fn_c_try_run "$LINENO"; then :
14482 > if ac_fn_c_try_link "$LINENO"; then :
14483    is_epoll_mechanism_available="yes"
14484   else
14485    is_epoll_mechanism_available="no"
14486   fi
14487 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14488 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14403 < fi
14487 > rm -f core conftest.err conftest.$ac_objext \
14488 >    conftest$ac_exeext conftest.$ac_ext
14489  
14490 <      iopoll_mechanism_devpoll=3
14490 >  iopoll_mechanism_devpoll=3
14491  
14492   cat >>confdefs.h <<_ACEOF
14493   #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
# Line 14452 | Line 14537 | rm -f core conftest.err conftest.$ac_obj
14537   $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14538  
14539    fi
14540 <      iopoll_mechanism_poll=4
14540 >
14541 >  iopoll_mechanism_poll=4
14542  
14543   cat >>confdefs.h <<_ACEOF
14544   #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
# Line 14506 | Line 14592 | else
14592   fi
14593   rm -f core conftest.err conftest.$ac_objext \
14594      conftest$ac_exeext conftest.$ac_ext
14509 –      iopoll_mechanism_select=5
14595  
14596 < cat >>confdefs.h <<_ACEOF
14597 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14513 < _ACEOF
14514 <
14515 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 < /* end confdefs.h.  */
14517 < /* Define select to an innocuous variant, in case <limits.h> declares select.
14518 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14519 < #define select innocuous_select
14520 <
14521 < /* System header to define __stub macros and hopefully few prototypes,
14522 <    which can conflict with char select (); below.
14523 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14524 <    <limits.h> exists even on freestanding compilers.  */
14525 <
14526 < #ifdef __STDC__
14527 < # include <limits.h>
14528 < #else
14529 < # include <assert.h>
14530 < #endif
14531 <
14532 < #undef select
14533 <
14534 < /* Override any GCC internal prototype to avoid an error.
14535 <   Use char because int might match the return type of a GCC
14536 <   builtin and then its argument prototype would still apply.  */
14537 < #ifdef __cplusplus
14538 < extern "C"
14539 < #endif
14540 < char select ();
14541 < /* The GNU C library defines this for functions which it implements
14542 <    to always fail with ENOSYS.  Some functions are actually named
14543 <    something starting with __ and the normal name is an alias.  */
14544 < #if defined __stub_select || defined __stub___select
14545 < choke me
14546 < #endif
14547 <
14548 < int
14549 < main ()
14550 < {
14551 < return select ();
14552 <  ;
14553 <  return 0;
14554 < }
14555 < _ACEOF
14556 < if ac_fn_c_try_link "$LINENO"; then :
14557 <  is_select_mechanism_available="yes"
14558 < else
14559 <  is_select_mechanism_available="no"
14560 < fi
14561 < rm -f core conftest.err conftest.$ac_objext \
14562 <    conftest$ac_exeext conftest.$ac_ext
14563 <      optimal_iopoll_mechanism="none"
14564 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14596 >  optimal_iopoll_mechanism="none"
14597 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14598      eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14599      if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14600        optimal_iopoll_mechanism="$mechanism"
14601        break
14602      fi
14603    done
14604 <      if test "$desired_iopoll_mechanism" = "none" ; then
14604 >
14605 >  if test "$desired_iopoll_mechanism" = "none" ; then
14606      if test "$optimal_iopoll_mechanism" = "none" ; then
14607        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14608   $as_echo "none" >&6; }
# Line 14590 | Line 14624 | $as_echo "none" >&6; }
14624        as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14625      fi
14626    fi
14627 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14627 >
14628 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14629  
14630   cat >>confdefs.h <<_ACEOF
14631   #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
# Line 14598 | Line 14633 | _ACEOF
14633  
14634  
14635  
14636 +  # Check whether --enable-assert was given.
14637 + if test "${enable_assert+set}" = set; then :
14638 +  enableval=$enable_assert; assert=$enableval
14639 + else
14640 +  assert=no
14641 + fi
14642 +
14643 +
14644 +  if test "$assert" = "no"; then :
14645 +
14646 + $as_echo "#define NDEBUG 1" >>confdefs.h
14647 +
14648 + fi
14649 +
14650 +
14651    # Check whether --enable-debugging was given.
14652   if test "${enable_debugging+set}" = set; then :
14653    enableval=$enable_debugging; debugging="$enableval"
# Line 14605 | Line 14655 | else
14655    debugging="no"
14656   fi
14657  
14658 <  if test "$debugging" = "yes" ; then
14658 >
14659 >  if test "$debugging" = "yes"; then :
14660 >
14661      CFLAGS="-Wall -g -O0"
14662 <  fi
14662 >
14663 > fi
14664  
14665  
14666    # Check whether --enable-warnings was given.
# Line 14617 | Line 14670 | else
14670    warnings="no"
14671   fi
14672  
14673 <  if test "$warnings" = "yes" ; then
14673 >
14674 >  if test "$warnings" = "yes"; then :
14675 >
14676 >
14677 >
14678  
14679  
14680   for flag in -Wall; do
# Line 14652 | Line 14709 | fi
14709   eval ac_res=\$$as_CACHEVAR
14710                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14711   $as_echo "$ac_res" >&6; }
14712 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14713 <  if ${CFLAGS+:} false; then :
14714 <  case " $CFLAGS " in
14715 <    *" $flag "*)
14716 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14712 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14713 >
14714 > if ${CFLAGS+:} false; then :
14715 >
14716 >  case " $CFLAGS " in #(
14717 >  *" $flag "*) :
14718 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14719    (: CFLAGS already contains $flag) 2>&5
14720    ac_status=$?
14721    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14722 <  test $ac_status = 0; }
14723 <      ;;
14724 <    *)
14725 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14726 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14722 >  test $ac_status = 0; } ;; #(
14723 >  *) :
14724 >
14725 >     as_fn_append CFLAGS " $flag"
14726 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14727 >  (: CFLAGS="$CFLAGS") 2>&5
14728    ac_status=$?
14729    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14730    test $ac_status = 0; }
14731 <      CFLAGS="$CFLAGS $flag"
14732 <      ;;
14733 <   esac
14731 >     ;;
14732 > esac
14733 >
14734   else
14735 <  CFLAGS="$flag"
14735 >
14736 >  CFLAGS=$flag
14737 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14738 >  (: CFLAGS="$CFLAGS") 2>&5
14739 >  ac_status=$?
14740 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14741 >  test $ac_status = 0; }
14742 >
14743   fi
14744  
14745   else
# Line 14683 | Line 14750 | done
14750  
14751  
14752  
14753 < for flag in -Wextra; do
14753 >
14754 >
14755 > for flag in -Wbad-function-cast; do
14756    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14758   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14715 | Line 14784 | fi
14784   eval ac_res=\$$as_CACHEVAR
14785                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14786   $as_echo "$ac_res" >&6; }
14787 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14788 <  if ${CFLAGS+:} false; then :
14789 <  case " $CFLAGS " in
14790 <    *" $flag "*)
14791 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14787 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14788 >
14789 > if ${CFLAGS+:} false; then :
14790 >
14791 >  case " $CFLAGS " in #(
14792 >  *" $flag "*) :
14793 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14794    (: CFLAGS already contains $flag) 2>&5
14795    ac_status=$?
14796    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14797 <  test $ac_status = 0; }
14798 <      ;;
14799 <    *)
14800 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14801 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14797 >  test $ac_status = 0; } ;; #(
14798 >  *) :
14799 >
14800 >     as_fn_append CFLAGS " $flag"
14801 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14802 >  (: CFLAGS="$CFLAGS") 2>&5
14803    ac_status=$?
14804    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14805    test $ac_status = 0; }
14806 <      CFLAGS="$CFLAGS $flag"
14807 <      ;;
14808 <   esac
14806 >     ;;
14807 > esac
14808 >
14809   else
14810 <  CFLAGS="$flag"
14810 >
14811 >  CFLAGS=$flag
14812 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14813 >  (: CFLAGS="$CFLAGS") 2>&5
14814 >  ac_status=$?
14815 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816 >  test $ac_status = 0; }
14817 >
14818   fi
14819  
14820   else
# Line 14746 | Line 14825 | done
14825  
14826  
14827  
14828 < for flag in -Wno-unused; do
14828 >
14829 >
14830 > for flag in -Wcast-align; do
14831    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14833   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14778 | Line 14859 | fi
14859   eval ac_res=\$$as_CACHEVAR
14860                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14861   $as_echo "$ac_res" >&6; }
14862 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14863 <  if ${CFLAGS+:} false; then :
14864 <  case " $CFLAGS " in
14865 <    *" $flag "*)
14866 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14862 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14863 >
14864 > if ${CFLAGS+:} false; then :
14865 >
14866 >  case " $CFLAGS " in #(
14867 >  *" $flag "*) :
14868 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14869    (: CFLAGS already contains $flag) 2>&5
14870    ac_status=$?
14871    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 <  test $ac_status = 0; }
14873 <      ;;
14874 <    *)
14875 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14876 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14872 >  test $ac_status = 0; } ;; #(
14873 >  *) :
14874 >
14875 >     as_fn_append CFLAGS " $flag"
14876 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14877 >  (: CFLAGS="$CFLAGS") 2>&5
14878    ac_status=$?
14879    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14880    test $ac_status = 0; }
14881 <      CFLAGS="$CFLAGS $flag"
14882 <      ;;
14883 <   esac
14881 >     ;;
14882 > esac
14883 >
14884   else
14885 <  CFLAGS="$flag"
14885 >
14886 >  CFLAGS=$flag
14887 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14888 >  (: CFLAGS="$CFLAGS") 2>&5
14889 >  ac_status=$?
14890 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891 >  test $ac_status = 0; }
14892 >
14893   fi
14894  
14895   else
# Line 14809 | Line 14900 | done
14900  
14901  
14902  
14903 +
14904 +
14905   for flag in -Wcast-qual; do
14906    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14841 | Line 14934 | fi
14934   eval ac_res=\$$as_CACHEVAR
14935                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14936   $as_echo "$ac_res" >&6; }
14937 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14938 <  if ${CFLAGS+:} false; then :
14939 <  case " $CFLAGS " in
14940 <    *" $flag "*)
14941 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14937 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14938 >
14939 > if ${CFLAGS+:} false; then :
14940 >
14941 >  case " $CFLAGS " in #(
14942 >  *" $flag "*) :
14943 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14944    (: CFLAGS already contains $flag) 2>&5
14945    ac_status=$?
14946    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14947 <  test $ac_status = 0; }
14948 <      ;;
14949 <    *)
14950 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14951 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14947 >  test $ac_status = 0; } ;; #(
14948 >  *) :
14949 >
14950 >     as_fn_append CFLAGS " $flag"
14951 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14952 >  (: CFLAGS="$CFLAGS") 2>&5
14953    ac_status=$?
14954    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955    test $ac_status = 0; }
14956 <      CFLAGS="$CFLAGS $flag"
14957 <      ;;
14958 <   esac
14956 >     ;;
14957 > esac
14958 >
14959   else
14960 <  CFLAGS="$flag"
14960 >
14961 >  CFLAGS=$flag
14962 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14963 >  (: CFLAGS="$CFLAGS") 2>&5
14964 >  ac_status=$?
14965 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14966 >  test $ac_status = 0; }
14967 >
14968   fi
14969  
14970   else
# Line 14872 | Line 14975 | done
14975  
14976  
14977  
14978 < for flag in -Wcast-align; do
14978 >
14979 >
14980 > for flag in -Wclobbered; do
14981    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14983   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14904 | Line 15009 | fi
15009   eval ac_res=\$$as_CACHEVAR
15010                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15011   $as_echo "$ac_res" >&6; }
15012 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15013 <  if ${CFLAGS+:} false; then :
15014 <  case " $CFLAGS " in
15015 <    *" $flag "*)
15016 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15012 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15013 >
15014 > if ${CFLAGS+:} false; then :
15015 >
15016 >  case " $CFLAGS " in #(
15017 >  *" $flag "*) :
15018 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15019    (: CFLAGS already contains $flag) 2>&5
15020    ac_status=$?
15021    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15022 +  test $ac_status = 0; } ;; #(
15023 +  *) :
15024 +
15025 +     as_fn_append CFLAGS " $flag"
15026 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15027 +  (: CFLAGS="$CFLAGS") 2>&5
15028 +  ac_status=$?
15029 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030    test $ac_status = 0; }
15031 <      ;;
15032 <    *)
15033 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15034 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15031 >     ;;
15032 > esac
15033 >
15034 > else
15035 >
15036 >  CFLAGS=$flag
15037 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15038 >  (: CFLAGS="$CFLAGS") 2>&5
15039    ac_status=$?
15040    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15041    test $ac_status = 0; }
15042 <      CFLAGS="$CFLAGS $flag"
15043 <      ;;
15044 <   esac
15042 >
15043 > fi
15044 >
15045 > else
15046 >  :
15047 > fi
15048 >
15049 > done
15050 >
15051 >
15052 >
15053 >
15054 >
15055 > for flag in -Wduplicated-cond; do
15056 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15057 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15058 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15059 > if eval \${$as_CACHEVAR+:} false; then :
15060 >  $as_echo_n "(cached) " >&6
15061 > else
15062 >
15063 >  ax_check_save_flags=$CFLAGS
15064 >  CFLAGS="$CFLAGS  $flag"
15065 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 > /* end confdefs.h.  */
15067 >
15068 > int
15069 > main ()
15070 > {
15071 >
15072 >  ;
15073 >  return 0;
15074 > }
15075 > _ACEOF
15076 > if ac_fn_c_try_compile "$LINENO"; then :
15077 >  eval "$as_CACHEVAR=yes"
15078   else
15079 <  CFLAGS="$flag"
15079 >  eval "$as_CACHEVAR=no"
15080 > fi
15081 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 >  CFLAGS=$ax_check_save_flags
15083 > fi
15084 > eval ac_res=\$$as_CACHEVAR
15085 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15086 > $as_echo "$ac_res" >&6; }
15087 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15088 >
15089 > if ${CFLAGS+:} false; then :
15090 >
15091 >  case " $CFLAGS " in #(
15092 >  *" $flag "*) :
15093 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15094 >  (: CFLAGS already contains $flag) 2>&5
15095 >  ac_status=$?
15096 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15097 >  test $ac_status = 0; } ;; #(
15098 >  *) :
15099 >
15100 >     as_fn_append CFLAGS " $flag"
15101 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15102 >  (: CFLAGS="$CFLAGS") 2>&5
15103 >  ac_status=$?
15104 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15105 >  test $ac_status = 0; }
15106 >     ;;
15107 > esac
15108 >
15109 > else
15110 >
15111 >  CFLAGS=$flag
15112 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15113 >  (: CFLAGS="$CFLAGS") 2>&5
15114 >  ac_status=$?
15115 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15116 >  test $ac_status = 0; }
15117 >
15118   fi
15119  
15120   else
# Line 14935 | Line 15125 | done
15125  
15126  
15127  
15128 < for flag in -Wbad-function-cast; do
15128 >
15129 >
15130 > for flag in -Wempty-body; do
15131    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15133   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14967 | Line 15159 | fi
15159   eval ac_res=\$$as_CACHEVAR
15160                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15161   $as_echo "$ac_res" >&6; }
15162 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15163 <  if ${CFLAGS+:} false; then :
15164 <  case " $CFLAGS " in
15165 <    *" $flag "*)
15166 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15162 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15163 >
15164 > if ${CFLAGS+:} false; then :
15165 >
15166 >  case " $CFLAGS " in #(
15167 >  *" $flag "*) :
15168 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15169    (: CFLAGS already contains $flag) 2>&5
15170    ac_status=$?
15171    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172 +  test $ac_status = 0; } ;; #(
15173 +  *) :
15174 +
15175 +     as_fn_append CFLAGS " $flag"
15176 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15177 +  (: CFLAGS="$CFLAGS") 2>&5
15178 +  ac_status=$?
15179 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180    test $ac_status = 0; }
15181 <      ;;
15182 <    *)
15183 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15184 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15181 >     ;;
15182 > esac
15183 >
15184 > else
15185 >
15186 >  CFLAGS=$flag
15187 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15188 >  (: CFLAGS="$CFLAGS") 2>&5
15189    ac_status=$?
15190    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191    test $ac_status = 0; }
15192 <      CFLAGS="$CFLAGS $flag"
15193 <      ;;
15194 <   esac
15192 >
15193 > fi
15194 >
15195 > else
15196 >  :
15197 > fi
15198 >
15199 > done
15200 >
15201 >
15202 >
15203 >
15204 >
15205 > for flag in -Wignored-qualifiers; do
15206 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15207 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15208 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15209 > if eval \${$as_CACHEVAR+:} false; then :
15210 >  $as_echo_n "(cached) " >&6
15211 > else
15212 >
15213 >  ax_check_save_flags=$CFLAGS
15214 >  CFLAGS="$CFLAGS  $flag"
15215 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 > /* end confdefs.h.  */
15217 >
15218 > int
15219 > main ()
15220 > {
15221 >
15222 >  ;
15223 >  return 0;
15224 > }
15225 > _ACEOF
15226 > if ac_fn_c_try_compile "$LINENO"; then :
15227 >  eval "$as_CACHEVAR=yes"
15228 > else
15229 >  eval "$as_CACHEVAR=no"
15230 > fi
15231 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232 >  CFLAGS=$ax_check_save_flags
15233 > fi
15234 > eval ac_res=\$$as_CACHEVAR
15235 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15236 > $as_echo "$ac_res" >&6; }
15237 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15238 >
15239 > if ${CFLAGS+:} false; then :
15240 >
15241 >  case " $CFLAGS " in #(
15242 >  *" $flag "*) :
15243 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15244 >  (: CFLAGS already contains $flag) 2>&5
15245 >  ac_status=$?
15246 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247 >  test $ac_status = 0; } ;; #(
15248 >  *) :
15249 >
15250 >     as_fn_append CFLAGS " $flag"
15251 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15252 >  (: CFLAGS="$CFLAGS") 2>&5
15253 >  ac_status=$?
15254 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15255 >  test $ac_status = 0; }
15256 >     ;;
15257 > esac
15258 >
15259   else
15260 <  CFLAGS="$flag"
15260 >
15261 >  CFLAGS=$flag
15262 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15263 >  (: CFLAGS="$CFLAGS") 2>&5
15264 >  ac_status=$?
15265 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266 >  test $ac_status = 0; }
15267 >
15268   fi
15269  
15270   else
# Line 14998 | Line 15275 | done
15275  
15276  
15277  
15278 +
15279 +
15280   for flag in -Wlogical-op; do
15281    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15030 | Line 15309 | fi
15309   eval ac_res=\$$as_CACHEVAR
15310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15311   $as_echo "$ac_res" >&6; }
15312 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15313 <  if ${CFLAGS+:} false; then :
15314 <  case " $CFLAGS " in
15315 <    *" $flag "*)
15316 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15312 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15313 >
15314 > if ${CFLAGS+:} false; then :
15315 >
15316 >  case " $CFLAGS " in #(
15317 >  *" $flag "*) :
15318 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15319    (: CFLAGS already contains $flag) 2>&5
15320    ac_status=$?
15321    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15322 <  test $ac_status = 0; }
15323 <      ;;
15324 <    *)
15325 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15326 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15322 >  test $ac_status = 0; } ;; #(
15323 >  *) :
15324 >
15325 >     as_fn_append CFLAGS " $flag"
15326 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15327 >  (: CFLAGS="$CFLAGS") 2>&5
15328    ac_status=$?
15329    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330    test $ac_status = 0; }
15331 <      CFLAGS="$CFLAGS $flag"
15332 <      ;;
15333 <   esac
15331 >     ;;
15332 > esac
15333 >
15334   else
15335 <  CFLAGS="$flag"
15335 >
15336 >  CFLAGS=$flag
15337 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15338 >  (: CFLAGS="$CFLAGS") 2>&5
15339 >  ac_status=$?
15340 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15341 >  test $ac_status = 0; }
15342 >
15343   fi
15344  
15345   else
# Line 15061 | Line 15350 | done
15350  
15351  
15352  
15353 +
15354 +
15355   for flag in -Wmissing-declarations; do
15356    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15093 | Line 15384 | fi
15384   eval ac_res=\$$as_CACHEVAR
15385                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15386   $as_echo "$ac_res" >&6; }
15387 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15388 <  if ${CFLAGS+:} false; then :
15389 <  case " $CFLAGS " in
15390 <    *" $flag "*)
15391 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15387 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15388 >
15389 > if ${CFLAGS+:} false; then :
15390 >
15391 >  case " $CFLAGS " in #(
15392 >  *" $flag "*) :
15393 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15394    (: CFLAGS already contains $flag) 2>&5
15395    ac_status=$?
15396    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 +  test $ac_status = 0; } ;; #(
15398 +  *) :
15399 +
15400 +     as_fn_append CFLAGS " $flag"
15401 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15402 +  (: CFLAGS="$CFLAGS") 2>&5
15403 +  ac_status=$?
15404 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15405    test $ac_status = 0; }
15406 <      ;;
15407 <    *)
15408 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15409 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15406 >     ;;
15407 > esac
15408 >
15409 > else
15410 >
15411 >  CFLAGS=$flag
15412 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15413 >  (: CFLAGS="$CFLAGS") 2>&5
15414    ac_status=$?
15415    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15416    test $ac_status = 0; }
15417 <      CFLAGS="$CFLAGS $flag"
15418 <      ;;
15419 <   esac
15417 >
15418 > fi
15419 >
15420 > else
15421 >  :
15422 > fi
15423 >
15424 > done
15425 >
15426 >
15427 >
15428 >
15429 >
15430 > for flag in -Wmissing-field-initializers; do
15431 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15432 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15433 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15434 > if eval \${$as_CACHEVAR+:} false; then :
15435 >  $as_echo_n "(cached) " >&6
15436 > else
15437 >
15438 >  ax_check_save_flags=$CFLAGS
15439 >  CFLAGS="$CFLAGS  $flag"
15440 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 > /* end confdefs.h.  */
15442 >
15443 > int
15444 > main ()
15445 > {
15446 >
15447 >  ;
15448 >  return 0;
15449 > }
15450 > _ACEOF
15451 > if ac_fn_c_try_compile "$LINENO"; then :
15452 >  eval "$as_CACHEVAR=yes"
15453 > else
15454 >  eval "$as_CACHEVAR=no"
15455 > fi
15456 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 >  CFLAGS=$ax_check_save_flags
15458 > fi
15459 > eval ac_res=\$$as_CACHEVAR
15460 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15461 > $as_echo "$ac_res" >&6; }
15462 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15463 >
15464 > if ${CFLAGS+:} false; then :
15465 >
15466 >  case " $CFLAGS " in #(
15467 >  *" $flag "*) :
15468 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15469 >  (: CFLAGS already contains $flag) 2>&5
15470 >  ac_status=$?
15471 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15472 >  test $ac_status = 0; } ;; #(
15473 >  *) :
15474 >
15475 >     as_fn_append CFLAGS " $flag"
15476 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15477 >  (: CFLAGS="$CFLAGS") 2>&5
15478 >  ac_status=$?
15479 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15480 >  test $ac_status = 0; }
15481 >     ;;
15482 > esac
15483 >
15484   else
15485 <  CFLAGS="$flag"
15485 >
15486 >  CFLAGS=$flag
15487 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15488 >  (: CFLAGS="$CFLAGS") 2>&5
15489 >  ac_status=$?
15490 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15491 >  test $ac_status = 0; }
15492 >
15493   fi
15494  
15495   else
# Line 15124 | Line 15500 | done
15500  
15501  
15502  
15503 +
15504 +
15505   for flag in -Wmissing-include-dirs; do
15506    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15156 | Line 15534 | fi
15534   eval ac_res=\$$as_CACHEVAR
15535                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15536   $as_echo "$ac_res" >&6; }
15537 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15538 <  if ${CFLAGS+:} false; then :
15539 <  case " $CFLAGS " in
15540 <    *" $flag "*)
15541 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15537 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15538 >
15539 > if ${CFLAGS+:} false; then :
15540 >
15541 >  case " $CFLAGS " in #(
15542 >  *" $flag "*) :
15543 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15544    (: CFLAGS already contains $flag) 2>&5
15545    ac_status=$?
15546    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15547 +  test $ac_status = 0; } ;; #(
15548 +  *) :
15549 +
15550 +     as_fn_append CFLAGS " $flag"
15551 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15552 +  (: CFLAGS="$CFLAGS") 2>&5
15553 +  ac_status=$?
15554 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15555    test $ac_status = 0; }
15556 <      ;;
15557 <    *)
15558 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15559 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15556 >     ;;
15557 > esac
15558 >
15559 > else
15560 >
15561 >  CFLAGS=$flag
15562 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15563 >  (: CFLAGS="$CFLAGS") 2>&5
15564    ac_status=$?
15565    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15566    test $ac_status = 0; }
15567 <      CFLAGS="$CFLAGS $flag"
15568 <      ;;
15569 <   esac
15567 >
15568 > fi
15569 >
15570   else
15571 <  CFLAGS="$flag"
15571 >  :
15572 > fi
15573 >
15574 > done
15575 >
15576 >
15577 >
15578 >
15579 >
15580 > for flag in -Wmissing-parameter-type; do
15581 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15582 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15583 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15584 > if eval \${$as_CACHEVAR+:} false; then :
15585 >  $as_echo_n "(cached) " >&6
15586 > else
15587 >
15588 >  ax_check_save_flags=$CFLAGS
15589 >  CFLAGS="$CFLAGS  $flag"
15590 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 > /* end confdefs.h.  */
15592 >
15593 > int
15594 > main ()
15595 > {
15596 >
15597 >  ;
15598 >  return 0;
15599 > }
15600 > _ACEOF
15601 > if ac_fn_c_try_compile "$LINENO"; then :
15602 >  eval "$as_CACHEVAR=yes"
15603 > else
15604 >  eval "$as_CACHEVAR=no"
15605 > fi
15606 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 >  CFLAGS=$ax_check_save_flags
15608 > fi
15609 > eval ac_res=\$$as_CACHEVAR
15610 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15611 > $as_echo "$ac_res" >&6; }
15612 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15613 >
15614 > if ${CFLAGS+:} false; then :
15615 >
15616 >  case " $CFLAGS " in #(
15617 >  *" $flag "*) :
15618 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15619 >  (: CFLAGS already contains $flag) 2>&5
15620 >  ac_status=$?
15621 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15622 >  test $ac_status = 0; } ;; #(
15623 >  *) :
15624 >
15625 >     as_fn_append CFLAGS " $flag"
15626 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15627 >  (: CFLAGS="$CFLAGS") 2>&5
15628 >  ac_status=$?
15629 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15630 >  test $ac_status = 0; }
15631 >     ;;
15632 > esac
15633 >
15634 > else
15635 >
15636 >  CFLAGS=$flag
15637 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15638 >  (: CFLAGS="$CFLAGS") 2>&5
15639 >  ac_status=$?
15640 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15641 >  test $ac_status = 0; }
15642 >
15643   fi
15644  
15645   else
# Line 15187 | Line 15650 | done
15650  
15651  
15652  
15653 +
15654 +
15655   for flag in -Wmissing-prototypes; do
15656    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15219 | Line 15684 | fi
15684   eval ac_res=\$$as_CACHEVAR
15685                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15686   $as_echo "$ac_res" >&6; }
15687 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15688 <  if ${CFLAGS+:} false; then :
15689 <  case " $CFLAGS " in
15690 <    *" $flag "*)
15691 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15687 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15688 >
15689 > if ${CFLAGS+:} false; then :
15690 >
15691 >  case " $CFLAGS " in #(
15692 >  *" $flag "*) :
15693 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15694    (: CFLAGS already contains $flag) 2>&5
15695    ac_status=$?
15696    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15697 <  test $ac_status = 0; }
15698 <      ;;
15699 <    *)
15700 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15701 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15697 >  test $ac_status = 0; } ;; #(
15698 >  *) :
15699 >
15700 >     as_fn_append CFLAGS " $flag"
15701 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15702 >  (: CFLAGS="$CFLAGS") 2>&5
15703    ac_status=$?
15704    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15705    test $ac_status = 0; }
15706 <      CFLAGS="$CFLAGS $flag"
15707 <      ;;
15708 <   esac
15706 >     ;;
15707 > esac
15708 >
15709   else
15710 <  CFLAGS="$flag"
15710 >
15711 >  CFLAGS=$flag
15712 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15713 >  (: CFLAGS="$CFLAGS") 2>&5
15714 >  ac_status=$?
15715 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15716 >  test $ac_status = 0; }
15717 >
15718   fi
15719  
15720   else
# Line 15250 | Line 15725 | done
15725  
15726  
15727  
15728 +
15729 +
15730   for flag in -Wnested-externs; do
15731    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15282 | Line 15759 | fi
15759   eval ac_res=\$$as_CACHEVAR
15760                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15761   $as_echo "$ac_res" >&6; }
15762 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15763 <  if ${CFLAGS+:} false; then :
15764 <  case " $CFLAGS " in
15765 <    *" $flag "*)
15766 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15762 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15763 >
15764 > if ${CFLAGS+:} false; then :
15765 >
15766 >  case " $CFLAGS " in #(
15767 >  *" $flag "*) :
15768 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15769    (: CFLAGS already contains $flag) 2>&5
15770    ac_status=$?
15771    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15772 +  test $ac_status = 0; } ;; #(
15773 +  *) :
15774 +
15775 +     as_fn_append CFLAGS " $flag"
15776 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15777 +  (: CFLAGS="$CFLAGS") 2>&5
15778 +  ac_status=$?
15779 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15780    test $ac_status = 0; }
15781 <      ;;
15782 <    *)
15783 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15784 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15781 >     ;;
15782 > esac
15783 >
15784 > else
15785 >
15786 >  CFLAGS=$flag
15787 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15788 >  (: CFLAGS="$CFLAGS") 2>&5
15789    ac_status=$?
15790    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15791    test $ac_status = 0; }
15792 <      CFLAGS="$CFLAGS $flag"
15793 <      ;;
15794 <   esac
15792 >
15793 > fi
15794 >
15795 > else
15796 >  :
15797 > fi
15798 >
15799 > done
15800 >
15801 >
15802 >
15803 >
15804 >
15805 > for flag in -Wold-style-declaration; do
15806 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15807 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15808 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15809 > if eval \${$as_CACHEVAR+:} false; then :
15810 >  $as_echo_n "(cached) " >&6
15811 > else
15812 >
15813 >  ax_check_save_flags=$CFLAGS
15814 >  CFLAGS="$CFLAGS  $flag"
15815 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 > /* end confdefs.h.  */
15817 >
15818 > int
15819 > main ()
15820 > {
15821 >
15822 >  ;
15823 >  return 0;
15824 > }
15825 > _ACEOF
15826 > if ac_fn_c_try_compile "$LINENO"; then :
15827 >  eval "$as_CACHEVAR=yes"
15828   else
15829 <  CFLAGS="$flag"
15829 >  eval "$as_CACHEVAR=no"
15830 > fi
15831 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 >  CFLAGS=$ax_check_save_flags
15833 > fi
15834 > eval ac_res=\$$as_CACHEVAR
15835 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15836 > $as_echo "$ac_res" >&6; }
15837 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15838 >
15839 > if ${CFLAGS+:} false; then :
15840 >
15841 >  case " $CFLAGS " in #(
15842 >  *" $flag "*) :
15843 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15844 >  (: CFLAGS already contains $flag) 2>&5
15845 >  ac_status=$?
15846 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15847 >  test $ac_status = 0; } ;; #(
15848 >  *) :
15849 >
15850 >     as_fn_append CFLAGS " $flag"
15851 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15852 >  (: CFLAGS="$CFLAGS") 2>&5
15853 >  ac_status=$?
15854 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15855 >  test $ac_status = 0; }
15856 >     ;;
15857 > esac
15858 >
15859 > else
15860 >
15861 >  CFLAGS=$flag
15862 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15863 >  (: CFLAGS="$CFLAGS") 2>&5
15864 >  ac_status=$?
15865 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15866 >  test $ac_status = 0; }
15867 >
15868   fi
15869  
15870   else
# Line 15313 | Line 15875 | done
15875  
15876  
15877  
15878 < for flag in -Wpointer-arith; do
15878 >
15879 >
15880 > for flag in -Woverride-init; do
15881    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15883   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15345 | Line 15909 | fi
15909   eval ac_res=\$$as_CACHEVAR
15910                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15911   $as_echo "$ac_res" >&6; }
15912 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15913 <  if ${CFLAGS+:} false; then :
15914 <  case " $CFLAGS " in
15915 <    *" $flag "*)
15916 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15912 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15913 >
15914 > if ${CFLAGS+:} false; then :
15915 >
15916 >  case " $CFLAGS " in #(
15917 >  *" $flag "*) :
15918 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15919    (: CFLAGS already contains $flag) 2>&5
15920    ac_status=$?
15921    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15922 +  test $ac_status = 0; } ;; #(
15923 +  *) :
15924 +
15925 +     as_fn_append CFLAGS " $flag"
15926 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15927 +  (: CFLAGS="$CFLAGS") 2>&5
15928 +  ac_status=$?
15929 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15930    test $ac_status = 0; }
15931 <      ;;
15932 <    *)
15933 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15934 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15931 >     ;;
15932 > esac
15933 >
15934 > else
15935 >
15936 >  CFLAGS=$flag
15937 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15938 >  (: CFLAGS="$CFLAGS") 2>&5
15939    ac_status=$?
15940    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15941    test $ac_status = 0; }
15942 <      CFLAGS="$CFLAGS $flag"
15943 <      ;;
15944 <   esac
15942 >
15943 > fi
15944 >
15945 > else
15946 >  :
15947 > fi
15948 >
15949 > done
15950 >
15951 >
15952 >
15953 >
15954 >
15955 > for flag in -Wpointer-arith; do
15956 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15957 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15958 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15959 > if eval \${$as_CACHEVAR+:} false; then :
15960 >  $as_echo_n "(cached) " >&6
15961 > else
15962 >
15963 >  ax_check_save_flags=$CFLAGS
15964 >  CFLAGS="$CFLAGS  $flag"
15965 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966 > /* end confdefs.h.  */
15967 >
15968 > int
15969 > main ()
15970 > {
15971 >
15972 >  ;
15973 >  return 0;
15974 > }
15975 > _ACEOF
15976 > if ac_fn_c_try_compile "$LINENO"; then :
15977 >  eval "$as_CACHEVAR=yes"
15978 > else
15979 >  eval "$as_CACHEVAR=no"
15980 > fi
15981 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 >  CFLAGS=$ax_check_save_flags
15983 > fi
15984 > eval ac_res=\$$as_CACHEVAR
15985 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15986 > $as_echo "$ac_res" >&6; }
15987 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15988 >
15989 > if ${CFLAGS+:} false; then :
15990 >
15991 >  case " $CFLAGS " in #(
15992 >  *" $flag "*) :
15993 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15994 >  (: CFLAGS already contains $flag) 2>&5
15995 >  ac_status=$?
15996 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997 >  test $ac_status = 0; } ;; #(
15998 >  *) :
15999 >
16000 >     as_fn_append CFLAGS " $flag"
16001 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16002 >  (: CFLAGS="$CFLAGS") 2>&5
16003 >  ac_status=$?
16004 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 >  test $ac_status = 0; }
16006 >     ;;
16007 > esac
16008 >
16009   else
16010 <  CFLAGS="$flag"
16010 >
16011 >  CFLAGS=$flag
16012 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16013 >  (: CFLAGS="$CFLAGS") 2>&5
16014 >  ac_status=$?
16015 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16016 >  test $ac_status = 0; }
16017 >
16018   fi
16019  
16020   else
# Line 15376 | Line 16025 | done
16025  
16026  
16027  
16028 +
16029 +
16030   for flag in -Wredundant-decls; do
16031    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15408 | Line 16059 | fi
16059   eval ac_res=\$$as_CACHEVAR
16060                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16061   $as_echo "$ac_res" >&6; }
16062 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16063 <  if ${CFLAGS+:} false; then :
16064 <  case " $CFLAGS " in
16065 <    *" $flag "*)
16066 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16062 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16063 >
16064 > if ${CFLAGS+:} false; then :
16065 >
16066 >  case " $CFLAGS " in #(
16067 >  *" $flag "*) :
16068 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16069    (: CFLAGS already contains $flag) 2>&5
16070    ac_status=$?
16071    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16072 <  test $ac_status = 0; }
16073 <      ;;
16074 <    *)
16075 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16076 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16072 >  test $ac_status = 0; } ;; #(
16073 >  *) :
16074 >
16075 >     as_fn_append CFLAGS " $flag"
16076 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16077 >  (: CFLAGS="$CFLAGS") 2>&5
16078    ac_status=$?
16079    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16080    test $ac_status = 0; }
16081 <      CFLAGS="$CFLAGS $flag"
16082 <      ;;
16083 <   esac
16081 >     ;;
16082 > esac
16083 >
16084   else
16085 <  CFLAGS="$flag"
16085 >
16086 >  CFLAGS=$flag
16087 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16088 >  (: CFLAGS="$CFLAGS") 2>&5
16089 >  ac_status=$?
16090 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16091 >  test $ac_status = 0; }
16092 >
16093   fi
16094  
16095   else
# Line 15439 | Line 16100 | done
16100  
16101  
16102  
16103 +
16104 +
16105   for flag in -Wshadow; do
16106    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15471 | Line 16134 | fi
16134   eval ac_res=\$$as_CACHEVAR
16135                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16136   $as_echo "$ac_res" >&6; }
16137 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16138 <  if ${CFLAGS+:} false; then :
16139 <  case " $CFLAGS " in
16140 <    *" $flag "*)
16141 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16137 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16138 >
16139 > if ${CFLAGS+:} false; then :
16140 >
16141 >  case " $CFLAGS " in #(
16142 >  *" $flag "*) :
16143 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16144    (: CFLAGS already contains $flag) 2>&5
16145    ac_status=$?
16146    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147 <  test $ac_status = 0; }
16148 <      ;;
16149 <    *)
16150 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16151 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16147 >  test $ac_status = 0; } ;; #(
16148 >  *) :
16149 >
16150 >     as_fn_append CFLAGS " $flag"
16151 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16152 >  (: CFLAGS="$CFLAGS") 2>&5
16153    ac_status=$?
16154    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16155    test $ac_status = 0; }
16156 <      CFLAGS="$CFLAGS $flag"
16157 <      ;;
16158 <   esac
16156 >     ;;
16157 > esac
16158 >
16159   else
16160 <  CFLAGS="$flag"
16160 >
16161 >  CFLAGS=$flag
16162 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16163 >  (: CFLAGS="$CFLAGS") 2>&5
16164 >  ac_status=$?
16165 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16166 >  test $ac_status = 0; }
16167 >
16168   fi
16169  
16170   else
# Line 15502 | Line 16175 | done
16175  
16176  
16177  
16178 < for flag in -Wwrite-strings; do
16178 >
16179 >
16180 > for flag in -Wsign-compare; do
16181    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16183   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15534 | Line 16209 | fi
16209   eval ac_res=\$$as_CACHEVAR
16210                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16211   $as_echo "$ac_res" >&6; }
16212 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16213 <  if ${CFLAGS+:} false; then :
16214 <  case " $CFLAGS " in
16215 <    *" $flag "*)
16216 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16212 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16213 >
16214 > if ${CFLAGS+:} false; then :
16215 >
16216 >  case " $CFLAGS " in #(
16217 >  *" $flag "*) :
16218 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16219    (: CFLAGS already contains $flag) 2>&5
16220    ac_status=$?
16221    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16222 +  test $ac_status = 0; } ;; #(
16223 +  *) :
16224 +
16225 +     as_fn_append CFLAGS " $flag"
16226 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16227 +  (: CFLAGS="$CFLAGS") 2>&5
16228 +  ac_status=$?
16229 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16230    test $ac_status = 0; }
16231 <      ;;
16232 <    *)
16233 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16234 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16231 >     ;;
16232 > esac
16233 >
16234 > else
16235 >
16236 >  CFLAGS=$flag
16237 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16238 >  (: CFLAGS="$CFLAGS") 2>&5
16239    ac_status=$?
16240    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16241    test $ac_status = 0; }
16242 <      CFLAGS="$CFLAGS $flag"
16243 <      ;;
16244 <   esac
16242 >
16243 > fi
16244 >
16245   else
16246 <  CFLAGS="$flag"
16246 >  :
16247 > fi
16248 >
16249 > done
16250 >
16251 >
16252 >
16253 >
16254 >
16255 > for flag in -Wtype-limits; do
16256 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16257 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16258 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16259 > if eval \${$as_CACHEVAR+:} false; then :
16260 >  $as_echo_n "(cached) " >&6
16261 > else
16262 >
16263 >  ax_check_save_flags=$CFLAGS
16264 >  CFLAGS="$CFLAGS  $flag"
16265 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 > /* end confdefs.h.  */
16267 >
16268 > int
16269 > main ()
16270 > {
16271 >
16272 >  ;
16273 >  return 0;
16274 > }
16275 > _ACEOF
16276 > if ac_fn_c_try_compile "$LINENO"; then :
16277 >  eval "$as_CACHEVAR=yes"
16278 > else
16279 >  eval "$as_CACHEVAR=no"
16280 > fi
16281 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16282 >  CFLAGS=$ax_check_save_flags
16283 > fi
16284 > eval ac_res=\$$as_CACHEVAR
16285 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16286 > $as_echo "$ac_res" >&6; }
16287 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16288 >
16289 > if ${CFLAGS+:} false; then :
16290 >
16291 >  case " $CFLAGS " in #(
16292 >  *" $flag "*) :
16293 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16294 >  (: CFLAGS already contains $flag) 2>&5
16295 >  ac_status=$?
16296 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 >  test $ac_status = 0; } ;; #(
16298 >  *) :
16299 >
16300 >     as_fn_append CFLAGS " $flag"
16301 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16302 >  (: CFLAGS="$CFLAGS") 2>&5
16303 >  ac_status=$?
16304 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16305 >  test $ac_status = 0; }
16306 >     ;;
16307 > esac
16308 >
16309 > else
16310 >
16311 >  CFLAGS=$flag
16312 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16313 >  (: CFLAGS="$CFLAGS") 2>&5
16314 >  ac_status=$?
16315 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16316 >  test $ac_status = 0; }
16317 >
16318   fi
16319  
16320   else
# Line 15565 | Line 16325 | done
16325  
16326  
16327  
16328 +
16329 +
16330   for flag in -Wundef; do
16331    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15597 | Line 16359 | fi
16359   eval ac_res=\$$as_CACHEVAR
16360                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16361   $as_echo "$ac_res" >&6; }
16362 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16363 <  if ${CFLAGS+:} false; then :
16364 <  case " $CFLAGS " in
16365 <    *" $flag "*)
16366 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16362 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16363 >
16364 > if ${CFLAGS+:} false; then :
16365 >
16366 >  case " $CFLAGS " in #(
16367 >  *" $flag "*) :
16368 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16369    (: CFLAGS already contains $flag) 2>&5
16370    ac_status=$?
16371    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16372 +  test $ac_status = 0; } ;; #(
16373 +  *) :
16374 +
16375 +     as_fn_append CFLAGS " $flag"
16376 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16377 +  (: CFLAGS="$CFLAGS") 2>&5
16378 +  ac_status=$?
16379 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16380    test $ac_status = 0; }
16381 <      ;;
16382 <    *)
16383 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16384 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16381 >     ;;
16382 > esac
16383 >
16384 > else
16385 >
16386 >  CFLAGS=$flag
16387 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16388 >  (: CFLAGS="$CFLAGS") 2>&5
16389    ac_status=$?
16390    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16391    test $ac_status = 0; }
16392 <      CFLAGS="$CFLAGS $flag"
16393 <      ;;
16394 <   esac
16392 >
16393 > fi
16394 >
16395 > else
16396 >  :
16397 > fi
16398 >
16399 > done
16400 >
16401 >
16402 >
16403 >
16404 >
16405 > for flag in -Wuninitialized; do
16406 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16407 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16408 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16409 > if eval \${$as_CACHEVAR+:} false; then :
16410 >  $as_echo_n "(cached) " >&6
16411 > else
16412 >
16413 >  ax_check_save_flags=$CFLAGS
16414 >  CFLAGS="$CFLAGS  $flag"
16415 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 > /* end confdefs.h.  */
16417 >
16418 > int
16419 > main ()
16420 > {
16421 >
16422 >  ;
16423 >  return 0;
16424 > }
16425 > _ACEOF
16426 > if ac_fn_c_try_compile "$LINENO"; then :
16427 >  eval "$as_CACHEVAR=yes"
16428 > else
16429 >  eval "$as_CACHEVAR=no"
16430 > fi
16431 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 >  CFLAGS=$ax_check_save_flags
16433 > fi
16434 > eval ac_res=\$$as_CACHEVAR
16435 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16436 > $as_echo "$ac_res" >&6; }
16437 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16438 >
16439 > if ${CFLAGS+:} false; then :
16440 >
16441 >  case " $CFLAGS " in #(
16442 >  *" $flag "*) :
16443 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16444 >  (: CFLAGS already contains $flag) 2>&5
16445 >  ac_status=$?
16446 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16447 >  test $ac_status = 0; } ;; #(
16448 >  *) :
16449 >
16450 >     as_fn_append CFLAGS " $flag"
16451 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16452 >  (: CFLAGS="$CFLAGS") 2>&5
16453 >  ac_status=$?
16454 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16455 >  test $ac_status = 0; }
16456 >     ;;
16457 > esac
16458 >
16459 > else
16460 >
16461 >  CFLAGS=$flag
16462 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16463 >  (: CFLAGS="$CFLAGS") 2>&5
16464 >  ac_status=$?
16465 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16466 >  test $ac_status = 0; }
16467 >
16468 > fi
16469 >
16470 > else
16471 >  :
16472 > fi
16473 >
16474 > done
16475 >
16476 >
16477 >
16478 >
16479 >
16480 > for flag in -Wwrite-strings; do
16481 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16482 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16483 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16484 > if eval \${$as_CACHEVAR+:} false; then :
16485 >  $as_echo_n "(cached) " >&6
16486 > else
16487 >
16488 >  ax_check_save_flags=$CFLAGS
16489 >  CFLAGS="$CFLAGS  $flag"
16490 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 > /* end confdefs.h.  */
16492 >
16493 > int
16494 > main ()
16495 > {
16496 >
16497 >  ;
16498 >  return 0;
16499 > }
16500 > _ACEOF
16501 > if ac_fn_c_try_compile "$LINENO"; then :
16502 >  eval "$as_CACHEVAR=yes"
16503   else
16504 <  CFLAGS="$flag"
16504 >  eval "$as_CACHEVAR=no"
16505 > fi
16506 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 >  CFLAGS=$ax_check_save_flags
16508 > fi
16509 > eval ac_res=\$$as_CACHEVAR
16510 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16511 > $as_echo "$ac_res" >&6; }
16512 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16513 >
16514 > if ${CFLAGS+:} false; then :
16515 >
16516 >  case " $CFLAGS " in #(
16517 >  *" $flag "*) :
16518 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16519 >  (: CFLAGS already contains $flag) 2>&5
16520 >  ac_status=$?
16521 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16522 >  test $ac_status = 0; } ;; #(
16523 >  *) :
16524 >
16525 >     as_fn_append CFLAGS " $flag"
16526 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16527 >  (: CFLAGS="$CFLAGS") 2>&5
16528 >  ac_status=$?
16529 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530 >  test $ac_status = 0; }
16531 >     ;;
16532 > esac
16533 >
16534 > else
16535 >
16536 >  CFLAGS=$flag
16537 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16538 >  (: CFLAGS="$CFLAGS") 2>&5
16539 >  ac_status=$?
16540 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16541 >  test $ac_status = 0; }
16542 >
16543   fi
16544  
16545   else
# Line 15626 | Line 16548 | fi
16548  
16549   done
16550  
16551 +
16552 + fi
16553 +
16554 +
16555 +  # Check whether --enable-efence was given.
16556 + if test "${enable_efence+set}" = set; then :
16557 +  enableval=$enable_efence; efence="$enableval"
16558 + else
16559 +  efence="no"
16560 + fi
16561 +
16562 +
16563 +  if test "$efence" = "yes"; then :
16564 +
16565 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16566 + $as_echo_n "checking for library containing EF_Print... " >&6; }
16567 + if ${ac_cv_search_EF_Print+:} false; then :
16568 +  $as_echo_n "(cached) " >&6
16569 + else
16570 +  ac_func_search_save_LIBS=$LIBS
16571 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 + /* end confdefs.h.  */
16573 +
16574 + /* Override any GCC internal prototype to avoid an error.
16575 +   Use char because int might match the return type of a GCC
16576 +   builtin and then its argument prototype would still apply.  */
16577 + #ifdef __cplusplus
16578 + extern "C"
16579 + #endif
16580 + char EF_Print ();
16581 + int
16582 + main ()
16583 + {
16584 + return EF_Print ();
16585 +  ;
16586 +  return 0;
16587 + }
16588 + _ACEOF
16589 + for ac_lib in '' efence; do
16590 +  if test -z "$ac_lib"; then
16591 +    ac_res="none required"
16592 +  else
16593 +    ac_res=-l$ac_lib
16594 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16595    fi
16596 +  if ac_fn_c_try_link "$LINENO"; then :
16597 +  ac_cv_search_EF_Print=$ac_res
16598 + fi
16599 + rm -f core conftest.err conftest.$ac_objext \
16600 +    conftest$ac_exeext
16601 +  if ${ac_cv_search_EF_Print+:} false; then :
16602 +  break
16603 + fi
16604 + done
16605 + if ${ac_cv_search_EF_Print+:} false; then :
16606 +
16607 + else
16608 +  ac_cv_search_EF_Print=no
16609 + fi
16610 + rm conftest.$ac_ext
16611 + LIBS=$ac_func_search_save_LIBS
16612 + fi
16613 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16614 + $as_echo "$ac_cv_search_EF_Print" >&6; }
16615 + ac_res=$ac_cv_search_EF_Print
16616 + if test "$ac_res" != no; then :
16617 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16618 +
16619 + else
16620 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16621 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16622 + as_fn_error $? "Electric Fence 'efence' library not found
16623 + See \`config.log' for more details" "$LINENO" 5; }
16624 + fi
16625 +
16626 +
16627 + fi
16628 +
16629 +
16630 +  # Check whether --enable-mempool was given.
16631 + if test "${enable_mempool+set}" = set; then :
16632 +  enableval=$enable_mempool; mempool=$enableval
16633 + else
16634 +  mempool="yes"
16635 + fi
16636 +
16637 +
16638 +  if test "$mempool" = "no"; then :
16639 +
16640 +
16641 + $as_echo "#define MEMPOOL_DISABLED 1" >>confdefs.h
16642 +
16643 +
16644 + fi
16645 +
16646 +
16647 + # Check whether --enable-openssl was given.
16648 + if test "${enable_openssl+set}" = set; then :
16649 +  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16650 + else
16651 +   cf_enable_openssl="auto"
16652 + fi
16653 +
16654 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16655 + $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16656 + if test "$cf_enable_openssl" != "no"; then
16657 +  cf_openssl_basedir=""
16658 +  if test "$cf_enable_openssl" != "auto" &&
16659 +     test "$cf_enable_openssl" != "yes"; then
16660 +          cf_openssl_basedir="${cf_enable_openssl}"
16661 +  else
16662 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16663 +                /opt /opt/openssl /usr/local/openssl; do
16664 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
16665 +        cf_openssl_basedir="${dirs}"
16666 +        break
16667 +      fi
16668 +    done
16669 +    unset dirs
16670 +  fi
16671 +
16672 +    if test ! -z "$cf_openssl_basedir"; then
16673 +    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16674 +      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16675 +      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16676 +    else
16677 +                  cf_openssl_basedir=""
16678 +    fi
16679 +  else
16680 +                            if test -f "/usr/include/openssl/opensslv.h"; then
16681 +      cf_openssl_basedir="/usr"
16682 +    fi
16683 +  fi
16684 +
16685 +      if test ! -z "$cf_openssl_basedir"; then
16686 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16687 + $as_echo "$cf_openssl_basedir" >&6; }
16688 +    cf_enable_openssl="yes"
16689 +  else
16690 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16691 + $as_echo "not found. Please check your path." >&6; }
16692 +    cf_enable_openssl="no"
16693 +  fi
16694 +  unset cf_openssl_basedir
16695 + else
16696 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16697 + $as_echo "disabled" >&6; }
16698 + fi
16699 +
16700 + if test "$cf_enable_openssl" != "no"; then :
16701 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5
16702 + $as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; }
16703 +  if test "$cross_compiling" = yes; then :
16704 +  cf_openssl_version_ok=no
16705 + else
16706 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 + /* end confdefs.h.  */
16708 +
16709 +
16710 +    #include <openssl/opensslv.h>
16711 +    #include <stdlib.h>
16712 + int
16713 + main ()
16714 + {
16715 + exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL));
16716 +  ;
16717 +  return 0;
16718 + }
16719 + _ACEOF
16720 + if ac_fn_c_try_run "$LINENO"; then :
16721 +  cf_openssl_version_ok=yes
16722 + else
16723 +  cf_openssl_version_ok=no
16724 + fi
16725 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16726 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16727 + fi
16728 +
16729 +
16730 +  if test "$cf_openssl_version_ok" = "yes"; then :
16731 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16732 + $as_echo "found" >&6; }
16733 +
16734 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16735 + $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16736 + if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16737 +  $as_echo_n "(cached) " >&6
16738 + else
16739 +  ac_check_lib_save_LIBS=$LIBS
16740 + LIBS="-lcrypto  $LIBS"
16741 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 + /* end confdefs.h.  */
16743 +
16744 + /* Override any GCC internal prototype to avoid an error.
16745 +   Use char because int might match the return type of a GCC
16746 +   builtin and then its argument prototype would still apply.  */
16747 + #ifdef __cplusplus
16748 + extern "C"
16749 + #endif
16750 + char RSA_free ();
16751 + int
16752 + main ()
16753 + {
16754 + return RSA_free ();
16755 +  ;
16756 +  return 0;
16757 + }
16758 + _ACEOF
16759 + if ac_fn_c_try_link "$LINENO"; then :
16760 +  ac_cv_lib_crypto_RSA_free=yes
16761 + else
16762 +  ac_cv_lib_crypto_RSA_free=no
16763 + fi
16764 + rm -f core conftest.err conftest.$ac_objext \
16765 +    conftest$ac_exeext conftest.$ac_ext
16766 + LIBS=$ac_check_lib_save_LIBS
16767 + fi
16768 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16769 + $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16770 + if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16771 +  cat >>confdefs.h <<_ACEOF
16772 + #define HAVE_LIBCRYPTO 1
16773 + _ACEOF
16774 +
16775 +  LIBS="-lcrypto $LIBS"
16776 +
16777 + fi
16778 +
16779 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16780 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16781 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16782 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16783 +  $as_echo_n "(cached) " >&6
16784 + else
16785 +  ac_check_lib_save_LIBS=$LIBS
16786 + LIBS="-lssl  $LIBS"
16787 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 + /* end confdefs.h.  */
16789 +
16790 + /* Override any GCC internal prototype to avoid an error.
16791 +   Use char because int might match the return type of a GCC
16792 +   builtin and then its argument prototype would still apply.  */
16793 + #ifdef __cplusplus
16794 + extern "C"
16795 + #endif
16796 + char SSL_connect ();
16797 + int
16798 + main ()
16799 + {
16800 + return SSL_connect ();
16801 +  ;
16802 +  return 0;
16803 + }
16804 + _ACEOF
16805 + if ac_fn_c_try_link "$LINENO"; then :
16806 +  ac_cv_lib_ssl_SSL_connect=yes
16807 + else
16808 +  ac_cv_lib_ssl_SSL_connect=no
16809 + fi
16810 + rm -f core conftest.err conftest.$ac_objext \
16811 +    conftest$ac_exeext conftest.$ac_ext
16812 + LIBS=$ac_check_lib_save_LIBS
16813 + fi
16814 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16815 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16816 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16817 +  cat >>confdefs.h <<_ACEOF
16818 + #define HAVE_LIBSSL 1
16819 + _ACEOF
16820 +
16821 +  LIBS="-lssl $LIBS"
16822 +
16823 + fi
16824 +
16825 + fi
16826 +
16827 + else
16828 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16829 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16830 +    cf_enable_openssl="no"
16831 + fi
16832 + fi
16833 +
16834 +
16835 + # Check whether --enable-gnutls was given.
16836 + if test "${enable_gnutls+set}" = set; then :
16837 +  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16838 + else
16839 +   cf_enable_gnutls="auto"
16840 + fi
16841 +
16842 +
16843 + if test "$cf_enable_openssl" != "auto" &&
16844 +   test "$cf_enable_openssl" != "yes"; then
16845 +  if test "$cf_enable_gnutls" != "no"; then
16846 +
16847 +    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16848 + if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16849 +
16850 +      if test "$cross_compiling" = yes; then :
16851 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16852 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16853 + as_fn_error $? "cannot run test program while cross compiling
16854 + See \`config.log' for more details" "$LINENO" 5; }
16855 + else
16856 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 + /* end confdefs.h.  */
16858 +
16859 +
16860 +          #include <gnutls/gnutls.h>
16861 +          #include <stdlib.h>
16862 + int
16863 + main ()
16864 + {
16865 +
16866 +          exit(!(GNUTLS_VERSION_NUMBER >= 0x030308));
16867 +  ;
16868 +  return 0;
16869 + }
16870 + _ACEOF
16871 + if ac_fn_c_try_run "$LINENO"; then :
16872 +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16873 + $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16874 + if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16875 +  $as_echo_n "(cached) " >&6
16876 + else
16877 +  ac_check_lib_save_LIBS=$LIBS
16878 + LIBS="-lgnutls  $LIBS"
16879 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 + /* end confdefs.h.  */
16881 +
16882 + /* Override any GCC internal prototype to avoid an error.
16883 +   Use char because int might match the return type of a GCC
16884 +   builtin and then its argument prototype would still apply.  */
16885 + #ifdef __cplusplus
16886 + extern "C"
16887 + #endif
16888 + char gnutls_init ();
16889 + int
16890 + main ()
16891 + {
16892 + return gnutls_init ();
16893 +  ;
16894 +  return 0;
16895 + }
16896 + _ACEOF
16897 + if ac_fn_c_try_link "$LINENO"; then :
16898 +  ac_cv_lib_gnutls_gnutls_init=yes
16899 + else
16900 +  ac_cv_lib_gnutls_gnutls_init=no
16901 + fi
16902 + rm -f core conftest.err conftest.$ac_objext \
16903 +    conftest$ac_exeext conftest.$ac_ext
16904 + LIBS=$ac_check_lib_save_LIBS
16905 + fi
16906 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16907 + $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16908 + if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16909 +  cat >>confdefs.h <<_ACEOF
16910 + #define HAVE_LIBGNUTLS 1
16911 + _ACEOF
16912 +
16913 +  LIBS="-lgnutls $LIBS"
16914 +
16915 + fi
16916 +
16917 + fi
16918 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16919 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16920 + fi
16921 +
16922 + fi
16923 +
16924 +
16925 +
16926 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.3.8 and above" >&5
16927 + $as_echo_n "checking for GnuTLS 3.3.8 and above... " >&6; }
16928 +    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16929 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16930 + $as_echo "found" >&6; }
16931 + else
16932 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16933 + $as_echo "no - GnuTLS support disabled" >&6; }
16934 + fi
16935 +
16936 +  fi
16937 + fi
16938  
16939  
16940  
# Line 15715 | Line 17023 | _ACEOF
17023    test "$exec_prefix_NONE" && exec_prefix=NONE
17024  
17025  
17026 < ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
17026 > ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile modules/extra/Makefile doc/Makefile help/Makefile tools/Makefile"
17027  
17028  
17029   cat >confcache <<\_ACEOF
# Line 15881 | Line 17189 | LT_CONFIG_H=config.h
17189  
17190  
17191  
15884 – if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15885 –  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15886 – Usually this means the macro was only invoked conditionally." "$LINENO" 5
15887 – fi
17192  
17193   : "${CONFIG_STATUS=./config.status}"
17194   ac_write_fail=0
# Line 16483 | Line 17787 | enable_static='`$ECHO "$enable_static" |
17787   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17788   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17789   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17790 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17791   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17792   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17793   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 16532 | Line 17837 | compiler='`$ECHO "$compiler" | $SED "$de
17837   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17838   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17839   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17840 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17841   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17842   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17843 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17844   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17845   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17846 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17847   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17848   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17849   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 16600 | Line 17908 | finish_cmds='`$ECHO "$finish_cmds" | $SE
17908   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17909   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17910   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17911 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17911 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17912 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17913   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17914   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17915   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 16651 | Line 17960 | CFLAGS \
17960   compiler \
17961   lt_cv_sys_global_symbol_pipe \
17962   lt_cv_sys_global_symbol_to_cdecl \
17963 + lt_cv_sys_global_symbol_to_import \
17964   lt_cv_sys_global_symbol_to_c_name_address \
17965   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17966 + lt_cv_nm_interface \
17967   nm_file_list_spec \
17968 + lt_cv_truncate_bin \
17969   lt_prog_compiler_no_builtin_flag \
17970   lt_prog_compiler_pic \
17971   lt_prog_compiler_wl \
# Line 16688 | Line 18000 | old_striplib \
18000   striplib; do
18001      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18002      *[\\\\\\\`\\"\\\$]*)
18003 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18003 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18004        ;;
18005      *)
18006        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16715 | Line 18027 | postinstall_cmds \
18027   postuninstall_cmds \
18028   finish_cmds \
18029   sys_lib_search_path_spec \
18030 < sys_lib_dlsearch_path_spec; do
18030 > configure_time_dlsearch_path \
18031 > configure_time_lt_sys_library_path; do
18032      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18033      *[\\\\\\\`\\"\\\$]*)
18034 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18034 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18035        ;;
18036      *)
18037        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16727 | Line 18040 | sys_lib_dlsearch_path_spec; do
18040   done
18041  
18042   ac_aux_dir='$ac_aux_dir'
16730 – xsi_shell='$xsi_shell'
16731 – lt_shell_append='$lt_shell_append'
18043  
18044 < # See if we are running on zsh, and set the options which allow our
18044 > # See if we are running on zsh, and set the options that allow our
18045   # commands through without removal of \ escapes INIT.
18046 < if test -n "\${ZSH_VERSION+set}" ; then
18046 > if test -n "\${ZSH_VERSION+set}"; then
18047     setopt NO_GLOB_SUBST
18048   fi
18049  
18050  
18051      PACKAGE='$PACKAGE'
18052      VERSION='$VERSION'
16742 –    TIMESTAMP='$TIMESTAMP'
18053      RM='$RM'
18054      ofile='$ofile'
18055  
# Line 16762 | Line 18072 | do
18072      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
18073      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18074      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18075 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18076      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18077      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18078      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
# Line 17455 | Line 18766 | $as_echo X"$file" |
18766   ;;
18767      "libtool":C)
18768  
18769 <    # See if we are running on zsh, and set the options which allow our
18769 >    # See if we are running on zsh, and set the options that allow our
18770      # commands through without removal of \ escapes.
18771 <    if test -n "${ZSH_VERSION+set}" ; then
18771 >    if test -n "${ZSH_VERSION+set}"; then
18772        setopt NO_GLOB_SUBST
18773      fi
18774  
18775 <    cfgfile="${ofile}T"
18775 >    cfgfile=${ofile}T
18776      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18777      $RM "$cfgfile"
18778  
18779      cat <<_LT_EOF >> "$cfgfile"
18780   #! $SHELL
18781 <
17471 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17472 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18781 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18782   # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18783   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18784 +
18785 + # Provide generalized library-building support services.
18786 + # Written by Gordon Matzigkeit, 1996
18787 +
18788 + # Copyright (C) 2014 Free Software Foundation, Inc.
18789 + # This is free software; see the source for copying conditions.  There is NO
18790 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18791 +
18792 + # GNU Libtool is free software; you can redistribute it and/or modify
18793 + # it under the terms of the GNU General Public License as published by
18794 + # the Free Software Foundation; either version 2 of of the License, or
18795 + # (at your option) any later version.
18796   #
18797 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18798 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18799 < #                 Foundation, Inc.
18800 < #   Written by Gordon Matzigkeit, 1996
17480 < #
17481 < #   This file is part of GNU Libtool.
17482 < #
17483 < # GNU Libtool is free software; you can redistribute it and/or
17484 < # modify it under the terms of the GNU General Public License as
17485 < # published by the Free Software Foundation; either version 2 of
17486 < # the License, or (at your option) any later version.
17487 < #
17488 < # As a special exception to the GNU General Public License,
17489 < # if you distribute this file as part of a program or library that
17490 < # is built using GNU Libtool, you may include this file under the
17491 < # same distribution terms that you use for the rest of that program.
18797 > # As a special exception to the GNU General Public License, if you
18798 > # distribute this file as part of a program or library that is built
18799 > # using GNU Libtool, you may include this file under the  same
18800 > # distribution terms that you use for the rest of that program.
18801   #
18802 < # GNU Libtool is distributed in the hope that it will be useful,
18803 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18802 > # GNU Libtool is distributed in the hope that it will be useful, but
18803 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18804   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18805   # GNU General Public License for more details.
18806   #
18807   # You should have received a copy of the GNU General Public License
18808 < # along with GNU Libtool; see the file COPYING.  If not, a copy
17500 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17501 < # obtained by writing to the Free Software Foundation, Inc.,
17502 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18808 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18809  
18810  
18811   # The names of the tagged configurations supported by this script.
18812 < available_tags=""
18812 > available_tags=''
18813 >
18814 > # Configured defaults for sys_lib_dlsearch_path munging.
18815 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18816  
18817   # ### BEGIN LIBTOOL CONFIG
18818  
# Line 17523 | Line 18832 | pic_mode=$pic_mode
18832   # Whether or not to optimize for fast installation.
18833   fast_install=$enable_fast_install
18834  
18835 + # Shared archive member basename,for filename based shared library versioning on AIX.
18836 + shared_archive_member_spec=$shared_archive_member_spec
18837 +
18838   # Shell to use when invoking shell scripts.
18839   SHELL=$lt_SHELL
18840  
# Line 17640 | Line 18952 | global_symbol_pipe=$lt_lt_cv_sys_global_
18952   # Transform the output of nm in a proper C declaration.
18953   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18954  
18955 + # Transform the output of nm into a list of symbols to manually relocate.
18956 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18957 +
18958   # Transform the output of nm in a C name address pair.
18959   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18960  
18961   # Transform the output of nm in a C name address pair when lib prefix is needed.
18962   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18963  
18964 + # The name lister interface.
18965 + nm_interface=$lt_lt_cv_nm_interface
18966 +
18967   # Specify filename containing input files for \$NM.
18968   nm_file_list_spec=$lt_nm_file_list_spec
18969  
18970 < # The root where to search for dependent libraries,and in which our libraries should be installed.
18970 > # The root where to search for dependent libraries,and where our libraries should be installed.
18971   lt_sysroot=$lt_sysroot
18972  
18973 + # Command to truncate a binary pipe.
18974 + lt_truncate_bin=$lt_lt_cv_truncate_bin
18975 +
18976   # The name of the directory that contains temporary libtool files.
18977   objdir=$objdir
18978  
# Line 17742 | Line 19063 | hardcode_into_libs=$hardcode_into_libs
19063   # Compile-time system search path for libraries.
19064   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19065  
19066 < # Run-time system search path for libraries.
19067 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19066 > # Detected run-time system search path for libraries.
19067 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19068 >
19069 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19070 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19071  
19072   # Whether dlopen is supported.
19073   dlopen_support=$enable_dlopen
# Line 17836 | Line 19160 | hardcode_libdir_flag_spec=$lt_hardcode_l
19160   # Whether we need a single "-rpath" flag with a separated argument.
19161   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19162  
19163 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19163 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19164   # DIR into the resulting binary.
19165   hardcode_direct=$hardcode_direct
19166  
19167 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19167 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19168   # DIR into the resulting binary and the resulting library dependency is
19169 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19169 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19170   # library is relocated.
19171   hardcode_direct_absolute=$hardcode_direct_absolute
19172  
# Line 17894 | Line 19218 | hardcode_action=$hardcode_action
19218  
19219   _LT_EOF
19220  
19221 +    cat <<'_LT_EOF' >> "$cfgfile"
19222 +
19223 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19224 +
19225 + # func_munge_path_list VARIABLE PATH
19226 + # -----------------------------------
19227 + # VARIABLE is name of variable containing _space_ separated list of
19228 + # directories to be munged by the contents of PATH, which is string
19229 + # having a format:
19230 + # "DIR[:DIR]:"
19231 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19232 + # ":DIR[:DIR]"
19233 + #       string "DIR[ DIR]" will be appended to VARIABLE
19234 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19235 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19236 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19237 + # "DIR[:DIR]"
19238 + #       VARIABLE will be replaced by "DIR[ DIR]"
19239 + func_munge_path_list ()
19240 + {
19241 +    case x$2 in
19242 +    x)
19243 +        ;;
19244 +    *:)
19245 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19246 +        ;;
19247 +    x:*)
19248 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19249 +        ;;
19250 +    *::*)
19251 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19252 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19253 +        ;;
19254 +    *)
19255 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19256 +        ;;
19257 +    esac
19258 + }
19259 +
19260 +
19261 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19262 + func_cc_basename ()
19263 + {
19264 +    for cc_temp in $*""; do
19265 +      case $cc_temp in
19266 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19267 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19268 +        \-*) ;;
19269 +        *) break;;
19270 +      esac
19271 +    done
19272 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19273 + }
19274 +
19275 +
19276 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19277 +
19278 + _LT_EOF
19279 +
19280    case $host_os in
19281    aix3*)
19282      cat <<\_LT_EOF >> "$cfgfile"
19283   # AIX sometimes has problems with the GCC collect2 program.  For some
19284   # reason, if we set the COLLECT_NAMES environment variable, the problems
19285   # vanish in a puff of smoke.
19286 < if test "X${COLLECT_NAMES+set}" != Xset; then
19286 > if test set != "${COLLECT_NAMES+set}"; then
19287    COLLECT_NAMES=
19288    export COLLECT_NAMES
19289   fi
# Line 17909 | Line 19292 | _LT_EOF
19292    esac
19293  
19294  
19295 < ltmain="$ac_aux_dir/ltmain.sh"
19295 > ltmain=$ac_aux_dir/ltmain.sh
19296  
19297  
19298    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 17919 | Line 19302 | ltmain="$ac_aux_dir/ltmain.sh"
19302    sed '$q' "$ltmain" >> "$cfgfile" \
19303       || (rm -f "$cfgfile"; exit 1)
19304  
17922 –  if test x"$xsi_shell" = xyes; then
17923 –  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17924 – func_dirname ()\
17925 – {\
17926 – \    case ${1} in\
17927 – \      */*) func_dirname_result="${1%/*}${2}" ;;\
17928 – \      *  ) func_dirname_result="${3}" ;;\
17929 – \    esac\
17930 – } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17931 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17932 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17933 – test 0 -eq $? || _lt_function_replace_fail=:
17934 –
17935 –
17936 –  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17937 – func_basename ()\
17938 – {\
17939 – \    func_basename_result="${1##*/}"\
17940 – } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17941 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17942 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17943 – test 0 -eq $? || _lt_function_replace_fail=:
17944 –
17945 –
17946 –  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17947 – func_dirname_and_basename ()\
17948 – {\
17949 – \    case ${1} in\
17950 – \      */*) func_dirname_result="${1%/*}${2}" ;;\
17951 – \      *  ) func_dirname_result="${3}" ;;\
17952 – \    esac\
17953 – \    func_basename_result="${1##*/}"\
17954 – } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17955 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17956 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17957 – test 0 -eq $? || _lt_function_replace_fail=:
17958 –
17959 –
17960 –  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17961 – func_stripname ()\
17962 – {\
17963 – \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17964 – \    # positional parameters, so assign one to ordinary parameter first.\
17965 – \    func_stripname_result=${3}\
17966 – \    func_stripname_result=${func_stripname_result#"${1}"}\
17967 – \    func_stripname_result=${func_stripname_result%"${2}"}\
17968 – } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17969 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17970 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17971 – test 0 -eq $? || _lt_function_replace_fail=:
17972 –
17973 –
17974 –  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17975 – func_split_long_opt ()\
17976 – {\
17977 – \    func_split_long_opt_name=${1%%=*}\
17978 – \    func_split_long_opt_arg=${1#*=}\
17979 – } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17980 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17981 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17982 – test 0 -eq $? || _lt_function_replace_fail=:
17983 –
17984 –
17985 –  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17986 – func_split_short_opt ()\
17987 – {\
17988 – \    func_split_short_opt_arg=${1#??}\
17989 – \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17990 – } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17991 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17992 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17993 – test 0 -eq $? || _lt_function_replace_fail=:
17994 –
17995 –
17996 –  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17997 – func_lo2o ()\
17998 – {\
17999 – \    case ${1} in\
18000 – \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18001 – \      *)    func_lo2o_result=${1} ;;\
18002 – \    esac\
18003 – } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18004 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
18005 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18006 – test 0 -eq $? || _lt_function_replace_fail=:
18007 –
18008 –
18009 –  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18010 – func_xform ()\
18011 – {\
18012 –    func_xform_result=${1%.*}.lo\
18013 – } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18014 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
18015 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18016 – test 0 -eq $? || _lt_function_replace_fail=:
18017 –
18018 –
18019 –  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18020 – func_arith ()\
18021 – {\
18022 –    func_arith_result=$(( $* ))\
18023 – } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18024 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
18025 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18026 – test 0 -eq $? || _lt_function_replace_fail=:
18027 –
18028 –
18029 –  sed -e '/^func_len ()$/,/^} # func_len /c\
18030 – func_len ()\
18031 – {\
18032 –    func_len_result=${#1}\
18033 – } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18034 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
18035 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18036 – test 0 -eq $? || _lt_function_replace_fail=:
18037 –
18038 – fi
18039 –
18040 – if test x"$lt_shell_append" = xyes; then
18041 –  sed -e '/^func_append ()$/,/^} # func_append /c\
18042 – func_append ()\
18043 – {\
18044 –    eval "${1}+=\\${2}"\
18045 – } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18046 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
18047 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18048 – test 0 -eq $? || _lt_function_replace_fail=:
18049 –
18050 –
18051 –  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18052 – func_append_quoted ()\
18053 – {\
18054 – \    func_quote_for_eval "${2}"\
18055 – \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18056 – } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18057 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
18058 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18059 – test 0 -eq $? || _lt_function_replace_fail=:
18060 –
18061 –
18062 –  # Save a `func_append' function call where possible by direct use of '+='
18063 –  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18064 –    && mv -f "$cfgfile.tmp" "$cfgfile" \
18065 –      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18066 –  test 0 -eq $? || _lt_function_replace_fail=:
18067 – else
18068 –  # Save a `func_append' function call even when '+=' is not available
18069 –  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18070 –    && mv -f "$cfgfile.tmp" "$cfgfile" \
18071 –      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18072 –  test 0 -eq $? || _lt_function_replace_fail=:
18073 – fi
18074 –
18075 – if test x"$_lt_function_replace_fail" = x":"; then
18076 –  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18077 – $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18078 – fi
18079 –
18080 –
19305     mv -f "$cfgfile" "$ofile" ||
19306      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19307    chmod +x "$ofile"
# Line 18121 | Line 19345 | if test -n "$ac_unrecognized_opts" && te
19345   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19346   fi
19347  
19348 +
19349 + echo "###############################################################################"
19350 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19351 + echo
19352 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19353 + echo "   ./configure --prefix=DIRECTORY"
19354 + echo "###############################################################################"

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)