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

Comparing ircd-hybrid/trunk/configure (file contents):
Revision 2318 by michael, Fri Jun 21 17:47:52 2013 UTC vs.
Revision 9259 by michael, Sun Feb 2 19:22:00 2020 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 2228 2013-06-13 19:46:30Z michael .
2 > # From configure.ac Id: configure.ac 9184 2020-01-20 16:51:45Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5   #
# Line 648 | Line 648 | DATADIR
648   LIBDIR
649   SYSCONFDIR
650   PREFIX
651 – ENABLE_SSL_FALSE
652 – ENABLE_SSL_TRUE
651   LTDLOPEN
652   LT_CONFIG_H
653   CONVENIENCE_LTDL_FALSE
654   CONVENIENCE_LTDL_TRUE
655   INSTALL_LTDL_FALSE
656   INSTALL_LTDL_TRUE
657 < ARGZ_H
657 > LT_ARGZ_H
658   sys_symbol_underscore
659   LIBADD_DL
660   LT_DLPREOPEN
# Line 669 | Line 667 | LTDLINCL
667   LTDLDEPS
668   LIBLTDL
669   CPP
670 + LT_SYS_LIBRARY_PATH
671   OTOOL64
672   OTOOL
673   LIPO
# Line 710 | Line 709 | am__nodep
709   AMDEPBACKSLASH
710   AMDEP_FALSE
711   AMDEP_TRUE
713 – am__quote
712   am__include
713   DEPDIR
714   OBJEXT
# Line 769 | Line 767 | infodir
767   docdir
768   oldincludedir
769   includedir
770 + runstatedir
771   localstatedir
772   sharedstatedir
773   sysconfdir
# Line 787 | Line 786 | PACKAGE_VERSION
786   PACKAGE_TARNAME
787   PACKAGE_NAME
788   PATH_SEPARATOR
789 < SHELL'
789 > SHELL
790 > am__quote'
791   ac_subst_files=''
792   ac_user_opts='
793   enable_option_checking
# Line 798 | Line 798 | enable_static
798   enable_shared
799   with_pic
800   enable_fast_install
801 + with_aix_soname
802   with_gnu_ld
803   with_sysroot
804   enable_libtool_lock
# Line 805 | Line 806 | with_included_ltdl
806   with_ltdl_include
807   with_ltdl_lib
808   enable_ltdl_install
808 – enable_libGeoIP
809 – enable_openssl
810 – enable_assert
809   enable_kqueue
810   enable_epoll
811   enable_devpoll
812   enable_poll
813 < enable_select
816 < enable_halfops
813 > enable_assert
814   enable_debugging
815   enable_warnings
816 + enable_efence
817 + with_tls
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 866 | Line 866 | datadir='${datarootdir}'
866   sysconfdir='${prefix}/etc'
867   sharedstatedir='${prefix}/com'
868   localstatedir='${prefix}/var'
869 + runstatedir='${localstatedir}/run'
870   includedir='${prefix}/include'
871   oldincludedir='/usr/include'
872   docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
# Line 1118 | Line 1119 | do
1119    | -silent | --silent | --silen | --sile | --sil)
1120      silent=yes ;;
1121  
1122 +  -runstatedir | --runstatedir | --runstatedi | --runstated \
1123 +  | --runstate | --runstat | --runsta | --runst | --runs \
1124 +  | --run | --ru | --r)
1125 +    ac_prev=runstatedir ;;
1126 +  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1127 +  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1128 +  | --run=* | --ru=* | --r=*)
1129 +    runstatedir=$ac_optarg ;;
1130 +
1131    -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132      ac_prev=sbindir ;;
1133    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
# Line 1255 | Line 1265 | fi
1265   for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266                  datadir sysconfdir sharedstatedir localstatedir includedir \
1267                  oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 <                libdir localedir mandir
1268 >                libdir localedir mandir runstatedir
1269   do
1270    eval ac_val=\$$ac_var
1271    # Remove trailing slashes.
# Line 1408 | Line 1418 | Fine tuning of the installation director
1418    --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1419    --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1420    --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1421 +  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1422    --libdir=DIR            object code libraries [EPREFIX/lib]
1423    --includedir=DIR        C header files [PREFIX/include]
1424    --oldincludedir=DIR     C header files for non-gcc [/usr/include]
# Line 1461 | Line 1472 | Optional Features:
1472                            optimize for fast installation [default=yes]
1473    --disable-libtool-lock  avoid locking (might break parallel builds)
1474    --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
1475    --enable-kqueue         Force kqueue usage.
1476    --enable-epoll          Force epoll usage.
1477    --enable-devpoll        Force devpoll usage.
1478    --enable-poll           Force poll usage.
1479 <  --enable-select         Force select usage.
1473 <  --enable-halfops        Enable halfops support.
1479 >  --enable-assert         Enable assert() statements
1480    --enable-debugging      Enable debugging.
1481    --enable-warnings       Enable compiler warnings.
1482 +  --enable-efence         Enable linking with Electric Fence 'efence' memory
1483 +                          debugger library.
1484  
1485   Optional Packages:
1486    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1489                            both]
1490 +  --with-aix-soname=aix|svr4|both
1491 +                          shared library versioning (aka "SONAME") variant to
1492 +                          provide on AIX, [default=aix].
1493    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494 <  --with-sysroot=DIR Search for dependent libraries within DIR
1495 <                        (or the compiler's sysroot if not specified).
1494 >  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1495 >                          compiler's sysroot if not specified).
1496    --with-included-ltdl    use the GNU ltdl sources included here
1497    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1498    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1499 +  --with-tls              Enables TLS with specified library. Options:
1500 +                          'openssl', 'wolfssl', 'gnutls' or 'none'
1501  
1502   Some influential environment variables:
1503    CC          C compiler command
# Line 1500 | Line 1513 | Some influential environment variables:
1513    YFLAGS      The list of arguments that will be passed by default to $YACC.
1514                This script will default YFLAGS to the empty string to avoid a
1515                default value of `-d' given by some make applications.
1516 +  LT_SYS_LIBRARY_PATH
1517 +              User-defined run-time library search path.
1518    CPP         C preprocessor
1519  
1520   Use these variables to override the choices made by `configure' or to help
# Line 1943 | Line 1958 | $as_echo "$ac_res" >&6; }
1958  
1959   } # ac_fn_c_check_type
1960  
1946 – # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1947 – # --------------------------------------------
1948 – # Tries to find the compile-time value of EXPR in a program that includes
1949 – # INCLUDES, setting VAR accordingly. Returns whether the value could be
1950 – # computed
1951 – ac_fn_c_compute_int ()
1952 – {
1953 –  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 –  if test "$cross_compiling" = yes; then
1955 –    # Depending upon the size, compute the lo and hi bounds.
1956 – cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 – /* end confdefs.h.  */
1958 – $4
1959 – int
1960 – main ()
1961 – {
1962 – static int test_array [1 - 2 * !(($2) >= 0)];
1963 – test_array [0] = 0;
1964 – return test_array [0];
1965 –
1966 –  ;
1967 –  return 0;
1968 – }
1969 – _ACEOF
1970 – if ac_fn_c_try_compile "$LINENO"; then :
1971 –  ac_lo=0 ac_mid=0
1972 –  while :; do
1973 –    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 – /* end confdefs.h.  */
1975 – $4
1976 – int
1977 – main ()
1978 – {
1979 – static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1980 – test_array [0] = 0;
1981 – return test_array [0];
1982 –
1983 –  ;
1984 –  return 0;
1985 – }
1986 – _ACEOF
1987 – if ac_fn_c_try_compile "$LINENO"; then :
1988 –  ac_hi=$ac_mid; break
1989 – else
1990 –  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1991 –                        if test $ac_lo -le $ac_mid; then
1992 –                          ac_lo= ac_hi=
1993 –                          break
1994 –                        fi
1995 –                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1996 – fi
1997 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 –  done
1999 – else
2000 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 – /* end confdefs.h.  */
2002 – $4
2003 – int
2004 – main ()
2005 – {
2006 – static int test_array [1 - 2 * !(($2) < 0)];
2007 – test_array [0] = 0;
2008 – return test_array [0];
2009 –
2010 –  ;
2011 –  return 0;
2012 – }
2013 – _ACEOF
2014 – if ac_fn_c_try_compile "$LINENO"; then :
2015 –  ac_hi=-1 ac_mid=-1
2016 –  while :; do
2017 –    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 – /* end confdefs.h.  */
2019 – $4
2020 – int
2021 – main ()
2022 – {
2023 – static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2024 – test_array [0] = 0;
2025 – return test_array [0];
2026 –
2027 –  ;
2028 –  return 0;
2029 – }
2030 – _ACEOF
2031 – if ac_fn_c_try_compile "$LINENO"; then :
2032 –  ac_lo=$ac_mid; break
2033 – else
2034 –  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2035 –                        if test $ac_mid -le $ac_hi; then
2036 –                          ac_lo= ac_hi=
2037 –                          break
2038 –                        fi
2039 –                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2040 – fi
2041 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 –  done
2043 – else
2044 –  ac_lo= ac_hi=
2045 – fi
2046 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 – fi
2048 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 – # Binary search between lo and hi bounds.
2050 – while test "x$ac_lo" != "x$ac_hi"; do
2051 –  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2052 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 – /* end confdefs.h.  */
2054 – $4
2055 – int
2056 – main ()
2057 – {
2058 – static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 – test_array [0] = 0;
2060 – return test_array [0];
2061 –
2062 –  ;
2063 –  return 0;
2064 – }
2065 – _ACEOF
2066 – if ac_fn_c_try_compile "$LINENO"; then :
2067 –  ac_hi=$ac_mid
2068 – else
2069 –  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2070 – fi
2071 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 – done
2073 – case $ac_lo in #((
2074 – ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2075 – '') ac_retval=1 ;;
2076 – esac
2077 –  else
2078 –    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 – /* end confdefs.h.  */
2080 – $4
2081 – static long int longval () { return $2; }
2082 – static unsigned long int ulongval () { return $2; }
2083 – #include <stdio.h>
2084 – #include <stdlib.h>
2085 – int
2086 – main ()
2087 – {
2088 –
2089 –  FILE *f = fopen ("conftest.val", "w");
2090 –  if (! f)
2091 –    return 1;
2092 –  if (($2) < 0)
2093 –    {
2094 –      long int i = longval ();
2095 –      if (i != ($2))
2096 –        return 1;
2097 –      fprintf (f, "%ld", i);
2098 –    }
2099 –  else
2100 –    {
2101 –      unsigned long int i = ulongval ();
2102 –      if (i != ($2))
2103 –        return 1;
2104 –      fprintf (f, "%lu", i);
2105 –    }
2106 –  /* Do not output a trailing newline, as this causes \r\n confusion
2107 –     on some platforms.  */
2108 –  return ferror (f) || fclose (f) != 0;
2109 –
2110 –  ;
2111 –  return 0;
2112 – }
2113 – _ACEOF
2114 – if ac_fn_c_try_run "$LINENO"; then :
2115 –  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2116 – else
2117 –  ac_retval=1
2118 – fi
2119 – rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2120 –  conftest.$ac_objext conftest.beam conftest.$ac_ext
2121 – rm -f conftest.val
2122 –
2123 –  fi
2124 –  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 –  as_fn_set_status $ac_retval
2126 –
2127 – } # ac_fn_c_compute_int
2128 –
2129 – # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2130 – # ----------------------------------------------------
2131 – # Tries to find if the field MEMBER exists in type AGGR, after including
2132 – # INCLUDES, setting cache variable VAR accordingly.
2133 – ac_fn_c_check_member ()
2134 – {
2135 –  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2137 – $as_echo_n "checking for $2.$3... " >&6; }
2138 – if eval \${$4+:} false; then :
2139 –  $as_echo_n "(cached) " >&6
2140 – else
2141 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 – /* end confdefs.h.  */
2143 – $5
2144 – int
2145 – main ()
2146 – {
2147 – static $2 ac_aggr;
2148 – if (ac_aggr.$3)
2149 – return 0;
2150 –  ;
2151 –  return 0;
2152 – }
2153 – _ACEOF
2154 – if ac_fn_c_try_compile "$LINENO"; then :
2155 –  eval "$4=yes"
2156 – else
2157 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 – /* end confdefs.h.  */
2159 – $5
2160 – int
2161 – main ()
2162 – {
2163 – static $2 ac_aggr;
2164 – if (sizeof ac_aggr.$3)
2165 – return 0;
2166 –  ;
2167 –  return 0;
2168 – }
2169 – _ACEOF
2170 – if ac_fn_c_try_compile "$LINENO"; then :
2171 –  eval "$4=yes"
2172 – else
2173 –  eval "$4=no"
2174 – fi
2175 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 – fi
2177 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 – fi
2179 – eval ac_res=\$$4
2180 –               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 – $as_echo "$ac_res" >&6; }
2182 –  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 –
2184 – } # ac_fn_c_check_member
2185 –
1961   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1962   # -------------------------------------------------------
1963   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2558 | Line 2333 | $as_echo "$as_me: creating cache $cache_
2333   fi
2334  
2335   as_fn_append ac_func_list " strtok_r"
2561 – as_fn_append ac_func_list " usleep"
2336   as_fn_append ac_func_list " strlcat"
2337   as_fn_append ac_func_list " strlcpy"
2338   as_fn_append ac_header_list " crypt.h"
2565 – as_fn_append ac_header_list " sys/resource.h"
2339   as_fn_append ac_header_list " sys/param.h"
2340   as_fn_append ac_header_list " types.h"
2341   as_fn_append ac_header_list " socket.h"
2342   as_fn_append ac_header_list " sys/wait.h"
2570 – as_fn_append ac_header_list " wait.h"
2343   # Check that the precious variables saved in the cache have kept the same
2344   # value.
2345   ac_cache_corrupted=false
# Line 2636 | Line 2408 | ac_link='$CC -o conftest$ac_exeext $CFLA
2408   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409  
2410  
2411 < am__api_version='1.13'
2411 > am__api_version='1.16'
2412  
2413   ac_aux_dir=
2414   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2837 | Line 2609 | test "$program_suffix" != NONE &&
2609   ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2610   program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2611  
2612 < # expand $ac_aux_dir to an absolute path
2613 < am_aux_dir=`cd $ac_aux_dir && pwd`
2612 > # Expand $ac_aux_dir to an absolute path.
2613 > am_aux_dir=`cd "$ac_aux_dir" && pwd`
2614  
2615   if test x"${MISSING+set}" != xset; then
2616    case $am_aux_dir in
# Line 2857 | Line 2629 | else
2629   $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2630   fi
2631  
2632 < if test x"${install_sh}" != xset; then
2632 > if test x"${install_sh+set}" != xset; then
2633    case $am_aux_dir in
2634    *\ * | *\     *)
2635      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
# Line 3181 | Line 2953 | MAKEINFO=${MAKEINFO-"${am_missing_run}ma
2953  
2954   # For better backward compatibility.  To be removed once Automake 1.9.x
2955   # dies out for good.  For more background, see:
2956 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2957 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2956 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2957 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2958   mkdir_p='$(MKDIR_P)'
2959  
2960 < # We need awk for the "check" target.  The system "awk" is bad on
2961 < # some platforms.
2960 > # We need awk for the "check" target (and possibly the TAP driver).  The
2961 > # system "awk" is bad on some platforms.
2962   # Always define AMTAR for backward compatibility.  Yes, it's still used
2963   # in the wild :-(  We should find a proper way to deprecate it ...
2964   AMTAR='$${TAR-tar}'
# Line 3202 | Line 2974 | am__tar='$${TAR-tar} chof - "$$tardir"'
2974  
2975  
2976  
2977 + # POSIX will say in a future version that running "rm -f" with no argument
2978 + # is OK; and we want to be able to make that assumption in our Makefile
2979 + # recipes.  So use an aggressive probe to check that the usage we want is
2980 + # actually supported "in the wild" to an acceptable degree.
2981 + # See automake bug#10828.
2982 + # To make any issue more visible, cause the running configure to be aborted
2983 + # by default if the 'rm' program in use doesn't match our expectations; the
2984 + # user can still override this though.
2985 + if rm -f && rm -fr && rm -rf; then : OK; else
2986 +  cat >&2 <<'END'
2987 + Oops!
2988 +
2989 + Your 'rm' program seems unable to run without file operands specified
2990 + on the command line, even when the '-f' option is present.  This is contrary
2991 + to the behaviour of most rm programs out there, and not conforming with
2992 + the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2993 +
2994 + Please tell bug-automake@gnu.org about your system, including the value
2995 + of your $PATH and any error possibly output before this message.  This
2996 + can help us improve future automake versions.
2997 +
2998 + END
2999 +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3000 +    echo 'Configuration will proceed anyway, since you have set the' >&2
3001 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3002 +    echo >&2
3003 +  else
3004 +    cat >&2 <<'END'
3005 + Aborting the configuration process, to ensure you take notice of the issue.
3006 +
3007 + You can download and install GNU coreutils to get an 'rm' implementation
3008 + that behaves properly: <https://www.gnu.org/software/coreutils/>.
3009 +
3010 + If you want to complete the configuration process using your problematic
3011 + 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3012 + to "yes", and re-run configure.
3013 +
3014 + END
3015 +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3016 +  fi
3017 + fi
3018 +
3019  
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3021   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
# Line 3225 | Line 3039 | fi
3039    MAINT=$MAINTAINER_MODE_TRUE
3040  
3041  
3042 +
3043   ac_config_headers="$ac_config_headers config.h"
3044  
3045  
# Line 3234 | Line 3049 | DEPDIR="${am__leading_dot}deps"
3049  
3050   ac_config_commands="$ac_config_commands depfiles"
3051  
3052 <
3053 < am_make=${MAKE-make}
3054 < cat > confinc << 'END'
3052 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3053 > $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3054 > cat > confinc.mk << 'END'
3055   am__doit:
3056 <        @echo this is the am__doit target
3056 >        @echo this is the am__doit target >confinc.out
3057   .PHONY: am__doit
3058   END
3244 – # If we don't find an include directive, just comment out the code.
3245 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3246 – $as_echo_n "checking for style of include used by $am_make... " >&6; }
3059   am__include="#"
3060   am__quote=
3061 < _am_result=none
3062 < # First try GNU make style include.
3063 < echo "include confinc" > confmf
3064 < # Ignore all kinds of additional output from 'make'.
3065 < case `$am_make -s -f confmf 2> /dev/null` in #(
3066 < *the\ am__doit\ target*)
3067 <  am__include=include
3068 <  am__quote=
3069 <  _am_result=GNU
3070 <  ;;
3071 < esac
3072 < # Now try BSD make style include.
3073 < if test "$am__include" = "#"; then
3074 <   echo '.include "confinc"' > confmf
3075 <   case `$am_make -s -f confmf 2> /dev/null` in #(
3076 <   *the\ am__doit\ target*)
3077 <     am__include=.include
3078 <     am__quote="\""
3079 <     _am_result=BSD
3061 > # BSD make does it like this.
3062 > echo '.include "confinc.mk" # ignored' > confmf.BSD
3063 > # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3064 > echo 'include confinc.mk # ignored' > confmf.GNU
3065 > _am_result=no
3066 > for s in GNU BSD; do
3067 >  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3068 >   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3069 >   ac_status=$?
3070 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 >   (exit $ac_status); }
3072 >  case $?:`cat confinc.out 2>/dev/null` in #(
3073 >  '0:this is the am__doit target') :
3074 >    case $s in #(
3075 >  BSD) :
3076 >    am__include='.include' am__quote='"' ;; #(
3077 >  *) :
3078 >    am__include='include' am__quote='' ;;
3079 > esac ;; #(
3080 >  *) :
3081       ;;
3082 <   esac
3083 < fi
3084 <
3085 <
3086 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3087 < $as_echo "$_am_result" >&6; }
3088 < rm -f confinc confmf
3082 > esac
3083 >  if test "$am__include" != "#"; then
3084 >    _am_result="yes ($s style)"
3085 >    break
3086 >  fi
3087 > done
3088 > rm -f confinc.* confmf.*
3089 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3090 > $as_echo "${_am_result}" >&6; }
3091  
3092   # Check whether --enable-dependency-tracking was given.
3093   if test "${enable_dependency_tracking+set}" = set; then :
# Line 4082 | Line 3897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
3897   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899  
3900 + ac_ext=c
3901 + ac_cpp='$CPP $CPPFLAGS'
3902 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3906 + $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3907 + if ${am_cv_prog_cc_c_o+:} false; then :
3908 +  $as_echo_n "(cached) " >&6
3909 + else
3910 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 + /* end confdefs.h.  */
3912 +
3913 + int
3914 + main ()
3915 + {
3916 +
3917 +  ;
3918 +  return 0;
3919 + }
3920 + _ACEOF
3921 +  # Make sure it works both with $CC and with simple cc.
3922 +  # Following AC_PROG_CC_C_O, we do the test twice because some
3923 +  # compilers refuse to overwrite an existing .o file with -o,
3924 +  # though they will create one.
3925 +  am_cv_prog_cc_c_o=yes
3926 +  for am_i in 1 2; do
3927 +    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3928 +   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3929 +   ac_status=$?
3930 +   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 +   (exit $ac_status); } \
3932 +         && test -f conftest2.$ac_objext; then
3933 +      : OK
3934 +    else
3935 +      am_cv_prog_cc_c_o=no
3936 +      break
3937 +    fi
3938 +  done
3939 +  rm -f core conftest*
3940 +  unset am_i
3941 + fi
3942 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3943 + $as_echo "$am_cv_prog_cc_c_o" >&6; }
3944 + if test "$am_cv_prog_cc_c_o" != yes; then
3945 +   # Losing compiler, so override with the script.
3946 +   # FIXME: It is wrong to rewrite CC.
3947 +   # But if we don't then we get into trouble of one sort or another.
3948 +   # A longer-term fix would be to have automake use am__CC in this case,
3949 +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3950 +   CC="$am_aux_dir/compile $CC"
3951 + fi
3952 + ac_ext=c
3953 + ac_cpp='$CPP $CPPFLAGS'
3954 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 +
3958 +
3959   depcc="$CC"   am_compiler_list=
3960  
3961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
# Line 4614 | Line 4488 | esac
4488  
4489  
4490  
4491 < macro_version='2.4.2'
4492 < macro_revision='1.3337'
4491 > macro_version='2.4.6'
4492 > macro_revision='2.4.6'
4493  
4494  
4495  
# Line 4629 | Line 4503 | macro_revision='1.3337'
4503  
4504  
4505  
4506 < ltmain="$ac_aux_dir/ltmain.sh"
4506 > ltmain=$ac_aux_dir/ltmain.sh
4507  
4508   # Make sure we can run config.sub.
4509   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4749 | Line 4623 | func_echo_all ()
4623      $ECHO ""
4624   }
4625  
4626 < case "$ECHO" in
4626 > case $ECHO in
4627    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4628   $as_echo "printf" >&6; } ;;
4629    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 5072 | Line 4946 | test -z "$GREP" && GREP=grep
4946  
4947   # Check whether --with-gnu-ld was given.
4948   if test "${with_gnu_ld+set}" = set; then :
4949 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4949 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4950   else
4951    with_gnu_ld=no
4952   fi
4953  
4954   ac_prog=ld
4955 < if test "$GCC" = yes; then
4955 > if test yes = "$GCC"; then
4956    # Check if gcc -print-prog-name=ld gives a path.
4957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4958   $as_echo_n "checking for ld used by $CC... " >&6; }
4959    case $host in
4960    *-*-mingw*)
4961 <    # gcc leaves a trailing carriage return which upsets mingw
4961 >    # gcc leaves a trailing carriage return, which upsets mingw
4962      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4963    *)
4964      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 5098 | Line 4972 | $as_echo_n "checking for ld used by $CC.
4972        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4973          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4974        done
4975 <      test -z "$LD" && LD="$ac_prog"
4975 >      test -z "$LD" && LD=$ac_prog
4976        ;;
4977    "")
4978      # If it fails, then pretend we aren't using GCC.
# Line 5109 | Line 4983 | $as_echo_n "checking for ld used by $CC.
4983      with_gnu_ld=unknown
4984      ;;
4985    esac
4986 < elif test "$with_gnu_ld" = yes; then
4986 > elif test yes = "$with_gnu_ld"; then
4987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4988   $as_echo_n "checking for GNU ld... " >&6; }
4989   else
# Line 5120 | Line 4994 | if ${lt_cv_path_LD+:} false; then :
4994    $as_echo_n "(cached) " >&6
4995   else
4996    if test -z "$LD"; then
4997 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4997 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4998    for ac_dir in $PATH; do
4999 <    IFS="$lt_save_ifs"
4999 >    IFS=$lt_save_ifs
5000      test -z "$ac_dir" && ac_dir=.
5001      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5002 <      lt_cv_path_LD="$ac_dir/$ac_prog"
5002 >      lt_cv_path_LD=$ac_dir/$ac_prog
5003        # Check to see if the program is GNU ld.  I'd rather use --version,
5004        # but apparently some variants of GNU ld only accept -v.
5005        # Break only if it was the GNU/non-GNU ld that we prefer.
5006        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5007        *GNU* | *'with BFD'*)
5008 <        test "$with_gnu_ld" != no && break
5008 >        test no != "$with_gnu_ld" && break
5009          ;;
5010        *)
5011 <        test "$with_gnu_ld" != yes && break
5011 >        test yes != "$with_gnu_ld" && break
5012          ;;
5013        esac
5014      fi
5015    done
5016 <  IFS="$lt_save_ifs"
5016 >  IFS=$lt_save_ifs
5017   else
5018 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5018 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5019   fi
5020   fi
5021  
5022 < LD="$lt_cv_path_LD"
5022 > LD=$lt_cv_path_LD
5023   if test -n "$LD"; then
5024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5025   $as_echo "$LD" >&6; }
# Line 5188 | Line 5062 | if ${lt_cv_path_NM+:} false; then :
5062   else
5063    if test -n "$NM"; then
5064    # Let the user override the test.
5065 <  lt_cv_path_NM="$NM"
5065 >  lt_cv_path_NM=$NM
5066   else
5067 <  lt_nm_to_check="${ac_tool_prefix}nm"
5067 >  lt_nm_to_check=${ac_tool_prefix}nm
5068    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5069      lt_nm_to_check="$lt_nm_to_check nm"
5070    fi
5071    for lt_tmp_nm in $lt_nm_to_check; do
5072 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5072 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5073      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5074 <      IFS="$lt_save_ifs"
5074 >      IFS=$lt_save_ifs
5075        test -z "$ac_dir" && ac_dir=.
5076 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5077 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5076 >      tmp_nm=$ac_dir/$lt_tmp_nm
5077 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5078          # Check to see if the nm accepts a BSD-compat flag.
5079 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5079 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5080          #   nm: unknown option "B" ignored
5081          # Tru64's nm complains that /dev/null is an invalid object file
5082 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5083 <        */dev/null* | *'Invalid file or object type'*)
5082 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5083 >        case $build_os in
5084 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5085 >        *) lt_bad_file=/dev/null ;;
5086 >        esac
5087 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5088 >        *$lt_bad_file* | *'Invalid file or object type'*)
5089            lt_cv_path_NM="$tmp_nm -B"
5090 <          break
5090 >          break 2
5091            ;;
5092          *)
5093            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5094            */dev/null*)
5095              lt_cv_path_NM="$tmp_nm -p"
5096 <            break
5096 >            break 2
5097              ;;
5098            *)
5099              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 5225 | Line 5104 | else
5104          esac
5105        fi
5106      done
5107 <    IFS="$lt_save_ifs"
5107 >    IFS=$lt_save_ifs
5108    done
5109    : ${lt_cv_path_NM=no}
5110   fi
5111   fi
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5113   $as_echo "$lt_cv_path_NM" >&6; }
5114 < if test "$lt_cv_path_NM" != "no"; then
5115 <  NM="$lt_cv_path_NM"
5114 > if test no != "$lt_cv_path_NM"; then
5115 >  NM=$lt_cv_path_NM
5116   else
5117    # Didn't find any BSD compatible name lister, look for dumpbin.
5118    if test -n "$DUMPBIN"; then :
# Line 5339 | Line 5218 | esac
5218    fi
5219   fi
5220  
5221 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5221 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5222      *COFF*)
5223 <      DUMPBIN="$DUMPBIN -symbols"
5223 >      DUMPBIN="$DUMPBIN -symbols -headers"
5224        ;;
5225      *)
5226        DUMPBIN=:
# Line 5349 | Line 5228 | fi
5228      esac
5229    fi
5230  
5231 <  if test "$DUMPBIN" != ":"; then
5232 <    NM="$DUMPBIN"
5231 >  if test : != "$DUMPBIN"; then
5232 >    NM=$DUMPBIN
5233    fi
5234   fi
5235   test -z "$NM" && NM=nm
# Line 5401 | Line 5280 | if ${lt_cv_sys_max_cmd_len+:} false; the
5280    $as_echo_n "(cached) " >&6
5281   else
5282      i=0
5283 <  teststring="ABCD"
5283 >  teststring=ABCD
5284  
5285    case $build_os in
5286    msdosdjgpp*)
# Line 5441 | Line 5320 | else
5320      lt_cv_sys_max_cmd_len=8192;
5321      ;;
5322  
5323 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5323 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5324      # This has been around since 386BSD, at least.  Likely further.
5325      if test -x /sbin/sysctl; then
5326        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5491 | Line 5370 | else
5370      ;;
5371    *)
5372      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5373 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5373 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5374 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5375        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5376        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5377      else
5378        # Make teststring a little bigger before we do anything with it.
5379        # a 1K string should be a reasonable start.
5380 <      for i in 1 2 3 4 5 6 7 8 ; do
5380 >      for i in 1 2 3 4 5 6 7 8; do
5381          teststring=$teststring$teststring
5382        done
5383        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5384        # If test is not a shell built-in, we'll probably end up computing a
5385        # maximum length that is only half of the actual maximum length, but
5386        # we can't tell.
5387 <      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5387 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5388                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5389 <              test $i != 17 # 1/2 MB should be enough
5389 >              test 17 != "$i" # 1/2 MB should be enough
5390        do
5391          i=`expr $i + 1`
5392          teststring=$teststring$teststring
# Line 5524 | Line 5404 | else
5404  
5405   fi
5406  
5407 < if test -n $lt_cv_sys_max_cmd_len ; then
5407 > if test -n "$lt_cv_sys_max_cmd_len"; then
5408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5409   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5410   else
# Line 5542 | Line 5422 | max_cmd_len=$lt_cv_sys_max_cmd_len
5422   : ${MV="mv -f"}
5423   : ${RM="rm -f"}
5424  
5545 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5546 – $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5547 – # Try some XSI features
5548 – xsi_shell=no
5549 – ( _lt_dummy="a/b/c"
5550 –  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5551 –      = c,a/b,b/c, \
5552 –    && eval 'test $(( 1 + 1 )) -eq 2 \
5553 –    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5554 –  && xsi_shell=yes
5555 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5556 – $as_echo "$xsi_shell" >&6; }
5557 –
5558 –
5559 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5560 – $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5561 – lt_shell_append=no
5562 – ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5563 –    >/dev/null 2>&1 \
5564 –  && lt_shell_append=yes
5565 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5566 – $as_echo "$lt_shell_append" >&6; }
5567 –
5568 –
5425   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5426    lt_unset=unset
5427   else
# Line 5688 | Line 5544 | esac
5544   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5545   case $host_os in
5546    cygwin* | mingw* | pw32* | cegcc*)
5547 <    if test "$GCC" != yes; then
5547 >    if test yes != "$GCC"; then
5548        reload_cmds=false
5549      fi
5550      ;;
5551    darwin*)
5552 <    if test "$GCC" = yes; then
5553 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5552 >    if test yes = "$GCC"; then
5553 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5554      else
5555        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5556      fi
# Line 5822 | Line 5678 | lt_cv_deplibs_check_method='unknown'
5678   # Need to set the preceding variable on all platforms that support
5679   # interlibrary dependencies.
5680   # 'none' -- dependencies not supported.
5681 < # `unknown' -- same as none, but documents that we really don't know.
5681 > # 'unknown' -- same as none, but documents that we really don't know.
5682   # 'pass_all' -- all dependencies passed with no checks.
5683   # 'test_compile' -- check by making test program.
5684   # 'file_magic [[regex]]' -- check by looking for files in library path
5685 < # which responds to the $file_magic_cmd with a given extended regex.
5686 < # If you have `file' or equivalent on your system and you're not sure
5687 < # whether `pass_all' will *always* work, you probably want this one.
5685 > # that responds to the $file_magic_cmd with a given extended regex.
5686 > # If you have 'file' or equivalent on your system and you're not sure
5687 > # whether 'pass_all' will *always* work, you probably want this one.
5688  
5689   case $host_os in
5690   aix[4-9]*)
# Line 5855 | Line 5711 | mingw* | pw32*)
5711    # Base MSYS/MinGW do not provide the 'file' command needed by
5712    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5713    # unless we find 'file', for example because we are cross-compiling.
5714 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5859 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5714 >  if ( file / ) >/dev/null 2>&1; then
5715      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5716      lt_cv_file_magic_cmd='func_win32_libid'
5717    else
# Line 5892 | Line 5747 | freebsd* | dragonfly*)
5747    fi
5748    ;;
5749  
5895 – gnu*)
5896 –  lt_cv_deplibs_check_method=pass_all
5897 –  ;;
5898 –
5750   haiku*)
5751    lt_cv_deplibs_check_method=pass_all
5752    ;;
# Line 5934 | Line 5785 | irix5* | irix6* | nonstopux*)
5785    ;;
5786  
5787   # This must be glibc/ELF.
5788 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5788 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5789    lt_cv_deplibs_check_method=pass_all
5790    ;;
5791  
5792 < netbsd*)
5792 > netbsd* | netbsdelf*-gnu)
5793    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5794      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5795    else
# Line 5956 | Line 5807 | newos6*)
5807    lt_cv_deplibs_check_method=pass_all
5808    ;;
5809  
5810 < openbsd*)
5811 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5810 > openbsd* | bitrig*)
5811 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5812      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5813    else
5814      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 6010 | Line 5861 | sysv4 | sysv4.3*)
5861   tpf*)
5862    lt_cv_deplibs_check_method=pass_all
5863    ;;
5864 + os2*)
5865 +  lt_cv_deplibs_check_method=pass_all
5866 +  ;;
5867   esac
5868  
5869   fi
# Line 6167 | Line 6021 | else
6021  
6022   case $host_os in
6023   cygwin* | mingw* | pw32* | cegcc*)
6024 <  # two different shell functions defined in ltmain.sh
6025 <  # decide which to use based on capabilities of $DLLTOOL
6024 >  # two different shell functions defined in ltmain.sh;
6025 >  # decide which one to use based on capabilities of $DLLTOOL
6026    case `$DLLTOOL --help 2>&1` in
6027    *--identify-strict*)
6028      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 6180 | Line 6034 | cygwin* | mingw* | pw32* | cegcc*)
6034    ;;
6035   *)
6036    # fallback: assume linklib IS sharedlib
6037 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6037 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6038    ;;
6039   esac
6040  
# Line 6334 | Line 6188 | if ac_fn_c_try_compile "$LINENO"; then :
6188    ac_status=$?
6189    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190    test $ac_status = 0; }
6191 <      if test "$ac_status" -eq 0; then
6191 >      if test 0 -eq "$ac_status"; then
6192          # Ensure the archiver fails upon bogus file names.
6193          rm -f conftest.$ac_objext libconftest.a
6194          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6342 | Line 6196 | if ac_fn_c_try_compile "$LINENO"; then :
6196    ac_status=$?
6197    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198    test $ac_status = 0; }
6199 <        if test "$ac_status" -ne 0; then
6199 >        if test 0 -ne "$ac_status"; then
6200            lt_cv_ar_at_file=@
6201          fi
6202        fi
# Line 6355 | Line 6209 | fi
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6210   $as_echo "$lt_cv_ar_at_file" >&6; }
6211  
6212 < if test "x$lt_cv_ar_at_file" = xno; then
6212 > if test no = "$lt_cv_ar_at_file"; then
6213    archiver_list_spec=
6214   else
6215    archiver_list_spec=$lt_cv_ar_at_file
# Line 6572 | Line 6426 | old_postuninstall_cmds=
6426  
6427   if test -n "$RANLIB"; then
6428    case $host_os in
6429 <  openbsd*)
6429 >  bitrig* | openbsd*)
6430      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6431      ;;
6432    *)
# Line 6662 | Line 6516 | cygwin* | mingw* | pw32* | cegcc*)
6516    symcode='[ABCDGISTW]'
6517    ;;
6518   hpux*)
6519 <  if test "$host_cpu" = ia64; then
6519 >  if test ia64 = "$host_cpu"; then
6520      symcode='[ABCDEGRST]'
6521    fi
6522    ;;
# Line 6695 | Line 6549 | case `$NM -V 2>&1` in
6549    symcode='[ABCDGIRSTW]' ;;
6550   esac
6551  
6552 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6553 +  # Gets list of data symbols to import.
6554 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6555 +  # Adjust the below global symbol transforms to fixup imported variables.
6556 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6557 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6558 +  lt_c_name_lib_hook="\
6559 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6560 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6561 + else
6562 +  # Disable hooks by default.
6563 +  lt_cv_sys_global_symbol_to_import=
6564 +  lt_cdecl_hook=
6565 +  lt_c_name_hook=
6566 +  lt_c_name_lib_hook=
6567 + fi
6568 +
6569   # Transform an extracted symbol line into a proper C declaration.
6570   # Some systems (esp. on ia64) link data and code symbols differently,
6571   # so use this general approach.
6572 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6572 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6573 > $lt_cdecl_hook\
6574 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6575 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6576  
6577   # Transform an extracted symbol line into symbol name and symbol address
6578 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6579 < 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'"
6578 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6579 > $lt_c_name_hook\
6580 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6581 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6582 >
6583 > # Transform an extracted symbol line into symbol name with lib prefix and
6584 > # symbol address.
6585 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6586 > $lt_c_name_lib_hook\
6587 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6588 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6589 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6590  
6591   # Handle CRLF in mingw tool chain
6592   opt_cr=
# Line 6720 | Line 6604 | for ac_symprfx in "" "_"; do
6604  
6605    # Write the raw and C identifiers.
6606    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6607 <    # Fake it for dumpbin and say T for any non-static function
6608 <    # and D for any global variable.
6607 >    # Fake it for dumpbin and say T for any non-static function,
6608 >    # D for any global variable and I for any imported variable.
6609      # Also find C++ and __fastcall symbols from MSVC++,
6610      # which start with @ or ?.
6611      lt_cv_sys_global_symbol_pipe="$AWK '"\
6612   "     {last_section=section; section=\$ 3};"\
6613   "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6614   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6615 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6616 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6617 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6618   "     \$ 0!~/External *\|/{next};"\
6619   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6620   "     {if(hide[section]) next};"\
6621 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6622 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6623 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6624 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6621 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6622 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6623 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6624 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6625   "     ' prfx=^$ac_symprfx"
6626    else
6627      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6765 | Line 6652 | _LT_EOF
6652    test $ac_status = 0; }; then
6653      # Now try to grab the symbols.
6654      nlist=conftest.nm
6655 <    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6656 <  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6770 <  ac_status=$?
6771 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772 <  test $ac_status = 0; } && test -s "$nlist"; then
6655 >    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6656 >    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6657        # Try sorting and uniquifying the output.
6658        if sort "$nlist" | uniq > "$nlist"T; then
6659          mv -f "$nlist"T "$nlist"
# Line 6782 | Line 6666 | _LT_EOF
6666          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6667            cat <<_LT_EOF > conftest.$ac_ext
6668   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6669 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6670 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6669 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6670 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6671     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6672   # define LT_DLSYM_CONST
6673 < #elif defined(__osf__)
6673 > #elif defined __osf__
6674   /* This system does not cope well with relocations in const data.  */
6675   # define LT_DLSYM_CONST
6676   #else
# Line 6812 | Line 6696 | lt__PROGRAM__LTX_preloaded_symbols[] =
6696   {
6697    { "@PROGRAM@", (void *) 0 },
6698   _LT_EOF
6699 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6699 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6700            cat <<\_LT_EOF >> conftest.$ac_ext
6701    {0, (void *) 0}
6702   };
# Line 6832 | Line 6716 | _LT_EOF
6716            mv conftest.$ac_objext conftstm.$ac_objext
6717            lt_globsym_save_LIBS=$LIBS
6718            lt_globsym_save_CFLAGS=$CFLAGS
6719 <          LIBS="conftstm.$ac_objext"
6719 >          LIBS=conftstm.$ac_objext
6720            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6721            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6722    (eval $ac_link) 2>&5
6723    ac_status=$?
6724    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6725 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6725 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6726              pipe_works=yes
6727            fi
6728            LIBS=$lt_globsym_save_LIBS
# Line 6859 | Line 6743 | _LT_EOF
6743    rm -rf conftest* conftst*
6744  
6745    # Do not use the global_symbol_pipe unless it works.
6746 <  if test "$pipe_works" = yes; then
6746 >  if test yes = "$pipe_works"; then
6747      break
6748    else
6749      lt_cv_sys_global_symbol_pipe=
# Line 6912 | Line 6796 | fi
6796  
6797  
6798  
6799 +
6800 +
6801 +
6802 +
6803 +
6804 +
6805 +
6806 +
6807 +
6808 +
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6810   $as_echo_n "checking for sysroot... " >&6; }
6811  
# Line 6924 | Line 6818 | fi
6818  
6819  
6820   lt_sysroot=
6821 < case ${with_sysroot} in #(
6821 > case $with_sysroot in #(
6822   yes)
6823 <   if test "$GCC" = yes; then
6823 >   if test yes = "$GCC"; then
6824       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6825     fi
6826     ;; #(
# Line 6936 | Line 6830 | case ${with_sysroot} in #(
6830   no|'')
6831     ;; #(
6832   *)
6833 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6834 < $as_echo "${with_sysroot}" >&6; }
6833 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6834 > $as_echo "$with_sysroot" >&6; }
6835     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6836     ;;
6837   esac
# Line 6949 | Line 6843 | $as_echo "${lt_sysroot:-no}" >&6; }
6843  
6844  
6845  
6846 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6847 + $as_echo_n "checking for a working dd... " >&6; }
6848 + if ${ac_cv_path_lt_DD+:} false; then :
6849 +  $as_echo_n "(cached) " >&6
6850 + else
6851 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6852 + cat conftest.i conftest.i >conftest2.i
6853 + : ${lt_DD:=$DD}
6854 + if test -z "$lt_DD"; then
6855 +  ac_path_lt_DD_found=false
6856 +  # Loop through the user's path and test for each of PROGNAME-LIST
6857 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 + for as_dir in $PATH
6859 + do
6860 +  IFS=$as_save_IFS
6861 +  test -z "$as_dir" && as_dir=.
6862 +    for ac_prog in dd; do
6863 +    for ac_exec_ext in '' $ac_executable_extensions; do
6864 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6865 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6866 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6867 +  cmp -s conftest.i conftest.out \
6868 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6869 + fi
6870 +      $ac_path_lt_DD_found && break 3
6871 +    done
6872 +  done
6873 +  done
6874 + IFS=$as_save_IFS
6875 +  if test -z "$ac_cv_path_lt_DD"; then
6876 +    :
6877 +  fi
6878 + else
6879 +  ac_cv_path_lt_DD=$lt_DD
6880 + fi
6881 +
6882 + rm -f conftest.i conftest2.i conftest.out
6883 + fi
6884 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6885 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6886 +
6887 +
6888 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6889 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6890 + if ${lt_cv_truncate_bin+:} false; then :
6891 +  $as_echo_n "(cached) " >&6
6892 + else
6893 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6894 + cat conftest.i conftest.i >conftest2.i
6895 + lt_cv_truncate_bin=
6896 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6897 +  cmp -s conftest.i conftest.out \
6898 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6899 + fi
6900 + rm -f conftest.i conftest2.i conftest.out
6901 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6902 + fi
6903 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6904 + $as_echo "$lt_cv_truncate_bin" >&6; }
6905 +
6906 +
6907 +
6908 +
6909 +
6910 +
6911 +
6912 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6913 + func_cc_basename ()
6914 + {
6915 +    for cc_temp in $*""; do
6916 +      case $cc_temp in
6917 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6918 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6919 +        \-*) ;;
6920 +        *) break;;
6921 +      esac
6922 +    done
6923 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6924 + }
6925 +
6926   # Check whether --enable-libtool-lock was given.
6927   if test "${enable_libtool_lock+set}" = set; then :
6928    enableval=$enable_libtool_lock;
6929   fi
6930  
6931 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6931 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6932  
6933   # Some flags need to be propagated to the compiler or linker for good
6934   # libtool support.
6935   case $host in
6936   ia64-*-hpux*)
6937 <  # Find out which ABI we are using.
6937 >  # Find out what ABI is being produced by ac_compile, and set mode
6938 >  # options accordingly.
6939    echo 'int i;' > conftest.$ac_ext
6940    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6941    (eval $ac_compile) 2>&5
# Line 6969 | Line 6944 | ia64-*-hpux*)
6944    test $ac_status = 0; }; then
6945      case `/usr/bin/file conftest.$ac_objext` in
6946        *ELF-32*)
6947 <        HPUX_IA64_MODE="32"
6947 >        HPUX_IA64_MODE=32
6948          ;;
6949        *ELF-64*)
6950 <        HPUX_IA64_MODE="64"
6950 >        HPUX_IA64_MODE=64
6951          ;;
6952      esac
6953    fi
6954    rm -rf conftest*
6955    ;;
6956   *-*-irix6*)
6957 <  # Find out which ABI we are using.
6957 >  # Find out what ABI is being produced by ac_compile, and set linker
6958 >  # options accordingly.
6959    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6960    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961    (eval $ac_compile) 2>&5
6962    ac_status=$?
6963    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964    test $ac_status = 0; }; then
6965 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6965 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6966        case `/usr/bin/file conftest.$ac_objext` in
6967          *32-bit*)
6968            LD="${LD-ld} -melf32bsmip"
# Line 7015 | Line 6991 | ia64-*-hpux*)
6991    rm -rf conftest*
6992    ;;
6993  
6994 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6994 > mips64*-*linux*)
6995 >  # Find out what ABI is being produced by ac_compile, and set linker
6996 >  # options accordingly.
6997 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6998 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999 >  (eval $ac_compile) 2>&5
7000 >  ac_status=$?
7001 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 >  test $ac_status = 0; }; then
7003 >    emul=elf
7004 >    case `/usr/bin/file conftest.$ac_objext` in
7005 >      *32-bit*)
7006 >        emul="${emul}32"
7007 >        ;;
7008 >      *64-bit*)
7009 >        emul="${emul}64"
7010 >        ;;
7011 >    esac
7012 >    case `/usr/bin/file conftest.$ac_objext` in
7013 >      *MSB*)
7014 >        emul="${emul}btsmip"
7015 >        ;;
7016 >      *LSB*)
7017 >        emul="${emul}ltsmip"
7018 >        ;;
7019 >    esac
7020 >    case `/usr/bin/file conftest.$ac_objext` in
7021 >      *N32*)
7022 >        emul="${emul}n32"
7023 >        ;;
7024 >    esac
7025 >    LD="${LD-ld} -m $emul"
7026 >  fi
7027 >  rm -rf conftest*
7028 >  ;;
7029 >
7030 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7031   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7032 <  # Find out which ABI we are using.
7032 >  # Find out what ABI is being produced by ac_compile, and set linker
7033 >  # options accordingly.  Note that the listed cases only cover the
7034 >  # situations where additional linker options are needed (such as when
7035 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7036 >  # vice versa); the common cases where no linker options are needed do
7037 >  # not appear in the list.
7038    echo 'int i;' > conftest.$ac_ext
7039    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7040    (eval $ac_compile) 2>&5
# Line 7031 | Line 7048 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7048              LD="${LD-ld} -m elf_i386_fbsd"
7049              ;;
7050            x86_64-*linux*)
7051 <            LD="${LD-ld} -m elf_i386"
7051 >            case `/usr/bin/file conftest.o` in
7052 >              *x86-64*)
7053 >                LD="${LD-ld} -m elf32_x86_64"
7054 >                ;;
7055 >              *)
7056 >                LD="${LD-ld} -m elf_i386"
7057 >                ;;
7058 >            esac
7059 >            ;;
7060 >          powerpc64le-*linux*)
7061 >            LD="${LD-ld} -m elf32lppclinux"
7062              ;;
7063 <          ppc64-*linux*|powerpc64-*linux*)
7063 >          powerpc64-*linux*)
7064              LD="${LD-ld} -m elf32ppclinux"
7065              ;;
7066            s390x-*linux*)
# Line 7052 | Line 7079 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7079            x86_64-*linux*)
7080              LD="${LD-ld} -m elf_x86_64"
7081              ;;
7082 <          ppc*-*linux*|powerpc*-*linux*)
7082 >          powerpcle-*linux*)
7083 >            LD="${LD-ld} -m elf64lppc"
7084 >            ;;
7085 >          powerpc-*linux*)
7086              LD="${LD-ld} -m elf64ppc"
7087              ;;
7088            s390*-*linux*|s390*-*tpf*)
# Line 7070 | Line 7100 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7100  
7101   *-*-sco3.2v5*)
7102    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7103 <  SAVE_CFLAGS="$CFLAGS"
7103 >  SAVE_CFLAGS=$CFLAGS
7104    CFLAGS="$CFLAGS -belf"
7105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7106   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 7110 | Line 7140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7140   fi
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7142   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7143 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7143 >  if test yes != "$lt_cv_cc_needs_belf"; then
7144      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7145 <    CFLAGS="$SAVE_CFLAGS"
7145 >    CFLAGS=$SAVE_CFLAGS
7146    fi
7147    ;;
7148   *-*solaris*)
7149 <  # Find out which ABI we are using.
7149 >  # Find out what ABI is being produced by ac_compile, and set linker
7150 >  # options accordingly.
7151    echo 'int i;' > conftest.$ac_ext
7152    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7153    (eval $ac_compile) 2>&5
# Line 7128 | Line 7159 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7159        case $lt_cv_prog_gnu_ld in
7160        yes*)
7161          case $host in
7162 <        i?86-*-solaris*)
7162 >        i?86-*-solaris*|x86_64-*-solaris*)
7163            LD="${LD-ld} -m elf_x86_64"
7164            ;;
7165          sparc*-*-solaris*)
# Line 7137 | Line 7168 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7168          esac
7169          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7170          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7171 <          LD="${LD-ld}_sol2"
7171 >          LD=${LD-ld}_sol2
7172          fi
7173          ;;
7174        *)
# Line 7153 | Line 7184 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7184    ;;
7185   esac
7186  
7187 < need_locks="$enable_libtool_lock"
7187 > need_locks=$enable_libtool_lock
7188  
7189   if test -n "$ac_tool_prefix"; then
7190    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 7264 | Line 7295 | else
7295   fi
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7297   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7298 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7298 > if test yes != "$lt_cv_path_mainfest_tool"; then
7299    MANIFEST_TOOL=:
7300   fi
7301  
# Line 7767 | Line 7798 | if ${lt_cv_apple_cc_single_mod+:} false;
7798    $as_echo_n "(cached) " >&6
7799   else
7800    lt_cv_apple_cc_single_mod=no
7801 <      if test -z "${LT_MULTI_MODULE}"; then
7801 >      if test -z "$LT_MULTI_MODULE"; then
7802          # By default we will add the -single_module flag. You can override
7803          # by either setting the environment variable LT_MULTI_MODULE
7804          # non-empty at configure time, or by adding -multi_module to the
# Line 7785 | Line 7816 | else
7816            cat conftest.err >&5
7817          # Otherwise, if the output was created with a 0 exit code from
7818          # the compiler, it worked.
7819 <        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7819 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7820            lt_cv_apple_cc_single_mod=yes
7821          else
7822            cat conftest.err >&5
# Line 7824 | Line 7855 | else
7855   fi
7856   rm -f core conftest.err conftest.$ac_objext \
7857      conftest$ac_exeext conftest.$ac_ext
7858 <        LDFLAGS="$save_LDFLAGS"
7858 >        LDFLAGS=$save_LDFLAGS
7859  
7860   fi
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
# Line 7853 | Line 7884 | _LT_EOF
7884        _lt_result=$?
7885        if test -s conftest.err && $GREP force_load conftest.err; then
7886          cat conftest.err >&5
7887 <      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7887 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7888          lt_cv_ld_force_load=yes
7889        else
7890          cat conftest.err >&5
# Line 7866 | Line 7897 | fi
7897   $as_echo "$lt_cv_ld_force_load" >&6; }
7898      case $host_os in
7899      rhapsody* | darwin1.[012])
7900 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7900 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7901      darwin1.*)
7902 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7902 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7903      darwin*) # darwin 5.x on
7904        # if running on 10.5 or later, the deployment target defaults
7905        # to the OS version, if on x86, and 10.4, the deployment
7906        # target defaults to 10.4. Don't you love it?
7907        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7908          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7909 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7910 <        10.[012]*)
7911 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7909 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7910 >        10.[012][,.]*)
7911 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7912          10.*)
7913 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7913 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7914        esac
7915      ;;
7916    esac
7917 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7917 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7918        _lt_dar_single_mod='$single_module'
7919      fi
7920 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7921 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7920 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7921 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7922      else
7923 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7923 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7924      fi
7925 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7925 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7926        _lt_dsymutil='~$DSYMUTIL $lib || :'
7927      else
7928        _lt_dsymutil=
# Line 7899 | Line 7930 | $as_echo "$lt_cv_ld_force_load" >&6; }
7930      ;;
7931    esac
7932  
7933 + # func_munge_path_list VARIABLE PATH
7934 + # -----------------------------------
7935 + # VARIABLE is name of variable containing _space_ separated list of
7936 + # directories to be munged by the contents of PATH, which is string
7937 + # having a format:
7938 + # "DIR[:DIR]:"
7939 + #       string "DIR[ DIR]" will be prepended to VARIABLE
7940 + # ":DIR[:DIR]"
7941 + #       string "DIR[ DIR]" will be appended to VARIABLE
7942 + # "DIRP[:DIRP]::[DIRA:]DIRA"
7943 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7944 + #       "DIRA[ DIRA]" will be appended to VARIABLE
7945 + # "DIR[:DIR]"
7946 + #       VARIABLE will be replaced by "DIR[ DIR]"
7947 + func_munge_path_list ()
7948 + {
7949 +    case x$2 in
7950 +    x)
7951 +        ;;
7952 +    *:)
7953 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7954 +        ;;
7955 +    x:*)
7956 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7957 +        ;;
7958 +    *::*)
7959 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7960 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7961 +        ;;
7962 +    *)
7963 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7964 +        ;;
7965 +    esac
7966 + }
7967 +
7968   ac_ext=c
7969   ac_cpp='$CPP $CPPFLAGS'
7970   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8194 | Line 8260 | if test "${enable_static+set}" = set; th
8260      *)
8261       enable_static=no
8262        # Look at the argument we got.  We use all the common list separators.
8263 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8264        for pkg in $enableval; do
8265 <        IFS="$lt_save_ifs"
8265 >        IFS=$lt_save_ifs
8266          if test "X$pkg" = "X$p"; then
8267            enable_static=yes
8268          fi
8269        done
8270 <      IFS="$lt_save_ifs"
8270 >      IFS=$lt_save_ifs
8271        ;;
8272      esac
8273   else
# Line 8230 | Line 8296 | if test "${enable_shared+set}" = set; th
8296      *)
8297        enable_shared=no
8298        # Look at the argument we got.  We use all the common list separators.
8299 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8299 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8300        for pkg in $enableval; do
8301 <        IFS="$lt_save_ifs"
8301 >        IFS=$lt_save_ifs
8302          if test "X$pkg" = "X$p"; then
8303            enable_shared=yes
8304          fi
8305        done
8306 <      IFS="$lt_save_ifs"
8306 >      IFS=$lt_save_ifs
8307        ;;
8308      esac
8309   else
# Line 8262 | Line 8328 | if test "${with_pic+set}" = set; then :
8328      *)
8329        pic_mode=default
8330        # Look at the argument we got.  We use all the common list separators.
8331 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8331 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8332        for lt_pkg in $withval; do
8333 <        IFS="$lt_save_ifs"
8333 >        IFS=$lt_save_ifs
8334          if test "X$lt_pkg" = "X$lt_p"; then
8335            pic_mode=yes
8336          fi
8337        done
8338 <      IFS="$lt_save_ifs"
8338 >      IFS=$lt_save_ifs
8339        ;;
8340      esac
8341   else
# Line 8277 | Line 8343 | else
8343   fi
8344  
8345  
8280 – test -z "$pic_mode" && pic_mode=default
8281 –
8346  
8347  
8348  
# Line 8294 | Line 8358 | if test "${enable_fast_install+set}" = s
8358      *)
8359        enable_fast_install=no
8360        # Look at the argument we got.  We use all the common list separators.
8361 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8361 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8362        for pkg in $enableval; do
8363 <        IFS="$lt_save_ifs"
8363 >        IFS=$lt_save_ifs
8364          if test "X$pkg" = "X$p"; then
8365            enable_fast_install=yes
8366          fi
8367        done
8368 <      IFS="$lt_save_ifs"
8368 >      IFS=$lt_save_ifs
8369        ;;
8370      esac
8371   else
# Line 8315 | Line 8379 | fi
8379  
8380  
8381  
8382 +  shared_archive_member_spec=
8383 + case $host,$enable_shared in
8384 + power*-*-aix[5-9]*,yes)
8385 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8386 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8387 +
8388 + # Check whether --with-aix-soname was given.
8389 + if test "${with_aix_soname+set}" = set; then :
8390 +  withval=$with_aix_soname; case $withval in
8391 +    aix|svr4|both)
8392 +      ;;
8393 +    *)
8394 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8395 +      ;;
8396 +    esac
8397 +    lt_cv_with_aix_soname=$with_aix_soname
8398 + else
8399 +  if ${lt_cv_with_aix_soname+:} false; then :
8400 +  $as_echo_n "(cached) " >&6
8401 + else
8402 +  lt_cv_with_aix_soname=aix
8403 + fi
8404 +
8405 +    with_aix_soname=$lt_cv_with_aix_soname
8406 + fi
8407 +
8408 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8409 + $as_echo "$with_aix_soname" >&6; }
8410 +  if test aix != "$with_aix_soname"; then
8411 +    # For the AIX way of multilib, we name the shared archive member
8412 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8413 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8414 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8415 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8416 +    if test 64 = "${OBJECT_MODE-32}"; then
8417 +      shared_archive_member_spec=shr_64
8418 +    else
8419 +      shared_archive_member_spec=shr
8420 +    fi
8421 +  fi
8422 +  ;;
8423 + *)
8424 +  with_aix_soname=aix
8425 +  ;;
8426 + esac
8427 +
8428 +
8429 +
8430 +
8431 +
8432 +
8433 +
8434  
8435  
8436  
8437   # This can be used to rebuild libtool when needed
8438 < LIBTOOL_DEPS="$ltmain"
8438 > LIBTOOL_DEPS=$ltmain
8439  
8440   # Always use our own libtool.
8441   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8368 | Line 8484 | test -z "$LN_S" && LN_S="ln -s"
8484  
8485  
8486  
8487 < if test -n "${ZSH_VERSION+set}" ; then
8487 > if test -n "${ZSH_VERSION+set}"; then
8488     setopt NO_GLOB_SUBST
8489   fi
8490  
# Line 8407 | Line 8523 | aix3*)
8523    # AIX sometimes has problems with the GCC collect2 program.  For some
8524    # reason, if we set the COLLECT_NAMES environment variable, the problems
8525    # vanish in a puff of smoke.
8526 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8526 >  if test set != "${COLLECT_NAMES+set}"; then
8527      COLLECT_NAMES=
8528      export COLLECT_NAMES
8529    fi
# Line 8418 | Line 8534 | esac
8534   ofile=libtool
8535   can_build_shared=yes
8536  
8537 < # All known linkers require a `.a' archive for static linking (except MSVC,
8537 > # All known linkers require a '.a' archive for static linking (except MSVC,
8538   # which needs '.lib').
8539   libext=a
8540  
8541 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8541 > with_gnu_ld=$lt_cv_prog_gnu_ld
8542  
8543 < old_CC="$CC"
8544 < old_CFLAGS="$CFLAGS"
8543 > old_CC=$CC
8544 > old_CFLAGS=$CFLAGS
8545  
8546   # Set sane defaults for various variables
8547   test -z "$CC" && CC=cc
# Line 8434 | Line 8550 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8550   test -z "$LD" && LD=ld
8551   test -z "$ac_objext" && ac_objext=o
8552  
8553 < for cc_temp in $compiler""; do
8554 <  case $cc_temp in
8439 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8440 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8441 <    \-*) ;;
8442 <    *) break;;
8443 <  esac
8444 < done
8445 < cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8553 > func_cc_basename $compiler
8554 > cc_basename=$func_cc_basename_result
8555  
8556  
8557   # Only perform the check for file, if the check method requires it
# Line 8457 | Line 8566 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8566   else
8567    case $MAGIC_CMD in
8568   [\\/*] |  ?:[\\/]*)
8569 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8569 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8570    ;;
8571   *)
8572 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8573 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8572 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8573 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8574    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8575    for ac_dir in $ac_dummy; do
8576 <    IFS="$lt_save_ifs"
8576 >    IFS=$lt_save_ifs
8577      test -z "$ac_dir" && ac_dir=.
8578 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8579 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8578 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8579 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8580        if test -n "$file_magic_test_file"; then
8581          case $deplibs_check_method in
8582          "file_magic "*)
8583            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8584 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8584 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8585            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8586              $EGREP "$file_magic_regex" > /dev/null; then
8587              :
# Line 8495 | Line 8604 | _LT_EOF
8604        break
8605      fi
8606    done
8607 <  IFS="$lt_save_ifs"
8608 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8607 >  IFS=$lt_save_ifs
8608 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8609    ;;
8610   esac
8611   fi
8612  
8613 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8613 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8614   if test -n "$MAGIC_CMD"; then
8615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8616   $as_echo "$MAGIC_CMD" >&6; }
# Line 8523 | Line 8632 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8632   else
8633    case $MAGIC_CMD in
8634   [\\/*] |  ?:[\\/]*)
8635 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8635 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8636    ;;
8637   *)
8638 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8639 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8638 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8639 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8640    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8641    for ac_dir in $ac_dummy; do
8642 <    IFS="$lt_save_ifs"
8642 >    IFS=$lt_save_ifs
8643      test -z "$ac_dir" && ac_dir=.
8644 <    if test -f $ac_dir/file; then
8645 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8644 >    if test -f "$ac_dir/file"; then
8645 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8646        if test -n "$file_magic_test_file"; then
8647          case $deplibs_check_method in
8648          "file_magic "*)
8649            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8650 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8650 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8651            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8652              $EGREP "$file_magic_regex" > /dev/null; then
8653              :
# Line 8561 | Line 8670 | _LT_EOF
8670        break
8671      fi
8672    done
8673 <  IFS="$lt_save_ifs"
8674 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8673 >  IFS=$lt_save_ifs
8674 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8675    ;;
8676   esac
8677   fi
8678  
8679 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8679 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8680   if test -n "$MAGIC_CMD"; then
8681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8682   $as_echo "$MAGIC_CMD" >&6; }
# Line 8588 | Line 8697 | esac
8697  
8698   # Use C for the default configuration in the libtool script
8699  
8700 < lt_save_CC="$CC"
8700 > lt_save_CC=$CC
8701   ac_ext=c
8702   ac_cpp='$CPP $CPPFLAGS'
8703   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8642 | Line 8751 | _lt_linker_boilerplate=`cat conftest.err
8751   $RM -r conftest*
8752  
8753  
8754 + ## CAVEAT EMPTOR:
8755 + ## There is no encapsulation within the following macros, do not change
8756 + ## the running order or otherwise move them around unless you know exactly
8757 + ## what you are doing...
8758   if test -n "$compiler"; then
8759  
8760   lt_prog_compiler_no_builtin_flag=
8761  
8762 < if test "$GCC" = yes; then
8762 > if test yes = "$GCC"; then
8763    case $cc_basename in
8764    nvcc*)
8765      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8662 | Line 8775 | else
8775    lt_cv_prog_compiler_rtti_exceptions=no
8776     ac_outfile=conftest.$ac_objext
8777     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8778 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8779     # Insert the option either (1) after the last *FLAGS variable, or
8780     # (2) before a word containing "conftest.", or (3) at the end.
8781     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8692 | Line 8805 | fi
8805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8806   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8807  
8808 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8808 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8809      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8810   else
8811      :
# Line 8710 | Line 8823 | lt_prog_compiler_pic=
8823   lt_prog_compiler_static=
8824  
8825  
8826 <  if test "$GCC" = yes; then
8826 >  if test yes = "$GCC"; then
8827      lt_prog_compiler_wl='-Wl,'
8828      lt_prog_compiler_static='-static'
8829  
8830      case $host_os in
8831        aix*)
8832        # All AIX code is PIC.
8833 <      if test "$host_cpu" = ia64; then
8833 >      if test ia64 = "$host_cpu"; then
8834          # AIX 5 now supports IA64 processor
8835          lt_prog_compiler_static='-Bstatic'
8836        fi
8837 +      lt_prog_compiler_pic='-fPIC'
8838        ;;
8839  
8840      amigaos*)
# Line 8731 | Line 8845 | lt_prog_compiler_static=
8845          ;;
8846        m68k)
8847              # FIXME: we need at least 68020 code to build shared libraries, but
8848 <            # adding the `-m68020' flag to GCC prevents building anything better,
8849 <            # like `-m68040'.
8848 >            # adding the '-m68020' flag to GCC prevents building anything better,
8849 >            # like '-m68040'.
8850              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8851          ;;
8852        esac
# Line 8748 | Line 8862 | lt_prog_compiler_static=
8862        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8863        # (--disable-auto-import) libraries
8864        lt_prog_compiler_pic='-DDLL_EXPORT'
8865 +      case $host_os in
8866 +      os2*)
8867 +        lt_prog_compiler_static='$wl-static'
8868 +        ;;
8869 +      esac
8870        ;;
8871  
8872      darwin* | rhapsody*)
# Line 8818 | Line 8937 | lt_prog_compiler_static=
8937      case $host_os in
8938      aix*)
8939        lt_prog_compiler_wl='-Wl,'
8940 <      if test "$host_cpu" = ia64; then
8940 >      if test ia64 = "$host_cpu"; then
8941          # AIX 5 now supports IA64 processor
8942          lt_prog_compiler_static='-Bstatic'
8943        else
# Line 8826 | Line 8945 | lt_prog_compiler_static=
8945        fi
8946        ;;
8947  
8948 +    darwin* | rhapsody*)
8949 +      # PIC is the default on this platform
8950 +      # Common symbols not allowed in MH_DYLIB files
8951 +      lt_prog_compiler_pic='-fno-common'
8952 +      case $cc_basename in
8953 +      nagfor*)
8954 +        # NAG Fortran compiler
8955 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8956 +        lt_prog_compiler_pic='-PIC'
8957 +        lt_prog_compiler_static='-Bstatic'
8958 +        ;;
8959 +      esac
8960 +      ;;
8961 +
8962      mingw* | cygwin* | pw32* | os2* | cegcc*)
8963        # This hack is so that the source file can tell whether it is being
8964        # built for inclusion in a dll (and should export symbols for example).
8965        lt_prog_compiler_pic='-DDLL_EXPORT'
8966 +      case $host_os in
8967 +      os2*)
8968 +        lt_prog_compiler_static='$wl-static'
8969 +        ;;
8970 +      esac
8971        ;;
8972  
8973      hpux9* | hpux10* | hpux11*)
# Line 8845 | Line 8983 | lt_prog_compiler_static=
8983          ;;
8984        esac
8985        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8986 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8986 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8987        ;;
8988  
8989      irix5* | irix6* | nonstopux*)
# Line 8854 | Line 8992 | lt_prog_compiler_static=
8992        lt_prog_compiler_static='-non_shared'
8993        ;;
8994  
8995 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8995 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8996        case $cc_basename in
8997 <      # old Intel for x86_64 which still supported -KPIC.
8997 >      # old Intel for x86_64, which still supported -KPIC.
8998        ecc*)
8999          lt_prog_compiler_wl='-Wl,'
9000          lt_prog_compiler_pic='-KPIC'
9001          lt_prog_compiler_static='-static'
9002          ;;
9003 +      # flang / f18. f95 an alias for gfortran or flang on Debian
9004 +      flang* | f18* | f95*)
9005 +        lt_prog_compiler_wl='-Wl,'
9006 +        lt_prog_compiler_pic='-fPIC'
9007 +        lt_prog_compiler_static='-static'
9008 +        ;;
9009        # icc used to be incompatible with GCC.
9010        # ICC 10 doesn't accept -KPIC any more.
9011        icc* | ifort*)
# Line 8881 | Line 9025 | lt_prog_compiler_static=
9025          lt_prog_compiler_pic='-PIC'
9026          lt_prog_compiler_static='-Bstatic'
9027          ;;
9028 +      tcc*)
9029 +        # Fabrice Bellard et al's Tiny C Compiler
9030 +        lt_prog_compiler_wl='-Wl,'
9031 +        lt_prog_compiler_pic='-fPIC'
9032 +        lt_prog_compiler_static='-static'
9033 +        ;;
9034        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9035          # Portland Group compilers (*not* the Pentium gcc compiler,
9036          # which looks to be a dead project)
# Line 8978 | Line 9128 | lt_prog_compiler_static=
9128        ;;
9129  
9130      sysv4*MP*)
9131 <      if test -d /usr/nec ;then
9131 >      if test -d /usr/nec; then
9132          lt_prog_compiler_pic='-Kconform_pic'
9133          lt_prog_compiler_static='-Bstatic'
9134        fi
# Line 9007 | Line 9157 | lt_prog_compiler_static=
9157    fi
9158  
9159   case $host_os in
9160 <  # For platforms which do not support PIC, -DPIC is meaningless:
9160 >  # For platforms that do not support PIC, -DPIC is meaningless:
9161    *djgpp*)
9162      lt_prog_compiler_pic=
9163      ;;
# Line 9039 | Line 9189 | else
9189    lt_cv_prog_compiler_pic_works=no
9190     ac_outfile=conftest.$ac_objext
9191     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9192 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9192 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9193     # Insert the option either (1) after the last *FLAGS variable, or
9194     # (2) before a word containing "conftest.", or (3) at the end.
9195     # Note that $ac_compile itself does not contain backslashes and begins
# Line 9069 | Line 9219 | fi
9219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9220   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9221  
9222 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9222 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9223      case $lt_prog_compiler_pic in
9224       "" | " "*) ;;
9225       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 9101 | Line 9251 | if ${lt_cv_prog_compiler_static_works+:}
9251    $as_echo_n "(cached) " >&6
9252   else
9253    lt_cv_prog_compiler_static_works=no
9254 <   save_LDFLAGS="$LDFLAGS"
9254 >   save_LDFLAGS=$LDFLAGS
9255     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9256     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9257     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9120 | Line 9270 | else
9270       fi
9271     fi
9272     $RM -r conftest*
9273 <   LDFLAGS="$save_LDFLAGS"
9273 >   LDFLAGS=$save_LDFLAGS
9274  
9275   fi
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9277   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9278  
9279 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9279 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9280      :
9281   else
9282      lt_prog_compiler_static=
# Line 9246 | Line 9396 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9396  
9397  
9398  
9399 < hard_links="nottested"
9400 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9399 > hard_links=nottested
9400 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9401    # do not overwrite the value of need_locks provided by the user
9402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9403   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 9259 | Line 9409 | $as_echo_n "checking if we can lock with
9409    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9411   $as_echo "$hard_links" >&6; }
9412 <  if test "$hard_links" = no; then
9413 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9414 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9412 >  if test no = "$hard_links"; then
9413 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9414 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9415      need_locks=warn
9416    fi
9417   else
# Line 9304 | Line 9454 | $as_echo_n "checking whether the $compil
9454    # included in the symbol list
9455    include_expsyms=
9456    # exclude_expsyms can be an extended regexp of symbols to exclude
9457 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9458 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9459 <  # as well as any symbol that contains `d'.
9457 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9458 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9459 >  # as well as any symbol that contains 'd'.
9460    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9461    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9462    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9321 | Line 9471 | $as_echo_n "checking whether the $compil
9471      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9472      # When not using gcc, we currently assume that we are using
9473      # Microsoft Visual C++.
9474 <    if test "$GCC" != yes; then
9474 >    if test yes != "$GCC"; then
9475        with_gnu_ld=no
9476      fi
9477      ;;
# Line 9329 | Line 9479 | $as_echo_n "checking whether the $compil
9479      # we just hope/assume this is gcc and not c89 (= MSVC++)
9480      with_gnu_ld=yes
9481      ;;
9482 <  openbsd*)
9482 >  openbsd* | bitrig*)
9483      with_gnu_ld=no
9484      ;;
9485 +  linux* | k*bsd*-gnu | gnu*)
9486 +    link_all_deplibs=no
9487 +    ;;
9488    esac
9489  
9490    ld_shlibs=yes
# Line 9339 | Line 9492 | $as_echo_n "checking whether the $compil
9492    # On some targets, GNU ld is compatible enough with the native linker
9493    # that we're better off using the native interface for both.
9494    lt_use_gnu_ld_interface=no
9495 <  if test "$with_gnu_ld" = yes; then
9495 >  if test yes = "$with_gnu_ld"; then
9496      case $host_os in
9497        aix*)
9498          # The AIX port of GNU ld has always aspired to compatibility
# Line 9361 | Line 9514 | $as_echo_n "checking whether the $compil
9514      esac
9515    fi
9516  
9517 <  if test "$lt_use_gnu_ld_interface" = yes; then
9517 >  if test yes = "$lt_use_gnu_ld_interface"; then
9518      # If archive_cmds runs LD, not CC, wlarc should be empty
9519 <    wlarc='${wl}'
9519 >    wlarc='$wl'
9520  
9521      # Set some defaults for GNU ld with shared library support. These
9522      # are reset later if shared libraries are not supported. Putting them
9523      # here allows them to be overridden if necessary.
9524      runpath_var=LD_RUN_PATH
9525 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9525 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9526 >    export_dynamic_flag_spec='$wl--export-dynamic'
9527      # ancient GNU ld didn't support --whole-archive et. al.
9528      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9529 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9529 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9530      else
9531        whole_archive_flag_spec=
9532      fi
9533      supports_anon_versioning=no
9534 <    case `$LD -v 2>&1` in
9534 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9535        *GNU\ gold*) supports_anon_versioning=yes ;;
9536        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9537        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9391 | Line 9544 | $as_echo_n "checking whether the $compil
9544      case $host_os in
9545      aix[3-9]*)
9546        # On AIX/PPC, the GNU linker is very broken
9547 <      if test "$host_cpu" != ia64; then
9547 >      if test ia64 != "$host_cpu"; then
9548          ld_shlibs=no
9549          cat <<_LT_EOF 1>&2
9550  
# Line 9410 | Line 9563 | _LT_EOF
9563        case $host_cpu in
9564        powerpc)
9565              # see comment about AmigaOS4 .so support
9566 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9567              archive_expsym_cmds=''
9568          ;;
9569        m68k)
# Line 9426 | Line 9579 | _LT_EOF
9579          allow_undefined_flag=unsupported
9580          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9581          # support --undefined.  This deserves some investigation.  FIXME
9582 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9583        else
9584          ld_shlibs=no
9585        fi
# Line 9436 | Line 9589 | _LT_EOF
9589        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9590        # as there is no search path for DLLs.
9591        hardcode_libdir_flag_spec='-L$libdir'
9592 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9592 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9593        allow_undefined_flag=unsupported
9594        always_export_symbols=no
9595        enable_shared_with_static_runtimes=yes
# Line 9444 | Line 9597 | _LT_EOF
9597        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9598  
9599        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9600 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9601 <        # If the export-symbols file already is a .def file (1st line
9602 <        # is EXPORTS), use it as is; otherwise, prepend...
9603 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9604 <          cp $export_symbols $output_objdir/$soname.def;
9605 <        else
9606 <          echo EXPORTS > $output_objdir/$soname.def;
9607 <          cat $export_symbols >> $output_objdir/$soname.def;
9608 <        fi~
9609 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9600 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9601 >        # If the export-symbols file already is a .def file, use it as
9602 >        # is; otherwise, prepend EXPORTS...
9603 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9604 >          cp $export_symbols $output_objdir/$soname.def;
9605 >        else
9606 >          echo EXPORTS > $output_objdir/$soname.def;
9607 >          cat $export_symbols >> $output_objdir/$soname.def;
9608 >        fi~
9609 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9610        else
9611          ld_shlibs=no
9612        fi
9613        ;;
9614  
9615      haiku*)
9616 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9616 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9617        link_all_deplibs=yes
9618        ;;
9619  
9620 +    os2*)
9621 +      hardcode_libdir_flag_spec='-L$libdir'
9622 +      hardcode_minus_L=yes
9623 +      allow_undefined_flag=unsupported
9624 +      shrext_cmds=.dll
9625 +      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9626 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9627 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9628 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9629 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9630 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9631 +        emximp -o $lib $output_objdir/$libname.def'
9632 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9633 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9634 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9635 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9636 +        prefix_cmds="$SED"~
9637 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9638 +          prefix_cmds="$prefix_cmds -e 1d";
9639 +        fi~
9640 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9641 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9642 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9643 +        emximp -o $lib $output_objdir/$libname.def'
9644 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9645 +      enable_shared_with_static_runtimes=yes
9646 +      ;;
9647 +
9648      interix[3-9]*)
9649        hardcode_direct=no
9650        hardcode_shlibpath_var=no
9651 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9652 <      export_dynamic_flag_spec='${wl}-E'
9651 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9652 >      export_dynamic_flag_spec='$wl-E'
9653        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9654        # Instead, shared libraries are loaded at an image base (0x10000000 by
9655        # default) and relocated if they conflict, which is a slow very memory
9656        # consuming and fragmenting process.  To avoid this, we pick a random,
9657        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9658        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9659 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9660 <      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'
9659 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9660 >      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'
9661        ;;
9662  
9663      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9664        tmp_diet=no
9665 <      if test "$host_os" = linux-dietlibc; then
9665 >      if test linux-dietlibc = "$host_os"; then
9666          case $cc_basename in
9667            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9668          esac
9669        fi
9670        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9671 <         && test "$tmp_diet" = no
9671 >         && test no = "$tmp_diet"
9672        then
9673          tmp_addflag=' $pic_flag'
9674          tmp_sharedflag='-shared'
9675          case $cc_basename,$host_cpu in
9676          pgcc*)                          # Portland Group C compiler
9677 <          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'
9677 >          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'
9678            tmp_addflag=' $pic_flag'
9679            ;;
9680          pgf77* | pgf90* | pgf95* | pgfortran*)
9681                                          # Portland Group f77 and f90 compilers
9682 <          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'
9682 >          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            tmp_addflag=' $pic_flag -Mnomain' ;;
9684          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9685            tmp_addflag=' -i_dynamic' ;;
# Line 9509 | Line 9690 | _LT_EOF
9690          lf95*)                          # Lahey Fortran 8.1
9691            whole_archive_flag_spec=
9692            tmp_sharedflag='--shared' ;;
9693 +        nagfor*)                        # NAGFOR 5.3
9694 +          tmp_sharedflag='-Wl,-shared' ;;
9695          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9696            tmp_sharedflag='-qmkshrobj'
9697            tmp_addflag= ;;
9698          nvcc*)  # Cuda Compiler Driver 2.2
9699 <          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'
9699 >          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'
9700            compiler_needs_object=yes
9701            ;;
9702          esac
9703          case `$CC -V 2>&1 | sed 5q` in
9704          *Sun\ C*)                       # Sun C 5.9
9705 <          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'
9705 >          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'
9706            compiler_needs_object=yes
9707            tmp_sharedflag='-G' ;;
9708          *Sun\ F*)                       # Sun Fortran 8.3
9709            tmp_sharedflag='-G' ;;
9710          esac
9711 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9712  
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 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$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 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9718          fi
9719  
9720          case $cc_basename in
9721 +        tcc*)
9722 +          export_dynamic_flag_spec='-rdynamic'
9723 +          ;;
9724          xlf* | bgf* | bgxlf* | mpixlf*)
9725            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9726            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9727 <          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9727 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9728            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9729 <          if test "x$supports_anon_versioning" = xyes; then
9729 >          if test yes = "$supports_anon_versioning"; then
9730              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9731 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9732 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9733 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9731 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9732 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9733 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9734            fi
9735            ;;
9736          esac
# Line 9553 | Line 9739 | _LT_EOF
9739        fi
9740        ;;
9741  
9742 <    netbsd*)
9742 >    netbsd* | netbsdelf*-gnu)
9743        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9744          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9745          wlarc=
9746        else
9747 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9747 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9748 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9749        fi
9750        ;;
9751  
# Line 9577 | Line 9763 | _LT_EOF
9763  
9764   _LT_EOF
9765        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9766 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9766 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9767 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9768        else
9769          ld_shlibs=no
9770        fi
# Line 9590 | Line 9776 | _LT_EOF
9776          ld_shlibs=no
9777          cat <<_LT_EOF 1>&2
9778  
9779 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9779 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9780   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9781   *** is disabling shared libraries support.  We urge you to upgrade GNU
9782   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9605 | Line 9791 | _LT_EOF
9791            # DT_RUNPATH tag from executables and libraries.  But doing so
9792            # requires that you compile everything twice, which is a pain.
9793            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9794 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9795 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9796 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9797            else
9798              ld_shlibs=no
9799            fi
# Line 9624 | Line 9810 | _LT_EOF
9810  
9811      *)
9812        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9813 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9814 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9813 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9814 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9815        else
9816          ld_shlibs=no
9817        fi
9818        ;;
9819      esac
9820  
9821 <    if test "$ld_shlibs" = no; then
9821 >    if test no = "$ld_shlibs"; then
9822        runpath_var=
9823        hardcode_libdir_flag_spec=
9824        export_dynamic_flag_spec=
# Line 9648 | Line 9834 | _LT_EOF
9834        # Note: this linker hardcodes the directories in LIBPATH if there
9835        # are no directories specified by -L.
9836        hardcode_minus_L=yes
9837 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9837 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9838          # Neither direct hardcoding nor static linking is supported with a
9839          # broken collect2.
9840          hardcode_direct=unsupported
# Line 9656 | Line 9842 | _LT_EOF
9842        ;;
9843  
9844      aix[4-9]*)
9845 <      if test "$host_cpu" = ia64; then
9845 >      if test ia64 = "$host_cpu"; then
9846          # On IA64, the linker does run time linking by default, so we don't
9847          # have to do anything special.
9848          aix_use_runtimelinking=no
9849          exp_sym_flag='-Bexport'
9850 <        no_entry_flag=""
9850 >        no_entry_flag=
9851        else
9852          # If we're using GNU nm, then we don't want the "-C" option.
9853 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9854 <        # Also, AIX nm treats weak defined symbols like other global
9855 <        # defined symbols, whereas GNU nm marks them as "W".
9853 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9854 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9855 >        # weak defined symbols like other global defined symbols, whereas
9856 >        # GNU nm marks them as "W".
9857 >        # While the 'weak' keyword is ignored in the Export File, we need
9858 >        # it in the Import File for the 'aix-soname' feature, so we have
9859 >        # to replace the "-B" option with "-P" for AIX nm.
9860          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9861 <          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'
9861 >          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'
9862          else
9863 <          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'
9863 >          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'
9864          fi
9865          aix_use_runtimelinking=no
9866  
9867          # Test if we are trying to use run time linking or normal
9868          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9869 <        # need to do runtime linking.
9869 >        # have runtime linking enabled, and use it for executables.
9870 >        # For shared libraries, we enable/disable runtime linking
9871 >        # depending on the kind of the shared library created -
9872 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9873 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9874 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9875 >        #            lib.a           static archive
9876 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9877 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9878 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9879 >        #            lib.a(lib.so.V) shared, rtl:no
9880 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9881 >        #            lib.a           static archive
9882          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9883            for ld_flag in $LDFLAGS; do
9884 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9884 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9885              aix_use_runtimelinking=yes
9886              break
9887            fi
9888            done
9889 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9890 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9891 +            # so we don't have lib.a shared libs to link our executables.
9892 +            # We have to force runtime linking in this case.
9893 +            aix_use_runtimelinking=yes
9894 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9895 +          fi
9896            ;;
9897          esac
9898  
# Line 9702 | Line 9911 | _LT_EOF
9911        hardcode_direct_absolute=yes
9912        hardcode_libdir_separator=':'
9913        link_all_deplibs=yes
9914 <      file_list_spec='${wl}-f,'
9914 >      file_list_spec='$wl-f,'
9915 >      case $with_aix_soname,$aix_use_runtimelinking in
9916 >      aix,*) ;; # traditional, no import file
9917 >      svr4,* | *,yes) # use import file
9918 >        # The Import File defines what to hardcode.
9919 >        hardcode_direct=no
9920 >        hardcode_direct_absolute=no
9921 >        ;;
9922 >      esac
9923  
9924 <      if test "$GCC" = yes; then
9924 >      if test yes = "$GCC"; then
9925          case $host_os in aix4.[012]|aix4.[012].*)
9926          # We only want to do this on AIX 4.2 and lower, the check
9927          # below for broken collect2 doesn't work under 4.3+
9928 <          collect2name=`${CC} -print-prog-name=collect2`
9928 >          collect2name=`$CC -print-prog-name=collect2`
9929            if test -f "$collect2name" &&
9930             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9931            then
# Line 9727 | Line 9944 | _LT_EOF
9944            ;;
9945          esac
9946          shared_flag='-shared'
9947 <        if test "$aix_use_runtimelinking" = yes; then
9948 <          shared_flag="$shared_flag "'${wl}-G'
9947 >        if test yes = "$aix_use_runtimelinking"; then
9948 >          shared_flag="$shared_flag "'$wl-G'
9949          fi
9950 +        # Need to ensure runtime linking is disabled for the traditional
9951 +        # shared library, or the linker may eventually find shared libraries
9952 +        # /with/ Import File - we do not want to mix them.
9953 +        shared_flag_aix='-shared'
9954 +        shared_flag_svr4='-shared $wl-G'
9955        else
9956          # not using gcc
9957 <        if test "$host_cpu" = ia64; then
9957 >        if test ia64 = "$host_cpu"; then
9958          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9959          # chokes on -Wl,-G. The following line is correct:
9960            shared_flag='-G'
9961          else
9962 <          if test "$aix_use_runtimelinking" = yes; then
9963 <            shared_flag='${wl}-G'
9962 >          if test yes = "$aix_use_runtimelinking"; then
9963 >            shared_flag='$wl-G'
9964            else
9965 <            shared_flag='${wl}-bM:SRE'
9965 >            shared_flag='$wl-bM:SRE'
9966            fi
9967 +          shared_flag_aix='$wl-bM:SRE'
9968 +          shared_flag_svr4='$wl-G'
9969          fi
9970        fi
9971  
9972 <      export_dynamic_flag_spec='${wl}-bexpall'
9972 >      export_dynamic_flag_spec='$wl-bexpall'
9973        # It seems that -bexpall does not export symbols beginning with
9974        # underscore (_), so it is better to generate a list of symbols to export.
9975        always_export_symbols=yes
9976 <      if test "$aix_use_runtimelinking" = yes; then
9976 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9977          # Warning - without using the other runtime loading flags (-brtl),
9978          # -berok will link without error, but may produce a broken library.
9979          allow_undefined_flag='-berok'
9980          # Determine the default libpath from the value encoded in an
9981          # empty executable.
9982 <        if test "${lt_cv_aix_libpath+set}" = set; then
9982 >        if test set = "${lt_cv_aix_libpath+set}"; then
9983    aix_libpath=$lt_cv_aix_libpath
9984   else
9985    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9790 | Line 10014 | fi
10014   rm -f core conftest.err conftest.$ac_objext \
10015      conftest$ac_exeext conftest.$ac_ext
10016    if test -z "$lt_cv_aix_libpath_"; then
10017 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10017 >    lt_cv_aix_libpath_=/usr/lib:/lib
10018    fi
10019  
10020   fi
# Line 9798 | Line 10022 | fi
10022    aix_libpath=$lt_cv_aix_libpath_
10023   fi
10024  
10025 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10026 <        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"
10025 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10026 >        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
10027        else
10028 <        if test "$host_cpu" = ia64; then
10029 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10028 >        if test ia64 = "$host_cpu"; then
10029 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10030            allow_undefined_flag="-z nodefs"
10031 <          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"
10031 >          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"
10032          else
10033           # Determine the default libpath from the value encoded in an
10034           # empty executable.
10035 <         if test "${lt_cv_aix_libpath+set}" = set; then
10035 >         if test set = "${lt_cv_aix_libpath+set}"; then
10036    aix_libpath=$lt_cv_aix_libpath
10037   else
10038    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9843 | Line 10067 | fi
10067   rm -f core conftest.err conftest.$ac_objext \
10068      conftest$ac_exeext conftest.$ac_ext
10069    if test -z "$lt_cv_aix_libpath_"; then
10070 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10070 >    lt_cv_aix_libpath_=/usr/lib:/lib
10071    fi
10072  
10073   fi
# Line 9851 | Line 10075 | fi
10075    aix_libpath=$lt_cv_aix_libpath_
10076   fi
10077  
10078 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10078 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10079            # Warning - without using the other run time loading flags,
10080            # -berok will link without error, but may produce a broken library.
10081 <          no_undefined_flag=' ${wl}-bernotok'
10082 <          allow_undefined_flag=' ${wl}-berok'
10083 <          if test "$with_gnu_ld" = yes; then
10081 >          no_undefined_flag=' $wl-bernotok'
10082 >          allow_undefined_flag=' $wl-berok'
10083 >          if test yes = "$with_gnu_ld"; then
10084              # We only use this code for GNU lds that support --whole-archive.
10085 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10085 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10086            else
10087              # Exported symbols can be pulled into shared objects from archives
10088              whole_archive_flag_spec='$convenience'
10089            fi
10090            archive_cmds_need_lc=yes
10091 <          # This is similar to how AIX traditionally builds its shared libraries.
10092 <          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'
10091 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10092 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10093 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10094 >          if test svr4 != "$with_aix_soname"; then
10095 >            # This is similar to how AIX traditionally builds its shared libraries.
10096 >            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'
10097 >          fi
10098 >          if test aix != "$with_aix_soname"; then
10099 >            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'
10100 >          else
10101 >            # used by -dlpreopen to get the symbols
10102 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10103 >          fi
10104 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10105          fi
10106        fi
10107        ;;
# Line 9874 | Line 10110 | fi
10110        case $host_cpu in
10111        powerpc)
10112              # see comment about AmigaOS4 .so support
10113 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10114              archive_expsym_cmds=''
10115          ;;
10116        m68k)
# Line 9904 | Line 10140 | fi
10140          # Tell ltmain to make .lib files, not .a files.
10141          libext=lib
10142          # Tell ltmain to make .dll files, not .so files.
10143 <        shrext_cmds=".dll"
10143 >        shrext_cmds=.dll
10144          # FIXME: Setting linknames here is a bad hack.
10145 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10146 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10147 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10148 <          else
10149 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10150 <          fi~
10151 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10152 <          linknames='
10145 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10146 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10147 >            cp "$export_symbols" "$output_objdir/$soname.def";
10148 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10149 >          else
10150 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10151 >          fi~
10152 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10153 >          linknames='
10154          # The linker will not automatically build a static lib if we build a DLL.
10155          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10156          enable_shared_with_static_runtimes=yes
# Line 9922 | Line 10159 | fi
10159          # Don't use ranlib
10160          old_postinstall_cmds='chmod 644 $oldlib'
10161          postlink_cmds='lt_outputfile="@OUTPUT@"~
10162 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
10163 <          case $lt_outputfile in
10164 <            *.exe|*.EXE) ;;
10165 <            *)
10166 <              lt_outputfile="$lt_outputfile.exe"
10167 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
10168 <              ;;
10169 <          esac~
10170 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10171 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10172 <            $RM "$lt_outputfile.manifest";
10173 <          fi'
10162 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10163 >          case $lt_outputfile in
10164 >            *.exe|*.EXE) ;;
10165 >            *)
10166 >              lt_outputfile=$lt_outputfile.exe
10167 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10168 >              ;;
10169 >          esac~
10170 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10171 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10172 >            $RM "$lt_outputfile.manifest";
10173 >          fi'
10174          ;;
10175        *)
10176          # Assume MSVC wrapper
# Line 9942 | Line 10179 | fi
10179          # Tell ltmain to make .lib files, not .a files.
10180          libext=lib
10181          # Tell ltmain to make .dll files, not .so files.
10182 <        shrext_cmds=".dll"
10182 >        shrext_cmds=.dll
10183          # FIXME: Setting linknames here is a bad hack.
10184          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10185          # The linker will automatically build a .lib file if we build a DLL.
# Line 9961 | Line 10198 | fi
10198    hardcode_direct=no
10199    hardcode_automatic=yes
10200    hardcode_shlibpath_var=unsupported
10201 <  if test "$lt_cv_ld_force_load" = "yes"; then
10202 <    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\"`'
10201 >  if test yes = "$lt_cv_ld_force_load"; then
10202 >    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\"`'
10203  
10204    else
10205      whole_archive_flag_spec=''
10206    fi
10207    link_all_deplibs=yes
10208 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10208 >  allow_undefined_flag=$_lt_dar_allow_undefined
10209    case $cc_basename in
10210 <     ifort*) _lt_dar_can_shared=yes ;;
10210 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10211       *) _lt_dar_can_shared=$GCC ;;
10212    esac
10213 <  if test "$_lt_dar_can_shared" = "yes"; then
10213 >  if test yes = "$_lt_dar_can_shared"; then
10214      output_verbose_link_cmd=func_echo_all
10215 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10216 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10217 <    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}"
10218 <    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}"
10215 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10216 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10217 >    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"
10218 >    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"
10219  
10220    else
10221    ld_shlibs=no
# Line 10020 | Line 10257 | fi
10257        ;;
10258  
10259      hpux9*)
10260 <      if test "$GCC" = yes; then
10261 <        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'
10260 >      if test yes = "$GCC"; then
10261 >        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'
10262        else
10263 <        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'
10263 >        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'
10264        fi
10265 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10265 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10266        hardcode_libdir_separator=:
10267        hardcode_direct=yes
10268  
10269        # hardcode_minus_L: Not really in the search PATH,
10270        # but as the default location of the library.
10271        hardcode_minus_L=yes
10272 <      export_dynamic_flag_spec='${wl}-E'
10272 >      export_dynamic_flag_spec='$wl-E'
10273        ;;
10274  
10275      hpux10*)
10276 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10277 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10276 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10277 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10278        else
10279          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10280        fi
10281 <      if test "$with_gnu_ld" = no; then
10282 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10281 >      if test no = "$with_gnu_ld"; then
10282 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10283          hardcode_libdir_separator=:
10284          hardcode_direct=yes
10285          hardcode_direct_absolute=yes
10286 <        export_dynamic_flag_spec='${wl}-E'
10286 >        export_dynamic_flag_spec='$wl-E'
10287          # hardcode_minus_L: Not really in the search PATH,
10288          # but as the default location of the library.
10289          hardcode_minus_L=yes
# Line 10054 | Line 10291 | fi
10291        ;;
10292  
10293      hpux11*)
10294 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10294 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10295          case $host_cpu in
10296          hppa*64*)
10297 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10298            ;;
10299          ia64*)
10300 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10300 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10301            ;;
10302          *)
10303 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10303 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10304            ;;
10305          esac
10306        else
10307          case $host_cpu in
10308          hppa*64*)
10309 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10309 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10310            ;;
10311          ia64*)
10312 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10312 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10313            ;;
10314          *)
10315  
# Line 10084 | Line 10321 | if ${lt_cv_prog_compiler__b+:} false; th
10321    $as_echo_n "(cached) " >&6
10322   else
10323    lt_cv_prog_compiler__b=no
10324 <   save_LDFLAGS="$LDFLAGS"
10324 >   save_LDFLAGS=$LDFLAGS
10325     LDFLAGS="$LDFLAGS -b"
10326     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10327     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 10103 | Line 10340 | else
10340       fi
10341     fi
10342     $RM -r conftest*
10343 <   LDFLAGS="$save_LDFLAGS"
10343 >   LDFLAGS=$save_LDFLAGS
10344  
10345   fi
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10347   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10348  
10349 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10350 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10349 > if test yes = "$lt_cv_prog_compiler__b"; then
10350 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10351   else
10352      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10353   fi
# Line 10118 | Line 10355 | fi
10355            ;;
10356          esac
10357        fi
10358 <      if test "$with_gnu_ld" = no; then
10359 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10358 >      if test no = "$with_gnu_ld"; then
10359 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10360          hardcode_libdir_separator=:
10361  
10362          case $host_cpu in
# Line 10130 | Line 10367 | fi
10367          *)
10368            hardcode_direct=yes
10369            hardcode_direct_absolute=yes
10370 <          export_dynamic_flag_spec='${wl}-E'
10370 >          export_dynamic_flag_spec='$wl-E'
10371  
10372            # hardcode_minus_L: Not really in the search PATH,
10373            # but as the default location of the library.
# Line 10141 | Line 10378 | fi
10378        ;;
10379  
10380      irix5* | irix6* | nonstopux*)
10381 <      if test "$GCC" = yes; then
10382 <        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'
10381 >      if test yes = "$GCC"; then
10382 >        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'
10383          # Try to use the -exported_symbol ld option, if it does not
10384          # work, assume that -exports_file does not work either and
10385          # implicitly export all symbols.
# Line 10152 | Line 10389 | $as_echo_n "checking whether the $host_o
10389   if ${lt_cv_irix_exported_symbol+:} false; then :
10390    $as_echo_n "(cached) " >&6
10391   else
10392 <  save_LDFLAGS="$LDFLAGS"
10393 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10392 >  save_LDFLAGS=$LDFLAGS
10393 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10394             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395   /* end confdefs.h.  */
10396   int foo (void) { return 0; }
# Line 10165 | Line 10402 | else
10402   fi
10403   rm -f core conftest.err conftest.$ac_objext \
10404      conftest$ac_exeext conftest.$ac_ext
10405 <           LDFLAGS="$save_LDFLAGS"
10405 >           LDFLAGS=$save_LDFLAGS
10406   fi
10407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10408   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10409 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10410 <          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'
10409 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10410 >          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'
10411          fi
10412 +        link_all_deplibs=no
10413        else
10414 <        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'
10415 <        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'
10414 >        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'
10415 >        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'
10416        fi
10417        archive_cmds_need_lc='no'
10418 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10418 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10419        hardcode_libdir_separator=:
10420        inherit_rpath=yes
10421        link_all_deplibs=yes
10422        ;;
10423  
10424 <    netbsd*)
10424 >    linux*)
10425 >      case $cc_basename in
10426 >      tcc*)
10427 >        # Fabrice Bellard et al's Tiny C Compiler
10428 >        ld_shlibs=yes
10429 >        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10430 >        ;;
10431 >      esac
10432 >      ;;
10433 >
10434 >    netbsd* | netbsdelf*-gnu)
10435        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10436          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10437        else
# Line 10197 | Line 10445 | $as_echo "$lt_cv_irix_exported_symbol" >
10445      newsos6)
10446        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10447        hardcode_direct=yes
10448 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10448 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10449        hardcode_libdir_separator=:
10450        hardcode_shlibpath_var=no
10451        ;;
# Line 10205 | Line 10453 | $as_echo "$lt_cv_irix_exported_symbol" >
10453      *nto* | *qnx*)
10454        ;;
10455  
10456 <    openbsd*)
10456 >    openbsd* | bitrig*)
10457        if test -f /usr/libexec/ld.so; then
10458          hardcode_direct=yes
10459          hardcode_shlibpath_var=no
10460          hardcode_direct_absolute=yes
10461 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10461 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10462            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10463 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10464 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10465 <          export_dynamic_flag_spec='${wl}-E'
10463 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10464 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10465 >          export_dynamic_flag_spec='$wl-E'
10466          else
10467 <          case $host_os in
10468 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10221 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10222 <             hardcode_libdir_flag_spec='-R$libdir'
10223 <             ;;
10224 <           *)
10225 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10226 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10227 <             ;;
10228 <          esac
10467 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10468 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10469          fi
10470        else
10471          ld_shlibs=no
# Line 10236 | Line 10476 | $as_echo "$lt_cv_irix_exported_symbol" >
10476        hardcode_libdir_flag_spec='-L$libdir'
10477        hardcode_minus_L=yes
10478        allow_undefined_flag=unsupported
10479 <      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'
10480 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10479 >      shrext_cmds=.dll
10480 >      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10481 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10482 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10483 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10484 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10485 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10486 >        emximp -o $lib $output_objdir/$libname.def'
10487 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10488 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10489 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10490 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10491 >        prefix_cmds="$SED"~
10492 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10493 >          prefix_cmds="$prefix_cmds -e 1d";
10494 >        fi~
10495 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10496 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10497 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10498 >        emximp -o $lib $output_objdir/$libname.def'
10499 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10500 >      enable_shared_with_static_runtimes=yes
10501        ;;
10502  
10503      osf3*)
10504 <      if test "$GCC" = yes; then
10505 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10506 <        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'
10504 >      if test yes = "$GCC"; then
10505 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10506 >        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'
10507        else
10508          allow_undefined_flag=' -expect_unresolved \*'
10509 <        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'
10509 >        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'
10510        fi
10511        archive_cmds_need_lc='no'
10512 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10512 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10513        hardcode_libdir_separator=:
10514        ;;
10515  
10516      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10517 <      if test "$GCC" = yes; then
10518 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10519 <        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'
10520 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10517 >      if test yes = "$GCC"; then
10518 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10519 >        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'
10520 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10521        else
10522          allow_undefined_flag=' -expect_unresolved \*'
10523 <        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'
10523 >        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'
10524          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~
10525 <        $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'
10525 >          $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'
10526  
10527          # Both c and cxx compiler support -rpath directly
10528          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 10273 | Line 10533 | $as_echo "$lt_cv_irix_exported_symbol" >
10533  
10534      solaris*)
10535        no_undefined_flag=' -z defs'
10536 <      if test "$GCC" = yes; then
10537 <        wlarc='${wl}'
10538 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10536 >      if test yes = "$GCC"; then
10537 >        wlarc='$wl'
10538 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10539          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540 <          $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'
10540 >          $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'
10541        else
10542          case `$CC -V 2>&1` in
10543          *"Compilers 5.0"*)
10544            wlarc=''
10545 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10547 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10547 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10548            ;;
10549          *)
10550 <          wlarc='${wl}'
10551 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10550 >          wlarc='$wl'
10551 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10552            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10553 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10553 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10554            ;;
10555          esac
10556        fi
# Line 10300 | Line 10560 | $as_echo "$lt_cv_irix_exported_symbol" >
10560        solaris2.[0-5] | solaris2.[0-5].*) ;;
10561        *)
10562          # The compiler driver will combine and reorder linker options,
10563 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10563 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10564          # but is careful enough not to reorder.
10565          # Supported since Solaris 2.6 (maybe 2.5.1?)
10566 <        if test "$GCC" = yes; then
10567 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10566 >        if test yes = "$GCC"; then
10567 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10568          else
10569            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10570          fi
# Line 10314 | Line 10574 | $as_echo "$lt_cv_irix_exported_symbol" >
10574        ;;
10575  
10576      sunos4*)
10577 <      if test "x$host_vendor" = xsequent; then
10577 >      if test sequent = "$host_vendor"; then
10578          # Use $CC to link under sequent, because it throws in some extra .o
10579          # files that make .init and .fini sections work.
10580 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10580 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10581        else
10582          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10583        fi
# Line 10366 | Line 10626 | $as_echo "$lt_cv_irix_exported_symbol" >
10626        ;;
10627  
10628      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10629 <      no_undefined_flag='${wl}-z,text'
10629 >      no_undefined_flag='$wl-z,text'
10630        archive_cmds_need_lc=no
10631        hardcode_shlibpath_var=no
10632        runpath_var='LD_RUN_PATH'
10633  
10634 <      if test "$GCC" = yes; then
10635 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 >      if test yes = "$GCC"; then
10635 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637        else
10638 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640        fi
10641        ;;
10642  
10643      sysv5* | sco3.2v5* | sco5v6*)
10644 <      # Note: We can NOT use -z defs as we might desire, because we do not
10644 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10645        # link with -lc, and that would cause any symbols used from libc to
10646        # always be unresolved, which means just about no library would
10647        # ever link correctly.  If we're not using GNU ld we use -z text
10648        # though, which does catch some bad symbols but isn't as heavy-handed
10649        # as -z defs.
10650 <      no_undefined_flag='${wl}-z,text'
10651 <      allow_undefined_flag='${wl}-z,nodefs'
10650 >      no_undefined_flag='$wl-z,text'
10651 >      allow_undefined_flag='$wl-z,nodefs'
10652        archive_cmds_need_lc=no
10653        hardcode_shlibpath_var=no
10654 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10654 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10655        hardcode_libdir_separator=':'
10656        link_all_deplibs=yes
10657 <      export_dynamic_flag_spec='${wl}-Bexport'
10657 >      export_dynamic_flag_spec='$wl-Bexport'
10658        runpath_var='LD_RUN_PATH'
10659  
10660 <      if test "$GCC" = yes; then
10661 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 >      if test yes = "$GCC"; then
10661 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663        else
10664 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666        fi
10667        ;;
10668  
# Line 10417 | Line 10677 | $as_echo "$lt_cv_irix_exported_symbol" >
10677        ;;
10678      esac
10679  
10680 <    if test x$host_vendor = xsni; then
10680 >    if test sni = "$host_vendor"; then
10681        case $host in
10682        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10683 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10683 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10684          ;;
10685        esac
10686      fi
# Line 10428 | Line 10688 | $as_echo "$lt_cv_irix_exported_symbol" >
10688  
10689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10690   $as_echo "$ld_shlibs" >&6; }
10691 < test "$ld_shlibs" = no && can_build_shared=no
10691 > test no = "$ld_shlibs" && can_build_shared=no
10692  
10693   with_gnu_ld=$with_gnu_ld
10694  
# Line 10454 | Line 10714 | x|xyes)
10714    # Assume -lc should be added
10715    archive_cmds_need_lc=yes
10716  
10717 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10717 >  if test yes,yes = "$GCC,$enable_shared"; then
10718      case $archive_cmds in
10719      *'~'*)
10720        # FIXME: we may have to deal with multi-command sequences.
# Line 10669 | Line 10929 | esac
10929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10930   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10931  
10932 < if test "$GCC" = yes; then
10932 > if test yes = "$GCC"; then
10933    case $host_os in
10934 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10935 <    *) lt_awk_arg="/^libraries:/" ;;
10934 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10935 >    *) lt_awk_arg='/^libraries:/' ;;
10936    esac
10937    case $host_os in
10938 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10939 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10938 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10939 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10940    esac
10941    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10942    case $lt_search_path_spec in
# Line 10692 | Line 10952 | if test "$GCC" = yes; then
10952      ;;
10953    esac
10954    # Ok, now we have the path, separated by spaces, we can step through it
10955 <  # and add multilib dir if necessary.
10955 >  # and add multilib dir if necessary...
10956    lt_tmp_lt_search_path_spec=
10957 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10957 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10958 >  # ...but if some path component already ends with the multilib dir we assume
10959 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10960 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10961 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10962 >    lt_multi_os_dir=
10963 >    ;;
10964 >  esac
10965    for lt_sys_path in $lt_search_path_spec; do
10966 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10967 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10968 <    else
10966 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10967 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10968 >    elif test -n "$lt_multi_os_dir"; then
10969        test -d "$lt_sys_path" && \
10970          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10971      fi
10972    done
10973    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10974 < BEGIN {RS=" "; FS="/|\n";} {
10975 <  lt_foo="";
10976 <  lt_count=0;
10974 > BEGIN {RS = " "; FS = "/|\n";} {
10975 >  lt_foo = "";
10976 >  lt_count = 0;
10977    for (lt_i = NF; lt_i > 0; lt_i--) {
10978      if ($lt_i != "" && $lt_i != ".") {
10979        if ($lt_i == "..") {
10980          lt_count++;
10981        } else {
10982          if (lt_count == 0) {
10983 <          lt_foo="/" $lt_i lt_foo;
10983 >          lt_foo = "/" $lt_i lt_foo;
10984          } else {
10985            lt_count--;
10986          }
# Line 10727 | Line 10994 | BEGIN {RS=" "; FS="/|\n";} {
10994    # for these hosts.
10995    case $host_os in
10996      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10997 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10997 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10998    esac
10999    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11000   else
# Line 10736 | Line 11003 | fi
11003   library_names_spec=
11004   libname_spec='lib$name'
11005   soname_spec=
11006 < shrext_cmds=".so"
11006 > shrext_cmds=.so
11007   postinstall_cmds=
11008   postuninstall_cmds=
11009   finish_cmds=
# Line 10753 | Line 11020 | hardcode_into_libs=no
11020   # flags to be left without arguments
11021   need_version=unknown
11022  
11023 +
11024 +
11025   case $host_os in
11026   aix3*)
11027    version_type=linux # correct to gnu/linux during the next big refactor
11028 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11028 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11029    shlibpath_var=LIBPATH
11030  
11031    # AIX 3 has no versioning support, so we append a major version to the name.
11032 <  soname_spec='${libname}${release}${shared_ext}$major'
11032 >  soname_spec='$libname$release$shared_ext$major'
11033    ;;
11034  
11035   aix[4-9]*)
# Line 10768 | Line 11037 | aix[4-9]*)
11037    need_lib_prefix=no
11038    need_version=no
11039    hardcode_into_libs=yes
11040 <  if test "$host_cpu" = ia64; then
11040 >  if test ia64 = "$host_cpu"; then
11041      # AIX 5 supports IA64
11042 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11042 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11043      shlibpath_var=LD_LIBRARY_PATH
11044    else
11045      # With GCC up to 2.95.x, collect2 would create an import file
11046      # for dependence libraries.  The import file would start with
11047 <    # the line `#! .'.  This would cause the generated library to
11048 <    # depend on `.', always an invalid library.  This was fixed in
11047 >    # the line '#! .'.  This would cause the generated library to
11048 >    # depend on '.', always an invalid library.  This was fixed in
11049      # development snapshots of GCC prior to 3.0.
11050      case $host_os in
11051        aix4 | aix4.[01] | aix4.[01].*)
11052        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11053             echo ' yes '
11054 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11054 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11055          :
11056        else
11057          can_build_shared=no
11058        fi
11059        ;;
11060      esac
11061 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11061 >    # Using Import Files as archive members, it is possible to support
11062 >    # filename-based versioning of shared library archives on AIX. While
11063 >    # this would work for both with and without runtime linking, it will
11064 >    # prevent static linking of such archives. So we do filename-based
11065 >    # shared library versioning with .so extension only, which is used
11066 >    # when both runtime linking and shared linking is enabled.
11067 >    # Unfortunately, runtime linking may impact performance, so we do
11068 >    # not want this to be the default eventually. Also, we use the
11069 >    # versioned .so libs for executables only if there is the -brtl
11070 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11071 >    # To allow for filename-based versioning support, we need to create
11072 >    # libNAME.so.V as an archive file, containing:
11073 >    # *) an Import File, referring to the versioned filename of the
11074 >    #    archive as well as the shared archive member, telling the
11075 >    #    bitwidth (32 or 64) of that shared object, and providing the
11076 >    #    list of exported symbols of that shared object, eventually
11077 >    #    decorated with the 'weak' keyword
11078 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11079 >    #    it being seen by the linker.
11080 >    # At run time we better use the real file rather than another symlink,
11081 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11082 >
11083 >    case $with_aix_soname,$aix_use_runtimelinking in
11084 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11085      # soname into executable. Probably we can add versioning support to
11086      # collect2, so additional links can be useful in future.
11087 <    if test "$aix_use_runtimelinking" = yes; then
11087 >    aix,yes) # traditional libtool
11088 >      dynamic_linker='AIX unversionable lib.so'
11089        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11090        # instead of lib<name>.a to let people know that these are not
11091        # typical AIX shared libraries.
11092 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 <    else
11092 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11093 >      ;;
11094 >    aix,no) # traditional AIX only
11095 >      dynamic_linker='AIX lib.a(lib.so.V)'
11096        # We preserve .a as extension for shared libraries through AIX4.2
11097        # and later when we are not doing run time linking.
11098 <      library_names_spec='${libname}${release}.a $libname.a'
11099 <      soname_spec='${libname}${release}${shared_ext}$major'
11100 <    fi
11098 >      library_names_spec='$libname$release.a $libname.a'
11099 >      soname_spec='$libname$release$shared_ext$major'
11100 >      ;;
11101 >    svr4,*) # full svr4 only
11102 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11103 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11104 >      # We do not specify a path in Import Files, so LIBPATH fires.
11105 >      shlibpath_overrides_runpath=yes
11106 >      ;;
11107 >    *,yes) # both, prefer svr4
11108 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11109 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11110 >      # unpreferred sharedlib libNAME.a needs extra handling
11111 >      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"'
11112 >      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"'
11113 >      # We do not specify a path in Import Files, so LIBPATH fires.
11114 >      shlibpath_overrides_runpath=yes
11115 >      ;;
11116 >    *,no) # both, prefer aix
11117 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11118 >      library_names_spec='$libname$release.a $libname.a'
11119 >      soname_spec='$libname$release$shared_ext$major'
11120 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11121 >      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)'
11122 >      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"'
11123 >      ;;
11124 >    esac
11125      shlibpath_var=LIBPATH
11126    fi
11127    ;;
# Line 10812 | Line 11131 | amigaos*)
11131    powerpc)
11132      # Since July 2007 AmigaOS4 officially supports .so libraries.
11133      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11134 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11135      ;;
11136    m68k)
11137      library_names_spec='$libname.ixlibrary $libname.a'
11138      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11139 <    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'
11139 >    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'
11140      ;;
11141    esac
11142    ;;
11143  
11144   beos*)
11145 <  library_names_spec='${libname}${shared_ext}'
11145 >  library_names_spec='$libname$shared_ext'
11146    dynamic_linker="$host_os ld.so"
11147    shlibpath_var=LIBRARY_PATH
11148    ;;
# Line 10831 | Line 11150 | beos*)
11150   bsdi[45]*)
11151    version_type=linux # correct to gnu/linux during the next big refactor
11152    need_version=no
11153 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 <  soname_spec='${libname}${release}${shared_ext}$major'
11153 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11154 >  soname_spec='$libname$release$shared_ext$major'
11155    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11156    shlibpath_var=LD_LIBRARY_PATH
11157    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10844 | Line 11163 | bsdi[45]*)
11163  
11164   cygwin* | mingw* | pw32* | cegcc*)
11165    version_type=windows
11166 <  shrext_cmds=".dll"
11166 >  shrext_cmds=.dll
11167    need_version=no
11168    need_lib_prefix=no
11169  
# Line 10853 | Line 11172 | cygwin* | mingw* | pw32* | cegcc*)
11172      # gcc
11173      library_names_spec='$libname.dll.a'
11174      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11175 <    postinstall_cmds='base_file=`basename \${file}`~
11176 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11175 >    postinstall_cmds='base_file=`basename \$file`~
11176 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11177        dldir=$destdir/`dirname \$dlpath`~
11178        test -d \$dldir || mkdir -p \$dldir~
11179        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10870 | Line 11189 | cygwin* | mingw* | pw32* | cegcc*)
11189      case $host_os in
11190      cygwin*)
11191        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11192 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11192 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11193  
11194        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11195        ;;
11196      mingw* | cegcc*)
11197        # MinGW DLLs use traditional 'lib' prefix
11198 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11198 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11199        ;;
11200      pw32*)
11201        # pw32 DLLs use 'pw' prefix rather than 'lib'
11202 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11202 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11203        ;;
11204      esac
11205      dynamic_linker='Win32 ld.exe'
# Line 10889 | Line 11208 | cygwin* | mingw* | pw32* | cegcc*)
11208    *,cl*)
11209      # Native MSVC
11210      libname_spec='$name'
11211 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11212 <    library_names_spec='${libname}.dll.lib'
11211 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11212 >    library_names_spec='$libname.dll.lib'
11213  
11214      case $build_os in
11215      mingw*)
# Line 10917 | Line 11236 | cygwin* | mingw* | pw32* | cegcc*)
11236        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11237        ;;
11238      *)
11239 <      sys_lib_search_path_spec="$LIB"
11239 >      sys_lib_search_path_spec=$LIB
11240        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11241          # It is most probably a Windows format PATH.
11242          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10930 | Line 11249 | cygwin* | mingw* | pw32* | cegcc*)
11249      esac
11250  
11251      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11252 <    postinstall_cmds='base_file=`basename \${file}`~
11253 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11252 >    postinstall_cmds='base_file=`basename \$file`~
11253 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11254        dldir=$destdir/`dirname \$dlpath`~
11255        test -d \$dldir || mkdir -p \$dldir~
11256        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10944 | Line 11263 | cygwin* | mingw* | pw32* | cegcc*)
11263  
11264    *)
11265      # Assume MSVC wrapper
11266 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11266 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11267      dynamic_linker='Win32 ld.exe'
11268      ;;
11269    esac
# Line 10957 | Line 11276 | darwin* | rhapsody*)
11276    version_type=darwin
11277    need_lib_prefix=no
11278    need_version=no
11279 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11280 <  soname_spec='${libname}${release}${major}$shared_ext'
11279 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11280 >  soname_spec='$libname$release$major$shared_ext'
11281    shlibpath_overrides_runpath=yes
11282    shlibpath_var=DYLD_LIBRARY_PATH
11283    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10971 | Line 11290 | dgux*)
11290    version_type=linux # correct to gnu/linux during the next big refactor
11291    need_lib_prefix=no
11292    need_version=no
11293 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11294 <  soname_spec='${libname}${release}${shared_ext}$major'
11293 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11294 >  soname_spec='$libname$release$shared_ext$major'
11295    shlibpath_var=LD_LIBRARY_PATH
11296    ;;
11297  
# Line 10990 | Line 11309 | freebsd* | dragonfly*)
11309    version_type=freebsd-$objformat
11310    case $version_type in
11311      freebsd-elf*)
11312 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11312 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11313 >      soname_spec='$libname$release$shared_ext$major'
11314        need_version=no
11315        need_lib_prefix=no
11316        ;;
11317      freebsd-*)
11318 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11318 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11319        need_version=yes
11320        ;;
11321    esac
# Line 11020 | Line 11340 | freebsd* | dragonfly*)
11340    esac
11341    ;;
11342  
11023 – gnu*)
11024 –  version_type=linux # correct to gnu/linux during the next big refactor
11025 –  need_lib_prefix=no
11026 –  need_version=no
11027 –  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11028 –  soname_spec='${libname}${release}${shared_ext}$major'
11029 –  shlibpath_var=LD_LIBRARY_PATH
11030 –  shlibpath_overrides_runpath=no
11031 –  hardcode_into_libs=yes
11032 –  ;;
11033 –
11343   haiku*)
11344    version_type=linux # correct to gnu/linux during the next big refactor
11345    need_lib_prefix=no
11346    need_version=no
11347    dynamic_linker="$host_os runtime_loader"
11348 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11349 <  soname_spec='${libname}${release}${shared_ext}$major'
11348 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11349 >  soname_spec='$libname$release$shared_ext$major'
11350    shlibpath_var=LIBRARY_PATH
11351 <  shlibpath_overrides_runpath=yes
11351 >  shlibpath_overrides_runpath=no
11352    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11353    hardcode_into_libs=yes
11354    ;;
# Line 11057 | Line 11366 | hpux9* | hpux10* | hpux11*)
11366      dynamic_linker="$host_os dld.so"
11367      shlibpath_var=LD_LIBRARY_PATH
11368      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11369 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 <    soname_spec='${libname}${release}${shared_ext}$major'
11371 <    if test "X$HPUX_IA64_MODE" = X32; then
11369 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370 >    soname_spec='$libname$release$shared_ext$major'
11371 >    if test 32 = "$HPUX_IA64_MODE"; then
11372        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11373 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11374      else
11375        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11376 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11377      fi
11067 –    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11378      ;;
11379    hppa*64*)
11380      shrext_cmds='.sl'
# Line 11072 | Line 11382 | hpux9* | hpux10* | hpux11*)
11382      dynamic_linker="$host_os dld.sl"
11383      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11384      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11385 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 <    soname_spec='${libname}${release}${shared_ext}$major'
11385 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11386 >    soname_spec='$libname$release$shared_ext$major'
11387      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11388      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11389      ;;
# Line 11082 | Line 11392 | hpux9* | hpux10* | hpux11*)
11392      dynamic_linker="$host_os dld.sl"
11393      shlibpath_var=SHLIB_PATH
11394      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11395 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 <    soname_spec='${libname}${release}${shared_ext}$major'
11395 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11396 >    soname_spec='$libname$release$shared_ext$major'
11397      ;;
11398    esac
11399    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 11096 | Line 11406 | interix[3-9]*)
11406    version_type=linux # correct to gnu/linux during the next big refactor
11407    need_lib_prefix=no
11408    need_version=no
11409 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11410 <  soname_spec='${libname}${release}${shared_ext}$major'
11409 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11410 >  soname_spec='$libname$release$shared_ext$major'
11411    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11412    shlibpath_var=LD_LIBRARY_PATH
11413    shlibpath_overrides_runpath=no
# Line 11108 | Line 11418 | irix5* | irix6* | nonstopux*)
11418    case $host_os in
11419      nonstopux*) version_type=nonstopux ;;
11420      *)
11421 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11421 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11422                  version_type=linux # correct to gnu/linux during the next big refactor
11423          else
11424                  version_type=irix
# Line 11116 | Line 11426 | irix5* | irix6* | nonstopux*)
11426    esac
11427    need_lib_prefix=no
11428    need_version=no
11429 <  soname_spec='${libname}${release}${shared_ext}$major'
11430 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11429 >  soname_spec='$libname$release$shared_ext$major'
11430 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11431    case $host_os in
11432    irix5* | nonstopux*)
11433      libsuff= shlibsuff=
# Line 11136 | Line 11446 | irix5* | irix6* | nonstopux*)
11446    esac
11447    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11448    shlibpath_overrides_runpath=no
11449 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11450 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11449 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11450 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11451    hardcode_into_libs=yes
11452    ;;
11453  
# Line 11146 | Line 11456 | linux*oldld* | linux*aout* | linux*coff*
11456    dynamic_linker=no
11457    ;;
11458  
11459 + linux*android*)
11460 +  version_type=none # Android doesn't support versioned libraries.
11461 +  need_lib_prefix=no
11462 +  need_version=no
11463 +  library_names_spec='$libname$release$shared_ext'
11464 +  soname_spec='$libname$release$shared_ext'
11465 +  finish_cmds=
11466 +  shlibpath_var=LD_LIBRARY_PATH
11467 +  shlibpath_overrides_runpath=yes
11468 +
11469 +  # This implies no fast_install, which is unacceptable.
11470 +  # Some rework will be needed to allow for fast_install
11471 +  # before this can be enabled.
11472 +  hardcode_into_libs=yes
11473 +
11474 +  dynamic_linker='Android linker'
11475 +  # Don't embed -rpath directories since the linker doesn't support them.
11476 +  hardcode_libdir_flag_spec='-L$libdir'
11477 +  ;;
11478 +
11479   # This must be glibc/ELF.
11480 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11480 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11481    version_type=linux # correct to gnu/linux during the next big refactor
11482    need_lib_prefix=no
11483    need_version=no
11484 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 <  soname_spec='${libname}${release}${shared_ext}$major'
11484 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11485 >  soname_spec='$libname$release$shared_ext$major'
11486    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11487    shlibpath_var=LD_LIBRARY_PATH
11488    shlibpath_overrides_runpath=no
# Line 11196 | Line 11526 | fi
11526    # before this can be enabled.
11527    hardcode_into_libs=yes
11528  
11529 <  # Append ld.so.conf contents to the search path
11529 >  # Ideally, we could use ldconfig to report *all* directores which are
11530 >  # searched for libraries, however this is still not possible.  Aside from not
11531 >  # being certain /sbin/ldconfig is available, command
11532 >  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11533 >  # even though it is searched at run-time.  Try to do the best guess by
11534 >  # appending ld.so.conf contents (and includes) to the search path.
11535    if test -f /etc/ld.so.conf; then
11536      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' ' '`
11537      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
# Line 11211 | Line 11546 | fi
11546    dynamic_linker='GNU/Linux ld.so'
11547    ;;
11548  
11549 + netbsdelf*-gnu)
11550 +  version_type=linux
11551 +  need_lib_prefix=no
11552 +  need_version=no
11553 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11554 +  soname_spec='${libname}${release}${shared_ext}$major'
11555 +  shlibpath_var=LD_LIBRARY_PATH
11556 +  shlibpath_overrides_runpath=no
11557 +  hardcode_into_libs=yes
11558 +  dynamic_linker='NetBSD ld.elf_so'
11559 +  ;;
11560 +
11561   netbsd*)
11562    version_type=sunos
11563    need_lib_prefix=no
11564    need_version=no
11565    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11566 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11566 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11567      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568      dynamic_linker='NetBSD (a.out) ld.so'
11569    else
11570 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11571 <    soname_spec='${libname}${release}${shared_ext}$major'
11570 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11571 >    soname_spec='$libname$release$shared_ext$major'
11572      dynamic_linker='NetBSD ld.elf_so'
11573    fi
11574    shlibpath_var=LD_LIBRARY_PATH
# Line 11231 | Line 11578 | netbsd*)
11578  
11579   newsos6)
11580    version_type=linux # correct to gnu/linux during the next big refactor
11581 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11582    shlibpath_var=LD_LIBRARY_PATH
11583    shlibpath_overrides_runpath=yes
11584    ;;
# Line 11240 | Line 11587 | newsos6)
11587    version_type=qnx
11588    need_lib_prefix=no
11589    need_version=no
11590 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 <  soname_spec='${libname}${release}${shared_ext}$major'
11590 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591 >  soname_spec='$libname$release$shared_ext$major'
11592    shlibpath_var=LD_LIBRARY_PATH
11593    shlibpath_overrides_runpath=no
11594    hardcode_into_libs=yes
11595    dynamic_linker='ldqnx.so'
11596    ;;
11597  
11598 < openbsd*)
11598 > openbsd* | bitrig*)
11599    version_type=sunos
11600 <  sys_lib_dlsearch_path_spec="/usr/lib"
11600 >  sys_lib_dlsearch_path_spec=/usr/lib
11601    need_lib_prefix=no
11602 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11603 <  case $host_os in
11257 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11258 <    *)                          need_version=no  ;;
11259 <  esac
11260 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11261 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11262 <  shlibpath_var=LD_LIBRARY_PATH
11263 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11264 <    case $host_os in
11265 <      openbsd2.[89] | openbsd2.[89].*)
11266 <        shlibpath_overrides_runpath=no
11267 <        ;;
11268 <      *)
11269 <        shlibpath_overrides_runpath=yes
11270 <        ;;
11271 <      esac
11602 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11603 >    need_version=no
11604    else
11605 <    shlibpath_overrides_runpath=yes
11605 >    need_version=yes
11606    fi
11607 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11608 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11609 +  shlibpath_var=LD_LIBRARY_PATH
11610 +  shlibpath_overrides_runpath=yes
11611    ;;
11612  
11613   os2*)
11614    libname_spec='$name'
11615 <  shrext_cmds=".dll"
11615 >  version_type=windows
11616 >  shrext_cmds=.dll
11617 >  need_version=no
11618    need_lib_prefix=no
11619 <  library_names_spec='$libname${shared_ext} $libname.a'
11619 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11620 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11621 >    v=$($ECHO $release$versuffix | tr -d .-);
11622 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11623 >    $ECHO $n$v`$shared_ext'
11624 >  library_names_spec='${libname}_dll.$libext'
11625    dynamic_linker='OS/2 ld.exe'
11626 <  shlibpath_var=LIBPATH
11626 >  shlibpath_var=BEGINLIBPATH
11627 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11628 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11629 >  postinstall_cmds='base_file=`basename \$file`~
11630 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11631 >    dldir=$destdir/`dirname \$dlpath`~
11632 >    test -d \$dldir || mkdir -p \$dldir~
11633 >    $install_prog $dir/$dlname \$dldir/$dlname~
11634 >    chmod a+x \$dldir/$dlname~
11635 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11636 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11637 >    fi'
11638 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11639 >    dlpath=$dir/\$dldll~
11640 >    $RM \$dlpath'
11641    ;;
11642  
11643   osf3* | osf4* | osf5*)
11644    version_type=osf
11645    need_lib_prefix=no
11646    need_version=no
11647 <  soname_spec='${libname}${release}${shared_ext}$major'
11648 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647 >  soname_spec='$libname$release$shared_ext$major'
11648 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11649    shlibpath_var=LD_LIBRARY_PATH
11650    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11651 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11651 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11652    ;;
11653  
11654   rdos*)
# Line 11302 | Line 11659 | solaris*)
11659    version_type=linux # correct to gnu/linux during the next big refactor
11660    need_lib_prefix=no
11661    need_version=no
11662 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11663 <  soname_spec='${libname}${release}${shared_ext}$major'
11662 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11663 >  soname_spec='$libname$release$shared_ext$major'
11664    shlibpath_var=LD_LIBRARY_PATH
11665    shlibpath_overrides_runpath=yes
11666    hardcode_into_libs=yes
# Line 11313 | Line 11670 | solaris*)
11670  
11671   sunos4*)
11672    version_type=sunos
11673 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11673 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11674    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11675    shlibpath_var=LD_LIBRARY_PATH
11676    shlibpath_overrides_runpath=yes
11677 <  if test "$with_gnu_ld" = yes; then
11677 >  if test yes = "$with_gnu_ld"; then
11678      need_lib_prefix=no
11679    fi
11680    need_version=yes
# Line 11325 | Line 11682 | sunos4*)
11682  
11683   sysv4 | sysv4.3*)
11684    version_type=linux # correct to gnu/linux during the next big refactor
11685 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 <  soname_spec='${libname}${release}${shared_ext}$major'
11685 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686 >  soname_spec='$libname$release$shared_ext$major'
11687    shlibpath_var=LD_LIBRARY_PATH
11688    case $host_vendor in
11689      sni)
# Line 11347 | Line 11704 | sysv4 | sysv4.3*)
11704    ;;
11705  
11706   sysv4*MP*)
11707 <  if test -d /usr/nec ;then
11707 >  if test -d /usr/nec; then
11708      version_type=linux # correct to gnu/linux during the next big refactor
11709 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11710 <    soname_spec='$libname${shared_ext}.$major'
11709 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11710 >    soname_spec='$libname$shared_ext.$major'
11711      shlibpath_var=LD_LIBRARY_PATH
11712    fi
11713    ;;
11714  
11715   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11716 <  version_type=freebsd-elf
11716 >  version_type=sco
11717    need_lib_prefix=no
11718    need_version=no
11719 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11720 <  soname_spec='${libname}${release}${shared_ext}$major'
11719 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11720 >  soname_spec='$libname$release$shared_ext$major'
11721    shlibpath_var=LD_LIBRARY_PATH
11722    shlibpath_overrides_runpath=yes
11723    hardcode_into_libs=yes
11724 <  if test "$with_gnu_ld" = yes; then
11724 >  if test yes = "$with_gnu_ld"; then
11725      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11726    else
11727      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11382 | Line 11739 | tpf*)
11739    version_type=linux # correct to gnu/linux during the next big refactor
11740    need_lib_prefix=no
11741    need_version=no
11742 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11743    shlibpath_var=LD_LIBRARY_PATH
11744    shlibpath_overrides_runpath=no
11745    hardcode_into_libs=yes
# Line 11390 | Line 11747 | tpf*)
11747  
11748   uts4*)
11749    version_type=linux # correct to gnu/linux during the next big refactor
11750 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 <  soname_spec='${libname}${release}${shared_ext}$major'
11750 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11751 >  soname_spec='$libname$release$shared_ext$major'
11752    shlibpath_var=LD_LIBRARY_PATH
11753    ;;
11754  
# Line 11401 | Line 11758 | uts4*)
11758   esac
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11760   $as_echo "$dynamic_linker" >&6; }
11761 < test "$dynamic_linker" = no && can_build_shared=no
11761 > test no = "$dynamic_linker" && can_build_shared=no
11762  
11763   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11764 < if test "$GCC" = yes; then
11764 > if test yes = "$GCC"; then
11765    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11766   fi
11767  
11768 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11769 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11768 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11769 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11770   fi
11771 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11772 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11771 >
11772 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11773 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11774   fi
11775  
11776 + # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11777 + configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11778 +
11779 + # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11780 + func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11781 +
11782 + # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11783 + configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11784 +
11785 +
11786 +
11787 +
11788 +
11789 +
11790  
11791  
11792  
# Line 11511 | Line 11883 | $as_echo_n "checking how to hardcode lib
11883   hardcode_action=
11884   if test -n "$hardcode_libdir_flag_spec" ||
11885     test -n "$runpath_var" ||
11886 <   test "X$hardcode_automatic" = "Xyes" ; then
11886 >   test yes = "$hardcode_automatic"; then
11887  
11888    # We can hardcode non-existent directories.
11889 <  if test "$hardcode_direct" != no &&
11889 >  if test no != "$hardcode_direct" &&
11890       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11891       # have to relink, otherwise we might link with an installed library
11892       # when we should be linking with a yet-to-be-installed one
11893 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11894 <     test "$hardcode_minus_L" != no; then
11893 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11894 >     test no != "$hardcode_minus_L"; then
11895      # Linking always hardcodes the temporary library directory.
11896      hardcode_action=relink
11897    else
# Line 11534 | Line 11906 | fi
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11907   $as_echo "$hardcode_action" >&6; }
11908  
11909 < if test "$hardcode_action" = relink ||
11910 <   test "$inherit_rpath" = yes; then
11909 > if test relink = "$hardcode_action" ||
11910 >   test yes = "$inherit_rpath"; then
11911    # Fast installation is not supported
11912    enable_fast_install=no
11913 < elif test "$shlibpath_overrides_runpath" = yes ||
11914 <     test "$enable_shared" = no; then
11913 > elif test yes = "$shlibpath_overrides_runpath" ||
11914 >     test no = "$enable_shared"; then
11915    # Fast installation is not necessary
11916    enable_fast_install=needless
11917   fi
# Line 11549 | Line 11921 | fi
11921  
11922  
11923  
11924 <  if test "x$enable_dlopen" != xyes; then
11924 >  if test yes != "$enable_dlopen"; then
11925    enable_dlopen=unknown
11926    enable_dlopen_self=unknown
11927    enable_dlopen_self_static=unknown
# Line 11559 | Line 11931 | else
11931  
11932    case $host_os in
11933    beos*)
11934 <    lt_cv_dlopen="load_add_on"
11934 >    lt_cv_dlopen=load_add_on
11935      lt_cv_dlopen_libs=
11936      lt_cv_dlopen_self=yes
11937      ;;
11938  
11939    mingw* | pw32* | cegcc*)
11940 <    lt_cv_dlopen="LoadLibrary"
11940 >    lt_cv_dlopen=LoadLibrary
11941      lt_cv_dlopen_libs=
11942      ;;
11943  
11944    cygwin*)
11945 <    lt_cv_dlopen="dlopen"
11945 >    lt_cv_dlopen=dlopen
11946      lt_cv_dlopen_libs=
11947      ;;
11948  
11949    darwin*)
11950 <  # if libdl is installed we need to link against it
11950 >    # if libdl is installed we need to link against it
11951      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11952   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11953   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11613 | Line 11985 | fi
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11986   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11987   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11988 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11988 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11989   else
11990  
11991 <    lt_cv_dlopen="dyld"
11991 >    lt_cv_dlopen=dyld
11992      lt_cv_dlopen_libs=
11993      lt_cv_dlopen_self=yes
11994  
# Line 11624 | Line 11996 | fi
11996  
11997      ;;
11998  
11999 +  tpf*)
12000 +    # Don't try to run any link tests for TPF.  We know it's impossible
12001 +    # because TPF is a cross-compiler, and we know how we open DSOs.
12002 +    lt_cv_dlopen=dlopen
12003 +    lt_cv_dlopen_libs=
12004 +    lt_cv_dlopen_self=no
12005 +    ;;
12006 +
12007    *)
12008      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12009   if test "x$ac_cv_func_shl_load" = xyes; then :
12010 <  lt_cv_dlopen="shl_load"
12010 >  lt_cv_dlopen=shl_load
12011   else
12012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12013   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11666 | Line 12046 | fi
12046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12047   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12048   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12049 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12049 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12050   else
12051    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12052   if test "x$ac_cv_func_dlopen" = xyes; then :
12053 <  lt_cv_dlopen="dlopen"
12053 >  lt_cv_dlopen=dlopen
12054   else
12055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12056   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11709 | Line 12089 | fi
12089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12090   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12091   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12092 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12092 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12093   else
12094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12095   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11748 | Line 12128 | fi
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12129   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12130   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12131 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12131 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12132   else
12133    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12134   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11787 | Line 12167 | fi
12167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12168   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12169   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12170 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12170 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12171   fi
12172  
12173  
# Line 11808 | Line 12188 | fi
12188      ;;
12189    esac
12190  
12191 <  if test "x$lt_cv_dlopen" != xno; then
11812 <    enable_dlopen=yes
11813 <  else
12191 >  if test no = "$lt_cv_dlopen"; then
12192      enable_dlopen=no
12193 +  else
12194 +    enable_dlopen=yes
12195    fi
12196  
12197    case $lt_cv_dlopen in
12198    dlopen)
12199 <    save_CPPFLAGS="$CPPFLAGS"
12200 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12199 >    save_CPPFLAGS=$CPPFLAGS
12200 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12201  
12202 <    save_LDFLAGS="$LDFLAGS"
12202 >    save_LDFLAGS=$LDFLAGS
12203      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12204  
12205 <    save_LIBS="$LIBS"
12205 >    save_LIBS=$LIBS
12206      LIBS="$lt_cv_dlopen_libs $LIBS"
12207  
12208      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11830 | Line 12210 | $as_echo_n "checking whether a program c
12210   if ${lt_cv_dlopen_self+:} false; then :
12211    $as_echo_n "(cached) " >&6
12212   else
12213 <          if test "$cross_compiling" = yes; then :
12213 >          if test yes = "$cross_compiling"; then :
12214    lt_cv_dlopen_self=cross
12215   else
12216    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11877 | Line 12257 | else
12257   #  endif
12258   #endif
12259  
12260 < /* When -fvisbility=hidden is used, assume the code has been annotated
12260 > /* When -fvisibility=hidden is used, assume the code has been annotated
12261     correspondingly for the symbols needed.  */
12262 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12262 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12263   int fnord () __attribute__((visibility("default")));
12264   #endif
12265  
# Line 11909 | Line 12289 | _LT_EOF
12289    (eval $ac_link) 2>&5
12290    ac_status=$?
12291    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12292 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12292 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12293      (./conftest; exit; ) >&5 2>/dev/null
12294      lt_status=$?
12295      case x$lt_status in
# Line 11929 | Line 12309 | fi
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12310   $as_echo "$lt_cv_dlopen_self" >&6; }
12311  
12312 <    if test "x$lt_cv_dlopen_self" = xyes; then
12312 >    if test yes = "$lt_cv_dlopen_self"; then
12313        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12314        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12315   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12316   if ${lt_cv_dlopen_self_static+:} false; then :
12317    $as_echo_n "(cached) " >&6
12318   else
12319 <          if test "$cross_compiling" = yes; then :
12319 >          if test yes = "$cross_compiling"; then :
12320    lt_cv_dlopen_self_static=cross
12321   else
12322    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11983 | Line 12363 | else
12363   #  endif
12364   #endif
12365  
12366 < /* When -fvisbility=hidden is used, assume the code has been annotated
12366 > /* When -fvisibility=hidden is used, assume the code has been annotated
12367     correspondingly for the symbols needed.  */
12368 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12368 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12369   int fnord () __attribute__((visibility("default")));
12370   #endif
12371  
# Line 12015 | Line 12395 | _LT_EOF
12395    (eval $ac_link) 2>&5
12396    ac_status=$?
12397    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12398 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12398 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12399      (./conftest; exit; ) >&5 2>/dev/null
12400      lt_status=$?
12401      case x$lt_status in
# Line 12036 | Line 12416 | fi
12416   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12417      fi
12418  
12419 <    CPPFLAGS="$save_CPPFLAGS"
12420 <    LDFLAGS="$save_LDFLAGS"
12421 <    LIBS="$save_LIBS"
12419 >    CPPFLAGS=$save_CPPFLAGS
12420 >    LDFLAGS=$save_LDFLAGS
12421 >    LIBS=$save_LIBS
12422      ;;
12423    esac
12424  
# Line 12082 | Line 12462 | else
12462   # FIXME - insert some real tests, host_os isn't really good enough
12463    case $host_os in
12464    darwin*)
12465 <    if test -n "$STRIP" ; then
12465 >    if test -n "$STRIP"; then
12466        striplib="$STRIP -x"
12467        old_striplib="$STRIP -S"
12468        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 12110 | Line 12490 | fi
12490  
12491  
12492  
12493 <  # Report which library types will actually be built
12493 >  # Report what library types will actually be built
12494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12495   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12496    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 12118 | Line 12498 | $as_echo "$can_build_shared" >&6; }
12498  
12499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12500   $as_echo_n "checking whether to build shared libraries... " >&6; }
12501 <  test "$can_build_shared" = "no" && enable_shared=no
12501 >  test no = "$can_build_shared" && enable_shared=no
12502  
12503    # On AIX, shared libraries and static libraries use the same namespace, and
12504    # are all built from PIC.
12505    case $host_os in
12506    aix3*)
12507 <    test "$enable_shared" = yes && enable_static=no
12507 >    test yes = "$enable_shared" && enable_static=no
12508      if test -n "$RANLIB"; then
12509        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12510        postinstall_cmds='$RANLIB $lib'
# Line 12132 | Line 12512 | $as_echo_n "checking whether to build sh
12512      ;;
12513  
12514    aix[4-9]*)
12515 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12516 <      test "$enable_shared" = yes && enable_static=no
12515 >    if test ia64 != "$host_cpu"; then
12516 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12517 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12518 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12519 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12520 >      esac
12521      fi
12522      ;;
12523    esac
# Line 12143 | Line 12527 | $as_echo "$enable_shared" >&6; }
12527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12528   $as_echo_n "checking whether to build static libraries... " >&6; }
12529    # Make sure either enable_shared or enable_static is yes.
12530 <  test "$enable_shared" = yes || enable_static=yes
12530 >  test yes = "$enable_shared" || enable_static=yes
12531    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12532   $as_echo "$enable_static" >&6; }
12533  
# Line 12157 | Line 12541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12541   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12543  
12544 < CC="$lt_save_CC"
12544 > CC=$lt_save_CC
12545  
12546  
12547  
# Line 12181 | Line 12565 | CC="$lt_save_CC"
12565   # Only expand once:
12566  
12567  
12568 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12569 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12568 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12569 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12570   if ${libltdl_cv_shlibext+:} false; then :
12571    $as_echo_n "(cached) " >&6
12572   else
# Line 12209 | Line 12593 | cat >>confdefs.h <<_ACEOF
12593   _ACEOF
12594  
12595   fi
12596 + if test -n "$shared_archive_member_spec"; then
12597 +
12598 + cat >>confdefs.h <<_ACEOF
12599 + #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12600 + _ACEOF
12601 +
12602 + fi
12603  
12604 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12605 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12604 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12605 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12606   if ${lt_cv_module_path_var+:} false; then :
12607    $as_echo_n "(cached) " >&6
12608   else
12609 <  lt_cv_module_path_var="$shlibpath_var"
12609 >  lt_cv_module_path_var=$shlibpath_var
12610   fi
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12612   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 12232 | Line 12623 | $as_echo_n "checking for the default lib
12623   if ${lt_cv_sys_dlsearch_path+:} false; then :
12624    $as_echo_n "(cached) " >&6
12625   else
12626 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12626 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12627   fi
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12629   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 12240 | Line 12631 | if test -n "$lt_cv_sys_dlsearch_path"; t
12631    sys_dlsearch_path=
12632    for dir in $lt_cv_sys_dlsearch_path; do
12633      if test -z "$sys_dlsearch_path"; then
12634 <      sys_dlsearch_path="$dir"
12634 >      sys_dlsearch_path=$dir
12635      else
12636 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12636 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12637      fi
12638    done
12639  
# Line 12262 | Line 12653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12653   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12654   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12655  
12656 + lt_dlload_save_LIBS=$LIBS
12657  
12658   LIBADD_DLOPEN=
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
# Line 12320 | Line 12712 | if test "$ac_res" != no; then :
12712  
12713   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12714  
12715 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12716 <          LIBADD_DLOPEN="-ldl"
12715 >        if test "$ac_cv_search_dlopen" != "none required"; then
12716 >          LIBADD_DLOPEN=-ldl
12717          fi
12718 <        libltdl_cv_lib_dl_dlopen="yes"
12718 >        libltdl_cv_lib_dl_dlopen=yes
12719          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12720   else
12721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12344 | Line 12736 | if ac_fn_c_try_link "$LINENO"; then :
12736  
12737   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12738  
12739 <            libltdl_cv_func_dlopen="yes"
12739 >            libltdl_cv_func_dlopen=yes
12740              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12741   else
12742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12387 | Line 12779 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12779  
12780   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12781  
12782 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12782 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12783                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12784   fi
12785  
# Line 12396 | Line 12788 | rm -f core conftest.err conftest.$ac_obj
12788      conftest$ac_exeext conftest.$ac_ext
12789   fi
12790  
12791 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12791 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12792   then
12793 <  lt_save_LIBS="$LIBS"
12793 >  lt_save_LIBS=$LIBS
12794    LIBS="$LIBS $LIBADD_DLOPEN"
12795    for ac_func in dlerror
12796   do :
# Line 12411 | Line 12803 | _ACEOF
12803   fi
12804   done
12805  
12806 <  LIBS="$lt_save_LIBS"
12806 >  LIBS=$lt_save_LIBS
12807   fi
12808  
12809  
# Line 12464 | Line 12856 | if test "x$ac_cv_lib_dld_shl_load" = xye
12856   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12857  
12858              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12859 <            LIBADD_SHL_LOAD="-ldld"
12859 >            LIBADD_SHL_LOAD=-ldld
12860   fi
12861  
12862   fi
# Line 12486 | Line 12878 | fi
12878   beos*)
12879    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12880    ;;
12881 < cygwin* | mingw* | os2* | pw32*)
12881 > cygwin* | mingw* | pw32*)
12882    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12883   "
12884   if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
# Line 12564 | Line 12956 | fi
12956   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12957  
12958  
12959 + LIBS=$lt_dlload_save_LIBS
12960   ac_ext=c
12961   ac_cpp='$CPP $CPPFLAGS'
12962   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12618 | Line 13011 | $as_echo "$lt_cv_sys_symbol_underscore"
13011    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13012  
13013  
13014 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
13015 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
13016 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12624 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13014 > if test yes = "$lt_cv_sys_symbol_underscore"; then
13015 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
13016 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13017   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
13018   if ${libltdl_cv_need_uscore+:} false; then :
13019    $as_echo_n "(cached) " >&6
13020   else
13021    libltdl_cv_need_uscore=unknown
13022 <          save_LIBS="$LIBS"
13023 <          LIBS="$LIBS $LIBADD_DLOPEN"
13024 <          if test "$cross_compiling" = yes; then :
13025 <  libltdl_cv_need_uscore=cross
12634 < else
12635 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12636 <  lt_status=$lt_dlunknown
12637 <  cat > conftest.$ac_ext <<_LT_EOF
13022 >      dlsym_uscore_save_LIBS=$LIBS
13023 >      LIBS="$LIBS $LIBADD_DLOPEN"
13024 >      libname=conftmod # stay within 8.3 filename limits!
13025 >      cat >$libname.$ac_ext <<_LT_EOF
13026   #line $LINENO "configure"
13027   #include "confdefs.h"
13028 + /* When -fvisibility=hidden is used, assume the code has been annotated
13029 +   correspondingly for the symbols needed.  */
13030 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13031 + int fnord () __attribute__((visibility("default")));
13032 + #endif
13033 + int fnord () { return 42; }
13034 + _LT_EOF
13035  
13036 +      # ltfn_module_cmds module_cmds
13037 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
13038 +      # $module_cmds or $archive_cmds type content.
13039 +      ltfn_module_cmds ()
13040 +      {( # subshell avoids polluting parent global environment
13041 +          module_cmds_save_ifs=$IFS; IFS='~'
13042 +          for cmd in $1; do
13043 +            IFS=$module_cmds_save_ifs
13044 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13045 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13046 +            major=; versuffix=; verstring=; deplibs=
13047 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13048 +            eval $cmd
13049 +          done
13050 +          IFS=$module_cmds_save_ifs
13051 +      )}
13052 +
13053 +      # Compile a loadable module using libtool macro expansion results.
13054 +      $CC $pic_flag -c $libname.$ac_ext
13055 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13056 +
13057 +      # Try to fetch fnord with dlsym().
13058 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13059 +      cat >conftest.$ac_ext <<_LT_EOF
13060 + #line $LINENO "configure"
13061 + #include "confdefs.h"
13062   #if HAVE_DLFCN_H
13063   #include <dlfcn.h>
13064   #endif
12644 –
13065   #include <stdio.h>
13066 <
12647 < #ifdef RTLD_GLOBAL
12648 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12649 < #else
13066 > #ifndef RTLD_GLOBAL
13067   #  ifdef DL_GLOBAL
13068 < #    define LT_DLGLOBAL         DL_GLOBAL
13068 > #    define RTLD_GLOBAL DL_GLOBAL
13069   #  else
13070 < #    define LT_DLGLOBAL         0
13070 > #    define RTLD_GLOBAL 0
13071   #  endif
13072   #endif
13073 <
13074 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13075 <   find out it does not work in some platform. */
12659 < #ifndef LT_DLLAZY_OR_NOW
12660 < #  ifdef RTLD_LAZY
12661 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13073 > #ifndef RTLD_NOW
13074 > #  ifdef DL_NOW
13075 > #    define RTLD_NOW DL_NOW
13076   #  else
13077 < #    ifdef DL_LAZY
12664 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12665 < #    else
12666 < #      ifdef RTLD_NOW
12667 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12668 < #      else
12669 < #        ifdef DL_NOW
12670 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12671 < #        else
12672 < #          define LT_DLLAZY_OR_NOW      0
12673 < #        endif
12674 < #      endif
12675 < #    endif
13077 > #    define RTLD_NOW 0
13078   #  endif
13079   #endif
13080 <
13081 < /* When -fvisbility=hidden is used, assume the code has been annotated
13082 <   correspondingly for the symbols needed.  */
13083 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13084 < int fnord () __attribute__((visibility("default")));
13085 < #endif
13086 <
13087 < int fnord () { return 42; }
13088 < int main ()
12687 < {
12688 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12689 <  int status = $lt_dlunknown;
12690 <
12691 <  if (self)
12692 <    {
12693 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13080 > int main () {
13081 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13082 >  int status = $libltdl_dlunknown;
13083 >  if (handle) {
13084 >    if (dlsym (handle, "fnord"))
13085 >      status = $libltdl_dlnouscore;
13086 >    else {
13087 >      if (dlsym (handle, "_fnord"))
13088 >        status = $libltdl_dluscore;
13089        else
13090 <        {
12696 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12697 <          else puts (dlerror ());
12698 <        }
12699 <      /* dlclose (self); */
13090 >        puts (dlerror ());
13091      }
13092 <  else
13092 >    dlclose (handle);
13093 >  } else
13094      puts (dlerror ());
12703 –
13095    return status;
13096   }
13097   _LT_EOF
13098 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13098 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13099    (eval $ac_link) 2>&5
13100    ac_status=$?
13101    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13102 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13103 <    (./conftest; exit; ) >&5 2>/dev/null
13104 <    lt_status=$?
13105 <    case x$lt_status in
13106 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13107 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13108 <      x$lt_dlunknown|x*)  ;;
13109 <    esac
13110 <  else :
13111 <    # compilation failed
13112 <
12722 <  fi
12723 < fi
12724 < rm -fr conftest*
12725 <
12726 <          LIBS="$save_LIBS"
13102 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13103 >        (./conftest; exit; ) >&5 2>/dev/null
13104 >        libltdl_status=$?
13105 >        case x$libltdl_status in
13106 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13107 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13108 >          x*) libltdl_cv_need_uscore=unknown ;;
13109 >        esac
13110 >      fi
13111 >      rm -rf conftest* $libname*
13112 >      LIBS=$dlsym_uscore_save_LIBS
13113  
13114   fi
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12731 | Line 13117 | $as_echo "$libltdl_cv_need_uscore" >&6;
13117    fi
13118   fi
13119  
13120 < if test x"$libltdl_cv_need_uscore" = xyes; then
13120 > if test yes = "$libltdl_cv_need_uscore"; then
13121  
13122   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13123  
# Line 12750 | Line 13136 | else
13136    case $host_os in
13137    aix3*|aix4.1.*|aix4.2.*)
13138      # Unknown whether this is true for these versions of AIX, but
13139 <    # we want this `case' here to explicitly catch those versions.
13139 >    # we want this 'case' here to explicitly catch those versions.
13140      lt_cv_sys_dlopen_deplibs=unknown
13141      ;;
13142    aix[4-9]*)
# Line 12763 | Line 13149 | else
13149        ;;
13150      esac
13151      ;;
13152 +  bitrig*)
13153 +    lt_cv_sys_dlopen_deplibs=yes
13154 +    ;;
13155    darwin*)
13156      # Assuming the user has installed a libdl from somewhere, this is true
13157      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12791 | Line 13180 | else
13180      # at 6.2 and later dlopen does load deplibs.
13181      lt_cv_sys_dlopen_deplibs=yes
13182      ;;
13183 <  netbsd*)
13183 >  netbsd* | netbsdelf*-gnu)
13184      lt_cv_sys_dlopen_deplibs=yes
13185      ;;
13186    openbsd*)
# Line 12800 | Line 13189 | else
13189    osf[1234]*)
13190      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13191      # it did *not* use an RPATH in a shared library to find objects the
13192 <    # library depends on, so we explicitly say `no'.
13192 >    # library depends on, so we explicitly say 'no'.
13193      lt_cv_sys_dlopen_deplibs=no
13194      ;;
13195    osf5.0|osf5.0a|osf5.1)
# Line 12809 | Line 13198 | else
13198      # that the library depends on, but there's no easy way to know if that
13199      # patch is installed.  Since this is the case, all we can really
13200      # say is unknown -- it depends on the patch being installed.  If
13201 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13201 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13202      lt_cv_sys_dlopen_deplibs=unknown
13203      ;;
13204    osf*)
13205      # the two cases above should catch all versions of osf <= 5.1.  Read
13206      # the comments above for what we know about them.
13207      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13208 <    # is used to find them so we can finally say `yes'.
13208 >    # is used to find them so we can finally say 'yes'.
13209      lt_cv_sys_dlopen_deplibs=yes
13210      ;;
13211    qnx*)
# Line 12833 | Line 13222 | else
13222   fi
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13224   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13225 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13225 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13226  
13227   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13228  
13229   fi
13230  
12842 – :
13231  
13232   for ac_header in argz.h
13233   do :
# Line 12876 | Line 13264 | $as_echo "#define __error_t_defined 1" >
13264   fi
13265  
13266  
13267 < ARGZ_H=
13267 > LT_ARGZ_H=
13268   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13269          argz_next argz_stringify
13270   do :
# Line 12888 | Line 13276 | if eval test \"x\$"$as_ac_var"\" = x"yes
13276   _ACEOF
13277  
13278   else
13279 <  ARGZ_H=argz.h;
13279 >  LT_ARGZ_H=lt__argz.h;
13280  
13281 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13281 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13282  
13283   fi
13284   done
13285  
13286  
13287 < if test -z "$ARGZ_H"; then :
13287 > if test -z "$LT_ARGZ_H"; then :
13288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13289   $as_echo_n "checking if argz actually works... " >&6; }
13290   if ${lt_cv_sys_argz_works+:} false; then :
# Line 12905 | Line 13293 | else
13293    case $host_os in #(
13294           *cygwin*)
13295             lt_cv_sys_argz_works=no
13296 <           if test "$cross_compiling" != no; then
13296 >           if test no != "$cross_compiling"; then
13297               lt_cv_sys_argz_works="guessing no"
13298             else
13299               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12916 | Line 13304 | else
13304               lt_os_major=${2-0}
13305               lt_os_minor=${3-0}
13306               lt_os_micro=${4-0}
13307 <             if test "$lt_os_major" -gt 1 \
13308 <                || { test "$lt_os_major" -eq 1 \
13309 <                  && { test "$lt_os_minor" -gt 5 \
13310 <                    || { test "$lt_os_minor" -eq 5 \
13311 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13307 >             if test 1 -lt "$lt_os_major" \
13308 >                || { test 1 -eq "$lt_os_major" \
13309 >                  && { test 5 -lt "$lt_os_minor" \
13310 >                    || { test 5 -eq "$lt_os_minor" \
13311 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13312                 lt_cv_sys_argz_works=yes
13313               fi
13314             fi
# Line 12930 | Line 13318 | else
13318   fi
13319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13320   $as_echo "$lt_cv_sys_argz_works" >&6; }
13321 <     if test "$lt_cv_sys_argz_works" = yes; then :
13321 >     if test yes = "$lt_cv_sys_argz_works"; then :
13322  
13323   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13324  
13325   else
13326 <  ARGZ_H=argz.h
13326 >  LT_ARGZ_H=lt__argz.h
13327  
13328  
13329 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13329 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13330  
13331   fi
13332   fi
# Line 12959 | Line 13347 | else
13347   fi
13348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13349   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13350 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13350 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13351  
13352   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13353  
# Line 12983 | Line 13371 | if test "${with_included_ltdl+set}" = se
13371   fi
13372  
13373  
13374 < if test "x$with_included_ltdl" != xyes; then
13374 > if test yes != "$with_included_ltdl"; then
13375    # We are not being forced to use the included libltdl sources, so
13376    # decide whether there is a useful installed version we can use.
13377    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 13059 | Line 13447 | fi
13447   if test -n "$with_ltdl_include"; then
13448    if test -f "$with_ltdl_include/ltdl.h"; then :
13449    else
13450 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13450 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13451    fi
13452   else
13453    with_ltdl_include=no
# Line 13075 | Line 13463 | fi
13463   if test -n "$with_ltdl_lib"; then
13464    if test -f "$with_ltdl_lib/libltdl.la"; then :
13465    else
13466 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13466 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13467    fi
13468   else
13469    with_ltdl_lib=no
# Line 13088 | Line 13476 | case ,$with_included_ltdl,$with_ltdl_inc
13476    "") enable_ltdl_convenience=yes
13477        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13478   esac
13479 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13479 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13480   LTDLDEPS=$LIBLTDL
13481 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13481 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13482  
13483  
13484  
13485  
13486  
13487   # For backwards non-gettext consistent compatibility...
13488 < INCLTDL="$LTDLINCL"
13488 > INCLTDL=$LTDLINCL
13489  
13490  
13491          ;;
# Line 13112 | Line 13500 | $as_echo "#define HAVE_LTDL 1" >>confdef
13500          LTDLINCL=
13501          ;;
13502    ,no*,no,*)
13503 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13503 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13504          ;;
13505    *)    with_included_ltdl=no
13506          LIBLTDL="-L$with_ltdl_lib -lltdl"
13507          LTDLDEPS=
13508 <        LTDLINCL="-I$with_ltdl_include"
13508 >        LTDLINCL=-I$with_ltdl_include
13509          ;;
13510   esac
13511 < INCLTDL="$LTDLINCL"
13511 > INCLTDL=$LTDLINCL
13512  
13513   # Report our decision...
13514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 13140 | Line 13528 | if test "${enable_ltdl_install+set}" = s
13528   fi
13529  
13530  
13531 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13531 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13532    *yes*) ;;
13533    *) enable_ltdl_convenience=yes ;;
13534   esac
13535  
13536 < if test x"${enable_ltdl_install-no}" != xno; then
13536 > if test no != "${enable_ltdl_install-no}"; then
13537    INSTALL_LTDL_TRUE=
13538    INSTALL_LTDL_FALSE='#'
13539   else
# Line 13153 | Line 13541 | else
13541    INSTALL_LTDL_FALSE=
13542   fi
13543  
13544 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13544 >  if test no != "${enable_ltdl_convenience-no}"; then
13545    CONVENIENCE_LTDL_TRUE=
13546    CONVENIENCE_LTDL_FALSE='#'
13547   else
# Line 13253 | Line 13641 | eval "LTDLOPEN=\"$libname_spec\""
13641  
13642   LIBTOOL="$LIBTOOL --silent"
13643  
13644 < # The cast to long int works around a bug in the HP C Compiler
13257 < # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13258 < # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13259 < # This bug is HP SR number 8606223364.
13260 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13261 < $as_echo_n "checking size of short... " >&6; }
13262 < if ${ac_cv_sizeof_short+:} false; then :
13263 <  $as_echo_n "(cached) " >&6
13264 < else
13265 <  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13266 <
13267 < else
13268 <  if test "$ac_cv_type_short" = yes; then
13269 <     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13270 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13271 < as_fn_error 77 "cannot compute sizeof (short)
13272 < See \`config.log' for more details" "$LINENO" 5; }
13273 <   else
13274 <     ac_cv_sizeof_short=0
13275 <   fi
13276 < fi
13277 <
13278 < fi
13279 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13280 < $as_echo "$ac_cv_sizeof_short" >&6; }
13281 <
13282 <
13283 <
13284 < cat >>confdefs.h <<_ACEOF
13285 < #define SIZEOF_SHORT $ac_cv_sizeof_short
13286 < _ACEOF
13644 > # Checks for libraries.
13645  
13646  
13647 < # The cast to long int works around a bug in the HP C Compiler
13648 < # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13649 < # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13650 < # This bug is HP SR number 8606223364.
13293 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13294 < $as_echo_n "checking size of int... " >&6; }
13295 < if ${ac_cv_sizeof_int+:} false; then :
13647 >  if test "X$CC" != "X"; then
13648 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13649 > $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13650 > if ${ssp_cv_cc+:} false; then :
13651    $as_echo_n "(cached) " >&6
13652   else
13653 <  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13654 <
13655 < else
13656 <  if test "$ac_cv_type_int" = yes; then
13302 <     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13303 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13304 < as_fn_error 77 "cannot compute sizeof (int)
13305 < See \`config.log' for more details" "$LINENO" 5; }
13306 <   else
13307 <     ac_cv_sizeof_int=0
13308 <   fi
13309 < fi
13310 <
13311 < fi
13312 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13313 < $as_echo "$ac_cv_sizeof_int" >&6; }
13314 <
13653 >  ssp_old_cflags="$CFLAGS"
13654 >       CFLAGS="$CFLAGS -fstack-protector-strong"
13655 >       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 > /* end confdefs.h.  */
13657  
13658 + int
13659 + main ()
13660 + {
13661  
13662 < cat >>confdefs.h <<_ACEOF
13663 < #define SIZEOF_INT $ac_cv_sizeof_int
13662 >  ;
13663 >  return 0;
13664 > }
13665   _ACEOF
13666 <
13667 <
13322 < # The cast to long int works around a bug in the HP C Compiler
13323 < # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13324 < # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13325 < # This bug is HP SR number 8606223364.
13326 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13327 < $as_echo_n "checking size of long... " >&6; }
13328 < if ${ac_cv_sizeof_long+:} false; then :
13329 <  $as_echo_n "(cached) " >&6
13330 < else
13331 <  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13332 <
13666 > if ac_fn_c_try_compile "$LINENO"; then :
13667 >  ssp_cv_cc=yes
13668   else
13669 <  if test "$ac_cv_type_long" = yes; then
13335 <     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13336 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13337 < as_fn_error 77 "cannot compute sizeof (long)
13338 < See \`config.log' for more details" "$LINENO" 5; }
13339 <   else
13340 <     ac_cv_sizeof_long=0
13341 <   fi
13669 >  ssp_cv_cc=no
13670   fi
13671 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 +       CFLAGS="$ssp_old_cflags"
13673  
13674   fi
13675 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13676 < $as_echo "$ac_cv_sizeof_long" >&6; }
13677 <
13675 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13676 > $as_echo "$ssp_cv_cc" >&6; }
13677 >    if test $ssp_cv_cc = yes; then
13678 >      CFLAGS="$CFLAGS -fstack-protector-strong"
13679  
13680 + $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13681  
13682 < cat >>confdefs.h <<_ACEOF
13683 < #define SIZEOF_LONG $ac_cv_sizeof_long
13684 < _ACEOF
13685 <
13686 <
13355 < # The cast to long int works around a bug in the HP C Compiler
13356 < # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13357 < # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13358 < # This bug is HP SR number 8606223364.
13359 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13360 < $as_echo_n "checking size of void *... " >&6; }
13361 < if ${ac_cv_sizeof_void_p+:} false; then :
13682 >    else
13683 >      unset ssp_cv_cc
13684 >      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13685 > $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13686 > if ${ssp_cv_cc+:} false; then :
13687    $as_echo_n "(cached) " >&6
13688   else
13689 <  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13690 <
13691 < else
13692 <  if test "$ac_cv_type_void_p" = yes; then
13368 <     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13369 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13370 < as_fn_error 77 "cannot compute sizeof (void *)
13371 < See \`config.log' for more details" "$LINENO" 5; }
13372 <   else
13373 <     ac_cv_sizeof_void_p=0
13374 <   fi
13375 < fi
13376 <
13377 < fi
13378 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13379 < $as_echo "$ac_cv_sizeof_void_p" >&6; }
13380 <
13689 >  ssp_old_cflags="$CFLAGS"
13690 >         CFLAGS="$CFLAGS -fstack-protector"
13691 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 > /* end confdefs.h.  */
13693  
13694 + int
13695 + main ()
13696 + {
13697  
13698 < cat >>confdefs.h <<_ACEOF
13699 < #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13698 >  ;
13699 >  return 0;
13700 > }
13701   _ACEOF
13702 <
13703 <
13388 < # The cast to long int works around a bug in the HP C Compiler
13389 < # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13390 < # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13391 < # This bug is HP SR number 8606223364.
13392 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
13393 < $as_echo_n "checking size of int64_t... " >&6; }
13394 < if ${ac_cv_sizeof_int64_t+:} false; then :
13395 <  $as_echo_n "(cached) " >&6
13396 < else
13397 <  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
13398 <
13702 > if ac_fn_c_try_compile "$LINENO"; then :
13703 >  ssp_cv_cc=yes
13704   else
13705 <  if test "$ac_cv_type_int64_t" = yes; then
13401 <     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13402 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13403 < as_fn_error 77 "cannot compute sizeof (int64_t)
13404 < See \`config.log' for more details" "$LINENO" 5; }
13405 <   else
13406 <     ac_cv_sizeof_int64_t=0
13407 <   fi
13705 >  ssp_cv_cc=no
13706   fi
13707 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 +         CFLAGS="$ssp_old_cflags"
13709  
13710   fi
13711 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
13712 < $as_echo "$ac_cv_sizeof_int64_t" >&6; }
13711 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13712 > $as_echo "$ssp_cv_cc" >&6; }
13713 >      if test $ssp_cv_cc = yes; then
13714 >        CFLAGS="$CFLAGS -fstack-protector"
13715  
13716 + $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13717  
13718 <
13719 < cat >>confdefs.h <<_ACEOF
13720 < #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
13418 < _ACEOF
13718 >      fi
13719 >    fi
13720 >  fi
13721  
13722  
13723 < # The cast to long int works around a bug in the HP C Compiler
13724 < # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13725 < # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13424 < # This bug is HP SR number 8606223364.
13425 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13426 < $as_echo_n "checking size of long long... " >&6; }
13427 < if ${ac_cv_sizeof_long_long+:} false; then :
13723 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13724 > $as_echo_n "checking whether libssp exists... " >&6; }
13725 > if ${ssp_cv_lib+:} false; then :
13726    $as_echo_n "(cached) " >&6
13727   else
13728 <  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13729 <
13730 < else
13731 <  if test "$ac_cv_type_long_long" = yes; then
13434 <     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13435 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13436 < as_fn_error 77 "cannot compute sizeof (long long)
13437 < See \`config.log' for more details" "$LINENO" 5; }
13438 <   else
13439 <     ac_cv_sizeof_long_long=0
13440 <   fi
13441 < fi
13442 <
13443 < fi
13444 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13445 < $as_echo "$ac_cv_sizeof_long_long" >&6; }
13446 <
13447 <
13448 <
13449 < cat >>confdefs.h <<_ACEOF
13450 < #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13451 < _ACEOF
13452 <
13453 <
13454 <
13455 < if test "$ac_cv_sizeof_int" = 2 ; then
13456 <  ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13457 < if test "x$ac_cv_type_int16_t" = xyes; then :
13458 <
13459 < else
13460 <
13461 < cat >>confdefs.h <<_ACEOF
13462 < #define int16_t int
13463 < _ACEOF
13464 <
13465 < fi
13466 <
13467 <  ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13468 < if test "x$ac_cv_type_uint16_t" = xyes; then :
13469 <
13470 < else
13471 <
13472 < cat >>confdefs.h <<_ACEOF
13473 < #define uint16_t unsigned int
13474 < _ACEOF
13475 <
13476 < fi
13477 <
13478 < elif test "$ac_cv_sizeof_short" = 2 ; then
13479 <  ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13480 < if test "x$ac_cv_type_int16_t" = xyes; then :
13481 <
13482 < else
13483 <
13484 < cat >>confdefs.h <<_ACEOF
13485 < #define int16_t short
13486 < _ACEOF
13487 <
13488 < fi
13489 <
13490 <  ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13491 < if test "x$ac_cv_type_uint16_t" = xyes; then :
13492 <
13493 < else
13494 <
13495 < cat >>confdefs.h <<_ACEOF
13496 < #define uint16_t unsigned short
13497 < _ACEOF
13498 <
13499 < fi
13500 <
13501 < else
13502 <  as_fn_error $? "Cannot find a type with size of 16 bits" "$LINENO" 5
13503 < fi
13504 < if test "$ac_cv_sizeof_int" = 4 ; then
13505 <  ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13506 < if test "x$ac_cv_type_int32_t" = xyes; then :
13507 <
13508 < else
13509 <
13510 < cat >>confdefs.h <<_ACEOF
13511 < #define int32_t int
13512 < _ACEOF
13513 <
13514 < fi
13515 <
13516 <  ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13517 < if test "x$ac_cv_type_uint32_t" = xyes; then :
13518 <
13519 < else
13520 <
13521 < cat >>confdefs.h <<_ACEOF
13522 < #define uint32_t unsigned int
13523 < _ACEOF
13524 <
13525 < fi
13526 <
13527 < elif test "$ac_cv_sizeof_short" = 4 ; then
13528 <  ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13529 < if test "x$ac_cv_type_int32_t" = xyes; then :
13530 <
13531 < else
13532 <
13533 < cat >>confdefs.h <<_ACEOF
13534 < #define int32_t short
13535 < _ACEOF
13536 <
13537 < fi
13538 <
13539 <  ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13540 < if test "x$ac_cv_type_uint32_t" = xyes; then :
13541 <
13542 < else
13543 <
13544 < cat >>confdefs.h <<_ACEOF
13545 < #define uint32_t unsigned short
13546 < _ACEOF
13547 <
13548 < fi
13549 <
13550 < elif test "$ac_cv_sizeof_long" = 4 ; then
13551 <  ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13552 < if test "x$ac_cv_type_int32_t" = xyes; then :
13553 <
13554 < else
13555 <
13556 < cat >>confdefs.h <<_ACEOF
13557 < #define int32_t long
13558 < _ACEOF
13559 <
13560 < fi
13561 <
13562 <  ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13563 < if test "x$ac_cv_type_uint32_t" = xyes; then :
13564 <
13565 < else
13566 <
13567 < cat >>confdefs.h <<_ACEOF
13568 < #define uint32_t unsigned long
13569 < _ACEOF
13570 <
13571 < fi
13572 <
13573 < else
13574 <  as_fn_error $? "Cannot find a type with size of 32 bits" "$LINENO" 5
13575 < fi
13576 < if test "$ac_cv_sizeof_int64_t" = 8 ; then
13577 <  ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13578 < if test "x$ac_cv_type_int64_t" = xyes; then :
13579 <
13580 < fi
13581 <
13582 <  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13583 < if test "x$ac_cv_type_uint64_t" = xyes; then :
13584 <
13585 < fi
13586 <
13587 < elif test "$ac_cv_sizeof_long_long" = 8 ; then
13588 <  ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13589 < if test "x$ac_cv_type_int64_t" = xyes; then :
13728 >  ssp_old_libs="$LIBS"
13729 >     LIBS="$LIBS -lssp"
13730 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 > /* end confdefs.h.  */
13732  
13733 < else
13733 > int
13734 > main ()
13735 > {
13736  
13737 < cat >>confdefs.h <<_ACEOF
13738 < #define int64_t long long
13737 >  ;
13738 >  return 0;
13739 > }
13740   _ACEOF
13741 <
13742 < fi
13598 <
13599 <  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13600 < if test "x$ac_cv_type_uint64_t" = xyes; then :
13601 <
13741 > if ac_fn_c_try_link "$LINENO"; then :
13742 >  ssp_cv_lib=yes
13743   else
13744 <
13604 < cat >>confdefs.h <<_ACEOF
13605 < #define uint64_t unsigned long long
13606 < _ACEOF
13607 <
13744 >  ssp_cv_lib=no
13745   fi
13746 + rm -f core conftest.err conftest.$ac_objext \
13747 +    conftest$ac_exeext conftest.$ac_ext
13748 +     LIBS="$ssp_old_libs"
13749  
13610 – else
13611 –  as_fn_error $? "Cannot find a type with size of 64 bits" "$LINENO" 5
13750   fi
13751 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13752 + $as_echo "$ssp_cv_lib" >&6; }
13753 +  if test $ssp_cv_lib = yes; then
13754 +    LIBS="$LIBS -lssp"
13755 +  fi
13756  
13757  
13615 – # Checks for libraries.
13616 –
13758    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13759   if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13760  
# Line 13796 | Line 13937 | else
13937    as_fn_error $? "socket library not found" "$LINENO" 5
13938   fi
13939  
13799 –  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13800 –   #include <sys/socket.h>
13801 –   #include <netdb.h>
13802 –
13803 – "
13804 – if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13805 –
13806 – cat >>confdefs.h <<_ACEOF
13807 – #define HAVE_STRUCT_SOCKADDR_IN 1
13808 – _ACEOF
13809 –
13810 –
13811 – fi
13812 – ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13813 –   #include <sys/socket.h>
13814 –   #include <netdb.h>
13815 –
13816 – "
13817 – if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13818 –
13819 – cat >>confdefs.h <<_ACEOF
13820 – #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13821 – _ACEOF
13822 –
13823 –
13824 – fi
13825 – ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13826 –   #include <sys/socket.h>
13827 –   #include <netdb.h>
13828 –
13829 – "
13830 – if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13831 –
13832 – cat >>confdefs.h <<_ACEOF
13833 – #define HAVE_STRUCT_ADDRINFO 1
13834 – _ACEOF
13835 –
13836 –
13837 – fi
13838 –
13839 –  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13840 –  <sys/socket.h>
13841 – "
13842 – if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13843 –
13844 – cat >>confdefs.h <<_ACEOF
13845 – #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13846 – _ACEOF
13847 –
13848 –
13849 – fi
13850 –
13851 –
13852 –
13853 –  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13854 – "
13855 – if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13856 –
13857 – $as_echo "#define IPV6 1" >>confdefs.h
13858 –
13859 – fi
13860 –
13940  
13941  
13942   # Checks for typedefs, structures, and compiler characteristics.
# Line 14110 | Line 14189 | done
14189  
14190  
14191  
14113 –
14114 –
14192   # Checks for header files.
14193  
14194  
# Line 14142 | Line 14219 | done
14219  
14220  
14221  
14145 –
14146 –
14147 –
14148 –
14222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14223   $as_echo_n "checking for library containing crypt... " >&6; }
14224   if ${ac_cv_search_crypt+:} false; then :
# Line 14203 | Line 14276 | if test "$ac_res" != no; then :
14276   fi
14277  
14278  
14279 < # Check whether --enable-libGeoIP was given.
14280 < if test "${enable_libGeoIP+set}" = set; then :
14281 <  enableval=$enable_libGeoIP;
14282 < else
14283 <  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14284 < if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14285 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
14286 < $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
14287 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14288 <  $as_echo_n "(cached) " >&6
14279 > # Argument processing.
14280 >
14281 >  desired_iopoll_mechanism="none"
14282 >
14283 >  # Check whether --enable-kqueue was given.
14284 > if test "${enable_kqueue+set}" = set; then :
14285 >  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14286 > fi
14287 >
14288 >  # Check whether --enable-epoll was given.
14289 > if test "${enable_epoll+set}" = set; then :
14290 >  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14291 > fi
14292 >
14293 >  # Check whether --enable-devpoll was given.
14294 > if test "${enable_devpoll+set}" = set; then :
14295 >  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14296 > fi
14297 >
14298 >  # Check whether --enable-poll was given.
14299 > if test "${enable_poll+set}" = set; then :
14300 >  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14301 > fi
14302 >
14303 >
14304 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14305 > $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14306 >
14307 >  iopoll_mechanism_none=0
14308 >
14309 > cat >>confdefs.h <<_ACEOF
14310 > #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14311 > _ACEOF
14312 >
14313 >
14314 >  iopoll_mechanism_kqueue=1
14315 >
14316 > cat >>confdefs.h <<_ACEOF
14317 > #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14318 > _ACEOF
14319 >
14320 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 > /* end confdefs.h.  */
14322 > /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14323 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14324 > #define kevent innocuous_kevent
14325 >
14326 > /* System header to define __stub macros and hopefully few prototypes,
14327 >    which can conflict with char kevent (); below.
14328 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14329 >    <limits.h> exists even on freestanding compilers.  */
14330 >
14331 > #ifdef __STDC__
14332 > # include <limits.h>
14333 > #else
14334 > # include <assert.h>
14335 > #endif
14336 >
14337 > #undef kevent
14338 >
14339 > /* Override any GCC internal prototype to avoid an error.
14340 >   Use char because int might match the return type of a GCC
14341 >   builtin and then its argument prototype would still apply.  */
14342 > #ifdef __cplusplus
14343 > extern "C"
14344 > #endif
14345 > char kevent ();
14346 > /* The GNU C library defines this for functions which it implements
14347 >    to always fail with ENOSYS.  Some functions are actually named
14348 >    something starting with __ and the normal name is an alias.  */
14349 > #if defined __stub_kevent || defined __stub___kevent
14350 > choke me
14351 > #endif
14352 >
14353 > int
14354 > main ()
14355 > {
14356 > return kevent ();
14357 >  ;
14358 >  return 0;
14359 > }
14360 > _ACEOF
14361 > if ac_fn_c_try_link "$LINENO"; then :
14362 >  is_kqueue_mechanism_available="yes"
14363   else
14364 <  ac_func_search_save_LIBS=$LIBS
14365 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 >  is_kqueue_mechanism_available="no"
14365 > fi
14366 > rm -f core conftest.err conftest.$ac_objext \
14367 >    conftest$ac_exeext conftest.$ac_ext
14368 >
14369 >  iopoll_mechanism_epoll=2
14370 >
14371 > cat >>confdefs.h <<_ACEOF
14372 > #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14373 > _ACEOF
14374 >
14375 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 > /* end confdefs.h.  */
14377 > #include <sys/epoll.h>
14378 > int
14379 > main ()
14380 > {
14381 > epoll_create1(EPOLL_CLOEXEC);
14382 >  ;
14383 >  return 0;
14384 > }
14385 > _ACEOF
14386 > if ac_fn_c_try_link "$LINENO"; then :
14387 >  is_epoll_mechanism_available="yes"
14388 > else
14389 >  is_epoll_mechanism_available="no"
14390 > fi
14391 > rm -f core conftest.err conftest.$ac_objext \
14392 >    conftest$ac_exeext conftest.$ac_ext
14393 >
14394 >  iopoll_mechanism_devpoll=3
14395 >
14396 > cat >>confdefs.h <<_ACEOF
14397 > #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14398 > _ACEOF
14399 >
14400 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 > /* end confdefs.h.  */
14402 > #include <devpoll.h>
14403 > int
14404 > main ()
14405 > {
14406 >
14407 >  ;
14408 >  return 0;
14409 > }
14410 > _ACEOF
14411 > if ac_fn_c_try_compile "$LINENO"; then :
14412 >  is_devpoll_mechanism_available="yes"
14413 > else
14414 >  is_devpoll_mechanism_available="no"
14415 > fi
14416 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14417 >  if test "$is_devpoll_mechanism_available" = "yes" ; then
14418 >
14419 > $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14420 >
14421 >  fi
14422 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 > /* end confdefs.h.  */
14424 > #include <sys/devpoll.h>
14425 > int
14426 > main ()
14427 > {
14428 >
14429 >  ;
14430 >  return 0;
14431 > }
14432 > _ACEOF
14433 > if ac_fn_c_try_compile "$LINENO"; then :
14434 >  is_devpoll_mechanism_available="yes"
14435 > else
14436 >  is_devpoll_mechanism_available="no"
14437 > fi
14438 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 >  if test "$is_devpoll_mechanism_available" = "yes" ; then
14440 >
14441 > $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14442 >
14443 >  fi
14444 >
14445 >  iopoll_mechanism_poll=4
14446 >
14447 > cat >>confdefs.h <<_ACEOF
14448 > #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14449 > _ACEOF
14450 >
14451 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452   /* end confdefs.h.  */
14453 + /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14454 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14455 + #define poll innocuous_poll
14456 +
14457 + /* System header to define __stub macros and hopefully few prototypes,
14458 +    which can conflict with char poll (); below.
14459 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460 +    <limits.h> exists even on freestanding compilers.  */
14461 +
14462 + #ifdef __STDC__
14463 + # include <limits.h>
14464 + #else
14465 + # include <assert.h>
14466 + #endif
14467 +
14468 + #undef poll
14469  
14470   /* Override any GCC internal prototype to avoid an error.
14471     Use char because int might match the return type of a GCC
# Line 14224 | Line 14473 | cat confdefs.h - <<_ACEOF >conftest.$ac_
14473   #ifdef __cplusplus
14474   extern "C"
14475   #endif
14476 < char GeoIP_id_by_ipnum_v6_gl ();
14476 > char poll ();
14477 > /* The GNU C library defines this for functions which it implements
14478 >    to always fail with ENOSYS.  Some functions are actually named
14479 >    something starting with __ and the normal name is an alias.  */
14480 > #if defined __stub_poll || defined __stub___poll
14481 > choke me
14482 > #endif
14483 >
14484   int
14485   main ()
14486   {
14487 < return GeoIP_id_by_ipnum_v6_gl ();
14487 > return poll ();
14488    ;
14489    return 0;
14490   }
14491   _ACEOF
14492 < for ac_lib in '' GeoIP; do
14493 <  if test -z "$ac_lib"; then
14494 <    ac_res="none required"
14492 > if ac_fn_c_try_link "$LINENO"; then :
14493 >  is_poll_mechanism_available="yes"
14494 > else
14495 >  is_poll_mechanism_available="no"
14496 > fi
14497 > rm -f core conftest.err conftest.$ac_objext \
14498 >    conftest$ac_exeext conftest.$ac_ext
14499 >
14500 >  optimal_iopoll_mechanism="none"
14501 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14502 >    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14503 >    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14504 >      optimal_iopoll_mechanism="$mechanism"
14505 >      break
14506 >    fi
14507 >  done
14508 >
14509 >  if test "$desired_iopoll_mechanism" = "none" ; then
14510 >    if test "$optimal_iopoll_mechanism" = "none" ; then
14511 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14512 > $as_echo "none" >&6; }
14513 >      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14514 >    else
14515 >      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14516 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14517 > $as_echo "$selected_iopoll_mechanism" >&6; }
14518 >    fi
14519    else
14520 <    ac_res=-l$ac_lib
14521 <    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14520 >    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14521 >    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14522 >      selected_iopoll_mechanism=$desired_iopoll_mechanism
14523 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14524 > $as_echo "$selected_iopoll_mechanism" >&6; }
14525 >    else
14526 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14527 > $as_echo "none" >&6; }
14528 >      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14529 >    fi
14530    fi
14531 <  if ac_fn_c_try_link "$LINENO"; then :
14532 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
14531 >
14532 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14533 >
14534 > cat >>confdefs.h <<_ACEOF
14535 > #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14536 > _ACEOF
14537 >
14538 >
14539 >
14540 >  # Check whether --enable-assert was given.
14541 > if test "${enable_assert+set}" = set; then :
14542 >  enableval=$enable_assert; assert=$enableval
14543 > else
14544 >  assert=no
14545   fi
14546 < rm -f core conftest.err conftest.$ac_objext \
14547 <    conftest$ac_exeext
14548 <  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14549 <  break
14546 >
14547 >
14548 >  if test "$assert" = "no"; then :
14549 >
14550 > $as_echo "#define NDEBUG 1" >>confdefs.h
14551 >
14552 > fi
14553 >
14554 >
14555 >  # Check whether --enable-debugging was given.
14556 > if test "${enable_debugging+set}" = set; then :
14557 >  enableval=$enable_debugging; debugging="$enableval"
14558 > else
14559 >  debugging="no"
14560 > fi
14561 >
14562 >
14563 >  if test "$debugging" = "yes"; then :
14564 >
14565 >    CFLAGS="-Wall -g -O0"
14566 >
14567 > fi
14568 >
14569 >
14570 >  # Check whether --enable-warnings was given.
14571 > if test "${enable_warnings+set}" = set; then :
14572 >  enableval=$enable_warnings; warnings="$enableval"
14573 > else
14574 >  warnings="no"
14575 > fi
14576 >
14577 >
14578 >  if test "$warnings" = "yes"; then :
14579 >
14580 >
14581 >
14582 >
14583 >
14584 > for flag in -Wall; do
14585 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14586 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14587 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14588 > if eval \${$as_CACHEVAR+:} false; then :
14589 >  $as_echo_n "(cached) " >&6
14590 > else
14591 >
14592 >  ax_check_save_flags=$CFLAGS
14593 >  CFLAGS="$CFLAGS  $flag"
14594 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 > /* end confdefs.h.  */
14596 >
14597 > int
14598 > main ()
14599 > {
14600 >
14601 >  ;
14602 >  return 0;
14603 > }
14604 > _ACEOF
14605 > if ac_fn_c_try_compile "$LINENO"; then :
14606 >  eval "$as_CACHEVAR=yes"
14607 > else
14608 >  eval "$as_CACHEVAR=no"
14609 > fi
14610 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14611 >  CFLAGS=$ax_check_save_flags
14612   fi
14613 + eval ac_res=\$$as_CACHEVAR
14614 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14615 + $as_echo "$ac_res" >&6; }
14616 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14617 +
14618 + if ${CFLAGS+:} false; then :
14619 +
14620 +  case " $CFLAGS " in #(
14621 +  *" $flag "*) :
14622 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14623 +  (: CFLAGS already contains $flag) 2>&5
14624 +  ac_status=$?
14625 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14626 +  test $ac_status = 0; } ;; #(
14627 +  *) :
14628 +
14629 +     as_fn_append CFLAGS " $flag"
14630 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14631 +  (: CFLAGS="$CFLAGS") 2>&5
14632 +  ac_status=$?
14633 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14634 +  test $ac_status = 0; }
14635 +     ;;
14636 + esac
14637 +
14638 + else
14639 +
14640 +  CFLAGS=$flag
14641 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14642 +  (: CFLAGS="$CFLAGS") 2>&5
14643 +  ac_status=$?
14644 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645 +  test $ac_status = 0; }
14646 +
14647 + fi
14648 +
14649 + else
14650 +  :
14651 + fi
14652 +
14653   done
14252 – if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14654  
14655 +
14656 +
14657 +
14658 +
14659 + for flag in -Wbad-function-cast; do
14660 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14661 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14662 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14663 + if eval \${$as_CACHEVAR+:} false; then :
14664 +  $as_echo_n "(cached) " >&6
14665   else
14666 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
14666 >
14667 >  ax_check_save_flags=$CFLAGS
14668 >  CFLAGS="$CFLAGS  $flag"
14669 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 > /* end confdefs.h.  */
14671 >
14672 > int
14673 > main ()
14674 > {
14675 >
14676 >  ;
14677 >  return 0;
14678 > }
14679 > _ACEOF
14680 > if ac_fn_c_try_compile "$LINENO"; then :
14681 >  eval "$as_CACHEVAR=yes"
14682 > else
14683 >  eval "$as_CACHEVAR=no"
14684   fi
14685 < rm conftest.$ac_ext
14686 < LIBS=$ac_func_search_save_LIBS
14685 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686 >  CFLAGS=$ax_check_save_flags
14687   fi
14688 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
14689 < $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
14690 < ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
14691 < if test "$ac_res" != no; then :
14264 <  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14688 > eval ac_res=\$$as_CACHEVAR
14689 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14690 > $as_echo "$ac_res" >&6; }
14691 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14692  
14693 < $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
14693 > if ${CFLAGS+:} false; then :
14694 >
14695 >  case " $CFLAGS " in #(
14696 >  *" $flag "*) :
14697 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14698 >  (: CFLAGS already contains $flag) 2>&5
14699 >  ac_status=$?
14700 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14701 >  test $ac_status = 0; } ;; #(
14702 >  *) :
14703 >
14704 >     as_fn_append CFLAGS " $flag"
14705 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14706 >  (: CFLAGS="$CFLAGS") 2>&5
14707 >  ac_status=$?
14708 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14709 >  test $ac_status = 0; }
14710 >     ;;
14711 > esac
14712 >
14713 > else
14714 >
14715 >  CFLAGS=$flag
14716 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14717 >  (: CFLAGS="$CFLAGS") 2>&5
14718 >  ac_status=$?
14719 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14720 >  test $ac_status = 0; }
14721  
14722   fi
14723  
14724 + else
14725 +  :
14726   fi
14727  
14728 + done
14729 +
14730 +
14731 +
14732  
14733 +
14734 + for flag in -Wcast-align; do
14735 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14736 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14737 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14738 + if eval \${$as_CACHEVAR+:} false; then :
14739 +  $as_echo_n "(cached) " >&6
14740 + else
14741 +
14742 +  ax_check_save_flags=$CFLAGS
14743 +  CFLAGS="$CFLAGS  $flag"
14744 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 + /* end confdefs.h.  */
14746 +
14747 + int
14748 + main ()
14749 + {
14750 +
14751 +  ;
14752 +  return 0;
14753 + }
14754 + _ACEOF
14755 + if ac_fn_c_try_compile "$LINENO"; then :
14756 +  eval "$as_CACHEVAR=yes"
14757 + else
14758 +  eval "$as_CACHEVAR=no"
14759   fi
14760 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761 +  CFLAGS=$ax_check_save_flags
14762 + fi
14763 + eval ac_res=\$$as_CACHEVAR
14764 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14765 + $as_echo "$ac_res" >&6; }
14766 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14767  
14768 + if ${CFLAGS+:} false; then :
14769 +
14770 +  case " $CFLAGS " in #(
14771 +  *" $flag "*) :
14772 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14773 +  (: CFLAGS already contains $flag) 2>&5
14774 +  ac_status=$?
14775 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14776 +  test $ac_status = 0; } ;; #(
14777 +  *) :
14778 +
14779 +     as_fn_append CFLAGS " $flag"
14780 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14781 +  (: CFLAGS="$CFLAGS") 2>&5
14782 +  ac_status=$?
14783 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14784 +  test $ac_status = 0; }
14785 +     ;;
14786 + esac
14787  
14276 – # Check whether --enable-openssl was given.
14277 – if test "${enable_openssl+set}" = set; then :
14278 –  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14788   else
14789 <   cf_enable_openssl="auto"
14789 >
14790 >  CFLAGS=$flag
14791 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14792 >  (: CFLAGS="$CFLAGS") 2>&5
14793 >  ac_status=$?
14794 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14795 >  test $ac_status = 0; }
14796 >
14797   fi
14798  
14799 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14800 < $as_echo_n "checking for OpenSSL... " >&6; }
14801 < if test "$cf_enable_openssl" != "no"; then
14286 <  cf_openssl_basedir=""
14287 <  if test "$cf_enable_openssl" != "auto" &&
14288 <     test "$cf_enable_openssl" != "yes"; then
14289 <          cf_openssl_basedir="${cf_enable_openssl}"
14290 <  else
14291 <        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14292 <                /opt /opt/openssl /usr/local/openssl; do
14293 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
14294 <        cf_openssl_basedir="${dirs}"
14295 <        break
14296 <      fi
14297 <    done
14298 <    unset dirs
14299 <  fi
14799 > else
14800 >  :
14801 > fi
14802  
14803 <    if test ! -z "$cf_openssl_basedir"; then
14302 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14303 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14304 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14305 <    else
14306 <                  cf_openssl_basedir=""
14307 <    fi
14308 <  else
14309 <                            if test -f "/usr/include/openssl/opensslv.h"; then
14310 <      cf_openssl_basedir="/usr"
14311 <    fi
14312 <  fi
14803 > done
14804  
14805 <      if test ! -z "$cf_openssl_basedir"; then
14806 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14807 < $as_echo "$cf_openssl_basedir" >&6; }
14808 <    cf_enable_openssl="yes"
14809 <  else
14810 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14811 < $as_echo "not found. Please check your path." >&6; }
14812 <    cf_enable_openssl="no"
14813 <  fi
14814 <  unset cf_openssl_basedir
14805 >
14806 >
14807 >
14808 >
14809 > for flag in -Wcast-function-type; do
14810 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14811 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14812 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14813 > if eval \${$as_CACHEVAR+:} false; then :
14814 >  $as_echo_n "(cached) " >&6
14815   else
14816 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14817 < $as_echo "disabled" >&6; }
14816 >
14817 >  ax_check_save_flags=$CFLAGS
14818 >  CFLAGS="$CFLAGS  $flag"
14819 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 > /* end confdefs.h.  */
14821 >
14822 > int
14823 > main ()
14824 > {
14825 >
14826 >  ;
14827 >  return 0;
14828 > }
14829 > _ACEOF
14830 > if ac_fn_c_try_compile "$LINENO"; then :
14831 >  eval "$as_CACHEVAR=yes"
14832 > else
14833 >  eval "$as_CACHEVAR=no"
14834 > fi
14835 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 >  CFLAGS=$ax_check_save_flags
14837 > fi
14838 > eval ac_res=\$$as_CACHEVAR
14839 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14840 > $as_echo "$ac_res" >&6; }
14841 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14842 >
14843 > if ${CFLAGS+:} false; then :
14844 >
14845 >  case " $CFLAGS " in #(
14846 >  *" $flag "*) :
14847 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14848 >  (: CFLAGS already contains $flag) 2>&5
14849 >  ac_status=$?
14850 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14851 >  test $ac_status = 0; } ;; #(
14852 >  *) :
14853 >
14854 >     as_fn_append CFLAGS " $flag"
14855 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14856 >  (: CFLAGS="$CFLAGS") 2>&5
14857 >  ac_status=$?
14858 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14859 >  test $ac_status = 0; }
14860 >     ;;
14861 > esac
14862 >
14863 > else
14864 >
14865 >  CFLAGS=$flag
14866 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14867 >  (: CFLAGS="$CFLAGS") 2>&5
14868 >  ac_status=$?
14869 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14870 >  test $ac_status = 0; }
14871 >
14872   fi
14873  
14329 – if test "$cf_enable_openssl" != "no"; then :
14330 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14331 – $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14332 –  if test "$cross_compiling" = yes; then :
14333 –  cf_openssl_version_ok=no
14874   else
14875 +  :
14876 + fi
14877 +
14878 + done
14879 +
14880 +
14881 +
14882 +
14883 +
14884 + for flag in -Wcast-qual; do
14885 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14886 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14887 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14888 + if eval \${$as_CACHEVAR+:} false; then :
14889 +  $as_echo_n "(cached) " >&6
14890 + else
14891 +
14892 +  ax_check_save_flags=$CFLAGS
14893 +  CFLAGS="$CFLAGS  $flag"
14894    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895   /* end confdefs.h.  */
14896  
14897 + int
14898 + main ()
14899 + {
14900 +
14901 +  ;
14902 +  return 0;
14903 + }
14904 + _ACEOF
14905 + if ac_fn_c_try_compile "$LINENO"; then :
14906 +  eval "$as_CACHEVAR=yes"
14907 + else
14908 +  eval "$as_CACHEVAR=no"
14909 + fi
14910 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 +  CFLAGS=$ax_check_save_flags
14912 + fi
14913 + eval ac_res=\$$as_CACHEVAR
14914 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14915 + $as_echo "$ac_res" >&6; }
14916 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14917 +
14918 + if ${CFLAGS+:} false; then :
14919 +
14920 +  case " $CFLAGS " in #(
14921 +  *" $flag "*) :
14922 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14923 +  (: CFLAGS already contains $flag) 2>&5
14924 +  ac_status=$?
14925 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14926 +  test $ac_status = 0; } ;; #(
14927 +  *) :
14928 +
14929 +     as_fn_append CFLAGS " $flag"
14930 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14931 +  (: CFLAGS="$CFLAGS") 2>&5
14932 +  ac_status=$?
14933 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14934 +  test $ac_status = 0; }
14935 +     ;;
14936 + esac
14937 +
14938 + else
14939 +
14940 +  CFLAGS=$flag
14941 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14942 +  (: CFLAGS="$CFLAGS") 2>&5
14943 +  ac_status=$?
14944 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14945 +  test $ac_status = 0; }
14946 +
14947 + fi
14948 +
14949 + else
14950 +  :
14951 + fi
14952 +
14953 + done
14954 +
14955 +
14956 +
14957 +
14958 +
14959 + for flag in -Wclobbered; do
14960 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14961 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14962 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14963 + if eval \${$as_CACHEVAR+:} false; then :
14964 +  $as_echo_n "(cached) " >&6
14965 + else
14966 +
14967 +  ax_check_save_flags=$CFLAGS
14968 +  CFLAGS="$CFLAGS  $flag"
14969 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 + /* end confdefs.h.  */
14971  
14339 –    #include <openssl/opensslv.h>
14340 –    #include <stdlib.h>
14972   int
14973   main ()
14974   {
14975 < exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14975 >
14976    ;
14977    return 0;
14978   }
14979   _ACEOF
14980 < if ac_fn_c_try_run "$LINENO"; then :
14981 <  cf_openssl_version_ok=yes
14980 > if ac_fn_c_try_compile "$LINENO"; then :
14981 >  eval "$as_CACHEVAR=yes"
14982   else
14983 <  cf_openssl_version_ok=no
14983 >  eval "$as_CACHEVAR=no"
14984   fi
14985 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14986 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14985 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14986 >  CFLAGS=$ax_check_save_flags
14987   fi
14988 + eval ac_res=\$$as_CACHEVAR
14989 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14990 + $as_echo "$ac_res" >&6; }
14991 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14992  
14993 + if ${CFLAGS+:} false; then :
14994  
14995 <  if test "$cf_openssl_version_ok" = "yes"; then :
14996 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14997 < $as_echo "found" >&6; }
14995 >  case " $CFLAGS " in #(
14996 >  *" $flag "*) :
14997 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14998 >  (: CFLAGS already contains $flag) 2>&5
14999 >  ac_status=$?
15000 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15001 >  test $ac_status = 0; } ;; #(
15002 >  *) :
15003  
15004 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
15005 < $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
15006 < if ${ac_cv_lib_crypto_RSA_free+:} false; then :
15004 >     as_fn_append CFLAGS " $flag"
15005 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15006 >  (: CFLAGS="$CFLAGS") 2>&5
15007 >  ac_status=$?
15008 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15009 >  test $ac_status = 0; }
15010 >     ;;
15011 > esac
15012 >
15013 > else
15014 >
15015 >  CFLAGS=$flag
15016 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15017 >  (: CFLAGS="$CFLAGS") 2>&5
15018 >  ac_status=$?
15019 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15020 >  test $ac_status = 0; }
15021 >
15022 > fi
15023 >
15024 > else
15025 >  :
15026 > fi
15027 >
15028 > done
15029 >
15030 >
15031 >
15032 >
15033 >
15034 > for flag in -Wduplicated-cond; do
15035 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15036 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15037 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15038 > if eval \${$as_CACHEVAR+:} false; then :
15039    $as_echo_n "(cached) " >&6
15040   else
15041 <  ac_check_lib_save_LIBS=$LIBS
15042 < LIBS="-lcrypto  $LIBS"
15043 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041 >
15042 >  ax_check_save_flags=$CFLAGS
15043 >  CFLAGS="$CFLAGS  $flag"
15044 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045   /* end confdefs.h.  */
15046  
14373 – /* Override any GCC internal prototype to avoid an error.
14374 –   Use char because int might match the return type of a GCC
14375 –   builtin and then its argument prototype would still apply.  */
14376 – #ifdef __cplusplus
14377 – extern "C"
14378 – #endif
14379 – char RSA_free ();
15047   int
15048   main ()
15049   {
15050 < return RSA_free ();
15050 >
15051    ;
15052    return 0;
15053   }
15054   _ACEOF
15055 < if ac_fn_c_try_link "$LINENO"; then :
15056 <  ac_cv_lib_crypto_RSA_free=yes
15055 > if ac_fn_c_try_compile "$LINENO"; then :
15056 >  eval "$as_CACHEVAR=yes"
15057   else
15058 <  ac_cv_lib_crypto_RSA_free=no
15058 >  eval "$as_CACHEVAR=no"
15059   fi
15060 < rm -f core conftest.err conftest.$ac_objext \
15061 <    conftest$ac_exeext conftest.$ac_ext
14395 < LIBS=$ac_check_lib_save_LIBS
15060 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 >  CFLAGS=$ax_check_save_flags
15062   fi
15063 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
15064 < $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
15065 < if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
15066 <  cat >>confdefs.h <<_ACEOF
15067 < #define HAVE_LIBCRYPTO 1
15063 > eval ac_res=\$$as_CACHEVAR
15064 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15065 > $as_echo "$ac_res" >&6; }
15066 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15067 >
15068 > if ${CFLAGS+:} false; then :
15069 >
15070 >  case " $CFLAGS " in #(
15071 >  *" $flag "*) :
15072 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15073 >  (: CFLAGS already contains $flag) 2>&5
15074 >  ac_status=$?
15075 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15076 >  test $ac_status = 0; } ;; #(
15077 >  *) :
15078 >
15079 >     as_fn_append CFLAGS " $flag"
15080 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15081 >  (: CFLAGS="$CFLAGS") 2>&5
15082 >  ac_status=$?
15083 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084 >  test $ac_status = 0; }
15085 >     ;;
15086 > esac
15087 >
15088 > else
15089 >
15090 >  CFLAGS=$flag
15091 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15092 >  (: CFLAGS="$CFLAGS") 2>&5
15093 >  ac_status=$?
15094 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15095 >  test $ac_status = 0; }
15096 >
15097 > fi
15098 >
15099 > else
15100 >  :
15101 > fi
15102 >
15103 > done
15104 >
15105 >
15106 >
15107 >
15108 >
15109 > for flag in -Wempty-body; do
15110 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15111 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15112 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15113 > if eval \${$as_CACHEVAR+:} false; then :
15114 >  $as_echo_n "(cached) " >&6
15115 > else
15116 >
15117 >  ax_check_save_flags=$CFLAGS
15118 >  CFLAGS="$CFLAGS  $flag"
15119 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 > /* end confdefs.h.  */
15121 >
15122 > int
15123 > main ()
15124 > {
15125 >
15126 >  ;
15127 >  return 0;
15128 > }
15129   _ACEOF
15130 + if ac_fn_c_try_compile "$LINENO"; then :
15131 +  eval "$as_CACHEVAR=yes"
15132 + else
15133 +  eval "$as_CACHEVAR=no"
15134 + fi
15135 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136 +  CFLAGS=$ax_check_save_flags
15137 + fi
15138 + eval ac_res=\$$as_CACHEVAR
15139 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15140 + $as_echo "$ac_res" >&6; }
15141 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15142  
15143 <  LIBS="-lcrypto $LIBS"
15143 > if ${CFLAGS+:} false; then :
15144 >
15145 >  case " $CFLAGS " in #(
15146 >  *" $flag "*) :
15147 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15148 >  (: CFLAGS already contains $flag) 2>&5
15149 >  ac_status=$?
15150 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15151 >  test $ac_status = 0; } ;; #(
15152 >  *) :
15153 >
15154 >     as_fn_append CFLAGS " $flag"
15155 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15156 >  (: CFLAGS="$CFLAGS") 2>&5
15157 >  ac_status=$?
15158 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15159 >  test $ac_status = 0; }
15160 >     ;;
15161 > esac
15162 >
15163 > else
15164 >
15165 >  CFLAGS=$flag
15166 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15167 >  (: CFLAGS="$CFLAGS") 2>&5
15168 >  ac_status=$?
15169 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15170 >  test $ac_status = 0; }
15171  
15172   fi
15173  
15174 <    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
15175 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
15176 < $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
15177 < if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
15174 > else
15175 >  :
15176 > fi
15177 >
15178 > done
15179 >
15180 >
15181 >
15182 >
15183 >
15184 > for flag in -Wignored-qualifiers; do
15185 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15186 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15187 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15188 > if eval \${$as_CACHEVAR+:} false; then :
15189    $as_echo_n "(cached) " >&6
15190   else
15191 <  ac_check_lib_save_LIBS=$LIBS
15192 < LIBS="-lssl  $LIBS"
15193 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 >
15192 >  ax_check_save_flags=$CFLAGS
15193 >  CFLAGS="$CFLAGS  $flag"
15194 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195   /* end confdefs.h.  */
15196  
14419 – /* Override any GCC internal prototype to avoid an error.
14420 –   Use char because int might match the return type of a GCC
14421 –   builtin and then its argument prototype would still apply.  */
14422 – #ifdef __cplusplus
14423 – extern "C"
14424 – #endif
14425 – char SSL_connect ();
15197   int
15198   main ()
15199   {
15200 < return SSL_connect ();
15200 >
15201    ;
15202    return 0;
15203   }
15204   _ACEOF
15205 < if ac_fn_c_try_link "$LINENO"; then :
15206 <  ac_cv_lib_ssl_SSL_connect=yes
15205 > if ac_fn_c_try_compile "$LINENO"; then :
15206 >  eval "$as_CACHEVAR=yes"
15207   else
15208 <  ac_cv_lib_ssl_SSL_connect=no
15208 >  eval "$as_CACHEVAR=no"
15209   fi
15210 < rm -f core conftest.err conftest.$ac_objext \
15211 <    conftest$ac_exeext conftest.$ac_ext
14441 < LIBS=$ac_check_lib_save_LIBS
15210 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 >  CFLAGS=$ax_check_save_flags
15212   fi
15213 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
15214 < $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
15215 < if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
15216 <  cat >>confdefs.h <<_ACEOF
15217 < #define HAVE_LIBSSL 1
15213 > eval ac_res=\$$as_CACHEVAR
15214 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15215 > $as_echo "$ac_res" >&6; }
15216 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15217 >
15218 > if ${CFLAGS+:} false; then :
15219 >
15220 >  case " $CFLAGS " in #(
15221 >  *" $flag "*) :
15222 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15223 >  (: CFLAGS already contains $flag) 2>&5
15224 >  ac_status=$?
15225 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15226 >  test $ac_status = 0; } ;; #(
15227 >  *) :
15228 >
15229 >     as_fn_append CFLAGS " $flag"
15230 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15231 >  (: CFLAGS="$CFLAGS") 2>&5
15232 >  ac_status=$?
15233 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15234 >  test $ac_status = 0; }
15235 >     ;;
15236 > esac
15237 >
15238 > else
15239 >
15240 >  CFLAGS=$flag
15241 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15242 >  (: CFLAGS="$CFLAGS") 2>&5
15243 >  ac_status=$?
15244 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245 >  test $ac_status = 0; }
15246 >
15247 > fi
15248 >
15249 > else
15250 >  :
15251 > fi
15252 >
15253 > done
15254 >
15255 >
15256 >
15257 >
15258 >
15259 > for flag in -Wlogical-op; do
15260 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15261 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15262 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15263 > if eval \${$as_CACHEVAR+:} false; then :
15264 >  $as_echo_n "(cached) " >&6
15265 > else
15266 >
15267 >  ax_check_save_flags=$CFLAGS
15268 >  CFLAGS="$CFLAGS  $flag"
15269 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 > /* end confdefs.h.  */
15271 >
15272 > int
15273 > main ()
15274 > {
15275 >
15276 >  ;
15277 >  return 0;
15278 > }
15279   _ACEOF
15280 + if ac_fn_c_try_compile "$LINENO"; then :
15281 +  eval "$as_CACHEVAR=yes"
15282 + else
15283 +  eval "$as_CACHEVAR=no"
15284 + fi
15285 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 +  CFLAGS=$ax_check_save_flags
15287 + fi
15288 + eval ac_res=\$$as_CACHEVAR
15289 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15290 + $as_echo "$ac_res" >&6; }
15291 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15292  
15293 <  LIBS="-lssl $LIBS"
15293 > if ${CFLAGS+:} false; then :
15294 >
15295 >  case " $CFLAGS " in #(
15296 >  *" $flag "*) :
15297 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15298 >  (: CFLAGS already contains $flag) 2>&5
15299 >  ac_status=$?
15300 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15301 >  test $ac_status = 0; } ;; #(
15302 >  *) :
15303 >
15304 >     as_fn_append CFLAGS " $flag"
15305 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15306 >  (: CFLAGS="$CFLAGS") 2>&5
15307 >  ac_status=$?
15308 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15309 >  test $ac_status = 0; }
15310 >     ;;
15311 > esac
15312 >
15313 > else
15314 >
15315 >  CFLAGS=$flag
15316 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15317 >  (: CFLAGS="$CFLAGS") 2>&5
15318 >  ac_status=$?
15319 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15320 >  test $ac_status = 0; }
15321  
15322   fi
15323  
15324 + else
15325 +  :
15326   fi
15327  
15328 + done
15329 +
15330 +
15331 +
15332 +
15333 +
15334 + for flag in -Wmissing-declarations; do
15335 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15336 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15337 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15338 + if eval \${$as_CACHEVAR+:} false; then :
15339 +  $as_echo_n "(cached) " >&6
15340   else
15341 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
15342 < $as_echo "no - OpenSSL support disabled" >&6; }
15343 <    cf_enable_openssl="no"
15341 >
15342 >  ax_check_save_flags=$CFLAGS
15343 >  CFLAGS="$CFLAGS  $flag"
15344 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 > /* end confdefs.h.  */
15346 >
15347 > int
15348 > main ()
15349 > {
15350 >
15351 >  ;
15352 >  return 0;
15353 > }
15354 > _ACEOF
15355 > if ac_fn_c_try_compile "$LINENO"; then :
15356 >  eval "$as_CACHEVAR=yes"
15357 > else
15358 >  eval "$as_CACHEVAR=no"
15359   fi
15360 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361 +  CFLAGS=$ax_check_save_flags
15362 + fi
15363 + eval ac_res=\$$as_CACHEVAR
15364 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15365 + $as_echo "$ac_res" >&6; }
15366 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15367 +
15368 + if ${CFLAGS+:} false; then :
15369 +
15370 +  case " $CFLAGS " in #(
15371 +  *" $flag "*) :
15372 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15373 +  (: CFLAGS already contains $flag) 2>&5
15374 +  ac_status=$?
15375 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15376 +  test $ac_status = 0; } ;; #(
15377 +  *) :
15378 +
15379 +     as_fn_append CFLAGS " $flag"
15380 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15381 +  (: CFLAGS="$CFLAGS") 2>&5
15382 +  ac_status=$?
15383 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15384 +  test $ac_status = 0; }
15385 +     ;;
15386 + esac
15387 +
15388 + else
15389 +
15390 +  CFLAGS=$flag
15391 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15392 +  (: CFLAGS="$CFLAGS") 2>&5
15393 +  ac_status=$?
15394 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15395 +  test $ac_status = 0; }
15396 +
15397   fi
15398  
14463 – if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14464 –  ENABLE_SSL_TRUE=
14465 –  ENABLE_SSL_FALSE='#'
15399   else
15400 <  ENABLE_SSL_TRUE='#'
14468 <  ENABLE_SSL_FALSE=
15400 >  :
15401   fi
15402  
15403 + done
15404  
15405  
15406 < # Check whether --enable-assert was given.
15407 < if test "${enable_assert+set}" = set; then :
15408 <  enableval=$enable_assert; assert=$enableval
15406 >
15407 >
15408 >
15409 > for flag in -Wmissing-field-initializers; do
15410 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15411 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15412 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15413 > if eval \${$as_CACHEVAR+:} false; then :
15414 >  $as_echo_n "(cached) " >&6
15415   else
15416 <  assert=no
15416 >
15417 >  ax_check_save_flags=$CFLAGS
15418 >  CFLAGS="$CFLAGS  $flag"
15419 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 > /* end confdefs.h.  */
15421 >
15422 > int
15423 > main ()
15424 > {
15425 >
15426 >  ;
15427 >  return 0;
15428 > }
15429 > _ACEOF
15430 > if ac_fn_c_try_compile "$LINENO"; then :
15431 >  eval "$as_CACHEVAR=yes"
15432 > else
15433 >  eval "$as_CACHEVAR=no"
15434 > fi
15435 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436 >  CFLAGS=$ax_check_save_flags
15437   fi
15438 + eval ac_res=\$$as_CACHEVAR
15439 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15440 + $as_echo "$ac_res" >&6; }
15441 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15442  
15443 + if ${CFLAGS+:} false; then :
15444  
15445 < if test "$assert" = "no"; then :
15445 >  case " $CFLAGS " in #(
15446 >  *" $flag "*) :
15447 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15448 >  (: CFLAGS already contains $flag) 2>&5
15449 >  ac_status=$?
15450 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15451 >  test $ac_status = 0; } ;; #(
15452 >  *) :
15453  
15454 < $as_echo "#define NDEBUG 1" >>confdefs.h
15454 >     as_fn_append CFLAGS " $flag"
15455 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15456 >  (: CFLAGS="$CFLAGS") 2>&5
15457 >  ac_status=$?
15458 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15459 >  test $ac_status = 0; }
15460 >     ;;
15461 > esac
15462 >
15463 > else
15464 >
15465 >  CFLAGS=$flag
15466 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15467 >  (: CFLAGS="$CFLAGS") 2>&5
15468 >  ac_status=$?
15469 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470 >  test $ac_status = 0; }
15471  
15472   fi
15473  
15474 + else
15475 +  :
15476 + fi
15477  
15478 < $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
15478 > done
15479  
15480  
14491 – $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
15481  
15482  
14494 – $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
15483  
15484 + for flag in -Wmissing-include-dirs; do
15485 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15486 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15487 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15488 + if eval \${$as_CACHEVAR+:} false; then :
15489 +  $as_echo_n "(cached) " >&6
15490 + else
15491  
15492 < $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
15492 >  ax_check_save_flags=$CFLAGS
15493 >  CFLAGS="$CFLAGS  $flag"
15494 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 > /* end confdefs.h.  */
15496 >
15497 > int
15498 > main ()
15499 > {
15500  
15501 +  ;
15502 +  return 0;
15503 + }
15504 + _ACEOF
15505 + if ac_fn_c_try_compile "$LINENO"; then :
15506 +  eval "$as_CACHEVAR=yes"
15507 + else
15508 +  eval "$as_CACHEVAR=no"
15509 + fi
15510 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 +  CFLAGS=$ax_check_save_flags
15512 + fi
15513 + eval ac_res=\$$as_CACHEVAR
15514 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15515 + $as_echo "$ac_res" >&6; }
15516 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15517  
15518 < $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
15518 > if ${CFLAGS+:} false; then :
15519  
15520 +  case " $CFLAGS " in #(
15521 +  *" $flag "*) :
15522 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15523 +  (: CFLAGS already contains $flag) 2>&5
15524 +  ac_status=$?
15525 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15526 +  test $ac_status = 0; } ;; #(
15527 +  *) :
15528  
15529 < $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
15529 >     as_fn_append CFLAGS " $flag"
15530 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15531 >  (: CFLAGS="$CFLAGS") 2>&5
15532 >  ac_status=$?
15533 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15534 >  test $ac_status = 0; }
15535 >     ;;
15536 > esac
15537  
15538 + else
15539  
15540 < $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
15540 >  CFLAGS=$flag
15541 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15542 >  (: CFLAGS="$CFLAGS") 2>&5
15543 >  ac_status=$?
15544 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545 >  test $ac_status = 0; }
15546  
15547 + fi
15548  
15549 < $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
15549 > else
15550 >  :
15551 > fi
15552  
15553 + done
15554  
14512 – $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
15555  
15556  
14515 – $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
15557  
15558  
15559 < $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
15559 > for flag in -Wmissing-parameter-type; do
15560 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15561 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15562 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15563 > if eval \${$as_CACHEVAR+:} false; then :
15564 >  $as_echo_n "(cached) " >&6
15565 > else
15566  
15567 +  ax_check_save_flags=$CFLAGS
15568 +  CFLAGS="$CFLAGS  $flag"
15569 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 + /* end confdefs.h.  */
15571  
15572 < $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
15572 > int
15573 > main ()
15574 > {
15575  
15576 +  ;
15577 +  return 0;
15578 + }
15579 + _ACEOF
15580 + if ac_fn_c_try_compile "$LINENO"; then :
15581 +  eval "$as_CACHEVAR=yes"
15582 + else
15583 +  eval "$as_CACHEVAR=no"
15584 + fi
15585 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 +  CFLAGS=$ax_check_save_flags
15587 + fi
15588 + eval ac_res=\$$as_CACHEVAR
15589 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15590 + $as_echo "$ac_res" >&6; }
15591 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15592  
15593 < $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
15593 > if ${CFLAGS+:} false; then :
15594  
15595 +  case " $CFLAGS " in #(
15596 +  *" $flag "*) :
15597 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15598 +  (: CFLAGS already contains $flag) 2>&5
15599 +  ac_status=$?
15600 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15601 +  test $ac_status = 0; } ;; #(
15602 +  *) :
15603  
15604 < $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
15604 >     as_fn_append CFLAGS " $flag"
15605 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15606 >  (: CFLAGS="$CFLAGS") 2>&5
15607 >  ac_status=$?
15608 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15609 >  test $ac_status = 0; }
15610 >     ;;
15611 > esac
15612  
15613 + else
15614  
15615 < # Argument processing.
15615 >  CFLAGS=$flag
15616 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15617 >  (: CFLAGS="$CFLAGS") 2>&5
15618 >  ac_status=$?
15619 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15620 >  test $ac_status = 0; }
15621  
14532 –    desired_iopoll_mechanism="none"
14533 –    # Check whether --enable-kqueue was given.
14534 – if test "${enable_kqueue+set}" = set; then :
14535 –  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
15622   fi
15623  
15624 <  # Check whether --enable-epoll was given.
15625 < if test "${enable_epoll+set}" = set; then :
14540 <  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
15624 > else
15625 >  :
15626   fi
15627  
15628 <  # Check whether --enable-devpoll was given.
15629 < if test "${enable_devpoll+set}" = set; then :
15630 <  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
15628 > done
15629 >
15630 >
15631 >
15632 >
15633 >
15634 > for flag in -Wmissing-prototypes; do
15635 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15636 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15637 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15638 > if eval \${$as_CACHEVAR+:} false; then :
15639 >  $as_echo_n "(cached) " >&6
15640 > else
15641 >
15642 >  ax_check_save_flags=$CFLAGS
15643 >  CFLAGS="$CFLAGS  $flag"
15644 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 > /* end confdefs.h.  */
15646 >
15647 > int
15648 > main ()
15649 > {
15650 >
15651 >  ;
15652 >  return 0;
15653 > }
15654 > _ACEOF
15655 > if ac_fn_c_try_compile "$LINENO"; then :
15656 >  eval "$as_CACHEVAR=yes"
15657 > else
15658 >  eval "$as_CACHEVAR=no"
15659   fi
15660 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 +  CFLAGS=$ax_check_save_flags
15662 + fi
15663 + eval ac_res=\$$as_CACHEVAR
15664 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15665 + $as_echo "$ac_res" >&6; }
15666 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15667 +
15668 + if ${CFLAGS+:} false; then :
15669 +
15670 +  case " $CFLAGS " in #(
15671 +  *" $flag "*) :
15672 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15673 +  (: CFLAGS already contains $flag) 2>&5
15674 +  ac_status=$?
15675 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15676 +  test $ac_status = 0; } ;; #(
15677 +  *) :
15678 +
15679 +     as_fn_append CFLAGS " $flag"
15680 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15681 +  (: CFLAGS="$CFLAGS") 2>&5
15682 +  ac_status=$?
15683 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15684 +  test $ac_status = 0; }
15685 +     ;;
15686 + esac
15687 +
15688 + else
15689 +
15690 +  CFLAGS=$flag
15691 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15692 +  (: CFLAGS="$CFLAGS") 2>&5
15693 +  ac_status=$?
15694 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15695 +  test $ac_status = 0; }
15696  
14548 –  # Check whether --enable-poll was given.
14549 – if test "${enable_poll+set}" = set; then :
14550 –  enableval=$enable_poll; desired_iopoll_mechanism="poll"
15697   fi
15698  
15699 <  # Check whether --enable-select was given.
15700 < if test "${enable_select+set}" = set; then :
14555 <  enableval=$enable_select; desired_iopoll_mechanism="select"
15699 > else
15700 >  :
15701   fi
15702  
15703 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14559 < $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14560 <  iopoll_mechanism_none=0
15703 > done
15704  
15705 < cat >>confdefs.h <<_ACEOF
15706 < #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
15705 >
15706 >
15707 >
15708 >
15709 > for flag in -Wnested-externs; do
15710 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15711 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15712 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15713 > if eval \${$as_CACHEVAR+:} false; then :
15714 >  $as_echo_n "(cached) " >&6
15715 > else
15716 >
15717 >  ax_check_save_flags=$CFLAGS
15718 >  CFLAGS="$CFLAGS  $flag"
15719 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 > /* end confdefs.h.  */
15721 >
15722 > int
15723 > main ()
15724 > {
15725 >
15726 >  ;
15727 >  return 0;
15728 > }
15729   _ACEOF
15730 + if ac_fn_c_try_compile "$LINENO"; then :
15731 +  eval "$as_CACHEVAR=yes"
15732 + else
15733 +  eval "$as_CACHEVAR=no"
15734 + fi
15735 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 +  CFLAGS=$ax_check_save_flags
15737 + fi
15738 + eval ac_res=\$$as_CACHEVAR
15739 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15740 + $as_echo "$ac_res" >&6; }
15741 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15742  
15743 <      iopoll_mechanism_kqueue=1
15743 > if ${CFLAGS+:} false; then :
15744  
15745 < cat >>confdefs.h <<_ACEOF
15746 < #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
15745 >  case " $CFLAGS " in #(
15746 >  *" $flag "*) :
15747 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15748 >  (: CFLAGS already contains $flag) 2>&5
15749 >  ac_status=$?
15750 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15751 >  test $ac_status = 0; } ;; #(
15752 >  *) :
15753 >
15754 >     as_fn_append CFLAGS " $flag"
15755 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15756 >  (: CFLAGS="$CFLAGS") 2>&5
15757 >  ac_status=$?
15758 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15759 >  test $ac_status = 0; }
15760 >     ;;
15761 > esac
15762 >
15763 > else
15764 >
15765 >  CFLAGS=$flag
15766 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15767 >  (: CFLAGS="$CFLAGS") 2>&5
15768 >  ac_status=$?
15769 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15770 >  test $ac_status = 0; }
15771 >
15772 > fi
15773 >
15774 > else
15775 >  :
15776 > fi
15777 >
15778 > done
15779 >
15780 >
15781 >
15782 >
15783 >
15784 > for flag in -Wold-style-declaration; do
15785 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15786 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15787 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15788 > if eval \${$as_CACHEVAR+:} false; then :
15789 >  $as_echo_n "(cached) " >&6
15790 > else
15791 >
15792 >  ax_check_save_flags=$CFLAGS
15793 >  CFLAGS="$CFLAGS  $flag"
15794 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 > /* end confdefs.h.  */
15796 >
15797 > int
15798 > main ()
15799 > {
15800 >
15801 >  ;
15802 >  return 0;
15803 > }
15804   _ACEOF
15805 + if ac_fn_c_try_compile "$LINENO"; then :
15806 +  eval "$as_CACHEVAR=yes"
15807 + else
15808 +  eval "$as_CACHEVAR=no"
15809 + fi
15810 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 +  CFLAGS=$ax_check_save_flags
15812 + fi
15813 + eval ac_res=\$$as_CACHEVAR
15814 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15815 + $as_echo "$ac_res" >&6; }
15816 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15817 +
15818 + if ${CFLAGS+:} false; then :
15819 +
15820 +  case " $CFLAGS " in #(
15821 +  *" $flag "*) :
15822 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15823 +  (: CFLAGS already contains $flag) 2>&5
15824 +  ac_status=$?
15825 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15826 +  test $ac_status = 0; } ;; #(
15827 +  *) :
15828 +
15829 +     as_fn_append CFLAGS " $flag"
15830 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15831 +  (: CFLAGS="$CFLAGS") 2>&5
15832 +  ac_status=$?
15833 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15834 +  test $ac_status = 0; }
15835 +     ;;
15836 + esac
15837 +
15838 + else
15839 +
15840 +  CFLAGS=$flag
15841 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15842 +  (: CFLAGS="$CFLAGS") 2>&5
15843 +  ac_status=$?
15844 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15845 +  test $ac_status = 0; }
15846 +
15847 + fi
15848 +
15849 + else
15850 +  :
15851 + fi
15852 +
15853 + done
15854 +
15855 +
15856 +
15857  
15858 +
15859 + for flag in -Woverride-init; do
15860 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15861 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15862 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15863 + if eval \${$as_CACHEVAR+:} false; then :
15864 +  $as_echo_n "(cached) " >&6
15865 + else
15866 +
15867 +  ax_check_save_flags=$CFLAGS
15868 +  CFLAGS="$CFLAGS  $flag"
15869    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870   /* end confdefs.h.  */
14574 – /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14575 –   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14576 – #define kevent innocuous_kevent
15871  
15872 < /* System header to define __stub macros and hopefully few prototypes,
15873 <    which can conflict with char kevent (); below.
15874 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14581 <    <limits.h> exists even on freestanding compilers.  */
15872 > int
15873 > main ()
15874 > {
15875  
15876 < #ifdef __STDC__
15877 < # include <limits.h>
15878 < #else
15879 < # include <assert.h>
15880 < #endif
15876 >  ;
15877 >  return 0;
15878 > }
15879 > _ACEOF
15880 > if ac_fn_c_try_compile "$LINENO"; then :
15881 >  eval "$as_CACHEVAR=yes"
15882 > else
15883 >  eval "$as_CACHEVAR=no"
15884 > fi
15885 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 >  CFLAGS=$ax_check_save_flags
15887 > fi
15888 > eval ac_res=\$$as_CACHEVAR
15889 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15890 > $as_echo "$ac_res" >&6; }
15891 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15892  
15893 < #undef kevent
15893 > if ${CFLAGS+:} false; then :
15894 >
15895 >  case " $CFLAGS " in #(
15896 >  *" $flag "*) :
15897 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15898 >  (: CFLAGS already contains $flag) 2>&5
15899 >  ac_status=$?
15900 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901 >  test $ac_status = 0; } ;; #(
15902 >  *) :
15903 >
15904 >     as_fn_append CFLAGS " $flag"
15905 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15906 >  (: CFLAGS="$CFLAGS") 2>&5
15907 >  ac_status=$?
15908 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15909 >  test $ac_status = 0; }
15910 >     ;;
15911 > esac
15912 >
15913 > else
15914 >
15915 >  CFLAGS=$flag
15916 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15917 >  (: CFLAGS="$CFLAGS") 2>&5
15918 >  ac_status=$?
15919 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15920 >  test $ac_status = 0; }
15921 >
15922 > fi
15923 >
15924 > else
15925 >  :
15926 > fi
15927 >
15928 > done
15929  
15930 < /* Override any GCC internal prototype to avoid an error.
15931 <   Use char because int might match the return type of a GCC
15932 <   builtin and then its argument prototype would still apply.  */
15933 < #ifdef __cplusplus
15934 < extern "C"
15935 < #endif
15936 < char kevent ();
15937 < /* The GNU C library defines this for functions which it implements
15938 <    to always fail with ENOSYS.  Some functions are actually named
15939 <    something starting with __ and the normal name is an alias.  */
15940 < #if defined __stub_kevent || defined __stub___kevent
15941 < choke me
15942 < #endif
15930 >
15931 >
15932 >
15933 >
15934 > for flag in -Wpointer-arith; do
15935 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15936 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15937 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15938 > if eval \${$as_CACHEVAR+:} false; then :
15939 >  $as_echo_n "(cached) " >&6
15940 > else
15941 >
15942 >  ax_check_save_flags=$CFLAGS
15943 >  CFLAGS="$CFLAGS  $flag"
15944 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 > /* end confdefs.h.  */
15946  
15947   int
15948   main ()
15949   {
15950 < return kevent ();
15950 >
15951    ;
15952    return 0;
15953   }
15954   _ACEOF
15955 < if ac_fn_c_try_link "$LINENO"; then :
15956 <  is_kqueue_mechanism_available="yes"
15955 > if ac_fn_c_try_compile "$LINENO"; then :
15956 >  eval "$as_CACHEVAR=yes"
15957   else
15958 <  is_kqueue_mechanism_available="no"
15958 >  eval "$as_CACHEVAR=no"
15959   fi
15960 < rm -f core conftest.err conftest.$ac_objext \
15961 <    conftest$ac_exeext conftest.$ac_ext
15962 <      iopoll_mechanism_epoll=2
15960 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15961 >  CFLAGS=$ax_check_save_flags
15962 > fi
15963 > eval ac_res=\$$as_CACHEVAR
15964 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15965 > $as_echo "$ac_res" >&6; }
15966 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15967  
15968 < cat >>confdefs.h <<_ACEOF
15969 < #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
15968 > if ${CFLAGS+:} false; then :
15969 >
15970 >  case " $CFLAGS " in #(
15971 >  *" $flag "*) :
15972 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15973 >  (: CFLAGS already contains $flag) 2>&5
15974 >  ac_status=$?
15975 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15976 >  test $ac_status = 0; } ;; #(
15977 >  *) :
15978 >
15979 >     as_fn_append CFLAGS " $flag"
15980 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15981 >  (: CFLAGS="$CFLAGS") 2>&5
15982 >  ac_status=$?
15983 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15984 >  test $ac_status = 0; }
15985 >     ;;
15986 > esac
15987 >
15988 > else
15989 >
15990 >  CFLAGS=$flag
15991 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15992 >  (: CFLAGS="$CFLAGS") 2>&5
15993 >  ac_status=$?
15994 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15995 >  test $ac_status = 0; }
15996 >
15997 > fi
15998 >
15999 > else
16000 >  :
16001 > fi
16002 >
16003 > done
16004 >
16005 >
16006 >
16007 >
16008 >
16009 > for flag in -Wredundant-decls; do
16010 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16011 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16012 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16013 > if eval \${$as_CACHEVAR+:} false; then :
16014 >  $as_echo_n "(cached) " >&6
16015 > else
16016 >
16017 >  ax_check_save_flags=$CFLAGS
16018 >  CFLAGS="$CFLAGS  $flag"
16019 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 > /* end confdefs.h.  */
16021 >
16022 > int
16023 > main ()
16024 > {
16025 >
16026 >  ;
16027 >  return 0;
16028 > }
16029   _ACEOF
16030 + if ac_fn_c_try_compile "$LINENO"; then :
16031 +  eval "$as_CACHEVAR=yes"
16032 + else
16033 +  eval "$as_CACHEVAR=no"
16034 + fi
16035 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036 +  CFLAGS=$ax_check_save_flags
16037 + fi
16038 + eval ac_res=\$$as_CACHEVAR
16039 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16040 + $as_echo "$ac_res" >&6; }
16041 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16042 +
16043 + if ${CFLAGS+:} false; then :
16044 +
16045 +  case " $CFLAGS " in #(
16046 +  *" $flag "*) :
16047 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16048 +  (: CFLAGS already contains $flag) 2>&5
16049 +  ac_status=$?
16050 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16051 +  test $ac_status = 0; } ;; #(
16052 +  *) :
16053 +
16054 +     as_fn_append CFLAGS " $flag"
16055 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16056 +  (: CFLAGS="$CFLAGS") 2>&5
16057 +  ac_status=$?
16058 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16059 +  test $ac_status = 0; }
16060 +     ;;
16061 + esac
16062  
14626 –  if test "$cross_compiling" = yes; then :
14627 –  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14628 – $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14629 – as_fn_error $? "cannot run test program while cross compiling
14630 – See \`config.log' for more details" "$LINENO" 5; }
16063   else
16064 +
16065 +  CFLAGS=$flag
16066 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16067 +  (: CFLAGS="$CFLAGS") 2>&5
16068 +  ac_status=$?
16069 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16070 +  test $ac_status = 0; }
16071 +
16072 + fi
16073 +
16074 + else
16075 +  :
16076 + fi
16077 +
16078 + done
16079 +
16080 +
16081 +
16082 +
16083 +
16084 + for flag in -Wshadow; do
16085 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16086 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16087 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16088 + if eval \${$as_CACHEVAR+:} false; then :
16089 +  $as_echo_n "(cached) " >&6
16090 + else
16091 +
16092 +  ax_check_save_flags=$CFLAGS
16093 +  CFLAGS="$CFLAGS  $flag"
16094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095   /* end confdefs.h.  */
16096  
16097 < #include <sys/epoll.h>
16098 < #include <sys/syscall.h>
16099 < #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
16100 < #if !defined(__NR_epoll_create)
16101 < #if defined(__ia64__)
16102 < #define __NR_epoll_create 1243
16103 < #elif defined(__x86_64__)
16104 < #define __NR_epoll_create 214
16105 < #elif defined(__sparc64__) || defined(__sparc__)
16106 < #define __NR_epoll_create 193
16107 < #elif defined(__s390__) || defined(__m68k__)
16108 < #define __NR_epoll_create 249
16109 < #elif defined(__ppc64__) || defined(__ppc__)
16110 < #define __NR_epoll_create 236
16111 < #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
16112 < #define __NR_epoll_create 224
16113 < #elif defined(__alpha__)
16114 < #define __NR_epoll_create 407
16115 < #elif defined(__sh64__)
16116 < #define __NR_epoll_create 282
16117 < #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
16118 < #define __NR_epoll_create 254
16119 < #else
16120 < #error No system call numbers defined for epoll family.
16121 < #endif
16122 < #endif
16123 < _syscall1(int, epoll_create, int, size)
16124 < #endif
16097 > int
16098 > main ()
16099 > {
16100 >
16101 >  ;
16102 >  return 0;
16103 > }
16104 > _ACEOF
16105 > if ac_fn_c_try_compile "$LINENO"; then :
16106 >  eval "$as_CACHEVAR=yes"
16107 > else
16108 >  eval "$as_CACHEVAR=no"
16109 > fi
16110 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 >  CFLAGS=$ax_check_save_flags
16112 > fi
16113 > eval ac_res=\$$as_CACHEVAR
16114 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16115 > $as_echo "$ac_res" >&6; }
16116 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16117 >
16118 > if ${CFLAGS+:} false; then :
16119 >
16120 >  case " $CFLAGS " in #(
16121 >  *" $flag "*) :
16122 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16123 >  (: CFLAGS already contains $flag) 2>&5
16124 >  ac_status=$?
16125 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16126 >  test $ac_status = 0; } ;; #(
16127 >  *) :
16128 >
16129 >     as_fn_append CFLAGS " $flag"
16130 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16131 >  (: CFLAGS="$CFLAGS") 2>&5
16132 >  ac_status=$?
16133 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16134 >  test $ac_status = 0; }
16135 >     ;;
16136 > esac
16137 >
16138 > else
16139 >
16140 >  CFLAGS=$flag
16141 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16142 >  (: CFLAGS="$CFLAGS") 2>&5
16143 >  ac_status=$?
16144 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16145 >  test $ac_status = 0; }
16146 >
16147 > fi
16148 >
16149 > else
16150 >  :
16151 > fi
16152 >
16153 > done
16154 >
16155 >
16156 >
16157 >
16158 >
16159 > for flag in -Wshift-negative-value; do
16160 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16161 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16162 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16163 > if eval \${$as_CACHEVAR+:} false; then :
16164 >  $as_echo_n "(cached) " >&6
16165 > else
16166 >
16167 >  ax_check_save_flags=$CFLAGS
16168 >  CFLAGS="$CFLAGS  $flag"
16169 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 > /* end confdefs.h.  */
16171  
16172   int
16173   main ()
16174   {
16175 < return epoll_create(256) == -1 ? 1 : 0
16175 >
16176    ;
16177    return 0;
16178   }
16179   _ACEOF
16180 < if ac_fn_c_try_run "$LINENO"; then :
16181 <  is_epoll_mechanism_available="yes"
16180 > if ac_fn_c_try_compile "$LINENO"; then :
16181 >  eval "$as_CACHEVAR=yes"
16182   else
16183 <  is_epoll_mechanism_available="no"
16183 >  eval "$as_CACHEVAR=no"
16184   fi
16185 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16186 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16185 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16186 >  CFLAGS=$ax_check_save_flags
16187   fi
16188 + eval ac_res=\$$as_CACHEVAR
16189 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16190 + $as_echo "$ac_res" >&6; }
16191 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16192  
16193 <      iopoll_mechanism_devpoll=3
16193 > if ${CFLAGS+:} false; then :
16194  
16195 < cat >>confdefs.h <<_ACEOF
16196 < #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
16195 >  case " $CFLAGS " in #(
16196 >  *" $flag "*) :
16197 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16198 >  (: CFLAGS already contains $flag) 2>&5
16199 >  ac_status=$?
16200 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16201 >  test $ac_status = 0; } ;; #(
16202 >  *) :
16203 >
16204 >     as_fn_append CFLAGS " $flag"
16205 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16206 >  (: CFLAGS="$CFLAGS") 2>&5
16207 >  ac_status=$?
16208 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16209 >  test $ac_status = 0; }
16210 >     ;;
16211 > esac
16212 >
16213 > else
16214 >
16215 >  CFLAGS=$flag
16216 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16217 >  (: CFLAGS="$CFLAGS") 2>&5
16218 >  ac_status=$?
16219 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220 >  test $ac_status = 0; }
16221 >
16222 > fi
16223 >
16224 > else
16225 >  :
16226 > fi
16227 >
16228 > done
16229 >
16230 >
16231 >
16232 >
16233 >
16234 > for flag in -Wsign-compare; do
16235 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16236 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16237 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16238 > if eval \${$as_CACHEVAR+:} false; then :
16239 >  $as_echo_n "(cached) " >&6
16240 > else
16241 >
16242 >  ax_check_save_flags=$CFLAGS
16243 >  CFLAGS="$CFLAGS  $flag"
16244 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 > /* end confdefs.h.  */
16246 >
16247 > int
16248 > main ()
16249 > {
16250 >
16251 >  ;
16252 >  return 0;
16253 > }
16254   _ACEOF
16255 + if ac_fn_c_try_compile "$LINENO"; then :
16256 +  eval "$as_CACHEVAR=yes"
16257 + else
16258 +  eval "$as_CACHEVAR=no"
16259 + fi
16260 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 +  CFLAGS=$ax_check_save_flags
16262 + fi
16263 + eval ac_res=\$$as_CACHEVAR
16264 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16265 + $as_echo "$ac_res" >&6; }
16266 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16267 +
16268 + if ${CFLAGS+:} false; then :
16269 +
16270 +  case " $CFLAGS " in #(
16271 +  *" $flag "*) :
16272 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16273 +  (: CFLAGS already contains $flag) 2>&5
16274 +  ac_status=$?
16275 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16276 +  test $ac_status = 0; } ;; #(
16277 +  *) :
16278 +
16279 +     as_fn_append CFLAGS " $flag"
16280 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16281 +  (: CFLAGS="$CFLAGS") 2>&5
16282 +  ac_status=$?
16283 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16284 +  test $ac_status = 0; }
16285 +     ;;
16286 + esac
16287 +
16288 + else
16289 +
16290 +  CFLAGS=$flag
16291 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16292 +  (: CFLAGS="$CFLAGS") 2>&5
16293 +  ac_status=$?
16294 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16295 +  test $ac_status = 0; }
16296 +
16297 + fi
16298 +
16299 + else
16300 +  :
16301 + fi
16302 +
16303 + done
16304  
16305 +
16306 +
16307 +
16308 +
16309 + for flag in -Wtype-limits; do
16310 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16311 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16312 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16313 + if eval \${$as_CACHEVAR+:} false; then :
16314 +  $as_echo_n "(cached) " >&6
16315 + else
16316 +
16317 +  ax_check_save_flags=$CFLAGS
16318 +  CFLAGS="$CFLAGS  $flag"
16319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320   /* end confdefs.h.  */
16321 < #include <devpoll.h>
16321 >
16322   int
16323   main ()
16324   {
# Line 14696 | Line 16328 | main ()
16328   }
16329   _ACEOF
16330   if ac_fn_c_try_compile "$LINENO"; then :
16331 <  is_devpoll_mechanism_available="yes"
16331 >  eval "$as_CACHEVAR=yes"
16332   else
16333 <  is_devpoll_mechanism_available="no"
16333 >  eval "$as_CACHEVAR=no"
16334   fi
16335   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16336 >  CFLAGS=$ax_check_save_flags
16337 > fi
16338 > eval ac_res=\$$as_CACHEVAR
16339 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16340 > $as_echo "$ac_res" >&6; }
16341 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16342  
16343 < $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
16343 > if ${CFLAGS+:} false; then :
16344  
16345 <  fi
16345 >  case " $CFLAGS " in #(
16346 >  *" $flag "*) :
16347 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16348 >  (: CFLAGS already contains $flag) 2>&5
16349 >  ac_status=$?
16350 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16351 >  test $ac_status = 0; } ;; #(
16352 >  *) :
16353 >
16354 >     as_fn_append CFLAGS " $flag"
16355 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16356 >  (: CFLAGS="$CFLAGS") 2>&5
16357 >  ac_status=$?
16358 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 >  test $ac_status = 0; }
16360 >     ;;
16361 > esac
16362 >
16363 > else
16364 >
16365 >  CFLAGS=$flag
16366 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16367 >  (: CFLAGS="$CFLAGS") 2>&5
16368 >  ac_status=$?
16369 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16370 >  test $ac_status = 0; }
16371 >
16372 > fi
16373 >
16374 > else
16375 >  :
16376 > fi
16377 >
16378 > done
16379 >
16380 >
16381 >
16382 >
16383 >
16384 > for flag in -Wundef; do
16385 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16386 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16387 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16388 > if eval \${$as_CACHEVAR+:} false; then :
16389 >  $as_echo_n "(cached) " >&6
16390 > else
16391 >
16392 >  ax_check_save_flags=$CFLAGS
16393 >  CFLAGS="$CFLAGS  $flag"
16394    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395   /* end confdefs.h.  */
16396 < #include <sys/devpoll.h>
16396 >
16397   int
16398   main ()
16399   {
# Line 14718 | Line 16403 | main ()
16403   }
16404   _ACEOF
16405   if ac_fn_c_try_compile "$LINENO"; then :
16406 <  is_devpoll_mechanism_available="yes"
16406 >  eval "$as_CACHEVAR=yes"
16407   else
16408 <  is_devpoll_mechanism_available="no"
16408 >  eval "$as_CACHEVAR=no"
16409   fi
16410   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16411 >  CFLAGS=$ax_check_save_flags
16412 > fi
16413 > eval ac_res=\$$as_CACHEVAR
16414 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16415 > $as_echo "$ac_res" >&6; }
16416 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16417  
16418 < $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
16418 > if ${CFLAGS+:} false; then :
16419  
16420 <  fi
16421 <      iopoll_mechanism_poll=4
16420 >  case " $CFLAGS " in #(
16421 >  *" $flag "*) :
16422 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16423 >  (: CFLAGS already contains $flag) 2>&5
16424 >  ac_status=$?
16425 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16426 >  test $ac_status = 0; } ;; #(
16427 >  *) :
16428  
16429 < cat >>confdefs.h <<_ACEOF
16430 < #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
16429 >     as_fn_append CFLAGS " $flag"
16430 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16431 >  (: CFLAGS="$CFLAGS") 2>&5
16432 >  ac_status=$?
16433 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16434 >  test $ac_status = 0; }
16435 >     ;;
16436 > esac
16437 >
16438 > else
16439 >
16440 >  CFLAGS=$flag
16441 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16442 >  (: CFLAGS="$CFLAGS") 2>&5
16443 >  ac_status=$?
16444 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16445 >  test $ac_status = 0; }
16446 >
16447 > fi
16448 >
16449 > else
16450 >  :
16451 > fi
16452 >
16453 > done
16454 >
16455 >
16456 >
16457 >
16458 >
16459 > for flag in -Wuninitialized; do
16460 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16461 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16462 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16463 > if eval \${$as_CACHEVAR+:} false; then :
16464 >  $as_echo_n "(cached) " >&6
16465 > else
16466 >
16467 >  ax_check_save_flags=$CFLAGS
16468 >  CFLAGS="$CFLAGS  $flag"
16469 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 > /* end confdefs.h.  */
16471 >
16472 > int
16473 > main ()
16474 > {
16475 >
16476 >  ;
16477 >  return 0;
16478 > }
16479   _ACEOF
16480 + if ac_fn_c_try_compile "$LINENO"; then :
16481 +  eval "$as_CACHEVAR=yes"
16482 + else
16483 +  eval "$as_CACHEVAR=no"
16484 + fi
16485 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486 +  CFLAGS=$ax_check_save_flags
16487 + fi
16488 + eval ac_res=\$$as_CACHEVAR
16489 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16490 + $as_echo "$ac_res" >&6; }
16491 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16492 +
16493 + if ${CFLAGS+:} false; then :
16494 +
16495 +  case " $CFLAGS " in #(
16496 +  *" $flag "*) :
16497 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16498 +  (: CFLAGS already contains $flag) 2>&5
16499 +  ac_status=$?
16500 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16501 +  test $ac_status = 0; } ;; #(
16502 +  *) :
16503 +
16504 +     as_fn_append CFLAGS " $flag"
16505 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16506 +  (: CFLAGS="$CFLAGS") 2>&5
16507 +  ac_status=$?
16508 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16509 +  test $ac_status = 0; }
16510 +     ;;
16511 + esac
16512 +
16513 + else
16514 +
16515 +  CFLAGS=$flag
16516 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16517 +  (: CFLAGS="$CFLAGS") 2>&5
16518 +  ac_status=$?
16519 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16520 +  test $ac_status = 0; }
16521 +
16522 + fi
16523 +
16524 + else
16525 +  :
16526 + fi
16527 +
16528 + done
16529 +
16530 +
16531 +
16532  
16533 +
16534 + for flag in -Wwrite-strings; do
16535 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16536 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16537 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16538 + if eval \${$as_CACHEVAR+:} false; then :
16539 +  $as_echo_n "(cached) " >&6
16540 + else
16541 +
16542 +  ax_check_save_flags=$CFLAGS
16543 +  CFLAGS="$CFLAGS  $flag"
16544    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545   /* end confdefs.h.  */
14739 – /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14740 –   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14741 – #define poll innocuous_poll
16546  
16547 < /* System header to define __stub macros and hopefully few prototypes,
16548 <    which can conflict with char poll (); below.
16549 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14746 <    <limits.h> exists even on freestanding compilers.  */
16547 > int
16548 > main ()
16549 > {
16550  
16551 < #ifdef __STDC__
16552 < # include <limits.h>
16553 < #else
16554 < # include <assert.h>
16555 < #endif
16551 >  ;
16552 >  return 0;
16553 > }
16554 > _ACEOF
16555 > if ac_fn_c_try_compile "$LINENO"; then :
16556 >  eval "$as_CACHEVAR=yes"
16557 > else
16558 >  eval "$as_CACHEVAR=no"
16559 > fi
16560 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 >  CFLAGS=$ax_check_save_flags
16562 > fi
16563 > eval ac_res=\$$as_CACHEVAR
16564 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16565 > $as_echo "$ac_res" >&6; }
16566 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16567 >
16568 > if ${CFLAGS+:} false; then :
16569 >
16570 >  case " $CFLAGS " in #(
16571 >  *" $flag "*) :
16572 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16573 >  (: CFLAGS already contains $flag) 2>&5
16574 >  ac_status=$?
16575 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16576 >  test $ac_status = 0; } ;; #(
16577 >  *) :
16578 >
16579 >     as_fn_append CFLAGS " $flag"
16580 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16581 >  (: CFLAGS="$CFLAGS") 2>&5
16582 >  ac_status=$?
16583 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16584 >  test $ac_status = 0; }
16585 >     ;;
16586 > esac
16587 >
16588 > else
16589 >
16590 >  CFLAGS=$flag
16591 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16592 >  (: CFLAGS="$CFLAGS") 2>&5
16593 >  ac_status=$?
16594 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16595 >  test $ac_status = 0; }
16596 >
16597 > fi
16598 >
16599 > else
16600 >  :
16601 > fi
16602 >
16603 > done
16604  
16605 < #undef poll
16605 >
16606 > fi
16607 >
16608 >
16609 >  # Check whether --enable-efence was given.
16610 > if test "${enable_efence+set}" = set; then :
16611 >  enableval=$enable_efence; efence="$enableval"
16612 > else
16613 >  efence="no"
16614 > fi
16615 >
16616 >
16617 >  if test "$efence" = "yes"; then :
16618 >
16619 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16620 > $as_echo_n "checking for library containing EF_Print... " >&6; }
16621 > if ${ac_cv_search_EF_Print+:} false; then :
16622 >  $as_echo_n "(cached) " >&6
16623 > else
16624 >  ac_func_search_save_LIBS=$LIBS
16625 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 > /* end confdefs.h.  */
16627  
16628   /* Override any GCC internal prototype to avoid an error.
16629     Use char because int might match the return type of a GCC
# Line 14759 | Line 16631 | _ACEOF
16631   #ifdef __cplusplus
16632   extern "C"
16633   #endif
16634 < char poll ();
16635 < /* The GNU C library defines this for functions which it implements
16636 <    to always fail with ENOSYS.  Some functions are actually named
16637 <    something starting with __ and the normal name is an alias.  */
16638 < #if defined __stub_poll || defined __stub___poll
16639 < choke me
16640 < #endif
16634 > char EF_Print ();
16635 > int
16636 > main ()
16637 > {
16638 > return EF_Print ();
16639 >  ;
16640 >  return 0;
16641 > }
16642 > _ACEOF
16643 > for ac_lib in '' efence; do
16644 >  if test -z "$ac_lib"; then
16645 >    ac_res="none required"
16646 >  else
16647 >    ac_res=-l$ac_lib
16648 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16649 >  fi
16650 >  if ac_fn_c_try_link "$LINENO"; then :
16651 >  ac_cv_search_EF_Print=$ac_res
16652 > fi
16653 > rm -f core conftest.err conftest.$ac_objext \
16654 >    conftest$ac_exeext
16655 >  if ${ac_cv_search_EF_Print+:} false; then :
16656 >  break
16657 > fi
16658 > done
16659 > if ${ac_cv_search_EF_Print+:} false; then :
16660  
16661 + else
16662 +  ac_cv_search_EF_Print=no
16663 + fi
16664 + rm conftest.$ac_ext
16665 + LIBS=$ac_func_search_save_LIBS
16666 + fi
16667 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16668 + $as_echo "$ac_cv_search_EF_Print" >&6; }
16669 + ac_res=$ac_cv_search_EF_Print
16670 + if test "$ac_res" != no; then :
16671 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16672 +
16673 + else
16674 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16675 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16676 + as_fn_error $? "Electric Fence 'efence' library not found
16677 + See \`config.log' for more details" "$LINENO" 5; }
16678 + fi
16679 +
16680 +
16681 + fi
16682 +
16683 +
16684 +
16685 +
16686 + # Check whether --with-tls was given.
16687 + if test "${with_tls+set}" = set; then :
16688 +  withval=$with_tls; with_tls=$withval
16689 + else
16690 +  with_tls=auto
16691 + fi
16692 +
16693 +
16694 + if test "$with_tls" = "openssl" ||
16695 +   test "$with_tls" = "auto"; then
16696 +    ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
16697 + if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
16698 +
16699 +      if test "$cross_compiling" = yes; then :
16700 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16701 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16702 + as_fn_error $? "cannot run test program while cross compiling
16703 + See \`config.log' for more details" "$LINENO" 5; }
16704 + else
16705 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 + /* end confdefs.h.  */
16707 +
16708 +
16709 +          #include <openssl/opensslv.h>
16710 +          #include <stdlib.h>
16711   int
16712   main ()
16713   {
16714 < return poll ();
16714 >
16715 >          exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16716 >  ;
16717 >  return 0;
16718 > }
16719 > _ACEOF
16720 > if ac_fn_c_try_run "$LINENO"; then :
16721 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16722 > $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16723 > if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16724 >  $as_echo_n "(cached) " >&6
16725 > else
16726 >  ac_check_lib_save_LIBS=$LIBS
16727 > LIBS="-lcrypto  $LIBS"
16728 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 > /* end confdefs.h.  */
16730 >
16731 > /* Override any GCC internal prototype to avoid an error.
16732 >   Use char because int might match the return type of a GCC
16733 >   builtin and then its argument prototype would still apply.  */
16734 > #ifdef __cplusplus
16735 > extern "C"
16736 > #endif
16737 > char RSA_free ();
16738 > int
16739 > main ()
16740 > {
16741 > return RSA_free ();
16742    ;
16743    return 0;
16744   }
16745   _ACEOF
16746   if ac_fn_c_try_link "$LINENO"; then :
16747 <  is_poll_mechanism_available="yes"
16747 >  ac_cv_lib_crypto_RSA_free=yes
16748   else
16749 <  is_poll_mechanism_available="no"
16749 >  ac_cv_lib_crypto_RSA_free=no
16750   fi
16751   rm -f core conftest.err conftest.$ac_objext \
16752      conftest$ac_exeext conftest.$ac_ext
16753 <      iopoll_mechanism_select=5
16753 > LIBS=$ac_check_lib_save_LIBS
16754 > fi
16755 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16756 > $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16757 > if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16758 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16759 > $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16760 > if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16761 >  $as_echo_n "(cached) " >&6
16762 > else
16763 >  ac_check_lib_save_LIBS=$LIBS
16764 > LIBS="-lssl  $LIBS"
16765 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 > /* end confdefs.h.  */
16767  
16768 < cat >>confdefs.h <<_ACEOF
16769 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
16768 > /* Override any GCC internal prototype to avoid an error.
16769 >   Use char because int might match the return type of a GCC
16770 >   builtin and then its argument prototype would still apply.  */
16771 > #ifdef __cplusplus
16772 > extern "C"
16773 > #endif
16774 > char SSL_connect ();
16775 > int
16776 > main ()
16777 > {
16778 > return SSL_connect ();
16779 >  ;
16780 >  return 0;
16781 > }
16782   _ACEOF
16783 + if ac_fn_c_try_link "$LINENO"; then :
16784 +  ac_cv_lib_ssl_SSL_connect=yes
16785 + else
16786 +  ac_cv_lib_ssl_SSL_connect=no
16787 + fi
16788 + rm -f core conftest.err conftest.$ac_objext \
16789 +    conftest$ac_exeext conftest.$ac_ext
16790 + LIBS=$ac_check_lib_save_LIBS
16791 + fi
16792 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16793 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16794 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16795 +  cat >>confdefs.h <<_ACEOF
16796 + #define HAVE_LIBSSL 1
16797 + _ACEOF
16798 +
16799 +  LIBS="-lssl $LIBS"
16800 +
16801 + fi
16802 +
16803 + fi
16804 +
16805 + fi
16806 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16807 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16808 + fi
16809 +
16810 + fi
16811 +
16812 +
16813 +
16814 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16815 + $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16816 +    if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
16817 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16818 + $as_echo "found" >&6; }
16819 + else
16820 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16821 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16822 + fi
16823 +
16824 + fi
16825 +
16826 + if test "$with_tls" = "gnutls" ||
16827 +   test "$with_tls" = "auto"; then
16828 +  if test "$ac_cv_lib_ssl_SSL_connect" != "yes"; then
16829 +
16830 +    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16831 + if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16832  
16833 +      if test "$cross_compiling" = yes; then :
16834 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16835 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16836 + as_fn_error $? "cannot run test program while cross compiling
16837 + See \`config.log' for more details" "$LINENO" 5; }
16838 + else
16839    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840   /* end confdefs.h.  */
14793 – /* Define select to an innocuous variant, in case <limits.h> declares select.
14794 –   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14795 – #define select innocuous_select
16841  
14797 – /* System header to define __stub macros and hopefully few prototypes,
14798 –    which can conflict with char select (); below.
14799 –    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14800 –    <limits.h> exists even on freestanding compilers.  */
16842  
16843 < #ifdef __STDC__
16844 < # include <limits.h>
16845 < #else
16846 < # include <assert.h>
16847 < #endif
16843 >          #include <gnutls/gnutls.h>
16844 >          #include <stdlib.h>
16845 > int
16846 > main ()
16847 > {
16848  
16849 < #undef select
16849 >          exit(!(GNUTLS_VERSION_NUMBER >= 0x030605));
16850 >  ;
16851 >  return 0;
16852 > }
16853 > _ACEOF
16854 > if ac_fn_c_try_run "$LINENO"; then :
16855 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16856 > $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16857 > if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16858 >  $as_echo_n "(cached) " >&6
16859 > else
16860 >  ac_check_lib_save_LIBS=$LIBS
16861 > LIBS="-lgnutls  $LIBS"
16862 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 > /* end confdefs.h.  */
16864  
16865   /* Override any GCC internal prototype to avoid an error.
16866     Use char because int might match the return type of a GCC
# Line 14813 | Line 16868 | _ACEOF
16868   #ifdef __cplusplus
16869   extern "C"
16870   #endif
16871 < char select ();
14817 < /* The GNU C library defines this for functions which it implements
14818 <    to always fail with ENOSYS.  Some functions are actually named
14819 <    something starting with __ and the normal name is an alias.  */
14820 < #if defined __stub_select || defined __stub___select
14821 < choke me
14822 < #endif
14823 <
16871 > char gnutls_init ();
16872   int
16873   main ()
16874   {
16875 < return select ();
16875 > return gnutls_init ();
16876    ;
16877    return 0;
16878   }
16879   _ACEOF
16880   if ac_fn_c_try_link "$LINENO"; then :
16881 <  is_select_mechanism_available="yes"
16881 >  ac_cv_lib_gnutls_gnutls_init=yes
16882   else
16883 <  is_select_mechanism_available="no"
16883 >  ac_cv_lib_gnutls_gnutls_init=no
16884   fi
16885   rm -f core conftest.err conftest.$ac_objext \
16886      conftest$ac_exeext conftest.$ac_ext
16887 <      optimal_iopoll_mechanism="none"
16888 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
16889 <    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
16890 <    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
16891 <      optimal_iopoll_mechanism="$mechanism"
16892 <      break
16893 <    fi
16894 <  done
16895 <      if test "$desired_iopoll_mechanism" = "none" ; then
16896 <    if test "$optimal_iopoll_mechanism" = "none" ; then
16897 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16898 < $as_echo "none" >&6; }
16899 <      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
16900 <    else
16901 <      selected_iopoll_mechanism=$optimal_iopoll_mechanism
16902 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
16903 < $as_echo "$selected_iopoll_mechanism" >&6; }
16904 <    fi
16905 <  else
16906 <    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
16907 <    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
16908 <      selected_iopoll_mechanism=$desired_iopoll_mechanism
16909 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
16910 < $as_echo "$selected_iopoll_mechanism" >&6; }
16911 <    else
16912 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16913 < $as_echo "none" >&6; }
16914 <      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
16915 <    fi
16887 > LIBS=$ac_check_lib_save_LIBS
16888 > fi
16889 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16890 > $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16891 > if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16892 >  cat >>confdefs.h <<_ACEOF
16893 > #define HAVE_LIBGNUTLS 1
16894 > _ACEOF
16895 >
16896 >  LIBS="-lgnutls $LIBS"
16897 >
16898 > fi
16899 >
16900 > fi
16901 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16902 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16903 > fi
16904 >
16905 > fi
16906 >
16907 >
16908 >
16909 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5
16910 > $as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; }
16911 >    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16912 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16913 > $as_echo "found" >&6; }
16914 > else
16915 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16916 > $as_echo "no - GnuTLS support disabled" >&6; }
16917 > fi
16918 >
16919    fi
16920 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
16920 > fi
16921  
16922 < cat >>confdefs.h <<_ACEOF
16923 < #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
16924 < _ACEOF
16922 > if test "$with_tls" = "wolfssl" ||
16923 >   test "$with_tls" = "auto"; then
16924 >  if test "$ac_cv_lib_ssl_SSL_connect" != "yes" &&
16925 >     test "$ac_cv_lib_gnutls_gnutls_init" != "yes"; then
16926 >
16927 >    ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
16928 > if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
16929  
16930 +      if test "$cross_compiling" = yes; then :
16931 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16932 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16933 + as_fn_error $? "cannot run test program while cross compiling
16934 + See \`config.log' for more details" "$LINENO" 5; }
16935 + else
16936 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937 + /* end confdefs.h.  */
16938  
16939  
16940 <  # Check whether --enable-halfops was given.
16941 < if test "${enable_halfops+set}" = set; then :
16942 <  enableval=$enable_halfops; halfops="$enableval"
16940 >          #include <wolfssl/version.h>
16941 >          #include <stdlib.h>
16942 > int
16943 > main ()
16944 > {
16945 >
16946 >          exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000));
16947 >  ;
16948 >  return 0;
16949 > }
16950 > _ACEOF
16951 > if ac_fn_c_try_run "$LINENO"; then :
16952 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5
16953 > $as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; }
16954 > if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then :
16955 >  $as_echo_n "(cached) " >&6
16956   else
16957 <  halfops="no"
16957 >  ac_check_lib_save_LIBS=$LIBS
16958 > LIBS="-lwolfssl  $LIBS"
16959 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960 > /* end confdefs.h.  */
16961 >
16962 > /* Override any GCC internal prototype to avoid an error.
16963 >   Use char because int might match the return type of a GCC
16964 >   builtin and then its argument prototype would still apply.  */
16965 > #ifdef __cplusplus
16966 > extern "C"
16967 > #endif
16968 > char wolfSSL_X509_digest ();
16969 > int
16970 > main ()
16971 > {
16972 > return wolfSSL_X509_digest ();
16973 >  ;
16974 >  return 0;
16975 > }
16976 > _ACEOF
16977 > if ac_fn_c_try_link "$LINENO"; then :
16978 >  ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes
16979 > else
16980 >  ac_cv_lib_wolfssl_wolfSSL_X509_digest=no
16981 > fi
16982 > rm -f core conftest.err conftest.$ac_objext \
16983 >    conftest$ac_exeext conftest.$ac_ext
16984 > LIBS=$ac_check_lib_save_LIBS
16985 > fi
16986 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5
16987 > $as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; }
16988 > if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then :
16989 >  cat >>confdefs.h <<_ACEOF
16990 > #define HAVE_LIBWOLFSSL 1
16991 > _ACEOF
16992 >
16993 >  LIBS="-lwolfssl $LIBS"
16994 >
16995   fi
16996  
16997 <  if test "$halfops" = "yes" ; then
16997 > fi
16998 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16999 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
17000 > fi
17001  
17002 < $as_echo "#define HALFOPS 1" >>confdefs.h
17002 > fi
17003  
14888 –  fi
17004  
17005  
17006 <  # Check whether --enable-debugging was given.
17007 < if test "${enable_debugging+set}" = set; then :
17008 <  enableval=$enable_debugging; debugging="$enableval"
17006 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5
17007 > $as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; }
17008 >    if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then :
17009 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17010 > $as_echo "found" >&6; }
17011   else
17012 <  debugging="no"
17012 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5
17013 > $as_echo "no - wolfSSL support disabled" >&6; }
17014   fi
17015  
14898 –  if test "$debugging" = "yes" ; then
14899 –    CFLAGS="-Wall -g -O0"
17016    fi
17017 + fi
17018  
17019  
17020 <  # Check whether --enable-warnings was given.
17021 < if test "${enable_warnings+set}" = set; then :
17022 <  enableval=$enable_warnings; warnings="$enableval"
17020 >
17021 > # Disable -Wformat-truncation
17022 >
17023 >
17024 >
17025 >
17026 > for flag in -Wno-format-truncation; do
17027 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
17028 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17029 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17030 > if eval \${$as_CACHEVAR+:} false; then :
17031 >  $as_echo_n "(cached) " >&6
17032   else
17033 <  warnings="no"
17033 >
17034 >  ax_check_save_flags=$CFLAGS
17035 >  CFLAGS="$CFLAGS  $flag"
17036 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 > /* end confdefs.h.  */
17038 >
17039 > int
17040 > main ()
17041 > {
17042 >
17043 >  ;
17044 >  return 0;
17045 > }
17046 > _ACEOF
17047 > if ac_fn_c_try_compile "$LINENO"; then :
17048 >  eval "$as_CACHEVAR=yes"
17049 > else
17050 >  eval "$as_CACHEVAR=no"
17051 > fi
17052 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053 >  CFLAGS=$ax_check_save_flags
17054 > fi
17055 > eval ac_res=\$$as_CACHEVAR
17056 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17057 > $as_echo "$ac_res" >&6; }
17058 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17059 >
17060 > if ${CFLAGS+:} false; then :
17061 >
17062 >  case " $CFLAGS " in #(
17063 >  *" $flag "*) :
17064 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17065 >  (: CFLAGS already contains $flag) 2>&5
17066 >  ac_status=$?
17067 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068 >  test $ac_status = 0; } ;; #(
17069 >  *) :
17070 >
17071 >     as_fn_append CFLAGS " $flag"
17072 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17073 >  (: CFLAGS="$CFLAGS") 2>&5
17074 >  ac_status=$?
17075 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17076 >  test $ac_status = 0; }
17077 >     ;;
17078 > esac
17079 >
17080 > else
17081 >
17082 >  CFLAGS=$flag
17083 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17084 >  (: CFLAGS="$CFLAGS") 2>&5
17085 >  ac_status=$?
17086 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17087 >  test $ac_status = 0; }
17088 >
17089   fi
17090  
17091 <  if test "$warnings" = "yes" ; then
17092 <    CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
17093 <  fi
17091 > else
17092 >  :
17093 > fi
17094 >
17095 > done
17096  
17097  
17098  
# Line 14998 | Line 17181 | _ACEOF
17181    test "$exec_prefix_NONE" && exec_prefix=NONE
17182  
17183  
17184 < ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
17184 > 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"
17185  
17186  
17187   cat >confcache <<\_ACEOF
# Line 15164 | Line 17347 | LT_CONFIG_H=config.h
17347  
17348  
17349  
15167 – if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15168 –  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15169 – Usually this means the macro was only invoked conditionally." "$LINENO" 5
15170 – fi
17350  
17351   : "${CONFIG_STATUS=./config.status}"
17352   ac_write_fail=0
# Line 15750 | Line 17929 | cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
17929   #
17930   # INIT-COMMANDS
17931   #
17932 < AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17932 > AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17933  
17934  
17935   # The HP-UX ksh and POSIX shell print the target directory to stdout
# Line 15766 | Line 17945 | enable_static='`$ECHO "$enable_static" |
17945   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17946   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17947   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17948 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17949   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17950   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17951   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 15815 | Line 17995 | compiler='`$ECHO "$compiler" | $SED "$de
17995   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17996   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17997   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17998 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17999   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18000   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"`'
18001 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18002   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18003   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18004 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18005   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18006   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18007   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 15883 | Line 18066 | finish_cmds='`$ECHO "$finish_cmds" | $SE
18066   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18067   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18068   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18069 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18069 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18070 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18071   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18072   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18073   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 15934 | Line 18118 | CFLAGS \
18118   compiler \
18119   lt_cv_sys_global_symbol_pipe \
18120   lt_cv_sys_global_symbol_to_cdecl \
18121 + lt_cv_sys_global_symbol_to_import \
18122   lt_cv_sys_global_symbol_to_c_name_address \
18123   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18124 + lt_cv_nm_interface \
18125   nm_file_list_spec \
18126 + lt_cv_truncate_bin \
18127   lt_prog_compiler_no_builtin_flag \
18128   lt_prog_compiler_pic \
18129   lt_prog_compiler_wl \
# Line 15971 | Line 18158 | old_striplib \
18158   striplib; do
18159      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18160      *[\\\\\\\`\\"\\\$]*)
18161 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18161 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18162        ;;
18163      *)
18164        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15998 | Line 18185 | postinstall_cmds \
18185   postuninstall_cmds \
18186   finish_cmds \
18187   sys_lib_search_path_spec \
18188 < sys_lib_dlsearch_path_spec; do
18188 > configure_time_dlsearch_path \
18189 > configure_time_lt_sys_library_path; do
18190      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18191      *[\\\\\\\`\\"\\\$]*)
18192 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18192 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18193        ;;
18194      *)
18195        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16010 | Line 18198 | sys_lib_dlsearch_path_spec; do
18198   done
18199  
18200   ac_aux_dir='$ac_aux_dir'
16013 – xsi_shell='$xsi_shell'
16014 – lt_shell_append='$lt_shell_append'
18201  
18202 < # See if we are running on zsh, and set the options which allow our
18202 > # See if we are running on zsh, and set the options that allow our
18203   # commands through without removal of \ escapes INIT.
18204 < if test -n "\${ZSH_VERSION+set}" ; then
18204 > if test -n "\${ZSH_VERSION+set}"; then
18205     setopt NO_GLOB_SUBST
18206   fi
18207  
18208  
18209      PACKAGE='$PACKAGE'
18210      VERSION='$VERSION'
16025 –    TIMESTAMP='$TIMESTAMP'
18211      RM='$RM'
18212      ofile='$ofile'
18213  
# Line 16045 | Line 18230 | do
18230      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
18231      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18232      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18233 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18234      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18235      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18236      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
# Line 16647 | Line 18833 | $as_echo "$as_me: executing $ac_file com
18833    # Older Autoconf quotes --file arguments for eval, but not when files
18834    # are listed without --file.  Let's play safe and only enable the eval
18835    # if we detect the quoting.
18836 <  case $CONFIG_FILES in
18837 <  *\'*) eval set x "$CONFIG_FILES" ;;
18838 <  *)   set x $CONFIG_FILES ;;
18839 <  esac
18836 >  # TODO: see whether this extra hack can be removed once we start
18837 >  # requiring Autoconf 2.70 or later.
18838 >  case $CONFIG_FILES in #(
18839 >  *\'*) :
18840 >    eval set x "$CONFIG_FILES" ;; #(
18841 >  *) :
18842 >    set x $CONFIG_FILES ;; #(
18843 >  *) :
18844 >     ;;
18845 > esac
18846    shift
18847 <  for mf
18847 >  # Used to flag and report bootstrapping failures.
18848 >  am_rc=0
18849 >  for am_mf
18850    do
18851      # Strip MF so we end up with the name of the file.
18852 <    mf=`echo "$mf" | sed -e 's/:.*$//'`
18853 <    # Check whether this is an Automake generated Makefile or not.
18854 <    # We used to match only the files named 'Makefile.in', but
18855 <    # some people rename them; so instead we look at the file content.
16662 <    # Grep'ing the first line is not enough: some people post-process
16663 <    # each Makefile.in and add a new line on top of each file to say so.
16664 <    # Grep'ing the whole file is not good either: AIX grep has a line
18852 >    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18853 >    # Check whether this is an Automake generated Makefile which includes
18854 >    # dependency-tracking related rules and includes.
18855 >    # Grep'ing the whole file directly is not great: AIX grep has a line
18856      # limit of 2048, but all sed's we know have understand at least 4000.
18857 <    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18858 <      dirpart=`$as_dirname -- "$mf" ||
18859 < $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18860 <         X"$mf" : 'X\(//\)[^/]' \| \
18861 <         X"$mf" : 'X\(//\)$' \| \
18862 <         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18863 < $as_echo X"$mf" |
18857 >    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18858 >      || continue
18859 >    am_dirpart=`$as_dirname -- "$am_mf" ||
18860 > $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18861 >         X"$am_mf" : 'X\(//\)[^/]' \| \
18862 >         X"$am_mf" : 'X\(//\)$' \| \
18863 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18864 > $as_echo X"$am_mf" |
18865      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18866              s//\1/
18867              q
# Line 16687 | Line 18879 | $as_echo X"$mf" |
18879              q
18880            }
18881            s/.*/./; q'`
18882 <    else
18883 <      continue
18884 <    fi
18885 <    # Extract the definition of DEPDIR, am__include, and am__quote
18886 <    # from the Makefile without running 'make'.
18887 <    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16696 <    test -z "$DEPDIR" && continue
16697 <    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16698 <    test -z "$am__include" && continue
16699 <    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16700 <    # Find all dependency output files, they are included files with
16701 <    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16702 <    # simplest approach to changing $(DEPDIR) to its actual value in the
16703 <    # expansion.
16704 <    for file in `sed -n "
16705 <      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16706 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16707 <      # Make sure the directory exists.
16708 <      test -f "$dirpart/$file" && continue
16709 <      fdir=`$as_dirname -- "$file" ||
16710 < $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16711 <         X"$file" : 'X\(//\)[^/]' \| \
16712 <         X"$file" : 'X\(//\)$' \| \
16713 <         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16714 < $as_echo X"$file" |
16715 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16716 <            s//\1/
16717 <            q
16718 <          }
16719 <          /^X\(\/\/\)[^/].*/{
18882 >    am_filepart=`$as_basename -- "$am_mf" ||
18883 > $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18884 >         X"$am_mf" : 'X\(//\)$' \| \
18885 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18886 > $as_echo X/"$am_mf" |
18887 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
18888              s//\1/
18889              q
18890            }
18891 <          /^X\(\/\/\)$/{
18891 >          /^X\/\(\/\/\)$/{
18892              s//\1/
18893              q
18894            }
18895 <          /^X\(\/\).*/{
18895 >          /^X\/\(\/\).*/{
18896              s//\1/
18897              q
18898            }
18899            s/.*/./; q'`
18900 <      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18901 <      # echo "creating $dirpart/$file"
18902 <      echo '# dummy' > "$dirpart/$file"
18903 <    done
18900 >    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18901 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18902 >        | $MAKE -f - am--depfiles" >&5
18903 >   (cd "$am_dirpart" \
18904 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18905 >        | $MAKE -f - am--depfiles) >&5 2>&5
18906 >   ac_status=$?
18907 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 >   (exit $ac_status); } || am_rc=$?
18909    done
18910 +  if test $am_rc -ne 0; then
18911 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18912 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18913 + as_fn_error $? "Something went wrong bootstrapping makefile fragments
18914 +    for automatic dependency tracking.  Try re-running configure with the
18915 +    '--disable-dependency-tracking' option to at least be able to build
18916 +    the package (albeit without support for automatic dependency tracking).
18917 + See \`config.log' for more details" "$LINENO" 5; }
18918 +  fi
18919 +  { am_dirpart=; unset am_dirpart;}
18920 +  { am_filepart=; unset am_filepart;}
18921 +  { am_mf=; unset am_mf;}
18922 +  { am_rc=; unset am_rc;}
18923 +  rm -f conftest-deps.mk
18924   }
18925   ;;
18926      "libtool":C)
18927  
18928 <    # See if we are running on zsh, and set the options which allow our
18928 >    # See if we are running on zsh, and set the options that allow our
18929      # commands through without removal of \ escapes.
18930 <    if test -n "${ZSH_VERSION+set}" ; then
18930 >    if test -n "${ZSH_VERSION+set}"; then
18931        setopt NO_GLOB_SUBST
18932      fi
18933  
18934 <    cfgfile="${ofile}T"
18934 >    cfgfile=${ofile}T
18935      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18936      $RM "$cfgfile"
18937  
18938      cat <<_LT_EOF >> "$cfgfile"
18939   #! $SHELL
18940 <
16754 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16755 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16756 < # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18940 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18941   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18942 +
18943 + # Provide generalized library-building support services.
18944 + # Written by Gordon Matzigkeit, 1996
18945 +
18946 + # Copyright (C) 2014 Free Software Foundation, Inc.
18947 + # This is free software; see the source for copying conditions.  There is NO
18948 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18949 +
18950 + # GNU Libtool is free software; you can redistribute it and/or modify
18951 + # it under the terms of the GNU General Public License as published by
18952 + # the Free Software Foundation; either version 2 of of the License, or
18953 + # (at your option) any later version.
18954   #
18955 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18956 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18957 < #                 Foundation, Inc.
18958 < #   Written by Gordon Matzigkeit, 1996
16763 < #
16764 < #   This file is part of GNU Libtool.
16765 < #
16766 < # GNU Libtool is free software; you can redistribute it and/or
16767 < # modify it under the terms of the GNU General Public License as
16768 < # published by the Free Software Foundation; either version 2 of
16769 < # the License, or (at your option) any later version.
16770 < #
16771 < # As a special exception to the GNU General Public License,
16772 < # if you distribute this file as part of a program or library that
16773 < # is built using GNU Libtool, you may include this file under the
16774 < # same distribution terms that you use for the rest of that program.
18955 > # As a special exception to the GNU General Public License, if you
18956 > # distribute this file as part of a program or library that is built
18957 > # using GNU Libtool, you may include this file under the  same
18958 > # distribution terms that you use for the rest of that program.
18959   #
18960 < # GNU Libtool is distributed in the hope that it will be useful,
18961 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18960 > # GNU Libtool is distributed in the hope that it will be useful, but
18961 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18962   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18963   # GNU General Public License for more details.
18964   #
18965   # You should have received a copy of the GNU General Public License
18966 < # along with GNU Libtool; see the file COPYING.  If not, a copy
16783 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16784 < # obtained by writing to the Free Software Foundation, Inc.,
16785 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18966 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18967  
18968  
18969   # The names of the tagged configurations supported by this script.
18970 < available_tags=""
18970 > available_tags=''
18971 >
18972 > # Configured defaults for sys_lib_dlsearch_path munging.
18973 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18974  
18975   # ### BEGIN LIBTOOL CONFIG
18976  
# Line 16806 | Line 18990 | pic_mode=$pic_mode
18990   # Whether or not to optimize for fast installation.
18991   fast_install=$enable_fast_install
18992  
18993 + # Shared archive member basename,for filename based shared library versioning on AIX.
18994 + shared_archive_member_spec=$shared_archive_member_spec
18995 +
18996   # Shell to use when invoking shell scripts.
18997   SHELL=$lt_SHELL
18998  
# Line 16923 | Line 19110 | global_symbol_pipe=$lt_lt_cv_sys_global_
19110   # Transform the output of nm in a proper C declaration.
19111   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19112  
19113 + # Transform the output of nm into a list of symbols to manually relocate.
19114 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19115 +
19116   # Transform the output of nm in a C name address pair.
19117   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19118  
19119   # Transform the output of nm in a C name address pair when lib prefix is needed.
19120   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19121  
19122 + # The name lister interface.
19123 + nm_interface=$lt_lt_cv_nm_interface
19124 +
19125   # Specify filename containing input files for \$NM.
19126   nm_file_list_spec=$lt_nm_file_list_spec
19127  
19128 < # The root where to search for dependent libraries,and in which our libraries should be installed.
19128 > # The root where to search for dependent libraries,and where our libraries should be installed.
19129   lt_sysroot=$lt_sysroot
19130  
19131 + # Command to truncate a binary pipe.
19132 + lt_truncate_bin=$lt_lt_cv_truncate_bin
19133 +
19134   # The name of the directory that contains temporary libtool files.
19135   objdir=$objdir
19136  
# Line 17025 | Line 19221 | hardcode_into_libs=$hardcode_into_libs
19221   # Compile-time system search path for libraries.
19222   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19223  
19224 < # Run-time system search path for libraries.
19225 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19224 > # Detected run-time system search path for libraries.
19225 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19226 >
19227 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19228 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19229  
19230   # Whether dlopen is supported.
19231   dlopen_support=$enable_dlopen
# Line 17119 | Line 19318 | hardcode_libdir_flag_spec=$lt_hardcode_l
19318   # Whether we need a single "-rpath" flag with a separated argument.
19319   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19320  
19321 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19321 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19322   # DIR into the resulting binary.
19323   hardcode_direct=$hardcode_direct
19324  
19325 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19325 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19326   # DIR into the resulting binary and the resulting library dependency is
19327 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19327 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19328   # library is relocated.
19329   hardcode_direct_absolute=$hardcode_direct_absolute
19330  
# Line 17177 | Line 19376 | hardcode_action=$hardcode_action
19376  
19377   _LT_EOF
19378  
19379 +    cat <<'_LT_EOF' >> "$cfgfile"
19380 +
19381 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19382 +
19383 + # func_munge_path_list VARIABLE PATH
19384 + # -----------------------------------
19385 + # VARIABLE is name of variable containing _space_ separated list of
19386 + # directories to be munged by the contents of PATH, which is string
19387 + # having a format:
19388 + # "DIR[:DIR]:"
19389 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19390 + # ":DIR[:DIR]"
19391 + #       string "DIR[ DIR]" will be appended to VARIABLE
19392 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19393 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19394 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19395 + # "DIR[:DIR]"
19396 + #       VARIABLE will be replaced by "DIR[ DIR]"
19397 + func_munge_path_list ()
19398 + {
19399 +    case x$2 in
19400 +    x)
19401 +        ;;
19402 +    *:)
19403 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19404 +        ;;
19405 +    x:*)
19406 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19407 +        ;;
19408 +    *::*)
19409 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19410 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19411 +        ;;
19412 +    *)
19413 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19414 +        ;;
19415 +    esac
19416 + }
19417 +
19418 +
19419 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19420 + func_cc_basename ()
19421 + {
19422 +    for cc_temp in $*""; do
19423 +      case $cc_temp in
19424 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19425 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19426 +        \-*) ;;
19427 +        *) break;;
19428 +      esac
19429 +    done
19430 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19431 + }
19432 +
19433 +
19434 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19435 +
19436 + _LT_EOF
19437 +
19438    case $host_os in
19439    aix3*)
19440      cat <<\_LT_EOF >> "$cfgfile"
19441   # AIX sometimes has problems with the GCC collect2 program.  For some
19442   # reason, if we set the COLLECT_NAMES environment variable, the problems
19443   # vanish in a puff of smoke.
19444 < if test "X${COLLECT_NAMES+set}" != Xset; then
19444 > if test set != "${COLLECT_NAMES+set}"; then
19445    COLLECT_NAMES=
19446    export COLLECT_NAMES
19447   fi
# Line 17192 | Line 19450 | _LT_EOF
19450    esac
19451  
19452  
19453 < ltmain="$ac_aux_dir/ltmain.sh"
19453 > ltmain=$ac_aux_dir/ltmain.sh
19454  
19455  
19456    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 17202 | Line 19460 | ltmain="$ac_aux_dir/ltmain.sh"
19460    sed '$q' "$ltmain" >> "$cfgfile" \
19461       || (rm -f "$cfgfile"; exit 1)
19462  
17205 –  if test x"$xsi_shell" = xyes; then
17206 –  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17207 – func_dirname ()\
17208 – {\
17209 – \    case ${1} in\
17210 – \      */*) func_dirname_result="${1%/*}${2}" ;;\
17211 – \      *  ) func_dirname_result="${3}" ;;\
17212 – \    esac\
17213 – } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17214 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17215 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17216 – test 0 -eq $? || _lt_function_replace_fail=:
17217 –
17218 –
17219 –  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17220 – func_basename ()\
17221 – {\
17222 – \    func_basename_result="${1##*/}"\
17223 – } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17224 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17225 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17226 – test 0 -eq $? || _lt_function_replace_fail=:
17227 –
17228 –
17229 –  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17230 – func_dirname_and_basename ()\
17231 – {\
17232 – \    case ${1} in\
17233 – \      */*) func_dirname_result="${1%/*}${2}" ;;\
17234 – \      *  ) func_dirname_result="${3}" ;;\
17235 – \    esac\
17236 – \    func_basename_result="${1##*/}"\
17237 – } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17238 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17239 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17240 – test 0 -eq $? || _lt_function_replace_fail=:
17241 –
17242 –
17243 –  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17244 – func_stripname ()\
17245 – {\
17246 – \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17247 – \    # positional parameters, so assign one to ordinary parameter first.\
17248 – \    func_stripname_result=${3}\
17249 – \    func_stripname_result=${func_stripname_result#"${1}"}\
17250 – \    func_stripname_result=${func_stripname_result%"${2}"}\
17251 – } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17252 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17253 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17254 – test 0 -eq $? || _lt_function_replace_fail=:
17255 –
17256 –
17257 –  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17258 – func_split_long_opt ()\
17259 – {\
17260 – \    func_split_long_opt_name=${1%%=*}\
17261 – \    func_split_long_opt_arg=${1#*=}\
17262 – } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17263 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17264 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17265 – test 0 -eq $? || _lt_function_replace_fail=:
17266 –
17267 –
17268 –  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17269 – func_split_short_opt ()\
17270 – {\
17271 – \    func_split_short_opt_arg=${1#??}\
17272 – \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17273 – } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17274 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17275 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17276 – test 0 -eq $? || _lt_function_replace_fail=:
17277 –
17278 –
17279 –  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17280 – func_lo2o ()\
17281 – {\
17282 – \    case ${1} in\
17283 – \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17284 – \      *)    func_lo2o_result=${1} ;;\
17285 – \    esac\
17286 – } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17287 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17288 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17289 – test 0 -eq $? || _lt_function_replace_fail=:
17290 –
17291 –
17292 –  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17293 – func_xform ()\
17294 – {\
17295 –    func_xform_result=${1%.*}.lo\
17296 – } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17297 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17298 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17299 – test 0 -eq $? || _lt_function_replace_fail=:
17300 –
17301 –
17302 –  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17303 – func_arith ()\
17304 – {\
17305 –    func_arith_result=$(( $* ))\
17306 – } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17307 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17308 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17309 – test 0 -eq $? || _lt_function_replace_fail=:
17310 –
17311 –
17312 –  sed -e '/^func_len ()$/,/^} # func_len /c\
17313 – func_len ()\
17314 – {\
17315 –    func_len_result=${#1}\
17316 – } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17317 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17318 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17319 – test 0 -eq $? || _lt_function_replace_fail=:
17320 –
17321 – fi
17322 –
17323 – if test x"$lt_shell_append" = xyes; then
17324 –  sed -e '/^func_append ()$/,/^} # func_append /c\
17325 – func_append ()\
17326 – {\
17327 –    eval "${1}+=\\${2}"\
17328 – } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17329 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17330 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17331 – test 0 -eq $? || _lt_function_replace_fail=:
17332 –
17333 –
17334 –  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17335 – func_append_quoted ()\
17336 – {\
17337 – \    func_quote_for_eval "${2}"\
17338 – \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17339 – } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17340 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17341 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17342 – test 0 -eq $? || _lt_function_replace_fail=:
17343 –
17344 –
17345 –  # Save a `func_append' function call where possible by direct use of '+='
17346 –  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17347 –    && mv -f "$cfgfile.tmp" "$cfgfile" \
17348 –      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17349 –  test 0 -eq $? || _lt_function_replace_fail=:
17350 – else
17351 –  # Save a `func_append' function call even when '+=' is not available
17352 –  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17353 –    && mv -f "$cfgfile.tmp" "$cfgfile" \
17354 –      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17355 –  test 0 -eq $? || _lt_function_replace_fail=:
17356 – fi
17357 –
17358 – if test x"$_lt_function_replace_fail" = x":"; then
17359 –  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17360 – $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17361 – fi
17362 –
17363 –
19463     mv -f "$cfgfile" "$ofile" ||
19464      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19465    chmod +x "$ofile"
# Line 17404 | Line 19503 | if test -n "$ac_unrecognized_opts" && te
19503   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19504   fi
19505  
19506 +
19507 + echo "###############################################################################"
19508 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19509 + echo
19510 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19511 + echo "   ./configure --prefix=DIRECTORY"
19512 + echo "###############################################################################"

Diff Legend

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