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-8/configure (file contents), Revision 1504 by michael, Thu Aug 16 18:03:00 2012 UTC vs.
ircd-hybrid/branches/8.2.x/configure (file contents), Revision 9229 by michael, Sun Jan 26 14:29:03 2020 UTC

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

Comparing:
ircd-hybrid-8/configure (property svn:eol-style), Revision 1504 by michael, Thu Aug 16 18:03:00 2012 UTC vs.
ircd-hybrid/branches/8.2.x/configure (property svn:eol-style), Revision 9229 by michael, Sun Jan 26 14:29:03 2020 UTC

# Line 0 | Line 1
1 + native

Diff Legend

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