| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 1856 2013-04-24 19:43:22Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 5788 2015-04-05 18:07:10Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
< |
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. |
| 4 |
> |
# Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.7. |
| 5 |
|
# |
| 6 |
|
# Report bugs to <bugs@ircd-hybrid.org>. |
| 7 |
|
# |
| 593 |
|
# Identity of this package. |
| 594 |
|
PACKAGE_NAME='ircd-hybrid' |
| 595 |
|
PACKAGE_TARNAME='ircd-hybrid' |
| 596 |
< |
PACKAGE_VERSION='TRUNK' |
| 597 |
< |
PACKAGE_STRING='ircd-hybrid TRUNK' |
| 596 |
> |
PACKAGE_VERSION='8.2.7' |
| 597 |
> |
PACKAGE_STRING='ircd-hybrid 8.2.7' |
| 598 |
|
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
| 599 |
|
PACKAGE_URL='' |
| 600 |
|
|
| 656 |
|
CONVENIENCE_LTDL_TRUE |
| 657 |
|
INSTALL_LTDL_FALSE |
| 658 |
|
INSTALL_LTDL_TRUE |
| 659 |
< |
ARGZ_H |
| 659 |
> |
LT_ARGZ_H |
| 660 |
|
sys_symbol_underscore |
| 661 |
|
LIBADD_DL |
| 662 |
|
LT_DLPREOPEN |
| 669 |
|
LTDLDEPS |
| 670 |
|
LIBLTDL |
| 671 |
|
CPP |
| 672 |
+ |
LT_SYS_LIBRARY_PATH |
| 673 |
|
OTOOL64 |
| 674 |
|
OTOOL |
| 675 |
|
LIPO |
| 799 |
|
enable_shared |
| 800 |
|
with_pic |
| 801 |
|
enable_fast_install |
| 802 |
+ |
with_aix_soname |
| 803 |
|
with_gnu_ld |
| 804 |
|
with_sysroot |
| 805 |
|
enable_libtool_lock |
| 807 |
|
with_ltdl_include |
| 808 |
|
with_ltdl_lib |
| 809 |
|
enable_ltdl_install |
| 808 |
– |
enable_libpcre |
| 809 |
– |
enable_libGeoIP |
| 810 |
– |
enable_openssl |
| 811 |
– |
enable_assert |
| 810 |
|
enable_kqueue |
| 811 |
|
enable_epoll |
| 812 |
|
enable_devpoll |
| 813 |
|
enable_poll |
| 814 |
< |
enable_select |
| 817 |
< |
enable_halfops |
| 814 |
> |
enable_assert |
| 815 |
|
enable_debugging |
| 816 |
|
enable_warnings |
| 817 |
+ |
enable_openssl |
| 818 |
+ |
enable_libgeoip |
| 819 |
|
' |
| 820 |
|
ac_precious_vars='build_alias |
| 821 |
|
host_alias |
| 827 |
|
CPPFLAGS |
| 828 |
|
YACC |
| 829 |
|
YFLAGS |
| 830 |
+ |
LT_SYS_LIBRARY_PATH |
| 831 |
|
CPP' |
| 832 |
|
|
| 833 |
|
|
| 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 TRUNK to adapt to many kinds of systems. |
| 1372 |
> |
\`configure' configures ircd-hybrid 8.2.7 to adapt to many kinds of systems. |
| 1373 |
|
|
| 1374 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1375 |
|
|
| 1439 |
|
|
| 1440 |
|
if test -n "$ac_init_help"; then |
| 1441 |
|
case $ac_init_help in |
| 1442 |
< |
short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";; |
| 1442 |
> |
short | recursive ) echo "Configuration of ircd-hybrid 8.2.7:";; |
| 1443 |
|
esac |
| 1444 |
|
cat <<\_ACEOF |
| 1445 |
|
|
| 1462 |
|
optimize for fast installation [default=yes] |
| 1463 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1464 |
|
--enable-ltdl-install install libltdl |
| 1465 |
– |
--disable-libpcre Disable PCRE support |
| 1466 |
– |
--disable-libgeoip Disable GeoIP support |
| 1467 |
– |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1468 |
– |
--disable-openssl Disable OpenSSL support. |
| 1469 |
– |
--enable-assert Enable assert() statements |
| 1465 |
|
--enable-kqueue Force kqueue usage. |
| 1466 |
|
--enable-epoll Force epoll usage. |
| 1467 |
|
--enable-devpoll Force devpoll usage. |
| 1468 |
|
--enable-poll Force poll usage. |
| 1469 |
< |
--enable-select Force select usage. |
| 1475 |
< |
--enable-halfops Enable halfops support. |
| 1469 |
> |
--enable-assert Enable assert() statements |
| 1470 |
|
--enable-debugging Enable debugging. |
| 1471 |
|
--enable-warnings Enable compiler warnings. |
| 1472 |
+ |
--enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional). |
| 1473 |
+ |
--disable-openssl Disable LibreSSL/OpenSSL support. |
| 1474 |
+ |
--disable-libgeoip Disable GeoIP support |
| 1475 |
|
|
| 1476 |
|
Optional Packages: |
| 1477 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1478 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1479 |
|
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1480 |
|
both] |
| 1481 |
+ |
--with-aix-soname=aix|svr4|both |
| 1482 |
+ |
shared library versioning (aka "SONAME") variant to |
| 1483 |
+ |
provide on AIX, [default=aix]. |
| 1484 |
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1485 |
< |
--with-sysroot=DIR Search for dependent libraries within DIR |
| 1486 |
< |
(or the compiler's sysroot if not specified). |
| 1485 |
> |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1486 |
> |
compiler's sysroot if not specified). |
| 1487 |
|
--with-included-ltdl use the GNU ltdl sources included here |
| 1488 |
|
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1489 |
|
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 1502 |
|
YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1503 |
|
This script will default YFLAGS to the empty string to avoid a |
| 1504 |
|
default value of `-d' given by some make applications. |
| 1505 |
+ |
LT_SYS_LIBRARY_PATH |
| 1506 |
+ |
User-defined run-time library search path. |
| 1507 |
|
CPP C preprocessor |
| 1508 |
|
|
| 1509 |
|
Use these variables to override the choices made by `configure' or to help |
| 1572 |
|
test -n "$ac_init_help" && exit $ac_status |
| 1573 |
|
if $ac_init_version; then |
| 1574 |
|
cat <<\_ACEOF |
| 1575 |
< |
ircd-hybrid configure TRUNK |
| 1575 |
> |
ircd-hybrid configure 8.2.7 |
| 1576 |
|
generated by GNU Autoconf 2.69 |
| 1577 |
|
|
| 1578 |
|
Copyright (C) 2012 Free Software Foundation, Inc. |
| 1947 |
|
|
| 1948 |
|
} # ac_fn_c_check_type |
| 1949 |
|
|
| 1948 |
– |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1949 |
– |
# ---------------------------------------------------- |
| 1950 |
– |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 1951 |
– |
# INCLUDES, setting cache variable VAR accordingly. |
| 1952 |
– |
ac_fn_c_check_member () |
| 1953 |
– |
{ |
| 1954 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1955 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1956 |
– |
$as_echo_n "checking for $2.$3... " >&6; } |
| 1957 |
– |
if eval \${$4+:} false; then : |
| 1958 |
– |
$as_echo_n "(cached) " >&6 |
| 1959 |
– |
else |
| 1960 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1961 |
– |
/* end confdefs.h. */ |
| 1962 |
– |
$5 |
| 1963 |
– |
int |
| 1964 |
– |
main () |
| 1965 |
– |
{ |
| 1966 |
– |
static $2 ac_aggr; |
| 1967 |
– |
if (ac_aggr.$3) |
| 1968 |
– |
return 0; |
| 1969 |
– |
; |
| 1970 |
– |
return 0; |
| 1971 |
– |
} |
| 1972 |
– |
_ACEOF |
| 1973 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1974 |
– |
eval "$4=yes" |
| 1975 |
– |
else |
| 1976 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1977 |
– |
/* end confdefs.h. */ |
| 1978 |
– |
$5 |
| 1979 |
– |
int |
| 1980 |
– |
main () |
| 1981 |
– |
{ |
| 1982 |
– |
static $2 ac_aggr; |
| 1983 |
– |
if (sizeof ac_aggr.$3) |
| 1984 |
– |
return 0; |
| 1985 |
– |
; |
| 1986 |
– |
return 0; |
| 1987 |
– |
} |
| 1988 |
– |
_ACEOF |
| 1989 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1990 |
– |
eval "$4=yes" |
| 1991 |
– |
else |
| 1992 |
– |
eval "$4=no" |
| 1993 |
– |
fi |
| 1994 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1995 |
– |
fi |
| 1996 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1997 |
– |
fi |
| 1998 |
– |
eval ac_res=\$$4 |
| 1999 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2000 |
– |
$as_echo "$ac_res" >&6; } |
| 2001 |
– |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2002 |
– |
|
| 2003 |
– |
} # ac_fn_c_check_member |
| 2004 |
– |
|
| 1950 |
|
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1951 |
|
# ------------------------------------------------------- |
| 1952 |
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2041 |
|
This file contains any messages produced by compilers while |
| 2042 |
|
running configure, to aid debugging if configure makes a mistake. |
| 2043 |
|
|
| 2044 |
< |
It was created by ircd-hybrid $as_me TRUNK, which was |
| 2044 |
> |
It was created by ircd-hybrid $as_me 8.2.7, which was |
| 2045 |
|
generated by GNU Autoconf 2.69. Invocation command line was |
| 2046 |
|
|
| 2047 |
|
$ $0 $@ |
| 2400 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2401 |
|
|
| 2402 |
|
|
| 2403 |
< |
am__api_version='1.13' |
| 2403 |
> |
am__api_version='1.15' |
| 2404 |
|
|
| 2405 |
|
ac_aux_dir= |
| 2406 |
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2601 |
|
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2602 |
|
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2603 |
|
|
| 2604 |
< |
# expand $ac_aux_dir to an absolute path |
| 2605 |
< |
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2604 |
> |
# Expand $ac_aux_dir to an absolute path. |
| 2605 |
> |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 2606 |
|
|
| 2607 |
|
if test x"${MISSING+set}" != xset; then |
| 2608 |
|
case $am_aux_dir in |
| 2621 |
|
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2622 |
|
fi |
| 2623 |
|
|
| 2624 |
< |
if test x"${install_sh}" != xset; then |
| 2624 |
> |
if test x"${install_sh+set}" != xset; then |
| 2625 |
|
case $am_aux_dir in |
| 2626 |
|
*\ * | *\ *) |
| 2627 |
|
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2915 |
|
|
| 2916 |
|
# Define the identity of the package. |
| 2917 |
|
PACKAGE='ircd-hybrid' |
| 2918 |
< |
VERSION='TRUNK' |
| 2918 |
> |
VERSION='8.2.7' |
| 2919 |
|
|
| 2920 |
|
|
| 2921 |
|
cat >>confdefs.h <<_ACEOF |
| 2949 |
|
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2950 |
|
mkdir_p='$(MKDIR_P)' |
| 2951 |
|
|
| 2952 |
< |
# We need awk for the "check" target. The system "awk" is bad on |
| 2953 |
< |
# some platforms. |
| 2952 |
> |
# We need awk for the "check" target (and possibly the TAP driver). The |
| 2953 |
> |
# system "awk" is bad on some platforms. |
| 2954 |
|
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 2955 |
|
# in the wild :-( We should find a proper way to deprecate it ... |
| 2956 |
|
AMTAR='$${TAR-tar}' |
| 2957 |
|
|
| 2958 |
+ |
|
| 2959 |
+ |
# We'll loop over all known methods to create a tar archive until one works. |
| 2960 |
+ |
_am_tools='gnutar pax cpio none' |
| 2961 |
+ |
|
| 2962 |
|
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 2963 |
|
|
| 2964 |
|
|
| 2966 |
|
|
| 2967 |
|
|
| 2968 |
|
|
| 2969 |
+ |
# POSIX will say in a future version that running "rm -f" with no argument |
| 2970 |
+ |
# is OK; and we want to be able to make that assumption in our Makefile |
| 2971 |
+ |
# recipes. So use an aggressive probe to check that the usage we want is |
| 2972 |
+ |
# actually supported "in the wild" to an acceptable degree. |
| 2973 |
+ |
# See automake bug#10828. |
| 2974 |
+ |
# To make any issue more visible, cause the running configure to be aborted |
| 2975 |
+ |
# by default if the 'rm' program in use doesn't match our expectations; the |
| 2976 |
+ |
# user can still override this though. |
| 2977 |
+ |
if rm -f && rm -fr && rm -rf; then : OK; else |
| 2978 |
+ |
cat >&2 <<'END' |
| 2979 |
+ |
Oops! |
| 2980 |
+ |
|
| 2981 |
+ |
Your 'rm' program seems unable to run without file operands specified |
| 2982 |
+ |
on the command line, even when the '-f' option is present. This is contrary |
| 2983 |
+ |
to the behaviour of most rm programs out there, and not conforming with |
| 2984 |
+ |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 2985 |
+ |
|
| 2986 |
+ |
Please tell bug-automake@gnu.org about your system, including the value |
| 2987 |
+ |
of your $PATH and any error possibly output before this message. This |
| 2988 |
+ |
can help us improve future automake versions. |
| 2989 |
+ |
|
| 2990 |
+ |
END |
| 2991 |
+ |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 2992 |
+ |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 2993 |
+ |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 2994 |
+ |
echo >&2 |
| 2995 |
+ |
else |
| 2996 |
+ |
cat >&2 <<'END' |
| 2997 |
+ |
Aborting the configuration process, to ensure you take notice of the issue. |
| 2998 |
+ |
|
| 2999 |
+ |
You can download and install GNU coreutils to get an 'rm' implementation |
| 3000 |
+ |
that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 3001 |
+ |
|
| 3002 |
+ |
If you want to complete the configuration process using your problematic |
| 3003 |
+ |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3004 |
+ |
to "yes", and re-run configure. |
| 3005 |
+ |
|
| 3006 |
+ |
END |
| 3007 |
+ |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3008 |
+ |
fi |
| 3009 |
+ |
fi |
| 3010 |
+ |
|
| 3011 |
+ |
|
| 3012 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3013 |
|
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3014 |
|
# Check whether --enable-maintainer-mode was given. |
| 3031 |
|
MAINT=$MAINTAINER_MODE_TRUE |
| 3032 |
|
|
| 3033 |
|
|
| 3034 |
+ |
|
| 3035 |
|
ac_config_headers="$ac_config_headers config.h" |
| 3036 |
|
|
| 3037 |
|
|
| 3889 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3890 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3891 |
|
|
| 3892 |
+ |
ac_ext=c |
| 3893 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 3894 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3895 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3896 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3897 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3898 |
+ |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 3899 |
+ |
if ${am_cv_prog_cc_c_o+:} false; then : |
| 3900 |
+ |
$as_echo_n "(cached) " >&6 |
| 3901 |
+ |
else |
| 3902 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3903 |
+ |
/* end confdefs.h. */ |
| 3904 |
+ |
|
| 3905 |
+ |
int |
| 3906 |
+ |
main () |
| 3907 |
+ |
{ |
| 3908 |
+ |
|
| 3909 |
+ |
; |
| 3910 |
+ |
return 0; |
| 3911 |
+ |
} |
| 3912 |
+ |
_ACEOF |
| 3913 |
+ |
# Make sure it works both with $CC and with simple cc. |
| 3914 |
+ |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 3915 |
+ |
# compilers refuse to overwrite an existing .o file with -o, |
| 3916 |
+ |
# though they will create one. |
| 3917 |
+ |
am_cv_prog_cc_c_o=yes |
| 3918 |
+ |
for am_i in 1 2; do |
| 3919 |
+ |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 3920 |
+ |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 3921 |
+ |
ac_status=$? |
| 3922 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3923 |
+ |
(exit $ac_status); } \ |
| 3924 |
+ |
&& test -f conftest2.$ac_objext; then |
| 3925 |
+ |
: OK |
| 3926 |
+ |
else |
| 3927 |
+ |
am_cv_prog_cc_c_o=no |
| 3928 |
+ |
break |
| 3929 |
+ |
fi |
| 3930 |
+ |
done |
| 3931 |
+ |
rm -f core conftest* |
| 3932 |
+ |
unset am_i |
| 3933 |
+ |
fi |
| 3934 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 3935 |
+ |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 3936 |
+ |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 3937 |
+ |
# Losing compiler, so override with the script. |
| 3938 |
+ |
# FIXME: It is wrong to rewrite CC. |
| 3939 |
+ |
# But if we don't then we get into trouble of one sort or another. |
| 3940 |
+ |
# A longer-term fix would be to have automake use am__CC in this case, |
| 3941 |
+ |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3942 |
+ |
CC="$am_aux_dir/compile $CC" |
| 3943 |
+ |
fi |
| 3944 |
+ |
ac_ext=c |
| 3945 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 3946 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3947 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3948 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3949 |
+ |
|
| 3950 |
+ |
|
| 3951 |
|
depcc="$CC" am_compiler_list= |
| 3952 |
|
|
| 3953 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4480 |
|
|
| 4481 |
|
|
| 4482 |
|
|
| 4483 |
< |
macro_version='2.4.2' |
| 4484 |
< |
macro_revision='1.3337' |
| 4483 |
> |
macro_version='2.4.6' |
| 4484 |
> |
macro_revision='2.4.6' |
| 4485 |
|
|
| 4486 |
|
|
| 4487 |
|
|
| 4495 |
|
|
| 4496 |
|
|
| 4497 |
|
|
| 4498 |
< |
ltmain="$ac_aux_dir/ltmain.sh" |
| 4498 |
> |
ltmain=$ac_aux_dir/ltmain.sh |
| 4499 |
|
|
| 4500 |
|
# Make sure we can run config.sub. |
| 4501 |
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4615 |
|
$ECHO "" |
| 4616 |
|
} |
| 4617 |
|
|
| 4618 |
< |
case "$ECHO" in |
| 4618 |
> |
case $ECHO in |
| 4619 |
|
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4620 |
|
$as_echo "printf" >&6; } ;; |
| 4621 |
|
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4938 |
|
|
| 4939 |
|
# Check whether --with-gnu-ld was given. |
| 4940 |
|
if test "${with_gnu_ld+set}" = set; then : |
| 4941 |
< |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4941 |
> |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 4942 |
|
else |
| 4943 |
|
with_gnu_ld=no |
| 4944 |
|
fi |
| 4945 |
|
|
| 4946 |
|
ac_prog=ld |
| 4947 |
< |
if test "$GCC" = yes; then |
| 4947 |
> |
if test yes = "$GCC"; then |
| 4948 |
|
# Check if gcc -print-prog-name=ld gives a path. |
| 4949 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4950 |
|
$as_echo_n "checking for ld used by $CC... " >&6; } |
| 4951 |
|
case $host in |
| 4952 |
|
*-*-mingw*) |
| 4953 |
< |
# gcc leaves a trailing carriage return which upsets mingw |
| 4953 |
> |
# gcc leaves a trailing carriage return, which upsets mingw |
| 4954 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4955 |
|
*) |
| 4956 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4964 |
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4965 |
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4966 |
|
done |
| 4967 |
< |
test -z "$LD" && LD="$ac_prog" |
| 4967 |
> |
test -z "$LD" && LD=$ac_prog |
| 4968 |
|
;; |
| 4969 |
|
"") |
| 4970 |
|
# If it fails, then pretend we aren't using GCC. |
| 4975 |
|
with_gnu_ld=unknown |
| 4976 |
|
;; |
| 4977 |
|
esac |
| 4978 |
< |
elif test "$with_gnu_ld" = yes; then |
| 4978 |
> |
elif test yes = "$with_gnu_ld"; then |
| 4979 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4980 |
|
$as_echo_n "checking for GNU ld... " >&6; } |
| 4981 |
|
else |
| 4986 |
|
$as_echo_n "(cached) " >&6 |
| 4987 |
|
else |
| 4988 |
|
if test -z "$LD"; then |
| 4989 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4989 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 4990 |
|
for ac_dir in $PATH; do |
| 4991 |
< |
IFS="$lt_save_ifs" |
| 4991 |
> |
IFS=$lt_save_ifs |
| 4992 |
|
test -z "$ac_dir" && ac_dir=. |
| 4993 |
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4994 |
< |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4994 |
> |
lt_cv_path_LD=$ac_dir/$ac_prog |
| 4995 |
|
# Check to see if the program is GNU ld. I'd rather use --version, |
| 4996 |
|
# but apparently some variants of GNU ld only accept -v. |
| 4997 |
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 4998 |
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4999 |
|
*GNU* | *'with BFD'*) |
| 5000 |
< |
test "$with_gnu_ld" != no && break |
| 5000 |
> |
test no != "$with_gnu_ld" && break |
| 5001 |
|
;; |
| 5002 |
|
*) |
| 5003 |
< |
test "$with_gnu_ld" != yes && break |
| 5003 |
> |
test yes != "$with_gnu_ld" && break |
| 5004 |
|
;; |
| 5005 |
|
esac |
| 5006 |
|
fi |
| 5007 |
|
done |
| 5008 |
< |
IFS="$lt_save_ifs" |
| 5008 |
> |
IFS=$lt_save_ifs |
| 5009 |
|
else |
| 5010 |
< |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5010 |
> |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 5011 |
|
fi |
| 5012 |
|
fi |
| 5013 |
|
|
| 5014 |
< |
LD="$lt_cv_path_LD" |
| 5014 |
> |
LD=$lt_cv_path_LD |
| 5015 |
|
if test -n "$LD"; then |
| 5016 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5017 |
|
$as_echo "$LD" >&6; } |
| 5054 |
|
else |
| 5055 |
|
if test -n "$NM"; then |
| 5056 |
|
# Let the user override the test. |
| 5057 |
< |
lt_cv_path_NM="$NM" |
| 5057 |
> |
lt_cv_path_NM=$NM |
| 5058 |
|
else |
| 5059 |
< |
lt_nm_to_check="${ac_tool_prefix}nm" |
| 5059 |
> |
lt_nm_to_check=${ac_tool_prefix}nm |
| 5060 |
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5061 |
|
lt_nm_to_check="$lt_nm_to_check nm" |
| 5062 |
|
fi |
| 5063 |
|
for lt_tmp_nm in $lt_nm_to_check; do |
| 5064 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5064 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 5065 |
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5066 |
< |
IFS="$lt_save_ifs" |
| 5066 |
> |
IFS=$lt_save_ifs |
| 5067 |
|
test -z "$ac_dir" && ac_dir=. |
| 5068 |
< |
tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5069 |
< |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5068 |
> |
tmp_nm=$ac_dir/$lt_tmp_nm |
| 5069 |
> |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 5070 |
|
# Check to see if the nm accepts a BSD-compat flag. |
| 5071 |
< |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5071 |
> |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 5072 |
|
# nm: unknown option "B" ignored |
| 5073 |
|
# Tru64's nm complains that /dev/null is an invalid object file |
| 5074 |
< |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5075 |
< |
*/dev/null* | *'Invalid file or object type'*) |
| 5074 |
> |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 5075 |
> |
case $build_os in |
| 5076 |
> |
mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 5077 |
> |
*) lt_bad_file=/dev/null ;; |
| 5078 |
> |
esac |
| 5079 |
> |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 5080 |
> |
*$lt_bad_file* | *'Invalid file or object type'*) |
| 5081 |
|
lt_cv_path_NM="$tmp_nm -B" |
| 5082 |
< |
break |
| 5082 |
> |
break 2 |
| 5083 |
|
;; |
| 5084 |
|
*) |
| 5085 |
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5086 |
|
*/dev/null*) |
| 5087 |
|
lt_cv_path_NM="$tmp_nm -p" |
| 5088 |
< |
break |
| 5088 |
> |
break 2 |
| 5089 |
|
;; |
| 5090 |
|
*) |
| 5091 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5096 |
|
esac |
| 5097 |
|
fi |
| 5098 |
|
done |
| 5099 |
< |
IFS="$lt_save_ifs" |
| 5099 |
> |
IFS=$lt_save_ifs |
| 5100 |
|
done |
| 5101 |
|
: ${lt_cv_path_NM=no} |
| 5102 |
|
fi |
| 5103 |
|
fi |
| 5104 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5105 |
|
$as_echo "$lt_cv_path_NM" >&6; } |
| 5106 |
< |
if test "$lt_cv_path_NM" != "no"; then |
| 5107 |
< |
NM="$lt_cv_path_NM" |
| 5106 |
> |
if test no != "$lt_cv_path_NM"; then |
| 5107 |
> |
NM=$lt_cv_path_NM |
| 5108 |
|
else |
| 5109 |
|
# Didn't find any BSD compatible name lister, look for dumpbin. |
| 5110 |
|
if test -n "$DUMPBIN"; then : |
| 5210 |
|
fi |
| 5211 |
|
fi |
| 5212 |
|
|
| 5213 |
< |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5213 |
> |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 5214 |
|
*COFF*) |
| 5215 |
< |
DUMPBIN="$DUMPBIN -symbols" |
| 5215 |
> |
DUMPBIN="$DUMPBIN -symbols -headers" |
| 5216 |
|
;; |
| 5217 |
|
*) |
| 5218 |
|
DUMPBIN=: |
| 5220 |
|
esac |
| 5221 |
|
fi |
| 5222 |
|
|
| 5223 |
< |
if test "$DUMPBIN" != ":"; then |
| 5224 |
< |
NM="$DUMPBIN" |
| 5223 |
> |
if test : != "$DUMPBIN"; then |
| 5224 |
> |
NM=$DUMPBIN |
| 5225 |
|
fi |
| 5226 |
|
fi |
| 5227 |
|
test -z "$NM" && NM=nm |
| 5272 |
|
$as_echo_n "(cached) " >&6 |
| 5273 |
|
else |
| 5274 |
|
i=0 |
| 5275 |
< |
teststring="ABCD" |
| 5275 |
> |
teststring=ABCD |
| 5276 |
|
|
| 5277 |
|
case $build_os in |
| 5278 |
|
msdosdjgpp*) |
| 5312 |
|
lt_cv_sys_max_cmd_len=8192; |
| 5313 |
|
;; |
| 5314 |
|
|
| 5315 |
< |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5315 |
> |
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 5316 |
|
# This has been around since 386BSD, at least. Likely further. |
| 5317 |
|
if test -x /sbin/sysctl; then |
| 5318 |
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5362 |
|
;; |
| 5363 |
|
*) |
| 5364 |
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5365 |
< |
if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5365 |
> |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 5366 |
> |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 5367 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5368 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5369 |
|
else |
| 5370 |
|
# Make teststring a little bigger before we do anything with it. |
| 5371 |
|
# a 1K string should be a reasonable start. |
| 5372 |
< |
for i in 1 2 3 4 5 6 7 8 ; do |
| 5372 |
> |
for i in 1 2 3 4 5 6 7 8; do |
| 5373 |
|
teststring=$teststring$teststring |
| 5374 |
|
done |
| 5375 |
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5376 |
|
# If test is not a shell built-in, we'll probably end up computing a |
| 5377 |
|
# maximum length that is only half of the actual maximum length, but |
| 5378 |
|
# we can't tell. |
| 5379 |
< |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5379 |
> |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5380 |
|
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5381 |
< |
test $i != 17 # 1/2 MB should be enough |
| 5381 |
> |
test 17 != "$i" # 1/2 MB should be enough |
| 5382 |
|
do |
| 5383 |
|
i=`expr $i + 1` |
| 5384 |
|
teststring=$teststring$teststring |
| 5396 |
|
|
| 5397 |
|
fi |
| 5398 |
|
|
| 5399 |
< |
if test -n $lt_cv_sys_max_cmd_len ; then |
| 5399 |
> |
if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5400 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5401 |
|
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5402 |
|
else |
| 5414 |
|
: ${MV="mv -f"} |
| 5415 |
|
: ${RM="rm -f"} |
| 5416 |
|
|
| 5359 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5360 |
– |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5361 |
– |
# Try some XSI features |
| 5362 |
– |
xsi_shell=no |
| 5363 |
– |
( _lt_dummy="a/b/c" |
| 5364 |
– |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 5365 |
– |
= c,a/b,b/c, \ |
| 5366 |
– |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5367 |
– |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5368 |
– |
&& xsi_shell=yes |
| 5369 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5370 |
– |
$as_echo "$xsi_shell" >&6; } |
| 5371 |
– |
|
| 5372 |
– |
|
| 5373 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5374 |
– |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5375 |
– |
lt_shell_append=no |
| 5376 |
– |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5377 |
– |
>/dev/null 2>&1 \ |
| 5378 |
– |
&& lt_shell_append=yes |
| 5379 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5380 |
– |
$as_echo "$lt_shell_append" >&6; } |
| 5381 |
– |
|
| 5382 |
– |
|
| 5417 |
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5418 |
|
lt_unset=unset |
| 5419 |
|
else |
| 5536 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5537 |
|
case $host_os in |
| 5538 |
|
cygwin* | mingw* | pw32* | cegcc*) |
| 5539 |
< |
if test "$GCC" != yes; then |
| 5539 |
> |
if test yes != "$GCC"; then |
| 5540 |
|
reload_cmds=false |
| 5541 |
|
fi |
| 5542 |
|
;; |
| 5543 |
|
darwin*) |
| 5544 |
< |
if test "$GCC" = yes; then |
| 5545 |
< |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5544 |
> |
if test yes = "$GCC"; then |
| 5545 |
> |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 5546 |
|
else |
| 5547 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5548 |
|
fi |
| 5670 |
|
# Need to set the preceding variable on all platforms that support |
| 5671 |
|
# interlibrary dependencies. |
| 5672 |
|
# 'none' -- dependencies not supported. |
| 5673 |
< |
# `unknown' -- same as none, but documents that we really don't know. |
| 5673 |
> |
# 'unknown' -- same as none, but documents that we really don't know. |
| 5674 |
|
# 'pass_all' -- all dependencies passed with no checks. |
| 5675 |
|
# 'test_compile' -- check by making test program. |
| 5676 |
|
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 5677 |
< |
# which responds to the $file_magic_cmd with a given extended regex. |
| 5678 |
< |
# If you have `file' or equivalent on your system and you're not sure |
| 5679 |
< |
# whether `pass_all' will *always* work, you probably want this one. |
| 5677 |
> |
# that responds to the $file_magic_cmd with a given extended regex. |
| 5678 |
> |
# If you have 'file' or equivalent on your system and you're not sure |
| 5679 |
> |
# whether 'pass_all' will *always* work, you probably want this one. |
| 5680 |
|
|
| 5681 |
|
case $host_os in |
| 5682 |
|
aix[4-9]*) |
| 5703 |
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 5704 |
|
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5705 |
|
# unless we find 'file', for example because we are cross-compiling. |
| 5706 |
< |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5673 |
< |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5706 |
> |
if ( file / ) >/dev/null 2>&1; then |
| 5707 |
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5708 |
|
lt_cv_file_magic_cmd='func_win32_libid' |
| 5709 |
|
else |
| 5739 |
|
fi |
| 5740 |
|
;; |
| 5741 |
|
|
| 5709 |
– |
gnu*) |
| 5710 |
– |
lt_cv_deplibs_check_method=pass_all |
| 5711 |
– |
;; |
| 5712 |
– |
|
| 5742 |
|
haiku*) |
| 5743 |
|
lt_cv_deplibs_check_method=pass_all |
| 5744 |
|
;; |
| 5777 |
|
;; |
| 5778 |
|
|
| 5779 |
|
# This must be glibc/ELF. |
| 5780 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5780 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 5781 |
|
lt_cv_deplibs_check_method=pass_all |
| 5782 |
|
;; |
| 5783 |
|
|
| 5799 |
|
lt_cv_deplibs_check_method=pass_all |
| 5800 |
|
;; |
| 5801 |
|
|
| 5802 |
< |
openbsd*) |
| 5803 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5802 |
> |
openbsd* | bitrig*) |
| 5803 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 5804 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5805 |
|
else |
| 5806 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5853 |
|
tpf*) |
| 5854 |
|
lt_cv_deplibs_check_method=pass_all |
| 5855 |
|
;; |
| 5856 |
+ |
os2*) |
| 5857 |
+ |
lt_cv_deplibs_check_method=pass_all |
| 5858 |
+ |
;; |
| 5859 |
|
esac |
| 5860 |
|
|
| 5861 |
|
fi |
| 6013 |
|
|
| 6014 |
|
case $host_os in |
| 6015 |
|
cygwin* | mingw* | pw32* | cegcc*) |
| 6016 |
< |
# two different shell functions defined in ltmain.sh |
| 6017 |
< |
# decide which to use based on capabilities of $DLLTOOL |
| 6016 |
> |
# two different shell functions defined in ltmain.sh; |
| 6017 |
> |
# decide which one to use based on capabilities of $DLLTOOL |
| 6018 |
|
case `$DLLTOOL --help 2>&1` in |
| 6019 |
|
*--identify-strict*) |
| 6020 |
|
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 6026 |
|
;; |
| 6027 |
|
*) |
| 6028 |
|
# fallback: assume linklib IS sharedlib |
| 6029 |
< |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 6029 |
> |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 6030 |
|
;; |
| 6031 |
|
esac |
| 6032 |
|
|
| 6180 |
|
ac_status=$? |
| 6181 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6182 |
|
test $ac_status = 0; } |
| 6183 |
< |
if test "$ac_status" -eq 0; then |
| 6183 |
> |
if test 0 -eq "$ac_status"; then |
| 6184 |
|
# Ensure the archiver fails upon bogus file names. |
| 6185 |
|
rm -f conftest.$ac_objext libconftest.a |
| 6186 |
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6188 |
|
ac_status=$? |
| 6189 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6190 |
|
test $ac_status = 0; } |
| 6191 |
< |
if test "$ac_status" -ne 0; then |
| 6191 |
> |
if test 0 -ne "$ac_status"; then |
| 6192 |
|
lt_cv_ar_at_file=@ |
| 6193 |
|
fi |
| 6194 |
|
fi |
| 6201 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 6202 |
|
$as_echo "$lt_cv_ar_at_file" >&6; } |
| 6203 |
|
|
| 6204 |
< |
if test "x$lt_cv_ar_at_file" = xno; then |
| 6204 |
> |
if test no = "$lt_cv_ar_at_file"; then |
| 6205 |
|
archiver_list_spec= |
| 6206 |
|
else |
| 6207 |
|
archiver_list_spec=$lt_cv_ar_at_file |
| 6418 |
|
|
| 6419 |
|
if test -n "$RANLIB"; then |
| 6420 |
|
case $host_os in |
| 6421 |
< |
openbsd*) |
| 6421 |
> |
bitrig* | openbsd*) |
| 6422 |
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6423 |
|
;; |
| 6424 |
|
*) |
| 6508 |
|
symcode='[ABCDGISTW]' |
| 6509 |
|
;; |
| 6510 |
|
hpux*) |
| 6511 |
< |
if test "$host_cpu" = ia64; then |
| 6511 |
> |
if test ia64 = "$host_cpu"; then |
| 6512 |
|
symcode='[ABCDEGRST]' |
| 6513 |
|
fi |
| 6514 |
|
;; |
| 6541 |
|
symcode='[ABCDGIRSTW]' ;; |
| 6542 |
|
esac |
| 6543 |
|
|
| 6544 |
+ |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6545 |
+ |
# Gets list of data symbols to import. |
| 6546 |
+ |
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 6547 |
+ |
# Adjust the below global symbol transforms to fixup imported variables. |
| 6548 |
+ |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 6549 |
+ |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 6550 |
+ |
lt_c_name_lib_hook="\ |
| 6551 |
+ |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 6552 |
+ |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 6553 |
+ |
else |
| 6554 |
+ |
# Disable hooks by default. |
| 6555 |
+ |
lt_cv_sys_global_symbol_to_import= |
| 6556 |
+ |
lt_cdecl_hook= |
| 6557 |
+ |
lt_c_name_hook= |
| 6558 |
+ |
lt_c_name_lib_hook= |
| 6559 |
+ |
fi |
| 6560 |
+ |
|
| 6561 |
|
# Transform an extracted symbol line into a proper C declaration. |
| 6562 |
|
# Some systems (esp. on ia64) link data and code symbols differently, |
| 6563 |
|
# so use this general approach. |
| 6564 |
< |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6564 |
> |
lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 6565 |
> |
$lt_cdecl_hook\ |
| 6566 |
> |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 6567 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6568 |
|
|
| 6569 |
|
# Transform an extracted symbol line into symbol name and symbol address |
| 6570 |
< |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6571 |
< |
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'" |
| 6570 |
> |
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 6571 |
> |
$lt_c_name_hook\ |
| 6572 |
> |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6573 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 6574 |
> |
|
| 6575 |
> |
# Transform an extracted symbol line into symbol name with lib prefix and |
| 6576 |
> |
# symbol address. |
| 6577 |
> |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 6578 |
> |
$lt_c_name_lib_hook\ |
| 6579 |
> |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6580 |
> |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 6581 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 6582 |
|
|
| 6583 |
|
# Handle CRLF in mingw tool chain |
| 6584 |
|
opt_cr= |
| 6596 |
|
|
| 6597 |
|
# Write the raw and C identifiers. |
| 6598 |
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6599 |
< |
# Fake it for dumpbin and say T for any non-static function |
| 6600 |
< |
# and D for any global variable. |
| 6599 |
> |
# Fake it for dumpbin and say T for any non-static function, |
| 6600 |
> |
# D for any global variable and I for any imported variable. |
| 6601 |
|
# Also find C++ and __fastcall symbols from MSVC++, |
| 6602 |
|
# which start with @ or ?. |
| 6603 |
|
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6604 |
|
" {last_section=section; section=\$ 3};"\ |
| 6605 |
|
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6606 |
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6607 |
+ |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 6608 |
+ |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 6609 |
+ |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 6610 |
|
" \$ 0!~/External *\|/{next};"\ |
| 6611 |
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6612 |
|
" {if(hide[section]) next};"\ |
| 6613 |
< |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6614 |
< |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6615 |
< |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6616 |
< |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6613 |
> |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 6614 |
> |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 6615 |
> |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 6616 |
> |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 6617 |
|
" ' prfx=^$ac_symprfx" |
| 6618 |
|
else |
| 6619 |
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6661 |
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6662 |
|
cat <<_LT_EOF > conftest.$ac_ext |
| 6663 |
|
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6664 |
< |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 6665 |
< |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 6664 |
> |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 6665 |
> |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 6666 |
|
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6667 |
|
# define LT_DLSYM_CONST |
| 6668 |
< |
#elif defined(__osf__) |
| 6668 |
> |
#elif defined __osf__ |
| 6669 |
|
/* This system does not cope well with relocations in const data. */ |
| 6670 |
|
# define LT_DLSYM_CONST |
| 6671 |
|
#else |
| 6691 |
|
{ |
| 6692 |
|
{ "@PROGRAM@", (void *) 0 }, |
| 6693 |
|
_LT_EOF |
| 6694 |
< |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6694 |
> |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6695 |
|
cat <<\_LT_EOF >> conftest.$ac_ext |
| 6696 |
|
{0, (void *) 0} |
| 6697 |
|
}; |
| 6711 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
| 6712 |
|
lt_globsym_save_LIBS=$LIBS |
| 6713 |
|
lt_globsym_save_CFLAGS=$CFLAGS |
| 6714 |
< |
LIBS="conftstm.$ac_objext" |
| 6714 |
> |
LIBS=conftstm.$ac_objext |
| 6715 |
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6716 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6717 |
|
(eval $ac_link) 2>&5 |
| 6718 |
|
ac_status=$? |
| 6719 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6720 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6720 |
> |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 6721 |
|
pipe_works=yes |
| 6722 |
|
fi |
| 6723 |
|
LIBS=$lt_globsym_save_LIBS |
| 6738 |
|
rm -rf conftest* conftst* |
| 6739 |
|
|
| 6740 |
|
# Do not use the global_symbol_pipe unless it works. |
| 6741 |
< |
if test "$pipe_works" = yes; then |
| 6741 |
> |
if test yes = "$pipe_works"; then |
| 6742 |
|
break |
| 6743 |
|
else |
| 6744 |
|
lt_cv_sys_global_symbol_pipe= |
| 6791 |
|
|
| 6792 |
|
|
| 6793 |
|
|
| 6794 |
+ |
|
| 6795 |
+ |
|
| 6796 |
+ |
|
| 6797 |
+ |
|
| 6798 |
+ |
|
| 6799 |
+ |
|
| 6800 |
+ |
|
| 6801 |
+ |
|
| 6802 |
+ |
|
| 6803 |
+ |
|
| 6804 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6805 |
|
$as_echo_n "checking for sysroot... " >&6; } |
| 6806 |
|
|
| 6813 |
|
|
| 6814 |
|
|
| 6815 |
|
lt_sysroot= |
| 6816 |
< |
case ${with_sysroot} in #( |
| 6816 |
> |
case $with_sysroot in #( |
| 6817 |
|
yes) |
| 6818 |
< |
if test "$GCC" = yes; then |
| 6818 |
> |
if test yes = "$GCC"; then |
| 6819 |
|
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6820 |
|
fi |
| 6821 |
|
;; #( |
| 6825 |
|
no|'') |
| 6826 |
|
;; #( |
| 6827 |
|
*) |
| 6828 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6829 |
< |
$as_echo "${with_sysroot}" >&6; } |
| 6828 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 6829 |
> |
$as_echo "$with_sysroot" >&6; } |
| 6830 |
|
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6831 |
|
;; |
| 6832 |
|
esac |
| 6838 |
|
|
| 6839 |
|
|
| 6840 |
|
|
| 6841 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 6842 |
+ |
$as_echo_n "checking for a working dd... " >&6; } |
| 6843 |
+ |
if ${ac_cv_path_lt_DD+:} false; then : |
| 6844 |
+ |
$as_echo_n "(cached) " >&6 |
| 6845 |
+ |
else |
| 6846 |
+ |
printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6847 |
+ |
cat conftest.i conftest.i >conftest2.i |
| 6848 |
+ |
: ${lt_DD:=$DD} |
| 6849 |
+ |
if test -z "$lt_DD"; then |
| 6850 |
+ |
ac_path_lt_DD_found=false |
| 6851 |
+ |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 6852 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6853 |
+ |
for as_dir in $PATH |
| 6854 |
+ |
do |
| 6855 |
+ |
IFS=$as_save_IFS |
| 6856 |
+ |
test -z "$as_dir" && as_dir=. |
| 6857 |
+ |
for ac_prog in dd; do |
| 6858 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6859 |
+ |
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
| 6860 |
+ |
as_fn_executable_p "$ac_path_lt_DD" || continue |
| 6861 |
+ |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6862 |
+ |
cmp -s conftest.i conftest.out \ |
| 6863 |
+ |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 6864 |
+ |
fi |
| 6865 |
+ |
$ac_path_lt_DD_found && break 3 |
| 6866 |
+ |
done |
| 6867 |
+ |
done |
| 6868 |
+ |
done |
| 6869 |
+ |
IFS=$as_save_IFS |
| 6870 |
+ |
if test -z "$ac_cv_path_lt_DD"; then |
| 6871 |
+ |
: |
| 6872 |
+ |
fi |
| 6873 |
+ |
else |
| 6874 |
+ |
ac_cv_path_lt_DD=$lt_DD |
| 6875 |
+ |
fi |
| 6876 |
+ |
|
| 6877 |
+ |
rm -f conftest.i conftest2.i conftest.out |
| 6878 |
+ |
fi |
| 6879 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 6880 |
+ |
$as_echo "$ac_cv_path_lt_DD" >&6; } |
| 6881 |
+ |
|
| 6882 |
+ |
|
| 6883 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 6884 |
+ |
$as_echo_n "checking how to truncate binary pipes... " >&6; } |
| 6885 |
+ |
if ${lt_cv_truncate_bin+:} false; then : |
| 6886 |
+ |
$as_echo_n "(cached) " >&6 |
| 6887 |
+ |
else |
| 6888 |
+ |
printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6889 |
+ |
cat conftest.i conftest.i >conftest2.i |
| 6890 |
+ |
lt_cv_truncate_bin= |
| 6891 |
+ |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6892 |
+ |
cmp -s conftest.i conftest.out \ |
| 6893 |
+ |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 6894 |
+ |
fi |
| 6895 |
+ |
rm -f conftest.i conftest2.i conftest.out |
| 6896 |
+ |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 6897 |
+ |
fi |
| 6898 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 6899 |
+ |
$as_echo "$lt_cv_truncate_bin" >&6; } |
| 6900 |
+ |
|
| 6901 |
+ |
|
| 6902 |
+ |
|
| 6903 |
+ |
|
| 6904 |
+ |
|
| 6905 |
+ |
|
| 6906 |
+ |
|
| 6907 |
+ |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 6908 |
+ |
func_cc_basename () |
| 6909 |
+ |
{ |
| 6910 |
+ |
for cc_temp in $*""; do |
| 6911 |
+ |
case $cc_temp in |
| 6912 |
+ |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6913 |
+ |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6914 |
+ |
\-*) ;; |
| 6915 |
+ |
*) break;; |
| 6916 |
+ |
esac |
| 6917 |
+ |
done |
| 6918 |
+ |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 6919 |
+ |
} |
| 6920 |
+ |
|
| 6921 |
|
# Check whether --enable-libtool-lock was given. |
| 6922 |
|
if test "${enable_libtool_lock+set}" = set; then : |
| 6923 |
|
enableval=$enable_libtool_lock; |
| 6924 |
|
fi |
| 6925 |
|
|
| 6926 |
< |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6926 |
> |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 6927 |
|
|
| 6928 |
|
# Some flags need to be propagated to the compiler or linker for good |
| 6929 |
|
# libtool support. |
| 6930 |
|
case $host in |
| 6931 |
|
ia64-*-hpux*) |
| 6932 |
< |
# Find out which ABI we are using. |
| 6932 |
> |
# Find out what ABI is being produced by ac_compile, and set mode |
| 6933 |
> |
# options accordingly. |
| 6934 |
|
echo 'int i;' > conftest.$ac_ext |
| 6935 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6936 |
|
(eval $ac_compile) 2>&5 |
| 6939 |
|
test $ac_status = 0; }; then |
| 6940 |
|
case `/usr/bin/file conftest.$ac_objext` in |
| 6941 |
|
*ELF-32*) |
| 6942 |
< |
HPUX_IA64_MODE="32" |
| 6942 |
> |
HPUX_IA64_MODE=32 |
| 6943 |
|
;; |
| 6944 |
|
*ELF-64*) |
| 6945 |
< |
HPUX_IA64_MODE="64" |
| 6945 |
> |
HPUX_IA64_MODE=64 |
| 6946 |
|
;; |
| 6947 |
|
esac |
| 6948 |
|
fi |
| 6949 |
|
rm -rf conftest* |
| 6950 |
|
;; |
| 6951 |
|
*-*-irix6*) |
| 6952 |
< |
# Find out which ABI we are using. |
| 6952 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
| 6953 |
> |
# options accordingly. |
| 6954 |
|
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6955 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6956 |
|
(eval $ac_compile) 2>&5 |
| 6957 |
|
ac_status=$? |
| 6958 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6959 |
|
test $ac_status = 0; }; then |
| 6960 |
< |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6960 |
> |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 6961 |
|
case `/usr/bin/file conftest.$ac_objext` in |
| 6962 |
|
*32-bit*) |
| 6963 |
|
LD="${LD-ld} -melf32bsmip" |
| 6986 |
|
rm -rf conftest* |
| 6987 |
|
;; |
| 6988 |
|
|
| 6989 |
< |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6989 |
> |
mips64*-*linux*) |
| 6990 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
| 6991 |
> |
# options accordingly. |
| 6992 |
> |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6993 |
> |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6994 |
> |
(eval $ac_compile) 2>&5 |
| 6995 |
> |
ac_status=$? |
| 6996 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6997 |
> |
test $ac_status = 0; }; then |
| 6998 |
> |
emul=elf |
| 6999 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
| 7000 |
> |
*32-bit*) |
| 7001 |
> |
emul="${emul}32" |
| 7002 |
> |
;; |
| 7003 |
> |
*64-bit*) |
| 7004 |
> |
emul="${emul}64" |
| 7005 |
> |
;; |
| 7006 |
> |
esac |
| 7007 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
| 7008 |
> |
*MSB*) |
| 7009 |
> |
emul="${emul}btsmip" |
| 7010 |
> |
;; |
| 7011 |
> |
*LSB*) |
| 7012 |
> |
emul="${emul}ltsmip" |
| 7013 |
> |
;; |
| 7014 |
> |
esac |
| 7015 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
| 7016 |
> |
*N32*) |
| 7017 |
> |
emul="${emul}n32" |
| 7018 |
> |
;; |
| 7019 |
> |
esac |
| 7020 |
> |
LD="${LD-ld} -m $emul" |
| 7021 |
> |
fi |
| 7022 |
> |
rm -rf conftest* |
| 7023 |
> |
;; |
| 7024 |
> |
|
| 7025 |
> |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 7026 |
|
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 7027 |
< |
# Find out which ABI we are using. |
| 7027 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
| 7028 |
> |
# options accordingly. Note that the listed cases only cover the |
| 7029 |
> |
# situations where additional linker options are needed (such as when |
| 7030 |
> |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 7031 |
> |
# vice versa); the common cases where no linker options are needed do |
| 7032 |
> |
# not appear in the list. |
| 7033 |
|
echo 'int i;' > conftest.$ac_ext |
| 7034 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7035 |
|
(eval $ac_compile) 2>&5 |
| 7043 |
|
LD="${LD-ld} -m elf_i386_fbsd" |
| 7044 |
|
;; |
| 7045 |
|
x86_64-*linux*) |
| 7046 |
< |
LD="${LD-ld} -m elf_i386" |
| 7046 |
> |
case `/usr/bin/file conftest.o` in |
| 7047 |
> |
*x86-64*) |
| 7048 |
> |
LD="${LD-ld} -m elf32_x86_64" |
| 7049 |
> |
;; |
| 7050 |
> |
*) |
| 7051 |
> |
LD="${LD-ld} -m elf_i386" |
| 7052 |
> |
;; |
| 7053 |
> |
esac |
| 7054 |
|
;; |
| 7055 |
< |
ppc64-*linux*|powerpc64-*linux*) |
| 7055 |
> |
powerpc64le-*linux*) |
| 7056 |
> |
LD="${LD-ld} -m elf32lppclinux" |
| 7057 |
> |
;; |
| 7058 |
> |
powerpc64-*linux*) |
| 7059 |
|
LD="${LD-ld} -m elf32ppclinux" |
| 7060 |
|
;; |
| 7061 |
|
s390x-*linux*) |
| 7074 |
|
x86_64-*linux*) |
| 7075 |
|
LD="${LD-ld} -m elf_x86_64" |
| 7076 |
|
;; |
| 7077 |
< |
ppc*-*linux*|powerpc*-*linux*) |
| 7077 |
> |
powerpcle-*linux*) |
| 7078 |
> |
LD="${LD-ld} -m elf64lppc" |
| 7079 |
> |
;; |
| 7080 |
> |
powerpc-*linux*) |
| 7081 |
|
LD="${LD-ld} -m elf64ppc" |
| 7082 |
|
;; |
| 7083 |
|
s390*-*linux*|s390*-*tpf*) |
| 7095 |
|
|
| 7096 |
|
*-*-sco3.2v5*) |
| 7097 |
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 7098 |
< |
SAVE_CFLAGS="$CFLAGS" |
| 7098 |
> |
SAVE_CFLAGS=$CFLAGS |
| 7099 |
|
CFLAGS="$CFLAGS -belf" |
| 7100 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 7101 |
|
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 7135 |
|
fi |
| 7136 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 7137 |
|
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 7138 |
< |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 7138 |
> |
if test yes != "$lt_cv_cc_needs_belf"; then |
| 7139 |
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 7140 |
< |
CFLAGS="$SAVE_CFLAGS" |
| 7140 |
> |
CFLAGS=$SAVE_CFLAGS |
| 7141 |
|
fi |
| 7142 |
|
;; |
| 7143 |
|
*-*solaris*) |
| 7144 |
< |
# Find out which ABI we are using. |
| 7144 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
| 7145 |
> |
# options accordingly. |
| 7146 |
|
echo 'int i;' > conftest.$ac_ext |
| 7147 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7148 |
|
(eval $ac_compile) 2>&5 |
| 7154 |
|
case $lt_cv_prog_gnu_ld in |
| 7155 |
|
yes*) |
| 7156 |
|
case $host in |
| 7157 |
< |
i?86-*-solaris*) |
| 7157 |
> |
i?86-*-solaris*|x86_64-*-solaris*) |
| 7158 |
|
LD="${LD-ld} -m elf_x86_64" |
| 7159 |
|
;; |
| 7160 |
|
sparc*-*-solaris*) |
| 7163 |
|
esac |
| 7164 |
|
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 7165 |
|
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 7166 |
< |
LD="${LD-ld}_sol2" |
| 7166 |
> |
LD=${LD-ld}_sol2 |
| 7167 |
|
fi |
| 7168 |
|
;; |
| 7169 |
|
*) |
| 7179 |
|
;; |
| 7180 |
|
esac |
| 7181 |
|
|
| 7182 |
< |
need_locks="$enable_libtool_lock" |
| 7182 |
> |
need_locks=$enable_libtool_lock |
| 7183 |
|
|
| 7184 |
|
if test -n "$ac_tool_prefix"; then |
| 7185 |
|
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 7290 |
|
fi |
| 7291 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 7292 |
|
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 7293 |
< |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 7293 |
> |
if test yes != "$lt_cv_path_mainfest_tool"; then |
| 7294 |
|
MANIFEST_TOOL=: |
| 7295 |
|
fi |
| 7296 |
|
|
| 7793 |
|
$as_echo_n "(cached) " >&6 |
| 7794 |
|
else |
| 7795 |
|
lt_cv_apple_cc_single_mod=no |
| 7796 |
< |
if test -z "${LT_MULTI_MODULE}"; then |
| 7796 |
> |
if test -z "$LT_MULTI_MODULE"; then |
| 7797 |
|
# By default we will add the -single_module flag. You can override |
| 7798 |
|
# by either setting the environment variable LT_MULTI_MODULE |
| 7799 |
|
# non-empty at configure time, or by adding -multi_module to the |
| 7811 |
|
cat conftest.err >&5 |
| 7812 |
|
# Otherwise, if the output was created with a 0 exit code from |
| 7813 |
|
# the compiler, it worked. |
| 7814 |
< |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 7814 |
> |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 7815 |
|
lt_cv_apple_cc_single_mod=yes |
| 7816 |
|
else |
| 7817 |
|
cat conftest.err >&5 |
| 7850 |
|
fi |
| 7851 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 7852 |
|
conftest$ac_exeext conftest.$ac_ext |
| 7853 |
< |
LDFLAGS="$save_LDFLAGS" |
| 7853 |
> |
LDFLAGS=$save_LDFLAGS |
| 7854 |
|
|
| 7855 |
|
fi |
| 7856 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7879 |
|
_lt_result=$? |
| 7880 |
|
if test -s conftest.err && $GREP force_load conftest.err; then |
| 7881 |
|
cat conftest.err >&5 |
| 7882 |
< |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 7882 |
> |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 7883 |
|
lt_cv_ld_force_load=yes |
| 7884 |
|
else |
| 7885 |
|
cat conftest.err >&5 |
| 7892 |
|
$as_echo "$lt_cv_ld_force_load" >&6; } |
| 7893 |
|
case $host_os in |
| 7894 |
|
rhapsody* | darwin1.[012]) |
| 7895 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7895 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 7896 |
|
darwin1.*) |
| 7897 |
< |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7897 |
> |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 7898 |
|
darwin*) # darwin 5.x on |
| 7899 |
|
# if running on 10.5 or later, the deployment target defaults |
| 7900 |
|
# to the OS version, if on x86, and 10.4, the deployment |
| 7901 |
|
# target defaults to 10.4. Don't you love it? |
| 7902 |
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7903 |
|
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7904 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7905 |
< |
10.[012]*) |
| 7906 |
< |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7904 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 7905 |
> |
10.[012][,.]*) |
| 7906 |
> |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 7907 |
|
10.*) |
| 7908 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7908 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 7909 |
|
esac |
| 7910 |
|
;; |
| 7911 |
|
esac |
| 7912 |
< |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7912 |
> |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 7913 |
|
_lt_dar_single_mod='$single_module' |
| 7914 |
|
fi |
| 7915 |
< |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7916 |
< |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7915 |
> |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 7916 |
> |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 7917 |
|
else |
| 7918 |
< |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7918 |
> |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 7919 |
|
fi |
| 7920 |
< |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7920 |
> |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 7921 |
|
_lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7922 |
|
else |
| 7923 |
|
_lt_dsymutil= |
| 7925 |
|
;; |
| 7926 |
|
esac |
| 7927 |
|
|
| 7928 |
+ |
# func_munge_path_list VARIABLE PATH |
| 7929 |
+ |
# ----------------------------------- |
| 7930 |
+ |
# VARIABLE is name of variable containing _space_ separated list of |
| 7931 |
+ |
# directories to be munged by the contents of PATH, which is string |
| 7932 |
+ |
# having a format: |
| 7933 |
+ |
# "DIR[:DIR]:" |
| 7934 |
+ |
# string "DIR[ DIR]" will be prepended to VARIABLE |
| 7935 |
+ |
# ":DIR[:DIR]" |
| 7936 |
+ |
# string "DIR[ DIR]" will be appended to VARIABLE |
| 7937 |
+ |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
| 7938 |
+ |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 7939 |
+ |
# "DIRA[ DIRA]" will be appended to VARIABLE |
| 7940 |
+ |
# "DIR[:DIR]" |
| 7941 |
+ |
# VARIABLE will be replaced by "DIR[ DIR]" |
| 7942 |
+ |
func_munge_path_list () |
| 7943 |
+ |
{ |
| 7944 |
+ |
case x$2 in |
| 7945 |
+ |
x) |
| 7946 |
+ |
;; |
| 7947 |
+ |
*:) |
| 7948 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 7949 |
+ |
;; |
| 7950 |
+ |
x:*) |
| 7951 |
+ |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 7952 |
+ |
;; |
| 7953 |
+ |
*::*) |
| 7954 |
+ |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 7955 |
+ |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 7956 |
+ |
;; |
| 7957 |
+ |
*) |
| 7958 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 7959 |
+ |
;; |
| 7960 |
+ |
esac |
| 7961 |
+ |
} |
| 7962 |
+ |
|
| 7963 |
|
ac_ext=c |
| 7964 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 7965 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8255 |
|
*) |
| 8256 |
|
enable_static=no |
| 8257 |
|
# Look at the argument we got. We use all the common list separators. |
| 8258 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8258 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 8259 |
|
for pkg in $enableval; do |
| 8260 |
< |
IFS="$lt_save_ifs" |
| 8260 |
> |
IFS=$lt_save_ifs |
| 8261 |
|
if test "X$pkg" = "X$p"; then |
| 8262 |
|
enable_static=yes |
| 8263 |
|
fi |
| 8264 |
|
done |
| 8265 |
< |
IFS="$lt_save_ifs" |
| 8265 |
> |
IFS=$lt_save_ifs |
| 8266 |
|
;; |
| 8267 |
|
esac |
| 8268 |
|
else |
| 8291 |
|
*) |
| 8292 |
|
enable_shared=no |
| 8293 |
|
# Look at the argument we got. We use all the common list separators. |
| 8294 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8294 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 8295 |
|
for pkg in $enableval; do |
| 8296 |
< |
IFS="$lt_save_ifs" |
| 8296 |
> |
IFS=$lt_save_ifs |
| 8297 |
|
if test "X$pkg" = "X$p"; then |
| 8298 |
|
enable_shared=yes |
| 8299 |
|
fi |
| 8300 |
|
done |
| 8301 |
< |
IFS="$lt_save_ifs" |
| 8301 |
> |
IFS=$lt_save_ifs |
| 8302 |
|
;; |
| 8303 |
|
esac |
| 8304 |
|
else |
| 8323 |
|
*) |
| 8324 |
|
pic_mode=default |
| 8325 |
|
# Look at the argument we got. We use all the common list separators. |
| 8326 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8326 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 8327 |
|
for lt_pkg in $withval; do |
| 8328 |
< |
IFS="$lt_save_ifs" |
| 8328 |
> |
IFS=$lt_save_ifs |
| 8329 |
|
if test "X$lt_pkg" = "X$lt_p"; then |
| 8330 |
|
pic_mode=yes |
| 8331 |
|
fi |
| 8332 |
|
done |
| 8333 |
< |
IFS="$lt_save_ifs" |
| 8333 |
> |
IFS=$lt_save_ifs |
| 8334 |
|
;; |
| 8335 |
|
esac |
| 8336 |
|
else |
| 8338 |
|
fi |
| 8339 |
|
|
| 8340 |
|
|
| 8094 |
– |
test -z "$pic_mode" && pic_mode=default |
| 8095 |
– |
|
| 8341 |
|
|
| 8342 |
|
|
| 8343 |
|
|
| 8353 |
|
*) |
| 8354 |
|
enable_fast_install=no |
| 8355 |
|
# Look at the argument we got. We use all the common list separators. |
| 8356 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8356 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 8357 |
|
for pkg in $enableval; do |
| 8358 |
< |
IFS="$lt_save_ifs" |
| 8358 |
> |
IFS=$lt_save_ifs |
| 8359 |
|
if test "X$pkg" = "X$p"; then |
| 8360 |
|
enable_fast_install=yes |
| 8361 |
|
fi |
| 8362 |
|
done |
| 8363 |
< |
IFS="$lt_save_ifs" |
| 8363 |
> |
IFS=$lt_save_ifs |
| 8364 |
|
;; |
| 8365 |
|
esac |
| 8366 |
|
else |
| 8374 |
|
|
| 8375 |
|
|
| 8376 |
|
|
| 8377 |
+ |
shared_archive_member_spec= |
| 8378 |
+ |
case $host,$enable_shared in |
| 8379 |
+ |
power*-*-aix[5-9]*,yes) |
| 8380 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 8381 |
+ |
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
| 8382 |
+ |
|
| 8383 |
+ |
# Check whether --with-aix-soname was given. |
| 8384 |
+ |
if test "${with_aix_soname+set}" = set; then : |
| 8385 |
+ |
withval=$with_aix_soname; case $withval in |
| 8386 |
+ |
aix|svr4|both) |
| 8387 |
+ |
;; |
| 8388 |
+ |
*) |
| 8389 |
+ |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 8390 |
+ |
;; |
| 8391 |
+ |
esac |
| 8392 |
+ |
lt_cv_with_aix_soname=$with_aix_soname |
| 8393 |
+ |
else |
| 8394 |
+ |
if ${lt_cv_with_aix_soname+:} false; then : |
| 8395 |
+ |
$as_echo_n "(cached) " >&6 |
| 8396 |
+ |
else |
| 8397 |
+ |
lt_cv_with_aix_soname=aix |
| 8398 |
+ |
fi |
| 8399 |
+ |
|
| 8400 |
+ |
with_aix_soname=$lt_cv_with_aix_soname |
| 8401 |
+ |
fi |
| 8402 |
+ |
|
| 8403 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 8404 |
+ |
$as_echo "$with_aix_soname" >&6; } |
| 8405 |
+ |
if test aix != "$with_aix_soname"; then |
| 8406 |
+ |
# For the AIX way of multilib, we name the shared archive member |
| 8407 |
+ |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 8408 |
+ |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 8409 |
+ |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 8410 |
+ |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 8411 |
+ |
if test 64 = "${OBJECT_MODE-32}"; then |
| 8412 |
+ |
shared_archive_member_spec=shr_64 |
| 8413 |
+ |
else |
| 8414 |
+ |
shared_archive_member_spec=shr |
| 8415 |
+ |
fi |
| 8416 |
+ |
fi |
| 8417 |
+ |
;; |
| 8418 |
+ |
*) |
| 8419 |
+ |
with_aix_soname=aix |
| 8420 |
+ |
;; |
| 8421 |
+ |
esac |
| 8422 |
+ |
|
| 8423 |
+ |
|
| 8424 |
+ |
|
| 8425 |
+ |
|
| 8426 |
+ |
|
| 8427 |
+ |
|
| 8428 |
+ |
|
| 8429 |
|
|
| 8430 |
|
|
| 8431 |
|
|
| 8432 |
|
# This can be used to rebuild libtool when needed |
| 8433 |
< |
LIBTOOL_DEPS="$ltmain" |
| 8433 |
> |
LIBTOOL_DEPS=$ltmain |
| 8434 |
|
|
| 8435 |
|
# Always use our own libtool. |
| 8436 |
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8479 |
|
|
| 8480 |
|
|
| 8481 |
|
|
| 8482 |
< |
if test -n "${ZSH_VERSION+set}" ; then |
| 8482 |
> |
if test -n "${ZSH_VERSION+set}"; then |
| 8483 |
|
setopt NO_GLOB_SUBST |
| 8484 |
|
fi |
| 8485 |
|
|
| 8518 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
| 8519 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8520 |
|
# vanish in a puff of smoke. |
| 8521 |
< |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8521 |
> |
if test set != "${COLLECT_NAMES+set}"; then |
| 8522 |
|
COLLECT_NAMES= |
| 8523 |
|
export COLLECT_NAMES |
| 8524 |
|
fi |
| 8529 |
|
ofile=libtool |
| 8530 |
|
can_build_shared=yes |
| 8531 |
|
|
| 8532 |
< |
# All known linkers require a `.a' archive for static linking (except MSVC, |
| 8532 |
> |
# All known linkers require a '.a' archive for static linking (except MSVC, |
| 8533 |
|
# which needs '.lib'). |
| 8534 |
|
libext=a |
| 8535 |
|
|
| 8536 |
< |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8536 |
> |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 8537 |
|
|
| 8538 |
< |
old_CC="$CC" |
| 8539 |
< |
old_CFLAGS="$CFLAGS" |
| 8538 |
> |
old_CC=$CC |
| 8539 |
> |
old_CFLAGS=$CFLAGS |
| 8540 |
|
|
| 8541 |
|
# Set sane defaults for various variables |
| 8542 |
|
test -z "$CC" && CC=cc |
| 8545 |
|
test -z "$LD" && LD=ld |
| 8546 |
|
test -z "$ac_objext" && ac_objext=o |
| 8547 |
|
|
| 8548 |
< |
for cc_temp in $compiler""; do |
| 8549 |
< |
case $cc_temp in |
| 8253 |
< |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8254 |
< |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8255 |
< |
\-*) ;; |
| 8256 |
< |
*) break;; |
| 8257 |
< |
esac |
| 8258 |
< |
done |
| 8259 |
< |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8548 |
> |
func_cc_basename $compiler |
| 8549 |
> |
cc_basename=$func_cc_basename_result |
| 8550 |
|
|
| 8551 |
|
|
| 8552 |
|
# Only perform the check for file, if the check method requires it |
| 8561 |
|
else |
| 8562 |
|
case $MAGIC_CMD in |
| 8563 |
|
[\\/*] | ?:[\\/]*) |
| 8564 |
< |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8564 |
> |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 8565 |
|
;; |
| 8566 |
|
*) |
| 8567 |
< |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8568 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8567 |
> |
lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8568 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8569 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8570 |
|
for ac_dir in $ac_dummy; do |
| 8571 |
< |
IFS="$lt_save_ifs" |
| 8571 |
> |
IFS=$lt_save_ifs |
| 8572 |
|
test -z "$ac_dir" && ac_dir=. |
| 8573 |
< |
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8574 |
< |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8573 |
> |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 8574 |
> |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 8575 |
|
if test -n "$file_magic_test_file"; then |
| 8576 |
|
case $deplibs_check_method in |
| 8577 |
|
"file_magic "*) |
| 8578 |
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8579 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8579 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8580 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8581 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
| 8582 |
|
: |
| 8599 |
|
break |
| 8600 |
|
fi |
| 8601 |
|
done |
| 8602 |
< |
IFS="$lt_save_ifs" |
| 8603 |
< |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8602 |
> |
IFS=$lt_save_ifs |
| 8603 |
> |
MAGIC_CMD=$lt_save_MAGIC_CMD |
| 8604 |
|
;; |
| 8605 |
|
esac |
| 8606 |
|
fi |
| 8607 |
|
|
| 8608 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8608 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8609 |
|
if test -n "$MAGIC_CMD"; then |
| 8610 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8611 |
|
$as_echo "$MAGIC_CMD" >&6; } |
| 8627 |
|
else |
| 8628 |
|
case $MAGIC_CMD in |
| 8629 |
|
[\\/*] | ?:[\\/]*) |
| 8630 |
< |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8630 |
> |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 8631 |
|
;; |
| 8632 |
|
*) |
| 8633 |
< |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8634 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8633 |
> |
lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8634 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8635 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8636 |
|
for ac_dir in $ac_dummy; do |
| 8637 |
< |
IFS="$lt_save_ifs" |
| 8637 |
> |
IFS=$lt_save_ifs |
| 8638 |
|
test -z "$ac_dir" && ac_dir=. |
| 8639 |
< |
if test -f $ac_dir/file; then |
| 8640 |
< |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8639 |
> |
if test -f "$ac_dir/file"; then |
| 8640 |
> |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 8641 |
|
if test -n "$file_magic_test_file"; then |
| 8642 |
|
case $deplibs_check_method in |
| 8643 |
|
"file_magic "*) |
| 8644 |
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8645 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8645 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8646 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8647 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
| 8648 |
|
: |
| 8665 |
|
break |
| 8666 |
|
fi |
| 8667 |
|
done |
| 8668 |
< |
IFS="$lt_save_ifs" |
| 8669 |
< |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8668 |
> |
IFS=$lt_save_ifs |
| 8669 |
> |
MAGIC_CMD=$lt_save_MAGIC_CMD |
| 8670 |
|
;; |
| 8671 |
|
esac |
| 8672 |
|
fi |
| 8673 |
|
|
| 8674 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8674 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8675 |
|
if test -n "$MAGIC_CMD"; then |
| 8676 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8677 |
|
$as_echo "$MAGIC_CMD" >&6; } |
| 8692 |
|
|
| 8693 |
|
# Use C for the default configuration in the libtool script |
| 8694 |
|
|
| 8695 |
< |
lt_save_CC="$CC" |
| 8695 |
> |
lt_save_CC=$CC |
| 8696 |
|
ac_ext=c |
| 8697 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 8698 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8746 |
|
$RM -r conftest* |
| 8747 |
|
|
| 8748 |
|
|
| 8749 |
+ |
## CAVEAT EMPTOR: |
| 8750 |
+ |
## There is no encapsulation within the following macros, do not change |
| 8751 |
+ |
## the running order or otherwise move them around unless you know exactly |
| 8752 |
+ |
## what you are doing... |
| 8753 |
|
if test -n "$compiler"; then |
| 8754 |
|
|
| 8755 |
|
lt_prog_compiler_no_builtin_flag= |
| 8756 |
|
|
| 8757 |
< |
if test "$GCC" = yes; then |
| 8757 |
> |
if test yes = "$GCC"; then |
| 8758 |
|
case $cc_basename in |
| 8759 |
|
nvcc*) |
| 8760 |
|
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8770 |
|
lt_cv_prog_compiler_rtti_exceptions=no |
| 8771 |
|
ac_outfile=conftest.$ac_objext |
| 8772 |
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8773 |
< |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8773 |
> |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 8774 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 8775 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 8776 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 8800 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8801 |
|
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8802 |
|
|
| 8803 |
< |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8803 |
> |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 8804 |
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8805 |
|
else |
| 8806 |
|
: |
| 8818 |
|
lt_prog_compiler_static= |
| 8819 |
|
|
| 8820 |
|
|
| 8821 |
< |
if test "$GCC" = yes; then |
| 8821 |
> |
if test yes = "$GCC"; then |
| 8822 |
|
lt_prog_compiler_wl='-Wl,' |
| 8823 |
|
lt_prog_compiler_static='-static' |
| 8824 |
|
|
| 8825 |
|
case $host_os in |
| 8826 |
|
aix*) |
| 8827 |
|
# All AIX code is PIC. |
| 8828 |
< |
if test "$host_cpu" = ia64; then |
| 8828 |
> |
if test ia64 = "$host_cpu"; then |
| 8829 |
|
# AIX 5 now supports IA64 processor |
| 8830 |
|
lt_prog_compiler_static='-Bstatic' |
| 8831 |
|
fi |
| 8832 |
+ |
lt_prog_compiler_pic='-fPIC' |
| 8833 |
|
;; |
| 8834 |
|
|
| 8835 |
|
amigaos*) |
| 8840 |
|
;; |
| 8841 |
|
m68k) |
| 8842 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
| 8843 |
< |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 8844 |
< |
# like `-m68040'. |
| 8843 |
> |
# adding the '-m68020' flag to GCC prevents building anything better, |
| 8844 |
> |
# like '-m68040'. |
| 8845 |
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8846 |
|
;; |
| 8847 |
|
esac |
| 8857 |
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8858 |
|
# (--disable-auto-import) libraries |
| 8859 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8860 |
+ |
case $host_os in |
| 8861 |
+ |
os2*) |
| 8862 |
+ |
lt_prog_compiler_static='$wl-static' |
| 8863 |
+ |
;; |
| 8864 |
+ |
esac |
| 8865 |
|
;; |
| 8866 |
|
|
| 8867 |
|
darwin* | rhapsody*) |
| 8932 |
|
case $host_os in |
| 8933 |
|
aix*) |
| 8934 |
|
lt_prog_compiler_wl='-Wl,' |
| 8935 |
< |
if test "$host_cpu" = ia64; then |
| 8935 |
> |
if test ia64 = "$host_cpu"; then |
| 8936 |
|
# AIX 5 now supports IA64 processor |
| 8937 |
|
lt_prog_compiler_static='-Bstatic' |
| 8938 |
|
else |
| 8940 |
|
fi |
| 8941 |
|
;; |
| 8942 |
|
|
| 8943 |
+ |
darwin* | rhapsody*) |
| 8944 |
+ |
# PIC is the default on this platform |
| 8945 |
+ |
# Common symbols not allowed in MH_DYLIB files |
| 8946 |
+ |
lt_prog_compiler_pic='-fno-common' |
| 8947 |
+ |
case $cc_basename in |
| 8948 |
+ |
nagfor*) |
| 8949 |
+ |
# NAG Fortran compiler |
| 8950 |
+ |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8951 |
+ |
lt_prog_compiler_pic='-PIC' |
| 8952 |
+ |
lt_prog_compiler_static='-Bstatic' |
| 8953 |
+ |
;; |
| 8954 |
+ |
esac |
| 8955 |
+ |
;; |
| 8956 |
+ |
|
| 8957 |
|
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8958 |
|
# This hack is so that the source file can tell whether it is being |
| 8959 |
|
# built for inclusion in a dll (and should export symbols for example). |
| 8960 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8961 |
+ |
case $host_os in |
| 8962 |
+ |
os2*) |
| 8963 |
+ |
lt_prog_compiler_static='$wl-static' |
| 8964 |
+ |
;; |
| 8965 |
+ |
esac |
| 8966 |
|
;; |
| 8967 |
|
|
| 8968 |
|
hpux9* | hpux10* | hpux11*) |
| 8978 |
|
;; |
| 8979 |
|
esac |
| 8980 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8981 |
< |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8981 |
> |
lt_prog_compiler_static='$wl-a ${wl}archive' |
| 8982 |
|
;; |
| 8983 |
|
|
| 8984 |
|
irix5* | irix6* | nonstopux*) |
| 8987 |
|
lt_prog_compiler_static='-non_shared' |
| 8988 |
|
;; |
| 8989 |
|
|
| 8990 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8990 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 8991 |
|
case $cc_basename in |
| 8992 |
< |
# old Intel for x86_64 which still supported -KPIC. |
| 8992 |
> |
# old Intel for x86_64, which still supported -KPIC. |
| 8993 |
|
ecc*) |
| 8994 |
|
lt_prog_compiler_wl='-Wl,' |
| 8995 |
|
lt_prog_compiler_pic='-KPIC' |
| 9014 |
|
lt_prog_compiler_pic='-PIC' |
| 9015 |
|
lt_prog_compiler_static='-Bstatic' |
| 9016 |
|
;; |
| 9017 |
+ |
tcc*) |
| 9018 |
+ |
# Fabrice Bellard et al's Tiny C Compiler |
| 9019 |
+ |
lt_prog_compiler_wl='-Wl,' |
| 9020 |
+ |
lt_prog_compiler_pic='-fPIC' |
| 9021 |
+ |
lt_prog_compiler_static='-static' |
| 9022 |
+ |
;; |
| 9023 |
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9024 |
|
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 9025 |
|
# which looks to be a dead project) |
| 9117 |
|
;; |
| 9118 |
|
|
| 9119 |
|
sysv4*MP*) |
| 9120 |
< |
if test -d /usr/nec ;then |
| 9120 |
> |
if test -d /usr/nec; then |
| 9121 |
|
lt_prog_compiler_pic='-Kconform_pic' |
| 9122 |
|
lt_prog_compiler_static='-Bstatic' |
| 9123 |
|
fi |
| 9146 |
|
fi |
| 9147 |
|
|
| 9148 |
|
case $host_os in |
| 9149 |
< |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 9149 |
> |
# For platforms that do not support PIC, -DPIC is meaningless: |
| 9150 |
|
*djgpp*) |
| 9151 |
|
lt_prog_compiler_pic= |
| 9152 |
|
;; |
| 9178 |
|
lt_cv_prog_compiler_pic_works=no |
| 9179 |
|
ac_outfile=conftest.$ac_objext |
| 9180 |
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9181 |
< |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 9181 |
> |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 9182 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 9183 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 9184 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 9208 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 9209 |
|
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 9210 |
|
|
| 9211 |
< |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 9211 |
> |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 9212 |
|
case $lt_prog_compiler_pic in |
| 9213 |
|
"" | " "*) ;; |
| 9214 |
|
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 9240 |
|
$as_echo_n "(cached) " >&6 |
| 9241 |
|
else |
| 9242 |
|
lt_cv_prog_compiler_static_works=no |
| 9243 |
< |
save_LDFLAGS="$LDFLAGS" |
| 9243 |
> |
save_LDFLAGS=$LDFLAGS |
| 9244 |
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 9245 |
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9246 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9259 |
|
fi |
| 9260 |
|
fi |
| 9261 |
|
$RM -r conftest* |
| 9262 |
< |
LDFLAGS="$save_LDFLAGS" |
| 9262 |
> |
LDFLAGS=$save_LDFLAGS |
| 9263 |
|
|
| 9264 |
|
fi |
| 9265 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 9266 |
|
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 9267 |
|
|
| 9268 |
< |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 9268 |
> |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 9269 |
|
: |
| 9270 |
|
else |
| 9271 |
|
lt_prog_compiler_static= |
| 9385 |
|
|
| 9386 |
|
|
| 9387 |
|
|
| 9388 |
< |
hard_links="nottested" |
| 9389 |
< |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9388 |
> |
hard_links=nottested |
| 9389 |
> |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 9390 |
|
# do not overwrite the value of need_locks provided by the user |
| 9391 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9392 |
|
$as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9398 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9399 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9400 |
|
$as_echo "$hard_links" >&6; } |
| 9401 |
< |
if test "$hard_links" = no; then |
| 9402 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9403 |
< |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9401 |
> |
if test no = "$hard_links"; then |
| 9402 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 9403 |
> |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 9404 |
|
need_locks=warn |
| 9405 |
|
fi |
| 9406 |
|
else |
| 9443 |
|
# included in the symbol list |
| 9444 |
|
include_expsyms= |
| 9445 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 9446 |
< |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9447 |
< |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9448 |
< |
# as well as any symbol that contains `d'. |
| 9446 |
> |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 9447 |
> |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 9448 |
> |
# as well as any symbol that contains 'd'. |
| 9449 |
|
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9450 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9451 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 9460 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9461 |
|
# When not using gcc, we currently assume that we are using |
| 9462 |
|
# Microsoft Visual C++. |
| 9463 |
< |
if test "$GCC" != yes; then |
| 9463 |
> |
if test yes != "$GCC"; then |
| 9464 |
|
with_gnu_ld=no |
| 9465 |
|
fi |
| 9466 |
|
;; |
| 9468 |
|
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9469 |
|
with_gnu_ld=yes |
| 9470 |
|
;; |
| 9471 |
< |
openbsd*) |
| 9471 |
> |
openbsd* | bitrig*) |
| 9472 |
|
with_gnu_ld=no |
| 9473 |
|
;; |
| 9474 |
|
esac |
| 9478 |
|
# On some targets, GNU ld is compatible enough with the native linker |
| 9479 |
|
# that we're better off using the native interface for both. |
| 9480 |
|
lt_use_gnu_ld_interface=no |
| 9481 |
< |
if test "$with_gnu_ld" = yes; then |
| 9481 |
> |
if test yes = "$with_gnu_ld"; then |
| 9482 |
|
case $host_os in |
| 9483 |
|
aix*) |
| 9484 |
|
# The AIX port of GNU ld has always aspired to compatibility |
| 9500 |
|
esac |
| 9501 |
|
fi |
| 9502 |
|
|
| 9503 |
< |
if test "$lt_use_gnu_ld_interface" = yes; then |
| 9503 |
> |
if test yes = "$lt_use_gnu_ld_interface"; then |
| 9504 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 9505 |
< |
wlarc='${wl}' |
| 9505 |
> |
wlarc='$wl' |
| 9506 |
|
|
| 9507 |
|
# Set some defaults for GNU ld with shared library support. These |
| 9508 |
|
# are reset later if shared libraries are not supported. Putting them |
| 9509 |
|
# here allows them to be overridden if necessary. |
| 9510 |
|
runpath_var=LD_RUN_PATH |
| 9511 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9512 |
< |
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9511 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9512 |
> |
export_dynamic_flag_spec='$wl--export-dynamic' |
| 9513 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
| 9514 |
|
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9515 |
< |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9515 |
> |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 9516 |
|
else |
| 9517 |
|
whole_archive_flag_spec= |
| 9518 |
|
fi |
| 9519 |
|
supports_anon_versioning=no |
| 9520 |
< |
case `$LD -v 2>&1` in |
| 9520 |
> |
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
| 9521 |
|
*GNU\ gold*) supports_anon_versioning=yes ;; |
| 9522 |
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9523 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9530 |
|
case $host_os in |
| 9531 |
|
aix[3-9]*) |
| 9532 |
|
# On AIX/PPC, the GNU linker is very broken |
| 9533 |
< |
if test "$host_cpu" != ia64; then |
| 9533 |
> |
if test ia64 != "$host_cpu"; then |
| 9534 |
|
ld_shlibs=no |
| 9535 |
|
cat <<_LT_EOF 1>&2 |
| 9536 |
|
|
| 9549 |
|
case $host_cpu in |
| 9550 |
|
powerpc) |
| 9551 |
|
# see comment about AmigaOS4 .so support |
| 9552 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9552 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9553 |
|
archive_expsym_cmds='' |
| 9554 |
|
;; |
| 9555 |
|
m68k) |
| 9565 |
|
allow_undefined_flag=unsupported |
| 9566 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9567 |
|
# support --undefined. This deserves some investigation. FIXME |
| 9568 |
< |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9568 |
> |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9569 |
|
else |
| 9570 |
|
ld_shlibs=no |
| 9571 |
|
fi |
| 9575 |
|
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9576 |
|
# as there is no search path for DLLs. |
| 9577 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 9578 |
< |
export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 9578 |
> |
export_dynamic_flag_spec='$wl--export-all-symbols' |
| 9579 |
|
allow_undefined_flag=unsupported |
| 9580 |
|
always_export_symbols=no |
| 9581 |
|
enable_shared_with_static_runtimes=yes |
| 9583 |
|
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9584 |
|
|
| 9585 |
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9586 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9587 |
< |
# If the export-symbols file already is a .def file (1st line |
| 9588 |
< |
# is EXPORTS), use it as is; otherwise, prepend... |
| 9589 |
< |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9590 |
< |
cp $export_symbols $output_objdir/$soname.def; |
| 9591 |
< |
else |
| 9592 |
< |
echo EXPORTS > $output_objdir/$soname.def; |
| 9593 |
< |
cat $export_symbols >> $output_objdir/$soname.def; |
| 9594 |
< |
fi~ |
| 9595 |
< |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9586 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9587 |
> |
# If the export-symbols file already is a .def file, use it as |
| 9588 |
> |
# is; otherwise, prepend EXPORTS... |
| 9589 |
> |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 9590 |
> |
cp $export_symbols $output_objdir/$soname.def; |
| 9591 |
> |
else |
| 9592 |
> |
echo EXPORTS > $output_objdir/$soname.def; |
| 9593 |
> |
cat $export_symbols >> $output_objdir/$soname.def; |
| 9594 |
> |
fi~ |
| 9595 |
> |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9596 |
|
else |
| 9597 |
|
ld_shlibs=no |
| 9598 |
|
fi |
| 9599 |
|
;; |
| 9600 |
|
|
| 9601 |
|
haiku*) |
| 9602 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9602 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9603 |
|
link_all_deplibs=yes |
| 9604 |
|
;; |
| 9605 |
|
|
| 9606 |
+ |
os2*) |
| 9607 |
+ |
hardcode_libdir_flag_spec='-L$libdir' |
| 9608 |
+ |
hardcode_minus_L=yes |
| 9609 |
+ |
allow_undefined_flag=unsupported |
| 9610 |
+ |
shrext_cmds=.dll |
| 9611 |
+ |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9612 |
+ |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9613 |
+ |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9614 |
+ |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9615 |
+ |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 9616 |
+ |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9617 |
+ |
emximp -o $lib $output_objdir/$libname.def' |
| 9618 |
+ |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9619 |
+ |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9620 |
+ |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9621 |
+ |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9622 |
+ |
prefix_cmds="$SED"~ |
| 9623 |
+ |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 9624 |
+ |
prefix_cmds="$prefix_cmds -e 1d"; |
| 9625 |
+ |
fi~ |
| 9626 |
+ |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 9627 |
+ |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 9628 |
+ |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9629 |
+ |
emximp -o $lib $output_objdir/$libname.def' |
| 9630 |
+ |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 9631 |
+ |
enable_shared_with_static_runtimes=yes |
| 9632 |
+ |
;; |
| 9633 |
+ |
|
| 9634 |
|
interix[3-9]*) |
| 9635 |
|
hardcode_direct=no |
| 9636 |
|
hardcode_shlibpath_var=no |
| 9637 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9638 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 9637 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 9638 |
> |
export_dynamic_flag_spec='$wl-E' |
| 9639 |
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9640 |
|
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9641 |
|
# default) and relocated if they conflict, which is a slow very memory |
| 9642 |
|
# consuming and fragmenting process. To avoid this, we pick a random, |
| 9643 |
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9644 |
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9645 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9646 |
< |
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9645 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9646 |
> |
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' |
| 9647 |
|
;; |
| 9648 |
|
|
| 9649 |
|
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9650 |
|
tmp_diet=no |
| 9651 |
< |
if test "$host_os" = linux-dietlibc; then |
| 9651 |
> |
if test linux-dietlibc = "$host_os"; then |
| 9652 |
|
case $cc_basename in |
| 9653 |
|
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9654 |
|
esac |
| 9655 |
|
fi |
| 9656 |
|
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9657 |
< |
&& test "$tmp_diet" = no |
| 9657 |
> |
&& test no = "$tmp_diet" |
| 9658 |
|
then |
| 9659 |
|
tmp_addflag=' $pic_flag' |
| 9660 |
|
tmp_sharedflag='-shared' |
| 9661 |
|
case $cc_basename,$host_cpu in |
| 9662 |
|
pgcc*) # Portland Group C compiler |
| 9663 |
< |
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' |
| 9663 |
> |
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 |
|
tmp_addflag=' $pic_flag' |
| 9665 |
|
;; |
| 9666 |
|
pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9667 |
|
# Portland Group f77 and f90 compilers |
| 9668 |
< |
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' |
| 9668 |
> |
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 |
|
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9670 |
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9671 |
|
tmp_addflag=' -i_dynamic' ;; |
| 9676 |
|
lf95*) # Lahey Fortran 8.1 |
| 9677 |
|
whole_archive_flag_spec= |
| 9678 |
|
tmp_sharedflag='--shared' ;; |
| 9679 |
+ |
nagfor*) # NAGFOR 5.3 |
| 9680 |
+ |
tmp_sharedflag='-Wl,-shared' ;; |
| 9681 |
|
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9682 |
|
tmp_sharedflag='-qmkshrobj' |
| 9683 |
|
tmp_addflag= ;; |
| 9684 |
|
nvcc*) # Cuda Compiler Driver 2.2 |
| 9685 |
< |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9685 |
> |
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 |
|
compiler_needs_object=yes |
| 9687 |
|
;; |
| 9688 |
|
esac |
| 9689 |
|
case `$CC -V 2>&1 | sed 5q` in |
| 9690 |
|
*Sun\ C*) # Sun C 5.9 |
| 9691 |
< |
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' |
| 9691 |
> |
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 |
|
compiler_needs_object=yes |
| 9693 |
|
tmp_sharedflag='-G' ;; |
| 9694 |
|
*Sun\ F*) # Sun Fortran 8.3 |
| 9695 |
|
tmp_sharedflag='-G' ;; |
| 9696 |
|
esac |
| 9697 |
< |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9697 |
> |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9698 |
|
|
| 9699 |
< |
if test "x$supports_anon_versioning" = xyes; then |
| 9699 |
> |
if test yes = "$supports_anon_versioning"; then |
| 9700 |
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9701 |
< |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9702 |
< |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9703 |
< |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9701 |
> |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9702 |
> |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9703 |
> |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 9704 |
|
fi |
| 9705 |
|
|
| 9706 |
|
case $cc_basename in |
| 9707 |
+ |
tcc*) |
| 9708 |
+ |
export_dynamic_flag_spec='-rdynamic' |
| 9709 |
+ |
;; |
| 9710 |
|
xlf* | bgf* | bgxlf* | mpixlf*) |
| 9711 |
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9712 |
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9713 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9713 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9714 |
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9715 |
< |
if test "x$supports_anon_versioning" = xyes; then |
| 9715 |
> |
if test yes = "$supports_anon_versioning"; then |
| 9716 |
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9717 |
< |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9718 |
< |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9719 |
< |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9717 |
> |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9718 |
> |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9719 |
> |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9720 |
|
fi |
| 9721 |
|
;; |
| 9722 |
|
esac |
| 9730 |
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9731 |
|
wlarc= |
| 9732 |
|
else |
| 9733 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9734 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9733 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9734 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9735 |
|
fi |
| 9736 |
|
;; |
| 9737 |
|
|
| 9749 |
|
|
| 9750 |
|
_LT_EOF |
| 9751 |
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9752 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9753 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9752 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9753 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9754 |
|
else |
| 9755 |
|
ld_shlibs=no |
| 9756 |
|
fi |
| 9762 |
|
ld_shlibs=no |
| 9763 |
|
cat <<_LT_EOF 1>&2 |
| 9764 |
|
|
| 9765 |
< |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9765 |
> |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 9766 |
|
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9767 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 9768 |
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9777 |
|
# DT_RUNPATH tag from executables and libraries. But doing so |
| 9778 |
|
# requires that you compile everything twice, which is a pain. |
| 9779 |
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9780 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9781 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9782 |
< |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9780 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9781 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9782 |
> |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9783 |
|
else |
| 9784 |
|
ld_shlibs=no |
| 9785 |
|
fi |
| 9796 |
|
|
| 9797 |
|
*) |
| 9798 |
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9799 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9800 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9799 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9800 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9801 |
|
else |
| 9802 |
|
ld_shlibs=no |
| 9803 |
|
fi |
| 9804 |
|
;; |
| 9805 |
|
esac |
| 9806 |
|
|
| 9807 |
< |
if test "$ld_shlibs" = no; then |
| 9807 |
> |
if test no = "$ld_shlibs"; then |
| 9808 |
|
runpath_var= |
| 9809 |
|
hardcode_libdir_flag_spec= |
| 9810 |
|
export_dynamic_flag_spec= |
| 9820 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
| 9821 |
|
# are no directories specified by -L. |
| 9822 |
|
hardcode_minus_L=yes |
| 9823 |
< |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9823 |
> |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 9824 |
|
# Neither direct hardcoding nor static linking is supported with a |
| 9825 |
|
# broken collect2. |
| 9826 |
|
hardcode_direct=unsupported |
| 9828 |
|
;; |
| 9829 |
|
|
| 9830 |
|
aix[4-9]*) |
| 9831 |
< |
if test "$host_cpu" = ia64; then |
| 9831 |
> |
if test ia64 = "$host_cpu"; then |
| 9832 |
|
# On IA64, the linker does run time linking by default, so we don't |
| 9833 |
|
# have to do anything special. |
| 9834 |
|
aix_use_runtimelinking=no |
| 9835 |
|
exp_sym_flag='-Bexport' |
| 9836 |
< |
no_entry_flag="" |
| 9836 |
> |
no_entry_flag= |
| 9837 |
|
else |
| 9838 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
| 9839 |
< |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9840 |
< |
# Also, AIX nm treats weak defined symbols like other global |
| 9841 |
< |
# defined symbols, whereas GNU nm marks them as "W". |
| 9839 |
> |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 9840 |
> |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
| 9841 |
> |
# weak defined symbols like other global defined symbols, whereas |
| 9842 |
> |
# GNU nm marks them as "W". |
| 9843 |
> |
# While the 'weak' keyword is ignored in the Export File, we need |
| 9844 |
> |
# it in the Import File for the 'aix-soname' feature, so we have |
| 9845 |
> |
# to replace the "-B" option with "-P" for AIX nm. |
| 9846 |
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9847 |
< |
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' |
| 9847 |
> |
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' |
| 9848 |
|
else |
| 9849 |
< |
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' |
| 9849 |
> |
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' |
| 9850 |
|
fi |
| 9851 |
|
aix_use_runtimelinking=no |
| 9852 |
|
|
| 9853 |
|
# Test if we are trying to use run time linking or normal |
| 9854 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9855 |
< |
# need to do runtime linking. |
| 9855 |
> |
# have runtime linking enabled, and use it for executables. |
| 9856 |
> |
# For shared libraries, we enable/disable runtime linking |
| 9857 |
> |
# depending on the kind of the shared library created - |
| 9858 |
> |
# when "with_aix_soname,aix_use_runtimelinking" is: |
| 9859 |
> |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 9860 |
> |
# "aix,yes" lib.so shared, rtl:yes, for executables |
| 9861 |
> |
# lib.a static archive |
| 9862 |
> |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 9863 |
> |
# lib.a(lib.so.V) shared, rtl:no, for executables |
| 9864 |
> |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 9865 |
> |
# lib.a(lib.so.V) shared, rtl:no |
| 9866 |
> |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 9867 |
> |
# lib.a static archive |
| 9868 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9869 |
|
for ld_flag in $LDFLAGS; do |
| 9870 |
< |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9870 |
> |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 9871 |
|
aix_use_runtimelinking=yes |
| 9872 |
|
break |
| 9873 |
|
fi |
| 9874 |
|
done |
| 9875 |
+ |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 9876 |
+ |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 9877 |
+ |
# so we don't have lib.a shared libs to link our executables. |
| 9878 |
+ |
# We have to force runtime linking in this case. |
| 9879 |
+ |
aix_use_runtimelinking=yes |
| 9880 |
+ |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 9881 |
+ |
fi |
| 9882 |
|
;; |
| 9883 |
|
esac |
| 9884 |
|
|
| 9897 |
|
hardcode_direct_absolute=yes |
| 9898 |
|
hardcode_libdir_separator=':' |
| 9899 |
|
link_all_deplibs=yes |
| 9900 |
< |
file_list_spec='${wl}-f,' |
| 9900 |
> |
file_list_spec='$wl-f,' |
| 9901 |
> |
case $with_aix_soname,$aix_use_runtimelinking in |
| 9902 |
> |
aix,*) ;; # traditional, no import file |
| 9903 |
> |
svr4,* | *,yes) # use import file |
| 9904 |
> |
# The Import File defines what to hardcode. |
| 9905 |
> |
hardcode_direct=no |
| 9906 |
> |
hardcode_direct_absolute=no |
| 9907 |
> |
;; |
| 9908 |
> |
esac |
| 9909 |
|
|
| 9910 |
< |
if test "$GCC" = yes; then |
| 9910 |
> |
if test yes = "$GCC"; then |
| 9911 |
|
case $host_os in aix4.[012]|aix4.[012].*) |
| 9912 |
|
# We only want to do this on AIX 4.2 and lower, the check |
| 9913 |
|
# below for broken collect2 doesn't work under 4.3+ |
| 9914 |
< |
collect2name=`${CC} -print-prog-name=collect2` |
| 9914 |
> |
collect2name=`$CC -print-prog-name=collect2` |
| 9915 |
|
if test -f "$collect2name" && |
| 9916 |
|
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9917 |
|
then |
| 9930 |
|
;; |
| 9931 |
|
esac |
| 9932 |
|
shared_flag='-shared' |
| 9933 |
< |
if test "$aix_use_runtimelinking" = yes; then |
| 9934 |
< |
shared_flag="$shared_flag "'${wl}-G' |
| 9933 |
> |
if test yes = "$aix_use_runtimelinking"; then |
| 9934 |
> |
shared_flag="$shared_flag "'$wl-G' |
| 9935 |
|
fi |
| 9936 |
+ |
# Need to ensure runtime linking is disabled for the traditional |
| 9937 |
+ |
# shared library, or the linker may eventually find shared libraries |
| 9938 |
+ |
# /with/ Import File - we do not want to mix them. |
| 9939 |
+ |
shared_flag_aix='-shared' |
| 9940 |
+ |
shared_flag_svr4='-shared $wl-G' |
| 9941 |
|
else |
| 9942 |
|
# not using gcc |
| 9943 |
< |
if test "$host_cpu" = ia64; then |
| 9943 |
> |
if test ia64 = "$host_cpu"; then |
| 9944 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9945 |
|
# chokes on -Wl,-G. The following line is correct: |
| 9946 |
|
shared_flag='-G' |
| 9947 |
|
else |
| 9948 |
< |
if test "$aix_use_runtimelinking" = yes; then |
| 9949 |
< |
shared_flag='${wl}-G' |
| 9948 |
> |
if test yes = "$aix_use_runtimelinking"; then |
| 9949 |
> |
shared_flag='$wl-G' |
| 9950 |
|
else |
| 9951 |
< |
shared_flag='${wl}-bM:SRE' |
| 9951 |
> |
shared_flag='$wl-bM:SRE' |
| 9952 |
|
fi |
| 9953 |
+ |
shared_flag_aix='$wl-bM:SRE' |
| 9954 |
+ |
shared_flag_svr4='$wl-G' |
| 9955 |
|
fi |
| 9956 |
|
fi |
| 9957 |
|
|
| 9958 |
< |
export_dynamic_flag_spec='${wl}-bexpall' |
| 9958 |
> |
export_dynamic_flag_spec='$wl-bexpall' |
| 9959 |
|
# It seems that -bexpall does not export symbols beginning with |
| 9960 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
| 9961 |
|
always_export_symbols=yes |
| 9962 |
< |
if test "$aix_use_runtimelinking" = yes; then |
| 9962 |
> |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 9963 |
|
# Warning - without using the other runtime loading flags (-brtl), |
| 9964 |
|
# -berok will link without error, but may produce a broken library. |
| 9965 |
|
allow_undefined_flag='-berok' |
| 9966 |
|
# Determine the default libpath from the value encoded in an |
| 9967 |
|
# empty executable. |
| 9968 |
< |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 9968 |
> |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 9969 |
|
aix_libpath=$lt_cv_aix_libpath |
| 9970 |
|
else |
| 9971 |
|
if ${lt_cv_aix_libpath_+:} false; then : |
| 10000 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 10001 |
|
conftest$ac_exeext conftest.$ac_ext |
| 10002 |
|
if test -z "$lt_cv_aix_libpath_"; then |
| 10003 |
< |
lt_cv_aix_libpath_="/usr/lib:/lib" |
| 10003 |
> |
lt_cv_aix_libpath_=/usr/lib:/lib |
| 10004 |
|
fi |
| 10005 |
|
|
| 10006 |
|
fi |
| 10008 |
|
aix_libpath=$lt_cv_aix_libpath_ |
| 10009 |
|
fi |
| 10010 |
|
|
| 10011 |
< |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10012 |
< |
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" |
| 10011 |
> |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 10012 |
> |
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 |
| 10013 |
|
else |
| 10014 |
< |
if test "$host_cpu" = ia64; then |
| 10015 |
< |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 10014 |
> |
if test ia64 = "$host_cpu"; then |
| 10015 |
> |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 10016 |
|
allow_undefined_flag="-z nodefs" |
| 10017 |
< |
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" |
| 10017 |
> |
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 |
|
else |
| 10019 |
|
# Determine the default libpath from the value encoded in an |
| 10020 |
|
# empty executable. |
| 10021 |
< |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 10021 |
> |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 10022 |
|
aix_libpath=$lt_cv_aix_libpath |
| 10023 |
|
else |
| 10024 |
|
if ${lt_cv_aix_libpath_+:} false; then : |
| 10053 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 10054 |
|
conftest$ac_exeext conftest.$ac_ext |
| 10055 |
|
if test -z "$lt_cv_aix_libpath_"; then |
| 10056 |
< |
lt_cv_aix_libpath_="/usr/lib:/lib" |
| 10056 |
> |
lt_cv_aix_libpath_=/usr/lib:/lib |
| 10057 |
|
fi |
| 10058 |
|
|
| 10059 |
|
fi |
| 10061 |
|
aix_libpath=$lt_cv_aix_libpath_ |
| 10062 |
|
fi |
| 10063 |
|
|
| 10064 |
< |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10064 |
> |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 10065 |
|
# Warning - without using the other run time loading flags, |
| 10066 |
|
# -berok will link without error, but may produce a broken library. |
| 10067 |
< |
no_undefined_flag=' ${wl}-bernotok' |
| 10068 |
< |
allow_undefined_flag=' ${wl}-berok' |
| 10069 |
< |
if test "$with_gnu_ld" = yes; then |
| 10067 |
> |
no_undefined_flag=' $wl-bernotok' |
| 10068 |
> |
allow_undefined_flag=' $wl-berok' |
| 10069 |
> |
if test yes = "$with_gnu_ld"; then |
| 10070 |
|
# We only use this code for GNU lds that support --whole-archive. |
| 10071 |
< |
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10071 |
> |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 10072 |
|
else |
| 10073 |
|
# Exported symbols can be pulled into shared objects from archives |
| 10074 |
|
whole_archive_flag_spec='$convenience' |
| 10075 |
|
fi |
| 10076 |
|
archive_cmds_need_lc=yes |
| 10077 |
< |
# This is similar to how AIX traditionally builds its shared libraries. |
| 10078 |
< |
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' |
| 10077 |
> |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 10078 |
> |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
| 10079 |
> |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 10080 |
> |
if test svr4 != "$with_aix_soname"; then |
| 10081 |
> |
# This is similar to how AIX traditionally builds its shared libraries. |
| 10082 |
> |
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' |
| 10083 |
> |
fi |
| 10084 |
> |
if test aix != "$with_aix_soname"; then |
| 10085 |
> |
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' |
| 10086 |
> |
else |
| 10087 |
> |
# used by -dlpreopen to get the symbols |
| 10088 |
> |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 10089 |
> |
fi |
| 10090 |
> |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 10091 |
|
fi |
| 10092 |
|
fi |
| 10093 |
|
;; |
| 10096 |
|
case $host_cpu in |
| 10097 |
|
powerpc) |
| 10098 |
|
# see comment about AmigaOS4 .so support |
| 10099 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10099 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10100 |
|
archive_expsym_cmds='' |
| 10101 |
|
;; |
| 10102 |
|
m68k) |
| 10126 |
|
# Tell ltmain to make .lib files, not .a files. |
| 10127 |
|
libext=lib |
| 10128 |
|
# Tell ltmain to make .dll files, not .so files. |
| 10129 |
< |
shrext_cmds=".dll" |
| 10129 |
> |
shrext_cmds=.dll |
| 10130 |
|
# FIXME: Setting linknames here is a bad hack. |
| 10131 |
< |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 10132 |
< |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10133 |
< |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 10134 |
< |
else |
| 10135 |
< |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 10136 |
< |
fi~ |
| 10137 |
< |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 10138 |
< |
linknames=' |
| 10131 |
> |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 10132 |
> |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 10133 |
> |
cp "$export_symbols" "$output_objdir/$soname.def"; |
| 10134 |
> |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 10135 |
> |
else |
| 10136 |
> |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $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=' |
| 10140 |
|
# The linker will not automatically build a static lib if we build a DLL. |
| 10141 |
|
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 10142 |
|
enable_shared_with_static_runtimes=yes |
| 10145 |
|
# Don't use ranlib |
| 10146 |
|
old_postinstall_cmds='chmod 644 $oldlib' |
| 10147 |
|
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 10148 |
< |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 10149 |
< |
case $lt_outputfile in |
| 10150 |
< |
*.exe|*.EXE) ;; |
| 10151 |
< |
*) |
| 10152 |
< |
lt_outputfile="$lt_outputfile.exe" |
| 10153 |
< |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 10154 |
< |
;; |
| 10155 |
< |
esac~ |
| 10156 |
< |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 10157 |
< |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 10158 |
< |
$RM "$lt_outputfile.manifest"; |
| 10159 |
< |
fi' |
| 10148 |
> |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 10149 |
> |
case $lt_outputfile in |
| 10150 |
> |
*.exe|*.EXE) ;; |
| 10151 |
> |
*) |
| 10152 |
> |
lt_outputfile=$lt_outputfile.exe |
| 10153 |
> |
lt_tool_outputfile=$lt_tool_outputfile.exe |
| 10154 |
> |
;; |
| 10155 |
> |
esac~ |
| 10156 |
> |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 10157 |
> |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 10158 |
> |
$RM "$lt_outputfile.manifest"; |
| 10159 |
> |
fi' |
| 10160 |
|
;; |
| 10161 |
|
*) |
| 10162 |
|
# Assume MSVC wrapper |
| 10165 |
|
# Tell ltmain to make .lib files, not .a files. |
| 10166 |
|
libext=lib |
| 10167 |
|
# Tell ltmain to make .dll files, not .so files. |
| 10168 |
< |
shrext_cmds=".dll" |
| 10168 |
> |
shrext_cmds=.dll |
| 10169 |
|
# FIXME: Setting linknames here is a bad hack. |
| 10170 |
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 10171 |
|
# The linker will automatically build a .lib file if we build a DLL. |
| 10184 |
|
hardcode_direct=no |
| 10185 |
|
hardcode_automatic=yes |
| 10186 |
|
hardcode_shlibpath_var=unsupported |
| 10187 |
< |
if test "$lt_cv_ld_force_load" = "yes"; then |
| 10188 |
< |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 10187 |
> |
if test yes = "$lt_cv_ld_force_load"; then |
| 10188 |
> |
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\"`' |
| 10189 |
|
|
| 10190 |
|
else |
| 10191 |
|
whole_archive_flag_spec='' |
| 10192 |
|
fi |
| 10193 |
|
link_all_deplibs=yes |
| 10194 |
< |
allow_undefined_flag="$_lt_dar_allow_undefined" |
| 10194 |
> |
allow_undefined_flag=$_lt_dar_allow_undefined |
| 10195 |
|
case $cc_basename in |
| 10196 |
< |
ifort*) _lt_dar_can_shared=yes ;; |
| 10196 |
> |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 10197 |
|
*) _lt_dar_can_shared=$GCC ;; |
| 10198 |
|
esac |
| 10199 |
< |
if test "$_lt_dar_can_shared" = "yes"; then |
| 10199 |
> |
if test yes = "$_lt_dar_can_shared"; then |
| 10200 |
|
output_verbose_link_cmd=func_echo_all |
| 10201 |
< |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 10202 |
< |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 10203 |
< |
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}" |
| 10204 |
< |
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}" |
| 10201 |
> |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 10202 |
> |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 10203 |
> |
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" |
| 10204 |
> |
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" |
| 10205 |
|
|
| 10206 |
|
else |
| 10207 |
|
ld_shlibs=no |
| 10243 |
|
;; |
| 10244 |
|
|
| 10245 |
|
hpux9*) |
| 10246 |
< |
if test "$GCC" = yes; then |
| 10247 |
< |
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' |
| 10246 |
> |
if test yes = "$GCC"; then |
| 10247 |
> |
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' |
| 10248 |
|
else |
| 10249 |
< |
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' |
| 10249 |
> |
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' |
| 10250 |
|
fi |
| 10251 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10251 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 10252 |
|
hardcode_libdir_separator=: |
| 10253 |
|
hardcode_direct=yes |
| 10254 |
|
|
| 10255 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 10256 |
|
# but as the default location of the library. |
| 10257 |
|
hardcode_minus_L=yes |
| 10258 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 10258 |
> |
export_dynamic_flag_spec='$wl-E' |
| 10259 |
|
;; |
| 10260 |
|
|
| 10261 |
|
hpux10*) |
| 10262 |
< |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10263 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10262 |
> |
if test yes,no = "$GCC,$with_gnu_ld"; then |
| 10263 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10264 |
|
else |
| 10265 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10266 |
|
fi |
| 10267 |
< |
if test "$with_gnu_ld" = no; then |
| 10268 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10267 |
> |
if test no = "$with_gnu_ld"; then |
| 10268 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 10269 |
|
hardcode_libdir_separator=: |
| 10270 |
|
hardcode_direct=yes |
| 10271 |
|
hardcode_direct_absolute=yes |
| 10272 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 10272 |
> |
export_dynamic_flag_spec='$wl-E' |
| 10273 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 10274 |
|
# but as the default location of the library. |
| 10275 |
|
hardcode_minus_L=yes |
| 10277 |
|
;; |
| 10278 |
|
|
| 10279 |
|
hpux11*) |
| 10280 |
< |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10280 |
> |
if test yes,no = "$GCC,$with_gnu_ld"; then |
| 10281 |
|
case $host_cpu in |
| 10282 |
|
hppa*64*) |
| 10283 |
< |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10283 |
> |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10284 |
|
;; |
| 10285 |
|
ia64*) |
| 10286 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10286 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10287 |
|
;; |
| 10288 |
|
*) |
| 10289 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10289 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10290 |
|
;; |
| 10291 |
|
esac |
| 10292 |
|
else |
| 10293 |
|
case $host_cpu in |
| 10294 |
|
hppa*64*) |
| 10295 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10295 |
> |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10296 |
|
;; |
| 10297 |
|
ia64*) |
| 10298 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10298 |
> |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10299 |
|
;; |
| 10300 |
|
*) |
| 10301 |
|
|
| 10307 |
|
$as_echo_n "(cached) " >&6 |
| 10308 |
|
else |
| 10309 |
|
lt_cv_prog_compiler__b=no |
| 10310 |
< |
save_LDFLAGS="$LDFLAGS" |
| 10310 |
> |
save_LDFLAGS=$LDFLAGS |
| 10311 |
|
LDFLAGS="$LDFLAGS -b" |
| 10312 |
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10313 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10326 |
|
fi |
| 10327 |
|
fi |
| 10328 |
|
$RM -r conftest* |
| 10329 |
< |
LDFLAGS="$save_LDFLAGS" |
| 10329 |
> |
LDFLAGS=$save_LDFLAGS |
| 10330 |
|
|
| 10331 |
|
fi |
| 10332 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 10333 |
|
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 10334 |
|
|
| 10335 |
< |
if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 10336 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10335 |
> |
if test yes = "$lt_cv_prog_compiler__b"; then |
| 10336 |
> |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10337 |
|
else |
| 10338 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10339 |
|
fi |
| 10341 |
|
;; |
| 10342 |
|
esac |
| 10343 |
|
fi |
| 10344 |
< |
if test "$with_gnu_ld" = no; then |
| 10345 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10344 |
> |
if test no = "$with_gnu_ld"; then |
| 10345 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 10346 |
|
hardcode_libdir_separator=: |
| 10347 |
|
|
| 10348 |
|
case $host_cpu in |
| 10353 |
|
*) |
| 10354 |
|
hardcode_direct=yes |
| 10355 |
|
hardcode_direct_absolute=yes |
| 10356 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 10356 |
> |
export_dynamic_flag_spec='$wl-E' |
| 10357 |
|
|
| 10358 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 10359 |
|
# but as the default location of the library. |
| 10364 |
|
;; |
| 10365 |
|
|
| 10366 |
|
irix5* | irix6* | nonstopux*) |
| 10367 |
< |
if test "$GCC" = yes; then |
| 10368 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 10367 |
> |
if test yes = "$GCC"; then |
| 10368 |
> |
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' |
| 10369 |
|
# Try to use the -exported_symbol ld option, if it does not |
| 10370 |
|
# work, assume that -exports_file does not work either and |
| 10371 |
|
# implicitly export all symbols. |
| 10375 |
|
if ${lt_cv_irix_exported_symbol+:} false; then : |
| 10376 |
|
$as_echo_n "(cached) " >&6 |
| 10377 |
|
else |
| 10378 |
< |
save_LDFLAGS="$LDFLAGS" |
| 10379 |
< |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 10378 |
> |
save_LDFLAGS=$LDFLAGS |
| 10379 |
> |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 10380 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10381 |
|
/* end confdefs.h. */ |
| 10382 |
|
int foo (void) { return 0; } |
| 10388 |
|
fi |
| 10389 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 10390 |
|
conftest$ac_exeext conftest.$ac_ext |
| 10391 |
< |
LDFLAGS="$save_LDFLAGS" |
| 10391 |
> |
LDFLAGS=$save_LDFLAGS |
| 10392 |
|
fi |
| 10393 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 10394 |
|
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 10395 |
< |
if test "$lt_cv_irix_exported_symbol" = yes; then |
| 10396 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 10395 |
> |
if test yes = "$lt_cv_irix_exported_symbol"; then |
| 10396 |
> |
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' |
| 10397 |
|
fi |
| 10398 |
|
else |
| 10399 |
< |
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' |
| 10400 |
< |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 10399 |
> |
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' |
| 10400 |
> |
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' |
| 10401 |
|
fi |
| 10402 |
|
archive_cmds_need_lc='no' |
| 10403 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10403 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10404 |
|
hardcode_libdir_separator=: |
| 10405 |
|
inherit_rpath=yes |
| 10406 |
|
link_all_deplibs=yes |
| 10407 |
|
;; |
| 10408 |
|
|
| 10409 |
+ |
linux*) |
| 10410 |
+ |
case $cc_basename in |
| 10411 |
+ |
tcc*) |
| 10412 |
+ |
# Fabrice Bellard et al's Tiny C Compiler |
| 10413 |
+ |
ld_shlibs=yes |
| 10414 |
+ |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10415 |
+ |
;; |
| 10416 |
+ |
esac |
| 10417 |
+ |
;; |
| 10418 |
+ |
|
| 10419 |
|
netbsd*) |
| 10420 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10421 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10430 |
|
newsos6) |
| 10431 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10432 |
|
hardcode_direct=yes |
| 10433 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10433 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10434 |
|
hardcode_libdir_separator=: |
| 10435 |
|
hardcode_shlibpath_var=no |
| 10436 |
|
;; |
| 10438 |
|
*nto* | *qnx*) |
| 10439 |
|
;; |
| 10440 |
|
|
| 10441 |
< |
openbsd*) |
| 10441 |
> |
openbsd* | bitrig*) |
| 10442 |
|
if test -f /usr/libexec/ld.so; then |
| 10443 |
|
hardcode_direct=yes |
| 10444 |
|
hardcode_shlibpath_var=no |
| 10445 |
|
hardcode_direct_absolute=yes |
| 10446 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10446 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 10447 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10448 |
< |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10449 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10450 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 10448 |
> |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 10449 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 10450 |
> |
export_dynamic_flag_spec='$wl-E' |
| 10451 |
|
else |
| 10452 |
< |
case $host_os in |
| 10453 |
< |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 10035 |
< |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10036 |
< |
hardcode_libdir_flag_spec='-R$libdir' |
| 10037 |
< |
;; |
| 10038 |
< |
*) |
| 10039 |
< |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10040 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10041 |
< |
;; |
| 10042 |
< |
esac |
| 10452 |
> |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10453 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 10454 |
|
fi |
| 10455 |
|
else |
| 10456 |
|
ld_shlibs=no |
| 10461 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 10462 |
|
hardcode_minus_L=yes |
| 10463 |
|
allow_undefined_flag=unsupported |
| 10464 |
< |
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' |
| 10465 |
< |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10464 |
> |
shrext_cmds=.dll |
| 10465 |
> |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10466 |
> |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10467 |
> |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10468 |
> |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10469 |
> |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 10470 |
> |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10471 |
> |
emximp -o $lib $output_objdir/$libname.def' |
| 10472 |
> |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10473 |
> |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10474 |
> |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10475 |
> |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10476 |
> |
prefix_cmds="$SED"~ |
| 10477 |
> |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 10478 |
> |
prefix_cmds="$prefix_cmds -e 1d"; |
| 10479 |
> |
fi~ |
| 10480 |
> |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 10481 |
> |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 10482 |
> |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10483 |
> |
emximp -o $lib $output_objdir/$libname.def' |
| 10484 |
> |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 10485 |
> |
enable_shared_with_static_runtimes=yes |
| 10486 |
|
;; |
| 10487 |
|
|
| 10488 |
|
osf3*) |
| 10489 |
< |
if test "$GCC" = yes; then |
| 10490 |
< |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10491 |
< |
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' |
| 10489 |
> |
if test yes = "$GCC"; then |
| 10490 |
> |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 10491 |
> |
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' |
| 10492 |
|
else |
| 10493 |
|
allow_undefined_flag=' -expect_unresolved \*' |
| 10494 |
< |
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' |
| 10494 |
> |
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 |
|
fi |
| 10496 |
|
archive_cmds_need_lc='no' |
| 10497 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10497 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10498 |
|
hardcode_libdir_separator=: |
| 10499 |
|
;; |
| 10500 |
|
|
| 10501 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10502 |
< |
if test "$GCC" = yes; then |
| 10503 |
< |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10504 |
< |
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' |
| 10505 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10502 |
> |
if test yes = "$GCC"; then |
| 10503 |
> |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 10504 |
> |
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' |
| 10505 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10506 |
|
else |
| 10507 |
|
allow_undefined_flag=' -expect_unresolved \*' |
| 10508 |
< |
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' |
| 10508 |
> |
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_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~ |
| 10510 |
< |
$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' |
| 10510 |
> |
$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 |
|
|
| 10512 |
|
# Both c and cxx compiler support -rpath directly |
| 10513 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
| 10518 |
|
|
| 10519 |
|
solaris*) |
| 10520 |
|
no_undefined_flag=' -z defs' |
| 10521 |
< |
if test "$GCC" = yes; then |
| 10522 |
< |
wlarc='${wl}' |
| 10523 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10521 |
> |
if test yes = "$GCC"; then |
| 10522 |
> |
wlarc='$wl' |
| 10523 |
> |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10524 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10525 |
< |
$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' |
| 10525 |
> |
$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 |
|
else |
| 10527 |
|
case `$CC -V 2>&1` in |
| 10528 |
|
*"Compilers 5.0"*) |
| 10529 |
|
wlarc='' |
| 10530 |
< |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10530 |
> |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10531 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10532 |
< |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10532 |
> |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10533 |
|
;; |
| 10534 |
|
*) |
| 10535 |
< |
wlarc='${wl}' |
| 10536 |
< |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10535 |
> |
wlarc='$wl' |
| 10536 |
> |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10537 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10538 |
< |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10538 |
> |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10539 |
|
;; |
| 10540 |
|
esac |
| 10541 |
|
fi |
| 10545 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10546 |
|
*) |
| 10547 |
|
# The compiler driver will combine and reorder linker options, |
| 10548 |
< |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10548 |
> |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
| 10549 |
|
# but is careful enough not to reorder. |
| 10550 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10551 |
< |
if test "$GCC" = yes; then |
| 10552 |
< |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10551 |
> |
if test yes = "$GCC"; then |
| 10552 |
> |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 10553 |
|
else |
| 10554 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10555 |
|
fi |
| 10559 |
|
;; |
| 10560 |
|
|
| 10561 |
|
sunos4*) |
| 10562 |
< |
if test "x$host_vendor" = xsequent; then |
| 10562 |
> |
if test sequent = "$host_vendor"; then |
| 10563 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
| 10564 |
|
# files that make .init and .fini sections work. |
| 10565 |
< |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10565 |
> |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10566 |
|
else |
| 10567 |
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10568 |
|
fi |
| 10611 |
|
;; |
| 10612 |
|
|
| 10613 |
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10614 |
< |
no_undefined_flag='${wl}-z,text' |
| 10614 |
> |
no_undefined_flag='$wl-z,text' |
| 10615 |
|
archive_cmds_need_lc=no |
| 10616 |
|
hardcode_shlibpath_var=no |
| 10617 |
|
runpath_var='LD_RUN_PATH' |
| 10618 |
|
|
| 10619 |
< |
if test "$GCC" = yes; then |
| 10620 |
< |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10621 |
< |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10619 |
> |
if test yes = "$GCC"; then |
| 10620 |
> |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10621 |
> |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10622 |
|
else |
| 10623 |
< |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10624 |
< |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10623 |
> |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10624 |
> |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10625 |
|
fi |
| 10626 |
|
;; |
| 10627 |
|
|
| 10628 |
|
sysv5* | sco3.2v5* | sco5v6*) |
| 10629 |
< |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 10629 |
> |
# Note: We CANNOT use -z defs as we might desire, because we do not |
| 10630 |
|
# link with -lc, and that would cause any symbols used from libc to |
| 10631 |
|
# always be unresolved, which means just about no library would |
| 10632 |
|
# ever link correctly. If we're not using GNU ld we use -z text |
| 10633 |
|
# though, which does catch some bad symbols but isn't as heavy-handed |
| 10634 |
|
# as -z defs. |
| 10635 |
< |
no_undefined_flag='${wl}-z,text' |
| 10636 |
< |
allow_undefined_flag='${wl}-z,nodefs' |
| 10635 |
> |
no_undefined_flag='$wl-z,text' |
| 10636 |
> |
allow_undefined_flag='$wl-z,nodefs' |
| 10637 |
|
archive_cmds_need_lc=no |
| 10638 |
|
hardcode_shlibpath_var=no |
| 10639 |
< |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 10639 |
> |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 10640 |
|
hardcode_libdir_separator=':' |
| 10641 |
|
link_all_deplibs=yes |
| 10642 |
< |
export_dynamic_flag_spec='${wl}-Bexport' |
| 10642 |
> |
export_dynamic_flag_spec='$wl-Bexport' |
| 10643 |
|
runpath_var='LD_RUN_PATH' |
| 10644 |
|
|
| 10645 |
< |
if test "$GCC" = yes; then |
| 10646 |
< |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10647 |
< |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10645 |
> |
if test yes = "$GCC"; then |
| 10646 |
> |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10647 |
> |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10648 |
|
else |
| 10649 |
< |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10650 |
< |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10649 |
> |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10650 |
> |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10651 |
|
fi |
| 10652 |
|
;; |
| 10653 |
|
|
| 10662 |
|
;; |
| 10663 |
|
esac |
| 10664 |
|
|
| 10665 |
< |
if test x$host_vendor = xsni; then |
| 10665 |
> |
if test sni = "$host_vendor"; then |
| 10666 |
|
case $host in |
| 10667 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10668 |
< |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10668 |
> |
export_dynamic_flag_spec='$wl-Blargedynsym' |
| 10669 |
|
;; |
| 10670 |
|
esac |
| 10671 |
|
fi |
| 10673 |
|
|
| 10674 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 10675 |
|
$as_echo "$ld_shlibs" >&6; } |
| 10676 |
< |
test "$ld_shlibs" = no && can_build_shared=no |
| 10676 |
> |
test no = "$ld_shlibs" && can_build_shared=no |
| 10677 |
|
|
| 10678 |
|
with_gnu_ld=$with_gnu_ld |
| 10679 |
|
|
| 10699 |
|
# Assume -lc should be added |
| 10700 |
|
archive_cmds_need_lc=yes |
| 10701 |
|
|
| 10702 |
< |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10702 |
> |
if test yes,yes = "$GCC,$enable_shared"; then |
| 10703 |
|
case $archive_cmds in |
| 10704 |
|
*'~'*) |
| 10705 |
|
# FIXME: we may have to deal with multi-command sequences. |
| 10914 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10915 |
|
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10916 |
|
|
| 10917 |
< |
if test "$GCC" = yes; then |
| 10917 |
> |
if test yes = "$GCC"; then |
| 10918 |
|
case $host_os in |
| 10919 |
< |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10920 |
< |
*) lt_awk_arg="/^libraries:/" ;; |
| 10919 |
> |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 10920 |
> |
*) lt_awk_arg='/^libraries:/' ;; |
| 10921 |
|
esac |
| 10922 |
|
case $host_os in |
| 10923 |
< |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10924 |
< |
*) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10923 |
> |
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 10924 |
> |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
| 10925 |
|
esac |
| 10926 |
|
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10927 |
|
case $lt_search_path_spec in |
| 10937 |
|
;; |
| 10938 |
|
esac |
| 10939 |
|
# Ok, now we have the path, separated by spaces, we can step through it |
| 10940 |
< |
# and add multilib dir if necessary. |
| 10940 |
> |
# and add multilib dir if necessary... |
| 10941 |
|
lt_tmp_lt_search_path_spec= |
| 10942 |
< |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10942 |
> |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10943 |
> |
# ...but if some path component already ends with the multilib dir we assume |
| 10944 |
> |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 10945 |
> |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 10946 |
> |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 10947 |
> |
lt_multi_os_dir= |
| 10948 |
> |
;; |
| 10949 |
> |
esac |
| 10950 |
|
for lt_sys_path in $lt_search_path_spec; do |
| 10951 |
< |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10952 |
< |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10953 |
< |
else |
| 10951 |
> |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 10952 |
> |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 10953 |
> |
elif test -n "$lt_multi_os_dir"; then |
| 10954 |
|
test -d "$lt_sys_path" && \ |
| 10955 |
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10956 |
|
fi |
| 10957 |
|
done |
| 10958 |
|
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10959 |
< |
BEGIN {RS=" "; FS="/|\n";} { |
| 10960 |
< |
lt_foo=""; |
| 10961 |
< |
lt_count=0; |
| 10959 |
> |
BEGIN {RS = " "; FS = "/|\n";} { |
| 10960 |
> |
lt_foo = ""; |
| 10961 |
> |
lt_count = 0; |
| 10962 |
|
for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10963 |
|
if ($lt_i != "" && $lt_i != ".") { |
| 10964 |
|
if ($lt_i == "..") { |
| 10965 |
|
lt_count++; |
| 10966 |
|
} else { |
| 10967 |
|
if (lt_count == 0) { |
| 10968 |
< |
lt_foo="/" $lt_i lt_foo; |
| 10968 |
> |
lt_foo = "/" $lt_i lt_foo; |
| 10969 |
|
} else { |
| 10970 |
|
lt_count--; |
| 10971 |
|
} |
| 10979 |
|
# for these hosts. |
| 10980 |
|
case $host_os in |
| 10981 |
|
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10982 |
< |
$SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10982 |
> |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 10983 |
|
esac |
| 10984 |
|
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10985 |
|
else |
| 10988 |
|
library_names_spec= |
| 10989 |
|
libname_spec='lib$name' |
| 10990 |
|
soname_spec= |
| 10991 |
< |
shrext_cmds=".so" |
| 10991 |
> |
shrext_cmds=.so |
| 10992 |
|
postinstall_cmds= |
| 10993 |
|
postuninstall_cmds= |
| 10994 |
|
finish_cmds= |
| 11005 |
|
# flags to be left without arguments |
| 11006 |
|
need_version=unknown |
| 11007 |
|
|
| 11008 |
+ |
|
| 11009 |
+ |
|
| 11010 |
|
case $host_os in |
| 11011 |
|
aix3*) |
| 11012 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11013 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11013 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 11014 |
|
shlibpath_var=LIBPATH |
| 11015 |
|
|
| 11016 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
| 11017 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11017 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11018 |
|
;; |
| 11019 |
|
|
| 11020 |
|
aix[4-9]*) |
| 11022 |
|
need_lib_prefix=no |
| 11023 |
|
need_version=no |
| 11024 |
|
hardcode_into_libs=yes |
| 11025 |
< |
if test "$host_cpu" = ia64; then |
| 11025 |
> |
if test ia64 = "$host_cpu"; then |
| 11026 |
|
# AIX 5 supports IA64 |
| 11027 |
< |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11027 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 11028 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11029 |
|
else |
| 11030 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
| 11031 |
|
# for dependence libraries. The import file would start with |
| 11032 |
< |
# the line `#! .'. This would cause the generated library to |
| 11033 |
< |
# depend on `.', always an invalid library. This was fixed in |
| 11032 |
> |
# the line '#! .'. This would cause the generated library to |
| 11033 |
> |
# depend on '.', always an invalid library. This was fixed in |
| 11034 |
|
# development snapshots of GCC prior to 3.0. |
| 11035 |
|
case $host_os in |
| 11036 |
|
aix4 | aix4.[01] | aix4.[01].*) |
| 11037 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 11038 |
|
echo ' yes ' |
| 11039 |
< |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 11039 |
> |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 11040 |
|
: |
| 11041 |
|
else |
| 11042 |
|
can_build_shared=no |
| 11043 |
|
fi |
| 11044 |
|
;; |
| 11045 |
|
esac |
| 11046 |
< |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 11046 |
> |
# Using Import Files as archive members, it is possible to support |
| 11047 |
> |
# filename-based versioning of shared library archives on AIX. While |
| 11048 |
> |
# this would work for both with and without runtime linking, it will |
| 11049 |
> |
# prevent static linking of such archives. So we do filename-based |
| 11050 |
> |
# shared library versioning with .so extension only, which is used |
| 11051 |
> |
# when both runtime linking and shared linking is enabled. |
| 11052 |
> |
# Unfortunately, runtime linking may impact performance, so we do |
| 11053 |
> |
# not want this to be the default eventually. Also, we use the |
| 11054 |
> |
# versioned .so libs for executables only if there is the -brtl |
| 11055 |
> |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 11056 |
> |
# To allow for filename-based versioning support, we need to create |
| 11057 |
> |
# libNAME.so.V as an archive file, containing: |
| 11058 |
> |
# *) an Import File, referring to the versioned filename of the |
| 11059 |
> |
# archive as well as the shared archive member, telling the |
| 11060 |
> |
# bitwidth (32 or 64) of that shared object, and providing the |
| 11061 |
> |
# list of exported symbols of that shared object, eventually |
| 11062 |
> |
# decorated with the 'weak' keyword |
| 11063 |
> |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
| 11064 |
> |
# it being seen by the linker. |
| 11065 |
> |
# At run time we better use the real file rather than another symlink, |
| 11066 |
> |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 11067 |
> |
|
| 11068 |
> |
case $with_aix_soname,$aix_use_runtimelinking in |
| 11069 |
> |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 11070 |
|
# soname into executable. Probably we can add versioning support to |
| 11071 |
|
# collect2, so additional links can be useful in future. |
| 11072 |
< |
if test "$aix_use_runtimelinking" = yes; then |
| 11072 |
> |
aix,yes) # traditional libtool |
| 11073 |
> |
dynamic_linker='AIX unversionable lib.so' |
| 11074 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 11075 |
|
# instead of lib<name>.a to let people know that these are not |
| 11076 |
|
# typical AIX shared libraries. |
| 11077 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11078 |
< |
else |
| 11077 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11078 |
> |
;; |
| 11079 |
> |
aix,no) # traditional AIX only |
| 11080 |
> |
dynamic_linker='AIX lib.a(lib.so.V)' |
| 11081 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
| 11082 |
|
# and later when we are not doing run time linking. |
| 11083 |
< |
library_names_spec='${libname}${release}.a $libname.a' |
| 11084 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11085 |
< |
fi |
| 11083 |
> |
library_names_spec='$libname$release.a $libname.a' |
| 11084 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11085 |
> |
;; |
| 11086 |
> |
svr4,*) # full svr4 only |
| 11087 |
> |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 11088 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 11089 |
> |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 11090 |
> |
shlibpath_overrides_runpath=yes |
| 11091 |
> |
;; |
| 11092 |
> |
*,yes) # both, prefer svr4 |
| 11093 |
> |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 11094 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 11095 |
> |
# unpreferred sharedlib libNAME.a needs extra handling |
| 11096 |
> |
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"' |
| 11097 |
> |
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"' |
| 11098 |
> |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 11099 |
> |
shlibpath_overrides_runpath=yes |
| 11100 |
> |
;; |
| 11101 |
> |
*,no) # both, prefer aix |
| 11102 |
> |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 11103 |
> |
library_names_spec='$libname$release.a $libname.a' |
| 11104 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11105 |
> |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 11106 |
> |
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)' |
| 11107 |
> |
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"' |
| 11108 |
> |
;; |
| 11109 |
> |
esac |
| 11110 |
|
shlibpath_var=LIBPATH |
| 11111 |
|
fi |
| 11112 |
|
;; |
| 11116 |
|
powerpc) |
| 11117 |
|
# Since July 2007 AmigaOS4 officially supports .so libraries. |
| 11118 |
|
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 11119 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11119 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11120 |
|
;; |
| 11121 |
|
m68k) |
| 11122 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
| 11123 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 11124 |
< |
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' |
| 11124 |
> |
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' |
| 11125 |
|
;; |
| 11126 |
|
esac |
| 11127 |
|
;; |
| 11128 |
|
|
| 11129 |
|
beos*) |
| 11130 |
< |
library_names_spec='${libname}${shared_ext}' |
| 11130 |
> |
library_names_spec='$libname$shared_ext' |
| 11131 |
|
dynamic_linker="$host_os ld.so" |
| 11132 |
|
shlibpath_var=LIBRARY_PATH |
| 11133 |
|
;; |
| 11135 |
|
bsdi[45]*) |
| 11136 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11137 |
|
need_version=no |
| 11138 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11139 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11138 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11139 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11140 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 11141 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11142 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 11148 |
|
|
| 11149 |
|
cygwin* | mingw* | pw32* | cegcc*) |
| 11150 |
|
version_type=windows |
| 11151 |
< |
shrext_cmds=".dll" |
| 11151 |
> |
shrext_cmds=.dll |
| 11152 |
|
need_version=no |
| 11153 |
|
need_lib_prefix=no |
| 11154 |
|
|
| 11157 |
|
# gcc |
| 11158 |
|
library_names_spec='$libname.dll.a' |
| 11159 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 11160 |
< |
postinstall_cmds='base_file=`basename \${file}`~ |
| 11161 |
< |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 11160 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
| 11161 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 11162 |
|
dldir=$destdir/`dirname \$dlpath`~ |
| 11163 |
|
test -d \$dldir || mkdir -p \$dldir~ |
| 11164 |
|
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 11174 |
|
case $host_os in |
| 11175 |
|
cygwin*) |
| 11176 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 11177 |
< |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11177 |
> |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 11178 |
|
|
| 11179 |
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 11180 |
|
;; |
| 11181 |
|
mingw* | cegcc*) |
| 11182 |
|
# MinGW DLLs use traditional 'lib' prefix |
| 11183 |
< |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11183 |
> |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 11184 |
|
;; |
| 11185 |
|
pw32*) |
| 11186 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 11187 |
< |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11187 |
> |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 11188 |
|
;; |
| 11189 |
|
esac |
| 11190 |
|
dynamic_linker='Win32 ld.exe' |
| 11193 |
|
*,cl*) |
| 11194 |
|
# Native MSVC |
| 11195 |
|
libname_spec='$name' |
| 11196 |
< |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11197 |
< |
library_names_spec='${libname}.dll.lib' |
| 11196 |
> |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 11197 |
> |
library_names_spec='$libname.dll.lib' |
| 11198 |
|
|
| 11199 |
|
case $build_os in |
| 11200 |
|
mingw*) |
| 11221 |
|
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11222 |
|
;; |
| 11223 |
|
*) |
| 11224 |
< |
sys_lib_search_path_spec="$LIB" |
| 11224 |
> |
sys_lib_search_path_spec=$LIB |
| 11225 |
|
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 11226 |
|
# It is most probably a Windows format PATH. |
| 11227 |
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11234 |
|
esac |
| 11235 |
|
|
| 11236 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 11237 |
< |
postinstall_cmds='base_file=`basename \${file}`~ |
| 11238 |
< |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 11237 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
| 11238 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 11239 |
|
dldir=$destdir/`dirname \$dlpath`~ |
| 11240 |
|
test -d \$dldir || mkdir -p \$dldir~ |
| 11241 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
| 11248 |
|
|
| 11249 |
|
*) |
| 11250 |
|
# Assume MSVC wrapper |
| 11251 |
< |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 11251 |
> |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 11252 |
|
dynamic_linker='Win32 ld.exe' |
| 11253 |
|
;; |
| 11254 |
|
esac |
| 11261 |
|
version_type=darwin |
| 11262 |
|
need_lib_prefix=no |
| 11263 |
|
need_version=no |
| 11264 |
< |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 11265 |
< |
soname_spec='${libname}${release}${major}$shared_ext' |
| 11264 |
> |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 11265 |
> |
soname_spec='$libname$release$major$shared_ext' |
| 11266 |
|
shlibpath_overrides_runpath=yes |
| 11267 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
| 11268 |
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 11275 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11276 |
|
need_lib_prefix=no |
| 11277 |
|
need_version=no |
| 11278 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 11279 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11278 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11279 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11280 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11281 |
|
;; |
| 11282 |
|
|
| 11294 |
|
version_type=freebsd-$objformat |
| 11295 |
|
case $version_type in |
| 11296 |
|
freebsd-elf*) |
| 11297 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11297 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11298 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11299 |
|
need_version=no |
| 11300 |
|
need_lib_prefix=no |
| 11301 |
|
;; |
| 11302 |
|
freebsd-*) |
| 11303 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 11303 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 11304 |
|
need_version=yes |
| 11305 |
|
;; |
| 11306 |
|
esac |
| 11325 |
|
esac |
| 11326 |
|
;; |
| 11327 |
|
|
| 10837 |
– |
gnu*) |
| 10838 |
– |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10839 |
– |
need_lib_prefix=no |
| 10840 |
– |
need_version=no |
| 10841 |
– |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10842 |
– |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10843 |
– |
shlibpath_var=LD_LIBRARY_PATH |
| 10844 |
– |
shlibpath_overrides_runpath=no |
| 10845 |
– |
hardcode_into_libs=yes |
| 10846 |
– |
;; |
| 10847 |
– |
|
| 11328 |
|
haiku*) |
| 11329 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11330 |
|
need_lib_prefix=no |
| 11331 |
|
need_version=no |
| 11332 |
|
dynamic_linker="$host_os runtime_loader" |
| 11333 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 11334 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11333 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11334 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11335 |
|
shlibpath_var=LIBRARY_PATH |
| 11336 |
< |
shlibpath_overrides_runpath=yes |
| 11336 |
> |
shlibpath_overrides_runpath=no |
| 11337 |
|
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 11338 |
|
hardcode_into_libs=yes |
| 11339 |
|
;; |
| 11351 |
|
dynamic_linker="$host_os dld.so" |
| 11352 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11353 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11354 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11355 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11356 |
< |
if test "X$HPUX_IA64_MODE" = X32; then |
| 11354 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11355 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11356 |
> |
if test 32 = "$HPUX_IA64_MODE"; then |
| 11357 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 11358 |
+ |
sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 11359 |
|
else |
| 11360 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 11361 |
+ |
sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 11362 |
|
fi |
| 10881 |
– |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11363 |
|
;; |
| 11364 |
|
hppa*64*) |
| 11365 |
|
shrext_cmds='.sl' |
| 11367 |
|
dynamic_linker="$host_os dld.sl" |
| 11368 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11369 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11370 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11371 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11370 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11371 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11372 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11373 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11374 |
|
;; |
| 11377 |
|
dynamic_linker="$host_os dld.sl" |
| 11378 |
|
shlibpath_var=SHLIB_PATH |
| 11379 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11380 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11381 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11380 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11381 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11382 |
|
;; |
| 11383 |
|
esac |
| 11384 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 11391 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11392 |
|
need_lib_prefix=no |
| 11393 |
|
need_version=no |
| 11394 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11395 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11394 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11395 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11396 |
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 11397 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11398 |
|
shlibpath_overrides_runpath=no |
| 11403 |
|
case $host_os in |
| 11404 |
|
nonstopux*) version_type=nonstopux ;; |
| 11405 |
|
*) |
| 11406 |
< |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11406 |
> |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 11407 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11408 |
|
else |
| 11409 |
|
version_type=irix |
| 11411 |
|
esac |
| 11412 |
|
need_lib_prefix=no |
| 11413 |
|
need_version=no |
| 11414 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11415 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11414 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11415 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 11416 |
|
case $host_os in |
| 11417 |
|
irix5* | nonstopux*) |
| 11418 |
|
libsuff= shlibsuff= |
| 11431 |
|
esac |
| 11432 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11433 |
|
shlibpath_overrides_runpath=no |
| 11434 |
< |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11435 |
< |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11434 |
> |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 11435 |
> |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 11436 |
|
hardcode_into_libs=yes |
| 11437 |
|
;; |
| 11438 |
|
|
| 11441 |
|
dynamic_linker=no |
| 11442 |
|
;; |
| 11443 |
|
|
| 11444 |
+ |
linux*android*) |
| 11445 |
+ |
version_type=none # Android doesn't support versioned libraries. |
| 11446 |
+ |
need_lib_prefix=no |
| 11447 |
+ |
need_version=no |
| 11448 |
+ |
library_names_spec='$libname$release$shared_ext' |
| 11449 |
+ |
soname_spec='$libname$release$shared_ext' |
| 11450 |
+ |
finish_cmds= |
| 11451 |
+ |
shlibpath_var=LD_LIBRARY_PATH |
| 11452 |
+ |
shlibpath_overrides_runpath=yes |
| 11453 |
+ |
|
| 11454 |
+ |
# This implies no fast_install, which is unacceptable. |
| 11455 |
+ |
# Some rework will be needed to allow for fast_install |
| 11456 |
+ |
# before this can be enabled. |
| 11457 |
+ |
hardcode_into_libs=yes |
| 11458 |
+ |
|
| 11459 |
+ |
dynamic_linker='Android linker' |
| 11460 |
+ |
# Don't embed -rpath directories since the linker doesn't support them. |
| 11461 |
+ |
hardcode_libdir_flag_spec='-L$libdir' |
| 11462 |
+ |
;; |
| 11463 |
+ |
|
| 11464 |
|
# This must be glibc/ELF. |
| 11465 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11465 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 11466 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11467 |
|
need_lib_prefix=no |
| 11468 |
|
need_version=no |
| 11469 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11470 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11469 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11470 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11471 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11472 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11473 |
|
shlibpath_overrides_runpath=no |
| 11511 |
|
# before this can be enabled. |
| 11512 |
|
hardcode_into_libs=yes |
| 11513 |
|
|
| 11514 |
< |
# Append ld.so.conf contents to the search path |
| 11514 |
> |
# Ideally, we could use ldconfig to report *all* directores which are |
| 11515 |
> |
# searched for libraries, however this is still not possible. Aside from not |
| 11516 |
> |
# being certain /sbin/ldconfig is available, command |
| 11517 |
> |
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 11518 |
> |
# even though it is searched at run-time. Try to do the best guess by |
| 11519 |
> |
# appending ld.so.conf contents (and includes) to the search path. |
| 11520 |
|
if test -f /etc/ld.so.conf; then |
| 11521 |
|
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' ' '` |
| 11522 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11536 |
|
need_lib_prefix=no |
| 11537 |
|
need_version=no |
| 11538 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11539 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11539 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 11540 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11541 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
| 11542 |
|
else |
| 11543 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11544 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11543 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11544 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11545 |
|
dynamic_linker='NetBSD ld.elf_so' |
| 11546 |
|
fi |
| 11547 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11551 |
|
|
| 11552 |
|
newsos6) |
| 11553 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11554 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11554 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11555 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11556 |
|
shlibpath_overrides_runpath=yes |
| 11557 |
|
;; |
| 11560 |
|
version_type=qnx |
| 11561 |
|
need_lib_prefix=no |
| 11562 |
|
need_version=no |
| 11563 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11564 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11563 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11564 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11565 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11566 |
|
shlibpath_overrides_runpath=no |
| 11567 |
|
hardcode_into_libs=yes |
| 11568 |
|
dynamic_linker='ldqnx.so' |
| 11569 |
|
;; |
| 11570 |
|
|
| 11571 |
< |
openbsd*) |
| 11571 |
> |
openbsd* | bitrig*) |
| 11572 |
|
version_type=sunos |
| 11573 |
< |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 11573 |
> |
sys_lib_dlsearch_path_spec=/usr/lib |
| 11574 |
|
need_lib_prefix=no |
| 11575 |
< |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11576 |
< |
case $host_os in |
| 11071 |
< |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11072 |
< |
*) need_version=no ;; |
| 11073 |
< |
esac |
| 11074 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11075 |
< |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11076 |
< |
shlibpath_var=LD_LIBRARY_PATH |
| 11077 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11078 |
< |
case $host_os in |
| 11079 |
< |
openbsd2.[89] | openbsd2.[89].*) |
| 11080 |
< |
shlibpath_overrides_runpath=no |
| 11081 |
< |
;; |
| 11082 |
< |
*) |
| 11083 |
< |
shlibpath_overrides_runpath=yes |
| 11084 |
< |
;; |
| 11085 |
< |
esac |
| 11575 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 11576 |
> |
need_version=no |
| 11577 |
|
else |
| 11578 |
< |
shlibpath_overrides_runpath=yes |
| 11578 |
> |
need_version=yes |
| 11579 |
|
fi |
| 11580 |
+ |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 11581 |
+ |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11582 |
+ |
shlibpath_var=LD_LIBRARY_PATH |
| 11583 |
+ |
shlibpath_overrides_runpath=yes |
| 11584 |
|
;; |
| 11585 |
|
|
| 11586 |
|
os2*) |
| 11587 |
|
libname_spec='$name' |
| 11588 |
< |
shrext_cmds=".dll" |
| 11588 |
> |
version_type=windows |
| 11589 |
> |
shrext_cmds=.dll |
| 11590 |
> |
need_version=no |
| 11591 |
|
need_lib_prefix=no |
| 11592 |
< |
library_names_spec='$libname${shared_ext} $libname.a' |
| 11592 |
> |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
| 11593 |
> |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 11594 |
> |
v=$($ECHO $release$versuffix | tr -d .-); |
| 11595 |
> |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 11596 |
> |
$ECHO $n$v`$shared_ext' |
| 11597 |
> |
library_names_spec='${libname}_dll.$libext' |
| 11598 |
|
dynamic_linker='OS/2 ld.exe' |
| 11599 |
< |
shlibpath_var=LIBPATH |
| 11599 |
> |
shlibpath_var=BEGINLIBPATH |
| 11600 |
> |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11601 |
> |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11602 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
| 11603 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 11604 |
> |
dldir=$destdir/`dirname \$dlpath`~ |
| 11605 |
> |
test -d \$dldir || mkdir -p \$dldir~ |
| 11606 |
> |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 11607 |
> |
chmod a+x \$dldir/$dlname~ |
| 11608 |
> |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 11609 |
> |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 11610 |
> |
fi' |
| 11611 |
> |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 11612 |
> |
dlpath=$dir/\$dldll~ |
| 11613 |
> |
$RM \$dlpath' |
| 11614 |
|
;; |
| 11615 |
|
|
| 11616 |
|
osf3* | osf4* | osf5*) |
| 11617 |
|
version_type=osf |
| 11618 |
|
need_lib_prefix=no |
| 11619 |
|
need_version=no |
| 11620 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11621 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11620 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11621 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11622 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11623 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11624 |
< |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11624 |
> |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11625 |
|
;; |
| 11626 |
|
|
| 11627 |
|
rdos*) |
| 11632 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11633 |
|
need_lib_prefix=no |
| 11634 |
|
need_version=no |
| 11635 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11636 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11635 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11636 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11637 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11638 |
|
shlibpath_overrides_runpath=yes |
| 11639 |
|
hardcode_into_libs=yes |
| 11643 |
|
|
| 11644 |
|
sunos4*) |
| 11645 |
|
version_type=sunos |
| 11646 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11646 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 11647 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11648 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11649 |
|
shlibpath_overrides_runpath=yes |
| 11650 |
< |
if test "$with_gnu_ld" = yes; then |
| 11650 |
> |
if test yes = "$with_gnu_ld"; then |
| 11651 |
|
need_lib_prefix=no |
| 11652 |
|
fi |
| 11653 |
|
need_version=yes |
| 11655 |
|
|
| 11656 |
|
sysv4 | sysv4.3*) |
| 11657 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11658 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11659 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11658 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11659 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11660 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11661 |
|
case $host_vendor in |
| 11662 |
|
sni) |
| 11677 |
|
;; |
| 11678 |
|
|
| 11679 |
|
sysv4*MP*) |
| 11680 |
< |
if test -d /usr/nec ;then |
| 11680 |
> |
if test -d /usr/nec; then |
| 11681 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11682 |
< |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11683 |
< |
soname_spec='$libname${shared_ext}.$major' |
| 11682 |
> |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 11683 |
> |
soname_spec='$libname$shared_ext.$major' |
| 11684 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11685 |
|
fi |
| 11686 |
|
;; |
| 11687 |
|
|
| 11688 |
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11689 |
< |
version_type=freebsd-elf |
| 11689 |
> |
version_type=sco |
| 11690 |
|
need_lib_prefix=no |
| 11691 |
|
need_version=no |
| 11692 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11693 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11692 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 11693 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11694 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11695 |
|
shlibpath_overrides_runpath=yes |
| 11696 |
|
hardcode_into_libs=yes |
| 11697 |
< |
if test "$with_gnu_ld" = yes; then |
| 11697 |
> |
if test yes = "$with_gnu_ld"; then |
| 11698 |
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11699 |
|
else |
| 11700 |
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11712 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11713 |
|
need_lib_prefix=no |
| 11714 |
|
need_version=no |
| 11715 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11715 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11716 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11717 |
|
shlibpath_overrides_runpath=no |
| 11718 |
|
hardcode_into_libs=yes |
| 11720 |
|
|
| 11721 |
|
uts4*) |
| 11722 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11723 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11724 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11723 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11724 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11725 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11726 |
|
;; |
| 11727 |
|
|
| 11731 |
|
esac |
| 11732 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 11733 |
|
$as_echo "$dynamic_linker" >&6; } |
| 11734 |
< |
test "$dynamic_linker" = no && can_build_shared=no |
| 11734 |
> |
test no = "$dynamic_linker" && can_build_shared=no |
| 11735 |
|
|
| 11736 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11737 |
< |
if test "$GCC" = yes; then |
| 11737 |
> |
if test yes = "$GCC"; then |
| 11738 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11739 |
|
fi |
| 11740 |
|
|
| 11741 |
< |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11742 |
< |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11741 |
> |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 11742 |
> |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 11743 |
|
fi |
| 11744 |
< |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11745 |
< |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11744 |
> |
|
| 11745 |
> |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 11746 |
> |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 11747 |
|
fi |
| 11748 |
|
|
| 11749 |
+ |
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 11750 |
+ |
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 11751 |
+ |
|
| 11752 |
+ |
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 11753 |
+ |
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 11754 |
+ |
|
| 11755 |
+ |
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 11756 |
+ |
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 11757 |
+ |
|
| 11758 |
+ |
|
| 11759 |
+ |
|
| 11760 |
+ |
|
| 11761 |
+ |
|
| 11762 |
+ |
|
| 11763 |
|
|
| 11764 |
|
|
| 11765 |
|
|
| 11856 |
|
hardcode_action= |
| 11857 |
|
if test -n "$hardcode_libdir_flag_spec" || |
| 11858 |
|
test -n "$runpath_var" || |
| 11859 |
< |
test "X$hardcode_automatic" = "Xyes" ; then |
| 11859 |
> |
test yes = "$hardcode_automatic"; then |
| 11860 |
|
|
| 11861 |
|
# We can hardcode non-existent directories. |
| 11862 |
< |
if test "$hardcode_direct" != no && |
| 11862 |
> |
if test no != "$hardcode_direct" && |
| 11863 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11864 |
|
# have to relink, otherwise we might link with an installed library |
| 11865 |
|
# when we should be linking with a yet-to-be-installed one |
| 11866 |
< |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11867 |
< |
test "$hardcode_minus_L" != no; then |
| 11866 |
> |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 11867 |
> |
test no != "$hardcode_minus_L"; then |
| 11868 |
|
# Linking always hardcodes the temporary library directory. |
| 11869 |
|
hardcode_action=relink |
| 11870 |
|
else |
| 11879 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11880 |
|
$as_echo "$hardcode_action" >&6; } |
| 11881 |
|
|
| 11882 |
< |
if test "$hardcode_action" = relink || |
| 11883 |
< |
test "$inherit_rpath" = yes; then |
| 11882 |
> |
if test relink = "$hardcode_action" || |
| 11883 |
> |
test yes = "$inherit_rpath"; then |
| 11884 |
|
# Fast installation is not supported |
| 11885 |
|
enable_fast_install=no |
| 11886 |
< |
elif test "$shlibpath_overrides_runpath" = yes || |
| 11887 |
< |
test "$enable_shared" = no; then |
| 11886 |
> |
elif test yes = "$shlibpath_overrides_runpath" || |
| 11887 |
> |
test no = "$enable_shared"; then |
| 11888 |
|
# Fast installation is not necessary |
| 11889 |
|
enable_fast_install=needless |
| 11890 |
|
fi |
| 11894 |
|
|
| 11895 |
|
|
| 11896 |
|
|
| 11897 |
< |
if test "x$enable_dlopen" != xyes; then |
| 11897 |
> |
if test yes != "$enable_dlopen"; then |
| 11898 |
|
enable_dlopen=unknown |
| 11899 |
|
enable_dlopen_self=unknown |
| 11900 |
|
enable_dlopen_self_static=unknown |
| 11904 |
|
|
| 11905 |
|
case $host_os in |
| 11906 |
|
beos*) |
| 11907 |
< |
lt_cv_dlopen="load_add_on" |
| 11907 |
> |
lt_cv_dlopen=load_add_on |
| 11908 |
|
lt_cv_dlopen_libs= |
| 11909 |
|
lt_cv_dlopen_self=yes |
| 11910 |
|
;; |
| 11911 |
|
|
| 11912 |
|
mingw* | pw32* | cegcc*) |
| 11913 |
< |
lt_cv_dlopen="LoadLibrary" |
| 11913 |
> |
lt_cv_dlopen=LoadLibrary |
| 11914 |
|
lt_cv_dlopen_libs= |
| 11915 |
|
;; |
| 11916 |
|
|
| 11917 |
|
cygwin*) |
| 11918 |
< |
lt_cv_dlopen="dlopen" |
| 11918 |
> |
lt_cv_dlopen=dlopen |
| 11919 |
|
lt_cv_dlopen_libs= |
| 11920 |
|
;; |
| 11921 |
|
|
| 11922 |
|
darwin*) |
| 11923 |
< |
# if libdl is installed we need to link against it |
| 11923 |
> |
# if libdl is installed we need to link against it |
| 11924 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11925 |
|
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11926 |
|
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11958 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11959 |
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11960 |
|
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11961 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11961 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 11962 |
|
else |
| 11963 |
|
|
| 11964 |
< |
lt_cv_dlopen="dyld" |
| 11964 |
> |
lt_cv_dlopen=dyld |
| 11965 |
|
lt_cv_dlopen_libs= |
| 11966 |
|
lt_cv_dlopen_self=yes |
| 11967 |
|
|
| 11969 |
|
|
| 11970 |
|
;; |
| 11971 |
|
|
| 11972 |
+ |
tpf*) |
| 11973 |
+ |
# Don't try to run any link tests for TPF. We know it's impossible |
| 11974 |
+ |
# because TPF is a cross-compiler, and we know how we open DSOs. |
| 11975 |
+ |
lt_cv_dlopen=dlopen |
| 11976 |
+ |
lt_cv_dlopen_libs= |
| 11977 |
+ |
lt_cv_dlopen_self=no |
| 11978 |
+ |
;; |
| 11979 |
+ |
|
| 11980 |
|
*) |
| 11981 |
|
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11982 |
|
if test "x$ac_cv_func_shl_load" = xyes; then : |
| 11983 |
< |
lt_cv_dlopen="shl_load" |
| 11983 |
> |
lt_cv_dlopen=shl_load |
| 11984 |
|
else |
| 11985 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 11986 |
|
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 12019 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12020 |
|
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 12021 |
|
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 12022 |
< |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 12022 |
> |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 12023 |
|
else |
| 12024 |
|
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 12025 |
|
if test "x$ac_cv_func_dlopen" = xyes; then : |
| 12026 |
< |
lt_cv_dlopen="dlopen" |
| 12026 |
> |
lt_cv_dlopen=dlopen |
| 12027 |
|
else |
| 12028 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 12029 |
|
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 12062 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12063 |
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 12064 |
|
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 12065 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12065 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 12066 |
|
else |
| 12067 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 12068 |
|
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 12101 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 12102 |
|
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 12103 |
|
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 12104 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 12104 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 12105 |
|
else |
| 12106 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 12107 |
|
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 12140 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 12141 |
|
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 12142 |
|
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 12143 |
< |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 12143 |
> |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 12144 |
|
fi |
| 12145 |
|
|
| 12146 |
|
|
| 12161 |
|
;; |
| 12162 |
|
esac |
| 12163 |
|
|
| 12164 |
< |
if test "x$lt_cv_dlopen" != xno; then |
| 11626 |
< |
enable_dlopen=yes |
| 11627 |
< |
else |
| 12164 |
> |
if test no = "$lt_cv_dlopen"; then |
| 12165 |
|
enable_dlopen=no |
| 12166 |
+ |
else |
| 12167 |
+ |
enable_dlopen=yes |
| 12168 |
|
fi |
| 12169 |
|
|
| 12170 |
|
case $lt_cv_dlopen in |
| 12171 |
|
dlopen) |
| 12172 |
< |
save_CPPFLAGS="$CPPFLAGS" |
| 12173 |
< |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12172 |
> |
save_CPPFLAGS=$CPPFLAGS |
| 12173 |
> |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12174 |
|
|
| 12175 |
< |
save_LDFLAGS="$LDFLAGS" |
| 12175 |
> |
save_LDFLAGS=$LDFLAGS |
| 12176 |
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 12177 |
|
|
| 12178 |
< |
save_LIBS="$LIBS" |
| 12178 |
> |
save_LIBS=$LIBS |
| 12179 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 12180 |
|
|
| 12181 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 12183 |
|
if ${lt_cv_dlopen_self+:} false; then : |
| 12184 |
|
$as_echo_n "(cached) " >&6 |
| 12185 |
|
else |
| 12186 |
< |
if test "$cross_compiling" = yes; then : |
| 12186 |
> |
if test yes = "$cross_compiling"; then : |
| 12187 |
|
lt_cv_dlopen_self=cross |
| 12188 |
|
else |
| 12189 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12230 |
|
# endif |
| 12231 |
|
#endif |
| 12232 |
|
|
| 12233 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 12233 |
> |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 12234 |
|
correspondingly for the symbols needed. */ |
| 12235 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12235 |
> |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12236 |
|
int fnord () __attribute__((visibility("default"))); |
| 12237 |
|
#endif |
| 12238 |
|
|
| 12262 |
|
(eval $ac_link) 2>&5 |
| 12263 |
|
ac_status=$? |
| 12264 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12265 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12265 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 12266 |
|
(./conftest; exit; ) >&5 2>/dev/null |
| 12267 |
|
lt_status=$? |
| 12268 |
|
case x$lt_status in |
| 12282 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 12283 |
|
$as_echo "$lt_cv_dlopen_self" >&6; } |
| 12284 |
|
|
| 12285 |
< |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 12285 |
> |
if test yes = "$lt_cv_dlopen_self"; then |
| 12286 |
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 12287 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 12288 |
|
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 12289 |
|
if ${lt_cv_dlopen_self_static+:} false; then : |
| 12290 |
|
$as_echo_n "(cached) " >&6 |
| 12291 |
|
else |
| 12292 |
< |
if test "$cross_compiling" = yes; then : |
| 12292 |
> |
if test yes = "$cross_compiling"; then : |
| 12293 |
|
lt_cv_dlopen_self_static=cross |
| 12294 |
|
else |
| 12295 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12336 |
|
# endif |
| 12337 |
|
#endif |
| 12338 |
|
|
| 12339 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 12339 |
> |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 12340 |
|
correspondingly for the symbols needed. */ |
| 12341 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12341 |
> |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12342 |
|
int fnord () __attribute__((visibility("default"))); |
| 12343 |
|
#endif |
| 12344 |
|
|
| 12368 |
|
(eval $ac_link) 2>&5 |
| 12369 |
|
ac_status=$? |
| 12370 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12371 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12371 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 12372 |
|
(./conftest; exit; ) >&5 2>/dev/null |
| 12373 |
|
lt_status=$? |
| 12374 |
|
case x$lt_status in |
| 12389 |
|
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 12390 |
|
fi |
| 12391 |
|
|
| 12392 |
< |
CPPFLAGS="$save_CPPFLAGS" |
| 12393 |
< |
LDFLAGS="$save_LDFLAGS" |
| 12394 |
< |
LIBS="$save_LIBS" |
| 12392 |
> |
CPPFLAGS=$save_CPPFLAGS |
| 12393 |
> |
LDFLAGS=$save_LDFLAGS |
| 12394 |
> |
LIBS=$save_LIBS |
| 12395 |
|
;; |
| 12396 |
|
esac |
| 12397 |
|
|
| 12435 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
| 12436 |
|
case $host_os in |
| 12437 |
|
darwin*) |
| 12438 |
< |
if test -n "$STRIP" ; then |
| 12438 |
> |
if test -n "$STRIP"; then |
| 12439 |
|
striplib="$STRIP -x" |
| 12440 |
|
old_striplib="$STRIP -S" |
| 12441 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12463 |
|
|
| 12464 |
|
|
| 12465 |
|
|
| 12466 |
< |
# Report which library types will actually be built |
| 12466 |
> |
# Report what library types will actually be built |
| 12467 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 12468 |
|
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 12469 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 12471 |
|
|
| 12472 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 12473 |
|
$as_echo_n "checking whether to build shared libraries... " >&6; } |
| 12474 |
< |
test "$can_build_shared" = "no" && enable_shared=no |
| 12474 |
> |
test no = "$can_build_shared" && enable_shared=no |
| 12475 |
|
|
| 12476 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
| 12477 |
|
# are all built from PIC. |
| 12478 |
|
case $host_os in |
| 12479 |
|
aix3*) |
| 12480 |
< |
test "$enable_shared" = yes && enable_static=no |
| 12480 |
> |
test yes = "$enable_shared" && enable_static=no |
| 12481 |
|
if test -n "$RANLIB"; then |
| 12482 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12483 |
|
postinstall_cmds='$RANLIB $lib' |
| 12485 |
|
;; |
| 12486 |
|
|
| 12487 |
|
aix[4-9]*) |
| 12488 |
< |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12489 |
< |
test "$enable_shared" = yes && enable_static=no |
| 12488 |
> |
if test ia64 != "$host_cpu"; then |
| 12489 |
> |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 12490 |
> |
yes,aix,yes) ;; # shared object as lib.so file only |
| 12491 |
> |
yes,svr4,*) ;; # shared object as lib.so archive member only |
| 12492 |
> |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 12493 |
> |
esac |
| 12494 |
|
fi |
| 12495 |
|
;; |
| 12496 |
|
esac |
| 12500 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 12501 |
|
$as_echo_n "checking whether to build static libraries... " >&6; } |
| 12502 |
|
# Make sure either enable_shared or enable_static is yes. |
| 12503 |
< |
test "$enable_shared" = yes || enable_static=yes |
| 12503 |
> |
test yes = "$enable_shared" || enable_static=yes |
| 12504 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 12505 |
|
$as_echo "$enable_static" >&6; } |
| 12506 |
|
|
| 12514 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12515 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12516 |
|
|
| 12517 |
< |
CC="$lt_save_CC" |
| 12517 |
> |
CC=$lt_save_CC |
| 12518 |
|
|
| 12519 |
|
|
| 12520 |
|
|
| 12538 |
|
# Only expand once: |
| 12539 |
|
|
| 12540 |
|
|
| 12541 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
| 12542 |
< |
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
| 12541 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5 |
| 12542 |
> |
$as_echo_n "checking what extension is used for runtime loadable modules... " >&6; } |
| 12543 |
|
if ${libltdl_cv_shlibext+:} false; then : |
| 12544 |
|
$as_echo_n "(cached) " >&6 |
| 12545 |
|
else |
| 12566 |
|
_ACEOF |
| 12567 |
|
|
| 12568 |
|
fi |
| 12569 |
+ |
if test -n "$shared_archive_member_spec"; then |
| 12570 |
+ |
|
| 12571 |
+ |
cat >>confdefs.h <<_ACEOF |
| 12572 |
+ |
#define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)" |
| 12573 |
+ |
_ACEOF |
| 12574 |
+ |
|
| 12575 |
+ |
fi |
| 12576 |
|
|
| 12577 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
| 12578 |
< |
$as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
| 12577 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5 |
| 12578 |
> |
$as_echo_n "checking what variable specifies run-time module search path... " >&6; } |
| 12579 |
|
if ${lt_cv_module_path_var+:} false; then : |
| 12580 |
|
$as_echo_n "(cached) " >&6 |
| 12581 |
|
else |
| 12582 |
< |
lt_cv_module_path_var="$shlibpath_var" |
| 12582 |
> |
lt_cv_module_path_var=$shlibpath_var |
| 12583 |
|
fi |
| 12584 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
| 12585 |
|
$as_echo "$lt_cv_module_path_var" >&6; } |
| 12596 |
|
if ${lt_cv_sys_dlsearch_path+:} false; then : |
| 12597 |
|
$as_echo_n "(cached) " >&6 |
| 12598 |
|
else |
| 12599 |
< |
lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
| 12599 |
> |
lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 12600 |
|
fi |
| 12601 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
| 12602 |
|
$as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
| 12604 |
|
sys_dlsearch_path= |
| 12605 |
|
for dir in $lt_cv_sys_dlsearch_path; do |
| 12606 |
|
if test -z "$sys_dlsearch_path"; then |
| 12607 |
< |
sys_dlsearch_path="$dir" |
| 12607 |
> |
sys_dlsearch_path=$dir |
| 12608 |
|
else |
| 12609 |
< |
sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
| 12609 |
> |
sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir |
| 12610 |
|
fi |
| 12611 |
|
done |
| 12612 |
|
|
| 12626 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12627 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12628 |
|
|
| 12629 |
+ |
lt_dlload_save_LIBS=$LIBS |
| 12630 |
|
|
| 12631 |
|
LIBADD_DLOPEN= |
| 12632 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 12685 |
|
|
| 12686 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12687 |
|
|
| 12688 |
< |
if test "$ac_cv_search_dlopen" != "none required" ; then |
| 12689 |
< |
LIBADD_DLOPEN="-ldl" |
| 12688 |
> |
if test "$ac_cv_search_dlopen" != "none required"; then |
| 12689 |
> |
LIBADD_DLOPEN=-ldl |
| 12690 |
|
fi |
| 12691 |
< |
libltdl_cv_lib_dl_dlopen="yes" |
| 12691 |
> |
libltdl_cv_lib_dl_dlopen=yes |
| 12692 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12693 |
|
else |
| 12694 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12709 |
|
|
| 12710 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12711 |
|
|
| 12712 |
< |
libltdl_cv_func_dlopen="yes" |
| 12712 |
> |
libltdl_cv_func_dlopen=yes |
| 12713 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12714 |
|
else |
| 12715 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 12752 |
|
|
| 12753 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12754 |
|
|
| 12755 |
< |
LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
| 12755 |
> |
LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes |
| 12756 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12757 |
|
fi |
| 12758 |
|
|
| 12761 |
|
conftest$ac_exeext conftest.$ac_ext |
| 12762 |
|
fi |
| 12763 |
|
|
| 12764 |
< |
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 12764 |
> |
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" |
| 12765 |
|
then |
| 12766 |
< |
lt_save_LIBS="$LIBS" |
| 12766 |
> |
lt_save_LIBS=$LIBS |
| 12767 |
|
LIBS="$LIBS $LIBADD_DLOPEN" |
| 12768 |
|
for ac_func in dlerror |
| 12769 |
|
do : |
| 12776 |
|
fi |
| 12777 |
|
done |
| 12778 |
|
|
| 12779 |
< |
LIBS="$lt_save_LIBS" |
| 12779 |
> |
LIBS=$lt_save_LIBS |
| 12780 |
|
fi |
| 12781 |
|
|
| 12782 |
|
|
| 12829 |
|
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 12830 |
|
|
| 12831 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 12832 |
< |
LIBADD_SHL_LOAD="-ldld" |
| 12832 |
> |
LIBADD_SHL_LOAD=-ldld |
| 12833 |
|
fi |
| 12834 |
|
|
| 12835 |
|
fi |
| 12851 |
|
beos*) |
| 12852 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
| 12853 |
|
;; |
| 12854 |
< |
cygwin* | mingw* | os2* | pw32*) |
| 12854 |
> |
cygwin* | mingw* | pw32*) |
| 12855 |
|
ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
| 12856 |
|
" |
| 12857 |
|
if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : |
| 12929 |
|
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
| 12930 |
|
|
| 12931 |
|
|
| 12932 |
+ |
LIBS=$lt_dlload_save_LIBS |
| 12933 |
|
ac_ext=c |
| 12934 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 12935 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12984 |
|
sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
| 12985 |
|
|
| 12986 |
|
|
| 12987 |
< |
if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
| 12988 |
< |
if test x"$libltdl_cv_func_dlopen" = xyes || |
| 12989 |
< |
test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 12438 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| 12987 |
> |
if test yes = "$lt_cv_sys_symbol_underscore"; then |
| 12988 |
> |
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then |
| 12989 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| 12990 |
|
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| 12991 |
|
if ${libltdl_cv_need_uscore+:} false; then : |
| 12992 |
|
$as_echo_n "(cached) " >&6 |
| 12993 |
|
else |
| 12994 |
|
libltdl_cv_need_uscore=unknown |
| 12995 |
< |
save_LIBS="$LIBS" |
| 12996 |
< |
LIBS="$LIBS $LIBADD_DLOPEN" |
| 12997 |
< |
if test "$cross_compiling" = yes; then : |
| 12998 |
< |
libltdl_cv_need_uscore=cross |
| 12448 |
< |
else |
| 12449 |
< |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12450 |
< |
lt_status=$lt_dlunknown |
| 12451 |
< |
cat > conftest.$ac_ext <<_LT_EOF |
| 12995 |
> |
dlsym_uscore_save_LIBS=$LIBS |
| 12996 |
> |
LIBS="$LIBS $LIBADD_DLOPEN" |
| 12997 |
> |
libname=conftmod # stay within 8.3 filename limits! |
| 12998 |
> |
cat >$libname.$ac_ext <<_LT_EOF |
| 12999 |
|
#line $LINENO "configure" |
| 13000 |
|
#include "confdefs.h" |
| 13001 |
+ |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 13002 |
+ |
correspondingly for the symbols needed. */ |
| 13003 |
+ |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13004 |
+ |
int fnord () __attribute__((visibility("default"))); |
| 13005 |
+ |
#endif |
| 13006 |
+ |
int fnord () { return 42; } |
| 13007 |
+ |
_LT_EOF |
| 13008 |
|
|
| 13009 |
+ |
# ltfn_module_cmds module_cmds |
| 13010 |
+ |
# Execute tilde-delimited MODULE_CMDS with environment primed for |
| 13011 |
+ |
# $module_cmds or $archive_cmds type content. |
| 13012 |
+ |
ltfn_module_cmds () |
| 13013 |
+ |
{( # subshell avoids polluting parent global environment |
| 13014 |
+ |
module_cmds_save_ifs=$IFS; IFS='~' |
| 13015 |
+ |
for cmd in $1; do |
| 13016 |
+ |
IFS=$module_cmds_save_ifs |
| 13017 |
+ |
libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext |
| 13018 |
+ |
rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=. |
| 13019 |
+ |
major=; versuffix=; verstring=; deplibs= |
| 13020 |
+ |
ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag= |
| 13021 |
+ |
eval $cmd |
| 13022 |
+ |
done |
| 13023 |
+ |
IFS=$module_cmds_save_ifs |
| 13024 |
+ |
)} |
| 13025 |
+ |
|
| 13026 |
+ |
# Compile a loadable module using libtool macro expansion results. |
| 13027 |
+ |
$CC $pic_flag -c $libname.$ac_ext |
| 13028 |
+ |
ltfn_module_cmds "${module_cmds:-$archive_cmds}" |
| 13029 |
+ |
|
| 13030 |
+ |
# Try to fetch fnord with dlsym(). |
| 13031 |
+ |
libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2 |
| 13032 |
+ |
cat >conftest.$ac_ext <<_LT_EOF |
| 13033 |
+ |
#line $LINENO "configure" |
| 13034 |
+ |
#include "confdefs.h" |
| 13035 |
|
#if HAVE_DLFCN_H |
| 13036 |
|
#include <dlfcn.h> |
| 13037 |
|
#endif |
| 12458 |
– |
|
| 13038 |
|
#include <stdio.h> |
| 13039 |
< |
|
| 12461 |
< |
#ifdef RTLD_GLOBAL |
| 12462 |
< |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 12463 |
< |
#else |
| 13039 |
> |
#ifndef RTLD_GLOBAL |
| 13040 |
|
# ifdef DL_GLOBAL |
| 13041 |
< |
# define LT_DLGLOBAL DL_GLOBAL |
| 13041 |
> |
# define RTLD_GLOBAL DL_GLOBAL |
| 13042 |
|
# else |
| 13043 |
< |
# define LT_DLGLOBAL 0 |
| 13043 |
> |
# define RTLD_GLOBAL 0 |
| 13044 |
|
# endif |
| 13045 |
|
#endif |
| 13046 |
< |
|
| 13047 |
< |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13048 |
< |
find out it does not work in some platform. */ |
| 12473 |
< |
#ifndef LT_DLLAZY_OR_NOW |
| 12474 |
< |
# ifdef RTLD_LAZY |
| 12475 |
< |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13046 |
> |
#ifndef RTLD_NOW |
| 13047 |
> |
# ifdef DL_NOW |
| 13048 |
> |
# define RTLD_NOW DL_NOW |
| 13049 |
|
# else |
| 13050 |
< |
# ifdef DL_LAZY |
| 12478 |
< |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 12479 |
< |
# else |
| 12480 |
< |
# ifdef RTLD_NOW |
| 12481 |
< |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12482 |
< |
# else |
| 12483 |
< |
# ifdef DL_NOW |
| 12484 |
< |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 12485 |
< |
# else |
| 12486 |
< |
# define LT_DLLAZY_OR_NOW 0 |
| 12487 |
< |
# endif |
| 12488 |
< |
# endif |
| 12489 |
< |
# endif |
| 13050 |
> |
# define RTLD_NOW 0 |
| 13051 |
|
# endif |
| 13052 |
|
#endif |
| 13053 |
< |
|
| 13054 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 13055 |
< |
correspondingly for the symbols needed. */ |
| 13056 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13057 |
< |
int fnord () __attribute__((visibility("default"))); |
| 13058 |
< |
#endif |
| 13059 |
< |
|
| 13060 |
< |
int fnord () { return 42; } |
| 13061 |
< |
int main () |
| 12501 |
< |
{ |
| 12502 |
< |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12503 |
< |
int status = $lt_dlunknown; |
| 12504 |
< |
|
| 12505 |
< |
if (self) |
| 12506 |
< |
{ |
| 12507 |
< |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13053 |
> |
int main () { |
| 13054 |
> |
void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW); |
| 13055 |
> |
int status = $libltdl_dlunknown; |
| 13056 |
> |
if (handle) { |
| 13057 |
> |
if (dlsym (handle, "fnord")) |
| 13058 |
> |
status = $libltdl_dlnouscore; |
| 13059 |
> |
else { |
| 13060 |
> |
if (dlsym (handle, "_fnord")) |
| 13061 |
> |
status = $libltdl_dluscore; |
| 13062 |
|
else |
| 13063 |
< |
{ |
| 12510 |
< |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12511 |
< |
else puts (dlerror ()); |
| 12512 |
< |
} |
| 12513 |
< |
/* dlclose (self); */ |
| 13063 |
> |
puts (dlerror ()); |
| 13064 |
|
} |
| 13065 |
< |
else |
| 13065 |
> |
dlclose (handle); |
| 13066 |
> |
} else |
| 13067 |
|
puts (dlerror ()); |
| 12517 |
– |
|
| 13068 |
|
return status; |
| 13069 |
|
} |
| 13070 |
|
_LT_EOF |
| 13071 |
< |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13071 |
> |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13072 |
|
(eval $ac_link) 2>&5 |
| 13073 |
|
ac_status=$? |
| 13074 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13075 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13076 |
< |
(./conftest; exit; ) >&5 2>/dev/null |
| 13077 |
< |
lt_status=$? |
| 13078 |
< |
case x$lt_status in |
| 13079 |
< |
x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 13080 |
< |
x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 13081 |
< |
x$lt_dlunknown|x*) ;; |
| 13082 |
< |
esac |
| 13083 |
< |
else : |
| 13084 |
< |
# compilation failed |
| 13085 |
< |
|
| 12536 |
< |
fi |
| 12537 |
< |
fi |
| 12538 |
< |
rm -fr conftest* |
| 12539 |
< |
|
| 12540 |
< |
LIBS="$save_LIBS" |
| 13075 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 13076 |
> |
(./conftest; exit; ) >&5 2>/dev/null |
| 13077 |
> |
libltdl_status=$? |
| 13078 |
> |
case x$libltdl_status in |
| 13079 |
> |
x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;; |
| 13080 |
> |
x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;; |
| 13081 |
> |
x*) libltdl_cv_need_uscore=unknown ;; |
| 13082 |
> |
esac |
| 13083 |
> |
fi |
| 13084 |
> |
rm -rf conftest* $libname* |
| 13085 |
> |
LIBS=$dlsym_uscore_save_LIBS |
| 13086 |
|
|
| 13087 |
|
fi |
| 13088 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
| 13090 |
|
fi |
| 13091 |
|
fi |
| 13092 |
|
|
| 13093 |
< |
if test x"$libltdl_cv_need_uscore" = xyes; then |
| 13093 |
> |
if test yes = "$libltdl_cv_need_uscore"; then |
| 13094 |
|
|
| 13095 |
|
$as_echo "#define NEED_USCORE 1" >>confdefs.h |
| 13096 |
|
|
| 13109 |
|
case $host_os in |
| 13110 |
|
aix3*|aix4.1.*|aix4.2.*) |
| 13111 |
|
# Unknown whether this is true for these versions of AIX, but |
| 13112 |
< |
# we want this `case' here to explicitly catch those versions. |
| 13112 |
> |
# we want this 'case' here to explicitly catch those versions. |
| 13113 |
|
lt_cv_sys_dlopen_deplibs=unknown |
| 13114 |
|
;; |
| 13115 |
|
aix[4-9]*) |
| 13122 |
|
;; |
| 13123 |
|
esac |
| 13124 |
|
;; |
| 13125 |
+ |
bitrig*) |
| 13126 |
+ |
lt_cv_sys_dlopen_deplibs=yes |
| 13127 |
+ |
;; |
| 13128 |
|
darwin*) |
| 13129 |
|
# Assuming the user has installed a libdl from somewhere, this is true |
| 13130 |
|
# If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 13162 |
|
osf[1234]*) |
| 13163 |
|
# dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 13164 |
|
# it did *not* use an RPATH in a shared library to find objects the |
| 13165 |
< |
# library depends on, so we explicitly say `no'. |
| 13165 |
> |
# library depends on, so we explicitly say 'no'. |
| 13166 |
|
lt_cv_sys_dlopen_deplibs=no |
| 13167 |
|
;; |
| 13168 |
|
osf5.0|osf5.0a|osf5.1) |
| 13171 |
|
# that the library depends on, but there's no easy way to know if that |
| 13172 |
|
# patch is installed. Since this is the case, all we can really |
| 13173 |
|
# say is unknown -- it depends on the patch being installed. If |
| 13174 |
< |
# it is, this changes to `yes'. Without it, it would be `no'. |
| 13174 |
> |
# it is, this changes to 'yes'. Without it, it would be 'no'. |
| 13175 |
|
lt_cv_sys_dlopen_deplibs=unknown |
| 13176 |
|
;; |
| 13177 |
|
osf*) |
| 13178 |
|
# the two cases above should catch all versions of osf <= 5.1. Read |
| 13179 |
|
# the comments above for what we know about them. |
| 13180 |
|
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 13181 |
< |
# is used to find them so we can finally say `yes'. |
| 13181 |
> |
# is used to find them so we can finally say 'yes'. |
| 13182 |
|
lt_cv_sys_dlopen_deplibs=yes |
| 13183 |
|
;; |
| 13184 |
|
qnx*) |
| 13195 |
|
fi |
| 13196 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
| 13197 |
|
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
| 13198 |
< |
if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
| 13198 |
> |
if test yes != "$lt_cv_sys_dlopen_deplibs"; then |
| 13199 |
|
|
| 13200 |
|
$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
| 13201 |
|
|
| 13202 |
|
fi |
| 13203 |
|
|
| 12656 |
– |
: |
| 13204 |
|
|
| 13205 |
|
for ac_header in argz.h |
| 13206 |
|
do : |
| 13237 |
|
fi |
| 13238 |
|
|
| 13239 |
|
|
| 13240 |
< |
ARGZ_H= |
| 13240 |
> |
LT_ARGZ_H= |
| 13241 |
|
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
| 13242 |
|
argz_next argz_stringify |
| 13243 |
|
do : |
| 13249 |
|
_ACEOF |
| 13250 |
|
|
| 13251 |
|
else |
| 13252 |
< |
ARGZ_H=argz.h; |
| 13252 |
> |
LT_ARGZ_H=lt__argz.h; |
| 13253 |
|
|
| 13254 |
< |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 13254 |
> |
_LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" |
| 13255 |
|
|
| 13256 |
|
fi |
| 13257 |
|
done |
| 13258 |
|
|
| 13259 |
|
|
| 13260 |
< |
if test -z "$ARGZ_H"; then : |
| 13260 |
> |
if test -z "$LT_ARGZ_H"; then : |
| 13261 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
| 13262 |
|
$as_echo_n "checking if argz actually works... " >&6; } |
| 13263 |
|
if ${lt_cv_sys_argz_works+:} false; then : |
| 13266 |
|
case $host_os in #( |
| 13267 |
|
*cygwin*) |
| 13268 |
|
lt_cv_sys_argz_works=no |
| 13269 |
< |
if test "$cross_compiling" != no; then |
| 13269 |
> |
if test no != "$cross_compiling"; then |
| 13270 |
|
lt_cv_sys_argz_works="guessing no" |
| 13271 |
|
else |
| 13272 |
|
lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
| 13277 |
|
lt_os_major=${2-0} |
| 13278 |
|
lt_os_minor=${3-0} |
| 13279 |
|
lt_os_micro=${4-0} |
| 13280 |
< |
if test "$lt_os_major" -gt 1 \ |
| 13281 |
< |
|| { test "$lt_os_major" -eq 1 \ |
| 13282 |
< |
&& { test "$lt_os_minor" -gt 5 \ |
| 13283 |
< |
|| { test "$lt_os_minor" -eq 5 \ |
| 13284 |
< |
&& test "$lt_os_micro" -gt 24; }; }; }; then |
| 13280 |
> |
if test 1 -lt "$lt_os_major" \ |
| 13281 |
> |
|| { test 1 -eq "$lt_os_major" \ |
| 13282 |
> |
&& { test 5 -lt "$lt_os_minor" \ |
| 13283 |
> |
|| { test 5 -eq "$lt_os_minor" \ |
| 13284 |
> |
&& test 24 -lt "$lt_os_micro"; }; }; }; then |
| 13285 |
|
lt_cv_sys_argz_works=yes |
| 13286 |
|
fi |
| 13287 |
|
fi |
| 13291 |
|
fi |
| 13292 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
| 13293 |
|
$as_echo "$lt_cv_sys_argz_works" >&6; } |
| 13294 |
< |
if test "$lt_cv_sys_argz_works" = yes; then : |
| 13294 |
> |
if test yes = "$lt_cv_sys_argz_works"; then : |
| 13295 |
|
|
| 13296 |
|
$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
| 13297 |
|
|
| 13298 |
|
else |
| 13299 |
< |
ARGZ_H=argz.h |
| 13299 |
> |
LT_ARGZ_H=lt__argz.h |
| 13300 |
|
|
| 13301 |
|
|
| 13302 |
< |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 13302 |
> |
_LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" |
| 13303 |
|
|
| 13304 |
|
fi |
| 13305 |
|
fi |
| 13320 |
|
fi |
| 13321 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
| 13322 |
|
$as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
| 13323 |
< |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 13323 |
> |
if test yes = "$libltdl_cv_preloaded_symbols"; then |
| 13324 |
|
|
| 13325 |
|
$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
| 13326 |
|
|
| 13344 |
|
fi |
| 13345 |
|
|
| 13346 |
|
|
| 13347 |
< |
if test "x$with_included_ltdl" != xyes; then |
| 13347 |
> |
if test yes != "$with_included_ltdl"; then |
| 13348 |
|
# We are not being forced to use the included libltdl sources, so |
| 13349 |
|
# decide whether there is a useful installed version we can use. |
| 13350 |
|
ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
| 13420 |
|
if test -n "$with_ltdl_include"; then |
| 13421 |
|
if test -f "$with_ltdl_include/ltdl.h"; then : |
| 13422 |
|
else |
| 13423 |
< |
as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
| 13423 |
> |
as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5 |
| 13424 |
|
fi |
| 13425 |
|
else |
| 13426 |
|
with_ltdl_include=no |
| 13436 |
|
if test -n "$with_ltdl_lib"; then |
| 13437 |
|
if test -f "$with_ltdl_lib/libltdl.la"; then : |
| 13438 |
|
else |
| 13439 |
< |
as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
| 13439 |
> |
as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5 |
| 13440 |
|
fi |
| 13441 |
|
else |
| 13442 |
|
with_ltdl_lib=no |
| 13449 |
|
"") enable_ltdl_convenience=yes |
| 13450 |
|
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 13451 |
|
esac |
| 13452 |
< |
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 13452 |
> |
LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 13453 |
|
LTDLDEPS=$LIBLTDL |
| 13454 |
< |
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 13454 |
> |
LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 13455 |
|
|
| 13456 |
|
|
| 13457 |
|
|
| 13458 |
|
|
| 13459 |
|
|
| 13460 |
|
# For backwards non-gettext consistent compatibility... |
| 13461 |
< |
INCLTDL="$LTDLINCL" |
| 13461 |
> |
INCLTDL=$LTDLINCL |
| 13462 |
|
|
| 13463 |
|
|
| 13464 |
|
;; |
| 13473 |
|
LTDLINCL= |
| 13474 |
|
;; |
| 13475 |
|
,no*,no,*) |
| 13476 |
< |
as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| 13476 |
> |
as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| 13477 |
|
;; |
| 13478 |
|
*) with_included_ltdl=no |
| 13479 |
|
LIBLTDL="-L$with_ltdl_lib -lltdl" |
| 13480 |
|
LTDLDEPS= |
| 13481 |
< |
LTDLINCL="-I$with_ltdl_include" |
| 13481 |
> |
LTDLINCL=-I$with_ltdl_include |
| 13482 |
|
;; |
| 13483 |
|
esac |
| 13484 |
< |
INCLTDL="$LTDLINCL" |
| 13484 |
> |
INCLTDL=$LTDLINCL |
| 13485 |
|
|
| 13486 |
|
# Report our decision... |
| 13487 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
| 13501 |
|
fi |
| 13502 |
|
|
| 13503 |
|
|
| 13504 |
< |
case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
| 13504 |
> |
case ,$enable_ltdl_install,$enable_ltdl_convenience in |
| 13505 |
|
*yes*) ;; |
| 13506 |
|
*) enable_ltdl_convenience=yes ;; |
| 13507 |
|
esac |
| 13508 |
|
|
| 13509 |
< |
if test x"${enable_ltdl_install-no}" != xno; then |
| 13509 |
> |
if test no != "${enable_ltdl_install-no}"; then |
| 13510 |
|
INSTALL_LTDL_TRUE= |
| 13511 |
|
INSTALL_LTDL_FALSE='#' |
| 13512 |
|
else |
| 13514 |
|
INSTALL_LTDL_FALSE= |
| 13515 |
|
fi |
| 13516 |
|
|
| 13517 |
< |
if test x"${enable_ltdl_convenience-no}" != xno; then |
| 13517 |
> |
if test no != "${enable_ltdl_convenience-no}"; then |
| 13518 |
|
CONVENIENCE_LTDL_TRUE= |
| 13519 |
|
CONVENIENCE_LTDL_FALSE='#' |
| 13520 |
|
else |
| 13616 |
|
|
| 13617 |
|
# Checks for libraries. |
| 13618 |
|
|
| 13619 |
+ |
|
| 13620 |
+ |
if test "X$CC" != "X"; then |
| 13621 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 |
| 13622 |
+ |
$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } |
| 13623 |
+ |
if ${ssp_cv_cc+:} false; then : |
| 13624 |
+ |
$as_echo_n "(cached) " >&6 |
| 13625 |
+ |
else |
| 13626 |
+ |
ssp_old_cflags="$CFLAGS" |
| 13627 |
+ |
CFLAGS="$CFLAGS -fstack-protector" |
| 13628 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13629 |
+ |
/* end confdefs.h. */ |
| 13630 |
+ |
|
| 13631 |
+ |
int |
| 13632 |
+ |
main () |
| 13633 |
+ |
{ |
| 13634 |
+ |
|
| 13635 |
+ |
; |
| 13636 |
+ |
return 0; |
| 13637 |
+ |
} |
| 13638 |
+ |
_ACEOF |
| 13639 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13640 |
+ |
ssp_cv_cc=yes |
| 13641 |
+ |
else |
| 13642 |
+ |
ssp_cv_cc=no |
| 13643 |
+ |
fi |
| 13644 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13645 |
+ |
CFLAGS="$ssp_old_cflags" |
| 13646 |
+ |
|
| 13647 |
+ |
fi |
| 13648 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 |
| 13649 |
+ |
$as_echo "$ssp_cv_cc" >&6; } |
| 13650 |
+ |
if test $ssp_cv_cc = yes; then |
| 13651 |
+ |
CFLAGS="$CFLAGS -fstack-protector" |
| 13652 |
+ |
|
| 13653 |
+ |
$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h |
| 13654 |
+ |
|
| 13655 |
+ |
fi |
| 13656 |
+ |
fi |
| 13657 |
+ |
|
| 13658 |
+ |
|
| 13659 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5 |
| 13660 |
+ |
$as_echo_n "checking whether libssp exists... " >&6; } |
| 13661 |
+ |
if ${ssp_cv_lib+:} false; then : |
| 13662 |
+ |
$as_echo_n "(cached) " >&6 |
| 13663 |
+ |
else |
| 13664 |
+ |
ssp_old_libs="$LIBS" |
| 13665 |
+ |
LIBS="$LIBS -lssp" |
| 13666 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13667 |
+ |
/* end confdefs.h. */ |
| 13668 |
+ |
|
| 13669 |
+ |
int |
| 13670 |
+ |
main () |
| 13671 |
+ |
{ |
| 13672 |
+ |
|
| 13673 |
+ |
; |
| 13674 |
+ |
return 0; |
| 13675 |
+ |
} |
| 13676 |
+ |
_ACEOF |
| 13677 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 13678 |
+ |
ssp_cv_lib=yes |
| 13679 |
+ |
else |
| 13680 |
+ |
ssp_cv_lib=no |
| 13681 |
+ |
fi |
| 13682 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 13683 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 13684 |
+ |
LIBS="$ssp_old_libs" |
| 13685 |
+ |
|
| 13686 |
+ |
fi |
| 13687 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5 |
| 13688 |
+ |
$as_echo "$ssp_cv_lib" >&6; } |
| 13689 |
+ |
if test $ssp_cv_lib = yes; then |
| 13690 |
+ |
LIBS="$LIBS -lssp" |
| 13691 |
+ |
fi |
| 13692 |
+ |
|
| 13693 |
+ |
|
| 13694 |
+ |
|
| 13695 |
+ |
|
| 13696 |
+ |
|
| 13697 |
+ |
|
| 13698 |
+ |
for flag in -fno-strict-aliasing; do |
| 13699 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 13700 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 13701 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 13702 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 13703 |
+ |
$as_echo_n "(cached) " >&6 |
| 13704 |
+ |
else |
| 13705 |
+ |
|
| 13706 |
+ |
ax_check_save_flags=$CFLAGS |
| 13707 |
+ |
CFLAGS="$CFLAGS $flag" |
| 13708 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13709 |
+ |
/* end confdefs.h. */ |
| 13710 |
+ |
|
| 13711 |
+ |
int |
| 13712 |
+ |
main () |
| 13713 |
+ |
{ |
| 13714 |
+ |
|
| 13715 |
+ |
; |
| 13716 |
+ |
return 0; |
| 13717 |
+ |
} |
| 13718 |
+ |
_ACEOF |
| 13719 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13720 |
+ |
eval "$as_CACHEVAR=yes" |
| 13721 |
+ |
else |
| 13722 |
+ |
eval "$as_CACHEVAR=no" |
| 13723 |
+ |
fi |
| 13724 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13725 |
+ |
CFLAGS=$ax_check_save_flags |
| 13726 |
+ |
fi |
| 13727 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 13728 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13729 |
+ |
$as_echo "$ac_res" >&6; } |
| 13730 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 13731 |
+ |
if ${CFLAGS+:} false; then : |
| 13732 |
+ |
case " $CFLAGS " in |
| 13733 |
+ |
*" $flag "*) |
| 13734 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 13735 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 13736 |
+ |
ac_status=$? |
| 13737 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13738 |
+ |
test $ac_status = 0; } |
| 13739 |
+ |
;; |
| 13740 |
+ |
*) |
| 13741 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 13742 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 13743 |
+ |
ac_status=$? |
| 13744 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13745 |
+ |
test $ac_status = 0; } |
| 13746 |
+ |
CFLAGS="$CFLAGS $flag" |
| 13747 |
+ |
;; |
| 13748 |
+ |
esac |
| 13749 |
+ |
else |
| 13750 |
+ |
CFLAGS="$flag" |
| 13751 |
+ |
fi |
| 13752 |
+ |
|
| 13753 |
+ |
else |
| 13754 |
+ |
: |
| 13755 |
+ |
fi |
| 13756 |
+ |
|
| 13757 |
+ |
done |
| 13758 |
+ |
|
| 13759 |
+ |
|
| 13760 |
|
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
| 13761 |
|
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
| 13762 |
|
|
| 13939 |
|
as_fn_error $? "socket library not found" "$LINENO" 5 |
| 13940 |
|
fi |
| 13941 |
|
|
| 13254 |
– |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h> |
| 13255 |
– |
#include <sys/socket.h> |
| 13256 |
– |
#include <netdb.h> |
| 13257 |
– |
|
| 13258 |
– |
" |
| 13259 |
– |
if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : |
| 13260 |
– |
|
| 13261 |
– |
cat >>confdefs.h <<_ACEOF |
| 13262 |
– |
#define HAVE_STRUCT_SOCKADDR_IN 1 |
| 13263 |
– |
_ACEOF |
| 13264 |
– |
|
| 13265 |
– |
|
| 13266 |
– |
fi |
| 13267 |
– |
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> |
| 13268 |
– |
#include <sys/socket.h> |
| 13269 |
– |
#include <netdb.h> |
| 13270 |
– |
|
| 13271 |
– |
" |
| 13272 |
– |
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
| 13273 |
– |
|
| 13274 |
– |
cat >>confdefs.h <<_ACEOF |
| 13275 |
– |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
| 13276 |
– |
_ACEOF |
| 13277 |
– |
|
| 13278 |
– |
|
| 13279 |
– |
fi |
| 13280 |
– |
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h> |
| 13281 |
– |
#include <sys/socket.h> |
| 13282 |
– |
#include <netdb.h> |
| 13283 |
– |
|
| 13284 |
– |
" |
| 13285 |
– |
if test "x$ac_cv_type_struct_addrinfo" = xyes; then : |
| 13286 |
– |
|
| 13287 |
– |
cat >>confdefs.h <<_ACEOF |
| 13288 |
– |
#define HAVE_STRUCT_ADDRINFO 1 |
| 13289 |
– |
_ACEOF |
| 13290 |
– |
|
| 13291 |
– |
|
| 13292 |
– |
fi |
| 13293 |
– |
|
| 13294 |
– |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> |
| 13295 |
– |
<sys/socket.h> |
| 13296 |
– |
" |
| 13297 |
– |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : |
| 13298 |
– |
|
| 13299 |
– |
cat >>confdefs.h <<_ACEOF |
| 13300 |
– |
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 |
| 13301 |
– |
_ACEOF |
| 13302 |
– |
|
| 13303 |
– |
|
| 13304 |
– |
fi |
| 13305 |
– |
|
| 13306 |
– |
|
| 13307 |
– |
|
| 13308 |
– |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
| 13309 |
– |
" |
| 13310 |
– |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
| 13311 |
– |
|
| 13312 |
– |
$as_echo "#define IPV6 1" >>confdefs.h |
| 13313 |
– |
|
| 13314 |
– |
fi |
| 13315 |
– |
|
| 13942 |
|
|
| 13943 |
|
|
| 13944 |
|
# Checks for typedefs, structures, and compiler characteristics. |
| 14284 |
|
fi |
| 14285 |
|
|
| 14286 |
|
|
| 14287 |
< |
# Check whether --enable-libpcre was given. |
| 14288 |
< |
if test "${enable_libpcre+set}" = set; then : |
| 14289 |
< |
enableval=$enable_libpcre; |
| 14290 |
< |
else |
| 14291 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
| 14292 |
< |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
| 14293 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5 |
| 14294 |
< |
$as_echo_n "checking for library containing pcre_study... " >&6; } |
| 14295 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 14296 |
< |
$as_echo_n "(cached) " >&6 |
| 14297 |
< |
else |
| 14298 |
< |
ac_func_search_save_LIBS=$LIBS |
| 14299 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14287 |
> |
|
| 14288 |
> |
$as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h |
| 14289 |
> |
|
| 14290 |
> |
|
| 14291 |
> |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h |
| 14292 |
> |
|
| 14293 |
> |
|
| 14294 |
> |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h |
| 14295 |
> |
|
| 14296 |
> |
|
| 14297 |
> |
$as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h |
| 14298 |
> |
|
| 14299 |
> |
|
| 14300 |
> |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h |
| 14301 |
> |
|
| 14302 |
> |
|
| 14303 |
> |
$as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h |
| 14304 |
> |
|
| 14305 |
> |
|
| 14306 |
> |
$as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h |
| 14307 |
> |
|
| 14308 |
> |
|
| 14309 |
> |
$as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h |
| 14310 |
> |
|
| 14311 |
> |
|
| 14312 |
> |
$as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h |
| 14313 |
> |
|
| 14314 |
> |
|
| 14315 |
> |
$as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h |
| 14316 |
> |
|
| 14317 |
> |
|
| 14318 |
> |
$as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h |
| 14319 |
> |
|
| 14320 |
> |
|
| 14321 |
> |
$as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h |
| 14322 |
> |
|
| 14323 |
> |
|
| 14324 |
> |
$as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h |
| 14325 |
> |
|
| 14326 |
> |
|
| 14327 |
> |
$as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h |
| 14328 |
> |
|
| 14329 |
> |
|
| 14330 |
> |
# Argument processing. |
| 14331 |
> |
|
| 14332 |
> |
desired_iopoll_mechanism="none" |
| 14333 |
> |
|
| 14334 |
> |
# Check whether --enable-kqueue was given. |
| 14335 |
> |
if test "${enable_kqueue+set}" = set; then : |
| 14336 |
> |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
| 14337 |
> |
fi |
| 14338 |
> |
|
| 14339 |
> |
# Check whether --enable-epoll was given. |
| 14340 |
> |
if test "${enable_epoll+set}" = set; then : |
| 14341 |
> |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
| 14342 |
> |
fi |
| 14343 |
> |
|
| 14344 |
> |
# Check whether --enable-devpoll was given. |
| 14345 |
> |
if test "${enable_devpoll+set}" = set; then : |
| 14346 |
> |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
| 14347 |
> |
fi |
| 14348 |
> |
|
| 14349 |
> |
# Check whether --enable-poll was given. |
| 14350 |
> |
if test "${enable_poll+set}" = set; then : |
| 14351 |
> |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 14352 |
> |
fi |
| 14353 |
> |
|
| 14354 |
> |
|
| 14355 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 14356 |
> |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
| 14357 |
> |
|
| 14358 |
> |
iopoll_mechanism_none=0 |
| 14359 |
> |
|
| 14360 |
> |
cat >>confdefs.h <<_ACEOF |
| 14361 |
> |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
| 14362 |
> |
_ACEOF |
| 14363 |
> |
|
| 14364 |
> |
|
| 14365 |
> |
iopoll_mechanism_kqueue=1 |
| 14366 |
> |
|
| 14367 |
> |
cat >>confdefs.h <<_ACEOF |
| 14368 |
> |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
| 14369 |
> |
_ACEOF |
| 14370 |
> |
|
| 14371 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14372 |
|
/* end confdefs.h. */ |
| 14373 |
+ |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
| 14374 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14375 |
+ |
#define kevent innocuous_kevent |
| 14376 |
+ |
|
| 14377 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
| 14378 |
+ |
which can conflict with char kevent (); below. |
| 14379 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14380 |
+ |
<limits.h> exists even on freestanding compilers. */ |
| 14381 |
+ |
|
| 14382 |
+ |
#ifdef __STDC__ |
| 14383 |
+ |
# include <limits.h> |
| 14384 |
+ |
#else |
| 14385 |
+ |
# include <assert.h> |
| 14386 |
+ |
#endif |
| 14387 |
+ |
|
| 14388 |
+ |
#undef kevent |
| 14389 |
|
|
| 14390 |
|
/* Override any GCC internal prototype to avoid an error. |
| 14391 |
|
Use char because int might match the return type of a GCC |
| 14393 |
|
#ifdef __cplusplus |
| 14394 |
|
extern "C" |
| 14395 |
|
#endif |
| 14396 |
< |
char pcre_study (); |
| 14396 |
> |
char kevent (); |
| 14397 |
> |
/* The GNU C library defines this for functions which it implements |
| 14398 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 14399 |
> |
something starting with __ and the normal name is an alias. */ |
| 14400 |
> |
#if defined __stub_kevent || defined __stub___kevent |
| 14401 |
> |
choke me |
| 14402 |
> |
#endif |
| 14403 |
> |
|
| 14404 |
|
int |
| 14405 |
|
main () |
| 14406 |
|
{ |
| 14407 |
< |
return pcre_study (); |
| 14407 |
> |
return kevent (); |
| 14408 |
|
; |
| 14409 |
|
return 0; |
| 14410 |
|
} |
| 14411 |
|
_ACEOF |
| 14412 |
< |
for ac_lib in '' pcre; do |
| 14413 |
< |
if test -z "$ac_lib"; then |
| 14414 |
< |
ac_res="none required" |
| 14415 |
< |
else |
| 13695 |
< |
ac_res=-l$ac_lib |
| 13696 |
< |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13697 |
< |
fi |
| 13698 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 13699 |
< |
ac_cv_search_pcre_study=$ac_res |
| 14412 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 14413 |
> |
is_kqueue_mechanism_available="yes" |
| 14414 |
> |
else |
| 14415 |
> |
is_kqueue_mechanism_available="no" |
| 14416 |
|
fi |
| 14417 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14418 |
< |
conftest$ac_exeext |
| 14419 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 14420 |
< |
break |
| 13705 |
< |
fi |
| 13706 |
< |
done |
| 13707 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 14418 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 14419 |
> |
|
| 14420 |
> |
iopoll_mechanism_epoll=2 |
| 14421 |
|
|
| 14422 |
+ |
cat >>confdefs.h <<_ACEOF |
| 14423 |
+ |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
| 14424 |
+ |
_ACEOF |
| 14425 |
+ |
|
| 14426 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14427 |
+ |
/* end confdefs.h. */ |
| 14428 |
+ |
#include <sys/epoll.h> |
| 14429 |
+ |
int |
| 14430 |
+ |
main () |
| 14431 |
+ |
{ |
| 14432 |
+ |
epoll_create(256); |
| 14433 |
+ |
; |
| 14434 |
+ |
return 0; |
| 14435 |
+ |
} |
| 14436 |
+ |
_ACEOF |
| 14437 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 14438 |
+ |
is_epoll_mechanism_available="yes" |
| 14439 |
|
else |
| 14440 |
< |
ac_cv_search_pcre_study=no |
| 13711 |
< |
fi |
| 13712 |
< |
rm conftest.$ac_ext |
| 13713 |
< |
LIBS=$ac_func_search_save_LIBS |
| 14440 |
> |
is_epoll_mechanism_available="no" |
| 14441 |
|
fi |
| 14442 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5 |
| 14443 |
< |
$as_echo "$ac_cv_search_pcre_study" >&6; } |
| 13717 |
< |
ac_res=$ac_cv_search_pcre_study |
| 13718 |
< |
if test "$ac_res" != no; then : |
| 13719 |
< |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14442 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 14443 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 14444 |
|
|
| 14445 |
< |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
| 14445 |
> |
iopoll_mechanism_devpoll=3 |
| 14446 |
|
|
| 14447 |
< |
fi |
| 14447 |
> |
cat >>confdefs.h <<_ACEOF |
| 14448 |
> |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
| 14449 |
> |
_ACEOF |
| 14450 |
|
|
| 14451 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14452 |
+ |
/* end confdefs.h. */ |
| 14453 |
+ |
#include <devpoll.h> |
| 14454 |
+ |
int |
| 14455 |
+ |
main () |
| 14456 |
+ |
{ |
| 14457 |
+ |
|
| 14458 |
+ |
; |
| 14459 |
+ |
return 0; |
| 14460 |
+ |
} |
| 14461 |
+ |
_ACEOF |
| 14462 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14463 |
+ |
is_devpoll_mechanism_available="yes" |
| 14464 |
+ |
else |
| 14465 |
+ |
is_devpoll_mechanism_available="no" |
| 14466 |
|
fi |
| 14467 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14468 |
+ |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 14469 |
|
|
| 14470 |
+ |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
| 14471 |
+ |
|
| 14472 |
+ |
fi |
| 14473 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14474 |
+ |
/* end confdefs.h. */ |
| 14475 |
+ |
#include <sys/devpoll.h> |
| 14476 |
+ |
int |
| 14477 |
+ |
main () |
| 14478 |
+ |
{ |
| 14479 |
|
|
| 14480 |
+ |
; |
| 14481 |
+ |
return 0; |
| 14482 |
+ |
} |
| 14483 |
+ |
_ACEOF |
| 14484 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14485 |
+ |
is_devpoll_mechanism_available="yes" |
| 14486 |
+ |
else |
| 14487 |
+ |
is_devpoll_mechanism_available="no" |
| 14488 |
|
fi |
| 14489 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14490 |
+ |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 14491 |
|
|
| 14492 |
+ |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 14493 |
|
|
| 14494 |
< |
# Check whether --enable-libGeoIP was given. |
| 14495 |
< |
if test "${enable_libGeoIP+set}" = set; then : |
| 14496 |
< |
enableval=$enable_libGeoIP; |
| 14497 |
< |
else |
| 14498 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
| 14499 |
< |
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
| 14500 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5 |
| 14501 |
< |
$as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; } |
| 14502 |
< |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 13740 |
< |
$as_echo_n "(cached) " >&6 |
| 13741 |
< |
else |
| 13742 |
< |
ac_func_search_save_LIBS=$LIBS |
| 13743 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14494 |
> |
fi |
| 14495 |
> |
|
| 14496 |
> |
iopoll_mechanism_poll=4 |
| 14497 |
> |
|
| 14498 |
> |
cat >>confdefs.h <<_ACEOF |
| 14499 |
> |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14500 |
> |
_ACEOF |
| 14501 |
> |
|
| 14502 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14503 |
|
/* end confdefs.h. */ |
| 14504 |
+ |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
| 14505 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14506 |
+ |
#define poll innocuous_poll |
| 14507 |
+ |
|
| 14508 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
| 14509 |
+ |
which can conflict with char poll (); below. |
| 14510 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14511 |
+ |
<limits.h> exists even on freestanding compilers. */ |
| 14512 |
+ |
|
| 14513 |
+ |
#ifdef __STDC__ |
| 14514 |
+ |
# include <limits.h> |
| 14515 |
+ |
#else |
| 14516 |
+ |
# include <assert.h> |
| 14517 |
+ |
#endif |
| 14518 |
+ |
|
| 14519 |
+ |
#undef poll |
| 14520 |
|
|
| 14521 |
|
/* Override any GCC internal prototype to avoid an error. |
| 14522 |
|
Use char because int might match the return type of a GCC |
| 14524 |
|
#ifdef __cplusplus |
| 14525 |
|
extern "C" |
| 14526 |
|
#endif |
| 14527 |
< |
char GeoIP_id_by_ipnum_v6_gl (); |
| 14527 |
> |
char poll (); |
| 14528 |
> |
/* The GNU C library defines this for functions which it implements |
| 14529 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 14530 |
> |
something starting with __ and the normal name is an alias. */ |
| 14531 |
> |
#if defined __stub_poll || defined __stub___poll |
| 14532 |
> |
choke me |
| 14533 |
> |
#endif |
| 14534 |
> |
|
| 14535 |
|
int |
| 14536 |
|
main () |
| 14537 |
|
{ |
| 14538 |
< |
return GeoIP_id_by_ipnum_v6_gl (); |
| 14538 |
> |
return poll (); |
| 14539 |
|
; |
| 14540 |
|
return 0; |
| 14541 |
|
} |
| 14542 |
|
_ACEOF |
| 14543 |
< |
for ac_lib in '' GeoIP; do |
| 14544 |
< |
if test -z "$ac_lib"; then |
| 14545 |
< |
ac_res="none required" |
| 14543 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 14544 |
> |
is_poll_mechanism_available="yes" |
| 14545 |
> |
else |
| 14546 |
> |
is_poll_mechanism_available="no" |
| 14547 |
> |
fi |
| 14548 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 14549 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 14550 |
> |
|
| 14551 |
> |
optimal_iopoll_mechanism="none" |
| 14552 |
> |
for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important |
| 14553 |
> |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 14554 |
> |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 14555 |
> |
optimal_iopoll_mechanism="$mechanism" |
| 14556 |
> |
break |
| 14557 |
> |
fi |
| 14558 |
> |
done |
| 14559 |
> |
|
| 14560 |
> |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14561 |
> |
if test "$optimal_iopoll_mechanism" = "none" ; then |
| 14562 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14563 |
> |
$as_echo "none" >&6; } |
| 14564 |
> |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
| 14565 |
> |
else |
| 14566 |
> |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
| 14567 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14568 |
> |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14569 |
> |
fi |
| 14570 |
|
else |
| 14571 |
< |
ac_res=-l$ac_lib |
| 14572 |
< |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14571 |
> |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
| 14572 |
> |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
| 14573 |
> |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
| 14574 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14575 |
> |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14576 |
> |
else |
| 14577 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14578 |
> |
$as_echo "none" >&6; } |
| 14579 |
> |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
| 14580 |
> |
fi |
| 14581 |
|
fi |
| 14582 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 14583 |
< |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res |
| 14582 |
> |
|
| 14583 |
> |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14584 |
> |
|
| 14585 |
> |
cat >>confdefs.h <<_ACEOF |
| 14586 |
> |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
| 14587 |
> |
_ACEOF |
| 14588 |
> |
|
| 14589 |
> |
|
| 14590 |
> |
|
| 14591 |
> |
# Check whether --enable-assert was given. |
| 14592 |
> |
if test "${enable_assert+set}" = set; then : |
| 14593 |
> |
enableval=$enable_assert; assert=$enableval |
| 14594 |
> |
else |
| 14595 |
> |
assert=no |
| 14596 |
|
fi |
| 14597 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 14598 |
< |
conftest$ac_exeext |
| 14599 |
< |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 14600 |
< |
break |
| 14597 |
> |
|
| 14598 |
> |
|
| 14599 |
> |
if test "$assert" = "no"; then : |
| 14600 |
> |
|
| 14601 |
> |
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 14602 |
> |
|
| 14603 |
|
fi |
| 13776 |
– |
done |
| 13777 |
– |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 14604 |
|
|
| 14605 |
+ |
|
| 14606 |
+ |
# Check whether --enable-debugging was given. |
| 14607 |
+ |
if test "${enable_debugging+set}" = set; then : |
| 14608 |
+ |
enableval=$enable_debugging; debugging="$enableval" |
| 14609 |
|
else |
| 14610 |
< |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no |
| 14610 |
> |
debugging="no" |
| 14611 |
|
fi |
| 14612 |
< |
rm conftest.$ac_ext |
| 14613 |
< |
LIBS=$ac_func_search_save_LIBS |
| 14612 |
> |
|
| 14613 |
> |
if test "$debugging" = "yes" ; then |
| 14614 |
> |
CFLAGS="-Wall -g -O0" |
| 14615 |
> |
fi |
| 14616 |
> |
|
| 14617 |
> |
|
| 14618 |
> |
# Check whether --enable-warnings was given. |
| 14619 |
> |
if test "${enable_warnings+set}" = set; then : |
| 14620 |
> |
enableval=$enable_warnings; warnings="$enableval" |
| 14621 |
> |
else |
| 14622 |
> |
warnings="no" |
| 14623 |
|
fi |
| 13785 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5 |
| 13786 |
– |
$as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; } |
| 13787 |
– |
ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl |
| 13788 |
– |
if test "$ac_res" != no; then : |
| 13789 |
– |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14624 |
|
|
| 13791 |
– |
$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h |
| 14625 |
|
|
| 14626 |
+ |
if test "$warnings" = "yes" ; then |
| 14627 |
+ |
|
| 14628 |
+ |
|
| 14629 |
+ |
|
| 14630 |
+ |
|
| 14631 |
+ |
for flag in -Wall; do |
| 14632 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14633 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14634 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14635 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 14636 |
+ |
$as_echo_n "(cached) " >&6 |
| 14637 |
+ |
else |
| 14638 |
+ |
|
| 14639 |
+ |
ax_check_save_flags=$CFLAGS |
| 14640 |
+ |
CFLAGS="$CFLAGS $flag" |
| 14641 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14642 |
+ |
/* end confdefs.h. */ |
| 14643 |
+ |
|
| 14644 |
+ |
int |
| 14645 |
+ |
main () |
| 14646 |
+ |
{ |
| 14647 |
+ |
|
| 14648 |
+ |
; |
| 14649 |
+ |
return 0; |
| 14650 |
+ |
} |
| 14651 |
+ |
_ACEOF |
| 14652 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14653 |
+ |
eval "$as_CACHEVAR=yes" |
| 14654 |
+ |
else |
| 14655 |
+ |
eval "$as_CACHEVAR=no" |
| 14656 |
+ |
fi |
| 14657 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14658 |
+ |
CFLAGS=$ax_check_save_flags |
| 14659 |
+ |
fi |
| 14660 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 14661 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14662 |
+ |
$as_echo "$ac_res" >&6; } |
| 14663 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14664 |
+ |
if ${CFLAGS+:} false; then : |
| 14665 |
+ |
case " $CFLAGS " in |
| 14666 |
+ |
*" $flag "*) |
| 14667 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14668 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 14669 |
+ |
ac_status=$? |
| 14670 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14671 |
+ |
test $ac_status = 0; } |
| 14672 |
+ |
;; |
| 14673 |
+ |
*) |
| 14674 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14675 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14676 |
+ |
ac_status=$? |
| 14677 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14678 |
+ |
test $ac_status = 0; } |
| 14679 |
+ |
CFLAGS="$CFLAGS $flag" |
| 14680 |
+ |
;; |
| 14681 |
+ |
esac |
| 14682 |
+ |
else |
| 14683 |
+ |
CFLAGS="$flag" |
| 14684 |
|
fi |
| 14685 |
|
|
| 14686 |
+ |
else |
| 14687 |
+ |
: |
| 14688 |
|
fi |
| 14689 |
|
|
| 14690 |
+ |
done |
| 14691 |
|
|
| 13798 |
– |
fi |
| 14692 |
|
|
| 14693 |
|
|
| 14694 |
< |
# Check whether --enable-openssl was given. |
| 14695 |
< |
if test "${enable_openssl+set}" = set; then : |
| 14696 |
< |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 14694 |
> |
|
| 14695 |
> |
|
| 14696 |
> |
for flag in -Wbad-function-cast; do |
| 14697 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14698 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14699 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14700 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14701 |
> |
$as_echo_n "(cached) " >&6 |
| 14702 |
|
else |
| 13805 |
– |
cf_enable_openssl="auto" |
| 13806 |
– |
fi |
| 14703 |
|
|
| 14704 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
| 14705 |
< |
$as_echo_n "checking for OpenSSL... " >&6; } |
| 14706 |
< |
if test "$cf_enable_openssl" != "no"; then |
| 14707 |
< |
cf_openssl_basedir="" |
| 13812 |
< |
if test "$cf_enable_openssl" != "auto" && |
| 13813 |
< |
test "$cf_enable_openssl" != "yes"; then |
| 13814 |
< |
cf_openssl_basedir="${cf_enable_openssl}" |
| 13815 |
< |
else |
| 13816 |
< |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 13817 |
< |
/opt /opt/openssl /usr/local/openssl; do |
| 13818 |
< |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 13819 |
< |
cf_openssl_basedir="${dirs}" |
| 13820 |
< |
break |
| 13821 |
< |
fi |
| 13822 |
< |
done |
| 13823 |
< |
unset dirs |
| 13824 |
< |
fi |
| 14704 |
> |
ax_check_save_flags=$CFLAGS |
| 14705 |
> |
CFLAGS="$CFLAGS $flag" |
| 14706 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14707 |
> |
/* end confdefs.h. */ |
| 14708 |
|
|
| 14709 |
< |
if test ! -z "$cf_openssl_basedir"; then |
| 14710 |
< |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 14711 |
< |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 13829 |
< |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 13830 |
< |
else |
| 13831 |
< |
cf_openssl_basedir="" |
| 13832 |
< |
fi |
| 13833 |
< |
else |
| 13834 |
< |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 13835 |
< |
cf_openssl_basedir="/usr" |
| 13836 |
< |
fi |
| 13837 |
< |
fi |
| 14709 |
> |
int |
| 14710 |
> |
main () |
| 14711 |
> |
{ |
| 14712 |
|
|
| 14713 |
< |
if test ! -z "$cf_openssl_basedir"; then |
| 14714 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 14715 |
< |
$as_echo "$cf_openssl_basedir" >&6; } |
| 14716 |
< |
cf_enable_openssl="yes" |
| 14717 |
< |
else |
| 14718 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 13845 |
< |
$as_echo "not found. Please check your path." >&6; } |
| 13846 |
< |
cf_enable_openssl="no" |
| 13847 |
< |
fi |
| 13848 |
< |
unset cf_openssl_basedir |
| 14713 |
> |
; |
| 14714 |
> |
return 0; |
| 14715 |
> |
} |
| 14716 |
> |
_ACEOF |
| 14717 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14718 |
> |
eval "$as_CACHEVAR=yes" |
| 14719 |
|
else |
| 14720 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 14721 |
< |
$as_echo "disabled" >&6; } |
| 14720 |
> |
eval "$as_CACHEVAR=no" |
| 14721 |
> |
fi |
| 14722 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14723 |
> |
CFLAGS=$ax_check_save_flags |
| 14724 |
> |
fi |
| 14725 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14726 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14727 |
> |
$as_echo "$ac_res" >&6; } |
| 14728 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14729 |
> |
if ${CFLAGS+:} false; then : |
| 14730 |
> |
case " $CFLAGS " in |
| 14731 |
> |
*" $flag "*) |
| 14732 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14733 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14734 |
> |
ac_status=$? |
| 14735 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14736 |
> |
test $ac_status = 0; } |
| 14737 |
> |
;; |
| 14738 |
> |
*) |
| 14739 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14740 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14741 |
> |
ac_status=$? |
| 14742 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14743 |
> |
test $ac_status = 0; } |
| 14744 |
> |
CFLAGS="$CFLAGS $flag" |
| 14745 |
> |
;; |
| 14746 |
> |
esac |
| 14747 |
> |
else |
| 14748 |
> |
CFLAGS="$flag" |
| 14749 |
|
fi |
| 14750 |
|
|
| 13854 |
– |
if test "$cf_enable_openssl" != "no"; then : |
| 13855 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5 |
| 13856 |
– |
$as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; } |
| 13857 |
– |
if test "$cross_compiling" = yes; then : |
| 13858 |
– |
cf_openssl_version_ok=no |
| 14751 |
|
else |
| 14752 |
+ |
: |
| 14753 |
+ |
fi |
| 14754 |
+ |
|
| 14755 |
+ |
done |
| 14756 |
+ |
|
| 14757 |
+ |
|
| 14758 |
+ |
|
| 14759 |
+ |
|
| 14760 |
+ |
|
| 14761 |
+ |
for flag in -Wcast-align; do |
| 14762 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14763 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14764 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14765 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 14766 |
+ |
$as_echo_n "(cached) " >&6 |
| 14767 |
+ |
else |
| 14768 |
+ |
|
| 14769 |
+ |
ax_check_save_flags=$CFLAGS |
| 14770 |
+ |
CFLAGS="$CFLAGS $flag" |
| 14771 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14772 |
|
/* end confdefs.h. */ |
| 14773 |
|
|
| 13863 |
– |
|
| 13864 |
– |
#include <openssl/opensslv.h> |
| 13865 |
– |
#include <stdlib.h> |
| 14774 |
|
int |
| 14775 |
|
main () |
| 14776 |
|
{ |
| 14777 |
< |
exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f)); |
| 14777 |
> |
|
| 14778 |
|
; |
| 14779 |
|
return 0; |
| 14780 |
|
} |
| 14781 |
|
_ACEOF |
| 14782 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 14783 |
< |
cf_openssl_version_ok=yes |
| 14782 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14783 |
> |
eval "$as_CACHEVAR=yes" |
| 14784 |
|
else |
| 14785 |
< |
cf_openssl_version_ok=no |
| 14785 |
> |
eval "$as_CACHEVAR=no" |
| 14786 |
|
fi |
| 14787 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14788 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14787 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14788 |
> |
CFLAGS=$ax_check_save_flags |
| 14789 |
> |
fi |
| 14790 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14791 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14792 |
> |
$as_echo "$ac_res" >&6; } |
| 14793 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14794 |
> |
if ${CFLAGS+:} false; then : |
| 14795 |
> |
case " $CFLAGS " in |
| 14796 |
> |
*" $flag "*) |
| 14797 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14798 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14799 |
> |
ac_status=$? |
| 14800 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14801 |
> |
test $ac_status = 0; } |
| 14802 |
> |
;; |
| 14803 |
> |
*) |
| 14804 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14805 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14806 |
> |
ac_status=$? |
| 14807 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14808 |
> |
test $ac_status = 0; } |
| 14809 |
> |
CFLAGS="$CFLAGS $flag" |
| 14810 |
> |
;; |
| 14811 |
> |
esac |
| 14812 |
> |
else |
| 14813 |
> |
CFLAGS="$flag" |
| 14814 |
|
fi |
| 14815 |
|
|
| 14816 |
+ |
else |
| 14817 |
+ |
: |
| 14818 |
+ |
fi |
| 14819 |
|
|
| 14820 |
< |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 13885 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 13886 |
< |
$as_echo "found" >&6; } |
| 14820 |
> |
done |
| 14821 |
|
|
| 14822 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 14823 |
< |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 14824 |
< |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 14822 |
> |
|
| 14823 |
> |
|
| 14824 |
> |
|
| 14825 |
> |
|
| 14826 |
> |
for flag in -Wcast-qual; do |
| 14827 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14828 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14829 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14830 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14831 |
|
$as_echo_n "(cached) " >&6 |
| 14832 |
|
else |
| 14833 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 14834 |
< |
LIBS="-lcrypto $LIBS" |
| 14835 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14833 |
> |
|
| 14834 |
> |
ax_check_save_flags=$CFLAGS |
| 14835 |
> |
CFLAGS="$CFLAGS $flag" |
| 14836 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14837 |
|
/* end confdefs.h. */ |
| 14838 |
|
|
| 13898 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 13899 |
– |
Use char because int might match the return type of a GCC |
| 13900 |
– |
builtin and then its argument prototype would still apply. */ |
| 13901 |
– |
#ifdef __cplusplus |
| 13902 |
– |
extern "C" |
| 13903 |
– |
#endif |
| 13904 |
– |
char RSA_free (); |
| 14839 |
|
int |
| 14840 |
|
main () |
| 14841 |
|
{ |
| 14842 |
< |
return RSA_free (); |
| 14842 |
> |
|
| 14843 |
|
; |
| 14844 |
|
return 0; |
| 14845 |
|
} |
| 14846 |
|
_ACEOF |
| 14847 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 14848 |
< |
ac_cv_lib_crypto_RSA_free=yes |
| 14847 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14848 |
> |
eval "$as_CACHEVAR=yes" |
| 14849 |
|
else |
| 14850 |
< |
ac_cv_lib_crypto_RSA_free=no |
| 14850 |
> |
eval "$as_CACHEVAR=no" |
| 14851 |
|
fi |
| 14852 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 14853 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 14854 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 14852 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14853 |
> |
CFLAGS=$ax_check_save_flags |
| 14854 |
> |
fi |
| 14855 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14856 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14857 |
> |
$as_echo "$ac_res" >&6; } |
| 14858 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14859 |
> |
if ${CFLAGS+:} false; then : |
| 14860 |
> |
case " $CFLAGS " in |
| 14861 |
> |
*" $flag "*) |
| 14862 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14863 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14864 |
> |
ac_status=$? |
| 14865 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14866 |
> |
test $ac_status = 0; } |
| 14867 |
> |
;; |
| 14868 |
> |
*) |
| 14869 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14870 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14871 |
> |
ac_status=$? |
| 14872 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14873 |
> |
test $ac_status = 0; } |
| 14874 |
> |
CFLAGS="$CFLAGS $flag" |
| 14875 |
> |
;; |
| 14876 |
> |
esac |
| 14877 |
> |
else |
| 14878 |
> |
CFLAGS="$flag" |
| 14879 |
|
fi |
| 13922 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 13923 |
– |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 13924 |
– |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 13925 |
– |
cat >>confdefs.h <<_ACEOF |
| 13926 |
– |
#define HAVE_LIBCRYPTO 1 |
| 13927 |
– |
_ACEOF |
| 13928 |
– |
|
| 13929 |
– |
LIBS="-lcrypto $LIBS" |
| 14880 |
|
|
| 14881 |
+ |
else |
| 14882 |
+ |
: |
| 14883 |
|
fi |
| 14884 |
|
|
| 14885 |
< |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 14886 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 14887 |
< |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 14888 |
< |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 14885 |
> |
done |
| 14886 |
> |
|
| 14887 |
> |
|
| 14888 |
> |
|
| 14889 |
> |
|
| 14890 |
> |
|
| 14891 |
> |
for flag in -Wclobbered; do |
| 14892 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14893 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14894 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14895 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14896 |
|
$as_echo_n "(cached) " >&6 |
| 14897 |
|
else |
| 14898 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 14899 |
< |
LIBS="-lssl $LIBS" |
| 14900 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14898 |
> |
|
| 14899 |
> |
ax_check_save_flags=$CFLAGS |
| 14900 |
> |
CFLAGS="$CFLAGS $flag" |
| 14901 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14902 |
|
/* end confdefs.h. */ |
| 14903 |
|
|
| 13944 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 13945 |
– |
Use char because int might match the return type of a GCC |
| 13946 |
– |
builtin and then its argument prototype would still apply. */ |
| 13947 |
– |
#ifdef __cplusplus |
| 13948 |
– |
extern "C" |
| 13949 |
– |
#endif |
| 13950 |
– |
char SSL_connect (); |
| 14904 |
|
int |
| 14905 |
|
main () |
| 14906 |
|
{ |
| 14907 |
< |
return SSL_connect (); |
| 14907 |
> |
|
| 14908 |
|
; |
| 14909 |
|
return 0; |
| 14910 |
|
} |
| 14911 |
|
_ACEOF |
| 14912 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 14913 |
< |
ac_cv_lib_ssl_SSL_connect=yes |
| 14912 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14913 |
> |
eval "$as_CACHEVAR=yes" |
| 14914 |
|
else |
| 14915 |
< |
ac_cv_lib_ssl_SSL_connect=no |
| 14915 |
> |
eval "$as_CACHEVAR=no" |
| 14916 |
|
fi |
| 14917 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 14918 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 14919 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 14917 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14918 |
> |
CFLAGS=$ax_check_save_flags |
| 14919 |
> |
fi |
| 14920 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14921 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14922 |
> |
$as_echo "$ac_res" >&6; } |
| 14923 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14924 |
> |
if ${CFLAGS+:} false; then : |
| 14925 |
> |
case " $CFLAGS " in |
| 14926 |
> |
*" $flag "*) |
| 14927 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14928 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14929 |
> |
ac_status=$? |
| 14930 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14931 |
> |
test $ac_status = 0; } |
| 14932 |
> |
;; |
| 14933 |
> |
*) |
| 14934 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 14935 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 14936 |
> |
ac_status=$? |
| 14937 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14938 |
> |
test $ac_status = 0; } |
| 14939 |
> |
CFLAGS="$CFLAGS $flag" |
| 14940 |
> |
;; |
| 14941 |
> |
esac |
| 14942 |
> |
else |
| 14943 |
> |
CFLAGS="$flag" |
| 14944 |
|
fi |
| 13968 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 13969 |
– |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 13970 |
– |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 13971 |
– |
cat >>confdefs.h <<_ACEOF |
| 13972 |
– |
#define HAVE_LIBSSL 1 |
| 13973 |
– |
_ACEOF |
| 14945 |
|
|
| 14946 |
< |
LIBS="-lssl $LIBS" |
| 14946 |
> |
else |
| 14947 |
> |
: |
| 14948 |
> |
fi |
| 14949 |
> |
|
| 14950 |
> |
done |
| 14951 |
> |
|
| 14952 |
> |
|
| 14953 |
> |
|
| 14954 |
|
|
| 14955 |
+ |
|
| 14956 |
+ |
for flag in -Wempty-body; do |
| 14957 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14958 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14959 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14960 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 14961 |
+ |
$as_echo_n "(cached) " >&6 |
| 14962 |
+ |
else |
| 14963 |
+ |
|
| 14964 |
+ |
ax_check_save_flags=$CFLAGS |
| 14965 |
+ |
CFLAGS="$CFLAGS $flag" |
| 14966 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14967 |
+ |
/* end confdefs.h. */ |
| 14968 |
+ |
|
| 14969 |
+ |
int |
| 14970 |
+ |
main () |
| 14971 |
+ |
{ |
| 14972 |
+ |
|
| 14973 |
+ |
; |
| 14974 |
+ |
return 0; |
| 14975 |
+ |
} |
| 14976 |
+ |
_ACEOF |
| 14977 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14978 |
+ |
eval "$as_CACHEVAR=yes" |
| 14979 |
+ |
else |
| 14980 |
+ |
eval "$as_CACHEVAR=no" |
| 14981 |
+ |
fi |
| 14982 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14983 |
+ |
CFLAGS=$ax_check_save_flags |
| 14984 |
+ |
fi |
| 14985 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 14986 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14987 |
+ |
$as_echo "$ac_res" >&6; } |
| 14988 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 14989 |
+ |
if ${CFLAGS+:} false; then : |
| 14990 |
+ |
case " $CFLAGS " in |
| 14991 |
+ |
*" $flag "*) |
| 14992 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14993 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 14994 |
+ |
ac_status=$? |
| 14995 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14996 |
+ |
test $ac_status = 0; } |
| 14997 |
+ |
;; |
| 14998 |
+ |
*) |
| 14999 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15000 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15001 |
+ |
ac_status=$? |
| 15002 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15003 |
+ |
test $ac_status = 0; } |
| 15004 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15005 |
+ |
;; |
| 15006 |
+ |
esac |
| 15007 |
+ |
else |
| 15008 |
+ |
CFLAGS="$flag" |
| 15009 |
|
fi |
| 15010 |
|
|
| 15011 |
+ |
else |
| 15012 |
+ |
: |
| 15013 |
|
fi |
| 15014 |
|
|
| 15015 |
+ |
done |
| 15016 |
+ |
|
| 15017 |
+ |
|
| 15018 |
+ |
|
| 15019 |
+ |
|
| 15020 |
+ |
|
| 15021 |
+ |
for flag in -Wignored-qualifiers; do |
| 15022 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15023 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15024 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15025 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15026 |
+ |
$as_echo_n "(cached) " >&6 |
| 15027 |
|
else |
| 15028 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
| 15029 |
< |
$as_echo "no - OpenSSL support disabled" >&6; } |
| 15030 |
< |
cf_enable_openssl="no" |
| 15028 |
> |
|
| 15029 |
> |
ax_check_save_flags=$CFLAGS |
| 15030 |
> |
CFLAGS="$CFLAGS $flag" |
| 15031 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15032 |
> |
/* end confdefs.h. */ |
| 15033 |
> |
|
| 15034 |
> |
int |
| 15035 |
> |
main () |
| 15036 |
> |
{ |
| 15037 |
> |
|
| 15038 |
> |
; |
| 15039 |
> |
return 0; |
| 15040 |
> |
} |
| 15041 |
> |
_ACEOF |
| 15042 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15043 |
> |
eval "$as_CACHEVAR=yes" |
| 15044 |
> |
else |
| 15045 |
> |
eval "$as_CACHEVAR=no" |
| 15046 |
|
fi |
| 15047 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15048 |
+ |
CFLAGS=$ax_check_save_flags |
| 15049 |
+ |
fi |
| 15050 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15051 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15052 |
+ |
$as_echo "$ac_res" >&6; } |
| 15053 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15054 |
+ |
if ${CFLAGS+:} false; then : |
| 15055 |
+ |
case " $CFLAGS " in |
| 15056 |
+ |
*" $flag "*) |
| 15057 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15058 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15059 |
+ |
ac_status=$? |
| 15060 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15061 |
+ |
test $ac_status = 0; } |
| 15062 |
+ |
;; |
| 15063 |
+ |
*) |
| 15064 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15065 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15066 |
+ |
ac_status=$? |
| 15067 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15068 |
+ |
test $ac_status = 0; } |
| 15069 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15070 |
+ |
;; |
| 15071 |
+ |
esac |
| 15072 |
+ |
else |
| 15073 |
+ |
CFLAGS="$flag" |
| 15074 |
|
fi |
| 15075 |
|
|
| 13988 |
– |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
| 13989 |
– |
ENABLE_SSL_TRUE= |
| 13990 |
– |
ENABLE_SSL_FALSE='#' |
| 15076 |
|
else |
| 15077 |
< |
ENABLE_SSL_TRUE='#' |
| 13993 |
< |
ENABLE_SSL_FALSE= |
| 15077 |
> |
: |
| 15078 |
|
fi |
| 15079 |
|
|
| 15080 |
+ |
done |
| 15081 |
|
|
| 15082 |
|
|
| 15083 |
< |
# Check whether --enable-assert was given. |
| 15084 |
< |
if test "${enable_assert+set}" = set; then : |
| 15085 |
< |
enableval=$enable_assert; assert=$enableval |
| 15083 |
> |
|
| 15084 |
> |
|
| 15085 |
> |
|
| 15086 |
> |
for flag in -Wlogical-op; do |
| 15087 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15088 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15089 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15090 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15091 |
> |
$as_echo_n "(cached) " >&6 |
| 15092 |
|
else |
| 15093 |
< |
assert=no |
| 15093 |
> |
|
| 15094 |
> |
ax_check_save_flags=$CFLAGS |
| 15095 |
> |
CFLAGS="$CFLAGS $flag" |
| 15096 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15097 |
> |
/* end confdefs.h. */ |
| 15098 |
> |
|
| 15099 |
> |
int |
| 15100 |
> |
main () |
| 15101 |
> |
{ |
| 15102 |
> |
|
| 15103 |
> |
; |
| 15104 |
> |
return 0; |
| 15105 |
> |
} |
| 15106 |
> |
_ACEOF |
| 15107 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15108 |
> |
eval "$as_CACHEVAR=yes" |
| 15109 |
> |
else |
| 15110 |
> |
eval "$as_CACHEVAR=no" |
| 15111 |
> |
fi |
| 15112 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15113 |
> |
CFLAGS=$ax_check_save_flags |
| 15114 |
> |
fi |
| 15115 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15116 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15117 |
> |
$as_echo "$ac_res" >&6; } |
| 15118 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15119 |
> |
if ${CFLAGS+:} false; then : |
| 15120 |
> |
case " $CFLAGS " in |
| 15121 |
> |
*" $flag "*) |
| 15122 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15123 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15124 |
> |
ac_status=$? |
| 15125 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15126 |
> |
test $ac_status = 0; } |
| 15127 |
> |
;; |
| 15128 |
> |
*) |
| 15129 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15130 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15131 |
> |
ac_status=$? |
| 15132 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15133 |
> |
test $ac_status = 0; } |
| 15134 |
> |
CFLAGS="$CFLAGS $flag" |
| 15135 |
> |
;; |
| 15136 |
> |
esac |
| 15137 |
> |
else |
| 15138 |
> |
CFLAGS="$flag" |
| 15139 |
|
fi |
| 15140 |
|
|
| 15141 |
+ |
else |
| 15142 |
+ |
: |
| 15143 |
+ |
fi |
| 15144 |
+ |
|
| 15145 |
+ |
done |
| 15146 |
+ |
|
| 15147 |
+ |
|
| 15148 |
|
|
| 14006 |
– |
if test "$assert" = "no"; then : |
| 15149 |
|
|
| 14008 |
– |
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 15150 |
|
|
| 15151 |
+ |
for flag in -Wmissing-declarations; do |
| 15152 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15153 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15154 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15155 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15156 |
+ |
$as_echo_n "(cached) " >&6 |
| 15157 |
+ |
else |
| 15158 |
+ |
|
| 15159 |
+ |
ax_check_save_flags=$CFLAGS |
| 15160 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15161 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15162 |
+ |
/* end confdefs.h. */ |
| 15163 |
+ |
|
| 15164 |
+ |
int |
| 15165 |
+ |
main () |
| 15166 |
+ |
{ |
| 15167 |
+ |
|
| 15168 |
+ |
; |
| 15169 |
+ |
return 0; |
| 15170 |
+ |
} |
| 15171 |
+ |
_ACEOF |
| 15172 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15173 |
+ |
eval "$as_CACHEVAR=yes" |
| 15174 |
+ |
else |
| 15175 |
+ |
eval "$as_CACHEVAR=no" |
| 15176 |
+ |
fi |
| 15177 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15178 |
+ |
CFLAGS=$ax_check_save_flags |
| 15179 |
+ |
fi |
| 15180 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15181 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15182 |
+ |
$as_echo "$ac_res" >&6; } |
| 15183 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15184 |
+ |
if ${CFLAGS+:} false; then : |
| 15185 |
+ |
case " $CFLAGS " in |
| 15186 |
+ |
*" $flag "*) |
| 15187 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15188 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15189 |
+ |
ac_status=$? |
| 15190 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15191 |
+ |
test $ac_status = 0; } |
| 15192 |
+ |
;; |
| 15193 |
+ |
*) |
| 15194 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15195 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15196 |
+ |
ac_status=$? |
| 15197 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15198 |
+ |
test $ac_status = 0; } |
| 15199 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15200 |
+ |
;; |
| 15201 |
+ |
esac |
| 15202 |
+ |
else |
| 15203 |
+ |
CFLAGS="$flag" |
| 15204 |
|
fi |
| 15205 |
|
|
| 15206 |
+ |
else |
| 15207 |
+ |
: |
| 15208 |
+ |
fi |
| 15209 |
|
|
| 15210 |
+ |
done |
| 15211 |
|
|
| 14014 |
– |
$as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h |
| 15212 |
|
|
| 15213 |
|
|
| 14017 |
– |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h |
| 15214 |
|
|
| 15215 |
|
|
| 15216 |
< |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h |
| 15216 |
> |
for flag in -Wmissing-field-initializers; do |
| 15217 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15218 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15219 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15220 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15221 |
> |
$as_echo_n "(cached) " >&6 |
| 15222 |
> |
else |
| 15223 |
|
|
| 15224 |
+ |
ax_check_save_flags=$CFLAGS |
| 15225 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15226 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15227 |
+ |
/* end confdefs.h. */ |
| 15228 |
|
|
| 15229 |
< |
$as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h |
| 15229 |
> |
int |
| 15230 |
> |
main () |
| 15231 |
> |
{ |
| 15232 |
|
|
| 15233 |
+ |
; |
| 15234 |
+ |
return 0; |
| 15235 |
+ |
} |
| 15236 |
+ |
_ACEOF |
| 15237 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15238 |
+ |
eval "$as_CACHEVAR=yes" |
| 15239 |
+ |
else |
| 15240 |
+ |
eval "$as_CACHEVAR=no" |
| 15241 |
+ |
fi |
| 15242 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15243 |
+ |
CFLAGS=$ax_check_save_flags |
| 15244 |
+ |
fi |
| 15245 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15246 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15247 |
+ |
$as_echo "$ac_res" >&6; } |
| 15248 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15249 |
+ |
if ${CFLAGS+:} false; then : |
| 15250 |
+ |
case " $CFLAGS " in |
| 15251 |
+ |
*" $flag "*) |
| 15252 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15253 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15254 |
+ |
ac_status=$? |
| 15255 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15256 |
+ |
test $ac_status = 0; } |
| 15257 |
+ |
;; |
| 15258 |
+ |
*) |
| 15259 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15260 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15261 |
+ |
ac_status=$? |
| 15262 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15263 |
+ |
test $ac_status = 0; } |
| 15264 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15265 |
+ |
;; |
| 15266 |
+ |
esac |
| 15267 |
+ |
else |
| 15268 |
+ |
CFLAGS="$flag" |
| 15269 |
+ |
fi |
| 15270 |
|
|
| 15271 |
< |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h |
| 15271 |
> |
else |
| 15272 |
> |
: |
| 15273 |
> |
fi |
| 15274 |
|
|
| 15275 |
+ |
done |
| 15276 |
|
|
| 14029 |
– |
$as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h |
| 15277 |
|
|
| 15278 |
|
|
| 14032 |
– |
$as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h |
| 15279 |
|
|
| 15280 |
|
|
| 15281 |
< |
$as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h |
| 15281 |
> |
for flag in -Wmissing-include-dirs; do |
| 15282 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15283 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15284 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15285 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15286 |
> |
$as_echo_n "(cached) " >&6 |
| 15287 |
> |
else |
| 15288 |
> |
|
| 15289 |
> |
ax_check_save_flags=$CFLAGS |
| 15290 |
> |
CFLAGS="$CFLAGS $flag" |
| 15291 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15292 |
> |
/* end confdefs.h. */ |
| 15293 |
> |
|
| 15294 |
> |
int |
| 15295 |
> |
main () |
| 15296 |
> |
{ |
| 15297 |
> |
|
| 15298 |
> |
; |
| 15299 |
> |
return 0; |
| 15300 |
> |
} |
| 15301 |
> |
_ACEOF |
| 15302 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15303 |
> |
eval "$as_CACHEVAR=yes" |
| 15304 |
> |
else |
| 15305 |
> |
eval "$as_CACHEVAR=no" |
| 15306 |
> |
fi |
| 15307 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15308 |
> |
CFLAGS=$ax_check_save_flags |
| 15309 |
> |
fi |
| 15310 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15311 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15312 |
> |
$as_echo "$ac_res" >&6; } |
| 15313 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15314 |
> |
if ${CFLAGS+:} false; then : |
| 15315 |
> |
case " $CFLAGS " in |
| 15316 |
> |
*" $flag "*) |
| 15317 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15318 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15319 |
> |
ac_status=$? |
| 15320 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15321 |
> |
test $ac_status = 0; } |
| 15322 |
> |
;; |
| 15323 |
> |
*) |
| 15324 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15325 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15326 |
> |
ac_status=$? |
| 15327 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15328 |
> |
test $ac_status = 0; } |
| 15329 |
> |
CFLAGS="$CFLAGS $flag" |
| 15330 |
> |
;; |
| 15331 |
> |
esac |
| 15332 |
> |
else |
| 15333 |
> |
CFLAGS="$flag" |
| 15334 |
> |
fi |
| 15335 |
> |
|
| 15336 |
> |
else |
| 15337 |
> |
: |
| 15338 |
> |
fi |
| 15339 |
|
|
| 15340 |
+ |
done |
| 15341 |
|
|
| 14038 |
– |
$as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h |
| 15342 |
|
|
| 15343 |
|
|
| 14041 |
– |
$as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h |
| 15344 |
|
|
| 15345 |
|
|
| 15346 |
< |
$as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h |
| 15346 |
> |
for flag in -Wmissing-parameter-type; do |
| 15347 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15348 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15349 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15350 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15351 |
> |
$as_echo_n "(cached) " >&6 |
| 15352 |
> |
else |
| 15353 |
|
|
| 15354 |
+ |
ax_check_save_flags=$CFLAGS |
| 15355 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15356 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15357 |
+ |
/* end confdefs.h. */ |
| 15358 |
|
|
| 15359 |
< |
# Argument processing. |
| 15359 |
> |
int |
| 15360 |
> |
main () |
| 15361 |
> |
{ |
| 15362 |
|
|
| 15363 |
< |
desired_iopoll_mechanism="none" |
| 15364 |
< |
# Check whether --enable-kqueue was given. |
| 15365 |
< |
if test "${enable_kqueue+set}" = set; then : |
| 15366 |
< |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
| 15363 |
> |
; |
| 15364 |
> |
return 0; |
| 15365 |
> |
} |
| 15366 |
> |
_ACEOF |
| 15367 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15368 |
> |
eval "$as_CACHEVAR=yes" |
| 15369 |
> |
else |
| 15370 |
> |
eval "$as_CACHEVAR=no" |
| 15371 |
> |
fi |
| 15372 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15373 |
> |
CFLAGS=$ax_check_save_flags |
| 15374 |
> |
fi |
| 15375 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15376 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15377 |
> |
$as_echo "$ac_res" >&6; } |
| 15378 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15379 |
> |
if ${CFLAGS+:} false; then : |
| 15380 |
> |
case " $CFLAGS " in |
| 15381 |
> |
*" $flag "*) |
| 15382 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15383 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15384 |
> |
ac_status=$? |
| 15385 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15386 |
> |
test $ac_status = 0; } |
| 15387 |
> |
;; |
| 15388 |
> |
*) |
| 15389 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15390 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15391 |
> |
ac_status=$? |
| 15392 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15393 |
> |
test $ac_status = 0; } |
| 15394 |
> |
CFLAGS="$CFLAGS $flag" |
| 15395 |
> |
;; |
| 15396 |
> |
esac |
| 15397 |
> |
else |
| 15398 |
> |
CFLAGS="$flag" |
| 15399 |
|
fi |
| 15400 |
|
|
| 15401 |
< |
# Check whether --enable-epoll was given. |
| 15402 |
< |
if test "${enable_epoll+set}" = set; then : |
| 14057 |
< |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
| 15401 |
> |
else |
| 15402 |
> |
: |
| 15403 |
|
fi |
| 15404 |
|
|
| 15405 |
< |
# Check whether --enable-devpoll was given. |
| 15406 |
< |
if test "${enable_devpoll+set}" = set; then : |
| 15407 |
< |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
| 15405 |
> |
done |
| 15406 |
> |
|
| 15407 |
> |
|
| 15408 |
> |
|
| 15409 |
> |
|
| 15410 |
> |
|
| 15411 |
> |
for flag in -Wmissing-prototypes; do |
| 15412 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15413 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15414 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15415 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15416 |
> |
$as_echo_n "(cached) " >&6 |
| 15417 |
> |
else |
| 15418 |
> |
|
| 15419 |
> |
ax_check_save_flags=$CFLAGS |
| 15420 |
> |
CFLAGS="$CFLAGS $flag" |
| 15421 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15422 |
> |
/* end confdefs.h. */ |
| 15423 |
> |
|
| 15424 |
> |
int |
| 15425 |
> |
main () |
| 15426 |
> |
{ |
| 15427 |
> |
|
| 15428 |
> |
; |
| 15429 |
> |
return 0; |
| 15430 |
> |
} |
| 15431 |
> |
_ACEOF |
| 15432 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15433 |
> |
eval "$as_CACHEVAR=yes" |
| 15434 |
> |
else |
| 15435 |
> |
eval "$as_CACHEVAR=no" |
| 15436 |
> |
fi |
| 15437 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15438 |
> |
CFLAGS=$ax_check_save_flags |
| 15439 |
> |
fi |
| 15440 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15441 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15442 |
> |
$as_echo "$ac_res" >&6; } |
| 15443 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15444 |
> |
if ${CFLAGS+:} false; then : |
| 15445 |
> |
case " $CFLAGS " in |
| 15446 |
> |
*" $flag "*) |
| 15447 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15448 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15449 |
> |
ac_status=$? |
| 15450 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15451 |
> |
test $ac_status = 0; } |
| 15452 |
> |
;; |
| 15453 |
> |
*) |
| 15454 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15455 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15456 |
> |
ac_status=$? |
| 15457 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15458 |
> |
test $ac_status = 0; } |
| 15459 |
> |
CFLAGS="$CFLAGS $flag" |
| 15460 |
> |
;; |
| 15461 |
> |
esac |
| 15462 |
> |
else |
| 15463 |
> |
CFLAGS="$flag" |
| 15464 |
|
fi |
| 15465 |
|
|
| 15466 |
< |
# Check whether --enable-poll was given. |
| 15467 |
< |
if test "${enable_poll+set}" = set; then : |
| 15468 |
< |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 15466 |
> |
else |
| 15467 |
> |
: |
| 15468 |
> |
fi |
| 15469 |
> |
|
| 15470 |
> |
done |
| 15471 |
> |
|
| 15472 |
> |
|
| 15473 |
> |
|
| 15474 |
> |
|
| 15475 |
> |
|
| 15476 |
> |
for flag in -Wnested-externs; do |
| 15477 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15478 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15479 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15480 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15481 |
> |
$as_echo_n "(cached) " >&6 |
| 15482 |
> |
else |
| 15483 |
> |
|
| 15484 |
> |
ax_check_save_flags=$CFLAGS |
| 15485 |
> |
CFLAGS="$CFLAGS $flag" |
| 15486 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15487 |
> |
/* end confdefs.h. */ |
| 15488 |
> |
|
| 15489 |
> |
int |
| 15490 |
> |
main () |
| 15491 |
> |
{ |
| 15492 |
> |
|
| 15493 |
> |
; |
| 15494 |
> |
return 0; |
| 15495 |
> |
} |
| 15496 |
> |
_ACEOF |
| 15497 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15498 |
> |
eval "$as_CACHEVAR=yes" |
| 15499 |
> |
else |
| 15500 |
> |
eval "$as_CACHEVAR=no" |
| 15501 |
> |
fi |
| 15502 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15503 |
> |
CFLAGS=$ax_check_save_flags |
| 15504 |
> |
fi |
| 15505 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15506 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15507 |
> |
$as_echo "$ac_res" >&6; } |
| 15508 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15509 |
> |
if ${CFLAGS+:} false; then : |
| 15510 |
> |
case " $CFLAGS " in |
| 15511 |
> |
*" $flag "*) |
| 15512 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15513 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15514 |
> |
ac_status=$? |
| 15515 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15516 |
> |
test $ac_status = 0; } |
| 15517 |
> |
;; |
| 15518 |
> |
*) |
| 15519 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15520 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15521 |
> |
ac_status=$? |
| 15522 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15523 |
> |
test $ac_status = 0; } |
| 15524 |
> |
CFLAGS="$CFLAGS $flag" |
| 15525 |
> |
;; |
| 15526 |
> |
esac |
| 15527 |
> |
else |
| 15528 |
> |
CFLAGS="$flag" |
| 15529 |
|
fi |
| 15530 |
|
|
| 15531 |
< |
# Check whether --enable-select was given. |
| 15532 |
< |
if test "${enable_select+set}" = set; then : |
| 14072 |
< |
enableval=$enable_select; desired_iopoll_mechanism="select" |
| 15531 |
> |
else |
| 15532 |
> |
: |
| 15533 |
|
fi |
| 15534 |
|
|
| 15535 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 14076 |
< |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
| 14077 |
< |
iopoll_mechanism_none=0 |
| 15535 |
> |
done |
| 15536 |
|
|
| 15537 |
< |
cat >>confdefs.h <<_ACEOF |
| 15538 |
< |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
| 15537 |
> |
|
| 15538 |
> |
|
| 15539 |
> |
|
| 15540 |
> |
|
| 15541 |
> |
for flag in -Wold-style-declaration; do |
| 15542 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15543 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15544 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15545 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15546 |
> |
$as_echo_n "(cached) " >&6 |
| 15547 |
> |
else |
| 15548 |
> |
|
| 15549 |
> |
ax_check_save_flags=$CFLAGS |
| 15550 |
> |
CFLAGS="$CFLAGS $flag" |
| 15551 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15552 |
> |
/* end confdefs.h. */ |
| 15553 |
> |
|
| 15554 |
> |
int |
| 15555 |
> |
main () |
| 15556 |
> |
{ |
| 15557 |
> |
|
| 15558 |
> |
; |
| 15559 |
> |
return 0; |
| 15560 |
> |
} |
| 15561 |
|
_ACEOF |
| 15562 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15563 |
+ |
eval "$as_CACHEVAR=yes" |
| 15564 |
+ |
else |
| 15565 |
+ |
eval "$as_CACHEVAR=no" |
| 15566 |
+ |
fi |
| 15567 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15568 |
+ |
CFLAGS=$ax_check_save_flags |
| 15569 |
+ |
fi |
| 15570 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15571 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15572 |
+ |
$as_echo "$ac_res" >&6; } |
| 15573 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15574 |
+ |
if ${CFLAGS+:} false; then : |
| 15575 |
+ |
case " $CFLAGS " in |
| 15576 |
+ |
*" $flag "*) |
| 15577 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15578 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15579 |
+ |
ac_status=$? |
| 15580 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15581 |
+ |
test $ac_status = 0; } |
| 15582 |
+ |
;; |
| 15583 |
+ |
*) |
| 15584 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15585 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15586 |
+ |
ac_status=$? |
| 15587 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15588 |
+ |
test $ac_status = 0; } |
| 15589 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15590 |
+ |
;; |
| 15591 |
+ |
esac |
| 15592 |
+ |
else |
| 15593 |
+ |
CFLAGS="$flag" |
| 15594 |
+ |
fi |
| 15595 |
+ |
|
| 15596 |
+ |
else |
| 15597 |
+ |
: |
| 15598 |
+ |
fi |
| 15599 |
|
|
| 15600 |
< |
iopoll_mechanism_kqueue=1 |
| 15600 |
> |
done |
| 15601 |
|
|
| 15602 |
< |
cat >>confdefs.h <<_ACEOF |
| 15603 |
< |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
| 15602 |
> |
|
| 15603 |
> |
|
| 15604 |
> |
|
| 15605 |
> |
|
| 15606 |
> |
for flag in -Woverride-init; do |
| 15607 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15608 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15609 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15610 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15611 |
> |
$as_echo_n "(cached) " >&6 |
| 15612 |
> |
else |
| 15613 |
> |
|
| 15614 |
> |
ax_check_save_flags=$CFLAGS |
| 15615 |
> |
CFLAGS="$CFLAGS $flag" |
| 15616 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15617 |
> |
/* end confdefs.h. */ |
| 15618 |
> |
|
| 15619 |
> |
int |
| 15620 |
> |
main () |
| 15621 |
> |
{ |
| 15622 |
> |
|
| 15623 |
> |
; |
| 15624 |
> |
return 0; |
| 15625 |
> |
} |
| 15626 |
|
_ACEOF |
| 15627 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15628 |
+ |
eval "$as_CACHEVAR=yes" |
| 15629 |
+ |
else |
| 15630 |
+ |
eval "$as_CACHEVAR=no" |
| 15631 |
+ |
fi |
| 15632 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15633 |
+ |
CFLAGS=$ax_check_save_flags |
| 15634 |
+ |
fi |
| 15635 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15636 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15637 |
+ |
$as_echo "$ac_res" >&6; } |
| 15638 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15639 |
+ |
if ${CFLAGS+:} false; then : |
| 15640 |
+ |
case " $CFLAGS " in |
| 15641 |
+ |
*" $flag "*) |
| 15642 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15643 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15644 |
+ |
ac_status=$? |
| 15645 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15646 |
+ |
test $ac_status = 0; } |
| 15647 |
+ |
;; |
| 15648 |
+ |
*) |
| 15649 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15650 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15651 |
+ |
ac_status=$? |
| 15652 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15653 |
+ |
test $ac_status = 0; } |
| 15654 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15655 |
+ |
;; |
| 15656 |
+ |
esac |
| 15657 |
+ |
else |
| 15658 |
+ |
CFLAGS="$flag" |
| 15659 |
+ |
fi |
| 15660 |
|
|
| 15661 |
+ |
else |
| 15662 |
+ |
: |
| 15663 |
+ |
fi |
| 15664 |
+ |
|
| 15665 |
+ |
done |
| 15666 |
+ |
|
| 15667 |
+ |
|
| 15668 |
+ |
|
| 15669 |
+ |
|
| 15670 |
+ |
|
| 15671 |
+ |
for flag in -Wpointer-arith; do |
| 15672 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15673 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15674 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15675 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15676 |
+ |
$as_echo_n "(cached) " >&6 |
| 15677 |
+ |
else |
| 15678 |
+ |
|
| 15679 |
+ |
ax_check_save_flags=$CFLAGS |
| 15680 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15681 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15682 |
|
/* end confdefs.h. */ |
| 14091 |
– |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
| 14092 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14093 |
– |
#define kevent innocuous_kevent |
| 15683 |
|
|
| 15684 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
| 15685 |
< |
which can conflict with char kevent (); below. |
| 15686 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14098 |
< |
<limits.h> exists even on freestanding compilers. */ |
| 15684 |
> |
int |
| 15685 |
> |
main () |
| 15686 |
> |
{ |
| 15687 |
|
|
| 15688 |
< |
#ifdef __STDC__ |
| 15689 |
< |
# include <limits.h> |
| 15690 |
< |
#else |
| 15691 |
< |
# include <assert.h> |
| 15692 |
< |
#endif |
| 15688 |
> |
; |
| 15689 |
> |
return 0; |
| 15690 |
> |
} |
| 15691 |
> |
_ACEOF |
| 15692 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15693 |
> |
eval "$as_CACHEVAR=yes" |
| 15694 |
> |
else |
| 15695 |
> |
eval "$as_CACHEVAR=no" |
| 15696 |
> |
fi |
| 15697 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15698 |
> |
CFLAGS=$ax_check_save_flags |
| 15699 |
> |
fi |
| 15700 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15701 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15702 |
> |
$as_echo "$ac_res" >&6; } |
| 15703 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15704 |
> |
if ${CFLAGS+:} false; then : |
| 15705 |
> |
case " $CFLAGS " in |
| 15706 |
> |
*" $flag "*) |
| 15707 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15708 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15709 |
> |
ac_status=$? |
| 15710 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15711 |
> |
test $ac_status = 0; } |
| 15712 |
> |
;; |
| 15713 |
> |
*) |
| 15714 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15715 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15716 |
> |
ac_status=$? |
| 15717 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15718 |
> |
test $ac_status = 0; } |
| 15719 |
> |
CFLAGS="$CFLAGS $flag" |
| 15720 |
> |
;; |
| 15721 |
> |
esac |
| 15722 |
> |
else |
| 15723 |
> |
CFLAGS="$flag" |
| 15724 |
> |
fi |
| 15725 |
|
|
| 15726 |
< |
#undef kevent |
| 15726 |
> |
else |
| 15727 |
> |
: |
| 15728 |
> |
fi |
| 15729 |
> |
|
| 15730 |
> |
done |
| 15731 |
|
|
| 15732 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 15733 |
< |
Use char because int might match the return type of a GCC |
| 15734 |
< |
builtin and then its argument prototype would still apply. */ |
| 15735 |
< |
#ifdef __cplusplus |
| 15736 |
< |
extern "C" |
| 15737 |
< |
#endif |
| 15738 |
< |
char kevent (); |
| 15739 |
< |
/* The GNU C library defines this for functions which it implements |
| 15740 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 15741 |
< |
something starting with __ and the normal name is an alias. */ |
| 15742 |
< |
#if defined __stub_kevent || defined __stub___kevent |
| 15743 |
< |
choke me |
| 15744 |
< |
#endif |
| 15732 |
> |
|
| 15733 |
> |
|
| 15734 |
> |
|
| 15735 |
> |
|
| 15736 |
> |
for flag in -Wredundant-decls; do |
| 15737 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15738 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15739 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15740 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15741 |
> |
$as_echo_n "(cached) " >&6 |
| 15742 |
> |
else |
| 15743 |
> |
|
| 15744 |
> |
ax_check_save_flags=$CFLAGS |
| 15745 |
> |
CFLAGS="$CFLAGS $flag" |
| 15746 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15747 |
> |
/* end confdefs.h. */ |
| 15748 |
|
|
| 15749 |
|
int |
| 15750 |
|
main () |
| 15751 |
|
{ |
| 15752 |
< |
return kevent (); |
| 15752 |
> |
|
| 15753 |
|
; |
| 15754 |
|
return 0; |
| 15755 |
|
} |
| 15756 |
|
_ACEOF |
| 15757 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 15758 |
< |
is_kqueue_mechanism_available="yes" |
| 15757 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15758 |
> |
eval "$as_CACHEVAR=yes" |
| 15759 |
|
else |
| 15760 |
< |
is_kqueue_mechanism_available="no" |
| 15760 |
> |
eval "$as_CACHEVAR=no" |
| 15761 |
> |
fi |
| 15762 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15763 |
> |
CFLAGS=$ax_check_save_flags |
| 15764 |
> |
fi |
| 15765 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15766 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15767 |
> |
$as_echo "$ac_res" >&6; } |
| 15768 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15769 |
> |
if ${CFLAGS+:} false; then : |
| 15770 |
> |
case " $CFLAGS " in |
| 15771 |
> |
*" $flag "*) |
| 15772 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15773 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15774 |
> |
ac_status=$? |
| 15775 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15776 |
> |
test $ac_status = 0; } |
| 15777 |
> |
;; |
| 15778 |
> |
*) |
| 15779 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15780 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15781 |
> |
ac_status=$? |
| 15782 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15783 |
> |
test $ac_status = 0; } |
| 15784 |
> |
CFLAGS="$CFLAGS $flag" |
| 15785 |
> |
;; |
| 15786 |
> |
esac |
| 15787 |
> |
else |
| 15788 |
> |
CFLAGS="$flag" |
| 15789 |
|
fi |
| 14135 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 14136 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 14137 |
– |
iopoll_mechanism_epoll=2 |
| 15790 |
|
|
| 15791 |
< |
cat >>confdefs.h <<_ACEOF |
| 15792 |
< |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
| 15791 |
> |
else |
| 15792 |
> |
: |
| 15793 |
> |
fi |
| 15794 |
> |
|
| 15795 |
> |
done |
| 15796 |
> |
|
| 15797 |
> |
|
| 15798 |
> |
|
| 15799 |
> |
|
| 15800 |
> |
|
| 15801 |
> |
for flag in -Wshadow; do |
| 15802 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15803 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15804 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15805 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15806 |
> |
$as_echo_n "(cached) " >&6 |
| 15807 |
> |
else |
| 15808 |
> |
|
| 15809 |
> |
ax_check_save_flags=$CFLAGS |
| 15810 |
> |
CFLAGS="$CFLAGS $flag" |
| 15811 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15812 |
> |
/* end confdefs.h. */ |
| 15813 |
> |
|
| 15814 |
> |
int |
| 15815 |
> |
main () |
| 15816 |
> |
{ |
| 15817 |
> |
|
| 15818 |
> |
; |
| 15819 |
> |
return 0; |
| 15820 |
> |
} |
| 15821 |
|
_ACEOF |
| 15822 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15823 |
+ |
eval "$as_CACHEVAR=yes" |
| 15824 |
+ |
else |
| 15825 |
+ |
eval "$as_CACHEVAR=no" |
| 15826 |
+ |
fi |
| 15827 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15828 |
+ |
CFLAGS=$ax_check_save_flags |
| 15829 |
+ |
fi |
| 15830 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15831 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15832 |
+ |
$as_echo "$ac_res" >&6; } |
| 15833 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15834 |
+ |
if ${CFLAGS+:} false; then : |
| 15835 |
+ |
case " $CFLAGS " in |
| 15836 |
+ |
*" $flag "*) |
| 15837 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15838 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15839 |
+ |
ac_status=$? |
| 15840 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15841 |
+ |
test $ac_status = 0; } |
| 15842 |
+ |
;; |
| 15843 |
+ |
*) |
| 15844 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15845 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15846 |
+ |
ac_status=$? |
| 15847 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15848 |
+ |
test $ac_status = 0; } |
| 15849 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15850 |
+ |
;; |
| 15851 |
+ |
esac |
| 15852 |
+ |
else |
| 15853 |
+ |
CFLAGS="$flag" |
| 15854 |
+ |
fi |
| 15855 |
|
|
| 14143 |
– |
if test "$cross_compiling" = yes; then : |
| 14144 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14145 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14146 |
– |
as_fn_error $? "cannot run test program while cross compiling |
| 14147 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
| 15856 |
|
else |
| 15857 |
+ |
: |
| 15858 |
+ |
fi |
| 15859 |
+ |
|
| 15860 |
+ |
done |
| 15861 |
+ |
|
| 15862 |
+ |
|
| 15863 |
+ |
|
| 15864 |
+ |
|
| 15865 |
+ |
|
| 15866 |
+ |
for flag in -Wsign-compare; do |
| 15867 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15868 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15869 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15870 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15871 |
+ |
$as_echo_n "(cached) " >&6 |
| 15872 |
+ |
else |
| 15873 |
+ |
|
| 15874 |
+ |
ax_check_save_flags=$CFLAGS |
| 15875 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15876 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15877 |
|
/* end confdefs.h. */ |
| 15878 |
|
|
| 15879 |
< |
#include <sys/epoll.h> |
| 15880 |
< |
#include <sys/syscall.h> |
| 15881 |
< |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
| 15882 |
< |
#if !defined(__NR_epoll_create) |
| 15883 |
< |
#if defined(__ia64__) |
| 15884 |
< |
#define __NR_epoll_create 1243 |
| 15885 |
< |
#elif defined(__x86_64__) |
| 15886 |
< |
#define __NR_epoll_create 214 |
| 15887 |
< |
#elif defined(__sparc64__) || defined(__sparc__) |
| 15888 |
< |
#define __NR_epoll_create 193 |
| 15889 |
< |
#elif defined(__s390__) || defined(__m68k__) |
| 15890 |
< |
#define __NR_epoll_create 249 |
| 15891 |
< |
#elif defined(__ppc64__) || defined(__ppc__) |
| 15892 |
< |
#define __NR_epoll_create 236 |
| 15893 |
< |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
| 15894 |
< |
#define __NR_epoll_create 224 |
| 15895 |
< |
#elif defined(__alpha__) |
| 15896 |
< |
#define __NR_epoll_create 407 |
| 15897 |
< |
#elif defined(__sh64__) |
| 15898 |
< |
#define __NR_epoll_create 282 |
| 15899 |
< |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
| 15900 |
< |
#define __NR_epoll_create 254 |
| 15901 |
< |
#else |
| 15902 |
< |
#error No system call numbers defined for epoll family. |
| 15903 |
< |
#endif |
| 15904 |
< |
#endif |
| 15905 |
< |
_syscall1(int, epoll_create, int, size) |
| 15906 |
< |
#endif |
| 15879 |
> |
int |
| 15880 |
> |
main () |
| 15881 |
> |
{ |
| 15882 |
> |
|
| 15883 |
> |
; |
| 15884 |
> |
return 0; |
| 15885 |
> |
} |
| 15886 |
> |
_ACEOF |
| 15887 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15888 |
> |
eval "$as_CACHEVAR=yes" |
| 15889 |
> |
else |
| 15890 |
> |
eval "$as_CACHEVAR=no" |
| 15891 |
> |
fi |
| 15892 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15893 |
> |
CFLAGS=$ax_check_save_flags |
| 15894 |
> |
fi |
| 15895 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15896 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15897 |
> |
$as_echo "$ac_res" >&6; } |
| 15898 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15899 |
> |
if ${CFLAGS+:} false; then : |
| 15900 |
> |
case " $CFLAGS " in |
| 15901 |
> |
*" $flag "*) |
| 15902 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15903 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15904 |
> |
ac_status=$? |
| 15905 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15906 |
> |
test $ac_status = 0; } |
| 15907 |
> |
;; |
| 15908 |
> |
*) |
| 15909 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15910 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15911 |
> |
ac_status=$? |
| 15912 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15913 |
> |
test $ac_status = 0; } |
| 15914 |
> |
CFLAGS="$CFLAGS $flag" |
| 15915 |
> |
;; |
| 15916 |
> |
esac |
| 15917 |
> |
else |
| 15918 |
> |
CFLAGS="$flag" |
| 15919 |
> |
fi |
| 15920 |
> |
|
| 15921 |
> |
else |
| 15922 |
> |
: |
| 15923 |
> |
fi |
| 15924 |
> |
|
| 15925 |
> |
done |
| 15926 |
> |
|
| 15927 |
> |
|
| 15928 |
> |
|
| 15929 |
> |
|
| 15930 |
> |
|
| 15931 |
> |
for flag in -Wtype-limits; do |
| 15932 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15933 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15934 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15935 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15936 |
> |
$as_echo_n "(cached) " >&6 |
| 15937 |
> |
else |
| 15938 |
> |
|
| 15939 |
> |
ax_check_save_flags=$CFLAGS |
| 15940 |
> |
CFLAGS="$CFLAGS $flag" |
| 15941 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15942 |
> |
/* end confdefs.h. */ |
| 15943 |
|
|
| 15944 |
|
int |
| 15945 |
|
main () |
| 15946 |
|
{ |
| 15947 |
< |
return epoll_create(256) == -1 ? 1 : 0 |
| 15947 |
> |
|
| 15948 |
|
; |
| 15949 |
|
return 0; |
| 15950 |
|
} |
| 15951 |
|
_ACEOF |
| 15952 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 15953 |
< |
is_epoll_mechanism_available="yes" |
| 15952 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15953 |
> |
eval "$as_CACHEVAR=yes" |
| 15954 |
|
else |
| 15955 |
< |
is_epoll_mechanism_available="no" |
| 15955 |
> |
eval "$as_CACHEVAR=no" |
| 15956 |
|
fi |
| 15957 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15958 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15957 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15958 |
> |
CFLAGS=$ax_check_save_flags |
| 15959 |
> |
fi |
| 15960 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15961 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15962 |
> |
$as_echo "$ac_res" >&6; } |
| 15963 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 15964 |
> |
if ${CFLAGS+:} false; then : |
| 15965 |
> |
case " $CFLAGS " in |
| 15966 |
> |
*" $flag "*) |
| 15967 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15968 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15969 |
> |
ac_status=$? |
| 15970 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15971 |
> |
test $ac_status = 0; } |
| 15972 |
> |
;; |
| 15973 |
> |
*) |
| 15974 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 15975 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 15976 |
> |
ac_status=$? |
| 15977 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15978 |
> |
test $ac_status = 0; } |
| 15979 |
> |
CFLAGS="$CFLAGS $flag" |
| 15980 |
> |
;; |
| 15981 |
> |
esac |
| 15982 |
> |
else |
| 15983 |
> |
CFLAGS="$flag" |
| 15984 |
|
fi |
| 15985 |
|
|
| 15986 |
< |
iopoll_mechanism_devpoll=3 |
| 15986 |
> |
else |
| 15987 |
> |
: |
| 15988 |
> |
fi |
| 15989 |
|
|
| 15990 |
< |
cat >>confdefs.h <<_ACEOF |
| 15991 |
< |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
| 15990 |
> |
done |
| 15991 |
> |
|
| 15992 |
> |
|
| 15993 |
> |
|
| 15994 |
> |
|
| 15995 |
> |
|
| 15996 |
> |
for flag in -Wundef; do |
| 15997 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15998 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15999 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16000 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 16001 |
> |
$as_echo_n "(cached) " >&6 |
| 16002 |
> |
else |
| 16003 |
> |
|
| 16004 |
> |
ax_check_save_flags=$CFLAGS |
| 16005 |
> |
CFLAGS="$CFLAGS $flag" |
| 16006 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16007 |
> |
/* end confdefs.h. */ |
| 16008 |
> |
|
| 16009 |
> |
int |
| 16010 |
> |
main () |
| 16011 |
> |
{ |
| 16012 |
> |
|
| 16013 |
> |
; |
| 16014 |
> |
return 0; |
| 16015 |
> |
} |
| 16016 |
|
_ACEOF |
| 16017 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16018 |
+ |
eval "$as_CACHEVAR=yes" |
| 16019 |
+ |
else |
| 16020 |
+ |
eval "$as_CACHEVAR=no" |
| 16021 |
+ |
fi |
| 16022 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16023 |
+ |
CFLAGS=$ax_check_save_flags |
| 16024 |
+ |
fi |
| 16025 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 16026 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16027 |
+ |
$as_echo "$ac_res" >&6; } |
| 16028 |
+ |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 16029 |
+ |
if ${CFLAGS+:} false; then : |
| 16030 |
+ |
case " $CFLAGS " in |
| 16031 |
+ |
*" $flag "*) |
| 16032 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16033 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 16034 |
+ |
ac_status=$? |
| 16035 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16036 |
+ |
test $ac_status = 0; } |
| 16037 |
+ |
;; |
| 16038 |
+ |
*) |
| 16039 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 16040 |
+ |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 16041 |
+ |
ac_status=$? |
| 16042 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16043 |
+ |
test $ac_status = 0; } |
| 16044 |
+ |
CFLAGS="$CFLAGS $flag" |
| 16045 |
+ |
;; |
| 16046 |
+ |
esac |
| 16047 |
+ |
else |
| 16048 |
+ |
CFLAGS="$flag" |
| 16049 |
+ |
fi |
| 16050 |
+ |
|
| 16051 |
+ |
else |
| 16052 |
+ |
: |
| 16053 |
+ |
fi |
| 16054 |
+ |
|
| 16055 |
+ |
done |
| 16056 |
+ |
|
| 16057 |
|
|
| 16058 |
+ |
|
| 16059 |
+ |
|
| 16060 |
+ |
|
| 16061 |
+ |
for flag in -Wuninitialized; do |
| 16062 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16063 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16064 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16065 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 16066 |
+ |
$as_echo_n "(cached) " >&6 |
| 16067 |
+ |
else |
| 16068 |
+ |
|
| 16069 |
+ |
ax_check_save_flags=$CFLAGS |
| 16070 |
+ |
CFLAGS="$CFLAGS $flag" |
| 16071 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16072 |
|
/* end confdefs.h. */ |
| 16073 |
< |
#include <devpoll.h> |
| 16073 |
> |
|
| 16074 |
|
int |
| 16075 |
|
main () |
| 16076 |
|
{ |
| 16080 |
|
} |
| 16081 |
|
_ACEOF |
| 16082 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
| 16083 |
< |
is_devpoll_mechanism_available="yes" |
| 16083 |
> |
eval "$as_CACHEVAR=yes" |
| 16084 |
|
else |
| 16085 |
< |
is_devpoll_mechanism_available="no" |
| 16085 |
> |
eval "$as_CACHEVAR=no" |
| 16086 |
|
fi |
| 16087 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16088 |
< |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 16088 |
> |
CFLAGS=$ax_check_save_flags |
| 16089 |
> |
fi |
| 16090 |
> |
eval ac_res=\$$as_CACHEVAR |
| 16091 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16092 |
> |
$as_echo "$ac_res" >&6; } |
| 16093 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 16094 |
> |
if ${CFLAGS+:} false; then : |
| 16095 |
> |
case " $CFLAGS " in |
| 16096 |
> |
*" $flag "*) |
| 16097 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16098 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16099 |
> |
ac_status=$? |
| 16100 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16101 |
> |
test $ac_status = 0; } |
| 16102 |
> |
;; |
| 16103 |
> |
*) |
| 16104 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 16105 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 16106 |
> |
ac_status=$? |
| 16107 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16108 |
> |
test $ac_status = 0; } |
| 16109 |
> |
CFLAGS="$CFLAGS $flag" |
| 16110 |
> |
;; |
| 16111 |
> |
esac |
| 16112 |
> |
else |
| 16113 |
> |
CFLAGS="$flag" |
| 16114 |
> |
fi |
| 16115 |
|
|
| 16116 |
< |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
| 16116 |
> |
else |
| 16117 |
> |
: |
| 16118 |
> |
fi |
| 16119 |
|
|
| 16120 |
< |
fi |
| 16120 |
> |
done |
| 16121 |
> |
|
| 16122 |
> |
|
| 16123 |
> |
|
| 16124 |
> |
|
| 16125 |
> |
|
| 16126 |
> |
for flag in -Wwrite-strings; do |
| 16127 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16128 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16129 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16130 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 16131 |
> |
$as_echo_n "(cached) " >&6 |
| 16132 |
> |
else |
| 16133 |
> |
|
| 16134 |
> |
ax_check_save_flags=$CFLAGS |
| 16135 |
> |
CFLAGS="$CFLAGS $flag" |
| 16136 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16137 |
|
/* end confdefs.h. */ |
| 16138 |
< |
#include <sys/devpoll.h> |
| 16138 |
> |
|
| 16139 |
|
int |
| 16140 |
|
main () |
| 16141 |
|
{ |
| 16145 |
|
} |
| 16146 |
|
_ACEOF |
| 16147 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
| 16148 |
< |
is_devpoll_mechanism_available="yes" |
| 16148 |
> |
eval "$as_CACHEVAR=yes" |
| 16149 |
|
else |
| 16150 |
< |
is_devpoll_mechanism_available="no" |
| 16150 |
> |
eval "$as_CACHEVAR=no" |
| 16151 |
|
fi |
| 16152 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16153 |
< |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 16153 |
> |
CFLAGS=$ax_check_save_flags |
| 16154 |
> |
fi |
| 16155 |
> |
eval ac_res=\$$as_CACHEVAR |
| 16156 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16157 |
> |
$as_echo "$ac_res" >&6; } |
| 16158 |
> |
if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 16159 |
> |
if ${CFLAGS+:} false; then : |
| 16160 |
> |
case " $CFLAGS " in |
| 16161 |
> |
*" $flag "*) |
| 16162 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16163 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16164 |
> |
ac_status=$? |
| 16165 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16166 |
> |
test $ac_status = 0; } |
| 16167 |
> |
;; |
| 16168 |
> |
*) |
| 16169 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 |
| 16170 |
> |
(: CFLAGS="$CFLAGS $flag") 2>&5 |
| 16171 |
> |
ac_status=$? |
| 16172 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16173 |
> |
test $ac_status = 0; } |
| 16174 |
> |
CFLAGS="$CFLAGS $flag" |
| 16175 |
> |
;; |
| 16176 |
> |
esac |
| 16177 |
> |
else |
| 16178 |
> |
CFLAGS="$flag" |
| 16179 |
> |
fi |
| 16180 |
|
|
| 16181 |
< |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 16181 |
> |
else |
| 16182 |
> |
: |
| 16183 |
> |
fi |
| 16184 |
> |
|
| 16185 |
> |
done |
| 16186 |
|
|
| 16187 |
|
fi |
| 14248 |
– |
iopoll_mechanism_poll=4 |
| 16188 |
|
|
| 14250 |
– |
cat >>confdefs.h <<_ACEOF |
| 14251 |
– |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14252 |
– |
_ACEOF |
| 16189 |
|
|
| 16190 |
+ |
# Check whether --enable-openssl was given. |
| 16191 |
+ |
if test "${enable_openssl+set}" = set; then : |
| 16192 |
+ |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 16193 |
+ |
else |
| 16194 |
+ |
cf_enable_openssl="auto" |
| 16195 |
+ |
fi |
| 16196 |
+ |
|
| 16197 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5 |
| 16198 |
+ |
$as_echo_n "checking for LibreSSL/OpenSSL... " >&6; } |
| 16199 |
+ |
if test "$cf_enable_openssl" != "no"; then |
| 16200 |
+ |
cf_openssl_basedir="" |
| 16201 |
+ |
if test "$cf_enable_openssl" != "auto" && |
| 16202 |
+ |
test "$cf_enable_openssl" != "yes"; then |
| 16203 |
+ |
cf_openssl_basedir="${cf_enable_openssl}" |
| 16204 |
+ |
else |
| 16205 |
+ |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 16206 |
+ |
/opt /opt/openssl /usr/local/openssl; do |
| 16207 |
+ |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 16208 |
+ |
cf_openssl_basedir="${dirs}" |
| 16209 |
+ |
break |
| 16210 |
+ |
fi |
| 16211 |
+ |
done |
| 16212 |
+ |
unset dirs |
| 16213 |
+ |
fi |
| 16214 |
+ |
|
| 16215 |
+ |
if test ! -z "$cf_openssl_basedir"; then |
| 16216 |
+ |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 16217 |
+ |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 16218 |
+ |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 16219 |
+ |
else |
| 16220 |
+ |
cf_openssl_basedir="" |
| 16221 |
+ |
fi |
| 16222 |
+ |
else |
| 16223 |
+ |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 16224 |
+ |
cf_openssl_basedir="/usr" |
| 16225 |
+ |
fi |
| 16226 |
+ |
fi |
| 16227 |
+ |
|
| 16228 |
+ |
if test ! -z "$cf_openssl_basedir"; then |
| 16229 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 16230 |
+ |
$as_echo "$cf_openssl_basedir" >&6; } |
| 16231 |
+ |
cf_enable_openssl="yes" |
| 16232 |
+ |
else |
| 16233 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 16234 |
+ |
$as_echo "not found. Please check your path." >&6; } |
| 16235 |
+ |
cf_enable_openssl="no" |
| 16236 |
+ |
fi |
| 16237 |
+ |
unset cf_openssl_basedir |
| 16238 |
+ |
else |
| 16239 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 16240 |
+ |
$as_echo "disabled" >&6; } |
| 16241 |
+ |
fi |
| 16242 |
+ |
|
| 16243 |
+ |
if test "$cf_enable_openssl" != "no"; then : |
| 16244 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5 |
| 16245 |
+ |
$as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; } |
| 16246 |
+ |
if test "$cross_compiling" = yes; then : |
| 16247 |
+ |
cf_openssl_version_ok=no |
| 16248 |
+ |
else |
| 16249 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16250 |
|
/* end confdefs.h. */ |
| 14256 |
– |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
| 14257 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14258 |
– |
#define poll innocuous_poll |
| 16251 |
|
|
| 14260 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
| 14261 |
– |
which can conflict with char poll (); below. |
| 14262 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14263 |
– |
<limits.h> exists even on freestanding compilers. */ |
| 16252 |
|
|
| 16253 |
< |
#ifdef __STDC__ |
| 16254 |
< |
# include <limits.h> |
| 16255 |
< |
#else |
| 16256 |
< |
# include <assert.h> |
| 16257 |
< |
#endif |
| 16253 |
> |
#include <openssl/opensslv.h> |
| 16254 |
> |
#include <stdlib.h> |
| 16255 |
> |
int |
| 16256 |
> |
main () |
| 16257 |
> |
{ |
| 16258 |
> |
exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL)); |
| 16259 |
> |
; |
| 16260 |
> |
return 0; |
| 16261 |
> |
} |
| 16262 |
> |
_ACEOF |
| 16263 |
> |
if ac_fn_c_try_run "$LINENO"; then : |
| 16264 |
> |
cf_openssl_version_ok=yes |
| 16265 |
> |
else |
| 16266 |
> |
cf_openssl_version_ok=no |
| 16267 |
> |
fi |
| 16268 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16269 |
> |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16270 |
> |
fi |
| 16271 |
|
|
| 16272 |
< |
#undef poll |
| 16272 |
> |
|
| 16273 |
> |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 16274 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 16275 |
> |
$as_echo "found" >&6; } |
| 16276 |
> |
|
| 16277 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 16278 |
> |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 16279 |
> |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 16280 |
> |
$as_echo_n "(cached) " >&6 |
| 16281 |
> |
else |
| 16282 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 16283 |
> |
LIBS="-lcrypto $LIBS" |
| 16284 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16285 |
> |
/* end confdefs.h. */ |
| 16286 |
|
|
| 16287 |
|
/* Override any GCC internal prototype to avoid an error. |
| 16288 |
|
Use char because int might match the return type of a GCC |
| 16290 |
|
#ifdef __cplusplus |
| 16291 |
|
extern "C" |
| 16292 |
|
#endif |
| 16293 |
< |
char poll (); |
| 14280 |
< |
/* The GNU C library defines this for functions which it implements |
| 14281 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 14282 |
< |
something starting with __ and the normal name is an alias. */ |
| 14283 |
< |
#if defined __stub_poll || defined __stub___poll |
| 14284 |
< |
choke me |
| 14285 |
< |
#endif |
| 14286 |
< |
|
| 16293 |
> |
char RSA_free (); |
| 16294 |
|
int |
| 16295 |
|
main () |
| 16296 |
|
{ |
| 16297 |
< |
return poll (); |
| 16297 |
> |
return RSA_free (); |
| 16298 |
|
; |
| 16299 |
|
return 0; |
| 16300 |
|
} |
| 16301 |
|
_ACEOF |
| 16302 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 16303 |
< |
is_poll_mechanism_available="yes" |
| 16303 |
> |
ac_cv_lib_crypto_RSA_free=yes |
| 16304 |
|
else |
| 16305 |
< |
is_poll_mechanism_available="no" |
| 16305 |
> |
ac_cv_lib_crypto_RSA_free=no |
| 16306 |
|
fi |
| 16307 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 16308 |
|
conftest$ac_exeext conftest.$ac_ext |
| 16309 |
< |
iopoll_mechanism_select=5 |
| 16310 |
< |
|
| 16311 |
< |
cat >>confdefs.h <<_ACEOF |
| 16312 |
< |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
| 16309 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 16310 |
> |
fi |
| 16311 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 16312 |
> |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 16313 |
> |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 16314 |
> |
cat >>confdefs.h <<_ACEOF |
| 16315 |
> |
#define HAVE_LIBCRYPTO 1 |
| 16316 |
|
_ACEOF |
| 16317 |
|
|
| 16318 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14309 |
< |
/* end confdefs.h. */ |
| 14310 |
< |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
| 14311 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14312 |
< |
#define select innocuous_select |
| 14313 |
< |
|
| 14314 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
| 14315 |
< |
which can conflict with char select (); below. |
| 14316 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14317 |
< |
<limits.h> exists even on freestanding compilers. */ |
| 16318 |
> |
LIBS="-lcrypto $LIBS" |
| 16319 |
|
|
| 16320 |
< |
#ifdef __STDC__ |
| 14320 |
< |
# include <limits.h> |
| 14321 |
< |
#else |
| 14322 |
< |
# include <assert.h> |
| 14323 |
< |
#endif |
| 16320 |
> |
fi |
| 16321 |
|
|
| 16322 |
< |
#undef select |
| 16322 |
> |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 16323 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 16324 |
> |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 16325 |
> |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 16326 |
> |
$as_echo_n "(cached) " >&6 |
| 16327 |
> |
else |
| 16328 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 16329 |
> |
LIBS="-lssl $LIBS" |
| 16330 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16331 |
> |
/* end confdefs.h. */ |
| 16332 |
|
|
| 16333 |
|
/* Override any GCC internal prototype to avoid an error. |
| 16334 |
|
Use char because int might match the return type of a GCC |
| 16336 |
|
#ifdef __cplusplus |
| 16337 |
|
extern "C" |
| 16338 |
|
#endif |
| 16339 |
< |
char select (); |
| 14334 |
< |
/* The GNU C library defines this for functions which it implements |
| 14335 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 14336 |
< |
something starting with __ and the normal name is an alias. */ |
| 14337 |
< |
#if defined __stub_select || defined __stub___select |
| 14338 |
< |
choke me |
| 14339 |
< |
#endif |
| 14340 |
< |
|
| 16339 |
> |
char SSL_connect (); |
| 16340 |
|
int |
| 16341 |
|
main () |
| 16342 |
|
{ |
| 16343 |
< |
return select (); |
| 16343 |
> |
return SSL_connect (); |
| 16344 |
|
; |
| 16345 |
|
return 0; |
| 16346 |
|
} |
| 16347 |
|
_ACEOF |
| 16348 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 16349 |
< |
is_select_mechanism_available="yes" |
| 16349 |
> |
ac_cv_lib_ssl_SSL_connect=yes |
| 16350 |
|
else |
| 16351 |
< |
is_select_mechanism_available="no" |
| 16351 |
> |
ac_cv_lib_ssl_SSL_connect=no |
| 16352 |
|
fi |
| 16353 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 16354 |
|
conftest$ac_exeext conftest.$ac_ext |
| 16355 |
< |
optimal_iopoll_mechanism="none" |
| 16356 |
< |
for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important |
| 16357 |
< |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 16358 |
< |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 16359 |
< |
optimal_iopoll_mechanism="$mechanism" |
| 16360 |
< |
break |
| 16361 |
< |
fi |
| 14363 |
< |
done |
| 14364 |
< |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14365 |
< |
if test "$optimal_iopoll_mechanism" = "none" ; then |
| 14366 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14367 |
< |
$as_echo "none" >&6; } |
| 14368 |
< |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
| 14369 |
< |
else |
| 14370 |
< |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
| 14371 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14372 |
< |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14373 |
< |
fi |
| 14374 |
< |
else |
| 14375 |
< |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
| 14376 |
< |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
| 14377 |
< |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
| 14378 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14379 |
< |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14380 |
< |
else |
| 14381 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14382 |
< |
$as_echo "none" >&6; } |
| 14383 |
< |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
| 14384 |
< |
fi |
| 14385 |
< |
fi |
| 14386 |
< |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14387 |
< |
|
| 14388 |
< |
cat >>confdefs.h <<_ACEOF |
| 14389 |
< |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
| 16355 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 16356 |
> |
fi |
| 16357 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 16358 |
> |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 16359 |
> |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 16360 |
> |
cat >>confdefs.h <<_ACEOF |
| 16361 |
> |
#define HAVE_LIBSSL 1 |
| 16362 |
|
_ACEOF |
| 16363 |
|
|
| 16364 |
+ |
LIBS="-lssl $LIBS" |
| 16365 |
+ |
|
| 16366 |
+ |
fi |
| 16367 |
|
|
| 16368 |
+ |
fi |
| 16369 |
|
|
| 14394 |
– |
# Check whether --enable-halfops was given. |
| 14395 |
– |
if test "${enable_halfops+set}" = set; then : |
| 14396 |
– |
enableval=$enable_halfops; halfops="$enableval" |
| 16370 |
|
else |
| 16371 |
< |
halfops="no" |
| 16371 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5 |
| 16372 |
> |
$as_echo "no - LibreSSL/OpenSSL support disabled" >&6; } |
| 16373 |
> |
cf_enable_openssl="no" |
| 16374 |
> |
fi |
| 16375 |
|
fi |
| 16376 |
|
|
| 16377 |
< |
if test "$halfops" = "yes" ; then |
| 16377 |
> |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
| 16378 |
> |
ENABLE_SSL_TRUE= |
| 16379 |
> |
ENABLE_SSL_FALSE='#' |
| 16380 |
> |
else |
| 16381 |
> |
ENABLE_SSL_TRUE='#' |
| 16382 |
> |
ENABLE_SSL_FALSE= |
| 16383 |
> |
fi |
| 16384 |
|
|
| 14403 |
– |
$as_echo "#define HALFOPS 1" >>confdefs.h |
| 16385 |
|
|
| 14405 |
– |
fi |
| 16386 |
|
|
| 16387 |
+ |
# Check whether --enable-libgeoip was given. |
| 16388 |
+ |
if test "${enable_libgeoip+set}" = set; then : |
| 16389 |
+ |
enableval=$enable_libgeoip; |
| 16390 |
+ |
else |
| 16391 |
+ |
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
| 16392 |
+ |
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
| 16393 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5 |
| 16394 |
+ |
$as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; } |
| 16395 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 16396 |
+ |
$as_echo_n "(cached) " >&6 |
| 16397 |
+ |
else |
| 16398 |
+ |
ac_func_search_save_LIBS=$LIBS |
| 16399 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16400 |
+ |
/* end confdefs.h. */ |
| 16401 |
+ |
|
| 16402 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 16403 |
+ |
Use char because int might match the return type of a GCC |
| 16404 |
+ |
builtin and then its argument prototype would still apply. */ |
| 16405 |
+ |
#ifdef __cplusplus |
| 16406 |
+ |
extern "C" |
| 16407 |
+ |
#endif |
| 16408 |
+ |
char GeoIP_id_by_ipnum_v6_gl (); |
| 16409 |
+ |
int |
| 16410 |
+ |
main () |
| 16411 |
+ |
{ |
| 16412 |
+ |
return GeoIP_id_by_ipnum_v6_gl (); |
| 16413 |
+ |
; |
| 16414 |
+ |
return 0; |
| 16415 |
+ |
} |
| 16416 |
+ |
_ACEOF |
| 16417 |
+ |
for ac_lib in '' GeoIP; do |
| 16418 |
+ |
if test -z "$ac_lib"; then |
| 16419 |
+ |
ac_res="none required" |
| 16420 |
+ |
else |
| 16421 |
+ |
ac_res=-l$ac_lib |
| 16422 |
+ |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16423 |
+ |
fi |
| 16424 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 16425 |
+ |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res |
| 16426 |
+ |
fi |
| 16427 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 16428 |
+ |
conftest$ac_exeext |
| 16429 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 16430 |
+ |
break |
| 16431 |
+ |
fi |
| 16432 |
+ |
done |
| 16433 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
| 16434 |
|
|
| 14408 |
– |
# Check whether --enable-debugging was given. |
| 14409 |
– |
if test "${enable_debugging+set}" = set; then : |
| 14410 |
– |
enableval=$enable_debugging; debugging="$enableval" |
| 16435 |
|
else |
| 16436 |
< |
debugging="no" |
| 16436 |
> |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no |
| 16437 |
|
fi |
| 16438 |
+ |
rm conftest.$ac_ext |
| 16439 |
+ |
LIBS=$ac_func_search_save_LIBS |
| 16440 |
+ |
fi |
| 16441 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5 |
| 16442 |
+ |
$as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; } |
| 16443 |
+ |
ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl |
| 16444 |
+ |
if test "$ac_res" != no; then : |
| 16445 |
+ |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16446 |
|
|
| 16447 |
< |
if test "$debugging" = "yes" ; then |
| 16448 |
< |
CFLAGS="-Wall -g -O0" |
| 16449 |
< |
fi |
| 16447 |
> |
$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h |
| 16448 |
> |
|
| 16449 |
> |
fi |
| 16450 |
> |
|
| 16451 |
> |
fi |
| 16452 |
|
|
| 16453 |
|
|
| 14420 |
– |
# Check whether --enable-warnings was given. |
| 14421 |
– |
if test "${enable_warnings+set}" = set; then : |
| 14422 |
– |
enableval=$enable_warnings; warnings="$enableval" |
| 14423 |
– |
else |
| 14424 |
– |
warnings="no" |
| 16454 |
|
fi |
| 16455 |
|
|
| 14427 |
– |
if test "$warnings" = "yes" ; then |
| 14428 |
– |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
| 14429 |
– |
fi |
| 16456 |
|
|
| 16457 |
|
|
| 16458 |
|
|
| 16541 |
|
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 16542 |
|
|
| 16543 |
|
|
| 16544 |
< |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
| 16544 |
> |
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" |
| 16545 |
|
|
| 16546 |
|
|
| 16547 |
|
cat >confcache <<\_ACEOF |
| 17108 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
| 17109 |
|
# values after options handling. |
| 17110 |
|
ac_log=" |
| 17111 |
< |
This file was extended by ircd-hybrid $as_me TRUNK, which was |
| 17111 |
> |
This file was extended by ircd-hybrid $as_me 8.2.7, which was |
| 17112 |
|
generated by GNU Autoconf 2.69. Invocation command line was |
| 17113 |
|
|
| 17114 |
|
CONFIG_FILES = $CONFIG_FILES |
| 17174 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17175 |
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 17176 |
|
ac_cs_version="\\ |
| 17177 |
< |
ircd-hybrid config.status TRUNK |
| 17177 |
> |
ircd-hybrid config.status 8.2.7 |
| 17178 |
|
configured by $0, generated by GNU Autoconf 2.69, |
| 17179 |
|
with options \\"\$ac_cs_config\\" |
| 17180 |
|
|
| 17309 |
|
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 17310 |
|
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 17311 |
|
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 17312 |
+ |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 17313 |
|
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 17314 |
|
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 17315 |
|
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 17359 |
|
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 17360 |
|
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 17361 |
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 17362 |
+ |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 17363 |
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 17364 |
|
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"`' |
| 17365 |
+ |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 17366 |
|
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 17367 |
|
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 17368 |
+ |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 17369 |
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 17370 |
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 17371 |
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 17430 |
|
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 17431 |
|
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 17432 |
|
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 17433 |
< |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 17433 |
> |
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 17434 |
> |
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 17435 |
|
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 17436 |
|
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 17437 |
|
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 17482 |
|
compiler \ |
| 17483 |
|
lt_cv_sys_global_symbol_pipe \ |
| 17484 |
|
lt_cv_sys_global_symbol_to_cdecl \ |
| 17485 |
+ |
lt_cv_sys_global_symbol_to_import \ |
| 17486 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
| 17487 |
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 17488 |
+ |
lt_cv_nm_interface \ |
| 17489 |
|
nm_file_list_spec \ |
| 17490 |
+ |
lt_cv_truncate_bin \ |
| 17491 |
|
lt_prog_compiler_no_builtin_flag \ |
| 17492 |
|
lt_prog_compiler_pic \ |
| 17493 |
|
lt_prog_compiler_wl \ |
| 17522 |
|
striplib; do |
| 17523 |
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 17524 |
|
*[\\\\\\\`\\"\\\$]*) |
| 17525 |
< |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 17525 |
> |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 17526 |
|
;; |
| 17527 |
|
*) |
| 17528 |
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 17549 |
|
postuninstall_cmds \ |
| 17550 |
|
finish_cmds \ |
| 17551 |
|
sys_lib_search_path_spec \ |
| 17552 |
< |
sys_lib_dlsearch_path_spec; do |
| 17552 |
> |
configure_time_dlsearch_path \ |
| 17553 |
> |
configure_time_lt_sys_library_path; do |
| 17554 |
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 17555 |
|
*[\\\\\\\`\\"\\\$]*) |
| 17556 |
< |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 17556 |
> |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 17557 |
|
;; |
| 17558 |
|
*) |
| 17559 |
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 17562 |
|
done |
| 17563 |
|
|
| 17564 |
|
ac_aux_dir='$ac_aux_dir' |
| 15530 |
– |
xsi_shell='$xsi_shell' |
| 15531 |
– |
lt_shell_append='$lt_shell_append' |
| 17565 |
|
|
| 17566 |
< |
# See if we are running on zsh, and set the options which allow our |
| 17566 |
> |
# See if we are running on zsh, and set the options that allow our |
| 17567 |
|
# commands through without removal of \ escapes INIT. |
| 17568 |
< |
if test -n "\${ZSH_VERSION+set}" ; then |
| 17568 |
> |
if test -n "\${ZSH_VERSION+set}"; then |
| 17569 |
|
setopt NO_GLOB_SUBST |
| 17570 |
|
fi |
| 17571 |
|
|
| 17572 |
|
|
| 17573 |
|
PACKAGE='$PACKAGE' |
| 17574 |
|
VERSION='$VERSION' |
| 15542 |
– |
TIMESTAMP='$TIMESTAMP' |
| 17575 |
|
RM='$RM' |
| 17576 |
|
ofile='$ofile' |
| 17577 |
|
|
| 17594 |
|
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
| 17595 |
|
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
| 17596 |
|
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
| 17597 |
+ |
"modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;; |
| 17598 |
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 17599 |
|
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
| 15567 |
– |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
| 15568 |
– |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
| 17600 |
|
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 17601 |
|
|
| 17602 |
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 18245 |
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 18246 |
|
test -z "$DEPDIR" && continue |
| 18247 |
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 18248 |
< |
test -z "am__include" && continue |
| 18248 |
> |
test -z "$am__include" && continue |
| 18249 |
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 18250 |
|
# Find all dependency output files, they are included files with |
| 18251 |
|
# $(DEPDIR) in their names. We invoke sed twice because it is the |
| 18288 |
|
;; |
| 18289 |
|
"libtool":C) |
| 18290 |
|
|
| 18291 |
< |
# See if we are running on zsh, and set the options which allow our |
| 18291 |
> |
# See if we are running on zsh, and set the options that allow our |
| 18292 |
|
# commands through without removal of \ escapes. |
| 18293 |
< |
if test -n "${ZSH_VERSION+set}" ; then |
| 18293 |
> |
if test -n "${ZSH_VERSION+set}"; then |
| 18294 |
|
setopt NO_GLOB_SUBST |
| 18295 |
|
fi |
| 18296 |
|
|
| 18297 |
< |
cfgfile="${ofile}T" |
| 18297 |
> |
cfgfile=${ofile}T |
| 18298 |
|
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 18299 |
|
$RM "$cfgfile" |
| 18300 |
|
|
| 18301 |
|
cat <<_LT_EOF >> "$cfgfile" |
| 18302 |
|
#! $SHELL |
| 18303 |
< |
|
| 16273 |
< |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16274 |
< |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 18303 |
> |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
| 18304 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18305 |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 18306 |
+ |
|
| 18307 |
+ |
# Provide generalized library-building support services. |
| 18308 |
+ |
# Written by Gordon Matzigkeit, 1996 |
| 18309 |
+ |
|
| 18310 |
+ |
# Copyright (C) 2014 Free Software Foundation, Inc. |
| 18311 |
+ |
# This is free software; see the source for copying conditions. There is NO |
| 18312 |
+ |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 18313 |
+ |
|
| 18314 |
+ |
# GNU Libtool is free software; you can redistribute it and/or modify |
| 18315 |
+ |
# it under the terms of the GNU General Public License as published by |
| 18316 |
+ |
# the Free Software Foundation; either version 2 of of the License, or |
| 18317 |
+ |
# (at your option) any later version. |
| 18318 |
|
# |
| 18319 |
< |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 18320 |
< |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 18321 |
< |
# Foundation, Inc. |
| 18322 |
< |
# Written by Gordon Matzigkeit, 1996 |
| 16282 |
< |
# |
| 16283 |
< |
# This file is part of GNU Libtool. |
| 16284 |
< |
# |
| 16285 |
< |
# GNU Libtool is free software; you can redistribute it and/or |
| 16286 |
< |
# modify it under the terms of the GNU General Public License as |
| 16287 |
< |
# published by the Free Software Foundation; either version 2 of |
| 16288 |
< |
# the License, or (at your option) any later version. |
| 16289 |
< |
# |
| 16290 |
< |
# As a special exception to the GNU General Public License, |
| 16291 |
< |
# if you distribute this file as part of a program or library that |
| 16292 |
< |
# is built using GNU Libtool, you may include this file under the |
| 16293 |
< |
# same distribution terms that you use for the rest of that program. |
| 18319 |
> |
# As a special exception to the GNU General Public License, if you |
| 18320 |
> |
# distribute this file as part of a program or library that is built |
| 18321 |
> |
# using GNU Libtool, you may include this file under the same |
| 18322 |
> |
# distribution terms that you use for the rest of that program. |
| 18323 |
|
# |
| 18324 |
< |
# GNU Libtool is distributed in the hope that it will be useful, |
| 18325 |
< |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18324 |
> |
# GNU Libtool is distributed in the hope that it will be useful, but |
| 18325 |
> |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18326 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18327 |
|
# GNU General Public License for more details. |
| 18328 |
|
# |
| 18329 |
|
# You should have received a copy of the GNU General Public License |
| 18330 |
< |
# along with GNU Libtool; see the file COPYING. If not, a copy |
| 16302 |
< |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16303 |
< |
# obtained by writing to the Free Software Foundation, Inc., |
| 16304 |
< |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18330 |
> |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18331 |
|
|
| 18332 |
|
|
| 18333 |
|
# The names of the tagged configurations supported by this script. |
| 18334 |
< |
available_tags="" |
| 18334 |
> |
available_tags='' |
| 18335 |
> |
|
| 18336 |
> |
# Configured defaults for sys_lib_dlsearch_path munging. |
| 18337 |
> |
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 18338 |
|
|
| 18339 |
|
# ### BEGIN LIBTOOL CONFIG |
| 18340 |
|
|
| 18354 |
|
# Whether or not to optimize for fast installation. |
| 18355 |
|
fast_install=$enable_fast_install |
| 18356 |
|
|
| 18357 |
+ |
# Shared archive member basename,for filename based shared library versioning on AIX. |
| 18358 |
+ |
shared_archive_member_spec=$shared_archive_member_spec |
| 18359 |
+ |
|
| 18360 |
|
# Shell to use when invoking shell scripts. |
| 18361 |
|
SHELL=$lt_SHELL |
| 18362 |
|
|
| 18474 |
|
# Transform the output of nm in a proper C declaration. |
| 18475 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18476 |
|
|
| 18477 |
+ |
# Transform the output of nm into a list of symbols to manually relocate. |
| 18478 |
+ |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 18479 |
+ |
|
| 18480 |
|
# Transform the output of nm in a C name address pair. |
| 18481 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18482 |
|
|
| 18483 |
|
# Transform the output of nm in a C name address pair when lib prefix is needed. |
| 18484 |
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 18485 |
|
|
| 18486 |
+ |
# The name lister interface. |
| 18487 |
+ |
nm_interface=$lt_lt_cv_nm_interface |
| 18488 |
+ |
|
| 18489 |
|
# Specify filename containing input files for \$NM. |
| 18490 |
|
nm_file_list_spec=$lt_nm_file_list_spec |
| 18491 |
|
|
| 18492 |
< |
# The root where to search for dependent libraries,and in which our libraries should be installed. |
| 18492 |
> |
# The root where to search for dependent libraries,and where our libraries should be installed. |
| 18493 |
|
lt_sysroot=$lt_sysroot |
| 18494 |
|
|
| 18495 |
+ |
# Command to truncate a binary pipe. |
| 18496 |
+ |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 18497 |
+ |
|
| 18498 |
|
# The name of the directory that contains temporary libtool files. |
| 18499 |
|
objdir=$objdir |
| 18500 |
|
|
| 18585 |
|
# Compile-time system search path for libraries. |
| 18586 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18587 |
|
|
| 18588 |
< |
# Run-time system search path for libraries. |
| 18589 |
< |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18588 |
> |
# Detected run-time system search path for libraries. |
| 18589 |
> |
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 18590 |
> |
|
| 18591 |
> |
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 18592 |
> |
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 18593 |
|
|
| 18594 |
|
# Whether dlopen is supported. |
| 18595 |
|
dlopen_support=$enable_dlopen |
| 18682 |
|
# Whether we need a single "-rpath" flag with a separated argument. |
| 18683 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 18684 |
|
|
| 18685 |
< |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 18685 |
> |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 18686 |
|
# DIR into the resulting binary. |
| 18687 |
|
hardcode_direct=$hardcode_direct |
| 18688 |
|
|
| 18689 |
< |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 18689 |
> |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 18690 |
|
# DIR into the resulting binary and the resulting library dependency is |
| 18691 |
< |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 18691 |
> |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 18692 |
|
# library is relocated. |
| 18693 |
|
hardcode_direct_absolute=$hardcode_direct_absolute |
| 18694 |
|
|
| 18740 |
|
|
| 18741 |
|
_LT_EOF |
| 18742 |
|
|
| 18743 |
+ |
cat <<'_LT_EOF' >> "$cfgfile" |
| 18744 |
+ |
|
| 18745 |
+ |
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 18746 |
+ |
|
| 18747 |
+ |
# func_munge_path_list VARIABLE PATH |
| 18748 |
+ |
# ----------------------------------- |
| 18749 |
+ |
# VARIABLE is name of variable containing _space_ separated list of |
| 18750 |
+ |
# directories to be munged by the contents of PATH, which is string |
| 18751 |
+ |
# having a format: |
| 18752 |
+ |
# "DIR[:DIR]:" |
| 18753 |
+ |
# string "DIR[ DIR]" will be prepended to VARIABLE |
| 18754 |
+ |
# ":DIR[:DIR]" |
| 18755 |
+ |
# string "DIR[ DIR]" will be appended to VARIABLE |
| 18756 |
+ |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
| 18757 |
+ |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 18758 |
+ |
# "DIRA[ DIRA]" will be appended to VARIABLE |
| 18759 |
+ |
# "DIR[:DIR]" |
| 18760 |
+ |
# VARIABLE will be replaced by "DIR[ DIR]" |
| 18761 |
+ |
func_munge_path_list () |
| 18762 |
+ |
{ |
| 18763 |
+ |
case x$2 in |
| 18764 |
+ |
x) |
| 18765 |
+ |
;; |
| 18766 |
+ |
*:) |
| 18767 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 18768 |
+ |
;; |
| 18769 |
+ |
x:*) |
| 18770 |
+ |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 18771 |
+ |
;; |
| 18772 |
+ |
*::*) |
| 18773 |
+ |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 18774 |
+ |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 18775 |
+ |
;; |
| 18776 |
+ |
*) |
| 18777 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 18778 |
+ |
;; |
| 18779 |
+ |
esac |
| 18780 |
+ |
} |
| 18781 |
+ |
|
| 18782 |
+ |
|
| 18783 |
+ |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 18784 |
+ |
func_cc_basename () |
| 18785 |
+ |
{ |
| 18786 |
+ |
for cc_temp in $*""; do |
| 18787 |
+ |
case $cc_temp in |
| 18788 |
+ |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18789 |
+ |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18790 |
+ |
\-*) ;; |
| 18791 |
+ |
*) break;; |
| 18792 |
+ |
esac |
| 18793 |
+ |
done |
| 18794 |
+ |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 18795 |
+ |
} |
| 18796 |
+ |
|
| 18797 |
+ |
|
| 18798 |
+ |
# ### END FUNCTIONS SHARED WITH CONFIGURE |
| 18799 |
+ |
|
| 18800 |
+ |
_LT_EOF |
| 18801 |
+ |
|
| 18802 |
|
case $host_os in |
| 18803 |
|
aix3*) |
| 18804 |
|
cat <<\_LT_EOF >> "$cfgfile" |
| 18805 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
| 18806 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18807 |
|
# vanish in a puff of smoke. |
| 18808 |
< |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18808 |
> |
if test set != "${COLLECT_NAMES+set}"; then |
| 18809 |
|
COLLECT_NAMES= |
| 18810 |
|
export COLLECT_NAMES |
| 18811 |
|
fi |
| 18814 |
|
esac |
| 18815 |
|
|
| 18816 |
|
|
| 18817 |
< |
ltmain="$ac_aux_dir/ltmain.sh" |
| 18817 |
> |
ltmain=$ac_aux_dir/ltmain.sh |
| 18818 |
|
|
| 18819 |
|
|
| 18820 |
|
# We use sed instead of cat because bash on DJGPP gets confused if |
| 18824 |
|
sed '$q' "$ltmain" >> "$cfgfile" \ |
| 18825 |
|
|| (rm -f "$cfgfile"; exit 1) |
| 18826 |
|
|
| 16724 |
– |
if test x"$xsi_shell" = xyes; then |
| 16725 |
– |
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 16726 |
– |
func_dirname ()\ |
| 16727 |
– |
{\ |
| 16728 |
– |
\ case ${1} in\ |
| 16729 |
– |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 16730 |
– |
\ * ) func_dirname_result="${3}" ;;\ |
| 16731 |
– |
\ esac\ |
| 16732 |
– |
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16733 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16734 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16735 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16736 |
– |
|
| 16737 |
– |
|
| 16738 |
– |
sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 16739 |
– |
func_basename ()\ |
| 16740 |
– |
{\ |
| 16741 |
– |
\ func_basename_result="${1##*/}"\ |
| 16742 |
– |
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16743 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16744 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16745 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16746 |
– |
|
| 16747 |
– |
|
| 16748 |
– |
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 16749 |
– |
func_dirname_and_basename ()\ |
| 16750 |
– |
{\ |
| 16751 |
– |
\ case ${1} in\ |
| 16752 |
– |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 16753 |
– |
\ * ) func_dirname_result="${3}" ;;\ |
| 16754 |
– |
\ esac\ |
| 16755 |
– |
\ func_basename_result="${1##*/}"\ |
| 16756 |
– |
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16757 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16758 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16759 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16760 |
– |
|
| 16761 |
– |
|
| 16762 |
– |
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 16763 |
– |
func_stripname ()\ |
| 16764 |
– |
{\ |
| 16765 |
– |
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 16766 |
– |
\ # positional parameters, so assign one to ordinary parameter first.\ |
| 16767 |
– |
\ func_stripname_result=${3}\ |
| 16768 |
– |
\ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 16769 |
– |
\ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 16770 |
– |
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16771 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16772 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16773 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16774 |
– |
|
| 16775 |
– |
|
| 16776 |
– |
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 16777 |
– |
func_split_long_opt ()\ |
| 16778 |
– |
{\ |
| 16779 |
– |
\ func_split_long_opt_name=${1%%=*}\ |
| 16780 |
– |
\ func_split_long_opt_arg=${1#*=}\ |
| 16781 |
– |
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16782 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16783 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16784 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16785 |
– |
|
| 16786 |
– |
|
| 16787 |
– |
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 16788 |
– |
func_split_short_opt ()\ |
| 16789 |
– |
{\ |
| 16790 |
– |
\ func_split_short_opt_arg=${1#??}\ |
| 16791 |
– |
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 16792 |
– |
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16793 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16794 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16795 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16796 |
– |
|
| 16797 |
– |
|
| 16798 |
– |
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 16799 |
– |
func_lo2o ()\ |
| 16800 |
– |
{\ |
| 16801 |
– |
\ case ${1} in\ |
| 16802 |
– |
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 16803 |
– |
\ *) func_lo2o_result=${1} ;;\ |
| 16804 |
– |
\ esac\ |
| 16805 |
– |
} # Extended-shell func_lo2o 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 |
– |
|
| 16811 |
– |
sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 16812 |
– |
func_xform ()\ |
| 16813 |
– |
{\ |
| 16814 |
– |
func_xform_result=${1%.*}.lo\ |
| 16815 |
– |
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16816 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16817 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16818 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16819 |
– |
|
| 16820 |
– |
|
| 16821 |
– |
sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 16822 |
– |
func_arith ()\ |
| 16823 |
– |
{\ |
| 16824 |
– |
func_arith_result=$(( $* ))\ |
| 16825 |
– |
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16826 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16827 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16828 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16829 |
– |
|
| 16830 |
– |
|
| 16831 |
– |
sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 16832 |
– |
func_len ()\ |
| 16833 |
– |
{\ |
| 16834 |
– |
func_len_result=${#1}\ |
| 16835 |
– |
} # Extended-shell func_len implementation' "$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 |
– |
|
| 16840 |
– |
fi |
| 16841 |
– |
|
| 16842 |
– |
if test x"$lt_shell_append" = xyes; then |
| 16843 |
– |
sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 16844 |
– |
func_append ()\ |
| 16845 |
– |
{\ |
| 16846 |
– |
eval "${1}+=\\${2}"\ |
| 16847 |
– |
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16848 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16849 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16850 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16851 |
– |
|
| 16852 |
– |
|
| 16853 |
– |
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 16854 |
– |
func_append_quoted ()\ |
| 16855 |
– |
{\ |
| 16856 |
– |
\ func_quote_for_eval "${2}"\ |
| 16857 |
– |
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 16858 |
– |
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16859 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16860 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16861 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16862 |
– |
|
| 16863 |
– |
|
| 16864 |
– |
# Save a `func_append' function call where possible by direct use of '+=' |
| 16865 |
– |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 16866 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16867 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16868 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16869 |
– |
else |
| 16870 |
– |
# Save a `func_append' function call even when '+=' is not available |
| 16871 |
– |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 16872 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16873 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16874 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16875 |
– |
fi |
| 16876 |
– |
|
| 16877 |
– |
if test x"$_lt_function_replace_fail" = x":"; then |
| 16878 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 16879 |
– |
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 16880 |
– |
fi |
| 16881 |
– |
|
| 16882 |
– |
|
| 18827 |
|
mv -f "$cfgfile" "$ofile" || |
| 18828 |
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 18829 |
|
chmod +x "$ofile" |
| 18867 |
|
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 18868 |
|
fi |
| 18869 |
|
|
| 18870 |
+ |
|
| 18871 |
+ |
echo "###############################################################################" |
| 18872 |
+ |
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile." |
| 18873 |
+ |
echo |
| 18874 |
+ |
echo "ircd-hybrid will be installed in ${prefix}. To change this, run:" |
| 18875 |
+ |
echo " ./configure --prefix=DIRECTORY" |
| 18876 |
+ |
echo "###############################################################################" |