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

Comparing:
ircd-hybrid/trunk/configure (file contents), Revision 2064 by michael, Thu May 16 09:56:02 2013 UTC vs.
ircd-hybrid/branches/8.2.x/configure (file contents), Revision 9168 by michael, Sat Jan 18 19:08:25 2020 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 2030 2013-05-14 18:24:55Z michael .
2 > # From configure.ac Id: configure.ac 9167 2020-01-18 19:08:06Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4 < # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.26.
5   #
6   # Report bugs to <bugs@ircd-hybrid.org>.
7   #
# Line 593 | Line 593 | MAKEFLAGS=
593   # Identity of this package.
594   PACKAGE_NAME='ircd-hybrid'
595   PACKAGE_TARNAME='ircd-hybrid'
596 < PACKAGE_VERSION='TRUNK'
597 < PACKAGE_STRING='ircd-hybrid TRUNK'
596 > PACKAGE_VERSION='8.2.26'
597 > PACKAGE_STRING='ircd-hybrid 8.2.26'
598   PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599   PACKAGE_URL=''
600  
# Line 648 | Line 648 | DATADIR
648   LIBDIR
649   SYSCONFDIR
650   PREFIX
651 ENABLE_SSL_FALSE
652 ENABLE_SSL_TRUE
651   LTDLOPEN
652   LT_CONFIG_H
653   CONVENIENCE_LTDL_FALSE
654   CONVENIENCE_LTDL_TRUE
655   INSTALL_LTDL_FALSE
656   INSTALL_LTDL_TRUE
657 < ARGZ_H
657 > LT_ARGZ_H
658   sys_symbol_underscore
659   LIBADD_DL
660   LT_DLPREOPEN
# Line 669 | Line 667 | LTDLINCL
667   LTDLDEPS
668   LIBLTDL
669   CPP
670 + LT_SYS_LIBRARY_PATH
671   OTOOL64
672   OTOOL
673   LIPO
# Line 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 + enable_openssl
818 + enable_gnutls
819 + enable_wolfssl
820   '
821        ac_precious_vars='build_alias
822   host_alias
# Line 827 | Line 828 | LIBS
828   CPPFLAGS
829   YACC
830   YFLAGS
831 + LT_SYS_LIBRARY_PATH
832   CPP'
833  
834  
# Line 866 | Line 868 | datadir='${datarootdir}'
868   sysconfdir='${prefix}/etc'
869   sharedstatedir='${prefix}/com'
870   localstatedir='${prefix}/var'
871 + runstatedir='${localstatedir}/run'
872   includedir='${prefix}/include'
873   oldincludedir='/usr/include'
874   docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
# Line 1118 | Line 1121 | do
1121    | -silent | --silent | --silen | --sile | --sil)
1122      silent=yes ;;
1123  
1124 +  -runstatedir | --runstatedir | --runstatedi | --runstated \
1125 +  | --runstate | --runstat | --runsta | --runst | --runs \
1126 +  | --run | --ru | --r)
1127 +    ac_prev=runstatedir ;;
1128 +  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129 +  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130 +  | --run=* | --ru=* | --r=*)
1131 +    runstatedir=$ac_optarg ;;
1132 +
1133    -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134      ac_prev=sbindir ;;
1135    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
# Line 1255 | Line 1267 | fi
1267   for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                  datadir sysconfdir sharedstatedir localstatedir includedir \
1269                  oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 <                libdir localedir mandir
1270 >                libdir localedir mandir runstatedir
1271   do
1272    eval ac_val=\$$ac_var
1273    # Remove trailing slashes.
# Line 1368 | Line 1380 | if test "$ac_init_help" = "long"; then
1380    # Omit some internal or obsolete options to make the list less imposing.
1381    # This message is too long to be a string in the A/UX 3.1 sh.
1382    cat <<_ACEOF
1383 < \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1383 > \`configure' configures ircd-hybrid 8.2.26 to adapt to many kinds of systems.
1384  
1385   Usage: $0 [OPTION]... [VAR=VALUE]...
1386  
# Line 1408 | Line 1420 | Fine tuning of the installation director
1420    --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421    --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422    --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423 +  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1424    --libdir=DIR            object code libraries [EPREFIX/lib]
1425    --includedir=DIR        C header files [PREFIX/include]
1426    --oldincludedir=DIR     C header files for non-gcc [/usr/include]
# Line 1438 | Line 1451 | fi
1451  
1452   if test -n "$ac_init_help"; then
1453    case $ac_init_help in
1454 <     short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1454 >     short | recursive ) echo "Configuration of ircd-hybrid 8.2.26:";;
1455     esac
1456    cat <<\_ACEOF
1457  
# Line 1461 | Line 1474 | Optional Features:
1474                            optimize for fast installation [default=yes]
1475    --disable-libtool-lock  avoid locking (might break parallel builds)
1476    --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
1477    --enable-kqueue         Force kqueue usage.
1478    --enable-epoll          Force epoll usage.
1479    --enable-devpoll        Force devpoll usage.
1480    --enable-poll           Force poll usage.
1481 <  --enable-select         Force select usage.
1473 <  --enable-halfops        Enable halfops support.
1481 >  --enable-assert         Enable assert() statements
1482    --enable-debugging      Enable debugging.
1483    --enable-warnings       Enable compiler warnings.
1484 +  --enable-efence         Enable linking with Electric Fence 'efence' memory
1485 +                          debugger library.
1486 +  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1487 +  --disable-openssl            Disable LibreSSL/OpenSSL support.
1488 +  --enable-gnutls             Enable GnuTLS support.
1489 +  --disable-gnutls             Disable GnuTLS support.
1490 +  --enable-wolfssl             Enable wolfSSL support.
1491 +  --disable-wolfssl             Disable wolfSSL support.
1492  
1493   Optional Packages:
1494    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1495    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1496    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1497                            both]
1498 +  --with-aix-soname=aix|svr4|both
1499 +                          shared library versioning (aka "SONAME") variant to
1500 +                          provide on AIX, [default=aix].
1501    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1502 <  --with-sysroot=DIR Search for dependent libraries within DIR
1503 <                        (or the compiler's sysroot if not specified).
1502 >  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1503 >                          compiler's sysroot if not specified).
1504    --with-included-ltdl    use the GNU ltdl sources included here
1505    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1506    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
# Line 1500 | Line 1519 | Some influential environment variables:
1519    YFLAGS      The list of arguments that will be passed by default to $YACC.
1520                This script will default YFLAGS to the empty string to avoid a
1521                default value of `-d' given by some make applications.
1522 +  LT_SYS_LIBRARY_PATH
1523 +              User-defined run-time library search path.
1524    CPP         C preprocessor
1525  
1526   Use these variables to override the choices made by `configure' or to help
# Line 1568 | Line 1589 | fi
1589   test -n "$ac_init_help" && exit $ac_status
1590   if $ac_init_version; then
1591    cat <<\_ACEOF
1592 < ircd-hybrid configure TRUNK
1592 > ircd-hybrid configure 8.2.26
1593   generated by GNU Autoconf 2.69
1594  
1595   Copyright (C) 2012 Free Software Foundation, Inc.
# Line 1943 | Line 1964 | $as_echo "$ac_res" >&6; }
1964  
1965   } # ac_fn_c_check_type
1966  
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956  $as_echo_n "(cached) " >&6
1957 else
1958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967  ;
1968  return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972  eval "$4=yes"
1973 else
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983  ;
1984  return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988  eval "$4=yes"
1989 else
1990  eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
1967   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968   # -------------------------------------------------------
1969   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2094 | Line 2058 | cat >config.log <<_ACEOF
2058   This file contains any messages produced by compilers while
2059   running configure, to aid debugging if configure makes a mistake.
2060  
2061 < It was created by ircd-hybrid $as_me TRUNK, which was
2061 > It was created by ircd-hybrid $as_me 8.2.26, which was
2062   generated by GNU Autoconf 2.69.  Invocation command line was
2063  
2064    $ $0 $@
# Line 2374 | Line 2338 | $as_echo "$as_me: creating cache $cache_
2338    >$cache_file
2339   fi
2340  
2341 + as_fn_append ac_func_list " accept4"
2342   as_fn_append ac_func_list " strtok_r"
2378 as_fn_append ac_func_list " usleep"
2343   as_fn_append ac_func_list " strlcat"
2344   as_fn_append ac_func_list " strlcpy"
2345   as_fn_append ac_header_list " crypt.h"
2382 as_fn_append ac_header_list " sys/resource.h"
2346   as_fn_append ac_header_list " sys/param.h"
2347   as_fn_append ac_header_list " types.h"
2348   as_fn_append ac_header_list " socket.h"
2349   as_fn_append ac_header_list " sys/wait.h"
2387 as_fn_append ac_header_list " wait.h"
2350   # Check that the precious variables saved in the cache have kept the same
2351   # value.
2352   ac_cache_corrupted=false
# Line 2453 | Line 2415 | ac_link='$CC -o conftest$ac_exeext $CFLA
2415   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416  
2417  
2418 < am__api_version='1.13'
2418 > am__api_version='1.16'
2419  
2420   ac_aux_dir=
2421   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2654 | Line 2616 | test "$program_suffix" != NONE &&
2616   ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2617   program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2618  
2619 < # expand $ac_aux_dir to an absolute path
2620 < am_aux_dir=`cd $ac_aux_dir && pwd`
2619 > # Expand $ac_aux_dir to an absolute path.
2620 > am_aux_dir=`cd "$ac_aux_dir" && pwd`
2621  
2622   if test x"${MISSING+set}" != xset; then
2623    case $am_aux_dir in
# Line 2674 | Line 2636 | else
2636   $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2637   fi
2638  
2639 < if test x"${install_sh}" != xset; then
2639 > if test x"${install_sh+set}" != xset; then
2640    case $am_aux_dir in
2641    *\ * | *\     *)
2642      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
# Line 2968 | Line 2930 | fi
2930  
2931   # Define the identity of the package.
2932   PACKAGE='ircd-hybrid'
2933 < VERSION='TRUNK'
2933 > VERSION='8.2.26'
2934  
2935  
2936   cat >>confdefs.h <<_ACEOF
# Line 2998 | Line 2960 | MAKEINFO=${MAKEINFO-"${am_missing_run}ma
2960  
2961   # For better backward compatibility.  To be removed once Automake 1.9.x
2962   # dies out for good.  For more background, see:
2963 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2964 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2963 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2964 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2965   mkdir_p='$(MKDIR_P)'
2966  
2967 < # We need awk for the "check" target.  The system "awk" is bad on
2968 < # some platforms.
2967 > # We need awk for the "check" target (and possibly the TAP driver).  The
2968 > # system "awk" is bad on some platforms.
2969   # Always define AMTAR for backward compatibility.  Yes, it's still used
2970   # in the wild :-(  We should find a proper way to deprecate it ...
2971   AMTAR='$${TAR-tar}'
# Line 3019 | Line 2981 | am__tar='$${TAR-tar} chof - "$$tardir"'
2981  
2982  
2983  
2984 + # POSIX will say in a future version that running "rm -f" with no argument
2985 + # is OK; and we want to be able to make that assumption in our Makefile
2986 + # recipes.  So use an aggressive probe to check that the usage we want is
2987 + # actually supported "in the wild" to an acceptable degree.
2988 + # See automake bug#10828.
2989 + # To make any issue more visible, cause the running configure to be aborted
2990 + # by default if the 'rm' program in use doesn't match our expectations; the
2991 + # user can still override this though.
2992 + if rm -f && rm -fr && rm -rf; then : OK; else
2993 +  cat >&2 <<'END'
2994 + Oops!
2995 +
2996 + Your 'rm' program seems unable to run without file operands specified
2997 + on the command line, even when the '-f' option is present.  This is contrary
2998 + to the behaviour of most rm programs out there, and not conforming with
2999 + the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3000 +
3001 + Please tell bug-automake@gnu.org about your system, including the value
3002 + of your $PATH and any error possibly output before this message.  This
3003 + can help us improve future automake versions.
3004 +
3005 + END
3006 +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3007 +    echo 'Configuration will proceed anyway, since you have set the' >&2
3008 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3009 +    echo >&2
3010 +  else
3011 +    cat >&2 <<'END'
3012 + Aborting the configuration process, to ensure you take notice of the issue.
3013 +
3014 + You can download and install GNU coreutils to get an 'rm' implementation
3015 + that behaves properly: <https://www.gnu.org/software/coreutils/>.
3016 +
3017 + If you want to complete the configuration process using your problematic
3018 + 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3019 + to "yes", and re-run configure.
3020 +
3021 + END
3022 +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3023 +  fi
3024 + fi
3025 +
3026  
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3028   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
# Line 3042 | Line 3046 | fi
3046    MAINT=$MAINTAINER_MODE_TRUE
3047  
3048  
3049 +
3050   ac_config_headers="$ac_config_headers config.h"
3051  
3052  
# Line 3051 | Line 3056 | DEPDIR="${am__leading_dot}deps"
3056  
3057   ac_config_commands="$ac_config_commands depfiles"
3058  
3059 <
3060 < am_make=${MAKE-make}
3061 < cat > confinc << 'END'
3059 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3060 > $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3061 > cat > confinc.mk << 'END'
3062   am__doit:
3063 <        @echo this is the am__doit target
3063 >        @echo this is the am__doit target >confinc.out
3064   .PHONY: am__doit
3065   END
3061 # If we don't find an include directive, just comment out the code.
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3063 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3066   am__include="#"
3067   am__quote=
3068 < _am_result=none
3069 < # First try GNU make style include.
3070 < echo "include confinc" > confmf
3071 < # Ignore all kinds of additional output from 'make'.
3072 < case `$am_make -s -f confmf 2> /dev/null` in #(
3073 < *the\ am__doit\ target*)
3074 <  am__include=include
3075 <  am__quote=
3076 <  _am_result=GNU
3077 <  ;;
3078 < esac
3079 < # Now try BSD make style include.
3080 < if test "$am__include" = "#"; then
3081 <   echo '.include "confinc"' > confmf
3082 <   case `$am_make -s -f confmf 2> /dev/null` in #(
3083 <   *the\ am__doit\ target*)
3084 <     am__include=.include
3085 <     am__quote="\""
3086 <     _am_result=BSD
3068 > # BSD make does it like this.
3069 > echo '.include "confinc.mk" # ignored' > confmf.BSD
3070 > # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3071 > echo 'include confinc.mk # ignored' > confmf.GNU
3072 > _am_result=no
3073 > for s in GNU BSD; do
3074 >  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3075 >   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3076 >   ac_status=$?
3077 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 >   (exit $ac_status); }
3079 >  case $?:`cat confinc.out 2>/dev/null` in #(
3080 >  '0:this is the am__doit target') :
3081 >    case $s in #(
3082 >  BSD) :
3083 >    am__include='.include' am__quote='"' ;; #(
3084 >  *) :
3085 >    am__include='include' am__quote='' ;;
3086 > esac ;; #(
3087 >  *) :
3088       ;;
3089 <   esac
3090 < fi
3091 <
3092 <
3093 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3094 < $as_echo "$_am_result" >&6; }
3095 < rm -f confinc confmf
3089 > esac
3090 >  if test "$am__include" != "#"; then
3091 >    _am_result="yes ($s style)"
3092 >    break
3093 >  fi
3094 > done
3095 > rm -f confinc.* confmf.*
3096 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3097 > $as_echo "${_am_result}" >&6; }
3098  
3099   # Check whether --enable-dependency-tracking was given.
3100   if test "${enable_dependency_tracking+set}" = set; then :
# Line 3899 | Line 3904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
3904   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906  
3907 + ac_ext=c
3908 + ac_cpp='$CPP $CPPFLAGS'
3909 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3913 + $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3914 + if ${am_cv_prog_cc_c_o+:} false; then :
3915 +  $as_echo_n "(cached) " >&6
3916 + else
3917 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 + /* end confdefs.h.  */
3919 +
3920 + int
3921 + main ()
3922 + {
3923 +
3924 +  ;
3925 +  return 0;
3926 + }
3927 + _ACEOF
3928 +  # Make sure it works both with $CC and with simple cc.
3929 +  # Following AC_PROG_CC_C_O, we do the test twice because some
3930 +  # compilers refuse to overwrite an existing .o file with -o,
3931 +  # though they will create one.
3932 +  am_cv_prog_cc_c_o=yes
3933 +  for am_i in 1 2; do
3934 +    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3935 +   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3936 +   ac_status=$?
3937 +   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 +   (exit $ac_status); } \
3939 +         && test -f conftest2.$ac_objext; then
3940 +      : OK
3941 +    else
3942 +      am_cv_prog_cc_c_o=no
3943 +      break
3944 +    fi
3945 +  done
3946 +  rm -f core conftest*
3947 +  unset am_i
3948 + fi
3949 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3950 + $as_echo "$am_cv_prog_cc_c_o" >&6; }
3951 + if test "$am_cv_prog_cc_c_o" != yes; then
3952 +   # Losing compiler, so override with the script.
3953 +   # FIXME: It is wrong to rewrite CC.
3954 +   # But if we don't then we get into trouble of one sort or another.
3955 +   # A longer-term fix would be to have automake use am__CC in this case,
3956 +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3957 +   CC="$am_aux_dir/compile $CC"
3958 + fi
3959 + ac_ext=c
3960 + ac_cpp='$CPP $CPPFLAGS'
3961 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 +
3965 +
3966   depcc="$CC"   am_compiler_list=
3967  
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
# Line 4431 | Line 4495 | esac
4495  
4496  
4497  
4498 < macro_version='2.4.2'
4499 < macro_revision='1.3337'
4498 > macro_version='2.4.6'
4499 > macro_revision='2.4.6'
4500  
4501  
4502  
# Line 4446 | Line 4510 | macro_revision='1.3337'
4510  
4511  
4512  
4513 < ltmain="$ac_aux_dir/ltmain.sh"
4513 > ltmain=$ac_aux_dir/ltmain.sh
4514  
4515   # Make sure we can run config.sub.
4516   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4566 | Line 4630 | func_echo_all ()
4630      $ECHO ""
4631   }
4632  
4633 < case "$ECHO" in
4633 > case $ECHO in
4634    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4635   $as_echo "printf" >&6; } ;;
4636    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 4889 | Line 4953 | test -z "$GREP" && GREP=grep
4953  
4954   # Check whether --with-gnu-ld was given.
4955   if test "${with_gnu_ld+set}" = set; then :
4956 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4956 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4957   else
4958    with_gnu_ld=no
4959   fi
4960  
4961   ac_prog=ld
4962 < if test "$GCC" = yes; then
4962 > if test yes = "$GCC"; then
4963    # Check if gcc -print-prog-name=ld gives a path.
4964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4965   $as_echo_n "checking for ld used by $CC... " >&6; }
4966    case $host in
4967    *-*-mingw*)
4968 <    # gcc leaves a trailing carriage return which upsets mingw
4968 >    # gcc leaves a trailing carriage return, which upsets mingw
4969      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4970    *)
4971      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 4915 | Line 4979 | $as_echo_n "checking for ld used by $CC.
4979        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4980          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4981        done
4982 <      test -z "$LD" && LD="$ac_prog"
4982 >      test -z "$LD" && LD=$ac_prog
4983        ;;
4984    "")
4985      # If it fails, then pretend we aren't using GCC.
# Line 4926 | Line 4990 | $as_echo_n "checking for ld used by $CC.
4990      with_gnu_ld=unknown
4991      ;;
4992    esac
4993 < elif test "$with_gnu_ld" = yes; then
4993 > elif test yes = "$with_gnu_ld"; then
4994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4995   $as_echo_n "checking for GNU ld... " >&6; }
4996   else
# Line 4937 | Line 5001 | if ${lt_cv_path_LD+:} false; then :
5001    $as_echo_n "(cached) " >&6
5002   else
5003    if test -z "$LD"; then
5004 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5004 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5005    for ac_dir in $PATH; do
5006 <    IFS="$lt_save_ifs"
5006 >    IFS=$lt_save_ifs
5007      test -z "$ac_dir" && ac_dir=.
5008      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5009 <      lt_cv_path_LD="$ac_dir/$ac_prog"
5009 >      lt_cv_path_LD=$ac_dir/$ac_prog
5010        # Check to see if the program is GNU ld.  I'd rather use --version,
5011        # but apparently some variants of GNU ld only accept -v.
5012        # Break only if it was the GNU/non-GNU ld that we prefer.
5013        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5014        *GNU* | *'with BFD'*)
5015 <        test "$with_gnu_ld" != no && break
5015 >        test no != "$with_gnu_ld" && break
5016          ;;
5017        *)
5018 <        test "$with_gnu_ld" != yes && break
5018 >        test yes != "$with_gnu_ld" && break
5019          ;;
5020        esac
5021      fi
5022    done
5023 <  IFS="$lt_save_ifs"
5023 >  IFS=$lt_save_ifs
5024   else
5025 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5025 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5026   fi
5027   fi
5028  
5029 < LD="$lt_cv_path_LD"
5029 > LD=$lt_cv_path_LD
5030   if test -n "$LD"; then
5031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5032   $as_echo "$LD" >&6; }
# Line 5005 | Line 5069 | if ${lt_cv_path_NM+:} false; then :
5069   else
5070    if test -n "$NM"; then
5071    # Let the user override the test.
5072 <  lt_cv_path_NM="$NM"
5072 >  lt_cv_path_NM=$NM
5073   else
5074 <  lt_nm_to_check="${ac_tool_prefix}nm"
5074 >  lt_nm_to_check=${ac_tool_prefix}nm
5075    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5076      lt_nm_to_check="$lt_nm_to_check nm"
5077    fi
5078    for lt_tmp_nm in $lt_nm_to_check; do
5079 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5079 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5080      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5081 <      IFS="$lt_save_ifs"
5081 >      IFS=$lt_save_ifs
5082        test -z "$ac_dir" && ac_dir=.
5083 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5084 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5083 >      tmp_nm=$ac_dir/$lt_tmp_nm
5084 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5085          # Check to see if the nm accepts a BSD-compat flag.
5086 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5086 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5087          #   nm: unknown option "B" ignored
5088          # Tru64's nm complains that /dev/null is an invalid object file
5089 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5090 <        */dev/null* | *'Invalid file or object type'*)
5089 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5090 >        case $build_os in
5091 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5092 >        *) lt_bad_file=/dev/null ;;
5093 >        esac
5094 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5095 >        *$lt_bad_file* | *'Invalid file or object type'*)
5096            lt_cv_path_NM="$tmp_nm -B"
5097 <          break
5097 >          break 2
5098            ;;
5099          *)
5100            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5101            */dev/null*)
5102              lt_cv_path_NM="$tmp_nm -p"
5103 <            break
5103 >            break 2
5104              ;;
5105            *)
5106              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 5042 | Line 5111 | else
5111          esac
5112        fi
5113      done
5114 <    IFS="$lt_save_ifs"
5114 >    IFS=$lt_save_ifs
5115    done
5116    : ${lt_cv_path_NM=no}
5117   fi
5118   fi
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5120   $as_echo "$lt_cv_path_NM" >&6; }
5121 < if test "$lt_cv_path_NM" != "no"; then
5122 <  NM="$lt_cv_path_NM"
5121 > if test no != "$lt_cv_path_NM"; then
5122 >  NM=$lt_cv_path_NM
5123   else
5124    # Didn't find any BSD compatible name lister, look for dumpbin.
5125    if test -n "$DUMPBIN"; then :
# Line 5156 | Line 5225 | esac
5225    fi
5226   fi
5227  
5228 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5228 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5229      *COFF*)
5230 <      DUMPBIN="$DUMPBIN -symbols"
5230 >      DUMPBIN="$DUMPBIN -symbols -headers"
5231        ;;
5232      *)
5233        DUMPBIN=:
# Line 5166 | Line 5235 | fi
5235      esac
5236    fi
5237  
5238 <  if test "$DUMPBIN" != ":"; then
5239 <    NM="$DUMPBIN"
5238 >  if test : != "$DUMPBIN"; then
5239 >    NM=$DUMPBIN
5240    fi
5241   fi
5242   test -z "$NM" && NM=nm
# Line 5218 | Line 5287 | if ${lt_cv_sys_max_cmd_len+:} false; the
5287    $as_echo_n "(cached) " >&6
5288   else
5289      i=0
5290 <  teststring="ABCD"
5290 >  teststring=ABCD
5291  
5292    case $build_os in
5293    msdosdjgpp*)
# Line 5258 | Line 5327 | else
5327      lt_cv_sys_max_cmd_len=8192;
5328      ;;
5329  
5330 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5330 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5331      # This has been around since 386BSD, at least.  Likely further.
5332      if test -x /sbin/sysctl; then
5333        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5308 | Line 5377 | else
5377      ;;
5378    *)
5379      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5380 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5380 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5381 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5382        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5383        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5384      else
5385        # Make teststring a little bigger before we do anything with it.
5386        # a 1K string should be a reasonable start.
5387 <      for i in 1 2 3 4 5 6 7 8 ; do
5387 >      for i in 1 2 3 4 5 6 7 8; do
5388          teststring=$teststring$teststring
5389        done
5390        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5391        # If test is not a shell built-in, we'll probably end up computing a
5392        # maximum length that is only half of the actual maximum length, but
5393        # we can't tell.
5394 <      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5394 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5395                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5396 <              test $i != 17 # 1/2 MB should be enough
5396 >              test 17 != "$i" # 1/2 MB should be enough
5397        do
5398          i=`expr $i + 1`
5399          teststring=$teststring$teststring
# Line 5341 | Line 5411 | else
5411  
5412   fi
5413  
5414 < if test -n $lt_cv_sys_max_cmd_len ; then
5414 > if test -n "$lt_cv_sys_max_cmd_len"; then
5415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5416   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5417   else
# Line 5359 | Line 5429 | max_cmd_len=$lt_cv_sys_max_cmd_len
5429   : ${MV="mv -f"}
5430   : ${RM="rm -f"}
5431  
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5363 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5364 # Try some XSI features
5365 xsi_shell=no
5366 ( _lt_dummy="a/b/c"
5367  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5368      = c,a/b,b/c, \
5369    && eval 'test $(( 1 + 1 )) -eq 2 \
5370    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5371  && xsi_shell=yes
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5373 $as_echo "$xsi_shell" >&6; }
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5377 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5378 lt_shell_append=no
5379 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5380    >/dev/null 2>&1 \
5381  && lt_shell_append=yes
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5383 $as_echo "$lt_shell_append" >&6; }
5384
5385
5432   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5433    lt_unset=unset
5434   else
# Line 5505 | Line 5551 | esac
5551   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5552   case $host_os in
5553    cygwin* | mingw* | pw32* | cegcc*)
5554 <    if test "$GCC" != yes; then
5554 >    if test yes != "$GCC"; then
5555        reload_cmds=false
5556      fi
5557      ;;
5558    darwin*)
5559 <    if test "$GCC" = yes; then
5560 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5559 >    if test yes = "$GCC"; then
5560 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5561      else
5562        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5563      fi
# Line 5639 | Line 5685 | lt_cv_deplibs_check_method='unknown'
5685   # Need to set the preceding variable on all platforms that support
5686   # interlibrary dependencies.
5687   # 'none' -- dependencies not supported.
5688 < # `unknown' -- same as none, but documents that we really don't know.
5688 > # 'unknown' -- same as none, but documents that we really don't know.
5689   # 'pass_all' -- all dependencies passed with no checks.
5690   # 'test_compile' -- check by making test program.
5691   # 'file_magic [[regex]]' -- check by looking for files in library path
5692 < # which responds to the $file_magic_cmd with a given extended regex.
5693 < # If you have `file' or equivalent on your system and you're not sure
5694 < # whether `pass_all' will *always* work, you probably want this one.
5692 > # that responds to the $file_magic_cmd with a given extended regex.
5693 > # If you have 'file' or equivalent on your system and you're not sure
5694 > # whether 'pass_all' will *always* work, you probably want this one.
5695  
5696   case $host_os in
5697   aix[4-9]*)
# Line 5672 | Line 5718 | mingw* | pw32*)
5718    # Base MSYS/MinGW do not provide the 'file' command needed by
5719    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5720    # unless we find 'file', for example because we are cross-compiling.
5721 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5676 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5721 >  if ( file / ) >/dev/null 2>&1; then
5722      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5723      lt_cv_file_magic_cmd='func_win32_libid'
5724    else
# Line 5709 | Line 5754 | freebsd* | dragonfly*)
5754    fi
5755    ;;
5756  
5712 gnu*)
5713  lt_cv_deplibs_check_method=pass_all
5714  ;;
5715
5757   haiku*)
5758    lt_cv_deplibs_check_method=pass_all
5759    ;;
# Line 5751 | Line 5792 | irix5* | irix6* | nonstopux*)
5792    ;;
5793  
5794   # This must be glibc/ELF.
5795 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5795 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5796    lt_cv_deplibs_check_method=pass_all
5797    ;;
5798  
5799 < netbsd*)
5799 > netbsd* | netbsdelf*-gnu)
5800    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5801      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5802    else
# Line 5773 | Line 5814 | newos6*)
5814    lt_cv_deplibs_check_method=pass_all
5815    ;;
5816  
5817 < openbsd*)
5818 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5817 > openbsd* | bitrig*)
5818 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5819      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5820    else
5821      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5827 | Line 5868 | sysv4 | sysv4.3*)
5868   tpf*)
5869    lt_cv_deplibs_check_method=pass_all
5870    ;;
5871 + os2*)
5872 +  lt_cv_deplibs_check_method=pass_all
5873 +  ;;
5874   esac
5875  
5876   fi
# Line 5984 | Line 6028 | else
6028  
6029   case $host_os in
6030   cygwin* | mingw* | pw32* | cegcc*)
6031 <  # two different shell functions defined in ltmain.sh
6032 <  # decide which to use based on capabilities of $DLLTOOL
6031 >  # two different shell functions defined in ltmain.sh;
6032 >  # decide which one to use based on capabilities of $DLLTOOL
6033    case `$DLLTOOL --help 2>&1` in
6034    *--identify-strict*)
6035      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 5997 | Line 6041 | cygwin* | mingw* | pw32* | cegcc*)
6041    ;;
6042   *)
6043    # fallback: assume linklib IS sharedlib
6044 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6044 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6045    ;;
6046   esac
6047  
# Line 6151 | Line 6195 | if ac_fn_c_try_compile "$LINENO"; then :
6195    ac_status=$?
6196    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197    test $ac_status = 0; }
6198 <      if test "$ac_status" -eq 0; then
6198 >      if test 0 -eq "$ac_status"; then
6199          # Ensure the archiver fails upon bogus file names.
6200          rm -f conftest.$ac_objext libconftest.a
6201          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6159 | Line 6203 | if ac_fn_c_try_compile "$LINENO"; then :
6203    ac_status=$?
6204    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205    test $ac_status = 0; }
6206 <        if test "$ac_status" -ne 0; then
6206 >        if test 0 -ne "$ac_status"; then
6207            lt_cv_ar_at_file=@
6208          fi
6209        fi
# Line 6172 | Line 6216 | fi
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6217   $as_echo "$lt_cv_ar_at_file" >&6; }
6218  
6219 < if test "x$lt_cv_ar_at_file" = xno; then
6219 > if test no = "$lt_cv_ar_at_file"; then
6220    archiver_list_spec=
6221   else
6222    archiver_list_spec=$lt_cv_ar_at_file
# Line 6389 | Line 6433 | old_postuninstall_cmds=
6433  
6434   if test -n "$RANLIB"; then
6435    case $host_os in
6436 <  openbsd*)
6436 >  bitrig* | openbsd*)
6437      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6438      ;;
6439    *)
# Line 6479 | Line 6523 | cygwin* | mingw* | pw32* | cegcc*)
6523    symcode='[ABCDGISTW]'
6524    ;;
6525   hpux*)
6526 <  if test "$host_cpu" = ia64; then
6526 >  if test ia64 = "$host_cpu"; then
6527      symcode='[ABCDEGRST]'
6528    fi
6529    ;;
# Line 6512 | Line 6556 | case `$NM -V 2>&1` in
6556    symcode='[ABCDGIRSTW]' ;;
6557   esac
6558  
6559 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6560 +  # Gets list of data symbols to import.
6561 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6562 +  # Adjust the below global symbol transforms to fixup imported variables.
6563 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6564 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6565 +  lt_c_name_lib_hook="\
6566 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6567 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6568 + else
6569 +  # Disable hooks by default.
6570 +  lt_cv_sys_global_symbol_to_import=
6571 +  lt_cdecl_hook=
6572 +  lt_c_name_hook=
6573 +  lt_c_name_lib_hook=
6574 + fi
6575 +
6576   # Transform an extracted symbol line into a proper C declaration.
6577   # Some systems (esp. on ia64) link data and code symbols differently,
6578   # so use this general approach.
6579 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6579 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6580 > $lt_cdecl_hook\
6581 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6582 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6583  
6584   # Transform an extracted symbol line into symbol name and symbol address
6585 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6586 < 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'"
6585 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6586 > $lt_c_name_hook\
6587 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6588 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6589 >
6590 > # Transform an extracted symbol line into symbol name with lib prefix and
6591 > # symbol address.
6592 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6593 > $lt_c_name_lib_hook\
6594 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6595 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6596 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6597  
6598   # Handle CRLF in mingw tool chain
6599   opt_cr=
# Line 6537 | Line 6611 | for ac_symprfx in "" "_"; do
6611  
6612    # Write the raw and C identifiers.
6613    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6614 <    # Fake it for dumpbin and say T for any non-static function
6615 <    # and D for any global variable.
6614 >    # Fake it for dumpbin and say T for any non-static function,
6615 >    # D for any global variable and I for any imported variable.
6616      # Also find C++ and __fastcall symbols from MSVC++,
6617      # which start with @ or ?.
6618      lt_cv_sys_global_symbol_pipe="$AWK '"\
6619   "     {last_section=section; section=\$ 3};"\
6620   "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6621   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6622 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6623 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6624 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6625   "     \$ 0!~/External *\|/{next};"\
6626   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6627   "     {if(hide[section]) next};"\
6628 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6629 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6630 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6631 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6628 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6629 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6630 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6631 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6632   "     ' prfx=^$ac_symprfx"
6633    else
6634      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6582 | Line 6659 | _LT_EOF
6659    test $ac_status = 0; }; then
6660      # Now try to grab the symbols.
6661      nlist=conftest.nm
6662 <    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6663 <  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6587 <  ac_status=$?
6588 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589 <  test $ac_status = 0; } && test -s "$nlist"; then
6662 >    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6663 >    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6664        # Try sorting and uniquifying the output.
6665        if sort "$nlist" | uniq > "$nlist"T; then
6666          mv -f "$nlist"T "$nlist"
# Line 6599 | Line 6673 | _LT_EOF
6673          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6674            cat <<_LT_EOF > conftest.$ac_ext
6675   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6676 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6677 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6676 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6677 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6678     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6679   # define LT_DLSYM_CONST
6680 < #elif defined(__osf__)
6680 > #elif defined __osf__
6681   /* This system does not cope well with relocations in const data.  */
6682   # define LT_DLSYM_CONST
6683   #else
# Line 6629 | Line 6703 | lt__PROGRAM__LTX_preloaded_symbols[] =
6703   {
6704    { "@PROGRAM@", (void *) 0 },
6705   _LT_EOF
6706 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6706 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6707            cat <<\_LT_EOF >> conftest.$ac_ext
6708    {0, (void *) 0}
6709   };
# Line 6649 | Line 6723 | _LT_EOF
6723            mv conftest.$ac_objext conftstm.$ac_objext
6724            lt_globsym_save_LIBS=$LIBS
6725            lt_globsym_save_CFLAGS=$CFLAGS
6726 <          LIBS="conftstm.$ac_objext"
6726 >          LIBS=conftstm.$ac_objext
6727            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6728            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6729    (eval $ac_link) 2>&5
6730    ac_status=$?
6731    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6732 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6733              pipe_works=yes
6734            fi
6735            LIBS=$lt_globsym_save_LIBS
# Line 6676 | Line 6750 | _LT_EOF
6750    rm -rf conftest* conftst*
6751  
6752    # Do not use the global_symbol_pipe unless it works.
6753 <  if test "$pipe_works" = yes; then
6753 >  if test yes = "$pipe_works"; then
6754      break
6755    else
6756      lt_cv_sys_global_symbol_pipe=
# Line 6729 | Line 6803 | fi
6803  
6804  
6805  
6806 +
6807 +
6808 +
6809 +
6810 +
6811 +
6812 +
6813 +
6814 +
6815 +
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6817   $as_echo_n "checking for sysroot... " >&6; }
6818  
# Line 6741 | Line 6825 | fi
6825  
6826  
6827   lt_sysroot=
6828 < case ${with_sysroot} in #(
6828 > case $with_sysroot in #(
6829   yes)
6830 <   if test "$GCC" = yes; then
6830 >   if test yes = "$GCC"; then
6831       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6832     fi
6833     ;; #(
# Line 6753 | Line 6837 | case ${with_sysroot} in #(
6837   no|'')
6838     ;; #(
6839   *)
6840 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6841 < $as_echo "${with_sysroot}" >&6; }
6840 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6841 > $as_echo "$with_sysroot" >&6; }
6842     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6843     ;;
6844   esac
# Line 6766 | Line 6850 | $as_echo "${lt_sysroot:-no}" >&6; }
6850  
6851  
6852  
6853 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6854 + $as_echo_n "checking for a working dd... " >&6; }
6855 + if ${ac_cv_path_lt_DD+:} false; then :
6856 +  $as_echo_n "(cached) " >&6
6857 + else
6858 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6859 + cat conftest.i conftest.i >conftest2.i
6860 + : ${lt_DD:=$DD}
6861 + if test -z "$lt_DD"; then
6862 +  ac_path_lt_DD_found=false
6863 +  # Loop through the user's path and test for each of PROGNAME-LIST
6864 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 + for as_dir in $PATH
6866 + do
6867 +  IFS=$as_save_IFS
6868 +  test -z "$as_dir" && as_dir=.
6869 +    for ac_prog in dd; do
6870 +    for ac_exec_ext in '' $ac_executable_extensions; do
6871 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6872 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6873 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6874 +  cmp -s conftest.i conftest.out \
6875 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6876 + fi
6877 +      $ac_path_lt_DD_found && break 3
6878 +    done
6879 +  done
6880 +  done
6881 + IFS=$as_save_IFS
6882 +  if test -z "$ac_cv_path_lt_DD"; then
6883 +    :
6884 +  fi
6885 + else
6886 +  ac_cv_path_lt_DD=$lt_DD
6887 + fi
6888 +
6889 + rm -f conftest.i conftest2.i conftest.out
6890 + fi
6891 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6892 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6893 +
6894 +
6895 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6896 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6897 + if ${lt_cv_truncate_bin+:} false; then :
6898 +  $as_echo_n "(cached) " >&6
6899 + else
6900 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6901 + cat conftest.i conftest.i >conftest2.i
6902 + lt_cv_truncate_bin=
6903 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6904 +  cmp -s conftest.i conftest.out \
6905 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6906 + fi
6907 + rm -f conftest.i conftest2.i conftest.out
6908 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6909 + fi
6910 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6911 + $as_echo "$lt_cv_truncate_bin" >&6; }
6912 +
6913 +
6914 +
6915 +
6916 +
6917 +
6918 +
6919 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6920 + func_cc_basename ()
6921 + {
6922 +    for cc_temp in $*""; do
6923 +      case $cc_temp in
6924 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6925 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6926 +        \-*) ;;
6927 +        *) break;;
6928 +      esac
6929 +    done
6930 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6931 + }
6932 +
6933   # Check whether --enable-libtool-lock was given.
6934   if test "${enable_libtool_lock+set}" = set; then :
6935    enableval=$enable_libtool_lock;
6936   fi
6937  
6938 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6938 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6939  
6940   # Some flags need to be propagated to the compiler or linker for good
6941   # libtool support.
6942   case $host in
6943   ia64-*-hpux*)
6944 <  # Find out which ABI we are using.
6944 >  # Find out what ABI is being produced by ac_compile, and set mode
6945 >  # options accordingly.
6946    echo 'int i;' > conftest.$ac_ext
6947    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6948    (eval $ac_compile) 2>&5
# Line 6786 | Line 6951 | ia64-*-hpux*)
6951    test $ac_status = 0; }; then
6952      case `/usr/bin/file conftest.$ac_objext` in
6953        *ELF-32*)
6954 <        HPUX_IA64_MODE="32"
6954 >        HPUX_IA64_MODE=32
6955          ;;
6956        *ELF-64*)
6957 <        HPUX_IA64_MODE="64"
6957 >        HPUX_IA64_MODE=64
6958          ;;
6959      esac
6960    fi
6961    rm -rf conftest*
6962    ;;
6963   *-*-irix6*)
6964 <  # Find out which ABI we are using.
6964 >  # Find out what ABI is being produced by ac_compile, and set linker
6965 >  # options accordingly.
6966    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6967    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6968    (eval $ac_compile) 2>&5
6969    ac_status=$?
6970    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971    test $ac_status = 0; }; then
6972 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6972 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6973        case `/usr/bin/file conftest.$ac_objext` in
6974          *32-bit*)
6975            LD="${LD-ld} -melf32bsmip"
# Line 6832 | Line 6998 | ia64-*-hpux*)
6998    rm -rf conftest*
6999    ;;
7000  
7001 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7001 > mips64*-*linux*)
7002 >  # Find out what ABI is being produced by ac_compile, and set linker
7003 >  # options accordingly.
7004 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7005 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7006 >  (eval $ac_compile) 2>&5
7007 >  ac_status=$?
7008 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009 >  test $ac_status = 0; }; then
7010 >    emul=elf
7011 >    case `/usr/bin/file conftest.$ac_objext` in
7012 >      *32-bit*)
7013 >        emul="${emul}32"
7014 >        ;;
7015 >      *64-bit*)
7016 >        emul="${emul}64"
7017 >        ;;
7018 >    esac
7019 >    case `/usr/bin/file conftest.$ac_objext` in
7020 >      *MSB*)
7021 >        emul="${emul}btsmip"
7022 >        ;;
7023 >      *LSB*)
7024 >        emul="${emul}ltsmip"
7025 >        ;;
7026 >    esac
7027 >    case `/usr/bin/file conftest.$ac_objext` in
7028 >      *N32*)
7029 >        emul="${emul}n32"
7030 >        ;;
7031 >    esac
7032 >    LD="${LD-ld} -m $emul"
7033 >  fi
7034 >  rm -rf conftest*
7035 >  ;;
7036 >
7037 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7038   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7039 <  # Find out which ABI we are using.
7039 >  # Find out what ABI is being produced by ac_compile, and set linker
7040 >  # options accordingly.  Note that the listed cases only cover the
7041 >  # situations where additional linker options are needed (such as when
7042 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7043 >  # vice versa); the common cases where no linker options are needed do
7044 >  # not appear in the list.
7045    echo 'int i;' > conftest.$ac_ext
7046    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7047    (eval $ac_compile) 2>&5
# Line 6848 | Line 7055 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7055              LD="${LD-ld} -m elf_i386_fbsd"
7056              ;;
7057            x86_64-*linux*)
7058 <            LD="${LD-ld} -m elf_i386"
7058 >            case `/usr/bin/file conftest.o` in
7059 >              *x86-64*)
7060 >                LD="${LD-ld} -m elf32_x86_64"
7061 >                ;;
7062 >              *)
7063 >                LD="${LD-ld} -m elf_i386"
7064 >                ;;
7065 >            esac
7066 >            ;;
7067 >          powerpc64le-*linux*)
7068 >            LD="${LD-ld} -m elf32lppclinux"
7069              ;;
7070 <          ppc64-*linux*|powerpc64-*linux*)
7070 >          powerpc64-*linux*)
7071              LD="${LD-ld} -m elf32ppclinux"
7072              ;;
7073            s390x-*linux*)
# Line 6869 | Line 7086 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7086            x86_64-*linux*)
7087              LD="${LD-ld} -m elf_x86_64"
7088              ;;
7089 <          ppc*-*linux*|powerpc*-*linux*)
7089 >          powerpcle-*linux*)
7090 >            LD="${LD-ld} -m elf64lppc"
7091 >            ;;
7092 >          powerpc-*linux*)
7093              LD="${LD-ld} -m elf64ppc"
7094              ;;
7095            s390*-*linux*|s390*-*tpf*)
# Line 6887 | Line 7107 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7107  
7108   *-*-sco3.2v5*)
7109    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7110 <  SAVE_CFLAGS="$CFLAGS"
7110 >  SAVE_CFLAGS=$CFLAGS
7111    CFLAGS="$CFLAGS -belf"
7112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7113   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 6927 | Line 7147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147   fi
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7149   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7150 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7150 >  if test yes != "$lt_cv_cc_needs_belf"; then
7151      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7152 <    CFLAGS="$SAVE_CFLAGS"
7152 >    CFLAGS=$SAVE_CFLAGS
7153    fi
7154    ;;
7155   *-*solaris*)
7156 <  # Find out which ABI we are using.
7156 >  # Find out what ABI is being produced by ac_compile, and set linker
7157 >  # options accordingly.
7158    echo 'int i;' > conftest.$ac_ext
7159    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160    (eval $ac_compile) 2>&5
# Line 6945 | Line 7166 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7166        case $lt_cv_prog_gnu_ld in
7167        yes*)
7168          case $host in
7169 <        i?86-*-solaris*)
7169 >        i?86-*-solaris*|x86_64-*-solaris*)
7170            LD="${LD-ld} -m elf_x86_64"
7171            ;;
7172          sparc*-*-solaris*)
# Line 6954 | Line 7175 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7175          esac
7176          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7177          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7178 <          LD="${LD-ld}_sol2"
7178 >          LD=${LD-ld}_sol2
7179          fi
7180          ;;
7181        *)
# Line 6970 | Line 7191 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7191    ;;
7192   esac
7193  
7194 < need_locks="$enable_libtool_lock"
7194 > need_locks=$enable_libtool_lock
7195  
7196   if test -n "$ac_tool_prefix"; then
7197    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 7081 | Line 7302 | else
7302   fi
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7304   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7305 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7305 > if test yes != "$lt_cv_path_mainfest_tool"; then
7306    MANIFEST_TOOL=:
7307   fi
7308  
# Line 7584 | Line 7805 | if ${lt_cv_apple_cc_single_mod+:} false;
7805    $as_echo_n "(cached) " >&6
7806   else
7807    lt_cv_apple_cc_single_mod=no
7808 <      if test -z "${LT_MULTI_MODULE}"; then
7808 >      if test -z "$LT_MULTI_MODULE"; then
7809          # By default we will add the -single_module flag. You can override
7810          # by either setting the environment variable LT_MULTI_MODULE
7811          # non-empty at configure time, or by adding -multi_module to the
# Line 7602 | Line 7823 | else
7823            cat conftest.err >&5
7824          # Otherwise, if the output was created with a 0 exit code from
7825          # the compiler, it worked.
7826 <        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7826 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7827            lt_cv_apple_cc_single_mod=yes
7828          else
7829            cat conftest.err >&5
# Line 7641 | Line 7862 | else
7862   fi
7863   rm -f core conftest.err conftest.$ac_objext \
7864      conftest$ac_exeext conftest.$ac_ext
7865 <        LDFLAGS="$save_LDFLAGS"
7865 >        LDFLAGS=$save_LDFLAGS
7866  
7867   fi
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
# Line 7670 | Line 7891 | _LT_EOF
7891        _lt_result=$?
7892        if test -s conftest.err && $GREP force_load conftest.err; then
7893          cat conftest.err >&5
7894 <      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7894 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7895          lt_cv_ld_force_load=yes
7896        else
7897          cat conftest.err >&5
# Line 7683 | Line 7904 | fi
7904   $as_echo "$lt_cv_ld_force_load" >&6; }
7905      case $host_os in
7906      rhapsody* | darwin1.[012])
7907 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7907 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7908      darwin1.*)
7909 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7909 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7910      darwin*) # darwin 5.x on
7911        # if running on 10.5 or later, the deployment target defaults
7912        # to the OS version, if on x86, and 10.4, the deployment
7913        # target defaults to 10.4. Don't you love it?
7914        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7915          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7916 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7917 <        10.[012]*)
7918 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7916 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7917 >        10.[012][,.]*)
7918 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7919          10.*)
7920 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7920 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7921        esac
7922      ;;
7923    esac
7924 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7924 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7925        _lt_dar_single_mod='$single_module'
7926      fi
7927 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7928 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7927 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7928 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7929      else
7930 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7930 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7931      fi
7932 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7932 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7933        _lt_dsymutil='~$DSYMUTIL $lib || :'
7934      else
7935        _lt_dsymutil=
# Line 7716 | Line 7937 | $as_echo "$lt_cv_ld_force_load" >&6; }
7937      ;;
7938    esac
7939  
7940 + # func_munge_path_list VARIABLE PATH
7941 + # -----------------------------------
7942 + # VARIABLE is name of variable containing _space_ separated list of
7943 + # directories to be munged by the contents of PATH, which is string
7944 + # having a format:
7945 + # "DIR[:DIR]:"
7946 + #       string "DIR[ DIR]" will be prepended to VARIABLE
7947 + # ":DIR[:DIR]"
7948 + #       string "DIR[ DIR]" will be appended to VARIABLE
7949 + # "DIRP[:DIRP]::[DIRA:]DIRA"
7950 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7951 + #       "DIRA[ DIRA]" will be appended to VARIABLE
7952 + # "DIR[:DIR]"
7953 + #       VARIABLE will be replaced by "DIR[ DIR]"
7954 + func_munge_path_list ()
7955 + {
7956 +    case x$2 in
7957 +    x)
7958 +        ;;
7959 +    *:)
7960 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7961 +        ;;
7962 +    x:*)
7963 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7964 +        ;;
7965 +    *::*)
7966 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7967 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7968 +        ;;
7969 +    *)
7970 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7971 +        ;;
7972 +    esac
7973 + }
7974 +
7975   ac_ext=c
7976   ac_cpp='$CPP $CPPFLAGS'
7977   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8011 | Line 8267 | if test "${enable_static+set}" = set; th
8267      *)
8268       enable_static=no
8269        # Look at the argument we got.  We use all the common list separators.
8270 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8270 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8271        for pkg in $enableval; do
8272 <        IFS="$lt_save_ifs"
8272 >        IFS=$lt_save_ifs
8273          if test "X$pkg" = "X$p"; then
8274            enable_static=yes
8275          fi
8276        done
8277 <      IFS="$lt_save_ifs"
8277 >      IFS=$lt_save_ifs
8278        ;;
8279      esac
8280   else
# Line 8047 | Line 8303 | if test "${enable_shared+set}" = set; th
8303      *)
8304        enable_shared=no
8305        # Look at the argument we got.  We use all the common list separators.
8306 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8306 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8307        for pkg in $enableval; do
8308 <        IFS="$lt_save_ifs"
8308 >        IFS=$lt_save_ifs
8309          if test "X$pkg" = "X$p"; then
8310            enable_shared=yes
8311          fi
8312        done
8313 <      IFS="$lt_save_ifs"
8313 >      IFS=$lt_save_ifs
8314        ;;
8315      esac
8316   else
# Line 8079 | Line 8335 | if test "${with_pic+set}" = set; then :
8335      *)
8336        pic_mode=default
8337        # Look at the argument we got.  We use all the common list separators.
8338 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8338 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8339        for lt_pkg in $withval; do
8340 <        IFS="$lt_save_ifs"
8340 >        IFS=$lt_save_ifs
8341          if test "X$lt_pkg" = "X$lt_p"; then
8342            pic_mode=yes
8343          fi
8344        done
8345 <      IFS="$lt_save_ifs"
8345 >      IFS=$lt_save_ifs
8346        ;;
8347      esac
8348   else
# Line 8094 | Line 8350 | else
8350   fi
8351  
8352  
8097 test -z "$pic_mode" && pic_mode=default
8098
8353  
8354  
8355  
# Line 8111 | Line 8365 | if test "${enable_fast_install+set}" = s
8365      *)
8366        enable_fast_install=no
8367        # Look at the argument we got.  We use all the common list separators.
8368 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8368 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8369        for pkg in $enableval; do
8370 <        IFS="$lt_save_ifs"
8370 >        IFS=$lt_save_ifs
8371          if test "X$pkg" = "X$p"; then
8372            enable_fast_install=yes
8373          fi
8374        done
8375 <      IFS="$lt_save_ifs"
8375 >      IFS=$lt_save_ifs
8376        ;;
8377      esac
8378   else
# Line 8132 | Line 8386 | fi
8386  
8387  
8388  
8389 +  shared_archive_member_spec=
8390 + case $host,$enable_shared in
8391 + power*-*-aix[5-9]*,yes)
8392 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8393 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8394 +
8395 + # Check whether --with-aix-soname was given.
8396 + if test "${with_aix_soname+set}" = set; then :
8397 +  withval=$with_aix_soname; case $withval in
8398 +    aix|svr4|both)
8399 +      ;;
8400 +    *)
8401 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8402 +      ;;
8403 +    esac
8404 +    lt_cv_with_aix_soname=$with_aix_soname
8405 + else
8406 +  if ${lt_cv_with_aix_soname+:} false; then :
8407 +  $as_echo_n "(cached) " >&6
8408 + else
8409 +  lt_cv_with_aix_soname=aix
8410 + fi
8411 +
8412 +    with_aix_soname=$lt_cv_with_aix_soname
8413 + fi
8414 +
8415 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8416 + $as_echo "$with_aix_soname" >&6; }
8417 +  if test aix != "$with_aix_soname"; then
8418 +    # For the AIX way of multilib, we name the shared archive member
8419 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8420 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8421 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8422 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8423 +    if test 64 = "${OBJECT_MODE-32}"; then
8424 +      shared_archive_member_spec=shr_64
8425 +    else
8426 +      shared_archive_member_spec=shr
8427 +    fi
8428 +  fi
8429 +  ;;
8430 + *)
8431 +  with_aix_soname=aix
8432 +  ;;
8433 + esac
8434 +
8435 +
8436 +
8437 +
8438 +
8439 +
8440 +
8441  
8442  
8443  
8444   # This can be used to rebuild libtool when needed
8445 < LIBTOOL_DEPS="$ltmain"
8445 > LIBTOOL_DEPS=$ltmain
8446  
8447   # Always use our own libtool.
8448   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8185 | Line 8491 | test -z "$LN_S" && LN_S="ln -s"
8491  
8492  
8493  
8494 < if test -n "${ZSH_VERSION+set}" ; then
8494 > if test -n "${ZSH_VERSION+set}"; then
8495     setopt NO_GLOB_SUBST
8496   fi
8497  
# Line 8224 | Line 8530 | aix3*)
8530    # AIX sometimes has problems with the GCC collect2 program.  For some
8531    # reason, if we set the COLLECT_NAMES environment variable, the problems
8532    # vanish in a puff of smoke.
8533 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8533 >  if test set != "${COLLECT_NAMES+set}"; then
8534      COLLECT_NAMES=
8535      export COLLECT_NAMES
8536    fi
# Line 8235 | Line 8541 | esac
8541   ofile=libtool
8542   can_build_shared=yes
8543  
8544 < # All known linkers require a `.a' archive for static linking (except MSVC,
8544 > # All known linkers require a '.a' archive for static linking (except MSVC,
8545   # which needs '.lib').
8546   libext=a
8547  
8548 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8548 > with_gnu_ld=$lt_cv_prog_gnu_ld
8549  
8550 < old_CC="$CC"
8551 < old_CFLAGS="$CFLAGS"
8550 > old_CC=$CC
8551 > old_CFLAGS=$CFLAGS
8552  
8553   # Set sane defaults for various variables
8554   test -z "$CC" && CC=cc
# Line 8251 | Line 8557 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8557   test -z "$LD" && LD=ld
8558   test -z "$ac_objext" && ac_objext=o
8559  
8560 < for cc_temp in $compiler""; do
8561 <  case $cc_temp in
8256 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8257 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8258 <    \-*) ;;
8259 <    *) break;;
8260 <  esac
8261 < done
8262 < cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8560 > func_cc_basename $compiler
8561 > cc_basename=$func_cc_basename_result
8562  
8563  
8564   # Only perform the check for file, if the check method requires it
# Line 8274 | Line 8573 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8573   else
8574    case $MAGIC_CMD in
8575   [\\/*] |  ?:[\\/]*)
8576 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8576 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8577    ;;
8578   *)
8579 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8580 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8579 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8580 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8581    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8582    for ac_dir in $ac_dummy; do
8583 <    IFS="$lt_save_ifs"
8583 >    IFS=$lt_save_ifs
8584      test -z "$ac_dir" && ac_dir=.
8585 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8586 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8585 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8586 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8587        if test -n "$file_magic_test_file"; then
8588          case $deplibs_check_method in
8589          "file_magic "*)
8590            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8591 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8592            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8593              $EGREP "$file_magic_regex" > /dev/null; then
8594              :
# Line 8312 | Line 8611 | _LT_EOF
8611        break
8612      fi
8613    done
8614 <  IFS="$lt_save_ifs"
8615 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8614 >  IFS=$lt_save_ifs
8615 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8616    ;;
8617   esac
8618   fi
8619  
8620 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8620 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8621   if test -n "$MAGIC_CMD"; then
8622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8623   $as_echo "$MAGIC_CMD" >&6; }
# Line 8340 | Line 8639 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8639   else
8640    case $MAGIC_CMD in
8641   [\\/*] |  ?:[\\/]*)
8642 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8642 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8643    ;;
8644   *)
8645 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8646 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8645 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8646 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8647    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648    for ac_dir in $ac_dummy; do
8649 <    IFS="$lt_save_ifs"
8649 >    IFS=$lt_save_ifs
8650      test -z "$ac_dir" && ac_dir=.
8651 <    if test -f $ac_dir/file; then
8652 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8651 >    if test -f "$ac_dir/file"; then
8652 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8653        if test -n "$file_magic_test_file"; then
8654          case $deplibs_check_method in
8655          "file_magic "*)
8656            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8657 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8658            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659              $EGREP "$file_magic_regex" > /dev/null; then
8660              :
# Line 8378 | Line 8677 | _LT_EOF
8677        break
8678      fi
8679    done
8680 <  IFS="$lt_save_ifs"
8681 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8680 >  IFS=$lt_save_ifs
8681 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8682    ;;
8683   esac
8684   fi
8685  
8686 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8686 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8687   if test -n "$MAGIC_CMD"; then
8688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8689   $as_echo "$MAGIC_CMD" >&6; }
# Line 8405 | Line 8704 | esac
8704  
8705   # Use C for the default configuration in the libtool script
8706  
8707 < lt_save_CC="$CC"
8707 > lt_save_CC=$CC
8708   ac_ext=c
8709   ac_cpp='$CPP $CPPFLAGS'
8710   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8459 | Line 8758 | _lt_linker_boilerplate=`cat conftest.err
8758   $RM -r conftest*
8759  
8760  
8761 + ## CAVEAT EMPTOR:
8762 + ## There is no encapsulation within the following macros, do not change
8763 + ## the running order or otherwise move them around unless you know exactly
8764 + ## what you are doing...
8765   if test -n "$compiler"; then
8766  
8767   lt_prog_compiler_no_builtin_flag=
8768  
8769 < if test "$GCC" = yes; then
8769 > if test yes = "$GCC"; then
8770    case $cc_basename in
8771    nvcc*)
8772      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8479 | Line 8782 | else
8782    lt_cv_prog_compiler_rtti_exceptions=no
8783     ac_outfile=conftest.$ac_objext
8784     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8785 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8786     # Insert the option either (1) after the last *FLAGS variable, or
8787     # (2) before a word containing "conftest.", or (3) at the end.
8788     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8509 | Line 8812 | fi
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8813   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8814  
8815 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8815 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8816      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8817   else
8818      :
# Line 8527 | Line 8830 | lt_prog_compiler_pic=
8830   lt_prog_compiler_static=
8831  
8832  
8833 <  if test "$GCC" = yes; then
8833 >  if test yes = "$GCC"; then
8834      lt_prog_compiler_wl='-Wl,'
8835      lt_prog_compiler_static='-static'
8836  
8837      case $host_os in
8838        aix*)
8839        # All AIX code is PIC.
8840 <      if test "$host_cpu" = ia64; then
8840 >      if test ia64 = "$host_cpu"; then
8841          # AIX 5 now supports IA64 processor
8842          lt_prog_compiler_static='-Bstatic'
8843        fi
8844 +      lt_prog_compiler_pic='-fPIC'
8845        ;;
8846  
8847      amigaos*)
# Line 8548 | Line 8852 | lt_prog_compiler_static=
8852          ;;
8853        m68k)
8854              # FIXME: we need at least 68020 code to build shared libraries, but
8855 <            # adding the `-m68020' flag to GCC prevents building anything better,
8856 <            # like `-m68040'.
8855 >            # adding the '-m68020' flag to GCC prevents building anything better,
8856 >            # like '-m68040'.
8857              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8858          ;;
8859        esac
# Line 8565 | Line 8869 | lt_prog_compiler_static=
8869        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8870        # (--disable-auto-import) libraries
8871        lt_prog_compiler_pic='-DDLL_EXPORT'
8872 +      case $host_os in
8873 +      os2*)
8874 +        lt_prog_compiler_static='$wl-static'
8875 +        ;;
8876 +      esac
8877        ;;
8878  
8879      darwin* | rhapsody*)
# Line 8635 | Line 8944 | lt_prog_compiler_static=
8944      case $host_os in
8945      aix*)
8946        lt_prog_compiler_wl='-Wl,'
8947 <      if test "$host_cpu" = ia64; then
8947 >      if test ia64 = "$host_cpu"; then
8948          # AIX 5 now supports IA64 processor
8949          lt_prog_compiler_static='-Bstatic'
8950        else
# Line 8643 | Line 8952 | lt_prog_compiler_static=
8952        fi
8953        ;;
8954  
8955 +    darwin* | rhapsody*)
8956 +      # PIC is the default on this platform
8957 +      # Common symbols not allowed in MH_DYLIB files
8958 +      lt_prog_compiler_pic='-fno-common'
8959 +      case $cc_basename in
8960 +      nagfor*)
8961 +        # NAG Fortran compiler
8962 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8963 +        lt_prog_compiler_pic='-PIC'
8964 +        lt_prog_compiler_static='-Bstatic'
8965 +        ;;
8966 +      esac
8967 +      ;;
8968 +
8969      mingw* | cygwin* | pw32* | os2* | cegcc*)
8970        # This hack is so that the source file can tell whether it is being
8971        # built for inclusion in a dll (and should export symbols for example).
8972        lt_prog_compiler_pic='-DDLL_EXPORT'
8973 +      case $host_os in
8974 +      os2*)
8975 +        lt_prog_compiler_static='$wl-static'
8976 +        ;;
8977 +      esac
8978        ;;
8979  
8980      hpux9* | hpux10* | hpux11*)
# Line 8662 | Line 8990 | lt_prog_compiler_static=
8990          ;;
8991        esac
8992        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8993 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8993 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8994        ;;
8995  
8996      irix5* | irix6* | nonstopux*)
# Line 8671 | Line 8999 | lt_prog_compiler_static=
8999        lt_prog_compiler_static='-non_shared'
9000        ;;
9001  
9002 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9002 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9003        case $cc_basename in
9004 <      # old Intel for x86_64 which still supported -KPIC.
9004 >      # old Intel for x86_64, which still supported -KPIC.
9005        ecc*)
9006          lt_prog_compiler_wl='-Wl,'
9007          lt_prog_compiler_pic='-KPIC'
9008          lt_prog_compiler_static='-static'
9009          ;;
9010 +      # flang / f18. f95 an alias for gfortran or flang on Debian
9011 +      flang* | f18* | f95*)
9012 +        lt_prog_compiler_wl='-Wl,'
9013 +        lt_prog_compiler_pic='-fPIC'
9014 +        lt_prog_compiler_static='-static'
9015 +        ;;
9016        # icc used to be incompatible with GCC.
9017        # ICC 10 doesn't accept -KPIC any more.
9018        icc* | ifort*)
# Line 8698 | Line 9032 | lt_prog_compiler_static=
9032          lt_prog_compiler_pic='-PIC'
9033          lt_prog_compiler_static='-Bstatic'
9034          ;;
9035 +      tcc*)
9036 +        # Fabrice Bellard et al's Tiny C Compiler
9037 +        lt_prog_compiler_wl='-Wl,'
9038 +        lt_prog_compiler_pic='-fPIC'
9039 +        lt_prog_compiler_static='-static'
9040 +        ;;
9041        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9042          # Portland Group compilers (*not* the Pentium gcc compiler,
9043          # which looks to be a dead project)
# Line 8795 | Line 9135 | lt_prog_compiler_static=
9135        ;;
9136  
9137      sysv4*MP*)
9138 <      if test -d /usr/nec ;then
9138 >      if test -d /usr/nec; then
9139          lt_prog_compiler_pic='-Kconform_pic'
9140          lt_prog_compiler_static='-Bstatic'
9141        fi
# Line 8824 | Line 9164 | lt_prog_compiler_static=
9164    fi
9165  
9166   case $host_os in
9167 <  # For platforms which do not support PIC, -DPIC is meaningless:
9167 >  # For platforms that do not support PIC, -DPIC is meaningless:
9168    *djgpp*)
9169      lt_prog_compiler_pic=
9170      ;;
# Line 8856 | Line 9196 | else
9196    lt_cv_prog_compiler_pic_works=no
9197     ac_outfile=conftest.$ac_objext
9198     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9199 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9199 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9200     # Insert the option either (1) after the last *FLAGS variable, or
9201     # (2) before a word containing "conftest.", or (3) at the end.
9202     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8886 | Line 9226 | fi
9226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9227   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9228  
9229 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9229 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9230      case $lt_prog_compiler_pic in
9231       "" | " "*) ;;
9232       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 8918 | Line 9258 | if ${lt_cv_prog_compiler_static_works+:}
9258    $as_echo_n "(cached) " >&6
9259   else
9260    lt_cv_prog_compiler_static_works=no
9261 <   save_LDFLAGS="$LDFLAGS"
9261 >   save_LDFLAGS=$LDFLAGS
9262     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9263     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9264     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 8937 | Line 9277 | else
9277       fi
9278     fi
9279     $RM -r conftest*
9280 <   LDFLAGS="$save_LDFLAGS"
9280 >   LDFLAGS=$save_LDFLAGS
9281  
9282   fi
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9284   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9285  
9286 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9286 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9287      :
9288   else
9289      lt_prog_compiler_static=
# Line 9063 | Line 9403 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9403  
9404  
9405  
9406 < hard_links="nottested"
9407 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9406 > hard_links=nottested
9407 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9408    # do not overwrite the value of need_locks provided by the user
9409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9410   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 9076 | Line 9416 | $as_echo_n "checking if we can lock with
9416    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9418   $as_echo "$hard_links" >&6; }
9419 <  if test "$hard_links" = no; then
9420 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9421 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9419 >  if test no = "$hard_links"; then
9420 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9421 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9422      need_locks=warn
9423    fi
9424   else
# Line 9121 | Line 9461 | $as_echo_n "checking whether the $compil
9461    # included in the symbol list
9462    include_expsyms=
9463    # exclude_expsyms can be an extended regexp of symbols to exclude
9464 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9465 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9466 <  # as well as any symbol that contains `d'.
9464 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9465 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9466 >  # as well as any symbol that contains 'd'.
9467    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9468    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9469    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9138 | Line 9478 | $as_echo_n "checking whether the $compil
9478      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9479      # When not using gcc, we currently assume that we are using
9480      # Microsoft Visual C++.
9481 <    if test "$GCC" != yes; then
9481 >    if test yes != "$GCC"; then
9482        with_gnu_ld=no
9483      fi
9484      ;;
# Line 9146 | Line 9486 | $as_echo_n "checking whether the $compil
9486      # we just hope/assume this is gcc and not c89 (= MSVC++)
9487      with_gnu_ld=yes
9488      ;;
9489 <  openbsd*)
9489 >  openbsd* | bitrig*)
9490      with_gnu_ld=no
9491      ;;
9492 +  linux* | k*bsd*-gnu | gnu*)
9493 +    link_all_deplibs=no
9494 +    ;;
9495    esac
9496  
9497    ld_shlibs=yes
# Line 9156 | Line 9499 | $as_echo_n "checking whether the $compil
9499    # On some targets, GNU ld is compatible enough with the native linker
9500    # that we're better off using the native interface for both.
9501    lt_use_gnu_ld_interface=no
9502 <  if test "$with_gnu_ld" = yes; then
9502 >  if test yes = "$with_gnu_ld"; then
9503      case $host_os in
9504        aix*)
9505          # The AIX port of GNU ld has always aspired to compatibility
# Line 9178 | Line 9521 | $as_echo_n "checking whether the $compil
9521      esac
9522    fi
9523  
9524 <  if test "$lt_use_gnu_ld_interface" = yes; then
9524 >  if test yes = "$lt_use_gnu_ld_interface"; then
9525      # If archive_cmds runs LD, not CC, wlarc should be empty
9526 <    wlarc='${wl}'
9526 >    wlarc='$wl'
9527  
9528      # Set some defaults for GNU ld with shared library support. These
9529      # are reset later if shared libraries are not supported. Putting them
9530      # here allows them to be overridden if necessary.
9531      runpath_var=LD_RUN_PATH
9532 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9533 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9532 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9533 >    export_dynamic_flag_spec='$wl--export-dynamic'
9534      # ancient GNU ld didn't support --whole-archive et. al.
9535      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9536 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9536 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9537      else
9538        whole_archive_flag_spec=
9539      fi
9540      supports_anon_versioning=no
9541 <    case `$LD -v 2>&1` in
9541 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9542        *GNU\ gold*) supports_anon_versioning=yes ;;
9543        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9544        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9208 | Line 9551 | $as_echo_n "checking whether the $compil
9551      case $host_os in
9552      aix[3-9]*)
9553        # On AIX/PPC, the GNU linker is very broken
9554 <      if test "$host_cpu" != ia64; then
9554 >      if test ia64 != "$host_cpu"; then
9555          ld_shlibs=no
9556          cat <<_LT_EOF 1>&2
9557  
# Line 9227 | Line 9570 | _LT_EOF
9570        case $host_cpu in
9571        powerpc)
9572              # see comment about AmigaOS4 .so support
9573 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9574              archive_expsym_cmds=''
9575          ;;
9576        m68k)
# Line 9243 | Line 9586 | _LT_EOF
9586          allow_undefined_flag=unsupported
9587          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9588          # support --undefined.  This deserves some investigation.  FIXME
9589 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9589 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9590        else
9591          ld_shlibs=no
9592        fi
# Line 9253 | Line 9596 | _LT_EOF
9596        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9597        # as there is no search path for DLLs.
9598        hardcode_libdir_flag_spec='-L$libdir'
9599 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9599 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9600        allow_undefined_flag=unsupported
9601        always_export_symbols=no
9602        enable_shared_with_static_runtimes=yes
# Line 9261 | Line 9604 | _LT_EOF
9604        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9605  
9606        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9607 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9608 <        # If the export-symbols file already is a .def file (1st line
9609 <        # is EXPORTS), use it as is; otherwise, prepend...
9610 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9611 <          cp $export_symbols $output_objdir/$soname.def;
9612 <        else
9613 <          echo EXPORTS > $output_objdir/$soname.def;
9614 <          cat $export_symbols >> $output_objdir/$soname.def;
9615 <        fi~
9616 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9607 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9608 >        # If the export-symbols file already is a .def file, use it as
9609 >        # is; otherwise, prepend EXPORTS...
9610 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9611 >          cp $export_symbols $output_objdir/$soname.def;
9612 >        else
9613 >          echo EXPORTS > $output_objdir/$soname.def;
9614 >          cat $export_symbols >> $output_objdir/$soname.def;
9615 >        fi~
9616 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9617        else
9618          ld_shlibs=no
9619        fi
9620        ;;
9621  
9622      haiku*)
9623 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9624        link_all_deplibs=yes
9625        ;;
9626  
9627 +    os2*)
9628 +      hardcode_libdir_flag_spec='-L$libdir'
9629 +      hardcode_minus_L=yes
9630 +      allow_undefined_flag=unsupported
9631 +      shrext_cmds=.dll
9632 +      archive_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 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9637 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9638 +        emximp -o $lib $output_objdir/$libname.def'
9639 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9640 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9641 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9642 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9643 +        prefix_cmds="$SED"~
9644 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9645 +          prefix_cmds="$prefix_cmds -e 1d";
9646 +        fi~
9647 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9648 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9649 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9650 +        emximp -o $lib $output_objdir/$libname.def'
9651 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9652 +      enable_shared_with_static_runtimes=yes
9653 +      ;;
9654 +
9655      interix[3-9]*)
9656        hardcode_direct=no
9657        hardcode_shlibpath_var=no
9658 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9659 <      export_dynamic_flag_spec='${wl}-E'
9658 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9659 >      export_dynamic_flag_spec='$wl-E'
9660        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9661        # Instead, shared libraries are loaded at an image base (0x10000000 by
9662        # default) and relocated if they conflict, which is a slow very memory
9663        # consuming and fragmenting process.  To avoid this, we pick a random,
9664        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9665        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9666 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9667 <      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'
9666 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9667 >      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'
9668        ;;
9669  
9670      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9671        tmp_diet=no
9672 <      if test "$host_os" = linux-dietlibc; then
9672 >      if test linux-dietlibc = "$host_os"; then
9673          case $cc_basename in
9674            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9675          esac
9676        fi
9677        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9678 <         && test "$tmp_diet" = no
9678 >         && test no = "$tmp_diet"
9679        then
9680          tmp_addflag=' $pic_flag'
9681          tmp_sharedflag='-shared'
9682          case $cc_basename,$host_cpu in
9683          pgcc*)                          # Portland Group C compiler
9684 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9684 >          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'
9685            tmp_addflag=' $pic_flag'
9686            ;;
9687          pgf77* | pgf90* | pgf95* | pgfortran*)
9688                                          # Portland Group f77 and f90 compilers
9689 <          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'
9689 >          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'
9690            tmp_addflag=' $pic_flag -Mnomain' ;;
9691          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9692            tmp_addflag=' -i_dynamic' ;;
# Line 9326 | Line 9697 | _LT_EOF
9697          lf95*)                          # Lahey Fortran 8.1
9698            whole_archive_flag_spec=
9699            tmp_sharedflag='--shared' ;;
9700 +        nagfor*)                        # NAGFOR 5.3
9701 +          tmp_sharedflag='-Wl,-shared' ;;
9702          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9703            tmp_sharedflag='-qmkshrobj'
9704            tmp_addflag= ;;
9705          nvcc*)  # Cuda Compiler Driver 2.2
9706 <          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'
9706 >          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'
9707            compiler_needs_object=yes
9708            ;;
9709          esac
9710          case `$CC -V 2>&1 | sed 5q` in
9711          *Sun\ C*)                       # Sun C 5.9
9712 <          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'
9712 >          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'
9713            compiler_needs_object=yes
9714            tmp_sharedflag='-G' ;;
9715          *Sun\ F*)                       # Sun Fortran 8.3
9716            tmp_sharedflag='-G' ;;
9717          esac
9718 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9718 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9719  
9720 <        if test "x$supports_anon_versioning" = xyes; then
9720 >        if test yes = "$supports_anon_versioning"; then
9721            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9722 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9723 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9724 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9722 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9723 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9724 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9725          fi
9726  
9727          case $cc_basename in
9728 +        tcc*)
9729 +          export_dynamic_flag_spec='-rdynamic'
9730 +          ;;
9731          xlf* | bgf* | bgxlf* | mpixlf*)
9732            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9733            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9734 <          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9735            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9736 <          if test "x$supports_anon_versioning" = xyes; then
9736 >          if test yes = "$supports_anon_versioning"; then
9737              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9738 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9739 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9740 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9738 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9739 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9740 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9741            fi
9742            ;;
9743          esac
# Line 9370 | Line 9746 | _LT_EOF
9746        fi
9747        ;;
9748  
9749 <    netbsd*)
9749 >    netbsd* | netbsdelf*-gnu)
9750        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9751          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9752          wlarc=
9753        else
9754 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9755 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9754 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9755 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9756        fi
9757        ;;
9758  
# Line 9394 | Line 9770 | _LT_EOF
9770  
9771   _LT_EOF
9772        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9773 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9774 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9773 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9774 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9775        else
9776          ld_shlibs=no
9777        fi
# Line 9407 | Line 9783 | _LT_EOF
9783          ld_shlibs=no
9784          cat <<_LT_EOF 1>&2
9785  
9786 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9786 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9787   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9788   *** is disabling shared libraries support.  We urge you to upgrade GNU
9789   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9422 | Line 9798 | _LT_EOF
9798            # DT_RUNPATH tag from executables and libraries.  But doing so
9799            # requires that you compile everything twice, which is a pain.
9800            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9801 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9802 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9801 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9802 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9803 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9804            else
9805              ld_shlibs=no
9806            fi
# Line 9441 | Line 9817 | _LT_EOF
9817  
9818      *)
9819        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9820 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9821 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9820 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9821 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9822        else
9823          ld_shlibs=no
9824        fi
9825        ;;
9826      esac
9827  
9828 <    if test "$ld_shlibs" = no; then
9828 >    if test no = "$ld_shlibs"; then
9829        runpath_var=
9830        hardcode_libdir_flag_spec=
9831        export_dynamic_flag_spec=
# Line 9465 | Line 9841 | _LT_EOF
9841        # Note: this linker hardcodes the directories in LIBPATH if there
9842        # are no directories specified by -L.
9843        hardcode_minus_L=yes
9844 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9844 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9845          # Neither direct hardcoding nor static linking is supported with a
9846          # broken collect2.
9847          hardcode_direct=unsupported
# Line 9473 | Line 9849 | _LT_EOF
9849        ;;
9850  
9851      aix[4-9]*)
9852 <      if test "$host_cpu" = ia64; then
9852 >      if test ia64 = "$host_cpu"; then
9853          # On IA64, the linker does run time linking by default, so we don't
9854          # have to do anything special.
9855          aix_use_runtimelinking=no
9856          exp_sym_flag='-Bexport'
9857 <        no_entry_flag=""
9857 >        no_entry_flag=
9858        else
9859          # If we're using GNU nm, then we don't want the "-C" option.
9860 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9861 <        # Also, AIX nm treats weak defined symbols like other global
9862 <        # defined symbols, whereas GNU nm marks them as "W".
9860 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9861 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9862 >        # weak defined symbols like other global defined symbols, whereas
9863 >        # GNU nm marks them as "W".
9864 >        # While the 'weak' keyword is ignored in the Export File, we need
9865 >        # it in the Import File for the 'aix-soname' feature, so we have
9866 >        # to replace the "-B" option with "-P" for AIX nm.
9867          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9868 <          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'
9868 >          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'
9869          else
9870 <          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'
9870 >          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'
9871          fi
9872          aix_use_runtimelinking=no
9873  
9874          # Test if we are trying to use run time linking or normal
9875          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9876 <        # need to do runtime linking.
9876 >        # have runtime linking enabled, and use it for executables.
9877 >        # For shared libraries, we enable/disable runtime linking
9878 >        # depending on the kind of the shared library created -
9879 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9880 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9881 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9882 >        #            lib.a           static archive
9883 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9884 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9885 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9886 >        #            lib.a(lib.so.V) shared, rtl:no
9887 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9888 >        #            lib.a           static archive
9889          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9890            for ld_flag in $LDFLAGS; do
9891 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9891 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9892              aix_use_runtimelinking=yes
9893              break
9894            fi
9895            done
9896 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9897 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9898 +            # so we don't have lib.a shared libs to link our executables.
9899 +            # We have to force runtime linking in this case.
9900 +            aix_use_runtimelinking=yes
9901 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9902 +          fi
9903            ;;
9904          esac
9905  
# Line 9519 | Line 9918 | _LT_EOF
9918        hardcode_direct_absolute=yes
9919        hardcode_libdir_separator=':'
9920        link_all_deplibs=yes
9921 <      file_list_spec='${wl}-f,'
9921 >      file_list_spec='$wl-f,'
9922 >      case $with_aix_soname,$aix_use_runtimelinking in
9923 >      aix,*) ;; # traditional, no import file
9924 >      svr4,* | *,yes) # use import file
9925 >        # The Import File defines what to hardcode.
9926 >        hardcode_direct=no
9927 >        hardcode_direct_absolute=no
9928 >        ;;
9929 >      esac
9930  
9931 <      if test "$GCC" = yes; then
9931 >      if test yes = "$GCC"; then
9932          case $host_os in aix4.[012]|aix4.[012].*)
9933          # We only want to do this on AIX 4.2 and lower, the check
9934          # below for broken collect2 doesn't work under 4.3+
9935 <          collect2name=`${CC} -print-prog-name=collect2`
9935 >          collect2name=`$CC -print-prog-name=collect2`
9936            if test -f "$collect2name" &&
9937             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9938            then
# Line 9544 | Line 9951 | _LT_EOF
9951            ;;
9952          esac
9953          shared_flag='-shared'
9954 <        if test "$aix_use_runtimelinking" = yes; then
9955 <          shared_flag="$shared_flag "'${wl}-G'
9954 >        if test yes = "$aix_use_runtimelinking"; then
9955 >          shared_flag="$shared_flag "'$wl-G'
9956          fi
9957 +        # Need to ensure runtime linking is disabled for the traditional
9958 +        # shared library, or the linker may eventually find shared libraries
9959 +        # /with/ Import File - we do not want to mix them.
9960 +        shared_flag_aix='-shared'
9961 +        shared_flag_svr4='-shared $wl-G'
9962        else
9963          # not using gcc
9964 <        if test "$host_cpu" = ia64; then
9964 >        if test ia64 = "$host_cpu"; then
9965          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9966          # chokes on -Wl,-G. The following line is correct:
9967            shared_flag='-G'
9968          else
9969 <          if test "$aix_use_runtimelinking" = yes; then
9970 <            shared_flag='${wl}-G'
9969 >          if test yes = "$aix_use_runtimelinking"; then
9970 >            shared_flag='$wl-G'
9971            else
9972 <            shared_flag='${wl}-bM:SRE'
9972 >            shared_flag='$wl-bM:SRE'
9973            fi
9974 +          shared_flag_aix='$wl-bM:SRE'
9975 +          shared_flag_svr4='$wl-G'
9976          fi
9977        fi
9978  
9979 <      export_dynamic_flag_spec='${wl}-bexpall'
9979 >      export_dynamic_flag_spec='$wl-bexpall'
9980        # It seems that -bexpall does not export symbols beginning with
9981        # underscore (_), so it is better to generate a list of symbols to export.
9982        always_export_symbols=yes
9983 <      if test "$aix_use_runtimelinking" = yes; then
9983 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9984          # Warning - without using the other runtime loading flags (-brtl),
9985          # -berok will link without error, but may produce a broken library.
9986          allow_undefined_flag='-berok'
9987          # Determine the default libpath from the value encoded in an
9988          # empty executable.
9989 <        if test "${lt_cv_aix_libpath+set}" = set; then
9989 >        if test set = "${lt_cv_aix_libpath+set}"; then
9990    aix_libpath=$lt_cv_aix_libpath
9991   else
9992    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9607 | Line 10021 | fi
10021   rm -f core conftest.err conftest.$ac_objext \
10022      conftest$ac_exeext conftest.$ac_ext
10023    if test -z "$lt_cv_aix_libpath_"; then
10024 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10024 >    lt_cv_aix_libpath_=/usr/lib:/lib
10025    fi
10026  
10027   fi
# Line 9615 | Line 10029 | fi
10029    aix_libpath=$lt_cv_aix_libpath_
10030   fi
10031  
10032 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10033 <        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"
10032 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10033 >        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
10034        else
10035 <        if test "$host_cpu" = ia64; then
10036 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10035 >        if test ia64 = "$host_cpu"; then
10036 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10037            allow_undefined_flag="-z nodefs"
10038 <          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"
10038 >          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"
10039          else
10040           # Determine the default libpath from the value encoded in an
10041           # empty executable.
10042 <         if test "${lt_cv_aix_libpath+set}" = set; then
10042 >         if test set = "${lt_cv_aix_libpath+set}"; then
10043    aix_libpath=$lt_cv_aix_libpath
10044   else
10045    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9660 | Line 10074 | fi
10074   rm -f core conftest.err conftest.$ac_objext \
10075      conftest$ac_exeext conftest.$ac_ext
10076    if test -z "$lt_cv_aix_libpath_"; then
10077 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10077 >    lt_cv_aix_libpath_=/usr/lib:/lib
10078    fi
10079  
10080   fi
# Line 9668 | Line 10082 | fi
10082    aix_libpath=$lt_cv_aix_libpath_
10083   fi
10084  
10085 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10085 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10086            # Warning - without using the other run time loading flags,
10087            # -berok will link without error, but may produce a broken library.
10088 <          no_undefined_flag=' ${wl}-bernotok'
10089 <          allow_undefined_flag=' ${wl}-berok'
10090 <          if test "$with_gnu_ld" = yes; then
10088 >          no_undefined_flag=' $wl-bernotok'
10089 >          allow_undefined_flag=' $wl-berok'
10090 >          if test yes = "$with_gnu_ld"; then
10091              # We only use this code for GNU lds that support --whole-archive.
10092 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10092 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10093            else
10094              # Exported symbols can be pulled into shared objects from archives
10095              whole_archive_flag_spec='$convenience'
10096            fi
10097            archive_cmds_need_lc=yes
10098 <          # This is similar to how AIX traditionally builds its shared libraries.
10099 <          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'
10098 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10099 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10100 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10101 >          if test svr4 != "$with_aix_soname"; then
10102 >            # This is similar to how AIX traditionally builds its shared libraries.
10103 >            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'
10104 >          fi
10105 >          if test aix != "$with_aix_soname"; then
10106 >            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'
10107 >          else
10108 >            # used by -dlpreopen to get the symbols
10109 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10110 >          fi
10111 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10112          fi
10113        fi
10114        ;;
# Line 9691 | Line 10117 | fi
10117        case $host_cpu in
10118        powerpc)
10119              # see comment about AmigaOS4 .so support
10120 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10121              archive_expsym_cmds=''
10122          ;;
10123        m68k)
# Line 9721 | Line 10147 | fi
10147          # Tell ltmain to make .lib files, not .a files.
10148          libext=lib
10149          # Tell ltmain to make .dll files, not .so files.
10150 <        shrext_cmds=".dll"
10150 >        shrext_cmds=.dll
10151          # FIXME: Setting linknames here is a bad hack.
10152 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10153 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10154 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10155 <          else
10156 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10157 <          fi~
10158 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10159 <          linknames='
10152 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10153 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10154 >            cp "$export_symbols" "$output_objdir/$soname.def";
10155 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10156 >          else
10157 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10158 >          fi~
10159 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10160 >          linknames='
10161          # The linker will not automatically build a static lib if we build a DLL.
10162          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10163          enable_shared_with_static_runtimes=yes
# Line 9739 | Line 10166 | fi
10166          # Don't use ranlib
10167          old_postinstall_cmds='chmod 644 $oldlib'
10168          postlink_cmds='lt_outputfile="@OUTPUT@"~
10169 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
10170 <          case $lt_outputfile in
10171 <            *.exe|*.EXE) ;;
10172 <            *)
10173 <              lt_outputfile="$lt_outputfile.exe"
10174 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
10175 <              ;;
10176 <          esac~
10177 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10178 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10179 <            $RM "$lt_outputfile.manifest";
10180 <          fi'
10169 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10170 >          case $lt_outputfile in
10171 >            *.exe|*.EXE) ;;
10172 >            *)
10173 >              lt_outputfile=$lt_outputfile.exe
10174 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10175 >              ;;
10176 >          esac~
10177 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10178 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10179 >            $RM "$lt_outputfile.manifest";
10180 >          fi'
10181          ;;
10182        *)
10183          # Assume MSVC wrapper
# Line 9759 | Line 10186 | fi
10186          # Tell ltmain to make .lib files, not .a files.
10187          libext=lib
10188          # Tell ltmain to make .dll files, not .so files.
10189 <        shrext_cmds=".dll"
10189 >        shrext_cmds=.dll
10190          # FIXME: Setting linknames here is a bad hack.
10191          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10192          # The linker will automatically build a .lib file if we build a DLL.
# Line 9778 | Line 10205 | fi
10205    hardcode_direct=no
10206    hardcode_automatic=yes
10207    hardcode_shlibpath_var=unsupported
10208 <  if test "$lt_cv_ld_force_load" = "yes"; then
10209 <    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\"`'
10208 >  if test yes = "$lt_cv_ld_force_load"; then
10209 >    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\"`'
10210  
10211    else
10212      whole_archive_flag_spec=''
10213    fi
10214    link_all_deplibs=yes
10215 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10215 >  allow_undefined_flag=$_lt_dar_allow_undefined
10216    case $cc_basename in
10217 <     ifort*) _lt_dar_can_shared=yes ;;
10217 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10218       *) _lt_dar_can_shared=$GCC ;;
10219    esac
10220 <  if test "$_lt_dar_can_shared" = "yes"; then
10220 >  if test yes = "$_lt_dar_can_shared"; then
10221      output_verbose_link_cmd=func_echo_all
10222 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10223 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10224 <    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}"
10225 <    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}"
10222 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10223 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10224 >    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"
10225 >    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"
10226  
10227    else
10228    ld_shlibs=no
# Line 9837 | Line 10264 | fi
10264        ;;
10265  
10266      hpux9*)
10267 <      if test "$GCC" = yes; then
10268 <        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'
10267 >      if test yes = "$GCC"; then
10268 >        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'
10269        else
10270 <        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'
10270 >        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'
10271        fi
10272 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10272 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10273        hardcode_libdir_separator=:
10274        hardcode_direct=yes
10275  
10276        # hardcode_minus_L: Not really in the search PATH,
10277        # but as the default location of the library.
10278        hardcode_minus_L=yes
10279 <      export_dynamic_flag_spec='${wl}-E'
10279 >      export_dynamic_flag_spec='$wl-E'
10280        ;;
10281  
10282      hpux10*)
10283 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10284 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10283 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10284 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10285        else
10286          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10287        fi
10288 <      if test "$with_gnu_ld" = no; then
10289 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10288 >      if test no = "$with_gnu_ld"; then
10289 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10290          hardcode_libdir_separator=:
10291          hardcode_direct=yes
10292          hardcode_direct_absolute=yes
10293 <        export_dynamic_flag_spec='${wl}-E'
10293 >        export_dynamic_flag_spec='$wl-E'
10294          # hardcode_minus_L: Not really in the search PATH,
10295          # but as the default location of the library.
10296          hardcode_minus_L=yes
# Line 9871 | Line 10298 | fi
10298        ;;
10299  
10300      hpux11*)
10301 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10301 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10302          case $host_cpu in
10303          hppa*64*)
10304 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10304 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10305            ;;
10306          ia64*)
10307 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10307 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10308            ;;
10309          *)
10310 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10310 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10311            ;;
10312          esac
10313        else
10314          case $host_cpu in
10315          hppa*64*)
10316 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10317            ;;
10318          ia64*)
10319 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10319 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10320            ;;
10321          *)
10322  
# Line 9901 | Line 10328 | if ${lt_cv_prog_compiler__b+:} false; th
10328    $as_echo_n "(cached) " >&6
10329   else
10330    lt_cv_prog_compiler__b=no
10331 <   save_LDFLAGS="$LDFLAGS"
10331 >   save_LDFLAGS=$LDFLAGS
10332     LDFLAGS="$LDFLAGS -b"
10333     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10334     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9920 | Line 10347 | else
10347       fi
10348     fi
10349     $RM -r conftest*
10350 <   LDFLAGS="$save_LDFLAGS"
10350 >   LDFLAGS=$save_LDFLAGS
10351  
10352   fi
10353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10354   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10355  
10356 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10357 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10356 > if test yes = "$lt_cv_prog_compiler__b"; then
10357 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10358   else
10359      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10360   fi
# Line 9935 | Line 10362 | fi
10362            ;;
10363          esac
10364        fi
10365 <      if test "$with_gnu_ld" = no; then
10366 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10365 >      if test no = "$with_gnu_ld"; then
10366 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10367          hardcode_libdir_separator=:
10368  
10369          case $host_cpu in
# Line 9947 | Line 10374 | fi
10374          *)
10375            hardcode_direct=yes
10376            hardcode_direct_absolute=yes
10377 <          export_dynamic_flag_spec='${wl}-E'
10377 >          export_dynamic_flag_spec='$wl-E'
10378  
10379            # hardcode_minus_L: Not really in the search PATH,
10380            # but as the default location of the library.
# Line 9958 | Line 10385 | fi
10385        ;;
10386  
10387      irix5* | irix6* | nonstopux*)
10388 <      if test "$GCC" = yes; then
10389 <        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'
10388 >      if test yes = "$GCC"; then
10389 >        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'
10390          # Try to use the -exported_symbol ld option, if it does not
10391          # work, assume that -exports_file does not work either and
10392          # implicitly export all symbols.
# Line 9969 | Line 10396 | $as_echo_n "checking whether the $host_o
10396   if ${lt_cv_irix_exported_symbol+:} false; then :
10397    $as_echo_n "(cached) " >&6
10398   else
10399 <  save_LDFLAGS="$LDFLAGS"
10400 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10399 >  save_LDFLAGS=$LDFLAGS
10400 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10401             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402   /* end confdefs.h.  */
10403   int foo (void) { return 0; }
# Line 9982 | Line 10409 | else
10409   fi
10410   rm -f core conftest.err conftest.$ac_objext \
10411      conftest$ac_exeext conftest.$ac_ext
10412 <           LDFLAGS="$save_LDFLAGS"
10412 >           LDFLAGS=$save_LDFLAGS
10413   fi
10414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10415   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10416 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10417 <          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'
10416 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10417 >          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'
10418          fi
10419 +        link_all_deplibs=no
10420        else
10421 <        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'
10422 <        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'
10421 >        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'
10422 >        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'
10423        fi
10424        archive_cmds_need_lc='no'
10425 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10425 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10426        hardcode_libdir_separator=:
10427        inherit_rpath=yes
10428        link_all_deplibs=yes
10429        ;;
10430  
10431 <    netbsd*)
10431 >    linux*)
10432 >      case $cc_basename in
10433 >      tcc*)
10434 >        # Fabrice Bellard et al's Tiny C Compiler
10435 >        ld_shlibs=yes
10436 >        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10437 >        ;;
10438 >      esac
10439 >      ;;
10440 >
10441 >    netbsd* | netbsdelf*-gnu)
10442        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10443          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10444        else
# Line 10014 | Line 10452 | $as_echo "$lt_cv_irix_exported_symbol" >
10452      newsos6)
10453        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10454        hardcode_direct=yes
10455 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10455 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10456        hardcode_libdir_separator=:
10457        hardcode_shlibpath_var=no
10458        ;;
# Line 10022 | Line 10460 | $as_echo "$lt_cv_irix_exported_symbol" >
10460      *nto* | *qnx*)
10461        ;;
10462  
10463 <    openbsd*)
10463 >    openbsd* | bitrig*)
10464        if test -f /usr/libexec/ld.so; then
10465          hardcode_direct=yes
10466          hardcode_shlibpath_var=no
10467          hardcode_direct_absolute=yes
10468 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10468 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10469            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10470 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10471 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10472 <          export_dynamic_flag_spec='${wl}-E'
10470 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10471 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10472 >          export_dynamic_flag_spec='$wl-E'
10473          else
10474 <          case $host_os in
10475 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10038 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 <             hardcode_libdir_flag_spec='-R$libdir'
10040 <             ;;
10041 <           *)
10042 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10043 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044 <             ;;
10045 <          esac
10474 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10475 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10476          fi
10477        else
10478          ld_shlibs=no
# Line 10053 | Line 10483 | $as_echo "$lt_cv_irix_exported_symbol" >
10483        hardcode_libdir_flag_spec='-L$libdir'
10484        hardcode_minus_L=yes
10485        allow_undefined_flag=unsupported
10486 <      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'
10487 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10486 >      shrext_cmds=.dll
10487 >      archive_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 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10492 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10493 >        emximp -o $lib $output_objdir/$libname.def'
10494 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10495 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10496 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10497 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10498 >        prefix_cmds="$SED"~
10499 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10500 >          prefix_cmds="$prefix_cmds -e 1d";
10501 >        fi~
10502 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10503 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10504 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10505 >        emximp -o $lib $output_objdir/$libname.def'
10506 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10507 >      enable_shared_with_static_runtimes=yes
10508        ;;
10509  
10510      osf3*)
10511 <      if test "$GCC" = yes; then
10512 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10513 <        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'
10511 >      if test yes = "$GCC"; then
10512 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10513 >        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'
10514        else
10515          allow_undefined_flag=' -expect_unresolved \*'
10516 <        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'
10516 >        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'
10517        fi
10518        archive_cmds_need_lc='no'
10519 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10519 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10520        hardcode_libdir_separator=:
10521        ;;
10522  
10523      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10524 <      if test "$GCC" = yes; then
10525 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10526 <        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'
10527 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10524 >      if test yes = "$GCC"; then
10525 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10526 >        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'
10527 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10528        else
10529          allow_undefined_flag=' -expect_unresolved \*'
10530 <        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'
10530 >        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'
10531          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~
10532 <        $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'
10532 >          $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'
10533  
10534          # Both c and cxx compiler support -rpath directly
10535          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 10090 | Line 10540 | $as_echo "$lt_cv_irix_exported_symbol" >
10540  
10541      solaris*)
10542        no_undefined_flag=' -z defs'
10543 <      if test "$GCC" = yes; then
10544 <        wlarc='${wl}'
10545 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 >      if test yes = "$GCC"; then
10544 >        wlarc='$wl'
10545 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10546          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10547 <          $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'
10547 >          $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'
10548        else
10549          case `$CC -V 2>&1` in
10550          *"Compilers 5.0"*)
10551            wlarc=''
10552 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10554 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10554 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10555            ;;
10556          *)
10557 <          wlarc='${wl}'
10558 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10557 >          wlarc='$wl'
10558 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10559            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10560 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10560 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10561            ;;
10562          esac
10563        fi
# Line 10117 | Line 10567 | $as_echo "$lt_cv_irix_exported_symbol" >
10567        solaris2.[0-5] | solaris2.[0-5].*) ;;
10568        *)
10569          # The compiler driver will combine and reorder linker options,
10570 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10570 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10571          # but is careful enough not to reorder.
10572          # Supported since Solaris 2.6 (maybe 2.5.1?)
10573 <        if test "$GCC" = yes; then
10574 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10573 >        if test yes = "$GCC"; then
10574 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10575          else
10576            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10577          fi
# Line 10131 | Line 10581 | $as_echo "$lt_cv_irix_exported_symbol" >
10581        ;;
10582  
10583      sunos4*)
10584 <      if test "x$host_vendor" = xsequent; then
10584 >      if test sequent = "$host_vendor"; then
10585          # Use $CC to link under sequent, because it throws in some extra .o
10586          # files that make .init and .fini sections work.
10587 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10587 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10588        else
10589          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10590        fi
# Line 10183 | Line 10633 | $as_echo "$lt_cv_irix_exported_symbol" >
10633        ;;
10634  
10635      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10636 <      no_undefined_flag='${wl}-z,text'
10636 >      no_undefined_flag='$wl-z,text'
10637        archive_cmds_need_lc=no
10638        hardcode_shlibpath_var=no
10639        runpath_var='LD_RUN_PATH'
10640  
10641 <      if test "$GCC" = yes; then
10642 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 >      if test yes = "$GCC"; then
10642 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644        else
10645 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647        fi
10648        ;;
10649  
10650      sysv5* | sco3.2v5* | sco5v6*)
10651 <      # Note: We can NOT use -z defs as we might desire, because we do not
10651 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10652        # link with -lc, and that would cause any symbols used from libc to
10653        # always be unresolved, which means just about no library would
10654        # ever link correctly.  If we're not using GNU ld we use -z text
10655        # though, which does catch some bad symbols but isn't as heavy-handed
10656        # as -z defs.
10657 <      no_undefined_flag='${wl}-z,text'
10658 <      allow_undefined_flag='${wl}-z,nodefs'
10657 >      no_undefined_flag='$wl-z,text'
10658 >      allow_undefined_flag='$wl-z,nodefs'
10659        archive_cmds_need_lc=no
10660        hardcode_shlibpath_var=no
10661 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10661 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10662        hardcode_libdir_separator=':'
10663        link_all_deplibs=yes
10664 <      export_dynamic_flag_spec='${wl}-Bexport'
10664 >      export_dynamic_flag_spec='$wl-Bexport'
10665        runpath_var='LD_RUN_PATH'
10666  
10667 <      if test "$GCC" = yes; then
10668 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 >      if test yes = "$GCC"; then
10668 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670        else
10671 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673        fi
10674        ;;
10675  
# Line 10234 | Line 10684 | $as_echo "$lt_cv_irix_exported_symbol" >
10684        ;;
10685      esac
10686  
10687 <    if test x$host_vendor = xsni; then
10687 >    if test sni = "$host_vendor"; then
10688        case $host in
10689        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10690 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10690 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10691          ;;
10692        esac
10693      fi
# Line 10245 | Line 10695 | $as_echo "$lt_cv_irix_exported_symbol" >
10695  
10696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10697   $as_echo "$ld_shlibs" >&6; }
10698 < test "$ld_shlibs" = no && can_build_shared=no
10698 > test no = "$ld_shlibs" && can_build_shared=no
10699  
10700   with_gnu_ld=$with_gnu_ld
10701  
# Line 10271 | Line 10721 | x|xyes)
10721    # Assume -lc should be added
10722    archive_cmds_need_lc=yes
10723  
10724 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10724 >  if test yes,yes = "$GCC,$enable_shared"; then
10725      case $archive_cmds in
10726      *'~'*)
10727        # FIXME: we may have to deal with multi-command sequences.
# Line 10486 | Line 10936 | esac
10936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10937   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10938  
10939 < if test "$GCC" = yes; then
10939 > if test yes = "$GCC"; then
10940    case $host_os in
10941 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10942 <    *) lt_awk_arg="/^libraries:/" ;;
10941 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10942 >    *) lt_awk_arg='/^libraries:/' ;;
10943    esac
10944    case $host_os in
10945 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10946 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10945 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10946 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10947    esac
10948    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10949    case $lt_search_path_spec in
# Line 10509 | Line 10959 | if test "$GCC" = yes; then
10959      ;;
10960    esac
10961    # Ok, now we have the path, separated by spaces, we can step through it
10962 <  # and add multilib dir if necessary.
10962 >  # and add multilib dir if necessary...
10963    lt_tmp_lt_search_path_spec=
10964 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10964 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10965 >  # ...but if some path component already ends with the multilib dir we assume
10966 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10967 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10968 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10969 >    lt_multi_os_dir=
10970 >    ;;
10971 >  esac
10972    for lt_sys_path in $lt_search_path_spec; do
10973 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10974 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10975 <    else
10973 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10974 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10975 >    elif test -n "$lt_multi_os_dir"; then
10976        test -d "$lt_sys_path" && \
10977          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10978      fi
10979    done
10980    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10981 < BEGIN {RS=" "; FS="/|\n";} {
10982 <  lt_foo="";
10983 <  lt_count=0;
10981 > BEGIN {RS = " "; FS = "/|\n";} {
10982 >  lt_foo = "";
10983 >  lt_count = 0;
10984    for (lt_i = NF; lt_i > 0; lt_i--) {
10985      if ($lt_i != "" && $lt_i != ".") {
10986        if ($lt_i == "..") {
10987          lt_count++;
10988        } else {
10989          if (lt_count == 0) {
10990 <          lt_foo="/" $lt_i lt_foo;
10990 >          lt_foo = "/" $lt_i lt_foo;
10991          } else {
10992            lt_count--;
10993          }
# Line 10544 | Line 11001 | BEGIN {RS=" "; FS="/|\n";} {
11001    # for these hosts.
11002    case $host_os in
11003      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11004 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11004 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11005    esac
11006    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11007   else
# Line 10553 | Line 11010 | fi
11010   library_names_spec=
11011   libname_spec='lib$name'
11012   soname_spec=
11013 < shrext_cmds=".so"
11013 > shrext_cmds=.so
11014   postinstall_cmds=
11015   postuninstall_cmds=
11016   finish_cmds=
# Line 10570 | Line 11027 | hardcode_into_libs=no
11027   # flags to be left without arguments
11028   need_version=unknown
11029  
11030 +
11031 +
11032   case $host_os in
11033   aix3*)
11034    version_type=linux # correct to gnu/linux during the next big refactor
11035 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11035 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11036    shlibpath_var=LIBPATH
11037  
11038    # AIX 3 has no versioning support, so we append a major version to the name.
11039 <  soname_spec='${libname}${release}${shared_ext}$major'
11039 >  soname_spec='$libname$release$shared_ext$major'
11040    ;;
11041  
11042   aix[4-9]*)
# Line 10585 | Line 11044 | aix[4-9]*)
11044    need_lib_prefix=no
11045    need_version=no
11046    hardcode_into_libs=yes
11047 <  if test "$host_cpu" = ia64; then
11047 >  if test ia64 = "$host_cpu"; then
11048      # AIX 5 supports IA64
11049 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11049 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11050      shlibpath_var=LD_LIBRARY_PATH
11051    else
11052      # With GCC up to 2.95.x, collect2 would create an import file
11053      # for dependence libraries.  The import file would start with
11054 <    # the line `#! .'.  This would cause the generated library to
11055 <    # depend on `.', always an invalid library.  This was fixed in
11054 >    # the line '#! .'.  This would cause the generated library to
11055 >    # depend on '.', always an invalid library.  This was fixed in
11056      # development snapshots of GCC prior to 3.0.
11057      case $host_os in
11058        aix4 | aix4.[01] | aix4.[01].*)
11059        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11060             echo ' yes '
11061 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11061 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11062          :
11063        else
11064          can_build_shared=no
11065        fi
11066        ;;
11067      esac
11068 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11068 >    # Using Import Files as archive members, it is possible to support
11069 >    # filename-based versioning of shared library archives on AIX. While
11070 >    # this would work for both with and without runtime linking, it will
11071 >    # prevent static linking of such archives. So we do filename-based
11072 >    # shared library versioning with .so extension only, which is used
11073 >    # when both runtime linking and shared linking is enabled.
11074 >    # Unfortunately, runtime linking may impact performance, so we do
11075 >    # not want this to be the default eventually. Also, we use the
11076 >    # versioned .so libs for executables only if there is the -brtl
11077 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11078 >    # To allow for filename-based versioning support, we need to create
11079 >    # libNAME.so.V as an archive file, containing:
11080 >    # *) an Import File, referring to the versioned filename of the
11081 >    #    archive as well as the shared archive member, telling the
11082 >    #    bitwidth (32 or 64) of that shared object, and providing the
11083 >    #    list of exported symbols of that shared object, eventually
11084 >    #    decorated with the 'weak' keyword
11085 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11086 >    #    it being seen by the linker.
11087 >    # At run time we better use the real file rather than another symlink,
11088 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11089 >
11090 >    case $with_aix_soname,$aix_use_runtimelinking in
11091 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11092      # soname into executable. Probably we can add versioning support to
11093      # collect2, so additional links can be useful in future.
11094 <    if test "$aix_use_runtimelinking" = yes; then
11094 >    aix,yes) # traditional libtool
11095 >      dynamic_linker='AIX unversionable lib.so'
11096        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11097        # instead of lib<name>.a to let people know that these are not
11098        # typical AIX shared libraries.
11099 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 <    else
11099 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11100 >      ;;
11101 >    aix,no) # traditional AIX only
11102 >      dynamic_linker='AIX lib.a(lib.so.V)'
11103        # We preserve .a as extension for shared libraries through AIX4.2
11104        # and later when we are not doing run time linking.
11105 <      library_names_spec='${libname}${release}.a $libname.a'
11106 <      soname_spec='${libname}${release}${shared_ext}$major'
11107 <    fi
11105 >      library_names_spec='$libname$release.a $libname.a'
11106 >      soname_spec='$libname$release$shared_ext$major'
11107 >      ;;
11108 >    svr4,*) # full svr4 only
11109 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11110 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11111 >      # We do not specify a path in Import Files, so LIBPATH fires.
11112 >      shlibpath_overrides_runpath=yes
11113 >      ;;
11114 >    *,yes) # both, prefer svr4
11115 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11116 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11117 >      # unpreferred sharedlib libNAME.a needs extra handling
11118 >      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"'
11119 >      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"'
11120 >      # We do not specify a path in Import Files, so LIBPATH fires.
11121 >      shlibpath_overrides_runpath=yes
11122 >      ;;
11123 >    *,no) # both, prefer aix
11124 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11125 >      library_names_spec='$libname$release.a $libname.a'
11126 >      soname_spec='$libname$release$shared_ext$major'
11127 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11128 >      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)'
11129 >      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"'
11130 >      ;;
11131 >    esac
11132      shlibpath_var=LIBPATH
11133    fi
11134    ;;
# Line 10629 | Line 11138 | amigaos*)
11138    powerpc)
11139      # Since July 2007 AmigaOS4 officially supports .so libraries.
11140      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11141 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142      ;;
11143    m68k)
11144      library_names_spec='$libname.ixlibrary $libname.a'
11145      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11146 <    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'
11146 >    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'
11147      ;;
11148    esac
11149    ;;
11150  
11151   beos*)
11152 <  library_names_spec='${libname}${shared_ext}'
11152 >  library_names_spec='$libname$shared_ext'
11153    dynamic_linker="$host_os ld.so"
11154    shlibpath_var=LIBRARY_PATH
11155    ;;
# Line 10648 | Line 11157 | beos*)
11157   bsdi[45]*)
11158    version_type=linux # correct to gnu/linux during the next big refactor
11159    need_version=no
11160 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 <  soname_spec='${libname}${release}${shared_ext}$major'
11160 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161 >  soname_spec='$libname$release$shared_ext$major'
11162    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11163    shlibpath_var=LD_LIBRARY_PATH
11164    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10661 | Line 11170 | bsdi[45]*)
11170  
11171   cygwin* | mingw* | pw32* | cegcc*)
11172    version_type=windows
11173 <  shrext_cmds=".dll"
11173 >  shrext_cmds=.dll
11174    need_version=no
11175    need_lib_prefix=no
11176  
# Line 10670 | Line 11179 | cygwin* | mingw* | pw32* | cegcc*)
11179      # gcc
11180      library_names_spec='$libname.dll.a'
11181      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11182 <    postinstall_cmds='base_file=`basename \${file}`~
11183 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11182 >    postinstall_cmds='base_file=`basename \$file`~
11183 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11184        dldir=$destdir/`dirname \$dlpath`~
11185        test -d \$dldir || mkdir -p \$dldir~
11186        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10687 | Line 11196 | cygwin* | mingw* | pw32* | cegcc*)
11196      case $host_os in
11197      cygwin*)
11198        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11199 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11199 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11200  
11201        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11202        ;;
11203      mingw* | cegcc*)
11204        # MinGW DLLs use traditional 'lib' prefix
11205 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11205 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11206        ;;
11207      pw32*)
11208        # pw32 DLLs use 'pw' prefix rather than 'lib'
11209 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11209 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11210        ;;
11211      esac
11212      dynamic_linker='Win32 ld.exe'
# Line 10706 | Line 11215 | cygwin* | mingw* | pw32* | cegcc*)
11215    *,cl*)
11216      # Native MSVC
11217      libname_spec='$name'
11218 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11219 <    library_names_spec='${libname}.dll.lib'
11218 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11219 >    library_names_spec='$libname.dll.lib'
11220  
11221      case $build_os in
11222      mingw*)
# Line 10734 | Line 11243 | cygwin* | mingw* | pw32* | cegcc*)
11243        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11244        ;;
11245      *)
11246 <      sys_lib_search_path_spec="$LIB"
11246 >      sys_lib_search_path_spec=$LIB
11247        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11248          # It is most probably a Windows format PATH.
11249          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10747 | Line 11256 | cygwin* | mingw* | pw32* | cegcc*)
11256      esac
11257  
11258      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11259 <    postinstall_cmds='base_file=`basename \${file}`~
11260 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11259 >    postinstall_cmds='base_file=`basename \$file`~
11260 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11261        dldir=$destdir/`dirname \$dlpath`~
11262        test -d \$dldir || mkdir -p \$dldir~
11263        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10761 | Line 11270 | cygwin* | mingw* | pw32* | cegcc*)
11270  
11271    *)
11272      # Assume MSVC wrapper
11273 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11273 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11274      dynamic_linker='Win32 ld.exe'
11275      ;;
11276    esac
# Line 10774 | Line 11283 | darwin* | rhapsody*)
11283    version_type=darwin
11284    need_lib_prefix=no
11285    need_version=no
11286 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11287 <  soname_spec='${libname}${release}${major}$shared_ext'
11286 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11287 >  soname_spec='$libname$release$major$shared_ext'
11288    shlibpath_overrides_runpath=yes
11289    shlibpath_var=DYLD_LIBRARY_PATH
11290    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10788 | Line 11297 | dgux*)
11297    version_type=linux # correct to gnu/linux during the next big refactor
11298    need_lib_prefix=no
11299    need_version=no
11300 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11301 <  soname_spec='${libname}${release}${shared_ext}$major'
11300 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11301 >  soname_spec='$libname$release$shared_ext$major'
11302    shlibpath_var=LD_LIBRARY_PATH
11303    ;;
11304  
# Line 10807 | Line 11316 | freebsd* | dragonfly*)
11316    version_type=freebsd-$objformat
11317    case $version_type in
11318      freebsd-elf*)
11319 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11319 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320 >      soname_spec='$libname$release$shared_ext$major'
11321        need_version=no
11322        need_lib_prefix=no
11323        ;;
11324      freebsd-*)
11325 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11325 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11326        need_version=yes
11327        ;;
11328    esac
# Line 10837 | Line 11347 | freebsd* | dragonfly*)
11347    esac
11348    ;;
11349  
10840 gnu*)
10841  version_type=linux # correct to gnu/linux during the next big refactor
10842  need_lib_prefix=no
10843  need_version=no
10844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10845  soname_spec='${libname}${release}${shared_ext}$major'
10846  shlibpath_var=LD_LIBRARY_PATH
10847  shlibpath_overrides_runpath=no
10848  hardcode_into_libs=yes
10849  ;;
10850
11350   haiku*)
11351    version_type=linux # correct to gnu/linux during the next big refactor
11352    need_lib_prefix=no
11353    need_version=no
11354    dynamic_linker="$host_os runtime_loader"
11355 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11356 <  soname_spec='${libname}${release}${shared_ext}$major'
11355 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356 >  soname_spec='$libname$release$shared_ext$major'
11357    shlibpath_var=LIBRARY_PATH
11358 <  shlibpath_overrides_runpath=yes
11358 >  shlibpath_overrides_runpath=no
11359    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11360    hardcode_into_libs=yes
11361    ;;
# Line 10874 | Line 11373 | hpux9* | hpux10* | hpux11*)
11373      dynamic_linker="$host_os dld.so"
11374      shlibpath_var=LD_LIBRARY_PATH
11375      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11376 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 <    soname_spec='${libname}${release}${shared_ext}$major'
11378 <    if test "X$HPUX_IA64_MODE" = X32; then
11376 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377 >    soname_spec='$libname$release$shared_ext$major'
11378 >    if test 32 = "$HPUX_IA64_MODE"; then
11379        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11380 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11381      else
11382        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11383 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11384      fi
10884    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11385      ;;
11386    hppa*64*)
11387      shrext_cmds='.sl'
# Line 10889 | Line 11389 | hpux9* | hpux10* | hpux11*)
11389      dynamic_linker="$host_os dld.sl"
11390      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11391      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11392 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393 <    soname_spec='${libname}${release}${shared_ext}$major'
11392 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11393 >    soname_spec='$libname$release$shared_ext$major'
11394      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11395      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11396      ;;
# Line 10899 | Line 11399 | hpux9* | hpux10* | hpux11*)
11399      dynamic_linker="$host_os dld.sl"
11400      shlibpath_var=SHLIB_PATH
11401      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11402 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 <    soname_spec='${libname}${release}${shared_ext}$major'
11402 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11403 >    soname_spec='$libname$release$shared_ext$major'
11404      ;;
11405    esac
11406    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 10913 | Line 11413 | interix[3-9]*)
11413    version_type=linux # correct to gnu/linux during the next big refactor
11414    need_lib_prefix=no
11415    need_version=no
11416 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11417 <  soname_spec='${libname}${release}${shared_ext}$major'
11416 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11417 >  soname_spec='$libname$release$shared_ext$major'
11418    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11419    shlibpath_var=LD_LIBRARY_PATH
11420    shlibpath_overrides_runpath=no
# Line 10925 | Line 11425 | irix5* | irix6* | nonstopux*)
11425    case $host_os in
11426      nonstopux*) version_type=nonstopux ;;
11427      *)
11428 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11428 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11429                  version_type=linux # correct to gnu/linux during the next big refactor
11430          else
11431                  version_type=irix
# Line 10933 | Line 11433 | irix5* | irix6* | nonstopux*)
11433    esac
11434    need_lib_prefix=no
11435    need_version=no
11436 <  soname_spec='${libname}${release}${shared_ext}$major'
11437 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11436 >  soname_spec='$libname$release$shared_ext$major'
11437 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11438    case $host_os in
11439    irix5* | nonstopux*)
11440      libsuff= shlibsuff=
# Line 10953 | Line 11453 | irix5* | irix6* | nonstopux*)
11453    esac
11454    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11455    shlibpath_overrides_runpath=no
11456 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11457 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11456 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11457 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11458    hardcode_into_libs=yes
11459    ;;
11460  
# Line 10963 | Line 11463 | linux*oldld* | linux*aout* | linux*coff*
11463    dynamic_linker=no
11464    ;;
11465  
11466 + linux*android*)
11467 +  version_type=none # Android doesn't support versioned libraries.
11468 +  need_lib_prefix=no
11469 +  need_version=no
11470 +  library_names_spec='$libname$release$shared_ext'
11471 +  soname_spec='$libname$release$shared_ext'
11472 +  finish_cmds=
11473 +  shlibpath_var=LD_LIBRARY_PATH
11474 +  shlibpath_overrides_runpath=yes
11475 +
11476 +  # This implies no fast_install, which is unacceptable.
11477 +  # Some rework will be needed to allow for fast_install
11478 +  # before this can be enabled.
11479 +  hardcode_into_libs=yes
11480 +
11481 +  dynamic_linker='Android linker'
11482 +  # Don't embed -rpath directories since the linker doesn't support them.
11483 +  hardcode_libdir_flag_spec='-L$libdir'
11484 +  ;;
11485 +
11486   # This must be glibc/ELF.
11487 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11487 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11488    version_type=linux # correct to gnu/linux during the next big refactor
11489    need_lib_prefix=no
11490    need_version=no
11491 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 <  soname_spec='${libname}${release}${shared_ext}$major'
11491 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492 >  soname_spec='$libname$release$shared_ext$major'
11493    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11494    shlibpath_var=LD_LIBRARY_PATH
11495    shlibpath_overrides_runpath=no
# Line 11013 | Line 11533 | fi
11533    # before this can be enabled.
11534    hardcode_into_libs=yes
11535  
11536 <  # Append ld.so.conf contents to the search path
11536 >  # Ideally, we could use ldconfig to report *all* directores which are
11537 >  # searched for libraries, however this is still not possible.  Aside from not
11538 >  # being certain /sbin/ldconfig is available, command
11539 >  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11540 >  # even though it is searched at run-time.  Try to do the best guess by
11541 >  # appending ld.so.conf contents (and includes) to the search path.
11542    if test -f /etc/ld.so.conf; then
11543      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' ' '`
11544      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
# Line 11028 | Line 11553 | fi
11553    dynamic_linker='GNU/Linux ld.so'
11554    ;;
11555  
11556 + netbsdelf*-gnu)
11557 +  version_type=linux
11558 +  need_lib_prefix=no
11559 +  need_version=no
11560 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11561 +  soname_spec='${libname}${release}${shared_ext}$major'
11562 +  shlibpath_var=LD_LIBRARY_PATH
11563 +  shlibpath_overrides_runpath=no
11564 +  hardcode_into_libs=yes
11565 +  dynamic_linker='NetBSD ld.elf_so'
11566 +  ;;
11567 +
11568   netbsd*)
11569    version_type=sunos
11570    need_lib_prefix=no
11571    need_version=no
11572    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11573 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11573 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11574      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11575      dynamic_linker='NetBSD (a.out) ld.so'
11576    else
11577 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11578 <    soname_spec='${libname}${release}${shared_ext}$major'
11577 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11578 >    soname_spec='$libname$release$shared_ext$major'
11579      dynamic_linker='NetBSD ld.elf_so'
11580    fi
11581    shlibpath_var=LD_LIBRARY_PATH
# Line 11048 | Line 11585 | netbsd*)
11585  
11586   newsos6)
11587    version_type=linux # correct to gnu/linux during the next big refactor
11588 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11589    shlibpath_var=LD_LIBRARY_PATH
11590    shlibpath_overrides_runpath=yes
11591    ;;
# Line 11057 | Line 11594 | newsos6)
11594    version_type=qnx
11595    need_lib_prefix=no
11596    need_version=no
11597 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 <  soname_spec='${libname}${release}${shared_ext}$major'
11597 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 >  soname_spec='$libname$release$shared_ext$major'
11599    shlibpath_var=LD_LIBRARY_PATH
11600    shlibpath_overrides_runpath=no
11601    hardcode_into_libs=yes
11602    dynamic_linker='ldqnx.so'
11603    ;;
11604  
11605 < openbsd*)
11605 > openbsd* | bitrig*)
11606    version_type=sunos
11607 <  sys_lib_dlsearch_path_spec="/usr/lib"
11607 >  sys_lib_dlsearch_path_spec=/usr/lib
11608    need_lib_prefix=no
11609 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11610 <  case $host_os in
11074 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11075 <    *)                          need_version=no  ;;
11076 <  esac
11077 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11078 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 <  shlibpath_var=LD_LIBRARY_PATH
11080 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11081 <    case $host_os in
11082 <      openbsd2.[89] | openbsd2.[89].*)
11083 <        shlibpath_overrides_runpath=no
11084 <        ;;
11085 <      *)
11086 <        shlibpath_overrides_runpath=yes
11087 <        ;;
11088 <      esac
11609 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11610 >    need_version=no
11611    else
11612 <    shlibpath_overrides_runpath=yes
11612 >    need_version=yes
11613    fi
11614 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11615 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11616 +  shlibpath_var=LD_LIBRARY_PATH
11617 +  shlibpath_overrides_runpath=yes
11618    ;;
11619  
11620   os2*)
11621    libname_spec='$name'
11622 <  shrext_cmds=".dll"
11622 >  version_type=windows
11623 >  shrext_cmds=.dll
11624 >  need_version=no
11625    need_lib_prefix=no
11626 <  library_names_spec='$libname${shared_ext} $libname.a'
11626 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11627 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11628 >    v=$($ECHO $release$versuffix | tr -d .-);
11629 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11630 >    $ECHO $n$v`$shared_ext'
11631 >  library_names_spec='${libname}_dll.$libext'
11632    dynamic_linker='OS/2 ld.exe'
11633 <  shlibpath_var=LIBPATH
11633 >  shlibpath_var=BEGINLIBPATH
11634 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11635 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11636 >  postinstall_cmds='base_file=`basename \$file`~
11637 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11638 >    dldir=$destdir/`dirname \$dlpath`~
11639 >    test -d \$dldir || mkdir -p \$dldir~
11640 >    $install_prog $dir/$dlname \$dldir/$dlname~
11641 >    chmod a+x \$dldir/$dlname~
11642 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11643 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11644 >    fi'
11645 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11646 >    dlpath=$dir/\$dldll~
11647 >    $RM \$dlpath'
11648    ;;
11649  
11650   osf3* | osf4* | osf5*)
11651    version_type=osf
11652    need_lib_prefix=no
11653    need_version=no
11654 <  soname_spec='${libname}${release}${shared_ext}$major'
11655 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 >  soname_spec='$libname$release$shared_ext$major'
11655 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11656    shlibpath_var=LD_LIBRARY_PATH
11657    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11658 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11658 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11659    ;;
11660  
11661   rdos*)
# Line 11119 | Line 11666 | solaris*)
11666    version_type=linux # correct to gnu/linux during the next big refactor
11667    need_lib_prefix=no
11668    need_version=no
11669 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 <  soname_spec='${libname}${release}${shared_ext}$major'
11669 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11670 >  soname_spec='$libname$release$shared_ext$major'
11671    shlibpath_var=LD_LIBRARY_PATH
11672    shlibpath_overrides_runpath=yes
11673    hardcode_into_libs=yes
# Line 11130 | Line 11677 | solaris*)
11677  
11678   sunos4*)
11679    version_type=sunos
11680 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11680 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11681    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11682    shlibpath_var=LD_LIBRARY_PATH
11683    shlibpath_overrides_runpath=yes
11684 <  if test "$with_gnu_ld" = yes; then
11684 >  if test yes = "$with_gnu_ld"; then
11685      need_lib_prefix=no
11686    fi
11687    need_version=yes
# Line 11142 | Line 11689 | sunos4*)
11689  
11690   sysv4 | sysv4.3*)
11691    version_type=linux # correct to gnu/linux during the next big refactor
11692 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 <  soname_spec='${libname}${release}${shared_ext}$major'
11692 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11693 >  soname_spec='$libname$release$shared_ext$major'
11694    shlibpath_var=LD_LIBRARY_PATH
11695    case $host_vendor in
11696      sni)
# Line 11164 | Line 11711 | sysv4 | sysv4.3*)
11711    ;;
11712  
11713   sysv4*MP*)
11714 <  if test -d /usr/nec ;then
11714 >  if test -d /usr/nec; then
11715      version_type=linux # correct to gnu/linux during the next big refactor
11716 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11717 <    soname_spec='$libname${shared_ext}.$major'
11716 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11717 >    soname_spec='$libname$shared_ext.$major'
11718      shlibpath_var=LD_LIBRARY_PATH
11719    fi
11720    ;;
11721  
11722   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11723 <  version_type=freebsd-elf
11723 >  version_type=sco
11724    need_lib_prefix=no
11725    need_version=no
11726 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11727 <  soname_spec='${libname}${release}${shared_ext}$major'
11726 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11727 >  soname_spec='$libname$release$shared_ext$major'
11728    shlibpath_var=LD_LIBRARY_PATH
11729    shlibpath_overrides_runpath=yes
11730    hardcode_into_libs=yes
11731 <  if test "$with_gnu_ld" = yes; then
11731 >  if test yes = "$with_gnu_ld"; then
11732      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11733    else
11734      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11199 | Line 11746 | tpf*)
11746    version_type=linux # correct to gnu/linux during the next big refactor
11747    need_lib_prefix=no
11748    need_version=no
11749 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11750    shlibpath_var=LD_LIBRARY_PATH
11751    shlibpath_overrides_runpath=no
11752    hardcode_into_libs=yes
# Line 11207 | Line 11754 | tpf*)
11754  
11755   uts4*)
11756    version_type=linux # correct to gnu/linux during the next big refactor
11757 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 <  soname_spec='${libname}${release}${shared_ext}$major'
11757 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11758 >  soname_spec='$libname$release$shared_ext$major'
11759    shlibpath_var=LD_LIBRARY_PATH
11760    ;;
11761  
# Line 11218 | Line 11765 | uts4*)
11765   esac
11766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11767   $as_echo "$dynamic_linker" >&6; }
11768 < test "$dynamic_linker" = no && can_build_shared=no
11768 > test no = "$dynamic_linker" && can_build_shared=no
11769  
11770   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11771 < if test "$GCC" = yes; then
11771 > if test yes = "$GCC"; then
11772    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11773   fi
11774  
11775 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11776 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11775 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11776 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11777   fi
11778 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11779 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11778 >
11779 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11780 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11781   fi
11782  
11783 + # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11784 + configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11785 +
11786 + # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11787 + func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11788 +
11789 + # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11790 + configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11791 +
11792 +
11793 +
11794 +
11795 +
11796 +
11797  
11798  
11799  
# Line 11328 | Line 11890 | $as_echo_n "checking how to hardcode lib
11890   hardcode_action=
11891   if test -n "$hardcode_libdir_flag_spec" ||
11892     test -n "$runpath_var" ||
11893 <   test "X$hardcode_automatic" = "Xyes" ; then
11893 >   test yes = "$hardcode_automatic"; then
11894  
11895    # We can hardcode non-existent directories.
11896 <  if test "$hardcode_direct" != no &&
11896 >  if test no != "$hardcode_direct" &&
11897       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11898       # have to relink, otherwise we might link with an installed library
11899       # when we should be linking with a yet-to-be-installed one
11900 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11901 <     test "$hardcode_minus_L" != no; then
11900 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11901 >     test no != "$hardcode_minus_L"; then
11902      # Linking always hardcodes the temporary library directory.
11903      hardcode_action=relink
11904    else
# Line 11351 | Line 11913 | fi
11913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11914   $as_echo "$hardcode_action" >&6; }
11915  
11916 < if test "$hardcode_action" = relink ||
11917 <   test "$inherit_rpath" = yes; then
11916 > if test relink = "$hardcode_action" ||
11917 >   test yes = "$inherit_rpath"; then
11918    # Fast installation is not supported
11919    enable_fast_install=no
11920 < elif test "$shlibpath_overrides_runpath" = yes ||
11921 <     test "$enable_shared" = no; then
11920 > elif test yes = "$shlibpath_overrides_runpath" ||
11921 >     test no = "$enable_shared"; then
11922    # Fast installation is not necessary
11923    enable_fast_install=needless
11924   fi
# Line 11366 | Line 11928 | fi
11928  
11929  
11930  
11931 <  if test "x$enable_dlopen" != xyes; then
11931 >  if test yes != "$enable_dlopen"; then
11932    enable_dlopen=unknown
11933    enable_dlopen_self=unknown
11934    enable_dlopen_self_static=unknown
# Line 11376 | Line 11938 | else
11938  
11939    case $host_os in
11940    beos*)
11941 <    lt_cv_dlopen="load_add_on"
11941 >    lt_cv_dlopen=load_add_on
11942      lt_cv_dlopen_libs=
11943      lt_cv_dlopen_self=yes
11944      ;;
11945  
11946    mingw* | pw32* | cegcc*)
11947 <    lt_cv_dlopen="LoadLibrary"
11947 >    lt_cv_dlopen=LoadLibrary
11948      lt_cv_dlopen_libs=
11949      ;;
11950  
11951    cygwin*)
11952 <    lt_cv_dlopen="dlopen"
11952 >    lt_cv_dlopen=dlopen
11953      lt_cv_dlopen_libs=
11954      ;;
11955  
11956    darwin*)
11957 <  # if libdl is installed we need to link against it
11957 >    # if libdl is installed we need to link against it
11958      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11959   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11960   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11430 | Line 11992 | fi
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11993   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11994   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11995 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11995 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11996   else
11997  
11998 <    lt_cv_dlopen="dyld"
11998 >    lt_cv_dlopen=dyld
11999      lt_cv_dlopen_libs=
12000      lt_cv_dlopen_self=yes
12001  
# Line 11441 | Line 12003 | fi
12003  
12004      ;;
12005  
12006 +  tpf*)
12007 +    # Don't try to run any link tests for TPF.  We know it's impossible
12008 +    # because TPF is a cross-compiler, and we know how we open DSOs.
12009 +    lt_cv_dlopen=dlopen
12010 +    lt_cv_dlopen_libs=
12011 +    lt_cv_dlopen_self=no
12012 +    ;;
12013 +
12014    *)
12015      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12016   if test "x$ac_cv_func_shl_load" = xyes; then :
12017 <  lt_cv_dlopen="shl_load"
12017 >  lt_cv_dlopen=shl_load
12018   else
12019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12020   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11483 | Line 12053 | fi
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12054   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12055   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12056 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12056 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12057   else
12058    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12059   if test "x$ac_cv_func_dlopen" = xyes; then :
12060 <  lt_cv_dlopen="dlopen"
12060 >  lt_cv_dlopen=dlopen
12061   else
12062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12063   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11526 | Line 12096 | fi
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12097   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12098   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12099 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12099 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12100   else
12101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12102   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11565 | Line 12135 | fi
12135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12136   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12137   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12138 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12138 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12139   else
12140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12141   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11604 | Line 12174 | fi
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12175   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12176   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12177 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12177 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12178   fi
12179  
12180  
# Line 11625 | Line 12195 | fi
12195      ;;
12196    esac
12197  
12198 <  if test "x$lt_cv_dlopen" != xno; then
11629 <    enable_dlopen=yes
11630 <  else
12198 >  if test no = "$lt_cv_dlopen"; then
12199      enable_dlopen=no
12200 +  else
12201 +    enable_dlopen=yes
12202    fi
12203  
12204    case $lt_cv_dlopen in
12205    dlopen)
12206 <    save_CPPFLAGS="$CPPFLAGS"
12207 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12206 >    save_CPPFLAGS=$CPPFLAGS
12207 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12208  
12209 <    save_LDFLAGS="$LDFLAGS"
12209 >    save_LDFLAGS=$LDFLAGS
12210      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12211  
12212 <    save_LIBS="$LIBS"
12212 >    save_LIBS=$LIBS
12213      LIBS="$lt_cv_dlopen_libs $LIBS"
12214  
12215      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11647 | Line 12217 | $as_echo_n "checking whether a program c
12217   if ${lt_cv_dlopen_self+:} false; then :
12218    $as_echo_n "(cached) " >&6
12219   else
12220 <          if test "$cross_compiling" = yes; then :
12220 >          if test yes = "$cross_compiling"; then :
12221    lt_cv_dlopen_self=cross
12222   else
12223    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11694 | Line 12264 | else
12264   #  endif
12265   #endif
12266  
12267 < /* When -fvisbility=hidden is used, assume the code has been annotated
12267 > /* When -fvisibility=hidden is used, assume the code has been annotated
12268     correspondingly for the symbols needed.  */
12269 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12269 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12270   int fnord () __attribute__((visibility("default")));
12271   #endif
12272  
# Line 11726 | Line 12296 | _LT_EOF
12296    (eval $ac_link) 2>&5
12297    ac_status=$?
12298    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12299 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12300      (./conftest; exit; ) >&5 2>/dev/null
12301      lt_status=$?
12302      case x$lt_status in
# Line 11746 | Line 12316 | fi
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12317   $as_echo "$lt_cv_dlopen_self" >&6; }
12318  
12319 <    if test "x$lt_cv_dlopen_self" = xyes; then
12319 >    if test yes = "$lt_cv_dlopen_self"; then
12320        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12321        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12322   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12323   if ${lt_cv_dlopen_self_static+:} false; then :
12324    $as_echo_n "(cached) " >&6
12325   else
12326 <          if test "$cross_compiling" = yes; then :
12326 >          if test yes = "$cross_compiling"; then :
12327    lt_cv_dlopen_self_static=cross
12328   else
12329    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11800 | Line 12370 | else
12370   #  endif
12371   #endif
12372  
12373 < /* When -fvisbility=hidden is used, assume the code has been annotated
12373 > /* When -fvisibility=hidden is used, assume the code has been annotated
12374     correspondingly for the symbols needed.  */
12375 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12375 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12376   int fnord () __attribute__((visibility("default")));
12377   #endif
12378  
# Line 11832 | Line 12402 | _LT_EOF
12402    (eval $ac_link) 2>&5
12403    ac_status=$?
12404    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12405 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12406      (./conftest; exit; ) >&5 2>/dev/null
12407      lt_status=$?
12408      case x$lt_status in
# Line 11853 | Line 12423 | fi
12423   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12424      fi
12425  
12426 <    CPPFLAGS="$save_CPPFLAGS"
12427 <    LDFLAGS="$save_LDFLAGS"
12428 <    LIBS="$save_LIBS"
12426 >    CPPFLAGS=$save_CPPFLAGS
12427 >    LDFLAGS=$save_LDFLAGS
12428 >    LIBS=$save_LIBS
12429      ;;
12430    esac
12431  
# Line 11899 | Line 12469 | else
12469   # FIXME - insert some real tests, host_os isn't really good enough
12470    case $host_os in
12471    darwin*)
12472 <    if test -n "$STRIP" ; then
12472 >    if test -n "$STRIP"; then
12473        striplib="$STRIP -x"
12474        old_striplib="$STRIP -S"
12475        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 11927 | Line 12497 | fi
12497  
12498  
12499  
12500 <  # Report which library types will actually be built
12500 >  # Report what library types will actually be built
12501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12502   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 11935 | Line 12505 | $as_echo "$can_build_shared" >&6; }
12505  
12506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12507   $as_echo_n "checking whether to build shared libraries... " >&6; }
12508 <  test "$can_build_shared" = "no" && enable_shared=no
12508 >  test no = "$can_build_shared" && enable_shared=no
12509  
12510    # On AIX, shared libraries and static libraries use the same namespace, and
12511    # are all built from PIC.
12512    case $host_os in
12513    aix3*)
12514 <    test "$enable_shared" = yes && enable_static=no
12514 >    test yes = "$enable_shared" && enable_static=no
12515      if test -n "$RANLIB"; then
12516        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12517        postinstall_cmds='$RANLIB $lib'
# Line 11949 | Line 12519 | $as_echo_n "checking whether to build sh
12519      ;;
12520  
12521    aix[4-9]*)
12522 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12523 <      test "$enable_shared" = yes && enable_static=no
12522 >    if test ia64 != "$host_cpu"; then
12523 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12524 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12525 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12526 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12527 >      esac
12528      fi
12529      ;;
12530    esac
# Line 11960 | Line 12534 | $as_echo "$enable_shared" >&6; }
12534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12535   $as_echo_n "checking whether to build static libraries... " >&6; }
12536    # Make sure either enable_shared or enable_static is yes.
12537 <  test "$enable_shared" = yes || enable_static=yes
12537 >  test yes = "$enable_shared" || enable_static=yes
12538    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12539   $as_echo "$enable_static" >&6; }
12540  
# Line 11974 | Line 12548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12548   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12549   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12550  
12551 < CC="$lt_save_CC"
12551 > CC=$lt_save_CC
12552  
12553  
12554  
# Line 11998 | Line 12572 | CC="$lt_save_CC"
12572   # Only expand once:
12573  
12574  
12575 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12576 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12575 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12576 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12577   if ${libltdl_cv_shlibext+:} false; then :
12578    $as_echo_n "(cached) " >&6
12579   else
# Line 12026 | Line 12600 | cat >>confdefs.h <<_ACEOF
12600   _ACEOF
12601  
12602   fi
12603 + if test -n "$shared_archive_member_spec"; then
12604 +
12605 + cat >>confdefs.h <<_ACEOF
12606 + #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12607 + _ACEOF
12608 +
12609 + fi
12610  
12611 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12612 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12611 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12612 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12613   if ${lt_cv_module_path_var+:} false; then :
12614    $as_echo_n "(cached) " >&6
12615   else
12616 <  lt_cv_module_path_var="$shlibpath_var"
12616 >  lt_cv_module_path_var=$shlibpath_var
12617   fi
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12619   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 12049 | Line 12630 | $as_echo_n "checking for the default lib
12630   if ${lt_cv_sys_dlsearch_path+:} false; then :
12631    $as_echo_n "(cached) " >&6
12632   else
12633 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12633 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12634   fi
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12636   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 12057 | Line 12638 | if test -n "$lt_cv_sys_dlsearch_path"; t
12638    sys_dlsearch_path=
12639    for dir in $lt_cv_sys_dlsearch_path; do
12640      if test -z "$sys_dlsearch_path"; then
12641 <      sys_dlsearch_path="$dir"
12641 >      sys_dlsearch_path=$dir
12642      else
12643 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12643 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12644      fi
12645    done
12646  
# Line 12079 | Line 12660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12660   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12661   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12662  
12663 + lt_dlload_save_LIBS=$LIBS
12664  
12665   LIBADD_DLOPEN=
12666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
# Line 12137 | Line 12719 | if test "$ac_res" != no; then :
12719  
12720   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12721  
12722 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12723 <          LIBADD_DLOPEN="-ldl"
12722 >        if test "$ac_cv_search_dlopen" != "none required"; then
12723 >          LIBADD_DLOPEN=-ldl
12724          fi
12725 <        libltdl_cv_lib_dl_dlopen="yes"
12725 >        libltdl_cv_lib_dl_dlopen=yes
12726          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12727   else
12728    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12161 | Line 12743 | if ac_fn_c_try_link "$LINENO"; then :
12743  
12744   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12745  
12746 <            libltdl_cv_func_dlopen="yes"
12746 >            libltdl_cv_func_dlopen=yes
12747              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12748   else
12749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12204 | Line 12786 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12786  
12787   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12788  
12789 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12789 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12790                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12791   fi
12792  
# Line 12213 | Line 12795 | rm -f core conftest.err conftest.$ac_obj
12795      conftest$ac_exeext conftest.$ac_ext
12796   fi
12797  
12798 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12798 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12799   then
12800 <  lt_save_LIBS="$LIBS"
12800 >  lt_save_LIBS=$LIBS
12801    LIBS="$LIBS $LIBADD_DLOPEN"
12802    for ac_func in dlerror
12803   do :
# Line 12228 | Line 12810 | _ACEOF
12810   fi
12811   done
12812  
12813 <  LIBS="$lt_save_LIBS"
12813 >  LIBS=$lt_save_LIBS
12814   fi
12815  
12816  
# Line 12281 | Line 12863 | if test "x$ac_cv_lib_dld_shl_load" = xye
12863   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12864  
12865              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12866 <            LIBADD_SHL_LOAD="-ldld"
12866 >            LIBADD_SHL_LOAD=-ldld
12867   fi
12868  
12869   fi
# Line 12303 | Line 12885 | fi
12885   beos*)
12886    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12887    ;;
12888 < cygwin* | mingw* | os2* | pw32*)
12888 > cygwin* | mingw* | pw32*)
12889    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12890   "
12891   if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
# Line 12381 | Line 12963 | fi
12963   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12964  
12965  
12966 + LIBS=$lt_dlload_save_LIBS
12967   ac_ext=c
12968   ac_cpp='$CPP $CPPFLAGS'
12969   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12435 | Line 13018 | $as_echo "$lt_cv_sys_symbol_underscore"
13018    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13019  
13020  
13021 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
13022 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
13023 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12441 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13021 > if test yes = "$lt_cv_sys_symbol_underscore"; then
13022 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
13023 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13024   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
13025   if ${libltdl_cv_need_uscore+:} false; then :
13026    $as_echo_n "(cached) " >&6
13027   else
13028    libltdl_cv_need_uscore=unknown
13029 <          save_LIBS="$LIBS"
13030 <          LIBS="$LIBS $LIBADD_DLOPEN"
13031 <          if test "$cross_compiling" = yes; then :
13032 <  libltdl_cv_need_uscore=cross
12451 < else
12452 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12453 <  lt_status=$lt_dlunknown
12454 <  cat > conftest.$ac_ext <<_LT_EOF
13029 >      dlsym_uscore_save_LIBS=$LIBS
13030 >      LIBS="$LIBS $LIBADD_DLOPEN"
13031 >      libname=conftmod # stay within 8.3 filename limits!
13032 >      cat >$libname.$ac_ext <<_LT_EOF
13033   #line $LINENO "configure"
13034   #include "confdefs.h"
13035 + /* When -fvisibility=hidden is used, assume the code has been annotated
13036 +   correspondingly for the symbols needed.  */
13037 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13038 + int fnord () __attribute__((visibility("default")));
13039 + #endif
13040 + int fnord () { return 42; }
13041 + _LT_EOF
13042  
13043 +      # ltfn_module_cmds module_cmds
13044 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
13045 +      # $module_cmds or $archive_cmds type content.
13046 +      ltfn_module_cmds ()
13047 +      {( # subshell avoids polluting parent global environment
13048 +          module_cmds_save_ifs=$IFS; IFS='~'
13049 +          for cmd in $1; do
13050 +            IFS=$module_cmds_save_ifs
13051 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13052 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13053 +            major=; versuffix=; verstring=; deplibs=
13054 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13055 +            eval $cmd
13056 +          done
13057 +          IFS=$module_cmds_save_ifs
13058 +      )}
13059 +
13060 +      # Compile a loadable module using libtool macro expansion results.
13061 +      $CC $pic_flag -c $libname.$ac_ext
13062 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13063 +
13064 +      # Try to fetch fnord with dlsym().
13065 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13066 +      cat >conftest.$ac_ext <<_LT_EOF
13067 + #line $LINENO "configure"
13068 + #include "confdefs.h"
13069   #if HAVE_DLFCN_H
13070   #include <dlfcn.h>
13071   #endif
12461
13072   #include <stdio.h>
13073 <
12464 < #ifdef RTLD_GLOBAL
12465 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12466 < #else
13073 > #ifndef RTLD_GLOBAL
13074   #  ifdef DL_GLOBAL
13075 < #    define LT_DLGLOBAL         DL_GLOBAL
13075 > #    define RTLD_GLOBAL DL_GLOBAL
13076   #  else
13077 < #    define LT_DLGLOBAL         0
13077 > #    define RTLD_GLOBAL 0
13078   #  endif
13079   #endif
13080 <
13081 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13082 <   find out it does not work in some platform. */
12476 < #ifndef LT_DLLAZY_OR_NOW
12477 < #  ifdef RTLD_LAZY
12478 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13080 > #ifndef RTLD_NOW
13081 > #  ifdef DL_NOW
13082 > #    define RTLD_NOW DL_NOW
13083   #  else
13084 < #    ifdef DL_LAZY
12481 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12482 < #    else
12483 < #      ifdef RTLD_NOW
12484 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12485 < #      else
12486 < #        ifdef DL_NOW
12487 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12488 < #        else
12489 < #          define LT_DLLAZY_OR_NOW      0
12490 < #        endif
12491 < #      endif
12492 < #    endif
13084 > #    define RTLD_NOW 0
13085   #  endif
13086   #endif
13087 <
13088 < /* When -fvisbility=hidden is used, assume the code has been annotated
13089 <   correspondingly for the symbols needed.  */
13090 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13091 < int fnord () __attribute__((visibility("default")));
13092 < #endif
13093 <
13094 < int fnord () { return 42; }
13095 < int main ()
12504 < {
12505 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12506 <  int status = $lt_dlunknown;
12507 <
12508 <  if (self)
12509 <    {
12510 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13087 > int main () {
13088 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13089 >  int status = $libltdl_dlunknown;
13090 >  if (handle) {
13091 >    if (dlsym (handle, "fnord"))
13092 >      status = $libltdl_dlnouscore;
13093 >    else {
13094 >      if (dlsym (handle, "_fnord"))
13095 >        status = $libltdl_dluscore;
13096        else
13097 <        {
12513 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12514 <          else puts (dlerror ());
12515 <        }
12516 <      /* dlclose (self); */
13097 >        puts (dlerror ());
13098      }
13099 <  else
13099 >    dlclose (handle);
13100 >  } else
13101      puts (dlerror ());
12520
13102    return status;
13103   }
13104   _LT_EOF
13105 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13105 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13106    (eval $ac_link) 2>&5
13107    ac_status=$?
13108    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13109 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13110 <    (./conftest; exit; ) >&5 2>/dev/null
13111 <    lt_status=$?
13112 <    case x$lt_status in
13113 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13114 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13115 <      x$lt_dlunknown|x*)  ;;
13116 <    esac
13117 <  else :
13118 <    # compilation failed
13119 <
12539 <  fi
12540 < fi
12541 < rm -fr conftest*
12542 <
12543 <          LIBS="$save_LIBS"
13109 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13110 >        (./conftest; exit; ) >&5 2>/dev/null
13111 >        libltdl_status=$?
13112 >        case x$libltdl_status in
13113 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13114 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13115 >          x*) libltdl_cv_need_uscore=unknown ;;
13116 >        esac
13117 >      fi
13118 >      rm -rf conftest* $libname*
13119 >      LIBS=$dlsym_uscore_save_LIBS
13120  
13121   fi
13122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12548 | Line 13124 | $as_echo "$libltdl_cv_need_uscore" >&6;
13124    fi
13125   fi
13126  
13127 < if test x"$libltdl_cv_need_uscore" = xyes; then
13127 > if test yes = "$libltdl_cv_need_uscore"; then
13128  
13129   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13130  
# Line 12567 | Line 13143 | else
13143    case $host_os in
13144    aix3*|aix4.1.*|aix4.2.*)
13145      # Unknown whether this is true for these versions of AIX, but
13146 <    # we want this `case' here to explicitly catch those versions.
13146 >    # we want this 'case' here to explicitly catch those versions.
13147      lt_cv_sys_dlopen_deplibs=unknown
13148      ;;
13149    aix[4-9]*)
# Line 12580 | Line 13156 | else
13156        ;;
13157      esac
13158      ;;
13159 +  bitrig*)
13160 +    lt_cv_sys_dlopen_deplibs=yes
13161 +    ;;
13162    darwin*)
13163      # Assuming the user has installed a libdl from somewhere, this is true
13164      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12608 | Line 13187 | else
13187      # at 6.2 and later dlopen does load deplibs.
13188      lt_cv_sys_dlopen_deplibs=yes
13189      ;;
13190 <  netbsd*)
13190 >  netbsd* | netbsdelf*-gnu)
13191      lt_cv_sys_dlopen_deplibs=yes
13192      ;;
13193    openbsd*)
# Line 12617 | Line 13196 | else
13196    osf[1234]*)
13197      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13198      # it did *not* use an RPATH in a shared library to find objects the
13199 <    # library depends on, so we explicitly say `no'.
13199 >    # library depends on, so we explicitly say 'no'.
13200      lt_cv_sys_dlopen_deplibs=no
13201      ;;
13202    osf5.0|osf5.0a|osf5.1)
# Line 12626 | Line 13205 | else
13205      # that the library depends on, but there's no easy way to know if that
13206      # patch is installed.  Since this is the case, all we can really
13207      # say is unknown -- it depends on the patch being installed.  If
13208 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13208 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13209      lt_cv_sys_dlopen_deplibs=unknown
13210      ;;
13211    osf*)
13212      # the two cases above should catch all versions of osf <= 5.1.  Read
13213      # the comments above for what we know about them.
13214      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13215 <    # is used to find them so we can finally say `yes'.
13215 >    # is used to find them so we can finally say 'yes'.
13216      lt_cv_sys_dlopen_deplibs=yes
13217      ;;
13218    qnx*)
# Line 12650 | Line 13229 | else
13229   fi
13230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13231   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13232 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13232 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13233  
13234   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13235  
13236   fi
13237  
12659 :
13238  
13239   for ac_header in argz.h
13240   do :
# Line 12693 | Line 13271 | $as_echo "#define __error_t_defined 1" >
13271   fi
13272  
13273  
13274 < ARGZ_H=
13274 > LT_ARGZ_H=
13275   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13276          argz_next argz_stringify
13277   do :
# Line 12705 | Line 13283 | if eval test \"x\$"$as_ac_var"\" = x"yes
13283   _ACEOF
13284  
13285   else
13286 <  ARGZ_H=argz.h;
13286 >  LT_ARGZ_H=lt__argz.h;
13287  
13288 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13288 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13289  
13290   fi
13291   done
13292  
13293  
13294 < if test -z "$ARGZ_H"; then :
13294 > if test -z "$LT_ARGZ_H"; then :
13295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13296   $as_echo_n "checking if argz actually works... " >&6; }
13297   if ${lt_cv_sys_argz_works+:} false; then :
# Line 12722 | Line 13300 | else
13300    case $host_os in #(
13301           *cygwin*)
13302             lt_cv_sys_argz_works=no
13303 <           if test "$cross_compiling" != no; then
13303 >           if test no != "$cross_compiling"; then
13304               lt_cv_sys_argz_works="guessing no"
13305             else
13306               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12733 | Line 13311 | else
13311               lt_os_major=${2-0}
13312               lt_os_minor=${3-0}
13313               lt_os_micro=${4-0}
13314 <             if test "$lt_os_major" -gt 1 \
13315 <                || { test "$lt_os_major" -eq 1 \
13316 <                  && { test "$lt_os_minor" -gt 5 \
13317 <                    || { test "$lt_os_minor" -eq 5 \
13318 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13314 >             if test 1 -lt "$lt_os_major" \
13315 >                || { test 1 -eq "$lt_os_major" \
13316 >                  && { test 5 -lt "$lt_os_minor" \
13317 >                    || { test 5 -eq "$lt_os_minor" \
13318 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13319                 lt_cv_sys_argz_works=yes
13320               fi
13321             fi
# Line 12747 | Line 13325 | else
13325   fi
13326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13327   $as_echo "$lt_cv_sys_argz_works" >&6; }
13328 <     if test "$lt_cv_sys_argz_works" = yes; then :
13328 >     if test yes = "$lt_cv_sys_argz_works"; then :
13329  
13330   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13331  
13332   else
13333 <  ARGZ_H=argz.h
13333 >  LT_ARGZ_H=lt__argz.h
13334  
13335  
13336 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13336 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13337  
13338   fi
13339   fi
# Line 12776 | Line 13354 | else
13354   fi
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13356   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13357 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13357 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13358  
13359   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13360  
# Line 12800 | Line 13378 | if test "${with_included_ltdl+set}" = se
13378   fi
13379  
13380  
13381 < if test "x$with_included_ltdl" != xyes; then
13381 > if test yes != "$with_included_ltdl"; then
13382    # We are not being forced to use the included libltdl sources, so
13383    # decide whether there is a useful installed version we can use.
13384    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 12876 | Line 13454 | fi
13454   if test -n "$with_ltdl_include"; then
13455    if test -f "$with_ltdl_include/ltdl.h"; then :
13456    else
13457 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13457 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13458    fi
13459   else
13460    with_ltdl_include=no
# Line 12892 | Line 13470 | fi
13470   if test -n "$with_ltdl_lib"; then
13471    if test -f "$with_ltdl_lib/libltdl.la"; then :
13472    else
13473 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13473 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13474    fi
13475   else
13476    with_ltdl_lib=no
# Line 12905 | Line 13483 | case ,$with_included_ltdl,$with_ltdl_inc
13483    "") enable_ltdl_convenience=yes
13484        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13485   esac
13486 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13486 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13487   LTDLDEPS=$LIBLTDL
13488 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13488 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13489  
13490  
13491  
13492  
13493  
13494   # For backwards non-gettext consistent compatibility...
13495 < INCLTDL="$LTDLINCL"
13495 > INCLTDL=$LTDLINCL
13496  
13497  
13498          ;;
# Line 12929 | Line 13507 | $as_echo "#define HAVE_LTDL 1" >>confdef
13507          LTDLINCL=
13508          ;;
13509    ,no*,no,*)
13510 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13510 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13511          ;;
13512    *)    with_included_ltdl=no
13513          LIBLTDL="-L$with_ltdl_lib -lltdl"
13514          LTDLDEPS=
13515 <        LTDLINCL="-I$with_ltdl_include"
13515 >        LTDLINCL=-I$with_ltdl_include
13516          ;;
13517   esac
13518 < INCLTDL="$LTDLINCL"
13518 > INCLTDL=$LTDLINCL
13519  
13520   # Report our decision...
13521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 12957 | Line 13535 | if test "${enable_ltdl_install+set}" = s
13535   fi
13536  
13537  
13538 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13538 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13539    *yes*) ;;
13540    *) enable_ltdl_convenience=yes ;;
13541   esac
13542  
13543 < if test x"${enable_ltdl_install-no}" != xno; then
13543 > if test no != "${enable_ltdl_install-no}"; then
13544    INSTALL_LTDL_TRUE=
13545    INSTALL_LTDL_FALSE='#'
13546   else
# Line 12970 | Line 13548 | else
13548    INSTALL_LTDL_FALSE=
13549   fi
13550  
13551 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13551 >  if test no != "${enable_ltdl_convenience-no}"; then
13552    CONVENIENCE_LTDL_TRUE=
13553    CONVENIENCE_LTDL_FALSE='#'
13554   else
# Line 13072 | Line 13650 | LIBTOOL="$LIBTOOL --silent"
13650  
13651   # Checks for libraries.
13652  
13653 +
13654 +  if test "X$CC" != "X"; then
13655 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13656 + $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13657 + if ${ssp_cv_cc+:} false; then :
13658 +  $as_echo_n "(cached) " >&6
13659 + else
13660 +  ssp_old_cflags="$CFLAGS"
13661 +       CFLAGS="$CFLAGS -fstack-protector-strong"
13662 +       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 + /* end confdefs.h.  */
13664 +
13665 + int
13666 + main ()
13667 + {
13668 +
13669 +  ;
13670 +  return 0;
13671 + }
13672 + _ACEOF
13673 + if ac_fn_c_try_compile "$LINENO"; then :
13674 +  ssp_cv_cc=yes
13675 + else
13676 +  ssp_cv_cc=no
13677 + fi
13678 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 +       CFLAGS="$ssp_old_cflags"
13680 +
13681 + fi
13682 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13683 + $as_echo "$ssp_cv_cc" >&6; }
13684 +    if test $ssp_cv_cc = yes; then
13685 +      CFLAGS="$CFLAGS -fstack-protector-strong"
13686 +
13687 + $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13688 +
13689 +    else
13690 +      unset ssp_cv_cc
13691 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13692 + $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13693 + if ${ssp_cv_cc+:} false; then :
13694 +  $as_echo_n "(cached) " >&6
13695 + else
13696 +  ssp_old_cflags="$CFLAGS"
13697 +         CFLAGS="$CFLAGS -fstack-protector"
13698 +         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 + /* end confdefs.h.  */
13700 +
13701 + int
13702 + main ()
13703 + {
13704 +
13705 +  ;
13706 +  return 0;
13707 + }
13708 + _ACEOF
13709 + if ac_fn_c_try_compile "$LINENO"; then :
13710 +  ssp_cv_cc=yes
13711 + else
13712 +  ssp_cv_cc=no
13713 + fi
13714 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 +         CFLAGS="$ssp_old_cflags"
13716 +
13717 + fi
13718 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13719 + $as_echo "$ssp_cv_cc" >&6; }
13720 +      if test $ssp_cv_cc = yes; then
13721 +        CFLAGS="$CFLAGS -fstack-protector"
13722 +
13723 + $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13724 +
13725 +      fi
13726 +    fi
13727 +  fi
13728 +
13729 +
13730 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13731 + $as_echo_n "checking whether libssp exists... " >&6; }
13732 + if ${ssp_cv_lib+:} false; then :
13733 +  $as_echo_n "(cached) " >&6
13734 + else
13735 +  ssp_old_libs="$LIBS"
13736 +     LIBS="$LIBS -lssp"
13737 +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 + /* end confdefs.h.  */
13739 +
13740 + int
13741 + main ()
13742 + {
13743 +
13744 +  ;
13745 +  return 0;
13746 + }
13747 + _ACEOF
13748 + if ac_fn_c_try_link "$LINENO"; then :
13749 +  ssp_cv_lib=yes
13750 + else
13751 +  ssp_cv_lib=no
13752 + fi
13753 + rm -f core conftest.err conftest.$ac_objext \
13754 +    conftest$ac_exeext conftest.$ac_ext
13755 +     LIBS="$ssp_old_libs"
13756 +
13757 + fi
13758 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13759 + $as_echo "$ssp_cv_lib" >&6; }
13760 +  if test $ssp_cv_lib = yes; then
13761 +    LIBS="$LIBS -lssp"
13762 +  fi
13763 +
13764 +
13765    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13766   if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13767  
# Line 13254 | Line 13944 | else
13944    as_fn_error $? "socket library not found" "$LINENO" 5
13945   fi
13946  
13257  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13258   #include <sys/socket.h>
13259   #include <netdb.h>
13260
13261 "
13262 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_STRUCT_SOCKADDR_IN 1
13266 _ACEOF
13267
13268
13269 fi
13270 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13271   #include <sys/socket.h>
13272   #include <netdb.h>
13273
13274 "
13275 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13276
13277 cat >>confdefs.h <<_ACEOF
13278 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13279 _ACEOF
13280
13281
13282 fi
13283 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13284   #include <sys/socket.h>
13285   #include <netdb.h>
13286
13287 "
13288 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13289
13290 cat >>confdefs.h <<_ACEOF
13291 #define HAVE_STRUCT_ADDRINFO 1
13292 _ACEOF
13293
13294
13295 fi
13296
13297  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13298  <sys/socket.h>
13299 "
13300 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13301
13302 cat >>confdefs.h <<_ACEOF
13303 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13304 _ACEOF
13305
13306
13307 fi
13308
13309
13310
13311  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13312 "
13313 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13314
13315 $as_echo "#define IPV6 1" >>confdefs.h
13316
13317 fi
13318
13947  
13948  
13949   # Checks for typedefs, structures, and compiler characteristics.
# Line 13600 | Line 14228 | done
14228  
14229  
14230  
13603
13604
13605
13606
14231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14232   $as_echo_n "checking for library containing crypt... " >&6; }
14233   if ${ac_cv_search_crypt+:} false; then :
# Line 13661 | Line 14285 | if test "$ac_res" != no; then :
14285   fi
14286  
14287  
14288 < # Check whether --enable-libGeoIP was given.
14289 < if test "${enable_libGeoIP+set}" = set; then :
14290 <  enableval=$enable_libGeoIP;
14291 < else
14292 <  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14293 < if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14294 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
14295 < $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
14296 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14288 > # Argument processing.
14289 >
14290 >  desired_iopoll_mechanism="none"
14291 >
14292 >  # Check whether --enable-kqueue was given.
14293 > if test "${enable_kqueue+set}" = set; then :
14294 >  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14295 > fi
14296 >
14297 >  # Check whether --enable-epoll was given.
14298 > if test "${enable_epoll+set}" = set; then :
14299 >  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14300 > fi
14301 >
14302 >  # Check whether --enable-devpoll was given.
14303 > if test "${enable_devpoll+set}" = set; then :
14304 >  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14305 > fi
14306 >
14307 >  # Check whether --enable-poll was given.
14308 > if test "${enable_poll+set}" = set; then :
14309 >  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14310 > fi
14311 >
14312 >
14313 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14314 > $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14315 >
14316 >  iopoll_mechanism_none=0
14317 >
14318 > cat >>confdefs.h <<_ACEOF
14319 > #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14320 > _ACEOF
14321 >
14322 >
14323 >  iopoll_mechanism_kqueue=1
14324 >
14325 > cat >>confdefs.h <<_ACEOF
14326 > #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14327 > _ACEOF
14328 >
14329 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 > /* end confdefs.h.  */
14331 > /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14332 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14333 > #define kevent innocuous_kevent
14334 >
14335 > /* System header to define __stub macros and hopefully few prototypes,
14336 >    which can conflict with char kevent (); below.
14337 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14338 >    <limits.h> exists even on freestanding compilers.  */
14339 >
14340 > #ifdef __STDC__
14341 > # include <limits.h>
14342 > #else
14343 > # include <assert.h>
14344 > #endif
14345 >
14346 > #undef kevent
14347 >
14348 > /* Override any GCC internal prototype to avoid an error.
14349 >   Use char because int might match the return type of a GCC
14350 >   builtin and then its argument prototype would still apply.  */
14351 > #ifdef __cplusplus
14352 > extern "C"
14353 > #endif
14354 > char kevent ();
14355 > /* The GNU C library defines this for functions which it implements
14356 >    to always fail with ENOSYS.  Some functions are actually named
14357 >    something starting with __ and the normal name is an alias.  */
14358 > #if defined __stub_kevent || defined __stub___kevent
14359 > choke me
14360 > #endif
14361 >
14362 > int
14363 > main ()
14364 > {
14365 > return kevent ();
14366 >  ;
14367 >  return 0;
14368 > }
14369 > _ACEOF
14370 > if ac_fn_c_try_link "$LINENO"; then :
14371 >  is_kqueue_mechanism_available="yes"
14372 > else
14373 >  is_kqueue_mechanism_available="no"
14374 > fi
14375 > rm -f core conftest.err conftest.$ac_objext \
14376 >    conftest$ac_exeext conftest.$ac_ext
14377 >
14378 >  iopoll_mechanism_epoll=2
14379 >
14380 > cat >>confdefs.h <<_ACEOF
14381 > #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14382 > _ACEOF
14383 >
14384 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 > /* end confdefs.h.  */
14386 > #include <sys/epoll.h>
14387 > int
14388 > main ()
14389 > {
14390 > epoll_create1(EPOLL_CLOEXEC);
14391 >  ;
14392 >  return 0;
14393 > }
14394 > _ACEOF
14395 > if ac_fn_c_try_link "$LINENO"; then :
14396 >  is_epoll_mechanism_available="yes"
14397 > else
14398 >  is_epoll_mechanism_available="no"
14399 > fi
14400 > rm -f core conftest.err conftest.$ac_objext \
14401 >    conftest$ac_exeext conftest.$ac_ext
14402 >
14403 >  iopoll_mechanism_devpoll=3
14404 >
14405 > cat >>confdefs.h <<_ACEOF
14406 > #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14407 > _ACEOF
14408 >
14409 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 > /* end confdefs.h.  */
14411 > #include <devpoll.h>
14412 > int
14413 > main ()
14414 > {
14415 >
14416 >  ;
14417 >  return 0;
14418 > }
14419 > _ACEOF
14420 > if ac_fn_c_try_compile "$LINENO"; then :
14421 >  is_devpoll_mechanism_available="yes"
14422 > else
14423 >  is_devpoll_mechanism_available="no"
14424 > fi
14425 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 >  if test "$is_devpoll_mechanism_available" = "yes" ; then
14427 >
14428 > $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14429 >
14430 >  fi
14431 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 > /* end confdefs.h.  */
14433 > #include <sys/devpoll.h>
14434 > int
14435 > main ()
14436 > {
14437 >
14438 >  ;
14439 >  return 0;
14440 > }
14441 > _ACEOF
14442 > if ac_fn_c_try_compile "$LINENO"; then :
14443 >  is_devpoll_mechanism_available="yes"
14444 > else
14445 >  is_devpoll_mechanism_available="no"
14446 > fi
14447 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448 >  if test "$is_devpoll_mechanism_available" = "yes" ; then
14449 >
14450 > $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14451 >
14452 >  fi
14453 >
14454 >  iopoll_mechanism_poll=4
14455 >
14456 > cat >>confdefs.h <<_ACEOF
14457 > #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14458 > _ACEOF
14459 >
14460 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 > /* end confdefs.h.  */
14462 > /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14463 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14464 > #define poll innocuous_poll
14465 >
14466 > /* System header to define __stub macros and hopefully few prototypes,
14467 >    which can conflict with char poll (); below.
14468 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14469 >    <limits.h> exists even on freestanding compilers.  */
14470 >
14471 > #ifdef __STDC__
14472 > # include <limits.h>
14473 > #else
14474 > # include <assert.h>
14475 > #endif
14476 >
14477 > #undef poll
14478 >
14479 > /* Override any GCC internal prototype to avoid an error.
14480 >   Use char because int might match the return type of a GCC
14481 >   builtin and then its argument prototype would still apply.  */
14482 > #ifdef __cplusplus
14483 > extern "C"
14484 > #endif
14485 > char poll ();
14486 > /* The GNU C library defines this for functions which it implements
14487 >    to always fail with ENOSYS.  Some functions are actually named
14488 >    something starting with __ and the normal name is an alias.  */
14489 > #if defined __stub_poll || defined __stub___poll
14490 > choke me
14491 > #endif
14492 >
14493 > int
14494 > main ()
14495 > {
14496 > return poll ();
14497 >  ;
14498 >  return 0;
14499 > }
14500 > _ACEOF
14501 > if ac_fn_c_try_link "$LINENO"; then :
14502 >  is_poll_mechanism_available="yes"
14503 > else
14504 >  is_poll_mechanism_available="no"
14505 > fi
14506 > rm -f core conftest.err conftest.$ac_objext \
14507 >    conftest$ac_exeext conftest.$ac_ext
14508 >
14509 >  optimal_iopoll_mechanism="none"
14510 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14511 >    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14512 >    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14513 >      optimal_iopoll_mechanism="$mechanism"
14514 >      break
14515 >    fi
14516 >  done
14517 >
14518 >  if test "$desired_iopoll_mechanism" = "none" ; then
14519 >    if test "$optimal_iopoll_mechanism" = "none" ; then
14520 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14521 > $as_echo "none" >&6; }
14522 >      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14523 >    else
14524 >      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14525 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14526 > $as_echo "$selected_iopoll_mechanism" >&6; }
14527 >    fi
14528 >  else
14529 >    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14530 >    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14531 >      selected_iopoll_mechanism=$desired_iopoll_mechanism
14532 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14533 > $as_echo "$selected_iopoll_mechanism" >&6; }
14534 >    else
14535 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14536 > $as_echo "none" >&6; }
14537 >      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14538 >    fi
14539 >  fi
14540 >
14541 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14542 >
14543 > cat >>confdefs.h <<_ACEOF
14544 > #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14545 > _ACEOF
14546 >
14547 >
14548 >
14549 >  # Check whether --enable-assert was given.
14550 > if test "${enable_assert+set}" = set; then :
14551 >  enableval=$enable_assert; assert=$enableval
14552 > else
14553 >  assert=no
14554 > fi
14555 >
14556 >
14557 >  if test "$assert" = "no"; then :
14558 >
14559 > $as_echo "#define NDEBUG 1" >>confdefs.h
14560 >
14561 > fi
14562 >
14563 >
14564 >  # Check whether --enable-debugging was given.
14565 > if test "${enable_debugging+set}" = set; then :
14566 >  enableval=$enable_debugging; debugging="$enableval"
14567 > else
14568 >  debugging="no"
14569 > fi
14570 >
14571 >
14572 >  if test "$debugging" = "yes"; then :
14573 >
14574 >    CFLAGS="-Wall -g -O0"
14575 >
14576 > fi
14577 >
14578 >
14579 >  # Check whether --enable-warnings was given.
14580 > if test "${enable_warnings+set}" = set; then :
14581 >  enableval=$enable_warnings; warnings="$enableval"
14582 > else
14583 >  warnings="no"
14584 > fi
14585 >
14586 >
14587 >  if test "$warnings" = "yes"; then :
14588 >
14589 >
14590 >
14591 >
14592 >
14593 > for flag in -Wall; do
14594 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14595 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14596 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14597 > if eval \${$as_CACHEVAR+:} false; then :
14598 >  $as_echo_n "(cached) " >&6
14599 > else
14600 >
14601 >  ax_check_save_flags=$CFLAGS
14602 >  CFLAGS="$CFLAGS  $flag"
14603 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 > /* end confdefs.h.  */
14605 >
14606 > int
14607 > main ()
14608 > {
14609 >
14610 >  ;
14611 >  return 0;
14612 > }
14613 > _ACEOF
14614 > if ac_fn_c_try_compile "$LINENO"; then :
14615 >  eval "$as_CACHEVAR=yes"
14616 > else
14617 >  eval "$as_CACHEVAR=no"
14618 > fi
14619 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620 >  CFLAGS=$ax_check_save_flags
14621 > fi
14622 > eval ac_res=\$$as_CACHEVAR
14623 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14624 > $as_echo "$ac_res" >&6; }
14625 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14626 >
14627 > if ${CFLAGS+:} false; then :
14628 >
14629 >  case " $CFLAGS " in #(
14630 >  *" $flag "*) :
14631 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14632 >  (: CFLAGS already contains $flag) 2>&5
14633 >  ac_status=$?
14634 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14635 >  test $ac_status = 0; } ;; #(
14636 >  *) :
14637 >
14638 >     as_fn_append CFLAGS " $flag"
14639 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14640 >  (: CFLAGS="$CFLAGS") 2>&5
14641 >  ac_status=$?
14642 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 >  test $ac_status = 0; }
14644 >     ;;
14645 > esac
14646 >
14647 > else
14648 >
14649 >  CFLAGS=$flag
14650 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14651 >  (: CFLAGS="$CFLAGS") 2>&5
14652 >  ac_status=$?
14653 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654 >  test $ac_status = 0; }
14655 >
14656 > fi
14657 >
14658 > else
14659 >  :
14660 > fi
14661 >
14662 > done
14663 >
14664 >
14665 >
14666 >
14667 >
14668 > for flag in -Wbad-function-cast; do
14669 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14670 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14671 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14672 > if eval \${$as_CACHEVAR+:} false; then :
14673 >  $as_echo_n "(cached) " >&6
14674 > else
14675 >
14676 >  ax_check_save_flags=$CFLAGS
14677 >  CFLAGS="$CFLAGS  $flag"
14678 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 > /* end confdefs.h.  */
14680 >
14681 > int
14682 > main ()
14683 > {
14684 >
14685 >  ;
14686 >  return 0;
14687 > }
14688 > _ACEOF
14689 > if ac_fn_c_try_compile "$LINENO"; then :
14690 >  eval "$as_CACHEVAR=yes"
14691 > else
14692 >  eval "$as_CACHEVAR=no"
14693 > fi
14694 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695 >  CFLAGS=$ax_check_save_flags
14696 > fi
14697 > eval ac_res=\$$as_CACHEVAR
14698 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14699 > $as_echo "$ac_res" >&6; }
14700 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14701 >
14702 > if ${CFLAGS+:} false; then :
14703 >
14704 >  case " $CFLAGS " in #(
14705 >  *" $flag "*) :
14706 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14707 >  (: CFLAGS already contains $flag) 2>&5
14708 >  ac_status=$?
14709 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14710 >  test $ac_status = 0; } ;; #(
14711 >  *) :
14712 >
14713 >     as_fn_append CFLAGS " $flag"
14714 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14715 >  (: CFLAGS="$CFLAGS") 2>&5
14716 >  ac_status=$?
14717 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718 >  test $ac_status = 0; }
14719 >     ;;
14720 > esac
14721 >
14722 > else
14723 >
14724 >  CFLAGS=$flag
14725 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14726 >  (: CFLAGS="$CFLAGS") 2>&5
14727 >  ac_status=$?
14728 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14729 >  test $ac_status = 0; }
14730 >
14731 > fi
14732 >
14733 > else
14734 >  :
14735 > fi
14736 >
14737 > done
14738 >
14739 >
14740 >
14741 >
14742 >
14743 > for flag in -Wcast-align; do
14744 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14745 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14746 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14747 > if eval \${$as_CACHEVAR+:} false; then :
14748 >  $as_echo_n "(cached) " >&6
14749 > else
14750 >
14751 >  ax_check_save_flags=$CFLAGS
14752 >  CFLAGS="$CFLAGS  $flag"
14753 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 > /* end confdefs.h.  */
14755 >
14756 > int
14757 > main ()
14758 > {
14759 >
14760 >  ;
14761 >  return 0;
14762 > }
14763 > _ACEOF
14764 > if ac_fn_c_try_compile "$LINENO"; then :
14765 >  eval "$as_CACHEVAR=yes"
14766 > else
14767 >  eval "$as_CACHEVAR=no"
14768 > fi
14769 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 >  CFLAGS=$ax_check_save_flags
14771 > fi
14772 > eval ac_res=\$$as_CACHEVAR
14773 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14774 > $as_echo "$ac_res" >&6; }
14775 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14776 >
14777 > if ${CFLAGS+:} false; then :
14778 >
14779 >  case " $CFLAGS " in #(
14780 >  *" $flag "*) :
14781 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14782 >  (: CFLAGS already contains $flag) 2>&5
14783 >  ac_status=$?
14784 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14785 >  test $ac_status = 0; } ;; #(
14786 >  *) :
14787 >
14788 >     as_fn_append CFLAGS " $flag"
14789 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14790 >  (: CFLAGS="$CFLAGS") 2>&5
14791 >  ac_status=$?
14792 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14793 >  test $ac_status = 0; }
14794 >     ;;
14795 > esac
14796 >
14797 > else
14798 >
14799 >  CFLAGS=$flag
14800 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14801 >  (: CFLAGS="$CFLAGS") 2>&5
14802 >  ac_status=$?
14803 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14804 >  test $ac_status = 0; }
14805 >
14806 > fi
14807 >
14808 > else
14809 >  :
14810 > fi
14811 >
14812 > done
14813 >
14814 >
14815 >
14816 >
14817 >
14818 > for flag in -Wcast-function-type; do
14819 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14820 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14821 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14822 > if eval \${$as_CACHEVAR+:} false; then :
14823 >  $as_echo_n "(cached) " >&6
14824 > else
14825 >
14826 >  ax_check_save_flags=$CFLAGS
14827 >  CFLAGS="$CFLAGS  $flag"
14828 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 > /* end confdefs.h.  */
14830 >
14831 > int
14832 > main ()
14833 > {
14834 >
14835 >  ;
14836 >  return 0;
14837 > }
14838 > _ACEOF
14839 > if ac_fn_c_try_compile "$LINENO"; then :
14840 >  eval "$as_CACHEVAR=yes"
14841 > else
14842 >  eval "$as_CACHEVAR=no"
14843 > fi
14844 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 >  CFLAGS=$ax_check_save_flags
14846 > fi
14847 > eval ac_res=\$$as_CACHEVAR
14848 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14849 > $as_echo "$ac_res" >&6; }
14850 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14851 >
14852 > if ${CFLAGS+:} false; then :
14853 >
14854 >  case " $CFLAGS " in #(
14855 >  *" $flag "*) :
14856 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14857 >  (: CFLAGS already contains $flag) 2>&5
14858 >  ac_status=$?
14859 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14860 >  test $ac_status = 0; } ;; #(
14861 >  *) :
14862 >
14863 >     as_fn_append CFLAGS " $flag"
14864 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14865 >  (: CFLAGS="$CFLAGS") 2>&5
14866 >  ac_status=$?
14867 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14868 >  test $ac_status = 0; }
14869 >     ;;
14870 > esac
14871 >
14872 > else
14873 >
14874 >  CFLAGS=$flag
14875 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14876 >  (: CFLAGS="$CFLAGS") 2>&5
14877 >  ac_status=$?
14878 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14879 >  test $ac_status = 0; }
14880 >
14881 > fi
14882 >
14883 > else
14884 >  :
14885 > fi
14886 >
14887 > done
14888 >
14889 >
14890 >
14891 >
14892 >
14893 > for flag in -Wcast-qual; do
14894 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14895 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14896 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14897 > if eval \${$as_CACHEVAR+:} false; then :
14898 >  $as_echo_n "(cached) " >&6
14899 > else
14900 >
14901 >  ax_check_save_flags=$CFLAGS
14902 >  CFLAGS="$CFLAGS  $flag"
14903 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 > /* end confdefs.h.  */
14905 >
14906 > int
14907 > main ()
14908 > {
14909 >
14910 >  ;
14911 >  return 0;
14912 > }
14913 > _ACEOF
14914 > if ac_fn_c_try_compile "$LINENO"; then :
14915 >  eval "$as_CACHEVAR=yes"
14916 > else
14917 >  eval "$as_CACHEVAR=no"
14918 > fi
14919 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14920 >  CFLAGS=$ax_check_save_flags
14921 > fi
14922 > eval ac_res=\$$as_CACHEVAR
14923 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14924 > $as_echo "$ac_res" >&6; }
14925 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14926 >
14927 > if ${CFLAGS+:} false; then :
14928 >
14929 >  case " $CFLAGS " in #(
14930 >  *" $flag "*) :
14931 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14932 >  (: CFLAGS already contains $flag) 2>&5
14933 >  ac_status=$?
14934 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14935 >  test $ac_status = 0; } ;; #(
14936 >  *) :
14937 >
14938 >     as_fn_append CFLAGS " $flag"
14939 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14940 >  (: CFLAGS="$CFLAGS") 2>&5
14941 >  ac_status=$?
14942 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14943 >  test $ac_status = 0; }
14944 >     ;;
14945 > esac
14946 >
14947 > else
14948 >
14949 >  CFLAGS=$flag
14950 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14951 >  (: CFLAGS="$CFLAGS") 2>&5
14952 >  ac_status=$?
14953 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14954 >  test $ac_status = 0; }
14955 >
14956 > fi
14957 >
14958 > else
14959 >  :
14960 > fi
14961 >
14962 > done
14963 >
14964 >
14965 >
14966 >
14967 >
14968 > for flag in -Wclobbered; do
14969 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14970 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14971 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14972 > if eval \${$as_CACHEVAR+:} false; then :
14973 >  $as_echo_n "(cached) " >&6
14974 > else
14975 >
14976 >  ax_check_save_flags=$CFLAGS
14977 >  CFLAGS="$CFLAGS  $flag"
14978 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 > /* end confdefs.h.  */
14980 >
14981 > int
14982 > main ()
14983 > {
14984 >
14985 >  ;
14986 >  return 0;
14987 > }
14988 > _ACEOF
14989 > if ac_fn_c_try_compile "$LINENO"; then :
14990 >  eval "$as_CACHEVAR=yes"
14991 > else
14992 >  eval "$as_CACHEVAR=no"
14993 > fi
14994 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995 >  CFLAGS=$ax_check_save_flags
14996 > fi
14997 > eval ac_res=\$$as_CACHEVAR
14998 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14999 > $as_echo "$ac_res" >&6; }
15000 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15001 >
15002 > if ${CFLAGS+:} false; then :
15003 >
15004 >  case " $CFLAGS " in #(
15005 >  *" $flag "*) :
15006 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15007 >  (: CFLAGS already contains $flag) 2>&5
15008 >  ac_status=$?
15009 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010 >  test $ac_status = 0; } ;; #(
15011 >  *) :
15012 >
15013 >     as_fn_append CFLAGS " $flag"
15014 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15015 >  (: CFLAGS="$CFLAGS") 2>&5
15016 >  ac_status=$?
15017 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15018 >  test $ac_status = 0; }
15019 >     ;;
15020 > esac
15021 >
15022 > else
15023 >
15024 >  CFLAGS=$flag
15025 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15026 >  (: CFLAGS="$CFLAGS") 2>&5
15027 >  ac_status=$?
15028 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15029 >  test $ac_status = 0; }
15030 >
15031 > fi
15032 >
15033 > else
15034 >  :
15035 > fi
15036 >
15037 > done
15038 >
15039 >
15040 >
15041 >
15042 >
15043 > for flag in -Wduplicated-cond; do
15044 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15045 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15046 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15047 > if eval \${$as_CACHEVAR+:} false; then :
15048 >  $as_echo_n "(cached) " >&6
15049 > else
15050 >
15051 >  ax_check_save_flags=$CFLAGS
15052 >  CFLAGS="$CFLAGS  $flag"
15053 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 > /* end confdefs.h.  */
15055 >
15056 > int
15057 > main ()
15058 > {
15059 >
15060 >  ;
15061 >  return 0;
15062 > }
15063 > _ACEOF
15064 > if ac_fn_c_try_compile "$LINENO"; then :
15065 >  eval "$as_CACHEVAR=yes"
15066 > else
15067 >  eval "$as_CACHEVAR=no"
15068 > fi
15069 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070 >  CFLAGS=$ax_check_save_flags
15071 > fi
15072 > eval ac_res=\$$as_CACHEVAR
15073 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15074 > $as_echo "$ac_res" >&6; }
15075 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15076 >
15077 > if ${CFLAGS+:} false; then :
15078 >
15079 >  case " $CFLAGS " in #(
15080 >  *" $flag "*) :
15081 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15082 >  (: CFLAGS already contains $flag) 2>&5
15083 >  ac_status=$?
15084 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15085 >  test $ac_status = 0; } ;; #(
15086 >  *) :
15087 >
15088 >     as_fn_append CFLAGS " $flag"
15089 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15090 >  (: CFLAGS="$CFLAGS") 2>&5
15091 >  ac_status=$?
15092 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15093 >  test $ac_status = 0; }
15094 >     ;;
15095 > esac
15096 >
15097 > else
15098 >
15099 >  CFLAGS=$flag
15100 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15101 >  (: CFLAGS="$CFLAGS") 2>&5
15102 >  ac_status=$?
15103 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15104 >  test $ac_status = 0; }
15105 >
15106 > fi
15107 >
15108 > else
15109 >  :
15110 > fi
15111 >
15112 > done
15113 >
15114 >
15115 >
15116 >
15117 >
15118 > for flag in -Wempty-body; do
15119 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15120 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15121 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15122 > if eval \${$as_CACHEVAR+:} false; then :
15123 >  $as_echo_n "(cached) " >&6
15124 > else
15125 >
15126 >  ax_check_save_flags=$CFLAGS
15127 >  CFLAGS="$CFLAGS  $flag"
15128 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 > /* end confdefs.h.  */
15130 >
15131 > int
15132 > main ()
15133 > {
15134 >
15135 >  ;
15136 >  return 0;
15137 > }
15138 > _ACEOF
15139 > if ac_fn_c_try_compile "$LINENO"; then :
15140 >  eval "$as_CACHEVAR=yes"
15141 > else
15142 >  eval "$as_CACHEVAR=no"
15143 > fi
15144 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145 >  CFLAGS=$ax_check_save_flags
15146 > fi
15147 > eval ac_res=\$$as_CACHEVAR
15148 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15149 > $as_echo "$ac_res" >&6; }
15150 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15151 >
15152 > if ${CFLAGS+:} false; then :
15153 >
15154 >  case " $CFLAGS " in #(
15155 >  *" $flag "*) :
15156 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15157 >  (: CFLAGS already contains $flag) 2>&5
15158 >  ac_status=$?
15159 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15160 >  test $ac_status = 0; } ;; #(
15161 >  *) :
15162 >
15163 >     as_fn_append CFLAGS " $flag"
15164 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15165 >  (: CFLAGS="$CFLAGS") 2>&5
15166 >  ac_status=$?
15167 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15168 >  test $ac_status = 0; }
15169 >     ;;
15170 > esac
15171 >
15172 > else
15173 >
15174 >  CFLAGS=$flag
15175 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15176 >  (: CFLAGS="$CFLAGS") 2>&5
15177 >  ac_status=$?
15178 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15179 >  test $ac_status = 0; }
15180 >
15181 > fi
15182 >
15183 > else
15184 >  :
15185 > fi
15186 >
15187 > done
15188 >
15189 >
15190 >
15191 >
15192 >
15193 > for flag in -Wignored-qualifiers; do
15194 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15195 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15196 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15197 > if eval \${$as_CACHEVAR+:} false; then :
15198 >  $as_echo_n "(cached) " >&6
15199 > else
15200 >
15201 >  ax_check_save_flags=$CFLAGS
15202 >  CFLAGS="$CFLAGS  $flag"
15203 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204 > /* end confdefs.h.  */
15205 >
15206 > int
15207 > main ()
15208 > {
15209 >
15210 >  ;
15211 >  return 0;
15212 > }
15213 > _ACEOF
15214 > if ac_fn_c_try_compile "$LINENO"; then :
15215 >  eval "$as_CACHEVAR=yes"
15216 > else
15217 >  eval "$as_CACHEVAR=no"
15218 > fi
15219 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 >  CFLAGS=$ax_check_save_flags
15221 > fi
15222 > eval ac_res=\$$as_CACHEVAR
15223 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15224 > $as_echo "$ac_res" >&6; }
15225 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15226 >
15227 > if ${CFLAGS+:} false; then :
15228 >
15229 >  case " $CFLAGS " in #(
15230 >  *" $flag "*) :
15231 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15232 >  (: CFLAGS already contains $flag) 2>&5
15233 >  ac_status=$?
15234 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15235 >  test $ac_status = 0; } ;; #(
15236 >  *) :
15237 >
15238 >     as_fn_append CFLAGS " $flag"
15239 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15240 >  (: CFLAGS="$CFLAGS") 2>&5
15241 >  ac_status=$?
15242 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15243 >  test $ac_status = 0; }
15244 >     ;;
15245 > esac
15246 >
15247 > else
15248 >
15249 >  CFLAGS=$flag
15250 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15251 >  (: CFLAGS="$CFLAGS") 2>&5
15252 >  ac_status=$?
15253 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15254 >  test $ac_status = 0; }
15255 >
15256 > fi
15257 >
15258 > else
15259 >  :
15260 > fi
15261 >
15262 > done
15263 >
15264 >
15265 >
15266 >
15267 >
15268 > for flag in -Wlogical-op; do
15269 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15270 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15271 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15272 > if eval \${$as_CACHEVAR+:} false; then :
15273 >  $as_echo_n "(cached) " >&6
15274 > else
15275 >
15276 >  ax_check_save_flags=$CFLAGS
15277 >  CFLAGS="$CFLAGS  $flag"
15278 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 > /* end confdefs.h.  */
15280 >
15281 > int
15282 > main ()
15283 > {
15284 >
15285 >  ;
15286 >  return 0;
15287 > }
15288 > _ACEOF
15289 > if ac_fn_c_try_compile "$LINENO"; then :
15290 >  eval "$as_CACHEVAR=yes"
15291 > else
15292 >  eval "$as_CACHEVAR=no"
15293 > fi
15294 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15295 >  CFLAGS=$ax_check_save_flags
15296 > fi
15297 > eval ac_res=\$$as_CACHEVAR
15298 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15299 > $as_echo "$ac_res" >&6; }
15300 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15301 >
15302 > if ${CFLAGS+:} false; then :
15303 >
15304 >  case " $CFLAGS " in #(
15305 >  *" $flag "*) :
15306 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15307 >  (: CFLAGS already contains $flag) 2>&5
15308 >  ac_status=$?
15309 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15310 >  test $ac_status = 0; } ;; #(
15311 >  *) :
15312 >
15313 >     as_fn_append CFLAGS " $flag"
15314 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15315 >  (: CFLAGS="$CFLAGS") 2>&5
15316 >  ac_status=$?
15317 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15318 >  test $ac_status = 0; }
15319 >     ;;
15320 > esac
15321 >
15322 > else
15323 >
15324 >  CFLAGS=$flag
15325 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15326 >  (: CFLAGS="$CFLAGS") 2>&5
15327 >  ac_status=$?
15328 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15329 >  test $ac_status = 0; }
15330 >
15331 > fi
15332 >
15333 > else
15334 >  :
15335 > fi
15336 >
15337 > done
15338 >
15339 >
15340 >
15341 >
15342 >
15343 > for flag in -Wmissing-declarations; do
15344 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15345 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15346 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15347 > if eval \${$as_CACHEVAR+:} false; then :
15348 >  $as_echo_n "(cached) " >&6
15349 > else
15350 >
15351 >  ax_check_save_flags=$CFLAGS
15352 >  CFLAGS="$CFLAGS  $flag"
15353 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 > /* end confdefs.h.  */
15355 >
15356 > int
15357 > main ()
15358 > {
15359 >
15360 >  ;
15361 >  return 0;
15362 > }
15363 > _ACEOF
15364 > if ac_fn_c_try_compile "$LINENO"; then :
15365 >  eval "$as_CACHEVAR=yes"
15366 > else
15367 >  eval "$as_CACHEVAR=no"
15368 > fi
15369 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 >  CFLAGS=$ax_check_save_flags
15371 > fi
15372 > eval ac_res=\$$as_CACHEVAR
15373 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15374 > $as_echo "$ac_res" >&6; }
15375 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15376 >
15377 > if ${CFLAGS+:} false; then :
15378 >
15379 >  case " $CFLAGS " in #(
15380 >  *" $flag "*) :
15381 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15382 >  (: CFLAGS already contains $flag) 2>&5
15383 >  ac_status=$?
15384 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15385 >  test $ac_status = 0; } ;; #(
15386 >  *) :
15387 >
15388 >     as_fn_append CFLAGS " $flag"
15389 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15390 >  (: CFLAGS="$CFLAGS") 2>&5
15391 >  ac_status=$?
15392 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15393 >  test $ac_status = 0; }
15394 >     ;;
15395 > esac
15396 >
15397 > else
15398 >
15399 >  CFLAGS=$flag
15400 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15401 >  (: CFLAGS="$CFLAGS") 2>&5
15402 >  ac_status=$?
15403 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15404 >  test $ac_status = 0; }
15405 >
15406 > fi
15407 >
15408 > else
15409 >  :
15410 > fi
15411 >
15412 > done
15413 >
15414 >
15415 >
15416 >
15417 >
15418 > for flag in -Wmissing-field-initializers; do
15419 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15420 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15421 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15422 > if eval \${$as_CACHEVAR+:} false; then :
15423 >  $as_echo_n "(cached) " >&6
15424 > else
15425 >
15426 >  ax_check_save_flags=$CFLAGS
15427 >  CFLAGS="$CFLAGS  $flag"
15428 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 > /* end confdefs.h.  */
15430 >
15431 > int
15432 > main ()
15433 > {
15434 >
15435 >  ;
15436 >  return 0;
15437 > }
15438 > _ACEOF
15439 > if ac_fn_c_try_compile "$LINENO"; then :
15440 >  eval "$as_CACHEVAR=yes"
15441 > else
15442 >  eval "$as_CACHEVAR=no"
15443 > fi
15444 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 >  CFLAGS=$ax_check_save_flags
15446 > fi
15447 > eval ac_res=\$$as_CACHEVAR
15448 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15449 > $as_echo "$ac_res" >&6; }
15450 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15451 >
15452 > if ${CFLAGS+:} false; then :
15453 >
15454 >  case " $CFLAGS " in #(
15455 >  *" $flag "*) :
15456 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15457 >  (: CFLAGS already contains $flag) 2>&5
15458 >  ac_status=$?
15459 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15460 >  test $ac_status = 0; } ;; #(
15461 >  *) :
15462 >
15463 >     as_fn_append CFLAGS " $flag"
15464 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15465 >  (: CFLAGS="$CFLAGS") 2>&5
15466 >  ac_status=$?
15467 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15468 >  test $ac_status = 0; }
15469 >     ;;
15470 > esac
15471 >
15472 > else
15473 >
15474 >  CFLAGS=$flag
15475 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15476 >  (: CFLAGS="$CFLAGS") 2>&5
15477 >  ac_status=$?
15478 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15479 >  test $ac_status = 0; }
15480 >
15481 > fi
15482 >
15483 > else
15484 >  :
15485 > fi
15486 >
15487 > done
15488 >
15489 >
15490 >
15491 >
15492 >
15493 > for flag in -Wmissing-include-dirs; do
15494 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15495 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15496 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15497 > if eval \${$as_CACHEVAR+:} false; then :
15498 >  $as_echo_n "(cached) " >&6
15499 > else
15500 >
15501 >  ax_check_save_flags=$CFLAGS
15502 >  CFLAGS="$CFLAGS  $flag"
15503 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 > /* end confdefs.h.  */
15505 >
15506 > int
15507 > main ()
15508 > {
15509 >
15510 >  ;
15511 >  return 0;
15512 > }
15513 > _ACEOF
15514 > if ac_fn_c_try_compile "$LINENO"; then :
15515 >  eval "$as_CACHEVAR=yes"
15516 > else
15517 >  eval "$as_CACHEVAR=no"
15518 > fi
15519 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15520 >  CFLAGS=$ax_check_save_flags
15521 > fi
15522 > eval ac_res=\$$as_CACHEVAR
15523 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15524 > $as_echo "$ac_res" >&6; }
15525 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15526 >
15527 > if ${CFLAGS+:} false; then :
15528 >
15529 >  case " $CFLAGS " in #(
15530 >  *" $flag "*) :
15531 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15532 >  (: CFLAGS already contains $flag) 2>&5
15533 >  ac_status=$?
15534 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15535 >  test $ac_status = 0; } ;; #(
15536 >  *) :
15537 >
15538 >     as_fn_append CFLAGS " $flag"
15539 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15540 >  (: CFLAGS="$CFLAGS") 2>&5
15541 >  ac_status=$?
15542 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15543 >  test $ac_status = 0; }
15544 >     ;;
15545 > esac
15546 >
15547 > else
15548 >
15549 >  CFLAGS=$flag
15550 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15551 >  (: CFLAGS="$CFLAGS") 2>&5
15552 >  ac_status=$?
15553 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15554 >  test $ac_status = 0; }
15555 >
15556 > fi
15557 >
15558 > else
15559 >  :
15560 > fi
15561 >
15562 > done
15563 >
15564 >
15565 >
15566 >
15567 >
15568 > for flag in -Wmissing-parameter-type; do
15569 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15570 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15571 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15572 > if eval \${$as_CACHEVAR+:} false; then :
15573 >  $as_echo_n "(cached) " >&6
15574 > else
15575 >
15576 >  ax_check_save_flags=$CFLAGS
15577 >  CFLAGS="$CFLAGS  $flag"
15578 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 > /* end confdefs.h.  */
15580 >
15581 > int
15582 > main ()
15583 > {
15584 >
15585 >  ;
15586 >  return 0;
15587 > }
15588 > _ACEOF
15589 > if ac_fn_c_try_compile "$LINENO"; then :
15590 >  eval "$as_CACHEVAR=yes"
15591 > else
15592 >  eval "$as_CACHEVAR=no"
15593 > fi
15594 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15595 >  CFLAGS=$ax_check_save_flags
15596 > fi
15597 > eval ac_res=\$$as_CACHEVAR
15598 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15599 > $as_echo "$ac_res" >&6; }
15600 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15601 >
15602 > if ${CFLAGS+:} false; then :
15603 >
15604 >  case " $CFLAGS " in #(
15605 >  *" $flag "*) :
15606 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15607 >  (: CFLAGS already contains $flag) 2>&5
15608 >  ac_status=$?
15609 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15610 >  test $ac_status = 0; } ;; #(
15611 >  *) :
15612 >
15613 >     as_fn_append CFLAGS " $flag"
15614 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15615 >  (: CFLAGS="$CFLAGS") 2>&5
15616 >  ac_status=$?
15617 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15618 >  test $ac_status = 0; }
15619 >     ;;
15620 > esac
15621 >
15622 > else
15623 >
15624 >  CFLAGS=$flag
15625 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15626 >  (: CFLAGS="$CFLAGS") 2>&5
15627 >  ac_status=$?
15628 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15629 >  test $ac_status = 0; }
15630 >
15631 > fi
15632 >
15633 > else
15634 >  :
15635 > fi
15636 >
15637 > done
15638 >
15639 >
15640 >
15641 >
15642 >
15643 > for flag in -Wmissing-prototypes; do
15644 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15645 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15646 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15647 > if eval \${$as_CACHEVAR+:} false; then :
15648 >  $as_echo_n "(cached) " >&6
15649 > else
15650 >
15651 >  ax_check_save_flags=$CFLAGS
15652 >  CFLAGS="$CFLAGS  $flag"
15653 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 > /* end confdefs.h.  */
15655 >
15656 > int
15657 > main ()
15658 > {
15659 >
15660 >  ;
15661 >  return 0;
15662 > }
15663 > _ACEOF
15664 > if ac_fn_c_try_compile "$LINENO"; then :
15665 >  eval "$as_CACHEVAR=yes"
15666 > else
15667 >  eval "$as_CACHEVAR=no"
15668 > fi
15669 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 >  CFLAGS=$ax_check_save_flags
15671 > fi
15672 > eval ac_res=\$$as_CACHEVAR
15673 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15674 > $as_echo "$ac_res" >&6; }
15675 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15676 >
15677 > if ${CFLAGS+:} false; then :
15678 >
15679 >  case " $CFLAGS " in #(
15680 >  *" $flag "*) :
15681 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15682 >  (: CFLAGS already contains $flag) 2>&5
15683 >  ac_status=$?
15684 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15685 >  test $ac_status = 0; } ;; #(
15686 >  *) :
15687 >
15688 >     as_fn_append CFLAGS " $flag"
15689 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15690 >  (: CFLAGS="$CFLAGS") 2>&5
15691 >  ac_status=$?
15692 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693 >  test $ac_status = 0; }
15694 >     ;;
15695 > esac
15696 >
15697 > else
15698 >
15699 >  CFLAGS=$flag
15700 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15701 >  (: CFLAGS="$CFLAGS") 2>&5
15702 >  ac_status=$?
15703 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15704 >  test $ac_status = 0; }
15705 >
15706 > fi
15707 >
15708 > else
15709 >  :
15710 > fi
15711 >
15712 > done
15713 >
15714 >
15715 >
15716 >
15717 >
15718 > for flag in -Wnested-externs; do
15719 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15720 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15721 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15722 > if eval \${$as_CACHEVAR+:} false; then :
15723 >  $as_echo_n "(cached) " >&6
15724 > else
15725 >
15726 >  ax_check_save_flags=$CFLAGS
15727 >  CFLAGS="$CFLAGS  $flag"
15728 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 > /* end confdefs.h.  */
15730 >
15731 > int
15732 > main ()
15733 > {
15734 >
15735 >  ;
15736 >  return 0;
15737 > }
15738 > _ACEOF
15739 > if ac_fn_c_try_compile "$LINENO"; then :
15740 >  eval "$as_CACHEVAR=yes"
15741 > else
15742 >  eval "$as_CACHEVAR=no"
15743 > fi
15744 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745 >  CFLAGS=$ax_check_save_flags
15746 > fi
15747 > eval ac_res=\$$as_CACHEVAR
15748 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15749 > $as_echo "$ac_res" >&6; }
15750 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15751 >
15752 > if ${CFLAGS+:} false; then :
15753 >
15754 >  case " $CFLAGS " in #(
15755 >  *" $flag "*) :
15756 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15757 >  (: CFLAGS already contains $flag) 2>&5
15758 >  ac_status=$?
15759 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15760 >  test $ac_status = 0; } ;; #(
15761 >  *) :
15762 >
15763 >     as_fn_append CFLAGS " $flag"
15764 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15765 >  (: CFLAGS="$CFLAGS") 2>&5
15766 >  ac_status=$?
15767 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15768 >  test $ac_status = 0; }
15769 >     ;;
15770 > esac
15771 >
15772 > else
15773 >
15774 >  CFLAGS=$flag
15775 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15776 >  (: CFLAGS="$CFLAGS") 2>&5
15777 >  ac_status=$?
15778 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15779 >  test $ac_status = 0; }
15780 >
15781 > fi
15782 >
15783 > else
15784 >  :
15785 > fi
15786 >
15787 > done
15788 >
15789 >
15790 >
15791 >
15792 >
15793 > for flag in -Wold-style-declaration; do
15794 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15795 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15796 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15797 > if eval \${$as_CACHEVAR+:} false; then :
15798 >  $as_echo_n "(cached) " >&6
15799 > else
15800 >
15801 >  ax_check_save_flags=$CFLAGS
15802 >  CFLAGS="$CFLAGS  $flag"
15803 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 > /* end confdefs.h.  */
15805 >
15806 > int
15807 > main ()
15808 > {
15809 >
15810 >  ;
15811 >  return 0;
15812 > }
15813 > _ACEOF
15814 > if ac_fn_c_try_compile "$LINENO"; then :
15815 >  eval "$as_CACHEVAR=yes"
15816 > else
15817 >  eval "$as_CACHEVAR=no"
15818 > fi
15819 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15820 >  CFLAGS=$ax_check_save_flags
15821 > fi
15822 > eval ac_res=\$$as_CACHEVAR
15823 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15824 > $as_echo "$ac_res" >&6; }
15825 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15826 >
15827 > if ${CFLAGS+:} false; then :
15828 >
15829 >  case " $CFLAGS " in #(
15830 >  *" $flag "*) :
15831 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15832 >  (: CFLAGS already contains $flag) 2>&5
15833 >  ac_status=$?
15834 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15835 >  test $ac_status = 0; } ;; #(
15836 >  *) :
15837 >
15838 >     as_fn_append CFLAGS " $flag"
15839 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15840 >  (: CFLAGS="$CFLAGS") 2>&5
15841 >  ac_status=$?
15842 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15843 >  test $ac_status = 0; }
15844 >     ;;
15845 > esac
15846 >
15847 > else
15848 >
15849 >  CFLAGS=$flag
15850 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15851 >  (: CFLAGS="$CFLAGS") 2>&5
15852 >  ac_status=$?
15853 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15854 >  test $ac_status = 0; }
15855 >
15856 > fi
15857 >
15858 > else
15859 >  :
15860 > fi
15861 >
15862 > done
15863 >
15864 >
15865 >
15866 >
15867 >
15868 > for flag in -Woverride-init; do
15869 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15870 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15871 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15872 > if eval \${$as_CACHEVAR+:} false; then :
15873 >  $as_echo_n "(cached) " >&6
15874 > else
15875 >
15876 >  ax_check_save_flags=$CFLAGS
15877 >  CFLAGS="$CFLAGS  $flag"
15878 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 > /* end confdefs.h.  */
15880 >
15881 > int
15882 > main ()
15883 > {
15884 >
15885 >  ;
15886 >  return 0;
15887 > }
15888 > _ACEOF
15889 > if ac_fn_c_try_compile "$LINENO"; then :
15890 >  eval "$as_CACHEVAR=yes"
15891 > else
15892 >  eval "$as_CACHEVAR=no"
15893 > fi
15894 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 >  CFLAGS=$ax_check_save_flags
15896 > fi
15897 > eval ac_res=\$$as_CACHEVAR
15898 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15899 > $as_echo "$ac_res" >&6; }
15900 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15901 >
15902 > if ${CFLAGS+:} false; then :
15903 >
15904 >  case " $CFLAGS " in #(
15905 >  *" $flag "*) :
15906 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15907 >  (: CFLAGS already contains $flag) 2>&5
15908 >  ac_status=$?
15909 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910 >  test $ac_status = 0; } ;; #(
15911 >  *) :
15912 >
15913 >     as_fn_append CFLAGS " $flag"
15914 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15915 >  (: CFLAGS="$CFLAGS") 2>&5
15916 >  ac_status=$?
15917 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15918 >  test $ac_status = 0; }
15919 >     ;;
15920 > esac
15921 >
15922 > else
15923 >
15924 >  CFLAGS=$flag
15925 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15926 >  (: CFLAGS="$CFLAGS") 2>&5
15927 >  ac_status=$?
15928 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15929 >  test $ac_status = 0; }
15930 >
15931 > fi
15932 >
15933 > else
15934 >  :
15935 > fi
15936 >
15937 > done
15938 >
15939 >
15940 >
15941 >
15942 >
15943 > for flag in -Wpointer-arith; do
15944 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15945 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15946 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15947 > if eval \${$as_CACHEVAR+:} false; then :
15948 >  $as_echo_n "(cached) " >&6
15949 > else
15950 >
15951 >  ax_check_save_flags=$CFLAGS
15952 >  CFLAGS="$CFLAGS  $flag"
15953 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 > /* end confdefs.h.  */
15955 >
15956 > int
15957 > main ()
15958 > {
15959 >
15960 >  ;
15961 >  return 0;
15962 > }
15963 > _ACEOF
15964 > if ac_fn_c_try_compile "$LINENO"; then :
15965 >  eval "$as_CACHEVAR=yes"
15966 > else
15967 >  eval "$as_CACHEVAR=no"
15968 > fi
15969 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 >  CFLAGS=$ax_check_save_flags
15971 > fi
15972 > eval ac_res=\$$as_CACHEVAR
15973 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15974 > $as_echo "$ac_res" >&6; }
15975 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15976 >
15977 > if ${CFLAGS+:} false; then :
15978 >
15979 >  case " $CFLAGS " in #(
15980 >  *" $flag "*) :
15981 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15982 >  (: CFLAGS already contains $flag) 2>&5
15983 >  ac_status=$?
15984 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15985 >  test $ac_status = 0; } ;; #(
15986 >  *) :
15987 >
15988 >     as_fn_append CFLAGS " $flag"
15989 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15990 >  (: CFLAGS="$CFLAGS") 2>&5
15991 >  ac_status=$?
15992 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15993 >  test $ac_status = 0; }
15994 >     ;;
15995 > esac
15996 >
15997 > else
15998 >
15999 >  CFLAGS=$flag
16000 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16001 >  (: CFLAGS="$CFLAGS") 2>&5
16002 >  ac_status=$?
16003 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16004 >  test $ac_status = 0; }
16005 >
16006 > fi
16007 >
16008 > else
16009 >  :
16010 > fi
16011 >
16012 > done
16013 >
16014 >
16015 >
16016 >
16017 >
16018 > for flag in -Wredundant-decls; do
16019 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16020 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16021 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16022 > if eval \${$as_CACHEVAR+:} false; then :
16023 >  $as_echo_n "(cached) " >&6
16024 > else
16025 >
16026 >  ax_check_save_flags=$CFLAGS
16027 >  CFLAGS="$CFLAGS  $flag"
16028 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 > /* end confdefs.h.  */
16030 >
16031 > int
16032 > main ()
16033 > {
16034 >
16035 >  ;
16036 >  return 0;
16037 > }
16038 > _ACEOF
16039 > if ac_fn_c_try_compile "$LINENO"; then :
16040 >  eval "$as_CACHEVAR=yes"
16041 > else
16042 >  eval "$as_CACHEVAR=no"
16043 > fi
16044 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 >  CFLAGS=$ax_check_save_flags
16046 > fi
16047 > eval ac_res=\$$as_CACHEVAR
16048 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16049 > $as_echo "$ac_res" >&6; }
16050 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16051 >
16052 > if ${CFLAGS+:} false; then :
16053 >
16054 >  case " $CFLAGS " in #(
16055 >  *" $flag "*) :
16056 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16057 >  (: CFLAGS already contains $flag) 2>&5
16058 >  ac_status=$?
16059 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060 >  test $ac_status = 0; } ;; #(
16061 >  *) :
16062 >
16063 >     as_fn_append CFLAGS " $flag"
16064 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16065 >  (: CFLAGS="$CFLAGS") 2>&5
16066 >  ac_status=$?
16067 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068 >  test $ac_status = 0; }
16069 >     ;;
16070 > esac
16071 >
16072 > else
16073 >
16074 >  CFLAGS=$flag
16075 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16076 >  (: CFLAGS="$CFLAGS") 2>&5
16077 >  ac_status=$?
16078 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16079 >  test $ac_status = 0; }
16080 >
16081 > fi
16082 >
16083 > else
16084 >  :
16085 > fi
16086 >
16087 > done
16088 >
16089 >
16090 >
16091 >
16092 >
16093 > for flag in -Wshadow; do
16094 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16095 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16096 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16097 > if eval \${$as_CACHEVAR+:} false; then :
16098 >  $as_echo_n "(cached) " >&6
16099 > else
16100 >
16101 >  ax_check_save_flags=$CFLAGS
16102 >  CFLAGS="$CFLAGS  $flag"
16103 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 > /* end confdefs.h.  */
16105 >
16106 > int
16107 > main ()
16108 > {
16109 >
16110 >  ;
16111 >  return 0;
16112 > }
16113 > _ACEOF
16114 > if ac_fn_c_try_compile "$LINENO"; then :
16115 >  eval "$as_CACHEVAR=yes"
16116 > else
16117 >  eval "$as_CACHEVAR=no"
16118 > fi
16119 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 >  CFLAGS=$ax_check_save_flags
16121 > fi
16122 > eval ac_res=\$$as_CACHEVAR
16123 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16124 > $as_echo "$ac_res" >&6; }
16125 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16126 >
16127 > if ${CFLAGS+:} false; then :
16128 >
16129 >  case " $CFLAGS " in #(
16130 >  *" $flag "*) :
16131 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16132 >  (: CFLAGS already contains $flag) 2>&5
16133 >  ac_status=$?
16134 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16135 >  test $ac_status = 0; } ;; #(
16136 >  *) :
16137 >
16138 >     as_fn_append CFLAGS " $flag"
16139 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16140 >  (: CFLAGS="$CFLAGS") 2>&5
16141 >  ac_status=$?
16142 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16143 >  test $ac_status = 0; }
16144 >     ;;
16145 > esac
16146 >
16147 > else
16148 >
16149 >  CFLAGS=$flag
16150 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16151 >  (: CFLAGS="$CFLAGS") 2>&5
16152 >  ac_status=$?
16153 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16154 >  test $ac_status = 0; }
16155 >
16156 > fi
16157 >
16158 > else
16159 >  :
16160 > fi
16161 >
16162 > done
16163 >
16164 >
16165 >
16166 >
16167 >
16168 > for flag in -Wshift-negative-value; do
16169 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16170 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16171 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16172 > if eval \${$as_CACHEVAR+:} false; then :
16173 >  $as_echo_n "(cached) " >&6
16174 > else
16175 >
16176 >  ax_check_save_flags=$CFLAGS
16177 >  CFLAGS="$CFLAGS  $flag"
16178 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179 > /* end confdefs.h.  */
16180 >
16181 > int
16182 > main ()
16183 > {
16184 >
16185 >  ;
16186 >  return 0;
16187 > }
16188 > _ACEOF
16189 > if ac_fn_c_try_compile "$LINENO"; then :
16190 >  eval "$as_CACHEVAR=yes"
16191 > else
16192 >  eval "$as_CACHEVAR=no"
16193 > fi
16194 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 >  CFLAGS=$ax_check_save_flags
16196 > fi
16197 > eval ac_res=\$$as_CACHEVAR
16198 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16199 > $as_echo "$ac_res" >&6; }
16200 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16201 >
16202 > if ${CFLAGS+:} false; then :
16203 >
16204 >  case " $CFLAGS " in #(
16205 >  *" $flag "*) :
16206 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16207 >  (: CFLAGS already contains $flag) 2>&5
16208 >  ac_status=$?
16209 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16210 >  test $ac_status = 0; } ;; #(
16211 >  *) :
16212 >
16213 >     as_fn_append CFLAGS " $flag"
16214 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16215 >  (: CFLAGS="$CFLAGS") 2>&5
16216 >  ac_status=$?
16217 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16218 >  test $ac_status = 0; }
16219 >     ;;
16220 > esac
16221 >
16222 > else
16223 >
16224 >  CFLAGS=$flag
16225 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16226 >  (: CFLAGS="$CFLAGS") 2>&5
16227 >  ac_status=$?
16228 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16229 >  test $ac_status = 0; }
16230 >
16231 > fi
16232 >
16233 > else
16234 >  :
16235 > fi
16236 >
16237 > done
16238 >
16239 >
16240 >
16241 >
16242 >
16243 > for flag in -Wsign-compare; do
16244 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16245 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16246 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16247 > if eval \${$as_CACHEVAR+:} false; then :
16248 >  $as_echo_n "(cached) " >&6
16249 > else
16250 >
16251 >  ax_check_save_flags=$CFLAGS
16252 >  CFLAGS="$CFLAGS  $flag"
16253 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 > /* end confdefs.h.  */
16255 >
16256 > int
16257 > main ()
16258 > {
16259 >
16260 >  ;
16261 >  return 0;
16262 > }
16263 > _ACEOF
16264 > if ac_fn_c_try_compile "$LINENO"; then :
16265 >  eval "$as_CACHEVAR=yes"
16266 > else
16267 >  eval "$as_CACHEVAR=no"
16268 > fi
16269 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 >  CFLAGS=$ax_check_save_flags
16271 > fi
16272 > eval ac_res=\$$as_CACHEVAR
16273 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16274 > $as_echo "$ac_res" >&6; }
16275 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16276 >
16277 > if ${CFLAGS+:} false; then :
16278 >
16279 >  case " $CFLAGS " in #(
16280 >  *" $flag "*) :
16281 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16282 >  (: CFLAGS already contains $flag) 2>&5
16283 >  ac_status=$?
16284 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16285 >  test $ac_status = 0; } ;; #(
16286 >  *) :
16287 >
16288 >     as_fn_append CFLAGS " $flag"
16289 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16290 >  (: CFLAGS="$CFLAGS") 2>&5
16291 >  ac_status=$?
16292 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16293 >  test $ac_status = 0; }
16294 >     ;;
16295 > esac
16296 >
16297 > else
16298 >
16299 >  CFLAGS=$flag
16300 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16301 >  (: CFLAGS="$CFLAGS") 2>&5
16302 >  ac_status=$?
16303 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16304 >  test $ac_status = 0; }
16305 >
16306 > fi
16307 >
16308 > else
16309 >  :
16310 > fi
16311 >
16312 > done
16313 >
16314 >
16315 >
16316 >
16317 >
16318 > for flag in -Wtype-limits; do
16319 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16320 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16321 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16322 > if eval \${$as_CACHEVAR+:} false; then :
16323 >  $as_echo_n "(cached) " >&6
16324 > else
16325 >
16326 >  ax_check_save_flags=$CFLAGS
16327 >  CFLAGS="$CFLAGS  $flag"
16328 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 > /* end confdefs.h.  */
16330 >
16331 > int
16332 > main ()
16333 > {
16334 >
16335 >  ;
16336 >  return 0;
16337 > }
16338 > _ACEOF
16339 > if ac_fn_c_try_compile "$LINENO"; then :
16340 >  eval "$as_CACHEVAR=yes"
16341 > else
16342 >  eval "$as_CACHEVAR=no"
16343 > fi
16344 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 >  CFLAGS=$ax_check_save_flags
16346 > fi
16347 > eval ac_res=\$$as_CACHEVAR
16348 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16349 > $as_echo "$ac_res" >&6; }
16350 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16351 >
16352 > if ${CFLAGS+:} false; then :
16353 >
16354 >  case " $CFLAGS " in #(
16355 >  *" $flag "*) :
16356 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16357 >  (: CFLAGS already contains $flag) 2>&5
16358 >  ac_status=$?
16359 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16360 >  test $ac_status = 0; } ;; #(
16361 >  *) :
16362 >
16363 >     as_fn_append CFLAGS " $flag"
16364 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16365 >  (: CFLAGS="$CFLAGS") 2>&5
16366 >  ac_status=$?
16367 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16368 >  test $ac_status = 0; }
16369 >     ;;
16370 > esac
16371 >
16372 > else
16373 >
16374 >  CFLAGS=$flag
16375 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16376 >  (: CFLAGS="$CFLAGS") 2>&5
16377 >  ac_status=$?
16378 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16379 >  test $ac_status = 0; }
16380 >
16381 > fi
16382 >
16383 > else
16384 >  :
16385 > fi
16386 >
16387 > done
16388 >
16389 >
16390 >
16391 >
16392 >
16393 > for flag in -Wundef; do
16394 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16395 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16396 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16397 > if eval \${$as_CACHEVAR+:} false; then :
16398 >  $as_echo_n "(cached) " >&6
16399 > else
16400 >
16401 >  ax_check_save_flags=$CFLAGS
16402 >  CFLAGS="$CFLAGS  $flag"
16403 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 > /* end confdefs.h.  */
16405 >
16406 > int
16407 > main ()
16408 > {
16409 >
16410 >  ;
16411 >  return 0;
16412 > }
16413 > _ACEOF
16414 > if ac_fn_c_try_compile "$LINENO"; then :
16415 >  eval "$as_CACHEVAR=yes"
16416 > else
16417 >  eval "$as_CACHEVAR=no"
16418 > fi
16419 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 >  CFLAGS=$ax_check_save_flags
16421 > fi
16422 > eval ac_res=\$$as_CACHEVAR
16423 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16424 > $as_echo "$ac_res" >&6; }
16425 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16426 >
16427 > if ${CFLAGS+:} false; then :
16428 >
16429 >  case " $CFLAGS " in #(
16430 >  *" $flag "*) :
16431 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16432 >  (: CFLAGS already contains $flag) 2>&5
16433 >  ac_status=$?
16434 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16435 >  test $ac_status = 0; } ;; #(
16436 >  *) :
16437 >
16438 >     as_fn_append CFLAGS " $flag"
16439 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16440 >  (: CFLAGS="$CFLAGS") 2>&5
16441 >  ac_status=$?
16442 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16443 >  test $ac_status = 0; }
16444 >     ;;
16445 > esac
16446 >
16447 > else
16448 >
16449 >  CFLAGS=$flag
16450 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16451 >  (: CFLAGS="$CFLAGS") 2>&5
16452 >  ac_status=$?
16453 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16454 >  test $ac_status = 0; }
16455 >
16456 > fi
16457 >
16458 > else
16459 >  :
16460 > fi
16461 >
16462 > done
16463 >
16464 >
16465 >
16466 >
16467 >
16468 > for flag in -Wuninitialized; do
16469 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16470 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16471 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16472 > if eval \${$as_CACHEVAR+:} false; then :
16473 >  $as_echo_n "(cached) " >&6
16474 > else
16475 >
16476 >  ax_check_save_flags=$CFLAGS
16477 >  CFLAGS="$CFLAGS  $flag"
16478 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 > /* end confdefs.h.  */
16480 >
16481 > int
16482 > main ()
16483 > {
16484 >
16485 >  ;
16486 >  return 0;
16487 > }
16488 > _ACEOF
16489 > if ac_fn_c_try_compile "$LINENO"; then :
16490 >  eval "$as_CACHEVAR=yes"
16491 > else
16492 >  eval "$as_CACHEVAR=no"
16493 > fi
16494 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 >  CFLAGS=$ax_check_save_flags
16496 > fi
16497 > eval ac_res=\$$as_CACHEVAR
16498 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16499 > $as_echo "$ac_res" >&6; }
16500 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16501 >
16502 > if ${CFLAGS+:} false; then :
16503 >
16504 >  case " $CFLAGS " in #(
16505 >  *" $flag "*) :
16506 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16507 >  (: CFLAGS already contains $flag) 2>&5
16508 >  ac_status=$?
16509 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16510 >  test $ac_status = 0; } ;; #(
16511 >  *) :
16512 >
16513 >     as_fn_append CFLAGS " $flag"
16514 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16515 >  (: CFLAGS="$CFLAGS") 2>&5
16516 >  ac_status=$?
16517 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16518 >  test $ac_status = 0; }
16519 >     ;;
16520 > esac
16521 >
16522 > else
16523 >
16524 >  CFLAGS=$flag
16525 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16526 >  (: CFLAGS="$CFLAGS") 2>&5
16527 >  ac_status=$?
16528 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16529 >  test $ac_status = 0; }
16530 >
16531 > fi
16532 >
16533 > else
16534 >  :
16535 > fi
16536 >
16537 > done
16538 >
16539 >
16540 >
16541 >
16542 >
16543 > for flag in -Wwrite-strings; do
16544 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16545 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16546 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16547 > if eval \${$as_CACHEVAR+:} false; then :
16548 >  $as_echo_n "(cached) " >&6
16549 > else
16550 >
16551 >  ax_check_save_flags=$CFLAGS
16552 >  CFLAGS="$CFLAGS  $flag"
16553 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 > /* end confdefs.h.  */
16555 >
16556 > int
16557 > main ()
16558 > {
16559 >
16560 >  ;
16561 >  return 0;
16562 > }
16563 > _ACEOF
16564 > if ac_fn_c_try_compile "$LINENO"; then :
16565 >  eval "$as_CACHEVAR=yes"
16566 > else
16567 >  eval "$as_CACHEVAR=no"
16568 > fi
16569 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 >  CFLAGS=$ax_check_save_flags
16571 > fi
16572 > eval ac_res=\$$as_CACHEVAR
16573 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16574 > $as_echo "$ac_res" >&6; }
16575 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16576 >
16577 > if ${CFLAGS+:} false; then :
16578 >
16579 >  case " $CFLAGS " in #(
16580 >  *" $flag "*) :
16581 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16582 >  (: CFLAGS already contains $flag) 2>&5
16583 >  ac_status=$?
16584 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16585 >  test $ac_status = 0; } ;; #(
16586 >  *) :
16587 >
16588 >     as_fn_append CFLAGS " $flag"
16589 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16590 >  (: CFLAGS="$CFLAGS") 2>&5
16591 >  ac_status=$?
16592 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16593 >  test $ac_status = 0; }
16594 >     ;;
16595 > esac
16596 >
16597 > else
16598 >
16599 >  CFLAGS=$flag
16600 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16601 >  (: CFLAGS="$CFLAGS") 2>&5
16602 >  ac_status=$?
16603 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16604 >  test $ac_status = 0; }
16605 >
16606 > fi
16607 >
16608 > else
16609 >  :
16610 > fi
16611 >
16612 > done
16613 >
16614 >
16615 > fi
16616 >
16617 >
16618 >  # Check whether --enable-efence was given.
16619 > if test "${enable_efence+set}" = set; then :
16620 >  enableval=$enable_efence; efence="$enableval"
16621 > else
16622 >  efence="no"
16623 > fi
16624 >
16625 >
16626 >  if test "$efence" = "yes"; then :
16627 >
16628 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16629 > $as_echo_n "checking for library containing EF_Print... " >&6; }
16630 > if ${ac_cv_search_EF_Print+:} false; then :
16631    $as_echo_n "(cached) " >&6
16632   else
16633    ac_func_search_save_LIBS=$LIBS
# Line 13682 | Line 16640 | cat confdefs.h - <<_ACEOF >conftest.$ac_
16640   #ifdef __cplusplus
16641   extern "C"
16642   #endif
16643 < char GeoIP_id_by_ipnum_v6_gl ();
16643 > char EF_Print ();
16644   int
16645   main ()
16646   {
16647 < return GeoIP_id_by_ipnum_v6_gl ();
16647 > return EF_Print ();
16648    ;
16649    return 0;
16650   }
16651   _ACEOF
16652 < for ac_lib in '' GeoIP; do
16652 > for ac_lib in '' efence; do
16653    if test -z "$ac_lib"; then
16654      ac_res="none required"
16655    else
# Line 13699 | Line 16657 | for ac_lib in '' GeoIP; do
16657      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16658    fi
16659    if ac_fn_c_try_link "$LINENO"; then :
16660 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
16660 >  ac_cv_search_EF_Print=$ac_res
16661   fi
16662   rm -f core conftest.err conftest.$ac_objext \
16663      conftest$ac_exeext
16664 <  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16664 >  if ${ac_cv_search_EF_Print+:} false; then :
16665    break
16666   fi
16667   done
16668 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16668 > if ${ac_cv_search_EF_Print+:} false; then :
16669  
16670   else
16671 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
16671 >  ac_cv_search_EF_Print=no
16672   fi
16673   rm conftest.$ac_ext
16674   LIBS=$ac_func_search_save_LIBS
16675   fi
16676 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
16677 < $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
16678 < ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
16676 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16677 > $as_echo "$ac_cv_search_EF_Print" >&6; }
16678 > ac_res=$ac_cv_search_EF_Print
16679   if test "$ac_res" != no; then :
16680    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16681  
16682 < $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
16683 <
16684 < fi
16685 <
16682 > else
16683 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16684 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16685 > as_fn_error $? "Electric Fence 'efence' library not found
16686 > See \`config.log' for more details" "$LINENO" 5; }
16687   fi
16688  
16689  
# Line 13738 | Line 16697 | else
16697     cf_enable_openssl="auto"
16698   fi
16699  
16700 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16701 < $as_echo_n "checking for OpenSSL... " >&6; }
16700 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16701 > $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16702   if test "$cf_enable_openssl" != "no"; then
16703    cf_openssl_basedir=""
16704    if test "$cf_enable_openssl" != "auto" &&
# Line 13785 | Line 16744 | $as_echo "disabled" >&6; }
16744   fi
16745  
16746   if test "$cf_enable_openssl" != "no"; then :
16747 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5
16748 < $as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; }
16747 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16748 > $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16749    if test "$cross_compiling" = yes; then :
16750    cf_openssl_version_ok=no
16751   else
# Line 13799 | Line 16758 | else
16758   int
16759   main ()
16760   {
16761 < exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f));
16761 > exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16762    ;
16763    return 0;
16764   }
# Line 13912 | Line 16871 | fi
16871   fi
16872  
16873   else
16874 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
16875 < $as_echo "no - OpenSSL support disabled" >&6; }
16874 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16875 > $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16876      cf_enable_openssl="no"
16877   fi
16878   fi
16879  
13921 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13922  ENABLE_SSL_TRUE=
13923  ENABLE_SSL_FALSE='#'
13924 else
13925  ENABLE_SSL_TRUE='#'
13926  ENABLE_SSL_FALSE=
13927 fi
13928
16880  
16881 <
16882 < # Check whether --enable-assert was given.
16883 < if test "${enable_assert+set}" = set; then :
13933 <  enableval=$enable_assert; assert=$enableval
16881 > # Check whether --enable-gnutls was given.
16882 > if test "${enable_gnutls+set}" = set; then :
16883 >  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16884   else
16885 <  assert=no
13936 < fi
13937 <
13938 <
13939 < if test "$assert" = "no"; then :
13940 <
13941 < $as_echo "#define NDEBUG 1" >>confdefs.h
13942 <
13943 < fi
13944 <
13945 <
13946 < $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
13947 <
13948 <
13949 < $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
13950 <
13951 <
13952 < $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
13953 <
13954 <
13955 < $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
13956 <
13957 <
13958 < $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
13959 <
13960 <
13961 < $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
13962 <
13963 <
13964 < $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
13965 <
13966 <
13967 < $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
13968 <
13969 <
13970 < $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
13971 <
13972 <
13973 < $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
13974 <
13975 <
13976 < $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
13977 <
13978 <
13979 < $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
13980 <
13981 <
13982 < $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
13983 <
13984 <
13985 < $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
13986 <
13987 <
13988 < # Argument processing.
13989 <
13990 <    desired_iopoll_mechanism="none"
13991 <    # Check whether --enable-kqueue was given.
13992 < if test "${enable_kqueue+set}" = set; then :
13993 <  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13994 < fi
13995 <
13996 <  # Check whether --enable-epoll was given.
13997 < if test "${enable_epoll+set}" = set; then :
13998 <  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13999 < fi
14000 <
14001 <  # Check whether --enable-devpoll was given.
14002 < if test "${enable_devpoll+set}" = set; then :
14003 <  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
16885 >   cf_enable_gnutls="auto"
16886   fi
16887  
14006  # Check whether --enable-poll was given.
14007 if test "${enable_poll+set}" = set; then :
14008  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14009 fi
14010
14011  # Check whether --enable-select was given.
14012 if test "${enable_select+set}" = set; then :
14013  enableval=$enable_select; desired_iopoll_mechanism="select"
14014 fi
14015
14016      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14017 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14018  iopoll_mechanism_none=0
14019
14020 cat >>confdefs.h <<_ACEOF
14021 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14022 _ACEOF
16888  
16889 <      iopoll_mechanism_kqueue=1
16889 > if test "$cf_enable_openssl" != "auto" &&
16890 >   test "$cf_enable_openssl" != "yes"; then
16891 >  if test "$cf_enable_gnutls" != "no"; then
16892  
16893 < cat >>confdefs.h <<_ACEOF
16894 < #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14028 < _ACEOF
16893 >    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16894 > if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16895  
16896 +      if test "$cross_compiling" = yes; then :
16897 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16898 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16899 + as_fn_error $? "cannot run test program while cross compiling
16900 + See \`config.log' for more details" "$LINENO" 5; }
16901 + else
16902    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16903   /* end confdefs.h.  */
14032 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14033   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14034 #define kevent innocuous_kevent
16904  
14036 /* System header to define __stub macros and hopefully few prototypes,
14037    which can conflict with char kevent (); below.
14038    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14039    <limits.h> exists even on freestanding compilers.  */
16905  
16906 < #ifdef __STDC__
16907 < # include <limits.h>
16908 < #else
16909 < # include <assert.h>
16910 < #endif
16906 >          #include <gnutls/gnutls.h>
16907 >          #include <stdlib.h>
16908 > int
16909 > main ()
16910 > {
16911  
16912 < #undef kevent
16912 >          exit(!(GNUTLS_VERSION_NUMBER >= 0x030605));
16913 >  ;
16914 >  return 0;
16915 > }
16916 > _ACEOF
16917 > if ac_fn_c_try_run "$LINENO"; then :
16918 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16919 > $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16920 > if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16921 >  $as_echo_n "(cached) " >&6
16922 > else
16923 >  ac_check_lib_save_LIBS=$LIBS
16924 > LIBS="-lgnutls  $LIBS"
16925 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 > /* end confdefs.h.  */
16927  
16928   /* Override any GCC internal prototype to avoid an error.
16929     Use char because int might match the return type of a GCC
# Line 14052 | Line 16931 | _ACEOF
16931   #ifdef __cplusplus
16932   extern "C"
16933   #endif
16934 < char kevent ();
14056 < /* The GNU C library defines this for functions which it implements
14057 <    to always fail with ENOSYS.  Some functions are actually named
14058 <    something starting with __ and the normal name is an alias.  */
14059 < #if defined __stub_kevent || defined __stub___kevent
14060 < choke me
14061 < #endif
14062 <
16934 > char gnutls_init ();
16935   int
16936   main ()
16937   {
16938 < return kevent ();
16938 > return gnutls_init ();
16939    ;
16940    return 0;
16941   }
16942   _ACEOF
16943   if ac_fn_c_try_link "$LINENO"; then :
16944 <  is_kqueue_mechanism_available="yes"
16944 >  ac_cv_lib_gnutls_gnutls_init=yes
16945   else
16946 <  is_kqueue_mechanism_available="no"
16946 >  ac_cv_lib_gnutls_gnutls_init=no
16947   fi
16948   rm -f core conftest.err conftest.$ac_objext \
16949      conftest$ac_exeext conftest.$ac_ext
16950 <      iopoll_mechanism_epoll=2
16951 <
16952 < cat >>confdefs.h <<_ACEOF
16953 < #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
16950 > LIBS=$ac_check_lib_save_LIBS
16951 > fi
16952 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16953 > $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16954 > if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16955 >  cat >>confdefs.h <<_ACEOF
16956 > #define HAVE_LIBGNUTLS 1
16957   _ACEOF
16958  
16959 <  if test "$cross_compiling" = yes; then :
14085 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14086 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14087 < as_fn_error $? "cannot run test program while cross compiling
14088 < See \`config.log' for more details" "$LINENO" 5; }
14089 < else
14090 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 < /* end confdefs.h.  */
16959 >  LIBS="-lgnutls $LIBS"
16960  
16961 < #include <sys/epoll.h>
14094 < #include <sys/syscall.h>
14095 < #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14096 < #if !defined(__NR_epoll_create)
14097 < #if defined(__ia64__)
14098 < #define __NR_epoll_create 1243
14099 < #elif defined(__x86_64__)
14100 < #define __NR_epoll_create 214
14101 < #elif defined(__sparc64__) || defined(__sparc__)
14102 < #define __NR_epoll_create 193
14103 < #elif defined(__s390__) || defined(__m68k__)
14104 < #define __NR_epoll_create 249
14105 < #elif defined(__ppc64__) || defined(__ppc__)
14106 < #define __NR_epoll_create 236
14107 < #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14108 < #define __NR_epoll_create 224
14109 < #elif defined(__alpha__)
14110 < #define __NR_epoll_create 407
14111 < #elif defined(__sh64__)
14112 < #define __NR_epoll_create 282
14113 < #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14114 < #define __NR_epoll_create 254
14115 < #else
14116 < #error No system call numbers defined for epoll family.
14117 < #endif
14118 < #endif
14119 < _syscall1(int, epoll_create, int, size)
14120 < #endif
16961 > fi
16962  
14122 int
14123 main ()
14124 {
14125 return epoll_create(256) == -1 ? 1 : 0
14126  ;
14127  return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_run "$LINENO"; then :
14131  is_epoll_mechanism_available="yes"
14132 else
14133  is_epoll_mechanism_available="no"
16963   fi
16964   rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16965    conftest.$ac_objext conftest.beam conftest.$ac_ext
16966   fi
16967  
16968 <      iopoll_mechanism_devpoll=3
16968 > fi
16969  
14141 cat >>confdefs.h <<_ACEOF
14142 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14143 _ACEOF
16970  
14145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h.  */
14147 #include <devpoll.h>
14148 int
14149 main ()
14150 {
16971  
16972 <  ;
16973 <  return 0;
16974 < }
16975 < _ACEOF
16976 < if ac_fn_c_try_compile "$LINENO"; then :
14157 <  is_devpoll_mechanism_available="yes"
16972 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5
16973 > $as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; }
16974 >    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16975 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16976 > $as_echo "found" >&6; }
16977   else
16978 <  is_devpoll_mechanism_available="no"
16978 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16979 > $as_echo "no - GnuTLS support disabled" >&6; }
16980   fi
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162  if test "$is_devpoll_mechanism_available" = "yes" ; then
14163
14164 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
16981  
16982    fi
16983 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 < /* end confdefs.h.  */
14169 < #include <sys/devpoll.h>
14170 < int
14171 < main ()
14172 < {
16983 > fi
16984  
16985 <  ;
16986 <  return 0;
16987 < }
16988 < _ACEOF
14178 < if ac_fn_c_try_compile "$LINENO"; then :
14179 <  is_devpoll_mechanism_available="yes"
16985 >
16986 > # Check whether --enable-wolfssl was given.
16987 > if test "${enable_wolfssl+set}" = set; then :
16988 >  enableval=$enable_wolfssl;  cf_enable_wolfssl=$enableval
16989   else
16990 <  is_devpoll_mechanism_available="no"
16990 >   cf_enable_wolfssl="auto"
16991   fi
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184  if test "$is_devpoll_mechanism_available" = "yes" ; then
16992  
14186 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
16993  
16994 <  fi
16995 <      iopoll_mechanism_poll=4
16994 > if test "$cf_enable_openssl" != "auto" &&
16995 >   test "$cf_enable_openssl" != "yes"; then
16996 >  if test "$cf_enable_gnutls" = "no"; then
16997  
16998 < cat >>confdefs.h <<_ACEOF
16999 < #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14193 < _ACEOF
16998 >    ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
16999 > if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
17000  
17001 +      if test "$cross_compiling" = yes; then :
17002 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17003 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17004 + as_fn_error $? "cannot run test program while cross compiling
17005 + See \`config.log' for more details" "$LINENO" 5; }
17006 + else
17007    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008   /* end confdefs.h.  */
14197 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14198   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14199 #define poll innocuous_poll
17009  
14201 /* System header to define __stub macros and hopefully few prototypes,
14202    which can conflict with char poll (); below.
14203    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14204    <limits.h> exists even on freestanding compilers.  */
17010  
17011 < #ifdef __STDC__
17012 < # include <limits.h>
17013 < #else
17014 < # include <assert.h>
17015 < #endif
17011 >          #include <wolfssl/version.h>
17012 >          #include <stdlib.h>
17013 > int
17014 > main ()
17015 > {
17016  
17017 < #undef poll
17017 >          exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000));
17018 >  ;
17019 >  return 0;
17020 > }
17021 > _ACEOF
17022 > if ac_fn_c_try_run "$LINENO"; then :
17023 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5
17024 > $as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; }
17025 > if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then :
17026 >  $as_echo_n "(cached) " >&6
17027 > else
17028 >  ac_check_lib_save_LIBS=$LIBS
17029 > LIBS="-lwolfssl  $LIBS"
17030 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 > /* end confdefs.h.  */
17032  
17033   /* Override any GCC internal prototype to avoid an error.
17034     Use char because int might match the return type of a GCC
# Line 14217 | Line 17036 | _ACEOF
17036   #ifdef __cplusplus
17037   extern "C"
17038   #endif
17039 < char poll ();
14221 < /* The GNU C library defines this for functions which it implements
14222 <    to always fail with ENOSYS.  Some functions are actually named
14223 <    something starting with __ and the normal name is an alias.  */
14224 < #if defined __stub_poll || defined __stub___poll
14225 < choke me
14226 < #endif
14227 <
17039 > char wolfSSL_X509_digest ();
17040   int
17041   main ()
17042   {
17043 < return poll ();
17043 > return wolfSSL_X509_digest ();
17044    ;
17045    return 0;
17046   }
17047   _ACEOF
17048   if ac_fn_c_try_link "$LINENO"; then :
17049 <  is_poll_mechanism_available="yes"
17049 >  ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes
17050   else
17051 <  is_poll_mechanism_available="no"
17051 >  ac_cv_lib_wolfssl_wolfSSL_X509_digest=no
17052   fi
17053   rm -f core conftest.err conftest.$ac_objext \
17054      conftest$ac_exeext conftest.$ac_ext
17055 <      iopoll_mechanism_select=5
17056 <
17057 < cat >>confdefs.h <<_ACEOF
17058 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
17055 > LIBS=$ac_check_lib_save_LIBS
17056 > fi
17057 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5
17058 > $as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; }
17059 > if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then :
17060 >  cat >>confdefs.h <<_ACEOF
17061 > #define HAVE_LIBWOLFSSL 1
17062   _ACEOF
17063  
17064 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 < /* end confdefs.h.  */
14251 < /* Define select to an innocuous variant, in case <limits.h> declares select.
14252 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14253 < #define select innocuous_select
17064 >  LIBS="-lwolfssl $LIBS"
17065  
17066 < /* System header to define __stub macros and hopefully few prototypes,
14256 <    which can conflict with char select (); below.
14257 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14258 <    <limits.h> exists even on freestanding compilers.  */
17066 > fi
17067  
17068 < #ifdef __STDC__
17069 < # include <limits.h>
17070 < #else
17071 < # include <assert.h>
14264 < #endif
17068 > fi
17069 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17070 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
17071 > fi
17072  
17073 < #undef select
17073 > fi
17074  
17075 < /* Override any GCC internal prototype to avoid an error.
17076 <   Use char because int might match the return type of a GCC
17077 <   builtin and then its argument prototype would still apply.  */
17078 < #ifdef __cplusplus
17079 < extern "C"
17080 < #endif
17081 < char select ();
17082 < /* The GNU C library defines this for functions which it implements
17083 <    to always fail with ENOSYS.  Some functions are actually named
17084 <    something starting with __ and the normal name is an alias.  */
17085 < #if defined __stub_select || defined __stub___select
17086 < choke me
17087 < #endif
17075 >
17076 >
17077 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5
17078 > $as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; }
17079 >    if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then :
17080 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17081 > $as_echo "found" >&6; }
17082 > else
17083 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5
17084 > $as_echo "no - wolfSSL support disabled" >&6; }
17085 > fi
17086 >
17087 >  fi
17088 > fi
17089 >
17090 >
17091 > # Disable -Wformat-truncation
17092 >
17093 >
17094 >
17095 >
17096 > for flag in -Wno-format-truncation; do
17097 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
17098 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17099 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17100 > if eval \${$as_CACHEVAR+:} false; then :
17101 >  $as_echo_n "(cached) " >&6
17102 > else
17103 >
17104 >  ax_check_save_flags=$CFLAGS
17105 >  CFLAGS="$CFLAGS  $flag"
17106 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 > /* end confdefs.h.  */
17108  
17109   int
17110   main ()
17111   {
17112 < return select ();
17112 >
17113    ;
17114    return 0;
17115   }
17116   _ACEOF
17117 < if ac_fn_c_try_link "$LINENO"; then :
17118 <  is_select_mechanism_available="yes"
17117 > if ac_fn_c_try_compile "$LINENO"; then :
17118 >  eval "$as_CACHEVAR=yes"
17119   else
17120 <  is_select_mechanism_available="no"
17120 >  eval "$as_CACHEVAR=no"
17121   fi
17122 < rm -f core conftest.err conftest.$ac_objext \
17123 <    conftest$ac_exeext conftest.$ac_ext
14297 <      optimal_iopoll_mechanism="none"
14298 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14299 <    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14300 <    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14301 <      optimal_iopoll_mechanism="$mechanism"
14302 <      break
14303 <    fi
14304 <  done
14305 <      if test "$desired_iopoll_mechanism" = "none" ; then
14306 <    if test "$optimal_iopoll_mechanism" = "none" ; then
14307 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14308 < $as_echo "none" >&6; }
14309 <      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14310 <    else
14311 <      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14312 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14313 < $as_echo "$selected_iopoll_mechanism" >&6; }
14314 <    fi
14315 <  else
14316 <    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14317 <    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14318 <      selected_iopoll_mechanism=$desired_iopoll_mechanism
14319 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14320 < $as_echo "$selected_iopoll_mechanism" >&6; }
14321 <    else
14322 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14323 < $as_echo "none" >&6; }
14324 <      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14325 <    fi
14326 <  fi
14327 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14328 <
14329 < cat >>confdefs.h <<_ACEOF
14330 < #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14331 < _ACEOF
14332 <
14333 <
14334 <
14335 <  # Check whether --enable-halfops was given.
14336 < if test "${enable_halfops+set}" = set; then :
14337 <  enableval=$enable_halfops; halfops="$enableval"
14338 < else
14339 <  halfops="no"
17122 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 >  CFLAGS=$ax_check_save_flags
17124   fi
17125 + eval ac_res=\$$as_CACHEVAR
17126 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17127 + $as_echo "$ac_res" >&6; }
17128 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17129  
17130 <  if test "$halfops" = "yes" ; then
14343 <
14344 < $as_echo "#define HALFOPS 1" >>confdefs.h
17130 > if ${CFLAGS+:} false; then :
17131  
17132 <  fi
17132 >  case " $CFLAGS " in #(
17133 >  *" $flag "*) :
17134 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17135 >  (: CFLAGS already contains $flag) 2>&5
17136 >  ac_status=$?
17137 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17138 >  test $ac_status = 0; } ;; #(
17139 >  *) :
17140  
17141 +     as_fn_append CFLAGS " $flag"
17142 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17143 +  (: CFLAGS="$CFLAGS") 2>&5
17144 +  ac_status=$?
17145 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17146 +  test $ac_status = 0; }
17147 +     ;;
17148 + esac
17149  
14349  # Check whether --enable-debugging was given.
14350 if test "${enable_debugging+set}" = set; then :
14351  enableval=$enable_debugging; debugging="$enableval"
17150   else
14353  debugging="no"
14354 fi
17151  
17152 <  if test "$debugging" = "yes" ; then
17153 <    CFLAGS="-Wall -g -O0"
17154 <  fi
17152 >  CFLAGS=$flag
17153 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17154 >  (: CFLAGS="$CFLAGS") 2>&5
17155 >  ac_status=$?
17156 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 >  test $ac_status = 0; }
17158  
17159 + fi
17160  
14361  # Check whether --enable-warnings was given.
14362 if test "${enable_warnings+set}" = set; then :
14363  enableval=$enable_warnings; warnings="$enableval"
17161   else
17162 <  warnings="no"
17162 >  :
17163   fi
17164  
17165 <  if test "$warnings" = "yes" ; then
14369 <    CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14370 <  fi
17165 > done
17166  
17167  
17168  
# Line 14456 | Line 17251 | _ACEOF
17251    test "$exec_prefix_NONE" && exec_prefix=NONE
17252  
17253  
17254 < ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
17254 > 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"
17255  
17256  
17257   cat >confcache <<\_ACEOF
# Line 14622 | Line 17417 | LT_CONFIG_H=config.h
17417  
17418  
17419  
14625 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14626  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14628 fi
17420  
17421   : "${CONFIG_STATUS=./config.status}"
17422   ac_write_fail=0
# Line 15023 | Line 17814 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
17814   # report actual input values of CONFIG_FILES etc. instead of their
17815   # values after options handling.
17816   ac_log="
17817 < This file was extended by ircd-hybrid $as_me TRUNK, which was
17817 > This file was extended by ircd-hybrid $as_me 8.2.26, which was
17818   generated by GNU Autoconf 2.69.  Invocation command line was
17819  
17820    CONFIG_FILES    = $CONFIG_FILES
# Line 15089 | Line 17880 | _ACEOF
17880   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17881   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17882   ac_cs_version="\\
17883 < ircd-hybrid config.status TRUNK
17883 > ircd-hybrid config.status 8.2.26
17884   configured by $0, generated by GNU Autoconf 2.69,
17885    with options \\"\$ac_cs_config\\"
17886  
# Line 15208 | Line 17999 | cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
17999   #
18000   # INIT-COMMANDS
18001   #
18002 < AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18002 > AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18003  
18004  
18005   # The HP-UX ksh and POSIX shell print the target directory to stdout
# Line 15224 | Line 18015 | enable_static='`$ECHO "$enable_static" |
18015   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18016   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18017   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18018 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18019   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18020   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18021   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 15273 | Line 18065 | compiler='`$ECHO "$compiler" | $SED "$de
18065   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18066   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18067   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18068 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18069   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18070   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"`'
18071 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18072   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18073   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18074 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18075   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18076   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18077   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 15341 | Line 18136 | finish_cmds='`$ECHO "$finish_cmds" | $SE
18136   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18137   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18138   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18139 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18139 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18140 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18141   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18142   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18143   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 15392 | Line 18188 | CFLAGS \
18188   compiler \
18189   lt_cv_sys_global_symbol_pipe \
18190   lt_cv_sys_global_symbol_to_cdecl \
18191 + lt_cv_sys_global_symbol_to_import \
18192   lt_cv_sys_global_symbol_to_c_name_address \
18193   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18194 + lt_cv_nm_interface \
18195   nm_file_list_spec \
18196 + lt_cv_truncate_bin \
18197   lt_prog_compiler_no_builtin_flag \
18198   lt_prog_compiler_pic \
18199   lt_prog_compiler_wl \
# Line 15429 | Line 18228 | old_striplib \
18228   striplib; do
18229      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18230      *[\\\\\\\`\\"\\\$]*)
18231 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18231 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18232        ;;
18233      *)
18234        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15456 | Line 18255 | postinstall_cmds \
18255   postuninstall_cmds \
18256   finish_cmds \
18257   sys_lib_search_path_spec \
18258 < sys_lib_dlsearch_path_spec; do
18258 > configure_time_dlsearch_path \
18259 > configure_time_lt_sys_library_path; do
18260      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18261      *[\\\\\\\`\\"\\\$]*)
18262 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18262 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18263        ;;
18264      *)
18265        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15468 | Line 18268 | sys_lib_dlsearch_path_spec; do
18268   done
18269  
18270   ac_aux_dir='$ac_aux_dir'
15471 xsi_shell='$xsi_shell'
15472 lt_shell_append='$lt_shell_append'
18271  
18272 < # See if we are running on zsh, and set the options which allow our
18272 > # See if we are running on zsh, and set the options that allow our
18273   # commands through without removal of \ escapes INIT.
18274 < if test -n "\${ZSH_VERSION+set}" ; then
18274 > if test -n "\${ZSH_VERSION+set}"; then
18275     setopt NO_GLOB_SUBST
18276   fi
18277  
18278  
18279      PACKAGE='$PACKAGE'
18280      VERSION='$VERSION'
15483    TIMESTAMP='$TIMESTAMP'
18281      RM='$RM'
18282      ofile='$ofile'
18283  
# Line 15503 | Line 18300 | do
18300      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
18301      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18302      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18303 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18304      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18305      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18306      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
# Line 16105 | Line 18903 | $as_echo "$as_me: executing $ac_file com
18903    # Older Autoconf quotes --file arguments for eval, but not when files
18904    # are listed without --file.  Let's play safe and only enable the eval
18905    # if we detect the quoting.
18906 <  case $CONFIG_FILES in
18907 <  *\'*) eval set x "$CONFIG_FILES" ;;
18908 <  *)   set x $CONFIG_FILES ;;
18909 <  esac
18906 >  # TODO: see whether this extra hack can be removed once we start
18907 >  # requiring Autoconf 2.70 or later.
18908 >  case $CONFIG_FILES in #(
18909 >  *\'*) :
18910 >    eval set x "$CONFIG_FILES" ;; #(
18911 >  *) :
18912 >    set x $CONFIG_FILES ;; #(
18913 >  *) :
18914 >     ;;
18915 > esac
18916    shift
18917 <  for mf
18917 >  # Used to flag and report bootstrapping failures.
18918 >  am_rc=0
18919 >  for am_mf
18920    do
18921      # Strip MF so we end up with the name of the file.
18922 <    mf=`echo "$mf" | sed -e 's/:.*$//'`
18923 <    # Check whether this is an Automake generated Makefile or not.
18924 <    # We used to match only the files named 'Makefile.in', but
18925 <    # some people rename them; so instead we look at the file content.
16120 <    # Grep'ing the first line is not enough: some people post-process
16121 <    # each Makefile.in and add a new line on top of each file to say so.
16122 <    # Grep'ing the whole file is not good either: AIX grep has a line
18922 >    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18923 >    # Check whether this is an Automake generated Makefile which includes
18924 >    # dependency-tracking related rules and includes.
18925 >    # Grep'ing the whole file directly is not great: AIX grep has a line
18926      # limit of 2048, but all sed's we know have understand at least 4000.
18927 <    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18928 <      dirpart=`$as_dirname -- "$mf" ||
18929 < $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18930 <         X"$mf" : 'X\(//\)[^/]' \| \
18931 <         X"$mf" : 'X\(//\)$' \| \
18932 <         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18933 < $as_echo X"$mf" |
18927 >    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18928 >      || continue
18929 >    am_dirpart=`$as_dirname -- "$am_mf" ||
18930 > $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18931 >         X"$am_mf" : 'X\(//\)[^/]' \| \
18932 >         X"$am_mf" : 'X\(//\)$' \| \
18933 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18934 > $as_echo X"$am_mf" |
18935      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18936              s//\1/
18937              q
# Line 16145 | Line 18949 | $as_echo X"$mf" |
18949              q
18950            }
18951            s/.*/./; q'`
18952 <    else
18953 <      continue
18954 <    fi
18955 <    # Extract the definition of DEPDIR, am__include, and am__quote
18956 <    # from the Makefile without running 'make'.
18957 <    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16154 <    test -z "$DEPDIR" && continue
16155 <    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16156 <    test -z "$am__include" && continue
16157 <    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16158 <    # Find all dependency output files, they are included files with
16159 <    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16160 <    # simplest approach to changing $(DEPDIR) to its actual value in the
16161 <    # expansion.
16162 <    for file in `sed -n "
16163 <      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16164 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16165 <      # Make sure the directory exists.
16166 <      test -f "$dirpart/$file" && continue
16167 <      fdir=`$as_dirname -- "$file" ||
16168 < $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16169 <         X"$file" : 'X\(//\)[^/]' \| \
16170 <         X"$file" : 'X\(//\)$' \| \
16171 <         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16172 < $as_echo X"$file" |
16173 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16174 <            s//\1/
16175 <            q
16176 <          }
16177 <          /^X\(\/\/\)[^/].*/{
18952 >    am_filepart=`$as_basename -- "$am_mf" ||
18953 > $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18954 >         X"$am_mf" : 'X\(//\)$' \| \
18955 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18956 > $as_echo X/"$am_mf" |
18957 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
18958              s//\1/
18959              q
18960            }
18961 <          /^X\(\/\/\)$/{
18961 >          /^X\/\(\/\/\)$/{
18962              s//\1/
18963              q
18964            }
18965 <          /^X\(\/\).*/{
18965 >          /^X\/\(\/\).*/{
18966              s//\1/
18967              q
18968            }
18969            s/.*/./; q'`
18970 <      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18971 <      # echo "creating $dirpart/$file"
18972 <      echo '# dummy' > "$dirpart/$file"
18973 <    done
18970 >    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18971 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18972 >        | $MAKE -f - am--depfiles" >&5
18973 >   (cd "$am_dirpart" \
18974 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18975 >        | $MAKE -f - am--depfiles) >&5 2>&5
18976 >   ac_status=$?
18977 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 >   (exit $ac_status); } || am_rc=$?
18979    done
18980 +  if test $am_rc -ne 0; then
18981 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18982 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18983 + as_fn_error $? "Something went wrong bootstrapping makefile fragments
18984 +    for automatic dependency tracking.  Try re-running configure with the
18985 +    '--disable-dependency-tracking' option to at least be able to build
18986 +    the package (albeit without support for automatic dependency tracking).
18987 + See \`config.log' for more details" "$LINENO" 5; }
18988 +  fi
18989 +  { am_dirpart=; unset am_dirpart;}
18990 +  { am_filepart=; unset am_filepart;}
18991 +  { am_mf=; unset am_mf;}
18992 +  { am_rc=; unset am_rc;}
18993 +  rm -f conftest-deps.mk
18994   }
18995   ;;
18996      "libtool":C)
18997  
18998 <    # See if we are running on zsh, and set the options which allow our
18998 >    # See if we are running on zsh, and set the options that allow our
18999      # commands through without removal of \ escapes.
19000 <    if test -n "${ZSH_VERSION+set}" ; then
19000 >    if test -n "${ZSH_VERSION+set}"; then
19001        setopt NO_GLOB_SUBST
19002      fi
19003  
19004 <    cfgfile="${ofile}T"
19004 >    cfgfile=${ofile}T
19005      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19006      $RM "$cfgfile"
19007  
19008      cat <<_LT_EOF >> "$cfgfile"
19009   #! $SHELL
19010 <
16212 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16213 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16214 < # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19010 > # Generated automatically by $as_me ($PACKAGE) $VERSION
19011   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19012 +
19013 + # Provide generalized library-building support services.
19014 + # Written by Gordon Matzigkeit, 1996
19015 +
19016 + # Copyright (C) 2014 Free Software Foundation, Inc.
19017 + # This is free software; see the source for copying conditions.  There is NO
19018 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19019 +
19020 + # GNU Libtool is free software; you can redistribute it and/or modify
19021 + # it under the terms of the GNU General Public License as published by
19022 + # the Free Software Foundation; either version 2 of of the License, or
19023 + # (at your option) any later version.
19024   #
19025 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19026 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19027 < #                 Foundation, Inc.
19028 < #   Written by Gordon Matzigkeit, 1996
16221 < #
16222 < #   This file is part of GNU Libtool.
16223 < #
16224 < # GNU Libtool is free software; you can redistribute it and/or
16225 < # modify it under the terms of the GNU General Public License as
16226 < # published by the Free Software Foundation; either version 2 of
16227 < # the License, or (at your option) any later version.
16228 < #
16229 < # As a special exception to the GNU General Public License,
16230 < # if you distribute this file as part of a program or library that
16231 < # is built using GNU Libtool, you may include this file under the
16232 < # same distribution terms that you use for the rest of that program.
19025 > # As a special exception to the GNU General Public License, if you
19026 > # distribute this file as part of a program or library that is built
19027 > # using GNU Libtool, you may include this file under the  same
19028 > # distribution terms that you use for the rest of that program.
19029   #
19030 < # GNU Libtool is distributed in the hope that it will be useful,
19031 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
19030 > # GNU Libtool is distributed in the hope that it will be useful, but
19031 > # WITHOUT ANY WARRANTY; without even the implied warranty of
19032   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19033   # GNU General Public License for more details.
19034   #
19035   # You should have received a copy of the GNU General Public License
19036 < # along with GNU Libtool; see the file COPYING.  If not, a copy
16241 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16242 < # obtained by writing to the Free Software Foundation, Inc.,
16243 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19036 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19037  
19038  
19039   # The names of the tagged configurations supported by this script.
19040 < available_tags=""
19040 > available_tags=''
19041 >
19042 > # Configured defaults for sys_lib_dlsearch_path munging.
19043 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19044  
19045   # ### BEGIN LIBTOOL CONFIG
19046  
# Line 16264 | Line 19060 | pic_mode=$pic_mode
19060   # Whether or not to optimize for fast installation.
19061   fast_install=$enable_fast_install
19062  
19063 + # Shared archive member basename,for filename based shared library versioning on AIX.
19064 + shared_archive_member_spec=$shared_archive_member_spec
19065 +
19066   # Shell to use when invoking shell scripts.
19067   SHELL=$lt_SHELL
19068  
# Line 16381 | Line 19180 | global_symbol_pipe=$lt_lt_cv_sys_global_
19180   # Transform the output of nm in a proper C declaration.
19181   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19182  
19183 + # Transform the output of nm into a list of symbols to manually relocate.
19184 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19185 +
19186   # Transform the output of nm in a C name address pair.
19187   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19188  
19189   # Transform the output of nm in a C name address pair when lib prefix is needed.
19190   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19191  
19192 + # The name lister interface.
19193 + nm_interface=$lt_lt_cv_nm_interface
19194 +
19195   # Specify filename containing input files for \$NM.
19196   nm_file_list_spec=$lt_nm_file_list_spec
19197  
19198 < # The root where to search for dependent libraries,and in which our libraries should be installed.
19198 > # The root where to search for dependent libraries,and where our libraries should be installed.
19199   lt_sysroot=$lt_sysroot
19200  
19201 + # Command to truncate a binary pipe.
19202 + lt_truncate_bin=$lt_lt_cv_truncate_bin
19203 +
19204   # The name of the directory that contains temporary libtool files.
19205   objdir=$objdir
19206  
# Line 16483 | Line 19291 | hardcode_into_libs=$hardcode_into_libs
19291   # Compile-time system search path for libraries.
19292   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19293  
19294 < # Run-time system search path for libraries.
19295 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19294 > # Detected run-time system search path for libraries.
19295 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19296 >
19297 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19298 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19299  
19300   # Whether dlopen is supported.
19301   dlopen_support=$enable_dlopen
# Line 16577 | Line 19388 | hardcode_libdir_flag_spec=$lt_hardcode_l
19388   # Whether we need a single "-rpath" flag with a separated argument.
19389   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19390  
19391 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19391 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19392   # DIR into the resulting binary.
19393   hardcode_direct=$hardcode_direct
19394  
19395 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19395 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19396   # DIR into the resulting binary and the resulting library dependency is
19397 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19397 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19398   # library is relocated.
19399   hardcode_direct_absolute=$hardcode_direct_absolute
19400  
# Line 16635 | Line 19446 | hardcode_action=$hardcode_action
19446  
19447   _LT_EOF
19448  
19449 +    cat <<'_LT_EOF' >> "$cfgfile"
19450 +
19451 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19452 +
19453 + # func_munge_path_list VARIABLE PATH
19454 + # -----------------------------------
19455 + # VARIABLE is name of variable containing _space_ separated list of
19456 + # directories to be munged by the contents of PATH, which is string
19457 + # having a format:
19458 + # "DIR[:DIR]:"
19459 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19460 + # ":DIR[:DIR]"
19461 + #       string "DIR[ DIR]" will be appended to VARIABLE
19462 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19463 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19464 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19465 + # "DIR[:DIR]"
19466 + #       VARIABLE will be replaced by "DIR[ DIR]"
19467 + func_munge_path_list ()
19468 + {
19469 +    case x$2 in
19470 +    x)
19471 +        ;;
19472 +    *:)
19473 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19474 +        ;;
19475 +    x:*)
19476 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19477 +        ;;
19478 +    *::*)
19479 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19480 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19481 +        ;;
19482 +    *)
19483 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19484 +        ;;
19485 +    esac
19486 + }
19487 +
19488 +
19489 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19490 + func_cc_basename ()
19491 + {
19492 +    for cc_temp in $*""; do
19493 +      case $cc_temp in
19494 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19495 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19496 +        \-*) ;;
19497 +        *) break;;
19498 +      esac
19499 +    done
19500 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19501 + }
19502 +
19503 +
19504 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19505 +
19506 + _LT_EOF
19507 +
19508    case $host_os in
19509    aix3*)
19510      cat <<\_LT_EOF >> "$cfgfile"
19511   # AIX sometimes has problems with the GCC collect2 program.  For some
19512   # reason, if we set the COLLECT_NAMES environment variable, the problems
19513   # vanish in a puff of smoke.
19514 < if test "X${COLLECT_NAMES+set}" != Xset; then
19514 > if test set != "${COLLECT_NAMES+set}"; then
19515    COLLECT_NAMES=
19516    export COLLECT_NAMES
19517   fi
# Line 16650 | Line 19520 | _LT_EOF
19520    esac
19521  
19522  
19523 < ltmain="$ac_aux_dir/ltmain.sh"
19523 > ltmain=$ac_aux_dir/ltmain.sh
19524  
19525  
19526    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 16660 | Line 19530 | ltmain="$ac_aux_dir/ltmain.sh"
19530    sed '$q' "$ltmain" >> "$cfgfile" \
19531       || (rm -f "$cfgfile"; exit 1)
19532  
16663  if test x"$xsi_shell" = xyes; then
16664  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16665 func_dirname ()\
16666 {\
16667 \    case ${1} in\
16668 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16669 \      *  ) func_dirname_result="${3}" ;;\
16670 \    esac\
16671 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16672  && mv -f "$cfgfile.tmp" "$cfgfile" \
16673    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16674 test 0 -eq $? || _lt_function_replace_fail=:
16675
16676
16677  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16678 func_basename ()\
16679 {\
16680 \    func_basename_result="${1##*/}"\
16681 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16682  && mv -f "$cfgfile.tmp" "$cfgfile" \
16683    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16684 test 0 -eq $? || _lt_function_replace_fail=:
16685
16686
16687  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16688 func_dirname_and_basename ()\
16689 {\
16690 \    case ${1} in\
16691 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16692 \      *  ) func_dirname_result="${3}" ;;\
16693 \    esac\
16694 \    func_basename_result="${1##*/}"\
16695 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16696  && mv -f "$cfgfile.tmp" "$cfgfile" \
16697    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16698 test 0 -eq $? || _lt_function_replace_fail=:
16699
16700
16701  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16702 func_stripname ()\
16703 {\
16704 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16705 \    # positional parameters, so assign one to ordinary parameter first.\
16706 \    func_stripname_result=${3}\
16707 \    func_stripname_result=${func_stripname_result#"${1}"}\
16708 \    func_stripname_result=${func_stripname_result%"${2}"}\
16709 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16710  && mv -f "$cfgfile.tmp" "$cfgfile" \
16711    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16712 test 0 -eq $? || _lt_function_replace_fail=:
16713
16714
16715  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16716 func_split_long_opt ()\
16717 {\
16718 \    func_split_long_opt_name=${1%%=*}\
16719 \    func_split_long_opt_arg=${1#*=}\
16720 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16721  && mv -f "$cfgfile.tmp" "$cfgfile" \
16722    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16723 test 0 -eq $? || _lt_function_replace_fail=:
16724
16725
16726  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16727 func_split_short_opt ()\
16728 {\
16729 \    func_split_short_opt_arg=${1#??}\
16730 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16731 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16732  && mv -f "$cfgfile.tmp" "$cfgfile" \
16733    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16734 test 0 -eq $? || _lt_function_replace_fail=:
16735
16736
16737  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16738 func_lo2o ()\
16739 {\
16740 \    case ${1} in\
16741 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16742 \      *)    func_lo2o_result=${1} ;;\
16743 \    esac\
16744 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16745  && mv -f "$cfgfile.tmp" "$cfgfile" \
16746    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16747 test 0 -eq $? || _lt_function_replace_fail=:
16748
16749
16750  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16751 func_xform ()\
16752 {\
16753    func_xform_result=${1%.*}.lo\
16754 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16755  && mv -f "$cfgfile.tmp" "$cfgfile" \
16756    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16757 test 0 -eq $? || _lt_function_replace_fail=:
16758
16759
16760  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16761 func_arith ()\
16762 {\
16763    func_arith_result=$(( $* ))\
16764 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16765  && mv -f "$cfgfile.tmp" "$cfgfile" \
16766    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16767 test 0 -eq $? || _lt_function_replace_fail=:
16768
16769
16770  sed -e '/^func_len ()$/,/^} # func_len /c\
16771 func_len ()\
16772 {\
16773    func_len_result=${#1}\
16774 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16775  && mv -f "$cfgfile.tmp" "$cfgfile" \
16776    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16777 test 0 -eq $? || _lt_function_replace_fail=:
16778
16779 fi
16780
16781 if test x"$lt_shell_append" = xyes; then
16782  sed -e '/^func_append ()$/,/^} # func_append /c\
16783 func_append ()\
16784 {\
16785    eval "${1}+=\\${2}"\
16786 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16787  && mv -f "$cfgfile.tmp" "$cfgfile" \
16788    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16789 test 0 -eq $? || _lt_function_replace_fail=:
16790
16791
16792  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16793 func_append_quoted ()\
16794 {\
16795 \    func_quote_for_eval "${2}"\
16796 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16797 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16798  && mv -f "$cfgfile.tmp" "$cfgfile" \
16799    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16800 test 0 -eq $? || _lt_function_replace_fail=:
16801
16802
16803  # Save a `func_append' function call where possible by direct use of '+='
16804  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16805    && mv -f "$cfgfile.tmp" "$cfgfile" \
16806      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16807  test 0 -eq $? || _lt_function_replace_fail=:
16808 else
16809  # Save a `func_append' function call even when '+=' is not available
16810  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16811    && mv -f "$cfgfile.tmp" "$cfgfile" \
16812      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16813  test 0 -eq $? || _lt_function_replace_fail=:
16814 fi
16815
16816 if test x"$_lt_function_replace_fail" = x":"; then
16817  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16818 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16819 fi
16820
16821
19533     mv -f "$cfgfile" "$ofile" ||
19534      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19535    chmod +x "$ofile"
# Line 16862 | Line 19573 | if test -n "$ac_unrecognized_opts" && te
19573   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19574   fi
19575  
19576 +
19577 + echo "###############################################################################"
19578 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19579 + echo
19580 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19581 + echo "   ./configure --prefix=DIRECTORY"
19582 + echo "###############################################################################"

Diff Legend

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