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

Comparing:
ircd-hybrid/trunk/configure (file contents), Revision 2030 by michael, Tue May 14 18:24:55 2013 UTC vs.
ircd-hybrid/branches/8.2.x/configure (file contents), Revision 8037 by michael, Fri Mar 17 22:28:04 2017 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 1964 2013-05-08 14:27:02Z michael .
2 > # From configure.ac Id: configure.ac 8008 2017-03-14 18:34:59Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4 < # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.22.
5   #
6   # Report bugs to <bugs@ircd-hybrid.org>.
7   #
# Line 593 | Line 593 | MAKEFLAGS=
593   # Identity of this package.
594   PACKAGE_NAME='ircd-hybrid'
595   PACKAGE_TARNAME='ircd-hybrid'
596 < PACKAGE_VERSION='TRUNK'
597 < PACKAGE_STRING='ircd-hybrid TRUNK'
596 > PACKAGE_VERSION='8.2.22'
597 > PACKAGE_STRING='ircd-hybrid 8.2.22'
598   PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599   PACKAGE_URL=''
600  
# 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
816 < enable_halfops
812 > enable_assert
813   enable_debugging
814   enable_warnings
815 + enable_openssl
816 + enable_gnutls
817 + enable_libgeoip
818   '
819        ac_precious_vars='build_alias
820   host_alias
# Line 827 | Line 826 | LIBS
826   CPPFLAGS
827   YACC
828   YFLAGS
829 + LT_SYS_LIBRARY_PATH
830   CPP'
831  
832  
# Line 1368 | Line 1368 | if test "$ac_init_help" = "long"; then
1368    # Omit some internal or obsolete options to make the list less imposing.
1369    # This message is too long to be a string in the A/UX 3.1 sh.
1370    cat <<_ACEOF
1371 < \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1371 > \`configure' configures ircd-hybrid 8.2.22 to adapt to many kinds of systems.
1372  
1373   Usage: $0 [OPTION]... [VAR=VALUE]...
1374  
# Line 1438 | Line 1438 | fi
1438  
1439   if test -n "$ac_init_help"; then
1440    case $ac_init_help in
1441 <     short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1441 >     short | recursive ) echo "Configuration of ircd-hybrid 8.2.22:";;
1442     esac
1443    cat <<\_ACEOF
1444  
# Line 1461 | Line 1461 | Optional Features:
1461                            optimize for fast installation [default=yes]
1462    --disable-libtool-lock  avoid locking (might break parallel builds)
1463    --enable-ltdl-install   install libltdl
1464  --disable-libgeoip      Disable GeoIP support
1465  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1466  --disable-openssl            Disable OpenSSL support.
1467  --enable-assert         Enable assert() statements
1464    --enable-kqueue         Force kqueue usage.
1465    --enable-epoll          Force epoll usage.
1466    --enable-devpoll        Force devpoll usage.
1467    --enable-poll           Force poll usage.
1468 <  --enable-select         Force select usage.
1473 <  --enable-halfops        Enable halfops support.
1468 >  --enable-assert         Enable assert() statements
1469    --enable-debugging      Enable debugging.
1470    --enable-warnings       Enable compiler warnings.
1471 +  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1472 +  --disable-openssl            Disable LibreSSL/OpenSSL support.
1473 +  --enable-gnutls             Enable GnuTLS support.
1474 +  --disable-gnutls             Disable GnuTLS support.
1475 +  --disable-libgeoip      Disable GeoIP support
1476  
1477   Optional Packages:
1478    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1481                            both]
1482 +  --with-aix-soname=aix|svr4|both
1483 +                          shared library versioning (aka "SONAME") variant to
1484 +                          provide on AIX, [default=aix].
1485    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1486 <  --with-sysroot=DIR Search for dependent libraries within DIR
1487 <                        (or the compiler's sysroot if not specified).
1486 >  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1487 >                          compiler's sysroot if not specified).
1488    --with-included-ltdl    use the GNU ltdl sources included here
1489    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1490    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
# Line 1500 | Line 1503 | Some influential environment variables:
1503    YFLAGS      The list of arguments that will be passed by default to $YACC.
1504                This script will default YFLAGS to the empty string to avoid a
1505                default value of `-d' given by some make applications.
1506 +  LT_SYS_LIBRARY_PATH
1507 +              User-defined run-time library search path.
1508    CPP         C preprocessor
1509  
1510   Use these variables to override the choices made by `configure' or to help
# Line 1568 | Line 1573 | fi
1573   test -n "$ac_init_help" && exit $ac_status
1574   if $ac_init_version; then
1575    cat <<\_ACEOF
1576 < ircd-hybrid configure TRUNK
1576 > ircd-hybrid configure 8.2.22
1577   generated by GNU Autoconf 2.69
1578  
1579   Copyright (C) 2012 Free Software Foundation, Inc.
# Line 1943 | Line 1948 | $as_echo "$ac_res" >&6; }
1948  
1949   } # ac_fn_c_check_type
1950  
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956  $as_echo_n "(cached) " >&6
1957 else
1958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967  ;
1968  return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972  eval "$4=yes"
1973 else
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983  ;
1984  return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988  eval "$4=yes"
1989 else
1990  eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
1951   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1952   # -------------------------------------------------------
1953   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2094 | Line 2042 | cat >config.log <<_ACEOF
2042   This file contains any messages produced by compilers while
2043   running configure, to aid debugging if configure makes a mistake.
2044  
2045 < It was created by ircd-hybrid $as_me TRUNK, which was
2045 > It was created by ircd-hybrid $as_me 8.2.22, which was
2046   generated by GNU Autoconf 2.69.  Invocation command line was
2047  
2048    $ $0 $@
# Line 2375 | Line 2323 | $as_echo "$as_me: creating cache $cache_
2323   fi
2324  
2325   as_fn_append ac_func_list " strtok_r"
2378 as_fn_append ac_func_list " usleep"
2326   as_fn_append ac_func_list " strlcat"
2327   as_fn_append ac_func_list " strlcpy"
2328   as_fn_append ac_header_list " crypt.h"
2382 as_fn_append ac_header_list " sys/resource.h"
2329   as_fn_append ac_header_list " sys/param.h"
2330   as_fn_append ac_header_list " types.h"
2331   as_fn_append ac_header_list " socket.h"
2332   as_fn_append ac_header_list " sys/wait.h"
2387 as_fn_append ac_header_list " wait.h"
2333   # Check that the precious variables saved in the cache have kept the same
2334   # value.
2335   ac_cache_corrupted=false
# Line 2453 | Line 2398 | ac_link='$CC -o conftest$ac_exeext $CFLA
2398   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399  
2400  
2401 < am__api_version='1.13'
2401 > am__api_version='1.15'
2402  
2403   ac_aux_dir=
2404   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2654 | Line 2599 | test "$program_suffix" != NONE &&
2599   ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2600   program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2601  
2602 < # expand $ac_aux_dir to an absolute path
2603 < am_aux_dir=`cd $ac_aux_dir && pwd`
2602 > # Expand $ac_aux_dir to an absolute path.
2603 > am_aux_dir=`cd "$ac_aux_dir" && pwd`
2604  
2605   if test x"${MISSING+set}" != xset; then
2606    case $am_aux_dir in
# Line 2674 | Line 2619 | else
2619   $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2620   fi
2621  
2622 < if test x"${install_sh}" != xset; then
2622 > if test x"${install_sh+set}" != xset; then
2623    case $am_aux_dir in
2624    *\ * | *\     *)
2625      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
# Line 2968 | Line 2913 | fi
2913  
2914   # Define the identity of the package.
2915   PACKAGE='ircd-hybrid'
2916 < VERSION='TRUNK'
2916 > VERSION='8.2.22'
2917  
2918  
2919   cat >>confdefs.h <<_ACEOF
# Line 3002 | Line 2947 | MAKEINFO=${MAKEINFO-"${am_missing_run}ma
2947   # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2948   mkdir_p='$(MKDIR_P)'
2949  
2950 < # We need awk for the "check" target.  The system "awk" is bad on
2951 < # some platforms.
2950 > # We need awk for the "check" target (and possibly the TAP driver).  The
2951 > # system "awk" is bad on some platforms.
2952   # Always define AMTAR for backward compatibility.  Yes, it's still used
2953   # in the wild :-(  We should find a proper way to deprecate it ...
2954   AMTAR='$${TAR-tar}'
2955  
2956 +
2957 + # We'll loop over all known methods to create a tar archive until one works.
2958 + _am_tools='gnutar  pax cpio none'
2959 +
2960   am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2961  
2962  
# Line 3015 | Line 2964 | am__tar='$${TAR-tar} chof - "$$tardir"'
2964  
2965  
2966  
2967 + # POSIX will say in a future version that running "rm -f" with no argument
2968 + # is OK; and we want to be able to make that assumption in our Makefile
2969 + # recipes.  So use an aggressive probe to check that the usage we want is
2970 + # actually supported "in the wild" to an acceptable degree.
2971 + # See automake bug#10828.
2972 + # To make any issue more visible, cause the running configure to be aborted
2973 + # by default if the 'rm' program in use doesn't match our expectations; the
2974 + # user can still override this though.
2975 + if rm -f && rm -fr && rm -rf; then : OK; else
2976 +  cat >&2 <<'END'
2977 + Oops!
2978 +
2979 + Your 'rm' program seems unable to run without file operands specified
2980 + on the command line, even when the '-f' option is present.  This is contrary
2981 + to the behaviour of most rm programs out there, and not conforming with
2982 + the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2983 +
2984 + Please tell bug-automake@gnu.org about your system, including the value
2985 + of your $PATH and any error possibly output before this message.  This
2986 + can help us improve future automake versions.
2987 +
2988 + END
2989 +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2990 +    echo 'Configuration will proceed anyway, since you have set the' >&2
2991 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2992 +    echo >&2
2993 +  else
2994 +    cat >&2 <<'END'
2995 + Aborting the configuration process, to ensure you take notice of the issue.
2996 +
2997 + You can download and install GNU coreutils to get an 'rm' implementation
2998 + that behaves properly: <http://www.gnu.org/software/coreutils/>.
2999 +
3000 + If you want to complete the configuration process using your problematic
3001 + 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3002 + to "yes", and re-run configure.
3003 +
3004 + END
3005 +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3006 +  fi
3007 + fi
3008 +
3009 +
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3011   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3012      # Check whether --enable-maintainer-mode was given.
# Line 3037 | Line 3029 | fi
3029    MAINT=$MAINTAINER_MODE_TRUE
3030  
3031  
3032 +
3033   ac_config_headers="$ac_config_headers config.h"
3034  
3035  
# Line 3894 | Line 3887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
3887   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889  
3890 + ac_ext=c
3891 + ac_cpp='$CPP $CPPFLAGS'
3892 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3896 + $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3897 + if ${am_cv_prog_cc_c_o+:} false; then :
3898 +  $as_echo_n "(cached) " >&6
3899 + else
3900 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 + /* end confdefs.h.  */
3902 +
3903 + int
3904 + main ()
3905 + {
3906 +
3907 +  ;
3908 +  return 0;
3909 + }
3910 + _ACEOF
3911 +  # Make sure it works both with $CC and with simple cc.
3912 +  # Following AC_PROG_CC_C_O, we do the test twice because some
3913 +  # compilers refuse to overwrite an existing .o file with -o,
3914 +  # though they will create one.
3915 +  am_cv_prog_cc_c_o=yes
3916 +  for am_i in 1 2; do
3917 +    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3918 +   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3919 +   ac_status=$?
3920 +   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 +   (exit $ac_status); } \
3922 +         && test -f conftest2.$ac_objext; then
3923 +      : OK
3924 +    else
3925 +      am_cv_prog_cc_c_o=no
3926 +      break
3927 +    fi
3928 +  done
3929 +  rm -f core conftest*
3930 +  unset am_i
3931 + fi
3932 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3933 + $as_echo "$am_cv_prog_cc_c_o" >&6; }
3934 + if test "$am_cv_prog_cc_c_o" != yes; then
3935 +   # Losing compiler, so override with the script.
3936 +   # FIXME: It is wrong to rewrite CC.
3937 +   # But if we don't then we get into trouble of one sort or another.
3938 +   # A longer-term fix would be to have automake use am__CC in this case,
3939 +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3940 +   CC="$am_aux_dir/compile $CC"
3941 + fi
3942 + ac_ext=c
3943 + ac_cpp='$CPP $CPPFLAGS'
3944 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947 +
3948 +
3949   depcc="$CC"   am_compiler_list=
3950  
3951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
# Line 4426 | Line 4478 | esac
4478  
4479  
4480  
4481 < macro_version='2.4.2'
4482 < macro_revision='1.3337'
4481 > macro_version='2.4.6'
4482 > macro_revision='2.4.6'
4483  
4484  
4485  
# Line 4441 | Line 4493 | macro_revision='1.3337'
4493  
4494  
4495  
4496 < ltmain="$ac_aux_dir/ltmain.sh"
4496 > ltmain=$ac_aux_dir/ltmain.sh
4497  
4498   # Make sure we can run config.sub.
4499   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4561 | Line 4613 | func_echo_all ()
4613      $ECHO ""
4614   }
4615  
4616 < case "$ECHO" in
4616 > case $ECHO in
4617    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4618   $as_echo "printf" >&6; } ;;
4619    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 4884 | Line 4936 | test -z "$GREP" && GREP=grep
4936  
4937   # Check whether --with-gnu-ld was given.
4938   if test "${with_gnu_ld+set}" = set; then :
4939 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4939 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4940   else
4941    with_gnu_ld=no
4942   fi
4943  
4944   ac_prog=ld
4945 < if test "$GCC" = yes; then
4945 > if test yes = "$GCC"; then
4946    # Check if gcc -print-prog-name=ld gives a path.
4947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4948   $as_echo_n "checking for ld used by $CC... " >&6; }
4949    case $host in
4950    *-*-mingw*)
4951 <    # gcc leaves a trailing carriage return which upsets mingw
4951 >    # gcc leaves a trailing carriage return, which upsets mingw
4952      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4953    *)
4954      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 4910 | Line 4962 | $as_echo_n "checking for ld used by $CC.
4962        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4963          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4964        done
4965 <      test -z "$LD" && LD="$ac_prog"
4965 >      test -z "$LD" && LD=$ac_prog
4966        ;;
4967    "")
4968      # If it fails, then pretend we aren't using GCC.
# Line 4921 | Line 4973 | $as_echo_n "checking for ld used by $CC.
4973      with_gnu_ld=unknown
4974      ;;
4975    esac
4976 < elif test "$with_gnu_ld" = yes; then
4976 > elif test yes = "$with_gnu_ld"; then
4977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4978   $as_echo_n "checking for GNU ld... " >&6; }
4979   else
# Line 4932 | Line 4984 | if ${lt_cv_path_LD+:} false; then :
4984    $as_echo_n "(cached) " >&6
4985   else
4986    if test -z "$LD"; then
4987 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4987 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4988    for ac_dir in $PATH; do
4989 <    IFS="$lt_save_ifs"
4989 >    IFS=$lt_save_ifs
4990      test -z "$ac_dir" && ac_dir=.
4991      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4992 <      lt_cv_path_LD="$ac_dir/$ac_prog"
4992 >      lt_cv_path_LD=$ac_dir/$ac_prog
4993        # Check to see if the program is GNU ld.  I'd rather use --version,
4994        # but apparently some variants of GNU ld only accept -v.
4995        # Break only if it was the GNU/non-GNU ld that we prefer.
4996        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4997        *GNU* | *'with BFD'*)
4998 <        test "$with_gnu_ld" != no && break
4998 >        test no != "$with_gnu_ld" && break
4999          ;;
5000        *)
5001 <        test "$with_gnu_ld" != yes && break
5001 >        test yes != "$with_gnu_ld" && break
5002          ;;
5003        esac
5004      fi
5005    done
5006 <  IFS="$lt_save_ifs"
5006 >  IFS=$lt_save_ifs
5007   else
5008 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5008 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5009   fi
5010   fi
5011  
5012 < LD="$lt_cv_path_LD"
5012 > LD=$lt_cv_path_LD
5013   if test -n "$LD"; then
5014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5015   $as_echo "$LD" >&6; }
# Line 5000 | Line 5052 | if ${lt_cv_path_NM+:} false; then :
5052   else
5053    if test -n "$NM"; then
5054    # Let the user override the test.
5055 <  lt_cv_path_NM="$NM"
5055 >  lt_cv_path_NM=$NM
5056   else
5057 <  lt_nm_to_check="${ac_tool_prefix}nm"
5057 >  lt_nm_to_check=${ac_tool_prefix}nm
5058    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5059      lt_nm_to_check="$lt_nm_to_check nm"
5060    fi
5061    for lt_tmp_nm in $lt_nm_to_check; do
5062 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5062 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5063      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5064 <      IFS="$lt_save_ifs"
5064 >      IFS=$lt_save_ifs
5065        test -z "$ac_dir" && ac_dir=.
5066 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5067 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5066 >      tmp_nm=$ac_dir/$lt_tmp_nm
5067 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5068          # Check to see if the nm accepts a BSD-compat flag.
5069 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5069 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5070          #   nm: unknown option "B" ignored
5071          # Tru64's nm complains that /dev/null is an invalid object file
5072 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5073 <        */dev/null* | *'Invalid file or object type'*)
5072 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5073 >        case $build_os in
5074 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5075 >        *) lt_bad_file=/dev/null ;;
5076 >        esac
5077 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5078 >        *$lt_bad_file* | *'Invalid file or object type'*)
5079            lt_cv_path_NM="$tmp_nm -B"
5080 <          break
5080 >          break 2
5081            ;;
5082          *)
5083            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5084            */dev/null*)
5085              lt_cv_path_NM="$tmp_nm -p"
5086 <            break
5086 >            break 2
5087              ;;
5088            *)
5089              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 5037 | Line 5094 | else
5094          esac
5095        fi
5096      done
5097 <    IFS="$lt_save_ifs"
5097 >    IFS=$lt_save_ifs
5098    done
5099    : ${lt_cv_path_NM=no}
5100   fi
5101   fi
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5103   $as_echo "$lt_cv_path_NM" >&6; }
5104 < if test "$lt_cv_path_NM" != "no"; then
5105 <  NM="$lt_cv_path_NM"
5104 > if test no != "$lt_cv_path_NM"; then
5105 >  NM=$lt_cv_path_NM
5106   else
5107    # Didn't find any BSD compatible name lister, look for dumpbin.
5108    if test -n "$DUMPBIN"; then :
# Line 5151 | Line 5208 | esac
5208    fi
5209   fi
5210  
5211 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5211 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5212      *COFF*)
5213 <      DUMPBIN="$DUMPBIN -symbols"
5213 >      DUMPBIN="$DUMPBIN -symbols -headers"
5214        ;;
5215      *)
5216        DUMPBIN=:
# Line 5161 | Line 5218 | fi
5218      esac
5219    fi
5220  
5221 <  if test "$DUMPBIN" != ":"; then
5222 <    NM="$DUMPBIN"
5221 >  if test : != "$DUMPBIN"; then
5222 >    NM=$DUMPBIN
5223    fi
5224   fi
5225   test -z "$NM" && NM=nm
# Line 5213 | Line 5270 | if ${lt_cv_sys_max_cmd_len+:} false; the
5270    $as_echo_n "(cached) " >&6
5271   else
5272      i=0
5273 <  teststring="ABCD"
5273 >  teststring=ABCD
5274  
5275    case $build_os in
5276    msdosdjgpp*)
# Line 5253 | Line 5310 | else
5310      lt_cv_sys_max_cmd_len=8192;
5311      ;;
5312  
5313 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5313 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5314      # This has been around since 386BSD, at least.  Likely further.
5315      if test -x /sbin/sysctl; then
5316        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5303 | Line 5360 | else
5360      ;;
5361    *)
5362      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5363 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5363 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5364 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5365        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5366        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5367      else
5368        # Make teststring a little bigger before we do anything with it.
5369        # a 1K string should be a reasonable start.
5370 <      for i in 1 2 3 4 5 6 7 8 ; do
5370 >      for i in 1 2 3 4 5 6 7 8; do
5371          teststring=$teststring$teststring
5372        done
5373        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5374        # If test is not a shell built-in, we'll probably end up computing a
5375        # maximum length that is only half of the actual maximum length, but
5376        # we can't tell.
5377 <      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5377 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5378                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5379 <              test $i != 17 # 1/2 MB should be enough
5379 >              test 17 != "$i" # 1/2 MB should be enough
5380        do
5381          i=`expr $i + 1`
5382          teststring=$teststring$teststring
# Line 5336 | Line 5394 | else
5394  
5395   fi
5396  
5397 < if test -n $lt_cv_sys_max_cmd_len ; then
5397 > if test -n "$lt_cv_sys_max_cmd_len"; then
5398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5399   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5400   else
# Line 5354 | Line 5412 | max_cmd_len=$lt_cv_sys_max_cmd_len
5412   : ${MV="mv -f"}
5413   : ${RM="rm -f"}
5414  
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5358 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5359 # Try some XSI features
5360 xsi_shell=no
5361 ( _lt_dummy="a/b/c"
5362  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5363      = c,a/b,b/c, \
5364    && eval 'test $(( 1 + 1 )) -eq 2 \
5365    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5366  && xsi_shell=yes
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5368 $as_echo "$xsi_shell" >&6; }
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5372 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5373 lt_shell_append=no
5374 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5375    >/dev/null 2>&1 \
5376  && lt_shell_append=yes
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5378 $as_echo "$lt_shell_append" >&6; }
5379
5380
5415   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5416    lt_unset=unset
5417   else
# Line 5500 | Line 5534 | esac
5534   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5535   case $host_os in
5536    cygwin* | mingw* | pw32* | cegcc*)
5537 <    if test "$GCC" != yes; then
5537 >    if test yes != "$GCC"; then
5538        reload_cmds=false
5539      fi
5540      ;;
5541    darwin*)
5542 <    if test "$GCC" = yes; then
5543 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5542 >    if test yes = "$GCC"; then
5543 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5544      else
5545        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5546      fi
# Line 5634 | Line 5668 | lt_cv_deplibs_check_method='unknown'
5668   # Need to set the preceding variable on all platforms that support
5669   # interlibrary dependencies.
5670   # 'none' -- dependencies not supported.
5671 < # `unknown' -- same as none, but documents that we really don't know.
5671 > # 'unknown' -- same as none, but documents that we really don't know.
5672   # 'pass_all' -- all dependencies passed with no checks.
5673   # 'test_compile' -- check by making test program.
5674   # 'file_magic [[regex]]' -- check by looking for files in library path
5675 < # which responds to the $file_magic_cmd with a given extended regex.
5676 < # If you have `file' or equivalent on your system and you're not sure
5677 < # whether `pass_all' will *always* work, you probably want this one.
5675 > # that responds to the $file_magic_cmd with a given extended regex.
5676 > # If you have 'file' or equivalent on your system and you're not sure
5677 > # whether 'pass_all' will *always* work, you probably want this one.
5678  
5679   case $host_os in
5680   aix[4-9]*)
# Line 5667 | Line 5701 | mingw* | pw32*)
5701    # Base MSYS/MinGW do not provide the 'file' command needed by
5702    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5703    # unless we find 'file', for example because we are cross-compiling.
5704 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5671 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5704 >  if ( file / ) >/dev/null 2>&1; then
5705      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5706      lt_cv_file_magic_cmd='func_win32_libid'
5707    else
# Line 5704 | Line 5737 | freebsd* | dragonfly*)
5737    fi
5738    ;;
5739  
5707 gnu*)
5708  lt_cv_deplibs_check_method=pass_all
5709  ;;
5710
5740   haiku*)
5741    lt_cv_deplibs_check_method=pass_all
5742    ;;
# Line 5746 | Line 5775 | irix5* | irix6* | nonstopux*)
5775    ;;
5776  
5777   # This must be glibc/ELF.
5778 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5778 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5779    lt_cv_deplibs_check_method=pass_all
5780    ;;
5781  
# Line 5768 | Line 5797 | newos6*)
5797    lt_cv_deplibs_check_method=pass_all
5798    ;;
5799  
5800 < openbsd*)
5801 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5800 > openbsd* | bitrig*)
5801 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5802      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5803    else
5804      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5822 | Line 5851 | sysv4 | sysv4.3*)
5851   tpf*)
5852    lt_cv_deplibs_check_method=pass_all
5853    ;;
5854 + os2*)
5855 +  lt_cv_deplibs_check_method=pass_all
5856 +  ;;
5857   esac
5858  
5859   fi
# Line 5979 | Line 6011 | else
6011  
6012   case $host_os in
6013   cygwin* | mingw* | pw32* | cegcc*)
6014 <  # two different shell functions defined in ltmain.sh
6015 <  # decide which to use based on capabilities of $DLLTOOL
6014 >  # two different shell functions defined in ltmain.sh;
6015 >  # decide which one to use based on capabilities of $DLLTOOL
6016    case `$DLLTOOL --help 2>&1` in
6017    *--identify-strict*)
6018      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 5992 | Line 6024 | cygwin* | mingw* | pw32* | cegcc*)
6024    ;;
6025   *)
6026    # fallback: assume linklib IS sharedlib
6027 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6027 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6028    ;;
6029   esac
6030  
# Line 6146 | Line 6178 | if ac_fn_c_try_compile "$LINENO"; then :
6178    ac_status=$?
6179    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180    test $ac_status = 0; }
6181 <      if test "$ac_status" -eq 0; then
6181 >      if test 0 -eq "$ac_status"; then
6182          # Ensure the archiver fails upon bogus file names.
6183          rm -f conftest.$ac_objext libconftest.a
6184          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6154 | Line 6186 | if ac_fn_c_try_compile "$LINENO"; then :
6186    ac_status=$?
6187    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188    test $ac_status = 0; }
6189 <        if test "$ac_status" -ne 0; then
6189 >        if test 0 -ne "$ac_status"; then
6190            lt_cv_ar_at_file=@
6191          fi
6192        fi
# Line 6167 | Line 6199 | fi
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6200   $as_echo "$lt_cv_ar_at_file" >&6; }
6201  
6202 < if test "x$lt_cv_ar_at_file" = xno; then
6202 > if test no = "$lt_cv_ar_at_file"; then
6203    archiver_list_spec=
6204   else
6205    archiver_list_spec=$lt_cv_ar_at_file
# Line 6384 | Line 6416 | old_postuninstall_cmds=
6416  
6417   if test -n "$RANLIB"; then
6418    case $host_os in
6419 <  openbsd*)
6419 >  bitrig* | openbsd*)
6420      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6421      ;;
6422    *)
# Line 6474 | Line 6506 | cygwin* | mingw* | pw32* | cegcc*)
6506    symcode='[ABCDGISTW]'
6507    ;;
6508   hpux*)
6509 <  if test "$host_cpu" = ia64; then
6509 >  if test ia64 = "$host_cpu"; then
6510      symcode='[ABCDEGRST]'
6511    fi
6512    ;;
# Line 6507 | Line 6539 | case `$NM -V 2>&1` in
6539    symcode='[ABCDGIRSTW]' ;;
6540   esac
6541  
6542 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6543 +  # Gets list of data symbols to import.
6544 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6545 +  # Adjust the below global symbol transforms to fixup imported variables.
6546 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6547 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6548 +  lt_c_name_lib_hook="\
6549 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6550 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6551 + else
6552 +  # Disable hooks by default.
6553 +  lt_cv_sys_global_symbol_to_import=
6554 +  lt_cdecl_hook=
6555 +  lt_c_name_hook=
6556 +  lt_c_name_lib_hook=
6557 + fi
6558 +
6559   # Transform an extracted symbol line into a proper C declaration.
6560   # Some systems (esp. on ia64) link data and code symbols differently,
6561   # so use this general approach.
6562 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6562 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6563 > $lt_cdecl_hook\
6564 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6565 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6566  
6567   # Transform an extracted symbol line into symbol name and symbol address
6568 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6569 < 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'"
6568 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6569 > $lt_c_name_hook\
6570 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6571 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6572 >
6573 > # Transform an extracted symbol line into symbol name with lib prefix and
6574 > # symbol address.
6575 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6576 > $lt_c_name_lib_hook\
6577 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6578 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6579 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6580  
6581   # Handle CRLF in mingw tool chain
6582   opt_cr=
# Line 6532 | Line 6594 | for ac_symprfx in "" "_"; do
6594  
6595    # Write the raw and C identifiers.
6596    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6597 <    # Fake it for dumpbin and say T for any non-static function
6598 <    # and D for any global variable.
6597 >    # Fake it for dumpbin and say T for any non-static function,
6598 >    # D for any global variable and I for any imported variable.
6599      # Also find C++ and __fastcall symbols from MSVC++,
6600      # which start with @ or ?.
6601      lt_cv_sys_global_symbol_pipe="$AWK '"\
6602   "     {last_section=section; section=\$ 3};"\
6603   "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6604   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6605 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6606 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6607 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6608   "     \$ 0!~/External *\|/{next};"\
6609   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6610   "     {if(hide[section]) next};"\
6611 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6612 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6613 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6614 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6611 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6612 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6613 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6614 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6615   "     ' prfx=^$ac_symprfx"
6616    else
6617      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6594 | Line 6659 | _LT_EOF
6659          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6660            cat <<_LT_EOF > conftest.$ac_ext
6661   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6662 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6663 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6662 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6663 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6664     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6665   # define LT_DLSYM_CONST
6666 < #elif defined(__osf__)
6666 > #elif defined __osf__
6667   /* This system does not cope well with relocations in const data.  */
6668   # define LT_DLSYM_CONST
6669   #else
# Line 6624 | Line 6689 | lt__PROGRAM__LTX_preloaded_symbols[] =
6689   {
6690    { "@PROGRAM@", (void *) 0 },
6691   _LT_EOF
6692 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6692 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6693            cat <<\_LT_EOF >> conftest.$ac_ext
6694    {0, (void *) 0}
6695   };
# Line 6644 | Line 6709 | _LT_EOF
6709            mv conftest.$ac_objext conftstm.$ac_objext
6710            lt_globsym_save_LIBS=$LIBS
6711            lt_globsym_save_CFLAGS=$CFLAGS
6712 <          LIBS="conftstm.$ac_objext"
6712 >          LIBS=conftstm.$ac_objext
6713            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6714            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6715    (eval $ac_link) 2>&5
6716    ac_status=$?
6717    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6718 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6719              pipe_works=yes
6720            fi
6721            LIBS=$lt_globsym_save_LIBS
# Line 6671 | Line 6736 | _LT_EOF
6736    rm -rf conftest* conftst*
6737  
6738    # Do not use the global_symbol_pipe unless it works.
6739 <  if test "$pipe_works" = yes; then
6739 >  if test yes = "$pipe_works"; then
6740      break
6741    else
6742      lt_cv_sys_global_symbol_pipe=
# Line 6724 | Line 6789 | fi
6789  
6790  
6791  
6792 +
6793 +
6794 +
6795 +
6796 +
6797 +
6798 +
6799 +
6800 +
6801 +
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6803   $as_echo_n "checking for sysroot... " >&6; }
6804  
# Line 6736 | Line 6811 | fi
6811  
6812  
6813   lt_sysroot=
6814 < case ${with_sysroot} in #(
6814 > case $with_sysroot in #(
6815   yes)
6816 <   if test "$GCC" = yes; then
6816 >   if test yes = "$GCC"; then
6817       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6818     fi
6819     ;; #(
# Line 6748 | Line 6823 | case ${with_sysroot} in #(
6823   no|'')
6824     ;; #(
6825   *)
6826 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6827 < $as_echo "${with_sysroot}" >&6; }
6826 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6827 > $as_echo "$with_sysroot" >&6; }
6828     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6829     ;;
6830   esac
# Line 6761 | Line 6836 | $as_echo "${lt_sysroot:-no}" >&6; }
6836  
6837  
6838  
6839 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6840 + $as_echo_n "checking for a working dd... " >&6; }
6841 + if ${ac_cv_path_lt_DD+:} false; then :
6842 +  $as_echo_n "(cached) " >&6
6843 + else
6844 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6845 + cat conftest.i conftest.i >conftest2.i
6846 + : ${lt_DD:=$DD}
6847 + if test -z "$lt_DD"; then
6848 +  ac_path_lt_DD_found=false
6849 +  # Loop through the user's path and test for each of PROGNAME-LIST
6850 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 + for as_dir in $PATH
6852 + do
6853 +  IFS=$as_save_IFS
6854 +  test -z "$as_dir" && as_dir=.
6855 +    for ac_prog in dd; do
6856 +    for ac_exec_ext in '' $ac_executable_extensions; do
6857 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6858 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6859 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6860 +  cmp -s conftest.i conftest.out \
6861 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6862 + fi
6863 +      $ac_path_lt_DD_found && break 3
6864 +    done
6865 +  done
6866 +  done
6867 + IFS=$as_save_IFS
6868 +  if test -z "$ac_cv_path_lt_DD"; then
6869 +    :
6870 +  fi
6871 + else
6872 +  ac_cv_path_lt_DD=$lt_DD
6873 + fi
6874 +
6875 + rm -f conftest.i conftest2.i conftest.out
6876 + fi
6877 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6878 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6879 +
6880 +
6881 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6882 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6883 + if ${lt_cv_truncate_bin+:} false; then :
6884 +  $as_echo_n "(cached) " >&6
6885 + else
6886 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6887 + cat conftest.i conftest.i >conftest2.i
6888 + lt_cv_truncate_bin=
6889 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6890 +  cmp -s conftest.i conftest.out \
6891 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6892 + fi
6893 + rm -f conftest.i conftest2.i conftest.out
6894 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6895 + fi
6896 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6897 + $as_echo "$lt_cv_truncate_bin" >&6; }
6898 +
6899 +
6900 +
6901 +
6902 +
6903 +
6904 +
6905 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6906 + func_cc_basename ()
6907 + {
6908 +    for cc_temp in $*""; do
6909 +      case $cc_temp in
6910 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6911 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6912 +        \-*) ;;
6913 +        *) break;;
6914 +      esac
6915 +    done
6916 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6917 + }
6918 +
6919   # Check whether --enable-libtool-lock was given.
6920   if test "${enable_libtool_lock+set}" = set; then :
6921    enableval=$enable_libtool_lock;
6922   fi
6923  
6924 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6924 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6925  
6926   # Some flags need to be propagated to the compiler or linker for good
6927   # libtool support.
6928   case $host in
6929   ia64-*-hpux*)
6930 <  # Find out which ABI we are using.
6930 >  # Find out what ABI is being produced by ac_compile, and set mode
6931 >  # options accordingly.
6932    echo 'int i;' > conftest.$ac_ext
6933    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6934    (eval $ac_compile) 2>&5
# Line 6781 | Line 6937 | ia64-*-hpux*)
6937    test $ac_status = 0; }; then
6938      case `/usr/bin/file conftest.$ac_objext` in
6939        *ELF-32*)
6940 <        HPUX_IA64_MODE="32"
6940 >        HPUX_IA64_MODE=32
6941          ;;
6942        *ELF-64*)
6943 <        HPUX_IA64_MODE="64"
6943 >        HPUX_IA64_MODE=64
6944          ;;
6945      esac
6946    fi
6947    rm -rf conftest*
6948    ;;
6949   *-*-irix6*)
6950 <  # Find out which ABI we are using.
6950 >  # Find out what ABI is being produced by ac_compile, and set linker
6951 >  # options accordingly.
6952    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6953    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954    (eval $ac_compile) 2>&5
6955    ac_status=$?
6956    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957    test $ac_status = 0; }; then
6958 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6958 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6959        case `/usr/bin/file conftest.$ac_objext` in
6960          *32-bit*)
6961            LD="${LD-ld} -melf32bsmip"
# Line 6827 | Line 6984 | ia64-*-hpux*)
6984    rm -rf conftest*
6985    ;;
6986  
6987 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6987 > mips64*-*linux*)
6988 >  # Find out what ABI is being produced by ac_compile, and set linker
6989 >  # options accordingly.
6990 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6991 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6992 >  (eval $ac_compile) 2>&5
6993 >  ac_status=$?
6994 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995 >  test $ac_status = 0; }; then
6996 >    emul=elf
6997 >    case `/usr/bin/file conftest.$ac_objext` in
6998 >      *32-bit*)
6999 >        emul="${emul}32"
7000 >        ;;
7001 >      *64-bit*)
7002 >        emul="${emul}64"
7003 >        ;;
7004 >    esac
7005 >    case `/usr/bin/file conftest.$ac_objext` in
7006 >      *MSB*)
7007 >        emul="${emul}btsmip"
7008 >        ;;
7009 >      *LSB*)
7010 >        emul="${emul}ltsmip"
7011 >        ;;
7012 >    esac
7013 >    case `/usr/bin/file conftest.$ac_objext` in
7014 >      *N32*)
7015 >        emul="${emul}n32"
7016 >        ;;
7017 >    esac
7018 >    LD="${LD-ld} -m $emul"
7019 >  fi
7020 >  rm -rf conftest*
7021 >  ;;
7022 >
7023 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7024   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7025 <  # Find out which ABI we are using.
7025 >  # Find out what ABI is being produced by ac_compile, and set linker
7026 >  # options accordingly.  Note that the listed cases only cover the
7027 >  # situations where additional linker options are needed (such as when
7028 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7029 >  # vice versa); the common cases where no linker options are needed do
7030 >  # not appear in the list.
7031    echo 'int i;' > conftest.$ac_ext
7032    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7033    (eval $ac_compile) 2>&5
# Line 6843 | Line 7041 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7041              LD="${LD-ld} -m elf_i386_fbsd"
7042              ;;
7043            x86_64-*linux*)
7044 <            LD="${LD-ld} -m elf_i386"
7044 >            case `/usr/bin/file conftest.o` in
7045 >              *x86-64*)
7046 >                LD="${LD-ld} -m elf32_x86_64"
7047 >                ;;
7048 >              *)
7049 >                LD="${LD-ld} -m elf_i386"
7050 >                ;;
7051 >            esac
7052 >            ;;
7053 >          powerpc64le-*linux*)
7054 >            LD="${LD-ld} -m elf32lppclinux"
7055              ;;
7056 <          ppc64-*linux*|powerpc64-*linux*)
7056 >          powerpc64-*linux*)
7057              LD="${LD-ld} -m elf32ppclinux"
7058              ;;
7059            s390x-*linux*)
# Line 6864 | Line 7072 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7072            x86_64-*linux*)
7073              LD="${LD-ld} -m elf_x86_64"
7074              ;;
7075 <          ppc*-*linux*|powerpc*-*linux*)
7075 >          powerpcle-*linux*)
7076 >            LD="${LD-ld} -m elf64lppc"
7077 >            ;;
7078 >          powerpc-*linux*)
7079              LD="${LD-ld} -m elf64ppc"
7080              ;;
7081            s390*-*linux*|s390*-*tpf*)
# Line 6882 | Line 7093 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7093  
7094   *-*-sco3.2v5*)
7095    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7096 <  SAVE_CFLAGS="$CFLAGS"
7096 >  SAVE_CFLAGS=$CFLAGS
7097    CFLAGS="$CFLAGS -belf"
7098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7099   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 6922 | Line 7133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133   fi
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7135   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7136 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7136 >  if test yes != "$lt_cv_cc_needs_belf"; then
7137      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7138 <    CFLAGS="$SAVE_CFLAGS"
7138 >    CFLAGS=$SAVE_CFLAGS
7139    fi
7140    ;;
7141   *-*solaris*)
7142 <  # Find out which ABI we are using.
7142 >  # Find out what ABI is being produced by ac_compile, and set linker
7143 >  # options accordingly.
7144    echo 'int i;' > conftest.$ac_ext
7145    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7146    (eval $ac_compile) 2>&5
# Line 6940 | Line 7152 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7152        case $lt_cv_prog_gnu_ld in
7153        yes*)
7154          case $host in
7155 <        i?86-*-solaris*)
7155 >        i?86-*-solaris*|x86_64-*-solaris*)
7156            LD="${LD-ld} -m elf_x86_64"
7157            ;;
7158          sparc*-*-solaris*)
# Line 6949 | Line 7161 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7161          esac
7162          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7163          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7164 <          LD="${LD-ld}_sol2"
7164 >          LD=${LD-ld}_sol2
7165          fi
7166          ;;
7167        *)
# Line 6965 | Line 7177 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7177    ;;
7178   esac
7179  
7180 < need_locks="$enable_libtool_lock"
7180 > need_locks=$enable_libtool_lock
7181  
7182   if test -n "$ac_tool_prefix"; then
7183    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 7076 | Line 7288 | else
7288   fi
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7290   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7291 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7291 > if test yes != "$lt_cv_path_mainfest_tool"; then
7292    MANIFEST_TOOL=:
7293   fi
7294  
# Line 7579 | Line 7791 | if ${lt_cv_apple_cc_single_mod+:} false;
7791    $as_echo_n "(cached) " >&6
7792   else
7793    lt_cv_apple_cc_single_mod=no
7794 <      if test -z "${LT_MULTI_MODULE}"; then
7794 >      if test -z "$LT_MULTI_MODULE"; then
7795          # By default we will add the -single_module flag. You can override
7796          # by either setting the environment variable LT_MULTI_MODULE
7797          # non-empty at configure time, or by adding -multi_module to the
# Line 7597 | Line 7809 | else
7809            cat conftest.err >&5
7810          # Otherwise, if the output was created with a 0 exit code from
7811          # the compiler, it worked.
7812 <        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7812 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7813            lt_cv_apple_cc_single_mod=yes
7814          else
7815            cat conftest.err >&5
# Line 7636 | Line 7848 | else
7848   fi
7849   rm -f core conftest.err conftest.$ac_objext \
7850      conftest$ac_exeext conftest.$ac_ext
7851 <        LDFLAGS="$save_LDFLAGS"
7851 >        LDFLAGS=$save_LDFLAGS
7852  
7853   fi
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
# Line 7665 | Line 7877 | _LT_EOF
7877        _lt_result=$?
7878        if test -s conftest.err && $GREP force_load conftest.err; then
7879          cat conftest.err >&5
7880 <      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7880 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7881          lt_cv_ld_force_load=yes
7882        else
7883          cat conftest.err >&5
# Line 7678 | Line 7890 | fi
7890   $as_echo "$lt_cv_ld_force_load" >&6; }
7891      case $host_os in
7892      rhapsody* | darwin1.[012])
7893 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7893 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7894      darwin1.*)
7895 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7895 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7896      darwin*) # darwin 5.x on
7897        # if running on 10.5 or later, the deployment target defaults
7898        # to the OS version, if on x86, and 10.4, the deployment
7899        # target defaults to 10.4. Don't you love it?
7900        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7901          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7902 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7903 <        10.[012]*)
7904 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7902 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7903 >        10.[012][,.]*)
7904 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7905          10.*)
7906 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7906 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7907        esac
7908      ;;
7909    esac
7910 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7910 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7911        _lt_dar_single_mod='$single_module'
7912      fi
7913 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7914 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7913 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7914 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7915      else
7916 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7916 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7917      fi
7918 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7918 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7919        _lt_dsymutil='~$DSYMUTIL $lib || :'
7920      else
7921        _lt_dsymutil=
# Line 7711 | Line 7923 | $as_echo "$lt_cv_ld_force_load" >&6; }
7923      ;;
7924    esac
7925  
7926 + # func_munge_path_list VARIABLE PATH
7927 + # -----------------------------------
7928 + # VARIABLE is name of variable containing _space_ separated list of
7929 + # directories to be munged by the contents of PATH, which is string
7930 + # having a format:
7931 + # "DIR[:DIR]:"
7932 + #       string "DIR[ DIR]" will be prepended to VARIABLE
7933 + # ":DIR[:DIR]"
7934 + #       string "DIR[ DIR]" will be appended to VARIABLE
7935 + # "DIRP[:DIRP]::[DIRA:]DIRA"
7936 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7937 + #       "DIRA[ DIRA]" will be appended to VARIABLE
7938 + # "DIR[:DIR]"
7939 + #       VARIABLE will be replaced by "DIR[ DIR]"
7940 + func_munge_path_list ()
7941 + {
7942 +    case x$2 in
7943 +    x)
7944 +        ;;
7945 +    *:)
7946 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7947 +        ;;
7948 +    x:*)
7949 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7950 +        ;;
7951 +    *::*)
7952 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7953 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7954 +        ;;
7955 +    *)
7956 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7957 +        ;;
7958 +    esac
7959 + }
7960 +
7961   ac_ext=c
7962   ac_cpp='$CPP $CPPFLAGS'
7963   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8006 | Line 8253 | if test "${enable_static+set}" = set; th
8253      *)
8254       enable_static=no
8255        # Look at the argument we got.  We use all the common list separators.
8256 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8256 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8257        for pkg in $enableval; do
8258 <        IFS="$lt_save_ifs"
8258 >        IFS=$lt_save_ifs
8259          if test "X$pkg" = "X$p"; then
8260            enable_static=yes
8261          fi
8262        done
8263 <      IFS="$lt_save_ifs"
8263 >      IFS=$lt_save_ifs
8264        ;;
8265      esac
8266   else
# Line 8042 | Line 8289 | if test "${enable_shared+set}" = set; th
8289      *)
8290        enable_shared=no
8291        # Look at the argument we got.  We use all the common list separators.
8292 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8292 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8293        for pkg in $enableval; do
8294 <        IFS="$lt_save_ifs"
8294 >        IFS=$lt_save_ifs
8295          if test "X$pkg" = "X$p"; then
8296            enable_shared=yes
8297          fi
8298        done
8299 <      IFS="$lt_save_ifs"
8299 >      IFS=$lt_save_ifs
8300        ;;
8301      esac
8302   else
# Line 8074 | Line 8321 | if test "${with_pic+set}" = set; then :
8321      *)
8322        pic_mode=default
8323        # Look at the argument we got.  We use all the common list separators.
8324 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8324 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8325        for lt_pkg in $withval; do
8326 <        IFS="$lt_save_ifs"
8326 >        IFS=$lt_save_ifs
8327          if test "X$lt_pkg" = "X$lt_p"; then
8328            pic_mode=yes
8329          fi
8330        done
8331 <      IFS="$lt_save_ifs"
8331 >      IFS=$lt_save_ifs
8332        ;;
8333      esac
8334   else
# Line 8089 | Line 8336 | else
8336   fi
8337  
8338  
8092 test -z "$pic_mode" && pic_mode=default
8093
8339  
8340  
8341  
# Line 8106 | Line 8351 | if test "${enable_fast_install+set}" = s
8351      *)
8352        enable_fast_install=no
8353        # Look at the argument we got.  We use all the common list separators.
8354 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8354 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8355        for pkg in $enableval; do
8356 <        IFS="$lt_save_ifs"
8356 >        IFS=$lt_save_ifs
8357          if test "X$pkg" = "X$p"; then
8358            enable_fast_install=yes
8359          fi
8360        done
8361 <      IFS="$lt_save_ifs"
8361 >      IFS=$lt_save_ifs
8362        ;;
8363      esac
8364   else
# Line 8127 | Line 8372 | fi
8372  
8373  
8374  
8375 +  shared_archive_member_spec=
8376 + case $host,$enable_shared in
8377 + power*-*-aix[5-9]*,yes)
8378 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8379 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8380 +
8381 + # Check whether --with-aix-soname was given.
8382 + if test "${with_aix_soname+set}" = set; then :
8383 +  withval=$with_aix_soname; case $withval in
8384 +    aix|svr4|both)
8385 +      ;;
8386 +    *)
8387 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8388 +      ;;
8389 +    esac
8390 +    lt_cv_with_aix_soname=$with_aix_soname
8391 + else
8392 +  if ${lt_cv_with_aix_soname+:} false; then :
8393 +  $as_echo_n "(cached) " >&6
8394 + else
8395 +  lt_cv_with_aix_soname=aix
8396 + fi
8397 +
8398 +    with_aix_soname=$lt_cv_with_aix_soname
8399 + fi
8400 +
8401 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8402 + $as_echo "$with_aix_soname" >&6; }
8403 +  if test aix != "$with_aix_soname"; then
8404 +    # For the AIX way of multilib, we name the shared archive member
8405 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8406 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8407 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8408 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8409 +    if test 64 = "${OBJECT_MODE-32}"; then
8410 +      shared_archive_member_spec=shr_64
8411 +    else
8412 +      shared_archive_member_spec=shr
8413 +    fi
8414 +  fi
8415 +  ;;
8416 + *)
8417 +  with_aix_soname=aix
8418 +  ;;
8419 + esac
8420 +
8421 +
8422 +
8423 +
8424 +
8425 +
8426 +
8427  
8428  
8429  
8430   # This can be used to rebuild libtool when needed
8431 < LIBTOOL_DEPS="$ltmain"
8431 > LIBTOOL_DEPS=$ltmain
8432  
8433   # Always use our own libtool.
8434   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8180 | Line 8477 | test -z "$LN_S" && LN_S="ln -s"
8477  
8478  
8479  
8480 < if test -n "${ZSH_VERSION+set}" ; then
8480 > if test -n "${ZSH_VERSION+set}"; then
8481     setopt NO_GLOB_SUBST
8482   fi
8483  
# Line 8219 | Line 8516 | aix3*)
8516    # AIX sometimes has problems with the GCC collect2 program.  For some
8517    # reason, if we set the COLLECT_NAMES environment variable, the problems
8518    # vanish in a puff of smoke.
8519 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8519 >  if test set != "${COLLECT_NAMES+set}"; then
8520      COLLECT_NAMES=
8521      export COLLECT_NAMES
8522    fi
# Line 8230 | Line 8527 | esac
8527   ofile=libtool
8528   can_build_shared=yes
8529  
8530 < # All known linkers require a `.a' archive for static linking (except MSVC,
8530 > # All known linkers require a '.a' archive for static linking (except MSVC,
8531   # which needs '.lib').
8532   libext=a
8533  
8534 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8534 > with_gnu_ld=$lt_cv_prog_gnu_ld
8535  
8536 < old_CC="$CC"
8537 < old_CFLAGS="$CFLAGS"
8536 > old_CC=$CC
8537 > old_CFLAGS=$CFLAGS
8538  
8539   # Set sane defaults for various variables
8540   test -z "$CC" && CC=cc
# Line 8246 | Line 8543 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8543   test -z "$LD" && LD=ld
8544   test -z "$ac_objext" && ac_objext=o
8545  
8546 < for cc_temp in $compiler""; do
8547 <  case $cc_temp in
8251 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253 <    \-*) ;;
8254 <    *) break;;
8255 <  esac
8256 < done
8257 < cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8546 > func_cc_basename $compiler
8547 > cc_basename=$func_cc_basename_result
8548  
8549  
8550   # Only perform the check for file, if the check method requires it
# Line 8269 | Line 8559 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8559   else
8560    case $MAGIC_CMD in
8561   [\\/*] |  ?:[\\/]*)
8562 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8562 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8563    ;;
8564   *)
8565 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8566 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8565 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8566 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8567    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8568    for ac_dir in $ac_dummy; do
8569 <    IFS="$lt_save_ifs"
8569 >    IFS=$lt_save_ifs
8570      test -z "$ac_dir" && ac_dir=.
8571 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8572 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8571 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8572 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8573        if test -n "$file_magic_test_file"; then
8574          case $deplibs_check_method in
8575          "file_magic "*)
8576            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8577 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8578            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8579              $EGREP "$file_magic_regex" > /dev/null; then
8580              :
# Line 8307 | Line 8597 | _LT_EOF
8597        break
8598      fi
8599    done
8600 <  IFS="$lt_save_ifs"
8601 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8600 >  IFS=$lt_save_ifs
8601 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8602    ;;
8603   esac
8604   fi
8605  
8606 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8606 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8607   if test -n "$MAGIC_CMD"; then
8608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8609   $as_echo "$MAGIC_CMD" >&6; }
# Line 8335 | Line 8625 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8625   else
8626    case $MAGIC_CMD in
8627   [\\/*] |  ?:[\\/]*)
8628 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8628 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8629    ;;
8630   *)
8631 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8632 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8631 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8632 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8633    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8634    for ac_dir in $ac_dummy; do
8635 <    IFS="$lt_save_ifs"
8635 >    IFS=$lt_save_ifs
8636      test -z "$ac_dir" && ac_dir=.
8637 <    if test -f $ac_dir/file; then
8638 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8637 >    if test -f "$ac_dir/file"; then
8638 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8639        if test -n "$file_magic_test_file"; then
8640          case $deplibs_check_method in
8641          "file_magic "*)
8642            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8643 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8643 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8644            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8645              $EGREP "$file_magic_regex" > /dev/null; then
8646              :
# Line 8373 | Line 8663 | _LT_EOF
8663        break
8664      fi
8665    done
8666 <  IFS="$lt_save_ifs"
8667 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8666 >  IFS=$lt_save_ifs
8667 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8668    ;;
8669   esac
8670   fi
8671  
8672 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8672 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8673   if test -n "$MAGIC_CMD"; then
8674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8675   $as_echo "$MAGIC_CMD" >&6; }
# Line 8400 | Line 8690 | esac
8690  
8691   # Use C for the default configuration in the libtool script
8692  
8693 < lt_save_CC="$CC"
8693 > lt_save_CC=$CC
8694   ac_ext=c
8695   ac_cpp='$CPP $CPPFLAGS'
8696   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8454 | Line 8744 | _lt_linker_boilerplate=`cat conftest.err
8744   $RM -r conftest*
8745  
8746  
8747 + ## CAVEAT EMPTOR:
8748 + ## There is no encapsulation within the following macros, do not change
8749 + ## the running order or otherwise move them around unless you know exactly
8750 + ## what you are doing...
8751   if test -n "$compiler"; then
8752  
8753   lt_prog_compiler_no_builtin_flag=
8754  
8755 < if test "$GCC" = yes; then
8755 > if test yes = "$GCC"; then
8756    case $cc_basename in
8757    nvcc*)
8758      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8474 | Line 8768 | else
8768    lt_cv_prog_compiler_rtti_exceptions=no
8769     ac_outfile=conftest.$ac_objext
8770     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8771 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8771 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8772     # Insert the option either (1) after the last *FLAGS variable, or
8773     # (2) before a word containing "conftest.", or (3) at the end.
8774     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8504 | Line 8798 | fi
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8799   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8800  
8801 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8801 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8802      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8803   else
8804      :
# Line 8522 | Line 8816 | lt_prog_compiler_pic=
8816   lt_prog_compiler_static=
8817  
8818  
8819 <  if test "$GCC" = yes; then
8819 >  if test yes = "$GCC"; then
8820      lt_prog_compiler_wl='-Wl,'
8821      lt_prog_compiler_static='-static'
8822  
8823      case $host_os in
8824        aix*)
8825        # All AIX code is PIC.
8826 <      if test "$host_cpu" = ia64; then
8826 >      if test ia64 = "$host_cpu"; then
8827          # AIX 5 now supports IA64 processor
8828          lt_prog_compiler_static='-Bstatic'
8829        fi
8830 +      lt_prog_compiler_pic='-fPIC'
8831        ;;
8832  
8833      amigaos*)
# Line 8543 | Line 8838 | lt_prog_compiler_static=
8838          ;;
8839        m68k)
8840              # FIXME: we need at least 68020 code to build shared libraries, but
8841 <            # adding the `-m68020' flag to GCC prevents building anything better,
8842 <            # like `-m68040'.
8841 >            # adding the '-m68020' flag to GCC prevents building anything better,
8842 >            # like '-m68040'.
8843              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8844          ;;
8845        esac
# Line 8560 | Line 8855 | lt_prog_compiler_static=
8855        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8856        # (--disable-auto-import) libraries
8857        lt_prog_compiler_pic='-DDLL_EXPORT'
8858 +      case $host_os in
8859 +      os2*)
8860 +        lt_prog_compiler_static='$wl-static'
8861 +        ;;
8862 +      esac
8863        ;;
8864  
8865      darwin* | rhapsody*)
# Line 8630 | Line 8930 | lt_prog_compiler_static=
8930      case $host_os in
8931      aix*)
8932        lt_prog_compiler_wl='-Wl,'
8933 <      if test "$host_cpu" = ia64; then
8933 >      if test ia64 = "$host_cpu"; then
8934          # AIX 5 now supports IA64 processor
8935          lt_prog_compiler_static='-Bstatic'
8936        else
# Line 8638 | Line 8938 | lt_prog_compiler_static=
8938        fi
8939        ;;
8940  
8941 +    darwin* | rhapsody*)
8942 +      # PIC is the default on this platform
8943 +      # Common symbols not allowed in MH_DYLIB files
8944 +      lt_prog_compiler_pic='-fno-common'
8945 +      case $cc_basename in
8946 +      nagfor*)
8947 +        # NAG Fortran compiler
8948 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8949 +        lt_prog_compiler_pic='-PIC'
8950 +        lt_prog_compiler_static='-Bstatic'
8951 +        ;;
8952 +      esac
8953 +      ;;
8954 +
8955      mingw* | cygwin* | pw32* | os2* | cegcc*)
8956        # This hack is so that the source file can tell whether it is being
8957        # built for inclusion in a dll (and should export symbols for example).
8958        lt_prog_compiler_pic='-DDLL_EXPORT'
8959 +      case $host_os in
8960 +      os2*)
8961 +        lt_prog_compiler_static='$wl-static'
8962 +        ;;
8963 +      esac
8964        ;;
8965  
8966      hpux9* | hpux10* | hpux11*)
# Line 8657 | Line 8976 | lt_prog_compiler_static=
8976          ;;
8977        esac
8978        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8979 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8979 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8980        ;;
8981  
8982      irix5* | irix6* | nonstopux*)
# Line 8666 | Line 8985 | lt_prog_compiler_static=
8985        lt_prog_compiler_static='-non_shared'
8986        ;;
8987  
8988 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8988 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8989        case $cc_basename in
8990 <      # old Intel for x86_64 which still supported -KPIC.
8990 >      # old Intel for x86_64, which still supported -KPIC.
8991        ecc*)
8992          lt_prog_compiler_wl='-Wl,'
8993          lt_prog_compiler_pic='-KPIC'
# Line 8693 | Line 9012 | lt_prog_compiler_static=
9012          lt_prog_compiler_pic='-PIC'
9013          lt_prog_compiler_static='-Bstatic'
9014          ;;
9015 +      tcc*)
9016 +        # Fabrice Bellard et al's Tiny C Compiler
9017 +        lt_prog_compiler_wl='-Wl,'
9018 +        lt_prog_compiler_pic='-fPIC'
9019 +        lt_prog_compiler_static='-static'
9020 +        ;;
9021        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9022          # Portland Group compilers (*not* the Pentium gcc compiler,
9023          # which looks to be a dead project)
# Line 8790 | Line 9115 | lt_prog_compiler_static=
9115        ;;
9116  
9117      sysv4*MP*)
9118 <      if test -d /usr/nec ;then
9118 >      if test -d /usr/nec; then
9119          lt_prog_compiler_pic='-Kconform_pic'
9120          lt_prog_compiler_static='-Bstatic'
9121        fi
# Line 8819 | Line 9144 | lt_prog_compiler_static=
9144    fi
9145  
9146   case $host_os in
9147 <  # For platforms which do not support PIC, -DPIC is meaningless:
9147 >  # For platforms that do not support PIC, -DPIC is meaningless:
9148    *djgpp*)
9149      lt_prog_compiler_pic=
9150      ;;
# Line 8851 | Line 9176 | else
9176    lt_cv_prog_compiler_pic_works=no
9177     ac_outfile=conftest.$ac_objext
9178     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9179 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9179 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9180     # Insert the option either (1) after the last *FLAGS variable, or
9181     # (2) before a word containing "conftest.", or (3) at the end.
9182     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8881 | Line 9206 | fi
9206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9207   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9208  
9209 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9209 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9210      case $lt_prog_compiler_pic in
9211       "" | " "*) ;;
9212       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 8913 | Line 9238 | if ${lt_cv_prog_compiler_static_works+:}
9238    $as_echo_n "(cached) " >&6
9239   else
9240    lt_cv_prog_compiler_static_works=no
9241 <   save_LDFLAGS="$LDFLAGS"
9241 >   save_LDFLAGS=$LDFLAGS
9242     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9243     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9244     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 8932 | Line 9257 | else
9257       fi
9258     fi
9259     $RM -r conftest*
9260 <   LDFLAGS="$save_LDFLAGS"
9260 >   LDFLAGS=$save_LDFLAGS
9261  
9262   fi
9263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9264   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9265  
9266 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9266 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9267      :
9268   else
9269      lt_prog_compiler_static=
# Line 9058 | Line 9383 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9383  
9384  
9385  
9386 < hard_links="nottested"
9387 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9386 > hard_links=nottested
9387 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9388    # do not overwrite the value of need_locks provided by the user
9389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9390   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 9071 | Line 9396 | $as_echo_n "checking if we can lock with
9396    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9397    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9398   $as_echo "$hard_links" >&6; }
9399 <  if test "$hard_links" = no; then
9400 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9401 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9399 >  if test no = "$hard_links"; then
9400 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9401 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9402      need_locks=warn
9403    fi
9404   else
# Line 9116 | Line 9441 | $as_echo_n "checking whether the $compil
9441    # included in the symbol list
9442    include_expsyms=
9443    # exclude_expsyms can be an extended regexp of symbols to exclude
9444 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9445 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9446 <  # as well as any symbol that contains `d'.
9444 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9445 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9446 >  # as well as any symbol that contains 'd'.
9447    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9448    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9449    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9133 | Line 9458 | $as_echo_n "checking whether the $compil
9458      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9459      # When not using gcc, we currently assume that we are using
9460      # Microsoft Visual C++.
9461 <    if test "$GCC" != yes; then
9461 >    if test yes != "$GCC"; then
9462        with_gnu_ld=no
9463      fi
9464      ;;
# Line 9141 | Line 9466 | $as_echo_n "checking whether the $compil
9466      # we just hope/assume this is gcc and not c89 (= MSVC++)
9467      with_gnu_ld=yes
9468      ;;
9469 <  openbsd*)
9469 >  openbsd* | bitrig*)
9470      with_gnu_ld=no
9471      ;;
9472    esac
# Line 9151 | Line 9476 | $as_echo_n "checking whether the $compil
9476    # On some targets, GNU ld is compatible enough with the native linker
9477    # that we're better off using the native interface for both.
9478    lt_use_gnu_ld_interface=no
9479 <  if test "$with_gnu_ld" = yes; then
9479 >  if test yes = "$with_gnu_ld"; then
9480      case $host_os in
9481        aix*)
9482          # The AIX port of GNU ld has always aspired to compatibility
# Line 9173 | Line 9498 | $as_echo_n "checking whether the $compil
9498      esac
9499    fi
9500  
9501 <  if test "$lt_use_gnu_ld_interface" = yes; then
9501 >  if test yes = "$lt_use_gnu_ld_interface"; then
9502      # If archive_cmds runs LD, not CC, wlarc should be empty
9503 <    wlarc='${wl}'
9503 >    wlarc='$wl'
9504  
9505      # Set some defaults for GNU ld with shared library support. These
9506      # are reset later if shared libraries are not supported. Putting them
9507      # here allows them to be overridden if necessary.
9508      runpath_var=LD_RUN_PATH
9509 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9509 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9510 >    export_dynamic_flag_spec='$wl--export-dynamic'
9511      # ancient GNU ld didn't support --whole-archive et. al.
9512      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9513 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9513 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9514      else
9515        whole_archive_flag_spec=
9516      fi
9517      supports_anon_versioning=no
9518 <    case `$LD -v 2>&1` in
9518 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9519        *GNU\ gold*) supports_anon_versioning=yes ;;
9520        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9521        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9203 | Line 9528 | $as_echo_n "checking whether the $compil
9528      case $host_os in
9529      aix[3-9]*)
9530        # On AIX/PPC, the GNU linker is very broken
9531 <      if test "$host_cpu" != ia64; then
9531 >      if test ia64 != "$host_cpu"; then
9532          ld_shlibs=no
9533          cat <<_LT_EOF 1>&2
9534  
# Line 9222 | Line 9547 | _LT_EOF
9547        case $host_cpu in
9548        powerpc)
9549              # see comment about AmigaOS4 .so support
9550 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9551              archive_expsym_cmds=''
9552          ;;
9553        m68k)
# Line 9238 | Line 9563 | _LT_EOF
9563          allow_undefined_flag=unsupported
9564          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9565          # support --undefined.  This deserves some investigation.  FIXME
9566 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9567        else
9568          ld_shlibs=no
9569        fi
# Line 9248 | Line 9573 | _LT_EOF
9573        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9574        # as there is no search path for DLLs.
9575        hardcode_libdir_flag_spec='-L$libdir'
9576 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9576 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9577        allow_undefined_flag=unsupported
9578        always_export_symbols=no
9579        enable_shared_with_static_runtimes=yes
# Line 9256 | Line 9581 | _LT_EOF
9581        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9582  
9583        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9584 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9585 <        # If the export-symbols file already is a .def file (1st line
9586 <        # is EXPORTS), use it as is; otherwise, prepend...
9587 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9588 <          cp $export_symbols $output_objdir/$soname.def;
9589 <        else
9590 <          echo EXPORTS > $output_objdir/$soname.def;
9591 <          cat $export_symbols >> $output_objdir/$soname.def;
9592 <        fi~
9593 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9584 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9585 >        # If the export-symbols file already is a .def file, use it as
9586 >        # is; otherwise, prepend EXPORTS...
9587 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9588 >          cp $export_symbols $output_objdir/$soname.def;
9589 >        else
9590 >          echo EXPORTS > $output_objdir/$soname.def;
9591 >          cat $export_symbols >> $output_objdir/$soname.def;
9592 >        fi~
9593 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9594        else
9595          ld_shlibs=no
9596        fi
9597        ;;
9598  
9599      haiku*)
9600 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9601        link_all_deplibs=yes
9602        ;;
9603  
9604 +    os2*)
9605 +      hardcode_libdir_flag_spec='-L$libdir'
9606 +      hardcode_minus_L=yes
9607 +      allow_undefined_flag=unsupported
9608 +      shrext_cmds=.dll
9609 +      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9610 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9611 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9612 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9613 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9614 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9615 +        emximp -o $lib $output_objdir/$libname.def'
9616 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9617 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9618 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9619 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9620 +        prefix_cmds="$SED"~
9621 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9622 +          prefix_cmds="$prefix_cmds -e 1d";
9623 +        fi~
9624 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9625 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9626 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9627 +        emximp -o $lib $output_objdir/$libname.def'
9628 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9629 +      enable_shared_with_static_runtimes=yes
9630 +      ;;
9631 +
9632      interix[3-9]*)
9633        hardcode_direct=no
9634        hardcode_shlibpath_var=no
9635 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9636 <      export_dynamic_flag_spec='${wl}-E'
9635 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9636 >      export_dynamic_flag_spec='$wl-E'
9637        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9638        # Instead, shared libraries are loaded at an image base (0x10000000 by
9639        # default) and relocated if they conflict, which is a slow very memory
9640        # consuming and fragmenting process.  To avoid this, we pick a random,
9641        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9642        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9643 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9644 <      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'
9643 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9644 >      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'
9645        ;;
9646  
9647      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9648        tmp_diet=no
9649 <      if test "$host_os" = linux-dietlibc; then
9649 >      if test linux-dietlibc = "$host_os"; then
9650          case $cc_basename in
9651            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9652          esac
9653        fi
9654        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9655 <         && test "$tmp_diet" = no
9655 >         && test no = "$tmp_diet"
9656        then
9657          tmp_addflag=' $pic_flag'
9658          tmp_sharedflag='-shared'
9659          case $cc_basename,$host_cpu in
9660          pgcc*)                          # Portland Group C compiler
9661 <          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'
9661 >          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'
9662            tmp_addflag=' $pic_flag'
9663            ;;
9664          pgf77* | pgf90* | pgf95* | pgfortran*)
9665                                          # Portland Group f77 and f90 compilers
9666 <          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'
9666 >          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'
9667            tmp_addflag=' $pic_flag -Mnomain' ;;
9668          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9669            tmp_addflag=' -i_dynamic' ;;
# Line 9321 | Line 9674 | _LT_EOF
9674          lf95*)                          # Lahey Fortran 8.1
9675            whole_archive_flag_spec=
9676            tmp_sharedflag='--shared' ;;
9677 +        nagfor*)                        # NAGFOR 5.3
9678 +          tmp_sharedflag='-Wl,-shared' ;;
9679          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9680            tmp_sharedflag='-qmkshrobj'
9681            tmp_addflag= ;;
9682          nvcc*)  # Cuda Compiler Driver 2.2
9683 <          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'
9683 >          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'
9684            compiler_needs_object=yes
9685            ;;
9686          esac
9687          case `$CC -V 2>&1 | sed 5q` in
9688          *Sun\ C*)                       # Sun C 5.9
9689 <          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'
9689 >          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'
9690            compiler_needs_object=yes
9691            tmp_sharedflag='-G' ;;
9692          *Sun\ F*)                       # Sun Fortran 8.3
9693            tmp_sharedflag='-G' ;;
9694          esac
9695 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9695 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9696  
9697 <        if test "x$supports_anon_versioning" = xyes; then
9697 >        if test yes = "$supports_anon_versioning"; then
9698            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9699 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9700 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9701 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9699 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9700 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9701 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9702          fi
9703  
9704          case $cc_basename in
9705 +        tcc*)
9706 +          export_dynamic_flag_spec='-rdynamic'
9707 +          ;;
9708          xlf* | bgf* | bgxlf* | mpixlf*)
9709            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9710            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9711 <          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9711 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9712            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9713 <          if test "x$supports_anon_versioning" = xyes; then
9713 >          if test yes = "$supports_anon_versioning"; then
9714              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9715 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9716 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9717 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9715 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9716 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9717 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9718            fi
9719            ;;
9720          esac
# Line 9370 | Line 9728 | _LT_EOF
9728          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9729          wlarc=
9730        else
9731 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9731 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9732 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9733        fi
9734        ;;
9735  
# Line 9389 | Line 9747 | _LT_EOF
9747  
9748   _LT_EOF
9749        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9750 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9751 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9752        else
9753          ld_shlibs=no
9754        fi
# Line 9402 | Line 9760 | _LT_EOF
9760          ld_shlibs=no
9761          cat <<_LT_EOF 1>&2
9762  
9763 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9763 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9764   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9765   *** is disabling shared libraries support.  We urge you to upgrade GNU
9766   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9417 | Line 9775 | _LT_EOF
9775            # DT_RUNPATH tag from executables and libraries.  But doing so
9776            # requires that you compile everything twice, which is a pain.
9777            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9778 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9779 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9780 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9778 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9779 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9780 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9781            else
9782              ld_shlibs=no
9783            fi
# Line 9436 | Line 9794 | _LT_EOF
9794  
9795      *)
9796        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9797 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9798 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9799        else
9800          ld_shlibs=no
9801        fi
9802        ;;
9803      esac
9804  
9805 <    if test "$ld_shlibs" = no; then
9805 >    if test no = "$ld_shlibs"; then
9806        runpath_var=
9807        hardcode_libdir_flag_spec=
9808        export_dynamic_flag_spec=
# Line 9460 | Line 9818 | _LT_EOF
9818        # Note: this linker hardcodes the directories in LIBPATH if there
9819        # are no directories specified by -L.
9820        hardcode_minus_L=yes
9821 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9821 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9822          # Neither direct hardcoding nor static linking is supported with a
9823          # broken collect2.
9824          hardcode_direct=unsupported
# Line 9468 | Line 9826 | _LT_EOF
9826        ;;
9827  
9828      aix[4-9]*)
9829 <      if test "$host_cpu" = ia64; then
9829 >      if test ia64 = "$host_cpu"; then
9830          # On IA64, the linker does run time linking by default, so we don't
9831          # have to do anything special.
9832          aix_use_runtimelinking=no
9833          exp_sym_flag='-Bexport'
9834 <        no_entry_flag=""
9834 >        no_entry_flag=
9835        else
9836          # If we're using GNU nm, then we don't want the "-C" option.
9837 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9838 <        # Also, AIX nm treats weak defined symbols like other global
9839 <        # defined symbols, whereas GNU nm marks them as "W".
9837 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9838 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9839 >        # weak defined symbols like other global defined symbols, whereas
9840 >        # GNU nm marks them as "W".
9841 >        # While the 'weak' keyword is ignored in the Export File, we need
9842 >        # it in the Import File for the 'aix-soname' feature, so we have
9843 >        # to replace the "-B" option with "-P" for AIX nm.
9844          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9845 <          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'
9845 >          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'
9846          else
9847 <          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'
9847 >          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'
9848          fi
9849          aix_use_runtimelinking=no
9850  
9851          # Test if we are trying to use run time linking or normal
9852          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9853 <        # need to do runtime linking.
9853 >        # have runtime linking enabled, and use it for executables.
9854 >        # For shared libraries, we enable/disable runtime linking
9855 >        # depending on the kind of the shared library created -
9856 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9857 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9858 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9859 >        #            lib.a           static archive
9860 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9861 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9862 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9863 >        #            lib.a(lib.so.V) shared, rtl:no
9864 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9865 >        #            lib.a           static archive
9866          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9867            for ld_flag in $LDFLAGS; do
9868 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9868 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9869              aix_use_runtimelinking=yes
9870              break
9871            fi
9872            done
9873 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9874 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9875 +            # so we don't have lib.a shared libs to link our executables.
9876 +            # We have to force runtime linking in this case.
9877 +            aix_use_runtimelinking=yes
9878 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9879 +          fi
9880            ;;
9881          esac
9882  
# Line 9514 | Line 9895 | _LT_EOF
9895        hardcode_direct_absolute=yes
9896        hardcode_libdir_separator=':'
9897        link_all_deplibs=yes
9898 <      file_list_spec='${wl}-f,'
9898 >      file_list_spec='$wl-f,'
9899 >      case $with_aix_soname,$aix_use_runtimelinking in
9900 >      aix,*) ;; # traditional, no import file
9901 >      svr4,* | *,yes) # use import file
9902 >        # The Import File defines what to hardcode.
9903 >        hardcode_direct=no
9904 >        hardcode_direct_absolute=no
9905 >        ;;
9906 >      esac
9907  
9908 <      if test "$GCC" = yes; then
9908 >      if test yes = "$GCC"; then
9909          case $host_os in aix4.[012]|aix4.[012].*)
9910          # We only want to do this on AIX 4.2 and lower, the check
9911          # below for broken collect2 doesn't work under 4.3+
9912 <          collect2name=`${CC} -print-prog-name=collect2`
9912 >          collect2name=`$CC -print-prog-name=collect2`
9913            if test -f "$collect2name" &&
9914             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9915            then
# Line 9539 | Line 9928 | _LT_EOF
9928            ;;
9929          esac
9930          shared_flag='-shared'
9931 <        if test "$aix_use_runtimelinking" = yes; then
9932 <          shared_flag="$shared_flag "'${wl}-G'
9931 >        if test yes = "$aix_use_runtimelinking"; then
9932 >          shared_flag="$shared_flag "'$wl-G'
9933          fi
9934 +        # Need to ensure runtime linking is disabled for the traditional
9935 +        # shared library, or the linker may eventually find shared libraries
9936 +        # /with/ Import File - we do not want to mix them.
9937 +        shared_flag_aix='-shared'
9938 +        shared_flag_svr4='-shared $wl-G'
9939        else
9940          # not using gcc
9941 <        if test "$host_cpu" = ia64; then
9941 >        if test ia64 = "$host_cpu"; then
9942          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9943          # chokes on -Wl,-G. The following line is correct:
9944            shared_flag='-G'
9945          else
9946 <          if test "$aix_use_runtimelinking" = yes; then
9947 <            shared_flag='${wl}-G'
9946 >          if test yes = "$aix_use_runtimelinking"; then
9947 >            shared_flag='$wl-G'
9948            else
9949 <            shared_flag='${wl}-bM:SRE'
9949 >            shared_flag='$wl-bM:SRE'
9950            fi
9951 +          shared_flag_aix='$wl-bM:SRE'
9952 +          shared_flag_svr4='$wl-G'
9953          fi
9954        fi
9955  
9956 <      export_dynamic_flag_spec='${wl}-bexpall'
9956 >      export_dynamic_flag_spec='$wl-bexpall'
9957        # It seems that -bexpall does not export symbols beginning with
9958        # underscore (_), so it is better to generate a list of symbols to export.
9959        always_export_symbols=yes
9960 <      if test "$aix_use_runtimelinking" = yes; then
9960 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9961          # Warning - without using the other runtime loading flags (-brtl),
9962          # -berok will link without error, but may produce a broken library.
9963          allow_undefined_flag='-berok'
9964          # Determine the default libpath from the value encoded in an
9965          # empty executable.
9966 <        if test "${lt_cv_aix_libpath+set}" = set; then
9966 >        if test set = "${lt_cv_aix_libpath+set}"; then
9967    aix_libpath=$lt_cv_aix_libpath
9968   else
9969    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9602 | Line 9998 | fi
9998   rm -f core conftest.err conftest.$ac_objext \
9999      conftest$ac_exeext conftest.$ac_ext
10000    if test -z "$lt_cv_aix_libpath_"; then
10001 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10001 >    lt_cv_aix_libpath_=/usr/lib:/lib
10002    fi
10003  
10004   fi
# Line 9610 | Line 10006 | fi
10006    aix_libpath=$lt_cv_aix_libpath_
10007   fi
10008  
10009 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10010 <        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"
10009 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10010 >        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
10011        else
10012 <        if test "$host_cpu" = ia64; then
10013 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10012 >        if test ia64 = "$host_cpu"; then
10013 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10014            allow_undefined_flag="-z nodefs"
10015 <          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"
10015 >          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"
10016          else
10017           # Determine the default libpath from the value encoded in an
10018           # empty executable.
10019 <         if test "${lt_cv_aix_libpath+set}" = set; then
10019 >         if test set = "${lt_cv_aix_libpath+set}"; then
10020    aix_libpath=$lt_cv_aix_libpath
10021   else
10022    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9655 | Line 10051 | fi
10051   rm -f core conftest.err conftest.$ac_objext \
10052      conftest$ac_exeext conftest.$ac_ext
10053    if test -z "$lt_cv_aix_libpath_"; then
10054 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10054 >    lt_cv_aix_libpath_=/usr/lib:/lib
10055    fi
10056  
10057   fi
# Line 9663 | Line 10059 | fi
10059    aix_libpath=$lt_cv_aix_libpath_
10060   fi
10061  
10062 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10062 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10063            # Warning - without using the other run time loading flags,
10064            # -berok will link without error, but may produce a broken library.
10065 <          no_undefined_flag=' ${wl}-bernotok'
10066 <          allow_undefined_flag=' ${wl}-berok'
10067 <          if test "$with_gnu_ld" = yes; then
10065 >          no_undefined_flag=' $wl-bernotok'
10066 >          allow_undefined_flag=' $wl-berok'
10067 >          if test yes = "$with_gnu_ld"; then
10068              # We only use this code for GNU lds that support --whole-archive.
10069 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10069 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10070            else
10071              # Exported symbols can be pulled into shared objects from archives
10072              whole_archive_flag_spec='$convenience'
10073            fi
10074            archive_cmds_need_lc=yes
10075 <          # This is similar to how AIX traditionally builds its shared libraries.
10076 <          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'
10075 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10076 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10077 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10078 >          if test svr4 != "$with_aix_soname"; then
10079 >            # This is similar to how AIX traditionally builds its shared libraries.
10080 >            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'
10081 >          fi
10082 >          if test aix != "$with_aix_soname"; then
10083 >            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'
10084 >          else
10085 >            # used by -dlpreopen to get the symbols
10086 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10087 >          fi
10088 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10089          fi
10090        fi
10091        ;;
# Line 9686 | Line 10094 | fi
10094        case $host_cpu in
10095        powerpc)
10096              # see comment about AmigaOS4 .so support
10097 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10098              archive_expsym_cmds=''
10099          ;;
10100        m68k)
# Line 9716 | Line 10124 | fi
10124          # Tell ltmain to make .lib files, not .a files.
10125          libext=lib
10126          # Tell ltmain to make .dll files, not .so files.
10127 <        shrext_cmds=".dll"
10127 >        shrext_cmds=.dll
10128          # FIXME: Setting linknames here is a bad hack.
10129 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10130 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10131 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10132 <          else
10133 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10134 <          fi~
10135 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10136 <          linknames='
10129 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10130 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10131 >            cp "$export_symbols" "$output_objdir/$soname.def";
10132 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10133 >          else
10134 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10135 >          fi~
10136 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10137 >          linknames='
10138          # The linker will not automatically build a static lib if we build a DLL.
10139          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10140          enable_shared_with_static_runtimes=yes
# Line 9734 | Line 10143 | fi
10143          # Don't use ranlib
10144          old_postinstall_cmds='chmod 644 $oldlib'
10145          postlink_cmds='lt_outputfile="@OUTPUT@"~
10146 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
10147 <          case $lt_outputfile in
10148 <            *.exe|*.EXE) ;;
10149 <            *)
10150 <              lt_outputfile="$lt_outputfile.exe"
10151 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
10152 <              ;;
10153 <          esac~
10154 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10155 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10156 <            $RM "$lt_outputfile.manifest";
10157 <          fi'
10146 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10147 >          case $lt_outputfile in
10148 >            *.exe|*.EXE) ;;
10149 >            *)
10150 >              lt_outputfile=$lt_outputfile.exe
10151 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10152 >              ;;
10153 >          esac~
10154 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10155 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10156 >            $RM "$lt_outputfile.manifest";
10157 >          fi'
10158          ;;
10159        *)
10160          # Assume MSVC wrapper
# Line 9754 | Line 10163 | fi
10163          # Tell ltmain to make .lib files, not .a files.
10164          libext=lib
10165          # Tell ltmain to make .dll files, not .so files.
10166 <        shrext_cmds=".dll"
10166 >        shrext_cmds=.dll
10167          # FIXME: Setting linknames here is a bad hack.
10168          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10169          # The linker will automatically build a .lib file if we build a DLL.
# Line 9773 | Line 10182 | fi
10182    hardcode_direct=no
10183    hardcode_automatic=yes
10184    hardcode_shlibpath_var=unsupported
10185 <  if test "$lt_cv_ld_force_load" = "yes"; then
10186 <    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\"`'
10185 >  if test yes = "$lt_cv_ld_force_load"; then
10186 >    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\"`'
10187  
10188    else
10189      whole_archive_flag_spec=''
10190    fi
10191    link_all_deplibs=yes
10192 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10192 >  allow_undefined_flag=$_lt_dar_allow_undefined
10193    case $cc_basename in
10194 <     ifort*) _lt_dar_can_shared=yes ;;
10194 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10195       *) _lt_dar_can_shared=$GCC ;;
10196    esac
10197 <  if test "$_lt_dar_can_shared" = "yes"; then
10197 >  if test yes = "$_lt_dar_can_shared"; then
10198      output_verbose_link_cmd=func_echo_all
10199 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10200 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10201 <    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}"
10202 <    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}"
10199 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10200 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10201 >    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"
10202 >    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"
10203  
10204    else
10205    ld_shlibs=no
# Line 9832 | Line 10241 | fi
10241        ;;
10242  
10243      hpux9*)
10244 <      if test "$GCC" = yes; then
10245 <        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'
10244 >      if test yes = "$GCC"; then
10245 >        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'
10246        else
10247 <        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'
10247 >        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'
10248        fi
10249 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10249 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10250        hardcode_libdir_separator=:
10251        hardcode_direct=yes
10252  
10253        # hardcode_minus_L: Not really in the search PATH,
10254        # but as the default location of the library.
10255        hardcode_minus_L=yes
10256 <      export_dynamic_flag_spec='${wl}-E'
10256 >      export_dynamic_flag_spec='$wl-E'
10257        ;;
10258  
10259      hpux10*)
10260 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10261 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10260 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10261 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10262        else
10263          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10264        fi
10265 <      if test "$with_gnu_ld" = no; then
10266 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10265 >      if test no = "$with_gnu_ld"; then
10266 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10267          hardcode_libdir_separator=:
10268          hardcode_direct=yes
10269          hardcode_direct_absolute=yes
10270 <        export_dynamic_flag_spec='${wl}-E'
10270 >        export_dynamic_flag_spec='$wl-E'
10271          # hardcode_minus_L: Not really in the search PATH,
10272          # but as the default location of the library.
10273          hardcode_minus_L=yes
# Line 9866 | Line 10275 | fi
10275        ;;
10276  
10277      hpux11*)
10278 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10278 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10279          case $host_cpu in
10280          hppa*64*)
10281 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10281 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10282            ;;
10283          ia64*)
10284 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10284 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10285            ;;
10286          *)
10287 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10287 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10288            ;;
10289          esac
10290        else
10291          case $host_cpu in
10292          hppa*64*)
10293 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10294            ;;
10295          ia64*)
10296 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10296 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10297            ;;
10298          *)
10299  
# Line 9896 | Line 10305 | if ${lt_cv_prog_compiler__b+:} false; th
10305    $as_echo_n "(cached) " >&6
10306   else
10307    lt_cv_prog_compiler__b=no
10308 <   save_LDFLAGS="$LDFLAGS"
10308 >   save_LDFLAGS=$LDFLAGS
10309     LDFLAGS="$LDFLAGS -b"
10310     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10311     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9915 | Line 10324 | else
10324       fi
10325     fi
10326     $RM -r conftest*
10327 <   LDFLAGS="$save_LDFLAGS"
10327 >   LDFLAGS=$save_LDFLAGS
10328  
10329   fi
10330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10331   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10332  
10333 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10334 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10333 > if test yes = "$lt_cv_prog_compiler__b"; then
10334 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10335   else
10336      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10337   fi
# Line 9930 | Line 10339 | fi
10339            ;;
10340          esac
10341        fi
10342 <      if test "$with_gnu_ld" = no; then
10343 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10342 >      if test no = "$with_gnu_ld"; then
10343 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10344          hardcode_libdir_separator=:
10345  
10346          case $host_cpu in
# Line 9942 | Line 10351 | fi
10351          *)
10352            hardcode_direct=yes
10353            hardcode_direct_absolute=yes
10354 <          export_dynamic_flag_spec='${wl}-E'
10354 >          export_dynamic_flag_spec='$wl-E'
10355  
10356            # hardcode_minus_L: Not really in the search PATH,
10357            # but as the default location of the library.
# Line 9953 | Line 10362 | fi
10362        ;;
10363  
10364      irix5* | irix6* | nonstopux*)
10365 <      if test "$GCC" = yes; then
10366 <        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'
10365 >      if test yes = "$GCC"; then
10366 >        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'
10367          # Try to use the -exported_symbol ld option, if it does not
10368          # work, assume that -exports_file does not work either and
10369          # implicitly export all symbols.
# Line 9964 | Line 10373 | $as_echo_n "checking whether the $host_o
10373   if ${lt_cv_irix_exported_symbol+:} false; then :
10374    $as_echo_n "(cached) " >&6
10375   else
10376 <  save_LDFLAGS="$LDFLAGS"
10377 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10376 >  save_LDFLAGS=$LDFLAGS
10377 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10378             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379   /* end confdefs.h.  */
10380   int foo (void) { return 0; }
# Line 9977 | Line 10386 | else
10386   fi
10387   rm -f core conftest.err conftest.$ac_objext \
10388      conftest$ac_exeext conftest.$ac_ext
10389 <           LDFLAGS="$save_LDFLAGS"
10389 >           LDFLAGS=$save_LDFLAGS
10390   fi
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10392   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10393 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10394 <          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'
10393 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10394 >          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'
10395          fi
10396        else
10397 <        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'
10398 <        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'
10397 >        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'
10398 >        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'
10399        fi
10400        archive_cmds_need_lc='no'
10401 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10401 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10402        hardcode_libdir_separator=:
10403        inherit_rpath=yes
10404        link_all_deplibs=yes
10405        ;;
10406  
10407 +    linux*)
10408 +      case $cc_basename in
10409 +      tcc*)
10410 +        # Fabrice Bellard et al's Tiny C Compiler
10411 +        ld_shlibs=yes
10412 +        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10413 +        ;;
10414 +      esac
10415 +      ;;
10416 +
10417      netbsd*)
10418        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10419          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
# Line 10009 | Line 10428 | $as_echo "$lt_cv_irix_exported_symbol" >
10428      newsos6)
10429        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430        hardcode_direct=yes
10431 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10431 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10432        hardcode_libdir_separator=:
10433        hardcode_shlibpath_var=no
10434        ;;
# Line 10017 | Line 10436 | $as_echo "$lt_cv_irix_exported_symbol" >
10436      *nto* | *qnx*)
10437        ;;
10438  
10439 <    openbsd*)
10439 >    openbsd* | bitrig*)
10440        if test -f /usr/libexec/ld.so; then
10441          hardcode_direct=yes
10442          hardcode_shlibpath_var=no
10443          hardcode_direct_absolute=yes
10444 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10444 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10445            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10446 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10447 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10448 <          export_dynamic_flag_spec='${wl}-E'
10446 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10447 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10448 >          export_dynamic_flag_spec='$wl-E'
10449          else
10450 <          case $host_os in
10451 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10033 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 <             hardcode_libdir_flag_spec='-R$libdir'
10035 <             ;;
10036 <           *)
10037 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10038 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10039 <             ;;
10040 <          esac
10450 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10451 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10452          fi
10453        else
10454          ld_shlibs=no
# Line 10048 | Line 10459 | $as_echo "$lt_cv_irix_exported_symbol" >
10459        hardcode_libdir_flag_spec='-L$libdir'
10460        hardcode_minus_L=yes
10461        allow_undefined_flag=unsupported
10462 <      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'
10463 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10462 >      shrext_cmds=.dll
10463 >      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10464 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10465 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10466 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10467 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10468 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10469 >        emximp -o $lib $output_objdir/$libname.def'
10470 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10471 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10472 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10473 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10474 >        prefix_cmds="$SED"~
10475 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10476 >          prefix_cmds="$prefix_cmds -e 1d";
10477 >        fi~
10478 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10479 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10480 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10481 >        emximp -o $lib $output_objdir/$libname.def'
10482 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10483 >      enable_shared_with_static_runtimes=yes
10484        ;;
10485  
10486      osf3*)
10487 <      if test "$GCC" = yes; then
10488 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10489 <        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'
10487 >      if test yes = "$GCC"; then
10488 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10489 >        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        else
10491          allow_undefined_flag=' -expect_unresolved \*'
10492 <        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'
10492 >        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'
10493        fi
10494        archive_cmds_need_lc='no'
10495 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10495 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10496        hardcode_libdir_separator=:
10497        ;;
10498  
10499      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10500 <      if test "$GCC" = yes; then
10501 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10502 <        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'
10503 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10500 >      if test yes = "$GCC"; then
10501 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10502 >        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'
10503 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10504        else
10505          allow_undefined_flag=' -expect_unresolved \*'
10506 <        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'
10506 >        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'
10507          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~
10508 <        $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'
10508 >          $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'
10509  
10510          # Both c and cxx compiler support -rpath directly
10511          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 10085 | Line 10516 | $as_echo "$lt_cv_irix_exported_symbol" >
10516  
10517      solaris*)
10518        no_undefined_flag=' -z defs'
10519 <      if test "$GCC" = yes; then
10520 <        wlarc='${wl}'
10521 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10519 >      if test yes = "$GCC"; then
10520 >        wlarc='$wl'
10521 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10522          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10523 <          $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'
10523 >          $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'
10524        else
10525          case `$CC -V 2>&1` in
10526          *"Compilers 5.0"*)
10527            wlarc=''
10528 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10528 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10529            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10530 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10530 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10531            ;;
10532          *)
10533 <          wlarc='${wl}'
10534 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10533 >          wlarc='$wl'
10534 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10535            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10536 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10536 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10537            ;;
10538          esac
10539        fi
# Line 10112 | Line 10543 | $as_echo "$lt_cv_irix_exported_symbol" >
10543        solaris2.[0-5] | solaris2.[0-5].*) ;;
10544        *)
10545          # The compiler driver will combine and reorder linker options,
10546 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10546 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10547          # but is careful enough not to reorder.
10548          # Supported since Solaris 2.6 (maybe 2.5.1?)
10549 <        if test "$GCC" = yes; then
10550 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10549 >        if test yes = "$GCC"; then
10550 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10551          else
10552            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10553          fi
# Line 10126 | Line 10557 | $as_echo "$lt_cv_irix_exported_symbol" >
10557        ;;
10558  
10559      sunos4*)
10560 <      if test "x$host_vendor" = xsequent; then
10560 >      if test sequent = "$host_vendor"; then
10561          # Use $CC to link under sequent, because it throws in some extra .o
10562          # files that make .init and .fini sections work.
10563 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10563 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10564        else
10565          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10566        fi
# Line 10178 | Line 10609 | $as_echo "$lt_cv_irix_exported_symbol" >
10609        ;;
10610  
10611      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10612 <      no_undefined_flag='${wl}-z,text'
10612 >      no_undefined_flag='$wl-z,text'
10613        archive_cmds_need_lc=no
10614        hardcode_shlibpath_var=no
10615        runpath_var='LD_RUN_PATH'
10616  
10617 <      if test "$GCC" = yes; then
10618 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 >      if test yes = "$GCC"; then
10618 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620        else
10621 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623        fi
10624        ;;
10625  
10626      sysv5* | sco3.2v5* | sco5v6*)
10627 <      # Note: We can NOT use -z defs as we might desire, because we do not
10627 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10628        # link with -lc, and that would cause any symbols used from libc to
10629        # always be unresolved, which means just about no library would
10630        # ever link correctly.  If we're not using GNU ld we use -z text
10631        # though, which does catch some bad symbols but isn't as heavy-handed
10632        # as -z defs.
10633 <      no_undefined_flag='${wl}-z,text'
10634 <      allow_undefined_flag='${wl}-z,nodefs'
10633 >      no_undefined_flag='$wl-z,text'
10634 >      allow_undefined_flag='$wl-z,nodefs'
10635        archive_cmds_need_lc=no
10636        hardcode_shlibpath_var=no
10637 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10637 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10638        hardcode_libdir_separator=':'
10639        link_all_deplibs=yes
10640 <      export_dynamic_flag_spec='${wl}-Bexport'
10640 >      export_dynamic_flag_spec='$wl-Bexport'
10641        runpath_var='LD_RUN_PATH'
10642  
10643 <      if test "$GCC" = yes; then
10644 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 >      if test yes = "$GCC"; then
10644 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646        else
10647 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649        fi
10650        ;;
10651  
# Line 10229 | Line 10660 | $as_echo "$lt_cv_irix_exported_symbol" >
10660        ;;
10661      esac
10662  
10663 <    if test x$host_vendor = xsni; then
10663 >    if test sni = "$host_vendor"; then
10664        case $host in
10665        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10666 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10666 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10667          ;;
10668        esac
10669      fi
# Line 10240 | Line 10671 | $as_echo "$lt_cv_irix_exported_symbol" >
10671  
10672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10673   $as_echo "$ld_shlibs" >&6; }
10674 < test "$ld_shlibs" = no && can_build_shared=no
10674 > test no = "$ld_shlibs" && can_build_shared=no
10675  
10676   with_gnu_ld=$with_gnu_ld
10677  
# Line 10266 | Line 10697 | x|xyes)
10697    # Assume -lc should be added
10698    archive_cmds_need_lc=yes
10699  
10700 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10700 >  if test yes,yes = "$GCC,$enable_shared"; then
10701      case $archive_cmds in
10702      *'~'*)
10703        # FIXME: we may have to deal with multi-command sequences.
# Line 10481 | Line 10912 | esac
10912    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10913   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10914  
10915 < if test "$GCC" = yes; then
10915 > if test yes = "$GCC"; then
10916    case $host_os in
10917 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10918 <    *) lt_awk_arg="/^libraries:/" ;;
10917 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10918 >    *) lt_awk_arg='/^libraries:/' ;;
10919    esac
10920    case $host_os in
10921 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10922 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10921 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10922 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10923    esac
10924    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10925    case $lt_search_path_spec in
# Line 10504 | Line 10935 | if test "$GCC" = yes; then
10935      ;;
10936    esac
10937    # Ok, now we have the path, separated by spaces, we can step through it
10938 <  # and add multilib dir if necessary.
10938 >  # and add multilib dir if necessary...
10939    lt_tmp_lt_search_path_spec=
10940 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10940 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10941 >  # ...but if some path component already ends with the multilib dir we assume
10942 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10943 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10944 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10945 >    lt_multi_os_dir=
10946 >    ;;
10947 >  esac
10948    for lt_sys_path in $lt_search_path_spec; do
10949 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10950 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10951 <    else
10949 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10950 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10951 >    elif test -n "$lt_multi_os_dir"; then
10952        test -d "$lt_sys_path" && \
10953          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10954      fi
10955    done
10956    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10957 < BEGIN {RS=" "; FS="/|\n";} {
10958 <  lt_foo="";
10959 <  lt_count=0;
10957 > BEGIN {RS = " "; FS = "/|\n";} {
10958 >  lt_foo = "";
10959 >  lt_count = 0;
10960    for (lt_i = NF; lt_i > 0; lt_i--) {
10961      if ($lt_i != "" && $lt_i != ".") {
10962        if ($lt_i == "..") {
10963          lt_count++;
10964        } else {
10965          if (lt_count == 0) {
10966 <          lt_foo="/" $lt_i lt_foo;
10966 >          lt_foo = "/" $lt_i lt_foo;
10967          } else {
10968            lt_count--;
10969          }
# Line 10539 | Line 10977 | BEGIN {RS=" "; FS="/|\n";} {
10977    # for these hosts.
10978    case $host_os in
10979      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10980 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10980 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10981    esac
10982    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10983   else
# Line 10548 | Line 10986 | fi
10986   library_names_spec=
10987   libname_spec='lib$name'
10988   soname_spec=
10989 < shrext_cmds=".so"
10989 > shrext_cmds=.so
10990   postinstall_cmds=
10991   postuninstall_cmds=
10992   finish_cmds=
# Line 10565 | Line 11003 | hardcode_into_libs=no
11003   # flags to be left without arguments
11004   need_version=unknown
11005  
11006 +
11007 +
11008   case $host_os in
11009   aix3*)
11010    version_type=linux # correct to gnu/linux during the next big refactor
11011 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11011 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11012    shlibpath_var=LIBPATH
11013  
11014    # AIX 3 has no versioning support, so we append a major version to the name.
11015 <  soname_spec='${libname}${release}${shared_ext}$major'
11015 >  soname_spec='$libname$release$shared_ext$major'
11016    ;;
11017  
11018   aix[4-9]*)
# Line 10580 | Line 11020 | aix[4-9]*)
11020    need_lib_prefix=no
11021    need_version=no
11022    hardcode_into_libs=yes
11023 <  if test "$host_cpu" = ia64; then
11023 >  if test ia64 = "$host_cpu"; then
11024      # AIX 5 supports IA64
11025 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11025 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11026      shlibpath_var=LD_LIBRARY_PATH
11027    else
11028      # With GCC up to 2.95.x, collect2 would create an import file
11029      # for dependence libraries.  The import file would start with
11030 <    # the line `#! .'.  This would cause the generated library to
11031 <    # depend on `.', always an invalid library.  This was fixed in
11030 >    # the line '#! .'.  This would cause the generated library to
11031 >    # depend on '.', always an invalid library.  This was fixed in
11032      # development snapshots of GCC prior to 3.0.
11033      case $host_os in
11034        aix4 | aix4.[01] | aix4.[01].*)
11035        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11036             echo ' yes '
11037 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11037 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11038          :
11039        else
11040          can_build_shared=no
11041        fi
11042        ;;
11043      esac
11044 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11044 >    # Using Import Files as archive members, it is possible to support
11045 >    # filename-based versioning of shared library archives on AIX. While
11046 >    # this would work for both with and without runtime linking, it will
11047 >    # prevent static linking of such archives. So we do filename-based
11048 >    # shared library versioning with .so extension only, which is used
11049 >    # when both runtime linking and shared linking is enabled.
11050 >    # Unfortunately, runtime linking may impact performance, so we do
11051 >    # not want this to be the default eventually. Also, we use the
11052 >    # versioned .so libs for executables only if there is the -brtl
11053 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11054 >    # To allow for filename-based versioning support, we need to create
11055 >    # libNAME.so.V as an archive file, containing:
11056 >    # *) an Import File, referring to the versioned filename of the
11057 >    #    archive as well as the shared archive member, telling the
11058 >    #    bitwidth (32 or 64) of that shared object, and providing the
11059 >    #    list of exported symbols of that shared object, eventually
11060 >    #    decorated with the 'weak' keyword
11061 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11062 >    #    it being seen by the linker.
11063 >    # At run time we better use the real file rather than another symlink,
11064 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11065 >
11066 >    case $with_aix_soname,$aix_use_runtimelinking in
11067 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11068      # soname into executable. Probably we can add versioning support to
11069      # collect2, so additional links can be useful in future.
11070 <    if test "$aix_use_runtimelinking" = yes; then
11070 >    aix,yes) # traditional libtool
11071 >      dynamic_linker='AIX unversionable lib.so'
11072        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11073        # instead of lib<name>.a to let people know that these are not
11074        # typical AIX shared libraries.
11075 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 <    else
11075 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11076 >      ;;
11077 >    aix,no) # traditional AIX only
11078 >      dynamic_linker='AIX lib.a(lib.so.V)'
11079        # We preserve .a as extension for shared libraries through AIX4.2
11080        # and later when we are not doing run time linking.
11081 <      library_names_spec='${libname}${release}.a $libname.a'
11082 <      soname_spec='${libname}${release}${shared_ext}$major'
11083 <    fi
11081 >      library_names_spec='$libname$release.a $libname.a'
11082 >      soname_spec='$libname$release$shared_ext$major'
11083 >      ;;
11084 >    svr4,*) # full svr4 only
11085 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11086 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11087 >      # We do not specify a path in Import Files, so LIBPATH fires.
11088 >      shlibpath_overrides_runpath=yes
11089 >      ;;
11090 >    *,yes) # both, prefer svr4
11091 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11092 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11093 >      # unpreferred sharedlib libNAME.a needs extra handling
11094 >      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"'
11095 >      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"'
11096 >      # We do not specify a path in Import Files, so LIBPATH fires.
11097 >      shlibpath_overrides_runpath=yes
11098 >      ;;
11099 >    *,no) # both, prefer aix
11100 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11101 >      library_names_spec='$libname$release.a $libname.a'
11102 >      soname_spec='$libname$release$shared_ext$major'
11103 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11104 >      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)'
11105 >      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"'
11106 >      ;;
11107 >    esac
11108      shlibpath_var=LIBPATH
11109    fi
11110    ;;
# Line 10624 | Line 11114 | amigaos*)
11114    powerpc)
11115      # Since July 2007 AmigaOS4 officially supports .so libraries.
11116      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11117 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11118      ;;
11119    m68k)
11120      library_names_spec='$libname.ixlibrary $libname.a'
11121      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11122 <    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'
11122 >    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'
11123      ;;
11124    esac
11125    ;;
11126  
11127   beos*)
11128 <  library_names_spec='${libname}${shared_ext}'
11128 >  library_names_spec='$libname$shared_ext'
11129    dynamic_linker="$host_os ld.so"
11130    shlibpath_var=LIBRARY_PATH
11131    ;;
# Line 10643 | Line 11133 | beos*)
11133   bsdi[45]*)
11134    version_type=linux # correct to gnu/linux during the next big refactor
11135    need_version=no
11136 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 <  soname_spec='${libname}${release}${shared_ext}$major'
11136 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 >  soname_spec='$libname$release$shared_ext$major'
11138    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11139    shlibpath_var=LD_LIBRARY_PATH
11140    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10656 | Line 11146 | bsdi[45]*)
11146  
11147   cygwin* | mingw* | pw32* | cegcc*)
11148    version_type=windows
11149 <  shrext_cmds=".dll"
11149 >  shrext_cmds=.dll
11150    need_version=no
11151    need_lib_prefix=no
11152  
# Line 10665 | Line 11155 | cygwin* | mingw* | pw32* | cegcc*)
11155      # gcc
11156      library_names_spec='$libname.dll.a'
11157      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11158 <    postinstall_cmds='base_file=`basename \${file}`~
11159 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11158 >    postinstall_cmds='base_file=`basename \$file`~
11159 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11160        dldir=$destdir/`dirname \$dlpath`~
11161        test -d \$dldir || mkdir -p \$dldir~
11162        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10682 | Line 11172 | cygwin* | mingw* | pw32* | cegcc*)
11172      case $host_os in
11173      cygwin*)
11174        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11175 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11175 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11176  
11177        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11178        ;;
11179      mingw* | cegcc*)
11180        # MinGW DLLs use traditional 'lib' prefix
11181 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11181 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11182        ;;
11183      pw32*)
11184        # pw32 DLLs use 'pw' prefix rather than 'lib'
11185 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11185 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11186        ;;
11187      esac
11188      dynamic_linker='Win32 ld.exe'
# Line 10701 | Line 11191 | cygwin* | mingw* | pw32* | cegcc*)
11191    *,cl*)
11192      # Native MSVC
11193      libname_spec='$name'
11194 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11195 <    library_names_spec='${libname}.dll.lib'
11194 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11195 >    library_names_spec='$libname.dll.lib'
11196  
11197      case $build_os in
11198      mingw*)
# Line 10729 | Line 11219 | cygwin* | mingw* | pw32* | cegcc*)
11219        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11220        ;;
11221      *)
11222 <      sys_lib_search_path_spec="$LIB"
11222 >      sys_lib_search_path_spec=$LIB
11223        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11224          # It is most probably a Windows format PATH.
11225          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10742 | Line 11232 | cygwin* | mingw* | pw32* | cegcc*)
11232      esac
11233  
11234      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11235 <    postinstall_cmds='base_file=`basename \${file}`~
11236 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11235 >    postinstall_cmds='base_file=`basename \$file`~
11236 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11237        dldir=$destdir/`dirname \$dlpath`~
11238        test -d \$dldir || mkdir -p \$dldir~
11239        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10756 | Line 11246 | cygwin* | mingw* | pw32* | cegcc*)
11246  
11247    *)
11248      # Assume MSVC wrapper
11249 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11249 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11250      dynamic_linker='Win32 ld.exe'
11251      ;;
11252    esac
# Line 10769 | Line 11259 | darwin* | rhapsody*)
11259    version_type=darwin
11260    need_lib_prefix=no
11261    need_version=no
11262 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11263 <  soname_spec='${libname}${release}${major}$shared_ext'
11262 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11263 >  soname_spec='$libname$release$major$shared_ext'
11264    shlibpath_overrides_runpath=yes
11265    shlibpath_var=DYLD_LIBRARY_PATH
11266    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10783 | Line 11273 | dgux*)
11273    version_type=linux # correct to gnu/linux during the next big refactor
11274    need_lib_prefix=no
11275    need_version=no
11276 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11277 <  soname_spec='${libname}${release}${shared_ext}$major'
11276 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11277 >  soname_spec='$libname$release$shared_ext$major'
11278    shlibpath_var=LD_LIBRARY_PATH
11279    ;;
11280  
# Line 10802 | Line 11292 | freebsd* | dragonfly*)
11292    version_type=freebsd-$objformat
11293    case $version_type in
11294      freebsd-elf*)
11295 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11295 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11296 >      soname_spec='$libname$release$shared_ext$major'
11297        need_version=no
11298        need_lib_prefix=no
11299        ;;
11300      freebsd-*)
11301 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11301 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11302        need_version=yes
11303        ;;
11304    esac
# Line 10832 | Line 11323 | freebsd* | dragonfly*)
11323    esac
11324    ;;
11325  
10835 gnu*)
10836  version_type=linux # correct to gnu/linux during the next big refactor
10837  need_lib_prefix=no
10838  need_version=no
10839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10840  soname_spec='${libname}${release}${shared_ext}$major'
10841  shlibpath_var=LD_LIBRARY_PATH
10842  shlibpath_overrides_runpath=no
10843  hardcode_into_libs=yes
10844  ;;
10845
11326   haiku*)
11327    version_type=linux # correct to gnu/linux during the next big refactor
11328    need_lib_prefix=no
11329    need_version=no
11330    dynamic_linker="$host_os runtime_loader"
11331 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11332 <  soname_spec='${libname}${release}${shared_ext}$major'
11331 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11332 >  soname_spec='$libname$release$shared_ext$major'
11333    shlibpath_var=LIBRARY_PATH
11334 <  shlibpath_overrides_runpath=yes
11334 >  shlibpath_overrides_runpath=no
11335    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11336    hardcode_into_libs=yes
11337    ;;
# Line 10869 | Line 11349 | hpux9* | hpux10* | hpux11*)
11349      dynamic_linker="$host_os dld.so"
11350      shlibpath_var=LD_LIBRARY_PATH
11351      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 <    soname_spec='${libname}${release}${shared_ext}$major'
11354 <    if test "X$HPUX_IA64_MODE" = X32; then
11352 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11353 >    soname_spec='$libname$release$shared_ext$major'
11354 >    if test 32 = "$HPUX_IA64_MODE"; then
11355        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11356 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11357      else
11358        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11359 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11360      fi
10879    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11361      ;;
11362    hppa*64*)
11363      shrext_cmds='.sl'
# Line 10884 | Line 11365 | hpux9* | hpux10* | hpux11*)
11365      dynamic_linker="$host_os dld.sl"
11366      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11367      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11368 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 <    soname_spec='${libname}${release}${shared_ext}$major'
11368 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11369 >    soname_spec='$libname$release$shared_ext$major'
11370      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11371      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11372      ;;
# Line 10894 | Line 11375 | hpux9* | hpux10* | hpux11*)
11375      dynamic_linker="$host_os dld.sl"
11376      shlibpath_var=SHLIB_PATH
11377      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11378 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 <    soname_spec='${libname}${release}${shared_ext}$major'
11378 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379 >    soname_spec='$libname$release$shared_ext$major'
11380      ;;
11381    esac
11382    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 10908 | Line 11389 | interix[3-9]*)
11389    version_type=linux # correct to gnu/linux during the next big refactor
11390    need_lib_prefix=no
11391    need_version=no
11392 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11393 <  soname_spec='${libname}${release}${shared_ext}$major'
11392 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11393 >  soname_spec='$libname$release$shared_ext$major'
11394    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11395    shlibpath_var=LD_LIBRARY_PATH
11396    shlibpath_overrides_runpath=no
# Line 10920 | Line 11401 | irix5* | irix6* | nonstopux*)
11401    case $host_os in
11402      nonstopux*) version_type=nonstopux ;;
11403      *)
11404 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11404 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11405                  version_type=linux # correct to gnu/linux during the next big refactor
11406          else
11407                  version_type=irix
# Line 10928 | Line 11409 | irix5* | irix6* | nonstopux*)
11409    esac
11410    need_lib_prefix=no
11411    need_version=no
11412 <  soname_spec='${libname}${release}${shared_ext}$major'
11413 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11412 >  soname_spec='$libname$release$shared_ext$major'
11413 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11414    case $host_os in
11415    irix5* | nonstopux*)
11416      libsuff= shlibsuff=
# Line 10948 | Line 11429 | irix5* | irix6* | nonstopux*)
11429    esac
11430    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11431    shlibpath_overrides_runpath=no
11432 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11433 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11432 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11433 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11434    hardcode_into_libs=yes
11435    ;;
11436  
# Line 10958 | Line 11439 | linux*oldld* | linux*aout* | linux*coff*
11439    dynamic_linker=no
11440    ;;
11441  
11442 + linux*android*)
11443 +  version_type=none # Android doesn't support versioned libraries.
11444 +  need_lib_prefix=no
11445 +  need_version=no
11446 +  library_names_spec='$libname$release$shared_ext'
11447 +  soname_spec='$libname$release$shared_ext'
11448 +  finish_cmds=
11449 +  shlibpath_var=LD_LIBRARY_PATH
11450 +  shlibpath_overrides_runpath=yes
11451 +
11452 +  # This implies no fast_install, which is unacceptable.
11453 +  # Some rework will be needed to allow for fast_install
11454 +  # before this can be enabled.
11455 +  hardcode_into_libs=yes
11456 +
11457 +  dynamic_linker='Android linker'
11458 +  # Don't embed -rpath directories since the linker doesn't support them.
11459 +  hardcode_libdir_flag_spec='-L$libdir'
11460 +  ;;
11461 +
11462   # This must be glibc/ELF.
11463 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11463 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11464    version_type=linux # correct to gnu/linux during the next big refactor
11465    need_lib_prefix=no
11466    need_version=no
11467 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 <  soname_spec='${libname}${release}${shared_ext}$major'
11467 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468 >  soname_spec='$libname$release$shared_ext$major'
11469    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11470    shlibpath_var=LD_LIBRARY_PATH
11471    shlibpath_overrides_runpath=no
# Line 11008 | Line 11509 | fi
11509    # before this can be enabled.
11510    hardcode_into_libs=yes
11511  
11512 <  # Append ld.so.conf contents to the search path
11512 >  # Ideally, we could use ldconfig to report *all* directores which are
11513 >  # searched for libraries, however this is still not possible.  Aside from not
11514 >  # being certain /sbin/ldconfig is available, command
11515 >  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11516 >  # even though it is searched at run-time.  Try to do the best guess by
11517 >  # appending ld.so.conf contents (and includes) to the search path.
11518    if test -f /etc/ld.so.conf; then
11519      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' ' '`
11520      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
# Line 11028 | Line 11534 | netbsd*)
11534    need_lib_prefix=no
11535    need_version=no
11536    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11537 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11538      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11539      dynamic_linker='NetBSD (a.out) ld.so'
11540    else
11541 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11542 <    soname_spec='${libname}${release}${shared_ext}$major'
11541 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11542 >    soname_spec='$libname$release$shared_ext$major'
11543      dynamic_linker='NetBSD ld.elf_so'
11544    fi
11545    shlibpath_var=LD_LIBRARY_PATH
# Line 11043 | Line 11549 | netbsd*)
11549  
11550   newsos6)
11551    version_type=linux # correct to gnu/linux during the next big refactor
11552 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553    shlibpath_var=LD_LIBRARY_PATH
11554    shlibpath_overrides_runpath=yes
11555    ;;
# Line 11052 | Line 11558 | newsos6)
11558    version_type=qnx
11559    need_lib_prefix=no
11560    need_version=no
11561 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 <  soname_spec='${libname}${release}${shared_ext}$major'
11561 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11562 >  soname_spec='$libname$release$shared_ext$major'
11563    shlibpath_var=LD_LIBRARY_PATH
11564    shlibpath_overrides_runpath=no
11565    hardcode_into_libs=yes
11566    dynamic_linker='ldqnx.so'
11567    ;;
11568  
11569 < openbsd*)
11569 > openbsd* | bitrig*)
11570    version_type=sunos
11571 <  sys_lib_dlsearch_path_spec="/usr/lib"
11571 >  sys_lib_dlsearch_path_spec=/usr/lib
11572    need_lib_prefix=no
11573 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11574 <  case $host_os in
11069 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11070 <    *)                          need_version=no  ;;
11071 <  esac
11072 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11073 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11074 <  shlibpath_var=LD_LIBRARY_PATH
11075 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11076 <    case $host_os in
11077 <      openbsd2.[89] | openbsd2.[89].*)
11078 <        shlibpath_overrides_runpath=no
11079 <        ;;
11080 <      *)
11081 <        shlibpath_overrides_runpath=yes
11082 <        ;;
11083 <      esac
11573 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11574 >    need_version=no
11575    else
11576 <    shlibpath_overrides_runpath=yes
11576 >    need_version=yes
11577    fi
11578 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11579 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11580 +  shlibpath_var=LD_LIBRARY_PATH
11581 +  shlibpath_overrides_runpath=yes
11582    ;;
11583  
11584   os2*)
11585    libname_spec='$name'
11586 <  shrext_cmds=".dll"
11586 >  version_type=windows
11587 >  shrext_cmds=.dll
11588 >  need_version=no
11589    need_lib_prefix=no
11590 <  library_names_spec='$libname${shared_ext} $libname.a'
11590 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11591 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11592 >    v=$($ECHO $release$versuffix | tr -d .-);
11593 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11594 >    $ECHO $n$v`$shared_ext'
11595 >  library_names_spec='${libname}_dll.$libext'
11596    dynamic_linker='OS/2 ld.exe'
11597 <  shlibpath_var=LIBPATH
11597 >  shlibpath_var=BEGINLIBPATH
11598 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11599 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11600 >  postinstall_cmds='base_file=`basename \$file`~
11601 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11602 >    dldir=$destdir/`dirname \$dlpath`~
11603 >    test -d \$dldir || mkdir -p \$dldir~
11604 >    $install_prog $dir/$dlname \$dldir/$dlname~
11605 >    chmod a+x \$dldir/$dlname~
11606 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11607 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11608 >    fi'
11609 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11610 >    dlpath=$dir/\$dldll~
11611 >    $RM \$dlpath'
11612    ;;
11613  
11614   osf3* | osf4* | osf5*)
11615    version_type=osf
11616    need_lib_prefix=no
11617    need_version=no
11618 <  soname_spec='${libname}${release}${shared_ext}$major'
11619 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 >  soname_spec='$libname$release$shared_ext$major'
11619 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11620    shlibpath_var=LD_LIBRARY_PATH
11621    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11622 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11622 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11623    ;;
11624  
11625   rdos*)
# Line 11114 | Line 11630 | solaris*)
11630    version_type=linux # correct to gnu/linux during the next big refactor
11631    need_lib_prefix=no
11632    need_version=no
11633 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 <  soname_spec='${libname}${release}${shared_ext}$major'
11633 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11634 >  soname_spec='$libname$release$shared_ext$major'
11635    shlibpath_var=LD_LIBRARY_PATH
11636    shlibpath_overrides_runpath=yes
11637    hardcode_into_libs=yes
# Line 11125 | Line 11641 | solaris*)
11641  
11642   sunos4*)
11643    version_type=sunos
11644 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11644 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11645    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11646    shlibpath_var=LD_LIBRARY_PATH
11647    shlibpath_overrides_runpath=yes
11648 <  if test "$with_gnu_ld" = yes; then
11648 >  if test yes = "$with_gnu_ld"; then
11649      need_lib_prefix=no
11650    fi
11651    need_version=yes
# Line 11137 | Line 11653 | sunos4*)
11653  
11654   sysv4 | sysv4.3*)
11655    version_type=linux # correct to gnu/linux during the next big refactor
11656 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11657 <  soname_spec='${libname}${release}${shared_ext}$major'
11656 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11657 >  soname_spec='$libname$release$shared_ext$major'
11658    shlibpath_var=LD_LIBRARY_PATH
11659    case $host_vendor in
11660      sni)
# Line 11159 | Line 11675 | sysv4 | sysv4.3*)
11675    ;;
11676  
11677   sysv4*MP*)
11678 <  if test -d /usr/nec ;then
11678 >  if test -d /usr/nec; then
11679      version_type=linux # correct to gnu/linux during the next big refactor
11680 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11681 <    soname_spec='$libname${shared_ext}.$major'
11680 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11681 >    soname_spec='$libname$shared_ext.$major'
11682      shlibpath_var=LD_LIBRARY_PATH
11683    fi
11684    ;;
11685  
11686   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11687 <  version_type=freebsd-elf
11687 >  version_type=sco
11688    need_lib_prefix=no
11689    need_version=no
11690 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11691 <  soname_spec='${libname}${release}${shared_ext}$major'
11690 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11691 >  soname_spec='$libname$release$shared_ext$major'
11692    shlibpath_var=LD_LIBRARY_PATH
11693    shlibpath_overrides_runpath=yes
11694    hardcode_into_libs=yes
11695 <  if test "$with_gnu_ld" = yes; then
11695 >  if test yes = "$with_gnu_ld"; then
11696      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11697    else
11698      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11194 | Line 11710 | tpf*)
11710    version_type=linux # correct to gnu/linux during the next big refactor
11711    need_lib_prefix=no
11712    need_version=no
11713 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11714    shlibpath_var=LD_LIBRARY_PATH
11715    shlibpath_overrides_runpath=no
11716    hardcode_into_libs=yes
# Line 11202 | Line 11718 | tpf*)
11718  
11719   uts4*)
11720    version_type=linux # correct to gnu/linux during the next big refactor
11721 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11722 <  soname_spec='${libname}${release}${shared_ext}$major'
11721 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11722 >  soname_spec='$libname$release$shared_ext$major'
11723    shlibpath_var=LD_LIBRARY_PATH
11724    ;;
11725  
# Line 11213 | Line 11729 | uts4*)
11729   esac
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11731   $as_echo "$dynamic_linker" >&6; }
11732 < test "$dynamic_linker" = no && can_build_shared=no
11732 > test no = "$dynamic_linker" && can_build_shared=no
11733  
11734   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11735 < if test "$GCC" = yes; then
11735 > if test yes = "$GCC"; then
11736    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11737   fi
11738  
11739 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11740 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11739 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11740 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11741   fi
11742 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11743 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11742 >
11743 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11744 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11745   fi
11746  
11747 + # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11748 + configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11749 +
11750 + # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11751 + func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11752 +
11753 + # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11754 + configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11755 +
11756 +
11757 +
11758 +
11759 +
11760 +
11761  
11762  
11763  
# Line 11323 | Line 11854 | $as_echo_n "checking how to hardcode lib
11854   hardcode_action=
11855   if test -n "$hardcode_libdir_flag_spec" ||
11856     test -n "$runpath_var" ||
11857 <   test "X$hardcode_automatic" = "Xyes" ; then
11857 >   test yes = "$hardcode_automatic"; then
11858  
11859    # We can hardcode non-existent directories.
11860 <  if test "$hardcode_direct" != no &&
11860 >  if test no != "$hardcode_direct" &&
11861       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11862       # have to relink, otherwise we might link with an installed library
11863       # when we should be linking with a yet-to-be-installed one
11864 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11865 <     test "$hardcode_minus_L" != no; then
11864 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11865 >     test no != "$hardcode_minus_L"; then
11866      # Linking always hardcodes the temporary library directory.
11867      hardcode_action=relink
11868    else
# Line 11346 | Line 11877 | fi
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11878   $as_echo "$hardcode_action" >&6; }
11879  
11880 < if test "$hardcode_action" = relink ||
11881 <   test "$inherit_rpath" = yes; then
11880 > if test relink = "$hardcode_action" ||
11881 >   test yes = "$inherit_rpath"; then
11882    # Fast installation is not supported
11883    enable_fast_install=no
11884 < elif test "$shlibpath_overrides_runpath" = yes ||
11885 <     test "$enable_shared" = no; then
11884 > elif test yes = "$shlibpath_overrides_runpath" ||
11885 >     test no = "$enable_shared"; then
11886    # Fast installation is not necessary
11887    enable_fast_install=needless
11888   fi
# Line 11361 | Line 11892 | fi
11892  
11893  
11894  
11895 <  if test "x$enable_dlopen" != xyes; then
11895 >  if test yes != "$enable_dlopen"; then
11896    enable_dlopen=unknown
11897    enable_dlopen_self=unknown
11898    enable_dlopen_self_static=unknown
# Line 11371 | Line 11902 | else
11902  
11903    case $host_os in
11904    beos*)
11905 <    lt_cv_dlopen="load_add_on"
11905 >    lt_cv_dlopen=load_add_on
11906      lt_cv_dlopen_libs=
11907      lt_cv_dlopen_self=yes
11908      ;;
11909  
11910    mingw* | pw32* | cegcc*)
11911 <    lt_cv_dlopen="LoadLibrary"
11911 >    lt_cv_dlopen=LoadLibrary
11912      lt_cv_dlopen_libs=
11913      ;;
11914  
11915    cygwin*)
11916 <    lt_cv_dlopen="dlopen"
11916 >    lt_cv_dlopen=dlopen
11917      lt_cv_dlopen_libs=
11918      ;;
11919  
11920    darwin*)
11921 <  # if libdl is installed we need to link against it
11921 >    # if libdl is installed we need to link against it
11922      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11923   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11924   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11425 | Line 11956 | fi
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11957   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11958   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11959 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11959 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11960   else
11961  
11962 <    lt_cv_dlopen="dyld"
11962 >    lt_cv_dlopen=dyld
11963      lt_cv_dlopen_libs=
11964      lt_cv_dlopen_self=yes
11965  
# Line 11436 | Line 11967 | fi
11967  
11968      ;;
11969  
11970 +  tpf*)
11971 +    # Don't try to run any link tests for TPF.  We know it's impossible
11972 +    # because TPF is a cross-compiler, and we know how we open DSOs.
11973 +    lt_cv_dlopen=dlopen
11974 +    lt_cv_dlopen_libs=
11975 +    lt_cv_dlopen_self=no
11976 +    ;;
11977 +
11978    *)
11979      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11980   if test "x$ac_cv_func_shl_load" = xyes; then :
11981 <  lt_cv_dlopen="shl_load"
11981 >  lt_cv_dlopen=shl_load
11982   else
11983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11984   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11478 | Line 12017 | fi
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12018   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12019   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12020 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12020 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12021   else
12022    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12023   if test "x$ac_cv_func_dlopen" = xyes; then :
12024 <  lt_cv_dlopen="dlopen"
12024 >  lt_cv_dlopen=dlopen
12025   else
12026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12027   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11521 | Line 12060 | fi
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12061   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12062   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12063 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12063 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12064   else
12065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12066   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11560 | Line 12099 | fi
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12100   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12101   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12102 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12102 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12103   else
12104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12105   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11599 | Line 12138 | fi
12138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12139   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12140   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12141 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12141 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12142   fi
12143  
12144  
# Line 11620 | Line 12159 | fi
12159      ;;
12160    esac
12161  
12162 <  if test "x$lt_cv_dlopen" != xno; then
11624 <    enable_dlopen=yes
11625 <  else
12162 >  if test no = "$lt_cv_dlopen"; then
12163      enable_dlopen=no
12164 +  else
12165 +    enable_dlopen=yes
12166    fi
12167  
12168    case $lt_cv_dlopen in
12169    dlopen)
12170 <    save_CPPFLAGS="$CPPFLAGS"
12171 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12170 >    save_CPPFLAGS=$CPPFLAGS
12171 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12172  
12173 <    save_LDFLAGS="$LDFLAGS"
12173 >    save_LDFLAGS=$LDFLAGS
12174      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12175  
12176 <    save_LIBS="$LIBS"
12176 >    save_LIBS=$LIBS
12177      LIBS="$lt_cv_dlopen_libs $LIBS"
12178  
12179      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11642 | Line 12181 | $as_echo_n "checking whether a program c
12181   if ${lt_cv_dlopen_self+:} false; then :
12182    $as_echo_n "(cached) " >&6
12183   else
12184 <          if test "$cross_compiling" = yes; then :
12184 >          if test yes = "$cross_compiling"; then :
12185    lt_cv_dlopen_self=cross
12186   else
12187    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11689 | Line 12228 | else
12228   #  endif
12229   #endif
12230  
12231 < /* When -fvisbility=hidden is used, assume the code has been annotated
12231 > /* When -fvisibility=hidden is used, assume the code has been annotated
12232     correspondingly for the symbols needed.  */
12233 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12233 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12234   int fnord () __attribute__((visibility("default")));
12235   #endif
12236  
# Line 11721 | Line 12260 | _LT_EOF
12260    (eval $ac_link) 2>&5
12261    ac_status=$?
12262    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12263 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12263 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12264      (./conftest; exit; ) >&5 2>/dev/null
12265      lt_status=$?
12266      case x$lt_status in
# Line 11741 | Line 12280 | fi
12280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12281   $as_echo "$lt_cv_dlopen_self" >&6; }
12282  
12283 <    if test "x$lt_cv_dlopen_self" = xyes; then
12283 >    if test yes = "$lt_cv_dlopen_self"; then
12284        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12285        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12286   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12287   if ${lt_cv_dlopen_self_static+:} false; then :
12288    $as_echo_n "(cached) " >&6
12289   else
12290 <          if test "$cross_compiling" = yes; then :
12290 >          if test yes = "$cross_compiling"; then :
12291    lt_cv_dlopen_self_static=cross
12292   else
12293    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11795 | Line 12334 | else
12334   #  endif
12335   #endif
12336  
12337 < /* When -fvisbility=hidden is used, assume the code has been annotated
12337 > /* When -fvisibility=hidden is used, assume the code has been annotated
12338     correspondingly for the symbols needed.  */
12339 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12339 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12340   int fnord () __attribute__((visibility("default")));
12341   #endif
12342  
# Line 11827 | Line 12366 | _LT_EOF
12366    (eval $ac_link) 2>&5
12367    ac_status=$?
12368    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12369 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12369 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12370      (./conftest; exit; ) >&5 2>/dev/null
12371      lt_status=$?
12372      case x$lt_status in
# Line 11848 | Line 12387 | fi
12387   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12388      fi
12389  
12390 <    CPPFLAGS="$save_CPPFLAGS"
12391 <    LDFLAGS="$save_LDFLAGS"
12392 <    LIBS="$save_LIBS"
12390 >    CPPFLAGS=$save_CPPFLAGS
12391 >    LDFLAGS=$save_LDFLAGS
12392 >    LIBS=$save_LIBS
12393      ;;
12394    esac
12395  
# Line 11894 | Line 12433 | else
12433   # FIXME - insert some real tests, host_os isn't really good enough
12434    case $host_os in
12435    darwin*)
12436 <    if test -n "$STRIP" ; then
12436 >    if test -n "$STRIP"; then
12437        striplib="$STRIP -x"
12438        old_striplib="$STRIP -S"
12439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 11922 | Line 12461 | fi
12461  
12462  
12463  
12464 <  # Report which library types will actually be built
12464 >  # Report what library types will actually be built
12465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12466   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 11930 | Line 12469 | $as_echo "$can_build_shared" >&6; }
12469  
12470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12471   $as_echo_n "checking whether to build shared libraries... " >&6; }
12472 <  test "$can_build_shared" = "no" && enable_shared=no
12472 >  test no = "$can_build_shared" && enable_shared=no
12473  
12474    # On AIX, shared libraries and static libraries use the same namespace, and
12475    # are all built from PIC.
12476    case $host_os in
12477    aix3*)
12478 <    test "$enable_shared" = yes && enable_static=no
12478 >    test yes = "$enable_shared" && enable_static=no
12479      if test -n "$RANLIB"; then
12480        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12481        postinstall_cmds='$RANLIB $lib'
# Line 11944 | Line 12483 | $as_echo_n "checking whether to build sh
12483      ;;
12484  
12485    aix[4-9]*)
12486 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12487 <      test "$enable_shared" = yes && enable_static=no
12486 >    if test ia64 != "$host_cpu"; then
12487 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12488 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12489 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12490 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12491 >      esac
12492      fi
12493      ;;
12494    esac
# Line 11955 | Line 12498 | $as_echo "$enable_shared" >&6; }
12498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12499   $as_echo_n "checking whether to build static libraries... " >&6; }
12500    # Make sure either enable_shared or enable_static is yes.
12501 <  test "$enable_shared" = yes || enable_static=yes
12501 >  test yes = "$enable_shared" || enable_static=yes
12502    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12503   $as_echo "$enable_static" >&6; }
12504  
# Line 11969 | Line 12512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12512   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12513   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12514  
12515 < CC="$lt_save_CC"
12515 > CC=$lt_save_CC
12516  
12517  
12518  
# Line 11993 | Line 12536 | CC="$lt_save_CC"
12536   # Only expand once:
12537  
12538  
12539 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12540 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12539 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12540 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12541   if ${libltdl_cv_shlibext+:} false; then :
12542    $as_echo_n "(cached) " >&6
12543   else
# Line 12021 | Line 12564 | cat >>confdefs.h <<_ACEOF
12564   _ACEOF
12565  
12566   fi
12567 + if test -n "$shared_archive_member_spec"; then
12568 +
12569 + cat >>confdefs.h <<_ACEOF
12570 + #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12571 + _ACEOF
12572 +
12573 + fi
12574  
12575 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12576 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12575 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12576 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12577   if ${lt_cv_module_path_var+:} false; then :
12578    $as_echo_n "(cached) " >&6
12579   else
12580 <  lt_cv_module_path_var="$shlibpath_var"
12580 >  lt_cv_module_path_var=$shlibpath_var
12581   fi
12582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12583   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 12044 | Line 12594 | $as_echo_n "checking for the default lib
12594   if ${lt_cv_sys_dlsearch_path+:} false; then :
12595    $as_echo_n "(cached) " >&6
12596   else
12597 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12597 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12598   fi
12599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12600   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 12052 | Line 12602 | if test -n "$lt_cv_sys_dlsearch_path"; t
12602    sys_dlsearch_path=
12603    for dir in $lt_cv_sys_dlsearch_path; do
12604      if test -z "$sys_dlsearch_path"; then
12605 <      sys_dlsearch_path="$dir"
12605 >      sys_dlsearch_path=$dir
12606      else
12607 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12607 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12608      fi
12609    done
12610  
# Line 12074 | Line 12624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12624   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12625   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12626  
12627 + lt_dlload_save_LIBS=$LIBS
12628  
12629   LIBADD_DLOPEN=
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
# Line 12132 | Line 12683 | if test "$ac_res" != no; then :
12683  
12684   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12685  
12686 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12687 <          LIBADD_DLOPEN="-ldl"
12686 >        if test "$ac_cv_search_dlopen" != "none required"; then
12687 >          LIBADD_DLOPEN=-ldl
12688          fi
12689 <        libltdl_cv_lib_dl_dlopen="yes"
12689 >        libltdl_cv_lib_dl_dlopen=yes
12690          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12691   else
12692    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12156 | Line 12707 | if ac_fn_c_try_link "$LINENO"; then :
12707  
12708   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12709  
12710 <            libltdl_cv_func_dlopen="yes"
12710 >            libltdl_cv_func_dlopen=yes
12711              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12712   else
12713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12199 | Line 12750 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12750  
12751   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12752  
12753 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12753 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12754                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12755   fi
12756  
# Line 12208 | Line 12759 | rm -f core conftest.err conftest.$ac_obj
12759      conftest$ac_exeext conftest.$ac_ext
12760   fi
12761  
12762 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12762 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12763   then
12764 <  lt_save_LIBS="$LIBS"
12764 >  lt_save_LIBS=$LIBS
12765    LIBS="$LIBS $LIBADD_DLOPEN"
12766    for ac_func in dlerror
12767   do :
# Line 12223 | Line 12774 | _ACEOF
12774   fi
12775   done
12776  
12777 <  LIBS="$lt_save_LIBS"
12777 >  LIBS=$lt_save_LIBS
12778   fi
12779  
12780  
# Line 12276 | Line 12827 | if test "x$ac_cv_lib_dld_shl_load" = xye
12827   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12828  
12829              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12830 <            LIBADD_SHL_LOAD="-ldld"
12830 >            LIBADD_SHL_LOAD=-ldld
12831   fi
12832  
12833   fi
# Line 12298 | Line 12849 | fi
12849   beos*)
12850    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12851    ;;
12852 < cygwin* | mingw* | os2* | pw32*)
12852 > cygwin* | mingw* | pw32*)
12853    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12854   "
12855   if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
# Line 12376 | Line 12927 | fi
12927   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12928  
12929  
12930 + LIBS=$lt_dlload_save_LIBS
12931   ac_ext=c
12932   ac_cpp='$CPP $CPPFLAGS'
12933   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12430 | Line 12982 | $as_echo "$lt_cv_sys_symbol_underscore"
12982    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12983  
12984  
12985 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12986 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
12987 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12436 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12985 > if test yes = "$lt_cv_sys_symbol_underscore"; then
12986 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
12987 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12988   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12989   if ${libltdl_cv_need_uscore+:} false; then :
12990    $as_echo_n "(cached) " >&6
12991   else
12992    libltdl_cv_need_uscore=unknown
12993 <          save_LIBS="$LIBS"
12994 <          LIBS="$LIBS $LIBADD_DLOPEN"
12995 <          if test "$cross_compiling" = yes; then :
12996 <  libltdl_cv_need_uscore=cross
12446 < else
12447 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12448 <  lt_status=$lt_dlunknown
12449 <  cat > conftest.$ac_ext <<_LT_EOF
12993 >      dlsym_uscore_save_LIBS=$LIBS
12994 >      LIBS="$LIBS $LIBADD_DLOPEN"
12995 >      libname=conftmod # stay within 8.3 filename limits!
12996 >      cat >$libname.$ac_ext <<_LT_EOF
12997   #line $LINENO "configure"
12998   #include "confdefs.h"
12999 + /* When -fvisibility=hidden is used, assume the code has been annotated
13000 +   correspondingly for the symbols needed.  */
13001 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13002 + int fnord () __attribute__((visibility("default")));
13003 + #endif
13004 + int fnord () { return 42; }
13005 + _LT_EOF
13006  
13007 +      # ltfn_module_cmds module_cmds
13008 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
13009 +      # $module_cmds or $archive_cmds type content.
13010 +      ltfn_module_cmds ()
13011 +      {( # subshell avoids polluting parent global environment
13012 +          module_cmds_save_ifs=$IFS; IFS='~'
13013 +          for cmd in $1; do
13014 +            IFS=$module_cmds_save_ifs
13015 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13016 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13017 +            major=; versuffix=; verstring=; deplibs=
13018 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13019 +            eval $cmd
13020 +          done
13021 +          IFS=$module_cmds_save_ifs
13022 +      )}
13023 +
13024 +      # Compile a loadable module using libtool macro expansion results.
13025 +      $CC $pic_flag -c $libname.$ac_ext
13026 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13027 +
13028 +      # Try to fetch fnord with dlsym().
13029 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13030 +      cat >conftest.$ac_ext <<_LT_EOF
13031 + #line $LINENO "configure"
13032 + #include "confdefs.h"
13033   #if HAVE_DLFCN_H
13034   #include <dlfcn.h>
13035   #endif
12456
13036   #include <stdio.h>
13037 <
12459 < #ifdef RTLD_GLOBAL
12460 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12461 < #else
13037 > #ifndef RTLD_GLOBAL
13038   #  ifdef DL_GLOBAL
13039 < #    define LT_DLGLOBAL         DL_GLOBAL
13039 > #    define RTLD_GLOBAL DL_GLOBAL
13040   #  else
13041 < #    define LT_DLGLOBAL         0
13041 > #    define RTLD_GLOBAL 0
13042   #  endif
13043   #endif
13044 <
13045 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13046 <   find out it does not work in some platform. */
12471 < #ifndef LT_DLLAZY_OR_NOW
12472 < #  ifdef RTLD_LAZY
12473 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13044 > #ifndef RTLD_NOW
13045 > #  ifdef DL_NOW
13046 > #    define RTLD_NOW DL_NOW
13047   #  else
13048 < #    ifdef DL_LAZY
12476 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12477 < #    else
12478 < #      ifdef RTLD_NOW
12479 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12480 < #      else
12481 < #        ifdef DL_NOW
12482 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12483 < #        else
12484 < #          define LT_DLLAZY_OR_NOW      0
12485 < #        endif
12486 < #      endif
12487 < #    endif
13048 > #    define RTLD_NOW 0
13049   #  endif
13050   #endif
13051 <
13052 < /* When -fvisbility=hidden is used, assume the code has been annotated
13053 <   correspondingly for the symbols needed.  */
13054 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13055 < int fnord () __attribute__((visibility("default")));
13056 < #endif
13057 <
13058 < int fnord () { return 42; }
13059 < int main ()
12499 < {
12500 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12501 <  int status = $lt_dlunknown;
12502 <
12503 <  if (self)
12504 <    {
12505 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13051 > int main () {
13052 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13053 >  int status = $libltdl_dlunknown;
13054 >  if (handle) {
13055 >    if (dlsym (handle, "fnord"))
13056 >      status = $libltdl_dlnouscore;
13057 >    else {
13058 >      if (dlsym (handle, "_fnord"))
13059 >        status = $libltdl_dluscore;
13060        else
13061 <        {
12508 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12509 <          else puts (dlerror ());
12510 <        }
12511 <      /* dlclose (self); */
13061 >        puts (dlerror ());
13062      }
13063 <  else
13063 >    dlclose (handle);
13064 >  } else
13065      puts (dlerror ());
12515
13066    return status;
13067   }
13068   _LT_EOF
13069 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13069 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13070    (eval $ac_link) 2>&5
13071    ac_status=$?
13072    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13074 <    (./conftest; exit; ) >&5 2>/dev/null
13075 <    lt_status=$?
13076 <    case x$lt_status in
13077 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13078 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13079 <      x$lt_dlunknown|x*)  ;;
13080 <    esac
13081 <  else :
13082 <    # compilation failed
13083 <
12534 <  fi
12535 < fi
12536 < rm -fr conftest*
12537 <
12538 <          LIBS="$save_LIBS"
13073 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13074 >        (./conftest; exit; ) >&5 2>/dev/null
13075 >        libltdl_status=$?
13076 >        case x$libltdl_status in
13077 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13078 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13079 >          x*) libltdl_cv_need_uscore=unknown ;;
13080 >        esac
13081 >      fi
13082 >      rm -rf conftest* $libname*
13083 >      LIBS=$dlsym_uscore_save_LIBS
13084  
13085   fi
13086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12543 | Line 13088 | $as_echo "$libltdl_cv_need_uscore" >&6;
13088    fi
13089   fi
13090  
13091 < if test x"$libltdl_cv_need_uscore" = xyes; then
13091 > if test yes = "$libltdl_cv_need_uscore"; then
13092  
13093   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13094  
# Line 12562 | Line 13107 | else
13107    case $host_os in
13108    aix3*|aix4.1.*|aix4.2.*)
13109      # Unknown whether this is true for these versions of AIX, but
13110 <    # we want this `case' here to explicitly catch those versions.
13110 >    # we want this 'case' here to explicitly catch those versions.
13111      lt_cv_sys_dlopen_deplibs=unknown
13112      ;;
13113    aix[4-9]*)
# Line 12575 | Line 13120 | else
13120        ;;
13121      esac
13122      ;;
13123 +  bitrig*)
13124 +    lt_cv_sys_dlopen_deplibs=yes
13125 +    ;;
13126    darwin*)
13127      # Assuming the user has installed a libdl from somewhere, this is true
13128      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12612 | Line 13160 | else
13160    osf[1234]*)
13161      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13162      # it did *not* use an RPATH in a shared library to find objects the
13163 <    # library depends on, so we explicitly say `no'.
13163 >    # library depends on, so we explicitly say 'no'.
13164      lt_cv_sys_dlopen_deplibs=no
13165      ;;
13166    osf5.0|osf5.0a|osf5.1)
# Line 12621 | Line 13169 | else
13169      # that the library depends on, but there's no easy way to know if that
13170      # patch is installed.  Since this is the case, all we can really
13171      # say is unknown -- it depends on the patch being installed.  If
13172 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13172 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13173      lt_cv_sys_dlopen_deplibs=unknown
13174      ;;
13175    osf*)
13176      # the two cases above should catch all versions of osf <= 5.1.  Read
13177      # the comments above for what we know about them.
13178      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13179 <    # is used to find them so we can finally say `yes'.
13179 >    # is used to find them so we can finally say 'yes'.
13180      lt_cv_sys_dlopen_deplibs=yes
13181      ;;
13182    qnx*)
# Line 12645 | Line 13193 | else
13193   fi
13194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13195   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13196 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13196 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13197  
13198   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13199  
13200   fi
13201  
12654 :
13202  
13203   for ac_header in argz.h
13204   do :
# Line 12688 | Line 13235 | $as_echo "#define __error_t_defined 1" >
13235   fi
13236  
13237  
13238 < ARGZ_H=
13238 > LT_ARGZ_H=
13239   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13240          argz_next argz_stringify
13241   do :
# Line 12700 | Line 13247 | if eval test \"x\$"$as_ac_var"\" = x"yes
13247   _ACEOF
13248  
13249   else
13250 <  ARGZ_H=argz.h;
13250 >  LT_ARGZ_H=lt__argz.h;
13251  
13252 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13252 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13253  
13254   fi
13255   done
13256  
13257  
13258 < if test -z "$ARGZ_H"; then :
13258 > if test -z "$LT_ARGZ_H"; then :
13259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13260   $as_echo_n "checking if argz actually works... " >&6; }
13261   if ${lt_cv_sys_argz_works+:} false; then :
# Line 12717 | Line 13264 | else
13264    case $host_os in #(
13265           *cygwin*)
13266             lt_cv_sys_argz_works=no
13267 <           if test "$cross_compiling" != no; then
13267 >           if test no != "$cross_compiling"; then
13268               lt_cv_sys_argz_works="guessing no"
13269             else
13270               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12728 | Line 13275 | else
13275               lt_os_major=${2-0}
13276               lt_os_minor=${3-0}
13277               lt_os_micro=${4-0}
13278 <             if test "$lt_os_major" -gt 1 \
13279 <                || { test "$lt_os_major" -eq 1 \
13280 <                  && { test "$lt_os_minor" -gt 5 \
13281 <                    || { test "$lt_os_minor" -eq 5 \
13282 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13278 >             if test 1 -lt "$lt_os_major" \
13279 >                || { test 1 -eq "$lt_os_major" \
13280 >                  && { test 5 -lt "$lt_os_minor" \
13281 >                    || { test 5 -eq "$lt_os_minor" \
13282 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13283                 lt_cv_sys_argz_works=yes
13284               fi
13285             fi
# Line 12742 | Line 13289 | else
13289   fi
13290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13291   $as_echo "$lt_cv_sys_argz_works" >&6; }
13292 <     if test "$lt_cv_sys_argz_works" = yes; then :
13292 >     if test yes = "$lt_cv_sys_argz_works"; then :
13293  
13294   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13295  
13296   else
13297 <  ARGZ_H=argz.h
13297 >  LT_ARGZ_H=lt__argz.h
13298  
13299  
13300 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13300 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13301  
13302   fi
13303   fi
# Line 12771 | Line 13318 | else
13318   fi
13319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13320   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13321 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13321 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13322  
13323   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13324  
# Line 12795 | Line 13342 | if test "${with_included_ltdl+set}" = se
13342   fi
13343  
13344  
13345 < if test "x$with_included_ltdl" != xyes; then
13345 > if test yes != "$with_included_ltdl"; then
13346    # We are not being forced to use the included libltdl sources, so
13347    # decide whether there is a useful installed version we can use.
13348    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 12871 | Line 13418 | fi
13418   if test -n "$with_ltdl_include"; then
13419    if test -f "$with_ltdl_include/ltdl.h"; then :
13420    else
13421 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13421 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13422    fi
13423   else
13424    with_ltdl_include=no
# Line 12887 | Line 13434 | fi
13434   if test -n "$with_ltdl_lib"; then
13435    if test -f "$with_ltdl_lib/libltdl.la"; then :
13436    else
13437 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13437 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13438    fi
13439   else
13440    with_ltdl_lib=no
# Line 12900 | Line 13447 | case ,$with_included_ltdl,$with_ltdl_inc
13447    "") enable_ltdl_convenience=yes
13448        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13449   esac
13450 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13450 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13451   LTDLDEPS=$LIBLTDL
13452 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13452 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13453  
13454  
13455  
13456  
13457  
13458   # For backwards non-gettext consistent compatibility...
13459 < INCLTDL="$LTDLINCL"
13459 > INCLTDL=$LTDLINCL
13460  
13461  
13462          ;;
# Line 12924 | Line 13471 | $as_echo "#define HAVE_LTDL 1" >>confdef
13471          LTDLINCL=
13472          ;;
13473    ,no*,no,*)
13474 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13474 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13475          ;;
13476    *)    with_included_ltdl=no
13477          LIBLTDL="-L$with_ltdl_lib -lltdl"
13478          LTDLDEPS=
13479 <        LTDLINCL="-I$with_ltdl_include"
13479 >        LTDLINCL=-I$with_ltdl_include
13480          ;;
13481   esac
13482 < INCLTDL="$LTDLINCL"
13482 > INCLTDL=$LTDLINCL
13483  
13484   # Report our decision...
13485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 12952 | Line 13499 | if test "${enable_ltdl_install+set}" = s
13499   fi
13500  
13501  
13502 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13502 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13503    *yes*) ;;
13504    *) enable_ltdl_convenience=yes ;;
13505   esac
13506  
13507 < if test x"${enable_ltdl_install-no}" != xno; then
13507 > if test no != "${enable_ltdl_install-no}"; then
13508    INSTALL_LTDL_TRUE=
13509    INSTALL_LTDL_FALSE='#'
13510   else
# Line 12965 | Line 13512 | else
13512    INSTALL_LTDL_FALSE=
13513   fi
13514  
13515 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13515 >  if test no != "${enable_ltdl_convenience-no}"; then
13516    CONVENIENCE_LTDL_TRUE=
13517    CONVENIENCE_LTDL_FALSE='#'
13518   else
# Line 13067 | Line 13614 | LIBTOOL="$LIBTOOL --silent"
13614  
13615   # Checks for libraries.
13616  
13617 +
13618 +  if test "X$CC" != "X"; then
13619 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13620 + $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13621 + if ${ssp_cv_cc+:} false; then :
13622 +  $as_echo_n "(cached) " >&6
13623 + else
13624 +  ssp_old_cflags="$CFLAGS"
13625 +       CFLAGS="$CFLAGS -fstack-protector-strong"
13626 +       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 + /* end confdefs.h.  */
13628 +
13629 + int
13630 + main ()
13631 + {
13632 +
13633 +  ;
13634 +  return 0;
13635 + }
13636 + _ACEOF
13637 + if ac_fn_c_try_compile "$LINENO"; then :
13638 +  ssp_cv_cc=yes
13639 + else
13640 +  ssp_cv_cc=no
13641 + fi
13642 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 +       CFLAGS="$ssp_old_cflags"
13644 +
13645 + fi
13646 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13647 + $as_echo "$ssp_cv_cc" >&6; }
13648 +    if test $ssp_cv_cc = yes; then
13649 +      CFLAGS="$CFLAGS -fstack-protector-strong"
13650 +
13651 + $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13652 +
13653 +    else
13654 +      unset ssp_cv_cc
13655 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13656 + $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13657 + if ${ssp_cv_cc+:} false; then :
13658 +  $as_echo_n "(cached) " >&6
13659 + else
13660 +  ssp_old_cflags="$CFLAGS"
13661 +         CFLAGS="$CFLAGS -fstack-protector"
13662 +         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 + /* end confdefs.h.  */
13664 +
13665 + int
13666 + main ()
13667 + {
13668 +
13669 +  ;
13670 +  return 0;
13671 + }
13672 + _ACEOF
13673 + if ac_fn_c_try_compile "$LINENO"; then :
13674 +  ssp_cv_cc=yes
13675 + else
13676 +  ssp_cv_cc=no
13677 + fi
13678 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 +         CFLAGS="$ssp_old_cflags"
13680 +
13681 + fi
13682 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13683 + $as_echo "$ssp_cv_cc" >&6; }
13684 +      if test $ssp_cv_cc = yes; then
13685 +        CFLAGS="$CFLAGS -fstack-protector"
13686 +
13687 + $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13688 +
13689 +      fi
13690 +    fi
13691 +  fi
13692 +
13693 +
13694 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13695 + $as_echo_n "checking whether libssp exists... " >&6; }
13696 + if ${ssp_cv_lib+:} false; then :
13697 +  $as_echo_n "(cached) " >&6
13698 + else
13699 +  ssp_old_libs="$LIBS"
13700 +     LIBS="$LIBS -lssp"
13701 +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 + /* end confdefs.h.  */
13703 +
13704 + int
13705 + main ()
13706 + {
13707 +
13708 +  ;
13709 +  return 0;
13710 + }
13711 + _ACEOF
13712 + if ac_fn_c_try_link "$LINENO"; then :
13713 +  ssp_cv_lib=yes
13714 + else
13715 +  ssp_cv_lib=no
13716 + fi
13717 + rm -f core conftest.err conftest.$ac_objext \
13718 +    conftest$ac_exeext conftest.$ac_ext
13719 +     LIBS="$ssp_old_libs"
13720 +
13721 + fi
13722 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13723 + $as_echo "$ssp_cv_lib" >&6; }
13724 +  if test $ssp_cv_lib = yes; then
13725 +    LIBS="$LIBS -lssp"
13726 +  fi
13727 +
13728 +
13729 +
13730 +
13731 +
13732 +
13733 + for flag in -fno-strict-aliasing; do
13734 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13735 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13736 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13737 + if eval \${$as_CACHEVAR+:} false; then :
13738 +  $as_echo_n "(cached) " >&6
13739 + else
13740 +
13741 +  ax_check_save_flags=$CFLAGS
13742 +  CFLAGS="$CFLAGS  $flag"
13743 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 + /* end confdefs.h.  */
13745 +
13746 + int
13747 + main ()
13748 + {
13749 +
13750 +  ;
13751 +  return 0;
13752 + }
13753 + _ACEOF
13754 + if ac_fn_c_try_compile "$LINENO"; then :
13755 +  eval "$as_CACHEVAR=yes"
13756 + else
13757 +  eval "$as_CACHEVAR=no"
13758 + fi
13759 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 +  CFLAGS=$ax_check_save_flags
13761 + fi
13762 + eval ac_res=\$$as_CACHEVAR
13763 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13764 + $as_echo "$ac_res" >&6; }
13765 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13766 +
13767 + if ${CFLAGS+:} false; then :
13768 +
13769 +  case " $CFLAGS " in #(
13770 +  *" $flag "*) :
13771 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13772 +  (: CFLAGS already contains $flag) 2>&5
13773 +  ac_status=$?
13774 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13775 +  test $ac_status = 0; } ;; #(
13776 +  *) :
13777 +
13778 +     as_fn_append CFLAGS " $flag"
13779 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13780 +  (: CFLAGS="$CFLAGS") 2>&5
13781 +  ac_status=$?
13782 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13783 +  test $ac_status = 0; }
13784 +     ;;
13785 + esac
13786 +
13787 + else
13788 +
13789 +  CFLAGS=$flag
13790 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13791 +  (: CFLAGS="$CFLAGS") 2>&5
13792 +  ac_status=$?
13793 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13794 +  test $ac_status = 0; }
13795 +
13796 + fi
13797 +
13798 + else
13799 +  :
13800 + fi
13801 +
13802 + done
13803 +
13804 +
13805    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13806   if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13807  
# Line 13249 | Line 13984 | else
13984    as_fn_error $? "socket library not found" "$LINENO" 5
13985   fi
13986  
13252  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13253   #include <sys/socket.h>
13254   #include <netdb.h>
13255
13256 "
13257 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13258
13259 cat >>confdefs.h <<_ACEOF
13260 #define HAVE_STRUCT_SOCKADDR_IN 1
13261 _ACEOF
13262
13263
13264 fi
13265 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13266   #include <sys/socket.h>
13267   #include <netdb.h>
13268
13269 "
13270 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13271
13272 cat >>confdefs.h <<_ACEOF
13273 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13274 _ACEOF
13275
13276
13277 fi
13278 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13279   #include <sys/socket.h>
13280   #include <netdb.h>
13281
13282 "
13283 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13284
13285 cat >>confdefs.h <<_ACEOF
13286 #define HAVE_STRUCT_ADDRINFO 1
13287 _ACEOF
13288
13289
13290 fi
13291
13292  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13293  <sys/socket.h>
13294 "
13295 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13296
13297 cat >>confdefs.h <<_ACEOF
13298 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13299 _ACEOF
13300
13301
13302 fi
13303
13304
13305
13306  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13307 "
13308 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13309
13310 $as_echo "#define IPV6 1" >>confdefs.h
13311
13312 fi
13313
13987  
13988  
13989   # Checks for typedefs, structures, and compiler characteristics.
# Line 13563 | Line 14236 | done
14236  
14237  
14238  
13566
13567
14239   # Checks for header files.
14240  
14241  
# Line 13595 | Line 14266 | done
14266  
14267  
14268  
13598
13599
13600
13601
14269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14270   $as_echo_n "checking for library containing crypt... " >&6; }
14271   if ${ac_cv_search_crypt+:} false; then :
# Line 13656 | Line 14323 | if test "$ac_res" != no; then :
14323   fi
14324  
14325  
14326 < # Check whether --enable-libGeoIP was given.
14327 < if test "${enable_libGeoIP+set}" = set; then :
14328 <  enableval=$enable_libGeoIP;
14326 > # Define various chunk sizes for the pooling allocator
14327 >
14328 >
14329 > $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14330 >
14331 >
14332 > $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14333 >
14334 >
14335 > $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14336 >
14337 >
14338 > $as_echo "#define MP_CHUNK_SIZE_INVITE 4*1024" >>confdefs.h
14339 >
14340 >
14341 > $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14342 >
14343 >
14344 > $as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h
14345 >
14346 >
14347 > $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14348 >
14349 >
14350 > $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14351 >
14352 >
14353 > $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14354 >
14355 >
14356 > $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14357 >
14358 >
14359 > $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14360 >
14361 >
14362 > $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14363 >
14364 >
14365 > $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14366 >
14367 >
14368 > $as_echo "#define MP_CHUNK_SIZE_WHOWAS 256*1024" >>confdefs.h
14369 >
14370 >
14371 >
14372 > # Argument processing.
14373 >
14374 >  desired_iopoll_mechanism="none"
14375 >
14376 >  # Check whether --enable-kqueue was given.
14377 > if test "${enable_kqueue+set}" = set; then :
14378 >  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14379 > fi
14380 >
14381 >  # Check whether --enable-epoll was given.
14382 > if test "${enable_epoll+set}" = set; then :
14383 >  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14384 > fi
14385 >
14386 >  # Check whether --enable-devpoll was given.
14387 > if test "${enable_devpoll+set}" = set; then :
14388 >  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14389 > fi
14390 >
14391 >  # Check whether --enable-poll was given.
14392 > if test "${enable_poll+set}" = set; then :
14393 >  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14394 > fi
14395 >
14396 >
14397 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14398 > $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14399 >
14400 >  iopoll_mechanism_none=0
14401 >
14402 > cat >>confdefs.h <<_ACEOF
14403 > #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14404 > _ACEOF
14405 >
14406 >
14407 >  iopoll_mechanism_kqueue=1
14408 >
14409 > cat >>confdefs.h <<_ACEOF
14410 > #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14411 > _ACEOF
14412 >
14413 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 > /* end confdefs.h.  */
14415 > /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14416 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14417 > #define kevent innocuous_kevent
14418 >
14419 > /* System header to define __stub macros and hopefully few prototypes,
14420 >    which can conflict with char kevent (); below.
14421 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14422 >    <limits.h> exists even on freestanding compilers.  */
14423 >
14424 > #ifdef __STDC__
14425 > # include <limits.h>
14426 > #else
14427 > # include <assert.h>
14428 > #endif
14429 >
14430 > #undef kevent
14431 >
14432 > /* Override any GCC internal prototype to avoid an error.
14433 >   Use char because int might match the return type of a GCC
14434 >   builtin and then its argument prototype would still apply.  */
14435 > #ifdef __cplusplus
14436 > extern "C"
14437 > #endif
14438 > char kevent ();
14439 > /* The GNU C library defines this for functions which it implements
14440 >    to always fail with ENOSYS.  Some functions are actually named
14441 >    something starting with __ and the normal name is an alias.  */
14442 > #if defined __stub_kevent || defined __stub___kevent
14443 > choke me
14444 > #endif
14445 >
14446 > int
14447 > main ()
14448 > {
14449 > return kevent ();
14450 >  ;
14451 >  return 0;
14452 > }
14453 > _ACEOF
14454 > if ac_fn_c_try_link "$LINENO"; then :
14455 >  is_kqueue_mechanism_available="yes"
14456   else
14457 <  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14458 < if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14459 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
14460 < $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
14461 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14462 <  $as_echo_n "(cached) " >&6
14457 >  is_kqueue_mechanism_available="no"
14458 > fi
14459 > rm -f core conftest.err conftest.$ac_objext \
14460 >    conftest$ac_exeext conftest.$ac_ext
14461 >
14462 >  iopoll_mechanism_epoll=2
14463 >
14464 > cat >>confdefs.h <<_ACEOF
14465 > #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14466 > _ACEOF
14467 >
14468 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 > /* end confdefs.h.  */
14470 > #include <sys/epoll.h>
14471 > int
14472 > main ()
14473 > {
14474 > epoll_create(256);
14475 >  ;
14476 >  return 0;
14477 > }
14478 > _ACEOF
14479 > if ac_fn_c_try_link "$LINENO"; then :
14480 >  is_epoll_mechanism_available="yes"
14481   else
14482 <  ac_func_search_save_LIBS=$LIBS
14483 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 >  is_epoll_mechanism_available="no"
14483 > fi
14484 > rm -f core conftest.err conftest.$ac_objext \
14485 >    conftest$ac_exeext conftest.$ac_ext
14486 >
14487 >  iopoll_mechanism_devpoll=3
14488 >
14489 > cat >>confdefs.h <<_ACEOF
14490 > #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14491 > _ACEOF
14492 >
14493 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 > /* end confdefs.h.  */
14495 > #include <devpoll.h>
14496 > int
14497 > main ()
14498 > {
14499 >
14500 >  ;
14501 >  return 0;
14502 > }
14503 > _ACEOF
14504 > if ac_fn_c_try_compile "$LINENO"; then :
14505 >  is_devpoll_mechanism_available="yes"
14506 > else
14507 >  is_devpoll_mechanism_available="no"
14508 > fi
14509 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 >  if test "$is_devpoll_mechanism_available" = "yes" ; then
14511 >
14512 > $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14513 >
14514 >  fi
14515 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 > /* end confdefs.h.  */
14517 > #include <sys/devpoll.h>
14518 > int
14519 > main ()
14520 > {
14521 >
14522 >  ;
14523 >  return 0;
14524 > }
14525 > _ACEOF
14526 > if ac_fn_c_try_compile "$LINENO"; then :
14527 >  is_devpoll_mechanism_available="yes"
14528 > else
14529 >  is_devpoll_mechanism_available="no"
14530 > fi
14531 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 >  if test "$is_devpoll_mechanism_available" = "yes" ; then
14533 >
14534 > $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14535 >
14536 >  fi
14537 >
14538 >  iopoll_mechanism_poll=4
14539 >
14540 > cat >>confdefs.h <<_ACEOF
14541 > #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14542 > _ACEOF
14543 >
14544 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545   /* end confdefs.h.  */
14546 + /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14547 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14548 + #define poll innocuous_poll
14549 +
14550 + /* System header to define __stub macros and hopefully few prototypes,
14551 +    which can conflict with char poll (); below.
14552 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14553 +    <limits.h> exists even on freestanding compilers.  */
14554 +
14555 + #ifdef __STDC__
14556 + # include <limits.h>
14557 + #else
14558 + # include <assert.h>
14559 + #endif
14560 +
14561 + #undef poll
14562  
14563   /* Override any GCC internal prototype to avoid an error.
14564     Use char because int might match the return type of a GCC
# Line 13677 | Line 14566 | cat confdefs.h - <<_ACEOF >conftest.$ac_
14566   #ifdef __cplusplus
14567   extern "C"
14568   #endif
14569 < char GeoIP_id_by_ipnum_v6_gl ();
14569 > char poll ();
14570 > /* The GNU C library defines this for functions which it implements
14571 >    to always fail with ENOSYS.  Some functions are actually named
14572 >    something starting with __ and the normal name is an alias.  */
14573 > #if defined __stub_poll || defined __stub___poll
14574 > choke me
14575 > #endif
14576 >
14577   int
14578   main ()
14579   {
14580 < return GeoIP_id_by_ipnum_v6_gl ();
14580 > return poll ();
14581    ;
14582    return 0;
14583   }
14584   _ACEOF
14585 < for ac_lib in '' GeoIP; do
14586 <  if test -z "$ac_lib"; then
14587 <    ac_res="none required"
14585 > if ac_fn_c_try_link "$LINENO"; then :
14586 >  is_poll_mechanism_available="yes"
14587 > else
14588 >  is_poll_mechanism_available="no"
14589 > fi
14590 > rm -f core conftest.err conftest.$ac_objext \
14591 >    conftest$ac_exeext conftest.$ac_ext
14592 >
14593 >  optimal_iopoll_mechanism="none"
14594 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14595 >    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14596 >    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14597 >      optimal_iopoll_mechanism="$mechanism"
14598 >      break
14599 >    fi
14600 >  done
14601 >
14602 >  if test "$desired_iopoll_mechanism" = "none" ; then
14603 >    if test "$optimal_iopoll_mechanism" = "none" ; then
14604 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14605 > $as_echo "none" >&6; }
14606 >      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14607 >    else
14608 >      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14609 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14610 > $as_echo "$selected_iopoll_mechanism" >&6; }
14611 >    fi
14612    else
14613 <    ac_res=-l$ac_lib
14614 <    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14613 >    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14614 >    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14615 >      selected_iopoll_mechanism=$desired_iopoll_mechanism
14616 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14617 > $as_echo "$selected_iopoll_mechanism" >&6; }
14618 >    else
14619 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14620 > $as_echo "none" >&6; }
14621 >      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14622 >    fi
14623    fi
14624 <  if ac_fn_c_try_link "$LINENO"; then :
14625 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
14624 >
14625 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14626 >
14627 > cat >>confdefs.h <<_ACEOF
14628 > #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14629 > _ACEOF
14630 >
14631 >
14632 >
14633 >  # Check whether --enable-assert was given.
14634 > if test "${enable_assert+set}" = set; then :
14635 >  enableval=$enable_assert; assert=$enableval
14636 > else
14637 >  assert=no
14638   fi
14639 < rm -f core conftest.err conftest.$ac_objext \
14640 <    conftest$ac_exeext
14641 <  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14642 <  break
14639 >
14640 >
14641 >  if test "$assert" = "no"; then :
14642 >
14643 > $as_echo "#define NDEBUG 1" >>confdefs.h
14644 >
14645   fi
13704 done
13705 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14646  
14647 +
14648 +  # Check whether --enable-debugging was given.
14649 + if test "${enable_debugging+set}" = set; then :
14650 +  enableval=$enable_debugging; debugging="$enableval"
14651   else
14652 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
14652 >  debugging="no"
14653   fi
14654 < rm conftest.$ac_ext
14655 < LIBS=$ac_func_search_save_LIBS
14654 >
14655 >
14656 >  if test "$debugging" = "yes"; then :
14657 >
14658 >    CFLAGS="-Wall -g -O0"
14659 >
14660   fi
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13714 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13715 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13716 if test "$ac_res" != no; then :
13717  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14661  
13719 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
14662  
14663 +  # Check whether --enable-warnings was given.
14664 + if test "${enable_warnings+set}" = set; then :
14665 +  enableval=$enable_warnings; warnings="$enableval"
14666 + else
14667 +  warnings="no"
14668   fi
14669  
14670 +
14671 +  if test "$warnings" = "yes"; then :
14672 +
14673 +
14674 +
14675 +
14676 +
14677 + for flag in -Wall; do
14678 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14679 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14680 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14681 + if eval \${$as_CACHEVAR+:} false; then :
14682 +  $as_echo_n "(cached) " >&6
14683 + else
14684 +
14685 +  ax_check_save_flags=$CFLAGS
14686 +  CFLAGS="$CFLAGS  $flag"
14687 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 + /* end confdefs.h.  */
14689 +
14690 + int
14691 + main ()
14692 + {
14693 +
14694 +  ;
14695 +  return 0;
14696 + }
14697 + _ACEOF
14698 + if ac_fn_c_try_compile "$LINENO"; then :
14699 +  eval "$as_CACHEVAR=yes"
14700 + else
14701 +  eval "$as_CACHEVAR=no"
14702 + fi
14703 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 +  CFLAGS=$ax_check_save_flags
14705   fi
14706 + eval ac_res=\$$as_CACHEVAR
14707 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14708 + $as_echo "$ac_res" >&6; }
14709 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14710 +
14711 + if ${CFLAGS+:} false; then :
14712 +
14713 +  case " $CFLAGS " in #(
14714 +  *" $flag "*) :
14715 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14716 +  (: CFLAGS already contains $flag) 2>&5
14717 +  ac_status=$?
14718 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14719 +  test $ac_status = 0; } ;; #(
14720 +  *) :
14721 +
14722 +     as_fn_append CFLAGS " $flag"
14723 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14724 +  (: CFLAGS="$CFLAGS") 2>&5
14725 +  ac_status=$?
14726 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14727 +  test $ac_status = 0; }
14728 +     ;;
14729 + esac
14730 +
14731 + else
14732 +
14733 +  CFLAGS=$flag
14734 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14735 +  (: CFLAGS="$CFLAGS") 2>&5
14736 +  ac_status=$?
14737 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14738 +  test $ac_status = 0; }
14739  
14740 + fi
14741  
14742 + else
14743 +  :
14744   fi
14745  
14746 + done
14747  
14748 < # Check whether --enable-openssl was given.
14749 < if test "${enable_openssl+set}" = set; then :
14750 <  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14748 >
14749 >
14750 >
14751 >
14752 > for flag in -Wbad-function-cast; do
14753 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14754 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14755 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14756 > if eval \${$as_CACHEVAR+:} false; then :
14757 >  $as_echo_n "(cached) " >&6
14758   else
14759 <   cf_enable_openssl="auto"
14759 >
14760 >  ax_check_save_flags=$CFLAGS
14761 >  CFLAGS="$CFLAGS  $flag"
14762 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 > /* end confdefs.h.  */
14764 >
14765 > int
14766 > main ()
14767 > {
14768 >
14769 >  ;
14770 >  return 0;
14771 > }
14772 > _ACEOF
14773 > if ac_fn_c_try_compile "$LINENO"; then :
14774 >  eval "$as_CACHEVAR=yes"
14775 > else
14776 >  eval "$as_CACHEVAR=no"
14777   fi
14778 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 +  CFLAGS=$ax_check_save_flags
14780 + fi
14781 + eval ac_res=\$$as_CACHEVAR
14782 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14783 + $as_echo "$ac_res" >&6; }
14784 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14785  
14786 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13737 < $as_echo_n "checking for OpenSSL... " >&6; }
13738 < if test "$cf_enable_openssl" != "no"; then
13739 <  cf_openssl_basedir=""
13740 <  if test "$cf_enable_openssl" != "auto" &&
13741 <     test "$cf_enable_openssl" != "yes"; then
13742 <          cf_openssl_basedir="${cf_enable_openssl}"
13743 <  else
13744 <        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13745 <                /opt /opt/openssl /usr/local/openssl; do
13746 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
13747 <        cf_openssl_basedir="${dirs}"
13748 <        break
13749 <      fi
13750 <    done
13751 <    unset dirs
13752 <  fi
14786 > if ${CFLAGS+:} false; then :
14787  
14788 <    if test ! -z "$cf_openssl_basedir"; then
14789 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14790 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14791 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14792 <    else
14793 <                  cf_openssl_basedir=""
14794 <    fi
14795 <  else
14796 <                            if test -f "/usr/include/openssl/opensslv.h"; then
14797 <      cf_openssl_basedir="/usr"
14798 <    fi
14799 <  fi
14788 >  case " $CFLAGS " in #(
14789 >  *" $flag "*) :
14790 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14791 >  (: CFLAGS already contains $flag) 2>&5
14792 >  ac_status=$?
14793 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14794 >  test $ac_status = 0; } ;; #(
14795 >  *) :
14796 >
14797 >     as_fn_append CFLAGS " $flag"
14798 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14799 >  (: CFLAGS="$CFLAGS") 2>&5
14800 >  ac_status=$?
14801 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802 >  test $ac_status = 0; }
14803 >     ;;
14804 > esac
14805  
13767      if test ! -z "$cf_openssl_basedir"; then
13768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13769 $as_echo "$cf_openssl_basedir" >&6; }
13770    cf_enable_openssl="yes"
13771  else
13772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13773 $as_echo "not found. Please check your path." >&6; }
13774    cf_enable_openssl="no"
13775  fi
13776  unset cf_openssl_basedir
14806   else
14807 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14808 < $as_echo "disabled" >&6; }
14807 >
14808 >  CFLAGS=$flag
14809 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14810 >  (: CFLAGS="$CFLAGS") 2>&5
14811 >  ac_status=$?
14812 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14813 >  test $ac_status = 0; }
14814 >
14815   fi
14816  
13782 if test "$cf_enable_openssl" != "no"; then :
13783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5
13784 $as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; }
13785  if test "$cross_compiling" = yes; then :
13786  cf_openssl_version_ok=no
14817   else
14818 +  :
14819 + fi
14820 +
14821 + done
14822 +
14823 +
14824 +
14825 +
14826 +
14827 + for flag in -Wcast-align; do
14828 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14829 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14830 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14831 + if eval \${$as_CACHEVAR+:} false; then :
14832 +  $as_echo_n "(cached) " >&6
14833 + else
14834 +
14835 +  ax_check_save_flags=$CFLAGS
14836 +  CFLAGS="$CFLAGS  $flag"
14837    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838   /* end confdefs.h.  */
14839  
14840 + int
14841 + main ()
14842 + {
14843 +
14844 +  ;
14845 +  return 0;
14846 + }
14847 + _ACEOF
14848 + if ac_fn_c_try_compile "$LINENO"; then :
14849 +  eval "$as_CACHEVAR=yes"
14850 + else
14851 +  eval "$as_CACHEVAR=no"
14852 + fi
14853 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 +  CFLAGS=$ax_check_save_flags
14855 + fi
14856 + eval ac_res=\$$as_CACHEVAR
14857 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14858 + $as_echo "$ac_res" >&6; }
14859 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14860 +
14861 + if ${CFLAGS+:} false; then :
14862 +
14863 +  case " $CFLAGS " in #(
14864 +  *" $flag "*) :
14865 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14866 +  (: CFLAGS already contains $flag) 2>&5
14867 +  ac_status=$?
14868 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14869 +  test $ac_status = 0; } ;; #(
14870 +  *) :
14871 +
14872 +     as_fn_append CFLAGS " $flag"
14873 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14874 +  (: CFLAGS="$CFLAGS") 2>&5
14875 +  ac_status=$?
14876 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14877 +  test $ac_status = 0; }
14878 +     ;;
14879 + esac
14880 +
14881 + else
14882 +
14883 +  CFLAGS=$flag
14884 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14885 +  (: CFLAGS="$CFLAGS") 2>&5
14886 +  ac_status=$?
14887 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888 +  test $ac_status = 0; }
14889 +
14890 + fi
14891 +
14892 + else
14893 +  :
14894 + fi
14895 +
14896 + done
14897 +
14898 +
14899 +
14900 +
14901 +
14902 + for flag in -Wcast-qual; do
14903 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14904 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14905 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14906 + if eval \${$as_CACHEVAR+:} false; then :
14907 +  $as_echo_n "(cached) " >&6
14908 + else
14909 +
14910 +  ax_check_save_flags=$CFLAGS
14911 +  CFLAGS="$CFLAGS  $flag"
14912 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 + /* end confdefs.h.  */
14914  
13792    #include <openssl/opensslv.h>
13793    #include <stdlib.h>
14915   int
14916   main ()
14917   {
14918 < exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f));
14918 >
14919    ;
14920    return 0;
14921   }
14922   _ACEOF
14923 < if ac_fn_c_try_run "$LINENO"; then :
14924 <  cf_openssl_version_ok=yes
14923 > if ac_fn_c_try_compile "$LINENO"; then :
14924 >  eval "$as_CACHEVAR=yes"
14925   else
14926 <  cf_openssl_version_ok=no
14926 >  eval "$as_CACHEVAR=no"
14927   fi
14928 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14929 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14928 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929 >  CFLAGS=$ax_check_save_flags
14930   fi
14931 + eval ac_res=\$$as_CACHEVAR
14932 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14933 + $as_echo "$ac_res" >&6; }
14934 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14935  
14936 + if ${CFLAGS+:} false; then :
14937  
14938 <  if test "$cf_openssl_version_ok" = "yes"; then :
14939 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14940 < $as_echo "found" >&6; }
14938 >  case " $CFLAGS " in #(
14939 >  *" $flag "*) :
14940 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14941 >  (: CFLAGS already contains $flag) 2>&5
14942 >  ac_status=$?
14943 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14944 >  test $ac_status = 0; } ;; #(
14945 >  *) :
14946  
14947 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14948 < $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14949 < if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14947 >     as_fn_append CFLAGS " $flag"
14948 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14949 >  (: CFLAGS="$CFLAGS") 2>&5
14950 >  ac_status=$?
14951 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14952 >  test $ac_status = 0; }
14953 >     ;;
14954 > esac
14955 >
14956 > else
14957 >
14958 >  CFLAGS=$flag
14959 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14960 >  (: CFLAGS="$CFLAGS") 2>&5
14961 >  ac_status=$?
14962 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14963 >  test $ac_status = 0; }
14964 >
14965 > fi
14966 >
14967 > else
14968 >  :
14969 > fi
14970 >
14971 > done
14972 >
14973 >
14974 >
14975 >
14976 >
14977 > for flag in -Wclobbered; do
14978 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14979 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14980 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14981 > if eval \${$as_CACHEVAR+:} false; then :
14982    $as_echo_n "(cached) " >&6
14983   else
14984 <  ac_check_lib_save_LIBS=$LIBS
14985 < LIBS="-lcrypto  $LIBS"
14986 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 >
14985 >  ax_check_save_flags=$CFLAGS
14986 >  CFLAGS="$CFLAGS  $flag"
14987 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988   /* end confdefs.h.  */
14989  
13826 /* Override any GCC internal prototype to avoid an error.
13827   Use char because int might match the return type of a GCC
13828   builtin and then its argument prototype would still apply.  */
13829 #ifdef __cplusplus
13830 extern "C"
13831 #endif
13832 char RSA_free ();
14990   int
14991   main ()
14992   {
14993 < return RSA_free ();
14993 >
14994    ;
14995    return 0;
14996   }
14997   _ACEOF
14998 < if ac_fn_c_try_link "$LINENO"; then :
14999 <  ac_cv_lib_crypto_RSA_free=yes
14998 > if ac_fn_c_try_compile "$LINENO"; then :
14999 >  eval "$as_CACHEVAR=yes"
15000   else
15001 <  ac_cv_lib_crypto_RSA_free=no
15001 >  eval "$as_CACHEVAR=no"
15002   fi
15003 < rm -f core conftest.err conftest.$ac_objext \
15004 <    conftest$ac_exeext conftest.$ac_ext
13848 < LIBS=$ac_check_lib_save_LIBS
15003 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 >  CFLAGS=$ax_check_save_flags
15005   fi
15006 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
15007 < $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
15008 < if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
15009 <  cat >>confdefs.h <<_ACEOF
15010 < #define HAVE_LIBCRYPTO 1
15006 > eval ac_res=\$$as_CACHEVAR
15007 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15008 > $as_echo "$ac_res" >&6; }
15009 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15010 >
15011 > if ${CFLAGS+:} false; then :
15012 >
15013 >  case " $CFLAGS " in #(
15014 >  *" $flag "*) :
15015 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15016 >  (: CFLAGS already contains $flag) 2>&5
15017 >  ac_status=$?
15018 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15019 >  test $ac_status = 0; } ;; #(
15020 >  *) :
15021 >
15022 >     as_fn_append CFLAGS " $flag"
15023 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15024 >  (: CFLAGS="$CFLAGS") 2>&5
15025 >  ac_status=$?
15026 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15027 >  test $ac_status = 0; }
15028 >     ;;
15029 > esac
15030 >
15031 > else
15032 >
15033 >  CFLAGS=$flag
15034 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15035 >  (: CFLAGS="$CFLAGS") 2>&5
15036 >  ac_status=$?
15037 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15038 >  test $ac_status = 0; }
15039 >
15040 > fi
15041 >
15042 > else
15043 >  :
15044 > fi
15045 >
15046 > done
15047 >
15048 >
15049 >
15050 >
15051 >
15052 > for flag in -Wempty-body; do
15053 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15054 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15055 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15056 > if eval \${$as_CACHEVAR+:} false; then :
15057 >  $as_echo_n "(cached) " >&6
15058 > else
15059 >
15060 >  ax_check_save_flags=$CFLAGS
15061 >  CFLAGS="$CFLAGS  $flag"
15062 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 > /* end confdefs.h.  */
15064 >
15065 > int
15066 > main ()
15067 > {
15068 >
15069 >  ;
15070 >  return 0;
15071 > }
15072   _ACEOF
15073 + if ac_fn_c_try_compile "$LINENO"; then :
15074 +  eval "$as_CACHEVAR=yes"
15075 + else
15076 +  eval "$as_CACHEVAR=no"
15077 + fi
15078 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079 +  CFLAGS=$ax_check_save_flags
15080 + fi
15081 + eval ac_res=\$$as_CACHEVAR
15082 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15083 + $as_echo "$ac_res" >&6; }
15084 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15085  
15086 <  LIBS="-lcrypto $LIBS"
15086 > if ${CFLAGS+:} false; then :
15087 >
15088 >  case " $CFLAGS " in #(
15089 >  *" $flag "*) :
15090 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15091 >  (: CFLAGS already contains $flag) 2>&5
15092 >  ac_status=$?
15093 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15094 >  test $ac_status = 0; } ;; #(
15095 >  *) :
15096 >
15097 >     as_fn_append CFLAGS " $flag"
15098 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15099 >  (: CFLAGS="$CFLAGS") 2>&5
15100 >  ac_status=$?
15101 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15102 >  test $ac_status = 0; }
15103 >     ;;
15104 > esac
15105 >
15106 > else
15107 >
15108 >  CFLAGS=$flag
15109 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15110 >  (: CFLAGS="$CFLAGS") 2>&5
15111 >  ac_status=$?
15112 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15113 >  test $ac_status = 0; }
15114  
15115   fi
15116  
15117 <    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
15118 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
15119 < $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
15120 < if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
15117 > else
15118 >  :
15119 > fi
15120 >
15121 > done
15122 >
15123 >
15124 >
15125 >
15126 >
15127 > for flag in -Wignored-qualifiers; do
15128 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15129 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15130 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15131 > if eval \${$as_CACHEVAR+:} false; then :
15132    $as_echo_n "(cached) " >&6
15133   else
15134 <  ac_check_lib_save_LIBS=$LIBS
15135 < LIBS="-lssl  $LIBS"
15136 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 >
15135 >  ax_check_save_flags=$CFLAGS
15136 >  CFLAGS="$CFLAGS  $flag"
15137 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138   /* end confdefs.h.  */
15139  
13872 /* Override any GCC internal prototype to avoid an error.
13873   Use char because int might match the return type of a GCC
13874   builtin and then its argument prototype would still apply.  */
13875 #ifdef __cplusplus
13876 extern "C"
13877 #endif
13878 char SSL_connect ();
15140   int
15141   main ()
15142   {
15143 < return SSL_connect ();
15143 >
15144    ;
15145    return 0;
15146   }
15147   _ACEOF
15148 < if ac_fn_c_try_link "$LINENO"; then :
15149 <  ac_cv_lib_ssl_SSL_connect=yes
15148 > if ac_fn_c_try_compile "$LINENO"; then :
15149 >  eval "$as_CACHEVAR=yes"
15150   else
15151 <  ac_cv_lib_ssl_SSL_connect=no
15151 >  eval "$as_CACHEVAR=no"
15152   fi
15153 < rm -f core conftest.err conftest.$ac_objext \
15154 <    conftest$ac_exeext conftest.$ac_ext
13894 < LIBS=$ac_check_lib_save_LIBS
15153 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154 >  CFLAGS=$ax_check_save_flags
15155   fi
15156 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
15157 < $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
15158 < if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
15159 <  cat >>confdefs.h <<_ACEOF
15160 < #define HAVE_LIBSSL 1
15156 > eval ac_res=\$$as_CACHEVAR
15157 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15158 > $as_echo "$ac_res" >&6; }
15159 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15160 >
15161 > if ${CFLAGS+:} false; then :
15162 >
15163 >  case " $CFLAGS " in #(
15164 >  *" $flag "*) :
15165 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15166 >  (: CFLAGS already contains $flag) 2>&5
15167 >  ac_status=$?
15168 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15169 >  test $ac_status = 0; } ;; #(
15170 >  *) :
15171 >
15172 >     as_fn_append CFLAGS " $flag"
15173 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15174 >  (: CFLAGS="$CFLAGS") 2>&5
15175 >  ac_status=$?
15176 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15177 >  test $ac_status = 0; }
15178 >     ;;
15179 > esac
15180 >
15181 > else
15182 >
15183 >  CFLAGS=$flag
15184 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15185 >  (: CFLAGS="$CFLAGS") 2>&5
15186 >  ac_status=$?
15187 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15188 >  test $ac_status = 0; }
15189 >
15190 > fi
15191 >
15192 > else
15193 >  :
15194 > fi
15195 >
15196 > done
15197 >
15198 >
15199 >
15200 >
15201 >
15202 > for flag in -Wlogical-op; do
15203 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15204 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15205 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15206 > if eval \${$as_CACHEVAR+:} false; then :
15207 >  $as_echo_n "(cached) " >&6
15208 > else
15209 >
15210 >  ax_check_save_flags=$CFLAGS
15211 >  CFLAGS="$CFLAGS  $flag"
15212 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 > /* end confdefs.h.  */
15214 >
15215 > int
15216 > main ()
15217 > {
15218 >
15219 >  ;
15220 >  return 0;
15221 > }
15222   _ACEOF
15223 + if ac_fn_c_try_compile "$LINENO"; then :
15224 +  eval "$as_CACHEVAR=yes"
15225 + else
15226 +  eval "$as_CACHEVAR=no"
15227 + fi
15228 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 +  CFLAGS=$ax_check_save_flags
15230 + fi
15231 + eval ac_res=\$$as_CACHEVAR
15232 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15233 + $as_echo "$ac_res" >&6; }
15234 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15235  
15236 <  LIBS="-lssl $LIBS"
15236 > if ${CFLAGS+:} false; then :
15237 >
15238 >  case " $CFLAGS " in #(
15239 >  *" $flag "*) :
15240 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15241 >  (: CFLAGS already contains $flag) 2>&5
15242 >  ac_status=$?
15243 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15244 >  test $ac_status = 0; } ;; #(
15245 >  *) :
15246 >
15247 >     as_fn_append CFLAGS " $flag"
15248 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15249 >  (: CFLAGS="$CFLAGS") 2>&5
15250 >  ac_status=$?
15251 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15252 >  test $ac_status = 0; }
15253 >     ;;
15254 > esac
15255 >
15256 > else
15257 >
15258 >  CFLAGS=$flag
15259 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15260 >  (: CFLAGS="$CFLAGS") 2>&5
15261 >  ac_status=$?
15262 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 >  test $ac_status = 0; }
15264  
15265   fi
15266  
15267 + else
15268 +  :
15269   fi
15270  
15271 + done
15272 +
15273 +
15274 +
15275 +
15276 +
15277 + for flag in -Wmissing-declarations; do
15278 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15279 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15280 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15281 + if eval \${$as_CACHEVAR+:} false; then :
15282 +  $as_echo_n "(cached) " >&6
15283   else
15284 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
15285 < $as_echo "no - OpenSSL support disabled" >&6; }
15286 <    cf_enable_openssl="no"
15284 >
15285 >  ax_check_save_flags=$CFLAGS
15286 >  CFLAGS="$CFLAGS  $flag"
15287 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 > /* end confdefs.h.  */
15289 >
15290 > int
15291 > main ()
15292 > {
15293 >
15294 >  ;
15295 >  return 0;
15296 > }
15297 > _ACEOF
15298 > if ac_fn_c_try_compile "$LINENO"; then :
15299 >  eval "$as_CACHEVAR=yes"
15300 > else
15301 >  eval "$as_CACHEVAR=no"
15302   fi
15303 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15304 +  CFLAGS=$ax_check_save_flags
15305   fi
15306 + eval ac_res=\$$as_CACHEVAR
15307 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15308 + $as_echo "$ac_res" >&6; }
15309 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15310 +
15311 + if ${CFLAGS+:} false; then :
15312 +
15313 +  case " $CFLAGS " in #(
15314 +  *" $flag "*) :
15315 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15316 +  (: CFLAGS already contains $flag) 2>&5
15317 +  ac_status=$?
15318 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15319 +  test $ac_status = 0; } ;; #(
15320 +  *) :
15321 +
15322 +     as_fn_append CFLAGS " $flag"
15323 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15324 +  (: CFLAGS="$CFLAGS") 2>&5
15325 +  ac_status=$?
15326 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15327 +  test $ac_status = 0; }
15328 +     ;;
15329 + esac
15330  
13916 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13917  ENABLE_SSL_TRUE=
13918  ENABLE_SSL_FALSE='#'
15331   else
15332 <  ENABLE_SSL_TRUE='#'
15333 <  ENABLE_SSL_FALSE=
15332 >
15333 >  CFLAGS=$flag
15334 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15335 >  (: CFLAGS="$CFLAGS") 2>&5
15336 >  ac_status=$?
15337 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15338 >  test $ac_status = 0; }
15339 >
15340   fi
15341  
15342 + else
15343 +  :
15344 + fi
15345  
15346 + done
15347  
15348 < # Check whether --enable-assert was given.
15349 < if test "${enable_assert+set}" = set; then :
15350 <  enableval=$enable_assert; assert=$enableval
15348 >
15349 >
15350 >
15351 >
15352 > for flag in -Wmissing-field-initializers; do
15353 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15354 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15355 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15356 > if eval \${$as_CACHEVAR+:} false; then :
15357 >  $as_echo_n "(cached) " >&6
15358   else
15359 <  assert=no
15359 >
15360 >  ax_check_save_flags=$CFLAGS
15361 >  CFLAGS="$CFLAGS  $flag"
15362 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 > /* end confdefs.h.  */
15364 >
15365 > int
15366 > main ()
15367 > {
15368 >
15369 >  ;
15370 >  return 0;
15371 > }
15372 > _ACEOF
15373 > if ac_fn_c_try_compile "$LINENO"; then :
15374 >  eval "$as_CACHEVAR=yes"
15375 > else
15376 >  eval "$as_CACHEVAR=no"
15377   fi
15378 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 +  CFLAGS=$ax_check_save_flags
15380 + fi
15381 + eval ac_res=\$$as_CACHEVAR
15382 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15383 + $as_echo "$ac_res" >&6; }
15384 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15385  
15386 + if ${CFLAGS+:} false; then :
15387  
15388 < if test "$assert" = "no"; then :
15388 >  case " $CFLAGS " in #(
15389 >  *" $flag "*) :
15390 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15391 >  (: CFLAGS already contains $flag) 2>&5
15392 >  ac_status=$?
15393 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15394 >  test $ac_status = 0; } ;; #(
15395 >  *) :
15396  
15397 < $as_echo "#define NDEBUG 1" >>confdefs.h
15397 >     as_fn_append CFLAGS " $flag"
15398 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15399 >  (: CFLAGS="$CFLAGS") 2>&5
15400 >  ac_status=$?
15401 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402 >  test $ac_status = 0; }
15403 >     ;;
15404 > esac
15405 >
15406 > else
15407 >
15408 >  CFLAGS=$flag
15409 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15410 >  (: CFLAGS="$CFLAGS") 2>&5
15411 >  ac_status=$?
15412 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15413 >  test $ac_status = 0; }
15414  
15415   fi
15416  
15417 + else
15418 +  :
15419 + fi
15420  
15421 < $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
15421 > done
15422  
15423  
13944 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
15424  
15425  
13947 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
15426  
15427 + for flag in -Wmissing-include-dirs; do
15428 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15429 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15430 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15431 + if eval \${$as_CACHEVAR+:} false; then :
15432 +  $as_echo_n "(cached) " >&6
15433 + else
15434  
15435 < $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
15435 >  ax_check_save_flags=$CFLAGS
15436 >  CFLAGS="$CFLAGS  $flag"
15437 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 > /* end confdefs.h.  */
15439  
15440 + int
15441 + main ()
15442 + {
15443  
15444 < $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
15444 >  ;
15445 >  return 0;
15446 > }
15447 > _ACEOF
15448 > if ac_fn_c_try_compile "$LINENO"; then :
15449 >  eval "$as_CACHEVAR=yes"
15450 > else
15451 >  eval "$as_CACHEVAR=no"
15452 > fi
15453 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 >  CFLAGS=$ax_check_save_flags
15455 > fi
15456 > eval ac_res=\$$as_CACHEVAR
15457 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15458 > $as_echo "$ac_res" >&6; }
15459 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15460  
15461 + if ${CFLAGS+:} false; then :
15462  
15463 < $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
15463 >  case " $CFLAGS " in #(
15464 >  *" $flag "*) :
15465 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15466 >  (: CFLAGS already contains $flag) 2>&5
15467 >  ac_status=$?
15468 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15469 >  test $ac_status = 0; } ;; #(
15470 >  *) :
15471  
15472 +     as_fn_append CFLAGS " $flag"
15473 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15474 +  (: CFLAGS="$CFLAGS") 2>&5
15475 +  ac_status=$?
15476 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15477 +  test $ac_status = 0; }
15478 +     ;;
15479 + esac
15480  
15481 < $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
15481 > else
15482  
15483 +  CFLAGS=$flag
15484 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15485 +  (: CFLAGS="$CFLAGS") 2>&5
15486 +  ac_status=$?
15487 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15488 +  test $ac_status = 0; }
15489  
15490 < $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
15490 > fi
15491  
15492 + else
15493 +  :
15494 + fi
15495  
15496 < $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
15496 > done
15497  
15498  
13968 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
15499  
15500  
13971 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
15501  
15502 + for flag in -Wmissing-parameter-type; do
15503 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15504 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15505 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15506 + if eval \${$as_CACHEVAR+:} false; then :
15507 +  $as_echo_n "(cached) " >&6
15508 + else
15509  
15510 < $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
15510 >  ax_check_save_flags=$CFLAGS
15511 >  CFLAGS="$CFLAGS  $flag"
15512 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 > /* end confdefs.h.  */
15514  
15515 + int
15516 + main ()
15517 + {
15518  
15519 < $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
15519 >  ;
15520 >  return 0;
15521 > }
15522 > _ACEOF
15523 > if ac_fn_c_try_compile "$LINENO"; then :
15524 >  eval "$as_CACHEVAR=yes"
15525 > else
15526 >  eval "$as_CACHEVAR=no"
15527 > fi
15528 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 >  CFLAGS=$ax_check_save_flags
15530 > fi
15531 > eval ac_res=\$$as_CACHEVAR
15532 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15533 > $as_echo "$ac_res" >&6; }
15534 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15535  
15536 + if ${CFLAGS+:} false; then :
15537  
15538 < $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
15538 >  case " $CFLAGS " in #(
15539 >  *" $flag "*) :
15540 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15541 >  (: CFLAGS already contains $flag) 2>&5
15542 >  ac_status=$?
15543 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15544 >  test $ac_status = 0; } ;; #(
15545 >  *) :
15546  
15547 +     as_fn_append CFLAGS " $flag"
15548 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15549 +  (: CFLAGS="$CFLAGS") 2>&5
15550 +  ac_status=$?
15551 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15552 +  test $ac_status = 0; }
15553 +     ;;
15554 + esac
15555  
15556 < # Argument processing.
15556 > else
15557 >
15558 >  CFLAGS=$flag
15559 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15560 >  (: CFLAGS="$CFLAGS") 2>&5
15561 >  ac_status=$?
15562 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563 >  test $ac_status = 0; }
15564  
13985    desired_iopoll_mechanism="none"
13986    # Check whether --enable-kqueue was given.
13987 if test "${enable_kqueue+set}" = set; then :
13988  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
15565   fi
15566  
15567 <  # Check whether --enable-epoll was given.
15568 < if test "${enable_epoll+set}" = set; then :
13993 <  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
15567 > else
15568 >  :
15569   fi
15570  
15571 <  # Check whether --enable-devpoll was given.
15572 < if test "${enable_devpoll+set}" = set; then :
15573 <  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
15571 > done
15572 >
15573 >
15574 >
15575 >
15576 >
15577 > for flag in -Wmissing-prototypes; do
15578 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15579 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15580 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15581 > if eval \${$as_CACHEVAR+:} false; then :
15582 >  $as_echo_n "(cached) " >&6
15583 > else
15584 >
15585 >  ax_check_save_flags=$CFLAGS
15586 >  CFLAGS="$CFLAGS  $flag"
15587 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 > /* end confdefs.h.  */
15589 >
15590 > int
15591 > main ()
15592 > {
15593 >
15594 >  ;
15595 >  return 0;
15596 > }
15597 > _ACEOF
15598 > if ac_fn_c_try_compile "$LINENO"; then :
15599 >  eval "$as_CACHEVAR=yes"
15600 > else
15601 >  eval "$as_CACHEVAR=no"
15602 > fi
15603 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 >  CFLAGS=$ax_check_save_flags
15605   fi
15606 + eval ac_res=\$$as_CACHEVAR
15607 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15608 + $as_echo "$ac_res" >&6; }
15609 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15610 +
15611 + if ${CFLAGS+:} false; then :
15612 +
15613 +  case " $CFLAGS " in #(
15614 +  *" $flag "*) :
15615 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15616 +  (: CFLAGS already contains $flag) 2>&5
15617 +  ac_status=$?
15618 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15619 +  test $ac_status = 0; } ;; #(
15620 +  *) :
15621 +
15622 +     as_fn_append CFLAGS " $flag"
15623 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15624 +  (: CFLAGS="$CFLAGS") 2>&5
15625 +  ac_status=$?
15626 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15627 +  test $ac_status = 0; }
15628 +     ;;
15629 + esac
15630 +
15631 + else
15632 +
15633 +  CFLAGS=$flag
15634 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15635 +  (: CFLAGS="$CFLAGS") 2>&5
15636 +  ac_status=$?
15637 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15638 +  test $ac_status = 0; }
15639  
14001  # Check whether --enable-poll was given.
14002 if test "${enable_poll+set}" = set; then :
14003  enableval=$enable_poll; desired_iopoll_mechanism="poll"
15640   fi
15641  
15642 <  # Check whether --enable-select was given.
15643 < if test "${enable_select+set}" = set; then :
14008 <  enableval=$enable_select; desired_iopoll_mechanism="select"
15642 > else
15643 >  :
15644   fi
15645  
15646 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14012 < $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14013 <  iopoll_mechanism_none=0
15646 > done
15647  
15648 < cat >>confdefs.h <<_ACEOF
15649 < #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
15648 >
15649 >
15650 >
15651 >
15652 > for flag in -Wnested-externs; do
15653 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15654 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15655 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15656 > if eval \${$as_CACHEVAR+:} false; then :
15657 >  $as_echo_n "(cached) " >&6
15658 > else
15659 >
15660 >  ax_check_save_flags=$CFLAGS
15661 >  CFLAGS="$CFLAGS  $flag"
15662 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 > /* end confdefs.h.  */
15664 >
15665 > int
15666 > main ()
15667 > {
15668 >
15669 >  ;
15670 >  return 0;
15671 > }
15672   _ACEOF
15673 + if ac_fn_c_try_compile "$LINENO"; then :
15674 +  eval "$as_CACHEVAR=yes"
15675 + else
15676 +  eval "$as_CACHEVAR=no"
15677 + fi
15678 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 +  CFLAGS=$ax_check_save_flags
15680 + fi
15681 + eval ac_res=\$$as_CACHEVAR
15682 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15683 + $as_echo "$ac_res" >&6; }
15684 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15685  
15686 <      iopoll_mechanism_kqueue=1
15686 > if ${CFLAGS+:} false; then :
15687  
15688 < cat >>confdefs.h <<_ACEOF
15689 < #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
15688 >  case " $CFLAGS " in #(
15689 >  *" $flag "*) :
15690 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15691 >  (: CFLAGS already contains $flag) 2>&5
15692 >  ac_status=$?
15693 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15694 >  test $ac_status = 0; } ;; #(
15695 >  *) :
15696 >
15697 >     as_fn_append CFLAGS " $flag"
15698 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15699 >  (: CFLAGS="$CFLAGS") 2>&5
15700 >  ac_status=$?
15701 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15702 >  test $ac_status = 0; }
15703 >     ;;
15704 > esac
15705 >
15706 > else
15707 >
15708 >  CFLAGS=$flag
15709 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15710 >  (: CFLAGS="$CFLAGS") 2>&5
15711 >  ac_status=$?
15712 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15713 >  test $ac_status = 0; }
15714 >
15715 > fi
15716 >
15717 > else
15718 >  :
15719 > fi
15720 >
15721 > done
15722 >
15723 >
15724 >
15725 >
15726 >
15727 > for flag in -Wold-style-declaration; do
15728 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15729 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15730 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15731 > if eval \${$as_CACHEVAR+:} false; then :
15732 >  $as_echo_n "(cached) " >&6
15733 > else
15734 >
15735 >  ax_check_save_flags=$CFLAGS
15736 >  CFLAGS="$CFLAGS  $flag"
15737 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738 > /* end confdefs.h.  */
15739 >
15740 > int
15741 > main ()
15742 > {
15743 >
15744 >  ;
15745 >  return 0;
15746 > }
15747   _ACEOF
15748 + if ac_fn_c_try_compile "$LINENO"; then :
15749 +  eval "$as_CACHEVAR=yes"
15750 + else
15751 +  eval "$as_CACHEVAR=no"
15752 + fi
15753 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 +  CFLAGS=$ax_check_save_flags
15755 + fi
15756 + eval ac_res=\$$as_CACHEVAR
15757 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15758 + $as_echo "$ac_res" >&6; }
15759 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15760 +
15761 + if ${CFLAGS+:} false; then :
15762 +
15763 +  case " $CFLAGS " in #(
15764 +  *" $flag "*) :
15765 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15766 +  (: CFLAGS already contains $flag) 2>&5
15767 +  ac_status=$?
15768 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15769 +  test $ac_status = 0; } ;; #(
15770 +  *) :
15771 +
15772 +     as_fn_append CFLAGS " $flag"
15773 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15774 +  (: CFLAGS="$CFLAGS") 2>&5
15775 +  ac_status=$?
15776 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15777 +  test $ac_status = 0; }
15778 +     ;;
15779 + esac
15780 +
15781 + else
15782 +
15783 +  CFLAGS=$flag
15784 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15785 +  (: CFLAGS="$CFLAGS") 2>&5
15786 +  ac_status=$?
15787 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15788 +  test $ac_status = 0; }
15789 +
15790 + fi
15791 +
15792 + else
15793 +  :
15794 + fi
15795 +
15796 + done
15797 +
15798 +
15799  
15800 +
15801 +
15802 + for flag in -Woverride-init; do
15803 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15804 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15805 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15806 + if eval \${$as_CACHEVAR+:} false; then :
15807 +  $as_echo_n "(cached) " >&6
15808 + else
15809 +
15810 +  ax_check_save_flags=$CFLAGS
15811 +  CFLAGS="$CFLAGS  $flag"
15812    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813   /* end confdefs.h.  */
14027 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14028   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14029 #define kevent innocuous_kevent
15814  
15815 < /* System header to define __stub macros and hopefully few prototypes,
15816 <    which can conflict with char kevent (); below.
15817 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14034 <    <limits.h> exists even on freestanding compilers.  */
15815 > int
15816 > main ()
15817 > {
15818  
15819 < #ifdef __STDC__
15820 < # include <limits.h>
15821 < #else
15822 < # include <assert.h>
15823 < #endif
15819 >  ;
15820 >  return 0;
15821 > }
15822 > _ACEOF
15823 > if ac_fn_c_try_compile "$LINENO"; then :
15824 >  eval "$as_CACHEVAR=yes"
15825 > else
15826 >  eval "$as_CACHEVAR=no"
15827 > fi
15828 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15829 >  CFLAGS=$ax_check_save_flags
15830 > fi
15831 > eval ac_res=\$$as_CACHEVAR
15832 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15833 > $as_echo "$ac_res" >&6; }
15834 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15835  
15836 < #undef kevent
15836 > if ${CFLAGS+:} false; then :
15837 >
15838 >  case " $CFLAGS " in #(
15839 >  *" $flag "*) :
15840 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15841 >  (: CFLAGS already contains $flag) 2>&5
15842 >  ac_status=$?
15843 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15844 >  test $ac_status = 0; } ;; #(
15845 >  *) :
15846 >
15847 >     as_fn_append CFLAGS " $flag"
15848 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15849 >  (: CFLAGS="$CFLAGS") 2>&5
15850 >  ac_status=$?
15851 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15852 >  test $ac_status = 0; }
15853 >     ;;
15854 > esac
15855 >
15856 > else
15857 >
15858 >  CFLAGS=$flag
15859 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15860 >  (: CFLAGS="$CFLAGS") 2>&5
15861 >  ac_status=$?
15862 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15863 >  test $ac_status = 0; }
15864 >
15865 > fi
15866 >
15867 > else
15868 >  :
15869 > fi
15870 >
15871 > done
15872  
15873 < /* Override any GCC internal prototype to avoid an error.
15874 <   Use char because int might match the return type of a GCC
15875 <   builtin and then its argument prototype would still apply.  */
15876 < #ifdef __cplusplus
15877 < extern "C"
15878 < #endif
15879 < char kevent ();
15880 < /* The GNU C library defines this for functions which it implements
15881 <    to always fail with ENOSYS.  Some functions are actually named
15882 <    something starting with __ and the normal name is an alias.  */
15883 < #if defined __stub_kevent || defined __stub___kevent
15884 < choke me
15885 < #endif
15873 >
15874 >
15875 >
15876 >
15877 > for flag in -Wpointer-arith; do
15878 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15879 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15880 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15881 > if eval \${$as_CACHEVAR+:} false; then :
15882 >  $as_echo_n "(cached) " >&6
15883 > else
15884 >
15885 >  ax_check_save_flags=$CFLAGS
15886 >  CFLAGS="$CFLAGS  $flag"
15887 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 > /* end confdefs.h.  */
15889  
15890   int
15891   main ()
15892   {
15893 < return kevent ();
15893 >
15894    ;
15895    return 0;
15896   }
15897   _ACEOF
15898 < if ac_fn_c_try_link "$LINENO"; then :
15899 <  is_kqueue_mechanism_available="yes"
15898 > if ac_fn_c_try_compile "$LINENO"; then :
15899 >  eval "$as_CACHEVAR=yes"
15900   else
15901 <  is_kqueue_mechanism_available="no"
15901 >  eval "$as_CACHEVAR=no"
15902   fi
15903 < rm -f core conftest.err conftest.$ac_objext \
15904 <    conftest$ac_exeext conftest.$ac_ext
15905 <      iopoll_mechanism_epoll=2
15903 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 >  CFLAGS=$ax_check_save_flags
15905 > fi
15906 > eval ac_res=\$$as_CACHEVAR
15907 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15908 > $as_echo "$ac_res" >&6; }
15909 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15910  
15911 < cat >>confdefs.h <<_ACEOF
15912 < #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
15911 > if ${CFLAGS+:} false; then :
15912 >
15913 >  case " $CFLAGS " in #(
15914 >  *" $flag "*) :
15915 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15916 >  (: CFLAGS already contains $flag) 2>&5
15917 >  ac_status=$?
15918 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15919 >  test $ac_status = 0; } ;; #(
15920 >  *) :
15921 >
15922 >     as_fn_append CFLAGS " $flag"
15923 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15924 >  (: CFLAGS="$CFLAGS") 2>&5
15925 >  ac_status=$?
15926 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15927 >  test $ac_status = 0; }
15928 >     ;;
15929 > esac
15930 >
15931 > else
15932 >
15933 >  CFLAGS=$flag
15934 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15935 >  (: CFLAGS="$CFLAGS") 2>&5
15936 >  ac_status=$?
15937 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15938 >  test $ac_status = 0; }
15939 >
15940 > fi
15941 >
15942 > else
15943 >  :
15944 > fi
15945 >
15946 > done
15947 >
15948 >
15949 >
15950 >
15951 >
15952 > for flag in -Wredundant-decls; do
15953 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15954 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15955 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15956 > if eval \${$as_CACHEVAR+:} false; then :
15957 >  $as_echo_n "(cached) " >&6
15958 > else
15959 >
15960 >  ax_check_save_flags=$CFLAGS
15961 >  CFLAGS="$CFLAGS  $flag"
15962 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 > /* end confdefs.h.  */
15964 >
15965 > int
15966 > main ()
15967 > {
15968 >
15969 >  ;
15970 >  return 0;
15971 > }
15972   _ACEOF
15973 + if ac_fn_c_try_compile "$LINENO"; then :
15974 +  eval "$as_CACHEVAR=yes"
15975 + else
15976 +  eval "$as_CACHEVAR=no"
15977 + fi
15978 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 +  CFLAGS=$ax_check_save_flags
15980 + fi
15981 + eval ac_res=\$$as_CACHEVAR
15982 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15983 + $as_echo "$ac_res" >&6; }
15984 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15985 +
15986 + if ${CFLAGS+:} false; then :
15987 +
15988 +  case " $CFLAGS " in #(
15989 +  *" $flag "*) :
15990 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15991 +  (: CFLAGS already contains $flag) 2>&5
15992 +  ac_status=$?
15993 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15994 +  test $ac_status = 0; } ;; #(
15995 +  *) :
15996 +
15997 +     as_fn_append CFLAGS " $flag"
15998 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15999 +  (: CFLAGS="$CFLAGS") 2>&5
16000 +  ac_status=$?
16001 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16002 +  test $ac_status = 0; }
16003 +     ;;
16004 + esac
16005  
14079  if test "$cross_compiling" = yes; then :
14080  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14082 as_fn_error $? "cannot run test program while cross compiling
14083 See \`config.log' for more details" "$LINENO" 5; }
16006   else
16007 +
16008 +  CFLAGS=$flag
16009 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16010 +  (: CFLAGS="$CFLAGS") 2>&5
16011 +  ac_status=$?
16012 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16013 +  test $ac_status = 0; }
16014 +
16015 + fi
16016 +
16017 + else
16018 +  :
16019 + fi
16020 +
16021 + done
16022 +
16023 +
16024 +
16025 +
16026 +
16027 + for flag in -Wshadow; do
16028 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16029 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16030 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16031 + if eval \${$as_CACHEVAR+:} false; then :
16032 +  $as_echo_n "(cached) " >&6
16033 + else
16034 +
16035 +  ax_check_save_flags=$CFLAGS
16036 +  CFLAGS="$CFLAGS  $flag"
16037    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038   /* end confdefs.h.  */
16039  
16040 < #include <sys/epoll.h>
16041 < #include <sys/syscall.h>
16042 < #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
16043 < #if !defined(__NR_epoll_create)
16044 < #if defined(__ia64__)
16045 < #define __NR_epoll_create 1243
16046 < #elif defined(__x86_64__)
16047 < #define __NR_epoll_create 214
16048 < #elif defined(__sparc64__) || defined(__sparc__)
16049 < #define __NR_epoll_create 193
16050 < #elif defined(__s390__) || defined(__m68k__)
16051 < #define __NR_epoll_create 249
16052 < #elif defined(__ppc64__) || defined(__ppc__)
16053 < #define __NR_epoll_create 236
16054 < #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
16055 < #define __NR_epoll_create 224
16056 < #elif defined(__alpha__)
16057 < #define __NR_epoll_create 407
16058 < #elif defined(__sh64__)
16059 < #define __NR_epoll_create 282
16060 < #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
16061 < #define __NR_epoll_create 254
16062 < #else
16063 < #error No system call numbers defined for epoll family.
16064 < #endif
16065 < #endif
16066 < _syscall1(int, epoll_create, int, size)
16067 < #endif
16040 > int
16041 > main ()
16042 > {
16043 >
16044 >  ;
16045 >  return 0;
16046 > }
16047 > _ACEOF
16048 > if ac_fn_c_try_compile "$LINENO"; then :
16049 >  eval "$as_CACHEVAR=yes"
16050 > else
16051 >  eval "$as_CACHEVAR=no"
16052 > fi
16053 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 >  CFLAGS=$ax_check_save_flags
16055 > fi
16056 > eval ac_res=\$$as_CACHEVAR
16057 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16058 > $as_echo "$ac_res" >&6; }
16059 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16060 >
16061 > if ${CFLAGS+:} false; then :
16062 >
16063 >  case " $CFLAGS " in #(
16064 >  *" $flag "*) :
16065 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16066 >  (: CFLAGS already contains $flag) 2>&5
16067 >  ac_status=$?
16068 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16069 >  test $ac_status = 0; } ;; #(
16070 >  *) :
16071 >
16072 >     as_fn_append CFLAGS " $flag"
16073 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16074 >  (: CFLAGS="$CFLAGS") 2>&5
16075 >  ac_status=$?
16076 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16077 >  test $ac_status = 0; }
16078 >     ;;
16079 > esac
16080 >
16081 > else
16082 >
16083 >  CFLAGS=$flag
16084 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16085 >  (: CFLAGS="$CFLAGS") 2>&5
16086 >  ac_status=$?
16087 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16088 >  test $ac_status = 0; }
16089 >
16090 > fi
16091 >
16092 > else
16093 >  :
16094 > fi
16095 >
16096 > done
16097 >
16098 >
16099 >
16100 >
16101 >
16102 > for flag in -Wsign-compare; do
16103 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16104 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16105 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16106 > if eval \${$as_CACHEVAR+:} false; then :
16107 >  $as_echo_n "(cached) " >&6
16108 > else
16109 >
16110 >  ax_check_save_flags=$CFLAGS
16111 >  CFLAGS="$CFLAGS  $flag"
16112 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 > /* end confdefs.h.  */
16114  
16115   int
16116   main ()
16117   {
16118 < return epoll_create(256) == -1 ? 1 : 0
16118 >
16119    ;
16120    return 0;
16121   }
16122   _ACEOF
16123 < if ac_fn_c_try_run "$LINENO"; then :
16124 <  is_epoll_mechanism_available="yes"
16123 > if ac_fn_c_try_compile "$LINENO"; then :
16124 >  eval "$as_CACHEVAR=yes"
16125   else
16126 <  is_epoll_mechanism_available="no"
16126 >  eval "$as_CACHEVAR=no"
16127   fi
16128 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16129 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16128 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 >  CFLAGS=$ax_check_save_flags
16130   fi
16131 + eval ac_res=\$$as_CACHEVAR
16132 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16133 + $as_echo "$ac_res" >&6; }
16134 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16135  
16136 <      iopoll_mechanism_devpoll=3
16136 > if ${CFLAGS+:} false; then :
16137  
16138 < cat >>confdefs.h <<_ACEOF
16139 < #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
16138 >  case " $CFLAGS " in #(
16139 >  *" $flag "*) :
16140 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16141 >  (: CFLAGS already contains $flag) 2>&5
16142 >  ac_status=$?
16143 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16144 >  test $ac_status = 0; } ;; #(
16145 >  *) :
16146 >
16147 >     as_fn_append CFLAGS " $flag"
16148 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16149 >  (: CFLAGS="$CFLAGS") 2>&5
16150 >  ac_status=$?
16151 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16152 >  test $ac_status = 0; }
16153 >     ;;
16154 > esac
16155 >
16156 > else
16157 >
16158 >  CFLAGS=$flag
16159 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16160 >  (: CFLAGS="$CFLAGS") 2>&5
16161 >  ac_status=$?
16162 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16163 >  test $ac_status = 0; }
16164 >
16165 > fi
16166 >
16167 > else
16168 >  :
16169 > fi
16170 >
16171 > done
16172 >
16173 >
16174 >
16175 >
16176 >
16177 > for flag in -Wtype-limits; do
16178 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16179 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16180 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16181 > if eval \${$as_CACHEVAR+:} false; then :
16182 >  $as_echo_n "(cached) " >&6
16183 > else
16184 >
16185 >  ax_check_save_flags=$CFLAGS
16186 >  CFLAGS="$CFLAGS  $flag"
16187 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 > /* end confdefs.h.  */
16189 >
16190 > int
16191 > main ()
16192 > {
16193 >
16194 >  ;
16195 >  return 0;
16196 > }
16197   _ACEOF
16198 + if ac_fn_c_try_compile "$LINENO"; then :
16199 +  eval "$as_CACHEVAR=yes"
16200 + else
16201 +  eval "$as_CACHEVAR=no"
16202 + fi
16203 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 +  CFLAGS=$ax_check_save_flags
16205 + fi
16206 + eval ac_res=\$$as_CACHEVAR
16207 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16208 + $as_echo "$ac_res" >&6; }
16209 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16210 +
16211 + if ${CFLAGS+:} false; then :
16212 +
16213 +  case " $CFLAGS " in #(
16214 +  *" $flag "*) :
16215 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16216 +  (: CFLAGS already contains $flag) 2>&5
16217 +  ac_status=$?
16218 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16219 +  test $ac_status = 0; } ;; #(
16220 +  *) :
16221 +
16222 +     as_fn_append CFLAGS " $flag"
16223 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16224 +  (: CFLAGS="$CFLAGS") 2>&5
16225 +  ac_status=$?
16226 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16227 +  test $ac_status = 0; }
16228 +     ;;
16229 + esac
16230 +
16231 + else
16232 +
16233 +  CFLAGS=$flag
16234 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16235 +  (: CFLAGS="$CFLAGS") 2>&5
16236 +  ac_status=$?
16237 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16238 +  test $ac_status = 0; }
16239 +
16240 + fi
16241  
16242 + else
16243 +  :
16244 + fi
16245 +
16246 + done
16247 +
16248 +
16249 +
16250 +
16251 +
16252 + for flag in -Wundef; do
16253 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16254 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16255 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16256 + if eval \${$as_CACHEVAR+:} false; then :
16257 +  $as_echo_n "(cached) " >&6
16258 + else
16259 +
16260 +  ax_check_save_flags=$CFLAGS
16261 +  CFLAGS="$CFLAGS  $flag"
16262    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263   /* end confdefs.h.  */
16264 < #include <devpoll.h>
16264 >
16265   int
16266   main ()
16267   {
# Line 14149 | Line 16271 | main ()
16271   }
16272   _ACEOF
16273   if ac_fn_c_try_compile "$LINENO"; then :
16274 <  is_devpoll_mechanism_available="yes"
16274 >  eval "$as_CACHEVAR=yes"
16275   else
16276 <  is_devpoll_mechanism_available="no"
16276 >  eval "$as_CACHEVAR=no"
16277   fi
16278   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16279 >  CFLAGS=$ax_check_save_flags
16280 > fi
16281 > eval ac_res=\$$as_CACHEVAR
16282 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16283 > $as_echo "$ac_res" >&6; }
16284 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16285  
16286 < $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
16286 > if ${CFLAGS+:} false; then :
16287  
16288 <  fi
16288 >  case " $CFLAGS " in #(
16289 >  *" $flag "*) :
16290 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16291 >  (: CFLAGS already contains $flag) 2>&5
16292 >  ac_status=$?
16293 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16294 >  test $ac_status = 0; } ;; #(
16295 >  *) :
16296 >
16297 >     as_fn_append CFLAGS " $flag"
16298 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16299 >  (: CFLAGS="$CFLAGS") 2>&5
16300 >  ac_status=$?
16301 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16302 >  test $ac_status = 0; }
16303 >     ;;
16304 > esac
16305 >
16306 > else
16307 >
16308 >  CFLAGS=$flag
16309 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16310 >  (: CFLAGS="$CFLAGS") 2>&5
16311 >  ac_status=$?
16312 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16313 >  test $ac_status = 0; }
16314 >
16315 > fi
16316 >
16317 > else
16318 >  :
16319 > fi
16320 >
16321 > done
16322 >
16323 >
16324 >
16325 >
16326 >
16327 > for flag in -Wuninitialized; do
16328 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16329 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16330 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16331 > if eval \${$as_CACHEVAR+:} false; then :
16332 >  $as_echo_n "(cached) " >&6
16333 > else
16334 >
16335 >  ax_check_save_flags=$CFLAGS
16336 >  CFLAGS="$CFLAGS  $flag"
16337    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338   /* end confdefs.h.  */
16339 < #include <sys/devpoll.h>
16339 >
16340   int
16341   main ()
16342   {
# Line 14171 | Line 16346 | main ()
16346   }
16347   _ACEOF
16348   if ac_fn_c_try_compile "$LINENO"; then :
16349 <  is_devpoll_mechanism_available="yes"
16349 >  eval "$as_CACHEVAR=yes"
16350   else
16351 <  is_devpoll_mechanism_available="no"
16351 >  eval "$as_CACHEVAR=no"
16352   fi
16353   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16354 >  CFLAGS=$ax_check_save_flags
16355 > fi
16356 > eval ac_res=\$$as_CACHEVAR
16357 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16358 > $as_echo "$ac_res" >&6; }
16359 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16360  
16361 < $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
16361 > if ${CFLAGS+:} false; then :
16362  
16363 <  fi
16364 <      iopoll_mechanism_poll=4
16363 >  case " $CFLAGS " in #(
16364 >  *" $flag "*) :
16365 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16366 >  (: CFLAGS already contains $flag) 2>&5
16367 >  ac_status=$?
16368 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16369 >  test $ac_status = 0; } ;; #(
16370 >  *) :
16371  
16372 < cat >>confdefs.h <<_ACEOF
16373 < #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
16372 >     as_fn_append CFLAGS " $flag"
16373 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16374 >  (: CFLAGS="$CFLAGS") 2>&5
16375 >  ac_status=$?
16376 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16377 >  test $ac_status = 0; }
16378 >     ;;
16379 > esac
16380 >
16381 > else
16382 >
16383 >  CFLAGS=$flag
16384 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16385 >  (: CFLAGS="$CFLAGS") 2>&5
16386 >  ac_status=$?
16387 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16388 >  test $ac_status = 0; }
16389 >
16390 > fi
16391 >
16392 > else
16393 >  :
16394 > fi
16395 >
16396 > done
16397 >
16398 >
16399 >
16400 >
16401 >
16402 > for flag in -Wwrite-strings; do
16403 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16404 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16405 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16406 > if eval \${$as_CACHEVAR+:} false; then :
16407 >  $as_echo_n "(cached) " >&6
16408 > else
16409 >
16410 >  ax_check_save_flags=$CFLAGS
16411 >  CFLAGS="$CFLAGS  $flag"
16412 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 > /* end confdefs.h.  */
16414 >
16415 > int
16416 > main ()
16417 > {
16418 >
16419 >  ;
16420 >  return 0;
16421 > }
16422   _ACEOF
16423 + if ac_fn_c_try_compile "$LINENO"; then :
16424 +  eval "$as_CACHEVAR=yes"
16425 + else
16426 +  eval "$as_CACHEVAR=no"
16427 + fi
16428 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16429 +  CFLAGS=$ax_check_save_flags
16430 + fi
16431 + eval ac_res=\$$as_CACHEVAR
16432 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16433 + $as_echo "$ac_res" >&6; }
16434 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16435 +
16436 + if ${CFLAGS+:} false; then :
16437 +
16438 +  case " $CFLAGS " in #(
16439 +  *" $flag "*) :
16440 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16441 +  (: CFLAGS already contains $flag) 2>&5
16442 +  ac_status=$?
16443 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16444 +  test $ac_status = 0; } ;; #(
16445 +  *) :
16446 +
16447 +     as_fn_append CFLAGS " $flag"
16448 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16449 +  (: CFLAGS="$CFLAGS") 2>&5
16450 +  ac_status=$?
16451 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16452 +  test $ac_status = 0; }
16453 +     ;;
16454 + esac
16455 +
16456 + else
16457 +
16458 +  CFLAGS=$flag
16459 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16460 +  (: CFLAGS="$CFLAGS") 2>&5
16461 +  ac_status=$?
16462 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16463 +  test $ac_status = 0; }
16464 +
16465 + fi
16466 +
16467 + else
16468 +  :
16469 + fi
16470 +
16471 + done
16472 +
16473 +
16474 + fi
16475 +
16476 +
16477 + # Check whether --enable-openssl was given.
16478 + if test "${enable_openssl+set}" = set; then :
16479 +  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16480 + else
16481 +   cf_enable_openssl="auto"
16482 + fi
16483  
16484 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16485 + $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16486 + if test "$cf_enable_openssl" != "no"; then
16487 +  cf_openssl_basedir=""
16488 +  if test "$cf_enable_openssl" != "auto" &&
16489 +     test "$cf_enable_openssl" != "yes"; then
16490 +          cf_openssl_basedir="${cf_enable_openssl}"
16491 +  else
16492 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16493 +                /opt /opt/openssl /usr/local/openssl; do
16494 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
16495 +        cf_openssl_basedir="${dirs}"
16496 +        break
16497 +      fi
16498 +    done
16499 +    unset dirs
16500 +  fi
16501 +
16502 +    if test ! -z "$cf_openssl_basedir"; then
16503 +    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16504 +      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16505 +      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16506 +    else
16507 +                  cf_openssl_basedir=""
16508 +    fi
16509 +  else
16510 +                            if test -f "/usr/include/openssl/opensslv.h"; then
16511 +      cf_openssl_basedir="/usr"
16512 +    fi
16513 +  fi
16514 +
16515 +      if test ! -z "$cf_openssl_basedir"; then
16516 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16517 + $as_echo "$cf_openssl_basedir" >&6; }
16518 +    cf_enable_openssl="yes"
16519 +  else
16520 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16521 + $as_echo "not found. Please check your path." >&6; }
16522 +    cf_enable_openssl="no"
16523 +  fi
16524 +  unset cf_openssl_basedir
16525 + else
16526 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16527 + $as_echo "disabled" >&6; }
16528 + fi
16529 +
16530 + if test "$cf_enable_openssl" != "no"; then :
16531 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5
16532 + $as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; }
16533 +  if test "$cross_compiling" = yes; then :
16534 +  cf_openssl_version_ok=no
16535 + else
16536    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537   /* end confdefs.h.  */
14192 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14193   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14194 #define poll innocuous_poll
16538  
14196 /* System header to define __stub macros and hopefully few prototypes,
14197    which can conflict with char poll (); below.
14198    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14199    <limits.h> exists even on freestanding compilers.  */
16539  
16540 < #ifdef __STDC__
16541 < # include <limits.h>
16542 < #else
16543 < # include <assert.h>
16544 < #endif
16540 >    #include <openssl/opensslv.h>
16541 >    #include <stdlib.h>
16542 > int
16543 > main ()
16544 > {
16545 > exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL));
16546 >  ;
16547 >  return 0;
16548 > }
16549 > _ACEOF
16550 > if ac_fn_c_try_run "$LINENO"; then :
16551 >  cf_openssl_version_ok=yes
16552 > else
16553 >  cf_openssl_version_ok=no
16554 > fi
16555 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16556 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16557 > fi
16558  
16559 < #undef poll
16559 >
16560 >  if test "$cf_openssl_version_ok" = "yes"; then :
16561 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16562 > $as_echo "found" >&6; }
16563 >
16564 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16565 > $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16566 > if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16567 >  $as_echo_n "(cached) " >&6
16568 > else
16569 >  ac_check_lib_save_LIBS=$LIBS
16570 > LIBS="-lcrypto  $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
# Line 14212 | Line 16577 | _ACEOF
16577   #ifdef __cplusplus
16578   extern "C"
16579   #endif
16580 < char poll ();
14216 < /* The GNU C library defines this for functions which it implements
14217 <    to always fail with ENOSYS.  Some functions are actually named
14218 <    something starting with __ and the normal name is an alias.  */
14219 < #if defined __stub_poll || defined __stub___poll
14220 < choke me
14221 < #endif
14222 <
16580 > char RSA_free ();
16581   int
16582   main ()
16583   {
16584 < return poll ();
16584 > return RSA_free ();
16585    ;
16586    return 0;
16587   }
16588   _ACEOF
16589   if ac_fn_c_try_link "$LINENO"; then :
16590 <  is_poll_mechanism_available="yes"
16590 >  ac_cv_lib_crypto_RSA_free=yes
16591   else
16592 <  is_poll_mechanism_available="no"
16592 >  ac_cv_lib_crypto_RSA_free=no
16593   fi
16594   rm -f core conftest.err conftest.$ac_objext \
16595      conftest$ac_exeext conftest.$ac_ext
16596 <      iopoll_mechanism_select=5
16596 > LIBS=$ac_check_lib_save_LIBS
16597 > fi
16598 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16599 > $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16600 > if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16601 >  cat >>confdefs.h <<_ACEOF
16602 > #define HAVE_LIBCRYPTO 1
16603 > _ACEOF
16604  
16605 < cat >>confdefs.h <<_ACEOF
16606 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
16605 >  LIBS="-lcrypto $LIBS"
16606 >
16607 > fi
16608 >
16609 >    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16610 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16611 > $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16612 > if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16613 >  $as_echo_n "(cached) " >&6
16614 > else
16615 >  ac_check_lib_save_LIBS=$LIBS
16616 > LIBS="-lssl  $LIBS"
16617 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 > /* end confdefs.h.  */
16619 >
16620 > /* Override any GCC internal prototype to avoid an error.
16621 >   Use char because int might match the return type of a GCC
16622 >   builtin and then its argument prototype would still apply.  */
16623 > #ifdef __cplusplus
16624 > extern "C"
16625 > #endif
16626 > char SSL_connect ();
16627 > int
16628 > main ()
16629 > {
16630 > return SSL_connect ();
16631 >  ;
16632 >  return 0;
16633 > }
16634 > _ACEOF
16635 > if ac_fn_c_try_link "$LINENO"; then :
16636 >  ac_cv_lib_ssl_SSL_connect=yes
16637 > else
16638 >  ac_cv_lib_ssl_SSL_connect=no
16639 > fi
16640 > rm -f core conftest.err conftest.$ac_objext \
16641 >    conftest$ac_exeext conftest.$ac_ext
16642 > LIBS=$ac_check_lib_save_LIBS
16643 > fi
16644 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16645 > $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16646 > if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16647 >  cat >>confdefs.h <<_ACEOF
16648 > #define HAVE_LIBSSL 1
16649   _ACEOF
16650  
16651 +  LIBS="-lssl $LIBS"
16652 +
16653 + fi
16654 +
16655 + fi
16656 +
16657 + else
16658 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16659 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16660 +    cf_enable_openssl="no"
16661 + fi
16662 + fi
16663 +
16664 +
16665 + # Check whether --enable-gnutls was given.
16666 + if test "${enable_gnutls+set}" = set; then :
16667 +  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16668 + else
16669 +   cf_enable_gnutls="auto"
16670 + fi
16671 +
16672 +
16673 + if test "$cf_enable_openssl" != "auto" &&
16674 +   test "$cf_enable_openssl" != "yes"; then
16675 +  if test "$cf_enable_gnutls" != "no"; then
16676 +
16677 +    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16678 + if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16679 +
16680 +      if test "$cross_compiling" = yes; then :
16681 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16682 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16683 + as_fn_error $? "cannot run test program while cross compiling
16684 + See \`config.log' for more details" "$LINENO" 5; }
16685 + else
16686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687   /* end confdefs.h.  */
14246 /* Define select to an innocuous variant, in case <limits.h> declares select.
14247   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14248 #define select innocuous_select
16688  
14250 /* System header to define __stub macros and hopefully few prototypes,
14251    which can conflict with char select (); below.
14252    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14253    <limits.h> exists even on freestanding compilers.  */
16689  
16690 < #ifdef __STDC__
16691 < # include <limits.h>
16692 < #else
16693 < # include <assert.h>
16694 < #endif
16690 >          #include <gnutls/gnutls.h>
16691 >          #include <stdlib.h>
16692 > int
16693 > main ()
16694 > {
16695  
16696 < #undef select
16696 >          exit(!(GNUTLS_VERSION_NUMBER >= 0x030308));
16697 >  ;
16698 >  return 0;
16699 > }
16700 > _ACEOF
16701 > if ac_fn_c_try_run "$LINENO"; then :
16702 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16703 > $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16704 > if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16705 >  $as_echo_n "(cached) " >&6
16706 > else
16707 >  ac_check_lib_save_LIBS=$LIBS
16708 > LIBS="-lgnutls  $LIBS"
16709 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 > /* end confdefs.h.  */
16711  
16712   /* Override any GCC internal prototype to avoid an error.
16713     Use char because int might match the return type of a GCC
# Line 14266 | Line 16715 | _ACEOF
16715   #ifdef __cplusplus
16716   extern "C"
16717   #endif
16718 < char select ();
14270 < /* The GNU C library defines this for functions which it implements
14271 <    to always fail with ENOSYS.  Some functions are actually named
14272 <    something starting with __ and the normal name is an alias.  */
14273 < #if defined __stub_select || defined __stub___select
14274 < choke me
14275 < #endif
14276 <
16718 > char gnutls_init ();
16719   int
16720   main ()
16721   {
16722 < return select ();
16722 > return gnutls_init ();
16723    ;
16724    return 0;
16725   }
16726   _ACEOF
16727   if ac_fn_c_try_link "$LINENO"; then :
16728 <  is_select_mechanism_available="yes"
16728 >  ac_cv_lib_gnutls_gnutls_init=yes
16729   else
16730 <  is_select_mechanism_available="no"
16730 >  ac_cv_lib_gnutls_gnutls_init=no
16731   fi
16732   rm -f core conftest.err conftest.$ac_objext \
16733      conftest$ac_exeext conftest.$ac_ext
16734 <      optimal_iopoll_mechanism="none"
16735 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
16736 <    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
16737 <    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
16738 <      optimal_iopoll_mechanism="$mechanism"
16739 <      break
16740 <    fi
14299 <  done
14300 <      if test "$desired_iopoll_mechanism" = "none" ; then
14301 <    if test "$optimal_iopoll_mechanism" = "none" ; then
14302 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14303 < $as_echo "none" >&6; }
14304 <      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14305 <    else
14306 <      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14307 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14308 < $as_echo "$selected_iopoll_mechanism" >&6; }
14309 <    fi
14310 <  else
14311 <    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14312 <    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14313 <      selected_iopoll_mechanism=$desired_iopoll_mechanism
14314 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14315 < $as_echo "$selected_iopoll_mechanism" >&6; }
14316 <    else
14317 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14318 < $as_echo "none" >&6; }
14319 <      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14320 <    fi
14321 <  fi
14322 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14323 <
14324 < cat >>confdefs.h <<_ACEOF
14325 < #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
16734 > LIBS=$ac_check_lib_save_LIBS
16735 > fi
16736 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16737 > $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16738 > if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16739 >  cat >>confdefs.h <<_ACEOF
16740 > #define HAVE_LIBGNUTLS 1
16741   _ACEOF
16742  
16743 +  LIBS="-lgnutls $LIBS"
16744  
14329
14330  # Check whether --enable-halfops was given.
14331 if test "${enable_halfops+set}" = set; then :
14332  enableval=$enable_halfops; halfops="$enableval"
14333 else
14334  halfops="no"
16745   fi
16746  
16747 <  if test "$halfops" = "yes" ; then
16747 > fi
16748 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16749 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16750 > fi
16751  
16752 < $as_echo "#define HALFOPS 1" >>confdefs.h
16752 > fi
16753  
14341  fi
16754  
16755  
16756 <  # Check whether --enable-debugging was given.
16757 < if test "${enable_debugging+set}" = set; then :
16758 <  enableval=$enable_debugging; debugging="$enableval"
16756 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.3.8 and above" >&5
16757 > $as_echo_n "checking for GnuTLS 3.3.8 and above... " >&6; }
16758 >    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16759 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16760 > $as_echo "found" >&6; }
16761   else
16762 <  debugging="no"
16762 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16763 > $as_echo "no - GnuTLS support disabled" >&6; }
16764   fi
16765  
14351  if test "$debugging" = "yes" ; then
14352    CFLAGS="-Wall -g -O0"
16766    fi
16767 + fi
16768  
16769  
16770 <  # Check whether --enable-warnings was given.
16771 < if test "${enable_warnings+set}" = set; then :
16772 <  enableval=$enable_warnings; warnings="$enableval"
16770 >  # Check whether --enable-libgeoip was given.
16771 > if test "${enable_libgeoip+set}" = set; then :
16772 >  enableval=$enable_libgeoip;
16773   else
16774 <  warnings="no"
16775 < fi
16774 >  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
16775 > if test "x$ac_cv_header_GeoIP_h" = xyes; then :
16776 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
16777 > $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
16778 > if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16779 >  $as_echo_n "(cached) " >&6
16780 > else
16781 >  ac_func_search_save_LIBS=$LIBS
16782 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 > /* end confdefs.h.  */
16784  
16785 <  if test "$warnings" = "yes" ; then
16786 <    CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
16785 > /* Override any GCC internal prototype to avoid an error.
16786 >   Use char because int might match the return type of a GCC
16787 >   builtin and then its argument prototype would still apply.  */
16788 > #ifdef __cplusplus
16789 > extern "C"
16790 > #endif
16791 > char GeoIP_id_by_ipnum_v6_gl ();
16792 > int
16793 > main ()
16794 > {
16795 > return GeoIP_id_by_ipnum_v6_gl ();
16796 >  ;
16797 >  return 0;
16798 > }
16799 > _ACEOF
16800 > for ac_lib in '' GeoIP; do
16801 >  if test -z "$ac_lib"; then
16802 >    ac_res="none required"
16803 >  else
16804 >    ac_res=-l$ac_lib
16805 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16806    fi
16807 +  if ac_fn_c_try_link "$LINENO"; then :
16808 +  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
16809 + fi
16810 + rm -f core conftest.err conftest.$ac_objext \
16811 +    conftest$ac_exeext
16812 +  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16813 +  break
16814 + fi
16815 + done
16816 + if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16817 +
16818 + else
16819 +  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
16820 + fi
16821 + rm conftest.$ac_ext
16822 + LIBS=$ac_func_search_save_LIBS
16823 + fi
16824 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
16825 + $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
16826 + ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
16827 + if test "$ac_res" != no; then :
16828 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16829 +
16830 + $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
16831 +
16832 + fi
16833 +
16834 + fi
16835 +
16836 +
16837 + fi
16838 +
16839  
16840  
16841  
# Line 14451 | Line 16924 | _ACEOF
16924    test "$exec_prefix_NONE" && exec_prefix=NONE
16925  
16926  
16927 < ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
16927 > 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"
16928  
16929  
16930   cat >confcache <<\_ACEOF
# Line 14617 | Line 17090 | LT_CONFIG_H=config.h
17090  
17091  
17092  
14620 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14621  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14623 fi
17093  
17094   : "${CONFIG_STATUS=./config.status}"
17095   ac_write_fail=0
# Line 15018 | Line 17487 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
17487   # report actual input values of CONFIG_FILES etc. instead of their
17488   # values after options handling.
17489   ac_log="
17490 < This file was extended by ircd-hybrid $as_me TRUNK, which was
17490 > This file was extended by ircd-hybrid $as_me 8.2.22, which was
17491   generated by GNU Autoconf 2.69.  Invocation command line was
17492  
17493    CONFIG_FILES    = $CONFIG_FILES
# Line 15084 | Line 17553 | _ACEOF
17553   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17554   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17555   ac_cs_version="\\
17556 < ircd-hybrid config.status TRUNK
17556 > ircd-hybrid config.status 8.2.22
17557   configured by $0, generated by GNU Autoconf 2.69,
17558    with options \\"\$ac_cs_config\\"
17559  
# Line 15219 | Line 17688 | enable_static='`$ECHO "$enable_static" |
17688   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17689   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17690   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17691 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17692   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17693   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17694   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 15268 | Line 17738 | compiler='`$ECHO "$compiler" | $SED "$de
17738   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17739   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17740   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17741 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17742   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17743   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"`'
17744 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17745   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17746   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17747 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17748   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17749   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17750   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 15336 | Line 17809 | finish_cmds='`$ECHO "$finish_cmds" | $SE
17809   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17810   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17811   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17812 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17812 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17813 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17814   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17815   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17816   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 15387 | Line 17861 | CFLAGS \
17861   compiler \
17862   lt_cv_sys_global_symbol_pipe \
17863   lt_cv_sys_global_symbol_to_cdecl \
17864 + lt_cv_sys_global_symbol_to_import \
17865   lt_cv_sys_global_symbol_to_c_name_address \
17866   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17867 + lt_cv_nm_interface \
17868   nm_file_list_spec \
17869 + lt_cv_truncate_bin \
17870   lt_prog_compiler_no_builtin_flag \
17871   lt_prog_compiler_pic \
17872   lt_prog_compiler_wl \
# Line 15424 | Line 17901 | old_striplib \
17901   striplib; do
17902      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17903      *[\\\\\\\`\\"\\\$]*)
17904 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17904 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17905        ;;
17906      *)
17907        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15451 | Line 17928 | postinstall_cmds \
17928   postuninstall_cmds \
17929   finish_cmds \
17930   sys_lib_search_path_spec \
17931 < sys_lib_dlsearch_path_spec; do
17931 > configure_time_dlsearch_path \
17932 > configure_time_lt_sys_library_path; do
17933      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17934      *[\\\\\\\`\\"\\\$]*)
17935 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17935 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17936        ;;
17937      *)
17938        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15463 | Line 17941 | sys_lib_dlsearch_path_spec; do
17941   done
17942  
17943   ac_aux_dir='$ac_aux_dir'
15466 xsi_shell='$xsi_shell'
15467 lt_shell_append='$lt_shell_append'
17944  
17945 < # See if we are running on zsh, and set the options which allow our
17945 > # See if we are running on zsh, and set the options that allow our
17946   # commands through without removal of \ escapes INIT.
17947 < if test -n "\${ZSH_VERSION+set}" ; then
17947 > if test -n "\${ZSH_VERSION+set}"; then
17948     setopt NO_GLOB_SUBST
17949   fi
17950  
17951  
17952      PACKAGE='$PACKAGE'
17953      VERSION='$VERSION'
15478    TIMESTAMP='$TIMESTAMP'
17954      RM='$RM'
17955      ofile='$ofile'
17956  
# Line 15498 | Line 17973 | do
17973      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
17974      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
17975      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
17976 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
17977      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17978      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
17979      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
# Line 16148 | Line 18624 | $as_echo X"$mf" |
18624      DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18625      test -z "$DEPDIR" && continue
18626      am__include=`sed -n 's/^am__include = //p' < "$mf"`
18627 <    test -z "am__include" && continue
18627 >    test -z "$am__include" && continue
18628      am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18629      # Find all dependency output files, they are included files with
18630      # $(DEPDIR) in their names.  We invoke sed twice because it is the
# Line 16191 | Line 18667 | $as_echo X"$file" |
18667   ;;
18668      "libtool":C)
18669  
18670 <    # See if we are running on zsh, and set the options which allow our
18670 >    # See if we are running on zsh, and set the options that allow our
18671      # commands through without removal of \ escapes.
18672 <    if test -n "${ZSH_VERSION+set}" ; then
18672 >    if test -n "${ZSH_VERSION+set}"; then
18673        setopt NO_GLOB_SUBST
18674      fi
18675  
18676 <    cfgfile="${ofile}T"
18676 >    cfgfile=${ofile}T
18677      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18678      $RM "$cfgfile"
18679  
18680      cat <<_LT_EOF >> "$cfgfile"
18681   #! $SHELL
18682 <
16207 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16208 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18682 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18683   # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18684   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18685 +
18686 + # Provide generalized library-building support services.
18687 + # Written by Gordon Matzigkeit, 1996
18688 +
18689 + # Copyright (C) 2014 Free Software Foundation, Inc.
18690 + # This is free software; see the source for copying conditions.  There is NO
18691 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18692 +
18693 + # GNU Libtool is free software; you can redistribute it and/or modify
18694 + # it under the terms of the GNU General Public License as published by
18695 + # the Free Software Foundation; either version 2 of of the License, or
18696 + # (at your option) any later version.
18697   #
18698 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18699 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18700 < #                 Foundation, Inc.
18701 < #   Written by Gordon Matzigkeit, 1996
16216 < #
16217 < #   This file is part of GNU Libtool.
16218 < #
16219 < # GNU Libtool is free software; you can redistribute it and/or
16220 < # modify it under the terms of the GNU General Public License as
16221 < # published by the Free Software Foundation; either version 2 of
16222 < # the License, or (at your option) any later version.
16223 < #
16224 < # As a special exception to the GNU General Public License,
16225 < # if you distribute this file as part of a program or library that
16226 < # is built using GNU Libtool, you may include this file under the
16227 < # same distribution terms that you use for the rest of that program.
18698 > # As a special exception to the GNU General Public License, if you
18699 > # distribute this file as part of a program or library that is built
18700 > # using GNU Libtool, you may include this file under the  same
18701 > # distribution terms that you use for the rest of that program.
18702   #
18703 < # GNU Libtool is distributed in the hope that it will be useful,
18704 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18703 > # GNU Libtool is distributed in the hope that it will be useful, but
18704 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18705   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18706   # GNU General Public License for more details.
18707   #
18708   # You should have received a copy of the GNU General Public License
18709 < # along with GNU Libtool; see the file COPYING.  If not, a copy
16236 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16237 < # obtained by writing to the Free Software Foundation, Inc.,
16238 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18709 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18710  
18711  
18712   # The names of the tagged configurations supported by this script.
18713 < available_tags=""
18713 > available_tags=''
18714 >
18715 > # Configured defaults for sys_lib_dlsearch_path munging.
18716 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18717  
18718   # ### BEGIN LIBTOOL CONFIG
18719  
# Line 16259 | Line 18733 | pic_mode=$pic_mode
18733   # Whether or not to optimize for fast installation.
18734   fast_install=$enable_fast_install
18735  
18736 + # Shared archive member basename,for filename based shared library versioning on AIX.
18737 + shared_archive_member_spec=$shared_archive_member_spec
18738 +
18739   # Shell to use when invoking shell scripts.
18740   SHELL=$lt_SHELL
18741  
# Line 16376 | Line 18853 | global_symbol_pipe=$lt_lt_cv_sys_global_
18853   # Transform the output of nm in a proper C declaration.
18854   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18855  
18856 + # Transform the output of nm into a list of symbols to manually relocate.
18857 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18858 +
18859   # Transform the output of nm in a C name address pair.
18860   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18861  
18862   # Transform the output of nm in a C name address pair when lib prefix is needed.
18863   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18864  
18865 + # The name lister interface.
18866 + nm_interface=$lt_lt_cv_nm_interface
18867 +
18868   # Specify filename containing input files for \$NM.
18869   nm_file_list_spec=$lt_nm_file_list_spec
18870  
18871 < # The root where to search for dependent libraries,and in which our libraries should be installed.
18871 > # The root where to search for dependent libraries,and where our libraries should be installed.
18872   lt_sysroot=$lt_sysroot
18873  
18874 + # Command to truncate a binary pipe.
18875 + lt_truncate_bin=$lt_lt_cv_truncate_bin
18876 +
18877   # The name of the directory that contains temporary libtool files.
18878   objdir=$objdir
18879  
# Line 16478 | Line 18964 | hardcode_into_libs=$hardcode_into_libs
18964   # Compile-time system search path for libraries.
18965   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18966  
18967 < # Run-time system search path for libraries.
18968 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18967 > # Detected run-time system search path for libraries.
18968 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18969 >
18970 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18971 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18972  
18973   # Whether dlopen is supported.
18974   dlopen_support=$enable_dlopen
# Line 16572 | Line 19061 | hardcode_libdir_flag_spec=$lt_hardcode_l
19061   # Whether we need a single "-rpath" flag with a separated argument.
19062   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19063  
19064 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19064 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19065   # DIR into the resulting binary.
19066   hardcode_direct=$hardcode_direct
19067  
19068 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19068 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19069   # DIR into the resulting binary and the resulting library dependency is
19070 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19070 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19071   # library is relocated.
19072   hardcode_direct_absolute=$hardcode_direct_absolute
19073  
# Line 16630 | Line 19119 | hardcode_action=$hardcode_action
19119  
19120   _LT_EOF
19121  
19122 +    cat <<'_LT_EOF' >> "$cfgfile"
19123 +
19124 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19125 +
19126 + # func_munge_path_list VARIABLE PATH
19127 + # -----------------------------------
19128 + # VARIABLE is name of variable containing _space_ separated list of
19129 + # directories to be munged by the contents of PATH, which is string
19130 + # having a format:
19131 + # "DIR[:DIR]:"
19132 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19133 + # ":DIR[:DIR]"
19134 + #       string "DIR[ DIR]" will be appended to VARIABLE
19135 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19136 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19137 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19138 + # "DIR[:DIR]"
19139 + #       VARIABLE will be replaced by "DIR[ DIR]"
19140 + func_munge_path_list ()
19141 + {
19142 +    case x$2 in
19143 +    x)
19144 +        ;;
19145 +    *:)
19146 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19147 +        ;;
19148 +    x:*)
19149 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19150 +        ;;
19151 +    *::*)
19152 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19153 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19154 +        ;;
19155 +    *)
19156 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19157 +        ;;
19158 +    esac
19159 + }
19160 +
19161 +
19162 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19163 + func_cc_basename ()
19164 + {
19165 +    for cc_temp in $*""; do
19166 +      case $cc_temp in
19167 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19168 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19169 +        \-*) ;;
19170 +        *) break;;
19171 +      esac
19172 +    done
19173 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19174 + }
19175 +
19176 +
19177 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19178 +
19179 + _LT_EOF
19180 +
19181    case $host_os in
19182    aix3*)
19183      cat <<\_LT_EOF >> "$cfgfile"
19184   # AIX sometimes has problems with the GCC collect2 program.  For some
19185   # reason, if we set the COLLECT_NAMES environment variable, the problems
19186   # vanish in a puff of smoke.
19187 < if test "X${COLLECT_NAMES+set}" != Xset; then
19187 > if test set != "${COLLECT_NAMES+set}"; then
19188    COLLECT_NAMES=
19189    export COLLECT_NAMES
19190   fi
# Line 16645 | Line 19193 | _LT_EOF
19193    esac
19194  
19195  
19196 < ltmain="$ac_aux_dir/ltmain.sh"
19196 > ltmain=$ac_aux_dir/ltmain.sh
19197  
19198  
19199    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 16655 | Line 19203 | ltmain="$ac_aux_dir/ltmain.sh"
19203    sed '$q' "$ltmain" >> "$cfgfile" \
19204       || (rm -f "$cfgfile"; exit 1)
19205  
16658  if test x"$xsi_shell" = xyes; then
16659  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16660 func_dirname ()\
16661 {\
16662 \    case ${1} in\
16663 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16664 \      *  ) func_dirname_result="${3}" ;;\
16665 \    esac\
16666 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16667  && mv -f "$cfgfile.tmp" "$cfgfile" \
16668    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16669 test 0 -eq $? || _lt_function_replace_fail=:
16670
16671
16672  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16673 func_basename ()\
16674 {\
16675 \    func_basename_result="${1##*/}"\
16676 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16677  && mv -f "$cfgfile.tmp" "$cfgfile" \
16678    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16679 test 0 -eq $? || _lt_function_replace_fail=:
16680
16681
16682  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16683 func_dirname_and_basename ()\
16684 {\
16685 \    case ${1} in\
16686 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16687 \      *  ) func_dirname_result="${3}" ;;\
16688 \    esac\
16689 \    func_basename_result="${1##*/}"\
16690 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16691  && mv -f "$cfgfile.tmp" "$cfgfile" \
16692    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16693 test 0 -eq $? || _lt_function_replace_fail=:
16694
16695
16696  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16697 func_stripname ()\
16698 {\
16699 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16700 \    # positional parameters, so assign one to ordinary parameter first.\
16701 \    func_stripname_result=${3}\
16702 \    func_stripname_result=${func_stripname_result#"${1}"}\
16703 \    func_stripname_result=${func_stripname_result%"${2}"}\
16704 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16705  && mv -f "$cfgfile.tmp" "$cfgfile" \
16706    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16707 test 0 -eq $? || _lt_function_replace_fail=:
16708
16709
16710  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16711 func_split_long_opt ()\
16712 {\
16713 \    func_split_long_opt_name=${1%%=*}\
16714 \    func_split_long_opt_arg=${1#*=}\
16715 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16716  && mv -f "$cfgfile.tmp" "$cfgfile" \
16717    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16718 test 0 -eq $? || _lt_function_replace_fail=:
16719
16720
16721  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16722 func_split_short_opt ()\
16723 {\
16724 \    func_split_short_opt_arg=${1#??}\
16725 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16726 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16727  && mv -f "$cfgfile.tmp" "$cfgfile" \
16728    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16729 test 0 -eq $? || _lt_function_replace_fail=:
16730
16731
16732  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16733 func_lo2o ()\
16734 {\
16735 \    case ${1} in\
16736 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16737 \      *)    func_lo2o_result=${1} ;;\
16738 \    esac\
16739 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16740  && mv -f "$cfgfile.tmp" "$cfgfile" \
16741    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16742 test 0 -eq $? || _lt_function_replace_fail=:
16743
16744
16745  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16746 func_xform ()\
16747 {\
16748    func_xform_result=${1%.*}.lo\
16749 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16750  && mv -f "$cfgfile.tmp" "$cfgfile" \
16751    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16752 test 0 -eq $? || _lt_function_replace_fail=:
16753
16754
16755  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16756 func_arith ()\
16757 {\
16758    func_arith_result=$(( $* ))\
16759 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16760  && mv -f "$cfgfile.tmp" "$cfgfile" \
16761    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16762 test 0 -eq $? || _lt_function_replace_fail=:
16763
16764
16765  sed -e '/^func_len ()$/,/^} # func_len /c\
16766 func_len ()\
16767 {\
16768    func_len_result=${#1}\
16769 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16770  && mv -f "$cfgfile.tmp" "$cfgfile" \
16771    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16772 test 0 -eq $? || _lt_function_replace_fail=:
16773
16774 fi
16775
16776 if test x"$lt_shell_append" = xyes; then
16777  sed -e '/^func_append ()$/,/^} # func_append /c\
16778 func_append ()\
16779 {\
16780    eval "${1}+=\\${2}"\
16781 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16782  && mv -f "$cfgfile.tmp" "$cfgfile" \
16783    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16784 test 0 -eq $? || _lt_function_replace_fail=:
16785
16786
16787  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16788 func_append_quoted ()\
16789 {\
16790 \    func_quote_for_eval "${2}"\
16791 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16792 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16793  && mv -f "$cfgfile.tmp" "$cfgfile" \
16794    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16795 test 0 -eq $? || _lt_function_replace_fail=:
16796
16797
16798  # Save a `func_append' function call where possible by direct use of '+='
16799  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16800    && mv -f "$cfgfile.tmp" "$cfgfile" \
16801      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16802  test 0 -eq $? || _lt_function_replace_fail=:
16803 else
16804  # Save a `func_append' function call even when '+=' is not available
16805  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16806    && mv -f "$cfgfile.tmp" "$cfgfile" \
16807      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16808  test 0 -eq $? || _lt_function_replace_fail=:
16809 fi
16810
16811 if test x"$_lt_function_replace_fail" = x":"; then
16812  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16813 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16814 fi
16815
16816
19206     mv -f "$cfgfile" "$ofile" ||
19207      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19208    chmod +x "$ofile"
# Line 16857 | Line 19246 | if test -n "$ac_unrecognized_opts" && te
19246   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19247   fi
19248  
19249 +
19250 + echo "###############################################################################"
19251 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19252 + echo
19253 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19254 + echo "   ./configure --prefix=DIRECTORY"
19255 + echo "###############################################################################"

Diff Legend

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