1 |
|
#! /bin/sh |
2 |
< |
# From configure.ac Id: configure.ac 1245 2011-09-30 14:58:29Z michael . |
2 |
> |
# From configure.ac Id: configure.ac 7165 2016-01-28 11:51:57Z michael . |
3 |
|
# Guess values for system-dependent variables and create Makefiles. |
4 |
< |
# Generated by GNU Autoconf 2.68 for ircd-hybrid 8beta1. |
4 |
> |
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. |
5 |
|
# |
6 |
|
# Report bugs to <bugs@ircd-hybrid.org>. |
7 |
|
# |
8 |
|
# |
9 |
< |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
10 |
< |
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
11 |
< |
# Foundation, Inc. |
9 |
> |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
10 |
|
# |
11 |
|
# |
12 |
|
# This configure script is free software; the Free Software Foundation |
135 |
|
# CDPATH. |
136 |
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
137 |
|
|
138 |
+ |
# Use a proper internal environment variable to ensure we don't fall |
139 |
+ |
# into an infinite loop, continuously re-executing ourselves. |
140 |
+ |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
141 |
+ |
_as_can_reexec=no; export _as_can_reexec; |
142 |
+ |
# We cannot yet assume a decent shell, so we have to provide a |
143 |
+ |
# neutralization value for shells without unset; and this also |
144 |
+ |
# works around shells that cannot unset nonexistent variables. |
145 |
+ |
# Preserve -v and -x to the replacement shell. |
146 |
+ |
BASH_ENV=/dev/null |
147 |
+ |
ENV=/dev/null |
148 |
+ |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
149 |
+ |
case $- in # (((( |
150 |
+ |
*v*x* | *x*v* ) as_opts=-vx ;; |
151 |
+ |
*v* ) as_opts=-v ;; |
152 |
+ |
*x* ) as_opts=-x ;; |
153 |
+ |
* ) as_opts= ;; |
154 |
+ |
esac |
155 |
+ |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
156 |
+ |
# Admittedly, this is quite paranoid, since all the known shells bail |
157 |
+ |
# out after a failed `exec'. |
158 |
+ |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
159 |
+ |
as_fn_exit 255 |
160 |
+ |
fi |
161 |
+ |
# We don't want this to propagate to other subprocesses. |
162 |
+ |
{ _as_can_reexec=; unset _as_can_reexec;} |
163 |
|
if test "x$CONFIG_SHELL" = x; then |
164 |
|
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
165 |
|
emulate sh |
193 |
|
else |
194 |
|
exitcode=1; echo positional parameters were not saved. |
195 |
|
fi |
196 |
< |
test x\$exitcode = x0 || exit 1" |
196 |
> |
test x\$exitcode = x0 || exit 1 |
197 |
> |
test -x / || exit 1" |
198 |
|
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
199 |
|
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
200 |
|
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
247 |
|
|
248 |
|
|
249 |
|
if test "x$CONFIG_SHELL" != x; then : |
250 |
< |
# We cannot yet assume a decent shell, so we have to provide a |
251 |
< |
# neutralization value for shells without unset; and this also |
252 |
< |
# works around shells that cannot unset nonexistent variables. |
253 |
< |
# Preserve -v and -x to the replacement shell. |
254 |
< |
BASH_ENV=/dev/null |
255 |
< |
ENV=/dev/null |
256 |
< |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
257 |
< |
export CONFIG_SHELL |
258 |
< |
case $- in # (((( |
259 |
< |
*v*x* | *x*v* ) as_opts=-vx ;; |
260 |
< |
*v* ) as_opts=-v ;; |
261 |
< |
*x* ) as_opts=-x ;; |
262 |
< |
* ) as_opts= ;; |
263 |
< |
esac |
264 |
< |
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
250 |
> |
export CONFIG_SHELL |
251 |
> |
# We cannot yet assume a decent shell, so we have to provide a |
252 |
> |
# neutralization value for shells without unset; and this also |
253 |
> |
# works around shells that cannot unset nonexistent variables. |
254 |
> |
# Preserve -v and -x to the replacement shell. |
255 |
> |
BASH_ENV=/dev/null |
256 |
> |
ENV=/dev/null |
257 |
> |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
258 |
> |
case $- in # (((( |
259 |
> |
*v*x* | *x*v* ) as_opts=-vx ;; |
260 |
> |
*v* ) as_opts=-v ;; |
261 |
> |
*x* ) as_opts=-x ;; |
262 |
> |
* ) as_opts= ;; |
263 |
> |
esac |
264 |
> |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
265 |
> |
# Admittedly, this is quite paranoid, since all the known shells bail |
266 |
> |
# out after a failed `exec'. |
267 |
> |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
268 |
> |
exit 255 |
269 |
|
fi |
270 |
|
|
271 |
|
if test x$as_have_required = xno; then : |
368 |
|
|
369 |
|
|
370 |
|
} # as_fn_mkdir_p |
371 |
+ |
|
372 |
+ |
# as_fn_executable_p FILE |
373 |
+ |
# ----------------------- |
374 |
+ |
# Test if FILE is an executable regular file. |
375 |
+ |
as_fn_executable_p () |
376 |
+ |
{ |
377 |
+ |
test -f "$1" && test -x "$1" |
378 |
+ |
} # as_fn_executable_p |
379 |
|
# as_fn_append VAR VALUE |
380 |
|
# ---------------------- |
381 |
|
# Append the text in VALUE to the end of the definition contained in VAR. Take |
497 |
|
chmod +x "$as_me.lineno" || |
498 |
|
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
499 |
|
|
500 |
+ |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
501 |
+ |
# already done that, so ensure we don't try to do so again and fall |
502 |
+ |
# in an infinite loop. This has already happened in practice. |
503 |
+ |
_as_can_reexec=no; export _as_can_reexec |
504 |
|
# Don't try to exec as it changes $[0], causing all sort of problems |
505 |
|
# (the dirname of $[0] is not the place where we might find the |
506 |
|
# original and so on. Autoconf is especially sensitive to this). |
535 |
|
# ... but there are two gotchas: |
536 |
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
537 |
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
538 |
< |
# In both cases, we have to default to `cp -p'. |
538 |
> |
# In both cases, we have to default to `cp -pR'. |
539 |
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
540 |
< |
as_ln_s='cp -p' |
540 |
> |
as_ln_s='cp -pR' |
541 |
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
542 |
|
as_ln_s=ln |
543 |
|
else |
544 |
< |
as_ln_s='cp -p' |
544 |
> |
as_ln_s='cp -pR' |
545 |
|
fi |
546 |
|
else |
547 |
< |
as_ln_s='cp -p' |
547 |
> |
as_ln_s='cp -pR' |
548 |
|
fi |
549 |
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
550 |
|
rmdir conf$$.dir 2>/dev/null |
556 |
|
as_mkdir_p=false |
557 |
|
fi |
558 |
|
|
559 |
< |
if test -x / >/dev/null 2>&1; then |
560 |
< |
as_test_x='test -x' |
521 |
< |
else |
522 |
< |
if ls -dL / >/dev/null 2>&1; then |
523 |
< |
as_ls_L_option=L |
524 |
< |
else |
525 |
< |
as_ls_L_option= |
526 |
< |
fi |
527 |
< |
as_test_x=' |
528 |
< |
eval sh -c '\'' |
529 |
< |
if test -d "$1"; then |
530 |
< |
test -d "$1/."; |
531 |
< |
else |
532 |
< |
case $1 in #( |
533 |
< |
-*)set "./$1";; |
534 |
< |
esac; |
535 |
< |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
536 |
< |
???[sx]*):;;*)false;;esac;fi |
537 |
< |
'\'' sh |
538 |
< |
' |
539 |
< |
fi |
540 |
< |
as_executable_p=$as_test_x |
559 |
> |
as_test_x='test -x' |
560 |
> |
as_executable_p=as_fn_executable_p |
561 |
|
|
562 |
|
# Sed expression to map a string onto a valid CPP name. |
563 |
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
593 |
|
# Identity of this package. |
594 |
|
PACKAGE_NAME='ircd-hybrid' |
595 |
|
PACKAGE_TARNAME='ircd-hybrid' |
596 |
< |
PACKAGE_VERSION='8beta1' |
597 |
< |
PACKAGE_STRING='ircd-hybrid 8beta1' |
596 |
> |
PACKAGE_VERSION='TRUNK' |
597 |
> |
PACKAGE_STRING='ircd-hybrid TRUNK' |
598 |
|
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
599 |
|
PACKAGE_URL='' |
600 |
|
|
648 |
|
LIBDIR |
649 |
|
SYSCONFDIR |
650 |
|
PREFIX |
631 |
– |
EFNET_FALSE |
632 |
– |
EFNET_TRUE |
633 |
– |
ENABLE_SSL_FALSE |
634 |
– |
ENABLE_SSL_TRUE |
635 |
– |
ENABLE_PCRE_FALSE |
636 |
– |
ENABLE_PCRE_TRUE |
651 |
|
LTDLOPEN |
652 |
|
LT_CONFIG_H |
653 |
|
CONVENIENCE_LTDL_FALSE |
654 |
|
CONVENIENCE_LTDL_TRUE |
655 |
|
INSTALL_LTDL_FALSE |
656 |
|
INSTALL_LTDL_TRUE |
657 |
< |
ARGZ_H |
657 |
> |
LT_ARGZ_H |
658 |
|
sys_symbol_underscore |
659 |
|
LIBADD_DL |
660 |
|
LT_DLPREOPEN |
667 |
|
LTDLDEPS |
668 |
|
LIBLTDL |
669 |
|
CPP |
670 |
+ |
LT_SYS_LIBRARY_PATH |
671 |
|
OTOOL64 |
672 |
|
OTOOL |
673 |
|
LIPO |
705 |
|
am__fastdepCC_FALSE |
706 |
|
am__fastdepCC_TRUE |
707 |
|
CCDEPMODE |
708 |
+ |
am__nodep |
709 |
|
AMDEPBACKSLASH |
710 |
|
AMDEP_FALSE |
711 |
|
AMDEP_TRUE |
722 |
|
MAINT |
723 |
|
MAINTAINER_MODE_FALSE |
724 |
|
MAINTAINER_MODE_TRUE |
725 |
+ |
AM_BACKSLASH |
726 |
+ |
AM_DEFAULT_VERBOSITY |
727 |
+ |
AM_DEFAULT_V |
728 |
+ |
AM_V |
729 |
|
am__untar |
730 |
|
am__tar |
731 |
|
AMTAR |
790 |
|
ac_subst_files='' |
791 |
|
ac_user_opts=' |
792 |
|
enable_option_checking |
793 |
+ |
enable_silent_rules |
794 |
|
enable_maintainer_mode |
795 |
|
enable_dependency_tracking |
796 |
|
enable_static |
797 |
|
enable_shared |
798 |
|
with_pic |
799 |
|
enable_fast_install |
800 |
+ |
with_aix_soname |
801 |
|
with_gnu_ld |
802 |
|
with_sysroot |
803 |
|
enable_libtool_lock |
805 |
|
with_ltdl_include |
806 |
|
with_ltdl_lib |
807 |
|
enable_ltdl_install |
786 |
– |
with_zlib_path |
787 |
– |
enable_zlib |
788 |
– |
with_libpcre_path |
789 |
– |
enable_libpcre |
790 |
– |
enable_openssl |
791 |
– |
enable_assert |
792 |
– |
enable_small_net |
808 |
|
enable_kqueue |
809 |
|
enable_epoll |
810 |
|
enable_devpoll |
796 |
– |
enable_rtsigio |
811 |
|
enable_poll |
812 |
< |
enable_select |
799 |
< |
with_nicklen |
800 |
< |
with_topiclen |
801 |
< |
with_syslog_facility |
802 |
< |
enable_efnet |
803 |
< |
enable_halfops |
812 |
> |
enable_assert |
813 |
|
enable_debugging |
814 |
|
enable_warnings |
815 |
< |
enable_syslog |
815 |
> |
enable_openssl |
816 |
> |
enable_gnutls |
817 |
> |
enable_libgeoip |
818 |
|
' |
819 |
|
ac_precious_vars='build_alias |
820 |
|
host_alias |
826 |
|
CPPFLAGS |
827 |
|
YACC |
828 |
|
YFLAGS |
829 |
+ |
LT_SYS_LIBRARY_PATH |
830 |
|
CPP' |
831 |
|
|
832 |
|
|
1283 |
|
if test "x$host_alias" != x; then |
1284 |
|
if test "x$build_alias" = x; then |
1285 |
|
cross_compiling=maybe |
1274 |
– |
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1275 |
– |
If a cross compiler is detected then cross compile mode will be used" >&2 |
1286 |
|
elif test "x$build_alias" != "x$host_alias"; then |
1287 |
|
cross_compiling=yes |
1288 |
|
fi |
1368 |
|
# Omit some internal or obsolete options to make the list less imposing. |
1369 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
1370 |
|
cat <<_ACEOF |
1371 |
< |
\`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems. |
1371 |
> |
\`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems. |
1372 |
|
|
1373 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
1374 |
|
|
1438 |
|
|
1439 |
|
if test -n "$ac_init_help"; then |
1440 |
|
case $ac_init_help in |
1441 |
< |
short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";; |
1441 |
> |
short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";; |
1442 |
|
esac |
1443 |
|
cat <<\_ACEOF |
1444 |
|
|
1446 |
|
--disable-option-checking ignore unrecognized --enable/--with options |
1447 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1448 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1449 |
< |
--enable-maintainer-mode enable make rules and dependencies not useful |
1450 |
< |
(and sometimes confusing) to the casual installer |
1451 |
< |
--disable-dependency-tracking speeds up one-time build |
1452 |
< |
--enable-dependency-tracking do not reject slow dependency extractors |
1449 |
> |
--enable-silent-rules less verbose build output (undo: "make V=1") |
1450 |
> |
--disable-silent-rules verbose build output (undo: "make V=0") |
1451 |
> |
--enable-maintainer-mode |
1452 |
> |
enable make rules and dependencies not useful (and |
1453 |
> |
sometimes confusing) to the casual installer |
1454 |
> |
--enable-dependency-tracking |
1455 |
> |
do not reject slow dependency extractors |
1456 |
> |
--disable-dependency-tracking |
1457 |
> |
speeds up one-time build |
1458 |
|
--enable-static[=PKGS] build static libraries [default=no] |
1459 |
|
--enable-shared[=PKGS] build shared libraries [default=yes] |
1460 |
|
--enable-fast-install[=PKGS] |
1461 |
|
optimize for fast installation [default=yes] |
1462 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
1463 |
|
--enable-ltdl-install install libltdl |
1449 |
– |
--disable-zlib Disable ziplinks support |
1450 |
– |
--disable-libpcre Disable PCRE support |
1451 |
– |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
1452 |
– |
--disable-openssl Disable OpenSSL support. |
1453 |
– |
--enable-assert Enable assert() statements |
1454 |
– |
--enable-small-net Enable small network support. |
1464 |
|
--enable-kqueue Force kqueue usage. |
1465 |
|
--enable-epoll Force epoll usage. |
1466 |
|
--enable-devpoll Force devpoll usage. |
1458 |
– |
--enable-rtsigio Force rtsigio usage. |
1467 |
|
--enable-poll Force poll usage. |
1468 |
< |
--enable-select Force select usage. |
1461 |
< |
--enable-efnet For IRCDs running on EFnet. |
1462 |
< |
--enable-halfops Enable halfops support. |
1468 |
> |
--enable-assert Enable assert() statements |
1469 |
|
--enable-debugging Enable debugging. |
1470 |
|
--enable-warnings Enable compiler warnings. |
1471 |
< |
--enable-syslog="EVENTS" |
1472 |
< |
Enable syslog for events: users oper (space |
1473 |
< |
separated in quotes; default: disabled). |
1471 |
> |
--enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional). |
1472 |
> |
--disable-openssl Disable LibreSSL/OpenSSL support. |
1473 |
> |
--enable-gnutls Enable GnuTLS support. |
1474 |
> |
--disable-gnutls Disable GnuTLS support. |
1475 |
> |
--disable-libgeoip Disable GeoIP support |
1476 |
|
|
1477 |
|
Optional Packages: |
1478 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1479 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1480 |
< |
--with-pic try to use only PIC/non-PIC objects [default=use |
1480 |
> |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1481 |
|
both] |
1482 |
+ |
--with-aix-soname=aix|svr4|both |
1483 |
+ |
shared library versioning (aka "SONAME") variant to |
1484 |
+ |
provide on AIX, [default=aix]. |
1485 |
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1486 |
< |
--with-sysroot=DIR Search for dependent libraries within DIR |
1487 |
< |
(or the compiler's sysroot if not specified). |
1486 |
> |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1487 |
> |
compiler's sysroot if not specified). |
1488 |
|
--with-included-ltdl use the GNU ltdl sources included here |
1489 |
|
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
1490 |
|
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
1480 |
– |
--with-zlib-path=DIR Path to libz.so for ziplinks support. |
1481 |
– |
--with-libpcre-path=DIR Path to libpcre.so for PCRE support. |
1482 |
– |
--with-nicklen=<value> Set nickname length (default 9). |
1483 |
– |
--with-topiclen=<value> Set topic length (default 160). |
1484 |
– |
--with-syslog-facility=LOG |
1485 |
– |
Define the syslog facility to use (default: |
1486 |
– |
LOG_LOCAL4) |
1491 |
|
|
1492 |
|
Some influential environment variables: |
1493 |
|
CC C compiler command |
1503 |
|
YFLAGS The list of arguments that will be passed by default to $YACC. |
1504 |
|
This script will default YFLAGS to the empty string to avoid a |
1505 |
|
default value of `-d' given by some make applications. |
1506 |
+ |
LT_SYS_LIBRARY_PATH |
1507 |
+ |
User-defined run-time library search path. |
1508 |
|
CPP C preprocessor |
1509 |
|
|
1510 |
|
Use these variables to override the choices made by `configure' or to help |
1573 |
|
test -n "$ac_init_help" && exit $ac_status |
1574 |
|
if $ac_init_version; then |
1575 |
|
cat <<\_ACEOF |
1576 |
< |
ircd-hybrid configure 8beta1 |
1577 |
< |
generated by GNU Autoconf 2.68 |
1576 |
> |
ircd-hybrid configure TRUNK |
1577 |
> |
generated by GNU Autoconf 2.69 |
1578 |
|
|
1579 |
< |
Copyright (C) 2010 Free Software Foundation, Inc. |
1579 |
> |
Copyright (C) 2012 Free Software Foundation, Inc. |
1580 |
|
This configure script is free software; the Free Software Foundation |
1581 |
|
gives unlimited permission to copy, distribute and modify it. |
1582 |
|
_ACEOF |
1652 |
|
test ! -s conftest.err |
1653 |
|
} && test -s conftest$ac_exeext && { |
1654 |
|
test "$cross_compiling" = yes || |
1655 |
< |
$as_test_x conftest$ac_exeext |
1655 |
> |
test -x conftest$ac_exeext |
1656 |
|
}; then : |
1657 |
|
ac_retval=0 |
1658 |
|
else |
1948 |
|
|
1949 |
|
} # ac_fn_c_check_type |
1950 |
|
|
1945 |
– |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1946 |
– |
# ---------------------------------------------------- |
1947 |
– |
# Tries to find if the field MEMBER exists in type AGGR, after including |
1948 |
– |
# INCLUDES, setting cache variable VAR accordingly. |
1949 |
– |
ac_fn_c_check_member () |
1950 |
– |
{ |
1951 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1952 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
1953 |
– |
$as_echo_n "checking for $2.$3... " >&6; } |
1954 |
– |
if eval \${$4+:} false; then : |
1955 |
– |
$as_echo_n "(cached) " >&6 |
1956 |
– |
else |
1957 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1958 |
– |
/* end confdefs.h. */ |
1959 |
– |
$5 |
1960 |
– |
int |
1961 |
– |
main () |
1962 |
– |
{ |
1963 |
– |
static $2 ac_aggr; |
1964 |
– |
if (ac_aggr.$3) |
1965 |
– |
return 0; |
1966 |
– |
; |
1967 |
– |
return 0; |
1968 |
– |
} |
1969 |
– |
_ACEOF |
1970 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
1971 |
– |
eval "$4=yes" |
1972 |
– |
else |
1973 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1974 |
– |
/* end confdefs.h. */ |
1975 |
– |
$5 |
1976 |
– |
int |
1977 |
– |
main () |
1978 |
– |
{ |
1979 |
– |
static $2 ac_aggr; |
1980 |
– |
if (sizeof ac_aggr.$3) |
1981 |
– |
return 0; |
1982 |
– |
; |
1983 |
– |
return 0; |
1984 |
– |
} |
1985 |
– |
_ACEOF |
1986 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
1987 |
– |
eval "$4=yes" |
1988 |
– |
else |
1989 |
– |
eval "$4=no" |
1990 |
– |
fi |
1991 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1992 |
– |
fi |
1993 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1994 |
– |
fi |
1995 |
– |
eval ac_res=\$$4 |
1996 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1997 |
– |
$as_echo "$ac_res" >&6; } |
1998 |
– |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1999 |
– |
|
2000 |
– |
} # ac_fn_c_check_member |
2001 |
– |
|
1951 |
|
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1952 |
|
# ------------------------------------------------------- |
1953 |
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
2042 |
|
This file contains any messages produced by compilers while |
2043 |
|
running configure, to aid debugging if configure makes a mistake. |
2044 |
|
|
2045 |
< |
It was created by ircd-hybrid $as_me 8beta1, which was |
2046 |
< |
generated by GNU Autoconf 2.68. Invocation command line was |
2045 |
> |
It was created by ircd-hybrid $as_me TRUNK, which was |
2046 |
> |
generated by GNU Autoconf 2.69. Invocation command line was |
2047 |
|
|
2048 |
|
$ $0 $@ |
2049 |
|
|
2322 |
|
>$cache_file |
2323 |
|
fi |
2324 |
|
|
2376 |
– |
as_fn_append ac_func_list " mmap" |
2325 |
|
as_fn_append ac_func_list " strtok_r" |
2378 |
– |
as_fn_append ac_func_list " usleep" |
2326 |
|
as_fn_append ac_func_list " strlcat" |
2327 |
|
as_fn_append ac_func_list " strlcpy" |
2381 |
– |
as_fn_append ac_func_list " socketpair" |
2328 |
|
as_fn_append ac_header_list " crypt.h" |
2383 |
– |
as_fn_append ac_header_list " inttypes.h" |
2384 |
– |
as_fn_append ac_header_list " stdint.h" |
2329 |
|
as_fn_append ac_header_list " sys/resource.h" |
2330 |
|
as_fn_append ac_header_list " sys/param.h" |
2387 |
– |
as_fn_append ac_header_list " errno.h" |
2388 |
– |
as_fn_append ac_header_list " sys/syslog.h" |
2331 |
|
as_fn_append ac_header_list " types.h" |
2332 |
|
as_fn_append ac_header_list " socket.h" |
2333 |
|
as_fn_append ac_header_list " sys/wait.h" |
2392 |
– |
as_fn_append ac_header_list " wait.h" |
2393 |
– |
as_fn_append ac_header_list " link.h" |
2334 |
|
# Check that the precious variables saved in the cache have kept the same |
2335 |
|
# value. |
2336 |
|
ac_cache_corrupted=false |
2399 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2400 |
|
|
2401 |
|
|
2402 |
< |
am__api_version='1.11' |
2402 |
> |
am__api_version='1.15' |
2403 |
|
|
2404 |
|
ac_aux_dir= |
2405 |
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2467 |
|
# by default. |
2468 |
|
for ac_prog in ginstall scoinst install; do |
2469 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2470 |
< |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2470 |
> |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2471 |
|
if test $ac_prog = install && |
2472 |
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2473 |
|
# AIX install. It has an incompatible calling convention. |
2525 |
|
|
2526 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2527 |
|
$as_echo_n "checking whether build environment is sane... " >&6; } |
2588 |
– |
# Just in case |
2589 |
– |
sleep 1 |
2590 |
– |
echo timestamp > conftest.file |
2528 |
|
# Reject unsafe characters in $srcdir or the absolute working directory |
2529 |
|
# name. Accept space and tab only in the latter. |
2530 |
|
am_lf=' |
2535 |
|
esac |
2536 |
|
case $srcdir in |
2537 |
|
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2538 |
< |
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
2538 |
> |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
2539 |
|
esac |
2540 |
|
|
2541 |
< |
# Do `set' in a subshell so we don't clobber the current shell's |
2541 |
> |
# Do 'set' in a subshell so we don't clobber the current shell's |
2542 |
|
# arguments. Must try -L first in case configure is actually a |
2543 |
|
# symlink; some systems play weird games with the mod time of symlinks |
2544 |
|
# (eg FreeBSD returns the mod time of the symlink's containing |
2545 |
|
# directory). |
2546 |
|
if ( |
2547 |
< |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2548 |
< |
if test "$*" = "X"; then |
2549 |
< |
# -L didn't work. |
2550 |
< |
set X `ls -t "$srcdir/configure" conftest.file` |
2551 |
< |
fi |
2552 |
< |
rm -f conftest.file |
2553 |
< |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2554 |
< |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2555 |
< |
|
2556 |
< |
# If neither matched, then we have a broken ls. This can happen |
2620 |
< |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2621 |
< |
# broken ls alias from the environment. This has actually |
2622 |
< |
# happened. Such a system could not be considered "sane". |
2623 |
< |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2624 |
< |
alias in your environment" "$LINENO" 5 |
2625 |
< |
fi |
2547 |
> |
am_has_slept=no |
2548 |
> |
for am_try in 1 2; do |
2549 |
> |
echo "timestamp, slept: $am_has_slept" > conftest.file |
2550 |
> |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2551 |
> |
if test "$*" = "X"; then |
2552 |
> |
# -L didn't work. |
2553 |
> |
set X `ls -t "$srcdir/configure" conftest.file` |
2554 |
> |
fi |
2555 |
> |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2556 |
> |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2557 |
|
|
2558 |
+ |
# If neither matched, then we have a broken ls. This can happen |
2559 |
+ |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2560 |
+ |
# broken ls alias from the environment. This has actually |
2561 |
+ |
# happened. Such a system could not be considered "sane". |
2562 |
+ |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2563 |
+ |
alias in your environment" "$LINENO" 5 |
2564 |
+ |
fi |
2565 |
+ |
if test "$2" = conftest.file || test $am_try -eq 2; then |
2566 |
+ |
break |
2567 |
+ |
fi |
2568 |
+ |
# Just in case. |
2569 |
+ |
sleep 1 |
2570 |
+ |
am_has_slept=yes |
2571 |
+ |
done |
2572 |
|
test "$2" = conftest.file |
2573 |
|
) |
2574 |
|
then |
2580 |
|
fi |
2581 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2582 |
|
$as_echo "yes" >&6; } |
2583 |
+ |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
2584 |
+ |
# generated files are strictly newer. |
2585 |
+ |
am_sleep_pid= |
2586 |
+ |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
2587 |
+ |
( sleep 1 ) & |
2588 |
+ |
am_sleep_pid=$! |
2589 |
+ |
fi |
2590 |
+ |
|
2591 |
+ |
rm -f conftest.file |
2592 |
+ |
|
2593 |
|
test "$program_prefix" != NONE && |
2594 |
|
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2595 |
|
# Use a double $ so make ignores it. |
2600 |
|
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2601 |
|
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2602 |
|
|
2603 |
< |
# expand $ac_aux_dir to an absolute path |
2604 |
< |
am_aux_dir=`cd $ac_aux_dir && pwd` |
2603 |
> |
# Expand $ac_aux_dir to an absolute path. |
2604 |
> |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
2605 |
|
|
2606 |
|
if test x"${MISSING+set}" != xset; then |
2607 |
|
case $am_aux_dir in |
2612 |
|
esac |
2613 |
|
fi |
2614 |
|
# Use eval to expand $SHELL |
2615 |
< |
if eval "$MISSING --run true"; then |
2616 |
< |
am_missing_run="$MISSING --run " |
2615 |
> |
if eval "$MISSING --is-lightweight"; then |
2616 |
> |
am_missing_run="$MISSING " |
2617 |
|
else |
2618 |
|
am_missing_run= |
2619 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2620 |
< |
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2619 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2620 |
> |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
2621 |
|
fi |
2622 |
|
|
2623 |
< |
if test x"${install_sh}" != xset; then |
2623 |
> |
if test x"${install_sh+set}" != xset; then |
2624 |
|
case $am_aux_dir in |
2625 |
|
*\ * | *\ *) |
2626 |
|
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2629 |
|
esac |
2630 |
|
fi |
2631 |
|
|
2632 |
< |
# Installed binaries are usually stripped using `strip' when the user |
2633 |
< |
# run `make install-strip'. However `strip' might not be the right |
2632 |
> |
# Installed binaries are usually stripped using 'strip' when the user |
2633 |
> |
# run "make install-strip". However 'strip' might not be the right |
2634 |
|
# tool to use in cross-compilation environments, therefore Automake |
2635 |
< |
# will honor the `STRIP' environment variable to overrule this program. |
2635 |
> |
# will honor the 'STRIP' environment variable to overrule this program. |
2636 |
|
if test "$cross_compiling" != no; then |
2637 |
|
if test -n "$ac_tool_prefix"; then |
2638 |
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2651 |
|
IFS=$as_save_IFS |
2652 |
|
test -z "$as_dir" && as_dir=. |
2653 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2654 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2654 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2655 |
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2656 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2657 |
|
break 2 |
2691 |
|
IFS=$as_save_IFS |
2692 |
|
test -z "$as_dir" && as_dir=. |
2693 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2694 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2694 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2695 |
|
ac_cv_prog_ac_ct_STRIP="strip" |
2696 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2697 |
|
break 2 |
2742 |
|
test -z "$as_dir" && as_dir=. |
2743 |
|
for ac_prog in mkdir gmkdir; do |
2744 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2745 |
< |
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2745 |
> |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
2746 |
|
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2747 |
|
'mkdir (GNU coreutils) '* | \ |
2748 |
|
'mkdir (coreutils) '* | \ |
2771 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2772 |
|
$as_echo "$MKDIR_P" >&6; } |
2773 |
|
|
2819 |
– |
mkdir_p="$MKDIR_P" |
2820 |
– |
case $mkdir_p in |
2821 |
– |
[\\/$]* | ?:[\\/]*) ;; |
2822 |
– |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2823 |
– |
esac |
2824 |
– |
|
2774 |
|
for ac_prog in gawk mawk nawk awk |
2775 |
|
do |
2776 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2789 |
|
IFS=$as_save_IFS |
2790 |
|
test -z "$as_dir" && as_dir=. |
2791 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2792 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2792 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2793 |
|
ac_cv_prog_AWK="$ac_prog" |
2794 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2795 |
|
break 2 |
2853 |
|
fi |
2854 |
|
rmdir .tst 2>/dev/null |
2855 |
|
|
2856 |
+ |
# Check whether --enable-silent-rules was given. |
2857 |
+ |
if test "${enable_silent_rules+set}" = set; then : |
2858 |
+ |
enableval=$enable_silent_rules; |
2859 |
+ |
fi |
2860 |
+ |
|
2861 |
+ |
case $enable_silent_rules in # ((( |
2862 |
+ |
yes) AM_DEFAULT_VERBOSITY=0;; |
2863 |
+ |
no) AM_DEFAULT_VERBOSITY=1;; |
2864 |
+ |
*) AM_DEFAULT_VERBOSITY=1;; |
2865 |
+ |
esac |
2866 |
+ |
am_make=${MAKE-make} |
2867 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
2868 |
+ |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
2869 |
+ |
if ${am_cv_make_support_nested_variables+:} false; then : |
2870 |
+ |
$as_echo_n "(cached) " >&6 |
2871 |
+ |
else |
2872 |
+ |
if $as_echo 'TRUE=$(BAR$(V)) |
2873 |
+ |
BAR0=false |
2874 |
+ |
BAR1=true |
2875 |
+ |
V=1 |
2876 |
+ |
am__doit: |
2877 |
+ |
@$(TRUE) |
2878 |
+ |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
2879 |
+ |
am_cv_make_support_nested_variables=yes |
2880 |
+ |
else |
2881 |
+ |
am_cv_make_support_nested_variables=no |
2882 |
+ |
fi |
2883 |
+ |
fi |
2884 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
2885 |
+ |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
2886 |
+ |
if test $am_cv_make_support_nested_variables = yes; then |
2887 |
+ |
AM_V='$(V)' |
2888 |
+ |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
2889 |
+ |
else |
2890 |
+ |
AM_V=$AM_DEFAULT_VERBOSITY |
2891 |
+ |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
2892 |
+ |
fi |
2893 |
+ |
AM_BACKSLASH='\' |
2894 |
+ |
|
2895 |
|
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2896 |
|
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2897 |
|
# is not polluted with repeated "-I." |
2914 |
|
|
2915 |
|
# Define the identity of the package. |
2916 |
|
PACKAGE='ircd-hybrid' |
2917 |
< |
VERSION='8beta1' |
2917 |
> |
VERSION='TRUNK' |
2918 |
|
|
2919 |
|
|
2920 |
|
cat >>confdefs.h <<_ACEOF |
2942 |
|
|
2943 |
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2944 |
|
|
2945 |
< |
# We need awk for the "check" target. The system "awk" is bad on |
2946 |
< |
# some platforms. |
2947 |
< |
# Always define AMTAR for backward compatibility. |
2945 |
> |
# For better backward compatibility. To be removed once Automake 1.9.x |
2946 |
> |
# dies out for good. For more background, see: |
2947 |
> |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
2948 |
> |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
2949 |
> |
mkdir_p='$(MKDIR_P)' |
2950 |
> |
|
2951 |
> |
# We need awk for the "check" target (and possibly the TAP driver). The |
2952 |
> |
# system "awk" is bad on some platforms. |
2953 |
> |
# Always define AMTAR for backward compatibility. Yes, it's still used |
2954 |
> |
# in the wild :-( We should find a proper way to deprecate it ... |
2955 |
> |
AMTAR='$${TAR-tar}' |
2956 |
> |
|
2957 |
> |
|
2958 |
> |
# We'll loop over all known methods to create a tar archive until one works. |
2959 |
> |
_am_tools='gnutar pax cpio none' |
2960 |
> |
|
2961 |
> |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2962 |
|
|
2961 |
– |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
2963 |
|
|
2963 |
– |
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2964 |
|
|
2965 |
|
|
2966 |
|
|
2967 |
|
|
2968 |
+ |
# POSIX will say in a future version that running "rm -f" with no argument |
2969 |
+ |
# is OK; and we want to be able to make that assumption in our Makefile |
2970 |
+ |
# recipes. So use an aggressive probe to check that the usage we want is |
2971 |
+ |
# actually supported "in the wild" to an acceptable degree. |
2972 |
+ |
# See automake bug#10828. |
2973 |
+ |
# To make any issue more visible, cause the running configure to be aborted |
2974 |
+ |
# by default if the 'rm' program in use doesn't match our expectations; the |
2975 |
+ |
# user can still override this though. |
2976 |
+ |
if rm -f && rm -fr && rm -rf; then : OK; else |
2977 |
+ |
cat >&2 <<'END' |
2978 |
+ |
Oops! |
2979 |
+ |
|
2980 |
+ |
Your 'rm' program seems unable to run without file operands specified |
2981 |
+ |
on the command line, even when the '-f' option is present. This is contrary |
2982 |
+ |
to the behaviour of most rm programs out there, and not conforming with |
2983 |
+ |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
2984 |
+ |
|
2985 |
+ |
Please tell bug-automake@gnu.org about your system, including the value |
2986 |
+ |
of your $PATH and any error possibly output before this message. This |
2987 |
+ |
can help us improve future automake versions. |
2988 |
+ |
|
2989 |
+ |
END |
2990 |
+ |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
2991 |
+ |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
2992 |
+ |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
2993 |
+ |
echo >&2 |
2994 |
+ |
else |
2995 |
+ |
cat >&2 <<'END' |
2996 |
+ |
Aborting the configuration process, to ensure you take notice of the issue. |
2997 |
+ |
|
2998 |
+ |
You can download and install GNU coreutils to get an 'rm' implementation |
2999 |
+ |
that behaves properly: <http://www.gnu.org/software/coreutils/>. |
3000 |
+ |
|
3001 |
+ |
If you want to complete the configuration process using your problematic |
3002 |
+ |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
3003 |
+ |
to "yes", and re-run configure. |
3004 |
+ |
|
3005 |
+ |
END |
3006 |
+ |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
3007 |
+ |
fi |
3008 |
+ |
fi |
3009 |
|
|
3010 |
|
|
3011 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3030 |
|
MAINT=$MAINTAINER_MODE_TRUE |
3031 |
|
|
3032 |
|
|
3033 |
+ |
|
3034 |
|
ac_config_headers="$ac_config_headers config.h" |
3035 |
|
|
3036 |
|
|
3055 |
|
_am_result=none |
3056 |
|
# First try GNU make style include. |
3057 |
|
echo "include confinc" > confmf |
3058 |
< |
# Ignore all kinds of additional output from `make'. |
3058 |
> |
# Ignore all kinds of additional output from 'make'. |
3059 |
|
case `$am_make -s -f confmf 2> /dev/null` in #( |
3060 |
|
*the\ am__doit\ target*) |
3061 |
|
am__include=include |
3088 |
|
if test "x$enable_dependency_tracking" != xno; then |
3089 |
|
am_depcomp="$ac_aux_dir/depcomp" |
3090 |
|
AMDEPBACKSLASH='\' |
3091 |
+ |
am__nodep='_no' |
3092 |
|
fi |
3093 |
|
if test "x$enable_dependency_tracking" != xno; then |
3094 |
|
AMDEP_TRUE= |
3121 |
|
IFS=$as_save_IFS |
3122 |
|
test -z "$as_dir" && as_dir=. |
3123 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3124 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3124 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3125 |
|
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3126 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3127 |
|
break 2 |
3161 |
|
IFS=$as_save_IFS |
3162 |
|
test -z "$as_dir" && as_dir=. |
3163 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3164 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3164 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3165 |
|
ac_cv_prog_ac_ct_CC="gcc" |
3166 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3167 |
|
break 2 |
3214 |
|
IFS=$as_save_IFS |
3215 |
|
test -z "$as_dir" && as_dir=. |
3216 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3217 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3217 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3218 |
|
ac_cv_prog_CC="${ac_tool_prefix}cc" |
3219 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3220 |
|
break 2 |
3255 |
|
IFS=$as_save_IFS |
3256 |
|
test -z "$as_dir" && as_dir=. |
3257 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3258 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3258 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3259 |
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3260 |
|
ac_prog_rejected=yes |
3261 |
|
continue |
3313 |
|
IFS=$as_save_IFS |
3314 |
|
test -z "$as_dir" && as_dir=. |
3315 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3316 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3316 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3317 |
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3318 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3319 |
|
break 2 |
3357 |
|
IFS=$as_save_IFS |
3358 |
|
test -z "$as_dir" && as_dir=. |
3359 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3360 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3360 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3361 |
|
ac_cv_prog_ac_ct_CC="$ac_prog" |
3362 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3363 |
|
break 2 |
3803 |
|
/* end confdefs.h. */ |
3804 |
|
#include <stdarg.h> |
3805 |
|
#include <stdio.h> |
3806 |
< |
#include <sys/types.h> |
3764 |
< |
#include <sys/stat.h> |
3806 |
> |
struct stat; |
3807 |
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3808 |
|
struct buf { int x; }; |
3809 |
|
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3888 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3889 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3890 |
|
|
3891 |
+ |
ac_ext=c |
3892 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3893 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3894 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3895 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3896 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
3897 |
+ |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
3898 |
+ |
if ${am_cv_prog_cc_c_o+:} false; then : |
3899 |
+ |
$as_echo_n "(cached) " >&6 |
3900 |
+ |
else |
3901 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3902 |
+ |
/* end confdefs.h. */ |
3903 |
+ |
|
3904 |
+ |
int |
3905 |
+ |
main () |
3906 |
+ |
{ |
3907 |
+ |
|
3908 |
+ |
; |
3909 |
+ |
return 0; |
3910 |
+ |
} |
3911 |
+ |
_ACEOF |
3912 |
+ |
# Make sure it works both with $CC and with simple cc. |
3913 |
+ |
# Following AC_PROG_CC_C_O, we do the test twice because some |
3914 |
+ |
# compilers refuse to overwrite an existing .o file with -o, |
3915 |
+ |
# though they will create one. |
3916 |
+ |
am_cv_prog_cc_c_o=yes |
3917 |
+ |
for am_i in 1 2; do |
3918 |
+ |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
3919 |
+ |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
3920 |
+ |
ac_status=$? |
3921 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3922 |
+ |
(exit $ac_status); } \ |
3923 |
+ |
&& test -f conftest2.$ac_objext; then |
3924 |
+ |
: OK |
3925 |
+ |
else |
3926 |
+ |
am_cv_prog_cc_c_o=no |
3927 |
+ |
break |
3928 |
+ |
fi |
3929 |
+ |
done |
3930 |
+ |
rm -f core conftest* |
3931 |
+ |
unset am_i |
3932 |
+ |
fi |
3933 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3934 |
+ |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
3935 |
+ |
if test "$am_cv_prog_cc_c_o" != yes; then |
3936 |
+ |
# Losing compiler, so override with the script. |
3937 |
+ |
# FIXME: It is wrong to rewrite CC. |
3938 |
+ |
# But if we don't then we get into trouble of one sort or another. |
3939 |
+ |
# A longer-term fix would be to have automake use am__CC in this case, |
3940 |
+ |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
3941 |
+ |
CC="$am_aux_dir/compile $CC" |
3942 |
+ |
fi |
3943 |
+ |
ac_ext=c |
3944 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3945 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3946 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3947 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3948 |
+ |
|
3949 |
+ |
|
3950 |
|
depcc="$CC" am_compiler_list= |
3951 |
|
|
3952 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3958 |
|
# We make a subdir and do the tests there. Otherwise we can end up |
3959 |
|
# making bogus files that we don't know about and never remove. For |
3960 |
|
# instance it was reported that on HP-UX the gcc test will end up |
3961 |
< |
# making a dummy file named `D' -- because `-MD' means `put the output |
3962 |
< |
# in D'. |
3961 |
> |
# making a dummy file named 'D' -- because '-MD' means "put the output |
3962 |
> |
# in D". |
3963 |
> |
rm -rf conftest.dir |
3964 |
|
mkdir conftest.dir |
3965 |
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
3966 |
|
# using a relative directory. |
3994 |
|
: > sub/conftest.c |
3995 |
|
for i in 1 2 3 4 5 6; do |
3996 |
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3997 |
< |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3998 |
< |
# Solaris 8's {/usr,}/bin/sh. |
3999 |
< |
touch sub/conftst$i.h |
3997 |
> |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3998 |
> |
# Solaris 10 /bin/sh. |
3999 |
> |
echo '/* dummy */' > sub/conftst$i.h |
4000 |
|
done |
4001 |
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4002 |
|
|
4003 |
< |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
4003 |
> |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
4004 |
|
# mode. It turns out that the SunPro C++ compiler does not properly |
4005 |
< |
# handle `-M -o', and we need to detect this. Also, some Intel |
4006 |
< |
# versions had trouble with output in subdirs |
4005 |
> |
# handle '-M -o', and we need to detect this. Also, some Intel |
4006 |
> |
# versions had trouble with output in subdirs. |
4007 |
|
am__obj=sub/conftest.${OBJEXT-o} |
4008 |
|
am__minus_obj="-o $am__obj" |
4009 |
|
case $depmode in |
4012 |
|
test "$am__universal" = false || continue |
4013 |
|
;; |
4014 |
|
nosideeffect) |
4015 |
< |
# after this tag, mechanisms are not by side-effect, so they'll |
4016 |
< |
# only be used when explicitly requested |
4015 |
> |
# After this tag, mechanisms are not by side-effect, so they'll |
4016 |
> |
# only be used when explicitly requested. |
4017 |
|
if test "x$enable_dependency_tracking" = xyes; then |
4018 |
|
continue |
4019 |
|
else |
4020 |
|
break |
4021 |
|
fi |
4022 |
|
;; |
4023 |
< |
msvisualcpp | msvcmsys) |
4024 |
< |
# This compiler won't grok `-c -o', but also, the minuso test has |
4023 |
> |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4024 |
> |
# This compiler won't grok '-c -o', but also, the minuso test has |
4025 |
|
# not run yet. These depmodes are late enough in the game, and |
4026 |
|
# so weak that their functioning should not be impacted. |
4027 |
|
am__obj=conftest.${OBJEXT-o} |
4221 |
|
return 0; |
4222 |
|
} |
4223 |
|
_ACEOF |
4224 |
< |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
4224 |
> |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
4225 |
|
do |
4226 |
|
CC="$ac_save_CC $ac_arg" |
4227 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
4253 |
|
|
4254 |
|
|
4255 |
|
if test "$ac_cv_prog_cc_c99" = "no"; then : |
4256 |
< |
as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5 |
4256 |
> |
as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5 |
4257 |
|
fi |
4258 |
|
for ac_prog in 'bison -y' byacc |
4259 |
|
do |
4273 |
|
IFS=$as_save_IFS |
4274 |
|
test -z "$as_dir" && as_dir=. |
4275 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4276 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4276 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4277 |
|
ac_cv_prog_YACC="$ac_prog" |
4278 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4279 |
|
break 2 |
4317 |
|
IFS=$as_save_IFS |
4318 |
|
test -z "$as_dir" && as_dir=. |
4319 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4320 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4320 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4321 |
|
ac_cv_prog_LEX="$ac_prog" |
4322 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4323 |
|
break 2 |
4349 |
|
b { REJECT; } |
4350 |
|
c { yymore (); } |
4351 |
|
d { yyless (1); } |
4352 |
< |
e { yyless (input () != 0); } |
4352 |
> |
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
4353 |
> |
yyless ((input () != 0)); } |
4354 |
|
f { unput (yytext[0]); } |
4355 |
|
. { BEGIN INITIAL; } |
4356 |
|
%% |
4479 |
|
|
4480 |
|
|
4481 |
|
|
4482 |
< |
macro_version='2.4' |
4483 |
< |
macro_revision='1.3293' |
4482 |
> |
macro_version='2.4.6' |
4483 |
> |
macro_revision='2.4.6' |
4484 |
|
|
4485 |
|
|
4486 |
|
|
4494 |
|
|
4495 |
|
|
4496 |
|
|
4497 |
< |
ltmain="$ac_aux_dir/ltmain.sh" |
4497 |
> |
ltmain=$ac_aux_dir/ltmain.sh |
4498 |
|
|
4499 |
|
# Make sure we can run config.sub. |
4500 |
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4614 |
|
$ECHO "" |
4615 |
|
} |
4616 |
|
|
4617 |
< |
case "$ECHO" in |
4617 |
> |
case $ECHO in |
4618 |
|
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4619 |
|
$as_echo "printf" >&6; } ;; |
4620 |
|
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
4658 |
|
for ac_prog in sed gsed; do |
4659 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4660 |
|
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4661 |
< |
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
4661 |
> |
as_fn_executable_p "$ac_path_SED" || continue |
4662 |
|
# Check for GNU ac_path_SED and select it if it is found. |
4663 |
|
# Check for GNU $ac_path_SED |
4664 |
|
case `"$ac_path_SED" --version 2>&1` in |
4734 |
|
for ac_prog in grep ggrep; do |
4735 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4736 |
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4737 |
< |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4737 |
> |
as_fn_executable_p "$ac_path_GREP" || continue |
4738 |
|
# Check for GNU ac_path_GREP and select it if it is found. |
4739 |
|
# Check for GNU $ac_path_GREP |
4740 |
|
case `"$ac_path_GREP" --version 2>&1` in |
4800 |
|
for ac_prog in egrep; do |
4801 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4802 |
|
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4803 |
< |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4803 |
> |
as_fn_executable_p "$ac_path_EGREP" || continue |
4804 |
|
# Check for GNU ac_path_EGREP and select it if it is found. |
4805 |
|
# Check for GNU $ac_path_EGREP |
4806 |
|
case `"$ac_path_EGREP" --version 2>&1` in |
4867 |
|
for ac_prog in fgrep; do |
4868 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4869 |
|
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
4870 |
< |
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
4870 |
> |
as_fn_executable_p "$ac_path_FGREP" || continue |
4871 |
|
# Check for GNU ac_path_FGREP and select it if it is found. |
4872 |
|
# Check for GNU $ac_path_FGREP |
4873 |
|
case `"$ac_path_FGREP" --version 2>&1` in |
4937 |
|
|
4938 |
|
# Check whether --with-gnu-ld was given. |
4939 |
|
if test "${with_gnu_ld+set}" = set; then : |
4940 |
< |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
4940 |
> |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
4941 |
|
else |
4942 |
|
with_gnu_ld=no |
4943 |
|
fi |
4944 |
|
|
4945 |
|
ac_prog=ld |
4946 |
< |
if test "$GCC" = yes; then |
4946 |
> |
if test yes = "$GCC"; then |
4947 |
|
# Check if gcc -print-prog-name=ld gives a path. |
4948 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4949 |
|
$as_echo_n "checking for ld used by $CC... " >&6; } |
4950 |
|
case $host in |
4951 |
|
*-*-mingw*) |
4952 |
< |
# gcc leaves a trailing carriage return which upsets mingw |
4952 |
> |
# gcc leaves a trailing carriage return, which upsets mingw |
4953 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4954 |
|
*) |
4955 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4963 |
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4964 |
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4965 |
|
done |
4966 |
< |
test -z "$LD" && LD="$ac_prog" |
4966 |
> |
test -z "$LD" && LD=$ac_prog |
4967 |
|
;; |
4968 |
|
"") |
4969 |
|
# If it fails, then pretend we aren't using GCC. |
4974 |
|
with_gnu_ld=unknown |
4975 |
|
;; |
4976 |
|
esac |
4977 |
< |
elif test "$with_gnu_ld" = yes; then |
4977 |
> |
elif test yes = "$with_gnu_ld"; then |
4978 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4979 |
|
$as_echo_n "checking for GNU ld... " >&6; } |
4980 |
|
else |
4985 |
|
$as_echo_n "(cached) " >&6 |
4986 |
|
else |
4987 |
|
if test -z "$LD"; then |
4988 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4988 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4989 |
|
for ac_dir in $PATH; do |
4990 |
< |
IFS="$lt_save_ifs" |
4990 |
> |
IFS=$lt_save_ifs |
4991 |
|
test -z "$ac_dir" && ac_dir=. |
4992 |
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4993 |
< |
lt_cv_path_LD="$ac_dir/$ac_prog" |
4993 |
> |
lt_cv_path_LD=$ac_dir/$ac_prog |
4994 |
|
# Check to see if the program is GNU ld. I'd rather use --version, |
4995 |
|
# but apparently some variants of GNU ld only accept -v. |
4996 |
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
4997 |
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4998 |
|
*GNU* | *'with BFD'*) |
4999 |
< |
test "$with_gnu_ld" != no && break |
4999 |
> |
test no != "$with_gnu_ld" && break |
5000 |
|
;; |
5001 |
|
*) |
5002 |
< |
test "$with_gnu_ld" != yes && break |
5002 |
> |
test yes != "$with_gnu_ld" && break |
5003 |
|
;; |
5004 |
|
esac |
5005 |
|
fi |
5006 |
|
done |
5007 |
< |
IFS="$lt_save_ifs" |
5007 |
> |
IFS=$lt_save_ifs |
5008 |
|
else |
5009 |
< |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
5009 |
> |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
5010 |
|
fi |
5011 |
|
fi |
5012 |
|
|
5013 |
< |
LD="$lt_cv_path_LD" |
5013 |
> |
LD=$lt_cv_path_LD |
5014 |
|
if test -n "$LD"; then |
5015 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5016 |
|
$as_echo "$LD" >&6; } |
5053 |
|
else |
5054 |
|
if test -n "$NM"; then |
5055 |
|
# Let the user override the test. |
5056 |
< |
lt_cv_path_NM="$NM" |
5056 |
> |
lt_cv_path_NM=$NM |
5057 |
|
else |
5058 |
< |
lt_nm_to_check="${ac_tool_prefix}nm" |
5058 |
> |
lt_nm_to_check=${ac_tool_prefix}nm |
5059 |
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
5060 |
|
lt_nm_to_check="$lt_nm_to_check nm" |
5061 |
|
fi |
5062 |
|
for lt_tmp_nm in $lt_nm_to_check; do |
5063 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5063 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
5064 |
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
5065 |
< |
IFS="$lt_save_ifs" |
5065 |
> |
IFS=$lt_save_ifs |
5066 |
|
test -z "$ac_dir" && ac_dir=. |
5067 |
< |
tmp_nm="$ac_dir/$lt_tmp_nm" |
5068 |
< |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
5067 |
> |
tmp_nm=$ac_dir/$lt_tmp_nm |
5068 |
> |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
5069 |
|
# Check to see if the nm accepts a BSD-compat flag. |
5070 |
< |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
5070 |
> |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
5071 |
|
# nm: unknown option "B" ignored |
5072 |
|
# Tru64's nm complains that /dev/null is an invalid object file |
5073 |
< |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
5074 |
< |
*/dev/null* | *'Invalid file or object type'*) |
5073 |
> |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
5074 |
> |
case $build_os in |
5075 |
> |
mingw*) lt_bad_file=conftest.nm/nofile ;; |
5076 |
> |
*) lt_bad_file=/dev/null ;; |
5077 |
> |
esac |
5078 |
> |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
5079 |
> |
*$lt_bad_file* | *'Invalid file or object type'*) |
5080 |
|
lt_cv_path_NM="$tmp_nm -B" |
5081 |
< |
break |
5081 |
> |
break 2 |
5082 |
|
;; |
5083 |
|
*) |
5084 |
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
5085 |
|
*/dev/null*) |
5086 |
|
lt_cv_path_NM="$tmp_nm -p" |
5087 |
< |
break |
5087 |
> |
break 2 |
5088 |
|
;; |
5089 |
|
*) |
5090 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
5095 |
|
esac |
5096 |
|
fi |
5097 |
|
done |
5098 |
< |
IFS="$lt_save_ifs" |
5098 |
> |
IFS=$lt_save_ifs |
5099 |
|
done |
5100 |
|
: ${lt_cv_path_NM=no} |
5101 |
|
fi |
5102 |
|
fi |
5103 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5104 |
|
$as_echo "$lt_cv_path_NM" >&6; } |
5105 |
< |
if test "$lt_cv_path_NM" != "no"; then |
5106 |
< |
NM="$lt_cv_path_NM" |
5105 |
> |
if test no != "$lt_cv_path_NM"; then |
5106 |
> |
NM=$lt_cv_path_NM |
5107 |
|
else |
5108 |
|
# Didn't find any BSD compatible name lister, look for dumpbin. |
5109 |
|
if test -n "$DUMPBIN"; then : |
5128 |
|
IFS=$as_save_IFS |
5129 |
|
test -z "$as_dir" && as_dir=. |
5130 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5131 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5131 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5132 |
|
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5133 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5134 |
|
break 2 |
5172 |
|
IFS=$as_save_IFS |
5173 |
|
test -z "$as_dir" && as_dir=. |
5174 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5175 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5175 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5176 |
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5177 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5178 |
|
break 2 |
5209 |
|
fi |
5210 |
|
fi |
5211 |
|
|
5212 |
< |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5212 |
> |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
5213 |
|
*COFF*) |
5214 |
< |
DUMPBIN="$DUMPBIN -symbols" |
5214 |
> |
DUMPBIN="$DUMPBIN -symbols -headers" |
5215 |
|
;; |
5216 |
|
*) |
5217 |
|
DUMPBIN=: |
5219 |
|
esac |
5220 |
|
fi |
5221 |
|
|
5222 |
< |
if test "$DUMPBIN" != ":"; then |
5223 |
< |
NM="$DUMPBIN" |
5222 |
> |
if test : != "$DUMPBIN"; then |
5223 |
> |
NM=$DUMPBIN |
5224 |
|
fi |
5225 |
|
fi |
5226 |
|
test -z "$NM" && NM=nm |
5271 |
|
$as_echo_n "(cached) " >&6 |
5272 |
|
else |
5273 |
|
i=0 |
5274 |
< |
teststring="ABCD" |
5274 |
> |
teststring=ABCD |
5275 |
|
|
5276 |
|
case $build_os in |
5277 |
|
msdosdjgpp*) |
5311 |
|
lt_cv_sys_max_cmd_len=8192; |
5312 |
|
;; |
5313 |
|
|
5314 |
< |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5314 |
> |
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
5315 |
|
# This has been around since 386BSD, at least. Likely further. |
5316 |
|
if test -x /sbin/sysctl; then |
5317 |
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5330 |
|
lt_cv_sys_max_cmd_len=196608 |
5331 |
|
;; |
5332 |
|
|
5333 |
+ |
os2*) |
5334 |
+ |
# The test takes a long time on OS/2. |
5335 |
+ |
lt_cv_sys_max_cmd_len=8192 |
5336 |
+ |
;; |
5337 |
+ |
|
5338 |
|
osf*) |
5339 |
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5340 |
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5361 |
|
;; |
5362 |
|
*) |
5363 |
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5364 |
< |
if test -n "$lt_cv_sys_max_cmd_len"; then |
5364 |
> |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
5365 |
> |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
5366 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5367 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5368 |
|
else |
5369 |
|
# Make teststring a little bigger before we do anything with it. |
5370 |
|
# a 1K string should be a reasonable start. |
5371 |
< |
for i in 1 2 3 4 5 6 7 8 ; do |
5371 |
> |
for i in 1 2 3 4 5 6 7 8; do |
5372 |
|
teststring=$teststring$teststring |
5373 |
|
done |
5374 |
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5375 |
|
# If test is not a shell built-in, we'll probably end up computing a |
5376 |
|
# maximum length that is only half of the actual maximum length, but |
5377 |
|
# we can't tell. |
5378 |
< |
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5378 |
> |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
5379 |
|
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
5380 |
< |
test $i != 17 # 1/2 MB should be enough |
5380 |
> |
test 17 != "$i" # 1/2 MB should be enough |
5381 |
|
do |
5382 |
|
i=`expr $i + 1` |
5383 |
|
teststring=$teststring$teststring |
5395 |
|
|
5396 |
|
fi |
5397 |
|
|
5398 |
< |
if test -n $lt_cv_sys_max_cmd_len ; then |
5398 |
> |
if test -n "$lt_cv_sys_max_cmd_len"; then |
5399 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5400 |
|
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5401 |
|
else |
5413 |
|
: ${MV="mv -f"} |
5414 |
|
: ${RM="rm -f"} |
5415 |
|
|
5302 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5303 |
– |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
5304 |
– |
# Try some XSI features |
5305 |
– |
xsi_shell=no |
5306 |
– |
( _lt_dummy="a/b/c" |
5307 |
– |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
5308 |
– |
= c,a/b,b/c, \ |
5309 |
– |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
5310 |
– |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
5311 |
– |
&& xsi_shell=yes |
5312 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5313 |
– |
$as_echo "$xsi_shell" >&6; } |
5314 |
– |
|
5315 |
– |
|
5316 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5317 |
– |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
5318 |
– |
lt_shell_append=no |
5319 |
– |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
5320 |
– |
>/dev/null 2>&1 \ |
5321 |
– |
&& lt_shell_append=yes |
5322 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5323 |
– |
$as_echo "$lt_shell_append" >&6; } |
5324 |
– |
|
5325 |
– |
|
5416 |
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5417 |
|
lt_unset=unset |
5418 |
|
else |
5535 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5536 |
|
case $host_os in |
5537 |
|
cygwin* | mingw* | pw32* | cegcc*) |
5538 |
< |
if test "$GCC" != yes; then |
5538 |
> |
if test yes != "$GCC"; then |
5539 |
|
reload_cmds=false |
5540 |
|
fi |
5541 |
|
;; |
5542 |
|
darwin*) |
5543 |
< |
if test "$GCC" = yes; then |
5544 |
< |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
5543 |
> |
if test yes = "$GCC"; then |
5544 |
> |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
5545 |
|
else |
5546 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5547 |
|
fi |
5573 |
|
IFS=$as_save_IFS |
5574 |
|
test -z "$as_dir" && as_dir=. |
5575 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5576 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5576 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5577 |
|
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5578 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5579 |
|
break 2 |
5613 |
|
IFS=$as_save_IFS |
5614 |
|
test -z "$as_dir" && as_dir=. |
5615 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5616 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5616 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5617 |
|
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5618 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5619 |
|
break 2 |
5669 |
|
# Need to set the preceding variable on all platforms that support |
5670 |
|
# interlibrary dependencies. |
5671 |
|
# 'none' -- dependencies not supported. |
5672 |
< |
# `unknown' -- same as none, but documents that we really don't know. |
5672 |
> |
# 'unknown' -- same as none, but documents that we really don't know. |
5673 |
|
# 'pass_all' -- all dependencies passed with no checks. |
5674 |
|
# 'test_compile' -- check by making test program. |
5675 |
|
# 'file_magic [[regex]]' -- check by looking for files in library path |
5676 |
< |
# which responds to the $file_magic_cmd with a given extended regex. |
5677 |
< |
# If you have `file' or equivalent on your system and you're not sure |
5678 |
< |
# whether `pass_all' will *always* work, you probably want this one. |
5676 |
> |
# that responds to the $file_magic_cmd with a given extended regex. |
5677 |
> |
# If you have 'file' or equivalent on your system and you're not sure |
5678 |
> |
# whether 'pass_all' will *always* work, you probably want this one. |
5679 |
|
|
5680 |
|
case $host_os in |
5681 |
|
aix[4-9]*) |
5702 |
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
5703 |
|
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
5704 |
|
# unless we find 'file', for example because we are cross-compiling. |
5705 |
< |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5616 |
< |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
5705 |
> |
if ( file / ) >/dev/null 2>&1; then |
5706 |
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5707 |
|
lt_cv_file_magic_cmd='func_win32_libid' |
5708 |
|
else |
5738 |
|
fi |
5739 |
|
;; |
5740 |
|
|
5652 |
– |
gnu*) |
5653 |
– |
lt_cv_deplibs_check_method=pass_all |
5654 |
– |
;; |
5655 |
– |
|
5741 |
|
haiku*) |
5742 |
|
lt_cv_deplibs_check_method=pass_all |
5743 |
|
;; |
5775 |
|
lt_cv_deplibs_check_method=pass_all |
5776 |
|
;; |
5777 |
|
|
5778 |
< |
# This must be Linux ELF. |
5779 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
5778 |
> |
# This must be glibc/ELF. |
5779 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
5780 |
|
lt_cv_deplibs_check_method=pass_all |
5781 |
|
;; |
5782 |
|
|
5798 |
|
lt_cv_deplibs_check_method=pass_all |
5799 |
|
;; |
5800 |
|
|
5801 |
< |
openbsd*) |
5802 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
5801 |
> |
openbsd* | bitrig*) |
5802 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
5803 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5804 |
|
else |
5805 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5852 |
|
tpf*) |
5853 |
|
lt_cv_deplibs_check_method=pass_all |
5854 |
|
;; |
5855 |
+ |
os2*) |
5856 |
+ |
lt_cv_deplibs_check_method=pass_all |
5857 |
+ |
;; |
5858 |
|
esac |
5859 |
|
|
5860 |
|
fi |
5917 |
|
IFS=$as_save_IFS |
5918 |
|
test -z "$as_dir" && as_dir=. |
5919 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5920 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5920 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5921 |
|
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
5922 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5923 |
|
break 2 |
5957 |
|
IFS=$as_save_IFS |
5958 |
|
test -z "$as_dir" && as_dir=. |
5959 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5960 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5960 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5961 |
|
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
5962 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5963 |
|
break 2 |
6012 |
|
|
6013 |
|
case $host_os in |
6014 |
|
cygwin* | mingw* | pw32* | cegcc*) |
6015 |
< |
# two different shell functions defined in ltmain.sh |
6016 |
< |
# decide which to use based on capabilities of $DLLTOOL |
6015 |
> |
# two different shell functions defined in ltmain.sh; |
6016 |
> |
# decide which one to use based on capabilities of $DLLTOOL |
6017 |
|
case `$DLLTOOL --help 2>&1` in |
6018 |
|
*--identify-strict*) |
6019 |
|
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
6025 |
|
;; |
6026 |
|
*) |
6027 |
|
# fallback: assume linklib IS sharedlib |
6028 |
< |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
6028 |
> |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
6029 |
|
;; |
6030 |
|
esac |
6031 |
|
|
6060 |
|
IFS=$as_save_IFS |
6061 |
|
test -z "$as_dir" && as_dir=. |
6062 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6063 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6063 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6064 |
|
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
6065 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6066 |
|
break 2 |
6104 |
|
IFS=$as_save_IFS |
6105 |
|
test -z "$as_dir" && as_dir=. |
6106 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6107 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6107 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6108 |
|
ac_cv_prog_ac_ct_AR="$ac_prog" |
6109 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6110 |
|
break 2 |
6179 |
|
ac_status=$? |
6180 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6181 |
|
test $ac_status = 0; } |
6182 |
< |
if test "$ac_status" -eq 0; then |
6182 |
> |
if test 0 -eq "$ac_status"; then |
6183 |
|
# Ensure the archiver fails upon bogus file names. |
6184 |
|
rm -f conftest.$ac_objext libconftest.a |
6185 |
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
6187 |
|
ac_status=$? |
6188 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6189 |
|
test $ac_status = 0; } |
6190 |
< |
if test "$ac_status" -ne 0; then |
6190 |
> |
if test 0 -ne "$ac_status"; then |
6191 |
|
lt_cv_ar_at_file=@ |
6192 |
|
fi |
6193 |
|
fi |
6200 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
6201 |
|
$as_echo "$lt_cv_ar_at_file" >&6; } |
6202 |
|
|
6203 |
< |
if test "x$lt_cv_ar_at_file" = xno; then |
6203 |
> |
if test no = "$lt_cv_ar_at_file"; then |
6204 |
|
archiver_list_spec= |
6205 |
|
else |
6206 |
|
archiver_list_spec=$lt_cv_ar_at_file |
6229 |
|
IFS=$as_save_IFS |
6230 |
|
test -z "$as_dir" && as_dir=. |
6231 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6232 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6232 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6233 |
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6234 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6235 |
|
break 2 |
6269 |
|
IFS=$as_save_IFS |
6270 |
|
test -z "$as_dir" && as_dir=. |
6271 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6272 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6272 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6273 |
|
ac_cv_prog_ac_ct_STRIP="strip" |
6274 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6275 |
|
break 2 |
6328 |
|
IFS=$as_save_IFS |
6329 |
|
test -z "$as_dir" && as_dir=. |
6330 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6331 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6331 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6332 |
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6333 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6334 |
|
break 2 |
6368 |
|
IFS=$as_save_IFS |
6369 |
|
test -z "$as_dir" && as_dir=. |
6370 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6371 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6371 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6372 |
|
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6373 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6374 |
|
break 2 |
6417 |
|
|
6418 |
|
if test -n "$RANLIB"; then |
6419 |
|
case $host_os in |
6420 |
< |
openbsd*) |
6421 |
< |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6420 |
> |
bitrig* | openbsd*) |
6421 |
> |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
6422 |
|
;; |
6423 |
|
*) |
6424 |
< |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6424 |
> |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
6425 |
|
;; |
6426 |
|
esac |
6427 |
< |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6427 |
> |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
6428 |
|
fi |
6429 |
|
|
6430 |
|
case $host_os in |
6507 |
|
symcode='[ABCDGISTW]' |
6508 |
|
;; |
6509 |
|
hpux*) |
6510 |
< |
if test "$host_cpu" = ia64; then |
6510 |
> |
if test ia64 = "$host_cpu"; then |
6511 |
|
symcode='[ABCDEGRST]' |
6512 |
|
fi |
6513 |
|
;; |
6540 |
|
symcode='[ABCDGIRSTW]' ;; |
6541 |
|
esac |
6542 |
|
|
6543 |
+ |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6544 |
+ |
# Gets list of data symbols to import. |
6545 |
+ |
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
6546 |
+ |
# Adjust the below global symbol transforms to fixup imported variables. |
6547 |
+ |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
6548 |
+ |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
6549 |
+ |
lt_c_name_lib_hook="\ |
6550 |
+ |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
6551 |
+ |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
6552 |
+ |
else |
6553 |
+ |
# Disable hooks by default. |
6554 |
+ |
lt_cv_sys_global_symbol_to_import= |
6555 |
+ |
lt_cdecl_hook= |
6556 |
+ |
lt_c_name_hook= |
6557 |
+ |
lt_c_name_lib_hook= |
6558 |
+ |
fi |
6559 |
+ |
|
6560 |
|
# Transform an extracted symbol line into a proper C declaration. |
6561 |
|
# Some systems (esp. on ia64) link data and code symbols differently, |
6562 |
|
# so use this general approach. |
6563 |
< |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6563 |
> |
lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6564 |
> |
$lt_cdecl_hook\ |
6565 |
> |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
6566 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
6567 |
|
|
6568 |
|
# Transform an extracted symbol line into symbol name and symbol address |
6569 |
< |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6570 |
< |
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'" |
6569 |
> |
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6570 |
> |
$lt_c_name_hook\ |
6571 |
> |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6572 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
6573 |
> |
|
6574 |
> |
# Transform an extracted symbol line into symbol name with lib prefix and |
6575 |
> |
# symbol address. |
6576 |
> |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
6577 |
> |
$lt_c_name_lib_hook\ |
6578 |
> |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6579 |
> |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
6580 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
6581 |
|
|
6582 |
|
# Handle CRLF in mingw tool chain |
6583 |
|
opt_cr= |
6595 |
|
|
6596 |
|
# Write the raw and C identifiers. |
6597 |
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6598 |
< |
# Fake it for dumpbin and say T for any non-static function |
6599 |
< |
# and D for any global variable. |
6598 |
> |
# Fake it for dumpbin and say T for any non-static function, |
6599 |
> |
# D for any global variable and I for any imported variable. |
6600 |
|
# Also find C++ and __fastcall symbols from MSVC++, |
6601 |
|
# which start with @ or ?. |
6602 |
|
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
6603 |
|
" {last_section=section; section=\$ 3};"\ |
6604 |
+ |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
6605 |
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6606 |
+ |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6607 |
+ |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
6608 |
+ |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
6609 |
|
" \$ 0!~/External *\|/{next};"\ |
6610 |
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
6611 |
|
" {if(hide[section]) next};"\ |
6612 |
< |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
6613 |
< |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
6614 |
< |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
6615 |
< |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
6612 |
> |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6613 |
> |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
6614 |
> |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
6615 |
> |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
6616 |
|
" ' prfx=^$ac_symprfx" |
6617 |
|
else |
6618 |
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6660 |
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6661 |
|
cat <<_LT_EOF > conftest.$ac_ext |
6662 |
|
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6663 |
< |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
6664 |
< |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
6663 |
> |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6664 |
> |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
6665 |
|
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6666 |
|
# define LT_DLSYM_CONST |
6667 |
< |
#elif defined(__osf__) |
6667 |
> |
#elif defined __osf__ |
6668 |
|
/* This system does not cope well with relocations in const data. */ |
6669 |
|
# define LT_DLSYM_CONST |
6670 |
|
#else |
6690 |
|
{ |
6691 |
|
{ "@PROGRAM@", (void *) 0 }, |
6692 |
|
_LT_EOF |
6693 |
< |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6693 |
> |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6694 |
|
cat <<\_LT_EOF >> conftest.$ac_ext |
6695 |
|
{0, (void *) 0} |
6696 |
|
}; |
6710 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
6711 |
|
lt_globsym_save_LIBS=$LIBS |
6712 |
|
lt_globsym_save_CFLAGS=$CFLAGS |
6713 |
< |
LIBS="conftstm.$ac_objext" |
6713 |
> |
LIBS=conftstm.$ac_objext |
6714 |
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6715 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
6716 |
|
(eval $ac_link) 2>&5 |
6717 |
|
ac_status=$? |
6718 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6719 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
6719 |
> |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
6720 |
|
pipe_works=yes |
6721 |
|
fi |
6722 |
|
LIBS=$lt_globsym_save_LIBS |
6737 |
|
rm -rf conftest* conftst* |
6738 |
|
|
6739 |
|
# Do not use the global_symbol_pipe unless it works. |
6740 |
< |
if test "$pipe_works" = yes; then |
6740 |
> |
if test yes = "$pipe_works"; then |
6741 |
|
break |
6742 |
|
else |
6743 |
|
lt_cv_sys_global_symbol_pipe= |
6790 |
|
|
6791 |
|
|
6792 |
|
|
6793 |
+ |
|
6794 |
+ |
|
6795 |
+ |
|
6796 |
+ |
|
6797 |
+ |
|
6798 |
+ |
|
6799 |
+ |
|
6800 |
+ |
|
6801 |
+ |
|
6802 |
+ |
|
6803 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6804 |
|
$as_echo_n "checking for sysroot... " >&6; } |
6805 |
|
|
6812 |
|
|
6813 |
|
|
6814 |
|
lt_sysroot= |
6815 |
< |
case ${with_sysroot} in #( |
6815 |
> |
case $with_sysroot in #( |
6816 |
|
yes) |
6817 |
< |
if test "$GCC" = yes; then |
6817 |
> |
if test yes = "$GCC"; then |
6818 |
|
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6819 |
|
fi |
6820 |
|
;; #( |
6824 |
|
no|'') |
6825 |
|
;; #( |
6826 |
|
*) |
6827 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
6828 |
< |
$as_echo "${with_sysroot}" >&6; } |
6827 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6828 |
> |
$as_echo "$with_sysroot" >&6; } |
6829 |
|
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6830 |
|
;; |
6831 |
|
esac |
6837 |
|
|
6838 |
|
|
6839 |
|
|
6840 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6841 |
+ |
$as_echo_n "checking for a working dd... " >&6; } |
6842 |
+ |
if ${ac_cv_path_lt_DD+:} false; then : |
6843 |
+ |
$as_echo_n "(cached) " >&6 |
6844 |
+ |
else |
6845 |
+ |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6846 |
+ |
cat conftest.i conftest.i >conftest2.i |
6847 |
+ |
: ${lt_DD:=$DD} |
6848 |
+ |
if test -z "$lt_DD"; then |
6849 |
+ |
ac_path_lt_DD_found=false |
6850 |
+ |
# Loop through the user's path and test for each of PROGNAME-LIST |
6851 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6852 |
+ |
for as_dir in $PATH |
6853 |
+ |
do |
6854 |
+ |
IFS=$as_save_IFS |
6855 |
+ |
test -z "$as_dir" && as_dir=. |
6856 |
+ |
for ac_prog in dd; do |
6857 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
6858 |
+ |
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
6859 |
+ |
as_fn_executable_p "$ac_path_lt_DD" || continue |
6860 |
+ |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6861 |
+ |
cmp -s conftest.i conftest.out \ |
6862 |
+ |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
6863 |
+ |
fi |
6864 |
+ |
$ac_path_lt_DD_found && break 3 |
6865 |
+ |
done |
6866 |
+ |
done |
6867 |
+ |
done |
6868 |
+ |
IFS=$as_save_IFS |
6869 |
+ |
if test -z "$ac_cv_path_lt_DD"; then |
6870 |
+ |
: |
6871 |
+ |
fi |
6872 |
+ |
else |
6873 |
+ |
ac_cv_path_lt_DD=$lt_DD |
6874 |
+ |
fi |
6875 |
+ |
|
6876 |
+ |
rm -f conftest.i conftest2.i conftest.out |
6877 |
+ |
fi |
6878 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
6879 |
+ |
$as_echo "$ac_cv_path_lt_DD" >&6; } |
6880 |
+ |
|
6881 |
+ |
|
6882 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
6883 |
+ |
$as_echo_n "checking how to truncate binary pipes... " >&6; } |
6884 |
+ |
if ${lt_cv_truncate_bin+:} false; then : |
6885 |
+ |
$as_echo_n "(cached) " >&6 |
6886 |
+ |
else |
6887 |
+ |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6888 |
+ |
cat conftest.i conftest.i >conftest2.i |
6889 |
+ |
lt_cv_truncate_bin= |
6890 |
+ |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6891 |
+ |
cmp -s conftest.i conftest.out \ |
6892 |
+ |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
6893 |
+ |
fi |
6894 |
+ |
rm -f conftest.i conftest2.i conftest.out |
6895 |
+ |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
6896 |
+ |
fi |
6897 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
6898 |
+ |
$as_echo "$lt_cv_truncate_bin" >&6; } |
6899 |
+ |
|
6900 |
+ |
|
6901 |
+ |
|
6902 |
+ |
|
6903 |
+ |
|
6904 |
+ |
|
6905 |
+ |
|
6906 |
+ |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
6907 |
+ |
func_cc_basename () |
6908 |
+ |
{ |
6909 |
+ |
for cc_temp in $*""; do |
6910 |
+ |
case $cc_temp in |
6911 |
+ |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6912 |
+ |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6913 |
+ |
\-*) ;; |
6914 |
+ |
*) break;; |
6915 |
+ |
esac |
6916 |
+ |
done |
6917 |
+ |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
6918 |
+ |
} |
6919 |
+ |
|
6920 |
|
# Check whether --enable-libtool-lock was given. |
6921 |
|
if test "${enable_libtool_lock+set}" = set; then : |
6922 |
|
enableval=$enable_libtool_lock; |
6923 |
|
fi |
6924 |
|
|
6925 |
< |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6925 |
> |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
6926 |
|
|
6927 |
|
# Some flags need to be propagated to the compiler or linker for good |
6928 |
|
# libtool support. |
6929 |
|
case $host in |
6930 |
|
ia64-*-hpux*) |
6931 |
< |
# Find out which ABI we are using. |
6931 |
> |
# Find out what ABI is being produced by ac_compile, and set mode |
6932 |
> |
# options accordingly. |
6933 |
|
echo 'int i;' > conftest.$ac_ext |
6934 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6935 |
|
(eval $ac_compile) 2>&5 |
6938 |
|
test $ac_status = 0; }; then |
6939 |
|
case `/usr/bin/file conftest.$ac_objext` in |
6940 |
|
*ELF-32*) |
6941 |
< |
HPUX_IA64_MODE="32" |
6941 |
> |
HPUX_IA64_MODE=32 |
6942 |
|
;; |
6943 |
|
*ELF-64*) |
6944 |
< |
HPUX_IA64_MODE="64" |
6944 |
> |
HPUX_IA64_MODE=64 |
6945 |
|
;; |
6946 |
|
esac |
6947 |
|
fi |
6948 |
|
rm -rf conftest* |
6949 |
|
;; |
6950 |
|
*-*-irix6*) |
6951 |
< |
# Find out which ABI we are using. |
6951 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
6952 |
> |
# options accordingly. |
6953 |
|
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6954 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6955 |
|
(eval $ac_compile) 2>&5 |
6956 |
|
ac_status=$? |
6957 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6958 |
|
test $ac_status = 0; }; then |
6959 |
< |
if test "$lt_cv_prog_gnu_ld" = yes; then |
6959 |
> |
if test yes = "$lt_cv_prog_gnu_ld"; then |
6960 |
|
case `/usr/bin/file conftest.$ac_objext` in |
6961 |
|
*32-bit*) |
6962 |
|
LD="${LD-ld} -melf32bsmip" |
6985 |
|
rm -rf conftest* |
6986 |
|
;; |
6987 |
|
|
6988 |
< |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6988 |
> |
mips64*-*linux*) |
6989 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
6990 |
> |
# options accordingly. |
6991 |
> |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6992 |
> |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6993 |
> |
(eval $ac_compile) 2>&5 |
6994 |
> |
ac_status=$? |
6995 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6996 |
> |
test $ac_status = 0; }; then |
6997 |
> |
emul=elf |
6998 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
6999 |
> |
*32-bit*) |
7000 |
> |
emul="${emul}32" |
7001 |
> |
;; |
7002 |
> |
*64-bit*) |
7003 |
> |
emul="${emul}64" |
7004 |
> |
;; |
7005 |
> |
esac |
7006 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
7007 |
> |
*MSB*) |
7008 |
> |
emul="${emul}btsmip" |
7009 |
> |
;; |
7010 |
> |
*LSB*) |
7011 |
> |
emul="${emul}ltsmip" |
7012 |
> |
;; |
7013 |
> |
esac |
7014 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
7015 |
> |
*N32*) |
7016 |
> |
emul="${emul}n32" |
7017 |
> |
;; |
7018 |
> |
esac |
7019 |
> |
LD="${LD-ld} -m $emul" |
7020 |
> |
fi |
7021 |
> |
rm -rf conftest* |
7022 |
> |
;; |
7023 |
> |
|
7024 |
> |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7025 |
|
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7026 |
< |
# Find out which ABI we are using. |
7026 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
7027 |
> |
# options accordingly. Note that the listed cases only cover the |
7028 |
> |
# situations where additional linker options are needed (such as when |
7029 |
> |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
7030 |
> |
# vice versa); the common cases where no linker options are needed do |
7031 |
> |
# not appear in the list. |
7032 |
|
echo 'int i;' > conftest.$ac_ext |
7033 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7034 |
|
(eval $ac_compile) 2>&5 |
7042 |
|
LD="${LD-ld} -m elf_i386_fbsd" |
7043 |
|
;; |
7044 |
|
x86_64-*linux*) |
7045 |
< |
LD="${LD-ld} -m elf_i386" |
7045 |
> |
case `/usr/bin/file conftest.o` in |
7046 |
> |
*x86-64*) |
7047 |
> |
LD="${LD-ld} -m elf32_x86_64" |
7048 |
> |
;; |
7049 |
> |
*) |
7050 |
> |
LD="${LD-ld} -m elf_i386" |
7051 |
> |
;; |
7052 |
> |
esac |
7053 |
> |
;; |
7054 |
> |
powerpc64le-*linux*) |
7055 |
> |
LD="${LD-ld} -m elf32lppclinux" |
7056 |
|
;; |
7057 |
< |
ppc64-*linux*|powerpc64-*linux*) |
7057 |
> |
powerpc64-*linux*) |
7058 |
|
LD="${LD-ld} -m elf32ppclinux" |
7059 |
|
;; |
7060 |
|
s390x-*linux*) |
7073 |
|
x86_64-*linux*) |
7074 |
|
LD="${LD-ld} -m elf_x86_64" |
7075 |
|
;; |
7076 |
< |
ppc*-*linux*|powerpc*-*linux*) |
7076 |
> |
powerpcle-*linux*) |
7077 |
> |
LD="${LD-ld} -m elf64lppc" |
7078 |
> |
;; |
7079 |
> |
powerpc-*linux*) |
7080 |
|
LD="${LD-ld} -m elf64ppc" |
7081 |
|
;; |
7082 |
|
s390*-*linux*|s390*-*tpf*) |
7094 |
|
|
7095 |
|
*-*-sco3.2v5*) |
7096 |
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
7097 |
< |
SAVE_CFLAGS="$CFLAGS" |
7097 |
> |
SAVE_CFLAGS=$CFLAGS |
7098 |
|
CFLAGS="$CFLAGS -belf" |
7099 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7100 |
|
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
7134 |
|
fi |
7135 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7136 |
|
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
7137 |
< |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7137 |
> |
if test yes != "$lt_cv_cc_needs_belf"; then |
7138 |
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
7139 |
< |
CFLAGS="$SAVE_CFLAGS" |
7139 |
> |
CFLAGS=$SAVE_CFLAGS |
7140 |
|
fi |
7141 |
|
;; |
7142 |
< |
sparc*-*solaris*) |
7143 |
< |
# Find out which ABI we are using. |
7142 |
> |
*-*solaris*) |
7143 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
7144 |
> |
# options accordingly. |
7145 |
|
echo 'int i;' > conftest.$ac_ext |
7146 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7147 |
|
(eval $ac_compile) 2>&5 |
7151 |
|
case `/usr/bin/file conftest.o` in |
7152 |
|
*64-bit*) |
7153 |
|
case $lt_cv_prog_gnu_ld in |
7154 |
< |
yes*) LD="${LD-ld} -m elf64_sparc" ;; |
7154 |
> |
yes*) |
7155 |
> |
case $host in |
7156 |
> |
i?86-*-solaris*|x86_64-*-solaris*) |
7157 |
> |
LD="${LD-ld} -m elf_x86_64" |
7158 |
> |
;; |
7159 |
> |
sparc*-*-solaris*) |
7160 |
> |
LD="${LD-ld} -m elf64_sparc" |
7161 |
> |
;; |
7162 |
> |
esac |
7163 |
> |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
7164 |
> |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
7165 |
> |
LD=${LD-ld}_sol2 |
7166 |
> |
fi |
7167 |
> |
;; |
7168 |
|
*) |
7169 |
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
7170 |
|
LD="${LD-ld} -64" |
7178 |
|
;; |
7179 |
|
esac |
7180 |
|
|
7181 |
< |
need_locks="$enable_libtool_lock" |
7181 |
> |
need_locks=$enable_libtool_lock |
7182 |
|
|
7183 |
|
if test -n "$ac_tool_prefix"; then |
7184 |
|
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
7197 |
|
IFS=$as_save_IFS |
7198 |
|
test -z "$as_dir" && as_dir=. |
7199 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7200 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7200 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7201 |
|
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
7202 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7203 |
|
break 2 |
7237 |
|
IFS=$as_save_IFS |
7238 |
|
test -z "$as_dir" && as_dir=. |
7239 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7240 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7240 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7241 |
|
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
7242 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7243 |
|
break 2 |
7289 |
|
fi |
7290 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
7291 |
|
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
7292 |
< |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
7292 |
> |
if test yes != "$lt_cv_path_mainfest_tool"; then |
7293 |
|
MANIFEST_TOOL=: |
7294 |
|
fi |
7295 |
|
|
7317 |
|
IFS=$as_save_IFS |
7318 |
|
test -z "$as_dir" && as_dir=. |
7319 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7320 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7320 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7321 |
|
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7322 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7323 |
|
break 2 |
7357 |
|
IFS=$as_save_IFS |
7358 |
|
test -z "$as_dir" && as_dir=. |
7359 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7360 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7360 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7361 |
|
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
7362 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7363 |
|
break 2 |
7409 |
|
IFS=$as_save_IFS |
7410 |
|
test -z "$as_dir" && as_dir=. |
7411 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7412 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7412 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7413 |
|
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7414 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7415 |
|
break 2 |
7449 |
|
IFS=$as_save_IFS |
7450 |
|
test -z "$as_dir" && as_dir=. |
7451 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7452 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7452 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7453 |
|
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7454 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7455 |
|
break 2 |
7501 |
|
IFS=$as_save_IFS |
7502 |
|
test -z "$as_dir" && as_dir=. |
7503 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7504 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7504 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7505 |
|
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7506 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7507 |
|
break 2 |
7541 |
|
IFS=$as_save_IFS |
7542 |
|
test -z "$as_dir" && as_dir=. |
7543 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7544 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7544 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7545 |
|
ac_cv_prog_ac_ct_LIPO="lipo" |
7546 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7547 |
|
break 2 |
7593 |
|
IFS=$as_save_IFS |
7594 |
|
test -z "$as_dir" && as_dir=. |
7595 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7596 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7596 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7597 |
|
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7598 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7599 |
|
break 2 |
7633 |
|
IFS=$as_save_IFS |
7634 |
|
test -z "$as_dir" && as_dir=. |
7635 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7636 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7636 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7637 |
|
ac_cv_prog_ac_ct_OTOOL="otool" |
7638 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7639 |
|
break 2 |
7685 |
|
IFS=$as_save_IFS |
7686 |
|
test -z "$as_dir" && as_dir=. |
7687 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7688 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7688 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7689 |
|
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7690 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7691 |
|
break 2 |
7725 |
|
IFS=$as_save_IFS |
7726 |
|
test -z "$as_dir" && as_dir=. |
7727 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
7728 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7728 |
> |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7729 |
|
ac_cv_prog_ac_ct_OTOOL64="otool64" |
7730 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7731 |
|
break 2 |
7792 |
|
$as_echo_n "(cached) " >&6 |
7793 |
|
else |
7794 |
|
lt_cv_apple_cc_single_mod=no |
7795 |
< |
if test -z "${LT_MULTI_MODULE}"; then |
7795 |
> |
if test -z "$LT_MULTI_MODULE"; then |
7796 |
|
# By default we will add the -single_module flag. You can override |
7797 |
|
# by either setting the environment variable LT_MULTI_MODULE |
7798 |
|
# non-empty at configure time, or by adding -multi_module to the |
7804 |
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7805 |
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
7806 |
|
_lt_result=$? |
7807 |
< |
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
7807 |
> |
# If there is a non-empty error log, and "single_module" |
7808 |
> |
# appears in it, assume the flag caused a linker warning |
7809 |
> |
if test -s conftest.err && $GREP single_module conftest.err; then |
7810 |
> |
cat conftest.err >&5 |
7811 |
> |
# Otherwise, if the output was created with a 0 exit code from |
7812 |
> |
# the compiler, it worked. |
7813 |
> |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
7814 |
|
lt_cv_apple_cc_single_mod=yes |
7815 |
|
else |
7816 |
|
cat conftest.err >&5 |
7821 |
|
fi |
7822 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7823 |
|
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
7824 |
+ |
|
7825 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
7826 |
|
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
7827 |
|
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7849 |
|
fi |
7850 |
|
rm -f core conftest.err conftest.$ac_objext \ |
7851 |
|
conftest$ac_exeext conftest.$ac_ext |
7852 |
< |
LDFLAGS="$save_LDFLAGS" |
7852 |
> |
LDFLAGS=$save_LDFLAGS |
7853 |
|
|
7854 |
|
fi |
7855 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7856 |
|
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7857 |
+ |
|
7858 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7859 |
|
$as_echo_n "checking for -force_load linker flag... " >&6; } |
7860 |
|
if ${lt_cv_ld_force_load+:} false; then : |
7876 |
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
7877 |
|
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
7878 |
|
_lt_result=$? |
7879 |
< |
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
7879 |
> |
if test -s conftest.err && $GREP force_load conftest.err; then |
7880 |
> |
cat conftest.err >&5 |
7881 |
> |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
7882 |
|
lt_cv_ld_force_load=yes |
7883 |
|
else |
7884 |
|
cat conftest.err >&5 |
7891 |
|
$as_echo "$lt_cv_ld_force_load" >&6; } |
7892 |
|
case $host_os in |
7893 |
|
rhapsody* | darwin1.[012]) |
7894 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
7894 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
7895 |
|
darwin1.*) |
7896 |
< |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7896 |
> |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7897 |
|
darwin*) # darwin 5.x on |
7898 |
|
# if running on 10.5 or later, the deployment target defaults |
7899 |
|
# to the OS version, if on x86, and 10.4, the deployment |
7900 |
|
# target defaults to 10.4. Don't you love it? |
7901 |
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7902 |
|
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7903 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7904 |
< |
10.[012]*) |
7905 |
< |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7903 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7904 |
> |
10.[012][,.]*) |
7905 |
> |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7906 |
|
10.*) |
7907 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7907 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7908 |
|
esac |
7909 |
|
;; |
7910 |
|
esac |
7911 |
< |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
7911 |
> |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
7912 |
|
_lt_dar_single_mod='$single_module' |
7913 |
|
fi |
7914 |
< |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
7915 |
< |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
7914 |
> |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7915 |
> |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
7916 |
|
else |
7917 |
< |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7917 |
> |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
7918 |
|
fi |
7919 |
< |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
7919 |
> |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
7920 |
|
_lt_dsymutil='~$DSYMUTIL $lib || :' |
7921 |
|
else |
7922 |
|
_lt_dsymutil= |
7924 |
|
;; |
7925 |
|
esac |
7926 |
|
|
7927 |
+ |
# func_munge_path_list VARIABLE PATH |
7928 |
+ |
# ----------------------------------- |
7929 |
+ |
# VARIABLE is name of variable containing _space_ separated list of |
7930 |
+ |
# directories to be munged by the contents of PATH, which is string |
7931 |
+ |
# having a format: |
7932 |
+ |
# "DIR[:DIR]:" |
7933 |
+ |
# string "DIR[ DIR]" will be prepended to VARIABLE |
7934 |
+ |
# ":DIR[:DIR]" |
7935 |
+ |
# string "DIR[ DIR]" will be appended to VARIABLE |
7936 |
+ |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
7937 |
+ |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
7938 |
+ |
# "DIRA[ DIRA]" will be appended to VARIABLE |
7939 |
+ |
# "DIR[:DIR]" |
7940 |
+ |
# VARIABLE will be replaced by "DIR[ DIR]" |
7941 |
+ |
func_munge_path_list () |
7942 |
+ |
{ |
7943 |
+ |
case x$2 in |
7944 |
+ |
x) |
7945 |
+ |
;; |
7946 |
+ |
*:) |
7947 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
7948 |
+ |
;; |
7949 |
+ |
x:*) |
7950 |
+ |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
7951 |
+ |
;; |
7952 |
+ |
*::*) |
7953 |
+ |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
7954 |
+ |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
7955 |
+ |
;; |
7956 |
+ |
*) |
7957 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
7958 |
+ |
;; |
7959 |
+ |
esac |
7960 |
+ |
} |
7961 |
+ |
|
7962 |
|
ac_ext=c |
7963 |
|
ac_cpp='$CPP $CPPFLAGS' |
7964 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8254 |
|
*) |
8255 |
|
enable_static=no |
8256 |
|
# Look at the argument we got. We use all the common list separators. |
8257 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
8257 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8258 |
|
for pkg in $enableval; do |
8259 |
< |
IFS="$lt_save_ifs" |
8259 |
> |
IFS=$lt_save_ifs |
8260 |
|
if test "X$pkg" = "X$p"; then |
8261 |
|
enable_static=yes |
8262 |
|
fi |
8263 |
|
done |
8264 |
< |
IFS="$lt_save_ifs" |
8264 |
> |
IFS=$lt_save_ifs |
8265 |
|
;; |
8266 |
|
esac |
8267 |
|
else |
8290 |
|
*) |
8291 |
|
enable_shared=no |
8292 |
|
# Look at the argument we got. We use all the common list separators. |
8293 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
8293 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8294 |
|
for pkg in $enableval; do |
8295 |
< |
IFS="$lt_save_ifs" |
8295 |
> |
IFS=$lt_save_ifs |
8296 |
|
if test "X$pkg" = "X$p"; then |
8297 |
|
enable_shared=yes |
8298 |
|
fi |
8299 |
|
done |
8300 |
< |
IFS="$lt_save_ifs" |
8300 |
> |
IFS=$lt_save_ifs |
8301 |
|
;; |
8302 |
|
esac |
8303 |
|
else |
8316 |
|
|
8317 |
|
# Check whether --with-pic was given. |
8318 |
|
if test "${with_pic+set}" = set; then : |
8319 |
< |
withval=$with_pic; pic_mode="$withval" |
8319 |
> |
withval=$with_pic; lt_p=${PACKAGE-default} |
8320 |
> |
case $withval in |
8321 |
> |
yes|no) pic_mode=$withval ;; |
8322 |
> |
*) |
8323 |
> |
pic_mode=default |
8324 |
> |
# Look at the argument we got. We use all the common list separators. |
8325 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8326 |
> |
for lt_pkg in $withval; do |
8327 |
> |
IFS=$lt_save_ifs |
8328 |
> |
if test "X$lt_pkg" = "X$lt_p"; then |
8329 |
> |
pic_mode=yes |
8330 |
> |
fi |
8331 |
> |
done |
8332 |
> |
IFS=$lt_save_ifs |
8333 |
> |
;; |
8334 |
> |
esac |
8335 |
|
else |
8336 |
|
pic_mode=default |
8337 |
|
fi |
8338 |
|
|
8339 |
|
|
7998 |
– |
test -z "$pic_mode" && pic_mode=default |
7999 |
– |
|
8340 |
|
|
8341 |
|
|
8342 |
|
|
8352 |
|
*) |
8353 |
|
enable_fast_install=no |
8354 |
|
# Look at the argument we got. We use all the common list separators. |
8355 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
8355 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8356 |
|
for pkg in $enableval; do |
8357 |
< |
IFS="$lt_save_ifs" |
8357 |
> |
IFS=$lt_save_ifs |
8358 |
|
if test "X$pkg" = "X$p"; then |
8359 |
|
enable_fast_install=yes |
8360 |
|
fi |
8361 |
|
done |
8362 |
< |
IFS="$lt_save_ifs" |
8362 |
> |
IFS=$lt_save_ifs |
8363 |
|
;; |
8364 |
|
esac |
8365 |
|
else |
8373 |
|
|
8374 |
|
|
8375 |
|
|
8376 |
+ |
shared_archive_member_spec= |
8377 |
+ |
case $host,$enable_shared in |
8378 |
+ |
power*-*-aix[5-9]*,yes) |
8379 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
8380 |
+ |
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
8381 |
+ |
|
8382 |
+ |
# Check whether --with-aix-soname was given. |
8383 |
+ |
if test "${with_aix_soname+set}" = set; then : |
8384 |
+ |
withval=$with_aix_soname; case $withval in |
8385 |
+ |
aix|svr4|both) |
8386 |
+ |
;; |
8387 |
+ |
*) |
8388 |
+ |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
8389 |
+ |
;; |
8390 |
+ |
esac |
8391 |
+ |
lt_cv_with_aix_soname=$with_aix_soname |
8392 |
+ |
else |
8393 |
+ |
if ${lt_cv_with_aix_soname+:} false; then : |
8394 |
+ |
$as_echo_n "(cached) " >&6 |
8395 |
+ |
else |
8396 |
+ |
lt_cv_with_aix_soname=aix |
8397 |
+ |
fi |
8398 |
+ |
|
8399 |
+ |
with_aix_soname=$lt_cv_with_aix_soname |
8400 |
+ |
fi |
8401 |
+ |
|
8402 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
8403 |
+ |
$as_echo "$with_aix_soname" >&6; } |
8404 |
+ |
if test aix != "$with_aix_soname"; then |
8405 |
+ |
# For the AIX way of multilib, we name the shared archive member |
8406 |
+ |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
8407 |
+ |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
8408 |
+ |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
8409 |
+ |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
8410 |
+ |
if test 64 = "${OBJECT_MODE-32}"; then |
8411 |
+ |
shared_archive_member_spec=shr_64 |
8412 |
+ |
else |
8413 |
+ |
shared_archive_member_spec=shr |
8414 |
+ |
fi |
8415 |
+ |
fi |
8416 |
+ |
;; |
8417 |
+ |
*) |
8418 |
+ |
with_aix_soname=aix |
8419 |
+ |
;; |
8420 |
+ |
esac |
8421 |
+ |
|
8422 |
+ |
|
8423 |
+ |
|
8424 |
+ |
|
8425 |
+ |
|
8426 |
+ |
|
8427 |
+ |
|
8428 |
|
|
8429 |
|
|
8430 |
|
|
8431 |
|
# This can be used to rebuild libtool when needed |
8432 |
< |
LIBTOOL_DEPS="$ltmain" |
8432 |
> |
LIBTOOL_DEPS=$ltmain |
8433 |
|
|
8434 |
|
# Always use our own libtool. |
8435 |
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
8459 |
|
|
8460 |
|
|
8461 |
|
|
8462 |
+ |
|
8463 |
+ |
|
8464 |
+ |
|
8465 |
+ |
|
8466 |
|
test -z "$LN_S" && LN_S="ln -s" |
8467 |
|
|
8468 |
|
|
8478 |
|
|
8479 |
|
|
8480 |
|
|
8481 |
< |
if test -n "${ZSH_VERSION+set}" ; then |
8481 |
> |
if test -n "${ZSH_VERSION+set}"; then |
8482 |
|
setopt NO_GLOB_SUBST |
8483 |
|
fi |
8484 |
|
|
8517 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
8518 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
8519 |
|
# vanish in a puff of smoke. |
8520 |
< |
if test "X${COLLECT_NAMES+set}" != Xset; then |
8520 |
> |
if test set != "${COLLECT_NAMES+set}"; then |
8521 |
|
COLLECT_NAMES= |
8522 |
|
export COLLECT_NAMES |
8523 |
|
fi |
8528 |
|
ofile=libtool |
8529 |
|
can_build_shared=yes |
8530 |
|
|
8531 |
< |
# All known linkers require a `.a' archive for static linking (except MSVC, |
8531 |
> |
# All known linkers require a '.a' archive for static linking (except MSVC, |
8532 |
|
# which needs '.lib'). |
8533 |
|
libext=a |
8534 |
|
|
8535 |
< |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
8535 |
> |
with_gnu_ld=$lt_cv_prog_gnu_ld |
8536 |
|
|
8537 |
< |
old_CC="$CC" |
8538 |
< |
old_CFLAGS="$CFLAGS" |
8537 |
> |
old_CC=$CC |
8538 |
> |
old_CFLAGS=$CFLAGS |
8539 |
|
|
8540 |
|
# Set sane defaults for various variables |
8541 |
|
test -z "$CC" && CC=cc |
8544 |
|
test -z "$LD" && LD=ld |
8545 |
|
test -z "$ac_objext" && ac_objext=o |
8546 |
|
|
8547 |
< |
for cc_temp in $compiler""; do |
8548 |
< |
case $cc_temp in |
8153 |
< |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8154 |
< |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8155 |
< |
\-*) ;; |
8156 |
< |
*) break;; |
8157 |
< |
esac |
8158 |
< |
done |
8159 |
< |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
8547 |
> |
func_cc_basename $compiler |
8548 |
> |
cc_basename=$func_cc_basename_result |
8549 |
|
|
8550 |
|
|
8551 |
|
# Only perform the check for file, if the check method requires it |
8560 |
|
else |
8561 |
|
case $MAGIC_CMD in |
8562 |
|
[\\/*] | ?:[\\/]*) |
8563 |
< |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
8563 |
> |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8564 |
|
;; |
8565 |
|
*) |
8566 |
< |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
8567 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8566 |
> |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8567 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8568 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8569 |
|
for ac_dir in $ac_dummy; do |
8570 |
< |
IFS="$lt_save_ifs" |
8570 |
> |
IFS=$lt_save_ifs |
8571 |
|
test -z "$ac_dir" && ac_dir=. |
8572 |
< |
if test -f $ac_dir/${ac_tool_prefix}file; then |
8573 |
< |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
8572 |
> |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8573 |
> |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
8574 |
|
if test -n "$file_magic_test_file"; then |
8575 |
|
case $deplibs_check_method in |
8576 |
|
"file_magic "*) |
8577 |
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8578 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8578 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8579 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8580 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
8581 |
|
: |
8598 |
|
break |
8599 |
|
fi |
8600 |
|
done |
8601 |
< |
IFS="$lt_save_ifs" |
8602 |
< |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
8601 |
> |
IFS=$lt_save_ifs |
8602 |
> |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8603 |
|
;; |
8604 |
|
esac |
8605 |
|
fi |
8606 |
|
|
8607 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8607 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8608 |
|
if test -n "$MAGIC_CMD"; then |
8609 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8610 |
|
$as_echo "$MAGIC_CMD" >&6; } |
8626 |
|
else |
8627 |
|
case $MAGIC_CMD in |
8628 |
|
[\\/*] | ?:[\\/]*) |
8629 |
< |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
8629 |
> |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8630 |
|
;; |
8631 |
|
*) |
8632 |
< |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
8633 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8632 |
> |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8633 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8634 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8635 |
|
for ac_dir in $ac_dummy; do |
8636 |
< |
IFS="$lt_save_ifs" |
8636 |
> |
IFS=$lt_save_ifs |
8637 |
|
test -z "$ac_dir" && ac_dir=. |
8638 |
< |
if test -f $ac_dir/file; then |
8639 |
< |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
8638 |
> |
if test -f "$ac_dir/file"; then |
8639 |
> |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
8640 |
|
if test -n "$file_magic_test_file"; then |
8641 |
|
case $deplibs_check_method in |
8642 |
|
"file_magic "*) |
8643 |
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8644 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8644 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8645 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8646 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
8647 |
|
: |
8664 |
|
break |
8665 |
|
fi |
8666 |
|
done |
8667 |
< |
IFS="$lt_save_ifs" |
8668 |
< |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
8667 |
> |
IFS=$lt_save_ifs |
8668 |
> |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8669 |
|
;; |
8670 |
|
esac |
8671 |
|
fi |
8672 |
|
|
8673 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8673 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8674 |
|
if test -n "$MAGIC_CMD"; then |
8675 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8676 |
|
$as_echo "$MAGIC_CMD" >&6; } |
8691 |
|
|
8692 |
|
# Use C for the default configuration in the libtool script |
8693 |
|
|
8694 |
< |
lt_save_CC="$CC" |
8694 |
> |
lt_save_CC=$CC |
8695 |
|
ac_ext=c |
8696 |
|
ac_cpp='$CPP $CPPFLAGS' |
8697 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8745 |
|
$RM -r conftest* |
8746 |
|
|
8747 |
|
|
8748 |
+ |
## CAVEAT EMPTOR: |
8749 |
+ |
## There is no encapsulation within the following macros, do not change |
8750 |
+ |
## the running order or otherwise move them around unless you know exactly |
8751 |
+ |
## what you are doing... |
8752 |
|
if test -n "$compiler"; then |
8753 |
|
|
8754 |
|
lt_prog_compiler_no_builtin_flag= |
8755 |
|
|
8756 |
< |
if test "$GCC" = yes; then |
8756 |
> |
if test yes = "$GCC"; then |
8757 |
|
case $cc_basename in |
8758 |
|
nvcc*) |
8759 |
|
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
8769 |
|
lt_cv_prog_compiler_rtti_exceptions=no |
8770 |
|
ac_outfile=conftest.$ac_objext |
8771 |
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8772 |
< |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
8772 |
> |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8773 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
8774 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
8775 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
8799 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8800 |
|
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
8801 |
|
|
8802 |
< |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8802 |
> |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8803 |
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8804 |
|
else |
8805 |
|
: |
8817 |
|
lt_prog_compiler_static= |
8818 |
|
|
8819 |
|
|
8820 |
< |
if test "$GCC" = yes; then |
8820 |
> |
if test yes = "$GCC"; then |
8821 |
|
lt_prog_compiler_wl='-Wl,' |
8822 |
|
lt_prog_compiler_static='-static' |
8823 |
|
|
8824 |
|
case $host_os in |
8825 |
|
aix*) |
8826 |
|
# All AIX code is PIC. |
8827 |
< |
if test "$host_cpu" = ia64; then |
8827 |
> |
if test ia64 = "$host_cpu"; then |
8828 |
|
# AIX 5 now supports IA64 processor |
8829 |
|
lt_prog_compiler_static='-Bstatic' |
8830 |
|
fi |
8831 |
+ |
lt_prog_compiler_pic='-fPIC' |
8832 |
|
;; |
8833 |
|
|
8834 |
|
amigaos*) |
8839 |
|
;; |
8840 |
|
m68k) |
8841 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
8842 |
< |
# adding the `-m68020' flag to GCC prevents building anything better, |
8843 |
< |
# like `-m68040'. |
8842 |
> |
# adding the '-m68020' flag to GCC prevents building anything better, |
8843 |
> |
# like '-m68040'. |
8844 |
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8845 |
|
;; |
8846 |
|
esac |
8856 |
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
8857 |
|
# (--disable-auto-import) libraries |
8858 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
8859 |
+ |
case $host_os in |
8860 |
+ |
os2*) |
8861 |
+ |
lt_prog_compiler_static='$wl-static' |
8862 |
+ |
;; |
8863 |
+ |
esac |
8864 |
|
;; |
8865 |
|
|
8866 |
|
darwin* | rhapsody*) |
8921 |
|
case $cc_basename in |
8922 |
|
nvcc*) # Cuda Compiler Driver 2.2 |
8923 |
|
lt_prog_compiler_wl='-Xlinker ' |
8924 |
< |
lt_prog_compiler_pic='-Xcompiler -fPIC' |
8924 |
> |
if test -n "$lt_prog_compiler_pic"; then |
8925 |
> |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
8926 |
> |
fi |
8927 |
|
;; |
8928 |
|
esac |
8929 |
|
else |
8931 |
|
case $host_os in |
8932 |
|
aix*) |
8933 |
|
lt_prog_compiler_wl='-Wl,' |
8934 |
< |
if test "$host_cpu" = ia64; then |
8934 |
> |
if test ia64 = "$host_cpu"; then |
8935 |
|
# AIX 5 now supports IA64 processor |
8936 |
|
lt_prog_compiler_static='-Bstatic' |
8937 |
|
else |
8939 |
|
fi |
8940 |
|
;; |
8941 |
|
|
8942 |
+ |
darwin* | rhapsody*) |
8943 |
+ |
# PIC is the default on this platform |
8944 |
+ |
# Common symbols not allowed in MH_DYLIB files |
8945 |
+ |
lt_prog_compiler_pic='-fno-common' |
8946 |
+ |
case $cc_basename in |
8947 |
+ |
nagfor*) |
8948 |
+ |
# NAG Fortran compiler |
8949 |
+ |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8950 |
+ |
lt_prog_compiler_pic='-PIC' |
8951 |
+ |
lt_prog_compiler_static='-Bstatic' |
8952 |
+ |
;; |
8953 |
+ |
esac |
8954 |
+ |
;; |
8955 |
+ |
|
8956 |
|
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8957 |
|
# This hack is so that the source file can tell whether it is being |
8958 |
|
# built for inclusion in a dll (and should export symbols for example). |
8959 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
8960 |
+ |
case $host_os in |
8961 |
+ |
os2*) |
8962 |
+ |
lt_prog_compiler_static='$wl-static' |
8963 |
+ |
;; |
8964 |
+ |
esac |
8965 |
|
;; |
8966 |
|
|
8967 |
|
hpux9* | hpux10* | hpux11*) |
8977 |
|
;; |
8978 |
|
esac |
8979 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
8980 |
< |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
8980 |
> |
lt_prog_compiler_static='$wl-a ${wl}archive' |
8981 |
|
;; |
8982 |
|
|
8983 |
|
irix5* | irix6* | nonstopux*) |
8986 |
|
lt_prog_compiler_static='-non_shared' |
8987 |
|
;; |
8988 |
|
|
8989 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
8989 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8990 |
|
case $cc_basename in |
8991 |
< |
# old Intel for x86_64 which still supported -KPIC. |
8991 |
> |
# old Intel for x86_64, which still supported -KPIC. |
8992 |
|
ecc*) |
8993 |
|
lt_prog_compiler_wl='-Wl,' |
8994 |
|
lt_prog_compiler_pic='-KPIC' |
9013 |
|
lt_prog_compiler_pic='-PIC' |
9014 |
|
lt_prog_compiler_static='-Bstatic' |
9015 |
|
;; |
9016 |
+ |
tcc*) |
9017 |
+ |
# Fabrice Bellard et al's Tiny C Compiler |
9018 |
+ |
lt_prog_compiler_wl='-Wl,' |
9019 |
+ |
lt_prog_compiler_pic='-fPIC' |
9020 |
+ |
lt_prog_compiler_static='-static' |
9021 |
+ |
;; |
9022 |
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
9023 |
|
# Portland Group compilers (*not* the Pentium gcc compiler, |
9024 |
|
# which looks to be a dead project) |
9039 |
|
;; |
9040 |
|
*) |
9041 |
|
case `$CC -V 2>&1 | sed 5q` in |
9042 |
< |
*Sun\ F* | *Sun*Fortran*) |
9042 |
> |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
9043 |
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
9044 |
|
lt_prog_compiler_pic='-KPIC' |
9045 |
|
lt_prog_compiler_static='-Bstatic' |
9046 |
|
lt_prog_compiler_wl='' |
9047 |
|
;; |
9048 |
+ |
*Sun\ F* | *Sun*Fortran*) |
9049 |
+ |
lt_prog_compiler_pic='-KPIC' |
9050 |
+ |
lt_prog_compiler_static='-Bstatic' |
9051 |
+ |
lt_prog_compiler_wl='-Qoption ld ' |
9052 |
+ |
;; |
9053 |
|
*Sun\ C*) |
9054 |
|
# Sun C 5.9 |
9055 |
|
lt_prog_compiler_pic='-KPIC' |
9056 |
|
lt_prog_compiler_static='-Bstatic' |
9057 |
|
lt_prog_compiler_wl='-Wl,' |
9058 |
|
;; |
9059 |
+ |
*Intel*\ [CF]*Compiler*) |
9060 |
+ |
lt_prog_compiler_wl='-Wl,' |
9061 |
+ |
lt_prog_compiler_pic='-fPIC' |
9062 |
+ |
lt_prog_compiler_static='-static' |
9063 |
+ |
;; |
9064 |
+ |
*Portland\ Group*) |
9065 |
+ |
lt_prog_compiler_wl='-Wl,' |
9066 |
+ |
lt_prog_compiler_pic='-fpic' |
9067 |
+ |
lt_prog_compiler_static='-Bstatic' |
9068 |
+ |
;; |
9069 |
|
esac |
9070 |
|
;; |
9071 |
|
esac |
9116 |
|
;; |
9117 |
|
|
9118 |
|
sysv4*MP*) |
9119 |
< |
if test -d /usr/nec ;then |
9119 |
> |
if test -d /usr/nec; then |
9120 |
|
lt_prog_compiler_pic='-Kconform_pic' |
9121 |
|
lt_prog_compiler_static='-Bstatic' |
9122 |
|
fi |
9145 |
|
fi |
9146 |
|
|
9147 |
|
case $host_os in |
9148 |
< |
# For platforms which do not support PIC, -DPIC is meaningless: |
9148 |
> |
# For platforms that do not support PIC, -DPIC is meaningless: |
9149 |
|
*djgpp*) |
9150 |
|
lt_prog_compiler_pic= |
9151 |
|
;; |
9177 |
|
lt_cv_prog_compiler_pic_works=no |
9178 |
|
ac_outfile=conftest.$ac_objext |
9179 |
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
9180 |
< |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
9180 |
> |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
9181 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
9182 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
9183 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
9207 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9208 |
|
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
9209 |
|
|
9210 |
< |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9210 |
> |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
9211 |
|
case $lt_prog_compiler_pic in |
9212 |
|
"" | " "*) ;; |
9213 |
|
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
9239 |
|
$as_echo_n "(cached) " >&6 |
9240 |
|
else |
9241 |
|
lt_cv_prog_compiler_static_works=no |
9242 |
< |
save_LDFLAGS="$LDFLAGS" |
9242 |
> |
save_LDFLAGS=$LDFLAGS |
9243 |
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
9244 |
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
9245 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
9258 |
|
fi |
9259 |
|
fi |
9260 |
|
$RM -r conftest* |
9261 |
< |
LDFLAGS="$save_LDFLAGS" |
9261 |
> |
LDFLAGS=$save_LDFLAGS |
9262 |
|
|
9263 |
|
fi |
9264 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9265 |
|
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
9266 |
|
|
9267 |
< |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9267 |
> |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
9268 |
|
: |
9269 |
|
else |
9270 |
|
lt_prog_compiler_static= |
9384 |
|
|
9385 |
|
|
9386 |
|
|
9387 |
< |
hard_links="nottested" |
9388 |
< |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
9387 |
> |
hard_links=nottested |
9388 |
> |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
9389 |
|
# do not overwrite the value of need_locks provided by the user |
9390 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9391 |
|
$as_echo_n "checking if we can lock with hard links... " >&6; } |
9397 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9398 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9399 |
|
$as_echo "$hard_links" >&6; } |
9400 |
< |
if test "$hard_links" = no; then |
9401 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9402 |
< |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
9400 |
> |
if test no = "$hard_links"; then |
9401 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
9402 |
> |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
9403 |
|
need_locks=warn |
9404 |
|
fi |
9405 |
|
else |
9427 |
|
hardcode_direct=no |
9428 |
|
hardcode_direct_absolute=no |
9429 |
|
hardcode_libdir_flag_spec= |
8989 |
– |
hardcode_libdir_flag_spec_ld= |
9430 |
|
hardcode_libdir_separator= |
9431 |
|
hardcode_minus_L=no |
9432 |
|
hardcode_shlibpath_var=unsupported |
9442 |
|
# included in the symbol list |
9443 |
|
include_expsyms= |
9444 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
9445 |
< |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
9446 |
< |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
9447 |
< |
# as well as any symbol that contains `d'. |
9445 |
> |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
9446 |
> |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
9447 |
> |
# as well as any symbol that contains 'd'. |
9448 |
|
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9449 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9450 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
9459 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
9460 |
|
# When not using gcc, we currently assume that we are using |
9461 |
|
# Microsoft Visual C++. |
9462 |
< |
if test "$GCC" != yes; then |
9462 |
> |
if test yes != "$GCC"; then |
9463 |
|
with_gnu_ld=no |
9464 |
|
fi |
9465 |
|
;; |
9467 |
|
# we just hope/assume this is gcc and not c89 (= MSVC++) |
9468 |
|
with_gnu_ld=yes |
9469 |
|
;; |
9470 |
< |
openbsd*) |
9470 |
> |
openbsd* | bitrig*) |
9471 |
|
with_gnu_ld=no |
9472 |
|
;; |
9473 |
|
esac |
9477 |
|
# On some targets, GNU ld is compatible enough with the native linker |
9478 |
|
# that we're better off using the native interface for both. |
9479 |
|
lt_use_gnu_ld_interface=no |
9480 |
< |
if test "$with_gnu_ld" = yes; then |
9480 |
> |
if test yes = "$with_gnu_ld"; then |
9481 |
|
case $host_os in |
9482 |
|
aix*) |
9483 |
|
# The AIX port of GNU ld has always aspired to compatibility |
9499 |
|
esac |
9500 |
|
fi |
9501 |
|
|
9502 |
< |
if test "$lt_use_gnu_ld_interface" = yes; then |
9502 |
> |
if test yes = "$lt_use_gnu_ld_interface"; then |
9503 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
9504 |
< |
wlarc='${wl}' |
9504 |
> |
wlarc='$wl' |
9505 |
|
|
9506 |
|
# Set some defaults for GNU ld with shared library support. These |
9507 |
|
# are reset later if shared libraries are not supported. Putting them |
9508 |
|
# here allows them to be overridden if necessary. |
9509 |
|
runpath_var=LD_RUN_PATH |
9510 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9511 |
< |
export_dynamic_flag_spec='${wl}--export-dynamic' |
9510 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9511 |
> |
export_dynamic_flag_spec='$wl--export-dynamic' |
9512 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
9513 |
|
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
9514 |
< |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
9514 |
> |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
9515 |
|
else |
9516 |
|
whole_archive_flag_spec= |
9517 |
|
fi |
9518 |
|
supports_anon_versioning=no |
9519 |
< |
case `$LD -v 2>&1` in |
9519 |
> |
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
9520 |
|
*GNU\ gold*) supports_anon_versioning=yes ;; |
9521 |
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9522 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
9529 |
|
case $host_os in |
9530 |
|
aix[3-9]*) |
9531 |
|
# On AIX/PPC, the GNU linker is very broken |
9532 |
< |
if test "$host_cpu" != ia64; then |
9532 |
> |
if test ia64 != "$host_cpu"; then |
9533 |
|
ld_shlibs=no |
9534 |
|
cat <<_LT_EOF 1>&2 |
9535 |
|
|
9548 |
|
case $host_cpu in |
9549 |
|
powerpc) |
9550 |
|
# see comment about AmigaOS4 .so support |
9551 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9551 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9552 |
|
archive_expsym_cmds='' |
9553 |
|
;; |
9554 |
|
m68k) |
9564 |
|
allow_undefined_flag=unsupported |
9565 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9566 |
|
# support --undefined. This deserves some investigation. FIXME |
9567 |
< |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9567 |
> |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9568 |
|
else |
9569 |
|
ld_shlibs=no |
9570 |
|
fi |
9574 |
|
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9575 |
|
# as there is no search path for DLLs. |
9576 |
|
hardcode_libdir_flag_spec='-L$libdir' |
9577 |
< |
export_dynamic_flag_spec='${wl}--export-all-symbols' |
9577 |
> |
export_dynamic_flag_spec='$wl--export-all-symbols' |
9578 |
|
allow_undefined_flag=unsupported |
9579 |
|
always_export_symbols=no |
9580 |
|
enable_shared_with_static_runtimes=yes |
9582 |
|
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
9583 |
|
|
9584 |
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9585 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9586 |
< |
# If the export-symbols file already is a .def file (1st line |
9587 |
< |
# is EXPORTS), use it as is; otherwise, prepend... |
9588 |
< |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
9589 |
< |
cp $export_symbols $output_objdir/$soname.def; |
9590 |
< |
else |
9591 |
< |
echo EXPORTS > $output_objdir/$soname.def; |
9592 |
< |
cat $export_symbols >> $output_objdir/$soname.def; |
9593 |
< |
fi~ |
9594 |
< |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9585 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9586 |
> |
# If the export-symbols file already is a .def file, use it as |
9587 |
> |
# is; otherwise, prepend EXPORTS... |
9588 |
> |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9589 |
> |
cp $export_symbols $output_objdir/$soname.def; |
9590 |
> |
else |
9591 |
> |
echo EXPORTS > $output_objdir/$soname.def; |
9592 |
> |
cat $export_symbols >> $output_objdir/$soname.def; |
9593 |
> |
fi~ |
9594 |
> |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9595 |
|
else |
9596 |
|
ld_shlibs=no |
9597 |
|
fi |
9598 |
|
;; |
9599 |
|
|
9600 |
|
haiku*) |
9601 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9601 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9602 |
|
link_all_deplibs=yes |
9603 |
|
;; |
9604 |
|
|
9605 |
+ |
os2*) |
9606 |
+ |
hardcode_libdir_flag_spec='-L$libdir' |
9607 |
+ |
hardcode_minus_L=yes |
9608 |
+ |
allow_undefined_flag=unsupported |
9609 |
+ |
shrext_cmds=.dll |
9610 |
+ |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9611 |
+ |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9612 |
+ |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9613 |
+ |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9614 |
+ |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
9615 |
+ |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9616 |
+ |
emximp -o $lib $output_objdir/$libname.def' |
9617 |
+ |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9618 |
+ |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9619 |
+ |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9620 |
+ |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9621 |
+ |
prefix_cmds="$SED"~ |
9622 |
+ |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
9623 |
+ |
prefix_cmds="$prefix_cmds -e 1d"; |
9624 |
+ |
fi~ |
9625 |
+ |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
9626 |
+ |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
9627 |
+ |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9628 |
+ |
emximp -o $lib $output_objdir/$libname.def' |
9629 |
+ |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
9630 |
+ |
enable_shared_with_static_runtimes=yes |
9631 |
+ |
;; |
9632 |
+ |
|
9633 |
|
interix[3-9]*) |
9634 |
|
hardcode_direct=no |
9635 |
|
hardcode_shlibpath_var=no |
9636 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9637 |
< |
export_dynamic_flag_spec='${wl}-E' |
9636 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9637 |
> |
export_dynamic_flag_spec='$wl-E' |
9638 |
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9639 |
|
# Instead, shared libraries are loaded at an image base (0x10000000 by |
9640 |
|
# default) and relocated if they conflict, which is a slow very memory |
9641 |
|
# consuming and fragmenting process. To avoid this, we pick a random, |
9642 |
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
9643 |
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
9644 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9645 |
< |
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' |
9644 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9645 |
> |
archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9646 |
|
;; |
9647 |
|
|
9648 |
|
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9649 |
|
tmp_diet=no |
9650 |
< |
if test "$host_os" = linux-dietlibc; then |
9650 |
> |
if test linux-dietlibc = "$host_os"; then |
9651 |
|
case $cc_basename in |
9652 |
|
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
9653 |
|
esac |
9654 |
|
fi |
9655 |
|
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
9656 |
< |
&& test "$tmp_diet" = no |
9656 |
> |
&& test no = "$tmp_diet" |
9657 |
|
then |
9658 |
|
tmp_addflag=' $pic_flag' |
9659 |
|
tmp_sharedflag='-shared' |
9660 |
|
case $cc_basename,$host_cpu in |
9661 |
|
pgcc*) # Portland Group C compiler |
9662 |
< |
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' |
9662 |
> |
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 |
|
tmp_addflag=' $pic_flag' |
9664 |
|
;; |
9665 |
|
pgf77* | pgf90* | pgf95* | pgfortran*) |
9666 |
|
# Portland Group f77 and f90 compilers |
9667 |
< |
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' |
9667 |
> |
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 |
|
tmp_addflag=' $pic_flag -Mnomain' ;; |
9669 |
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9670 |
|
tmp_addflag=' -i_dynamic' ;; |
9675 |
|
lf95*) # Lahey Fortran 8.1 |
9676 |
|
whole_archive_flag_spec= |
9677 |
|
tmp_sharedflag='--shared' ;; |
9678 |
+ |
nagfor*) # NAGFOR 5.3 |
9679 |
+ |
tmp_sharedflag='-Wl,-shared' ;; |
9680 |
|
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9681 |
|
tmp_sharedflag='-qmkshrobj' |
9682 |
|
tmp_addflag= ;; |
9683 |
|
nvcc*) # Cuda Compiler Driver 2.2 |
9684 |
< |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
9684 |
> |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
9685 |
|
compiler_needs_object=yes |
9686 |
|
;; |
9687 |
|
esac |
9688 |
|
case `$CC -V 2>&1 | sed 5q` in |
9689 |
|
*Sun\ C*) # Sun C 5.9 |
9690 |
< |
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' |
9690 |
> |
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 |
|
compiler_needs_object=yes |
9692 |
|
tmp_sharedflag='-G' ;; |
9693 |
|
*Sun\ F*) # Sun Fortran 8.3 |
9694 |
|
tmp_sharedflag='-G' ;; |
9695 |
|
esac |
9696 |
< |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9696 |
> |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9697 |
|
|
9698 |
< |
if test "x$supports_anon_versioning" = xyes; then |
9698 |
> |
if test yes = "$supports_anon_versioning"; then |
9699 |
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9700 |
< |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9701 |
< |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9702 |
< |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
9700 |
> |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9701 |
> |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9702 |
> |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
9703 |
|
fi |
9704 |
|
|
9705 |
|
case $cc_basename in |
9706 |
+ |
tcc*) |
9707 |
+ |
export_dynamic_flag_spec='-rdynamic' |
9708 |
+ |
;; |
9709 |
|
xlf* | bgf* | bgxlf* | mpixlf*) |
9710 |
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9711 |
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9712 |
< |
hardcode_libdir_flag_spec= |
9240 |
< |
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
9712 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9713 |
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9714 |
< |
if test "x$supports_anon_versioning" = xyes; then |
9714 |
> |
if test yes = "$supports_anon_versioning"; then |
9715 |
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9716 |
< |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9717 |
< |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9718 |
< |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9716 |
> |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9717 |
> |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9718 |
> |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9719 |
|
fi |
9720 |
|
;; |
9721 |
|
esac |
9729 |
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9730 |
|
wlarc= |
9731 |
|
else |
9732 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9733 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9732 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9733 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9734 |
|
fi |
9735 |
|
;; |
9736 |
|
|
9748 |
|
|
9749 |
|
_LT_EOF |
9750 |
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9751 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9752 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9751 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9752 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9753 |
|
else |
9754 |
|
ld_shlibs=no |
9755 |
|
fi |
9761 |
|
ld_shlibs=no |
9762 |
|
cat <<_LT_EOF 1>&2 |
9763 |
|
|
9764 |
< |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9764 |
> |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
9765 |
|
*** reliably create shared libraries on SCO systems. Therefore, libtool |
9766 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
9767 |
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
9776 |
|
# DT_RUNPATH tag from executables and libraries. But doing so |
9777 |
|
# requires that you compile everything twice, which is a pain. |
9778 |
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9779 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9780 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9781 |
< |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9779 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9780 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9781 |
> |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9782 |
|
else |
9783 |
|
ld_shlibs=no |
9784 |
|
fi |
9795 |
|
|
9796 |
|
*) |
9797 |
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9798 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9799 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9798 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9799 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9800 |
|
else |
9801 |
|
ld_shlibs=no |
9802 |
|
fi |
9803 |
|
;; |
9804 |
|
esac |
9805 |
|
|
9806 |
< |
if test "$ld_shlibs" = no; then |
9806 |
> |
if test no = "$ld_shlibs"; then |
9807 |
|
runpath_var= |
9808 |
|
hardcode_libdir_flag_spec= |
9809 |
|
export_dynamic_flag_spec= |
9819 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
9820 |
|
# are no directories specified by -L. |
9821 |
|
hardcode_minus_L=yes |
9822 |
< |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
9822 |
> |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
9823 |
|
# Neither direct hardcoding nor static linking is supported with a |
9824 |
|
# broken collect2. |
9825 |
|
hardcode_direct=unsupported |
9827 |
|
;; |
9828 |
|
|
9829 |
|
aix[4-9]*) |
9830 |
< |
if test "$host_cpu" = ia64; then |
9830 |
> |
if test ia64 = "$host_cpu"; then |
9831 |
|
# On IA64, the linker does run time linking by default, so we don't |
9832 |
|
# have to do anything special. |
9833 |
|
aix_use_runtimelinking=no |
9834 |
|
exp_sym_flag='-Bexport' |
9835 |
< |
no_entry_flag="" |
9835 |
> |
no_entry_flag= |
9836 |
|
else |
9837 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
9838 |
< |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
9839 |
< |
# Also, AIX nm treats weak defined symbols like other global |
9840 |
< |
# defined symbols, whereas GNU nm marks them as "W". |
9838 |
> |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9839 |
> |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
9840 |
> |
# weak defined symbols like other global defined symbols, whereas |
9841 |
> |
# GNU nm marks them as "W". |
9842 |
> |
# While the 'weak' keyword is ignored in the Export File, we need |
9843 |
> |
# it in the Import File for the 'aix-soname' feature, so we have |
9844 |
> |
# to replace the "-B" option with "-P" for AIX nm. |
9845 |
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9846 |
< |
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' |
9846 |
> |
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' |
9847 |
|
else |
9848 |
< |
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' |
9848 |
> |
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' |
9849 |
|
fi |
9850 |
|
aix_use_runtimelinking=no |
9851 |
|
|
9852 |
|
# Test if we are trying to use run time linking or normal |
9853 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
9854 |
< |
# need to do runtime linking. |
9854 |
> |
# have runtime linking enabled, and use it for executables. |
9855 |
> |
# For shared libraries, we enable/disable runtime linking |
9856 |
> |
# depending on the kind of the shared library created - |
9857 |
> |
# when "with_aix_soname,aix_use_runtimelinking" is: |
9858 |
> |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
9859 |
> |
# "aix,yes" lib.so shared, rtl:yes, for executables |
9860 |
> |
# lib.a static archive |
9861 |
> |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
9862 |
> |
# lib.a(lib.so.V) shared, rtl:no, for executables |
9863 |
> |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
9864 |
> |
# lib.a(lib.so.V) shared, rtl:no |
9865 |
> |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
9866 |
> |
# lib.a static archive |
9867 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9868 |
|
for ld_flag in $LDFLAGS; do |
9869 |
< |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
9869 |
> |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
9870 |
|
aix_use_runtimelinking=yes |
9871 |
|
break |
9872 |
|
fi |
9873 |
|
done |
9874 |
+ |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9875 |
+ |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
9876 |
+ |
# so we don't have lib.a shared libs to link our executables. |
9877 |
+ |
# We have to force runtime linking in this case. |
9878 |
+ |
aix_use_runtimelinking=yes |
9879 |
+ |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
9880 |
+ |
fi |
9881 |
|
;; |
9882 |
|
esac |
9883 |
|
|
9896 |
|
hardcode_direct_absolute=yes |
9897 |
|
hardcode_libdir_separator=':' |
9898 |
|
link_all_deplibs=yes |
9899 |
< |
file_list_spec='${wl}-f,' |
9899 |
> |
file_list_spec='$wl-f,' |
9900 |
> |
case $with_aix_soname,$aix_use_runtimelinking in |
9901 |
> |
aix,*) ;; # traditional, no import file |
9902 |
> |
svr4,* | *,yes) # use import file |
9903 |
> |
# The Import File defines what to hardcode. |
9904 |
> |
hardcode_direct=no |
9905 |
> |
hardcode_direct_absolute=no |
9906 |
> |
;; |
9907 |
> |
esac |
9908 |
|
|
9909 |
< |
if test "$GCC" = yes; then |
9909 |
> |
if test yes = "$GCC"; then |
9910 |
|
case $host_os in aix4.[012]|aix4.[012].*) |
9911 |
|
# We only want to do this on AIX 4.2 and lower, the check |
9912 |
|
# below for broken collect2 doesn't work under 4.3+ |
9913 |
< |
collect2name=`${CC} -print-prog-name=collect2` |
9913 |
> |
collect2name=`$CC -print-prog-name=collect2` |
9914 |
|
if test -f "$collect2name" && |
9915 |
|
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
9916 |
|
then |
9929 |
|
;; |
9930 |
|
esac |
9931 |
|
shared_flag='-shared' |
9932 |
< |
if test "$aix_use_runtimelinking" = yes; then |
9933 |
< |
shared_flag="$shared_flag "'${wl}-G' |
9932 |
> |
if test yes = "$aix_use_runtimelinking"; then |
9933 |
> |
shared_flag="$shared_flag "'$wl-G' |
9934 |
|
fi |
9935 |
+ |
# Need to ensure runtime linking is disabled for the traditional |
9936 |
+ |
# shared library, or the linker may eventually find shared libraries |
9937 |
+ |
# /with/ Import File - we do not want to mix them. |
9938 |
+ |
shared_flag_aix='-shared' |
9939 |
+ |
shared_flag_svr4='-shared $wl-G' |
9940 |
|
else |
9941 |
|
# not using gcc |
9942 |
< |
if test "$host_cpu" = ia64; then |
9942 |
> |
if test ia64 = "$host_cpu"; then |
9943 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9944 |
|
# chokes on -Wl,-G. The following line is correct: |
9945 |
|
shared_flag='-G' |
9946 |
|
else |
9947 |
< |
if test "$aix_use_runtimelinking" = yes; then |
9948 |
< |
shared_flag='${wl}-G' |
9947 |
> |
if test yes = "$aix_use_runtimelinking"; then |
9948 |
> |
shared_flag='$wl-G' |
9949 |
|
else |
9950 |
< |
shared_flag='${wl}-bM:SRE' |
9950 |
> |
shared_flag='$wl-bM:SRE' |
9951 |
|
fi |
9952 |
+ |
shared_flag_aix='$wl-bM:SRE' |
9953 |
+ |
shared_flag_svr4='$wl-G' |
9954 |
|
fi |
9955 |
|
fi |
9956 |
|
|
9957 |
< |
export_dynamic_flag_spec='${wl}-bexpall' |
9957 |
> |
export_dynamic_flag_spec='$wl-bexpall' |
9958 |
|
# It seems that -bexpall does not export symbols beginning with |
9959 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
9960 |
|
always_export_symbols=yes |
9961 |
< |
if test "$aix_use_runtimelinking" = yes; then |
9961 |
> |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
9962 |
|
# Warning - without using the other runtime loading flags (-brtl), |
9963 |
|
# -berok will link without error, but may produce a broken library. |
9964 |
|
allow_undefined_flag='-berok' |
9965 |
|
# Determine the default libpath from the value encoded in an |
9966 |
|
# empty executable. |
9967 |
< |
if test "${lt_cv_aix_libpath+set}" = set; then |
9967 |
> |
if test set = "${lt_cv_aix_libpath+set}"; then |
9968 |
|
aix_libpath=$lt_cv_aix_libpath |
9969 |
|
else |
9970 |
|
if ${lt_cv_aix_libpath_+:} false; then : |
9999 |
|
rm -f core conftest.err conftest.$ac_objext \ |
10000 |
|
conftest$ac_exeext conftest.$ac_ext |
10001 |
|
if test -z "$lt_cv_aix_libpath_"; then |
10002 |
< |
lt_cv_aix_libpath_="/usr/lib:/lib" |
10002 |
> |
lt_cv_aix_libpath_=/usr/lib:/lib |
10003 |
|
fi |
10004 |
|
|
10005 |
|
fi |
10007 |
|
aix_libpath=$lt_cv_aix_libpath_ |
10008 |
|
fi |
10009 |
|
|
10010 |
< |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10011 |
< |
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" |
10010 |
> |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
10011 |
> |
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 |
10012 |
|
else |
10013 |
< |
if test "$host_cpu" = ia64; then |
10014 |
< |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
10013 |
> |
if test ia64 = "$host_cpu"; then |
10014 |
> |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
10015 |
|
allow_undefined_flag="-z nodefs" |
10016 |
< |
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" |
10016 |
> |
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 |
|
else |
10018 |
|
# Determine the default libpath from the value encoded in an |
10019 |
|
# empty executable. |
10020 |
< |
if test "${lt_cv_aix_libpath+set}" = set; then |
10020 |
> |
if test set = "${lt_cv_aix_libpath+set}"; then |
10021 |
|
aix_libpath=$lt_cv_aix_libpath |
10022 |
|
else |
10023 |
|
if ${lt_cv_aix_libpath_+:} false; then : |
10052 |
|
rm -f core conftest.err conftest.$ac_objext \ |
10053 |
|
conftest$ac_exeext conftest.$ac_ext |
10054 |
|
if test -z "$lt_cv_aix_libpath_"; then |
10055 |
< |
lt_cv_aix_libpath_="/usr/lib:/lib" |
10055 |
> |
lt_cv_aix_libpath_=/usr/lib:/lib |
10056 |
|
fi |
10057 |
|
|
10058 |
|
fi |
10060 |
|
aix_libpath=$lt_cv_aix_libpath_ |
10061 |
|
fi |
10062 |
|
|
10063 |
< |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10063 |
> |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
10064 |
|
# Warning - without using the other run time loading flags, |
10065 |
|
# -berok will link without error, but may produce a broken library. |
10066 |
< |
no_undefined_flag=' ${wl}-bernotok' |
10067 |
< |
allow_undefined_flag=' ${wl}-berok' |
10068 |
< |
if test "$with_gnu_ld" = yes; then |
10066 |
> |
no_undefined_flag=' $wl-bernotok' |
10067 |
> |
allow_undefined_flag=' $wl-berok' |
10068 |
> |
if test yes = "$with_gnu_ld"; then |
10069 |
|
# We only use this code for GNU lds that support --whole-archive. |
10070 |
< |
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10070 |
> |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
10071 |
|
else |
10072 |
|
# Exported symbols can be pulled into shared objects from archives |
10073 |
|
whole_archive_flag_spec='$convenience' |
10074 |
|
fi |
10075 |
|
archive_cmds_need_lc=yes |
10076 |
< |
# This is similar to how AIX traditionally builds its shared libraries. |
10077 |
< |
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' |
10076 |
> |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
10077 |
> |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
10078 |
> |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
10079 |
> |
if test svr4 != "$with_aix_soname"; then |
10080 |
> |
# This is similar to how AIX traditionally builds its shared libraries. |
10081 |
> |
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' |
10082 |
> |
fi |
10083 |
> |
if test aix != "$with_aix_soname"; then |
10084 |
> |
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' |
10085 |
> |
else |
10086 |
> |
# used by -dlpreopen to get the symbols |
10087 |
> |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
10088 |
> |
fi |
10089 |
> |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
10090 |
|
fi |
10091 |
|
fi |
10092 |
|
;; |
10095 |
|
case $host_cpu in |
10096 |
|
powerpc) |
10097 |
|
# see comment about AmigaOS4 .so support |
10098 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10098 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10099 |
|
archive_expsym_cmds='' |
10100 |
|
;; |
10101 |
|
m68k) |
10125 |
|
# Tell ltmain to make .lib files, not .a files. |
10126 |
|
libext=lib |
10127 |
|
# Tell ltmain to make .dll files, not .so files. |
10128 |
< |
shrext_cmds=".dll" |
10128 |
> |
shrext_cmds=.dll |
10129 |
|
# FIXME: Setting linknames here is a bad hack. |
10130 |
< |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
10131 |
< |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10132 |
< |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
10133 |
< |
else |
10134 |
< |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
10135 |
< |
fi~ |
10136 |
< |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
10137 |
< |
linknames=' |
10130 |
> |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
10131 |
> |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
10132 |
> |
cp "$export_symbols" "$output_objdir/$soname.def"; |
10133 |
> |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
10134 |
> |
else |
10135 |
> |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $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=' |
10139 |
|
# The linker will not automatically build a static lib if we build a DLL. |
10140 |
|
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
10141 |
|
enable_shared_with_static_runtimes=yes |
10142 |
+ |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
10143 |
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
10144 |
|
# Don't use ranlib |
10145 |
|
old_postinstall_cmds='chmod 644 $oldlib' |
10146 |
|
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
10147 |
< |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
10148 |
< |
case $lt_outputfile in |
10149 |
< |
*.exe|*.EXE) ;; |
10150 |
< |
*) |
10151 |
< |
lt_outputfile="$lt_outputfile.exe" |
10152 |
< |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
10153 |
< |
;; |
10154 |
< |
esac~ |
10155 |
< |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
10156 |
< |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
10157 |
< |
$RM "$lt_outputfile.manifest"; |
10158 |
< |
fi' |
10147 |
> |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
10148 |
> |
case $lt_outputfile in |
10149 |
> |
*.exe|*.EXE) ;; |
10150 |
> |
*) |
10151 |
> |
lt_outputfile=$lt_outputfile.exe |
10152 |
> |
lt_tool_outputfile=$lt_tool_outputfile.exe |
10153 |
> |
;; |
10154 |
> |
esac~ |
10155 |
> |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
10156 |
> |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
10157 |
> |
$RM "$lt_outputfile.manifest"; |
10158 |
> |
fi' |
10159 |
|
;; |
10160 |
|
*) |
10161 |
|
# Assume MSVC wrapper |
10164 |
|
# Tell ltmain to make .lib files, not .a files. |
10165 |
|
libext=lib |
10166 |
|
# Tell ltmain to make .dll files, not .so files. |
10167 |
< |
shrext_cmds=".dll" |
10167 |
> |
shrext_cmds=.dll |
10168 |
|
# FIXME: Setting linknames here is a bad hack. |
10169 |
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
10170 |
|
# The linker will automatically build a .lib file if we build a DLL. |
10183 |
|
hardcode_direct=no |
10184 |
|
hardcode_automatic=yes |
10185 |
|
hardcode_shlibpath_var=unsupported |
10186 |
< |
if test "$lt_cv_ld_force_load" = "yes"; then |
10187 |
< |
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\"`' |
10186 |
> |
if test yes = "$lt_cv_ld_force_load"; then |
10187 |
> |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
10188 |
> |
|
10189 |
|
else |
10190 |
|
whole_archive_flag_spec='' |
10191 |
|
fi |
10192 |
|
link_all_deplibs=yes |
10193 |
< |
allow_undefined_flag="$_lt_dar_allow_undefined" |
10193 |
> |
allow_undefined_flag=$_lt_dar_allow_undefined |
10194 |
|
case $cc_basename in |
10195 |
< |
ifort*) _lt_dar_can_shared=yes ;; |
10195 |
> |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
10196 |
|
*) _lt_dar_can_shared=$GCC ;; |
10197 |
|
esac |
10198 |
< |
if test "$_lt_dar_can_shared" = "yes"; then |
10198 |
> |
if test yes = "$_lt_dar_can_shared"; then |
10199 |
|
output_verbose_link_cmd=func_echo_all |
10200 |
< |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10201 |
< |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
10202 |
< |
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}" |
10203 |
< |
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}" |
10200 |
> |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
10201 |
> |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
10202 |
> |
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" |
10203 |
> |
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" |
10204 |
|
|
10205 |
|
else |
10206 |
|
ld_shlibs=no |
10214 |
|
hardcode_shlibpath_var=no |
10215 |
|
;; |
10216 |
|
|
9692 |
– |
freebsd1*) |
9693 |
– |
ld_shlibs=no |
9694 |
– |
;; |
9695 |
– |
|
10217 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10218 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
10219 |
|
# does not break anything, and helps significantly (at the cost of a little |
10226 |
|
;; |
10227 |
|
|
10228 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10229 |
< |
freebsd2*) |
10229 |
> |
freebsd2.*) |
10230 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10231 |
|
hardcode_direct=yes |
10232 |
|
hardcode_minus_L=yes |
10242 |
|
;; |
10243 |
|
|
10244 |
|
hpux9*) |
10245 |
< |
if test "$GCC" = yes; then |
10246 |
< |
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' |
10245 |
> |
if test yes = "$GCC"; then |
10246 |
> |
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' |
10247 |
|
else |
10248 |
< |
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' |
10248 |
> |
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' |
10249 |
|
fi |
10250 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
10250 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
10251 |
|
hardcode_libdir_separator=: |
10252 |
|
hardcode_direct=yes |
10253 |
|
|
10254 |
|
# hardcode_minus_L: Not really in the search PATH, |
10255 |
|
# but as the default location of the library. |
10256 |
|
hardcode_minus_L=yes |
10257 |
< |
export_dynamic_flag_spec='${wl}-E' |
10257 |
> |
export_dynamic_flag_spec='$wl-E' |
10258 |
|
;; |
10259 |
|
|
10260 |
|
hpux10*) |
10261 |
< |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
10262 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10261 |
> |
if test yes,no = "$GCC,$with_gnu_ld"; then |
10262 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10263 |
|
else |
10264 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
10265 |
|
fi |
10266 |
< |
if test "$with_gnu_ld" = no; then |
10267 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9747 |
< |
hardcode_libdir_flag_spec_ld='+b $libdir' |
10266 |
> |
if test no = "$with_gnu_ld"; then |
10267 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
10268 |
|
hardcode_libdir_separator=: |
10269 |
|
hardcode_direct=yes |
10270 |
|
hardcode_direct_absolute=yes |
10271 |
< |
export_dynamic_flag_spec='${wl}-E' |
10271 |
> |
export_dynamic_flag_spec='$wl-E' |
10272 |
|
# hardcode_minus_L: Not really in the search PATH, |
10273 |
|
# but as the default location of the library. |
10274 |
|
hardcode_minus_L=yes |
10276 |
|
;; |
10277 |
|
|
10278 |
|
hpux11*) |
10279 |
< |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
10279 |
> |
if test yes,no = "$GCC,$with_gnu_ld"; then |
10280 |
|
case $host_cpu in |
10281 |
|
hppa*64*) |
10282 |
< |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
10282 |
> |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
10283 |
|
;; |
10284 |
|
ia64*) |
10285 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
10285 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
10286 |
|
;; |
10287 |
|
*) |
10288 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10288 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10289 |
|
;; |
10290 |
|
esac |
10291 |
|
else |
10292 |
|
case $host_cpu in |
10293 |
|
hppa*64*) |
10294 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
10294 |
> |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
10295 |
|
;; |
10296 |
|
ia64*) |
10297 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
10297 |
> |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
10298 |
|
;; |
10299 |
|
*) |
10300 |
|
|
10306 |
|
$as_echo_n "(cached) " >&6 |
10307 |
|
else |
10308 |
|
lt_cv_prog_compiler__b=no |
10309 |
< |
save_LDFLAGS="$LDFLAGS" |
10309 |
> |
save_LDFLAGS=$LDFLAGS |
10310 |
|
LDFLAGS="$LDFLAGS -b" |
10311 |
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
10312 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
10325 |
|
fi |
10326 |
|
fi |
10327 |
|
$RM -r conftest* |
10328 |
< |
LDFLAGS="$save_LDFLAGS" |
10328 |
> |
LDFLAGS=$save_LDFLAGS |
10329 |
|
|
10330 |
|
fi |
10331 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
10332 |
|
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
10333 |
|
|
10334 |
< |
if test x"$lt_cv_prog_compiler__b" = xyes; then |
10335 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10334 |
> |
if test yes = "$lt_cv_prog_compiler__b"; then |
10335 |
> |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10336 |
|
else |
10337 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
10338 |
|
fi |
10340 |
|
;; |
10341 |
|
esac |
10342 |
|
fi |
10343 |
< |
if test "$with_gnu_ld" = no; then |
10344 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
10343 |
> |
if test no = "$with_gnu_ld"; then |
10344 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
10345 |
|
hardcode_libdir_separator=: |
10346 |
|
|
10347 |
|
case $host_cpu in |
10352 |
|
*) |
10353 |
|
hardcode_direct=yes |
10354 |
|
hardcode_direct_absolute=yes |
10355 |
< |
export_dynamic_flag_spec='${wl}-E' |
10355 |
> |
export_dynamic_flag_spec='$wl-E' |
10356 |
|
|
10357 |
|
# hardcode_minus_L: Not really in the search PATH, |
10358 |
|
# but as the default location of the library. |
10363 |
|
;; |
10364 |
|
|
10365 |
|
irix5* | irix6* | nonstopux*) |
10366 |
< |
if test "$GCC" = yes; then |
10367 |
< |
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' |
10366 |
> |
if test yes = "$GCC"; then |
10367 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
10368 |
|
# Try to use the -exported_symbol ld option, if it does not |
10369 |
|
# work, assume that -exports_file does not work either and |
10370 |
|
# implicitly export all symbols. |
10374 |
|
if ${lt_cv_irix_exported_symbol+:} false; then : |
10375 |
|
$as_echo_n "(cached) " >&6 |
10376 |
|
else |
10377 |
< |
save_LDFLAGS="$LDFLAGS" |
10378 |
< |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
10377 |
> |
save_LDFLAGS=$LDFLAGS |
10378 |
> |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
10379 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10380 |
|
/* end confdefs.h. */ |
10381 |
|
int foo (void) { return 0; } |
10387 |
|
fi |
10388 |
|
rm -f core conftest.err conftest.$ac_objext \ |
10389 |
|
conftest$ac_exeext conftest.$ac_ext |
10390 |
< |
LDFLAGS="$save_LDFLAGS" |
10390 |
> |
LDFLAGS=$save_LDFLAGS |
10391 |
|
fi |
10392 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
10393 |
|
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
10394 |
< |
if test "$lt_cv_irix_exported_symbol" = yes; then |
10395 |
< |
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' |
10394 |
> |
if test yes = "$lt_cv_irix_exported_symbol"; then |
10395 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
10396 |
|
fi |
10397 |
|
else |
10398 |
< |
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' |
10399 |
< |
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' |
10398 |
> |
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' |
10399 |
> |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' |
10400 |
|
fi |
10401 |
|
archive_cmds_need_lc='no' |
10402 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10402 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10403 |
|
hardcode_libdir_separator=: |
10404 |
|
inherit_rpath=yes |
10405 |
|
link_all_deplibs=yes |
10406 |
|
;; |
10407 |
|
|
10408 |
+ |
linux*) |
10409 |
+ |
case $cc_basename in |
10410 |
+ |
tcc*) |
10411 |
+ |
# Fabrice Bellard et al's Tiny C Compiler |
10412 |
+ |
ld_shlibs=yes |
10413 |
+ |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10414 |
+ |
;; |
10415 |
+ |
esac |
10416 |
+ |
;; |
10417 |
+ |
|
10418 |
|
netbsd*) |
10419 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10420 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
10429 |
|
newsos6) |
10430 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10431 |
|
hardcode_direct=yes |
10432 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10432 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10433 |
|
hardcode_libdir_separator=: |
10434 |
|
hardcode_shlibpath_var=no |
10435 |
|
;; |
10437 |
|
*nto* | *qnx*) |
10438 |
|
;; |
10439 |
|
|
10440 |
< |
openbsd*) |
10440 |
> |
openbsd* | bitrig*) |
10441 |
|
if test -f /usr/libexec/ld.so; then |
10442 |
|
hardcode_direct=yes |
10443 |
|
hardcode_shlibpath_var=no |
10444 |
|
hardcode_direct_absolute=yes |
10445 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10445 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
10446 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10447 |
< |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
10448 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
10449 |
< |
export_dynamic_flag_spec='${wl}-E' |
10447 |
> |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
10448 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10449 |
> |
export_dynamic_flag_spec='$wl-E' |
10450 |
|
else |
10451 |
< |
case $host_os in |
10452 |
< |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
9923 |
< |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9924 |
< |
hardcode_libdir_flag_spec='-R$libdir' |
9925 |
< |
;; |
9926 |
< |
*) |
9927 |
< |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9928 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9929 |
< |
;; |
9930 |
< |
esac |
10451 |
> |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10452 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10453 |
|
fi |
10454 |
|
else |
10455 |
|
ld_shlibs=no |
10460 |
|
hardcode_libdir_flag_spec='-L$libdir' |
10461 |
|
hardcode_minus_L=yes |
10462 |
|
allow_undefined_flag=unsupported |
10463 |
< |
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' |
10464 |
< |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10463 |
> |
shrext_cmds=.dll |
10464 |
> |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
10465 |
> |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
10466 |
> |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
10467 |
> |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
10468 |
> |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
10469 |
> |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
10470 |
> |
emximp -o $lib $output_objdir/$libname.def' |
10471 |
> |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
10472 |
> |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
10473 |
> |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
10474 |
> |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
10475 |
> |
prefix_cmds="$SED"~ |
10476 |
> |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
10477 |
> |
prefix_cmds="$prefix_cmds -e 1d"; |
10478 |
> |
fi~ |
10479 |
> |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
10480 |
> |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
10481 |
> |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
10482 |
> |
emximp -o $lib $output_objdir/$libname.def' |
10483 |
> |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
10484 |
> |
enable_shared_with_static_runtimes=yes |
10485 |
|
;; |
10486 |
|
|
10487 |
|
osf3*) |
10488 |
< |
if test "$GCC" = yes; then |
10489 |
< |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
10490 |
< |
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' |
10488 |
> |
if test yes = "$GCC"; then |
10489 |
> |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
10490 |
> |
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' |
10491 |
|
else |
10492 |
|
allow_undefined_flag=' -expect_unresolved \*' |
10493 |
< |
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' |
10493 |
> |
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 |
|
fi |
10495 |
|
archive_cmds_need_lc='no' |
10496 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10496 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10497 |
|
hardcode_libdir_separator=: |
10498 |
|
;; |
10499 |
|
|
10500 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
10501 |
< |
if test "$GCC" = yes; then |
10502 |
< |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
10503 |
< |
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' |
10504 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10501 |
> |
if test yes = "$GCC"; then |
10502 |
> |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
10503 |
> |
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' |
10504 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10505 |
|
else |
10506 |
|
allow_undefined_flag=' -expect_unresolved \*' |
10507 |
< |
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' |
10507 |
> |
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_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~ |
10509 |
< |
$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' |
10509 |
> |
$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 |
|
|
10511 |
|
# Both c and cxx compiler support -rpath directly |
10512 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
10517 |
|
|
10518 |
|
solaris*) |
10519 |
|
no_undefined_flag=' -z defs' |
10520 |
< |
if test "$GCC" = yes; then |
10521 |
< |
wlarc='${wl}' |
10522 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
10520 |
> |
if test yes = "$GCC"; then |
10521 |
> |
wlarc='$wl' |
10522 |
> |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
10523 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10524 |
< |
$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' |
10524 |
> |
$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 |
|
else |
10526 |
|
case `$CC -V 2>&1` in |
10527 |
|
*"Compilers 5.0"*) |
10528 |
|
wlarc='' |
10529 |
< |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10529 |
> |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10530 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10531 |
< |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
10531 |
> |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
10532 |
|
;; |
10533 |
|
*) |
10534 |
< |
wlarc='${wl}' |
10535 |
< |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10534 |
> |
wlarc='$wl' |
10535 |
> |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10536 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10537 |
< |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10537 |
> |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10538 |
|
;; |
10539 |
|
esac |
10540 |
|
fi |
10544 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
10545 |
|
*) |
10546 |
|
# The compiler driver will combine and reorder linker options, |
10547 |
< |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
10547 |
> |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
10548 |
|
# but is careful enough not to reorder. |
10549 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10550 |
< |
if test "$GCC" = yes; then |
10551 |
< |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
10550 |
> |
if test yes = "$GCC"; then |
10551 |
> |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
10552 |
|
else |
10553 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
10554 |
|
fi |
10558 |
|
;; |
10559 |
|
|
10560 |
|
sunos4*) |
10561 |
< |
if test "x$host_vendor" = xsequent; then |
10561 |
> |
if test sequent = "$host_vendor"; then |
10562 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
10563 |
|
# files that make .init and .fini sections work. |
10564 |
< |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10564 |
> |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10565 |
|
else |
10566 |
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
10567 |
|
fi |
10610 |
|
;; |
10611 |
|
|
10612 |
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10613 |
< |
no_undefined_flag='${wl}-z,text' |
10613 |
> |
no_undefined_flag='$wl-z,text' |
10614 |
|
archive_cmds_need_lc=no |
10615 |
|
hardcode_shlibpath_var=no |
10616 |
|
runpath_var='LD_RUN_PATH' |
10617 |
|
|
10618 |
< |
if test "$GCC" = yes; then |
10619 |
< |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10620 |
< |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10618 |
> |
if test yes = "$GCC"; then |
10619 |
> |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10620 |
> |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10621 |
|
else |
10622 |
< |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10623 |
< |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10622 |
> |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10623 |
> |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10624 |
|
fi |
10625 |
|
;; |
10626 |
|
|
10627 |
|
sysv5* | sco3.2v5* | sco5v6*) |
10628 |
< |
# Note: We can NOT use -z defs as we might desire, because we do not |
10628 |
> |
# Note: We CANNOT use -z defs as we might desire, because we do not |
10629 |
|
# link with -lc, and that would cause any symbols used from libc to |
10630 |
|
# always be unresolved, which means just about no library would |
10631 |
|
# ever link correctly. If we're not using GNU ld we use -z text |
10632 |
|
# though, which does catch some bad symbols but isn't as heavy-handed |
10633 |
|
# as -z defs. |
10634 |
< |
no_undefined_flag='${wl}-z,text' |
10635 |
< |
allow_undefined_flag='${wl}-z,nodefs' |
10634 |
> |
no_undefined_flag='$wl-z,text' |
10635 |
> |
allow_undefined_flag='$wl-z,nodefs' |
10636 |
|
archive_cmds_need_lc=no |
10637 |
|
hardcode_shlibpath_var=no |
10638 |
< |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
10638 |
> |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
10639 |
|
hardcode_libdir_separator=':' |
10640 |
|
link_all_deplibs=yes |
10641 |
< |
export_dynamic_flag_spec='${wl}-Bexport' |
10641 |
> |
export_dynamic_flag_spec='$wl-Bexport' |
10642 |
|
runpath_var='LD_RUN_PATH' |
10643 |
|
|
10644 |
< |
if test "$GCC" = yes; then |
10645 |
< |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10646 |
< |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10644 |
> |
if test yes = "$GCC"; then |
10645 |
> |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10646 |
> |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10647 |
|
else |
10648 |
< |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10649 |
< |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10648 |
> |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10649 |
> |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10650 |
|
fi |
10651 |
|
;; |
10652 |
|
|
10661 |
|
;; |
10662 |
|
esac |
10663 |
|
|
10664 |
< |
if test x$host_vendor = xsni; then |
10664 |
> |
if test sni = "$host_vendor"; then |
10665 |
|
case $host in |
10666 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
10667 |
< |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
10667 |
> |
export_dynamic_flag_spec='$wl-Blargedynsym' |
10668 |
|
;; |
10669 |
|
esac |
10670 |
|
fi |
10672 |
|
|
10673 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10674 |
|
$as_echo "$ld_shlibs" >&6; } |
10675 |
< |
test "$ld_shlibs" = no && can_build_shared=no |
10675 |
> |
test no = "$ld_shlibs" && can_build_shared=no |
10676 |
|
|
10677 |
|
with_gnu_ld=$with_gnu_ld |
10678 |
|
|
10698 |
|
# Assume -lc should be added |
10699 |
|
archive_cmds_need_lc=yes |
10700 |
|
|
10701 |
< |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
10701 |
> |
if test yes,yes = "$GCC,$enable_shared"; then |
10702 |
|
case $archive_cmds in |
10703 |
|
*'~'*) |
10704 |
|
# FIXME: we may have to deal with multi-command sequences. |
10910 |
|
|
10911 |
|
|
10912 |
|
|
10371 |
– |
|
10372 |
– |
|
10373 |
– |
|
10374 |
– |
|
10375 |
– |
|
10913 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10914 |
|
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
10915 |
|
|
10916 |
< |
if test "$GCC" = yes; then |
10916 |
> |
if test yes = "$GCC"; then |
10917 |
|
case $host_os in |
10918 |
< |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
10919 |
< |
*) lt_awk_arg="/^libraries:/" ;; |
10918 |
> |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10919 |
> |
*) lt_awk_arg='/^libraries:/' ;; |
10920 |
|
esac |
10921 |
|
case $host_os in |
10922 |
< |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
10923 |
< |
*) lt_sed_strip_eq="s,=/,/,g" ;; |
10922 |
> |
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10923 |
> |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
10924 |
|
esac |
10925 |
|
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
10926 |
|
case $lt_search_path_spec in |
10936 |
|
;; |
10937 |
|
esac |
10938 |
|
# Ok, now we have the path, separated by spaces, we can step through it |
10939 |
< |
# and add multilib dir if necessary. |
10939 |
> |
# and add multilib dir if necessary... |
10940 |
|
lt_tmp_lt_search_path_spec= |
10941 |
< |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10941 |
> |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10942 |
> |
# ...but if some path component already ends with the multilib dir we assume |
10943 |
> |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
10944 |
> |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
10945 |
> |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
10946 |
> |
lt_multi_os_dir= |
10947 |
> |
;; |
10948 |
> |
esac |
10949 |
|
for lt_sys_path in $lt_search_path_spec; do |
10950 |
< |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
10951 |
< |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
10952 |
< |
else |
10950 |
> |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10951 |
> |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
10952 |
> |
elif test -n "$lt_multi_os_dir"; then |
10953 |
|
test -d "$lt_sys_path" && \ |
10954 |
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10955 |
|
fi |
10956 |
|
done |
10957 |
|
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
10958 |
< |
BEGIN {RS=" "; FS="/|\n";} { |
10959 |
< |
lt_foo=""; |
10960 |
< |
lt_count=0; |
10958 |
> |
BEGIN {RS = " "; FS = "/|\n";} { |
10959 |
> |
lt_foo = ""; |
10960 |
> |
lt_count = 0; |
10961 |
|
for (lt_i = NF; lt_i > 0; lt_i--) { |
10962 |
|
if ($lt_i != "" && $lt_i != ".") { |
10963 |
|
if ($lt_i == "..") { |
10964 |
|
lt_count++; |
10965 |
|
} else { |
10966 |
|
if (lt_count == 0) { |
10967 |
< |
lt_foo="/" $lt_i lt_foo; |
10967 |
> |
lt_foo = "/" $lt_i lt_foo; |
10968 |
|
} else { |
10969 |
|
lt_count--; |
10970 |
|
} |
10978 |
|
# for these hosts. |
10979 |
|
case $host_os in |
10980 |
|
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
10981 |
< |
$SED 's,/\([A-Za-z]:\),\1,g'` ;; |
10981 |
> |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
10982 |
|
esac |
10983 |
|
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
10984 |
|
else |
10987 |
|
library_names_spec= |
10988 |
|
libname_spec='lib$name' |
10989 |
|
soname_spec= |
10990 |
< |
shrext_cmds=".so" |
10990 |
> |
shrext_cmds=.so |
10991 |
|
postinstall_cmds= |
10992 |
|
postuninstall_cmds= |
10993 |
|
finish_cmds= |
11004 |
|
# flags to be left without arguments |
11005 |
|
need_version=unknown |
11006 |
|
|
11007 |
+ |
|
11008 |
+ |
|
11009 |
|
case $host_os in |
11010 |
|
aix3*) |
11011 |
< |
version_type=linux |
11012 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11011 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11012 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
11013 |
|
shlibpath_var=LIBPATH |
11014 |
|
|
11015 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
11016 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11016 |
> |
soname_spec='$libname$release$shared_ext$major' |
11017 |
|
;; |
11018 |
|
|
11019 |
|
aix[4-9]*) |
11020 |
< |
version_type=linux |
11020 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11021 |
|
need_lib_prefix=no |
11022 |
|
need_version=no |
11023 |
|
hardcode_into_libs=yes |
11024 |
< |
if test "$host_cpu" = ia64; then |
11024 |
> |
if test ia64 = "$host_cpu"; then |
11025 |
|
# AIX 5 supports IA64 |
11026 |
< |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11026 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
11027 |
|
shlibpath_var=LD_LIBRARY_PATH |
11028 |
|
else |
11029 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
11030 |
|
# for dependence libraries. The import file would start with |
11031 |
< |
# the line `#! .'. This would cause the generated library to |
11032 |
< |
# depend on `.', always an invalid library. This was fixed in |
11031 |
> |
# the line '#! .'. This would cause the generated library to |
11032 |
> |
# depend on '.', always an invalid library. This was fixed in |
11033 |
|
# development snapshots of GCC prior to 3.0. |
11034 |
|
case $host_os in |
11035 |
|
aix4 | aix4.[01] | aix4.[01].*) |
11036 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11037 |
|
echo ' yes ' |
11038 |
< |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
11038 |
> |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
11039 |
|
: |
11040 |
|
else |
11041 |
|
can_build_shared=no |
11042 |
|
fi |
11043 |
|
;; |
11044 |
|
esac |
11045 |
< |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
11045 |
> |
# Using Import Files as archive members, it is possible to support |
11046 |
> |
# filename-based versioning of shared library archives on AIX. While |
11047 |
> |
# this would work for both with and without runtime linking, it will |
11048 |
> |
# prevent static linking of such archives. So we do filename-based |
11049 |
> |
# shared library versioning with .so extension only, which is used |
11050 |
> |
# when both runtime linking and shared linking is enabled. |
11051 |
> |
# Unfortunately, runtime linking may impact performance, so we do |
11052 |
> |
# not want this to be the default eventually. Also, we use the |
11053 |
> |
# versioned .so libs for executables only if there is the -brtl |
11054 |
> |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
11055 |
> |
# To allow for filename-based versioning support, we need to create |
11056 |
> |
# libNAME.so.V as an archive file, containing: |
11057 |
> |
# *) an Import File, referring to the versioned filename of the |
11058 |
> |
# archive as well as the shared archive member, telling the |
11059 |
> |
# bitwidth (32 or 64) of that shared object, and providing the |
11060 |
> |
# list of exported symbols of that shared object, eventually |
11061 |
> |
# decorated with the 'weak' keyword |
11062 |
> |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
11063 |
> |
# it being seen by the linker. |
11064 |
> |
# At run time we better use the real file rather than another symlink, |
11065 |
> |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
11066 |
> |
|
11067 |
> |
case $with_aix_soname,$aix_use_runtimelinking in |
11068 |
> |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
11069 |
|
# soname into executable. Probably we can add versioning support to |
11070 |
|
# collect2, so additional links can be useful in future. |
11071 |
< |
if test "$aix_use_runtimelinking" = yes; then |
11071 |
> |
aix,yes) # traditional libtool |
11072 |
> |
dynamic_linker='AIX unversionable lib.so' |
11073 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11074 |
|
# instead of lib<name>.a to let people know that these are not |
11075 |
|
# typical AIX shared libraries. |
11076 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11077 |
< |
else |
11076 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11077 |
> |
;; |
11078 |
> |
aix,no) # traditional AIX only |
11079 |
> |
dynamic_linker='AIX lib.a(lib.so.V)' |
11080 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
11081 |
|
# and later when we are not doing run time linking. |
11082 |
< |
library_names_spec='${libname}${release}.a $libname.a' |
11083 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11084 |
< |
fi |
11082 |
> |
library_names_spec='$libname$release.a $libname.a' |
11083 |
> |
soname_spec='$libname$release$shared_ext$major' |
11084 |
> |
;; |
11085 |
> |
svr4,*) # full svr4 only |
11086 |
> |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
11087 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
11088 |
> |
# We do not specify a path in Import Files, so LIBPATH fires. |
11089 |
> |
shlibpath_overrides_runpath=yes |
11090 |
> |
;; |
11091 |
> |
*,yes) # both, prefer svr4 |
11092 |
> |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
11093 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
11094 |
> |
# unpreferred sharedlib libNAME.a needs extra handling |
11095 |
> |
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"' |
11096 |
> |
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"' |
11097 |
> |
# We do not specify a path in Import Files, so LIBPATH fires. |
11098 |
> |
shlibpath_overrides_runpath=yes |
11099 |
> |
;; |
11100 |
> |
*,no) # both, prefer aix |
11101 |
> |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
11102 |
> |
library_names_spec='$libname$release.a $libname.a' |
11103 |
> |
soname_spec='$libname$release$shared_ext$major' |
11104 |
> |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
11105 |
> |
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)' |
11106 |
> |
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"' |
11107 |
> |
;; |
11108 |
> |
esac |
11109 |
|
shlibpath_var=LIBPATH |
11110 |
|
fi |
11111 |
|
;; |
11115 |
|
powerpc) |
11116 |
|
# Since July 2007 AmigaOS4 officially supports .so libraries. |
11117 |
|
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
11118 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11118 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11119 |
|
;; |
11120 |
|
m68k) |
11121 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
11122 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
11123 |
< |
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' |
11123 |
> |
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' |
11124 |
|
;; |
11125 |
|
esac |
11126 |
|
;; |
11127 |
|
|
11128 |
|
beos*) |
11129 |
< |
library_names_spec='${libname}${shared_ext}' |
11129 |
> |
library_names_spec='$libname$shared_ext' |
11130 |
|
dynamic_linker="$host_os ld.so" |
11131 |
|
shlibpath_var=LIBRARY_PATH |
11132 |
|
;; |
11133 |
|
|
11134 |
|
bsdi[45]*) |
11135 |
< |
version_type=linux |
11135 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11136 |
|
need_version=no |
11137 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11138 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11137 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11138 |
> |
soname_spec='$libname$release$shared_ext$major' |
11139 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11140 |
|
shlibpath_var=LD_LIBRARY_PATH |
11141 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11147 |
|
|
11148 |
|
cygwin* | mingw* | pw32* | cegcc*) |
11149 |
|
version_type=windows |
11150 |
< |
shrext_cmds=".dll" |
11150 |
> |
shrext_cmds=.dll |
11151 |
|
need_version=no |
11152 |
|
need_lib_prefix=no |
11153 |
|
|
11156 |
|
# gcc |
11157 |
|
library_names_spec='$libname.dll.a' |
11158 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
11159 |
< |
postinstall_cmds='base_file=`basename \${file}`~ |
11160 |
< |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
11159 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
11160 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
11161 |
|
dldir=$destdir/`dirname \$dlpath`~ |
11162 |
|
test -d \$dldir || mkdir -p \$dldir~ |
11163 |
|
$install_prog $dir/$dlname \$dldir/$dlname~ |
11173 |
|
case $host_os in |
11174 |
|
cygwin*) |
11175 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
11176 |
< |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11176 |
> |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11177 |
|
|
11178 |
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11179 |
|
;; |
11180 |
|
mingw* | cegcc*) |
11181 |
|
# MinGW DLLs use traditional 'lib' prefix |
11182 |
< |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11182 |
> |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11183 |
|
;; |
11184 |
|
pw32*) |
11185 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
11186 |
< |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11186 |
> |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11187 |
|
;; |
11188 |
|
esac |
11189 |
|
dynamic_linker='Win32 ld.exe' |
11192 |
|
*,cl*) |
11193 |
|
# Native MSVC |
11194 |
|
libname_spec='$name' |
11195 |
< |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11196 |
< |
library_names_spec='${libname}.dll.lib' |
11195 |
> |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11196 |
> |
library_names_spec='$libname.dll.lib' |
11197 |
|
|
11198 |
|
case $build_os in |
11199 |
|
mingw*) |
11220 |
|
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11221 |
|
;; |
11222 |
|
*) |
11223 |
< |
sys_lib_search_path_spec="$LIB" |
11223 |
> |
sys_lib_search_path_spec=$LIB |
11224 |
|
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
11225 |
|
# It is most probably a Windows format PATH. |
11226 |
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11233 |
|
esac |
11234 |
|
|
11235 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
11236 |
< |
postinstall_cmds='base_file=`basename \${file}`~ |
11237 |
< |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
11236 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
11237 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
11238 |
|
dldir=$destdir/`dirname \$dlpath`~ |
11239 |
|
test -d \$dldir || mkdir -p \$dldir~ |
11240 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
11247 |
|
|
11248 |
|
*) |
11249 |
|
# Assume MSVC wrapper |
11250 |
< |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
11250 |
> |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
11251 |
|
dynamic_linker='Win32 ld.exe' |
11252 |
|
;; |
11253 |
|
esac |
11260 |
|
version_type=darwin |
11261 |
|
need_lib_prefix=no |
11262 |
|
need_version=no |
11263 |
< |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
11264 |
< |
soname_spec='${libname}${release}${major}$shared_ext' |
11263 |
> |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
11264 |
> |
soname_spec='$libname$release$major$shared_ext' |
11265 |
|
shlibpath_overrides_runpath=yes |
11266 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
11267 |
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
11271 |
|
;; |
11272 |
|
|
11273 |
|
dgux*) |
11274 |
< |
version_type=linux |
11274 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11275 |
|
need_lib_prefix=no |
11276 |
|
need_version=no |
11277 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
11278 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11277 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11278 |
> |
soname_spec='$libname$release$shared_ext$major' |
11279 |
|
shlibpath_var=LD_LIBRARY_PATH |
11280 |
|
;; |
11281 |
|
|
10686 |
– |
freebsd1*) |
10687 |
– |
dynamic_linker=no |
10688 |
– |
;; |
10689 |
– |
|
11282 |
|
freebsd* | dragonfly*) |
11283 |
|
# DragonFly does not have aout. When/if they implement a new |
11284 |
|
# versioning mechanism, adjust this. |
11286 |
|
objformat=`/usr/bin/objformat` |
11287 |
|
else |
11288 |
|
case $host_os in |
11289 |
< |
freebsd[123]*) objformat=aout ;; |
11289 |
> |
freebsd[23].*) objformat=aout ;; |
11290 |
|
*) objformat=elf ;; |
11291 |
|
esac |
11292 |
|
fi |
11293 |
|
version_type=freebsd-$objformat |
11294 |
|
case $version_type in |
11295 |
|
freebsd-elf*) |
11296 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
11296 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11297 |
> |
soname_spec='$libname$release$shared_ext$major' |
11298 |
|
need_version=no |
11299 |
|
need_lib_prefix=no |
11300 |
|
;; |
11301 |
|
freebsd-*) |
11302 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
11302 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11303 |
|
need_version=yes |
11304 |
|
;; |
11305 |
|
esac |
11306 |
|
shlibpath_var=LD_LIBRARY_PATH |
11307 |
|
case $host_os in |
11308 |
< |
freebsd2*) |
11308 |
> |
freebsd2.*) |
11309 |
|
shlibpath_overrides_runpath=yes |
11310 |
|
;; |
11311 |
|
freebsd3.[01]* | freebsdelf3.[01]*) |
11324 |
|
esac |
11325 |
|
;; |
11326 |
|
|
10734 |
– |
gnu*) |
10735 |
– |
version_type=linux |
10736 |
– |
need_lib_prefix=no |
10737 |
– |
need_version=no |
10738 |
– |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
10739 |
– |
soname_spec='${libname}${release}${shared_ext}$major' |
10740 |
– |
shlibpath_var=LD_LIBRARY_PATH |
10741 |
– |
hardcode_into_libs=yes |
10742 |
– |
;; |
10743 |
– |
|
11327 |
|
haiku*) |
11328 |
< |
version_type=linux |
11328 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11329 |
|
need_lib_prefix=no |
11330 |
|
need_version=no |
11331 |
|
dynamic_linker="$host_os runtime_loader" |
11332 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
11333 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11332 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11333 |
> |
soname_spec='$libname$release$shared_ext$major' |
11334 |
|
shlibpath_var=LIBRARY_PATH |
11335 |
< |
shlibpath_overrides_runpath=yes |
11335 |
> |
shlibpath_overrides_runpath=no |
11336 |
|
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
11337 |
|
hardcode_into_libs=yes |
11338 |
|
;; |
11350 |
|
dynamic_linker="$host_os dld.so" |
11351 |
|
shlibpath_var=LD_LIBRARY_PATH |
11352 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
11353 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11354 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11355 |
< |
if test "X$HPUX_IA64_MODE" = X32; then |
11353 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11354 |
> |
soname_spec='$libname$release$shared_ext$major' |
11355 |
> |
if test 32 = "$HPUX_IA64_MODE"; then |
11356 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
11357 |
+ |
sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
11358 |
|
else |
11359 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
11360 |
+ |
sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
11361 |
|
fi |
10777 |
– |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11362 |
|
;; |
11363 |
|
hppa*64*) |
11364 |
|
shrext_cmds='.sl' |
11366 |
|
dynamic_linker="$host_os dld.sl" |
11367 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
11368 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
11369 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11370 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11369 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11370 |
> |
soname_spec='$libname$release$shared_ext$major' |
11371 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
11372 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11373 |
|
;; |
11376 |
|
dynamic_linker="$host_os dld.sl" |
11377 |
|
shlibpath_var=SHLIB_PATH |
11378 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
11379 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11380 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11379 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11380 |
> |
soname_spec='$libname$release$shared_ext$major' |
11381 |
|
;; |
11382 |
|
esac |
11383 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
11387 |
|
;; |
11388 |
|
|
11389 |
|
interix[3-9]*) |
11390 |
< |
version_type=linux |
11390 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11391 |
|
need_lib_prefix=no |
11392 |
|
need_version=no |
11393 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11394 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11393 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11394 |
> |
soname_spec='$libname$release$shared_ext$major' |
11395 |
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
11396 |
|
shlibpath_var=LD_LIBRARY_PATH |
11397 |
|
shlibpath_overrides_runpath=no |
11402 |
|
case $host_os in |
11403 |
|
nonstopux*) version_type=nonstopux ;; |
11404 |
|
*) |
11405 |
< |
if test "$lt_cv_prog_gnu_ld" = yes; then |
11406 |
< |
version_type=linux |
11405 |
> |
if test yes = "$lt_cv_prog_gnu_ld"; then |
11406 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11407 |
|
else |
11408 |
|
version_type=irix |
11409 |
|
fi ;; |
11410 |
|
esac |
11411 |
|
need_lib_prefix=no |
11412 |
|
need_version=no |
11413 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11414 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
11413 |
> |
soname_spec='$libname$release$shared_ext$major' |
11414 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
11415 |
|
case $host_os in |
11416 |
|
irix5* | nonstopux*) |
11417 |
|
libsuff= shlibsuff= |
11430 |
|
esac |
11431 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
11432 |
|
shlibpath_overrides_runpath=no |
11433 |
< |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
11434 |
< |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
11433 |
> |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
11434 |
> |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
11435 |
|
hardcode_into_libs=yes |
11436 |
|
;; |
11437 |
|
|
11440 |
|
dynamic_linker=no |
11441 |
|
;; |
11442 |
|
|
11443 |
< |
# This must be Linux ELF. |
11444 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
11445 |
< |
version_type=linux |
11443 |
> |
linux*android*) |
11444 |
> |
version_type=none # Android doesn't support versioned libraries. |
11445 |
> |
need_lib_prefix=no |
11446 |
> |
need_version=no |
11447 |
> |
library_names_spec='$libname$release$shared_ext' |
11448 |
> |
soname_spec='$libname$release$shared_ext' |
11449 |
> |
finish_cmds= |
11450 |
> |
shlibpath_var=LD_LIBRARY_PATH |
11451 |
> |
shlibpath_overrides_runpath=yes |
11452 |
> |
|
11453 |
> |
# This implies no fast_install, which is unacceptable. |
11454 |
> |
# Some rework will be needed to allow for fast_install |
11455 |
> |
# before this can be enabled. |
11456 |
> |
hardcode_into_libs=yes |
11457 |
> |
|
11458 |
> |
dynamic_linker='Android linker' |
11459 |
> |
# Don't embed -rpath directories since the linker doesn't support them. |
11460 |
> |
hardcode_libdir_flag_spec='-L$libdir' |
11461 |
> |
;; |
11462 |
> |
|
11463 |
> |
# This must be glibc/ELF. |
11464 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
11465 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11466 |
|
need_lib_prefix=no |
11467 |
|
need_version=no |
11468 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11469 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11468 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11469 |
> |
soname_spec='$libname$release$shared_ext$major' |
11470 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11471 |
|
shlibpath_var=LD_LIBRARY_PATH |
11472 |
|
shlibpath_overrides_runpath=no |
11510 |
|
# before this can be enabled. |
11511 |
|
hardcode_into_libs=yes |
11512 |
|
|
11513 |
< |
# Append ld.so.conf contents to the search path |
11513 |
> |
# Ideally, we could use ldconfig to report *all* directores which are |
11514 |
> |
# searched for libraries, however this is still not possible. Aside from not |
11515 |
> |
# being certain /sbin/ldconfig is available, command |
11516 |
> |
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
11517 |
> |
# even though it is searched at run-time. Try to do the best guess by |
11518 |
> |
# appending ld.so.conf contents (and includes) to the search path. |
11519 |
|
if test -f /etc/ld.so.conf; then |
11520 |
|
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' ' '` |
11521 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11535 |
|
need_lib_prefix=no |
11536 |
|
need_version=no |
11537 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
11538 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11538 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11539 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11540 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
11541 |
|
else |
11542 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11543 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11542 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11543 |
> |
soname_spec='$libname$release$shared_ext$major' |
11544 |
|
dynamic_linker='NetBSD ld.elf_so' |
11545 |
|
fi |
11546 |
|
shlibpath_var=LD_LIBRARY_PATH |
11549 |
|
;; |
11550 |
|
|
11551 |
|
newsos6) |
11552 |
< |
version_type=linux |
11553 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11552 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11553 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11554 |
|
shlibpath_var=LD_LIBRARY_PATH |
11555 |
|
shlibpath_overrides_runpath=yes |
11556 |
|
;; |
11559 |
|
version_type=qnx |
11560 |
|
need_lib_prefix=no |
11561 |
|
need_version=no |
11562 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11563 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11562 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11563 |
> |
soname_spec='$libname$release$shared_ext$major' |
11564 |
|
shlibpath_var=LD_LIBRARY_PATH |
11565 |
|
shlibpath_overrides_runpath=no |
11566 |
|
hardcode_into_libs=yes |
11567 |
|
dynamic_linker='ldqnx.so' |
11568 |
|
;; |
11569 |
|
|
11570 |
< |
openbsd*) |
11570 |
> |
openbsd* | bitrig*) |
11571 |
|
version_type=sunos |
11572 |
< |
sys_lib_dlsearch_path_spec="/usr/lib" |
11572 |
> |
sys_lib_dlsearch_path_spec=/usr/lib |
11573 |
|
need_lib_prefix=no |
11574 |
< |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
11575 |
< |
case $host_os in |
10967 |
< |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10968 |
< |
*) need_version=no ;; |
10969 |
< |
esac |
10970 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10971 |
< |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
10972 |
< |
shlibpath_var=LD_LIBRARY_PATH |
10973 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10974 |
< |
case $host_os in |
10975 |
< |
openbsd2.[89] | openbsd2.[89].*) |
10976 |
< |
shlibpath_overrides_runpath=no |
10977 |
< |
;; |
10978 |
< |
*) |
10979 |
< |
shlibpath_overrides_runpath=yes |
10980 |
< |
;; |
10981 |
< |
esac |
11574 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11575 |
> |
need_version=no |
11576 |
|
else |
11577 |
< |
shlibpath_overrides_runpath=yes |
11577 |
> |
need_version=yes |
11578 |
|
fi |
11579 |
+ |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11580 |
+ |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11581 |
+ |
shlibpath_var=LD_LIBRARY_PATH |
11582 |
+ |
shlibpath_overrides_runpath=yes |
11583 |
|
;; |
11584 |
|
|
11585 |
|
os2*) |
11586 |
|
libname_spec='$name' |
11587 |
< |
shrext_cmds=".dll" |
11587 |
> |
version_type=windows |
11588 |
> |
shrext_cmds=.dll |
11589 |
> |
need_version=no |
11590 |
|
need_lib_prefix=no |
11591 |
< |
library_names_spec='$libname${shared_ext} $libname.a' |
11591 |
> |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
11592 |
> |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
11593 |
> |
v=$($ECHO $release$versuffix | tr -d .-); |
11594 |
> |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
11595 |
> |
$ECHO $n$v`$shared_ext' |
11596 |
> |
library_names_spec='${libname}_dll.$libext' |
11597 |
|
dynamic_linker='OS/2 ld.exe' |
11598 |
< |
shlibpath_var=LIBPATH |
11598 |
> |
shlibpath_var=BEGINLIBPATH |
11599 |
> |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11600 |
> |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11601 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
11602 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
11603 |
> |
dldir=$destdir/`dirname \$dlpath`~ |
11604 |
> |
test -d \$dldir || mkdir -p \$dldir~ |
11605 |
> |
$install_prog $dir/$dlname \$dldir/$dlname~ |
11606 |
> |
chmod a+x \$dldir/$dlname~ |
11607 |
> |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
11608 |
> |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
11609 |
> |
fi' |
11610 |
> |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
11611 |
> |
dlpath=$dir/\$dldll~ |
11612 |
> |
$RM \$dlpath' |
11613 |
|
;; |
11614 |
|
|
11615 |
|
osf3* | osf4* | osf5*) |
11616 |
|
version_type=osf |
11617 |
|
need_lib_prefix=no |
11618 |
|
need_version=no |
11619 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11620 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11619 |
> |
soname_spec='$libname$release$shared_ext$major' |
11620 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11621 |
|
shlibpath_var=LD_LIBRARY_PATH |
11622 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
11623 |
< |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
11623 |
> |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11624 |
|
;; |
11625 |
|
|
11626 |
|
rdos*) |
11628 |
|
;; |
11629 |
|
|
11630 |
|
solaris*) |
11631 |
< |
version_type=linux |
11631 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11632 |
|
need_lib_prefix=no |
11633 |
|
need_version=no |
11634 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11635 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11634 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11635 |
> |
soname_spec='$libname$release$shared_ext$major' |
11636 |
|
shlibpath_var=LD_LIBRARY_PATH |
11637 |
|
shlibpath_overrides_runpath=yes |
11638 |
|
hardcode_into_libs=yes |
11642 |
|
|
11643 |
|
sunos4*) |
11644 |
|
version_type=sunos |
11645 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11645 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11646 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11647 |
|
shlibpath_var=LD_LIBRARY_PATH |
11648 |
|
shlibpath_overrides_runpath=yes |
11649 |
< |
if test "$with_gnu_ld" = yes; then |
11649 |
> |
if test yes = "$with_gnu_ld"; then |
11650 |
|
need_lib_prefix=no |
11651 |
|
fi |
11652 |
|
need_version=yes |
11653 |
|
;; |
11654 |
|
|
11655 |
|
sysv4 | sysv4.3*) |
11656 |
< |
version_type=linux |
11657 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11658 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11656 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11657 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11658 |
> |
soname_spec='$libname$release$shared_ext$major' |
11659 |
|
shlibpath_var=LD_LIBRARY_PATH |
11660 |
|
case $host_vendor in |
11661 |
|
sni) |
11676 |
|
;; |
11677 |
|
|
11678 |
|
sysv4*MP*) |
11679 |
< |
if test -d /usr/nec ;then |
11680 |
< |
version_type=linux |
11681 |
< |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
11682 |
< |
soname_spec='$libname${shared_ext}.$major' |
11679 |
> |
if test -d /usr/nec; then |
11680 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11681 |
> |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11682 |
> |
soname_spec='$libname$shared_ext.$major' |
11683 |
|
shlibpath_var=LD_LIBRARY_PATH |
11684 |
|
fi |
11685 |
|
;; |
11686 |
|
|
11687 |
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11688 |
< |
version_type=freebsd-elf |
11688 |
> |
version_type=sco |
11689 |
|
need_lib_prefix=no |
11690 |
|
need_version=no |
11691 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
11692 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11691 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11692 |
> |
soname_spec='$libname$release$shared_ext$major' |
11693 |
|
shlibpath_var=LD_LIBRARY_PATH |
11694 |
|
shlibpath_overrides_runpath=yes |
11695 |
|
hardcode_into_libs=yes |
11696 |
< |
if test "$with_gnu_ld" = yes; then |
11696 |
> |
if test yes = "$with_gnu_ld"; then |
11697 |
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11698 |
|
else |
11699 |
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11708 |
|
|
11709 |
|
tpf*) |
11710 |
|
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
11711 |
< |
version_type=linux |
11711 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11712 |
|
need_lib_prefix=no |
11713 |
|
need_version=no |
11714 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11714 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11715 |
|
shlibpath_var=LD_LIBRARY_PATH |
11716 |
|
shlibpath_overrides_runpath=no |
11717 |
|
hardcode_into_libs=yes |
11718 |
|
;; |
11719 |
|
|
11720 |
|
uts4*) |
11721 |
< |
version_type=linux |
11722 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11723 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
11721 |
> |
version_type=linux # correct to gnu/linux during the next big refactor |
11722 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11723 |
> |
soname_spec='$libname$release$shared_ext$major' |
11724 |
|
shlibpath_var=LD_LIBRARY_PATH |
11725 |
|
;; |
11726 |
|
|
11730 |
|
esac |
11731 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11732 |
|
$as_echo "$dynamic_linker" >&6; } |
11733 |
< |
test "$dynamic_linker" = no && can_build_shared=no |
11733 |
> |
test no = "$dynamic_linker" && can_build_shared=no |
11734 |
|
|
11735 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11736 |
< |
if test "$GCC" = yes; then |
11736 |
> |
if test yes = "$GCC"; then |
11737 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11738 |
|
fi |
11739 |
|
|
11740 |
< |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11741 |
< |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
11740 |
> |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11741 |
> |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
11742 |
|
fi |
11743 |
< |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
11744 |
< |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
11743 |
> |
|
11744 |
> |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
11745 |
> |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
11746 |
|
fi |
11747 |
|
|
11748 |
+ |
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11749 |
+ |
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
11750 |
+ |
|
11751 |
+ |
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
11752 |
+ |
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
11753 |
+ |
|
11754 |
+ |
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
11755 |
+ |
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
11756 |
+ |
|
11757 |
+ |
|
11758 |
+ |
|
11759 |
+ |
|
11760 |
+ |
|
11761 |
+ |
|
11762 |
|
|
11763 |
|
|
11764 |
|
|
11855 |
|
hardcode_action= |
11856 |
|
if test -n "$hardcode_libdir_flag_spec" || |
11857 |
|
test -n "$runpath_var" || |
11858 |
< |
test "X$hardcode_automatic" = "Xyes" ; then |
11858 |
> |
test yes = "$hardcode_automatic"; then |
11859 |
|
|
11860 |
|
# We can hardcode non-existent directories. |
11861 |
< |
if test "$hardcode_direct" != no && |
11861 |
> |
if test no != "$hardcode_direct" && |
11862 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
11863 |
|
# have to relink, otherwise we might link with an installed library |
11864 |
|
# when we should be linking with a yet-to-be-installed one |
11865 |
< |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
11866 |
< |
test "$hardcode_minus_L" != no; then |
11865 |
> |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11866 |
> |
test no != "$hardcode_minus_L"; then |
11867 |
|
# Linking always hardcodes the temporary library directory. |
11868 |
|
hardcode_action=relink |
11869 |
|
else |
11878 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11879 |
|
$as_echo "$hardcode_action" >&6; } |
11880 |
|
|
11881 |
< |
if test "$hardcode_action" = relink || |
11882 |
< |
test "$inherit_rpath" = yes; then |
11881 |
> |
if test relink = "$hardcode_action" || |
11882 |
> |
test yes = "$inherit_rpath"; then |
11883 |
|
# Fast installation is not supported |
11884 |
|
enable_fast_install=no |
11885 |
< |
elif test "$shlibpath_overrides_runpath" = yes || |
11886 |
< |
test "$enable_shared" = no; then |
11885 |
> |
elif test yes = "$shlibpath_overrides_runpath" || |
11886 |
> |
test no = "$enable_shared"; then |
11887 |
|
# Fast installation is not necessary |
11888 |
|
enable_fast_install=needless |
11889 |
|
fi |
11893 |
|
|
11894 |
|
|
11895 |
|
|
11896 |
< |
if test "x$enable_dlopen" != xyes; then |
11896 |
> |
if test yes != "$enable_dlopen"; then |
11897 |
|
enable_dlopen=unknown |
11898 |
|
enable_dlopen_self=unknown |
11899 |
|
enable_dlopen_self_static=unknown |
11903 |
|
|
11904 |
|
case $host_os in |
11905 |
|
beos*) |
11906 |
< |
lt_cv_dlopen="load_add_on" |
11906 |
> |
lt_cv_dlopen=load_add_on |
11907 |
|
lt_cv_dlopen_libs= |
11908 |
|
lt_cv_dlopen_self=yes |
11909 |
|
;; |
11910 |
|
|
11911 |
|
mingw* | pw32* | cegcc*) |
11912 |
< |
lt_cv_dlopen="LoadLibrary" |
11912 |
> |
lt_cv_dlopen=LoadLibrary |
11913 |
|
lt_cv_dlopen_libs= |
11914 |
|
;; |
11915 |
|
|
11916 |
|
cygwin*) |
11917 |
< |
lt_cv_dlopen="dlopen" |
11917 |
> |
lt_cv_dlopen=dlopen |
11918 |
|
lt_cv_dlopen_libs= |
11919 |
|
;; |
11920 |
|
|
11921 |
|
darwin*) |
11922 |
< |
# if libdl is installed we need to link against it |
11922 |
> |
# if libdl is installed we need to link against it |
11923 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11924 |
|
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11925 |
|
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11957 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11958 |
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11959 |
|
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11960 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11960 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11961 |
|
else |
11962 |
|
|
11963 |
< |
lt_cv_dlopen="dyld" |
11963 |
> |
lt_cv_dlopen=dyld |
11964 |
|
lt_cv_dlopen_libs= |
11965 |
|
lt_cv_dlopen_self=yes |
11966 |
|
|
11968 |
|
|
11969 |
|
;; |
11970 |
|
|
11971 |
+ |
tpf*) |
11972 |
+ |
# Don't try to run any link tests for TPF. We know it's impossible |
11973 |
+ |
# because TPF is a cross-compiler, and we know how we open DSOs. |
11974 |
+ |
lt_cv_dlopen=dlopen |
11975 |
+ |
lt_cv_dlopen_libs= |
11976 |
+ |
lt_cv_dlopen_self=no |
11977 |
+ |
;; |
11978 |
+ |
|
11979 |
|
*) |
11980 |
|
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11981 |
|
if test "x$ac_cv_func_shl_load" = xyes; then : |
11982 |
< |
lt_cv_dlopen="shl_load" |
11982 |
> |
lt_cv_dlopen=shl_load |
11983 |
|
else |
11984 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11985 |
|
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
12018 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12019 |
|
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
12020 |
|
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
12021 |
< |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
12021 |
> |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
12022 |
|
else |
12023 |
|
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
12024 |
|
if test "x$ac_cv_func_dlopen" = xyes; then : |
12025 |
< |
lt_cv_dlopen="dlopen" |
12025 |
> |
lt_cv_dlopen=dlopen |
12026 |
|
else |
12027 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12028 |
|
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
12061 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12062 |
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
12063 |
|
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
12064 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12064 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
12065 |
|
else |
12066 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12067 |
|
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
12100 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12101 |
|
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
12102 |
|
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
12103 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12103 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
12104 |
|
else |
12105 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12106 |
|
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
12139 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12140 |
|
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
12141 |
|
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
12142 |
< |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
12142 |
> |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
12143 |
|
fi |
12144 |
|
|
12145 |
|
|
12160 |
|
;; |
12161 |
|
esac |
12162 |
|
|
12163 |
< |
if test "x$lt_cv_dlopen" != xno; then |
11522 |
< |
enable_dlopen=yes |
11523 |
< |
else |
12163 |
> |
if test no = "$lt_cv_dlopen"; then |
12164 |
|
enable_dlopen=no |
12165 |
+ |
else |
12166 |
+ |
enable_dlopen=yes |
12167 |
|
fi |
12168 |
|
|
12169 |
|
case $lt_cv_dlopen in |
12170 |
|
dlopen) |
12171 |
< |
save_CPPFLAGS="$CPPFLAGS" |
12172 |
< |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
12171 |
> |
save_CPPFLAGS=$CPPFLAGS |
12172 |
> |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
12173 |
|
|
12174 |
< |
save_LDFLAGS="$LDFLAGS" |
12174 |
> |
save_LDFLAGS=$LDFLAGS |
12175 |
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
12176 |
|
|
12177 |
< |
save_LIBS="$LIBS" |
12177 |
> |
save_LIBS=$LIBS |
12178 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
12179 |
|
|
12180 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12182 |
|
if ${lt_cv_dlopen_self+:} false; then : |
12183 |
|
$as_echo_n "(cached) " >&6 |
12184 |
|
else |
12185 |
< |
if test "$cross_compiling" = yes; then : |
12185 |
> |
if test yes = "$cross_compiling"; then : |
12186 |
|
lt_cv_dlopen_self=cross |
12187 |
|
else |
12188 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12229 |
|
# endif |
12230 |
|
#endif |
12231 |
|
|
12232 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
12232 |
> |
/* When -fvisibility=hidden is used, assume the code has been annotated |
12233 |
|
correspondingly for the symbols needed. */ |
12234 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
12234 |
> |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
12235 |
|
int fnord () __attribute__((visibility("default"))); |
12236 |
|
#endif |
12237 |
|
|
12261 |
|
(eval $ac_link) 2>&5 |
12262 |
|
ac_status=$? |
12263 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12264 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12264 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
12265 |
|
(./conftest; exit; ) >&5 2>/dev/null |
12266 |
|
lt_status=$? |
12267 |
|
case x$lt_status in |
12281 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12282 |
|
$as_echo "$lt_cv_dlopen_self" >&6; } |
12283 |
|
|
12284 |
< |
if test "x$lt_cv_dlopen_self" = xyes; then |
12284 |
> |
if test yes = "$lt_cv_dlopen_self"; then |
12285 |
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
12286 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12287 |
|
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
12288 |
|
if ${lt_cv_dlopen_self_static+:} false; then : |
12289 |
|
$as_echo_n "(cached) " >&6 |
12290 |
|
else |
12291 |
< |
if test "$cross_compiling" = yes; then : |
12291 |
> |
if test yes = "$cross_compiling"; then : |
12292 |
|
lt_cv_dlopen_self_static=cross |
12293 |
|
else |
12294 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12335 |
|
# endif |
12336 |
|
#endif |
12337 |
|
|
12338 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
12338 |
> |
/* When -fvisibility=hidden is used, assume the code has been annotated |
12339 |
|
correspondingly for the symbols needed. */ |
12340 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
12340 |
> |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
12341 |
|
int fnord () __attribute__((visibility("default"))); |
12342 |
|
#endif |
12343 |
|
|
12367 |
|
(eval $ac_link) 2>&5 |
12368 |
|
ac_status=$? |
12369 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12370 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12370 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
12371 |
|
(./conftest; exit; ) >&5 2>/dev/null |
12372 |
|
lt_status=$? |
12373 |
|
case x$lt_status in |
12388 |
|
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
12389 |
|
fi |
12390 |
|
|
12391 |
< |
CPPFLAGS="$save_CPPFLAGS" |
12392 |
< |
LDFLAGS="$save_LDFLAGS" |
12393 |
< |
LIBS="$save_LIBS" |
12391 |
> |
CPPFLAGS=$save_CPPFLAGS |
12392 |
> |
LDFLAGS=$save_LDFLAGS |
12393 |
> |
LIBS=$save_LIBS |
12394 |
|
;; |
12395 |
|
esac |
12396 |
|
|
12434 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
12435 |
|
case $host_os in |
12436 |
|
darwin*) |
12437 |
< |
if test -n "$STRIP" ; then |
12437 |
> |
if test -n "$STRIP"; then |
12438 |
|
striplib="$STRIP -x" |
12439 |
|
old_striplib="$STRIP -S" |
12440 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12462 |
|
|
12463 |
|
|
12464 |
|
|
12465 |
< |
# Report which library types will actually be built |
12465 |
> |
# Report what library types will actually be built |
12466 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12467 |
|
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
12468 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
12470 |
|
|
12471 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12472 |
|
$as_echo_n "checking whether to build shared libraries... " >&6; } |
12473 |
< |
test "$can_build_shared" = "no" && enable_shared=no |
12473 |
> |
test no = "$can_build_shared" && enable_shared=no |
12474 |
|
|
12475 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
12476 |
|
# are all built from PIC. |
12477 |
|
case $host_os in |
12478 |
|
aix3*) |
12479 |
< |
test "$enable_shared" = yes && enable_static=no |
12479 |
> |
test yes = "$enable_shared" && enable_static=no |
12480 |
|
if test -n "$RANLIB"; then |
12481 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
12482 |
|
postinstall_cmds='$RANLIB $lib' |
12484 |
|
;; |
12485 |
|
|
12486 |
|
aix[4-9]*) |
12487 |
< |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
12488 |
< |
test "$enable_shared" = yes && enable_static=no |
12487 |
> |
if test ia64 != "$host_cpu"; then |
12488 |
> |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
12489 |
> |
yes,aix,yes) ;; # shared object as lib.so file only |
12490 |
> |
yes,svr4,*) ;; # shared object as lib.so archive member only |
12491 |
> |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
12492 |
> |
esac |
12493 |
|
fi |
12494 |
|
;; |
12495 |
|
esac |
12499 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12500 |
|
$as_echo_n "checking whether to build static libraries... " >&6; } |
12501 |
|
# Make sure either enable_shared or enable_static is yes. |
12502 |
< |
test "$enable_shared" = yes || enable_static=yes |
12502 |
> |
test yes = "$enable_shared" || enable_static=yes |
12503 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12504 |
|
$as_echo "$enable_static" >&6; } |
12505 |
|
|
12513 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12514 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12515 |
|
|
12516 |
< |
CC="$lt_save_CC" |
12516 |
> |
CC=$lt_save_CC |
12517 |
> |
|
12518 |
> |
|
12519 |
|
|
12520 |
|
|
12521 |
|
|
12537 |
|
# Only expand once: |
12538 |
|
|
12539 |
|
|
12540 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
12541 |
< |
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
12540 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5 |
12541 |
> |
$as_echo_n "checking what extension is used for runtime loadable modules... " >&6; } |
12542 |
|
if ${libltdl_cv_shlibext+:} false; then : |
12543 |
|
$as_echo_n "(cached) " >&6 |
12544 |
|
else |
12545 |
|
|
12546 |
|
module=yes |
12547 |
|
eval libltdl_cv_shlibext=$shrext_cmds |
12548 |
+ |
module=no |
12549 |
+ |
eval libltdl_cv_shrext=$shrext_cmds |
12550 |
|
|
12551 |
|
fi |
12552 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
12558 |
|
_ACEOF |
12559 |
|
|
12560 |
|
fi |
12561 |
+ |
if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
12562 |
+ |
|
12563 |
+ |
cat >>confdefs.h <<_ACEOF |
12564 |
+ |
#define LT_SHARED_EXT "$libltdl_cv_shrext" |
12565 |
+ |
_ACEOF |
12566 |
+ |
|
12567 |
+ |
fi |
12568 |
+ |
if test -n "$shared_archive_member_spec"; then |
12569 |
+ |
|
12570 |
+ |
cat >>confdefs.h <<_ACEOF |
12571 |
+ |
#define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)" |
12572 |
+ |
_ACEOF |
12573 |
+ |
|
12574 |
+ |
fi |
12575 |
|
|
12576 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
12577 |
< |
$as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
12576 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5 |
12577 |
> |
$as_echo_n "checking what variable specifies run-time module search path... " >&6; } |
12578 |
|
if ${lt_cv_module_path_var+:} false; then : |
12579 |
|
$as_echo_n "(cached) " >&6 |
12580 |
|
else |
12581 |
< |
lt_cv_module_path_var="$shlibpath_var" |
12581 |
> |
lt_cv_module_path_var=$shlibpath_var |
12582 |
|
fi |
12583 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
12584 |
|
$as_echo "$lt_cv_module_path_var" >&6; } |
12595 |
|
if ${lt_cv_sys_dlsearch_path+:} false; then : |
12596 |
|
$as_echo_n "(cached) " >&6 |
12597 |
|
else |
12598 |
< |
lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
12598 |
> |
lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec |
12599 |
|
fi |
12600 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
12601 |
|
$as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
12603 |
|
sys_dlsearch_path= |
12604 |
|
for dir in $lt_cv_sys_dlsearch_path; do |
12605 |
|
if test -z "$sys_dlsearch_path"; then |
12606 |
< |
sys_dlsearch_path="$dir" |
12606 |
> |
sys_dlsearch_path=$dir |
12607 |
|
else |
12608 |
< |
sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
12608 |
> |
sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir |
12609 |
|
fi |
12610 |
|
done |
12611 |
|
|
12625 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12626 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12627 |
|
|
12628 |
+ |
lt_dlload_save_LIBS=$LIBS |
12629 |
|
|
12630 |
|
LIBADD_DLOPEN= |
12631 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
12684 |
|
|
12685 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12686 |
|
|
12687 |
< |
if test "$ac_cv_search_dlopen" != "none required" ; then |
12688 |
< |
LIBADD_DLOPEN="-ldl" |
12687 |
> |
if test "$ac_cv_search_dlopen" != "none required"; then |
12688 |
> |
LIBADD_DLOPEN=-ldl |
12689 |
|
fi |
12690 |
< |
libltdl_cv_lib_dl_dlopen="yes" |
12690 |
> |
libltdl_cv_lib_dl_dlopen=yes |
12691 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12692 |
|
else |
12693 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12708 |
|
|
12709 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12710 |
|
|
12711 |
< |
libltdl_cv_func_dlopen="yes" |
12711 |
> |
libltdl_cv_func_dlopen=yes |
12712 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12713 |
|
else |
12714 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12751 |
|
|
12752 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12753 |
|
|
12754 |
< |
LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
12754 |
> |
LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes |
12755 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12756 |
|
fi |
12757 |
|
|
12760 |
|
conftest$ac_exeext conftest.$ac_ext |
12761 |
|
fi |
12762 |
|
|
12763 |
< |
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12763 |
> |
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" |
12764 |
|
then |
12765 |
< |
lt_save_LIBS="$LIBS" |
12765 |
> |
lt_save_LIBS=$LIBS |
12766 |
|
LIBS="$LIBS $LIBADD_DLOPEN" |
12767 |
|
for ac_func in dlerror |
12768 |
|
do : |
12775 |
|
fi |
12776 |
|
done |
12777 |
|
|
12778 |
< |
LIBS="$lt_save_LIBS" |
12778 |
> |
LIBS=$lt_save_LIBS |
12779 |
|
fi |
12780 |
|
|
12781 |
|
|
12828 |
|
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
12829 |
|
|
12830 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12831 |
< |
LIBADD_SHL_LOAD="-ldld" |
12831 |
> |
LIBADD_SHL_LOAD=-ldld |
12832 |
|
fi |
12833 |
|
|
12834 |
|
fi |
12850 |
|
beos*) |
12851 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
12852 |
|
;; |
12853 |
< |
cygwin* | mingw* | os2* | pw32*) |
12853 |
> |
cygwin* | mingw* | pw32*) |
12854 |
|
ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
12855 |
|
" |
12856 |
|
if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : |
12928 |
|
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
12929 |
|
|
12930 |
|
|
12931 |
+ |
LIBS=$lt_dlload_save_LIBS |
12932 |
|
ac_ext=c |
12933 |
|
ac_cpp='$CPP $CPPFLAGS' |
12934 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12983 |
|
sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
12984 |
|
|
12985 |
|
|
12986 |
< |
if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12987 |
< |
if test x"$libltdl_cv_func_dlopen" = xyes || |
12988 |
< |
test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
12323 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
12986 |
> |
if test yes = "$lt_cv_sys_symbol_underscore"; then |
12987 |
> |
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then |
12988 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
12989 |
|
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
12990 |
|
if ${libltdl_cv_need_uscore+:} false; then : |
12991 |
|
$as_echo_n "(cached) " >&6 |
12992 |
|
else |
12993 |
|
libltdl_cv_need_uscore=unknown |
12994 |
< |
save_LIBS="$LIBS" |
12995 |
< |
LIBS="$LIBS $LIBADD_DLOPEN" |
12996 |
< |
if test "$cross_compiling" = yes; then : |
12997 |
< |
libltdl_cv_need_uscore=cross |
12333 |
< |
else |
12334 |
< |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12335 |
< |
lt_status=$lt_dlunknown |
12336 |
< |
cat > conftest.$ac_ext <<_LT_EOF |
12994 |
> |
dlsym_uscore_save_LIBS=$LIBS |
12995 |
> |
LIBS="$LIBS $LIBADD_DLOPEN" |
12996 |
> |
libname=conftmod # stay within 8.3 filename limits! |
12997 |
> |
cat >$libname.$ac_ext <<_LT_EOF |
12998 |
|
#line $LINENO "configure" |
12999 |
|
#include "confdefs.h" |
13000 |
+ |
/* When -fvisibility=hidden is used, assume the code has been annotated |
13001 |
+ |
correspondingly for the symbols needed. */ |
13002 |
+ |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
13003 |
+ |
int fnord () __attribute__((visibility("default"))); |
13004 |
+ |
#endif |
13005 |
+ |
int fnord () { return 42; } |
13006 |
+ |
_LT_EOF |
13007 |
|
|
13008 |
+ |
# ltfn_module_cmds module_cmds |
13009 |
+ |
# Execute tilde-delimited MODULE_CMDS with environment primed for |
13010 |
+ |
# $module_cmds or $archive_cmds type content. |
13011 |
+ |
ltfn_module_cmds () |
13012 |
+ |
{( # subshell avoids polluting parent global environment |
13013 |
+ |
module_cmds_save_ifs=$IFS; IFS='~' |
13014 |
+ |
for cmd in $1; do |
13015 |
+ |
IFS=$module_cmds_save_ifs |
13016 |
+ |
libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext |
13017 |
+ |
rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=. |
13018 |
+ |
major=; versuffix=; verstring=; deplibs= |
13019 |
+ |
ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag= |
13020 |
+ |
eval $cmd |
13021 |
+ |
done |
13022 |
+ |
IFS=$module_cmds_save_ifs |
13023 |
+ |
)} |
13024 |
+ |
|
13025 |
+ |
# Compile a loadable module using libtool macro expansion results. |
13026 |
+ |
$CC $pic_flag -c $libname.$ac_ext |
13027 |
+ |
ltfn_module_cmds "${module_cmds:-$archive_cmds}" |
13028 |
+ |
|
13029 |
+ |
# Try to fetch fnord with dlsym(). |
13030 |
+ |
libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2 |
13031 |
+ |
cat >conftest.$ac_ext <<_LT_EOF |
13032 |
+ |
#line $LINENO "configure" |
13033 |
+ |
#include "confdefs.h" |
13034 |
|
#if HAVE_DLFCN_H |
13035 |
|
#include <dlfcn.h> |
13036 |
|
#endif |
12343 |
– |
|
13037 |
|
#include <stdio.h> |
13038 |
< |
|
12346 |
< |
#ifdef RTLD_GLOBAL |
12347 |
< |
# define LT_DLGLOBAL RTLD_GLOBAL |
12348 |
< |
#else |
13038 |
> |
#ifndef RTLD_GLOBAL |
13039 |
|
# ifdef DL_GLOBAL |
13040 |
< |
# define LT_DLGLOBAL DL_GLOBAL |
13040 |
> |
# define RTLD_GLOBAL DL_GLOBAL |
13041 |
|
# else |
13042 |
< |
# define LT_DLGLOBAL 0 |
13042 |
> |
# define RTLD_GLOBAL 0 |
13043 |
|
# endif |
13044 |
|
#endif |
13045 |
< |
|
13046 |
< |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13047 |
< |
find out it does not work in some platform. */ |
12358 |
< |
#ifndef LT_DLLAZY_OR_NOW |
12359 |
< |
# ifdef RTLD_LAZY |
12360 |
< |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
13045 |
> |
#ifndef RTLD_NOW |
13046 |
> |
# ifdef DL_NOW |
13047 |
> |
# define RTLD_NOW DL_NOW |
13048 |
|
# else |
13049 |
< |
# ifdef DL_LAZY |
12363 |
< |
# define LT_DLLAZY_OR_NOW DL_LAZY |
12364 |
< |
# else |
12365 |
< |
# ifdef RTLD_NOW |
12366 |
< |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12367 |
< |
# else |
12368 |
< |
# ifdef DL_NOW |
12369 |
< |
# define LT_DLLAZY_OR_NOW DL_NOW |
12370 |
< |
# else |
12371 |
< |
# define LT_DLLAZY_OR_NOW 0 |
12372 |
< |
# endif |
12373 |
< |
# endif |
12374 |
< |
# endif |
13049 |
> |
# define RTLD_NOW 0 |
13050 |
|
# endif |
13051 |
|
#endif |
13052 |
< |
|
13053 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
13054 |
< |
correspondingly for the symbols needed. */ |
13055 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
13056 |
< |
int fnord () __attribute__((visibility("default"))); |
13057 |
< |
#endif |
13058 |
< |
|
13059 |
< |
int fnord () { return 42; } |
13060 |
< |
int main () |
12386 |
< |
{ |
12387 |
< |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12388 |
< |
int status = $lt_dlunknown; |
12389 |
< |
|
12390 |
< |
if (self) |
12391 |
< |
{ |
12392 |
< |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
13052 |
> |
int main () { |
13053 |
> |
void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW); |
13054 |
> |
int status = $libltdl_dlunknown; |
13055 |
> |
if (handle) { |
13056 |
> |
if (dlsym (handle, "fnord")) |
13057 |
> |
status = $libltdl_dlnouscore; |
13058 |
> |
else { |
13059 |
> |
if (dlsym (handle, "_fnord")) |
13060 |
> |
status = $libltdl_dluscore; |
13061 |
|
else |
13062 |
< |
{ |
12395 |
< |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12396 |
< |
else puts (dlerror ()); |
12397 |
< |
} |
12398 |
< |
/* dlclose (self); */ |
13062 |
> |
puts (dlerror ()); |
13063 |
|
} |
13064 |
< |
else |
13064 |
> |
dlclose (handle); |
13065 |
> |
} else |
13066 |
|
puts (dlerror ()); |
12402 |
– |
|
13067 |
|
return status; |
13068 |
|
} |
13069 |
|
_LT_EOF |
13070 |
< |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
13070 |
> |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
13071 |
|
(eval $ac_link) 2>&5 |
13072 |
|
ac_status=$? |
13073 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13074 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
13075 |
< |
(./conftest; exit; ) >&5 2>/dev/null |
13076 |
< |
lt_status=$? |
13077 |
< |
case x$lt_status in |
13078 |
< |
x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
13079 |
< |
x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
13080 |
< |
x$lt_dlunknown|x*) ;; |
13081 |
< |
esac |
13082 |
< |
else : |
13083 |
< |
# compilation failed |
13084 |
< |
|
12421 |
< |
fi |
12422 |
< |
fi |
12423 |
< |
rm -fr conftest* |
12424 |
< |
|
12425 |
< |
LIBS="$save_LIBS" |
13074 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
13075 |
> |
(./conftest; exit; ) >&5 2>/dev/null |
13076 |
> |
libltdl_status=$? |
13077 |
> |
case x$libltdl_status in |
13078 |
> |
x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;; |
13079 |
> |
x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;; |
13080 |
> |
x*) libltdl_cv_need_uscore=unknown ;; |
13081 |
> |
esac |
13082 |
> |
fi |
13083 |
> |
rm -rf conftest* $libname* |
13084 |
> |
LIBS=$dlsym_uscore_save_LIBS |
13085 |
|
|
13086 |
|
fi |
13087 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
13089 |
|
fi |
13090 |
|
fi |
13091 |
|
|
13092 |
< |
if test x"$libltdl_cv_need_uscore" = xyes; then |
13092 |
> |
if test yes = "$libltdl_cv_need_uscore"; then |
13093 |
|
|
13094 |
|
$as_echo "#define NEED_USCORE 1" >>confdefs.h |
13095 |
|
|
13108 |
|
case $host_os in |
13109 |
|
aix3*|aix4.1.*|aix4.2.*) |
13110 |
|
# Unknown whether this is true for these versions of AIX, but |
13111 |
< |
# we want this `case' here to explicitly catch those versions. |
13111 |
> |
# we want this 'case' here to explicitly catch those versions. |
13112 |
|
lt_cv_sys_dlopen_deplibs=unknown |
13113 |
|
;; |
13114 |
|
aix[4-9]*) |
13121 |
|
;; |
13122 |
|
esac |
13123 |
|
;; |
13124 |
+ |
bitrig*) |
13125 |
+ |
lt_cv_sys_dlopen_deplibs=yes |
13126 |
+ |
;; |
13127 |
|
darwin*) |
13128 |
|
# Assuming the user has installed a libdl from somewhere, this is true |
13129 |
|
# If you are looking for one http://www.opendarwin.org/projects/dlcompat |
13161 |
|
osf[1234]*) |
13162 |
|
# dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
13163 |
|
# it did *not* use an RPATH in a shared library to find objects the |
13164 |
< |
# library depends on, so we explicitly say `no'. |
13164 |
> |
# library depends on, so we explicitly say 'no'. |
13165 |
|
lt_cv_sys_dlopen_deplibs=no |
13166 |
|
;; |
13167 |
|
osf5.0|osf5.0a|osf5.1) |
13170 |
|
# that the library depends on, but there's no easy way to know if that |
13171 |
|
# patch is installed. Since this is the case, all we can really |
13172 |
|
# say is unknown -- it depends on the patch being installed. If |
13173 |
< |
# it is, this changes to `yes'. Without it, it would be `no'. |
13173 |
> |
# it is, this changes to 'yes'. Without it, it would be 'no'. |
13174 |
|
lt_cv_sys_dlopen_deplibs=unknown |
13175 |
|
;; |
13176 |
|
osf*) |
13177 |
|
# the two cases above should catch all versions of osf <= 5.1. Read |
13178 |
|
# the comments above for what we know about them. |
13179 |
|
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
13180 |
< |
# is used to find them so we can finally say `yes'. |
13180 |
> |
# is used to find them so we can finally say 'yes'. |
13181 |
|
lt_cv_sys_dlopen_deplibs=yes |
13182 |
|
;; |
13183 |
|
qnx*) |
13194 |
|
fi |
13195 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
13196 |
|
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
13197 |
< |
if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
13197 |
> |
if test yes != "$lt_cv_sys_dlopen_deplibs"; then |
13198 |
|
|
13199 |
|
$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
13200 |
|
|
13201 |
|
fi |
13202 |
|
|
12541 |
– |
: |
13203 |
|
|
13204 |
|
for ac_header in argz.h |
13205 |
|
do : |
13236 |
|
fi |
13237 |
|
|
13238 |
|
|
13239 |
< |
ARGZ_H= |
13239 |
> |
LT_ARGZ_H= |
13240 |
|
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
13241 |
|
argz_next argz_stringify |
13242 |
|
do : |
13248 |
|
_ACEOF |
13249 |
|
|
13250 |
|
else |
13251 |
< |
ARGZ_H=argz.h; |
13251 |
> |
LT_ARGZ_H=lt__argz.h; |
13252 |
|
|
13253 |
< |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
13253 |
> |
_LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" |
13254 |
|
|
13255 |
|
fi |
13256 |
|
done |
13257 |
|
|
13258 |
|
|
13259 |
< |
if test -z "$ARGZ_H"; then : |
13259 |
> |
if test -z "$LT_ARGZ_H"; then : |
13260 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
13261 |
|
$as_echo_n "checking if argz actually works... " >&6; } |
13262 |
|
if ${lt_cv_sys_argz_works+:} false; then : |
13265 |
|
case $host_os in #( |
13266 |
|
*cygwin*) |
13267 |
|
lt_cv_sys_argz_works=no |
13268 |
< |
if test "$cross_compiling" != no; then |
13268 |
> |
if test no != "$cross_compiling"; then |
13269 |
|
lt_cv_sys_argz_works="guessing no" |
13270 |
|
else |
13271 |
|
lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
13276 |
|
lt_os_major=${2-0} |
13277 |
|
lt_os_minor=${3-0} |
13278 |
|
lt_os_micro=${4-0} |
13279 |
< |
if test "$lt_os_major" -gt 1 \ |
13280 |
< |
|| { test "$lt_os_major" -eq 1 \ |
13281 |
< |
&& { test "$lt_os_minor" -gt 5 \ |
13282 |
< |
|| { test "$lt_os_minor" -eq 5 \ |
13283 |
< |
&& test "$lt_os_micro" -gt 24; }; }; }; then |
13279 |
> |
if test 1 -lt "$lt_os_major" \ |
13280 |
> |
|| { test 1 -eq "$lt_os_major" \ |
13281 |
> |
&& { test 5 -lt "$lt_os_minor" \ |
13282 |
> |
|| { test 5 -eq "$lt_os_minor" \ |
13283 |
> |
&& test 24 -lt "$lt_os_micro"; }; }; }; then |
13284 |
|
lt_cv_sys_argz_works=yes |
13285 |
|
fi |
13286 |
|
fi |
13290 |
|
fi |
13291 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
13292 |
|
$as_echo "$lt_cv_sys_argz_works" >&6; } |
13293 |
< |
if test "$lt_cv_sys_argz_works" = yes; then : |
13293 |
> |
if test yes = "$lt_cv_sys_argz_works"; then : |
13294 |
|
|
13295 |
|
$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
13296 |
|
|
13297 |
|
else |
13298 |
< |
ARGZ_H=argz.h |
13298 |
> |
LT_ARGZ_H=lt__argz.h |
13299 |
|
|
13300 |
|
|
13301 |
< |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
13301 |
> |
_LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" |
13302 |
|
|
13303 |
|
fi |
13304 |
|
fi |
13319 |
|
fi |
13320 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
13321 |
|
$as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
13322 |
< |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
13322 |
> |
if test yes = "$libltdl_cv_preloaded_symbols"; then |
13323 |
|
|
13324 |
|
$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
13325 |
|
|
13343 |
|
fi |
13344 |
|
|
13345 |
|
|
13346 |
< |
if test "x$with_included_ltdl" != xyes; then |
13346 |
> |
if test yes != "$with_included_ltdl"; then |
13347 |
|
# We are not being forced to use the included libltdl sources, so |
13348 |
|
# decide whether there is a useful installed version we can use. |
13349 |
|
ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
13419 |
|
if test -n "$with_ltdl_include"; then |
13420 |
|
if test -f "$with_ltdl_include/ltdl.h"; then : |
13421 |
|
else |
13422 |
< |
as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
13422 |
> |
as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5 |
13423 |
|
fi |
13424 |
|
else |
13425 |
|
with_ltdl_include=no |
13435 |
|
if test -n "$with_ltdl_lib"; then |
13436 |
|
if test -f "$with_ltdl_lib/libltdl.la"; then : |
13437 |
|
else |
13438 |
< |
as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
13438 |
> |
as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5 |
13439 |
|
fi |
13440 |
|
else |
13441 |
|
with_ltdl_lib=no |
13448 |
|
"") enable_ltdl_convenience=yes |
13449 |
|
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
13450 |
|
esac |
13451 |
< |
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
13451 |
> |
LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
13452 |
|
LTDLDEPS=$LIBLTDL |
13453 |
< |
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
13453 |
> |
LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
13454 |
|
|
13455 |
|
|
13456 |
|
|
13457 |
|
|
13458 |
|
|
13459 |
|
# For backwards non-gettext consistent compatibility... |
13460 |
< |
INCLTDL="$LTDLINCL" |
13460 |
> |
INCLTDL=$LTDLINCL |
13461 |
|
|
13462 |
|
|
13463 |
|
;; |
13472 |
|
LTDLINCL= |
13473 |
|
;; |
13474 |
|
,no*,no,*) |
13475 |
< |
as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
13475 |
> |
as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5 |
13476 |
|
;; |
13477 |
|
*) with_included_ltdl=no |
13478 |
|
LIBLTDL="-L$with_ltdl_lib -lltdl" |
13479 |
|
LTDLDEPS= |
13480 |
< |
LTDLINCL="-I$with_ltdl_include" |
13480 |
> |
LTDLINCL=-I$with_ltdl_include |
13481 |
|
;; |
13482 |
|
esac |
13483 |
< |
INCLTDL="$LTDLINCL" |
13483 |
> |
INCLTDL=$LTDLINCL |
13484 |
|
|
13485 |
|
# Report our decision... |
13486 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
13500 |
|
fi |
13501 |
|
|
13502 |
|
|
13503 |
< |
case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
13503 |
> |
case ,$enable_ltdl_install,$enable_ltdl_convenience in |
13504 |
|
*yes*) ;; |
13505 |
|
*) enable_ltdl_convenience=yes ;; |
13506 |
|
esac |
13507 |
|
|
13508 |
< |
if test x"${enable_ltdl_install-no}" != xno; then |
13508 |
> |
if test no != "${enable_ltdl_install-no}"; then |
13509 |
|
INSTALL_LTDL_TRUE= |
13510 |
|
INSTALL_LTDL_FALSE='#' |
13511 |
|
else |
13513 |
|
INSTALL_LTDL_FALSE= |
13514 |
|
fi |
13515 |
|
|
13516 |
< |
if test x"${enable_ltdl_convenience-no}" != xno; then |
13516 |
> |
if test no != "${enable_ltdl_convenience-no}"; then |
13517 |
|
CONVENIENCE_LTDL_TRUE= |
13518 |
|
CONVENIENCE_LTDL_FALSE='#' |
13519 |
|
else |
13615 |
|
|
13616 |
|
# Checks for libraries. |
13617 |
|
|
13618 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
13619 |
< |
$as_echo_n "checking for library containing socket... " >&6; } |
13620 |
< |
if ${ac_cv_search_socket+:} false; then : |
13618 |
> |
|
13619 |
> |
if test "X$CC" != "X"; then |
13620 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5 |
13621 |
> |
$as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; } |
13622 |
> |
if ${ssp_cv_cc+:} false; then : |
13623 |
> |
$as_echo_n "(cached) " >&6 |
13624 |
> |
else |
13625 |
> |
ssp_old_cflags="$CFLAGS" |
13626 |
> |
CFLAGS="$CFLAGS -fstack-protector-strong" |
13627 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13628 |
> |
/* end confdefs.h. */ |
13629 |
> |
|
13630 |
> |
int |
13631 |
> |
main () |
13632 |
> |
{ |
13633 |
> |
|
13634 |
> |
; |
13635 |
> |
return 0; |
13636 |
> |
} |
13637 |
> |
_ACEOF |
13638 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
13639 |
> |
ssp_cv_cc=yes |
13640 |
> |
else |
13641 |
> |
ssp_cv_cc=no |
13642 |
> |
fi |
13643 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13644 |
> |
CFLAGS="$ssp_old_cflags" |
13645 |
> |
|
13646 |
> |
fi |
13647 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 |
13648 |
> |
$as_echo "$ssp_cv_cc" >&6; } |
13649 |
> |
if test $ssp_cv_cc = yes; then |
13650 |
> |
CFLAGS="$CFLAGS -fstack-protector-strong" |
13651 |
> |
|
13652 |
> |
$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h |
13653 |
> |
|
13654 |
> |
else |
13655 |
> |
unset ssp_cv_cc |
13656 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 |
13657 |
> |
$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } |
13658 |
> |
if ${ssp_cv_cc+:} false; then : |
13659 |
> |
$as_echo_n "(cached) " >&6 |
13660 |
> |
else |
13661 |
> |
ssp_old_cflags="$CFLAGS" |
13662 |
> |
CFLAGS="$CFLAGS -fstack-protector" |
13663 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13664 |
> |
/* end confdefs.h. */ |
13665 |
> |
|
13666 |
> |
int |
13667 |
> |
main () |
13668 |
> |
{ |
13669 |
> |
|
13670 |
> |
; |
13671 |
> |
return 0; |
13672 |
> |
} |
13673 |
> |
_ACEOF |
13674 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
13675 |
> |
ssp_cv_cc=yes |
13676 |
> |
else |
13677 |
> |
ssp_cv_cc=no |
13678 |
> |
fi |
13679 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13680 |
> |
CFLAGS="$ssp_old_cflags" |
13681 |
> |
|
13682 |
> |
fi |
13683 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 |
13684 |
> |
$as_echo "$ssp_cv_cc" >&6; } |
13685 |
> |
if test $ssp_cv_cc = yes; then |
13686 |
> |
CFLAGS="$CFLAGS -fstack-protector" |
13687 |
> |
|
13688 |
> |
$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h |
13689 |
> |
|
13690 |
> |
fi |
13691 |
> |
fi |
13692 |
> |
fi |
13693 |
> |
|
13694 |
> |
|
13695 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5 |
13696 |
> |
$as_echo_n "checking whether libssp exists... " >&6; } |
13697 |
> |
if ${ssp_cv_lib+:} false; then : |
13698 |
> |
$as_echo_n "(cached) " >&6 |
13699 |
> |
else |
13700 |
> |
ssp_old_libs="$LIBS" |
13701 |
> |
LIBS="$LIBS -lssp" |
13702 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13703 |
> |
/* end confdefs.h. */ |
13704 |
> |
|
13705 |
> |
int |
13706 |
> |
main () |
13707 |
> |
{ |
13708 |
> |
|
13709 |
> |
; |
13710 |
> |
return 0; |
13711 |
> |
} |
13712 |
> |
_ACEOF |
13713 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
13714 |
> |
ssp_cv_lib=yes |
13715 |
> |
else |
13716 |
> |
ssp_cv_lib=no |
13717 |
> |
fi |
13718 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
13719 |
> |
conftest$ac_exeext conftest.$ac_ext |
13720 |
> |
LIBS="$ssp_old_libs" |
13721 |
> |
|
13722 |
> |
fi |
13723 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5 |
13724 |
> |
$as_echo "$ssp_cv_lib" >&6; } |
13725 |
> |
if test $ssp_cv_lib = yes; then |
13726 |
> |
LIBS="$LIBS -lssp" |
13727 |
> |
fi |
13728 |
> |
|
13729 |
> |
|
13730 |
> |
|
13731 |
> |
|
13732 |
> |
|
13733 |
> |
|
13734 |
> |
for flag in -fno-strict-aliasing; do |
13735 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13736 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13737 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13738 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
13739 |
> |
$as_echo_n "(cached) " >&6 |
13740 |
> |
else |
13741 |
> |
|
13742 |
> |
ax_check_save_flags=$CFLAGS |
13743 |
> |
CFLAGS="$CFLAGS $flag" |
13744 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13745 |
> |
/* end confdefs.h. */ |
13746 |
> |
|
13747 |
> |
int |
13748 |
> |
main () |
13749 |
> |
{ |
13750 |
> |
|
13751 |
> |
; |
13752 |
> |
return 0; |
13753 |
> |
} |
13754 |
> |
_ACEOF |
13755 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
13756 |
> |
eval "$as_CACHEVAR=yes" |
13757 |
> |
else |
13758 |
> |
eval "$as_CACHEVAR=no" |
13759 |
> |
fi |
13760 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13761 |
> |
CFLAGS=$ax_check_save_flags |
13762 |
> |
fi |
13763 |
> |
eval ac_res=\$$as_CACHEVAR |
13764 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13765 |
> |
$as_echo "$ac_res" >&6; } |
13766 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13767 |
> |
|
13768 |
> |
if ${CFLAGS+:} false; then : |
13769 |
> |
|
13770 |
> |
case " $CFLAGS " in #( |
13771 |
> |
*" $flag "*) : |
13772 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13773 |
> |
(: CFLAGS already contains $flag) 2>&5 |
13774 |
> |
ac_status=$? |
13775 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13776 |
> |
test $ac_status = 0; } ;; #( |
13777 |
> |
*) : |
13778 |
> |
|
13779 |
> |
as_fn_append CFLAGS " $flag" |
13780 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13781 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
13782 |
> |
ac_status=$? |
13783 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13784 |
> |
test $ac_status = 0; } |
13785 |
> |
;; |
13786 |
> |
esac |
13787 |
> |
|
13788 |
> |
else |
13789 |
> |
|
13790 |
> |
CFLAGS=$flag |
13791 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13792 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
13793 |
> |
ac_status=$? |
13794 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13795 |
> |
test $ac_status = 0; } |
13796 |
> |
|
13797 |
> |
fi |
13798 |
> |
|
13799 |
> |
else |
13800 |
> |
: |
13801 |
> |
fi |
13802 |
> |
|
13803 |
> |
done |
13804 |
> |
|
13805 |
> |
|
13806 |
> |
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
13807 |
> |
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
13808 |
> |
|
13809 |
> |
else |
13810 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
13811 |
> |
$as_echo_n "checking for library containing getaddrinfo... " >&6; } |
13812 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
13813 |
|
$as_echo_n "(cached) " >&6 |
13814 |
|
else |
13815 |
|
ac_func_search_save_LIBS=$LIBS |
13822 |
|
#ifdef __cplusplus |
13823 |
|
extern "C" |
13824 |
|
#endif |
13825 |
< |
char socket (); |
13825 |
> |
char getaddrinfo (); |
13826 |
|
int |
13827 |
|
main () |
13828 |
|
{ |
13829 |
< |
return socket (); |
13829 |
> |
return getaddrinfo (); |
13830 |
|
; |
13831 |
|
return 0; |
13832 |
|
} |
13833 |
|
_ACEOF |
13834 |
< |
for ac_lib in '' socket; do |
13834 |
> |
for ac_lib in '' nsl; do |
13835 |
|
if test -z "$ac_lib"; then |
13836 |
|
ac_res="none required" |
13837 |
|
else |
13839 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13840 |
|
fi |
13841 |
|
if ac_fn_c_try_link "$LINENO"; then : |
13842 |
< |
ac_cv_search_socket=$ac_res |
13842 |
> |
ac_cv_search_getaddrinfo=$ac_res |
13843 |
|
fi |
13844 |
|
rm -f core conftest.err conftest.$ac_objext \ |
13845 |
|
conftest$ac_exeext |
13846 |
< |
if ${ac_cv_search_socket+:} false; then : |
13846 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
13847 |
|
break |
13848 |
|
fi |
13849 |
|
done |
13850 |
< |
if ${ac_cv_search_socket+:} false; then : |
13850 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
13851 |
|
|
13852 |
|
else |
13853 |
< |
ac_cv_search_socket=no |
13853 |
> |
ac_cv_search_getaddrinfo=no |
13854 |
|
fi |
13855 |
|
rm conftest.$ac_ext |
13856 |
|
LIBS=$ac_func_search_save_LIBS |
13857 |
|
fi |
13858 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
13859 |
< |
$as_echo "$ac_cv_search_socket" >&6; } |
13860 |
< |
ac_res=$ac_cv_search_socket |
13858 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 |
13859 |
> |
$as_echo "$ac_cv_search_getaddrinfo" >&6; } |
13860 |
> |
ac_res=$ac_cv_search_getaddrinfo |
13861 |
|
if test "$ac_res" != no; then : |
13862 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13863 |
|
|
13011 |
– |
else |
13012 |
– |
as_fn_error $? "socket library not found" "$LINENO" 5 |
13864 |
|
fi |
13865 |
|
|
13866 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
13867 |
< |
$as_echo_n "checking for library containing inet_ntoa... " >&6; } |
13868 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13866 |
> |
fi |
13867 |
> |
|
13868 |
> |
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
13869 |
> |
if test "x$ac_cv_func_getnameinfo" = xyes; then : |
13870 |
> |
|
13871 |
> |
else |
13872 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 |
13873 |
> |
$as_echo_n "checking for library containing getnameinfo... " >&6; } |
13874 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
13875 |
|
$as_echo_n "(cached) " >&6 |
13876 |
|
else |
13877 |
|
ac_func_search_save_LIBS=$LIBS |
13884 |
|
#ifdef __cplusplus |
13885 |
|
extern "C" |
13886 |
|
#endif |
13887 |
< |
char inet_ntoa (); |
13887 |
> |
char getnameinfo (); |
13888 |
|
int |
13889 |
|
main () |
13890 |
|
{ |
13891 |
< |
return inet_ntoa (); |
13891 |
> |
return getnameinfo (); |
13892 |
|
; |
13893 |
|
return 0; |
13894 |
|
} |
13901 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13902 |
|
fi |
13903 |
|
if ac_fn_c_try_link "$LINENO"; then : |
13904 |
< |
ac_cv_search_inet_ntoa=$ac_res |
13904 |
> |
ac_cv_search_getnameinfo=$ac_res |
13905 |
|
fi |
13906 |
|
rm -f core conftest.err conftest.$ac_objext \ |
13907 |
|
conftest$ac_exeext |
13908 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13908 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
13909 |
|
break |
13910 |
|
fi |
13911 |
|
done |
13912 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13912 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
13913 |
|
|
13914 |
|
else |
13915 |
< |
ac_cv_search_inet_ntoa=no |
13915 |
> |
ac_cv_search_getnameinfo=no |
13916 |
|
fi |
13917 |
|
rm conftest.$ac_ext |
13918 |
|
LIBS=$ac_func_search_save_LIBS |
13919 |
|
fi |
13920 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
13921 |
< |
$as_echo "$ac_cv_search_inet_ntoa" >&6; } |
13922 |
< |
ac_res=$ac_cv_search_inet_ntoa |
13920 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 |
13921 |
> |
$as_echo "$ac_cv_search_getnameinfo" >&6; } |
13922 |
> |
ac_res=$ac_cv_search_getnameinfo |
13923 |
|
if test "$ac_res" != no; then : |
13924 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13925 |
|
|
13926 |
|
fi |
13927 |
|
|
13928 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
13929 |
< |
$as_echo_n "checking for library containing inet_aton... " >&6; } |
13930 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
13928 |
> |
fi |
13929 |
> |
|
13930 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
13931 |
> |
$as_echo_n "checking for library containing socket... " >&6; } |
13932 |
> |
if ${ac_cv_search_socket+:} false; then : |
13933 |
|
$as_echo_n "(cached) " >&6 |
13934 |
|
else |
13935 |
|
ac_func_search_save_LIBS=$LIBS |
13942 |
|
#ifdef __cplusplus |
13943 |
|
extern "C" |
13944 |
|
#endif |
13945 |
< |
char inet_aton (); |
13945 |
> |
char socket (); |
13946 |
|
int |
13947 |
|
main () |
13948 |
|
{ |
13949 |
< |
return inet_aton (); |
13949 |
> |
return socket (); |
13950 |
|
; |
13951 |
|
return 0; |
13952 |
|
} |
13953 |
|
_ACEOF |
13954 |
< |
for ac_lib in '' resolv; do |
13954 |
> |
for ac_lib in '' socket; do |
13955 |
|
if test -z "$ac_lib"; then |
13956 |
|
ac_res="none required" |
13957 |
|
else |
13959 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13960 |
|
fi |
13961 |
|
if ac_fn_c_try_link "$LINENO"; then : |
13962 |
< |
ac_cv_search_inet_aton=$ac_res |
13962 |
> |
ac_cv_search_socket=$ac_res |
13963 |
|
fi |
13964 |
|
rm -f core conftest.err conftest.$ac_objext \ |
13965 |
|
conftest$ac_exeext |
13966 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
13966 |
> |
if ${ac_cv_search_socket+:} false; then : |
13967 |
|
break |
13968 |
|
fi |
13969 |
|
done |
13970 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
13970 |
> |
if ${ac_cv_search_socket+:} false; then : |
13971 |
|
|
13972 |
|
else |
13973 |
< |
ac_cv_search_inet_aton=no |
13973 |
> |
ac_cv_search_socket=no |
13974 |
|
fi |
13975 |
|
rm conftest.$ac_ext |
13976 |
|
LIBS=$ac_func_search_save_LIBS |
13977 |
|
fi |
13978 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
13979 |
< |
$as_echo "$ac_cv_search_inet_aton" >&6; } |
13980 |
< |
ac_res=$ac_cv_search_inet_aton |
13978 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
13979 |
> |
$as_echo "$ac_cv_search_socket" >&6; } |
13980 |
> |
ac_res=$ac_cv_search_socket |
13981 |
|
if test "$ac_res" != no; then : |
13982 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13983 |
|
|
13984 |
< |
fi |
13985 |
< |
|
13127 |
< |
for ac_func in inet_aton inet_ntop inet_pton |
13128 |
< |
do : |
13129 |
< |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13130 |
< |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
13131 |
< |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
13132 |
< |
cat >>confdefs.h <<_ACEOF |
13133 |
< |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13134 |
< |
_ACEOF |
13135 |
< |
|
13136 |
< |
fi |
13137 |
< |
done |
13138 |
< |
|
13139 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h> |
13140 |
< |
#include <sys/socket.h> |
13141 |
< |
#include <netdb.h> |
13142 |
< |
|
13143 |
< |
" |
13144 |
< |
if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : |
13145 |
< |
|
13146 |
< |
cat >>confdefs.h <<_ACEOF |
13147 |
< |
#define HAVE_STRUCT_SOCKADDR_IN 1 |
13148 |
< |
_ACEOF |
13149 |
< |
|
13150 |
< |
|
13151 |
< |
fi |
13152 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> |
13153 |
< |
#include <sys/socket.h> |
13154 |
< |
#include <netdb.h> |
13155 |
< |
|
13156 |
< |
" |
13157 |
< |
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
13158 |
< |
|
13159 |
< |
cat >>confdefs.h <<_ACEOF |
13160 |
< |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
13161 |
< |
_ACEOF |
13162 |
< |
|
13163 |
< |
|
13164 |
< |
fi |
13165 |
< |
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h> |
13166 |
< |
#include <sys/socket.h> |
13167 |
< |
#include <netdb.h> |
13168 |
< |
|
13169 |
< |
" |
13170 |
< |
if test "x$ac_cv_type_struct_addrinfo" = xyes; then : |
13171 |
< |
|
13172 |
< |
cat >>confdefs.h <<_ACEOF |
13173 |
< |
#define HAVE_STRUCT_ADDRINFO 1 |
13174 |
< |
_ACEOF |
13175 |
< |
|
13176 |
< |
|
13177 |
< |
fi |
13178 |
< |
|
13179 |
< |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> |
13180 |
< |
<sys/socket.h> |
13181 |
< |
" |
13182 |
< |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : |
13183 |
< |
|
13184 |
< |
cat >>confdefs.h <<_ACEOF |
13185 |
< |
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 |
13186 |
< |
_ACEOF |
13187 |
< |
|
13188 |
< |
|
13189 |
< |
fi |
13190 |
< |
|
13191 |
< |
|
13192 |
< |
|
13193 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
13194 |
< |
" |
13195 |
< |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
13196 |
< |
|
13197 |
< |
$as_echo "#define IPV6 1" >>confdefs.h |
13198 |
< |
|
13984 |
> |
else |
13985 |
> |
as_fn_error $? "socket library not found" "$LINENO" 5 |
13986 |
|
fi |
13987 |
|
|
13988 |
|
|
14237 |
|
|
14238 |
|
|
14239 |
|
|
13453 |
– |
|
13454 |
– |
|
13455 |
– |
|
13456 |
– |
|
13457 |
– |
|
13458 |
– |
|
14240 |
|
# Checks for header files. |
14241 |
|
|
14242 |
|
|
14269 |
|
|
14270 |
|
|
14271 |
|
|
13491 |
– |
|
13492 |
– |
|
13493 |
– |
|
13494 |
– |
|
13495 |
– |
|
13496 |
– |
|
13497 |
– |
|
13498 |
– |
|
13499 |
– |
|
13500 |
– |
|
13501 |
– |
|
13502 |
– |
|
13503 |
– |
# check for /dev/null so we can use it to hold evil fd's |
13504 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 |
13505 |
– |
$as_echo_n "checking for /dev/null... " >&6; } |
13506 |
– |
if test -c /dev/null; then : |
13507 |
– |
|
13508 |
– |
|
13509 |
– |
$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h |
13510 |
– |
|
13511 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13512 |
– |
$as_echo "yes" >&6; } |
13513 |
– |
else |
13514 |
– |
|
13515 |
– |
|
13516 |
– |
$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
13517 |
– |
|
13518 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 |
13519 |
– |
$as_echo "no - using devnull.log" >&6; } |
13520 |
– |
fi |
13521 |
– |
|
13522 |
– |
|
14272 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
14273 |
|
$as_echo_n "checking for library containing crypt... " >&6; } |
14274 |
|
if ${ac_cv_search_crypt+:} false; then : |
14326 |
|
fi |
14327 |
|
|
14328 |
|
|
14329 |
+ |
# Define various chunk sizes for the pooling allocator |
14330 |
+ |
|
14331 |
+ |
|
14332 |
+ |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h |
14333 |
+ |
|
14334 |
+ |
|
14335 |
+ |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h |
14336 |
+ |
|
14337 |
+ |
|
14338 |
+ |
$as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h |
14339 |
|
|
14340 |
|
|
14341 |
< |
# Check whether --with-zlib-path was given. |
14342 |
< |
if test "${with_zlib_path+set}" = set; then : |
14343 |
< |
withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS" |
14341 |
> |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h |
14342 |
> |
|
14343 |
> |
|
14344 |
> |
$as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h |
14345 |
> |
|
14346 |
> |
|
14347 |
> |
$as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h |
14348 |
> |
|
14349 |
> |
|
14350 |
> |
$as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h |
14351 |
> |
|
14352 |
> |
|
14353 |
> |
$as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h |
14354 |
> |
|
14355 |
> |
|
14356 |
> |
$as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h |
14357 |
> |
|
14358 |
> |
|
14359 |
> |
$as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h |
14360 |
> |
|
14361 |
> |
|
14362 |
> |
$as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h |
14363 |
> |
|
14364 |
> |
|
14365 |
> |
$as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h |
14366 |
> |
|
14367 |
> |
|
14368 |
> |
$as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h |
14369 |
> |
|
14370 |
> |
|
14371 |
> |
|
14372 |
> |
# Argument processing. |
14373 |
> |
|
14374 |
> |
desired_iopoll_mechanism="none" |
14375 |
> |
|
14376 |
> |
# Check whether --enable-kqueue was given. |
14377 |
> |
if test "${enable_kqueue+set}" = set; then : |
14378 |
> |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
14379 |
|
fi |
14380 |
|
|
14381 |
+ |
# Check whether --enable-epoll was given. |
14382 |
+ |
if test "${enable_epoll+set}" = set; then : |
14383 |
+ |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
14384 |
+ |
fi |
14385 |
|
|
14386 |
< |
# Check whether --enable-zlib was given. |
14387 |
< |
if test "${enable_zlib+set}" = set; then : |
14388 |
< |
enableval=$enable_zlib; zlib=$enableval |
13591 |
< |
else |
13592 |
< |
zlib=yes |
14386 |
> |
# Check whether --enable-devpoll was given. |
14387 |
> |
if test "${enable_devpoll+set}" = set; then : |
14388 |
> |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
14389 |
|
fi |
14390 |
|
|
14391 |
+ |
# Check whether --enable-poll was given. |
14392 |
+ |
if test "${enable_poll+set}" = set; then : |
14393 |
+ |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
14394 |
+ |
fi |
14395 |
|
|
13596 |
– |
if test "$zlib" = "yes"; then : |
14396 |
|
|
14397 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
14398 |
< |
if test "x$ac_cv_header_zlib_h" = xyes; then : |
14399 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 |
14400 |
< |
$as_echo_n "checking for zlibVersion in -lz... " >&6; } |
14401 |
< |
if ${ac_cv_lib_z_zlibVersion+:} false; then : |
14402 |
< |
$as_echo_n "(cached) " >&6 |
14403 |
< |
else |
14404 |
< |
ac_check_lib_save_LIBS=$LIBS |
14405 |
< |
LIBS="-lz $LIBS" |
14406 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14397 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
14398 |
> |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
14399 |
> |
|
14400 |
> |
iopoll_mechanism_none=0 |
14401 |
> |
|
14402 |
> |
cat >>confdefs.h <<_ACEOF |
14403 |
> |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
14404 |
> |
_ACEOF |
14405 |
> |
|
14406 |
> |
|
14407 |
> |
iopoll_mechanism_kqueue=1 |
14408 |
> |
|
14409 |
> |
cat >>confdefs.h <<_ACEOF |
14410 |
> |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
14411 |
> |
_ACEOF |
14412 |
> |
|
14413 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14414 |
|
/* end confdefs.h. */ |
14415 |
+ |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
14416 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14417 |
+ |
#define kevent innocuous_kevent |
14418 |
+ |
|
14419 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
14420 |
+ |
which can conflict with char kevent (); below. |
14421 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14422 |
+ |
<limits.h> exists even on freestanding compilers. */ |
14423 |
+ |
|
14424 |
+ |
#ifdef __STDC__ |
14425 |
+ |
# include <limits.h> |
14426 |
+ |
#else |
14427 |
+ |
# include <assert.h> |
14428 |
+ |
#endif |
14429 |
+ |
|
14430 |
+ |
#undef kevent |
14431 |
|
|
14432 |
|
/* Override any GCC internal prototype to avoid an error. |
14433 |
|
Use char because int might match the return type of a GCC |
14435 |
|
#ifdef __cplusplus |
14436 |
|
extern "C" |
14437 |
|
#endif |
14438 |
< |
char zlibVersion (); |
14438 |
> |
char kevent (); |
14439 |
> |
/* The GNU C library defines this for functions which it implements |
14440 |
> |
to always fail with ENOSYS. Some functions are actually named |
14441 |
> |
something starting with __ and the normal name is an alias. */ |
14442 |
> |
#if defined __stub_kevent || defined __stub___kevent |
14443 |
> |
choke me |
14444 |
> |
#endif |
14445 |
> |
|
14446 |
|
int |
14447 |
|
main () |
14448 |
|
{ |
14449 |
< |
return zlibVersion (); |
14449 |
> |
return kevent (); |
14450 |
|
; |
14451 |
|
return 0; |
14452 |
|
} |
14453 |
|
_ACEOF |
14454 |
|
if ac_fn_c_try_link "$LINENO"; then : |
14455 |
< |
ac_cv_lib_z_zlibVersion=yes |
14455 |
> |
is_kqueue_mechanism_available="yes" |
14456 |
|
else |
14457 |
< |
ac_cv_lib_z_zlibVersion=no |
14457 |
> |
is_kqueue_mechanism_available="no" |
14458 |
|
fi |
14459 |
|
rm -f core conftest.err conftest.$ac_objext \ |
14460 |
|
conftest$ac_exeext conftest.$ac_ext |
13632 |
– |
LIBS=$ac_check_lib_save_LIBS |
13633 |
– |
fi |
13634 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
13635 |
– |
$as_echo "$ac_cv_lib_z_zlibVersion" >&6; } |
13636 |
– |
if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
13637 |
– |
|
13638 |
– |
LIBS="-lz $LIBS" |
14461 |
|
|
14462 |
< |
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
14462 |
> |
iopoll_mechanism_epoll=2 |
14463 |
|
|
14464 |
+ |
cat >>confdefs.h <<_ACEOF |
14465 |
+ |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
14466 |
+ |
_ACEOF |
14467 |
|
|
14468 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14469 |
+ |
/* end confdefs.h. */ |
14470 |
+ |
#include <sys/epoll.h> |
14471 |
+ |
int |
14472 |
+ |
main () |
14473 |
+ |
{ |
14474 |
+ |
epoll_create(256); |
14475 |
+ |
; |
14476 |
+ |
return 0; |
14477 |
+ |
} |
14478 |
+ |
_ACEOF |
14479 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
14480 |
+ |
is_epoll_mechanism_available="yes" |
14481 |
|
else |
14482 |
< |
zlib=no |
14482 |
> |
is_epoll_mechanism_available="no" |
14483 |
|
fi |
14484 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
14485 |
+ |
conftest$ac_exeext conftest.$ac_ext |
14486 |
+ |
|
14487 |
+ |
iopoll_mechanism_devpoll=3 |
14488 |
+ |
|
14489 |
+ |
cat >>confdefs.h <<_ACEOF |
14490 |
+ |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
14491 |
+ |
_ACEOF |
14492 |
|
|
14493 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14494 |
+ |
/* end confdefs.h. */ |
14495 |
+ |
#include <devpoll.h> |
14496 |
+ |
int |
14497 |
+ |
main () |
14498 |
+ |
{ |
14499 |
|
|
14500 |
+ |
; |
14501 |
+ |
return 0; |
14502 |
+ |
} |
14503 |
+ |
_ACEOF |
14504 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
14505 |
+ |
is_devpoll_mechanism_available="yes" |
14506 |
|
else |
14507 |
< |
zlib=no |
14507 |
> |
is_devpoll_mechanism_available="no" |
14508 |
|
fi |
14509 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14510 |
+ |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
14511 |
|
|
14512 |
+ |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
14513 |
|
|
14514 |
+ |
fi |
14515 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14516 |
+ |
/* end confdefs.h. */ |
14517 |
+ |
#include <sys/devpoll.h> |
14518 |
+ |
int |
14519 |
+ |
main () |
14520 |
+ |
{ |
14521 |
|
|
14522 |
+ |
; |
14523 |
+ |
return 0; |
14524 |
+ |
} |
14525 |
+ |
_ACEOF |
14526 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
14527 |
+ |
is_devpoll_mechanism_available="yes" |
14528 |
+ |
else |
14529 |
+ |
is_devpoll_mechanism_available="no" |
14530 |
|
fi |
14531 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14532 |
+ |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
14533 |
|
|
14534 |
+ |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
14535 |
|
|
14536 |
< |
# Check whether --with-libpcre-path was given. |
13658 |
< |
if test "${with_libpcre_path+set}" = set; then : |
13659 |
< |
withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS" |
13660 |
< |
fi |
14536 |
> |
fi |
14537 |
|
|
14538 |
+ |
iopoll_mechanism_poll=4 |
14539 |
|
|
14540 |
< |
# Check whether --enable-libpcre was given. |
14541 |
< |
if test "${enable_libpcre+set}" = set; then : |
14542 |
< |
enableval=$enable_libpcre; libpcre=$enableval |
13666 |
< |
else |
13667 |
< |
libpcre=yes |
13668 |
< |
fi |
14540 |
> |
cat >>confdefs.h <<_ACEOF |
14541 |
> |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
14542 |
> |
_ACEOF |
14543 |
|
|
14544 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14545 |
+ |
/* end confdefs.h. */ |
14546 |
+ |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
14547 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14548 |
+ |
#define poll innocuous_poll |
14549 |
|
|
14550 |
< |
if test "$libpcre" = "yes"; then : |
14550 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
14551 |
> |
which can conflict with char poll (); below. |
14552 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14553 |
> |
<limits.h> exists even on freestanding compilers. */ |
14554 |
|
|
14555 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
14556 |
< |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
14557 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5 |
14558 |
< |
$as_echo_n "checking for pcre_study in -lpcre... " >&6; } |
14559 |
< |
if ${ac_cv_lib_pcre_pcre_study+:} false; then : |
14560 |
< |
$as_echo_n "(cached) " >&6 |
14561 |
< |
else |
13680 |
< |
ac_check_lib_save_LIBS=$LIBS |
13681 |
< |
LIBS="-lpcre $LIBS" |
13682 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13683 |
< |
/* end confdefs.h. */ |
14555 |
> |
#ifdef __STDC__ |
14556 |
> |
# include <limits.h> |
14557 |
> |
#else |
14558 |
> |
# include <assert.h> |
14559 |
> |
#endif |
14560 |
> |
|
14561 |
> |
#undef poll |
14562 |
|
|
14563 |
|
/* Override any GCC internal prototype to avoid an error. |
14564 |
|
Use char because int might match the return type of a GCC |
14566 |
|
#ifdef __cplusplus |
14567 |
|
extern "C" |
14568 |
|
#endif |
14569 |
< |
char pcre_study (); |
14569 |
> |
char poll (); |
14570 |
> |
/* The GNU C library defines this for functions which it implements |
14571 |
> |
to always fail with ENOSYS. Some functions are actually named |
14572 |
> |
something starting with __ and the normal name is an alias. */ |
14573 |
> |
#if defined __stub_poll || defined __stub___poll |
14574 |
> |
choke me |
14575 |
> |
#endif |
14576 |
> |
|
14577 |
|
int |
14578 |
|
main () |
14579 |
|
{ |
14580 |
< |
return pcre_study (); |
14580 |
> |
return poll (); |
14581 |
|
; |
14582 |
|
return 0; |
14583 |
|
} |
14584 |
|
_ACEOF |
14585 |
|
if ac_fn_c_try_link "$LINENO"; then : |
14586 |
< |
ac_cv_lib_pcre_pcre_study=yes |
14586 |
> |
is_poll_mechanism_available="yes" |
14587 |
|
else |
14588 |
< |
ac_cv_lib_pcre_pcre_study=no |
14588 |
> |
is_poll_mechanism_available="no" |
14589 |
|
fi |
14590 |
|
rm -f core conftest.err conftest.$ac_objext \ |
14591 |
|
conftest$ac_exeext conftest.$ac_ext |
13707 |
– |
LIBS=$ac_check_lib_save_LIBS |
13708 |
– |
fi |
13709 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5 |
13710 |
– |
$as_echo "$ac_cv_lib_pcre_pcre_study" >&6; } |
13711 |
– |
if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then : |
14592 |
|
|
14593 |
< |
LIBS="-lpcre $LIBS" |
14593 |
> |
optimal_iopoll_mechanism="none" |
14594 |
> |
for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important |
14595 |
> |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
14596 |
> |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
14597 |
> |
optimal_iopoll_mechanism="$mechanism" |
14598 |
> |
break |
14599 |
> |
fi |
14600 |
> |
done |
14601 |
|
|
14602 |
< |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
14602 |
> |
if test "$desired_iopoll_mechanism" = "none" ; then |
14603 |
> |
if test "$optimal_iopoll_mechanism" = "none" ; then |
14604 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
14605 |
> |
$as_echo "none" >&6; } |
14606 |
> |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
14607 |
> |
else |
14608 |
> |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
14609 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
14610 |
> |
$as_echo "$selected_iopoll_mechanism" >&6; } |
14611 |
> |
fi |
14612 |
> |
else |
14613 |
> |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
14614 |
> |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
14615 |
> |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
14616 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
14617 |
> |
$as_echo "$selected_iopoll_mechanism" >&6; } |
14618 |
> |
else |
14619 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
14620 |
> |
$as_echo "none" >&6; } |
14621 |
> |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
14622 |
> |
fi |
14623 |
> |
fi |
14624 |
> |
|
14625 |
> |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
14626 |
> |
|
14627 |
> |
cat >>confdefs.h <<_ACEOF |
14628 |
> |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
14629 |
> |
_ACEOF |
14630 |
|
|
14631 |
|
|
14632 |
+ |
|
14633 |
+ |
# Check whether --enable-assert was given. |
14634 |
+ |
if test "${enable_assert+set}" = set; then : |
14635 |
+ |
enableval=$enable_assert; assert=$enableval |
14636 |
|
else |
14637 |
< |
libpcre=no |
14637 |
> |
assert=no |
14638 |
> |
fi |
14639 |
> |
|
14640 |
> |
|
14641 |
> |
if test "$assert" = "no"; then : |
14642 |
> |
|
14643 |
> |
$as_echo "#define NDEBUG 1" >>confdefs.h |
14644 |
> |
|
14645 |
|
fi |
14646 |
|
|
14647 |
|
|
14648 |
+ |
# Check whether --enable-debugging was given. |
14649 |
+ |
if test "${enable_debugging+set}" = set; then : |
14650 |
+ |
enableval=$enable_debugging; debugging="$enableval" |
14651 |
|
else |
14652 |
< |
libpcre=no |
14652 |
> |
debugging="no" |
14653 |
|
fi |
14654 |
|
|
14655 |
|
|
14656 |
+ |
if test "$debugging" = "yes"; then : |
14657 |
+ |
|
14658 |
+ |
CFLAGS="-Wall -g -O0" |
14659 |
|
|
14660 |
|
fi |
14661 |
< |
if test "$libpcre" = yes; then |
14662 |
< |
ENABLE_PCRE_TRUE= |
14663 |
< |
ENABLE_PCRE_FALSE='#' |
14661 |
> |
|
14662 |
> |
|
14663 |
> |
# Check whether --enable-warnings was given. |
14664 |
> |
if test "${enable_warnings+set}" = set; then : |
14665 |
> |
enableval=$enable_warnings; warnings="$enableval" |
14666 |
|
else |
14667 |
< |
ENABLE_PCRE_TRUE='#' |
13735 |
< |
ENABLE_PCRE_FALSE= |
14667 |
> |
warnings="no" |
14668 |
|
fi |
14669 |
|
|
14670 |
|
|
14671 |
+ |
if test "$warnings" = "yes"; then : |
14672 |
|
|
14673 |
< |
# Check whether --enable-openssl was given. |
14674 |
< |
if test "${enable_openssl+set}" = set; then : |
14675 |
< |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
14673 |
> |
|
14674 |
> |
|
14675 |
> |
|
14676 |
> |
|
14677 |
> |
for flag in -Wall; do |
14678 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14679 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14680 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14681 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
14682 |
> |
$as_echo_n "(cached) " >&6 |
14683 |
|
else |
14684 |
< |
cf_enable_openssl="auto" |
14684 |
> |
|
14685 |
> |
ax_check_save_flags=$CFLAGS |
14686 |
> |
CFLAGS="$CFLAGS $flag" |
14687 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14688 |
> |
/* end confdefs.h. */ |
14689 |
> |
|
14690 |
> |
int |
14691 |
> |
main () |
14692 |
> |
{ |
14693 |
> |
|
14694 |
> |
; |
14695 |
> |
return 0; |
14696 |
> |
} |
14697 |
> |
_ACEOF |
14698 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
14699 |
> |
eval "$as_CACHEVAR=yes" |
14700 |
> |
else |
14701 |
> |
eval "$as_CACHEVAR=no" |
14702 |
> |
fi |
14703 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14704 |
> |
CFLAGS=$ax_check_save_flags |
14705 |
|
fi |
14706 |
+ |
eval ac_res=\$$as_CACHEVAR |
14707 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14708 |
+ |
$as_echo "$ac_res" >&6; } |
14709 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14710 |
|
|
14711 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
13748 |
< |
$as_echo_n "checking for OpenSSL... " >&6; } |
13749 |
< |
if test "$cf_enable_openssl" != "no"; then |
13750 |
< |
cf_openssl_basedir="" |
13751 |
< |
if test "$cf_enable_openssl" != "auto" && |
13752 |
< |
test "$cf_enable_openssl" != "yes"; then |
13753 |
< |
cf_openssl_basedir="${cf_enable_openssl}" |
13754 |
< |
else |
13755 |
< |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
13756 |
< |
/opt /opt/openssl /usr/local/openssl; do |
13757 |
< |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
13758 |
< |
cf_openssl_basedir="${dirs}" |
13759 |
< |
break |
13760 |
< |
fi |
13761 |
< |
done |
13762 |
< |
unset dirs |
13763 |
< |
fi |
14711 |
> |
if ${CFLAGS+:} false; then : |
14712 |
|
|
14713 |
< |
if test ! -z "$cf_openssl_basedir"; then |
14714 |
< |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
14715 |
< |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
14716 |
< |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
14717 |
< |
else |
14718 |
< |
cf_openssl_basedir="" |
14719 |
< |
fi |
14720 |
< |
else |
13773 |
< |
if test -f "/usr/include/openssl/opensslv.h"; then |
13774 |
< |
cf_openssl_basedir="/usr" |
13775 |
< |
fi |
13776 |
< |
fi |
14713 |
> |
case " $CFLAGS " in #( |
14714 |
> |
*" $flag "*) : |
14715 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14716 |
> |
(: CFLAGS already contains $flag) 2>&5 |
14717 |
> |
ac_status=$? |
14718 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14719 |
> |
test $ac_status = 0; } ;; #( |
14720 |
> |
*) : |
14721 |
|
|
14722 |
< |
if test ! -z "$cf_openssl_basedir"; then |
14723 |
< |
LIBS="-lcrypto -lssl $LIBS" |
14724 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
14725 |
< |
$as_echo "$cf_openssl_basedir" >&6; } |
14726 |
< |
cf_enable_openssl="yes" |
14722 |
> |
as_fn_append CFLAGS " $flag" |
14723 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14724 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
14725 |
> |
ac_status=$? |
14726 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14727 |
> |
test $ac_status = 0; } |
14728 |
> |
;; |
14729 |
> |
esac |
14730 |
|
|
14731 |
< |
$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h |
14731 |
> |
else |
14732 |
> |
|
14733 |
> |
CFLAGS=$flag |
14734 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14735 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
14736 |
> |
ac_status=$? |
14737 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14738 |
> |
test $ac_status = 0; } |
14739 |
> |
|
14740 |
> |
fi |
14741 |
|
|
13786 |
– |
else |
13787 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
13788 |
– |
$as_echo "not found. Please check your path." >&6; } |
13789 |
– |
cf_enable_openssl="no" |
13790 |
– |
fi |
13791 |
– |
unset cf_openssl_basedir |
14742 |
|
else |
14743 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
13794 |
< |
$as_echo "disabled" >&6; } |
14743 |
> |
: |
14744 |
|
fi |
14745 |
|
|
14746 |
< |
if test "$cf_enable_openssl" != "no"; then : |
14747 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5 |
14748 |
< |
$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; } |
14749 |
< |
if test "$cross_compiling" = yes; then : |
14750 |
< |
cf_openssl_version_ok=no |
14746 |
> |
done |
14747 |
> |
|
14748 |
> |
|
14749 |
> |
|
14750 |
> |
|
14751 |
> |
|
14752 |
> |
for flag in -Wbad-function-cast; do |
14753 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14754 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14755 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14756 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
14757 |
> |
$as_echo_n "(cached) " >&6 |
14758 |
|
else |
14759 |
+ |
|
14760 |
+ |
ax_check_save_flags=$CFLAGS |
14761 |
+ |
CFLAGS="$CFLAGS $flag" |
14762 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14763 |
|
/* end confdefs.h. */ |
14764 |
|
|
13806 |
– |
|
13807 |
– |
#include <openssl/opensslv.h> |
13808 |
– |
#include <stdlib.h> |
14765 |
|
int |
14766 |
|
main () |
14767 |
|
{ |
14768 |
< |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000)); |
14768 |
> |
|
14769 |
|
; |
14770 |
|
return 0; |
14771 |
|
} |
14772 |
|
_ACEOF |
14773 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
14774 |
< |
cf_openssl_version_ok=yes |
14773 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
14774 |
> |
eval "$as_CACHEVAR=yes" |
14775 |
|
else |
14776 |
< |
cf_openssl_version_ok=no |
14776 |
> |
eval "$as_CACHEVAR=no" |
14777 |
|
fi |
14778 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14779 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
14778 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14779 |
> |
CFLAGS=$ax_check_save_flags |
14780 |
|
fi |
14781 |
+ |
eval ac_res=\$$as_CACHEVAR |
14782 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14783 |
+ |
$as_echo "$ac_res" >&6; } |
14784 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14785 |
|
|
14786 |
+ |
if ${CFLAGS+:} false; then : |
14787 |
|
|
14788 |
< |
if test "$cf_openssl_version_ok" = "yes"; then : |
14789 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
14790 |
< |
$as_echo "found" >&6; } |
14788 |
> |
case " $CFLAGS " in #( |
14789 |
> |
*" $flag "*) : |
14790 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14791 |
> |
(: CFLAGS already contains $flag) 2>&5 |
14792 |
> |
ac_status=$? |
14793 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14794 |
> |
test $ac_status = 0; } ;; #( |
14795 |
> |
*) : |
14796 |
|
|
14797 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
14798 |
< |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
14799 |
< |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
14797 |
> |
as_fn_append CFLAGS " $flag" |
14798 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14799 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
14800 |
> |
ac_status=$? |
14801 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14802 |
> |
test $ac_status = 0; } |
14803 |
> |
;; |
14804 |
> |
esac |
14805 |
> |
|
14806 |
> |
else |
14807 |
> |
|
14808 |
> |
CFLAGS=$flag |
14809 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14810 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
14811 |
> |
ac_status=$? |
14812 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14813 |
> |
test $ac_status = 0; } |
14814 |
> |
|
14815 |
> |
fi |
14816 |
> |
|
14817 |
> |
else |
14818 |
> |
: |
14819 |
> |
fi |
14820 |
> |
|
14821 |
> |
done |
14822 |
> |
|
14823 |
> |
|
14824 |
> |
|
14825 |
> |
|
14826 |
> |
|
14827 |
> |
for flag in -Wcast-align; do |
14828 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14829 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14830 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14831 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
14832 |
|
$as_echo_n "(cached) " >&6 |
14833 |
|
else |
14834 |
< |
ac_check_lib_save_LIBS=$LIBS |
14835 |
< |
LIBS="-lcrypto $LIBS" |
14836 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14834 |
> |
|
14835 |
> |
ax_check_save_flags=$CFLAGS |
14836 |
> |
CFLAGS="$CFLAGS $flag" |
14837 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14838 |
|
/* end confdefs.h. */ |
14839 |
|
|
13841 |
– |
/* Override any GCC internal prototype to avoid an error. |
13842 |
– |
Use char because int might match the return type of a GCC |
13843 |
– |
builtin and then its argument prototype would still apply. */ |
13844 |
– |
#ifdef __cplusplus |
13845 |
– |
extern "C" |
13846 |
– |
#endif |
13847 |
– |
char RSA_free (); |
14840 |
|
int |
14841 |
|
main () |
14842 |
|
{ |
14843 |
< |
return RSA_free (); |
14843 |
> |
|
14844 |
|
; |
14845 |
|
return 0; |
14846 |
|
} |
14847 |
|
_ACEOF |
14848 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
14849 |
< |
ac_cv_lib_crypto_RSA_free=yes |
14848 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
14849 |
> |
eval "$as_CACHEVAR=yes" |
14850 |
|
else |
14851 |
< |
ac_cv_lib_crypto_RSA_free=no |
14851 |
> |
eval "$as_CACHEVAR=no" |
14852 |
|
fi |
14853 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
14854 |
< |
conftest$ac_exeext conftest.$ac_ext |
13863 |
< |
LIBS=$ac_check_lib_save_LIBS |
14853 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14854 |
> |
CFLAGS=$ax_check_save_flags |
14855 |
|
fi |
14856 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
14857 |
< |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
14858 |
< |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
14859 |
< |
cat >>confdefs.h <<_ACEOF |
13869 |
< |
#define HAVE_LIBCRYPTO 1 |
13870 |
< |
_ACEOF |
14856 |
> |
eval ac_res=\$$as_CACHEVAR |
14857 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14858 |
> |
$as_echo "$ac_res" >&6; } |
14859 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14860 |
|
|
14861 |
< |
LIBS="-lcrypto $LIBS" |
14861 |
> |
if ${CFLAGS+:} false; then : |
14862 |
> |
|
14863 |
> |
case " $CFLAGS " in #( |
14864 |
> |
*" $flag "*) : |
14865 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14866 |
> |
(: CFLAGS already contains $flag) 2>&5 |
14867 |
> |
ac_status=$? |
14868 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14869 |
> |
test $ac_status = 0; } ;; #( |
14870 |
> |
*) : |
14871 |
> |
|
14872 |
> |
as_fn_append CFLAGS " $flag" |
14873 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14874 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
14875 |
> |
ac_status=$? |
14876 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14877 |
> |
test $ac_status = 0; } |
14878 |
> |
;; |
14879 |
> |
esac |
14880 |
> |
|
14881 |
> |
else |
14882 |
> |
|
14883 |
> |
CFLAGS=$flag |
14884 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14885 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
14886 |
> |
ac_status=$? |
14887 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14888 |
> |
test $ac_status = 0; } |
14889 |
|
|
14890 |
|
fi |
14891 |
|
|
14892 |
< |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
14893 |
< |
for ac_func in EVP_bf_cfb \ |
14894 |
< |
EVP_cast5_cfb \ |
14895 |
< |
EVP_idea_cfb \ |
14896 |
< |
EVP_rc5_32_12_16_cfb \ |
14897 |
< |
EVP_des_ede3_cfb \ |
14898 |
< |
EVP_des_cfb |
14899 |
< |
do : |
14900 |
< |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14901 |
< |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
14902 |
< |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
14903 |
< |
cat >>confdefs.h <<_ACEOF |
14904 |
< |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
14892 |
> |
else |
14893 |
> |
: |
14894 |
> |
fi |
14895 |
> |
|
14896 |
> |
done |
14897 |
> |
|
14898 |
> |
|
14899 |
> |
|
14900 |
> |
|
14901 |
> |
|
14902 |
> |
for flag in -Wcast-qual; do |
14903 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14904 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14905 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14906 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
14907 |
> |
$as_echo_n "(cached) " >&6 |
14908 |
> |
else |
14909 |
> |
|
14910 |
> |
ax_check_save_flags=$CFLAGS |
14911 |
> |
CFLAGS="$CFLAGS $flag" |
14912 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14913 |
> |
/* end confdefs.h. */ |
14914 |
> |
|
14915 |
> |
int |
14916 |
> |
main () |
14917 |
> |
{ |
14918 |
> |
|
14919 |
> |
; |
14920 |
> |
return 0; |
14921 |
> |
} |
14922 |
|
_ACEOF |
14923 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
14924 |
+ |
eval "$as_CACHEVAR=yes" |
14925 |
+ |
else |
14926 |
+ |
eval "$as_CACHEVAR=no" |
14927 |
+ |
fi |
14928 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14929 |
+ |
CFLAGS=$ax_check_save_flags |
14930 |
+ |
fi |
14931 |
+ |
eval ac_res=\$$as_CACHEVAR |
14932 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14933 |
+ |
$as_echo "$ac_res" >&6; } |
14934 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14935 |
+ |
|
14936 |
+ |
if ${CFLAGS+:} false; then : |
14937 |
+ |
|
14938 |
+ |
case " $CFLAGS " in #( |
14939 |
+ |
*" $flag "*) : |
14940 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14941 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
14942 |
+ |
ac_status=$? |
14943 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14944 |
+ |
test $ac_status = 0; } ;; #( |
14945 |
+ |
*) : |
14946 |
+ |
|
14947 |
+ |
as_fn_append CFLAGS " $flag" |
14948 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14949 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
14950 |
+ |
ac_status=$? |
14951 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14952 |
+ |
test $ac_status = 0; } |
14953 |
+ |
;; |
14954 |
+ |
esac |
14955 |
|
|
14956 |
+ |
else |
14957 |
+ |
|
14958 |
+ |
CFLAGS=$flag |
14959 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14960 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
14961 |
+ |
ac_status=$? |
14962 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14963 |
+ |
test $ac_status = 0; } |
14964 |
+ |
|
14965 |
+ |
fi |
14966 |
+ |
|
14967 |
+ |
else |
14968 |
+ |
: |
14969 |
|
fi |
14970 |
+ |
|
14971 |
|
done |
14972 |
|
|
14973 |
+ |
|
14974 |
+ |
|
14975 |
+ |
|
14976 |
+ |
|
14977 |
+ |
for flag in -Wclobbered; do |
14978 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14979 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14980 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14981 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
14982 |
+ |
$as_echo_n "(cached) " >&6 |
14983 |
+ |
else |
14984 |
+ |
|
14985 |
+ |
ax_check_save_flags=$CFLAGS |
14986 |
+ |
CFLAGS="$CFLAGS $flag" |
14987 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14988 |
+ |
/* end confdefs.h. */ |
14989 |
+ |
|
14990 |
+ |
int |
14991 |
+ |
main () |
14992 |
+ |
{ |
14993 |
+ |
|
14994 |
+ |
; |
14995 |
+ |
return 0; |
14996 |
+ |
} |
14997 |
+ |
_ACEOF |
14998 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
14999 |
+ |
eval "$as_CACHEVAR=yes" |
15000 |
+ |
else |
15001 |
+ |
eval "$as_CACHEVAR=no" |
15002 |
+ |
fi |
15003 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15004 |
+ |
CFLAGS=$ax_check_save_flags |
15005 |
|
fi |
15006 |
+ |
eval ac_res=\$$as_CACHEVAR |
15007 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15008 |
+ |
$as_echo "$ac_res" >&6; } |
15009 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15010 |
+ |
|
15011 |
+ |
if ${CFLAGS+:} false; then : |
15012 |
+ |
|
15013 |
+ |
case " $CFLAGS " in #( |
15014 |
+ |
*" $flag "*) : |
15015 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15016 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
15017 |
+ |
ac_status=$? |
15018 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15019 |
+ |
test $ac_status = 0; } ;; #( |
15020 |
+ |
*) : |
15021 |
+ |
|
15022 |
+ |
as_fn_append CFLAGS " $flag" |
15023 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15024 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15025 |
+ |
ac_status=$? |
15026 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15027 |
+ |
test $ac_status = 0; } |
15028 |
+ |
;; |
15029 |
+ |
esac |
15030 |
|
|
15031 |
|
else |
15032 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
15033 |
< |
$as_echo "no - OpenSSL support disabled" >&6; } |
15034 |
< |
cf_enable_openssl="no" |
15032 |
> |
|
15033 |
> |
CFLAGS=$flag |
15034 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15035 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15036 |
> |
ac_status=$? |
15037 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15038 |
> |
test $ac_status = 0; } |
15039 |
> |
|
15040 |
|
fi |
15041 |
+ |
|
15042 |
+ |
else |
15043 |
+ |
: |
15044 |
|
fi |
15045 |
|
|
15046 |
< |
if test "$cf_enable_openssl" = yes; then |
15047 |
< |
ENABLE_SSL_TRUE= |
15048 |
< |
ENABLE_SSL_FALSE='#' |
15046 |
> |
done |
15047 |
> |
|
15048 |
> |
|
15049 |
> |
|
15050 |
> |
|
15051 |
> |
|
15052 |
> |
for flag in -Wempty-body; do |
15053 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15054 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15055 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15056 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
15057 |
> |
$as_echo_n "(cached) " >&6 |
15058 |
> |
else |
15059 |
> |
|
15060 |
> |
ax_check_save_flags=$CFLAGS |
15061 |
> |
CFLAGS="$CFLAGS $flag" |
15062 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15063 |
> |
/* end confdefs.h. */ |
15064 |
> |
|
15065 |
> |
int |
15066 |
> |
main () |
15067 |
> |
{ |
15068 |
> |
|
15069 |
> |
; |
15070 |
> |
return 0; |
15071 |
> |
} |
15072 |
> |
_ACEOF |
15073 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15074 |
> |
eval "$as_CACHEVAR=yes" |
15075 |
|
else |
15076 |
< |
ENABLE_SSL_TRUE='#' |
13908 |
< |
ENABLE_SSL_FALSE= |
15076 |
> |
eval "$as_CACHEVAR=no" |
15077 |
|
fi |
15078 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15079 |
+ |
CFLAGS=$ax_check_save_flags |
15080 |
+ |
fi |
15081 |
+ |
eval ac_res=\$$as_CACHEVAR |
15082 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15083 |
+ |
$as_echo "$ac_res" >&6; } |
15084 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15085 |
|
|
15086 |
+ |
if ${CFLAGS+:} false; then : |
15087 |
|
|
15088 |
+ |
case " $CFLAGS " in #( |
15089 |
+ |
*" $flag "*) : |
15090 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15091 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
15092 |
+ |
ac_status=$? |
15093 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15094 |
+ |
test $ac_status = 0; } ;; #( |
15095 |
+ |
*) : |
15096 |
+ |
|
15097 |
+ |
as_fn_append CFLAGS " $flag" |
15098 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15099 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15100 |
+ |
ac_status=$? |
15101 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15102 |
+ |
test $ac_status = 0; } |
15103 |
+ |
;; |
15104 |
+ |
esac |
15105 |
|
|
13913 |
– |
# Check whether --enable-assert was given. |
13914 |
– |
if test "${enable_assert+set}" = set; then : |
13915 |
– |
enableval=$enable_assert; assert=$enableval |
15106 |
|
else |
15107 |
< |
assert=no |
15107 |
> |
|
15108 |
> |
CFLAGS=$flag |
15109 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15110 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15111 |
> |
ac_status=$? |
15112 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15113 |
> |
test $ac_status = 0; } |
15114 |
> |
|
15115 |
> |
fi |
15116 |
> |
|
15117 |
> |
else |
15118 |
> |
: |
15119 |
|
fi |
15120 |
|
|
15121 |
+ |
done |
15122 |
+ |
|
15123 |
|
|
13921 |
– |
if test "$assert" = "no"; then : |
15124 |
|
|
13923 |
– |
$as_echo "#define NDEBUG 1" >>confdefs.h |
15125 |
|
|
15126 |
+ |
|
15127 |
+ |
for flag in -Wignored-qualifiers; do |
15128 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15129 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15130 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15131 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
15132 |
+ |
$as_echo_n "(cached) " >&6 |
15133 |
+ |
else |
15134 |
+ |
|
15135 |
+ |
ax_check_save_flags=$CFLAGS |
15136 |
+ |
CFLAGS="$CFLAGS $flag" |
15137 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15138 |
+ |
/* end confdefs.h. */ |
15139 |
+ |
|
15140 |
+ |
int |
15141 |
+ |
main () |
15142 |
+ |
{ |
15143 |
+ |
|
15144 |
+ |
; |
15145 |
+ |
return 0; |
15146 |
+ |
} |
15147 |
+ |
_ACEOF |
15148 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
15149 |
+ |
eval "$as_CACHEVAR=yes" |
15150 |
+ |
else |
15151 |
+ |
eval "$as_CACHEVAR=no" |
15152 |
|
fi |
15153 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15154 |
+ |
CFLAGS=$ax_check_save_flags |
15155 |
+ |
fi |
15156 |
+ |
eval ac_res=\$$as_CACHEVAR |
15157 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15158 |
+ |
$as_echo "$ac_res" >&6; } |
15159 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15160 |
+ |
|
15161 |
+ |
if ${CFLAGS+:} false; then : |
15162 |
+ |
|
15163 |
+ |
case " $CFLAGS " in #( |
15164 |
+ |
*" $flag "*) : |
15165 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15166 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
15167 |
+ |
ac_status=$? |
15168 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15169 |
+ |
test $ac_status = 0; } ;; #( |
15170 |
+ |
*) : |
15171 |
|
|
15172 |
+ |
as_fn_append CFLAGS " $flag" |
15173 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15174 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15175 |
+ |
ac_status=$? |
15176 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15177 |
+ |
test $ac_status = 0; } |
15178 |
+ |
;; |
15179 |
+ |
esac |
15180 |
|
|
13928 |
– |
# Check whether --enable-small-net was given. |
13929 |
– |
if test "${enable_small_net+set}" = set; then : |
13930 |
– |
enableval=$enable_small_net; small_net=$enableval |
15181 |
|
else |
15182 |
< |
small_net=no |
15182 |
> |
|
15183 |
> |
CFLAGS=$flag |
15184 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15185 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15186 |
> |
ac_status=$? |
15187 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15188 |
> |
test $ac_status = 0; } |
15189 |
> |
|
15190 |
|
fi |
15191 |
|
|
15192 |
+ |
else |
15193 |
+ |
: |
15194 |
+ |
fi |
15195 |
|
|
15196 |
< |
if test "$small_net" = "yes"; then : |
15196 |
> |
done |
15197 |
|
|
15198 |
|
|
13939 |
– |
$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
15199 |
|
|
15200 |
|
|
13942 |
– |
$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
15201 |
|
|
15202 |
+ |
for flag in -Wlogical-op; do |
15203 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15204 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15205 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15206 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
15207 |
+ |
$as_echo_n "(cached) " >&6 |
15208 |
+ |
else |
15209 |
|
|
15210 |
< |
$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
15210 |
> |
ax_check_save_flags=$CFLAGS |
15211 |
> |
CFLAGS="$CFLAGS $flag" |
15212 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15213 |
> |
/* end confdefs.h. */ |
15214 |
|
|
15215 |
+ |
int |
15216 |
+ |
main () |
15217 |
+ |
{ |
15218 |
|
|
15219 |
< |
$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
15219 |
> |
; |
15220 |
> |
return 0; |
15221 |
> |
} |
15222 |
> |
_ACEOF |
15223 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15224 |
> |
eval "$as_CACHEVAR=yes" |
15225 |
> |
else |
15226 |
> |
eval "$as_CACHEVAR=no" |
15227 |
> |
fi |
15228 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15229 |
> |
CFLAGS=$ax_check_save_flags |
15230 |
> |
fi |
15231 |
> |
eval ac_res=\$$as_CACHEVAR |
15232 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15233 |
> |
$as_echo "$ac_res" >&6; } |
15234 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15235 |
|
|
15236 |
+ |
if ${CFLAGS+:} false; then : |
15237 |
|
|
15238 |
< |
$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
15238 |
> |
case " $CFLAGS " in #( |
15239 |
> |
*" $flag "*) : |
15240 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15241 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15242 |
> |
ac_status=$? |
15243 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15244 |
> |
test $ac_status = 0; } ;; #( |
15245 |
> |
*) : |
15246 |
|
|
15247 |
+ |
as_fn_append CFLAGS " $flag" |
15248 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15249 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15250 |
+ |
ac_status=$? |
15251 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15252 |
+ |
test $ac_status = 0; } |
15253 |
+ |
;; |
15254 |
+ |
esac |
15255 |
|
|
15256 |
< |
$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
15256 |
> |
else |
15257 |
|
|
15258 |
+ |
CFLAGS=$flag |
15259 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15260 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15261 |
+ |
ac_status=$? |
15262 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15263 |
+ |
test $ac_status = 0; } |
15264 |
|
|
15265 |
< |
$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
15265 |
> |
fi |
15266 |
|
|
15267 |
+ |
else |
15268 |
+ |
: |
15269 |
+ |
fi |
15270 |
|
|
15271 |
< |
$as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h |
15271 |
> |
done |
15272 |
|
|
15273 |
|
|
13963 |
– |
$as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h |
15274 |
|
|
15275 |
|
|
13966 |
– |
$as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h |
15276 |
|
|
15277 |
+ |
for flag in -Wmissing-declarations; do |
15278 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15279 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15280 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15281 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
15282 |
+ |
$as_echo_n "(cached) " >&6 |
15283 |
|
else |
15284 |
|
|
15285 |
+ |
ax_check_save_flags=$CFLAGS |
15286 |
+ |
CFLAGS="$CFLAGS $flag" |
15287 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15288 |
+ |
/* end confdefs.h. */ |
15289 |
|
|
15290 |
+ |
int |
15291 |
+ |
main () |
15292 |
+ |
{ |
15293 |
|
|
15294 |
< |
$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
15294 |
> |
; |
15295 |
> |
return 0; |
15296 |
> |
} |
15297 |
> |
_ACEOF |
15298 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15299 |
> |
eval "$as_CACHEVAR=yes" |
15300 |
> |
else |
15301 |
> |
eval "$as_CACHEVAR=no" |
15302 |
> |
fi |
15303 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15304 |
> |
CFLAGS=$ax_check_save_flags |
15305 |
> |
fi |
15306 |
> |
eval ac_res=\$$as_CACHEVAR |
15307 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15308 |
> |
$as_echo "$ac_res" >&6; } |
15309 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15310 |
|
|
15311 |
+ |
if ${CFLAGS+:} false; then : |
15312 |
|
|
15313 |
< |
$as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h |
15313 |
> |
case " $CFLAGS " in #( |
15314 |
> |
*" $flag "*) : |
15315 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15316 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15317 |
> |
ac_status=$? |
15318 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15319 |
> |
test $ac_status = 0; } ;; #( |
15320 |
> |
*) : |
15321 |
|
|
15322 |
+ |
as_fn_append CFLAGS " $flag" |
15323 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15324 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15325 |
+ |
ac_status=$? |
15326 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15327 |
+ |
test $ac_status = 0; } |
15328 |
+ |
;; |
15329 |
+ |
esac |
15330 |
|
|
15331 |
< |
$as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h |
15331 |
> |
else |
15332 |
> |
|
15333 |
> |
CFLAGS=$flag |
15334 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15335 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15336 |
> |
ac_status=$? |
15337 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15338 |
> |
test $ac_status = 0; } |
15339 |
> |
|
15340 |
> |
fi |
15341 |
> |
|
15342 |
> |
else |
15343 |
> |
: |
15344 |
> |
fi |
15345 |
> |
|
15346 |
> |
done |
15347 |
|
|
15348 |
|
|
13981 |
– |
$as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h |
15349 |
|
|
15350 |
|
|
13984 |
– |
$as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h |
15351 |
|
|
15352 |
+ |
for flag in -Wmissing-field-initializers; do |
15353 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15354 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15355 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15356 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
15357 |
+ |
$as_echo_n "(cached) " >&6 |
15358 |
+ |
else |
15359 |
|
|
15360 |
< |
$as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h |
15360 |
> |
ax_check_save_flags=$CFLAGS |
15361 |
> |
CFLAGS="$CFLAGS $flag" |
15362 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15363 |
> |
/* end confdefs.h. */ |
15364 |
|
|
15365 |
+ |
int |
15366 |
+ |
main () |
15367 |
+ |
{ |
15368 |
|
|
15369 |
< |
$as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h |
15369 |
> |
; |
15370 |
> |
return 0; |
15371 |
> |
} |
15372 |
> |
_ACEOF |
15373 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15374 |
> |
eval "$as_CACHEVAR=yes" |
15375 |
> |
else |
15376 |
> |
eval "$as_CACHEVAR=no" |
15377 |
> |
fi |
15378 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15379 |
> |
CFLAGS=$ax_check_save_flags |
15380 |
> |
fi |
15381 |
> |
eval ac_res=\$$as_CACHEVAR |
15382 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15383 |
> |
$as_echo "$ac_res" >&6; } |
15384 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15385 |
|
|
15386 |
+ |
if ${CFLAGS+:} false; then : |
15387 |
|
|
15388 |
< |
$as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h |
15388 |
> |
case " $CFLAGS " in #( |
15389 |
> |
*" $flag "*) : |
15390 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15391 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15392 |
> |
ac_status=$? |
15393 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15394 |
> |
test $ac_status = 0; } ;; #( |
15395 |
> |
*) : |
15396 |
|
|
15397 |
+ |
as_fn_append CFLAGS " $flag" |
15398 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15399 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15400 |
+ |
ac_status=$? |
15401 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15402 |
+ |
test $ac_status = 0; } |
15403 |
+ |
;; |
15404 |
+ |
esac |
15405 |
|
|
15406 |
< |
$as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h |
15406 |
> |
else |
15407 |
|
|
15408 |
+ |
CFLAGS=$flag |
15409 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15410 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15411 |
+ |
ac_status=$? |
15412 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15413 |
+ |
test $ac_status = 0; } |
15414 |
|
|
15415 |
< |
$as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h |
15415 |
> |
fi |
15416 |
|
|
15417 |
+ |
else |
15418 |
+ |
: |
15419 |
|
fi |
15420 |
|
|
15421 |
+ |
done |
15422 |
|
|
14004 |
– |
# Argument processing. |
15423 |
|
|
15424 |
< |
desired_iopoll_mechanism="none" |
15425 |
< |
# Check whether --enable-kqueue was given. |
15426 |
< |
if test "${enable_kqueue+set}" = set; then : |
15427 |
< |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
15424 |
> |
|
15425 |
> |
|
15426 |
> |
|
15427 |
> |
for flag in -Wmissing-include-dirs; do |
15428 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15429 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15430 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15431 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
15432 |
> |
$as_echo_n "(cached) " >&6 |
15433 |
> |
else |
15434 |
> |
|
15435 |
> |
ax_check_save_flags=$CFLAGS |
15436 |
> |
CFLAGS="$CFLAGS $flag" |
15437 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15438 |
> |
/* end confdefs.h. */ |
15439 |
> |
|
15440 |
> |
int |
15441 |
> |
main () |
15442 |
> |
{ |
15443 |
> |
|
15444 |
> |
; |
15445 |
> |
return 0; |
15446 |
> |
} |
15447 |
> |
_ACEOF |
15448 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15449 |
> |
eval "$as_CACHEVAR=yes" |
15450 |
> |
else |
15451 |
> |
eval "$as_CACHEVAR=no" |
15452 |
> |
fi |
15453 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15454 |
> |
CFLAGS=$ax_check_save_flags |
15455 |
|
fi |
15456 |
+ |
eval ac_res=\$$as_CACHEVAR |
15457 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15458 |
+ |
$as_echo "$ac_res" >&6; } |
15459 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15460 |
+ |
|
15461 |
+ |
if ${CFLAGS+:} false; then : |
15462 |
+ |
|
15463 |
+ |
case " $CFLAGS " in #( |
15464 |
+ |
*" $flag "*) : |
15465 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15466 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
15467 |
+ |
ac_status=$? |
15468 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15469 |
+ |
test $ac_status = 0; } ;; #( |
15470 |
+ |
*) : |
15471 |
+ |
|
15472 |
+ |
as_fn_append CFLAGS " $flag" |
15473 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15474 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15475 |
+ |
ac_status=$? |
15476 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15477 |
+ |
test $ac_status = 0; } |
15478 |
+ |
;; |
15479 |
+ |
esac |
15480 |
+ |
|
15481 |
+ |
else |
15482 |
+ |
|
15483 |
+ |
CFLAGS=$flag |
15484 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15485 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15486 |
+ |
ac_status=$? |
15487 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15488 |
+ |
test $ac_status = 0; } |
15489 |
|
|
14012 |
– |
# Check whether --enable-epoll was given. |
14013 |
– |
if test "${enable_epoll+set}" = set; then : |
14014 |
– |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
15490 |
|
fi |
15491 |
|
|
15492 |
< |
# Check whether --enable-devpoll was given. |
15493 |
< |
if test "${enable_devpoll+set}" = set; then : |
14019 |
< |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
15492 |
> |
else |
15493 |
> |
: |
15494 |
|
fi |
15495 |
|
|
15496 |
< |
# Check whether --enable-rtsigio was given. |
15497 |
< |
if test "${enable_rtsigio+set}" = set; then : |
15498 |
< |
enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio" |
15496 |
> |
done |
15497 |
> |
|
15498 |
> |
|
15499 |
> |
|
15500 |
> |
|
15501 |
> |
|
15502 |
> |
for flag in -Wmissing-parameter-type; do |
15503 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15504 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15505 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15506 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
15507 |
> |
$as_echo_n "(cached) " >&6 |
15508 |
> |
else |
15509 |
> |
|
15510 |
> |
ax_check_save_flags=$CFLAGS |
15511 |
> |
CFLAGS="$CFLAGS $flag" |
15512 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15513 |
> |
/* end confdefs.h. */ |
15514 |
> |
|
15515 |
> |
int |
15516 |
> |
main () |
15517 |
> |
{ |
15518 |
> |
|
15519 |
> |
; |
15520 |
> |
return 0; |
15521 |
> |
} |
15522 |
> |
_ACEOF |
15523 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15524 |
> |
eval "$as_CACHEVAR=yes" |
15525 |
> |
else |
15526 |
> |
eval "$as_CACHEVAR=no" |
15527 |
|
fi |
15528 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15529 |
+ |
CFLAGS=$ax_check_save_flags |
15530 |
+ |
fi |
15531 |
+ |
eval ac_res=\$$as_CACHEVAR |
15532 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15533 |
+ |
$as_echo "$ac_res" >&6; } |
15534 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15535 |
+ |
|
15536 |
+ |
if ${CFLAGS+:} false; then : |
15537 |
+ |
|
15538 |
+ |
case " $CFLAGS " in #( |
15539 |
+ |
*" $flag "*) : |
15540 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15541 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
15542 |
+ |
ac_status=$? |
15543 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15544 |
+ |
test $ac_status = 0; } ;; #( |
15545 |
+ |
*) : |
15546 |
+ |
|
15547 |
+ |
as_fn_append CFLAGS " $flag" |
15548 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15549 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15550 |
+ |
ac_status=$? |
15551 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15552 |
+ |
test $ac_status = 0; } |
15553 |
+ |
;; |
15554 |
+ |
esac |
15555 |
+ |
|
15556 |
+ |
else |
15557 |
+ |
|
15558 |
+ |
CFLAGS=$flag |
15559 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15560 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15561 |
+ |
ac_status=$? |
15562 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15563 |
+ |
test $ac_status = 0; } |
15564 |
|
|
14027 |
– |
# Check whether --enable-poll was given. |
14028 |
– |
if test "${enable_poll+set}" = set; then : |
14029 |
– |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
15565 |
|
fi |
15566 |
|
|
15567 |
< |
# Check whether --enable-select was given. |
15568 |
< |
if test "${enable_select+set}" = set; then : |
14034 |
< |
enableval=$enable_select; desired_iopoll_mechanism="select" |
15567 |
> |
else |
15568 |
> |
: |
15569 |
|
fi |
15570 |
|
|
15571 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
14038 |
< |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
14039 |
< |
iopoll_mechanism_none=0 |
15571 |
> |
done |
15572 |
|
|
14041 |
– |
cat >>confdefs.h <<_ACEOF |
14042 |
– |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
14043 |
– |
_ACEOF |
15573 |
|
|
14045 |
– |
iopoll_mechanism_kqueue=1 |
15574 |
|
|
14047 |
– |
cat >>confdefs.h <<_ACEOF |
14048 |
– |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
14049 |
– |
_ACEOF |
15575 |
|
|
15576 |
+ |
|
15577 |
+ |
for flag in -Wmissing-prototypes; do |
15578 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15579 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15580 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15581 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
15582 |
+ |
$as_echo_n "(cached) " >&6 |
15583 |
+ |
else |
15584 |
+ |
|
15585 |
+ |
ax_check_save_flags=$CFLAGS |
15586 |
+ |
CFLAGS="$CFLAGS $flag" |
15587 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15588 |
|
/* end confdefs.h. */ |
14053 |
– |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
14054 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14055 |
– |
#define kevent innocuous_kevent |
15589 |
|
|
15590 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
15591 |
< |
which can conflict with char kevent (); below. |
15592 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14060 |
< |
<limits.h> exists even on freestanding compilers. */ |
15590 |
> |
int |
15591 |
> |
main () |
15592 |
> |
{ |
15593 |
|
|
15594 |
< |
#ifdef __STDC__ |
15595 |
< |
# include <limits.h> |
15596 |
< |
#else |
15597 |
< |
# include <assert.h> |
15598 |
< |
#endif |
15594 |
> |
; |
15595 |
> |
return 0; |
15596 |
> |
} |
15597 |
> |
_ACEOF |
15598 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15599 |
> |
eval "$as_CACHEVAR=yes" |
15600 |
> |
else |
15601 |
> |
eval "$as_CACHEVAR=no" |
15602 |
> |
fi |
15603 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15604 |
> |
CFLAGS=$ax_check_save_flags |
15605 |
> |
fi |
15606 |
> |
eval ac_res=\$$as_CACHEVAR |
15607 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15608 |
> |
$as_echo "$ac_res" >&6; } |
15609 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15610 |
|
|
15611 |
< |
#undef kevent |
15611 |
> |
if ${CFLAGS+:} false; then : |
15612 |
|
|
15613 |
< |
/* Override any GCC internal prototype to avoid an error. |
15614 |
< |
Use char because int might match the return type of a GCC |
15615 |
< |
builtin and then its argument prototype would still apply. */ |
15616 |
< |
#ifdef __cplusplus |
15617 |
< |
extern "C" |
15618 |
< |
#endif |
15619 |
< |
char kevent (); |
15620 |
< |
/* The GNU C library defines this for functions which it implements |
15621 |
< |
to always fail with ENOSYS. Some functions are actually named |
15622 |
< |
something starting with __ and the normal name is an alias. */ |
15623 |
< |
#if defined __stub_kevent || defined __stub___kevent |
15624 |
< |
choke me |
15625 |
< |
#endif |
15613 |
> |
case " $CFLAGS " in #( |
15614 |
> |
*" $flag "*) : |
15615 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15616 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15617 |
> |
ac_status=$? |
15618 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15619 |
> |
test $ac_status = 0; } ;; #( |
15620 |
> |
*) : |
15621 |
> |
|
15622 |
> |
as_fn_append CFLAGS " $flag" |
15623 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15624 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15625 |
> |
ac_status=$? |
15626 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15627 |
> |
test $ac_status = 0; } |
15628 |
> |
;; |
15629 |
> |
esac |
15630 |
> |
|
15631 |
> |
else |
15632 |
> |
|
15633 |
> |
CFLAGS=$flag |
15634 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15635 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15636 |
> |
ac_status=$? |
15637 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15638 |
> |
test $ac_status = 0; } |
15639 |
> |
|
15640 |
> |
fi |
15641 |
> |
|
15642 |
> |
else |
15643 |
> |
: |
15644 |
> |
fi |
15645 |
> |
|
15646 |
> |
done |
15647 |
> |
|
15648 |
> |
|
15649 |
> |
|
15650 |
> |
|
15651 |
> |
|
15652 |
> |
for flag in -Wnested-externs; do |
15653 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15654 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15655 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15656 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
15657 |
> |
$as_echo_n "(cached) " >&6 |
15658 |
> |
else |
15659 |
> |
|
15660 |
> |
ax_check_save_flags=$CFLAGS |
15661 |
> |
CFLAGS="$CFLAGS $flag" |
15662 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15663 |
> |
/* end confdefs.h. */ |
15664 |
|
|
15665 |
|
int |
15666 |
|
main () |
15667 |
|
{ |
15668 |
< |
return kevent (); |
15668 |
> |
|
15669 |
|
; |
15670 |
|
return 0; |
15671 |
|
} |
15672 |
|
_ACEOF |
15673 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
15674 |
< |
is_kqueue_mechanism_available="yes" |
15673 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15674 |
> |
eval "$as_CACHEVAR=yes" |
15675 |
|
else |
15676 |
< |
is_kqueue_mechanism_available="no" |
15676 |
> |
eval "$as_CACHEVAR=no" |
15677 |
|
fi |
15678 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
15679 |
< |
conftest$ac_exeext conftest.$ac_ext |
15680 |
< |
iopoll_mechanism_epoll=2 |
15678 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15679 |
> |
CFLAGS=$ax_check_save_flags |
15680 |
> |
fi |
15681 |
> |
eval ac_res=\$$as_CACHEVAR |
15682 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15683 |
> |
$as_echo "$ac_res" >&6; } |
15684 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15685 |
|
|
15686 |
< |
cat >>confdefs.h <<_ACEOF |
15687 |
< |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
15688 |
< |
_ACEOF |
15686 |
> |
if ${CFLAGS+:} false; then : |
15687 |
> |
|
15688 |
> |
case " $CFLAGS " in #( |
15689 |
> |
*" $flag "*) : |
15690 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15691 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15692 |
> |
ac_status=$? |
15693 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15694 |
> |
test $ac_status = 0; } ;; #( |
15695 |
> |
*) : |
15696 |
> |
|
15697 |
> |
as_fn_append CFLAGS " $flag" |
15698 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15699 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15700 |
> |
ac_status=$? |
15701 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15702 |
> |
test $ac_status = 0; } |
15703 |
> |
;; |
15704 |
> |
esac |
15705 |
> |
|
15706 |
> |
else |
15707 |
> |
|
15708 |
> |
CFLAGS=$flag |
15709 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15710 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15711 |
> |
ac_status=$? |
15712 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15713 |
> |
test $ac_status = 0; } |
15714 |
> |
|
15715 |
> |
fi |
15716 |
|
|
14105 |
– |
if test "$cross_compiling" = yes; then : |
14106 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
14107 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
14108 |
– |
as_fn_error $? "cannot run test program while cross compiling |
14109 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
15717 |
|
else |
15718 |
+ |
: |
15719 |
+ |
fi |
15720 |
+ |
|
15721 |
+ |
done |
15722 |
+ |
|
15723 |
+ |
|
15724 |
+ |
|
15725 |
+ |
|
15726 |
+ |
|
15727 |
+ |
for flag in -Wold-style-declaration; do |
15728 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15729 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15730 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15731 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
15732 |
+ |
$as_echo_n "(cached) " >&6 |
15733 |
+ |
else |
15734 |
+ |
|
15735 |
+ |
ax_check_save_flags=$CFLAGS |
15736 |
+ |
CFLAGS="$CFLAGS $flag" |
15737 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15738 |
|
/* end confdefs.h. */ |
15739 |
|
|
14114 |
– |
#include <sys/epoll.h> |
14115 |
– |
#include <sys/syscall.h> |
14116 |
– |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
14117 |
– |
#if !defined(__NR_epoll_create) |
14118 |
– |
#if defined(__ia64__) |
14119 |
– |
#define __NR_epoll_create 1243 |
14120 |
– |
#elif defined(__x86_64__) |
14121 |
– |
#define __NR_epoll_create 214 |
14122 |
– |
#elif defined(__sparc64__) || defined(__sparc__) |
14123 |
– |
#define __NR_epoll_create 193 |
14124 |
– |
#elif defined(__s390__) || defined(__m68k__) |
14125 |
– |
#define __NR_epoll_create 249 |
14126 |
– |
#elif defined(__ppc64__) || defined(__ppc__) |
14127 |
– |
#define __NR_epoll_create 236 |
14128 |
– |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
14129 |
– |
#define __NR_epoll_create 224 |
14130 |
– |
#elif defined(__alpha__) |
14131 |
– |
#define __NR_epoll_create 407 |
14132 |
– |
#elif defined(__sh64__) |
14133 |
– |
#define __NR_epoll_create 282 |
14134 |
– |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
14135 |
– |
#define __NR_epoll_create 254 |
14136 |
– |
#else |
14137 |
– |
#error No system call numbers defined for epoll family. |
14138 |
– |
#endif |
14139 |
– |
#endif |
14140 |
– |
_syscall1(int, epoll_create, int, size) |
14141 |
– |
#endif |
14142 |
– |
|
15740 |
|
int |
15741 |
|
main () |
15742 |
|
{ |
15743 |
< |
return epoll_create(256) == -1 ? 1 : 0 |
15743 |
> |
|
15744 |
|
; |
15745 |
|
return 0; |
15746 |
|
} |
15747 |
|
_ACEOF |
15748 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
15749 |
< |
is_epoll_mechanism_available="yes" |
15748 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15749 |
> |
eval "$as_CACHEVAR=yes" |
15750 |
|
else |
15751 |
< |
is_epoll_mechanism_available="no" |
15751 |
> |
eval "$as_CACHEVAR=no" |
15752 |
|
fi |
15753 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15754 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
15753 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15754 |
> |
CFLAGS=$ax_check_save_flags |
15755 |
|
fi |
15756 |
+ |
eval ac_res=\$$as_CACHEVAR |
15757 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15758 |
+ |
$as_echo "$ac_res" >&6; } |
15759 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15760 |
|
|
15761 |
< |
iopoll_mechanism_devpoll=3 |
15761 |
> |
if ${CFLAGS+:} false; then : |
15762 |
|
|
15763 |
< |
cat >>confdefs.h <<_ACEOF |
15764 |
< |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
15765 |
< |
_ACEOF |
15763 |
> |
case " $CFLAGS " in #( |
15764 |
> |
*" $flag "*) : |
15765 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15766 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15767 |
> |
ac_status=$? |
15768 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15769 |
> |
test $ac_status = 0; } ;; #( |
15770 |
> |
*) : |
15771 |
> |
|
15772 |
> |
as_fn_append CFLAGS " $flag" |
15773 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15774 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15775 |
> |
ac_status=$? |
15776 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15777 |
> |
test $ac_status = 0; } |
15778 |
> |
;; |
15779 |
> |
esac |
15780 |
> |
|
15781 |
> |
else |
15782 |
> |
|
15783 |
> |
CFLAGS=$flag |
15784 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15785 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15786 |
> |
ac_status=$? |
15787 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15788 |
> |
test $ac_status = 0; } |
15789 |
> |
|
15790 |
> |
fi |
15791 |
|
|
15792 |
+ |
else |
15793 |
+ |
: |
15794 |
+ |
fi |
15795 |
+ |
|
15796 |
+ |
done |
15797 |
+ |
|
15798 |
+ |
|
15799 |
+ |
|
15800 |
+ |
|
15801 |
+ |
|
15802 |
+ |
for flag in -Woverride-init; do |
15803 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15804 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15805 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15806 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
15807 |
+ |
$as_echo_n "(cached) " >&6 |
15808 |
+ |
else |
15809 |
+ |
|
15810 |
+ |
ax_check_save_flags=$CFLAGS |
15811 |
+ |
CFLAGS="$CFLAGS $flag" |
15812 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15813 |
|
/* end confdefs.h. */ |
15814 |
< |
#include <devpoll.h> |
15814 |
> |
|
15815 |
|
int |
15816 |
|
main () |
15817 |
|
{ |
15821 |
|
} |
15822 |
|
_ACEOF |
15823 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
15824 |
< |
is_devpoll_mechanism_available="yes" |
15824 |
> |
eval "$as_CACHEVAR=yes" |
15825 |
|
else |
15826 |
< |
is_devpoll_mechanism_available="no" |
15826 |
> |
eval "$as_CACHEVAR=no" |
15827 |
|
fi |
15828 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15829 |
< |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
15829 |
> |
CFLAGS=$ax_check_save_flags |
15830 |
> |
fi |
15831 |
> |
eval ac_res=\$$as_CACHEVAR |
15832 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15833 |
> |
$as_echo "$ac_res" >&6; } |
15834 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15835 |
|
|
15836 |
< |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
15836 |
> |
if ${CFLAGS+:} false; then : |
15837 |
|
|
15838 |
< |
fi |
15838 |
> |
case " $CFLAGS " in #( |
15839 |
> |
*" $flag "*) : |
15840 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15841 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15842 |
> |
ac_status=$? |
15843 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15844 |
> |
test $ac_status = 0; } ;; #( |
15845 |
> |
*) : |
15846 |
> |
|
15847 |
> |
as_fn_append CFLAGS " $flag" |
15848 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15849 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15850 |
> |
ac_status=$? |
15851 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15852 |
> |
test $ac_status = 0; } |
15853 |
> |
;; |
15854 |
> |
esac |
15855 |
> |
|
15856 |
> |
else |
15857 |
> |
|
15858 |
> |
CFLAGS=$flag |
15859 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15860 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15861 |
> |
ac_status=$? |
15862 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15863 |
> |
test $ac_status = 0; } |
15864 |
> |
|
15865 |
> |
fi |
15866 |
> |
|
15867 |
> |
else |
15868 |
> |
: |
15869 |
> |
fi |
15870 |
> |
|
15871 |
> |
done |
15872 |
> |
|
15873 |
> |
|
15874 |
> |
|
15875 |
> |
|
15876 |
> |
|
15877 |
> |
for flag in -Wpointer-arith; do |
15878 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15879 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15880 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15881 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
15882 |
> |
$as_echo_n "(cached) " >&6 |
15883 |
> |
else |
15884 |
> |
|
15885 |
> |
ax_check_save_flags=$CFLAGS |
15886 |
> |
CFLAGS="$CFLAGS $flag" |
15887 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15888 |
|
/* end confdefs.h. */ |
15889 |
< |
#include <sys/devpoll.h> |
15889 |
> |
|
15890 |
|
int |
15891 |
|
main () |
15892 |
|
{ |
15896 |
|
} |
15897 |
|
_ACEOF |
15898 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
15899 |
< |
is_devpoll_mechanism_available="yes" |
15899 |
> |
eval "$as_CACHEVAR=yes" |
15900 |
|
else |
15901 |
< |
is_devpoll_mechanism_available="no" |
15901 |
> |
eval "$as_CACHEVAR=no" |
15902 |
|
fi |
15903 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15904 |
< |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
15904 |
> |
CFLAGS=$ax_check_save_flags |
15905 |
> |
fi |
15906 |
> |
eval ac_res=\$$as_CACHEVAR |
15907 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15908 |
> |
$as_echo "$ac_res" >&6; } |
15909 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15910 |
|
|
15911 |
< |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
15911 |
> |
if ${CFLAGS+:} false; then : |
15912 |
|
|
15913 |
< |
fi |
15914 |
< |
iopoll_mechanism_rtsigio=4 |
15913 |
> |
case " $CFLAGS " in #( |
15914 |
> |
*" $flag "*) : |
15915 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15916 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15917 |
> |
ac_status=$? |
15918 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15919 |
> |
test $ac_status = 0; } ;; #( |
15920 |
> |
*) : |
15921 |
|
|
15922 |
< |
cat >>confdefs.h <<_ACEOF |
15923 |
< |
#define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio |
15924 |
< |
_ACEOF |
15922 |
> |
as_fn_append CFLAGS " $flag" |
15923 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15924 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
15925 |
> |
ac_status=$? |
15926 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15927 |
> |
test $ac_status = 0; } |
15928 |
> |
;; |
15929 |
> |
esac |
15930 |
|
|
14216 |
– |
if test "$cross_compiling" = yes; then : |
14217 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
14218 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
14219 |
– |
as_fn_error $? "cannot run test program while cross compiling |
14220 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
15931 |
|
else |
15932 |
+ |
|
15933 |
+ |
CFLAGS=$flag |
15934 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15935 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
15936 |
+ |
ac_status=$? |
15937 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15938 |
+ |
test $ac_status = 0; } |
15939 |
+ |
|
15940 |
+ |
fi |
15941 |
+ |
|
15942 |
+ |
else |
15943 |
+ |
: |
15944 |
+ |
fi |
15945 |
+ |
|
15946 |
+ |
done |
15947 |
+ |
|
15948 |
+ |
|
15949 |
+ |
|
15950 |
+ |
|
15951 |
+ |
|
15952 |
+ |
for flag in -Wredundant-decls; do |
15953 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
15954 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
15955 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
15956 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
15957 |
+ |
$as_echo_n "(cached) " >&6 |
15958 |
+ |
else |
15959 |
+ |
|
15960 |
+ |
ax_check_save_flags=$CFLAGS |
15961 |
+ |
CFLAGS="$CFLAGS $flag" |
15962 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15963 |
|
/* end confdefs.h. */ |
15964 |
|
|
14225 |
– |
#define _GNU_SOURCE |
14226 |
– |
#include <fcntl.h> |
14227 |
– |
static unsigned int have_f_setsig = 0; |
14228 |
– |
|
15965 |
|
int |
15966 |
|
main () |
15967 |
|
{ |
15968 |
|
|
14233 |
– |
#ifdef F_SETSIG |
14234 |
– |
have_f_setsig = 1; |
14235 |
– |
#endif |
14236 |
– |
return have_f_setsig == 0; |
14237 |
– |
|
15969 |
|
; |
15970 |
|
return 0; |
15971 |
|
} |
15972 |
|
_ACEOF |
15973 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
15974 |
< |
is_rtsigio_mechanism_available="yes" |
15973 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
15974 |
> |
eval "$as_CACHEVAR=yes" |
15975 |
|
else |
15976 |
< |
is_rtsigio_mechanism_available="no" |
15976 |
> |
eval "$as_CACHEVAR=no" |
15977 |
|
fi |
15978 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15979 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
15978 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15979 |
> |
CFLAGS=$ax_check_save_flags |
15980 |
|
fi |
15981 |
+ |
eval ac_res=\$$as_CACHEVAR |
15982 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
15983 |
+ |
$as_echo "$ac_res" >&6; } |
15984 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
15985 |
|
|
15986 |
< |
iopoll_mechanism_poll=5 |
15986 |
> |
if ${CFLAGS+:} false; then : |
15987 |
|
|
15988 |
< |
cat >>confdefs.h <<_ACEOF |
15989 |
< |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
15990 |
< |
_ACEOF |
15988 |
> |
case " $CFLAGS " in #( |
15989 |
> |
*" $flag "*) : |
15990 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
15991 |
> |
(: CFLAGS already contains $flag) 2>&5 |
15992 |
> |
ac_status=$? |
15993 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15994 |
> |
test $ac_status = 0; } ;; #( |
15995 |
> |
*) : |
15996 |
|
|
15997 |
+ |
as_fn_append CFLAGS " $flag" |
15998 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
15999 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
16000 |
+ |
ac_status=$? |
16001 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16002 |
+ |
test $ac_status = 0; } |
16003 |
+ |
;; |
16004 |
+ |
esac |
16005 |
+ |
|
16006 |
+ |
else |
16007 |
+ |
|
16008 |
+ |
CFLAGS=$flag |
16009 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16010 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
16011 |
+ |
ac_status=$? |
16012 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16013 |
+ |
test $ac_status = 0; } |
16014 |
+ |
|
16015 |
+ |
fi |
16016 |
+ |
|
16017 |
+ |
else |
16018 |
+ |
: |
16019 |
+ |
fi |
16020 |
+ |
|
16021 |
+ |
done |
16022 |
+ |
|
16023 |
+ |
|
16024 |
+ |
|
16025 |
+ |
|
16026 |
+ |
|
16027 |
+ |
for flag in -Wshadow; do |
16028 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
16029 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
16030 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
16031 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
16032 |
+ |
$as_echo_n "(cached) " >&6 |
16033 |
+ |
else |
16034 |
+ |
|
16035 |
+ |
ax_check_save_flags=$CFLAGS |
16036 |
+ |
CFLAGS="$CFLAGS $flag" |
16037 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16038 |
|
/* end confdefs.h. */ |
14259 |
– |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
14260 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14261 |
– |
#define poll innocuous_poll |
16039 |
|
|
16040 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
16041 |
< |
which can conflict with char poll (); below. |
16042 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14266 |
< |
<limits.h> exists even on freestanding compilers. */ |
16040 |
> |
int |
16041 |
> |
main () |
16042 |
> |
{ |
16043 |
|
|
16044 |
< |
#ifdef __STDC__ |
16045 |
< |
# include <limits.h> |
16046 |
< |
#else |
16047 |
< |
# include <assert.h> |
16048 |
< |
#endif |
16044 |
> |
; |
16045 |
> |
return 0; |
16046 |
> |
} |
16047 |
> |
_ACEOF |
16048 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
16049 |
> |
eval "$as_CACHEVAR=yes" |
16050 |
> |
else |
16051 |
> |
eval "$as_CACHEVAR=no" |
16052 |
> |
fi |
16053 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16054 |
> |
CFLAGS=$ax_check_save_flags |
16055 |
> |
fi |
16056 |
> |
eval ac_res=\$$as_CACHEVAR |
16057 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
16058 |
> |
$as_echo "$ac_res" >&6; } |
16059 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
16060 |
|
|
16061 |
< |
#undef poll |
16061 |
> |
if ${CFLAGS+:} false; then : |
16062 |
|
|
16063 |
< |
/* Override any GCC internal prototype to avoid an error. |
16064 |
< |
Use char because int might match the return type of a GCC |
16065 |
< |
builtin and then its argument prototype would still apply. */ |
16066 |
< |
#ifdef __cplusplus |
16067 |
< |
extern "C" |
16068 |
< |
#endif |
16069 |
< |
char poll (); |
16070 |
< |
/* The GNU C library defines this for functions which it implements |
16071 |
< |
to always fail with ENOSYS. Some functions are actually named |
16072 |
< |
something starting with __ and the normal name is an alias. */ |
16073 |
< |
#if defined __stub_poll || defined __stub___poll |
16074 |
< |
choke me |
16075 |
< |
#endif |
16063 |
> |
case " $CFLAGS " in #( |
16064 |
> |
*" $flag "*) : |
16065 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
16066 |
> |
(: CFLAGS already contains $flag) 2>&5 |
16067 |
> |
ac_status=$? |
16068 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16069 |
> |
test $ac_status = 0; } ;; #( |
16070 |
> |
*) : |
16071 |
> |
|
16072 |
> |
as_fn_append CFLAGS " $flag" |
16073 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16074 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
16075 |
> |
ac_status=$? |
16076 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16077 |
> |
test $ac_status = 0; } |
16078 |
> |
;; |
16079 |
> |
esac |
16080 |
> |
|
16081 |
> |
else |
16082 |
> |
|
16083 |
> |
CFLAGS=$flag |
16084 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16085 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
16086 |
> |
ac_status=$? |
16087 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16088 |
> |
test $ac_status = 0; } |
16089 |
> |
|
16090 |
> |
fi |
16091 |
> |
|
16092 |
> |
else |
16093 |
> |
: |
16094 |
> |
fi |
16095 |
> |
|
16096 |
> |
done |
16097 |
> |
|
16098 |
> |
|
16099 |
> |
|
16100 |
> |
|
16101 |
> |
|
16102 |
> |
for flag in -Wsign-compare; do |
16103 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
16104 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
16105 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
16106 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
16107 |
> |
$as_echo_n "(cached) " >&6 |
16108 |
> |
else |
16109 |
> |
|
16110 |
> |
ax_check_save_flags=$CFLAGS |
16111 |
> |
CFLAGS="$CFLAGS $flag" |
16112 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16113 |
> |
/* end confdefs.h. */ |
16114 |
|
|
16115 |
|
int |
16116 |
|
main () |
16117 |
|
{ |
16118 |
< |
return poll (); |
16118 |
> |
|
16119 |
|
; |
16120 |
|
return 0; |
16121 |
|
} |
16122 |
|
_ACEOF |
16123 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
16124 |
< |
is_poll_mechanism_available="yes" |
16123 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
16124 |
> |
eval "$as_CACHEVAR=yes" |
16125 |
|
else |
16126 |
< |
is_poll_mechanism_available="no" |
16126 |
> |
eval "$as_CACHEVAR=no" |
16127 |
|
fi |
16128 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
16129 |
< |
conftest$ac_exeext conftest.$ac_ext |
16130 |
< |
iopoll_mechanism_select=6 |
16128 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16129 |
> |
CFLAGS=$ax_check_save_flags |
16130 |
> |
fi |
16131 |
> |
eval ac_res=\$$as_CACHEVAR |
16132 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
16133 |
> |
$as_echo "$ac_res" >&6; } |
16134 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
16135 |
|
|
16136 |
< |
cat >>confdefs.h <<_ACEOF |
16137 |
< |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
16138 |
< |
_ACEOF |
16136 |
> |
if ${CFLAGS+:} false; then : |
16137 |
> |
|
16138 |
> |
case " $CFLAGS " in #( |
16139 |
> |
*" $flag "*) : |
16140 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
16141 |
> |
(: CFLAGS already contains $flag) 2>&5 |
16142 |
> |
ac_status=$? |
16143 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16144 |
> |
test $ac_status = 0; } ;; #( |
16145 |
> |
*) : |
16146 |
> |
|
16147 |
> |
as_fn_append CFLAGS " $flag" |
16148 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16149 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
16150 |
> |
ac_status=$? |
16151 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16152 |
> |
test $ac_status = 0; } |
16153 |
> |
;; |
16154 |
> |
esac |
16155 |
|
|
16156 |
+ |
else |
16157 |
+ |
|
16158 |
+ |
CFLAGS=$flag |
16159 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16160 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
16161 |
+ |
ac_status=$? |
16162 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16163 |
+ |
test $ac_status = 0; } |
16164 |
+ |
|
16165 |
+ |
fi |
16166 |
+ |
|
16167 |
+ |
else |
16168 |
+ |
: |
16169 |
+ |
fi |
16170 |
+ |
|
16171 |
+ |
done |
16172 |
+ |
|
16173 |
+ |
|
16174 |
+ |
|
16175 |
+ |
|
16176 |
+ |
|
16177 |
+ |
for flag in -Wtype-limits; do |
16178 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
16179 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
16180 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
16181 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
16182 |
+ |
$as_echo_n "(cached) " >&6 |
16183 |
+ |
else |
16184 |
+ |
|
16185 |
+ |
ax_check_save_flags=$CFLAGS |
16186 |
+ |
CFLAGS="$CFLAGS $flag" |
16187 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16188 |
|
/* end confdefs.h. */ |
14313 |
– |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
14314 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14315 |
– |
#define select innocuous_select |
16189 |
|
|
16190 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
16191 |
< |
which can conflict with char select (); below. |
16192 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14320 |
< |
<limits.h> exists even on freestanding compilers. */ |
16190 |
> |
int |
16191 |
> |
main () |
16192 |
> |
{ |
16193 |
|
|
16194 |
< |
#ifdef __STDC__ |
16195 |
< |
# include <limits.h> |
16196 |
< |
#else |
16197 |
< |
# include <assert.h> |
16198 |
< |
#endif |
16194 |
> |
; |
16195 |
> |
return 0; |
16196 |
> |
} |
16197 |
> |
_ACEOF |
16198 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
16199 |
> |
eval "$as_CACHEVAR=yes" |
16200 |
> |
else |
16201 |
> |
eval "$as_CACHEVAR=no" |
16202 |
> |
fi |
16203 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16204 |
> |
CFLAGS=$ax_check_save_flags |
16205 |
> |
fi |
16206 |
> |
eval ac_res=\$$as_CACHEVAR |
16207 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
16208 |
> |
$as_echo "$ac_res" >&6; } |
16209 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
16210 |
> |
|
16211 |
> |
if ${CFLAGS+:} false; then : |
16212 |
> |
|
16213 |
> |
case " $CFLAGS " in #( |
16214 |
> |
*" $flag "*) : |
16215 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
16216 |
> |
(: CFLAGS already contains $flag) 2>&5 |
16217 |
> |
ac_status=$? |
16218 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16219 |
> |
test $ac_status = 0; } ;; #( |
16220 |
> |
*) : |
16221 |
> |
|
16222 |
> |
as_fn_append CFLAGS " $flag" |
16223 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16224 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
16225 |
> |
ac_status=$? |
16226 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16227 |
> |
test $ac_status = 0; } |
16228 |
> |
;; |
16229 |
> |
esac |
16230 |
> |
|
16231 |
> |
else |
16232 |
> |
|
16233 |
> |
CFLAGS=$flag |
16234 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16235 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
16236 |
> |
ac_status=$? |
16237 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16238 |
> |
test $ac_status = 0; } |
16239 |
> |
|
16240 |
> |
fi |
16241 |
> |
|
16242 |
> |
else |
16243 |
> |
: |
16244 |
> |
fi |
16245 |
> |
|
16246 |
> |
done |
16247 |
|
|
14328 |
– |
#undef select |
16248 |
|
|
16249 |
< |
/* Override any GCC internal prototype to avoid an error. |
16250 |
< |
Use char because int might match the return type of a GCC |
16251 |
< |
builtin and then its argument prototype would still apply. */ |
16252 |
< |
#ifdef __cplusplus |
16253 |
< |
extern "C" |
16254 |
< |
#endif |
16255 |
< |
char select (); |
16256 |
< |
/* The GNU C library defines this for functions which it implements |
16257 |
< |
to always fail with ENOSYS. Some functions are actually named |
16258 |
< |
something starting with __ and the normal name is an alias. */ |
16259 |
< |
#if defined __stub_select || defined __stub___select |
16260 |
< |
choke me |
16261 |
< |
#endif |
16249 |
> |
|
16250 |
> |
|
16251 |
> |
|
16252 |
> |
for flag in -Wundef; do |
16253 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
16254 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
16255 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
16256 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
16257 |
> |
$as_echo_n "(cached) " >&6 |
16258 |
> |
else |
16259 |
> |
|
16260 |
> |
ax_check_save_flags=$CFLAGS |
16261 |
> |
CFLAGS="$CFLAGS $flag" |
16262 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16263 |
> |
/* end confdefs.h. */ |
16264 |
|
|
16265 |
|
int |
16266 |
|
main () |
16267 |
|
{ |
16268 |
< |
return select (); |
16268 |
> |
|
16269 |
|
; |
16270 |
|
return 0; |
16271 |
|
} |
16272 |
|
_ACEOF |
16273 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
16274 |
< |
is_select_mechanism_available="yes" |
16273 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
16274 |
> |
eval "$as_CACHEVAR=yes" |
16275 |
|
else |
16276 |
< |
is_select_mechanism_available="no" |
16276 |
> |
eval "$as_CACHEVAR=no" |
16277 |
|
fi |
16278 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
16279 |
< |
conftest$ac_exeext conftest.$ac_ext |
16280 |
< |
optimal_iopoll_mechanism="none" |
16281 |
< |
for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important |
16282 |
< |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
16283 |
< |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
16284 |
< |
optimal_iopoll_mechanism="$mechanism" |
14364 |
< |
break |
14365 |
< |
fi |
14366 |
< |
done |
14367 |
< |
if test "$desired_iopoll_mechanism" = "none" ; then |
14368 |
< |
if test "$optimal_iopoll_mechanism" = "none" ; then |
14369 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
14370 |
< |
$as_echo "none" >&6; } |
14371 |
< |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
14372 |
< |
else |
14373 |
< |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
14374 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
14375 |
< |
$as_echo "$selected_iopoll_mechanism" >&6; } |
14376 |
< |
fi |
14377 |
< |
else |
14378 |
< |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
14379 |
< |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
14380 |
< |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
14381 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
14382 |
< |
$as_echo "$selected_iopoll_mechanism" >&6; } |
14383 |
< |
else |
14384 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
14385 |
< |
$as_echo "none" >&6; } |
14386 |
< |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
14387 |
< |
fi |
14388 |
< |
fi |
14389 |
< |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
16278 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16279 |
> |
CFLAGS=$ax_check_save_flags |
16280 |
> |
fi |
16281 |
> |
eval ac_res=\$$as_CACHEVAR |
16282 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
16283 |
> |
$as_echo "$ac_res" >&6; } |
16284 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
16285 |
|
|
16286 |
< |
cat >>confdefs.h <<_ACEOF |
16287 |
< |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
16288 |
< |
_ACEOF |
16286 |
> |
if ${CFLAGS+:} false; then : |
16287 |
> |
|
16288 |
> |
case " $CFLAGS " in #( |
16289 |
> |
*" $flag "*) : |
16290 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
16291 |
> |
(: CFLAGS already contains $flag) 2>&5 |
16292 |
> |
ac_status=$? |
16293 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16294 |
> |
test $ac_status = 0; } ;; #( |
16295 |
> |
*) : |
16296 |
> |
|
16297 |
> |
as_fn_append CFLAGS " $flag" |
16298 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16299 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
16300 |
> |
ac_status=$? |
16301 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16302 |
> |
test $ac_status = 0; } |
16303 |
> |
;; |
16304 |
> |
esac |
16305 |
|
|
16306 |
+ |
else |
16307 |
|
|
16308 |
+ |
CFLAGS=$flag |
16309 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16310 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
16311 |
+ |
ac_status=$? |
16312 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16313 |
+ |
test $ac_status = 0; } |
16314 |
|
|
16315 |
+ |
fi |
16316 |
|
|
14398 |
– |
# Check whether --with-nicklen was given. |
14399 |
– |
if test "${with_nicklen+set}" = set; then : |
14400 |
– |
withval=$with_nicklen; nicklen="$withval" |
16317 |
|
else |
16318 |
< |
nicklen="9" |
16318 |
> |
: |
16319 |
|
fi |
16320 |
|
|
16321 |
+ |
done |
16322 |
|
|
16323 |
< |
cat >>confdefs.h <<_ACEOF |
16324 |
< |
#define NICKLEN ($nicklen+1) |
16323 |
> |
|
16324 |
> |
|
16325 |
> |
|
16326 |
> |
|
16327 |
> |
for flag in -Wuninitialized; do |
16328 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
16329 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
16330 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
16331 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
16332 |
> |
$as_echo_n "(cached) " >&6 |
16333 |
> |
else |
16334 |
> |
|
16335 |
> |
ax_check_save_flags=$CFLAGS |
16336 |
> |
CFLAGS="$CFLAGS $flag" |
16337 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16338 |
> |
/* end confdefs.h. */ |
16339 |
> |
|
16340 |
> |
int |
16341 |
> |
main () |
16342 |
> |
{ |
16343 |
> |
|
16344 |
> |
; |
16345 |
> |
return 0; |
16346 |
> |
} |
16347 |
|
_ACEOF |
16348 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
16349 |
+ |
eval "$as_CACHEVAR=yes" |
16350 |
+ |
else |
16351 |
+ |
eval "$as_CACHEVAR=no" |
16352 |
+ |
fi |
16353 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16354 |
+ |
CFLAGS=$ax_check_save_flags |
16355 |
+ |
fi |
16356 |
+ |
eval ac_res=\$$as_CACHEVAR |
16357 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
16358 |
+ |
$as_echo "$ac_res" >&6; } |
16359 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
16360 |
+ |
|
16361 |
+ |
if ${CFLAGS+:} false; then : |
16362 |
+ |
|
16363 |
+ |
case " $CFLAGS " in #( |
16364 |
+ |
*" $flag "*) : |
16365 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
16366 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
16367 |
+ |
ac_status=$? |
16368 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16369 |
+ |
test $ac_status = 0; } ;; #( |
16370 |
+ |
*) : |
16371 |
+ |
|
16372 |
+ |
as_fn_append CFLAGS " $flag" |
16373 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16374 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
16375 |
+ |
ac_status=$? |
16376 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16377 |
+ |
test $ac_status = 0; } |
16378 |
+ |
;; |
16379 |
+ |
esac |
16380 |
|
|
16381 |
+ |
else |
16382 |
|
|
16383 |
+ |
CFLAGS=$flag |
16384 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16385 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
16386 |
+ |
ac_status=$? |
16387 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16388 |
+ |
test $ac_status = 0; } |
16389 |
|
|
16390 |
+ |
fi |
16391 |
|
|
14413 |
– |
# Check whether --with-topiclen was given. |
14414 |
– |
if test "${with_topiclen+set}" = set; then : |
14415 |
– |
withval=$with_topiclen; topiclen="$withval" |
16392 |
|
else |
16393 |
< |
topiclen="160" |
16393 |
> |
: |
16394 |
|
fi |
16395 |
|
|
16396 |
+ |
done |
16397 |
|
|
16398 |
< |
cat >>confdefs.h <<_ACEOF |
16399 |
< |
#define TOPICLEN ($topiclen) |
16398 |
> |
|
16399 |
> |
|
16400 |
> |
|
16401 |
> |
|
16402 |
> |
for flag in -Wwrite-strings; do |
16403 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
16404 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
16405 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
16406 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
16407 |
> |
$as_echo_n "(cached) " >&6 |
16408 |
> |
else |
16409 |
> |
|
16410 |
> |
ax_check_save_flags=$CFLAGS |
16411 |
> |
CFLAGS="$CFLAGS $flag" |
16412 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16413 |
> |
/* end confdefs.h. */ |
16414 |
> |
|
16415 |
> |
int |
16416 |
> |
main () |
16417 |
> |
{ |
16418 |
> |
|
16419 |
> |
; |
16420 |
> |
return 0; |
16421 |
> |
} |
16422 |
|
_ACEOF |
16423 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
16424 |
+ |
eval "$as_CACHEVAR=yes" |
16425 |
+ |
else |
16426 |
+ |
eval "$as_CACHEVAR=no" |
16427 |
+ |
fi |
16428 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16429 |
+ |
CFLAGS=$ax_check_save_flags |
16430 |
+ |
fi |
16431 |
+ |
eval ac_res=\$$as_CACHEVAR |
16432 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
16433 |
+ |
$as_echo "$ac_res" >&6; } |
16434 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
16435 |
|
|
16436 |
+ |
if ${CFLAGS+:} false; then : |
16437 |
|
|
16438 |
+ |
case " $CFLAGS " in #( |
16439 |
+ |
*" $flag "*) : |
16440 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
16441 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
16442 |
+ |
ac_status=$? |
16443 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16444 |
+ |
test $ac_status = 0; } ;; #( |
16445 |
+ |
*) : |
16446 |
|
|
16447 |
+ |
as_fn_append CFLAGS " $flag" |
16448 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16449 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
16450 |
+ |
ac_status=$? |
16451 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16452 |
+ |
test $ac_status = 0; } |
16453 |
+ |
;; |
16454 |
+ |
esac |
16455 |
|
|
14428 |
– |
# Check whether --with-syslog-facility was given. |
14429 |
– |
if test "${with_syslog_facility+set}" = set; then : |
14430 |
– |
withval=$with_syslog_facility; syslog_facility="$withval" |
16456 |
|
else |
16457 |
< |
syslog_facility="LOG_LOCAL4" |
16457 |
> |
|
16458 |
> |
CFLAGS=$flag |
16459 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
16460 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
16461 |
> |
ac_status=$? |
16462 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16463 |
> |
test $ac_status = 0; } |
16464 |
> |
|
16465 |
|
fi |
16466 |
|
|
16467 |
+ |
else |
16468 |
+ |
: |
16469 |
+ |
fi |
16470 |
+ |
|
16471 |
+ |
done |
16472 |
|
|
14436 |
– |
cat >>confdefs.h <<_ACEOF |
14437 |
– |
#define LOG_FACILITY $syslog_facility |
14438 |
– |
_ACEOF |
16473 |
|
|
16474 |
+ |
fi |
16475 |
|
|
16476 |
|
|
16477 |
< |
# Check whether --enable-efnet was given. |
16478 |
< |
if test "${enable_efnet+set}" = set; then : |
16479 |
< |
enableval=$enable_efnet; efnet="$enableval" |
16477 |
> |
# Check whether --enable-openssl was given. |
16478 |
> |
if test "${enable_openssl+set}" = set; then : |
16479 |
> |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
16480 |
|
else |
16481 |
< |
efnet="no" |
16481 |
> |
cf_enable_openssl="auto" |
16482 |
|
fi |
16483 |
|
|
16484 |
< |
if test "$efnet" = "yes" ; then |
16485 |
< |
use_efnet="yes" |
16484 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5 |
16485 |
> |
$as_echo_n "checking for LibreSSL/OpenSSL... " >&6; } |
16486 |
> |
if test "$cf_enable_openssl" != "no"; then |
16487 |
> |
cf_openssl_basedir="" |
16488 |
> |
if test "$cf_enable_openssl" != "auto" && |
16489 |
> |
test "$cf_enable_openssl" != "yes"; then |
16490 |
> |
cf_openssl_basedir="${cf_enable_openssl}" |
16491 |
> |
else |
16492 |
> |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
16493 |
> |
/opt /opt/openssl /usr/local/openssl; do |
16494 |
> |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
16495 |
> |
cf_openssl_basedir="${dirs}" |
16496 |
> |
break |
16497 |
> |
fi |
16498 |
> |
done |
16499 |
> |
unset dirs |
16500 |
> |
fi |
16501 |
|
|
16502 |
< |
$as_echo "#define EFNET 1" >>confdefs.h |
16502 |
> |
if test ! -z "$cf_openssl_basedir"; then |
16503 |
> |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
16504 |
> |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
16505 |
> |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
16506 |
> |
else |
16507 |
> |
cf_openssl_basedir="" |
16508 |
> |
fi |
16509 |
> |
else |
16510 |
> |
if test -f "/usr/include/openssl/opensslv.h"; then |
16511 |
> |
cf_openssl_basedir="/usr" |
16512 |
> |
fi |
16513 |
> |
fi |
16514 |
|
|
16515 |
< |
else |
16516 |
< |
use_efnet="no" |
16515 |
> |
if test ! -z "$cf_openssl_basedir"; then |
16516 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
16517 |
> |
$as_echo "$cf_openssl_basedir" >&6; } |
16518 |
> |
cf_enable_openssl="yes" |
16519 |
> |
else |
16520 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
16521 |
> |
$as_echo "not found. Please check your path." >&6; } |
16522 |
> |
cf_enable_openssl="no" |
16523 |
|
fi |
16524 |
< |
if test "$use_efnet" = "yes"; then |
14458 |
< |
EFNET_TRUE= |
14459 |
< |
EFNET_FALSE='#' |
16524 |
> |
unset cf_openssl_basedir |
16525 |
|
else |
16526 |
< |
EFNET_TRUE='#' |
16527 |
< |
EFNET_FALSE= |
16526 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
16527 |
> |
$as_echo "disabled" >&6; } |
16528 |
|
fi |
16529 |
|
|
16530 |
+ |
if test "$cf_enable_openssl" != "no"; then : |
16531 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5 |
16532 |
+ |
$as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; } |
16533 |
+ |
if test "$cross_compiling" = yes; then : |
16534 |
+ |
cf_openssl_version_ok=no |
16535 |
+ |
else |
16536 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16537 |
+ |
/* end confdefs.h. */ |
16538 |
|
|
16539 |
|
|
16540 |
< |
# Check whether --enable-halfops was given. |
16541 |
< |
if test "${enable_halfops+set}" = set; then : |
16542 |
< |
enableval=$enable_halfops; halfops="$enableval" |
16540 |
> |
#include <openssl/opensslv.h> |
16541 |
> |
#include <stdlib.h> |
16542 |
> |
int |
16543 |
> |
main () |
16544 |
> |
{ |
16545 |
> |
exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL)); |
16546 |
> |
; |
16547 |
> |
return 0; |
16548 |
> |
} |
16549 |
> |
_ACEOF |
16550 |
> |
if ac_fn_c_try_run "$LINENO"; then : |
16551 |
> |
cf_openssl_version_ok=yes |
16552 |
|
else |
16553 |
< |
halfops="no" |
16553 |
> |
cf_openssl_version_ok=no |
16554 |
> |
fi |
16555 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16556 |
> |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
16557 |
|
fi |
16558 |
|
|
14474 |
– |
if test "$halfops" = "yes" ; then |
14475 |
– |
|
14476 |
– |
$as_echo "#define HALFOPS 1" >>confdefs.h |
16559 |
|
|
16560 |
< |
fi |
16560 |
> |
if test "$cf_openssl_version_ok" = "yes"; then : |
16561 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
16562 |
> |
$as_echo "found" >&6; } |
16563 |
|
|
16564 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
16565 |
+ |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
16566 |
+ |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
16567 |
+ |
$as_echo_n "(cached) " >&6 |
16568 |
+ |
else |
16569 |
+ |
ac_check_lib_save_LIBS=$LIBS |
16570 |
+ |
LIBS="-lcrypto $LIBS" |
16571 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16572 |
+ |
/* end confdefs.h. */ |
16573 |
|
|
16574 |
< |
# Check whether --enable-debugging was given. |
16575 |
< |
if test "${enable_debugging+set}" = set; then : |
16576 |
< |
enableval=$enable_debugging; debugging="$enableval" |
16574 |
> |
/* Override any GCC internal prototype to avoid an error. |
16575 |
> |
Use char because int might match the return type of a GCC |
16576 |
> |
builtin and then its argument prototype would still apply. */ |
16577 |
> |
#ifdef __cplusplus |
16578 |
> |
extern "C" |
16579 |
> |
#endif |
16580 |
> |
char RSA_free (); |
16581 |
> |
int |
16582 |
> |
main () |
16583 |
> |
{ |
16584 |
> |
return RSA_free (); |
16585 |
> |
; |
16586 |
> |
return 0; |
16587 |
> |
} |
16588 |
> |
_ACEOF |
16589 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
16590 |
> |
ac_cv_lib_crypto_RSA_free=yes |
16591 |
|
else |
16592 |
< |
debugging="no" |
16592 |
> |
ac_cv_lib_crypto_RSA_free=no |
16593 |
> |
fi |
16594 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
16595 |
> |
conftest$ac_exeext conftest.$ac_ext |
16596 |
> |
LIBS=$ac_check_lib_save_LIBS |
16597 |
|
fi |
16598 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
16599 |
+ |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
16600 |
+ |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
16601 |
+ |
cat >>confdefs.h <<_ACEOF |
16602 |
+ |
#define HAVE_LIBCRYPTO 1 |
16603 |
+ |
_ACEOF |
16604 |
|
|
16605 |
< |
if test "$debugging" = "yes" ; then |
16605 |
> |
LIBS="-lcrypto $LIBS" |
16606 |
|
|
16607 |
< |
$as_echo "#define DEBUG 1" >>confdefs.h |
16607 |
> |
fi |
16608 |
|
|
16609 |
< |
CFLAGS="-Wall -g -O0" |
16610 |
< |
else |
16609 |
> |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
16610 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
16611 |
> |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
16612 |
> |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
16613 |
> |
$as_echo_n "(cached) " >&6 |
16614 |
> |
else |
16615 |
> |
ac_check_lib_save_LIBS=$LIBS |
16616 |
> |
LIBS="-lssl $LIBS" |
16617 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16618 |
> |
/* end confdefs.h. */ |
16619 |
|
|
16620 |
< |
$as_echo "#define NDEBUG 1" >>confdefs.h |
16620 |
> |
/* Override any GCC internal prototype to avoid an error. |
16621 |
> |
Use char because int might match the return type of a GCC |
16622 |
> |
builtin and then its argument prototype would still apply. */ |
16623 |
> |
#ifdef __cplusplus |
16624 |
> |
extern "C" |
16625 |
> |
#endif |
16626 |
> |
char SSL_connect (); |
16627 |
> |
int |
16628 |
> |
main () |
16629 |
> |
{ |
16630 |
> |
return SSL_connect (); |
16631 |
> |
; |
16632 |
> |
return 0; |
16633 |
> |
} |
16634 |
> |
_ACEOF |
16635 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
16636 |
> |
ac_cv_lib_ssl_SSL_connect=yes |
16637 |
> |
else |
16638 |
> |
ac_cv_lib_ssl_SSL_connect=no |
16639 |
> |
fi |
16640 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
16641 |
> |
conftest$ac_exeext conftest.$ac_ext |
16642 |
> |
LIBS=$ac_check_lib_save_LIBS |
16643 |
> |
fi |
16644 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
16645 |
> |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
16646 |
> |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
16647 |
> |
cat >>confdefs.h <<_ACEOF |
16648 |
> |
#define HAVE_LIBSSL 1 |
16649 |
> |
_ACEOF |
16650 |
|
|
16651 |
< |
fi |
16651 |
> |
LIBS="-lssl $LIBS" |
16652 |
|
|
16653 |
+ |
fi |
16654 |
+ |
|
16655 |
+ |
fi |
16656 |
|
|
14500 |
– |
# Check whether --enable-warnings was given. |
14501 |
– |
if test "${enable_warnings+set}" = set; then : |
14502 |
– |
enableval=$enable_warnings; warnings="$enableval" |
16657 |
|
else |
16658 |
< |
warnings="no" |
16658 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5 |
16659 |
> |
$as_echo "no - LibreSSL/OpenSSL support disabled" >&6; } |
16660 |
> |
cf_enable_openssl="no" |
16661 |
> |
fi |
16662 |
|
fi |
16663 |
|
|
14507 |
– |
if test "$warnings" = "yes" ; then |
14508 |
– |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
14509 |
– |
fi |
16664 |
|
|
16665 |
+ |
# Check whether --enable-gnutls was given. |
16666 |
+ |
if test "${enable_gnutls+set}" = set; then : |
16667 |
+ |
enableval=$enable_gnutls; cf_enable_gnutls=$enableval |
16668 |
+ |
else |
16669 |
+ |
cf_enable_gnutls="auto" |
16670 |
+ |
fi |
16671 |
|
|
16672 |
< |
for ac_header in syslog.h sys/syslog.h |
16673 |
< |
do : |
16674 |
< |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16675 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
16676 |
< |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
16672 |
> |
|
16673 |
> |
if test "$cf_enable_openssl" != "auto" && |
16674 |
> |
test "$cf_enable_openssl" != "yes"; then |
16675 |
> |
if test "$cf_enable_gnutls" != "no"; then |
16676 |
> |
|
16677 |
> |
ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" |
16678 |
> |
if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : |
16679 |
> |
|
16680 |
> |
if test "$cross_compiling" = yes; then : |
16681 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
16682 |
> |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
16683 |
> |
as_fn_error $? "cannot run test program while cross compiling |
16684 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
16685 |
> |
else |
16686 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16687 |
> |
/* end confdefs.h. */ |
16688 |
> |
|
16689 |
> |
|
16690 |
> |
#include <gnutls/gnutls.h> |
16691 |
> |
#include <stdlib.h> |
16692 |
> |
int |
16693 |
> |
main () |
16694 |
> |
{ |
16695 |
> |
|
16696 |
> |
exit(!(GNUTLS_VERSION_NUMBER >= 0x030308)); |
16697 |
> |
; |
16698 |
> |
return 0; |
16699 |
> |
} |
16700 |
> |
_ACEOF |
16701 |
> |
if ac_fn_c_try_run "$LINENO"; then : |
16702 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5 |
16703 |
> |
$as_echo_n "checking for gnutls_init in -lgnutls... " >&6; } |
16704 |
> |
if ${ac_cv_lib_gnutls_gnutls_init+:} false; then : |
16705 |
> |
$as_echo_n "(cached) " >&6 |
16706 |
> |
else |
16707 |
> |
ac_check_lib_save_LIBS=$LIBS |
16708 |
> |
LIBS="-lgnutls $LIBS" |
16709 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16710 |
> |
/* end confdefs.h. */ |
16711 |
> |
|
16712 |
> |
/* Override any GCC internal prototype to avoid an error. |
16713 |
> |
Use char because int might match the return type of a GCC |
16714 |
> |
builtin and then its argument prototype would still apply. */ |
16715 |
> |
#ifdef __cplusplus |
16716 |
> |
extern "C" |
16717 |
> |
#endif |
16718 |
> |
char gnutls_init (); |
16719 |
> |
int |
16720 |
> |
main () |
16721 |
> |
{ |
16722 |
> |
return gnutls_init (); |
16723 |
> |
; |
16724 |
> |
return 0; |
16725 |
> |
} |
16726 |
> |
_ACEOF |
16727 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
16728 |
> |
ac_cv_lib_gnutls_gnutls_init=yes |
16729 |
> |
else |
16730 |
> |
ac_cv_lib_gnutls_gnutls_init=no |
16731 |
> |
fi |
16732 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
16733 |
> |
conftest$ac_exeext conftest.$ac_ext |
16734 |
> |
LIBS=$ac_check_lib_save_LIBS |
16735 |
> |
fi |
16736 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5 |
16737 |
> |
$as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; } |
16738 |
> |
if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then : |
16739 |
|
cat >>confdefs.h <<_ACEOF |
16740 |
< |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
16740 |
> |
#define HAVE_LIBGNUTLS 1 |
16741 |
|
_ACEOF |
16742 |
|
|
16743 |
+ |
LIBS="-lgnutls $LIBS" |
16744 |
+ |
|
16745 |
|
fi |
16746 |
|
|
16747 |
< |
done |
16747 |
> |
fi |
16748 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16749 |
> |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
16750 |
> |
fi |
16751 |
|
|
14525 |
– |
# Check whether --enable-syslog was given. |
14526 |
– |
if test "${enable_syslog+set}" = set; then : |
14527 |
– |
enableval=$enable_syslog; syslog="$enableval" |
14528 |
– |
else |
14529 |
– |
syslog="no" |
16752 |
|
fi |
16753 |
|
|
14532 |
– |
if test "$enableval" != "no" ; then |
14533 |
– |
for option in $enableval ; do |
14534 |
– |
case "$option" in |
14535 |
– |
users) |
14536 |
– |
$as_echo "#define SYSLOG_USERS 1" >>confdefs.h |
14537 |
– |
;; |
14538 |
– |
oper) |
14539 |
– |
$as_echo "#define SYSLOG_OPER 1" >>confdefs.h |
14540 |
– |
;; |
14541 |
– |
yes) : ;; |
14542 |
– |
*) as_fn_error $? "invalid value for --enable-syslog: $option" "$LINENO" 5 ;; |
14543 |
– |
esac |
14544 |
– |
done |
16754 |
|
|
16755 |
< |
$as_echo "#define USE_SYSLOG 1" >>confdefs.h |
16755 |
> |
fi |
16756 |
> |
fi |
16757 |
> |
|
16758 |
> |
|
16759 |
> |
# Check whether --enable-libgeoip was given. |
16760 |
> |
if test "${enable_libgeoip+set}" = set; then : |
16761 |
> |
enableval=$enable_libgeoip; |
16762 |
> |
else |
16763 |
> |
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
16764 |
> |
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
16765 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5 |
16766 |
> |
$as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; } |
16767 |
> |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
16768 |
> |
$as_echo_n "(cached) " >&6 |
16769 |
> |
else |
16770 |
> |
ac_func_search_save_LIBS=$LIBS |
16771 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16772 |
> |
/* end confdefs.h. */ |
16773 |
|
|
16774 |
+ |
/* Override any GCC internal prototype to avoid an error. |
16775 |
+ |
Use char because int might match the return type of a GCC |
16776 |
+ |
builtin and then its argument prototype would still apply. */ |
16777 |
+ |
#ifdef __cplusplus |
16778 |
+ |
extern "C" |
16779 |
+ |
#endif |
16780 |
+ |
char GeoIP_id_by_ipnum_v6_gl (); |
16781 |
+ |
int |
16782 |
+ |
main () |
16783 |
+ |
{ |
16784 |
+ |
return GeoIP_id_by_ipnum_v6_gl (); |
16785 |
+ |
; |
16786 |
+ |
return 0; |
16787 |
+ |
} |
16788 |
+ |
_ACEOF |
16789 |
+ |
for ac_lib in '' GeoIP; do |
16790 |
+ |
if test -z "$ac_lib"; then |
16791 |
+ |
ac_res="none required" |
16792 |
+ |
else |
16793 |
+ |
ac_res=-l$ac_lib |
16794 |
+ |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
16795 |
|
fi |
16796 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
16797 |
+ |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res |
16798 |
+ |
fi |
16799 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
16800 |
+ |
conftest$ac_exeext |
16801 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
16802 |
+ |
break |
16803 |
+ |
fi |
16804 |
+ |
done |
16805 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
16806 |
+ |
|
16807 |
+ |
else |
16808 |
+ |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no |
16809 |
+ |
fi |
16810 |
+ |
rm conftest.$ac_ext |
16811 |
+ |
LIBS=$ac_func_search_save_LIBS |
16812 |
+ |
fi |
16813 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5 |
16814 |
+ |
$as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; } |
16815 |
+ |
ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl |
16816 |
+ |
if test "$ac_res" != no; then : |
16817 |
+ |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
16818 |
+ |
|
16819 |
+ |
$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h |
16820 |
+ |
|
16821 |
+ |
fi |
16822 |
+ |
|
16823 |
+ |
fi |
16824 |
+ |
|
16825 |
+ |
|
16826 |
+ |
fi |
16827 |
+ |
|
16828 |
|
|
16829 |
|
|
16830 |
|
|
16913 |
|
test "$exec_prefix_NONE" && exec_prefix=NONE |
16914 |
|
|
16915 |
|
|
16916 |
< |
ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
16916 |
> |
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" |
16917 |
|
|
16918 |
|
|
16919 |
|
cat >confcache <<\_ACEOF |
17025 |
|
LTLIBOBJS=$ac_ltlibobjs |
17026 |
|
|
17027 |
|
|
17028 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17029 |
+ |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
17030 |
+ |
if test -n "$am_sleep_pid"; then |
17031 |
+ |
# Hide warnings about reused PIDs. |
17032 |
+ |
wait $am_sleep_pid 2>/dev/null |
17033 |
+ |
fi |
17034 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
17035 |
+ |
$as_echo "done" >&6; } |
17036 |
|
if test -n "$EXEEXT"; then |
17037 |
|
am__EXEEXT_TRUE= |
17038 |
|
am__EXEEXT_FALSE='#' |
17079 |
|
|
17080 |
|
|
17081 |
|
|
14795 |
– |
if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then |
14796 |
– |
as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined. |
14797 |
– |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14798 |
– |
fi |
14799 |
– |
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then |
14800 |
– |
as_fn_error $? "conditional \"ENABLE_SSL\" was never defined. |
14801 |
– |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14802 |
– |
fi |
14803 |
– |
if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then |
14804 |
– |
as_fn_error $? "conditional \"EFNET\" was never defined. |
14805 |
– |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14806 |
– |
fi |
17082 |
|
|
17083 |
|
: "${CONFIG_STATUS=./config.status}" |
17084 |
|
ac_write_fail=0 |
17377 |
|
# ... but there are two gotchas: |
17378 |
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
17379 |
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
17380 |
< |
# In both cases, we have to default to `cp -p'. |
17380 |
> |
# In both cases, we have to default to `cp -pR'. |
17381 |
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
17382 |
< |
as_ln_s='cp -p' |
17382 |
> |
as_ln_s='cp -pR' |
17383 |
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
17384 |
|
as_ln_s=ln |
17385 |
|
else |
17386 |
< |
as_ln_s='cp -p' |
17386 |
> |
as_ln_s='cp -pR' |
17387 |
|
fi |
17388 |
|
else |
17389 |
< |
as_ln_s='cp -p' |
17389 |
> |
as_ln_s='cp -pR' |
17390 |
|
fi |
17391 |
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17392 |
|
rmdir conf$$.dir 2>/dev/null |
17446 |
|
as_mkdir_p=false |
17447 |
|
fi |
17448 |
|
|
17449 |
< |
if test -x / >/dev/null 2>&1; then |
17450 |
< |
as_test_x='test -x' |
17451 |
< |
else |
17452 |
< |
if ls -dL / >/dev/null 2>&1; then |
17453 |
< |
as_ls_L_option=L |
17454 |
< |
else |
17455 |
< |
as_ls_L_option= |
17456 |
< |
fi |
17457 |
< |
as_test_x=' |
17458 |
< |
eval sh -c '\'' |
15184 |
< |
if test -d "$1"; then |
15185 |
< |
test -d "$1/."; |
15186 |
< |
else |
15187 |
< |
case $1 in #( |
15188 |
< |
-*)set "./$1";; |
15189 |
< |
esac; |
15190 |
< |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
15191 |
< |
???[sx]*):;;*)false;;esac;fi |
15192 |
< |
'\'' sh |
15193 |
< |
' |
15194 |
< |
fi |
15195 |
< |
as_executable_p=$as_test_x |
17449 |
> |
|
17450 |
> |
# as_fn_executable_p FILE |
17451 |
> |
# ----------------------- |
17452 |
> |
# Test if FILE is an executable regular file. |
17453 |
> |
as_fn_executable_p () |
17454 |
> |
{ |
17455 |
> |
test -f "$1" && test -x "$1" |
17456 |
> |
} # as_fn_executable_p |
17457 |
> |
as_test_x='test -x' |
17458 |
> |
as_executable_p=as_fn_executable_p |
17459 |
|
|
17460 |
|
# Sed expression to map a string onto a valid CPP name. |
17461 |
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
17476 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
17477 |
|
# values after options handling. |
17478 |
|
ac_log=" |
17479 |
< |
This file was extended by ircd-hybrid $as_me 8beta1, which was |
17480 |
< |
generated by GNU Autoconf 2.68. Invocation command line was |
17479 |
> |
This file was extended by ircd-hybrid $as_me TRUNK, which was |
17480 |
> |
generated by GNU Autoconf 2.69. Invocation command line was |
17481 |
|
|
17482 |
|
CONFIG_FILES = $CONFIG_FILES |
17483 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
17542 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17543 |
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
17544 |
|
ac_cs_version="\\ |
17545 |
< |
ircd-hybrid config.status 8beta1 |
17546 |
< |
configured by $0, generated by GNU Autoconf 2.68, |
17545 |
> |
ircd-hybrid config.status TRUNK |
17546 |
> |
configured by $0, generated by GNU Autoconf 2.69, |
17547 |
|
with options \\"\$ac_cs_config\\" |
17548 |
|
|
17549 |
< |
Copyright (C) 2010 Free Software Foundation, Inc. |
17549 |
> |
Copyright (C) 2012 Free Software Foundation, Inc. |
17550 |
|
This config.status script is free software; the Free Software Foundation |
17551 |
|
gives unlimited permission to copy, distribute and modify it." |
17552 |
|
|
17637 |
|
_ACEOF |
17638 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17639 |
|
if \$ac_cs_recheck; then |
17640 |
< |
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
17640 |
> |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
17641 |
|
shift |
17642 |
|
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
17643 |
|
CONFIG_SHELL='$SHELL' |
17677 |
|
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
17678 |
|
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
17679 |
|
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
17680 |
+ |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
17681 |
|
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
17682 |
|
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
17683 |
+ |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
17684 |
|
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
17685 |
|
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
17686 |
|
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
17727 |
|
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
17728 |
|
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
17729 |
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
17730 |
+ |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
17731 |
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
17732 |
|
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"`' |
17733 |
+ |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
17734 |
|
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
17735 |
|
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
17736 |
+ |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
17737 |
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
17738 |
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
17739 |
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
17766 |
|
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
17767 |
|
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
17768 |
|
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
15501 |
– |
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
17769 |
|
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
17770 |
|
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
17771 |
|
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
17798 |
|
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
17799 |
|
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
17800 |
|
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
17801 |
< |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
17801 |
> |
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
17802 |
> |
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
17803 |
|
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
17804 |
|
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
17805 |
|
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
17822 |
|
# Quote evaled strings. |
17823 |
|
for var in SHELL \ |
17824 |
|
ECHO \ |
17825 |
+ |
PATH_SEPARATOR \ |
17826 |
|
SED \ |
17827 |
|
GREP \ |
17828 |
|
EGREP \ |
17850 |
|
compiler \ |
17851 |
|
lt_cv_sys_global_symbol_pipe \ |
17852 |
|
lt_cv_sys_global_symbol_to_cdecl \ |
17853 |
+ |
lt_cv_sys_global_symbol_to_import \ |
17854 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
17855 |
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
17856 |
+ |
lt_cv_nm_interface \ |
17857 |
|
nm_file_list_spec \ |
17858 |
+ |
lt_cv_truncate_bin \ |
17859 |
|
lt_prog_compiler_no_builtin_flag \ |
17860 |
|
lt_prog_compiler_pic \ |
17861 |
|
lt_prog_compiler_wl \ |
17876 |
|
allow_undefined_flag \ |
17877 |
|
no_undefined_flag \ |
17878 |
|
hardcode_libdir_flag_spec \ |
15607 |
– |
hardcode_libdir_flag_spec_ld \ |
17879 |
|
hardcode_libdir_separator \ |
17880 |
|
exclude_expsyms \ |
17881 |
|
include_expsyms \ |
17890 |
|
striplib; do |
17891 |
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
17892 |
|
*[\\\\\\\`\\"\\\$]*) |
17893 |
< |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
17893 |
> |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
17894 |
|
;; |
17895 |
|
*) |
17896 |
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
17917 |
|
postuninstall_cmds \ |
17918 |
|
finish_cmds \ |
17919 |
|
sys_lib_search_path_spec \ |
17920 |
< |
sys_lib_dlsearch_path_spec; do |
17920 |
> |
configure_time_dlsearch_path \ |
17921 |
> |
configure_time_lt_sys_library_path; do |
17922 |
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
17923 |
|
*[\\\\\\\`\\"\\\$]*) |
17924 |
< |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
17924 |
> |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
17925 |
|
;; |
17926 |
|
*) |
17927 |
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
17930 |
|
done |
17931 |
|
|
17932 |
|
ac_aux_dir='$ac_aux_dir' |
15661 |
– |
xsi_shell='$xsi_shell' |
15662 |
– |
lt_shell_append='$lt_shell_append' |
17933 |
|
|
17934 |
< |
# See if we are running on zsh, and set the options which allow our |
17934 |
> |
# See if we are running on zsh, and set the options that allow our |
17935 |
|
# commands through without removal of \ escapes INIT. |
17936 |
< |
if test -n "\${ZSH_VERSION+set}" ; then |
17936 |
> |
if test -n "\${ZSH_VERSION+set}"; then |
17937 |
|
setopt NO_GLOB_SUBST |
17938 |
|
fi |
17939 |
|
|
17940 |
|
|
17941 |
|
PACKAGE='$PACKAGE' |
17942 |
|
VERSION='$VERSION' |
15673 |
– |
TIMESTAMP='$TIMESTAMP' |
17943 |
|
RM='$RM' |
17944 |
|
ofile='$ofile' |
17945 |
|
|
17958 |
|
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
17959 |
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
17960 |
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
15692 |
– |
"etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; |
15693 |
– |
"servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; |
15694 |
– |
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
15695 |
– |
"contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;; |
17961 |
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
17962 |
|
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
15698 |
– |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
17963 |
|
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
17964 |
|
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
17965 |
+ |
"modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;; |
17966 |
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
17967 |
|
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
15703 |
– |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
15704 |
– |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
17968 |
|
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
17969 |
|
|
17970 |
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
18562 |
|
|
18563 |
|
case $ac_file$ac_mode in |
18564 |
|
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
18565 |
< |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
18565 |
> |
# Older Autoconf quotes --file arguments for eval, but not when files |
18566 |
|
# are listed without --file. Let's play safe and only enable the eval |
18567 |
|
# if we detect the quoting. |
18568 |
|
case $CONFIG_FILES in |
18575 |
|
# Strip MF so we end up with the name of the file. |
18576 |
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
18577 |
|
# Check whether this is an Automake generated Makefile or not. |
18578 |
< |
# We used to match only the files named `Makefile.in', but |
18578 |
> |
# We used to match only the files named 'Makefile.in', but |
18579 |
|
# some people rename them; so instead we look at the file content. |
18580 |
|
# Grep'ing the first line is not enough: some people post-process |
18581 |
|
# each Makefile.in and add a new line on top of each file to say so. |
18609 |
|
continue |
18610 |
|
fi |
18611 |
|
# Extract the definition of DEPDIR, am__include, and am__quote |
18612 |
< |
# from the Makefile without running `make'. |
18612 |
> |
# from the Makefile without running 'make'. |
18613 |
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
18614 |
|
test -z "$DEPDIR" && continue |
18615 |
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
18616 |
< |
test -z "am__include" && continue |
18616 |
> |
test -z "$am__include" && continue |
18617 |
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
16355 |
– |
# When using ansi2knr, U may be empty or an underscore; expand it |
16356 |
– |
U=`sed -n 's/^U = //p' < "$mf"` |
18618 |
|
# Find all dependency output files, they are included files with |
18619 |
|
# $(DEPDIR) in their names. We invoke sed twice because it is the |
18620 |
|
# simplest approach to changing $(DEPDIR) to its actual value in the |
18621 |
|
# expansion. |
18622 |
|
for file in `sed -n " |
18623 |
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
18624 |
< |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
18624 |
> |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
18625 |
|
# Make sure the directory exists. |
18626 |
|
test -f "$dirpart/$file" && continue |
18627 |
|
fdir=`$as_dirname -- "$file" || |
18656 |
|
;; |
18657 |
|
"libtool":C) |
18658 |
|
|
18659 |
< |
# See if we are running on zsh, and set the options which allow our |
18659 |
> |
# See if we are running on zsh, and set the options that allow our |
18660 |
|
# commands through without removal of \ escapes. |
18661 |
< |
if test -n "${ZSH_VERSION+set}" ; then |
18661 |
> |
if test -n "${ZSH_VERSION+set}"; then |
18662 |
|
setopt NO_GLOB_SUBST |
18663 |
|
fi |
18664 |
|
|
18665 |
< |
cfgfile="${ofile}T" |
18665 |
> |
cfgfile=${ofile}T |
18666 |
|
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
18667 |
|
$RM "$cfgfile" |
18668 |
|
|
18669 |
|
cat <<_LT_EOF >> "$cfgfile" |
18670 |
|
#! $SHELL |
18671 |
< |
|
16411 |
< |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
16412 |
< |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
18671 |
> |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
18672 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18673 |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
18674 |
+ |
|
18675 |
+ |
# Provide generalized library-building support services. |
18676 |
+ |
# Written by Gordon Matzigkeit, 1996 |
18677 |
+ |
|
18678 |
+ |
# Copyright (C) 2014 Free Software Foundation, Inc. |
18679 |
+ |
# This is free software; see the source for copying conditions. There is NO |
18680 |
+ |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18681 |
+ |
|
18682 |
+ |
# GNU Libtool is free software; you can redistribute it and/or modify |
18683 |
+ |
# it under the terms of the GNU General Public License as published by |
18684 |
+ |
# the Free Software Foundation; either version 2 of of the License, or |
18685 |
+ |
# (at your option) any later version. |
18686 |
|
# |
18687 |
< |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
18688 |
< |
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
18689 |
< |
# Inc. |
18690 |
< |
# Written by Gordon Matzigkeit, 1996 |
16420 |
< |
# |
16421 |
< |
# This file is part of GNU Libtool. |
16422 |
< |
# |
16423 |
< |
# GNU Libtool is free software; you can redistribute it and/or |
16424 |
< |
# modify it under the terms of the GNU General Public License as |
16425 |
< |
# published by the Free Software Foundation; either version 2 of |
16426 |
< |
# the License, or (at your option) any later version. |
16427 |
< |
# |
16428 |
< |
# As a special exception to the GNU General Public License, |
16429 |
< |
# if you distribute this file as part of a program or library that |
16430 |
< |
# is built using GNU Libtool, you may include this file under the |
16431 |
< |
# same distribution terms that you use for the rest of that program. |
18687 |
> |
# As a special exception to the GNU General Public License, if you |
18688 |
> |
# distribute this file as part of a program or library that is built |
18689 |
> |
# using GNU Libtool, you may include this file under the same |
18690 |
> |
# distribution terms that you use for the rest of that program. |
18691 |
|
# |
18692 |
< |
# GNU Libtool is distributed in the hope that it will be useful, |
18693 |
< |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
18692 |
> |
# GNU Libtool is distributed in the hope that it will be useful, but |
18693 |
> |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
18694 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18695 |
|
# GNU General Public License for more details. |
18696 |
|
# |
18697 |
|
# You should have received a copy of the GNU General Public License |
18698 |
< |
# along with GNU Libtool; see the file COPYING. If not, a copy |
16440 |
< |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
16441 |
< |
# obtained by writing to the Free Software Foundation, Inc., |
16442 |
< |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
18698 |
> |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
18699 |
|
|
18700 |
|
|
18701 |
|
# The names of the tagged configurations supported by this script. |
18702 |
< |
available_tags="" |
18702 |
> |
available_tags='' |
18703 |
> |
|
18704 |
> |
# Configured defaults for sys_lib_dlsearch_path munging. |
18705 |
> |
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
18706 |
|
|
18707 |
|
# ### BEGIN LIBTOOL CONFIG |
18708 |
|
|
18722 |
|
# Whether or not to optimize for fast installation. |
18723 |
|
fast_install=$enable_fast_install |
18724 |
|
|
18725 |
+ |
# Shared archive member basename,for filename based shared library versioning on AIX. |
18726 |
+ |
shared_archive_member_spec=$shared_archive_member_spec |
18727 |
+ |
|
18728 |
|
# Shell to use when invoking shell scripts. |
18729 |
|
SHELL=$lt_SHELL |
18730 |
|
|
18731 |
|
# An echo program that protects backslashes. |
18732 |
|
ECHO=$lt_ECHO |
18733 |
|
|
18734 |
+ |
# The PATH separator for the build system. |
18735 |
+ |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
18736 |
+ |
|
18737 |
|
# The host system. |
18738 |
|
host_alias=$host_alias |
18739 |
|
host=$host |
18842 |
|
# Transform the output of nm in a proper C declaration. |
18843 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18844 |
|
|
18845 |
+ |
# Transform the output of nm into a list of symbols to manually relocate. |
18846 |
+ |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
18847 |
+ |
|
18848 |
|
# Transform the output of nm in a C name address pair. |
18849 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18850 |
|
|
18851 |
|
# Transform the output of nm in a C name address pair when lib prefix is needed. |
18852 |
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
18853 |
|
|
18854 |
+ |
# The name lister interface. |
18855 |
+ |
nm_interface=$lt_lt_cv_nm_interface |
18856 |
+ |
|
18857 |
|
# Specify filename containing input files for \$NM. |
18858 |
|
nm_file_list_spec=$lt_nm_file_list_spec |
18859 |
|
|
18860 |
< |
# The root where to search for dependent libraries,and in which our libraries should be installed. |
18860 |
> |
# The root where to search for dependent libraries,and where our libraries should be installed. |
18861 |
|
lt_sysroot=$lt_sysroot |
18862 |
|
|
18863 |
+ |
# Command to truncate a binary pipe. |
18864 |
+ |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
18865 |
+ |
|
18866 |
|
# The name of the directory that contains temporary libtool files. |
18867 |
|
objdir=$objdir |
18868 |
|
|
18953 |
|
# Compile-time system search path for libraries. |
18954 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
18955 |
|
|
18956 |
< |
# Run-time system search path for libraries. |
18957 |
< |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18956 |
> |
# Detected run-time system search path for libraries. |
18957 |
> |
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
18958 |
> |
|
18959 |
> |
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
18960 |
> |
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
18961 |
|
|
18962 |
|
# Whether dlopen is supported. |
18963 |
|
dlopen_support=$enable_dlopen |
19047 |
|
# This must work even if \$libdir does not exist |
19048 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
19049 |
|
|
16773 |
– |
# If ld is used when linking, flag to hardcode \$libdir into a binary |
16774 |
– |
# during linking. This must work even if \$libdir does not exist. |
16775 |
– |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
16776 |
– |
|
19050 |
|
# Whether we need a single "-rpath" flag with a separated argument. |
19051 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
19052 |
|
|
19053 |
< |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
19053 |
> |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
19054 |
|
# DIR into the resulting binary. |
19055 |
|
hardcode_direct=$hardcode_direct |
19056 |
|
|
19057 |
< |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
19057 |
> |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
19058 |
|
# DIR into the resulting binary and the resulting library dependency is |
19059 |
< |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
19059 |
> |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
19060 |
|
# library is relocated. |
19061 |
|
hardcode_direct_absolute=$hardcode_direct_absolute |
19062 |
|
|
19108 |
|
|
19109 |
|
_LT_EOF |
19110 |
|
|
19111 |
+ |
cat <<'_LT_EOF' >> "$cfgfile" |
19112 |
+ |
|
19113 |
+ |
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
19114 |
+ |
|
19115 |
+ |
# func_munge_path_list VARIABLE PATH |
19116 |
+ |
# ----------------------------------- |
19117 |
+ |
# VARIABLE is name of variable containing _space_ separated list of |
19118 |
+ |
# directories to be munged by the contents of PATH, which is string |
19119 |
+ |
# having a format: |
19120 |
+ |
# "DIR[:DIR]:" |
19121 |
+ |
# string "DIR[ DIR]" will be prepended to VARIABLE |
19122 |
+ |
# ":DIR[:DIR]" |
19123 |
+ |
# string "DIR[ DIR]" will be appended to VARIABLE |
19124 |
+ |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
19125 |
+ |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
19126 |
+ |
# "DIRA[ DIRA]" will be appended to VARIABLE |
19127 |
+ |
# "DIR[:DIR]" |
19128 |
+ |
# VARIABLE will be replaced by "DIR[ DIR]" |
19129 |
+ |
func_munge_path_list () |
19130 |
+ |
{ |
19131 |
+ |
case x$2 in |
19132 |
+ |
x) |
19133 |
+ |
;; |
19134 |
+ |
*:) |
19135 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
19136 |
+ |
;; |
19137 |
+ |
x:*) |
19138 |
+ |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
19139 |
+ |
;; |
19140 |
+ |
*::*) |
19141 |
+ |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
19142 |
+ |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
19143 |
+ |
;; |
19144 |
+ |
*) |
19145 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
19146 |
+ |
;; |
19147 |
+ |
esac |
19148 |
+ |
} |
19149 |
+ |
|
19150 |
+ |
|
19151 |
+ |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
19152 |
+ |
func_cc_basename () |
19153 |
+ |
{ |
19154 |
+ |
for cc_temp in $*""; do |
19155 |
+ |
case $cc_temp in |
19156 |
+ |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
19157 |
+ |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
19158 |
+ |
\-*) ;; |
19159 |
+ |
*) break;; |
19160 |
+ |
esac |
19161 |
+ |
done |
19162 |
+ |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
19163 |
+ |
} |
19164 |
+ |
|
19165 |
+ |
|
19166 |
+ |
# ### END FUNCTIONS SHARED WITH CONFIGURE |
19167 |
+ |
|
19168 |
+ |
_LT_EOF |
19169 |
+ |
|
19170 |
|
case $host_os in |
19171 |
|
aix3*) |
19172 |
|
cat <<\_LT_EOF >> "$cfgfile" |
19173 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
19174 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
19175 |
|
# vanish in a puff of smoke. |
19176 |
< |
if test "X${COLLECT_NAMES+set}" != Xset; then |
19176 |
> |
if test set != "${COLLECT_NAMES+set}"; then |
19177 |
|
COLLECT_NAMES= |
19178 |
|
export COLLECT_NAMES |
19179 |
|
fi |
19182 |
|
esac |
19183 |
|
|
19184 |
|
|
19185 |
< |
ltmain="$ac_aux_dir/ltmain.sh" |
19185 |
> |
ltmain=$ac_aux_dir/ltmain.sh |
19186 |
|
|
19187 |
|
|
19188 |
|
# We use sed instead of cat because bash on DJGPP gets confused if |
19192 |
|
sed '$q' "$ltmain" >> "$cfgfile" \ |
19193 |
|
|| (rm -f "$cfgfile"; exit 1) |
19194 |
|
|
16863 |
– |
if test x"$xsi_shell" = xyes; then |
16864 |
– |
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
16865 |
– |
func_dirname ()\ |
16866 |
– |
{\ |
16867 |
– |
\ case ${1} in\ |
16868 |
– |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
16869 |
– |
\ * ) func_dirname_result="${3}" ;;\ |
16870 |
– |
\ esac\ |
16871 |
– |
} # Extended-shell func_dirname implementation' "$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 |
– |
|
16876 |
– |
|
16877 |
– |
sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
16878 |
– |
func_basename ()\ |
16879 |
– |
{\ |
16880 |
– |
\ func_basename_result="${1##*/}"\ |
16881 |
– |
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
16882 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16883 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16884 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16885 |
– |
|
16886 |
– |
|
16887 |
– |
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
16888 |
– |
func_dirname_and_basename ()\ |
16889 |
– |
{\ |
16890 |
– |
\ case ${1} in\ |
16891 |
– |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
16892 |
– |
\ * ) func_dirname_result="${3}" ;;\ |
16893 |
– |
\ esac\ |
16894 |
– |
\ func_basename_result="${1##*/}"\ |
16895 |
– |
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
16896 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16897 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16898 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16899 |
– |
|
16900 |
– |
|
16901 |
– |
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
16902 |
– |
func_stripname ()\ |
16903 |
– |
{\ |
16904 |
– |
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
16905 |
– |
\ # positional parameters, so assign one to ordinary parameter first.\ |
16906 |
– |
\ func_stripname_result=${3}\ |
16907 |
– |
\ func_stripname_result=${func_stripname_result#"${1}"}\ |
16908 |
– |
\ func_stripname_result=${func_stripname_result%"${2}"}\ |
16909 |
– |
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
16910 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16911 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16912 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16913 |
– |
|
16914 |
– |
|
16915 |
– |
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
16916 |
– |
func_split_long_opt ()\ |
16917 |
– |
{\ |
16918 |
– |
\ func_split_long_opt_name=${1%%=*}\ |
16919 |
– |
\ func_split_long_opt_arg=${1#*=}\ |
16920 |
– |
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
16921 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16922 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16923 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16924 |
– |
|
16925 |
– |
|
16926 |
– |
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
16927 |
– |
func_split_short_opt ()\ |
16928 |
– |
{\ |
16929 |
– |
\ func_split_short_opt_arg=${1#??}\ |
16930 |
– |
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
16931 |
– |
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
16932 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16933 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16934 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16935 |
– |
|
16936 |
– |
|
16937 |
– |
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
16938 |
– |
func_lo2o ()\ |
16939 |
– |
{\ |
16940 |
– |
\ case ${1} in\ |
16941 |
– |
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
16942 |
– |
\ *) func_lo2o_result=${1} ;;\ |
16943 |
– |
\ esac\ |
16944 |
– |
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
16945 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16946 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16947 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16948 |
– |
|
16949 |
– |
|
16950 |
– |
sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
16951 |
– |
func_xform ()\ |
16952 |
– |
{\ |
16953 |
– |
func_xform_result=${1%.*}.lo\ |
16954 |
– |
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
16955 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16956 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16957 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16958 |
– |
|
16959 |
– |
|
16960 |
– |
sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
16961 |
– |
func_arith ()\ |
16962 |
– |
{\ |
16963 |
– |
func_arith_result=$(( $* ))\ |
16964 |
– |
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
16965 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16966 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16967 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16968 |
– |
|
16969 |
– |
|
16970 |
– |
sed -e '/^func_len ()$/,/^} # func_len /c\ |
16971 |
– |
func_len ()\ |
16972 |
– |
{\ |
16973 |
– |
func_len_result=${#1}\ |
16974 |
– |
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
16975 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16976 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16977 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16978 |
– |
|
16979 |
– |
fi |
16980 |
– |
|
16981 |
– |
if test x"$lt_shell_append" = xyes; then |
16982 |
– |
sed -e '/^func_append ()$/,/^} # func_append /c\ |
16983 |
– |
func_append ()\ |
16984 |
– |
{\ |
16985 |
– |
eval "${1}+=\\${2}"\ |
16986 |
– |
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
16987 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16988 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16989 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
16990 |
– |
|
16991 |
– |
|
16992 |
– |
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
16993 |
– |
func_append_quoted ()\ |
16994 |
– |
{\ |
16995 |
– |
\ func_quote_for_eval "${2}"\ |
16996 |
– |
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
16997 |
– |
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
16998 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16999 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
17000 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
17001 |
– |
|
17002 |
– |
|
17003 |
– |
# Save a `func_append' function call where possible by direct use of '+=' |
17004 |
– |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
17005 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
17006 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
17007 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
17008 |
– |
else |
17009 |
– |
# Save a `func_append' function call even when '+=' is not available |
17010 |
– |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
17011 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
17012 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
17013 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
17014 |
– |
fi |
17015 |
– |
|
17016 |
– |
if test x"$_lt_function_replace_fail" = x":"; then |
17017 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
17018 |
– |
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
17019 |
– |
fi |
17020 |
– |
|
17021 |
– |
|
19195 |
|
mv -f "$cfgfile" "$ofile" || |
19196 |
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
19197 |
|
chmod +x "$ofile" |
19235 |
|
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
19236 |
|
fi |
19237 |
|
|
19238 |
+ |
|
19239 |
+ |
echo "###############################################################################" |
19240 |
+ |
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile." |
19241 |
+ |
echo |
19242 |
+ |
echo "ircd-hybrid will be installed in ${prefix}. To change this, run:" |
19243 |
+ |
echo " ./configure --prefix=DIRECTORY" |
19244 |
+ |
echo "###############################################################################" |