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

Comparing ircd-hybrid/trunk/configure (file contents):
Revision 1659 by michael, Sat Nov 17 19:29:07 2012 UTC vs.
Revision 8330 by michael, Wed Feb 28 21:32:12 2018 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 1654 2012-11-16 19:39:37Z michael .
2 > # From configure.ac Id: configure.ac 8329 2018-02-28 21:31:17Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4 < # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.0.0.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
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='8.0.0'
597 < PACKAGE_STRING='ircd-hybrid 8.0.0'
596 > PACKAGE_VERSION='TRUNK'
597 > PACKAGE_STRING='ircd-hybrid TRUNK'
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 723 | Line 722 | CC
722   MAINT
723   MAINTAINER_MODE_FALSE
724   MAINTAINER_MODE_TRUE
725 + AM_BACKSLASH
726 + AM_DEFAULT_VERBOSITY
727 + AM_DEFAULT_V
728 + AM_V
729   am__untar
730   am__tar
731   AMTAR
# Line 787 | Line 790 | SHELL'
790   ac_subst_files=''
791   ac_user_opts='
792   enable_option_checking
793 + enable_silent_rules
794   enable_maintainer_mode
795   enable_dependency_tracking
796   enable_static
797   enable_shared
798   with_pic
799   enable_fast_install
800 + with_aix_soname
801   with_gnu_ld
802   with_sysroot
803   enable_libtool_lock
# Line 800 | Line 805 | with_included_ltdl
805   with_ltdl_include
806   with_ltdl_lib
807   enable_ltdl_install
803 – enable_libpcre
804 – enable_openssl
805 – enable_assert
808   enable_kqueue
809   enable_epoll
810   enable_devpoll
809 – enable_rtsigio
811   enable_poll
812 < enable_select
812 < with_nicklen
813 < with_topiclen
814 < enable_halfops
812 > enable_assert
813   enable_debugging
814   enable_warnings
815 + enable_efence
816 + enable_mempool
817 + enable_openssl
818 + enable_gnutls
819   '
820        ac_precious_vars='build_alias
821   host_alias
# Line 825 | Line 827 | LIBS
827   CPPFLAGS
828   YACC
829   YFLAGS
830 + LT_SYS_LIBRARY_PATH
831   CPP'
832  
833  
# Line 1366 | Line 1369 | if test "$ac_init_help" = "long"; then
1369    # Omit some internal or obsolete options to make the list less imposing.
1370    # This message is too long to be a string in the A/UX 3.1 sh.
1371    cat <<_ACEOF
1372 < \`configure' configures ircd-hybrid 8.0.0 to adapt to many kinds of systems.
1372 > \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1373  
1374   Usage: $0 [OPTION]... [VAR=VALUE]...
1375  
# Line 1436 | Line 1439 | fi
1439  
1440   if test -n "$ac_init_help"; then
1441    case $ac_init_help in
1442 <     short | recursive ) echo "Configuration of ircd-hybrid 8.0.0:";;
1442 >     short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1443     esac
1444    cat <<\_ACEOF
1445  
# Line 1444 | Line 1447 | Optional Features:
1447    --disable-option-checking  ignore unrecognized --enable/--with options
1448    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450 +  --enable-silent-rules   less verbose build output (undo: "make V=1")
1451 +  --disable-silent-rules  verbose build output (undo: "make V=0")
1452    --enable-maintainer-mode
1453                            enable make rules and dependencies not useful (and
1454                            sometimes confusing) to the casual installer
# Line 1457 | Line 1462 | Optional Features:
1462                            optimize for fast installation [default=yes]
1463    --disable-libtool-lock  avoid locking (might break parallel builds)
1464    --enable-ltdl-install   install libltdl
1460 –  --disable-libpcre       Disable PCRE support
1461 –  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1462 –  --disable-openssl            Disable OpenSSL support.
1463 –  --enable-assert         Enable assert() statements
1465    --enable-kqueue         Force kqueue usage.
1466    --enable-epoll          Force epoll usage.
1467    --enable-devpoll        Force devpoll usage.
1467 –  --enable-rtsigio        Force rtsigio usage.
1468    --enable-poll           Force poll usage.
1469 <  --enable-select         Force select usage.
1470 <  --enable-halfops        Enable halfops support.
1469 >  --enable-assert         Enable assert() statements
1470    --enable-debugging      Enable debugging.
1471    --enable-warnings       Enable compiler warnings.
1472 +  --enable-efence         Enable linking with Electric Fence 'efence' memory
1473 +                          debugger library.
1474 +  --disable-mempool       Disables the memory pooling allocator.
1475 +  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1476 +  --disable-openssl            Disable LibreSSL/OpenSSL support.
1477 +  --enable-gnutls             Enable GnuTLS support.
1478 +  --disable-gnutls             Disable GnuTLS support.
1479  
1480   Optional Packages:
1481    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1484                            both]
1485 +  --with-aix-soname=aix|svr4|both
1486 +                          shared library versioning (aka "SONAME") variant to
1487 +                          provide on AIX, [default=aix].
1488    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489 <  --with-sysroot=DIR Search for dependent libraries within DIR
1490 <                        (or the compiler's sysroot if not specified).
1489 >  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1490 >                          compiler's sysroot if not specified).
1491    --with-included-ltdl    use the GNU ltdl sources included here
1492    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1493    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1485 –  --with-nicklen=<value>  Set nickname length (default 9).
1486 –  --with-topiclen=<value> Set topic length (default 160).
1494  
1495   Some influential environment variables:
1496    CC          C compiler command
# Line 1499 | Line 1506 | Some influential environment variables:
1506    YFLAGS      The list of arguments that will be passed by default to $YACC.
1507                This script will default YFLAGS to the empty string to avoid a
1508                default value of `-d' given by some make applications.
1509 +  LT_SYS_LIBRARY_PATH
1510 +              User-defined run-time library search path.
1511    CPP         C preprocessor
1512  
1513   Use these variables to override the choices made by `configure' or to help
# Line 1567 | Line 1576 | fi
1576   test -n "$ac_init_help" && exit $ac_status
1577   if $ac_init_version; then
1578    cat <<\_ACEOF
1579 < ircd-hybrid configure 8.0.0
1579 > ircd-hybrid configure TRUNK
1580   generated by GNU Autoconf 2.69
1581  
1582   Copyright (C) 2012 Free Software Foundation, Inc.
# Line 1942 | Line 1951 | $as_echo "$ac_res" >&6; }
1951  
1952   } # ac_fn_c_check_type
1953  
1945 – # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946 – # ----------------------------------------------------
1947 – # Tries to find if the field MEMBER exists in type AGGR, after including
1948 – # INCLUDES, setting cache variable VAR accordingly.
1949 – ac_fn_c_check_member ()
1950 – {
1951 –  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953 – $as_echo_n "checking for $2.$3... " >&6; }
1954 – if eval \${$4+:} false; then :
1955 –  $as_echo_n "(cached) " >&6
1956 – else
1957 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 – /* end confdefs.h.  */
1959 – $5
1960 – int
1961 – main ()
1962 – {
1963 – static $2 ac_aggr;
1964 – if (ac_aggr.$3)
1965 – return 0;
1966 –  ;
1967 –  return 0;
1968 – }
1969 – _ACEOF
1970 – if ac_fn_c_try_compile "$LINENO"; then :
1971 –  eval "$4=yes"
1972 – else
1973 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 – /* end confdefs.h.  */
1975 – $5
1976 – int
1977 – main ()
1978 – {
1979 – static $2 ac_aggr;
1980 – if (sizeof ac_aggr.$3)
1981 – return 0;
1982 –  ;
1983 –  return 0;
1984 – }
1985 – _ACEOF
1986 – if ac_fn_c_try_compile "$LINENO"; then :
1987 –  eval "$4=yes"
1988 – else
1989 –  eval "$4=no"
1990 – fi
1991 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 – fi
1993 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 – fi
1995 – eval ac_res=\$$4
1996 –               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 – $as_echo "$ac_res" >&6; }
1998 –  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 –
2000 – } # ac_fn_c_check_member
2001 –
1954   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1955   # -------------------------------------------------------
1956   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2093 | Line 2045 | cat >config.log <<_ACEOF
2045   This file contains any messages produced by compilers while
2046   running configure, to aid debugging if configure makes a mistake.
2047  
2048 < It was created by ircd-hybrid $as_me 8.0.0, which was
2048 > It was created by ircd-hybrid $as_me TRUNK, which was
2049   generated by GNU Autoconf 2.69.  Invocation command line was
2050  
2051    $ $0 $@
# Line 2373 | Line 2325 | $as_echo "$as_me: creating cache $cache_
2325    >$cache_file
2326   fi
2327  
2376 – as_fn_append ac_func_list " mmap"
2328   as_fn_append ac_func_list " strtok_r"
2378 – as_fn_append ac_func_list " usleep"
2329   as_fn_append ac_func_list " strlcat"
2330   as_fn_append ac_func_list " strlcpy"
2331   as_fn_append ac_header_list " crypt.h"
2382 – as_fn_append ac_header_list " sys/resource.h"
2332   as_fn_append ac_header_list " sys/param.h"
2333   as_fn_append ac_header_list " types.h"
2334   as_fn_append ac_header_list " socket.h"
2335   as_fn_append ac_header_list " sys/wait.h"
2387 – as_fn_append ac_header_list " wait.h"
2336   # Check that the precious variables saved in the cache have kept the same
2337   # value.
2338   ac_cache_corrupted=false
# Line 2453 | Line 2401 | ac_link='$CC -o conftest$ac_exeext $CFLA
2401   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402  
2403  
2404 < am__api_version='1.12'
2404 > am__api_version='1.15'
2405  
2406   ac_aux_dir=
2407   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2654 | Line 2602 | test "$program_suffix" != NONE &&
2602   ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2603   program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2604  
2605 < # expand $ac_aux_dir to an absolute path
2606 < am_aux_dir=`cd $ac_aux_dir && pwd`
2605 > # Expand $ac_aux_dir to an absolute path.
2606 > am_aux_dir=`cd "$ac_aux_dir" && pwd`
2607  
2608   if test x"${MISSING+set}" != xset; then
2609    case $am_aux_dir in
# Line 2666 | Line 2614 | if test x"${MISSING+set}" != xset; then
2614    esac
2615   fi
2616   # Use eval to expand $SHELL
2617 < if eval "$MISSING --run true"; then
2618 <  am_missing_run="$MISSING --run "
2617 > if eval "$MISSING --is-lightweight"; then
2618 >  am_missing_run="$MISSING "
2619   else
2620    am_missing_run=
2621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2622   $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2623   fi
2624  
2625 < if test x"${install_sh}" != xset; then
2625 > if test x"${install_sh+set}" != xset; then
2626    case $am_aux_dir in
2627    *\ * | *\     *)
2628      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
# Line 2907 | Line 2855 | else
2855   fi
2856   rmdir .tst 2>/dev/null
2857  
2858 + # Check whether --enable-silent-rules was given.
2859 + if test "${enable_silent_rules+set}" = set; then :
2860 +  enableval=$enable_silent_rules;
2861 + fi
2862 +
2863 + case $enable_silent_rules in # (((
2864 +  yes) AM_DEFAULT_VERBOSITY=0;;
2865 +   no) AM_DEFAULT_VERBOSITY=1;;
2866 +    *) AM_DEFAULT_VERBOSITY=1;;
2867 + esac
2868 + am_make=${MAKE-make}
2869 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2870 + $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2871 + if ${am_cv_make_support_nested_variables+:} false; then :
2872 +  $as_echo_n "(cached) " >&6
2873 + else
2874 +  if $as_echo 'TRUE=$(BAR$(V))
2875 + BAR0=false
2876 + BAR1=true
2877 + V=1
2878 + am__doit:
2879 +        @$(TRUE)
2880 + .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2881 +  am_cv_make_support_nested_variables=yes
2882 + else
2883 +  am_cv_make_support_nested_variables=no
2884 + fi
2885 + fi
2886 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2887 + $as_echo "$am_cv_make_support_nested_variables" >&6; }
2888 + if test $am_cv_make_support_nested_variables = yes; then
2889 +    AM_V='$(V)'
2890 +  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2891 + else
2892 +  AM_V=$AM_DEFAULT_VERBOSITY
2893 +  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2894 + fi
2895 + AM_BACKSLASH='\'
2896 +
2897   if test "`cd $srcdir && pwd`" != "`pwd`"; then
2898    # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2899    # is not polluted with repeated "-I."
# Line 2929 | Line 2916 | fi
2916  
2917   # Define the identity of the package.
2918   PACKAGE='ircd-hybrid'
2919 < VERSION='8.0.0'
2919 > VERSION='TRUNK'
2920  
2921  
2922   cat >>confdefs.h <<_ACEOF
# Line 2963 | Line 2950 | MAKEINFO=${MAKEINFO-"${am_missing_run}ma
2950   # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2951   mkdir_p='$(MKDIR_P)'
2952  
2953 < # We need awk for the "check" target.  The system "awk" is bad on
2954 < # some platforms.
2953 > # We need awk for the "check" target (and possibly the TAP driver).  The
2954 > # system "awk" is bad on some platforms.
2955   # Always define AMTAR for backward compatibility.  Yes, it's still used
2956   # in the wild :-(  We should find a proper way to deprecate it ...
2957   AMTAR='$${TAR-tar}'
2958  
2959 +
2960 + # We'll loop over all known methods to create a tar archive until one works.
2961 + _am_tools='gnutar  pax cpio none'
2962 +
2963   am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2964  
2965  
# Line 2976 | Line 2967 | am__tar='$${TAR-tar} chof - "$$tardir"'
2967  
2968  
2969  
2970 + # POSIX will say in a future version that running "rm -f" with no argument
2971 + # is OK; and we want to be able to make that assumption in our Makefile
2972 + # recipes.  So use an aggressive probe to check that the usage we want is
2973 + # actually supported "in the wild" to an acceptable degree.
2974 + # See automake bug#10828.
2975 + # To make any issue more visible, cause the running configure to be aborted
2976 + # by default if the 'rm' program in use doesn't match our expectations; the
2977 + # user can still override this though.
2978 + if rm -f && rm -fr && rm -rf; then : OK; else
2979 +  cat >&2 <<'END'
2980 + Oops!
2981 +
2982 + Your 'rm' program seems unable to run without file operands specified
2983 + on the command line, even when the '-f' option is present.  This is contrary
2984 + to the behaviour of most rm programs out there, and not conforming with
2985 + the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2986 +
2987 + Please tell bug-automake@gnu.org about your system, including the value
2988 + of your $PATH and any error possibly output before this message.  This
2989 + can help us improve future automake versions.
2990 +
2991 + END
2992 +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2993 +    echo 'Configuration will proceed anyway, since you have set the' >&2
2994 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2995 +    echo >&2
2996 +  else
2997 +    cat >&2 <<'END'
2998 + Aborting the configuration process, to ensure you take notice of the issue.
2999 +
3000 + You can download and install GNU coreutils to get an 'rm' implementation
3001 + that behaves properly: <http://www.gnu.org/software/coreutils/>.
3002 +
3003 + If you want to complete the configuration process using your problematic
3004 + 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3005 + to "yes", and re-run configure.
3006 +
3007 + END
3008 +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3009 +  fi
3010 + fi
3011 +
3012 +
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3014   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3015      # Check whether --enable-maintainer-mode was given.
# Line 2998 | Line 3032 | fi
3032    MAINT=$MAINTAINER_MODE_TRUE
3033  
3034  
3035 +
3036   ac_config_headers="$ac_config_headers config.h"
3037  
3038  
# Line 3855 | Line 3890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
3890   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892  
3893 + ac_ext=c
3894 + ac_cpp='$CPP $CPPFLAGS'
3895 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3899 + $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3900 + if ${am_cv_prog_cc_c_o+:} false; then :
3901 +  $as_echo_n "(cached) " >&6
3902 + else
3903 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 + /* end confdefs.h.  */
3905 +
3906 + int
3907 + main ()
3908 + {
3909 +
3910 +  ;
3911 +  return 0;
3912 + }
3913 + _ACEOF
3914 +  # Make sure it works both with $CC and with simple cc.
3915 +  # Following AC_PROG_CC_C_O, we do the test twice because some
3916 +  # compilers refuse to overwrite an existing .o file with -o,
3917 +  # though they will create one.
3918 +  am_cv_prog_cc_c_o=yes
3919 +  for am_i in 1 2; do
3920 +    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3921 +   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3922 +   ac_status=$?
3923 +   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 +   (exit $ac_status); } \
3925 +         && test -f conftest2.$ac_objext; then
3926 +      : OK
3927 +    else
3928 +      am_cv_prog_cc_c_o=no
3929 +      break
3930 +    fi
3931 +  done
3932 +  rm -f core conftest*
3933 +  unset am_i
3934 + fi
3935 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3936 + $as_echo "$am_cv_prog_cc_c_o" >&6; }
3937 + if test "$am_cv_prog_cc_c_o" != yes; then
3938 +   # Losing compiler, so override with the script.
3939 +   # FIXME: It is wrong to rewrite CC.
3940 +   # But if we don't then we get into trouble of one sort or another.
3941 +   # A longer-term fix would be to have automake use am__CC in this case,
3942 +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3943 +   CC="$am_aux_dir/compile $CC"
3944 + fi
3945 + ac_ext=c
3946 + ac_cpp='$CPP $CPPFLAGS'
3947 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 +
3951 +
3952   depcc="$CC"   am_compiler_list=
3953  
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
# Line 4387 | Line 4481 | esac
4481  
4482  
4483  
4484 < macro_version='2.4.2'
4485 < macro_revision='1.3337'
4484 > macro_version='2.4.6'
4485 > macro_revision='2.4.6'
4486  
4487  
4488  
# Line 4402 | Line 4496 | macro_revision='1.3337'
4496  
4497  
4498  
4499 < ltmain="$ac_aux_dir/ltmain.sh"
4499 > ltmain=$ac_aux_dir/ltmain.sh
4500  
4501   # Make sure we can run config.sub.
4502   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4522 | Line 4616 | func_echo_all ()
4616      $ECHO ""
4617   }
4618  
4619 < case "$ECHO" in
4619 > case $ECHO in
4620    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4621   $as_echo "printf" >&6; } ;;
4622    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 4845 | Line 4939 | test -z "$GREP" && GREP=grep
4939  
4940   # Check whether --with-gnu-ld was given.
4941   if test "${with_gnu_ld+set}" = set; then :
4942 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4942 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4943   else
4944    with_gnu_ld=no
4945   fi
4946  
4947   ac_prog=ld
4948 < if test "$GCC" = yes; then
4948 > if test yes = "$GCC"; then
4949    # Check if gcc -print-prog-name=ld gives a path.
4950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4951   $as_echo_n "checking for ld used by $CC... " >&6; }
4952    case $host in
4953    *-*-mingw*)
4954 <    # gcc leaves a trailing carriage return which upsets mingw
4954 >    # gcc leaves a trailing carriage return, which upsets mingw
4955      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4956    *)
4957      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 4871 | Line 4965 | $as_echo_n "checking for ld used by $CC.
4965        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4966          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4967        done
4968 <      test -z "$LD" && LD="$ac_prog"
4968 >      test -z "$LD" && LD=$ac_prog
4969        ;;
4970    "")
4971      # If it fails, then pretend we aren't using GCC.
# Line 4882 | Line 4976 | $as_echo_n "checking for ld used by $CC.
4976      with_gnu_ld=unknown
4977      ;;
4978    esac
4979 < elif test "$with_gnu_ld" = yes; then
4979 > elif test yes = "$with_gnu_ld"; then
4980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4981   $as_echo_n "checking for GNU ld... " >&6; }
4982   else
# Line 4893 | Line 4987 | if ${lt_cv_path_LD+:} false; then :
4987    $as_echo_n "(cached) " >&6
4988   else
4989    if test -z "$LD"; then
4990 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4990 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4991    for ac_dir in $PATH; do
4992 <    IFS="$lt_save_ifs"
4992 >    IFS=$lt_save_ifs
4993      test -z "$ac_dir" && ac_dir=.
4994      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4995 <      lt_cv_path_LD="$ac_dir/$ac_prog"
4995 >      lt_cv_path_LD=$ac_dir/$ac_prog
4996        # Check to see if the program is GNU ld.  I'd rather use --version,
4997        # but apparently some variants of GNU ld only accept -v.
4998        # Break only if it was the GNU/non-GNU ld that we prefer.
4999        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5000        *GNU* | *'with BFD'*)
5001 <        test "$with_gnu_ld" != no && break
5001 >        test no != "$with_gnu_ld" && break
5002          ;;
5003        *)
5004 <        test "$with_gnu_ld" != yes && break
5004 >        test yes != "$with_gnu_ld" && break
5005          ;;
5006        esac
5007      fi
5008    done
5009 <  IFS="$lt_save_ifs"
5009 >  IFS=$lt_save_ifs
5010   else
5011 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5011 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5012   fi
5013   fi
5014  
5015 < LD="$lt_cv_path_LD"
5015 > LD=$lt_cv_path_LD
5016   if test -n "$LD"; then
5017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5018   $as_echo "$LD" >&6; }
# Line 4961 | Line 5055 | if ${lt_cv_path_NM+:} false; then :
5055   else
5056    if test -n "$NM"; then
5057    # Let the user override the test.
5058 <  lt_cv_path_NM="$NM"
5058 >  lt_cv_path_NM=$NM
5059   else
5060 <  lt_nm_to_check="${ac_tool_prefix}nm"
5060 >  lt_nm_to_check=${ac_tool_prefix}nm
5061    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5062      lt_nm_to_check="$lt_nm_to_check nm"
5063    fi
5064    for lt_tmp_nm in $lt_nm_to_check; do
5065 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5065 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5066      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5067 <      IFS="$lt_save_ifs"
5067 >      IFS=$lt_save_ifs
5068        test -z "$ac_dir" && ac_dir=.
5069 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5070 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5069 >      tmp_nm=$ac_dir/$lt_tmp_nm
5070 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5071          # Check to see if the nm accepts a BSD-compat flag.
5072 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5072 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5073          #   nm: unknown option "B" ignored
5074          # Tru64's nm complains that /dev/null is an invalid object file
5075 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5076 <        */dev/null* | *'Invalid file or object type'*)
5075 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5076 >        case $build_os in
5077 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5078 >        *) lt_bad_file=/dev/null ;;
5079 >        esac
5080 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5081 >        *$lt_bad_file* | *'Invalid file or object type'*)
5082            lt_cv_path_NM="$tmp_nm -B"
5083 <          break
5083 >          break 2
5084            ;;
5085          *)
5086            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5087            */dev/null*)
5088              lt_cv_path_NM="$tmp_nm -p"
5089 <            break
5089 >            break 2
5090              ;;
5091            *)
5092              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 4998 | Line 5097 | else
5097          esac
5098        fi
5099      done
5100 <    IFS="$lt_save_ifs"
5100 >    IFS=$lt_save_ifs
5101    done
5102    : ${lt_cv_path_NM=no}
5103   fi
5104   fi
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5106   $as_echo "$lt_cv_path_NM" >&6; }
5107 < if test "$lt_cv_path_NM" != "no"; then
5108 <  NM="$lt_cv_path_NM"
5107 > if test no != "$lt_cv_path_NM"; then
5108 >  NM=$lt_cv_path_NM
5109   else
5110    # Didn't find any BSD compatible name lister, look for dumpbin.
5111    if test -n "$DUMPBIN"; then :
# Line 5112 | Line 5211 | esac
5211    fi
5212   fi
5213  
5214 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5214 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5215      *COFF*)
5216 <      DUMPBIN="$DUMPBIN -symbols"
5216 >      DUMPBIN="$DUMPBIN -symbols -headers"
5217        ;;
5218      *)
5219        DUMPBIN=:
# Line 5122 | Line 5221 | fi
5221      esac
5222    fi
5223  
5224 <  if test "$DUMPBIN" != ":"; then
5225 <    NM="$DUMPBIN"
5224 >  if test : != "$DUMPBIN"; then
5225 >    NM=$DUMPBIN
5226    fi
5227   fi
5228   test -z "$NM" && NM=nm
# Line 5174 | Line 5273 | if ${lt_cv_sys_max_cmd_len+:} false; the
5273    $as_echo_n "(cached) " >&6
5274   else
5275      i=0
5276 <  teststring="ABCD"
5276 >  teststring=ABCD
5277  
5278    case $build_os in
5279    msdosdjgpp*)
# Line 5214 | Line 5313 | else
5313      lt_cv_sys_max_cmd_len=8192;
5314      ;;
5315  
5316 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5316 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5317      # This has been around since 386BSD, at least.  Likely further.
5318      if test -x /sbin/sysctl; then
5319        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5264 | Line 5363 | else
5363      ;;
5364    *)
5365      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5366 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5366 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5367 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5368        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5369        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5370      else
5371        # Make teststring a little bigger before we do anything with it.
5372        # a 1K string should be a reasonable start.
5373 <      for i in 1 2 3 4 5 6 7 8 ; do
5373 >      for i in 1 2 3 4 5 6 7 8; do
5374          teststring=$teststring$teststring
5375        done
5376        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5377        # If test is not a shell built-in, we'll probably end up computing a
5378        # maximum length that is only half of the actual maximum length, but
5379        # we can't tell.
5380 <      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5380 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5381                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5382 <              test $i != 17 # 1/2 MB should be enough
5382 >              test 17 != "$i" # 1/2 MB should be enough
5383        do
5384          i=`expr $i + 1`
5385          teststring=$teststring$teststring
# Line 5297 | Line 5397 | else
5397  
5398   fi
5399  
5400 < if test -n $lt_cv_sys_max_cmd_len ; then
5400 > if test -n "$lt_cv_sys_max_cmd_len"; then
5401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5402   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5403   else
# Line 5315 | Line 5415 | max_cmd_len=$lt_cv_sys_max_cmd_len
5415   : ${MV="mv -f"}
5416   : ${RM="rm -f"}
5417  
5318 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5319 – $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5320 – # Try some XSI features
5321 – xsi_shell=no
5322 – ( _lt_dummy="a/b/c"
5323 –  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5324 –      = c,a/b,b/c, \
5325 –    && eval 'test $(( 1 + 1 )) -eq 2 \
5326 –    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5327 –  && xsi_shell=yes
5328 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5329 – $as_echo "$xsi_shell" >&6; }
5330 –
5331 –
5332 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5333 – $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5334 – lt_shell_append=no
5335 – ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5336 –    >/dev/null 2>&1 \
5337 –  && lt_shell_append=yes
5338 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5339 – $as_echo "$lt_shell_append" >&6; }
5340 –
5341 –
5418   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5419    lt_unset=unset
5420   else
# Line 5461 | Line 5537 | esac
5537   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5538   case $host_os in
5539    cygwin* | mingw* | pw32* | cegcc*)
5540 <    if test "$GCC" != yes; then
5540 >    if test yes != "$GCC"; then
5541        reload_cmds=false
5542      fi
5543      ;;
5544    darwin*)
5545 <    if test "$GCC" = yes; then
5546 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5545 >    if test yes = "$GCC"; then
5546 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5547      else
5548        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5549      fi
# Line 5595 | Line 5671 | lt_cv_deplibs_check_method='unknown'
5671   # Need to set the preceding variable on all platforms that support
5672   # interlibrary dependencies.
5673   # 'none' -- dependencies not supported.
5674 < # `unknown' -- same as none, but documents that we really don't know.
5674 > # 'unknown' -- same as none, but documents that we really don't know.
5675   # 'pass_all' -- all dependencies passed with no checks.
5676   # 'test_compile' -- check by making test program.
5677   # 'file_magic [[regex]]' -- check by looking for files in library path
5678 < # which responds to the $file_magic_cmd with a given extended regex.
5679 < # If you have `file' or equivalent on your system and you're not sure
5680 < # whether `pass_all' will *always* work, you probably want this one.
5678 > # that responds to the $file_magic_cmd with a given extended regex.
5679 > # If you have 'file' or equivalent on your system and you're not sure
5680 > # whether 'pass_all' will *always* work, you probably want this one.
5681  
5682   case $host_os in
5683   aix[4-9]*)
# Line 5628 | Line 5704 | mingw* | pw32*)
5704    # Base MSYS/MinGW do not provide the 'file' command needed by
5705    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5706    # unless we find 'file', for example because we are cross-compiling.
5707 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5632 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5707 >  if ( file / ) >/dev/null 2>&1; then
5708      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5709      lt_cv_file_magic_cmd='func_win32_libid'
5710    else
# Line 5665 | Line 5740 | freebsd* | dragonfly*)
5740    fi
5741    ;;
5742  
5668 – gnu*)
5669 –  lt_cv_deplibs_check_method=pass_all
5670 –  ;;
5671 –
5743   haiku*)
5744    lt_cv_deplibs_check_method=pass_all
5745    ;;
# Line 5707 | Line 5778 | irix5* | irix6* | nonstopux*)
5778    ;;
5779  
5780   # This must be glibc/ELF.
5781 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5781 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5782    lt_cv_deplibs_check_method=pass_all
5783    ;;
5784  
# Line 5729 | Line 5800 | newos6*)
5800    lt_cv_deplibs_check_method=pass_all
5801    ;;
5802  
5803 < openbsd*)
5804 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5803 > openbsd* | bitrig*)
5804 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5805      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5806    else
5807      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5783 | Line 5854 | sysv4 | sysv4.3*)
5854   tpf*)
5855    lt_cv_deplibs_check_method=pass_all
5856    ;;
5857 + os2*)
5858 +  lt_cv_deplibs_check_method=pass_all
5859 +  ;;
5860   esac
5861  
5862   fi
# Line 5940 | Line 6014 | else
6014  
6015   case $host_os in
6016   cygwin* | mingw* | pw32* | cegcc*)
6017 <  # two different shell functions defined in ltmain.sh
6018 <  # decide which to use based on capabilities of $DLLTOOL
6017 >  # two different shell functions defined in ltmain.sh;
6018 >  # decide which one to use based on capabilities of $DLLTOOL
6019    case `$DLLTOOL --help 2>&1` in
6020    *--identify-strict*)
6021      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 5953 | Line 6027 | cygwin* | mingw* | pw32* | cegcc*)
6027    ;;
6028   *)
6029    # fallback: assume linklib IS sharedlib
6030 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6030 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6031    ;;
6032   esac
6033  
# Line 6107 | Line 6181 | if ac_fn_c_try_compile "$LINENO"; then :
6181    ac_status=$?
6182    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183    test $ac_status = 0; }
6184 <      if test "$ac_status" -eq 0; then
6184 >      if test 0 -eq "$ac_status"; then
6185          # Ensure the archiver fails upon bogus file names.
6186          rm -f conftest.$ac_objext libconftest.a
6187          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6115 | Line 6189 | if ac_fn_c_try_compile "$LINENO"; then :
6189    ac_status=$?
6190    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6191    test $ac_status = 0; }
6192 <        if test "$ac_status" -ne 0; then
6192 >        if test 0 -ne "$ac_status"; then
6193            lt_cv_ar_at_file=@
6194          fi
6195        fi
# Line 6128 | Line 6202 | fi
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6203   $as_echo "$lt_cv_ar_at_file" >&6; }
6204  
6205 < if test "x$lt_cv_ar_at_file" = xno; then
6205 > if test no = "$lt_cv_ar_at_file"; then
6206    archiver_list_spec=
6207   else
6208    archiver_list_spec=$lt_cv_ar_at_file
# Line 6345 | Line 6419 | old_postuninstall_cmds=
6419  
6420   if test -n "$RANLIB"; then
6421    case $host_os in
6422 <  openbsd*)
6422 >  bitrig* | openbsd*)
6423      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6424      ;;
6425    *)
# Line 6435 | Line 6509 | cygwin* | mingw* | pw32* | cegcc*)
6509    symcode='[ABCDGISTW]'
6510    ;;
6511   hpux*)
6512 <  if test "$host_cpu" = ia64; then
6512 >  if test ia64 = "$host_cpu"; then
6513      symcode='[ABCDEGRST]'
6514    fi
6515    ;;
# Line 6468 | Line 6542 | case `$NM -V 2>&1` in
6542    symcode='[ABCDGIRSTW]' ;;
6543   esac
6544  
6545 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6546 +  # Gets list of data symbols to import.
6547 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6548 +  # Adjust the below global symbol transforms to fixup imported variables.
6549 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6550 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6551 +  lt_c_name_lib_hook="\
6552 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6553 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6554 + else
6555 +  # Disable hooks by default.
6556 +  lt_cv_sys_global_symbol_to_import=
6557 +  lt_cdecl_hook=
6558 +  lt_c_name_hook=
6559 +  lt_c_name_lib_hook=
6560 + fi
6561 +
6562   # Transform an extracted symbol line into a proper C declaration.
6563   # Some systems (esp. on ia64) link data and code symbols differently,
6564   # so use this general approach.
6565 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6565 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6566 > $lt_cdecl_hook\
6567 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6568 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6569  
6570   # Transform an extracted symbol line into symbol name and symbol address
6571 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6572 < lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6571 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6572 > $lt_c_name_hook\
6573 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6574 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6575 >
6576 > # Transform an extracted symbol line into symbol name with lib prefix and
6577 > # symbol address.
6578 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6579 > $lt_c_name_lib_hook\
6580 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6581 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6582 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6583  
6584   # Handle CRLF in mingw tool chain
6585   opt_cr=
# Line 6493 | Line 6597 | for ac_symprfx in "" "_"; do
6597  
6598    # Write the raw and C identifiers.
6599    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6600 <    # Fake it for dumpbin and say T for any non-static function
6601 <    # and D for any global variable.
6600 >    # Fake it for dumpbin and say T for any non-static function,
6601 >    # D for any global variable and I for any imported variable.
6602      # Also find C++ and __fastcall symbols from MSVC++,
6603      # which start with @ or ?.
6604      lt_cv_sys_global_symbol_pipe="$AWK '"\
6605   "     {last_section=section; section=\$ 3};"\
6606   "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6607   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6608 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6609 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6610 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6611   "     \$ 0!~/External *\|/{next};"\
6612   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6613   "     {if(hide[section]) next};"\
6614 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6615 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6616 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6617 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6614 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6615 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6616 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6617 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6618   "     ' prfx=^$ac_symprfx"
6619    else
6620      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6555 | Line 6662 | _LT_EOF
6662          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6663            cat <<_LT_EOF > conftest.$ac_ext
6664   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6665 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6666 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6665 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6666 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6667     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6668   # define LT_DLSYM_CONST
6669 < #elif defined(__osf__)
6669 > #elif defined __osf__
6670   /* This system does not cope well with relocations in const data.  */
6671   # define LT_DLSYM_CONST
6672   #else
# Line 6585 | Line 6692 | lt__PROGRAM__LTX_preloaded_symbols[] =
6692   {
6693    { "@PROGRAM@", (void *) 0 },
6694   _LT_EOF
6695 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6695 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6696            cat <<\_LT_EOF >> conftest.$ac_ext
6697    {0, (void *) 0}
6698   };
# Line 6605 | Line 6712 | _LT_EOF
6712            mv conftest.$ac_objext conftstm.$ac_objext
6713            lt_globsym_save_LIBS=$LIBS
6714            lt_globsym_save_CFLAGS=$CFLAGS
6715 <          LIBS="conftstm.$ac_objext"
6715 >          LIBS=conftstm.$ac_objext
6716            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6717            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6718    (eval $ac_link) 2>&5
6719    ac_status=$?
6720    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6721 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6722              pipe_works=yes
6723            fi
6724            LIBS=$lt_globsym_save_LIBS
# Line 6632 | Line 6739 | _LT_EOF
6739    rm -rf conftest* conftst*
6740  
6741    # Do not use the global_symbol_pipe unless it works.
6742 <  if test "$pipe_works" = yes; then
6742 >  if test yes = "$pipe_works"; then
6743      break
6744    else
6745      lt_cv_sys_global_symbol_pipe=
# Line 6685 | Line 6792 | fi
6792  
6793  
6794  
6795 +
6796 +
6797 +
6798 +
6799 +
6800 +
6801 +
6802 +
6803 +
6804 +
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6806   $as_echo_n "checking for sysroot... " >&6; }
6807  
# Line 6697 | Line 6814 | fi
6814  
6815  
6816   lt_sysroot=
6817 < case ${with_sysroot} in #(
6817 > case $with_sysroot in #(
6818   yes)
6819 <   if test "$GCC" = yes; then
6819 >   if test yes = "$GCC"; then
6820       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6821     fi
6822     ;; #(
# Line 6709 | Line 6826 | case ${with_sysroot} in #(
6826   no|'')
6827     ;; #(
6828   *)
6829 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6830 < $as_echo "${with_sysroot}" >&6; }
6829 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6830 > $as_echo "$with_sysroot" >&6; }
6831     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6832     ;;
6833   esac
# Line 6722 | Line 6839 | $as_echo "${lt_sysroot:-no}" >&6; }
6839  
6840  
6841  
6842 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6843 + $as_echo_n "checking for a working dd... " >&6; }
6844 + if ${ac_cv_path_lt_DD+:} false; then :
6845 +  $as_echo_n "(cached) " >&6
6846 + else
6847 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6848 + cat conftest.i conftest.i >conftest2.i
6849 + : ${lt_DD:=$DD}
6850 + if test -z "$lt_DD"; then
6851 +  ac_path_lt_DD_found=false
6852 +  # Loop through the user's path and test for each of PROGNAME-LIST
6853 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 + for as_dir in $PATH
6855 + do
6856 +  IFS=$as_save_IFS
6857 +  test -z "$as_dir" && as_dir=.
6858 +    for ac_prog in dd; do
6859 +    for ac_exec_ext in '' $ac_executable_extensions; do
6860 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6861 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6862 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6863 +  cmp -s conftest.i conftest.out \
6864 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6865 + fi
6866 +      $ac_path_lt_DD_found && break 3
6867 +    done
6868 +  done
6869 +  done
6870 + IFS=$as_save_IFS
6871 +  if test -z "$ac_cv_path_lt_DD"; then
6872 +    :
6873 +  fi
6874 + else
6875 +  ac_cv_path_lt_DD=$lt_DD
6876 + fi
6877 +
6878 + rm -f conftest.i conftest2.i conftest.out
6879 + fi
6880 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6881 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6882 +
6883 +
6884 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6885 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6886 + if ${lt_cv_truncate_bin+:} false; then :
6887 +  $as_echo_n "(cached) " >&6
6888 + else
6889 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6890 + cat conftest.i conftest.i >conftest2.i
6891 + lt_cv_truncate_bin=
6892 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6893 +  cmp -s conftest.i conftest.out \
6894 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6895 + fi
6896 + rm -f conftest.i conftest2.i conftest.out
6897 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6898 + fi
6899 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6900 + $as_echo "$lt_cv_truncate_bin" >&6; }
6901 +
6902 +
6903 +
6904 +
6905 +
6906 +
6907 +
6908 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6909 + func_cc_basename ()
6910 + {
6911 +    for cc_temp in $*""; do
6912 +      case $cc_temp in
6913 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6914 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6915 +        \-*) ;;
6916 +        *) break;;
6917 +      esac
6918 +    done
6919 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6920 + }
6921 +
6922   # Check whether --enable-libtool-lock was given.
6923   if test "${enable_libtool_lock+set}" = set; then :
6924    enableval=$enable_libtool_lock;
6925   fi
6926  
6927 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6927 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6928  
6929   # Some flags need to be propagated to the compiler or linker for good
6930   # libtool support.
6931   case $host in
6932   ia64-*-hpux*)
6933 <  # Find out which ABI we are using.
6933 >  # Find out what ABI is being produced by ac_compile, and set mode
6934 >  # options accordingly.
6935    echo 'int i;' > conftest.$ac_ext
6936    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937    (eval $ac_compile) 2>&5
# Line 6742 | Line 6940 | ia64-*-hpux*)
6940    test $ac_status = 0; }; then
6941      case `/usr/bin/file conftest.$ac_objext` in
6942        *ELF-32*)
6943 <        HPUX_IA64_MODE="32"
6943 >        HPUX_IA64_MODE=32
6944          ;;
6945        *ELF-64*)
6946 <        HPUX_IA64_MODE="64"
6946 >        HPUX_IA64_MODE=64
6947          ;;
6948      esac
6949    fi
6950    rm -rf conftest*
6951    ;;
6952   *-*-irix6*)
6953 <  # Find out which ABI we are using.
6953 >  # Find out what ABI is being produced by ac_compile, and set linker
6954 >  # options accordingly.
6955    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6956    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6957    (eval $ac_compile) 2>&5
6958    ac_status=$?
6959    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960    test $ac_status = 0; }; then
6961 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6961 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6962        case `/usr/bin/file conftest.$ac_objext` in
6963          *32-bit*)
6964            LD="${LD-ld} -melf32bsmip"
# Line 6788 | Line 6987 | ia64-*-hpux*)
6987    rm -rf conftest*
6988    ;;
6989  
6990 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6990 > mips64*-*linux*)
6991 >  # Find out what ABI is being produced by ac_compile, and set linker
6992 >  # options accordingly.
6993 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6994 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6995 >  (eval $ac_compile) 2>&5
6996 >  ac_status=$?
6997 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998 >  test $ac_status = 0; }; then
6999 >    emul=elf
7000 >    case `/usr/bin/file conftest.$ac_objext` in
7001 >      *32-bit*)
7002 >        emul="${emul}32"
7003 >        ;;
7004 >      *64-bit*)
7005 >        emul="${emul}64"
7006 >        ;;
7007 >    esac
7008 >    case `/usr/bin/file conftest.$ac_objext` in
7009 >      *MSB*)
7010 >        emul="${emul}btsmip"
7011 >        ;;
7012 >      *LSB*)
7013 >        emul="${emul}ltsmip"
7014 >        ;;
7015 >    esac
7016 >    case `/usr/bin/file conftest.$ac_objext` in
7017 >      *N32*)
7018 >        emul="${emul}n32"
7019 >        ;;
7020 >    esac
7021 >    LD="${LD-ld} -m $emul"
7022 >  fi
7023 >  rm -rf conftest*
7024 >  ;;
7025 >
7026 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7027   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7028 <  # Find out which ABI we are using.
7028 >  # Find out what ABI is being produced by ac_compile, and set linker
7029 >  # options accordingly.  Note that the listed cases only cover the
7030 >  # situations where additional linker options are needed (such as when
7031 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7032 >  # vice versa); the common cases where no linker options are needed do
7033 >  # not appear in the list.
7034    echo 'int i;' > conftest.$ac_ext
7035    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7036    (eval $ac_compile) 2>&5
# Line 6804 | Line 7044 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7044              LD="${LD-ld} -m elf_i386_fbsd"
7045              ;;
7046            x86_64-*linux*)
7047 <            LD="${LD-ld} -m elf_i386"
7047 >            case `/usr/bin/file conftest.o` in
7048 >              *x86-64*)
7049 >                LD="${LD-ld} -m elf32_x86_64"
7050 >                ;;
7051 >              *)
7052 >                LD="${LD-ld} -m elf_i386"
7053 >                ;;
7054 >            esac
7055              ;;
7056 <          ppc64-*linux*|powerpc64-*linux*)
7056 >          powerpc64le-*linux*)
7057 >            LD="${LD-ld} -m elf32lppclinux"
7058 >            ;;
7059 >          powerpc64-*linux*)
7060              LD="${LD-ld} -m elf32ppclinux"
7061              ;;
7062            s390x-*linux*)
# Line 6825 | Line 7075 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7075            x86_64-*linux*)
7076              LD="${LD-ld} -m elf_x86_64"
7077              ;;
7078 <          ppc*-*linux*|powerpc*-*linux*)
7078 >          powerpcle-*linux*)
7079 >            LD="${LD-ld} -m elf64lppc"
7080 >            ;;
7081 >          powerpc-*linux*)
7082              LD="${LD-ld} -m elf64ppc"
7083              ;;
7084            s390*-*linux*|s390*-*tpf*)
# Line 6843 | Line 7096 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7096  
7097   *-*-sco3.2v5*)
7098    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7099 <  SAVE_CFLAGS="$CFLAGS"
7099 >  SAVE_CFLAGS=$CFLAGS
7100    CFLAGS="$CFLAGS -belf"
7101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7102   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 6883 | Line 7136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136   fi
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7138   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7139 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7139 >  if test yes != "$lt_cv_cc_needs_belf"; then
7140      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7141 <    CFLAGS="$SAVE_CFLAGS"
7141 >    CFLAGS=$SAVE_CFLAGS
7142    fi
7143    ;;
7144   *-*solaris*)
7145 <  # Find out which ABI we are using.
7145 >  # Find out what ABI is being produced by ac_compile, and set linker
7146 >  # options accordingly.
7147    echo 'int i;' > conftest.$ac_ext
7148    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7149    (eval $ac_compile) 2>&5
# Line 6901 | Line 7155 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7155        case $lt_cv_prog_gnu_ld in
7156        yes*)
7157          case $host in
7158 <        i?86-*-solaris*)
7158 >        i?86-*-solaris*|x86_64-*-solaris*)
7159            LD="${LD-ld} -m elf_x86_64"
7160            ;;
7161          sparc*-*-solaris*)
# Line 6910 | Line 7164 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7164          esac
7165          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7166          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7167 <          LD="${LD-ld}_sol2"
7167 >          LD=${LD-ld}_sol2
7168          fi
7169          ;;
7170        *)
# Line 6926 | Line 7180 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7180    ;;
7181   esac
7182  
7183 < need_locks="$enable_libtool_lock"
7183 > need_locks=$enable_libtool_lock
7184  
7185   if test -n "$ac_tool_prefix"; then
7186    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 7037 | Line 7291 | else
7291   fi
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7293   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7294 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7294 > if test yes != "$lt_cv_path_mainfest_tool"; then
7295    MANIFEST_TOOL=:
7296   fi
7297  
# Line 7540 | Line 7794 | if ${lt_cv_apple_cc_single_mod+:} false;
7794    $as_echo_n "(cached) " >&6
7795   else
7796    lt_cv_apple_cc_single_mod=no
7797 <      if test -z "${LT_MULTI_MODULE}"; then
7797 >      if test -z "$LT_MULTI_MODULE"; then
7798          # By default we will add the -single_module flag. You can override
7799          # by either setting the environment variable LT_MULTI_MODULE
7800          # non-empty at configure time, or by adding -multi_module to the
# Line 7558 | Line 7812 | else
7812            cat conftest.err >&5
7813          # Otherwise, if the output was created with a 0 exit code from
7814          # the compiler, it worked.
7815 <        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7815 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7816            lt_cv_apple_cc_single_mod=yes
7817          else
7818            cat conftest.err >&5
# Line 7597 | Line 7851 | else
7851   fi
7852   rm -f core conftest.err conftest.$ac_objext \
7853      conftest$ac_exeext conftest.$ac_ext
7854 <        LDFLAGS="$save_LDFLAGS"
7854 >        LDFLAGS=$save_LDFLAGS
7855  
7856   fi
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
# Line 7626 | Line 7880 | _LT_EOF
7880        _lt_result=$?
7881        if test -s conftest.err && $GREP force_load conftest.err; then
7882          cat conftest.err >&5
7883 <      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7883 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7884          lt_cv_ld_force_load=yes
7885        else
7886          cat conftest.err >&5
# Line 7639 | Line 7893 | fi
7893   $as_echo "$lt_cv_ld_force_load" >&6; }
7894      case $host_os in
7895      rhapsody* | darwin1.[012])
7896 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7896 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7897      darwin1.*)
7898 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7898 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7899      darwin*) # darwin 5.x on
7900        # if running on 10.5 or later, the deployment target defaults
7901        # to the OS version, if on x86, and 10.4, the deployment
7902        # target defaults to 10.4. Don't you love it?
7903        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7904          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7905 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7906 <        10.[012]*)
7907 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7905 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7906 >        10.[012][,.]*)
7907 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7908          10.*)
7909 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7909 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7910        esac
7911      ;;
7912    esac
7913 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7913 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7914        _lt_dar_single_mod='$single_module'
7915      fi
7916 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7917 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7916 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7917 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7918      else
7919 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7919 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7920      fi
7921 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7921 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7922        _lt_dsymutil='~$DSYMUTIL $lib || :'
7923      else
7924        _lt_dsymutil=
# Line 7672 | Line 7926 | $as_echo "$lt_cv_ld_force_load" >&6; }
7926      ;;
7927    esac
7928  
7929 + # func_munge_path_list VARIABLE PATH
7930 + # -----------------------------------
7931 + # VARIABLE is name of variable containing _space_ separated list of
7932 + # directories to be munged by the contents of PATH, which is string
7933 + # having a format:
7934 + # "DIR[:DIR]:"
7935 + #       string "DIR[ DIR]" will be prepended to VARIABLE
7936 + # ":DIR[:DIR]"
7937 + #       string "DIR[ DIR]" will be appended to VARIABLE
7938 + # "DIRP[:DIRP]::[DIRA:]DIRA"
7939 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7940 + #       "DIRA[ DIRA]" will be appended to VARIABLE
7941 + # "DIR[:DIR]"
7942 + #       VARIABLE will be replaced by "DIR[ DIR]"
7943 + func_munge_path_list ()
7944 + {
7945 +    case x$2 in
7946 +    x)
7947 +        ;;
7948 +    *:)
7949 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7950 +        ;;
7951 +    x:*)
7952 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7953 +        ;;
7954 +    *::*)
7955 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7956 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7957 +        ;;
7958 +    *)
7959 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7960 +        ;;
7961 +    esac
7962 + }
7963 +
7964   ac_ext=c
7965   ac_cpp='$CPP $CPPFLAGS'
7966   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 7967 | Line 8256 | if test "${enable_static+set}" = set; th
8256      *)
8257       enable_static=no
8258        # Look at the argument we got.  We use all the common list separators.
8259 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8259 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8260        for pkg in $enableval; do
8261 <        IFS="$lt_save_ifs"
8261 >        IFS=$lt_save_ifs
8262          if test "X$pkg" = "X$p"; then
8263            enable_static=yes
8264          fi
8265        done
8266 <      IFS="$lt_save_ifs"
8266 >      IFS=$lt_save_ifs
8267        ;;
8268      esac
8269   else
# Line 8003 | Line 8292 | if test "${enable_shared+set}" = set; th
8292      *)
8293        enable_shared=no
8294        # Look at the argument we got.  We use all the common list separators.
8295 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8296        for pkg in $enableval; do
8297 <        IFS="$lt_save_ifs"
8297 >        IFS=$lt_save_ifs
8298          if test "X$pkg" = "X$p"; then
8299            enable_shared=yes
8300          fi
8301        done
8302 <      IFS="$lt_save_ifs"
8302 >      IFS=$lt_save_ifs
8303        ;;
8304      esac
8305   else
# Line 8035 | Line 8324 | if test "${with_pic+set}" = set; then :
8324      *)
8325        pic_mode=default
8326        # Look at the argument we got.  We use all the common list separators.
8327 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8327 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8328        for lt_pkg in $withval; do
8329 <        IFS="$lt_save_ifs"
8329 >        IFS=$lt_save_ifs
8330          if test "X$lt_pkg" = "X$lt_p"; then
8331            pic_mode=yes
8332          fi
8333        done
8334 <      IFS="$lt_save_ifs"
8334 >      IFS=$lt_save_ifs
8335        ;;
8336      esac
8337   else
# Line 8050 | Line 8339 | else
8339   fi
8340  
8341  
8053 – test -z "$pic_mode" && pic_mode=default
8054 –
8342  
8343  
8344  
# Line 8067 | Line 8354 | if test "${enable_fast_install+set}" = s
8354      *)
8355        enable_fast_install=no
8356        # Look at the argument we got.  We use all the common list separators.
8357 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8357 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8358        for pkg in $enableval; do
8359 <        IFS="$lt_save_ifs"
8359 >        IFS=$lt_save_ifs
8360          if test "X$pkg" = "X$p"; then
8361            enable_fast_install=yes
8362          fi
8363        done
8364 <      IFS="$lt_save_ifs"
8364 >      IFS=$lt_save_ifs
8365        ;;
8366      esac
8367   else
# Line 8088 | Line 8375 | fi
8375  
8376  
8377  
8378 +  shared_archive_member_spec=
8379 + case $host,$enable_shared in
8380 + power*-*-aix[5-9]*,yes)
8381 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8382 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8383 +
8384 + # Check whether --with-aix-soname was given.
8385 + if test "${with_aix_soname+set}" = set; then :
8386 +  withval=$with_aix_soname; case $withval in
8387 +    aix|svr4|both)
8388 +      ;;
8389 +    *)
8390 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8391 +      ;;
8392 +    esac
8393 +    lt_cv_with_aix_soname=$with_aix_soname
8394 + else
8395 +  if ${lt_cv_with_aix_soname+:} false; then :
8396 +  $as_echo_n "(cached) " >&6
8397 + else
8398 +  lt_cv_with_aix_soname=aix
8399 + fi
8400 +
8401 +    with_aix_soname=$lt_cv_with_aix_soname
8402 + fi
8403 +
8404 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8405 + $as_echo "$with_aix_soname" >&6; }
8406 +  if test aix != "$with_aix_soname"; then
8407 +    # For the AIX way of multilib, we name the shared archive member
8408 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8409 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8410 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8411 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8412 +    if test 64 = "${OBJECT_MODE-32}"; then
8413 +      shared_archive_member_spec=shr_64
8414 +    else
8415 +      shared_archive_member_spec=shr
8416 +    fi
8417 +  fi
8418 +  ;;
8419 + *)
8420 +  with_aix_soname=aix
8421 +  ;;
8422 + esac
8423 +
8424 +
8425 +
8426 +
8427 +
8428 +
8429 +
8430  
8431  
8432  
8433   # This can be used to rebuild libtool when needed
8434 < LIBTOOL_DEPS="$ltmain"
8434 > LIBTOOL_DEPS=$ltmain
8435  
8436   # Always use our own libtool.
8437   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8141 | Line 8480 | test -z "$LN_S" && LN_S="ln -s"
8480  
8481  
8482  
8483 < if test -n "${ZSH_VERSION+set}" ; then
8483 > if test -n "${ZSH_VERSION+set}"; then
8484     setopt NO_GLOB_SUBST
8485   fi
8486  
# Line 8180 | Line 8519 | aix3*)
8519    # AIX sometimes has problems with the GCC collect2 program.  For some
8520    # reason, if we set the COLLECT_NAMES environment variable, the problems
8521    # vanish in a puff of smoke.
8522 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8522 >  if test set != "${COLLECT_NAMES+set}"; then
8523      COLLECT_NAMES=
8524      export COLLECT_NAMES
8525    fi
# Line 8191 | Line 8530 | esac
8530   ofile=libtool
8531   can_build_shared=yes
8532  
8533 < # All known linkers require a `.a' archive for static linking (except MSVC,
8533 > # All known linkers require a '.a' archive for static linking (except MSVC,
8534   # which needs '.lib').
8535   libext=a
8536  
8537 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8537 > with_gnu_ld=$lt_cv_prog_gnu_ld
8538  
8539 < old_CC="$CC"
8540 < old_CFLAGS="$CFLAGS"
8539 > old_CC=$CC
8540 > old_CFLAGS=$CFLAGS
8541  
8542   # Set sane defaults for various variables
8543   test -z "$CC" && CC=cc
# Line 8207 | Line 8546 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8546   test -z "$LD" && LD=ld
8547   test -z "$ac_objext" && ac_objext=o
8548  
8549 < for cc_temp in $compiler""; do
8550 <  case $cc_temp in
8212 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8213 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8214 <    \-*) ;;
8215 <    *) break;;
8216 <  esac
8217 < done
8218 < cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8549 > func_cc_basename $compiler
8550 > cc_basename=$func_cc_basename_result
8551  
8552  
8553   # Only perform the check for file, if the check method requires it
# Line 8230 | Line 8562 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8562   else
8563    case $MAGIC_CMD in
8564   [\\/*] |  ?:[\\/]*)
8565 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8566    ;;
8567   *)
8568 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8569 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8568 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8569 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8570    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8571    for ac_dir in $ac_dummy; do
8572 <    IFS="$lt_save_ifs"
8572 >    IFS=$lt_save_ifs
8573      test -z "$ac_dir" && ac_dir=.
8574 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8575 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8574 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8575 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8576        if test -n "$file_magic_test_file"; then
8577          case $deplibs_check_method in
8578          "file_magic "*)
8579            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8580 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8581            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8582              $EGREP "$file_magic_regex" > /dev/null; then
8583              :
# Line 8268 | Line 8600 | _LT_EOF
8600        break
8601      fi
8602    done
8603 <  IFS="$lt_save_ifs"
8604 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8603 >  IFS=$lt_save_ifs
8604 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8605    ;;
8606   esac
8607   fi
8608  
8609 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8610   if test -n "$MAGIC_CMD"; then
8611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8612   $as_echo "$MAGIC_CMD" >&6; }
# Line 8296 | Line 8628 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8628   else
8629    case $MAGIC_CMD in
8630   [\\/*] |  ?:[\\/]*)
8631 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8631 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8632    ;;
8633   *)
8634 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8635 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8634 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8635 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8636    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8637    for ac_dir in $ac_dummy; do
8638 <    IFS="$lt_save_ifs"
8638 >    IFS=$lt_save_ifs
8639      test -z "$ac_dir" && ac_dir=.
8640 <    if test -f $ac_dir/file; then
8641 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8640 >    if test -f "$ac_dir/file"; then
8641 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8642        if test -n "$file_magic_test_file"; then
8643          case $deplibs_check_method in
8644          "file_magic "*)
8645            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8646 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8646 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8647            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8648              $EGREP "$file_magic_regex" > /dev/null; then
8649              :
# Line 8334 | Line 8666 | _LT_EOF
8666        break
8667      fi
8668    done
8669 <  IFS="$lt_save_ifs"
8670 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8669 >  IFS=$lt_save_ifs
8670 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8671    ;;
8672   esac
8673   fi
8674  
8675 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8676   if test -n "$MAGIC_CMD"; then
8677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8678   $as_echo "$MAGIC_CMD" >&6; }
# Line 8361 | Line 8693 | esac
8693  
8694   # Use C for the default configuration in the libtool script
8695  
8696 < lt_save_CC="$CC"
8696 > lt_save_CC=$CC
8697   ac_ext=c
8698   ac_cpp='$CPP $CPPFLAGS'
8699   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8415 | Line 8747 | _lt_linker_boilerplate=`cat conftest.err
8747   $RM -r conftest*
8748  
8749  
8750 + ## CAVEAT EMPTOR:
8751 + ## There is no encapsulation within the following macros, do not change
8752 + ## the running order or otherwise move them around unless you know exactly
8753 + ## what you are doing...
8754   if test -n "$compiler"; then
8755  
8756   lt_prog_compiler_no_builtin_flag=
8757  
8758 < if test "$GCC" = yes; then
8758 > if test yes = "$GCC"; then
8759    case $cc_basename in
8760    nvcc*)
8761      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8435 | Line 8771 | else
8771    lt_cv_prog_compiler_rtti_exceptions=no
8772     ac_outfile=conftest.$ac_objext
8773     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8774 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8775     # Insert the option either (1) after the last *FLAGS variable, or
8776     # (2) before a word containing "conftest.", or (3) at the end.
8777     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8465 | Line 8801 | fi
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8802   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8803  
8804 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8804 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8805      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8806   else
8807      :
# Line 8483 | Line 8819 | lt_prog_compiler_pic=
8819   lt_prog_compiler_static=
8820  
8821  
8822 <  if test "$GCC" = yes; then
8822 >  if test yes = "$GCC"; then
8823      lt_prog_compiler_wl='-Wl,'
8824      lt_prog_compiler_static='-static'
8825  
8826      case $host_os in
8827        aix*)
8828        # All AIX code is PIC.
8829 <      if test "$host_cpu" = ia64; then
8829 >      if test ia64 = "$host_cpu"; then
8830          # AIX 5 now supports IA64 processor
8831          lt_prog_compiler_static='-Bstatic'
8832        fi
8833 +      lt_prog_compiler_pic='-fPIC'
8834        ;;
8835  
8836      amigaos*)
# Line 8504 | Line 8841 | lt_prog_compiler_static=
8841          ;;
8842        m68k)
8843              # FIXME: we need at least 68020 code to build shared libraries, but
8844 <            # adding the `-m68020' flag to GCC prevents building anything better,
8845 <            # like `-m68040'.
8844 >            # adding the '-m68020' flag to GCC prevents building anything better,
8845 >            # like '-m68040'.
8846              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8847          ;;
8848        esac
# Line 8521 | Line 8858 | lt_prog_compiler_static=
8858        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8859        # (--disable-auto-import) libraries
8860        lt_prog_compiler_pic='-DDLL_EXPORT'
8861 +      case $host_os in
8862 +      os2*)
8863 +        lt_prog_compiler_static='$wl-static'
8864 +        ;;
8865 +      esac
8866        ;;
8867  
8868      darwin* | rhapsody*)
# Line 8591 | Line 8933 | lt_prog_compiler_static=
8933      case $host_os in
8934      aix*)
8935        lt_prog_compiler_wl='-Wl,'
8936 <      if test "$host_cpu" = ia64; then
8936 >      if test ia64 = "$host_cpu"; then
8937          # AIX 5 now supports IA64 processor
8938          lt_prog_compiler_static='-Bstatic'
8939        else
# Line 8599 | Line 8941 | lt_prog_compiler_static=
8941        fi
8942        ;;
8943  
8944 +    darwin* | rhapsody*)
8945 +      # PIC is the default on this platform
8946 +      # Common symbols not allowed in MH_DYLIB files
8947 +      lt_prog_compiler_pic='-fno-common'
8948 +      case $cc_basename in
8949 +      nagfor*)
8950 +        # NAG Fortran compiler
8951 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8952 +        lt_prog_compiler_pic='-PIC'
8953 +        lt_prog_compiler_static='-Bstatic'
8954 +        ;;
8955 +      esac
8956 +      ;;
8957 +
8958      mingw* | cygwin* | pw32* | os2* | cegcc*)
8959        # This hack is so that the source file can tell whether it is being
8960        # built for inclusion in a dll (and should export symbols for example).
8961        lt_prog_compiler_pic='-DDLL_EXPORT'
8962 +      case $host_os in
8963 +      os2*)
8964 +        lt_prog_compiler_static='$wl-static'
8965 +        ;;
8966 +      esac
8967        ;;
8968  
8969      hpux9* | hpux10* | hpux11*)
# Line 8618 | Line 8979 | lt_prog_compiler_static=
8979          ;;
8980        esac
8981        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8982 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8982 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8983        ;;
8984  
8985      irix5* | irix6* | nonstopux*)
# Line 8627 | Line 8988 | lt_prog_compiler_static=
8988        lt_prog_compiler_static='-non_shared'
8989        ;;
8990  
8991 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8991 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8992        case $cc_basename in
8993 <      # old Intel for x86_64 which still supported -KPIC.
8993 >      # old Intel for x86_64, which still supported -KPIC.
8994        ecc*)
8995          lt_prog_compiler_wl='-Wl,'
8996          lt_prog_compiler_pic='-KPIC'
# Line 8654 | Line 9015 | lt_prog_compiler_static=
9015          lt_prog_compiler_pic='-PIC'
9016          lt_prog_compiler_static='-Bstatic'
9017          ;;
9018 +      tcc*)
9019 +        # Fabrice Bellard et al's Tiny C Compiler
9020 +        lt_prog_compiler_wl='-Wl,'
9021 +        lt_prog_compiler_pic='-fPIC'
9022 +        lt_prog_compiler_static='-static'
9023 +        ;;
9024        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9025          # Portland Group compilers (*not* the Pentium gcc compiler,
9026          # which looks to be a dead project)
# Line 8751 | Line 9118 | lt_prog_compiler_static=
9118        ;;
9119  
9120      sysv4*MP*)
9121 <      if test -d /usr/nec ;then
9121 >      if test -d /usr/nec; then
9122          lt_prog_compiler_pic='-Kconform_pic'
9123          lt_prog_compiler_static='-Bstatic'
9124        fi
# Line 8780 | Line 9147 | lt_prog_compiler_static=
9147    fi
9148  
9149   case $host_os in
9150 <  # For platforms which do not support PIC, -DPIC is meaningless:
9150 >  # For platforms that do not support PIC, -DPIC is meaningless:
9151    *djgpp*)
9152      lt_prog_compiler_pic=
9153      ;;
# Line 8812 | Line 9179 | else
9179    lt_cv_prog_compiler_pic_works=no
9180     ac_outfile=conftest.$ac_objext
9181     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9182 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9182 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9183     # Insert the option either (1) after the last *FLAGS variable, or
9184     # (2) before a word containing "conftest.", or (3) at the end.
9185     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8842 | Line 9209 | fi
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9210   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9211  
9212 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9212 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9213      case $lt_prog_compiler_pic in
9214       "" | " "*) ;;
9215       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 8874 | Line 9241 | if ${lt_cv_prog_compiler_static_works+:}
9241    $as_echo_n "(cached) " >&6
9242   else
9243    lt_cv_prog_compiler_static_works=no
9244 <   save_LDFLAGS="$LDFLAGS"
9244 >   save_LDFLAGS=$LDFLAGS
9245     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9246     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9247     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 8893 | Line 9260 | else
9260       fi
9261     fi
9262     $RM -r conftest*
9263 <   LDFLAGS="$save_LDFLAGS"
9263 >   LDFLAGS=$save_LDFLAGS
9264  
9265   fi
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9267   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9268  
9269 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9269 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9270      :
9271   else
9272      lt_prog_compiler_static=
# Line 9019 | Line 9386 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9386  
9387  
9388  
9389 < hard_links="nottested"
9390 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9389 > hard_links=nottested
9390 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9391    # do not overwrite the value of need_locks provided by the user
9392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9393   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 9032 | Line 9399 | $as_echo_n "checking if we can lock with
9399    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9401   $as_echo "$hard_links" >&6; }
9402 <  if test "$hard_links" = no; then
9403 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9404 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9402 >  if test no = "$hard_links"; then
9403 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9404 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9405      need_locks=warn
9406    fi
9407   else
# Line 9077 | Line 9444 | $as_echo_n "checking whether the $compil
9444    # included in the symbol list
9445    include_expsyms=
9446    # exclude_expsyms can be an extended regexp of symbols to exclude
9447 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9448 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9449 <  # as well as any symbol that contains `d'.
9447 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9448 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9449 >  # as well as any symbol that contains 'd'.
9450    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9451    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9452    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9094 | Line 9461 | $as_echo_n "checking whether the $compil
9461      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9462      # When not using gcc, we currently assume that we are using
9463      # Microsoft Visual C++.
9464 <    if test "$GCC" != yes; then
9464 >    if test yes != "$GCC"; then
9465        with_gnu_ld=no
9466      fi
9467      ;;
# Line 9102 | Line 9469 | $as_echo_n "checking whether the $compil
9469      # we just hope/assume this is gcc and not c89 (= MSVC++)
9470      with_gnu_ld=yes
9471      ;;
9472 <  openbsd*)
9472 >  openbsd* | bitrig*)
9473      with_gnu_ld=no
9474      ;;
9475    esac
# Line 9112 | Line 9479 | $as_echo_n "checking whether the $compil
9479    # On some targets, GNU ld is compatible enough with the native linker
9480    # that we're better off using the native interface for both.
9481    lt_use_gnu_ld_interface=no
9482 <  if test "$with_gnu_ld" = yes; then
9482 >  if test yes = "$with_gnu_ld"; then
9483      case $host_os in
9484        aix*)
9485          # The AIX port of GNU ld has always aspired to compatibility
# Line 9134 | Line 9501 | $as_echo_n "checking whether the $compil
9501      esac
9502    fi
9503  
9504 <  if test "$lt_use_gnu_ld_interface" = yes; then
9504 >  if test yes = "$lt_use_gnu_ld_interface"; then
9505      # If archive_cmds runs LD, not CC, wlarc should be empty
9506 <    wlarc='${wl}'
9506 >    wlarc='$wl'
9507  
9508      # Set some defaults for GNU ld with shared library support. These
9509      # are reset later if shared libraries are not supported. Putting them
9510      # here allows them to be overridden if necessary.
9511      runpath_var=LD_RUN_PATH
9512 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9512 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9513 >    export_dynamic_flag_spec='$wl--export-dynamic'
9514      # ancient GNU ld didn't support --whole-archive et. al.
9515      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9516 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9516 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9517      else
9518        whole_archive_flag_spec=
9519      fi
9520      supports_anon_versioning=no
9521 <    case `$LD -v 2>&1` in
9521 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9522        *GNU\ gold*) supports_anon_versioning=yes ;;
9523        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9524        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9164 | Line 9531 | $as_echo_n "checking whether the $compil
9531      case $host_os in
9532      aix[3-9]*)
9533        # On AIX/PPC, the GNU linker is very broken
9534 <      if test "$host_cpu" != ia64; then
9534 >      if test ia64 != "$host_cpu"; then
9535          ld_shlibs=no
9536          cat <<_LT_EOF 1>&2
9537  
# Line 9183 | Line 9550 | _LT_EOF
9550        case $host_cpu in
9551        powerpc)
9552              # see comment about AmigaOS4 .so support
9553 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9554              archive_expsym_cmds=''
9555          ;;
9556        m68k)
# Line 9199 | Line 9566 | _LT_EOF
9566          allow_undefined_flag=unsupported
9567          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9568          # support --undefined.  This deserves some investigation.  FIXME
9569 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9570        else
9571          ld_shlibs=no
9572        fi
# Line 9209 | Line 9576 | _LT_EOF
9576        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9577        # as there is no search path for DLLs.
9578        hardcode_libdir_flag_spec='-L$libdir'
9579 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9579 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9580        allow_undefined_flag=unsupported
9581        always_export_symbols=no
9582        enable_shared_with_static_runtimes=yes
# Line 9217 | Line 9584 | _LT_EOF
9584        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9585  
9586        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9587 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9588 <        # If the export-symbols file already is a .def file (1st line
9589 <        # is EXPORTS), use it as is; otherwise, prepend...
9590 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9591 <          cp $export_symbols $output_objdir/$soname.def;
9592 <        else
9593 <          echo EXPORTS > $output_objdir/$soname.def;
9594 <          cat $export_symbols >> $output_objdir/$soname.def;
9595 <        fi~
9596 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9587 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9588 >        # If the export-symbols file already is a .def file, use it as
9589 >        # is; otherwise, prepend EXPORTS...
9590 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9591 >          cp $export_symbols $output_objdir/$soname.def;
9592 >        else
9593 >          echo EXPORTS > $output_objdir/$soname.def;
9594 >          cat $export_symbols >> $output_objdir/$soname.def;
9595 >        fi~
9596 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9597        else
9598          ld_shlibs=no
9599        fi
9600        ;;
9601  
9602      haiku*)
9603 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9604        link_all_deplibs=yes
9605        ;;
9606  
9607 +    os2*)
9608 +      hardcode_libdir_flag_spec='-L$libdir'
9609 +      hardcode_minus_L=yes
9610 +      allow_undefined_flag=unsupported
9611 +      shrext_cmds=.dll
9612 +      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9613 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9614 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9615 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9616 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9617 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9618 +        emximp -o $lib $output_objdir/$libname.def'
9619 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9620 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9621 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9622 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9623 +        prefix_cmds="$SED"~
9624 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9625 +          prefix_cmds="$prefix_cmds -e 1d";
9626 +        fi~
9627 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9628 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9629 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9630 +        emximp -o $lib $output_objdir/$libname.def'
9631 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9632 +      enable_shared_with_static_runtimes=yes
9633 +      ;;
9634 +
9635      interix[3-9]*)
9636        hardcode_direct=no
9637        hardcode_shlibpath_var=no
9638 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9639 <      export_dynamic_flag_spec='${wl}-E'
9638 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9639 >      export_dynamic_flag_spec='$wl-E'
9640        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9641        # Instead, shared libraries are loaded at an image base (0x10000000 by
9642        # default) and relocated if they conflict, which is a slow very memory
9643        # consuming and fragmenting process.  To avoid this, we pick a random,
9644        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9645        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9646 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9647 <      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9646 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9647 >      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9648        ;;
9649  
9650      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9651        tmp_diet=no
9652 <      if test "$host_os" = linux-dietlibc; then
9652 >      if test linux-dietlibc = "$host_os"; then
9653          case $cc_basename in
9654            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9655          esac
9656        fi
9657        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9658 <         && test "$tmp_diet" = no
9658 >         && test no = "$tmp_diet"
9659        then
9660          tmp_addflag=' $pic_flag'
9661          tmp_sharedflag='-shared'
9662          case $cc_basename,$host_cpu in
9663          pgcc*)                          # Portland Group C compiler
9664 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9664 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9665            tmp_addflag=' $pic_flag'
9666            ;;
9667          pgf77* | pgf90* | pgf95* | pgfortran*)
9668                                          # Portland Group f77 and f90 compilers
9669 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9669 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9670            tmp_addflag=' $pic_flag -Mnomain' ;;
9671          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9672            tmp_addflag=' -i_dynamic' ;;
# Line 9282 | Line 9677 | _LT_EOF
9677          lf95*)                          # Lahey Fortran 8.1
9678            whole_archive_flag_spec=
9679            tmp_sharedflag='--shared' ;;
9680 +        nagfor*)                        # NAGFOR 5.3
9681 +          tmp_sharedflag='-Wl,-shared' ;;
9682          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9683            tmp_sharedflag='-qmkshrobj'
9684            tmp_addflag= ;;
9685          nvcc*)  # Cuda Compiler Driver 2.2
9686 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9686 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9687            compiler_needs_object=yes
9688            ;;
9689          esac
9690          case `$CC -V 2>&1 | sed 5q` in
9691          *Sun\ C*)                       # Sun C 5.9
9692 <          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9692 >          whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9693            compiler_needs_object=yes
9694            tmp_sharedflag='-G' ;;
9695          *Sun\ F*)                       # Sun Fortran 8.3
9696            tmp_sharedflag='-G' ;;
9697          esac
9698 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9698 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9699  
9700 <        if test "x$supports_anon_versioning" = xyes; then
9700 >        if test yes = "$supports_anon_versioning"; then
9701            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9702 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9703 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9704 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9702 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9703 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9704 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9705          fi
9706  
9707          case $cc_basename in
9708 +        tcc*)
9709 +          export_dynamic_flag_spec='-rdynamic'
9710 +          ;;
9711          xlf* | bgf* | bgxlf* | mpixlf*)
9712            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9713            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9714 <          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9715            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9716 <          if test "x$supports_anon_versioning" = xyes; then
9716 >          if test yes = "$supports_anon_versioning"; then
9717              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9718 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9719 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9720 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9718 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9719 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9720 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9721            fi
9722            ;;
9723          esac
# Line 9331 | Line 9731 | _LT_EOF
9731          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9732          wlarc=
9733        else
9734 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9734 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9736        fi
9737        ;;
9738  
# Line 9350 | Line 9750 | _LT_EOF
9750  
9751   _LT_EOF
9752        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9753 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9754 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9753 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9754 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9755        else
9756          ld_shlibs=no
9757        fi
# Line 9363 | Line 9763 | _LT_EOF
9763          ld_shlibs=no
9764          cat <<_LT_EOF 1>&2
9765  
9766 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9766 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9767   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9768   *** is disabling shared libraries support.  We urge you to upgrade GNU
9769   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9378 | Line 9778 | _LT_EOF
9778            # DT_RUNPATH tag from executables and libraries.  But doing so
9779            # requires that you compile everything twice, which is a pain.
9780            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9781 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9781 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9782 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9783 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9784            else
9785              ld_shlibs=no
9786            fi
# Line 9397 | Line 9797 | _LT_EOF
9797  
9798      *)
9799        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9800 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9801 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9802        else
9803          ld_shlibs=no
9804        fi
9805        ;;
9806      esac
9807  
9808 <    if test "$ld_shlibs" = no; then
9808 >    if test no = "$ld_shlibs"; then
9809        runpath_var=
9810        hardcode_libdir_flag_spec=
9811        export_dynamic_flag_spec=
# Line 9421 | Line 9821 | _LT_EOF
9821        # Note: this linker hardcodes the directories in LIBPATH if there
9822        # are no directories specified by -L.
9823        hardcode_minus_L=yes
9824 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9824 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9825          # Neither direct hardcoding nor static linking is supported with a
9826          # broken collect2.
9827          hardcode_direct=unsupported
# Line 9429 | Line 9829 | _LT_EOF
9829        ;;
9830  
9831      aix[4-9]*)
9832 <      if test "$host_cpu" = ia64; then
9832 >      if test ia64 = "$host_cpu"; then
9833          # On IA64, the linker does run time linking by default, so we don't
9834          # have to do anything special.
9835          aix_use_runtimelinking=no
9836          exp_sym_flag='-Bexport'
9837 <        no_entry_flag=""
9837 >        no_entry_flag=
9838        else
9839          # If we're using GNU nm, then we don't want the "-C" option.
9840 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9841 <        # Also, AIX nm treats weak defined symbols like other global
9842 <        # defined symbols, whereas GNU nm marks them as "W".
9840 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9841 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9842 >        # weak defined symbols like other global defined symbols, whereas
9843 >        # GNU nm marks them as "W".
9844 >        # While the 'weak' keyword is ignored in the Export File, we need
9845 >        # it in the Import File for the 'aix-soname' feature, so we have
9846 >        # to replace the "-B" option with "-P" for AIX nm.
9847          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9848 <          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9848 >          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9849          else
9850 <          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9850 >          export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9851          fi
9852          aix_use_runtimelinking=no
9853  
9854          # Test if we are trying to use run time linking or normal
9855          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9856 <        # need to do runtime linking.
9856 >        # have runtime linking enabled, and use it for executables.
9857 >        # For shared libraries, we enable/disable runtime linking
9858 >        # depending on the kind of the shared library created -
9859 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9860 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9861 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9862 >        #            lib.a           static archive
9863 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9864 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9865 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9866 >        #            lib.a(lib.so.V) shared, rtl:no
9867 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9868 >        #            lib.a           static archive
9869          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9870            for ld_flag in $LDFLAGS; do
9871 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9871 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9872              aix_use_runtimelinking=yes
9873              break
9874            fi
9875            done
9876 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9877 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9878 +            # so we don't have lib.a shared libs to link our executables.
9879 +            # We have to force runtime linking in this case.
9880 +            aix_use_runtimelinking=yes
9881 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9882 +          fi
9883            ;;
9884          esac
9885  
# Line 9475 | Line 9898 | _LT_EOF
9898        hardcode_direct_absolute=yes
9899        hardcode_libdir_separator=':'
9900        link_all_deplibs=yes
9901 <      file_list_spec='${wl}-f,'
9901 >      file_list_spec='$wl-f,'
9902 >      case $with_aix_soname,$aix_use_runtimelinking in
9903 >      aix,*) ;; # traditional, no import file
9904 >      svr4,* | *,yes) # use import file
9905 >        # The Import File defines what to hardcode.
9906 >        hardcode_direct=no
9907 >        hardcode_direct_absolute=no
9908 >        ;;
9909 >      esac
9910  
9911 <      if test "$GCC" = yes; then
9911 >      if test yes = "$GCC"; then
9912          case $host_os in aix4.[012]|aix4.[012].*)
9913          # We only want to do this on AIX 4.2 and lower, the check
9914          # below for broken collect2 doesn't work under 4.3+
9915 <          collect2name=`${CC} -print-prog-name=collect2`
9915 >          collect2name=`$CC -print-prog-name=collect2`
9916            if test -f "$collect2name" &&
9917             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9918            then
# Line 9500 | Line 9931 | _LT_EOF
9931            ;;
9932          esac
9933          shared_flag='-shared'
9934 <        if test "$aix_use_runtimelinking" = yes; then
9935 <          shared_flag="$shared_flag "'${wl}-G'
9934 >        if test yes = "$aix_use_runtimelinking"; then
9935 >          shared_flag="$shared_flag "'$wl-G'
9936          fi
9937 +        # Need to ensure runtime linking is disabled for the traditional
9938 +        # shared library, or the linker may eventually find shared libraries
9939 +        # /with/ Import File - we do not want to mix them.
9940 +        shared_flag_aix='-shared'
9941 +        shared_flag_svr4='-shared $wl-G'
9942        else
9943          # not using gcc
9944 <        if test "$host_cpu" = ia64; then
9944 >        if test ia64 = "$host_cpu"; then
9945          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9946          # chokes on -Wl,-G. The following line is correct:
9947            shared_flag='-G'
9948          else
9949 <          if test "$aix_use_runtimelinking" = yes; then
9950 <            shared_flag='${wl}-G'
9949 >          if test yes = "$aix_use_runtimelinking"; then
9950 >            shared_flag='$wl-G'
9951            else
9952 <            shared_flag='${wl}-bM:SRE'
9952 >            shared_flag='$wl-bM:SRE'
9953            fi
9954 +          shared_flag_aix='$wl-bM:SRE'
9955 +          shared_flag_svr4='$wl-G'
9956          fi
9957        fi
9958  
9959 <      export_dynamic_flag_spec='${wl}-bexpall'
9959 >      export_dynamic_flag_spec='$wl-bexpall'
9960        # It seems that -bexpall does not export symbols beginning with
9961        # underscore (_), so it is better to generate a list of symbols to export.
9962        always_export_symbols=yes
9963 <      if test "$aix_use_runtimelinking" = yes; then
9963 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9964          # Warning - without using the other runtime loading flags (-brtl),
9965          # -berok will link without error, but may produce a broken library.
9966          allow_undefined_flag='-berok'
9967          # Determine the default libpath from the value encoded in an
9968          # empty executable.
9969 <        if test "${lt_cv_aix_libpath+set}" = set; then
9969 >        if test set = "${lt_cv_aix_libpath+set}"; then
9970    aix_libpath=$lt_cv_aix_libpath
9971   else
9972    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9563 | Line 10001 | fi
10001   rm -f core conftest.err conftest.$ac_objext \
10002      conftest$ac_exeext conftest.$ac_ext
10003    if test -z "$lt_cv_aix_libpath_"; then
10004 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10004 >    lt_cv_aix_libpath_=/usr/lib:/lib
10005    fi
10006  
10007   fi
# Line 9571 | Line 10009 | fi
10009    aix_libpath=$lt_cv_aix_libpath_
10010   fi
10011  
10012 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10013 <        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10012 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10013 >        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10014        else
10015 <        if test "$host_cpu" = ia64; then
10016 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10015 >        if test ia64 = "$host_cpu"; then
10016 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10017            allow_undefined_flag="-z nodefs"
10018 <          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10018 >          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10019          else
10020           # Determine the default libpath from the value encoded in an
10021           # empty executable.
10022 <         if test "${lt_cv_aix_libpath+set}" = set; then
10022 >         if test set = "${lt_cv_aix_libpath+set}"; then
10023    aix_libpath=$lt_cv_aix_libpath
10024   else
10025    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9616 | Line 10054 | fi
10054   rm -f core conftest.err conftest.$ac_objext \
10055      conftest$ac_exeext conftest.$ac_ext
10056    if test -z "$lt_cv_aix_libpath_"; then
10057 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10057 >    lt_cv_aix_libpath_=/usr/lib:/lib
10058    fi
10059  
10060   fi
# Line 9624 | Line 10062 | fi
10062    aix_libpath=$lt_cv_aix_libpath_
10063   fi
10064  
10065 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10065 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10066            # Warning - without using the other run time loading flags,
10067            # -berok will link without error, but may produce a broken library.
10068 <          no_undefined_flag=' ${wl}-bernotok'
10069 <          allow_undefined_flag=' ${wl}-berok'
10070 <          if test "$with_gnu_ld" = yes; then
10068 >          no_undefined_flag=' $wl-bernotok'
10069 >          allow_undefined_flag=' $wl-berok'
10070 >          if test yes = "$with_gnu_ld"; then
10071              # We only use this code for GNU lds that support --whole-archive.
10072 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10072 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10073            else
10074              # Exported symbols can be pulled into shared objects from archives
10075              whole_archive_flag_spec='$convenience'
10076            fi
10077            archive_cmds_need_lc=yes
10078 <          # This is similar to how AIX traditionally builds its shared libraries.
10079 <          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10078 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10079 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10080 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10081 >          if test svr4 != "$with_aix_soname"; then
10082 >            # This is similar to how AIX traditionally builds its shared libraries.
10083 >            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10084 >          fi
10085 >          if test aix != "$with_aix_soname"; then
10086 >            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10087 >          else
10088 >            # used by -dlpreopen to get the symbols
10089 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10090 >          fi
10091 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10092          fi
10093        fi
10094        ;;
# Line 9647 | Line 10097 | fi
10097        case $host_cpu in
10098        powerpc)
10099              # see comment about AmigaOS4 .so support
10100 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10101              archive_expsym_cmds=''
10102          ;;
10103        m68k)
# Line 9677 | Line 10127 | fi
10127          # Tell ltmain to make .lib files, not .a files.
10128          libext=lib
10129          # Tell ltmain to make .dll files, not .so files.
10130 <        shrext_cmds=".dll"
10130 >        shrext_cmds=.dll
10131          # FIXME: Setting linknames here is a bad hack.
10132 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10133 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10134 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10135 <          else
10136 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10137 <          fi~
10138 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10139 <          linknames='
10132 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10133 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10134 >            cp "$export_symbols" "$output_objdir/$soname.def";
10135 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10136 >          else
10137 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10138 >          fi~
10139 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10140 >          linknames='
10141          # The linker will not automatically build a static lib if we build a DLL.
10142          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10143          enable_shared_with_static_runtimes=yes
# Line 9695 | Line 10146 | fi
10146          # Don't use ranlib
10147          old_postinstall_cmds='chmod 644 $oldlib'
10148          postlink_cmds='lt_outputfile="@OUTPUT@"~
10149 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
10150 <          case $lt_outputfile in
10151 <            *.exe|*.EXE) ;;
10152 <            *)
10153 <              lt_outputfile="$lt_outputfile.exe"
10154 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
10155 <              ;;
10156 <          esac~
10157 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10158 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10159 <            $RM "$lt_outputfile.manifest";
10160 <          fi'
10149 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10150 >          case $lt_outputfile in
10151 >            *.exe|*.EXE) ;;
10152 >            *)
10153 >              lt_outputfile=$lt_outputfile.exe
10154 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10155 >              ;;
10156 >          esac~
10157 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10158 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10159 >            $RM "$lt_outputfile.manifest";
10160 >          fi'
10161          ;;
10162        *)
10163          # Assume MSVC wrapper
# Line 9715 | Line 10166 | fi
10166          # Tell ltmain to make .lib files, not .a files.
10167          libext=lib
10168          # Tell ltmain to make .dll files, not .so files.
10169 <        shrext_cmds=".dll"
10169 >        shrext_cmds=.dll
10170          # FIXME: Setting linknames here is a bad hack.
10171          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10172          # The linker will automatically build a .lib file if we build a DLL.
# Line 9734 | Line 10185 | fi
10185    hardcode_direct=no
10186    hardcode_automatic=yes
10187    hardcode_shlibpath_var=unsupported
10188 <  if test "$lt_cv_ld_force_load" = "yes"; then
10189 <    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10188 >  if test yes = "$lt_cv_ld_force_load"; then
10189 >    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10190  
10191    else
10192      whole_archive_flag_spec=''
10193    fi
10194    link_all_deplibs=yes
10195 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10195 >  allow_undefined_flag=$_lt_dar_allow_undefined
10196    case $cc_basename in
10197 <     ifort*) _lt_dar_can_shared=yes ;;
10197 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10198       *) _lt_dar_can_shared=$GCC ;;
10199    esac
10200 <  if test "$_lt_dar_can_shared" = "yes"; then
10200 >  if test yes = "$_lt_dar_can_shared"; then
10201      output_verbose_link_cmd=func_echo_all
10202 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10203 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10204 <    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10205 <    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10202 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10203 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10204 >    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10205 >    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10206  
10207    else
10208    ld_shlibs=no
# Line 9793 | Line 10244 | fi
10244        ;;
10245  
10246      hpux9*)
10247 <      if test "$GCC" = yes; then
10248 <        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10247 >      if test yes = "$GCC"; then
10248 >        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10249        else
10250 <        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10250 >        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10251        fi
10252 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10253        hardcode_libdir_separator=:
10254        hardcode_direct=yes
10255  
10256        # hardcode_minus_L: Not really in the search PATH,
10257        # but as the default location of the library.
10258        hardcode_minus_L=yes
10259 <      export_dynamic_flag_spec='${wl}-E'
10259 >      export_dynamic_flag_spec='$wl-E'
10260        ;;
10261  
10262      hpux10*)
10263 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10264 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10263 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10264 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10265        else
10266          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10267        fi
10268 <      if test "$with_gnu_ld" = no; then
10269 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10268 >      if test no = "$with_gnu_ld"; then
10269 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10270          hardcode_libdir_separator=:
10271          hardcode_direct=yes
10272          hardcode_direct_absolute=yes
10273 <        export_dynamic_flag_spec='${wl}-E'
10273 >        export_dynamic_flag_spec='$wl-E'
10274          # hardcode_minus_L: Not really in the search PATH,
10275          # but as the default location of the library.
10276          hardcode_minus_L=yes
# Line 9827 | Line 10278 | fi
10278        ;;
10279  
10280      hpux11*)
10281 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10281 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10282          case $host_cpu in
10283          hppa*64*)
10284 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10285            ;;
10286          ia64*)
10287 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10287 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10288            ;;
10289          *)
10290 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10290 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10291            ;;
10292          esac
10293        else
10294          case $host_cpu in
10295          hppa*64*)
10296 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10297            ;;
10298          ia64*)
10299 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10299 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10300            ;;
10301          *)
10302  
# Line 9857 | Line 10308 | if ${lt_cv_prog_compiler__b+:} false; th
10308    $as_echo_n "(cached) " >&6
10309   else
10310    lt_cv_prog_compiler__b=no
10311 <   save_LDFLAGS="$LDFLAGS"
10311 >   save_LDFLAGS=$LDFLAGS
10312     LDFLAGS="$LDFLAGS -b"
10313     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10314     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9876 | Line 10327 | else
10327       fi
10328     fi
10329     $RM -r conftest*
10330 <   LDFLAGS="$save_LDFLAGS"
10330 >   LDFLAGS=$save_LDFLAGS
10331  
10332   fi
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10334   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10335  
10336 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10337 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10336 > if test yes = "$lt_cv_prog_compiler__b"; then
10337 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10338   else
10339      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10340   fi
# Line 9891 | Line 10342 | fi
10342            ;;
10343          esac
10344        fi
10345 <      if test "$with_gnu_ld" = no; then
10346 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10345 >      if test no = "$with_gnu_ld"; then
10346 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10347          hardcode_libdir_separator=:
10348  
10349          case $host_cpu in
# Line 9903 | Line 10354 | fi
10354          *)
10355            hardcode_direct=yes
10356            hardcode_direct_absolute=yes
10357 <          export_dynamic_flag_spec='${wl}-E'
10357 >          export_dynamic_flag_spec='$wl-E'
10358  
10359            # hardcode_minus_L: Not really in the search PATH,
10360            # but as the default location of the library.
# Line 9914 | Line 10365 | fi
10365        ;;
10366  
10367      irix5* | irix6* | nonstopux*)
10368 <      if test "$GCC" = yes; then
10369 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10368 >      if test yes = "$GCC"; then
10369 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10370          # Try to use the -exported_symbol ld option, if it does not
10371          # work, assume that -exports_file does not work either and
10372          # implicitly export all symbols.
# Line 9925 | Line 10376 | $as_echo_n "checking whether the $host_o
10376   if ${lt_cv_irix_exported_symbol+:} false; then :
10377    $as_echo_n "(cached) " >&6
10378   else
10379 <  save_LDFLAGS="$LDFLAGS"
10380 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10379 >  save_LDFLAGS=$LDFLAGS
10380 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10381             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382   /* end confdefs.h.  */
10383   int foo (void) { return 0; }
# Line 9938 | Line 10389 | else
10389   fi
10390   rm -f core conftest.err conftest.$ac_objext \
10391      conftest$ac_exeext conftest.$ac_ext
10392 <           LDFLAGS="$save_LDFLAGS"
10392 >           LDFLAGS=$save_LDFLAGS
10393   fi
10394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10395   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10396 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10397 <          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10396 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10397 >          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10398          fi
10399        else
10400 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10401 <        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10400 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10401 >        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10402        fi
10403        archive_cmds_need_lc='no'
10404 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10405        hardcode_libdir_separator=:
10406        inherit_rpath=yes
10407        link_all_deplibs=yes
10408        ;;
10409  
10410 +    linux*)
10411 +      case $cc_basename in
10412 +      tcc*)
10413 +        # Fabrice Bellard et al's Tiny C Compiler
10414 +        ld_shlibs=yes
10415 +        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416 +        ;;
10417 +      esac
10418 +      ;;
10419 +
10420      netbsd*)
10421        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10422          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
# Line 9970 | Line 10431 | $as_echo "$lt_cv_irix_exported_symbol" >
10431      newsos6)
10432        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433        hardcode_direct=yes
10434 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10434 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10435        hardcode_libdir_separator=:
10436        hardcode_shlibpath_var=no
10437        ;;
# Line 9978 | Line 10439 | $as_echo "$lt_cv_irix_exported_symbol" >
10439      *nto* | *qnx*)
10440        ;;
10441  
10442 <    openbsd*)
10442 >    openbsd* | bitrig*)
10443        if test -f /usr/libexec/ld.so; then
10444          hardcode_direct=yes
10445          hardcode_shlibpath_var=no
10446          hardcode_direct_absolute=yes
10447 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10447 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10448            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10449 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10450 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10451 <          export_dynamic_flag_spec='${wl}-E'
10449 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10450 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10451 >          export_dynamic_flag_spec='$wl-E'
10452          else
10453 <          case $host_os in
10454 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9994 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995 <             hardcode_libdir_flag_spec='-R$libdir'
9996 <             ;;
9997 <           *)
9998 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10000 <             ;;
10001 <          esac
10453 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10455          fi
10456        else
10457          ld_shlibs=no
# Line 10009 | Line 10462 | $as_echo "$lt_cv_irix_exported_symbol" >
10462        hardcode_libdir_flag_spec='-L$libdir'
10463        hardcode_minus_L=yes
10464        allow_undefined_flag=unsupported
10465 <      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10466 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10465 >      shrext_cmds=.dll
10466 >      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10467 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10468 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10469 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10470 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10471 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10472 >        emximp -o $lib $output_objdir/$libname.def'
10473 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10474 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10475 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10476 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10477 >        prefix_cmds="$SED"~
10478 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10479 >          prefix_cmds="$prefix_cmds -e 1d";
10480 >        fi~
10481 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10482 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10483 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10484 >        emximp -o $lib $output_objdir/$libname.def'
10485 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10486 >      enable_shared_with_static_runtimes=yes
10487        ;;
10488  
10489      osf3*)
10490 <      if test "$GCC" = yes; then
10491 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10492 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10490 >      if test yes = "$GCC"; then
10491 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10492 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10493        else
10494          allow_undefined_flag=' -expect_unresolved \*'
10495 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10495 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10496        fi
10497        archive_cmds_need_lc='no'
10498 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10498 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10499        hardcode_libdir_separator=:
10500        ;;
10501  
10502      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10503 <      if test "$GCC" = yes; then
10504 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10505 <        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10506 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10503 >      if test yes = "$GCC"; then
10504 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10505 >        archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10506 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10507        else
10508          allow_undefined_flag=' -expect_unresolved \*'
10509 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10509 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10510          archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10511 <        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10511 >          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10512  
10513          # Both c and cxx compiler support -rpath directly
10514          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 10046 | Line 10519 | $as_echo "$lt_cv_irix_exported_symbol" >
10519  
10520      solaris*)
10521        no_undefined_flag=' -z defs'
10522 <      if test "$GCC" = yes; then
10523 <        wlarc='${wl}'
10524 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10522 >      if test yes = "$GCC"; then
10523 >        wlarc='$wl'
10524 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10525          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10526 <          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10526 >          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10527        else
10528          case `$CC -V 2>&1` in
10529          *"Compilers 5.0"*)
10530            wlarc=''
10531 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10531 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10532            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10533 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10533 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10534            ;;
10535          *)
10536 <          wlarc='${wl}'
10537 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10536 >          wlarc='$wl'
10537 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10538            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10539 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10539 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10540            ;;
10541          esac
10542        fi
# Line 10073 | Line 10546 | $as_echo "$lt_cv_irix_exported_symbol" >
10546        solaris2.[0-5] | solaris2.[0-5].*) ;;
10547        *)
10548          # The compiler driver will combine and reorder linker options,
10549 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10549 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10550          # but is careful enough not to reorder.
10551          # Supported since Solaris 2.6 (maybe 2.5.1?)
10552 <        if test "$GCC" = yes; then
10553 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10552 >        if test yes = "$GCC"; then
10553 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10554          else
10555            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10556          fi
# Line 10087 | Line 10560 | $as_echo "$lt_cv_irix_exported_symbol" >
10560        ;;
10561  
10562      sunos4*)
10563 <      if test "x$host_vendor" = xsequent; then
10563 >      if test sequent = "$host_vendor"; then
10564          # Use $CC to link under sequent, because it throws in some extra .o
10565          # files that make .init and .fini sections work.
10566 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10566 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10567        else
10568          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10569        fi
# Line 10139 | Line 10612 | $as_echo "$lt_cv_irix_exported_symbol" >
10612        ;;
10613  
10614      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10615 <      no_undefined_flag='${wl}-z,text'
10615 >      no_undefined_flag='$wl-z,text'
10616        archive_cmds_need_lc=no
10617        hardcode_shlibpath_var=no
10618        runpath_var='LD_RUN_PATH'
10619  
10620 <      if test "$GCC" = yes; then
10621 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 >      if test yes = "$GCC"; then
10621 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623        else
10624 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626        fi
10627        ;;
10628  
10629      sysv5* | sco3.2v5* | sco5v6*)
10630 <      # Note: We can NOT use -z defs as we might desire, because we do not
10630 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10631        # link with -lc, and that would cause any symbols used from libc to
10632        # always be unresolved, which means just about no library would
10633        # ever link correctly.  If we're not using GNU ld we use -z text
10634        # though, which does catch some bad symbols but isn't as heavy-handed
10635        # as -z defs.
10636 <      no_undefined_flag='${wl}-z,text'
10637 <      allow_undefined_flag='${wl}-z,nodefs'
10636 >      no_undefined_flag='$wl-z,text'
10637 >      allow_undefined_flag='$wl-z,nodefs'
10638        archive_cmds_need_lc=no
10639        hardcode_shlibpath_var=no
10640 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10640 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10641        hardcode_libdir_separator=':'
10642        link_all_deplibs=yes
10643 <      export_dynamic_flag_spec='${wl}-Bexport'
10643 >      export_dynamic_flag_spec='$wl-Bexport'
10644        runpath_var='LD_RUN_PATH'
10645  
10646 <      if test "$GCC" = yes; then
10647 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 >      if test yes = "$GCC"; then
10647 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649        else
10650 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652        fi
10653        ;;
10654  
# Line 10190 | Line 10663 | $as_echo "$lt_cv_irix_exported_symbol" >
10663        ;;
10664      esac
10665  
10666 <    if test x$host_vendor = xsni; then
10666 >    if test sni = "$host_vendor"; then
10667        case $host in
10668        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10669 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10669 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10670          ;;
10671        esac
10672      fi
# Line 10201 | Line 10674 | $as_echo "$lt_cv_irix_exported_symbol" >
10674  
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10676   $as_echo "$ld_shlibs" >&6; }
10677 < test "$ld_shlibs" = no && can_build_shared=no
10677 > test no = "$ld_shlibs" && can_build_shared=no
10678  
10679   with_gnu_ld=$with_gnu_ld
10680  
# Line 10227 | Line 10700 | x|xyes)
10700    # Assume -lc should be added
10701    archive_cmds_need_lc=yes
10702  
10703 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10703 >  if test yes,yes = "$GCC,$enable_shared"; then
10704      case $archive_cmds in
10705      *'~'*)
10706        # FIXME: we may have to deal with multi-command sequences.
# Line 10442 | Line 10915 | esac
10915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10916   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10917  
10918 < if test "$GCC" = yes; then
10918 > if test yes = "$GCC"; then
10919    case $host_os in
10920 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10921 <    *) lt_awk_arg="/^libraries:/" ;;
10920 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10921 >    *) lt_awk_arg='/^libraries:/' ;;
10922    esac
10923    case $host_os in
10924 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10925 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10924 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10925 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10926    esac
10927    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10928    case $lt_search_path_spec in
# Line 10465 | Line 10938 | if test "$GCC" = yes; then
10938      ;;
10939    esac
10940    # Ok, now we have the path, separated by spaces, we can step through it
10941 <  # and add multilib dir if necessary.
10941 >  # and add multilib dir if necessary...
10942    lt_tmp_lt_search_path_spec=
10943 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10943 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10944 >  # ...but if some path component already ends with the multilib dir we assume
10945 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10946 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10947 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10948 >    lt_multi_os_dir=
10949 >    ;;
10950 >  esac
10951    for lt_sys_path in $lt_search_path_spec; do
10952 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10953 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10954 <    else
10952 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10953 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10954 >    elif test -n "$lt_multi_os_dir"; then
10955        test -d "$lt_sys_path" && \
10956          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10957      fi
10958    done
10959    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10960 < BEGIN {RS=" "; FS="/|\n";} {
10961 <  lt_foo="";
10962 <  lt_count=0;
10960 > BEGIN {RS = " "; FS = "/|\n";} {
10961 >  lt_foo = "";
10962 >  lt_count = 0;
10963    for (lt_i = NF; lt_i > 0; lt_i--) {
10964      if ($lt_i != "" && $lt_i != ".") {
10965        if ($lt_i == "..") {
10966          lt_count++;
10967        } else {
10968          if (lt_count == 0) {
10969 <          lt_foo="/" $lt_i lt_foo;
10969 >          lt_foo = "/" $lt_i lt_foo;
10970          } else {
10971            lt_count--;
10972          }
# Line 10500 | Line 10980 | BEGIN {RS=" "; FS="/|\n";} {
10980    # for these hosts.
10981    case $host_os in
10982      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10983 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10983 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10984    esac
10985    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10986   else
# Line 10509 | Line 10989 | fi
10989   library_names_spec=
10990   libname_spec='lib$name'
10991   soname_spec=
10992 < shrext_cmds=".so"
10992 > shrext_cmds=.so
10993   postinstall_cmds=
10994   postuninstall_cmds=
10995   finish_cmds=
# Line 10526 | Line 11006 | hardcode_into_libs=no
11006   # flags to be left without arguments
11007   need_version=unknown
11008  
11009 +
11010 +
11011   case $host_os in
11012   aix3*)
11013    version_type=linux # correct to gnu/linux during the next big refactor
11014 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11014 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11015    shlibpath_var=LIBPATH
11016  
11017    # AIX 3 has no versioning support, so we append a major version to the name.
11018 <  soname_spec='${libname}${release}${shared_ext}$major'
11018 >  soname_spec='$libname$release$shared_ext$major'
11019    ;;
11020  
11021   aix[4-9]*)
# Line 10541 | Line 11023 | aix[4-9]*)
11023    need_lib_prefix=no
11024    need_version=no
11025    hardcode_into_libs=yes
11026 <  if test "$host_cpu" = ia64; then
11026 >  if test ia64 = "$host_cpu"; then
11027      # AIX 5 supports IA64
11028 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11028 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11029      shlibpath_var=LD_LIBRARY_PATH
11030    else
11031      # With GCC up to 2.95.x, collect2 would create an import file
11032      # for dependence libraries.  The import file would start with
11033 <    # the line `#! .'.  This would cause the generated library to
11034 <    # depend on `.', always an invalid library.  This was fixed in
11033 >    # the line '#! .'.  This would cause the generated library to
11034 >    # depend on '.', always an invalid library.  This was fixed in
11035      # development snapshots of GCC prior to 3.0.
11036      case $host_os in
11037        aix4 | aix4.[01] | aix4.[01].*)
11038        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11039             echo ' yes '
11040 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11040 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11041          :
11042        else
11043          can_build_shared=no
11044        fi
11045        ;;
11046      esac
11047 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11047 >    # Using Import Files as archive members, it is possible to support
11048 >    # filename-based versioning of shared library archives on AIX. While
11049 >    # this would work for both with and without runtime linking, it will
11050 >    # prevent static linking of such archives. So we do filename-based
11051 >    # shared library versioning with .so extension only, which is used
11052 >    # when both runtime linking and shared linking is enabled.
11053 >    # Unfortunately, runtime linking may impact performance, so we do
11054 >    # not want this to be the default eventually. Also, we use the
11055 >    # versioned .so libs for executables only if there is the -brtl
11056 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11057 >    # To allow for filename-based versioning support, we need to create
11058 >    # libNAME.so.V as an archive file, containing:
11059 >    # *) an Import File, referring to the versioned filename of the
11060 >    #    archive as well as the shared archive member, telling the
11061 >    #    bitwidth (32 or 64) of that shared object, and providing the
11062 >    #    list of exported symbols of that shared object, eventually
11063 >    #    decorated with the 'weak' keyword
11064 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11065 >    #    it being seen by the linker.
11066 >    # At run time we better use the real file rather than another symlink,
11067 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11068 >
11069 >    case $with_aix_soname,$aix_use_runtimelinking in
11070 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11071      # soname into executable. Probably we can add versioning support to
11072      # collect2, so additional links can be useful in future.
11073 <    if test "$aix_use_runtimelinking" = yes; then
11073 >    aix,yes) # traditional libtool
11074 >      dynamic_linker='AIX unversionable lib.so'
11075        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11076        # instead of lib<name>.a to let people know that these are not
11077        # typical AIX shared libraries.
11078 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 <    else
11078 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 >      ;;
11080 >    aix,no) # traditional AIX only
11081 >      dynamic_linker='AIX lib.a(lib.so.V)'
11082        # We preserve .a as extension for shared libraries through AIX4.2
11083        # and later when we are not doing run time linking.
11084 <      library_names_spec='${libname}${release}.a $libname.a'
11085 <      soname_spec='${libname}${release}${shared_ext}$major'
11086 <    fi
11084 >      library_names_spec='$libname$release.a $libname.a'
11085 >      soname_spec='$libname$release$shared_ext$major'
11086 >      ;;
11087 >    svr4,*) # full svr4 only
11088 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11089 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11090 >      # We do not specify a path in Import Files, so LIBPATH fires.
11091 >      shlibpath_overrides_runpath=yes
11092 >      ;;
11093 >    *,yes) # both, prefer svr4
11094 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11095 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11096 >      # unpreferred sharedlib libNAME.a needs extra handling
11097 >      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11098 >      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11099 >      # We do not specify a path in Import Files, so LIBPATH fires.
11100 >      shlibpath_overrides_runpath=yes
11101 >      ;;
11102 >    *,no) # both, prefer aix
11103 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11104 >      library_names_spec='$libname$release.a $libname.a'
11105 >      soname_spec='$libname$release$shared_ext$major'
11106 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11107 >      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11108 >      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11109 >      ;;
11110 >    esac
11111      shlibpath_var=LIBPATH
11112    fi
11113    ;;
# Line 10585 | Line 11117 | amigaos*)
11117    powerpc)
11118      # Since July 2007 AmigaOS4 officially supports .so libraries.
11119      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11120 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121      ;;
11122    m68k)
11123      library_names_spec='$libname.ixlibrary $libname.a'
11124      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11125 <    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11125 >    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11126      ;;
11127    esac
11128    ;;
11129  
11130   beos*)
11131 <  library_names_spec='${libname}${shared_ext}'
11131 >  library_names_spec='$libname$shared_ext'
11132    dynamic_linker="$host_os ld.so"
11133    shlibpath_var=LIBRARY_PATH
11134    ;;
# Line 10604 | Line 11136 | beos*)
11136   bsdi[45]*)
11137    version_type=linux # correct to gnu/linux during the next big refactor
11138    need_version=no
11139 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 <  soname_spec='${libname}${release}${shared_ext}$major'
11139 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11140 >  soname_spec='$libname$release$shared_ext$major'
11141    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11142    shlibpath_var=LD_LIBRARY_PATH
11143    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10617 | Line 11149 | bsdi[45]*)
11149  
11150   cygwin* | mingw* | pw32* | cegcc*)
11151    version_type=windows
11152 <  shrext_cmds=".dll"
11152 >  shrext_cmds=.dll
11153    need_version=no
11154    need_lib_prefix=no
11155  
# Line 10626 | Line 11158 | cygwin* | mingw* | pw32* | cegcc*)
11158      # gcc
11159      library_names_spec='$libname.dll.a'
11160      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11161 <    postinstall_cmds='base_file=`basename \${file}`~
11162 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11161 >    postinstall_cmds='base_file=`basename \$file`~
11162 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11163        dldir=$destdir/`dirname \$dlpath`~
11164        test -d \$dldir || mkdir -p \$dldir~
11165        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10643 | Line 11175 | cygwin* | mingw* | pw32* | cegcc*)
11175      case $host_os in
11176      cygwin*)
11177        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11178 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11178 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11179  
11180        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11181        ;;
11182      mingw* | cegcc*)
11183        # MinGW DLLs use traditional 'lib' prefix
11184 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11184 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11185        ;;
11186      pw32*)
11187        # pw32 DLLs use 'pw' prefix rather than 'lib'
11188 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11188 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11189        ;;
11190      esac
11191      dynamic_linker='Win32 ld.exe'
# Line 10662 | Line 11194 | cygwin* | mingw* | pw32* | cegcc*)
11194    *,cl*)
11195      # Native MSVC
11196      libname_spec='$name'
11197 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11198 <    library_names_spec='${libname}.dll.lib'
11197 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11198 >    library_names_spec='$libname.dll.lib'
11199  
11200      case $build_os in
11201      mingw*)
# Line 10690 | Line 11222 | cygwin* | mingw* | pw32* | cegcc*)
11222        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11223        ;;
11224      *)
11225 <      sys_lib_search_path_spec="$LIB"
11225 >      sys_lib_search_path_spec=$LIB
11226        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11227          # It is most probably a Windows format PATH.
11228          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10703 | Line 11235 | cygwin* | mingw* | pw32* | cegcc*)
11235      esac
11236  
11237      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11238 <    postinstall_cmds='base_file=`basename \${file}`~
11239 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11238 >    postinstall_cmds='base_file=`basename \$file`~
11239 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11240        dldir=$destdir/`dirname \$dlpath`~
11241        test -d \$dldir || mkdir -p \$dldir~
11242        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10717 | Line 11249 | cygwin* | mingw* | pw32* | cegcc*)
11249  
11250    *)
11251      # Assume MSVC wrapper
11252 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11252 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11253      dynamic_linker='Win32 ld.exe'
11254      ;;
11255    esac
# Line 10730 | Line 11262 | darwin* | rhapsody*)
11262    version_type=darwin
11263    need_lib_prefix=no
11264    need_version=no
11265 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11266 <  soname_spec='${libname}${release}${major}$shared_ext'
11265 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11266 >  soname_spec='$libname$release$major$shared_ext'
11267    shlibpath_overrides_runpath=yes
11268    shlibpath_var=DYLD_LIBRARY_PATH
11269    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10744 | Line 11276 | dgux*)
11276    version_type=linux # correct to gnu/linux during the next big refactor
11277    need_lib_prefix=no
11278    need_version=no
11279 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11280 <  soname_spec='${libname}${release}${shared_ext}$major'
11279 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11280 >  soname_spec='$libname$release$shared_ext$major'
11281    shlibpath_var=LD_LIBRARY_PATH
11282    ;;
11283  
# Line 10763 | Line 11295 | freebsd* | dragonfly*)
11295    version_type=freebsd-$objformat
11296    case $version_type in
11297      freebsd-elf*)
11298 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11299 >      soname_spec='$libname$release$shared_ext$major'
11300        need_version=no
11301        need_lib_prefix=no
11302        ;;
11303      freebsd-*)
11304 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11304 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11305        need_version=yes
11306        ;;
11307    esac
# Line 10793 | Line 11326 | freebsd* | dragonfly*)
11326    esac
11327    ;;
11328  
10796 – gnu*)
10797 –  version_type=linux # correct to gnu/linux during the next big refactor
10798 –  need_lib_prefix=no
10799 –  need_version=no
10800 –  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10801 –  soname_spec='${libname}${release}${shared_ext}$major'
10802 –  shlibpath_var=LD_LIBRARY_PATH
10803 –  shlibpath_overrides_runpath=no
10804 –  hardcode_into_libs=yes
10805 –  ;;
10806 –
11329   haiku*)
11330    version_type=linux # correct to gnu/linux during the next big refactor
11331    need_lib_prefix=no
11332    need_version=no
11333    dynamic_linker="$host_os runtime_loader"
11334 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11335 <  soname_spec='${libname}${release}${shared_ext}$major'
11334 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11335 >  soname_spec='$libname$release$shared_ext$major'
11336    shlibpath_var=LIBRARY_PATH
11337 <  shlibpath_overrides_runpath=yes
11337 >  shlibpath_overrides_runpath=no
11338    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11339    hardcode_into_libs=yes
11340    ;;
# Line 10830 | Line 11352 | hpux9* | hpux10* | hpux11*)
11352      dynamic_linker="$host_os dld.so"
11353      shlibpath_var=LD_LIBRARY_PATH
11354      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11355 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 <    soname_spec='${libname}${release}${shared_ext}$major'
11357 <    if test "X$HPUX_IA64_MODE" = X32; then
11355 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356 >    soname_spec='$libname$release$shared_ext$major'
11357 >    if test 32 = "$HPUX_IA64_MODE"; then
11358        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11359 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11360      else
11361        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11362 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11363      fi
10840 –    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364      ;;
11365    hppa*64*)
11366      shrext_cmds='.sl'
# Line 10845 | Line 11368 | hpux9* | hpux10* | hpux11*)
11368      dynamic_linker="$host_os dld.sl"
11369      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11370      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11371 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 <    soname_spec='${libname}${release}${shared_ext}$major'
11371 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11372 >    soname_spec='$libname$release$shared_ext$major'
11373      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11374      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375      ;;
# Line 10855 | Line 11378 | hpux9* | hpux10* | hpux11*)
11378      dynamic_linker="$host_os dld.sl"
11379      shlibpath_var=SHLIB_PATH
11380      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11381 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 <    soname_spec='${libname}${release}${shared_ext}$major'
11381 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382 >    soname_spec='$libname$release$shared_ext$major'
11383      ;;
11384    esac
11385    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 10869 | Line 11392 | interix[3-9]*)
11392    version_type=linux # correct to gnu/linux during the next big refactor
11393    need_lib_prefix=no
11394    need_version=no
11395 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11396 <  soname_spec='${libname}${release}${shared_ext}$major'
11395 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11396 >  soname_spec='$libname$release$shared_ext$major'
11397    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11398    shlibpath_var=LD_LIBRARY_PATH
11399    shlibpath_overrides_runpath=no
# Line 10881 | Line 11404 | irix5* | irix6* | nonstopux*)
11404    case $host_os in
11405      nonstopux*) version_type=nonstopux ;;
11406      *)
11407 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11407 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11408                  version_type=linux # correct to gnu/linux during the next big refactor
11409          else
11410                  version_type=irix
# Line 10889 | Line 11412 | irix5* | irix6* | nonstopux*)
11412    esac
11413    need_lib_prefix=no
11414    need_version=no
11415 <  soname_spec='${libname}${release}${shared_ext}$major'
11416 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11415 >  soname_spec='$libname$release$shared_ext$major'
11416 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11417    case $host_os in
11418    irix5* | nonstopux*)
11419      libsuff= shlibsuff=
# Line 10909 | Line 11432 | irix5* | irix6* | nonstopux*)
11432    esac
11433    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11434    shlibpath_overrides_runpath=no
11435 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11436 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11435 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11436 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11437    hardcode_into_libs=yes
11438    ;;
11439  
# Line 10919 | Line 11442 | linux*oldld* | linux*aout* | linux*coff*
11442    dynamic_linker=no
11443    ;;
11444  
11445 + linux*android*)
11446 +  version_type=none # Android doesn't support versioned libraries.
11447 +  need_lib_prefix=no
11448 +  need_version=no
11449 +  library_names_spec='$libname$release$shared_ext'
11450 +  soname_spec='$libname$release$shared_ext'
11451 +  finish_cmds=
11452 +  shlibpath_var=LD_LIBRARY_PATH
11453 +  shlibpath_overrides_runpath=yes
11454 +
11455 +  # This implies no fast_install, which is unacceptable.
11456 +  # Some rework will be needed to allow for fast_install
11457 +  # before this can be enabled.
11458 +  hardcode_into_libs=yes
11459 +
11460 +  dynamic_linker='Android linker'
11461 +  # Don't embed -rpath directories since the linker doesn't support them.
11462 +  hardcode_libdir_flag_spec='-L$libdir'
11463 +  ;;
11464 +
11465   # This must be glibc/ELF.
11466 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11466 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11467    version_type=linux # correct to gnu/linux during the next big refactor
11468    need_lib_prefix=no
11469    need_version=no
11470 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 <  soname_spec='${libname}${release}${shared_ext}$major'
11470 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 >  soname_spec='$libname$release$shared_ext$major'
11472    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11473    shlibpath_var=LD_LIBRARY_PATH
11474    shlibpath_overrides_runpath=no
# Line 10969 | Line 11512 | fi
11512    # before this can be enabled.
11513    hardcode_into_libs=yes
11514  
11515 <  # Append ld.so.conf contents to the search path
11515 >  # Ideally, we could use ldconfig to report *all* directores which are
11516 >  # searched for libraries, however this is still not possible.  Aside from not
11517 >  # being certain /sbin/ldconfig is available, command
11518 >  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11519 >  # even though it is searched at run-time.  Try to do the best guess by
11520 >  # appending ld.so.conf contents (and includes) to the search path.
11521    if test -f /etc/ld.so.conf; then
11522      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11523      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
# Line 10989 | Line 11537 | netbsd*)
11537    need_lib_prefix=no
11538    need_version=no
11539    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11540 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11541      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11542      dynamic_linker='NetBSD (a.out) ld.so'
11543    else
11544 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11545 <    soname_spec='${libname}${release}${shared_ext}$major'
11544 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545 >    soname_spec='$libname$release$shared_ext$major'
11546      dynamic_linker='NetBSD ld.elf_so'
11547    fi
11548    shlibpath_var=LD_LIBRARY_PATH
# Line 11004 | Line 11552 | netbsd*)
11552  
11553   newsos6)
11554    version_type=linux # correct to gnu/linux during the next big refactor
11555 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556    shlibpath_var=LD_LIBRARY_PATH
11557    shlibpath_overrides_runpath=yes
11558    ;;
# Line 11013 | Line 11561 | newsos6)
11561    version_type=qnx
11562    need_lib_prefix=no
11563    need_version=no
11564 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 <  soname_spec='${libname}${release}${shared_ext}$major'
11564 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565 >  soname_spec='$libname$release$shared_ext$major'
11566    shlibpath_var=LD_LIBRARY_PATH
11567    shlibpath_overrides_runpath=no
11568    hardcode_into_libs=yes
11569    dynamic_linker='ldqnx.so'
11570    ;;
11571  
11572 < openbsd*)
11572 > openbsd* | bitrig*)
11573    version_type=sunos
11574 <  sys_lib_dlsearch_path_spec="/usr/lib"
11574 >  sys_lib_dlsearch_path_spec=/usr/lib
11575    need_lib_prefix=no
11576 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11577 <  case $host_os in
11030 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11031 <    *)                          need_version=no  ;;
11032 <  esac
11033 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11035 <  shlibpath_var=LD_LIBRARY_PATH
11036 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11037 <    case $host_os in
11038 <      openbsd2.[89] | openbsd2.[89].*)
11039 <        shlibpath_overrides_runpath=no
11040 <        ;;
11041 <      *)
11042 <        shlibpath_overrides_runpath=yes
11043 <        ;;
11044 <      esac
11576 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11577 >    need_version=no
11578    else
11579 <    shlibpath_overrides_runpath=yes
11579 >    need_version=yes
11580    fi
11581 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11582 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11583 +  shlibpath_var=LD_LIBRARY_PATH
11584 +  shlibpath_overrides_runpath=yes
11585    ;;
11586  
11587   os2*)
11588    libname_spec='$name'
11589 <  shrext_cmds=".dll"
11589 >  version_type=windows
11590 >  shrext_cmds=.dll
11591 >  need_version=no
11592    need_lib_prefix=no
11593 <  library_names_spec='$libname${shared_ext} $libname.a'
11593 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11594 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11595 >    v=$($ECHO $release$versuffix | tr -d .-);
11596 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11597 >    $ECHO $n$v`$shared_ext'
11598 >  library_names_spec='${libname}_dll.$libext'
11599    dynamic_linker='OS/2 ld.exe'
11600 <  shlibpath_var=LIBPATH
11600 >  shlibpath_var=BEGINLIBPATH
11601 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11602 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11603 >  postinstall_cmds='base_file=`basename \$file`~
11604 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11605 >    dldir=$destdir/`dirname \$dlpath`~
11606 >    test -d \$dldir || mkdir -p \$dldir~
11607 >    $install_prog $dir/$dlname \$dldir/$dlname~
11608 >    chmod a+x \$dldir/$dlname~
11609 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11610 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11611 >    fi'
11612 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11613 >    dlpath=$dir/\$dldll~
11614 >    $RM \$dlpath'
11615    ;;
11616  
11617   osf3* | osf4* | osf5*)
11618    version_type=osf
11619    need_lib_prefix=no
11620    need_version=no
11621 <  soname_spec='${libname}${release}${shared_ext}$major'
11622 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 >  soname_spec='$libname$release$shared_ext$major'
11622 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623    shlibpath_var=LD_LIBRARY_PATH
11624    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11625 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11625 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626    ;;
11627  
11628   rdos*)
# Line 11075 | Line 11633 | solaris*)
11633    version_type=linux # correct to gnu/linux during the next big refactor
11634    need_lib_prefix=no
11635    need_version=no
11636 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 <  soname_spec='${libname}${release}${shared_ext}$major'
11636 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637 >  soname_spec='$libname$release$shared_ext$major'
11638    shlibpath_var=LD_LIBRARY_PATH
11639    shlibpath_overrides_runpath=yes
11640    hardcode_into_libs=yes
# Line 11086 | Line 11644 | solaris*)
11644  
11645   sunos4*)
11646    version_type=sunos
11647 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11647 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11648    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11649    shlibpath_var=LD_LIBRARY_PATH
11650    shlibpath_overrides_runpath=yes
11651 <  if test "$with_gnu_ld" = yes; then
11651 >  if test yes = "$with_gnu_ld"; then
11652      need_lib_prefix=no
11653    fi
11654    need_version=yes
# Line 11098 | Line 11656 | sunos4*)
11656  
11657   sysv4 | sysv4.3*)
11658    version_type=linux # correct to gnu/linux during the next big refactor
11659 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11660 <  soname_spec='${libname}${release}${shared_ext}$major'
11659 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11660 >  soname_spec='$libname$release$shared_ext$major'
11661    shlibpath_var=LD_LIBRARY_PATH
11662    case $host_vendor in
11663      sni)
# Line 11120 | Line 11678 | sysv4 | sysv4.3*)
11678    ;;
11679  
11680   sysv4*MP*)
11681 <  if test -d /usr/nec ;then
11681 >  if test -d /usr/nec; then
11682      version_type=linux # correct to gnu/linux during the next big refactor
11683 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11684 <    soname_spec='$libname${shared_ext}.$major'
11683 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11684 >    soname_spec='$libname$shared_ext.$major'
11685      shlibpath_var=LD_LIBRARY_PATH
11686    fi
11687    ;;
11688  
11689   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11690 <  version_type=freebsd-elf
11690 >  version_type=sco
11691    need_lib_prefix=no
11692    need_version=no
11693 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11694 <  soname_spec='${libname}${release}${shared_ext}$major'
11693 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11694 >  soname_spec='$libname$release$shared_ext$major'
11695    shlibpath_var=LD_LIBRARY_PATH
11696    shlibpath_overrides_runpath=yes
11697    hardcode_into_libs=yes
11698 <  if test "$with_gnu_ld" = yes; then
11698 >  if test yes = "$with_gnu_ld"; then
11699      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11700    else
11701      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11155 | Line 11713 | tpf*)
11713    version_type=linux # correct to gnu/linux during the next big refactor
11714    need_lib_prefix=no
11715    need_version=no
11716 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11717    shlibpath_var=LD_LIBRARY_PATH
11718    shlibpath_overrides_runpath=no
11719    hardcode_into_libs=yes
# Line 11163 | Line 11721 | tpf*)
11721  
11722   uts4*)
11723    version_type=linux # correct to gnu/linux during the next big refactor
11724 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 <  soname_spec='${libname}${release}${shared_ext}$major'
11724 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725 >  soname_spec='$libname$release$shared_ext$major'
11726    shlibpath_var=LD_LIBRARY_PATH
11727    ;;
11728  
# Line 11174 | Line 11732 | uts4*)
11732   esac
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11734   $as_echo "$dynamic_linker" >&6; }
11735 < test "$dynamic_linker" = no && can_build_shared=no
11735 > test no = "$dynamic_linker" && can_build_shared=no
11736  
11737   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11738 < if test "$GCC" = yes; then
11738 > if test yes = "$GCC"; then
11739    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11740   fi
11741  
11742 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11743 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11742 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11743 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11744   fi
11745 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11746 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11745 >
11746 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11747 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11748   fi
11749  
11750 + # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11751 + configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11752 +
11753 + # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11754 + func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11755 +
11756 + # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11757 + configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11758 +
11759 +
11760 +
11761 +
11762 +
11763 +
11764  
11765  
11766  
# Line 11284 | Line 11857 | $as_echo_n "checking how to hardcode lib
11857   hardcode_action=
11858   if test -n "$hardcode_libdir_flag_spec" ||
11859     test -n "$runpath_var" ||
11860 <   test "X$hardcode_automatic" = "Xyes" ; then
11860 >   test yes = "$hardcode_automatic"; then
11861  
11862    # We can hardcode non-existent directories.
11863 <  if test "$hardcode_direct" != no &&
11863 >  if test no != "$hardcode_direct" &&
11864       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11865       # have to relink, otherwise we might link with an installed library
11866       # when we should be linking with a yet-to-be-installed one
11867 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11868 <     test "$hardcode_minus_L" != no; then
11867 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11868 >     test no != "$hardcode_minus_L"; then
11869      # Linking always hardcodes the temporary library directory.
11870      hardcode_action=relink
11871    else
# Line 11307 | Line 11880 | fi
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11881   $as_echo "$hardcode_action" >&6; }
11882  
11883 < if test "$hardcode_action" = relink ||
11884 <   test "$inherit_rpath" = yes; then
11883 > if test relink = "$hardcode_action" ||
11884 >   test yes = "$inherit_rpath"; then
11885    # Fast installation is not supported
11886    enable_fast_install=no
11887 < elif test "$shlibpath_overrides_runpath" = yes ||
11888 <     test "$enable_shared" = no; then
11887 > elif test yes = "$shlibpath_overrides_runpath" ||
11888 >     test no = "$enable_shared"; then
11889    # Fast installation is not necessary
11890    enable_fast_install=needless
11891   fi
# Line 11322 | Line 11895 | fi
11895  
11896  
11897  
11898 <  if test "x$enable_dlopen" != xyes; then
11898 >  if test yes != "$enable_dlopen"; then
11899    enable_dlopen=unknown
11900    enable_dlopen_self=unknown
11901    enable_dlopen_self_static=unknown
# Line 11332 | Line 11905 | else
11905  
11906    case $host_os in
11907    beos*)
11908 <    lt_cv_dlopen="load_add_on"
11908 >    lt_cv_dlopen=load_add_on
11909      lt_cv_dlopen_libs=
11910      lt_cv_dlopen_self=yes
11911      ;;
11912  
11913    mingw* | pw32* | cegcc*)
11914 <    lt_cv_dlopen="LoadLibrary"
11914 >    lt_cv_dlopen=LoadLibrary
11915      lt_cv_dlopen_libs=
11916      ;;
11917  
11918    cygwin*)
11919 <    lt_cv_dlopen="dlopen"
11919 >    lt_cv_dlopen=dlopen
11920      lt_cv_dlopen_libs=
11921      ;;
11922  
11923    darwin*)
11924 <  # if libdl is installed we need to link against it
11924 >    # if libdl is installed we need to link against it
11925      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11926   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11927   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11386 | Line 11959 | fi
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11960   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11961   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11962 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11962 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11963   else
11964  
11965 <    lt_cv_dlopen="dyld"
11965 >    lt_cv_dlopen=dyld
11966      lt_cv_dlopen_libs=
11967      lt_cv_dlopen_self=yes
11968  
# Line 11397 | Line 11970 | fi
11970  
11971      ;;
11972  
11973 +  tpf*)
11974 +    # Don't try to run any link tests for TPF.  We know it's impossible
11975 +    # because TPF is a cross-compiler, and we know how we open DSOs.
11976 +    lt_cv_dlopen=dlopen
11977 +    lt_cv_dlopen_libs=
11978 +    lt_cv_dlopen_self=no
11979 +    ;;
11980 +
11981    *)
11982      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11983   if test "x$ac_cv_func_shl_load" = xyes; then :
11984 <  lt_cv_dlopen="shl_load"
11984 >  lt_cv_dlopen=shl_load
11985   else
11986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11987   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11439 | Line 12020 | fi
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12021   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12022   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12023 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12023 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12024   else
12025    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12026   if test "x$ac_cv_func_dlopen" = xyes; then :
12027 <  lt_cv_dlopen="dlopen"
12027 >  lt_cv_dlopen=dlopen
12028   else
12029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12030   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11482 | Line 12063 | fi
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12064   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12065   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12066 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12066 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12067   else
12068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12069   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11521 | Line 12102 | fi
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12103   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12104   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12105 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12105 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12106   else
12107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12108   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11560 | Line 12141 | fi
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12142   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12143   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12144 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12144 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12145   fi
12146  
12147  
# Line 11581 | Line 12162 | fi
12162      ;;
12163    esac
12164  
12165 <  if test "x$lt_cv_dlopen" != xno; then
11585 <    enable_dlopen=yes
11586 <  else
12165 >  if test no = "$lt_cv_dlopen"; then
12166      enable_dlopen=no
12167 +  else
12168 +    enable_dlopen=yes
12169    fi
12170  
12171    case $lt_cv_dlopen in
12172    dlopen)
12173 <    save_CPPFLAGS="$CPPFLAGS"
12174 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12173 >    save_CPPFLAGS=$CPPFLAGS
12174 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12175  
12176 <    save_LDFLAGS="$LDFLAGS"
12176 >    save_LDFLAGS=$LDFLAGS
12177      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12178  
12179 <    save_LIBS="$LIBS"
12179 >    save_LIBS=$LIBS
12180      LIBS="$lt_cv_dlopen_libs $LIBS"
12181  
12182      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11603 | Line 12184 | $as_echo_n "checking whether a program c
12184   if ${lt_cv_dlopen_self+:} false; then :
12185    $as_echo_n "(cached) " >&6
12186   else
12187 <          if test "$cross_compiling" = yes; then :
12187 >          if test yes = "$cross_compiling"; then :
12188    lt_cv_dlopen_self=cross
12189   else
12190    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11650 | Line 12231 | else
12231   #  endif
12232   #endif
12233  
12234 < /* When -fvisbility=hidden is used, assume the code has been annotated
12234 > /* When -fvisibility=hidden is used, assume the code has been annotated
12235     correspondingly for the symbols needed.  */
12236 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12236 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12237   int fnord () __attribute__((visibility("default")));
12238   #endif
12239  
# Line 11682 | Line 12263 | _LT_EOF
12263    (eval $ac_link) 2>&5
12264    ac_status=$?
12265    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12266 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12267      (./conftest; exit; ) >&5 2>/dev/null
12268      lt_status=$?
12269      case x$lt_status in
# Line 11702 | Line 12283 | fi
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12284   $as_echo "$lt_cv_dlopen_self" >&6; }
12285  
12286 <    if test "x$lt_cv_dlopen_self" = xyes; then
12286 >    if test yes = "$lt_cv_dlopen_self"; then
12287        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12288        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12289   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12290   if ${lt_cv_dlopen_self_static+:} false; then :
12291    $as_echo_n "(cached) " >&6
12292   else
12293 <          if test "$cross_compiling" = yes; then :
12293 >          if test yes = "$cross_compiling"; then :
12294    lt_cv_dlopen_self_static=cross
12295   else
12296    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11756 | Line 12337 | else
12337   #  endif
12338   #endif
12339  
12340 < /* When -fvisbility=hidden is used, assume the code has been annotated
12340 > /* When -fvisibility=hidden is used, assume the code has been annotated
12341     correspondingly for the symbols needed.  */
12342 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12342 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12343   int fnord () __attribute__((visibility("default")));
12344   #endif
12345  
# Line 11788 | Line 12369 | _LT_EOF
12369    (eval $ac_link) 2>&5
12370    ac_status=$?
12371    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12372 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12372 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12373      (./conftest; exit; ) >&5 2>/dev/null
12374      lt_status=$?
12375      case x$lt_status in
# Line 11809 | Line 12390 | fi
12390   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12391      fi
12392  
12393 <    CPPFLAGS="$save_CPPFLAGS"
12394 <    LDFLAGS="$save_LDFLAGS"
12395 <    LIBS="$save_LIBS"
12393 >    CPPFLAGS=$save_CPPFLAGS
12394 >    LDFLAGS=$save_LDFLAGS
12395 >    LIBS=$save_LIBS
12396      ;;
12397    esac
12398  
# Line 11855 | Line 12436 | else
12436   # FIXME - insert some real tests, host_os isn't really good enough
12437    case $host_os in
12438    darwin*)
12439 <    if test -n "$STRIP" ; then
12439 >    if test -n "$STRIP"; then
12440        striplib="$STRIP -x"
12441        old_striplib="$STRIP -S"
12442        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 11883 | Line 12464 | fi
12464  
12465  
12466  
12467 <  # Report which library types will actually be built
12467 >  # Report what library types will actually be built
12468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12469   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12470    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 11891 | Line 12472 | $as_echo "$can_build_shared" >&6; }
12472  
12473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12474   $as_echo_n "checking whether to build shared libraries... " >&6; }
12475 <  test "$can_build_shared" = "no" && enable_shared=no
12475 >  test no = "$can_build_shared" && enable_shared=no
12476  
12477    # On AIX, shared libraries and static libraries use the same namespace, and
12478    # are all built from PIC.
12479    case $host_os in
12480    aix3*)
12481 <    test "$enable_shared" = yes && enable_static=no
12481 >    test yes = "$enable_shared" && enable_static=no
12482      if test -n "$RANLIB"; then
12483        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12484        postinstall_cmds='$RANLIB $lib'
# Line 11905 | Line 12486 | $as_echo_n "checking whether to build sh
12486      ;;
12487  
12488    aix[4-9]*)
12489 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12490 <      test "$enable_shared" = yes && enable_static=no
12489 >    if test ia64 != "$host_cpu"; then
12490 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12491 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12492 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12493 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12494 >      esac
12495      fi
12496      ;;
12497    esac
# Line 11916 | Line 12501 | $as_echo "$enable_shared" >&6; }
12501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12502   $as_echo_n "checking whether to build static libraries... " >&6; }
12503    # Make sure either enable_shared or enable_static is yes.
12504 <  test "$enable_shared" = yes || enable_static=yes
12504 >  test yes = "$enable_shared" || enable_static=yes
12505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12506   $as_echo "$enable_static" >&6; }
12507  
# Line 11930 | Line 12515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12515   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517  
12518 < CC="$lt_save_CC"
12518 > CC=$lt_save_CC
12519  
12520  
12521  
# Line 11954 | Line 12539 | CC="$lt_save_CC"
12539   # Only expand once:
12540  
12541  
12542 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12543 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12542 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12543 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12544   if ${libltdl_cv_shlibext+:} false; then :
12545    $as_echo_n "(cached) " >&6
12546   else
# Line 11982 | Line 12567 | cat >>confdefs.h <<_ACEOF
12567   _ACEOF
12568  
12569   fi
12570 + if test -n "$shared_archive_member_spec"; then
12571 +
12572 + cat >>confdefs.h <<_ACEOF
12573 + #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12574 + _ACEOF
12575 +
12576 + fi
12577  
12578 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12579 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12578 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12579 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12580   if ${lt_cv_module_path_var+:} false; then :
12581    $as_echo_n "(cached) " >&6
12582   else
12583 <  lt_cv_module_path_var="$shlibpath_var"
12583 >  lt_cv_module_path_var=$shlibpath_var
12584   fi
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12586   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 12005 | Line 12597 | $as_echo_n "checking for the default lib
12597   if ${lt_cv_sys_dlsearch_path+:} false; then :
12598    $as_echo_n "(cached) " >&6
12599   else
12600 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12600 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12601   fi
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12603   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 12013 | Line 12605 | if test -n "$lt_cv_sys_dlsearch_path"; t
12605    sys_dlsearch_path=
12606    for dir in $lt_cv_sys_dlsearch_path; do
12607      if test -z "$sys_dlsearch_path"; then
12608 <      sys_dlsearch_path="$dir"
12608 >      sys_dlsearch_path=$dir
12609      else
12610 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12610 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12611      fi
12612    done
12613  
# Line 12035 | Line 12627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12627   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12628   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12629  
12630 + lt_dlload_save_LIBS=$LIBS
12631  
12632   LIBADD_DLOPEN=
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
# Line 12093 | Line 12686 | if test "$ac_res" != no; then :
12686  
12687   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12688  
12689 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12690 <          LIBADD_DLOPEN="-ldl"
12689 >        if test "$ac_cv_search_dlopen" != "none required"; then
12690 >          LIBADD_DLOPEN=-ldl
12691          fi
12692 <        libltdl_cv_lib_dl_dlopen="yes"
12692 >        libltdl_cv_lib_dl_dlopen=yes
12693          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12694   else
12695    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12117 | Line 12710 | if ac_fn_c_try_link "$LINENO"; then :
12710  
12711   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12712  
12713 <            libltdl_cv_func_dlopen="yes"
12713 >            libltdl_cv_func_dlopen=yes
12714              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12715   else
12716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12160 | Line 12753 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12753  
12754   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12755  
12756 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12756 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12757                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12758   fi
12759  
# Line 12169 | Line 12762 | rm -f core conftest.err conftest.$ac_obj
12762      conftest$ac_exeext conftest.$ac_ext
12763   fi
12764  
12765 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12765 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12766   then
12767 <  lt_save_LIBS="$LIBS"
12767 >  lt_save_LIBS=$LIBS
12768    LIBS="$LIBS $LIBADD_DLOPEN"
12769    for ac_func in dlerror
12770   do :
# Line 12184 | Line 12777 | _ACEOF
12777   fi
12778   done
12779  
12780 <  LIBS="$lt_save_LIBS"
12780 >  LIBS=$lt_save_LIBS
12781   fi
12782  
12783  
# Line 12237 | Line 12830 | if test "x$ac_cv_lib_dld_shl_load" = xye
12830   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12831  
12832              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12833 <            LIBADD_SHL_LOAD="-ldld"
12833 >            LIBADD_SHL_LOAD=-ldld
12834   fi
12835  
12836   fi
# Line 12259 | Line 12852 | fi
12852   beos*)
12853    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12854    ;;
12855 < cygwin* | mingw* | os2* | pw32*)
12855 > cygwin* | mingw* | pw32*)
12856    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12857   "
12858   if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
# Line 12337 | Line 12930 | fi
12930   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12931  
12932  
12933 + LIBS=$lt_dlload_save_LIBS
12934   ac_ext=c
12935   ac_cpp='$CPP $CPPFLAGS'
12936   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12391 | Line 12985 | $as_echo "$lt_cv_sys_symbol_underscore"
12985    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12986  
12987  
12988 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12989 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
12990 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12397 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12988 > if test yes = "$lt_cv_sys_symbol_underscore"; then
12989 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
12990 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12991   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12992   if ${libltdl_cv_need_uscore+:} false; then :
12993    $as_echo_n "(cached) " >&6
12994   else
12995    libltdl_cv_need_uscore=unknown
12996 <          save_LIBS="$LIBS"
12997 <          LIBS="$LIBS $LIBADD_DLOPEN"
12998 <          if test "$cross_compiling" = yes; then :
12999 <  libltdl_cv_need_uscore=cross
12407 < else
12408 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12409 <  lt_status=$lt_dlunknown
12410 <  cat > conftest.$ac_ext <<_LT_EOF
12996 >      dlsym_uscore_save_LIBS=$LIBS
12997 >      LIBS="$LIBS $LIBADD_DLOPEN"
12998 >      libname=conftmod # stay within 8.3 filename limits!
12999 >      cat >$libname.$ac_ext <<_LT_EOF
13000   #line $LINENO "configure"
13001   #include "confdefs.h"
13002 + /* When -fvisibility=hidden is used, assume the code has been annotated
13003 +   correspondingly for the symbols needed.  */
13004 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13005 + int fnord () __attribute__((visibility("default")));
13006 + #endif
13007 + int fnord () { return 42; }
13008 + _LT_EOF
13009  
13010 +      # ltfn_module_cmds module_cmds
13011 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
13012 +      # $module_cmds or $archive_cmds type content.
13013 +      ltfn_module_cmds ()
13014 +      {( # subshell avoids polluting parent global environment
13015 +          module_cmds_save_ifs=$IFS; IFS='~'
13016 +          for cmd in $1; do
13017 +            IFS=$module_cmds_save_ifs
13018 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13019 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13020 +            major=; versuffix=; verstring=; deplibs=
13021 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13022 +            eval $cmd
13023 +          done
13024 +          IFS=$module_cmds_save_ifs
13025 +      )}
13026 +
13027 +      # Compile a loadable module using libtool macro expansion results.
13028 +      $CC $pic_flag -c $libname.$ac_ext
13029 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13030 +
13031 +      # Try to fetch fnord with dlsym().
13032 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13033 +      cat >conftest.$ac_ext <<_LT_EOF
13034 + #line $LINENO "configure"
13035 + #include "confdefs.h"
13036   #if HAVE_DLFCN_H
13037   #include <dlfcn.h>
13038   #endif
12417 –
13039   #include <stdio.h>
13040 <
12420 < #ifdef RTLD_GLOBAL
12421 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12422 < #else
13040 > #ifndef RTLD_GLOBAL
13041   #  ifdef DL_GLOBAL
13042 < #    define LT_DLGLOBAL         DL_GLOBAL
13042 > #    define RTLD_GLOBAL DL_GLOBAL
13043   #  else
13044 < #    define LT_DLGLOBAL         0
13044 > #    define RTLD_GLOBAL 0
13045   #  endif
13046   #endif
13047 <
13048 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13049 <   find out it does not work in some platform. */
12432 < #ifndef LT_DLLAZY_OR_NOW
12433 < #  ifdef RTLD_LAZY
12434 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13047 > #ifndef RTLD_NOW
13048 > #  ifdef DL_NOW
13049 > #    define RTLD_NOW DL_NOW
13050   #  else
13051 < #    ifdef DL_LAZY
12437 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12438 < #    else
12439 < #      ifdef RTLD_NOW
12440 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12441 < #      else
12442 < #        ifdef DL_NOW
12443 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12444 < #        else
12445 < #          define LT_DLLAZY_OR_NOW      0
12446 < #        endif
12447 < #      endif
12448 < #    endif
13051 > #    define RTLD_NOW 0
13052   #  endif
13053   #endif
13054 <
13055 < /* When -fvisbility=hidden is used, assume the code has been annotated
13056 <   correspondingly for the symbols needed.  */
13057 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13058 < int fnord () __attribute__((visibility("default")));
13059 < #endif
13060 <
13061 < int fnord () { return 42; }
13062 < int main ()
12460 < {
12461 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12462 <  int status = $lt_dlunknown;
12463 <
12464 <  if (self)
12465 <    {
12466 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13054 > int main () {
13055 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13056 >  int status = $libltdl_dlunknown;
13057 >  if (handle) {
13058 >    if (dlsym (handle, "fnord"))
13059 >      status = $libltdl_dlnouscore;
13060 >    else {
13061 >      if (dlsym (handle, "_fnord"))
13062 >        status = $libltdl_dluscore;
13063        else
13064 <        {
12469 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12470 <          else puts (dlerror ());
12471 <        }
12472 <      /* dlclose (self); */
13064 >        puts (dlerror ());
13065      }
13066 <  else
13066 >    dlclose (handle);
13067 >  } else
13068      puts (dlerror ());
12476 –
13069    return status;
13070   }
13071   _LT_EOF
13072 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13072 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13073    (eval $ac_link) 2>&5
13074    ac_status=$?
13075    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13077 <    (./conftest; exit; ) >&5 2>/dev/null
13078 <    lt_status=$?
13079 <    case x$lt_status in
13080 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13081 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13082 <      x$lt_dlunknown|x*)  ;;
13083 <    esac
13084 <  else :
13085 <    # compilation failed
13086 <
12495 <  fi
12496 < fi
12497 < rm -fr conftest*
12498 <
12499 <          LIBS="$save_LIBS"
13076 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13077 >        (./conftest; exit; ) >&5 2>/dev/null
13078 >        libltdl_status=$?
13079 >        case x$libltdl_status in
13080 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13081 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13082 >          x*) libltdl_cv_need_uscore=unknown ;;
13083 >        esac
13084 >      fi
13085 >      rm -rf conftest* $libname*
13086 >      LIBS=$dlsym_uscore_save_LIBS
13087  
13088   fi
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12504 | Line 13091 | $as_echo "$libltdl_cv_need_uscore" >&6;
13091    fi
13092   fi
13093  
13094 < if test x"$libltdl_cv_need_uscore" = xyes; then
13094 > if test yes = "$libltdl_cv_need_uscore"; then
13095  
13096   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13097  
# Line 12523 | Line 13110 | else
13110    case $host_os in
13111    aix3*|aix4.1.*|aix4.2.*)
13112      # Unknown whether this is true for these versions of AIX, but
13113 <    # we want this `case' here to explicitly catch those versions.
13113 >    # we want this 'case' here to explicitly catch those versions.
13114      lt_cv_sys_dlopen_deplibs=unknown
13115      ;;
13116    aix[4-9]*)
# Line 12536 | Line 13123 | else
13123        ;;
13124      esac
13125      ;;
13126 +  bitrig*)
13127 +    lt_cv_sys_dlopen_deplibs=yes
13128 +    ;;
13129    darwin*)
13130      # Assuming the user has installed a libdl from somewhere, this is true
13131      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12573 | Line 13163 | else
13163    osf[1234]*)
13164      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13165      # it did *not* use an RPATH in a shared library to find objects the
13166 <    # library depends on, so we explicitly say `no'.
13166 >    # library depends on, so we explicitly say 'no'.
13167      lt_cv_sys_dlopen_deplibs=no
13168      ;;
13169    osf5.0|osf5.0a|osf5.1)
# Line 12582 | Line 13172 | else
13172      # that the library depends on, but there's no easy way to know if that
13173      # patch is installed.  Since this is the case, all we can really
13174      # say is unknown -- it depends on the patch being installed.  If
13175 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13175 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13176      lt_cv_sys_dlopen_deplibs=unknown
13177      ;;
13178    osf*)
13179      # the two cases above should catch all versions of osf <= 5.1.  Read
13180      # the comments above for what we know about them.
13181      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13182 <    # is used to find them so we can finally say `yes'.
13182 >    # is used to find them so we can finally say 'yes'.
13183      lt_cv_sys_dlopen_deplibs=yes
13184      ;;
13185    qnx*)
# Line 12606 | Line 13196 | else
13196   fi
13197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13198   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13199 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13199 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13200  
13201   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13202  
13203   fi
13204  
12615 – :
13205  
13206   for ac_header in argz.h
13207   do :
# Line 12649 | Line 13238 | $as_echo "#define __error_t_defined 1" >
13238   fi
13239  
13240  
13241 < ARGZ_H=
13241 > LT_ARGZ_H=
13242   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13243          argz_next argz_stringify
13244   do :
# Line 12661 | Line 13250 | if eval test \"x\$"$as_ac_var"\" = x"yes
13250   _ACEOF
13251  
13252   else
13253 <  ARGZ_H=argz.h;
13253 >  LT_ARGZ_H=lt__argz.h;
13254  
13255 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13255 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13256  
13257   fi
13258   done
13259  
13260  
13261 < if test -z "$ARGZ_H"; then :
13261 > if test -z "$LT_ARGZ_H"; then :
13262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13263   $as_echo_n "checking if argz actually works... " >&6; }
13264   if ${lt_cv_sys_argz_works+:} false; then :
# Line 12678 | Line 13267 | else
13267    case $host_os in #(
13268           *cygwin*)
13269             lt_cv_sys_argz_works=no
13270 <           if test "$cross_compiling" != no; then
13270 >           if test no != "$cross_compiling"; then
13271               lt_cv_sys_argz_works="guessing no"
13272             else
13273               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12689 | Line 13278 | else
13278               lt_os_major=${2-0}
13279               lt_os_minor=${3-0}
13280               lt_os_micro=${4-0}
13281 <             if test "$lt_os_major" -gt 1 \
13282 <                || { test "$lt_os_major" -eq 1 \
13283 <                  && { test "$lt_os_minor" -gt 5 \
13284 <                    || { test "$lt_os_minor" -eq 5 \
13285 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13281 >             if test 1 -lt "$lt_os_major" \
13282 >                || { test 1 -eq "$lt_os_major" \
13283 >                  && { test 5 -lt "$lt_os_minor" \
13284 >                    || { test 5 -eq "$lt_os_minor" \
13285 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13286                 lt_cv_sys_argz_works=yes
13287               fi
13288             fi
# Line 12703 | Line 13292 | else
13292   fi
13293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13294   $as_echo "$lt_cv_sys_argz_works" >&6; }
13295 <     if test "$lt_cv_sys_argz_works" = yes; then :
13295 >     if test yes = "$lt_cv_sys_argz_works"; then :
13296  
13297   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13298  
13299   else
13300 <  ARGZ_H=argz.h
13300 >  LT_ARGZ_H=lt__argz.h
13301  
13302  
13303 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13303 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13304  
13305   fi
13306   fi
# Line 12732 | Line 13321 | else
13321   fi
13322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13323   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13324 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13324 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13325  
13326   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13327  
# Line 12756 | Line 13345 | if test "${with_included_ltdl+set}" = se
13345   fi
13346  
13347  
13348 < if test "x$with_included_ltdl" != xyes; then
13348 > if test yes != "$with_included_ltdl"; then
13349    # We are not being forced to use the included libltdl sources, so
13350    # decide whether there is a useful installed version we can use.
13351    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 12832 | Line 13421 | fi
13421   if test -n "$with_ltdl_include"; then
13422    if test -f "$with_ltdl_include/ltdl.h"; then :
13423    else
13424 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13424 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13425    fi
13426   else
13427    with_ltdl_include=no
# Line 12848 | Line 13437 | fi
13437   if test -n "$with_ltdl_lib"; then
13438    if test -f "$with_ltdl_lib/libltdl.la"; then :
13439    else
13440 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13440 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13441    fi
13442   else
13443    with_ltdl_lib=no
# Line 12861 | Line 13450 | case ,$with_included_ltdl,$with_ltdl_inc
13450    "") enable_ltdl_convenience=yes
13451        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13452   esac
13453 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13453 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13454   LTDLDEPS=$LIBLTDL
13455 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13455 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13456  
13457  
13458  
13459  
13460  
13461   # For backwards non-gettext consistent compatibility...
13462 < INCLTDL="$LTDLINCL"
13462 > INCLTDL=$LTDLINCL
13463  
13464  
13465          ;;
# Line 12885 | Line 13474 | $as_echo "#define HAVE_LTDL 1" >>confdef
13474          LTDLINCL=
13475          ;;
13476    ,no*,no,*)
13477 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13477 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13478          ;;
13479    *)    with_included_ltdl=no
13480          LIBLTDL="-L$with_ltdl_lib -lltdl"
13481          LTDLDEPS=
13482 <        LTDLINCL="-I$with_ltdl_include"
13482 >        LTDLINCL=-I$with_ltdl_include
13483          ;;
13484   esac
13485 < INCLTDL="$LTDLINCL"
13485 > INCLTDL=$LTDLINCL
13486  
13487   # Report our decision...
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 12913 | Line 13502 | if test "${enable_ltdl_install+set}" = s
13502   fi
13503  
13504  
13505 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13505 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13506    *yes*) ;;
13507    *) enable_ltdl_convenience=yes ;;
13508   esac
13509  
13510 < if test x"${enable_ltdl_install-no}" != xno; then
13510 > if test no != "${enable_ltdl_install-no}"; then
13511    INSTALL_LTDL_TRUE=
13512    INSTALL_LTDL_FALSE='#'
13513   else
# Line 12926 | Line 13515 | else
13515    INSTALL_LTDL_FALSE=
13516   fi
13517  
13518 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13518 >  if test no != "${enable_ltdl_convenience-no}"; then
13519    CONVENIENCE_LTDL_TRUE=
13520    CONVENIENCE_LTDL_FALSE='#'
13521   else
# Line 13028 | Line 13617 | LIBTOOL="$LIBTOOL --silent"
13617  
13618   # Checks for libraries.
13619  
13620 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13621 < $as_echo_n "checking for library containing socket... " >&6; }
13622 < if ${ac_cv_search_socket+:} false; then :
13620 >
13621 >  if test "X$CC" != "X"; then
13622 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13623 > $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13624 > if ${ssp_cv_cc+:} false; then :
13625 >  $as_echo_n "(cached) " >&6
13626 > else
13627 >  ssp_old_cflags="$CFLAGS"
13628 >       CFLAGS="$CFLAGS -fstack-protector-strong"
13629 >       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 > /* end confdefs.h.  */
13631 >
13632 > int
13633 > main ()
13634 > {
13635 >
13636 >  ;
13637 >  return 0;
13638 > }
13639 > _ACEOF
13640 > if ac_fn_c_try_compile "$LINENO"; then :
13641 >  ssp_cv_cc=yes
13642 > else
13643 >  ssp_cv_cc=no
13644 > fi
13645 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 >       CFLAGS="$ssp_old_cflags"
13647 >
13648 > fi
13649 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13650 > $as_echo "$ssp_cv_cc" >&6; }
13651 >    if test $ssp_cv_cc = yes; then
13652 >      CFLAGS="$CFLAGS -fstack-protector-strong"
13653 >
13654 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13655 >
13656 >    else
13657 >      unset ssp_cv_cc
13658 >      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13659 > $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13660 > if ${ssp_cv_cc+:} false; then :
13661 >  $as_echo_n "(cached) " >&6
13662 > else
13663 >  ssp_old_cflags="$CFLAGS"
13664 >         CFLAGS="$CFLAGS -fstack-protector"
13665 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 > /* end confdefs.h.  */
13667 >
13668 > int
13669 > main ()
13670 > {
13671 >
13672 >  ;
13673 >  return 0;
13674 > }
13675 > _ACEOF
13676 > if ac_fn_c_try_compile "$LINENO"; then :
13677 >  ssp_cv_cc=yes
13678 > else
13679 >  ssp_cv_cc=no
13680 > fi
13681 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 >         CFLAGS="$ssp_old_cflags"
13683 >
13684 > fi
13685 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13686 > $as_echo "$ssp_cv_cc" >&6; }
13687 >      if test $ssp_cv_cc = yes; then
13688 >        CFLAGS="$CFLAGS -fstack-protector"
13689 >
13690 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13691 >
13692 >      fi
13693 >    fi
13694 >  fi
13695 >
13696 >
13697 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13698 > $as_echo_n "checking whether libssp exists... " >&6; }
13699 > if ${ssp_cv_lib+:} false; then :
13700 >  $as_echo_n "(cached) " >&6
13701 > else
13702 >  ssp_old_libs="$LIBS"
13703 >     LIBS="$LIBS -lssp"
13704 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 > /* end confdefs.h.  */
13706 >
13707 > int
13708 > main ()
13709 > {
13710 >
13711 >  ;
13712 >  return 0;
13713 > }
13714 > _ACEOF
13715 > if ac_fn_c_try_link "$LINENO"; then :
13716 >  ssp_cv_lib=yes
13717 > else
13718 >  ssp_cv_lib=no
13719 > fi
13720 > rm -f core conftest.err conftest.$ac_objext \
13721 >    conftest$ac_exeext conftest.$ac_ext
13722 >     LIBS="$ssp_old_libs"
13723 >
13724 > fi
13725 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13726 > $as_echo "$ssp_cv_lib" >&6; }
13727 >  if test $ssp_cv_lib = yes; then
13728 >    LIBS="$LIBS -lssp"
13729 >  fi
13730 >
13731 >
13732 >
13733 >
13734 >
13735 >
13736 > for flag in -fno-strict-aliasing; do
13737 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13738 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13739 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13740 > if eval \${$as_CACHEVAR+:} false; then :
13741 >  $as_echo_n "(cached) " >&6
13742 > else
13743 >
13744 >  ax_check_save_flags=$CFLAGS
13745 >  CFLAGS="$CFLAGS  $flag"
13746 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 > /* end confdefs.h.  */
13748 >
13749 > int
13750 > main ()
13751 > {
13752 >
13753 >  ;
13754 >  return 0;
13755 > }
13756 > _ACEOF
13757 > if ac_fn_c_try_compile "$LINENO"; then :
13758 >  eval "$as_CACHEVAR=yes"
13759 > else
13760 >  eval "$as_CACHEVAR=no"
13761 > fi
13762 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 >  CFLAGS=$ax_check_save_flags
13764 > fi
13765 > eval ac_res=\$$as_CACHEVAR
13766 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13767 > $as_echo "$ac_res" >&6; }
13768 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13769 >
13770 > if ${CFLAGS+:} false; then :
13771 >
13772 >  case " $CFLAGS " in #(
13773 >  *" $flag "*) :
13774 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13775 >  (: CFLAGS already contains $flag) 2>&5
13776 >  ac_status=$?
13777 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 >  test $ac_status = 0; } ;; #(
13779 >  *) :
13780 >
13781 >     as_fn_append CFLAGS " $flag"
13782 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13783 >  (: CFLAGS="$CFLAGS") 2>&5
13784 >  ac_status=$?
13785 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13786 >  test $ac_status = 0; }
13787 >     ;;
13788 > esac
13789 >
13790 > else
13791 >
13792 >  CFLAGS=$flag
13793 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13794 >  (: CFLAGS="$CFLAGS") 2>&5
13795 >  ac_status=$?
13796 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13797 >  test $ac_status = 0; }
13798 >
13799 > fi
13800 >
13801 > else
13802 >  :
13803 > fi
13804 >
13805 > done
13806 >
13807 >
13808 >  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13809 > if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13810 >
13811 > else
13812 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13813 > $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13814 > if ${ac_cv_search_getaddrinfo+:} false; then :
13815    $as_echo_n "(cached) " >&6
13816   else
13817    ac_func_search_save_LIBS=$LIBS
# Line 13043 | Line 13824 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13824   #ifdef __cplusplus
13825   extern "C"
13826   #endif
13827 < char socket ();
13827 > char getaddrinfo ();
13828   int
13829   main ()
13830   {
13831 < return socket ();
13831 > return getaddrinfo ();
13832    ;
13833    return 0;
13834   }
13835   _ACEOF
13836 < for ac_lib in '' socket; do
13836 > for ac_lib in '' nsl; do
13837    if test -z "$ac_lib"; then
13838      ac_res="none required"
13839    else
# Line 13060 | Line 13841 | for ac_lib in '' socket; do
13841      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13842    fi
13843    if ac_fn_c_try_link "$LINENO"; then :
13844 <  ac_cv_search_socket=$ac_res
13844 >  ac_cv_search_getaddrinfo=$ac_res
13845   fi
13846   rm -f core conftest.err conftest.$ac_objext \
13847      conftest$ac_exeext
13848 <  if ${ac_cv_search_socket+:} false; then :
13848 >  if ${ac_cv_search_getaddrinfo+:} false; then :
13849    break
13850   fi
13851   done
13852 < if ${ac_cv_search_socket+:} false; then :
13852 > if ${ac_cv_search_getaddrinfo+:} false; then :
13853  
13854   else
13855 <  ac_cv_search_socket=no
13855 >  ac_cv_search_getaddrinfo=no
13856   fi
13857   rm conftest.$ac_ext
13858   LIBS=$ac_func_search_save_LIBS
13859   fi
13860 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13861 < $as_echo "$ac_cv_search_socket" >&6; }
13862 < ac_res=$ac_cv_search_socket
13860 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13861 > $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13862 > ac_res=$ac_cv_search_getaddrinfo
13863   if test "$ac_res" != no; then :
13864    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13865  
13085 – else
13086 –  as_fn_error $? "socket library not found" "$LINENO" 5
13866   fi
13867  
13868 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13869 < $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13870 < if ${ac_cv_search_inet_ntoa+:} false; then :
13868 > fi
13869 >
13870 >  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13871 > if test "x$ac_cv_func_getnameinfo" = xyes; then :
13872 >
13873 > else
13874 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13875 > $as_echo_n "checking for library containing getnameinfo... " >&6; }
13876 > if ${ac_cv_search_getnameinfo+:} false; then :
13877    $as_echo_n "(cached) " >&6
13878   else
13879    ac_func_search_save_LIBS=$LIBS
# Line 13101 | Line 13886 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13886   #ifdef __cplusplus
13887   extern "C"
13888   #endif
13889 < char inet_ntoa ();
13889 > char getnameinfo ();
13890   int
13891   main ()
13892   {
13893 < return inet_ntoa ();
13893 > return getnameinfo ();
13894    ;
13895    return 0;
13896   }
# Line 13118 | Line 13903 | for ac_lib in '' nsl; do
13903      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13904    fi
13905    if ac_fn_c_try_link "$LINENO"; then :
13906 <  ac_cv_search_inet_ntoa=$ac_res
13906 >  ac_cv_search_getnameinfo=$ac_res
13907   fi
13908   rm -f core conftest.err conftest.$ac_objext \
13909      conftest$ac_exeext
13910 <  if ${ac_cv_search_inet_ntoa+:} false; then :
13910 >  if ${ac_cv_search_getnameinfo+:} false; then :
13911    break
13912   fi
13913   done
13914 < if ${ac_cv_search_inet_ntoa+:} false; then :
13914 > if ${ac_cv_search_getnameinfo+:} false; then :
13915  
13916   else
13917 <  ac_cv_search_inet_ntoa=no
13917 >  ac_cv_search_getnameinfo=no
13918   fi
13919   rm conftest.$ac_ext
13920   LIBS=$ac_func_search_save_LIBS
13921   fi
13922 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13923 < $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13924 < ac_res=$ac_cv_search_inet_ntoa
13922 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13923 > $as_echo "$ac_cv_search_getnameinfo" >&6; }
13924 > ac_res=$ac_cv_search_getnameinfo
13925   if test "$ac_res" != no; then :
13926    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13927  
13928   fi
13929  
13930 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13931 < $as_echo_n "checking for library containing inet_aton... " >&6; }
13932 < if ${ac_cv_search_inet_aton+:} false; then :
13930 > fi
13931 >
13932 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13933 > $as_echo_n "checking for library containing socket... " >&6; }
13934 > if ${ac_cv_search_socket+:} false; then :
13935    $as_echo_n "(cached) " >&6
13936   else
13937    ac_func_search_save_LIBS=$LIBS
# Line 13157 | Line 13944 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13944   #ifdef __cplusplus
13945   extern "C"
13946   #endif
13947 < char inet_aton ();
13947 > char socket ();
13948   int
13949   main ()
13950   {
13951 < return inet_aton ();
13951 > return socket ();
13952    ;
13953    return 0;
13954   }
13955   _ACEOF
13956 < for ac_lib in '' resolv; do
13956 > for ac_lib in '' socket; do
13957    if test -z "$ac_lib"; then
13958      ac_res="none required"
13959    else
# Line 13174 | Line 13961 | for ac_lib in '' resolv; do
13961      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13962    fi
13963    if ac_fn_c_try_link "$LINENO"; then :
13964 <  ac_cv_search_inet_aton=$ac_res
13964 >  ac_cv_search_socket=$ac_res
13965   fi
13966   rm -f core conftest.err conftest.$ac_objext \
13967      conftest$ac_exeext
13968 <  if ${ac_cv_search_inet_aton+:} false; then :
13968 >  if ${ac_cv_search_socket+:} false; then :
13969    break
13970   fi
13971   done
13972 < if ${ac_cv_search_inet_aton+:} false; then :
13972 > if ${ac_cv_search_socket+:} false; then :
13973  
13974   else
13975 <  ac_cv_search_inet_aton=no
13975 >  ac_cv_search_socket=no
13976   fi
13977   rm conftest.$ac_ext
13978   LIBS=$ac_func_search_save_LIBS
13979   fi
13980 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13981 < $as_echo "$ac_cv_search_inet_aton" >&6; }
13982 < ac_res=$ac_cv_search_inet_aton
13980 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13981 > $as_echo "$ac_cv_search_socket" >&6; }
13982 > ac_res=$ac_cv_search_socket
13983   if test "$ac_res" != no; then :
13984    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13985  
13986 < fi
13987 <
13201 <  for ac_func in inet_aton inet_ntop inet_pton
13202 < do :
13203 <  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13204 < ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13205 < if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13206 <  cat >>confdefs.h <<_ACEOF
13207 < #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13208 < _ACEOF
13209 <
13210 < fi
13211 < done
13212 <
13213 <  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13214 <   #include <sys/socket.h>
13215 <   #include <netdb.h>
13216 <
13217 < "
13218 < if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13219 <
13220 < cat >>confdefs.h <<_ACEOF
13221 < #define HAVE_STRUCT_SOCKADDR_IN 1
13222 < _ACEOF
13223 <
13224 <
13225 < fi
13226 < ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13227 <   #include <sys/socket.h>
13228 <   #include <netdb.h>
13229 <
13230 < "
13231 < if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13232 <
13233 < cat >>confdefs.h <<_ACEOF
13234 < #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13235 < _ACEOF
13236 <
13237 <
13238 < fi
13239 < ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13240 <   #include <sys/socket.h>
13241 <   #include <netdb.h>
13242 <
13243 < "
13244 < if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13245 <
13246 < cat >>confdefs.h <<_ACEOF
13247 < #define HAVE_STRUCT_ADDRINFO 1
13248 < _ACEOF
13249 <
13250 <
13251 < fi
13252 <
13253 <  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13254 <  <sys/socket.h>
13255 < "
13256 < if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13257 <
13258 < cat >>confdefs.h <<_ACEOF
13259 < #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13260 < _ACEOF
13261 <
13262 <
13263 < fi
13264 <
13265 <
13266 <
13267 <  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13268 < "
13269 < if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13270 <
13271 < $as_echo "#define IPV6 1" >>confdefs.h
13272 <
13986 > else
13987 >  as_fn_error $? "socket library not found" "$LINENO" 5
13988   fi
13989  
13990  
# Line 13524 | Line 14239 | done
14239  
14240  
14241  
13527 –
13528 –
13529 –
13530 –
14242   # Checks for header files.
14243  
14244  
# Line 13558 | Line 14269 | done
14269  
14270  
14271  
13561 –
13562 –
13563 –
13564 –
14272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14273   $as_echo_n "checking for library containing crypt... " >&6; }
14274   if ${ac_cv_search_crypt+:} false; then :
# Line 13619 | Line 14326 | if test "$ac_res" != no; then :
14326   fi
14327  
14328  
14329 < # Check whether --enable-libpcre was given.
14330 < if test "${enable_libpcre+set}" = set; then :
14331 <  enableval=$enable_libpcre;
14332 < else
14333 <  ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
14334 < if test "x$ac_cv_header_pcre_h" = xyes; then :
14335 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
14336 < $as_echo_n "checking for library containing pcre_study... " >&6; }
14337 < if ${ac_cv_search_pcre_study+:} false; then :
14338 <  $as_echo_n "(cached) " >&6
14339 < else
14340 <  ac_func_search_save_LIBS=$LIBS
14341 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 > # Define various chunk sizes for the pooling allocator
14330 >
14331 >
14332 > $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14333 >
14334 >
14335 > $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14336 >
14337 >
14338 > $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14339 >
14340 >
14341 > $as_echo "#define MP_CHUNK_SIZE_INVITE 4*1024" >>confdefs.h
14342 >
14343 >
14344 > $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14345 >
14346 >
14347 > $as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h
14348 >
14349 >
14350 > $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14351 >
14352 >
14353 > $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14354 >
14355 >
14356 > $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14357 >
14358 >
14359 > $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14360 >
14361 >
14362 > $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14363 >
14364 >
14365 > $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14366 >
14367 >
14368 > $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14369 >
14370 >
14371 > $as_echo "#define MP_CHUNK_SIZE_WHOWAS 256*1024" >>confdefs.h
14372 >
14373 >
14374 >
14375 > # Argument processing.
14376 >
14377 >  desired_iopoll_mechanism="none"
14378 >
14379 >  # Check whether --enable-kqueue was given.
14380 > if test "${enable_kqueue+set}" = set; then :
14381 >  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14382 > fi
14383 >
14384 >  # Check whether --enable-epoll was given.
14385 > if test "${enable_epoll+set}" = set; then :
14386 >  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14387 > fi
14388 >
14389 >  # Check whether --enable-devpoll was given.
14390 > if test "${enable_devpoll+set}" = set; then :
14391 >  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14392 > fi
14393 >
14394 >  # Check whether --enable-poll was given.
14395 > if test "${enable_poll+set}" = set; then :
14396 >  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14397 > fi
14398 >
14399 >
14400 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14401 > $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14402 >
14403 >  iopoll_mechanism_none=0
14404 >
14405 > cat >>confdefs.h <<_ACEOF
14406 > #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14407 > _ACEOF
14408 >
14409 >
14410 >  iopoll_mechanism_kqueue=1
14411 >
14412 > cat >>confdefs.h <<_ACEOF
14413 > #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14414 > _ACEOF
14415 >
14416 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417   /* end confdefs.h.  */
14418 + /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14419 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14420 + #define kevent innocuous_kevent
14421 +
14422 + /* System header to define __stub macros and hopefully few prototypes,
14423 +    which can conflict with char kevent (); below.
14424 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14425 +    <limits.h> exists even on freestanding compilers.  */
14426 +
14427 + #ifdef __STDC__
14428 + # include <limits.h>
14429 + #else
14430 + # include <assert.h>
14431 + #endif
14432 +
14433 + #undef kevent
14434  
14435   /* Override any GCC internal prototype to avoid an error.
14436     Use char because int might match the return type of a GCC
# Line 13640 | Line 14438 | cat confdefs.h - <<_ACEOF >conftest.$ac_
14438   #ifdef __cplusplus
14439   extern "C"
14440   #endif
14441 < char pcre_study ();
14441 > char kevent ();
14442 > /* The GNU C library defines this for functions which it implements
14443 >    to always fail with ENOSYS.  Some functions are actually named
14444 >    something starting with __ and the normal name is an alias.  */
14445 > #if defined __stub_kevent || defined __stub___kevent
14446 > choke me
14447 > #endif
14448 >
14449   int
14450   main ()
14451   {
14452 < return pcre_study ();
14452 > return kevent ();
14453    ;
14454    return 0;
14455   }
14456   _ACEOF
14457 < for ac_lib in '' pcre; do
14458 <  if test -z "$ac_lib"; then
14459 <    ac_res="none required"
14460 <  else
13656 <    ac_res=-l$ac_lib
13657 <    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13658 <  fi
13659 <  if ac_fn_c_try_link "$LINENO"; then :
13660 <  ac_cv_search_pcre_study=$ac_res
14457 > if ac_fn_c_try_link "$LINENO"; then :
14458 >  is_kqueue_mechanism_available="yes"
14459 > else
14460 >  is_kqueue_mechanism_available="no"
14461   fi
14462   rm -f core conftest.err conftest.$ac_objext \
14463 <    conftest$ac_exeext
14464 <  if ${ac_cv_search_pcre_study+:} false; then :
14465 <  break
14466 < fi
14467 < done
14468 < if ${ac_cv_search_pcre_study+:} false; then :
14463 >    conftest$ac_exeext conftest.$ac_ext
14464 >
14465 >  iopoll_mechanism_epoll=2
14466 >
14467 > cat >>confdefs.h <<_ACEOF
14468 > #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14469 > _ACEOF
14470  
14471 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 + /* end confdefs.h.  */
14473 + #include <sys/epoll.h>
14474 + int
14475 + main ()
14476 + {
14477 + epoll_create(256);
14478 +  ;
14479 +  return 0;
14480 + }
14481 + _ACEOF
14482 + if ac_fn_c_try_link "$LINENO"; then :
14483 +  is_epoll_mechanism_available="yes"
14484   else
14485 <  ac_cv_search_pcre_study=no
13672 < fi
13673 < rm conftest.$ac_ext
13674 < LIBS=$ac_func_search_save_LIBS
14485 >  is_epoll_mechanism_available="no"
14486   fi
14487 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
14488 < $as_echo "$ac_cv_search_pcre_study" >&6; }
13678 < ac_res=$ac_cv_search_pcre_study
13679 < if test "$ac_res" != no; then :
13680 <  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14487 > rm -f core conftest.err conftest.$ac_objext \
14488 >    conftest$ac_exeext conftest.$ac_ext
14489  
14490 < $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
14490 >  iopoll_mechanism_devpoll=3
14491  
14492 < fi
14492 > cat >>confdefs.h <<_ACEOF
14493 > #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14494 > _ACEOF
14495  
14496 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 + /* end confdefs.h.  */
14498 + #include <devpoll.h>
14499 + int
14500 + main ()
14501 + {
14502 +
14503 +  ;
14504 +  return 0;
14505 + }
14506 + _ACEOF
14507 + if ac_fn_c_try_compile "$LINENO"; then :
14508 +  is_devpoll_mechanism_available="yes"
14509 + else
14510 +  is_devpoll_mechanism_available="no"
14511   fi
14512 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 +  if test "$is_devpoll_mechanism_available" = "yes" ; then
14514  
14515 + $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14516  
14517 +  fi
14518 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 + /* end confdefs.h.  */
14520 + #include <sys/devpoll.h>
14521 + int
14522 + main ()
14523 + {
14524 +
14525 +  ;
14526 +  return 0;
14527 + }
14528 + _ACEOF
14529 + if ac_fn_c_try_compile "$LINENO"; then :
14530 +  is_devpoll_mechanism_available="yes"
14531 + else
14532 +  is_devpoll_mechanism_available="no"
14533   fi
14534 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 +  if test "$is_devpoll_mechanism_available" = "yes" ; then
14536  
14537 + $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14538  
14539 < # Check whether --enable-openssl was given.
14540 < if test "${enable_openssl+set}" = set; then :
14541 <  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14539 >  fi
14540 >
14541 >  iopoll_mechanism_poll=4
14542 >
14543 > cat >>confdefs.h <<_ACEOF
14544 > #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14545 > _ACEOF
14546 >
14547 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 > /* end confdefs.h.  */
14549 > /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14550 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14551 > #define poll innocuous_poll
14552 >
14553 > /* System header to define __stub macros and hopefully few prototypes,
14554 >    which can conflict with char poll (); below.
14555 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14556 >    <limits.h> exists even on freestanding compilers.  */
14557 >
14558 > #ifdef __STDC__
14559 > # include <limits.h>
14560 > #else
14561 > # include <assert.h>
14562 > #endif
14563 >
14564 > #undef poll
14565 >
14566 > /* Override any GCC internal prototype to avoid an error.
14567 >   Use char because int might match the return type of a GCC
14568 >   builtin and then its argument prototype would still apply.  */
14569 > #ifdef __cplusplus
14570 > extern "C"
14571 > #endif
14572 > char poll ();
14573 > /* The GNU C library defines this for functions which it implements
14574 >    to always fail with ENOSYS.  Some functions are actually named
14575 >    something starting with __ and the normal name is an alias.  */
14576 > #if defined __stub_poll || defined __stub___poll
14577 > choke me
14578 > #endif
14579 >
14580 > int
14581 > main ()
14582 > {
14583 > return poll ();
14584 >  ;
14585 >  return 0;
14586 > }
14587 > _ACEOF
14588 > if ac_fn_c_try_link "$LINENO"; then :
14589 >  is_poll_mechanism_available="yes"
14590   else
14591 <   cf_enable_openssl="auto"
14591 >  is_poll_mechanism_available="no"
14592   fi
14593 + rm -f core conftest.err conftest.$ac_objext \
14594 +    conftest$ac_exeext conftest.$ac_ext
14595  
14596 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14597 < $as_echo_n "checking for OpenSSL... " >&6; }
14598 < if test "$cf_enable_openssl" != "no"; then
14599 <  cf_openssl_basedir=""
14600 <  if test "$cf_enable_openssl" != "auto" &&
14601 <     test "$cf_enable_openssl" != "yes"; then
14602 <          cf_openssl_basedir="${cf_enable_openssl}"
14603 <  else
13707 <        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13708 <                /opt /opt/openssl /usr/local/openssl; do
13709 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
13710 <        cf_openssl_basedir="${dirs}"
13711 <        break
13712 <      fi
13713 <    done
13714 <    unset dirs
13715 <  fi
14596 >  optimal_iopoll_mechanism="none"
14597 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14598 >    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14599 >    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14600 >      optimal_iopoll_mechanism="$mechanism"
14601 >      break
14602 >    fi
14603 >  done
14604  
14605 <    if test ! -z "$cf_openssl_basedir"; then
14606 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14607 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14608 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14605 >  if test "$desired_iopoll_mechanism" = "none" ; then
14606 >    if test "$optimal_iopoll_mechanism" = "none" ; then
14607 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14608 > $as_echo "none" >&6; }
14609 >      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14610      else
14611 <                  cf_openssl_basedir=""
14611 >      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14612 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14613 > $as_echo "$selected_iopoll_mechanism" >&6; }
14614      fi
14615    else
14616 <                            if test -f "/usr/include/openssl/opensslv.h"; then
14617 <      cf_openssl_basedir="/usr"
14616 >    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14617 >    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14618 >      selected_iopoll_mechanism=$desired_iopoll_mechanism
14619 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14620 > $as_echo "$selected_iopoll_mechanism" >&6; }
14621 >    else
14622 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14623 > $as_echo "none" >&6; }
14624 >      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14625      fi
14626    fi
14627  
14628 <      if test ! -z "$cf_openssl_basedir"; then
14629 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14630 < $as_echo "$cf_openssl_basedir" >&6; }
14631 <    cf_enable_openssl="yes"
14632 <  else
14633 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14634 < $as_echo "not found. Please check your path." >&6; }
14635 <    cf_enable_openssl="no"
14636 <  fi
14637 <  unset cf_openssl_basedir
14628 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14629 >
14630 > cat >>confdefs.h <<_ACEOF
14631 > #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14632 > _ACEOF
14633 >
14634 >
14635 >
14636 >  # Check whether --enable-assert was given.
14637 > if test "${enable_assert+set}" = set; then :
14638 >  enableval=$enable_assert; assert=$enableval
14639   else
14640 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13742 < $as_echo "disabled" >&6; }
14640 >  assert=no
14641   fi
14642  
14643 < if test "$cf_enable_openssl" != "no"; then :
14644 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14645 < $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14646 <  if test "$cross_compiling" = yes; then :
14647 <  cf_openssl_version_ok=no
14643 >
14644 >  if test "$assert" = "no"; then :
14645 >
14646 > $as_echo "#define NDEBUG 1" >>confdefs.h
14647 >
14648 > fi
14649 >
14650 >
14651 >  # Check whether --enable-debugging was given.
14652 > if test "${enable_debugging+set}" = set; then :
14653 >  enableval=$enable_debugging; debugging="$enableval"
14654   else
14655 +  debugging="no"
14656 + fi
14657 +
14658 +
14659 +  if test "$debugging" = "yes"; then :
14660 +
14661 +    CFLAGS="-Wall -g -O0"
14662 +
14663 + fi
14664 +
14665 +
14666 +  # Check whether --enable-warnings was given.
14667 + if test "${enable_warnings+set}" = set; then :
14668 +  enableval=$enable_warnings; warnings="$enableval"
14669 + else
14670 +  warnings="no"
14671 + fi
14672 +
14673 +
14674 +  if test "$warnings" = "yes"; then :
14675 +
14676 +
14677 +
14678 +
14679 +
14680 + for flag in -Wall; do
14681 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14682 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14683 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14684 + if eval \${$as_CACHEVAR+:} false; then :
14685 +  $as_echo_n "(cached) " >&6
14686 + else
14687 +
14688 +  ax_check_save_flags=$CFLAGS
14689 +  CFLAGS="$CFLAGS  $flag"
14690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691   /* end confdefs.h.  */
14692  
13754 –
13755 –    #include <openssl/opensslv.h>
13756 –    #include <stdlib.h>
14693   int
14694   main ()
14695   {
14696 < exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14696 >
14697    ;
14698    return 0;
14699   }
14700   _ACEOF
14701 < if ac_fn_c_try_run "$LINENO"; then :
14702 <  cf_openssl_version_ok=yes
14701 > if ac_fn_c_try_compile "$LINENO"; then :
14702 >  eval "$as_CACHEVAR=yes"
14703   else
14704 <  cf_openssl_version_ok=no
14704 >  eval "$as_CACHEVAR=no"
14705   fi
14706 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14707 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14706 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 >  CFLAGS=$ax_check_save_flags
14708   fi
14709 + eval ac_res=\$$as_CACHEVAR
14710 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14711 + $as_echo "$ac_res" >&6; }
14712 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14713  
14714 + if ${CFLAGS+:} false; then :
14715  
14716 <  if test "$cf_openssl_version_ok" = "yes"; then :
14717 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14718 < $as_echo "found" >&6; }
14716 >  case " $CFLAGS " in #(
14717 >  *" $flag "*) :
14718 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14719 >  (: CFLAGS already contains $flag) 2>&5
14720 >  ac_status=$?
14721 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14722 >  test $ac_status = 0; } ;; #(
14723 >  *) :
14724  
14725 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14726 < $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14727 < if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14725 >     as_fn_append CFLAGS " $flag"
14726 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14727 >  (: CFLAGS="$CFLAGS") 2>&5
14728 >  ac_status=$?
14729 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14730 >  test $ac_status = 0; }
14731 >     ;;
14732 > esac
14733 >
14734 > else
14735 >
14736 >  CFLAGS=$flag
14737 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14738 >  (: CFLAGS="$CFLAGS") 2>&5
14739 >  ac_status=$?
14740 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14741 >  test $ac_status = 0; }
14742 >
14743 > fi
14744 >
14745 > else
14746 >  :
14747 > fi
14748 >
14749 > done
14750 >
14751 >
14752 >
14753 >
14754 >
14755 > for flag in -Wbad-function-cast; do
14756 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14757 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14758 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14759 > if eval \${$as_CACHEVAR+:} false; then :
14760    $as_echo_n "(cached) " >&6
14761   else
14762 <  ac_check_lib_save_LIBS=$LIBS
14763 < LIBS="-lcrypto  $LIBS"
14764 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 >
14763 >  ax_check_save_flags=$CFLAGS
14764 >  CFLAGS="$CFLAGS  $flag"
14765 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766   /* end confdefs.h.  */
14767  
13789 – /* Override any GCC internal prototype to avoid an error.
13790 –   Use char because int might match the return type of a GCC
13791 –   builtin and then its argument prototype would still apply.  */
13792 – #ifdef __cplusplus
13793 – extern "C"
13794 – #endif
13795 – char RSA_free ();
14768   int
14769   main ()
14770   {
14771 < return RSA_free ();
14771 >
14772    ;
14773    return 0;
14774   }
14775   _ACEOF
14776 < if ac_fn_c_try_link "$LINENO"; then :
14777 <  ac_cv_lib_crypto_RSA_free=yes
14776 > if ac_fn_c_try_compile "$LINENO"; then :
14777 >  eval "$as_CACHEVAR=yes"
14778   else
14779 <  ac_cv_lib_crypto_RSA_free=no
14779 >  eval "$as_CACHEVAR=no"
14780   fi
14781 < rm -f core conftest.err conftest.$ac_objext \
14782 <    conftest$ac_exeext conftest.$ac_ext
13811 < LIBS=$ac_check_lib_save_LIBS
14781 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782 >  CFLAGS=$ax_check_save_flags
14783   fi
14784 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14785 < $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14786 < if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14787 <  cat >>confdefs.h <<_ACEOF
13817 < #define HAVE_LIBCRYPTO 1
13818 < _ACEOF
14784 > eval ac_res=\$$as_CACHEVAR
14785 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14786 > $as_echo "$ac_res" >&6; }
14787 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14788  
14789 <  LIBS="-lcrypto $LIBS"
14789 > if ${CFLAGS+:} false; then :
14790 >
14791 >  case " $CFLAGS " in #(
14792 >  *" $flag "*) :
14793 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14794 >  (: CFLAGS already contains $flag) 2>&5
14795 >  ac_status=$?
14796 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14797 >  test $ac_status = 0; } ;; #(
14798 >  *) :
14799 >
14800 >     as_fn_append CFLAGS " $flag"
14801 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14802 >  (: CFLAGS="$CFLAGS") 2>&5
14803 >  ac_status=$?
14804 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14805 >  test $ac_status = 0; }
14806 >     ;;
14807 > esac
14808 >
14809 > else
14810 >
14811 >  CFLAGS=$flag
14812 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14813 >  (: CFLAGS="$CFLAGS") 2>&5
14814 >  ac_status=$?
14815 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816 >  test $ac_status = 0; }
14817  
14818   fi
14819  
14820 <    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14821 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14822 < $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14823 < if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14820 > else
14821 >  :
14822 > fi
14823 >
14824 > done
14825 >
14826 >
14827 >
14828 >
14829 >
14830 > for flag in -Wcast-align; do
14831 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14832 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14833 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14834 > if eval \${$as_CACHEVAR+:} false; then :
14835    $as_echo_n "(cached) " >&6
14836   else
14837 <  ac_check_lib_save_LIBS=$LIBS
14838 < LIBS="-lssl  $LIBS"
14839 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 >
14838 >  ax_check_save_flags=$CFLAGS
14839 >  CFLAGS="$CFLAGS  $flag"
14840 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841   /* end confdefs.h.  */
14842  
13835 – /* Override any GCC internal prototype to avoid an error.
13836 –   Use char because int might match the return type of a GCC
13837 –   builtin and then its argument prototype would still apply.  */
13838 – #ifdef __cplusplus
13839 – extern "C"
13840 – #endif
13841 – char SSL_connect ();
14843   int
14844   main ()
14845   {
14846 < return SSL_connect ();
14846 >
14847    ;
14848    return 0;
14849   }
14850   _ACEOF
14851 < if ac_fn_c_try_link "$LINENO"; then :
14852 <  ac_cv_lib_ssl_SSL_connect=yes
14851 > if ac_fn_c_try_compile "$LINENO"; then :
14852 >  eval "$as_CACHEVAR=yes"
14853   else
14854 <  ac_cv_lib_ssl_SSL_connect=no
14854 >  eval "$as_CACHEVAR=no"
14855   fi
14856 < rm -f core conftest.err conftest.$ac_objext \
14857 <    conftest$ac_exeext conftest.$ac_ext
13857 < LIBS=$ac_check_lib_save_LIBS
14856 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 >  CFLAGS=$ax_check_save_flags
14858   fi
14859 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14860 < $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14861 < if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14862 <  cat >>confdefs.h <<_ACEOF
14863 < #define HAVE_LIBSSL 1
14859 > eval ac_res=\$$as_CACHEVAR
14860 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14861 > $as_echo "$ac_res" >&6; }
14862 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14863 >
14864 > if ${CFLAGS+:} false; then :
14865 >
14866 >  case " $CFLAGS " in #(
14867 >  *" $flag "*) :
14868 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14869 >  (: CFLAGS already contains $flag) 2>&5
14870 >  ac_status=$?
14871 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 >  test $ac_status = 0; } ;; #(
14873 >  *) :
14874 >
14875 >     as_fn_append CFLAGS " $flag"
14876 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14877 >  (: CFLAGS="$CFLAGS") 2>&5
14878 >  ac_status=$?
14879 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14880 >  test $ac_status = 0; }
14881 >     ;;
14882 > esac
14883 >
14884 > else
14885 >
14886 >  CFLAGS=$flag
14887 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14888 >  (: CFLAGS="$CFLAGS") 2>&5
14889 >  ac_status=$?
14890 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891 >  test $ac_status = 0; }
14892 >
14893 > fi
14894 >
14895 > else
14896 >  :
14897 > fi
14898 >
14899 > done
14900 >
14901 >
14902 >
14903 >
14904 >
14905 > for flag in -Wcast-qual; do
14906 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14907 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14908 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14909 > if eval \${$as_CACHEVAR+:} false; then :
14910 >  $as_echo_n "(cached) " >&6
14911 > else
14912 >
14913 >  ax_check_save_flags=$CFLAGS
14914 >  CFLAGS="$CFLAGS  $flag"
14915 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 > /* end confdefs.h.  */
14917 >
14918 > int
14919 > main ()
14920 > {
14921 >
14922 >  ;
14923 >  return 0;
14924 > }
14925   _ACEOF
14926 + if ac_fn_c_try_compile "$LINENO"; then :
14927 +  eval "$as_CACHEVAR=yes"
14928 + else
14929 +  eval "$as_CACHEVAR=no"
14930 + fi
14931 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 +  CFLAGS=$ax_check_save_flags
14933 + fi
14934 + eval ac_res=\$$as_CACHEVAR
14935 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14936 + $as_echo "$ac_res" >&6; }
14937 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14938  
14939 <  LIBS="-lssl $LIBS"
14939 > if ${CFLAGS+:} false; then :
14940 >
14941 >  case " $CFLAGS " in #(
14942 >  *" $flag "*) :
14943 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14944 >  (: CFLAGS already contains $flag) 2>&5
14945 >  ac_status=$?
14946 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14947 >  test $ac_status = 0; } ;; #(
14948 >  *) :
14949 >
14950 >     as_fn_append CFLAGS " $flag"
14951 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14952 >  (: CFLAGS="$CFLAGS") 2>&5
14953 >  ac_status=$?
14954 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955 >  test $ac_status = 0; }
14956 >     ;;
14957 > esac
14958 >
14959 > else
14960 >
14961 >  CFLAGS=$flag
14962 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14963 >  (: CFLAGS="$CFLAGS") 2>&5
14964 >  ac_status=$?
14965 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14966 >  test $ac_status = 0; }
14967  
14968   fi
14969  
14970 + else
14971 +  :
14972   fi
14973  
14974 + done
14975 +
14976 +
14977 +
14978 +
14979 +
14980 + for flag in -Wclobbered; do
14981 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14982 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14983 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14984 + if eval \${$as_CACHEVAR+:} false; then :
14985 +  $as_echo_n "(cached) " >&6
14986   else
14987 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14988 < $as_echo "no - OpenSSL support disabled" >&6; }
14989 <    cf_enable_openssl="no"
14987 >
14988 >  ax_check_save_flags=$CFLAGS
14989 >  CFLAGS="$CFLAGS  $flag"
14990 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 > /* end confdefs.h.  */
14992 >
14993 > int
14994 > main ()
14995 > {
14996 >
14997 >  ;
14998 >  return 0;
14999 > }
15000 > _ACEOF
15001 > if ac_fn_c_try_compile "$LINENO"; then :
15002 >  eval "$as_CACHEVAR=yes"
15003 > else
15004 >  eval "$as_CACHEVAR=no"
15005   fi
15006 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 +  CFLAGS=$ax_check_save_flags
15008 + fi
15009 + eval ac_res=\$$as_CACHEVAR
15010 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15011 + $as_echo "$ac_res" >&6; }
15012 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15013 +
15014 + if ${CFLAGS+:} false; then :
15015 +
15016 +  case " $CFLAGS " in #(
15017 +  *" $flag "*) :
15018 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15019 +  (: CFLAGS already contains $flag) 2>&5
15020 +  ac_status=$?
15021 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15022 +  test $ac_status = 0; } ;; #(
15023 +  *) :
15024 +
15025 +     as_fn_append CFLAGS " $flag"
15026 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15027 +  (: CFLAGS="$CFLAGS") 2>&5
15028 +  ac_status=$?
15029 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030 +  test $ac_status = 0; }
15031 +     ;;
15032 + esac
15033 +
15034 + else
15035 +
15036 +  CFLAGS=$flag
15037 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15038 +  (: CFLAGS="$CFLAGS") 2>&5
15039 +  ac_status=$?
15040 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15041 +  test $ac_status = 0; }
15042 +
15043   fi
15044  
13879 – if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13880 –  ENABLE_SSL_TRUE=
13881 –  ENABLE_SSL_FALSE='#'
15045   else
15046 <  ENABLE_SSL_TRUE='#'
13884 <  ENABLE_SSL_FALSE=
15046 >  :
15047   fi
15048  
15049 + done
15050  
15051  
15052 < # Check whether --enable-assert was given.
15053 < if test "${enable_assert+set}" = set; then :
15054 <  enableval=$enable_assert; assert=$enableval
15052 >
15053 >
15054 >
15055 > for flag in -Wduplicated-cond; do
15056 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15057 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15058 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15059 > if eval \${$as_CACHEVAR+:} false; then :
15060 >  $as_echo_n "(cached) " >&6
15061   else
15062 <  assert=no
15062 >
15063 >  ax_check_save_flags=$CFLAGS
15064 >  CFLAGS="$CFLAGS  $flag"
15065 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 > /* end confdefs.h.  */
15067 >
15068 > int
15069 > main ()
15070 > {
15071 >
15072 >  ;
15073 >  return 0;
15074 > }
15075 > _ACEOF
15076 > if ac_fn_c_try_compile "$LINENO"; then :
15077 >  eval "$as_CACHEVAR=yes"
15078 > else
15079 >  eval "$as_CACHEVAR=no"
15080 > fi
15081 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 >  CFLAGS=$ax_check_save_flags
15083   fi
15084 + eval ac_res=\$$as_CACHEVAR
15085 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15086 + $as_echo "$ac_res" >&6; }
15087 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15088 +
15089 + if ${CFLAGS+:} false; then :
15090 +
15091 +  case " $CFLAGS " in #(
15092 +  *" $flag "*) :
15093 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15094 +  (: CFLAGS already contains $flag) 2>&5
15095 +  ac_status=$?
15096 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15097 +  test $ac_status = 0; } ;; #(
15098 +  *) :
15099  
15100 +     as_fn_append CFLAGS " $flag"
15101 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15102 +  (: CFLAGS="$CFLAGS") 2>&5
15103 +  ac_status=$?
15104 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15105 +  test $ac_status = 0; }
15106 +     ;;
15107 + esac
15108  
15109 < if test "$assert" = "no"; then :
15109 > else
15110  
15111 < $as_echo "#define NDEBUG 1" >>confdefs.h
15111 >  CFLAGS=$flag
15112 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15113 >  (: CFLAGS="$CFLAGS") 2>&5
15114 >  ac_status=$?
15115 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15116 >  test $ac_status = 0; }
15117  
15118   fi
15119  
15120 + else
15121 +  :
15122 + fi
15123  
15124 + done
15125  
13905 – $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
15126  
15127  
13908 – $as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h
15128  
15129  
15130 < $as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h
15130 > for flag in -Wempty-body; do
15131 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15132 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15133 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15134 > if eval \${$as_CACHEVAR+:} false; then :
15135 >  $as_echo_n "(cached) " >&6
15136 > else
15137  
15138 +  ax_check_save_flags=$CFLAGS
15139 +  CFLAGS="$CFLAGS  $flag"
15140 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 + /* end confdefs.h.  */
15142  
15143 < $as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h
15143 > int
15144 > main ()
15145 > {
15146  
15147 +  ;
15148 +  return 0;
15149 + }
15150 + _ACEOF
15151 + if ac_fn_c_try_compile "$LINENO"; then :
15152 +  eval "$as_CACHEVAR=yes"
15153 + else
15154 +  eval "$as_CACHEVAR=no"
15155 + fi
15156 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 +  CFLAGS=$ax_check_save_flags
15158 + fi
15159 + eval ac_res=\$$as_CACHEVAR
15160 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15161 + $as_echo "$ac_res" >&6; }
15162 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15163  
15164 < $as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h
15164 > if ${CFLAGS+:} false; then :
15165  
15166 +  case " $CFLAGS " in #(
15167 +  *" $flag "*) :
15168 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15169 +  (: CFLAGS already contains $flag) 2>&5
15170 +  ac_status=$?
15171 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172 +  test $ac_status = 0; } ;; #(
15173 +  *) :
15174  
15175 < $as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h
15175 >     as_fn_append CFLAGS " $flag"
15176 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15177 >  (: CFLAGS="$CFLAGS") 2>&5
15178 >  ac_status=$?
15179 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180 >  test $ac_status = 0; }
15181 >     ;;
15182 > esac
15183  
15184 + else
15185  
15186 < $as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h
15186 >  CFLAGS=$flag
15187 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15188 >  (: CFLAGS="$CFLAGS") 2>&5
15189 >  ac_status=$?
15190 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191 >  test $ac_status = 0; }
15192  
15193 + fi
15194  
15195 < $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
15195 > else
15196 >  :
15197 > fi
15198  
15199 + done
15200  
13929 – $as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h
15201  
15202  
13932 – $as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h
15203  
15204  
15205 < $as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h
15205 > for flag in -Wignored-qualifiers; do
15206 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15207 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15208 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15209 > if eval \${$as_CACHEVAR+:} false; then :
15210 >  $as_echo_n "(cached) " >&6
15211 > else
15212  
15213 +  ax_check_save_flags=$CFLAGS
15214 +  CFLAGS="$CFLAGS  $flag"
15215 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 + /* end confdefs.h.  */
15217  
15218 < # Argument processing.
15218 > int
15219 > main ()
15220 > {
15221  
15222 <    desired_iopoll_mechanism="none"
15223 <    # Check whether --enable-kqueue was given.
15224 < if test "${enable_kqueue+set}" = set; then :
15225 <  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
15222 >  ;
15223 >  return 0;
15224 > }
15225 > _ACEOF
15226 > if ac_fn_c_try_compile "$LINENO"; then :
15227 >  eval "$as_CACHEVAR=yes"
15228 > else
15229 >  eval "$as_CACHEVAR=no"
15230   fi
15231 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232 +  CFLAGS=$ax_check_save_flags
15233 + fi
15234 + eval ac_res=\$$as_CACHEVAR
15235 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15236 + $as_echo "$ac_res" >&6; }
15237 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15238 +
15239 + if ${CFLAGS+:} false; then :
15240 +
15241 +  case " $CFLAGS " in #(
15242 +  *" $flag "*) :
15243 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15244 +  (: CFLAGS already contains $flag) 2>&5
15245 +  ac_status=$?
15246 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247 +  test $ac_status = 0; } ;; #(
15248 +  *) :
15249 +
15250 +     as_fn_append CFLAGS " $flag"
15251 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15252 +  (: CFLAGS="$CFLAGS") 2>&5
15253 +  ac_status=$?
15254 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15255 +  test $ac_status = 0; }
15256 +     ;;
15257 + esac
15258 +
15259 + else
15260 +
15261 +  CFLAGS=$flag
15262 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15263 +  (: CFLAGS="$CFLAGS") 2>&5
15264 +  ac_status=$?
15265 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266 +  test $ac_status = 0; }
15267  
13946 –  # Check whether --enable-epoll was given.
13947 – if test "${enable_epoll+set}" = set; then :
13948 –  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
15268   fi
15269  
15270 <  # Check whether --enable-devpoll was given.
15271 < if test "${enable_devpoll+set}" = set; then :
13953 <  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
15270 > else
15271 >  :
15272   fi
15273  
15274 <  # Check whether --enable-rtsigio was given.
15275 < if test "${enable_rtsigio+set}" = set; then :
15276 <  enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
15274 > done
15275 >
15276 >
15277 >
15278 >
15279 >
15280 > for flag in -Wlogical-op; do
15281 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15282 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15283 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15284 > if eval \${$as_CACHEVAR+:} false; then :
15285 >  $as_echo_n "(cached) " >&6
15286 > else
15287 >
15288 >  ax_check_save_flags=$CFLAGS
15289 >  CFLAGS="$CFLAGS  $flag"
15290 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 > /* end confdefs.h.  */
15292 >
15293 > int
15294 > main ()
15295 > {
15296 >
15297 >  ;
15298 >  return 0;
15299 > }
15300 > _ACEOF
15301 > if ac_fn_c_try_compile "$LINENO"; then :
15302 >  eval "$as_CACHEVAR=yes"
15303 > else
15304 >  eval "$as_CACHEVAR=no"
15305   fi
15306 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 +  CFLAGS=$ax_check_save_flags
15308 + fi
15309 + eval ac_res=\$$as_CACHEVAR
15310 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15311 + $as_echo "$ac_res" >&6; }
15312 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15313 +
15314 + if ${CFLAGS+:} false; then :
15315 +
15316 +  case " $CFLAGS " in #(
15317 +  *" $flag "*) :
15318 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15319 +  (: CFLAGS already contains $flag) 2>&5
15320 +  ac_status=$?
15321 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15322 +  test $ac_status = 0; } ;; #(
15323 +  *) :
15324 +
15325 +     as_fn_append CFLAGS " $flag"
15326 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15327 +  (: CFLAGS="$CFLAGS") 2>&5
15328 +  ac_status=$?
15329 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330 +  test $ac_status = 0; }
15331 +     ;;
15332 + esac
15333 +
15334 + else
15335 +
15336 +  CFLAGS=$flag
15337 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15338 +  (: CFLAGS="$CFLAGS") 2>&5
15339 +  ac_status=$?
15340 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15341 +  test $ac_status = 0; }
15342  
13961 –  # Check whether --enable-poll was given.
13962 – if test "${enable_poll+set}" = set; then :
13963 –  enableval=$enable_poll; desired_iopoll_mechanism="poll"
15343   fi
15344  
15345 <  # Check whether --enable-select was given.
15346 < if test "${enable_select+set}" = set; then :
13968 <  enableval=$enable_select; desired_iopoll_mechanism="select"
15345 > else
15346 >  :
15347   fi
15348  
15349 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13972 < $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13973 <  iopoll_mechanism_none=0
15349 > done
15350  
15351 < cat >>confdefs.h <<_ACEOF
15352 < #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
15351 >
15352 >
15353 >
15354 >
15355 > for flag in -Wmissing-declarations; do
15356 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15357 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15358 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15359 > if eval \${$as_CACHEVAR+:} false; then :
15360 >  $as_echo_n "(cached) " >&6
15361 > else
15362 >
15363 >  ax_check_save_flags=$CFLAGS
15364 >  CFLAGS="$CFLAGS  $flag"
15365 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 > /* end confdefs.h.  */
15367 >
15368 > int
15369 > main ()
15370 > {
15371 >
15372 >  ;
15373 >  return 0;
15374 > }
15375   _ACEOF
15376 + if ac_fn_c_try_compile "$LINENO"; then :
15377 +  eval "$as_CACHEVAR=yes"
15378 + else
15379 +  eval "$as_CACHEVAR=no"
15380 + fi
15381 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 +  CFLAGS=$ax_check_save_flags
15383 + fi
15384 + eval ac_res=\$$as_CACHEVAR
15385 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15386 + $as_echo "$ac_res" >&6; }
15387 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15388  
15389 <      iopoll_mechanism_kqueue=1
15389 > if ${CFLAGS+:} false; then :
15390  
15391 < cat >>confdefs.h <<_ACEOF
15392 < #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
15391 >  case " $CFLAGS " in #(
15392 >  *" $flag "*) :
15393 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15394 >  (: CFLAGS already contains $flag) 2>&5
15395 >  ac_status=$?
15396 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 >  test $ac_status = 0; } ;; #(
15398 >  *) :
15399 >
15400 >     as_fn_append CFLAGS " $flag"
15401 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15402 >  (: CFLAGS="$CFLAGS") 2>&5
15403 >  ac_status=$?
15404 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15405 >  test $ac_status = 0; }
15406 >     ;;
15407 > esac
15408 >
15409 > else
15410 >
15411 >  CFLAGS=$flag
15412 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15413 >  (: CFLAGS="$CFLAGS") 2>&5
15414 >  ac_status=$?
15415 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15416 >  test $ac_status = 0; }
15417 >
15418 > fi
15419 >
15420 > else
15421 >  :
15422 > fi
15423 >
15424 > done
15425 >
15426 >
15427 >
15428 >
15429 >
15430 > for flag in -Wmissing-field-initializers; do
15431 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15432 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15433 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15434 > if eval \${$as_CACHEVAR+:} false; then :
15435 >  $as_echo_n "(cached) " >&6
15436 > else
15437 >
15438 >  ax_check_save_flags=$CFLAGS
15439 >  CFLAGS="$CFLAGS  $flag"
15440 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 > /* end confdefs.h.  */
15442 >
15443 > int
15444 > main ()
15445 > {
15446 >
15447 >  ;
15448 >  return 0;
15449 > }
15450   _ACEOF
15451 + if ac_fn_c_try_compile "$LINENO"; then :
15452 +  eval "$as_CACHEVAR=yes"
15453 + else
15454 +  eval "$as_CACHEVAR=no"
15455 + fi
15456 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 +  CFLAGS=$ax_check_save_flags
15458 + fi
15459 + eval ac_res=\$$as_CACHEVAR
15460 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15461 + $as_echo "$ac_res" >&6; }
15462 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15463 +
15464 + if ${CFLAGS+:} false; then :
15465 +
15466 +  case " $CFLAGS " in #(
15467 +  *" $flag "*) :
15468 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15469 +  (: CFLAGS already contains $flag) 2>&5
15470 +  ac_status=$?
15471 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15472 +  test $ac_status = 0; } ;; #(
15473 +  *) :
15474 +
15475 +     as_fn_append CFLAGS " $flag"
15476 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15477 +  (: CFLAGS="$CFLAGS") 2>&5
15478 +  ac_status=$?
15479 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15480 +  test $ac_status = 0; }
15481 +     ;;
15482 + esac
15483 +
15484 + else
15485 +
15486 +  CFLAGS=$flag
15487 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15488 +  (: CFLAGS="$CFLAGS") 2>&5
15489 +  ac_status=$?
15490 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15491 +  test $ac_status = 0; }
15492 +
15493 + fi
15494  
15495 + else
15496 +  :
15497 + fi
15498 +
15499 + done
15500 +
15501 +
15502 +
15503 +
15504 +
15505 + for flag in -Wmissing-include-dirs; do
15506 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15507 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15508 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15509 + if eval \${$as_CACHEVAR+:} false; then :
15510 +  $as_echo_n "(cached) " >&6
15511 + else
15512 +
15513 +  ax_check_save_flags=$CFLAGS
15514 +  CFLAGS="$CFLAGS  $flag"
15515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516   /* end confdefs.h.  */
13987 – /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13988 –   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13989 – #define kevent innocuous_kevent
15517  
15518 < /* System header to define __stub macros and hopefully few prototypes,
15519 <    which can conflict with char kevent (); below.
15520 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13994 <    <limits.h> exists even on freestanding compilers.  */
15518 > int
15519 > main ()
15520 > {
15521  
15522 < #ifdef __STDC__
15523 < # include <limits.h>
15524 < #else
15525 < # include <assert.h>
15526 < #endif
15522 >  ;
15523 >  return 0;
15524 > }
15525 > _ACEOF
15526 > if ac_fn_c_try_compile "$LINENO"; then :
15527 >  eval "$as_CACHEVAR=yes"
15528 > else
15529 >  eval "$as_CACHEVAR=no"
15530 > fi
15531 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 >  CFLAGS=$ax_check_save_flags
15533 > fi
15534 > eval ac_res=\$$as_CACHEVAR
15535 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15536 > $as_echo "$ac_res" >&6; }
15537 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15538  
15539 < #undef kevent
15539 > if ${CFLAGS+:} false; then :
15540  
15541 < /* Override any GCC internal prototype to avoid an error.
15542 <   Use char because int might match the return type of a GCC
15543 <   builtin and then its argument prototype would still apply.  */
15544 < #ifdef __cplusplus
15545 < extern "C"
15546 < #endif
15547 < char kevent ();
15548 < /* The GNU C library defines this for functions which it implements
15549 <    to always fail with ENOSYS.  Some functions are actually named
15550 <    something starting with __ and the normal name is an alias.  */
15551 < #if defined __stub_kevent || defined __stub___kevent
15552 < choke me
15553 < #endif
15541 >  case " $CFLAGS " in #(
15542 >  *" $flag "*) :
15543 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15544 >  (: CFLAGS already contains $flag) 2>&5
15545 >  ac_status=$?
15546 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15547 >  test $ac_status = 0; } ;; #(
15548 >  *) :
15549 >
15550 >     as_fn_append CFLAGS " $flag"
15551 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15552 >  (: CFLAGS="$CFLAGS") 2>&5
15553 >  ac_status=$?
15554 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15555 >  test $ac_status = 0; }
15556 >     ;;
15557 > esac
15558 >
15559 > else
15560 >
15561 >  CFLAGS=$flag
15562 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15563 >  (: CFLAGS="$CFLAGS") 2>&5
15564 >  ac_status=$?
15565 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15566 >  test $ac_status = 0; }
15567 >
15568 > fi
15569 >
15570 > else
15571 >  :
15572 > fi
15573 >
15574 > done
15575 >
15576 >
15577 >
15578 >
15579 >
15580 > for flag in -Wmissing-parameter-type; do
15581 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15582 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15583 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15584 > if eval \${$as_CACHEVAR+:} false; then :
15585 >  $as_echo_n "(cached) " >&6
15586 > else
15587 >
15588 >  ax_check_save_flags=$CFLAGS
15589 >  CFLAGS="$CFLAGS  $flag"
15590 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 > /* end confdefs.h.  */
15592  
15593   int
15594   main ()
15595   {
15596 < return kevent ();
15596 >
15597    ;
15598    return 0;
15599   }
15600   _ACEOF
15601 < if ac_fn_c_try_link "$LINENO"; then :
15602 <  is_kqueue_mechanism_available="yes"
15601 > if ac_fn_c_try_compile "$LINENO"; then :
15602 >  eval "$as_CACHEVAR=yes"
15603   else
15604 <  is_kqueue_mechanism_available="no"
15604 >  eval "$as_CACHEVAR=no"
15605   fi
15606 < rm -f core conftest.err conftest.$ac_objext \
15607 <    conftest$ac_exeext conftest.$ac_ext
15608 <      iopoll_mechanism_epoll=2
15606 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 >  CFLAGS=$ax_check_save_flags
15608 > fi
15609 > eval ac_res=\$$as_CACHEVAR
15610 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15611 > $as_echo "$ac_res" >&6; }
15612 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15613  
15614 < cat >>confdefs.h <<_ACEOF
15615 < #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
15614 > if ${CFLAGS+:} false; then :
15615 >
15616 >  case " $CFLAGS " in #(
15617 >  *" $flag "*) :
15618 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15619 >  (: CFLAGS already contains $flag) 2>&5
15620 >  ac_status=$?
15621 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15622 >  test $ac_status = 0; } ;; #(
15623 >  *) :
15624 >
15625 >     as_fn_append CFLAGS " $flag"
15626 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15627 >  (: CFLAGS="$CFLAGS") 2>&5
15628 >  ac_status=$?
15629 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15630 >  test $ac_status = 0; }
15631 >     ;;
15632 > esac
15633 >
15634 > else
15635 >
15636 >  CFLAGS=$flag
15637 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15638 >  (: CFLAGS="$CFLAGS") 2>&5
15639 >  ac_status=$?
15640 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15641 >  test $ac_status = 0; }
15642 >
15643 > fi
15644 >
15645 > else
15646 >  :
15647 > fi
15648 >
15649 > done
15650 >
15651 >
15652 >
15653 >
15654 >
15655 > for flag in -Wmissing-prototypes; do
15656 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15657 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15658 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15659 > if eval \${$as_CACHEVAR+:} false; then :
15660 >  $as_echo_n "(cached) " >&6
15661 > else
15662 >
15663 >  ax_check_save_flags=$CFLAGS
15664 >  CFLAGS="$CFLAGS  $flag"
15665 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 > /* end confdefs.h.  */
15667 >
15668 > int
15669 > main ()
15670 > {
15671 >
15672 >  ;
15673 >  return 0;
15674 > }
15675   _ACEOF
15676 + if ac_fn_c_try_compile "$LINENO"; then :
15677 +  eval "$as_CACHEVAR=yes"
15678 + else
15679 +  eval "$as_CACHEVAR=no"
15680 + fi
15681 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 +  CFLAGS=$ax_check_save_flags
15683 + fi
15684 + eval ac_res=\$$as_CACHEVAR
15685 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15686 + $as_echo "$ac_res" >&6; }
15687 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15688 +
15689 + if ${CFLAGS+:} false; then :
15690 +
15691 +  case " $CFLAGS " in #(
15692 +  *" $flag "*) :
15693 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15694 +  (: CFLAGS already contains $flag) 2>&5
15695 +  ac_status=$?
15696 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15697 +  test $ac_status = 0; } ;; #(
15698 +  *) :
15699 +
15700 +     as_fn_append CFLAGS " $flag"
15701 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15702 +  (: CFLAGS="$CFLAGS") 2>&5
15703 +  ac_status=$?
15704 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15705 +  test $ac_status = 0; }
15706 +     ;;
15707 + esac
15708 +
15709 + else
15710 +
15711 +  CFLAGS=$flag
15712 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15713 +  (: CFLAGS="$CFLAGS") 2>&5
15714 +  ac_status=$?
15715 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15716 +  test $ac_status = 0; }
15717 +
15718 + fi
15719  
14039 –  if test "$cross_compiling" = yes; then :
14040 –  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14041 – $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14042 – as_fn_error $? "cannot run test program while cross compiling
14043 – See \`config.log' for more details" "$LINENO" 5; }
15720   else
15721 +  :
15722 + fi
15723 +
15724 + done
15725 +
15726 +
15727 +
15728 +
15729 +
15730 + for flag in -Wnested-externs; do
15731 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15732 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15733 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15734 + if eval \${$as_CACHEVAR+:} false; then :
15735 +  $as_echo_n "(cached) " >&6
15736 + else
15737 +
15738 +  ax_check_save_flags=$CFLAGS
15739 +  CFLAGS="$CFLAGS  $flag"
15740    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741   /* end confdefs.h.  */
15742  
15743 < #include <sys/epoll.h>
15744 < #include <sys/syscall.h>
15745 < #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
15746 < #if !defined(__NR_epoll_create)
15747 < #if defined(__ia64__)
15748 < #define __NR_epoll_create 1243
15749 < #elif defined(__x86_64__)
15750 < #define __NR_epoll_create 214
15751 < #elif defined(__sparc64__) || defined(__sparc__)
15752 < #define __NR_epoll_create 193
15753 < #elif defined(__s390__) || defined(__m68k__)
15754 < #define __NR_epoll_create 249
15755 < #elif defined(__ppc64__) || defined(__ppc__)
15756 < #define __NR_epoll_create 236
15757 < #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
15758 < #define __NR_epoll_create 224
15759 < #elif defined(__alpha__)
15760 < #define __NR_epoll_create 407
15761 < #elif defined(__sh64__)
15762 < #define __NR_epoll_create 282
15763 < #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
15764 < #define __NR_epoll_create 254
15765 < #else
15766 < #error No system call numbers defined for epoll family.
15767 < #endif
15768 < #endif
15769 < _syscall1(int, epoll_create, int, size)
15770 < #endif
15743 > int
15744 > main ()
15745 > {
15746 >
15747 >  ;
15748 >  return 0;
15749 > }
15750 > _ACEOF
15751 > if ac_fn_c_try_compile "$LINENO"; then :
15752 >  eval "$as_CACHEVAR=yes"
15753 > else
15754 >  eval "$as_CACHEVAR=no"
15755 > fi
15756 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 >  CFLAGS=$ax_check_save_flags
15758 > fi
15759 > eval ac_res=\$$as_CACHEVAR
15760 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15761 > $as_echo "$ac_res" >&6; }
15762 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15763 >
15764 > if ${CFLAGS+:} false; then :
15765 >
15766 >  case " $CFLAGS " in #(
15767 >  *" $flag "*) :
15768 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15769 >  (: CFLAGS already contains $flag) 2>&5
15770 >  ac_status=$?
15771 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15772 >  test $ac_status = 0; } ;; #(
15773 >  *) :
15774 >
15775 >     as_fn_append CFLAGS " $flag"
15776 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15777 >  (: CFLAGS="$CFLAGS") 2>&5
15778 >  ac_status=$?
15779 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15780 >  test $ac_status = 0; }
15781 >     ;;
15782 > esac
15783 >
15784 > else
15785 >
15786 >  CFLAGS=$flag
15787 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15788 >  (: CFLAGS="$CFLAGS") 2>&5
15789 >  ac_status=$?
15790 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15791 >  test $ac_status = 0; }
15792 >
15793 > fi
15794 >
15795 > else
15796 >  :
15797 > fi
15798 >
15799 > done
15800 >
15801 >
15802 >
15803 >
15804 >
15805 > for flag in -Wold-style-declaration; do
15806 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15807 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15808 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15809 > if eval \${$as_CACHEVAR+:} false; then :
15810 >  $as_echo_n "(cached) " >&6
15811 > else
15812 >
15813 >  ax_check_save_flags=$CFLAGS
15814 >  CFLAGS="$CFLAGS  $flag"
15815 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 > /* end confdefs.h.  */
15817  
15818   int
15819   main ()
15820   {
15821 < return epoll_create(256) == -1 ? 1 : 0
15821 >
15822    ;
15823    return 0;
15824   }
15825   _ACEOF
15826 < if ac_fn_c_try_run "$LINENO"; then :
15827 <  is_epoll_mechanism_available="yes"
15826 > if ac_fn_c_try_compile "$LINENO"; then :
15827 >  eval "$as_CACHEVAR=yes"
15828   else
15829 <  is_epoll_mechanism_available="no"
15829 >  eval "$as_CACHEVAR=no"
15830   fi
15831 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15832 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
15831 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 >  CFLAGS=$ax_check_save_flags
15833   fi
15834 + eval ac_res=\$$as_CACHEVAR
15835 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15836 + $as_echo "$ac_res" >&6; }
15837 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15838  
15839 <      iopoll_mechanism_devpoll=3
15839 > if ${CFLAGS+:} false; then :
15840  
15841 < cat >>confdefs.h <<_ACEOF
15842 < #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
15841 >  case " $CFLAGS " in #(
15842 >  *" $flag "*) :
15843 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15844 >  (: CFLAGS already contains $flag) 2>&5
15845 >  ac_status=$?
15846 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15847 >  test $ac_status = 0; } ;; #(
15848 >  *) :
15849 >
15850 >     as_fn_append CFLAGS " $flag"
15851 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15852 >  (: CFLAGS="$CFLAGS") 2>&5
15853 >  ac_status=$?
15854 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15855 >  test $ac_status = 0; }
15856 >     ;;
15857 > esac
15858 >
15859 > else
15860 >
15861 >  CFLAGS=$flag
15862 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15863 >  (: CFLAGS="$CFLAGS") 2>&5
15864 >  ac_status=$?
15865 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15866 >  test $ac_status = 0; }
15867 >
15868 > fi
15869 >
15870 > else
15871 >  :
15872 > fi
15873 >
15874 > done
15875 >
15876 >
15877 >
15878 >
15879 >
15880 > for flag in -Woverride-init; do
15881 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15882 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15883 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15884 > if eval \${$as_CACHEVAR+:} false; then :
15885 >  $as_echo_n "(cached) " >&6
15886 > else
15887 >
15888 >  ax_check_save_flags=$CFLAGS
15889 >  CFLAGS="$CFLAGS  $flag"
15890 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 > /* end confdefs.h.  */
15892 >
15893 > int
15894 > main ()
15895 > {
15896 >
15897 >  ;
15898 >  return 0;
15899 > }
15900   _ACEOF
15901 + if ac_fn_c_try_compile "$LINENO"; then :
15902 +  eval "$as_CACHEVAR=yes"
15903 + else
15904 +  eval "$as_CACHEVAR=no"
15905 + fi
15906 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 +  CFLAGS=$ax_check_save_flags
15908 + fi
15909 + eval ac_res=\$$as_CACHEVAR
15910 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15911 + $as_echo "$ac_res" >&6; }
15912 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15913 +
15914 + if ${CFLAGS+:} false; then :
15915 +
15916 +  case " $CFLAGS " in #(
15917 +  *" $flag "*) :
15918 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15919 +  (: CFLAGS already contains $flag) 2>&5
15920 +  ac_status=$?
15921 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15922 +  test $ac_status = 0; } ;; #(
15923 +  *) :
15924  
15925 +     as_fn_append CFLAGS " $flag"
15926 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15927 +  (: CFLAGS="$CFLAGS") 2>&5
15928 +  ac_status=$?
15929 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15930 +  test $ac_status = 0; }
15931 +     ;;
15932 + esac
15933 +
15934 + else
15935 +
15936 +  CFLAGS=$flag
15937 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15938 +  (: CFLAGS="$CFLAGS") 2>&5
15939 +  ac_status=$?
15940 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15941 +  test $ac_status = 0; }
15942 +
15943 + fi
15944 +
15945 + else
15946 +  :
15947 + fi
15948 +
15949 + done
15950 +
15951 +
15952 +
15953 +
15954 +
15955 + for flag in -Wpointer-arith; do
15956 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15957 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15958 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15959 + if eval \${$as_CACHEVAR+:} false; then :
15960 +  $as_echo_n "(cached) " >&6
15961 + else
15962 +
15963 +  ax_check_save_flags=$CFLAGS
15964 +  CFLAGS="$CFLAGS  $flag"
15965    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966   /* end confdefs.h.  */
15967 < #include <devpoll.h>
15967 >
15968   int
15969   main ()
15970   {
# Line 14109 | Line 15974 | main ()
15974   }
15975   _ACEOF
15976   if ac_fn_c_try_compile "$LINENO"; then :
15977 <  is_devpoll_mechanism_available="yes"
15977 >  eval "$as_CACHEVAR=yes"
15978   else
15979 <  is_devpoll_mechanism_available="no"
15979 >  eval "$as_CACHEVAR=no"
15980   fi
15981   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
15982 >  CFLAGS=$ax_check_save_flags
15983 > fi
15984 > eval ac_res=\$$as_CACHEVAR
15985 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15986 > $as_echo "$ac_res" >&6; }
15987 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15988  
15989 < $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
15989 > if ${CFLAGS+:} false; then :
15990  
15991 <  fi
15991 >  case " $CFLAGS " in #(
15992 >  *" $flag "*) :
15993 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15994 >  (: CFLAGS already contains $flag) 2>&5
15995 >  ac_status=$?
15996 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997 >  test $ac_status = 0; } ;; #(
15998 >  *) :
15999 >
16000 >     as_fn_append CFLAGS " $flag"
16001 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16002 >  (: CFLAGS="$CFLAGS") 2>&5
16003 >  ac_status=$?
16004 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 >  test $ac_status = 0; }
16006 >     ;;
16007 > esac
16008 >
16009 > else
16010 >
16011 >  CFLAGS=$flag
16012 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16013 >  (: CFLAGS="$CFLAGS") 2>&5
16014 >  ac_status=$?
16015 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16016 >  test $ac_status = 0; }
16017 >
16018 > fi
16019 >
16020 > else
16021 >  :
16022 > fi
16023 >
16024 > done
16025 >
16026 >
16027 >
16028 >
16029 >
16030 > for flag in -Wredundant-decls; do
16031 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16032 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16033 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16034 > if eval \${$as_CACHEVAR+:} false; then :
16035 >  $as_echo_n "(cached) " >&6
16036 > else
16037 >
16038 >  ax_check_save_flags=$CFLAGS
16039 >  CFLAGS="$CFLAGS  $flag"
16040    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041   /* end confdefs.h.  */
16042 < #include <sys/devpoll.h>
16042 >
16043   int
16044   main ()
16045   {
# Line 14131 | Line 16049 | main ()
16049   }
16050   _ACEOF
16051   if ac_fn_c_try_compile "$LINENO"; then :
16052 <  is_devpoll_mechanism_available="yes"
16052 >  eval "$as_CACHEVAR=yes"
16053   else
16054 <  is_devpoll_mechanism_available="no"
16054 >  eval "$as_CACHEVAR=no"
16055   fi
16056   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16057 >  CFLAGS=$ax_check_save_flags
16058 > fi
16059 > eval ac_res=\$$as_CACHEVAR
16060 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16061 > $as_echo "$ac_res" >&6; }
16062 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16063  
16064 < $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
16064 > if ${CFLAGS+:} false; then :
16065  
16066 <  fi
16067 <      iopoll_mechanism_rtsigio=4
16066 >  case " $CFLAGS " in #(
16067 >  *" $flag "*) :
16068 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16069 >  (: CFLAGS already contains $flag) 2>&5
16070 >  ac_status=$?
16071 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16072 >  test $ac_status = 0; } ;; #(
16073 >  *) :
16074  
16075 < cat >>confdefs.h <<_ACEOF
16076 < #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
16075 >     as_fn_append CFLAGS " $flag"
16076 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16077 >  (: CFLAGS="$CFLAGS") 2>&5
16078 >  ac_status=$?
16079 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16080 >  test $ac_status = 0; }
16081 >     ;;
16082 > esac
16083 >
16084 > else
16085 >
16086 >  CFLAGS=$flag
16087 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16088 >  (: CFLAGS="$CFLAGS") 2>&5
16089 >  ac_status=$?
16090 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16091 >  test $ac_status = 0; }
16092 >
16093 > fi
16094 >
16095 > else
16096 >  :
16097 > fi
16098 >
16099 > done
16100 >
16101 >
16102 >
16103 >
16104 >
16105 > for flag in -Wshadow; do
16106 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16107 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16108 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16109 > if eval \${$as_CACHEVAR+:} false; then :
16110 >  $as_echo_n "(cached) " >&6
16111 > else
16112 >
16113 >  ax_check_save_flags=$CFLAGS
16114 >  CFLAGS="$CFLAGS  $flag"
16115 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 > /* end confdefs.h.  */
16117 >
16118 > int
16119 > main ()
16120 > {
16121 >
16122 >  ;
16123 >  return 0;
16124 > }
16125   _ACEOF
16126 + if ac_fn_c_try_compile "$LINENO"; then :
16127 +  eval "$as_CACHEVAR=yes"
16128 + else
16129 +  eval "$as_CACHEVAR=no"
16130 + fi
16131 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132 +  CFLAGS=$ax_check_save_flags
16133 + fi
16134 + eval ac_res=\$$as_CACHEVAR
16135 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16136 + $as_echo "$ac_res" >&6; }
16137 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16138 +
16139 + if ${CFLAGS+:} false; then :
16140 +
16141 +  case " $CFLAGS " in #(
16142 +  *" $flag "*) :
16143 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16144 +  (: CFLAGS already contains $flag) 2>&5
16145 +  ac_status=$?
16146 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147 +  test $ac_status = 0; } ;; #(
16148 +  *) :
16149 +
16150 +     as_fn_append CFLAGS " $flag"
16151 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16152 +  (: CFLAGS="$CFLAGS") 2>&5
16153 +  ac_status=$?
16154 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16155 +  test $ac_status = 0; }
16156 +     ;;
16157 + esac
16158  
14150 –  if test "$cross_compiling" = yes; then :
14151 –  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14152 – $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14153 – as_fn_error $? "cannot run test program while cross compiling
14154 – See \`config.log' for more details" "$LINENO" 5; }
16159   else
16160 +
16161 +  CFLAGS=$flag
16162 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16163 +  (: CFLAGS="$CFLAGS") 2>&5
16164 +  ac_status=$?
16165 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16166 +  test $ac_status = 0; }
16167 +
16168 + fi
16169 +
16170 + else
16171 +  :
16172 + fi
16173 +
16174 + done
16175 +
16176 +
16177 +
16178 +
16179 +
16180 + for flag in -Wsign-compare; do
16181 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16182 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16183 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16184 + if eval \${$as_CACHEVAR+:} false; then :
16185 +  $as_echo_n "(cached) " >&6
16186 + else
16187 +
16188 +  ax_check_save_flags=$CFLAGS
16189 +  CFLAGS="$CFLAGS  $flag"
16190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191   /* end confdefs.h.  */
16192  
16193 < #define _GNU_SOURCE
16194 < #include <fcntl.h>
16195 < static unsigned int have_f_setsig = 0;
16193 > int
16194 > main ()
16195 > {
16196 >
16197 >  ;
16198 >  return 0;
16199 > }
16200 > _ACEOF
16201 > if ac_fn_c_try_compile "$LINENO"; then :
16202 >  eval "$as_CACHEVAR=yes"
16203 > else
16204 >  eval "$as_CACHEVAR=no"
16205 > fi
16206 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 >  CFLAGS=$ax_check_save_flags
16208 > fi
16209 > eval ac_res=\$$as_CACHEVAR
16210 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16211 > $as_echo "$ac_res" >&6; }
16212 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16213 >
16214 > if ${CFLAGS+:} false; then :
16215 >
16216 >  case " $CFLAGS " in #(
16217 >  *" $flag "*) :
16218 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16219 >  (: CFLAGS already contains $flag) 2>&5
16220 >  ac_status=$?
16221 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16222 >  test $ac_status = 0; } ;; #(
16223 >  *) :
16224 >
16225 >     as_fn_append CFLAGS " $flag"
16226 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16227 >  (: CFLAGS="$CFLAGS") 2>&5
16228 >  ac_status=$?
16229 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16230 >  test $ac_status = 0; }
16231 >     ;;
16232 > esac
16233 >
16234 > else
16235 >
16236 >  CFLAGS=$flag
16237 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16238 >  (: CFLAGS="$CFLAGS") 2>&5
16239 >  ac_status=$?
16240 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16241 >  test $ac_status = 0; }
16242 >
16243 > fi
16244 >
16245 > else
16246 >  :
16247 > fi
16248 >
16249 > done
16250 >
16251 >
16252 >
16253 >
16254 >
16255 > for flag in -Wtype-limits; do
16256 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16257 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16258 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16259 > if eval \${$as_CACHEVAR+:} false; then :
16260 >  $as_echo_n "(cached) " >&6
16261 > else
16262 >
16263 >  ax_check_save_flags=$CFLAGS
16264 >  CFLAGS="$CFLAGS  $flag"
16265 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 > /* end confdefs.h.  */
16267  
16268   int
16269   main ()
16270   {
16271  
16272 < #ifdef F_SETSIG
16273 <  have_f_setsig = 1;
16274 < #endif
16275 <  return have_f_setsig == 0;
16272 >  ;
16273 >  return 0;
16274 > }
16275 > _ACEOF
16276 > if ac_fn_c_try_compile "$LINENO"; then :
16277 >  eval "$as_CACHEVAR=yes"
16278 > else
16279 >  eval "$as_CACHEVAR=no"
16280 > fi
16281 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16282 >  CFLAGS=$ax_check_save_flags
16283 > fi
16284 > eval ac_res=\$$as_CACHEVAR
16285 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16286 > $as_echo "$ac_res" >&6; }
16287 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16288 >
16289 > if ${CFLAGS+:} false; then :
16290 >
16291 >  case " $CFLAGS " in #(
16292 >  *" $flag "*) :
16293 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16294 >  (: CFLAGS already contains $flag) 2>&5
16295 >  ac_status=$?
16296 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 >  test $ac_status = 0; } ;; #(
16298 >  *) :
16299 >
16300 >     as_fn_append CFLAGS " $flag"
16301 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16302 >  (: CFLAGS="$CFLAGS") 2>&5
16303 >  ac_status=$?
16304 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16305 >  test $ac_status = 0; }
16306 >     ;;
16307 > esac
16308 >
16309 > else
16310 >
16311 >  CFLAGS=$flag
16312 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16313 >  (: CFLAGS="$CFLAGS") 2>&5
16314 >  ac_status=$?
16315 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16316 >  test $ac_status = 0; }
16317 >
16318 > fi
16319 >
16320 > else
16321 >  :
16322 > fi
16323 >
16324 > done
16325 >
16326 >
16327 >
16328 >
16329 >
16330 > for flag in -Wundef; do
16331 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16332 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16333 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16334 > if eval \${$as_CACHEVAR+:} false; then :
16335 >  $as_echo_n "(cached) " >&6
16336 > else
16337 >
16338 >  ax_check_save_flags=$CFLAGS
16339 >  CFLAGS="$CFLAGS  $flag"
16340 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16341 > /* end confdefs.h.  */
16342 >
16343 > int
16344 > main ()
16345 > {
16346  
16347    ;
16348    return 0;
16349   }
16350   _ACEOF
16351 < if ac_fn_c_try_run "$LINENO"; then :
16352 <  is_rtsigio_mechanism_available="yes"
16351 > if ac_fn_c_try_compile "$LINENO"; then :
16352 >  eval "$as_CACHEVAR=yes"
16353   else
16354 <  is_rtsigio_mechanism_available="no"
16354 >  eval "$as_CACHEVAR=no"
16355   fi
16356 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16357 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16356 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 >  CFLAGS=$ax_check_save_flags
16358   fi
16359 + eval ac_res=\$$as_CACHEVAR
16360 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16361 + $as_echo "$ac_res" >&6; }
16362 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16363  
16364 <      iopoll_mechanism_poll=5
16364 > if ${CFLAGS+:} false; then :
16365  
16366 < cat >>confdefs.h <<_ACEOF
16367 < #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
16366 >  case " $CFLAGS " in #(
16367 >  *" $flag "*) :
16368 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16369 >  (: CFLAGS already contains $flag) 2>&5
16370 >  ac_status=$?
16371 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16372 >  test $ac_status = 0; } ;; #(
16373 >  *) :
16374 >
16375 >     as_fn_append CFLAGS " $flag"
16376 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16377 >  (: CFLAGS="$CFLAGS") 2>&5
16378 >  ac_status=$?
16379 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16380 >  test $ac_status = 0; }
16381 >     ;;
16382 > esac
16383 >
16384 > else
16385 >
16386 >  CFLAGS=$flag
16387 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16388 >  (: CFLAGS="$CFLAGS") 2>&5
16389 >  ac_status=$?
16390 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16391 >  test $ac_status = 0; }
16392 >
16393 > fi
16394 >
16395 > else
16396 >  :
16397 > fi
16398 >
16399 > done
16400 >
16401 >
16402 >
16403 >
16404 >
16405 > for flag in -Wuninitialized; do
16406 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16407 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16408 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16409 > if eval \${$as_CACHEVAR+:} false; then :
16410 >  $as_echo_n "(cached) " >&6
16411 > else
16412 >
16413 >  ax_check_save_flags=$CFLAGS
16414 >  CFLAGS="$CFLAGS  $flag"
16415 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 > /* end confdefs.h.  */
16417 >
16418 > int
16419 > main ()
16420 > {
16421 >
16422 >  ;
16423 >  return 0;
16424 > }
16425   _ACEOF
16426 + if ac_fn_c_try_compile "$LINENO"; then :
16427 +  eval "$as_CACHEVAR=yes"
16428 + else
16429 +  eval "$as_CACHEVAR=no"
16430 + fi
16431 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 +  CFLAGS=$ax_check_save_flags
16433 + fi
16434 + eval ac_res=\$$as_CACHEVAR
16435 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16436 + $as_echo "$ac_res" >&6; }
16437 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16438 +
16439 + if ${CFLAGS+:} false; then :
16440 +
16441 +  case " $CFLAGS " in #(
16442 +  *" $flag "*) :
16443 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16444 +  (: CFLAGS already contains $flag) 2>&5
16445 +  ac_status=$?
16446 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16447 +  test $ac_status = 0; } ;; #(
16448 +  *) :
16449  
16450 +     as_fn_append CFLAGS " $flag"
16451 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16452 +  (: CFLAGS="$CFLAGS") 2>&5
16453 +  ac_status=$?
16454 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16455 +  test $ac_status = 0; }
16456 +     ;;
16457 + esac
16458 +
16459 + else
16460 +
16461 +  CFLAGS=$flag
16462 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16463 +  (: CFLAGS="$CFLAGS") 2>&5
16464 +  ac_status=$?
16465 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16466 +  test $ac_status = 0; }
16467 +
16468 + fi
16469 +
16470 + else
16471 +  :
16472 + fi
16473 +
16474 + done
16475 +
16476 +
16477 +
16478 +
16479 +
16480 + for flag in -Wwrite-strings; do
16481 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16482 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16483 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16484 + if eval \${$as_CACHEVAR+:} false; then :
16485 +  $as_echo_n "(cached) " >&6
16486 + else
16487 +
16488 +  ax_check_save_flags=$CFLAGS
16489 +  CFLAGS="$CFLAGS  $flag"
16490    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491   /* end confdefs.h.  */
14193 – /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14194 –   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14195 – #define poll innocuous_poll
16492  
16493 < /* System header to define __stub macros and hopefully few prototypes,
16494 <    which can conflict with char poll (); below.
16495 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14200 <    <limits.h> exists even on freestanding compilers.  */
16493 > int
16494 > main ()
16495 > {
16496  
16497 < #ifdef __STDC__
16498 < # include <limits.h>
16499 < #else
16500 < # include <assert.h>
16501 < #endif
16497 >  ;
16498 >  return 0;
16499 > }
16500 > _ACEOF
16501 > if ac_fn_c_try_compile "$LINENO"; then :
16502 >  eval "$as_CACHEVAR=yes"
16503 > else
16504 >  eval "$as_CACHEVAR=no"
16505 > fi
16506 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 >  CFLAGS=$ax_check_save_flags
16508 > fi
16509 > eval ac_res=\$$as_CACHEVAR
16510 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16511 > $as_echo "$ac_res" >&6; }
16512 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16513  
16514 < #undef poll
16514 > if ${CFLAGS+:} false; then :
16515 >
16516 >  case " $CFLAGS " in #(
16517 >  *" $flag "*) :
16518 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16519 >  (: CFLAGS already contains $flag) 2>&5
16520 >  ac_status=$?
16521 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16522 >  test $ac_status = 0; } ;; #(
16523 >  *) :
16524 >
16525 >     as_fn_append CFLAGS " $flag"
16526 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16527 >  (: CFLAGS="$CFLAGS") 2>&5
16528 >  ac_status=$?
16529 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530 >  test $ac_status = 0; }
16531 >     ;;
16532 > esac
16533 >
16534 > else
16535 >
16536 >  CFLAGS=$flag
16537 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16538 >  (: CFLAGS="$CFLAGS") 2>&5
16539 >  ac_status=$?
16540 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16541 >  test $ac_status = 0; }
16542 >
16543 > fi
16544 >
16545 > else
16546 >  :
16547 > fi
16548 >
16549 > done
16550 >
16551 >
16552 > fi
16553 >
16554 >
16555 >  # Check whether --enable-efence was given.
16556 > if test "${enable_efence+set}" = set; then :
16557 >  enableval=$enable_efence; efence="$enableval"
16558 > else
16559 >  efence="no"
16560 > fi
16561 >
16562 >
16563 >  if test "$efence" = "yes"; then :
16564 >
16565 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16566 > $as_echo_n "checking for library containing EF_Print... " >&6; }
16567 > if ${ac_cv_search_EF_Print+:} false; then :
16568 >  $as_echo_n "(cached) " >&6
16569 > else
16570 >  ac_func_search_save_LIBS=$LIBS
16571 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 > /* end confdefs.h.  */
16573  
16574   /* Override any GCC internal prototype to avoid an error.
16575     Use char because int might match the return type of a GCC
# Line 14213 | Line 16577 | _ACEOF
16577   #ifdef __cplusplus
16578   extern "C"
16579   #endif
16580 < char poll ();
14217 < /* The GNU C library defines this for functions which it implements
14218 <    to always fail with ENOSYS.  Some functions are actually named
14219 <    something starting with __ and the normal name is an alias.  */
14220 < #if defined __stub_poll || defined __stub___poll
14221 < choke me
14222 < #endif
14223 <
16580 > char EF_Print ();
16581   int
16582   main ()
16583   {
16584 < return poll ();
16584 > return EF_Print ();
16585    ;
16586    return 0;
16587   }
16588   _ACEOF
16589 < if ac_fn_c_try_link "$LINENO"; then :
16590 <  is_poll_mechanism_available="yes"
16591 < else
16592 <  is_poll_mechanism_available="no"
16589 > for ac_lib in '' efence; do
16590 >  if test -z "$ac_lib"; then
16591 >    ac_res="none required"
16592 >  else
16593 >    ac_res=-l$ac_lib
16594 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16595 >  fi
16596 >  if ac_fn_c_try_link "$LINENO"; then :
16597 >  ac_cv_search_EF_Print=$ac_res
16598   fi
16599   rm -f core conftest.err conftest.$ac_objext \
16600 <    conftest$ac_exeext conftest.$ac_ext
16601 <      iopoll_mechanism_select=6
16600 >    conftest$ac_exeext
16601 >  if ${ac_cv_search_EF_Print+:} false; then :
16602 >  break
16603 > fi
16604 > done
16605 > if ${ac_cv_search_EF_Print+:} false; then :
16606  
16607 < cat >>confdefs.h <<_ACEOF
16608 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
16609 < _ACEOF
16607 > else
16608 >  ac_cv_search_EF_Print=no
16609 > fi
16610 > rm conftest.$ac_ext
16611 > LIBS=$ac_func_search_save_LIBS
16612 > fi
16613 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16614 > $as_echo "$ac_cv_search_EF_Print" >&6; }
16615 > ac_res=$ac_cv_search_EF_Print
16616 > if test "$ac_res" != no; then :
16617 >  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16618 >
16619 > else
16620 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16621 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16622 > as_fn_error $? "Electric Fence 'efence' library not found
16623 > See \`config.log' for more details" "$LINENO" 5; }
16624 > fi
16625 >
16626 >
16627 > fi
16628 >
16629 >
16630 >  # Check whether --enable-mempool was given.
16631 > if test "${enable_mempool+set}" = set; then :
16632 >  enableval=$enable_mempool; mempool=$enableval
16633 > else
16634 >  mempool="yes"
16635 > fi
16636 >
16637 >
16638 >  if test "$mempool" = "no"; then :
16639 >
16640 >
16641 > $as_echo "#define MEMPOOL_DISABLED 1" >>confdefs.h
16642 >
16643 >
16644 > fi
16645 >
16646 >
16647 > # Check whether --enable-openssl was given.
16648 > if test "${enable_openssl+set}" = set; then :
16649 >  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16650 > else
16651 >   cf_enable_openssl="auto"
16652 > fi
16653 >
16654 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16655 > $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16656 > if test "$cf_enable_openssl" != "no"; then
16657 >  cf_openssl_basedir=""
16658 >  if test "$cf_enable_openssl" != "auto" &&
16659 >     test "$cf_enable_openssl" != "yes"; then
16660 >          cf_openssl_basedir="${cf_enable_openssl}"
16661 >  else
16662 >        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16663 >                /opt /opt/openssl /usr/local/openssl; do
16664 >      if test -f "${dirs}/include/openssl/opensslv.h"; then
16665 >        cf_openssl_basedir="${dirs}"
16666 >        break
16667 >      fi
16668 >    done
16669 >    unset dirs
16670 >  fi
16671  
16672 +    if test ! -z "$cf_openssl_basedir"; then
16673 +    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16674 +      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16675 +      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16676 +    else
16677 +                  cf_openssl_basedir=""
16678 +    fi
16679 +  else
16680 +                            if test -f "/usr/include/openssl/opensslv.h"; then
16681 +      cf_openssl_basedir="/usr"
16682 +    fi
16683 +  fi
16684 +
16685 +      if test ! -z "$cf_openssl_basedir"; then
16686 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16687 + $as_echo "$cf_openssl_basedir" >&6; }
16688 +    cf_enable_openssl="yes"
16689 +  else
16690 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16691 + $as_echo "not found. Please check your path." >&6; }
16692 +    cf_enable_openssl="no"
16693 +  fi
16694 +  unset cf_openssl_basedir
16695 + else
16696 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16697 + $as_echo "disabled" >&6; }
16698 + fi
16699 +
16700 + if test "$cf_enable_openssl" != "no"; then :
16701 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5
16702 + $as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; }
16703 +  if test "$cross_compiling" = yes; then :
16704 +  cf_openssl_version_ok=no
16705 + else
16706    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707   /* end confdefs.h.  */
14247 – /* Define select to an innocuous variant, in case <limits.h> declares select.
14248 –   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14249 – #define select innocuous_select
16708  
14251 – /* System header to define __stub macros and hopefully few prototypes,
14252 –    which can conflict with char select (); below.
14253 –    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14254 –    <limits.h> exists even on freestanding compilers.  */
16709  
16710 < #ifdef __STDC__
16711 < # include <limits.h>
16712 < #else
16713 < # include <assert.h>
16714 < #endif
16710 >    #include <openssl/opensslv.h>
16711 >    #include <stdlib.h>
16712 > int
16713 > main ()
16714 > {
16715 > exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL));
16716 >  ;
16717 >  return 0;
16718 > }
16719 > _ACEOF
16720 > if ac_fn_c_try_run "$LINENO"; then :
16721 >  cf_openssl_version_ok=yes
16722 > else
16723 >  cf_openssl_version_ok=no
16724 > fi
16725 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16726 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16727 > fi
16728 >
16729 >
16730 >  if test "$cf_openssl_version_ok" = "yes"; then :
16731 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16732 > $as_echo "found" >&6; }
16733  
16734 < #undef select
16734 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16735 > $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16736 > if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16737 >  $as_echo_n "(cached) " >&6
16738 > else
16739 >  ac_check_lib_save_LIBS=$LIBS
16740 > LIBS="-lcrypto  $LIBS"
16741 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 > /* end confdefs.h.  */
16743  
16744   /* Override any GCC internal prototype to avoid an error.
16745     Use char because int might match the return type of a GCC
# Line 14267 | Line 16747 | _ACEOF
16747   #ifdef __cplusplus
16748   extern "C"
16749   #endif
16750 < char select ();
14271 < /* The GNU C library defines this for functions which it implements
14272 <    to always fail with ENOSYS.  Some functions are actually named
14273 <    something starting with __ and the normal name is an alias.  */
14274 < #if defined __stub_select || defined __stub___select
14275 < choke me
14276 < #endif
14277 <
16750 > char RSA_free ();
16751   int
16752   main ()
16753   {
16754 < return select ();
16754 > return RSA_free ();
16755    ;
16756    return 0;
16757   }
16758   _ACEOF
16759   if ac_fn_c_try_link "$LINENO"; then :
16760 <  is_select_mechanism_available="yes"
16760 >  ac_cv_lib_crypto_RSA_free=yes
16761   else
16762 <  is_select_mechanism_available="no"
16762 >  ac_cv_lib_crypto_RSA_free=no
16763   fi
16764   rm -f core conftest.err conftest.$ac_objext \
16765      conftest$ac_exeext conftest.$ac_ext
16766 <      optimal_iopoll_mechanism="none"
16767 <  for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
16768 <    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
16769 <    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
16770 <      optimal_iopoll_mechanism="$mechanism"
16771 <      break
16772 <    fi
14300 <  done
14301 <      if test "$desired_iopoll_mechanism" = "none" ; then
14302 <    if test "$optimal_iopoll_mechanism" = "none" ; then
14303 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14304 < $as_echo "none" >&6; }
14305 <      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14306 <    else
14307 <      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14308 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14309 < $as_echo "$selected_iopoll_mechanism" >&6; }
14310 <    fi
14311 <  else
14312 <    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14313 <    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14314 <      selected_iopoll_mechanism=$desired_iopoll_mechanism
14315 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14316 < $as_echo "$selected_iopoll_mechanism" >&6; }
14317 <    else
14318 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14319 < $as_echo "none" >&6; }
14320 <      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14321 <    fi
14322 <  fi
14323 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14324 <
14325 < cat >>confdefs.h <<_ACEOF
14326 < #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
16766 > LIBS=$ac_check_lib_save_LIBS
16767 > fi
16768 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16769 > $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16770 > if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16771 >  cat >>confdefs.h <<_ACEOF
16772 > #define HAVE_LIBCRYPTO 1
16773   _ACEOF
16774  
16775 +  LIBS="-lcrypto $LIBS"
16776  
16777 + fi
16778  
16779 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16780 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16781 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16782 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16783 +  $as_echo_n "(cached) " >&6
16784 + else
16785 +  ac_check_lib_save_LIBS=$LIBS
16786 + LIBS="-lssl  $LIBS"
16787 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 + /* end confdefs.h.  */
16789  
16790 < # Check whether --with-nicklen was given.
16791 < if test "${with_nicklen+set}" = set; then :
16792 <  withval=$with_nicklen; nicklen="$withval"
16790 > /* Override any GCC internal prototype to avoid an error.
16791 >   Use char because int might match the return type of a GCC
16792 >   builtin and then its argument prototype would still apply.  */
16793 > #ifdef __cplusplus
16794 > extern "C"
16795 > #endif
16796 > char SSL_connect ();
16797 > int
16798 > main ()
16799 > {
16800 > return SSL_connect ();
16801 >  ;
16802 >  return 0;
16803 > }
16804 > _ACEOF
16805 > if ac_fn_c_try_link "$LINENO"; then :
16806 >  ac_cv_lib_ssl_SSL_connect=yes
16807   else
16808 <  nicklen="9"
16808 >  ac_cv_lib_ssl_SSL_connect=no
16809   fi
16810 + rm -f core conftest.err conftest.$ac_objext \
16811 +    conftest$ac_exeext conftest.$ac_ext
16812 + LIBS=$ac_check_lib_save_LIBS
16813 + fi
16814 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16815 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16816 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16817 +  cat >>confdefs.h <<_ACEOF
16818 + #define HAVE_LIBSSL 1
16819 + _ACEOF
16820  
16821 +  LIBS="-lssl $LIBS"
16822  
16823 < cat >>confdefs.h <<_ACEOF
14341 < #define NICKLEN ($nicklen)
14342 < _ACEOF
16823 > fi
16824  
16825 + fi
16826  
16827 + else
16828 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16829 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16830 +    cf_enable_openssl="no"
16831 + fi
16832 + fi
16833  
16834  
16835 < # Check whether --with-topiclen was given.
16836 < if test "${with_topiclen+set}" = set; then :
16837 <  withval=$with_topiclen; topiclen="$withval"
16835 > # Check whether --enable-gnutls was given.
16836 > if test "${enable_gnutls+set}" = set; then :
16837 >  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16838   else
16839 <  topiclen="160"
16839 >   cf_enable_gnutls="auto"
16840   fi
16841  
16842  
16843 < cat >>confdefs.h <<_ACEOF
16844 < #define TOPICLEN ($topiclen)
16845 < _ACEOF
16843 > if test "$cf_enable_openssl" != "auto" &&
16844 >   test "$cf_enable_openssl" != "yes"; then
16845 >  if test "$cf_enable_gnutls" != "no"; then
16846 >
16847 >    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16848 > if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16849 >
16850 >      if test "$cross_compiling" = yes; then :
16851 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16852 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16853 > as_fn_error $? "cannot run test program while cross compiling
16854 > See \`config.log' for more details" "$LINENO" 5; }
16855 > else
16856 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 > /* end confdefs.h.  */
16858  
16859  
16860 +          #include <gnutls/gnutls.h>
16861 +          #include <stdlib.h>
16862 + int
16863 + main ()
16864 + {
16865  
16866 <  # Check whether --enable-halfops was given.
16867 < if test "${enable_halfops+set}" = set; then :
16868 <  enableval=$enable_halfops; halfops="$enableval"
16866 >          exit(!(GNUTLS_VERSION_NUMBER >= 0x030308));
16867 >  ;
16868 >  return 0;
16869 > }
16870 > _ACEOF
16871 > if ac_fn_c_try_run "$LINENO"; then :
16872 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16873 > $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16874 > if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16875 >  $as_echo_n "(cached) " >&6
16876   else
16877 <  halfops="no"
16878 < fi
16877 >  ac_check_lib_save_LIBS=$LIBS
16878 > LIBS="-lgnutls  $LIBS"
16879 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 > /* end confdefs.h.  */
16881  
16882 <  if test "$halfops" = "yes" ; then
16882 > /* Override any GCC internal prototype to avoid an error.
16883 >   Use char because int might match the return type of a GCC
16884 >   builtin and then its argument prototype would still apply.  */
16885 > #ifdef __cplusplus
16886 > extern "C"
16887 > #endif
16888 > char gnutls_init ();
16889 > int
16890 > main ()
16891 > {
16892 > return gnutls_init ();
16893 >  ;
16894 >  return 0;
16895 > }
16896 > _ACEOF
16897 > if ac_fn_c_try_link "$LINENO"; then :
16898 >  ac_cv_lib_gnutls_gnutls_init=yes
16899 > else
16900 >  ac_cv_lib_gnutls_gnutls_init=no
16901 > fi
16902 > rm -f core conftest.err conftest.$ac_objext \
16903 >    conftest$ac_exeext conftest.$ac_ext
16904 > LIBS=$ac_check_lib_save_LIBS
16905 > fi
16906 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16907 > $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16908 > if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16909 >  cat >>confdefs.h <<_ACEOF
16910 > #define HAVE_LIBGNUTLS 1
16911 > _ACEOF
16912  
16913 < $as_echo "#define HALFOPS 1" >>confdefs.h
16913 >  LIBS="-lgnutls $LIBS"
16914  
16915 <  fi
16915 > fi
16916  
16917 + fi
16918 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16919 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16920 + fi
16921  
14375 –  # Check whether --enable-debugging was given.
14376 – if test "${enable_debugging+set}" = set; then :
14377 –  enableval=$enable_debugging; debugging="$enableval"
14378 – else
14379 –  debugging="no"
16922   fi
16923  
14382 –  if test "$debugging" = "yes" ; then
14383 –    CFLAGS="-Wall -g -O0"
14384 –  fi
16924  
16925  
16926 <  # Check whether --enable-warnings was given.
16927 < if test "${enable_warnings+set}" = set; then :
16928 <  enableval=$enable_warnings; warnings="$enableval"
16926 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.3.8 and above" >&5
16927 > $as_echo_n "checking for GnuTLS 3.3.8 and above... " >&6; }
16928 >    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16929 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16930 > $as_echo "found" >&6; }
16931   else
16932 <  warnings="no"
16932 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16933 > $as_echo "no - GnuTLS support disabled" >&6; }
16934   fi
16935  
14394 –  if test "$warnings" = "yes" ; then
14395 –    CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
16936    fi
16937 + fi
16938  
16939  
16940  
# Line 14482 | Line 17023 | _ACEOF
17023    test "$exec_prefix_NONE" && exec_prefix=NONE
17024  
17025  
17026 < 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"
17026 > ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile modules/extra/Makefile doc/Makefile help/Makefile tools/Makefile"
17027  
17028  
17029   cat >confcache <<\_ACEOF
# Line 14648 | Line 17189 | LT_CONFIG_H=config.h
17189  
17190  
17191  
14651 – if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14652 –  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14653 – Usually this means the macro was only invoked conditionally." "$LINENO" 5
14654 – fi
17192  
17193   : "${CONFIG_STATUS=./config.status}"
17194   ac_write_fail=0
# Line 15049 | Line 17586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
17586   # report actual input values of CONFIG_FILES etc. instead of their
17587   # values after options handling.
17588   ac_log="
17589 < This file was extended by ircd-hybrid $as_me 8.0.0, which was
17589 > This file was extended by ircd-hybrid $as_me TRUNK, which was
17590   generated by GNU Autoconf 2.69.  Invocation command line was
17591  
17592    CONFIG_FILES    = $CONFIG_FILES
# Line 15115 | Line 17652 | _ACEOF
17652   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17653   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17654   ac_cs_version="\\
17655 < ircd-hybrid config.status 8.0.0
17655 > ircd-hybrid config.status TRUNK
17656   configured by $0, generated by GNU Autoconf 2.69,
17657    with options \\"\$ac_cs_config\\"
17658  
# Line 15250 | Line 17787 | enable_static='`$ECHO "$enable_static" |
17787   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17788   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17789   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17790 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17791   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17792   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17793   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 15299 | Line 17837 | compiler='`$ECHO "$compiler" | $SED "$de
17837   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17838   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17839   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17840 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17841   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17842   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17843 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17844   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17845   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17846 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17847   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17848   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17849   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 15367 | Line 17908 | finish_cmds='`$ECHO "$finish_cmds" | $SE
17908   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17909   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17910   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17911 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17911 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17912 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17913   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17914   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17915   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 15418 | Line 17960 | CFLAGS \
17960   compiler \
17961   lt_cv_sys_global_symbol_pipe \
17962   lt_cv_sys_global_symbol_to_cdecl \
17963 + lt_cv_sys_global_symbol_to_import \
17964   lt_cv_sys_global_symbol_to_c_name_address \
17965   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17966 + lt_cv_nm_interface \
17967   nm_file_list_spec \
17968 + lt_cv_truncate_bin \
17969   lt_prog_compiler_no_builtin_flag \
17970   lt_prog_compiler_pic \
17971   lt_prog_compiler_wl \
# Line 15455 | Line 18000 | old_striplib \
18000   striplib; do
18001      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18002      *[\\\\\\\`\\"\\\$]*)
18003 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18003 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18004        ;;
18005      *)
18006        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15482 | Line 18027 | postinstall_cmds \
18027   postuninstall_cmds \
18028   finish_cmds \
18029   sys_lib_search_path_spec \
18030 < sys_lib_dlsearch_path_spec; do
18030 > configure_time_dlsearch_path \
18031 > configure_time_lt_sys_library_path; do
18032      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18033      *[\\\\\\\`\\"\\\$]*)
18034 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18034 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18035        ;;
18036      *)
18037        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15494 | Line 18040 | sys_lib_dlsearch_path_spec; do
18040   done
18041  
18042   ac_aux_dir='$ac_aux_dir'
15497 – xsi_shell='$xsi_shell'
15498 – lt_shell_append='$lt_shell_append'
18043  
18044 < # See if we are running on zsh, and set the options which allow our
18044 > # See if we are running on zsh, and set the options that allow our
18045   # commands through without removal of \ escapes INIT.
18046 < if test -n "\${ZSH_VERSION+set}" ; then
18046 > if test -n "\${ZSH_VERSION+set}"; then
18047     setopt NO_GLOB_SUBST
18048   fi
18049  
18050  
18051      PACKAGE='$PACKAGE'
18052      VERSION='$VERSION'
15509 –    TIMESTAMP='$TIMESTAMP'
18053      RM='$RM'
18054      ofile='$ofile'
18055  
# Line 15525 | Line 18068 | do
18068      "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18069      "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18070      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15528 –    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15529 –    "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
18071      "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18072      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15532 –    "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
18073      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18074      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18075 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18076      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18077      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15537 –    "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15538 –    "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
18078      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18079  
18080    *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
# Line 16133 | Line 18672 | $as_echo "$as_me: executing $ac_file com
18672  
18673    case $ac_file$ac_mode in
18674      "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18675 <  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18675 >  # Older Autoconf quotes --file arguments for eval, but not when files
18676    # are listed without --file.  Let's play safe and only enable the eval
18677    # if we detect the quoting.
18678    case $CONFIG_FILES in
# Line 16184 | Line 18723 | $as_echo X"$mf" |
18723      DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18724      test -z "$DEPDIR" && continue
18725      am__include=`sed -n 's/^am__include = //p' < "$mf"`
18726 <    test -z "am__include" && continue
18726 >    test -z "$am__include" && continue
18727      am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18728      # Find all dependency output files, they are included files with
18729      # $(DEPDIR) in their names.  We invoke sed twice because it is the
# Line 16227 | Line 18766 | $as_echo X"$file" |
18766   ;;
18767      "libtool":C)
18768  
18769 <    # See if we are running on zsh, and set the options which allow our
18769 >    # See if we are running on zsh, and set the options that allow our
18770      # commands through without removal of \ escapes.
18771 <    if test -n "${ZSH_VERSION+set}" ; then
18771 >    if test -n "${ZSH_VERSION+set}"; then
18772        setopt NO_GLOB_SUBST
18773      fi
18774  
18775 <    cfgfile="${ofile}T"
18775 >    cfgfile=${ofile}T
18776      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18777      $RM "$cfgfile"
18778  
18779      cat <<_LT_EOF >> "$cfgfile"
18780   #! $SHELL
18781 <
16243 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16244 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18781 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18782   # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18783   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18784 +
18785 + # Provide generalized library-building support services.
18786 + # Written by Gordon Matzigkeit, 1996
18787 +
18788 + # Copyright (C) 2014 Free Software Foundation, Inc.
18789 + # This is free software; see the source for copying conditions.  There is NO
18790 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18791 +
18792 + # GNU Libtool is free software; you can redistribute it and/or modify
18793 + # it under the terms of the GNU General Public License as published by
18794 + # the Free Software Foundation; either version 2 of of the License, or
18795 + # (at your option) any later version.
18796   #
18797 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18798 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18799 < #                 Foundation, Inc.
18800 < #   Written by Gordon Matzigkeit, 1996
16252 < #
16253 < #   This file is part of GNU Libtool.
16254 < #
16255 < # GNU Libtool is free software; you can redistribute it and/or
16256 < # modify it under the terms of the GNU General Public License as
16257 < # published by the Free Software Foundation; either version 2 of
16258 < # the License, or (at your option) any later version.
16259 < #
16260 < # As a special exception to the GNU General Public License,
16261 < # if you distribute this file as part of a program or library that
16262 < # is built using GNU Libtool, you may include this file under the
16263 < # same distribution terms that you use for the rest of that program.
18797 > # As a special exception to the GNU General Public License, if you
18798 > # distribute this file as part of a program or library that is built
18799 > # using GNU Libtool, you may include this file under the  same
18800 > # distribution terms that you use for the rest of that program.
18801   #
18802 < # GNU Libtool is distributed in the hope that it will be useful,
18803 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18802 > # GNU Libtool is distributed in the hope that it will be useful, but
18803 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18804   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18805   # GNU General Public License for more details.
18806   #
18807   # You should have received a copy of the GNU General Public License
18808 < # along with GNU Libtool; see the file COPYING.  If not, a copy
16272 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16273 < # obtained by writing to the Free Software Foundation, Inc.,
16274 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18808 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18809  
18810  
18811   # The names of the tagged configurations supported by this script.
18812 < available_tags=""
18812 > available_tags=''
18813 >
18814 > # Configured defaults for sys_lib_dlsearch_path munging.
18815 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18816  
18817   # ### BEGIN LIBTOOL CONFIG
18818  
# Line 16295 | Line 18832 | pic_mode=$pic_mode
18832   # Whether or not to optimize for fast installation.
18833   fast_install=$enable_fast_install
18834  
18835 + # Shared archive member basename,for filename based shared library versioning on AIX.
18836 + shared_archive_member_spec=$shared_archive_member_spec
18837 +
18838   # Shell to use when invoking shell scripts.
18839   SHELL=$lt_SHELL
18840  
# Line 16412 | Line 18952 | global_symbol_pipe=$lt_lt_cv_sys_global_
18952   # Transform the output of nm in a proper C declaration.
18953   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18954  
18955 + # Transform the output of nm into a list of symbols to manually relocate.
18956 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18957 +
18958   # Transform the output of nm in a C name address pair.
18959   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18960  
18961   # Transform the output of nm in a C name address pair when lib prefix is needed.
18962   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18963  
18964 + # The name lister interface.
18965 + nm_interface=$lt_lt_cv_nm_interface
18966 +
18967   # Specify filename containing input files for \$NM.
18968   nm_file_list_spec=$lt_nm_file_list_spec
18969  
18970 < # The root where to search for dependent libraries,and in which our libraries should be installed.
18970 > # The root where to search for dependent libraries,and where our libraries should be installed.
18971   lt_sysroot=$lt_sysroot
18972  
18973 + # Command to truncate a binary pipe.
18974 + lt_truncate_bin=$lt_lt_cv_truncate_bin
18975 +
18976   # The name of the directory that contains temporary libtool files.
18977   objdir=$objdir
18978  
# Line 16514 | Line 19063 | hardcode_into_libs=$hardcode_into_libs
19063   # Compile-time system search path for libraries.
19064   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19065  
19066 < # Run-time system search path for libraries.
19067 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19066 > # Detected run-time system search path for libraries.
19067 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19068 >
19069 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19070 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19071  
19072   # Whether dlopen is supported.
19073   dlopen_support=$enable_dlopen
# Line 16608 | Line 19160 | hardcode_libdir_flag_spec=$lt_hardcode_l
19160   # Whether we need a single "-rpath" flag with a separated argument.
19161   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19162  
19163 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19163 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19164   # DIR into the resulting binary.
19165   hardcode_direct=$hardcode_direct
19166  
19167 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19167 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19168   # DIR into the resulting binary and the resulting library dependency is
19169 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19169 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19170   # library is relocated.
19171   hardcode_direct_absolute=$hardcode_direct_absolute
19172  
# Line 16666 | Line 19218 | hardcode_action=$hardcode_action
19218  
19219   _LT_EOF
19220  
19221 +    cat <<'_LT_EOF' >> "$cfgfile"
19222 +
19223 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19224 +
19225 + # func_munge_path_list VARIABLE PATH
19226 + # -----------------------------------
19227 + # VARIABLE is name of variable containing _space_ separated list of
19228 + # directories to be munged by the contents of PATH, which is string
19229 + # having a format:
19230 + # "DIR[:DIR]:"
19231 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19232 + # ":DIR[:DIR]"
19233 + #       string "DIR[ DIR]" will be appended to VARIABLE
19234 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19235 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19236 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19237 + # "DIR[:DIR]"
19238 + #       VARIABLE will be replaced by "DIR[ DIR]"
19239 + func_munge_path_list ()
19240 + {
19241 +    case x$2 in
19242 +    x)
19243 +        ;;
19244 +    *:)
19245 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19246 +        ;;
19247 +    x:*)
19248 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19249 +        ;;
19250 +    *::*)
19251 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19252 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19253 +        ;;
19254 +    *)
19255 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19256 +        ;;
19257 +    esac
19258 + }
19259 +
19260 +
19261 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19262 + func_cc_basename ()
19263 + {
19264 +    for cc_temp in $*""; do
19265 +      case $cc_temp in
19266 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19267 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19268 +        \-*) ;;
19269 +        *) break;;
19270 +      esac
19271 +    done
19272 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19273 + }
19274 +
19275 +
19276 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19277 +
19278 + _LT_EOF
19279 +
19280    case $host_os in
19281    aix3*)
19282      cat <<\_LT_EOF >> "$cfgfile"
19283   # AIX sometimes has problems with the GCC collect2 program.  For some
19284   # reason, if we set the COLLECT_NAMES environment variable, the problems
19285   # vanish in a puff of smoke.
19286 < if test "X${COLLECT_NAMES+set}" != Xset; then
19286 > if test set != "${COLLECT_NAMES+set}"; then
19287    COLLECT_NAMES=
19288    export COLLECT_NAMES
19289   fi
# Line 16681 | Line 19292 | _LT_EOF
19292    esac
19293  
19294  
19295 < ltmain="$ac_aux_dir/ltmain.sh"
19295 > ltmain=$ac_aux_dir/ltmain.sh
19296  
19297  
19298    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 16691 | Line 19302 | ltmain="$ac_aux_dir/ltmain.sh"
19302    sed '$q' "$ltmain" >> "$cfgfile" \
19303       || (rm -f "$cfgfile"; exit 1)
19304  
16694 –  if test x"$xsi_shell" = xyes; then
16695 –  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16696 – func_dirname ()\
16697 – {\
16698 – \    case ${1} in\
16699 – \      */*) func_dirname_result="${1%/*}${2}" ;;\
16700 – \      *  ) func_dirname_result="${3}" ;;\
16701 – \    esac\
16702 – } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16703 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16704 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16705 – test 0 -eq $? || _lt_function_replace_fail=:
16706 –
16707 –
16708 –  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16709 – func_basename ()\
16710 – {\
16711 – \    func_basename_result="${1##*/}"\
16712 – } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16713 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16714 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16715 – test 0 -eq $? || _lt_function_replace_fail=:
16716 –
16717 –
16718 –  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16719 – func_dirname_and_basename ()\
16720 – {\
16721 – \    case ${1} in\
16722 – \      */*) func_dirname_result="${1%/*}${2}" ;;\
16723 – \      *  ) func_dirname_result="${3}" ;;\
16724 – \    esac\
16725 – \    func_basename_result="${1##*/}"\
16726 – } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16727 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16728 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16729 – test 0 -eq $? || _lt_function_replace_fail=:
16730 –
16731 –
16732 –  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16733 – func_stripname ()\
16734 – {\
16735 – \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16736 – \    # positional parameters, so assign one to ordinary parameter first.\
16737 – \    func_stripname_result=${3}\
16738 – \    func_stripname_result=${func_stripname_result#"${1}"}\
16739 – \    func_stripname_result=${func_stripname_result%"${2}"}\
16740 – } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16741 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16742 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16743 – test 0 -eq $? || _lt_function_replace_fail=:
16744 –
16745 –
16746 –  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16747 – func_split_long_opt ()\
16748 – {\
16749 – \    func_split_long_opt_name=${1%%=*}\
16750 – \    func_split_long_opt_arg=${1#*=}\
16751 – } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16752 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16753 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16754 – test 0 -eq $? || _lt_function_replace_fail=:
16755 –
16756 –
16757 –  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16758 – func_split_short_opt ()\
16759 – {\
16760 – \    func_split_short_opt_arg=${1#??}\
16761 – \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16762 – } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16763 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16764 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16765 – test 0 -eq $? || _lt_function_replace_fail=:
16766 –
16767 –
16768 –  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16769 – func_lo2o ()\
16770 – {\
16771 – \    case ${1} in\
16772 – \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16773 – \      *)    func_lo2o_result=${1} ;;\
16774 – \    esac\
16775 – } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16776 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16777 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16778 – test 0 -eq $? || _lt_function_replace_fail=:
16779 –
16780 –
16781 –  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16782 – func_xform ()\
16783 – {\
16784 –    func_xform_result=${1%.*}.lo\
16785 – } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16786 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16787 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16788 – test 0 -eq $? || _lt_function_replace_fail=:
16789 –
16790 –
16791 –  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16792 – func_arith ()\
16793 – {\
16794 –    func_arith_result=$(( $* ))\
16795 – } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16796 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16797 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16798 – test 0 -eq $? || _lt_function_replace_fail=:
16799 –
16800 –
16801 –  sed -e '/^func_len ()$/,/^} # func_len /c\
16802 – func_len ()\
16803 – {\
16804 –    func_len_result=${#1}\
16805 – } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16806 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16807 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16808 – test 0 -eq $? || _lt_function_replace_fail=:
16809 –
16810 – fi
16811 –
16812 – if test x"$lt_shell_append" = xyes; then
16813 –  sed -e '/^func_append ()$/,/^} # func_append /c\
16814 – func_append ()\
16815 – {\
16816 –    eval "${1}+=\\${2}"\
16817 – } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16818 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16819 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16820 – test 0 -eq $? || _lt_function_replace_fail=:
16821 –
16822 –
16823 –  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16824 – func_append_quoted ()\
16825 – {\
16826 – \    func_quote_for_eval "${2}"\
16827 – \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16828 – } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16829 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
16830 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16831 – test 0 -eq $? || _lt_function_replace_fail=:
16832 –
16833 –
16834 –  # Save a `func_append' function call where possible by direct use of '+='
16835 –  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16836 –    && mv -f "$cfgfile.tmp" "$cfgfile" \
16837 –      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16838 –  test 0 -eq $? || _lt_function_replace_fail=:
16839 – else
16840 –  # Save a `func_append' function call even when '+=' is not available
16841 –  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16842 –    && mv -f "$cfgfile.tmp" "$cfgfile" \
16843 –      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16844 –  test 0 -eq $? || _lt_function_replace_fail=:
16845 – fi
16846 –
16847 – if test x"$_lt_function_replace_fail" = x":"; then
16848 –  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16849 – $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16850 – fi
16851 –
16852 –
19305     mv -f "$cfgfile" "$ofile" ||
19306      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19307    chmod +x "$ofile"
# Line 16893 | Line 19345 | if test -n "$ac_unrecognized_opts" && te
19345   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19346   fi
19347  
19348 +
19349 + echo "###############################################################################"
19350 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19351 + echo
19352 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19353 + echo "   ./configure --prefix=DIRECTORY"
19354 + echo "###############################################################################"

Comparing ircd-hybrid/trunk/configure (property svn:eol-style):
Revision 1659 by michael, Sat Nov 17 19:29:07 2012 UTC vs.
Revision 8330 by michael, Wed Feb 28 21:32:12 2018 UTC

# Line 0 | Line 1
1 + native

Diff Legend

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