2 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
3 # Copyright (C) 1996-2003 Internet Software Consortium.
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
9 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 # PERFORMANCE OF THIS SOFTWARE.
17 # Id: configure,v 1.473 2009/11/11 08:47:27 jinmei Exp
19 # Portions Copyright (C) 1996-2001 Nominum, Inc.
21 # Permission to use, copy, modify, and distribute this software for any
22 # purpose with or without fee is hereby granted, provided that the above
23 # copyright notice and this permission notice appear in all copies.
25 # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
26 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
27 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
28 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
29 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
30 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
31 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 # From configure.in Revision: 1.489 .
33 # Guess values for system-dependent variables and create Makefiles.
34 # Generated by GNU Autoconf 2.61.
36 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
37 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
38 # This configure script is free software; the Free Software Foundation
39 # gives unlimited permission to copy, distribute and modify it.
40 ## --------------------- ##
41 ## M4sh Initialization. ##
42 ## --------------------- ##
44 # Be more Bourne compatible
45 DUALCASE
=1; export DUALCASE
# for MKS sh
46 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
49 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50 # is contrary to our usage. Disable this feature.
51 alias -g '${1+"$@"}'='"$@"'
54 case `(set -o) 2>/dev/null` in
55 *posix
*) set -o posix
;;
64 # Avoid depending upon Character Ranges.
65 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
66 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
67 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
68 as_cr_digits
='0123456789'
69 as_cr_alnum
=$as_cr_Letters$as_cr_digits
71 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
73 echo "#! /bin/sh" >conf$$.sh
74 echo "exit 0" >>conf$$.sh
76 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
84 # Support unset when possible.
85 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
101 # Find who we are. Look in the path if we contain no directory separator.
103 *[\\/]* ) as_myself
=$0 ;;
104 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
108 test -z "$as_dir" && as_dir
=.
109 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
115 # We did not find ourselves, most probably we were run as `sh COMMAND'
116 # in which case we are not to be found in the path.
117 if test "x$as_myself" = x
; then
120 if test ! -f "$as_myself"; then
121 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122 { (exit 1); exit 1; }
125 # Work around bugs in pre-3.0 UWIN ksh.
126 for as_var
in ENV MAIL MAILPATH
127 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
135 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
136 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
139 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
140 eval $as_var=C
; export $as_var
142 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
146 # Required to use basename.
147 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
148 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
154 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
161 # Name of the executable.
162 as_me
=`$as_basename -- "$0" ||
163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
164 X"$0" : 'X\(//\)$' \| \
165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
167 sed '/^.*\/\([^/][^/]*\)\/*$/{
185 if test "x$CONFIG_SHELL" = x
; then
186 if (eval ":") 2>/dev
/null
; then
192 if test $as_have_required = yes && (eval ":
202 as_func_ret_success () {
205 as_func_ret_failure () {
210 if as_func_success; then
214 echo as_func_success failed.
217 if as_func_failure; then
219 echo as_func_failure succeeded.
222 if as_func_ret_success; then
226 echo as_func_ret_success failed.
229 if as_func_ret_failure; then
231 echo as_func_ret_failure succeeded.
234 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
238 echo positional parameters were not saved.
241 test \$exitcode = 0) || { (exit 1); exit 1; }
246 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
247 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
248 ") 2> /dev
/null
; then
252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
253 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
256 test -z "$as_dir" && as_dir
=.
259 for as_base
in sh bash ksh sh5
; do
260 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
267 for as_shell
in $as_candidate_shells $SHELL; do
268 # Try only shells that exist, to save several forks.
269 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
270 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
271 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
274 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
275 # is contrary to our usage. Disable this feature.
276 alias -g '${1+"$@"}'='"$@"'
279 case `(set -o) 2>/dev/null` in
280 *posix
*) set -o posix
;;
289 CONFIG_SHELL
=$as_shell
291 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
292 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
296 # is contrary to our usage. Disable this feature.
297 alias -g '${1+"$@"}'='"$@"'
300 case `(set -o) 2>/dev/null` in
301 *posix
*) set -o posix
;;
317 as_func_ret_success
() {
320 as_func_ret_failure
() {
325 if as_func_success
; then
329 echo as_func_success failed.
332 if as_func_failure
; then
334 echo as_func_failure succeeded.
337 if as_func_ret_success
; then
341 echo as_func_ret_success failed.
344 if as_func_ret_failure
; then
346 echo as_func_ret_failure succeeded.
349 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
353 echo positional parameters were not saved.
356 test $exitcode = 0) ||
{ (exit 1); exit 1; }
361 test "x$as_lineno_1" != "x$as_lineno_2" &&
362 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
373 if test "x$CONFIG_SHELL" != x
; then
374 for as_var
in BASH_ENV ENV
375 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
378 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
382 if test $as_have_required = no
; then
383 echo This
script requires a shell
more modern than all the
384 echo shells that I found on your system. Please
install a
385 echo modern shell
, or manually run the
script under such a
386 echo shell
if you
do have one.
387 { (exit 1); exit 1; }
397 (eval "as_func_return () {
406 as_func_ret_success () {
409 as_func_ret_failure () {
414 if as_func_success; then
418 echo as_func_success failed.
421 if as_func_failure; then
423 echo as_func_failure succeeded.
426 if as_func_ret_success; then
430 echo as_func_ret_success failed.
433 if as_func_ret_failure; then
435 echo as_func_ret_failure succeeded.
438 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
442 echo positional parameters were not saved.
445 test \$exitcode = 0") ||
{
446 echo No shell found that supports shell functions.
447 echo Please tell autoconf@gnu.org about your system
,
448 echo including any error possibly output before this
456 test "x$as_lineno_1" != "x$as_lineno_2" &&
457 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
459 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
460 # uniformly replaced by the line number. The first 'sed' inserts a
461 # line-number line after each line using $LINENO; the second 'sed'
462 # does the real work. The second script uses 'N' to pair each
463 # line-number line with the line containing $LINENO, and appends
464 # trailing '-' during substitution so that $LINENO is not a special
466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
467 # scripts with optimization help from Paolo Bonzini. Blame Lee
468 # E. McMahon (1931-1989) for sed's syntax. :-)
480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 chmod +x
"$as_me.lineno" ||
485 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
486 { (exit 1); exit 1; }; }
488 # Don't try to exec as it changes $[0], causing all sort of problems
489 # (the dirname of $[0] is not the place where we might find the
490 # original and so on. Autoconf is especially sensitive to this).
492 # Exit status is that of the last command.
497 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
503 ECHO_C
= ECHO_N
= ECHO_T
=
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
515 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -p'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
542 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
543 rmdir conf$$.dir
2>/dev
/null
545 if mkdir
-p .
2>/dev
/null
; then
548 test -d .
/-p && rmdir .
/-p
552 if test -x / >/dev
/null
2>&1; then
555 if ls -dL / >/dev
/null
2>&1; then
562 if test -d "$1"; then
568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
569 ???[sx]*):;;*)false;;esac;fi
573 as_executable_p
=$as_test_x
575 # Sed expression to map a string onto a valid CPP name.
576 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
578 # Sed expression to map a string onto a valid variable name.
579 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
584 # Check that we are running under the correct shell.
585 SHELL
=${CONFIG_SHELL-/bin/sh}
589 # Remove one level of quotation (which was required for Make).
590 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
595 if test "X$1" = X--no-reexec
; then
596 # Discard the --no-reexec flag, and continue.
598 elif test "X$1" = X--fallback-echo
; then
599 # Avoid inline document here, it may be left over
601 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
602 # Yippee, $echo works!
605 # Restart under the correct shell.
606 exec $SHELL "$0" --no-reexec ${1+"$@"}
609 if test "X$1" = X--fallback-echo
; then
610 # used as fallback echo
618 # The HP-UX ksh and POSIX shell print the target directory to stdout
620 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
622 if test -z "$ECHO"; then
623 if test "X${echo_test_string+set}" != Xset
; then
624 # find a string as large as possible, as long as the shell can cope with it
625 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
626 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
627 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
628 echo_test_string
=`eval $cmd` &&
629 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 # The Solaris, AIX, and Digital Unix default echo programs unquote
642 # backslashes. This makes it impossible to quote backslashes using
643 # echo "$something" | sed 's/\\/\\\\/g'
645 # So, first we look for a working echo in the user's PATH.
647 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
648 for dir
in $PATH /usr
/ucb
; do
650 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
651 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
660 if test "X$echo" = Xecho
; then
661 # We didn't find a better echo, so look for alternatives.
662 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
663 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 # This shell has a builtin print -r that does the trick.
667 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
668 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
669 # If we have ksh, try running configure again with it.
670 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
671 export ORIGINAL_CONFIG_SHELL
672 CONFIG_SHELL
=/bin
/ksh
674 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
678 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
679 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
683 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
689 SHELL
="$CONFIG_SHELL"
691 echo="$CONFIG_SHELL $0 --fallback-echo"
692 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
693 test "X$echo_testing_string" = 'X\t' &&
694 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
695 test "X$echo_testing_string" = "X$echo_test_string"; then
696 echo="$CONFIG_SHELL $0 --fallback-echo"
698 # maybe with a smaller string...
701 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
702 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
709 if test "$prev" != 'sed 50q "$0"'; then
710 echo_test_string
=`eval $prev`
711 export echo_test_string
712 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
714 # Oops. We lost completely, so just stick with echo.
723 # Copy echo and quote the copy suitably for passing to libtool from
724 # the Makefile, instead of quoting the original, which is used later.
726 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
727 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
733 tagnames
=${tagnames+${tagnames},}CXX
735 tagnames
=${tagnames+${tagnames},}F77
737 exec 7<&0 </dev
/null
6>&1
740 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
741 # so uname gets run too.
742 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
747 ac_default_prefix
=/usr
/local
749 ac_config_libobj_dir
=.
755 SHELL
=${CONFIG_SHELL-/bin/sh}
757 # Identity of this package.
764 ac_unique_file
="lib/dns/name.c"
765 # Factoring default headers for most tests.
766 ac_includes_default
="\
768 #ifdef HAVE_SYS_TYPES_H
769 # include <sys/types.h>
771 #ifdef HAVE_SYS_STAT_H
772 # include <sys/stat.h>
778 # ifdef HAVE_STDLIB_H
783 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
788 #ifdef HAVE_STRINGS_H
789 # include <strings.h>
791 #ifdef HAVE_INTTYPES_H
792 # include <inttypes.h>
810 program_transform_name
885 ISC_PLATFORM_HAVELONGLONG
886 ISC_PLATFORM_NORETURN_PRE
887 ISC_PLATFORM_NORETURN_POST
888 ISC_PLATFORM_HAVELIFCONF
889 ISC_PLATFORM_HAVEKQUEUE
890 ISC_PLATFORM_HAVEEPOLL
891 ISC_PLATFORM_HAVEDEVPOLL
892 ISC_PLATFORM_NEEDSYSSELECTH
893 LWRES_PLATFORM_NEEDSYSSELECTH
896 ISC_PLATFORM_OPENSSLHASH
901 ISC_PLATFORM_HAVEGSSAPI
902 ISC_PLATFORM_GSSAPIHEADER
908 ISC_PLATFORM_USETHREADS
913 IRIX_DNSSEC_WARNINGS_HACK
916 ISC_PLATFORM_USEBACKTRACE
926 LIBTOOL_ALLOW_UNDEFINED
932 ISC_PLATFORM_HAVEIPV6
933 LWRES_PLATFORM_HAVEIPV6
934 ISC_PLATFORM_NEEDNETINETIN6H
935 LWRES_PLATFORM_NEEDNETINETIN6H
936 ISC_PLATFORM_NEEDNETINET6IN6H
937 LWRES_PLATFORM_NEEDNETINET6IN6H
938 ISC_PLATFORM_HAVEINADDR6
939 LWRES_PLATFORM_HAVEINADDR6
940 ISC_PLATFORM_NEEDIN6ADDRANY
941 LWRES_PLATFORM_NEEDIN6ADDRANY
942 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
943 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
944 ISC_PLATFORM_HAVEIN6PKTINFO
945 ISC_PLATFORM_FIXIN6ISADDR
950 LWRES_HAVE_SIN6_SCOPE_ID
951 ISC_PLATFORM_HAVESCOPEID
952 ISC_PLATFORM_HAVEIF_LADDRREQ
953 ISC_PLATFORM_HAVEIF_LADDRCONF
954 ISC_PLATFORM_NEEDNTOP
955 ISC_PLATFORM_NEEDPTON
956 ISC_PLATFORM_HAVESALEN
957 LWRES_PLATFORM_HAVESALEN
958 ISC_PLATFORM_MSGHDRFLAVOR
959 ISC_PLATFORM_NEEDPORTT
960 ISC_LWRES_NEEDADDRINFO
962 ISC_LWRES_NEEDRRSETINFO
963 ISC_LWRES_SETHOSTENTINT
964 ISC_LWRES_ENDHOSTENTINT
965 ISC_LWRES_GETNETBYADDRINADDR
966 ISC_LWRES_SETNETENTINT
967 ISC_LWRES_ENDNETENTINT
968 ISC_LWRES_GETHOSTBYADDRVOID
970 ISC_LWRES_GETIPNODEPROTO
971 ISC_LWRES_GETADDRINFOPROTO
972 ISC_LWRES_GETNAMEINFOPROTO
973 ISC_IRS_GETNAMEINFOSOCKLEN
974 ISC_PLATFORM_NEEDSTRSEP
975 ISC_PLATFORM_NEEDMEMMOVE
976 ISC_PLATFORM_NEEDSTRTOUL
977 LWRES_PLATFORM_NEEDSTRTOUL
979 ISC_PLATFORM_NEEDSTRLCPY
980 ISC_PLATFORM_NEEDSTRLCAT
981 ISC_PLATFORM_NEEDSPRINTF
982 LWRES_PLATFORM_NEEDSPRINTF
983 ISC_PLATFORM_NEEDVSNPRINTF
984 LWRES_PLATFORM_NEEDVSNPRINTF
990 ISC_PLATFORM_QUADFORMAT
991 LWRES_PLATFORM_QUADFORMAT
992 ISC_PLATFORM_HAVESYSUNH
993 ISC_PLATFORM_RLIMITTYPE
994 ISC_PLATFORM_USEDECLSPEC
995 LWRES_PLATFORM_USEDECLSPEC
996 IRS_PLATFORM_USEDECLSPEC
997 ISC_PLATFORM_BRACEPTHREADONCEINIT
998 ISC_PLATFORM_HAVESTRINGSH
999 ISC_PLATFORM_HAVEIFNAMETOINDEX
1000 ISC_PLATFORM_HAVEXADD
1001 ISC_PLATFORM_HAVEXADDQ
1002 ISC_PLATFORM_HAVECMPXCHG
1003 ISC_PLATFORM_HAVEATOMICSTORE
1004 ISC_PLATFORM_USEGCCASM
1005 ISC_PLATFORM_USEOSFASM
1006 ISC_PLATFORM_USESTDASM
1007 ISC_PLATFORM_USEMACASM
1015 XSLT_DOCBOOK_STYLE_HTML
1016 XSLT_DOCBOOK_STYLE_XHTML
1017 XSLT_DOCBOOK_STYLE_MAN
1018 XSLT_DOCBOOK_CHUNK_HTML
1019 XSLT_DOCBOOK_CHUNK_XHTML
1020 XSLT_DOCBOOK_CHUNKTOC_HTML
1021 XSLT_DOCBOOK_CHUNKTOC_XHTML
1022 XSLT_DOCBOOK_MAKETOC_HTML
1023 XSLT_DOCBOOK_MAKETOC_XHTML
1025 XSLT_DB2LATEX_ADMONITIONS
1028 BIND9_ISC_BUILDINCLUDE
1029 BIND9_ISCCC_BUILDINCLUDE
1030 BIND9_ISCCFG_BUILDINCLUDE
1031 BIND9_DNS_BUILDINCLUDE
1032 BIND9_LWRES_BUILDINCLUDE
1033 BIND9_BIND9_BUILDINCLUDE
1049 ac_subst_files
='BIND9_MAKE_INCLUDES
1059 ac_precious_vars
='build_alias
1076 # Initialize some variables set by options.
1078 ac_init_version
=false
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file
=/dev
/null
1088 program_transform_name
=s
,x
,x
,
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir
='${exec_prefix}/bin'
1103 sbindir
='${exec_prefix}/sbin'
1104 libexecdir
='${exec_prefix}/libexec'
1105 datarootdir
='${prefix}/share'
1106 datadir
='${datarootdir}'
1107 sysconfdir
='${prefix}/etc'
1108 sharedstatedir
='${prefix}/com'
1109 localstatedir
='${prefix}/var'
1110 includedir
='${prefix}/include'
1111 oldincludedir
='/usr/include'
1112 docdir
='${datarootdir}/doc/${PACKAGE}'
1113 infodir
='${datarootdir}/info'
1118 libdir
='${exec_prefix}/lib'
1119 localedir
='${datarootdir}/locale'
1120 mandir
='${datarootdir}/man'
1126 # If the previous option needs an argument, assign it.
1127 if test -n "$ac_prev"; then
1128 eval $ac_prev=\
$ac_option
1134 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1138 # Accept the important Cygnus configure options, so we can diagnose typos.
1140 case $ac_dashdash$ac_option in
1144 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1146 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1147 bindir
=$ac_optarg ;;
1149 -build |
--build |
--buil |
--bui |
--bu)
1150 ac_prev
=build_alias
;;
1151 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1152 build_alias
=$ac_optarg ;;
1154 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1155 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1156 ac_prev
=cache_file
;;
1157 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1158 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1159 cache_file
=$ac_optarg ;;
1161 --config-cache |
-C)
1162 cache_file
=config.cache
;;
1164 -datadir |
--datadir |
--datadi |
--datad)
1166 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1167 datadir
=$ac_optarg ;;
1169 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1170 |
--dataroo |
--dataro |
--datar)
1171 ac_prev
=datarootdir
;;
1172 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1173 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1174 datarootdir
=$ac_optarg ;;
1176 -disable-* |
--disable-*)
1177 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1180 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1183 eval enable_
$ac_feature=no
;;
1185 -docdir |
--docdir |
--docdi |
--doc |
--do)
1187 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1188 docdir
=$ac_optarg ;;
1190 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1192 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1193 dvidir
=$ac_optarg ;;
1195 -enable-* |
--enable-*)
1196 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1199 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1202 eval enable_
$ac_feature=\
$ac_optarg ;;
1204 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1205 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1206 |
--exec |
--exe |
--ex)
1207 ac_prev
=exec_prefix
;;
1208 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1209 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1210 |
--exec=* |
--exe=* |
--ex=*)
1211 exec_prefix
=$ac_optarg ;;
1213 -gas |
--gas |
--ga |
--g)
1214 # Obsolete; use --with-gas.
1217 -help |
--help |
--hel |
--he |
-h)
1218 ac_init_help
=long
;;
1219 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1220 ac_init_help
=recursive
;;
1221 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1222 ac_init_help
=short
;;
1224 -host |
--host |
--hos |
--ho)
1225 ac_prev
=host_alias
;;
1226 -host=* |
--host=* |
--hos=* |
--ho=*)
1227 host_alias
=$ac_optarg ;;
1229 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1231 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1233 htmldir
=$ac_optarg ;;
1235 -includedir |
--includedir |
--includedi |
--included |
--include \
1236 |
--includ |
--inclu |
--incl |
--inc)
1237 ac_prev
=includedir
;;
1238 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1239 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1240 includedir
=$ac_optarg ;;
1242 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1244 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1245 infodir
=$ac_optarg ;;
1247 -libdir |
--libdir |
--libdi |
--libd)
1249 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1250 libdir
=$ac_optarg ;;
1252 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1253 |
--libexe |
--libex |
--libe)
1254 ac_prev
=libexecdir
;;
1255 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1256 |
--libexe=* |
--libex=* |
--libe=*)
1257 libexecdir
=$ac_optarg ;;
1259 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1260 ac_prev
=localedir
;;
1261 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1262 localedir
=$ac_optarg ;;
1264 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1265 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1266 ac_prev
=localstatedir
;;
1267 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1268 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1269 localstatedir
=$ac_optarg ;;
1271 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1273 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1274 mandir
=$ac_optarg ;;
1276 -nfp |
--nfp |
--nf)
1277 # Obsolete; use --without-fp.
1280 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1281 |
--no-cr |
--no-c |
-n)
1284 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1285 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1288 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1289 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1290 |
--oldin |
--oldi |
--old |
--ol |
--o)
1291 ac_prev
=oldincludedir
;;
1292 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1293 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1294 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1295 oldincludedir
=$ac_optarg ;;
1297 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1299 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1300 prefix
=$ac_optarg ;;
1302 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1303 |
--program-pre |
--program-pr |
--program-p)
1304 ac_prev
=program_prefix
;;
1305 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1306 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1307 program_prefix
=$ac_optarg ;;
1309 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1310 |
--program-suf |
--program-su |
--program-s)
1311 ac_prev
=program_suffix
;;
1312 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1313 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1314 program_suffix
=$ac_optarg ;;
1316 -program-transform-name |
--program-transform-name \
1317 |
--program-transform-nam |
--program-transform-na \
1318 |
--program-transform-n |
--program-transform- \
1319 |
--program-transform |
--program-transfor \
1320 |
--program-transfo |
--program-transf \
1321 |
--program-trans |
--program-tran \
1322 |
--progr-tra |
--program-tr |
--program-t)
1323 ac_prev
=program_transform_name
;;
1324 -program-transform-name=* |
--program-transform-name=* \
1325 |
--program-transform-nam=* |
--program-transform-na=* \
1326 |
--program-transform-n=* |
--program-transform-=* \
1327 |
--program-transform=* |
--program-transfor=* \
1328 |
--program-transfo=* |
--program-transf=* \
1329 |
--program-trans=* |
--program-tran=* \
1330 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1331 program_transform_name
=$ac_optarg ;;
1333 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1335 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1336 pdfdir
=$ac_optarg ;;
1338 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1340 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1343 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1344 |
-silent |
--silent |
--silen |
--sile |
--sil)
1347 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1349 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1351 sbindir
=$ac_optarg ;;
1353 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1354 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1355 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1357 ac_prev
=sharedstatedir
;;
1358 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1359 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1360 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1362 sharedstatedir
=$ac_optarg ;;
1364 -site |
--site |
--sit)
1366 -site=* |
--site=* |
--sit=*)
1369 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1371 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1372 srcdir
=$ac_optarg ;;
1374 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1375 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1376 ac_prev
=sysconfdir
;;
1377 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1378 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1379 sysconfdir
=$ac_optarg ;;
1381 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1382 ac_prev
=target_alias
;;
1383 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1384 target_alias
=$ac_optarg ;;
1386 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1389 -version |
--version |
--versio |
--versi |
--vers |
-V)
1390 ac_init_version
=: ;;
1393 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1396 { echo "$as_me: error: invalid package name: $ac_package" >&2
1397 { (exit 1); exit 1; }; }
1398 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1399 eval with_
$ac_package=\
$ac_optarg ;;
1401 -without-* |
--without-*)
1402 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1405 { echo "$as_me: error: invalid package name: $ac_package" >&2
1406 { (exit 1); exit 1; }; }
1407 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1408 eval with_
$ac_package=no
;;
1411 # Obsolete; use --with-x.
1414 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1415 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1416 ac_prev
=x_includes
;;
1417 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1418 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1419 x_includes
=$ac_optarg ;;
1421 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1422 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1423 ac_prev
=x_libraries
;;
1424 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1425 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1426 x_libraries
=$ac_optarg ;;
1428 -*) { echo "$as_me: error: unrecognized option: $ac_option
1429 Try \`$0 --help' for more information." >&2
1430 { (exit 1); exit 1; }; }
1434 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1438 { (exit 1); exit 1; }; }
1439 eval $ac_envvar=\
$ac_optarg
1440 export $ac_envvar ;;
1443 # FIXME: should be removed in autoconf 3.0.
1444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1453 if test -n "$ac_prev"; then
1454 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1455 { echo "$as_me: error: missing argument to $ac_option" >&2
1456 { (exit 1); exit 1; }; }
1459 # Be sure to have absolute directory names.
1460 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1465 eval ac_val
=\$
$ac_var
1467 [\\/$
]* | ?
:[\\/]* ) continue;;
1468 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1470 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1471 { (exit 1); exit 1; }; }
1474 # There might be people who depend on the old broken behavior: `$host'
1475 # used to hold the argument of --host etc.
1476 # FIXME: To remove some day.
1479 target
=$target_alias
1481 # FIXME: To remove some day.
1482 if test "x$host_alias" != x
; then
1483 if test "x$build_alias" = x
; then
1484 cross_compiling
=maybe
1485 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1486 If a cross compiler is detected then cross compile mode will be used." >&2
1487 elif test "x$build_alias" != "x$host_alias"; then
1493 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1495 test "$silent" = yes && exec 6>/dev
/null
1498 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di
=`ls -di .` &&
1500 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1501 { echo "$as_me: error: Working directory cannot be determined" >&2
1502 { (exit 1); exit 1; }; }
1503 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1504 { echo "$as_me: error: pwd does not report name of working directory" >&2
1505 { (exit 1); exit 1; }; }
1508 # Find the source files, if location was not specified.
1509 if test -z "$srcdir"; then
1510 ac_srcdir_defaulted
=yes
1511 # Try the directory containing this script, then the parent directory.
1512 ac_confdir
=`$as_dirname -- "$0" ||
1513 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1514 X"$0" : 'X\(//\)[^/]' \| \
1515 X"$0" : 'X\(//\)$' \| \
1516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1540 ac_srcdir_defaulted
=no
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1544 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1545 { (exit 1); exit 1; }; }
1547 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1549 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1550 { (exit 1); exit 1; }; }
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1560 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1562 for ac_var
in $ac_precious_vars; do
1563 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1564 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1565 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1566 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1570 # Report the --help message.
1572 if test "$ac_init_help" = "long"; then
1573 # Omit some internal or obsolete options to make the list less imposing.
1574 # This message is too long to be a string in the A/UX 3.1 sh.
1576 \`configure' configures this package to adapt to many kinds of systems.
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE. See below for descriptions of some of the useful variables.
1583 Defaults for the options are specified in brackets.
1586 -h, --help display this help and exit
1587 --help=short display options specific to this package
1588 --help=recursive display the short help of all the included packages
1589 -V, --version display version information and exit
1590 -q, --quiet, --silent do not print \`checking...' messages
1591 --cache-file=FILE cache test results in FILE [disabled]
1592 -C, --config-cache alias for \`--cache-file=config.cache'
1593 -n, --no-create do not create output files
1594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1596 Installation directories:
1597 --prefix=PREFIX install architecture-independent files in PREFIX
1598 [$ac_default_prefix]
1599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1607 For better control, use the options below.
1609 Fine tuning of the installation directories:
1610 --bindir=DIR user executables [EPREFIX/bin]
1611 --sbindir=DIR system admin executables [EPREFIX/sbin]
1612 --libexecdir=DIR program executables [EPREFIX/libexec]
1613 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1614 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1615 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1616 --libdir=DIR object code libraries [EPREFIX/lib]
1617 --includedir=DIR C header files [PREFIX/include]
1618 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1619 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1620 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1621 --infodir=DIR info documentation [DATAROOTDIR/info]
1622 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1623 --mandir=DIR man documentation [DATAROOTDIR/man]
1624 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1625 --htmldir=DIR html documentation [DOCDIR]
1626 --dvidir=DIR dvi documentation [DOCDIR]
1627 --pdfdir=DIR pdf documentation [DOCDIR]
1628 --psdir=DIR ps documentation [DOCDIR]
1634 --build=BUILD configure
for building on BUILD
[guessed
]
1635 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1639 if test -n "$ac_init_help"; then
1644 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1645 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1646 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1647 --enable-static[=PKGS
] build static libraries
[default
=yes]
1648 --enable-fast-install[=PKGS
]
1649 optimize
for fast installation
[default
=yes]
1650 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1651 --enable-libbind deprecated
1652 --enable-kqueue use BSD kqueue when available
[default
=yes]
1653 --enable-epoll use Linux epoll when available
[default
=auto
]
1654 --enable-devpoll use
/dev
/poll when available
[default
=yes]
1655 --enable-openssl-version-check
1656 Check OpenSSL Version
[default
=yes]
1657 --enable-openssl-hash use OpenSSL
for hash functions
[default
=no
]
1658 --enable-threads enable multithreading
1659 --enable-largefile 64-bit file support
1660 --enable-backtrace log stack backtrace on abort
[default
=yes]
1661 --enable-symtable use internal symbol table
for backtrace
1662 [all|minimal
(default
)|none
]
1663 --enable-exportlib build exportable library
(GNU
make required
)
1665 --enable-ipv6 use IPv6 default
=autodetect
1666 --enable-getifaddrs Enable the use of getifaddrs
() [yes|no
].
1667 --disable-isc-spnego use SPNEGO from GSSAPI library
1668 --disable-chroot disable chroot
1669 --disable-linux-caps disable linux capabilities
1670 --enable-atomic enable machine specific atomic operations
1671 [default
=autodetect
]
1672 --enable-fixed-rrset enable fixed rrset ordering
1674 --enable-filter-aaaa enable filtering of AAAA records over IPv4
1678 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1679 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1680 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1681 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1683 --with-tags[=TAGS
] include additional configurations
[automatic
]
1684 --with-openssl=PATH Build with OpenSSL
yes|no|path.
1685 (Required
for DNSSEC
)
1686 --with-pkcs11=PATH Build with PKCS11 support
yes|no|path
1687 (PATH is
for the PKCS11 provider
)
1688 --with-gssapi=PATH Specify path
for system-supplied GSSAPI
1689 --with-randomdev=PATH Specify path
for random device
1690 --with-ptl2 on NetBSD
, use the ptl2 thread library
(experimental
)
1691 --with-libxml2=PATH Build with libxml2 library
yes|no|path
1692 --with-purify=PATH use Rational purify
1693 --with-libtool use GNU libtool
1694 --with-export-libdir=PATH
1695 installation directory
for the
export library
1697 --with-export-includedir=PATH
1698 installation directory
for the header files of the
1699 export library
[PREFIX
/include
/bind9
]
1700 --with-kame=PATH use Kame IPv6 default path
/usr
/local
/v6
1701 --with-docbook-xsl=PATH Specify path
for Docbook-XSL stylesheets
1702 --with-idn=MPREFIX
enable IDN support using idnkit default PREFIX
1703 --with-libiconv=IPREFIX GNU libiconv are
in IPREFIX default PREFIX
1704 --with-iconv=LIBSPEC specify
iconv library default
-liconv
1705 --with-idnlib=ARG specify libidnkit
1706 --with-dlz-postgres=PATH Build with Postgres DLZ driver
yes|no|path.
1707 (Required to use Postgres with DLZ
)
1708 --with-dlz-mysql=PATH Build with MySQL DLZ driver
yes|no|path.
1709 (Required to use MySQL with DLZ
)
1710 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver
yes|no|path.
1711 (Required to use Berkeley DB with DLZ
)
1712 --with-dlz-filesystem=PATH Build with filesystem DLZ driver
yes|no.
1713 (Required to use
file system driver with DLZ
)
1714 --with-dlz-ldap=PATH Build with LDAP DLZ driver
yes|no|path.
1715 (Required to use LDAP with DLZ
)
1716 --with-dlz-odbc=PATH Build with ODBC DLZ driver
yes|no|path.
1717 (Required to use ODBC with DLZ
)
1718 --with-dlz-stub=PATH Build with stub DLZ driver
yes|no.
1719 (Required to use stub driver with DLZ
)
1721 Some influential environment variables
:
1722 CC C compiler
command
1723 CFLAGS C compiler flags
1724 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1725 nonstandard directory
<lib dir
>
1726 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1727 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1728 you have headers
in a nonstandard directory
<include dir
>
1730 CXX C
++ compiler
command
1731 CXXFLAGS C
++ compiler flags
1732 CXXCPP C
++ preprocessor
1733 F77 Fortran
77 compiler
command
1734 FFLAGS Fortran
77 compiler flags
1736 Use these variables to override the choices made by
`configure' or to help
1737 it to find libraries and programs with nonstandard names/locations.
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" || continue
1750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760 ac_abs_top_builddir=$ac_pwd
1761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762 # for backward compatibility:
1763 ac_top_builddir=$ac_top_build_prefix
1766 .) # We are building in place.
1768 ac_top_srcdir=$ac_top_builddir_sub
1769 ac_abs_top_srcdir=$ac_pwd ;;
1770 [\\/]* | ?:[\\/]* ) # Absolute name.
1771 ac_srcdir=$srcdir$ac_dir_suffix;
1772 ac_top_srcdir=$srcdir
1773 ac_abs_top_srcdir=$srcdir ;;
1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1781 cd "$ac_dir" || { ac_status=$?; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1788 $SHELL "$ac_srcdir/configure" --help=recursive
1790 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1792 cd "$ac_pwd" || { ac_status=$?; break; }
1796 test -n "$ac_init_help" && exit $ac_status
1797 if $ac_init_version; then
1800 generated by GNU Autoconf 2.61
1802 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1803 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1804 This configure script is free software; the Free Software Foundation
1805 gives unlimited permission to copy, distribute and modify it.
1809 cat >config.log <<_ACEOF
1810 This file contains any messages produced by compilers while
1811 running configure, to aid debugging if configure makes a mistake.
1813 It was created by $as_me, which was
1814 generated by GNU Autoconf 2.61. Invocation command line was
1826 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1827 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1828 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1829 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1830 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1832 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1833 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1835 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1836 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1837 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1838 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1839 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1840 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1841 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 echo "PATH: $as_dir"
1866 # Keep a trace of the command line.
1867 # Strip out --no-create and --no-recursion so they do not pile up.
1868 # Strip out --silent because we don't want to record it for future runs.
1869 # Also quote any args containing shell meta-characters.
1870 # Make two passes to allow for proper duplicate-argument suppression.
1874 ac_must_keep_next=false
1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882 | -silent | --silent | --silen | --sile | --sil)
1885 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1888 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1890 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1891 if test $ac_must_keep_next = true; then
1892 ac_must_keep_next=false # Got value, back to normal.
1895 *=* | --config-cache | -C | -disable-* | --disable-* \
1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898 | -with-* | --with-* | -without-* | --without-* | --x)
1899 case "$ac_configure_args0 " in
1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1903 -* ) ac_must_keep_next=true ;;
1906 ac_configure_args="$ac_configure_args '$ac_arg'"
1911 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1912 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1914 # When interrupted or exit'd, cleanup temporary files, and complete
1915 # config.log. We remove comments because anyway the quotes in there
1916 # would cause problems or look ugly.
1917 # WARNING: Use '\'' to represent an apostrophe within the trap.
1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919 trap 'exit_status=$?
1920 # Save into config.log some information that might help in debugging.
1925 ## ---------------- ##
1926 ## Cache variables. ##
1927 ## ---------------- ##
1930 # The following way of writing the cache mishandles newlines in values,
1932 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1933 eval ac_val=\$$ac_var
1937 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1938 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1941 _ | IFS | as_nl) ;; #(
1942 *) $as_unset $ac_var ;;
1947 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1962 ## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##
1967 for ac_var in $ac_subst_vars
1969 eval ac_val=\$$ac_var
1971 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973 echo "$ac_var='\''$ac_val'\''"
1977 if test -n "$ac_subst_files"; then
1979 ## ------------------- ##
1980 ## File substitutions. ##
1981 ## ------------------- ##
1984 for ac_var in $ac_subst_files
1986 eval ac_val=\$$ac_var
1988 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 echo "$ac_var='\''$ac_val'\''"
1995 if test -s confdefs.h; then
2005 test "$ac_signal" != 0 &&
2006 echo "$as_me: caught signal $ac_signal"
2007 echo "$as_me: exit $exit_status"
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013 for ac_signal in 1 2 13 15; do
2014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2019 rm -f -r conftest* confdefs.h
2021 # Predefined preprocessor variables.
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_NAME "$PACKAGE_NAME"
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_STRING "$PACKAGE_STRING"
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048 # Let the site file select an alternate cache file if it wants to.
2049 # Prefer explicitly selected file to automatically selected ones.
2050 if test -n "$CONFIG_SITE"; then
2051 set x "$CONFIG_SITE"
2052 elif test "x$prefix" != xNONE; then
2053 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2055 set x "$ac_default_prefix/share/config.site" \
2056 "$ac_default_prefix/etc/config.site"
2061 if test -r "$ac_site_file"; then
2062 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2063 echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2069 if test -r "$cache_file"; then
2070 # Some versions of bash will fail to source /dev/null (special
2071 # files actually), so we avoid doing that.
2072 if test -f "$cache_file"; then
2073 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2074 echo "$as_me: loading cache $cache_file" >&6;}
2076 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077 *) . "./$cache_file";;
2081 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2082 echo "$as_me: creating cache $cache_file" >&6;}
2086 # Check that the precious variables saved in the cache have kept the same
2088 ac_cache_corrupted=false
2089 for ac_var in $ac_precious_vars; do
2090 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2091 eval ac_new_set=\$ac_env_${ac_var}_set
2092 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2093 eval ac_new_val=\$ac_env_${ac_var}_value
2094 case $ac_old_set,$ac_new_set in
2096 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2097 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2098 ac_cache_corrupted=: ;;
2100 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
2101 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2105 if test "x$ac_old_val" != "x$ac_new_val"; then
2106 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2107 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2108 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
2109 echo "$as_me: former value
: $ac_old_val" >&2;}
2110 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
2111 echo "$as_me: current value
: $ac_new_val" >&2;}
2112 ac_cache_corrupted=:
2115 # Pass precious variables to config.status.
2116 if test "$ac_new_set" = set; then
2118 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2119 *) ac_arg=$ac_var=$ac_new_val ;;
2121 case " $ac_configure_args " in
2122 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2123 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2127 if $ac_cache_corrupted; then
2128 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2129 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2130 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2131 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2132 { (exit 1); exit 1; }; }
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2160 ac_config_headers="$ac_config_headers config.h"
2164 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2165 if test -f "$ac_dir/install-sh"; then
2167 ac_install_sh="$ac_aux_dir/install-sh -c"
2169 elif test -f "$ac_dir/install.sh"; then
2171 ac_install_sh="$ac_aux_dir/install.sh -c"
2173 elif test -f "$ac_dir/shtool"; then
2175 ac_install_sh="$ac_aux_dir/shtool install -c"
2179 if test -z "$ac_aux_dir"; then
2180 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2181 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2182 { (exit 1); exit 1; }; }
2185 # These three variables are undocumented and unsupported,
2186 # and are intended to be withdrawn in a future Autoconf release.
2187 # They can cause serious problems if a builder's source tree is in a directory
2188 # whose full name contains unusual characters.
2189 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2190 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2191 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2194 # Make sure we can run config.sub.
2195 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2196 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2197 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2198 { (exit 1); exit 1; }; }
2200 { echo "$as_me:$LINENO: checking build system type" >&5
2201 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_build+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 ac_build_alias=$build_alias
2206 test "x$ac_build_alias" = x &&
2207 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2208 test "x$ac_build_alias" = x &&
2209 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2210 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2211 { (exit 1); exit 1; }; }
2212 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2213 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2214 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2215 { (exit 1); exit 1; }; }
2218 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2219 echo "${ECHO_T}$ac_cv_build" >&6; }
2220 case $ac_cv_build in
2222 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2223 echo "$as_me: error: invalid value of canonical build" >&2;}
2224 { (exit 1); exit 1; }; };;
2227 ac_save_IFS=$IFS; IFS='-'
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2237 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2240 { echo "$as_me:$LINENO: checking host system type" >&5
2241 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2242 if test "${ac_cv_host+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test "x$host_alias" = x; then
2246 ac_cv_host=$ac_cv_build
2248 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2249 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2250 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2251 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2256 echo "${ECHO_T}$ac_cv_host" >&6; }
2259 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2260 echo "$as_me: error: invalid value of canonical host" >&2;}
2261 { (exit 1); exit 1; }; };;
2264 ac_save_IFS=$IFS; IFS='-'
2270 # Remember, the first character of IFS is used to create $*,
2271 # except with old shells:
2274 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2278 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2279 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2280 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2281 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 cat >conftest.make <<\_ACEOF
2287 @echo '@@@%%%=$(MAKE)=@@@%%%'
2289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2290 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2292 eval ac_cv_prog_make_${ac_make}_set=yes;;
2294 eval ac_cv_prog_make_${ac_make}_set=no;;
2298 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2299 { echo "$as_me:$LINENO: result: yes" >&5
2300 echo "${ECHO_T}yes" >&6; }
2303 { echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6; }
2305 SET_MAKE="MAKE=${MAKE-make}"
2310 # GNU libtool support
2314 # Just set the maximum command line length for sunos as it otherwise
2315 # takes a exceptionally long time to work it out. Required for libtool.
2317 lt_cv_sys_max_cmd_len=4096;
2321 # Check whether --enable-shared was given.
2322 if test "${enable_shared+set}" = set; then
2323 enableval=$enable_shared; p=${PACKAGE-default}
2325 yes) enable_shared=yes ;;
2326 no) enable_shared=no ;;
2329 # Look at the argument we got. We use all the common list separators.
2330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2331 for pkg in $enableval; do
2333 if test "X$pkg" = "X$p"; then
2345 # Check whether --enable-static was given.
2346 if test "${enable_static+set}" = set; then
2347 enableval=$enable_static; p=${PACKAGE-default}
2349 yes) enable_static=yes ;;
2350 no) enable_static=no ;;
2353 # Look at the argument we got. We use all the common list separators.
2354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2355 for pkg in $enableval; do
2357 if test "X$pkg" = "X$p"; then
2369 # Check whether --enable-fast-install was given.
2370 if test "${enable_fast_install+set}" = set; then
2371 enableval=$enable_fast_install; p=${PACKAGE-default}
2373 yes) enable_fast_install=yes ;;
2374 no) enable_fast_install=no ;;
2376 enable_fast_install=no
2377 # Look at the argument we got. We use all the common list separators.
2378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2379 for pkg in $enableval; do
2381 if test "X$pkg" = "X$p"; then
2382 enable_fast_install=yes
2389 enable_fast_install=yes
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 if test -n "$CC"; then
2428 { echo "$as_me:$LINENO: result: $CC" >&5
2429 echo "${ECHO_T}$CC" >&6; }
2431 { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2437 if test -z "$ac_cv_prog_CC"; then
2439 # Extract the first word of "gcc", so it can be a program name with args.
2440 set dummy gcc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_ac_ct_CC="gcc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2469 echo "${ECHO_T}$ac_ct_CC" >&6; }
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2475 if test "x$ac_ct_CC" = x; then
2478 case $cross_compiling:$ac_tool_warned in
2480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2481 whose name does not start with the host triplet. If you think this
2482 configuration is useful to you, please write to autoconf@gnu.org." >&5
2483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet. If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2486 ac_tool_warned=yes ;;
2494 if test -z "$CC"; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_CC="${ac_tool_prefix}cc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 if test -n "$CC"; then
2525 { echo "$as_me:$LINENO: result: $CC" >&5
2526 echo "${ECHO_T}$CC" >&6; }
2528 { echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6; }
2535 if test -z "$CC"; then
2536 # Extract the first word of "cc", so it can be a program name with args.
2537 set dummy cc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2555 ac_prog_rejected=yes
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 if test $ac_prog_rejected = yes; then
2567 # We found a bogon in the path, so make sure we never use it.
2568 set dummy $ac_cv_prog_CC
2570 if test $# != 0; then
2571 # We chose a different compiler from the bogus one.
2572 # However, it has the same basename, so the bogon will be chosen
2573 # first if we set CC to just the basename; use the full file name.
2575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2581 if test -n "$CC"; then
2582 { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2591 if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
2593 for ac_prog in cl.exe
2595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 if test -n "$CC"; then
2624 { echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6; }
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2632 test -n "$CC" && break
2635 if test -z "$CC"; then
2637 for ac_prog in cl.exe
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -n "$ac_ct_CC"; then
2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_ac_ct_CC="$ac_prog"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667 if test -n "$ac_ct_CC"; then
2668 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2669 echo "${ECHO_T}$ac_ct_CC" >&6; }
2671 { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2676 test -n "$ac_ct_CC" && break
2679 if test "x$ac_ct_CC" = x; then
2682 case $cross_compiling:$ac_tool_warned in
2684 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet. If you think this
2686 configuration is useful to you, please write to autoconf@gnu.org." >&5
2687 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet. If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2690 ac_tool_warned=yes ;;
2699 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2700 See \`config.log
' for more details." >&5
2701 echo "$as_me: error: no acceptable C compiler found in \$PATH
2702 See \`config.log' for more details.
" >&2;}
2703 { (exit 1); exit 1; }; }
2705 # Provide some information about the compiler.
2706 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2707 ac_compiler=`set X $ac_compile; echo $2`
2708 { (ac_try="$ac_compiler --version >&5"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compiler --version >&5") 2>&5
2716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2717 (exit $ac_status); }
2718 { (ac_try="$ac_compiler -v >&5"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler -v >&5") 2>&5
2726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2727 (exit $ac_status); }
2728 { (ac_try="$ac_compiler -V >&5"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -V >&5") 2>&5
2736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2737 (exit $ac_status); }
2739 cat >conftest.$ac_ext <<_ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2754 ac_clean_files_save=$ac_clean_files
2755 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2756 # Try to create an executable without -o first, disregard a.out.
2757 # It will help us diagnose broken compilers, and finding out an intuition
2759 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2760 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2761 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763 # List of possible output files, starting from the most likely.
2764 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2765 # only as a last resort. b.out is created by i960 compilers.
2766 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2768 # The IRIX 6 linker writes into existing files which may not be
2769 # executable, retaining their permissions. Remove them first so a
2770 # subsequent execution test works.
2772 for ac_file in $ac_files
2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2781 if { (ac_try="$ac_link_default"
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_link_default") 2>&5
2789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2790 (exit $ac_status); }; then
2791 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2792 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2793 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2794 # so that the user can short-circuit this test for compilers unknown to
2796 for ac_file in $ac_files ''
2798 test -f "$ac_file" || continue
2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2803 # We found the default executable, but exeext='' is most
2807 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2811 # We set ac_cv_exeext here because the later test for it is not
2812 # safe: cross compilers may not add the suffix if given an `-o'
2813 # argument, so we may need to know it at that point already.
2814 # Even if this section looks crufty: it has the advantage of
2821 test "$ac_cv_exeext" = no && ac_cv_exeext=
2827 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2828 echo "${ECHO_T}$ac_file" >&6; }
2829 if test -z "$ac_file"; then
2830 echo "$as_me: failed program was
:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2834 See \
`config.log' for more details." >&5
2835 echo "$as_me: error: C compiler cannot create executables
2836 See \`config.log
' for more details." >&2;}
2837 { (exit 77); exit 77; }; }
2840 ac_exeext=$ac_cv_exeext
2842 # Check that the compiler produces executables we can run. If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847 # If not cross compiling, check that we can run a simple program.
2848 if test "$cross_compiling" != yes; then
2849 if { ac_try='.
/$ac_file'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 if test "$cross_compiling" = maybe; then
2864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \
`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details.
" >&2;}
2870 { (exit 1); exit 1; }; }
2874 { echo "$as_me:$LINENO: result
: yes" >&5
2875 echo "${ECHO_T}yes" >&6; }
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2882 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2883 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6; }
2886 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2887 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2888 if { (ac_try="$ac_link"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_link") 2>&5
2896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe'), while it won't with
2902 for ac_file in conftest.exe conftest conftest.*; do
2903 test -f "$ac_file" || continue
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2912 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2913 See \
`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log
' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2919 rm -f conftest$ac_cv_exeext
2920 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923 rm -f conftest.$ac_ext
2924 EXEEXT=$ac_cv_exeext
2926 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928 if test "${ac_cv_objext+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.o conftest.obj
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 for ac_file in conftest.o conftest.obj conftest.*; do
2958 test -f "$ac_file" || continue;
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2966 echo "$as_me: failed program was:" >&5
2967 sed 's
/^
/|
/' conftest.$ac_ext >&5
2969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details.
" >&5
2971 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2972 See \
`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 echo "${ECHO_T}$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2982 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3009 *) ac_try_echo
=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1
>conftest.err
3016 cat conftest.err
>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } && {
3019 test -z "$ac_c_werror_flag" ||
3020 test ! -s conftest.err
3021 } && test -s conftest.
$ac_objext; then
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.
$ac_ext >&5
3030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3031 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3034 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3037 ac_test_CFLAGS
=${CFLAGS+set}
3038 ac_save_CFLAGS
=$CFLAGS
3039 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_cc_g+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 ac_save_c_werror_flag
=$ac_c_werror_flag
3045 ac_c_werror_flag
=yes
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.
$ac_objext
3064 if { (ac_try
="$ac_compile"
3066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3105 *) ac_try_echo
=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1
>conftest.err
3112 cat conftest.err
>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } && {
3115 test -z "$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.
$ac_objext; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.
$ac_ext >&5
3123 ac_c_werror_flag
=$ac_save_c_werror_flag
3125 cat >conftest.
$ac_ext <<_ACEOF
3128 cat confdefs.h
>>conftest.
$ac_ext
3129 cat >>conftest.
$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3140 rm -f conftest.
$ac_objext
3141 if { (ac_try
="$ac_compile"
3143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3149 grep -v '^ *+' conftest.er1 >conftest.err
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_c_werror_flag=$ac_save_c_werror_flag
3174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3175 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3176 if test "$ac_test_CFLAGS" = set; then
3177 CFLAGS=$ac_save_CFLAGS
3178 elif test $ac_cv_prog_cc_g = yes; then
3179 if test "$GCC" = yes; then
3185 if test "$GCC" = yes; then
3191 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3192 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_cc_c89+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 ac_cv_prog_cc_c89=no
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3206 #include <sys/types.h>
3207 #include <sys/stat.h>
3208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3209 struct buf { int x; };
3210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3211 static char *e (p, i)
3217 static char *f (char * (*g) (char **, int), char **p, ...)
3222 s = g (p, va_arg (v,int));
3227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3228 function prototypes and stuff, but not '\xHH' hex character constants.
3229 These don't provoke an error unfortunately, instead are silently treated
3230 as 'x'. The following induces an error, until -std is added to get
3231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3232 array size at least. It's necessary to write '\x00'==0 to get something
3233 that's true only with -std. */
3234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3237 inside strings and character constants. */
3239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3241 int test (int i, double x);
3242 struct s1 {int (*f) (int a);};
3243 struct s2 {int (*f) (double a);};
3244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3258 CC="$ac_save_CC $ac_arg"
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3263 *) ac_try_echo
=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1
>conftest.err
3270 cat conftest.err
>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.
$ac_objext; then
3276 ac_cv_prog_cc_c89
=$ac_arg
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.
$ac_ext >&5
3284 rm -f core conftest.err conftest.
$ac_objext
3285 test "x$ac_cv_prog_cc_c89" != "xno" && break
3287 rm -f conftest.
$ac_ext
3292 case "x$ac_cv_prog_cc_c89" in
3294 { echo "$as_me:$LINENO: result: none needed" >&5
3295 echo "${ECHO_T}none needed" >&6; } ;;
3297 { echo "$as_me:$LINENO: result: unsupported" >&5
3298 echo "${ECHO_T}unsupported" >&6; } ;;
3300 CC
="$CC $ac_cv_prog_cc_c89"
3301 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3302 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3307 ac_cpp
='$CPP $CPPFLAGS'
3308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3312 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3313 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3314 if test "${lt_cv_path_SED+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 # Loop through the user's path and test for sed and gsed.
3318 # Then use that list of sed's as ones to test for truncation.
3319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir
=.
3324 for lt_ac_prog
in sed gsed
; do
3325 for ac_exec_ext
in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3327 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3335 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3336 # along with /bin/sed that truncates output.
3337 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3338 test ! -f $lt_ac_sed && continue
3339 cat /dev
/null
> conftest.
in
3341 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3342 # Check for GNU sed and select it if it is found.
3343 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3344 lt_cv_path_SED
=$lt_ac_sed
3348 cat conftest.
in conftest.
in >conftest.tmp
3349 mv conftest.tmp conftest.
in
3350 cp conftest.
in conftest.
nl
3352 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3353 cmp -s conftest.out conftest.
nl ||
break
3354 # 10000 chars as input seems more than enough
3355 test $lt_ac_count -gt 10 && break
3356 lt_ac_count
=`expr $lt_ac_count + 1`
3357 if test $lt_ac_count -gt $lt_ac_max; then
3358 lt_ac_max
=$lt_ac_count
3359 lt_cv_path_SED
=$lt_ac_sed
3368 { echo "$as_me:$LINENO: result: $SED" >&5
3369 echo "${ECHO_T}$SED" >&6; }
3371 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3372 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3373 if test "${ac_cv_path_GREP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 # Extract the first word of "grep ggrep" to use in msg output
3377 if test -z "$GREP"; then
3378 set dummy
grep ggrep
; ac_prog_name
=$2
3379 if test "${ac_cv_path_GREP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 ac_path_GREP_found
=false
3383 # Loop through the user's path and test for each of PROGNAME-LIST
3384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3385 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3388 test -z "$as_dir" && as_dir
=.
3389 for ac_prog
in grep ggrep
; do
3390 for ac_exec_ext
in '' $ac_executable_extensions; do
3391 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3392 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3393 # Check for GNU ac_path_GREP and select it if it is found.
3394 # Check for GNU $ac_path_GREP
3395 case `"$ac_path_GREP" --version 2>&1` in
3397 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3400 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3403 cat "conftest.in" "conftest.in" >"conftest.tmp"
3404 mv "conftest.tmp" "conftest.in"
3405 cp "conftest.in" "conftest.nl"
3406 echo 'GREP' >> "conftest.nl"
3407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3408 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3409 ac_count
=`expr $ac_count + 1`
3410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3411 # Best one so far, save it but keep looking for a better one
3412 ac_cv_path_GREP
="$ac_path_GREP"
3413 ac_path_GREP_max
=$ac_count
3415 # 10*(2^10) chars as input seems more than enough
3416 test $ac_count -gt 10 && break
3418 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3422 $ac_path_GREP_found && break 3
3432 GREP
="$ac_cv_path_GREP"
3433 if test -z "$GREP"; then
3434 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3435 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3436 { (exit 1); exit 1; }; }
3440 ac_cv_path_GREP
=$GREP
3445 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3446 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3447 GREP
="$ac_cv_path_GREP"
3450 { echo "$as_me:$LINENO: checking for egrep" >&5
3451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3452 if test "${ac_cv_path_EGREP+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3456 then ac_cv_path_EGREP
="$GREP -E"
3458 # Extract the first word of "egrep" to use in msg output
3459 if test -z "$EGREP"; then
3460 set dummy
egrep; ac_prog_name
=$2
3461 if test "${ac_cv_path_EGREP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 ac_path_EGREP_found
=false
3465 # Loop through the user's path and test for each of PROGNAME-LIST
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3467 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_prog
in egrep; do
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3474 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3475 # Check for GNU ac_path_EGREP and select it if it is found.
3476 # Check for GNU $ac_path_EGREP
3477 case `"$ac_path_EGREP" --version 2>&1` in
3479 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3482 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3485 cat "conftest.in" "conftest.in" >"conftest.tmp"
3486 mv "conftest.tmp" "conftest.in"
3487 cp "conftest.in" "conftest.nl"
3488 echo 'EGREP' >> "conftest.nl"
3489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3490 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3491 ac_count
=`expr $ac_count + 1`
3492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3493 # Best one so far, save it but keep looking for a better one
3494 ac_cv_path_EGREP
="$ac_path_EGREP"
3495 ac_path_EGREP_max
=$ac_count
3497 # 10*(2^10) chars as input seems more than enough
3498 test $ac_count -gt 10 && break
3500 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3504 $ac_path_EGREP_found && break 3
3514 EGREP
="$ac_cv_path_EGREP"
3515 if test -z "$EGREP"; then
3516 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3517 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3518 { (exit 1); exit 1; }; }
3522 ac_cv_path_EGREP
=$EGREP
3528 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3529 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3530 EGREP
="$ac_cv_path_EGREP"
3534 # Check whether --with-gnu-ld was given.
3535 if test "${with_gnu_ld+set}" = set; then
3536 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
3542 if test "$GCC" = yes; then
3543 # Check if gcc -print-prog-name=ld gives a path.
3544 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3545 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3548 # gcc leaves a trailing carriage return which upsets mingw
3549 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3551 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3554 # Accept absolute paths.
3556 re_direlt
='/[^/][^/]*/\.\./'
3557 # Canonicalize the pathname of ld
3558 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3559 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3560 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3562 test -z "$LD" && LD
="$ac_prog"
3565 # If it fails, then pretend we aren't using GCC.
3569 # If it is relative, then search for the first ld in PATH.
3573 elif test "$with_gnu_ld" = yes; then
3574 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3575 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3577 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3578 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3580 if test "${lt_cv_path_LD+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test -z "$LD"; then
3584 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3585 for ac_dir
in $PATH; do
3587 test -z "$ac_dir" && ac_dir
=.
3588 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3589 lt_cv_path_LD
="$ac_dir/$ac_prog"
3590 # Check to see if the program is GNU ld. I'd rather use --version,
3591 # but apparently some variants of GNU ld only accept -v.
3592 # Break only if it was the GNU/non-GNU ld that we prefer.
3593 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3594 *GNU
* |
*'with BFD'*)
3595 test "$with_gnu_ld" != no
&& break
3598 test "$with_gnu_ld" != yes && break
3605 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3610 if test -n "$LD"; then
3611 { echo "$as_me:$LINENO: result: $LD" >&5
3612 echo "${ECHO_T}$LD" >&6; }
3614 { echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6; }
3617 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3618 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3619 { (exit 1); exit 1; }; }
3620 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3621 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3622 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3626 case `$LD -v 2>&1 </dev/null` in
3627 *GNU
* |
*'with BFD'*)
3628 lt_cv_prog_gnu_ld
=yes
3631 lt_cv_prog_gnu_ld
=no
3635 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3636 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3637 with_gnu_ld
=$lt_cv_prog_gnu_ld
3640 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3641 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3642 if test "${lt_cv_ld_reload_flag+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 lt_cv_ld_reload_flag
='-r'
3647 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3648 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3649 reload_flag
=$lt_cv_ld_reload_flag
3650 case $reload_flag in
3652 *) reload_flag
=" $reload_flag" ;;
3654 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3657 if test "$GCC" = yes; then
3658 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3660 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3665 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3666 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3667 if test "${lt_cv_path_NM+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -n "$NM"; then
3671 # Let the user override the test.
3674 lt_nm_to_check
="${ac_tool_prefix}nm"
3675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3676 lt_nm_to_check
="$lt_nm_to_check nm"
3678 for lt_tmp_nm
in $lt_nm_to_check; do
3679 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3680 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
3682 test -z "$ac_dir" && ac_dir
=.
3683 tmp_nm
="$ac_dir/$lt_tmp_nm"
3684 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3685 # Check to see if the nm accepts a BSD-compat flag.
3686 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3687 # nm: unknown option "B" ignored
3688 # Tru64's nm complains that /dev/null is an invalid object file
3689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3690 */dev
/null
* |
*'Invalid file or object type'*)
3691 lt_cv_path_NM
="$tmp_nm -B"
3695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3697 lt_cv_path_NM
="$tmp_nm -p"
3701 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3702 continue # so that we can try to find one that supports BSD flags
3711 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3714 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3715 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3718 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3719 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3721 if test "$LN_S" = "ln -s"; then
3722 { echo "$as_me:$LINENO: result: yes" >&5
3723 echo "${ECHO_T}yes" >&6; }
3725 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3726 echo "${ECHO_T}no, using $LN_S" >&6; }
3729 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3730 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3731 if test "${lt_cv_deplibs_check_method+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3735 lt_cv_file_magic_test_file
=
3736 lt_cv_deplibs_check_method
='unknown'
3737 # Need to set the preceding variable on all platforms that support
3738 # interlibrary dependencies.
3739 # 'none' -- dependencies not supported.
3740 # `unknown' -- same as none, but documents that we really don't know.
3741 # 'pass_all' -- all dependencies passed with no checks.
3742 # 'test_compile' -- check by making test program.
3743 # 'file_magic [[regex]]' -- check by looking for files in library path
3744 # which responds to the $file_magic_cmd with a given extended regex.
3745 # If you have `file' or equivalent on your system and you're not sure
3746 # whether `pass_all' will *always* work, you probably want this one.
3750 lt_cv_deplibs_check_method
=pass_all
3754 lt_cv_deplibs_check_method
=pass_all
3758 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3759 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3760 lt_cv_file_magic_test_file
=/shlib
/libc.so
3764 # func_win32_libid is a shell function defined in ltmain.sh
3765 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3766 lt_cv_file_magic_cmd
='func_win32_libid'
3770 # Base MSYS/MinGW do not provide the 'file' command needed by
3771 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3772 # unless we find 'file', for example because we are cross-compiling.
3773 if ( file / ) >/dev
/null
2>&1; then
3774 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3775 lt_cv_file_magic_cmd
='func_win32_libid'
3777 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3778 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3782 darwin
* | rhapsody
*)
3783 lt_cv_deplibs_check_method
=pass_all
3786 freebsd
* | dragonfly
*)
3787 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3790 # Not sure whether the presence of OpenBSD here was a mistake.
3791 # Let's accept both of them until this is cleared up.
3792 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3793 lt_cv_file_magic_cmd
=/usr
/bin
/file
3794 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3798 lt_cv_deplibs_check_method
=pass_all
3803 lt_cv_deplibs_check_method
=pass_all
3806 hpux10.20
* | hpux11
*)
3807 lt_cv_file_magic_cmd
=/usr
/bin
/file
3810 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3811 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3814 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3815 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
3818 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3819 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3825 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3826 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
3829 irix5
* | irix6
* | nonstopux
*)
3831 *-32|
*"-32 ") libmagic
=32-bit;;
3832 *-n32|
*"-n32 ") libmagic
=N32
;;
3833 *-64|
*"-64 ") libmagic
=64-bit;;
3834 *) libmagic
=never-match
;;
3836 lt_cv_deplibs_check_method
=pass_all
3839 # This must be Linux ELF.
3840 linux
* | k
*bsd
*-gnu)
3841 lt_cv_deplibs_check_method
=pass_all
3845 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3846 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3848 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3853 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3854 lt_cv_file_magic_cmd
=/usr
/bin
/file
3855 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3859 lt_cv_deplibs_check_method
=unknown
3863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3864 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3866 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3870 osf3
* | osf4
* | osf5
*)
3871 lt_cv_deplibs_check_method
=pass_all
3875 lt_cv_deplibs_check_method
=pass_all
3879 lt_cv_deplibs_check_method
=pass_all
3883 case $host_vendor in
3885 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3886 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3889 lt_cv_deplibs_check_method
=pass_all
3892 lt_cv_file_magic_cmd
='/bin/file'
3893 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3896 lt_cv_file_magic_cmd
='/bin/file'
3897 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3898 lt_cv_file_magic_test_file
=/lib
/libc.so
3901 lt_cv_deplibs_check_method
=pass_all
3904 lt_cv_deplibs_check_method
=pass_all
3909 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
3910 lt_cv_deplibs_check_method
=pass_all
3915 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3916 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3917 file_magic_cmd
=$lt_cv_file_magic_cmd
3918 deplibs_check_method
=$lt_cv_deplibs_check_method
3919 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
3924 # If no C compiler was specified, use CC.
3927 # If no C compiler flags were specified, use CFLAGS.
3928 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
3930 # Allow CC to be a program name with arguments.
3934 # Check whether --enable-libtool-lock was given.
3935 if test "${enable_libtool_lock+set}" = set; then
3936 enableval
=$enable_libtool_lock;
3939 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3941 # Some flags need to be propagated to the compiler or linker for good
3945 # Find out which ABI we are using.
3946 echo 'int i;' > conftest.
$ac_ext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948 (eval $ac_compile) 2>&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; then
3952 case `/usr/bin/file conftest.$ac_objext` in
3964 # Find out which ABI we are using.
3965 echo '#line 3965 "configure"' > conftest.
$ac_ext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; then
3971 if test "$lt_cv_prog_gnu_ld" = yes; then
3972 case `/usr/bin/file conftest.$ac_objext` in
3974 LD
="${LD-ld} -melf32bsmip"
3977 LD
="${LD-ld} -melf32bmipn32"
3980 LD
="${LD-ld} -melf64bmip"
3984 case `/usr/bin/file conftest.$ac_objext` in
4000 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
4001 s390
*-*linux
*|sparc
*-*linux
*)
4002 # Find out which ABI we are using.
4003 echo 'int i;' > conftest.
$ac_ext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; then
4009 case `/usr/bin/file conftest.o` in
4012 x86_64-
*kfreebsd
*-gnu)
4013 LD
="${LD-ld} -m elf_i386_fbsd"
4016 LD
="${LD-ld} -m elf_i386"
4018 ppc64-
*linux
*|powerpc64-
*linux
*)
4019 LD
="${LD-ld} -m elf32ppclinux"
4022 LD
="${LD-ld} -m elf_s390"
4025 LD
="${LD-ld} -m elf32_sparc"
4031 x86_64-
*kfreebsd
*-gnu)
4032 LD
="${LD-ld} -m elf_x86_64_fbsd"
4035 LD
="${LD-ld} -m elf_x86_64"
4037 ppc
*-*linux
*|powerpc
*-*linux
*)
4038 LD
="${LD-ld} -m elf64ppc"
4041 LD
="${LD-ld} -m elf64_s390"
4044 LD
="${LD-ld} -m elf64_sparc"
4054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4055 SAVE_CFLAGS
="$CFLAGS"
4056 CFLAGS
="$CFLAGS -belf"
4057 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4058 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4059 if test "${lt_cv_cc_needs_belf+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 ac_cpp
='$CPP $CPPFLAGS'
4064 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4068 cat >conftest.
$ac_ext <<_ACEOF
4071 cat confdefs.h
>>conftest.
$ac_ext
4072 cat >>conftest.
$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4083 rm -f conftest.
$ac_objext conftest
$ac_exeext
4084 if { (ac_try
="$ac_link"
4086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_link") 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest$ac_exeext &&
4100 $as_test_x conftest$ac_exeext; then
4101 lt_cv_cc_needs_belf=yes
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 lt_cv_cc_needs_belf=no
4109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4110 conftest$ac_exeext conftest.$ac_ext
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4119 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4120 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4121 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4122 CFLAGS="$SAVE_CFLAGS"
4126 # Find out which ABI we are using.
4127 echo 'int i;' > conftest.$ac_ext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129 (eval $ac_compile) 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; then
4133 case `/usr
/bin
/file conftest.o
` in
4135 case $lt_cv_prog_gnu_ld in
4136 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4138 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4152 need_locks="$enable_libtool_lock"
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4161 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4162 # On Suns, sometimes $CPP names a directory.
4163 if test -n "$CPP" && test -d "$CPP"; then
4166 if test -z "$CPP"; then
4167 if test "${ac_cv_prog_CPP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 # Double quotes because CPP needs to be expanded
4171 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4174 for ac_c_preproc_warn_flag in '' yes
4176 # Use a header file that comes with gcc, so configuring glibc
4177 # with a fresh cross-compiler works.
4178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179 # <limits.h> exists even on freestanding compilers.
4180 # On the NeXT, cc -E runs the code through the compiler's parser,
4181 # not just through cpp. "Syntax error" is here to catch this case.
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4189 # include <limits.h>
4191 # include <assert.h>
4195 if { (ac_try="$ac_cpp conftest.$ac_ext"
4197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4198 *) ac_try_echo
=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4203 grep -v '^ *+' conftest.er1
>conftest.err
4205 cat conftest.err
>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } >/dev
/null
&& {
4208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4209 test ! -s conftest.err
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.
$ac_ext >&5
4216 # Broken: fails on valid input.
4220 rm -f conftest.err conftest.
$ac_ext
4222 # OK, works on sane cases. Now check whether nonexistent headers
4223 # can be detected and how.
4224 cat >conftest.
$ac_ext <<_ACEOF
4227 cat confdefs.h
>>conftest.
$ac_ext
4228 cat >>conftest.
$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <ac_nonexistent.h>
4232 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4248 # Broken: success on invalid input.
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4259 rm -f conftest.err conftest.$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.
$ac_ext
4264 if $ac_preproc_ok; then
4276 { echo "$as_me:$LINENO: result: $CPP" >&5
4277 echo "${ECHO_T}$CPP" >&6; }
4279 for ac_c_preproc_warn_flag
in '' yes
4281 # Use a header file that comes with gcc, so configuring glibc
4282 # with a fresh cross-compiler works.
4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 # <limits.h> exists even on freestanding compilers.
4285 # On the NeXT, cc -E runs the code through the compiler's parser,
4286 # not just through cpp. "Syntax error" is here to catch this case.
4287 cat >conftest.
$ac_ext <<_ACEOF
4290 cat confdefs.h
>>conftest.
$ac_ext
4291 cat >>conftest.
$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4294 # include <limits.h>
4296 # include <assert.h>
4300 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } >/dev/null && {
4313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4314 test ! -s conftest.err
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 # Broken: fails on valid input.
4325 rm -f conftest.err conftest.$ac_ext
4327 # OK, works on sane cases. Now check whether nonexistent headers
4328 # can be detected and how.
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #include <ac_nonexistent.h>
4337 if { (ac_try="$ac_cpp conftest.$ac_ext"
4339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4340 *) ac_try_echo
=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4345 grep -v '^ *+' conftest.er1
>conftest.err
4347 cat conftest.err
>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev
/null
&& {
4350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4353 # Broken: success on invalid input.
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.
$ac_ext >&5
4359 # Passes both tests.
4364 rm -f conftest.err conftest.
$ac_ext
4367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 rm -f conftest.err conftest.
$ac_ext
4369 if $ac_preproc_ok; then
4372 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details." >&5
4374 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4375 See \`config.log' for more details." >&2;}
4376 { (exit 1); exit 1; }; }
4380 ac_cpp
='$CPP $CPPFLAGS'
4381 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4386 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4388 if test "${ac_cv_header_stdc+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 cat >conftest.
$ac_ext <<_ACEOF
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4410 rm -f conftest.
$ac_objext
4411 if { (ac_try
="$ac_compile"
4413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4419 grep -v '^ *+' conftest.er1 >conftest.err
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 ac_cv_header_stdc=yes
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_cv_header_stdc=no
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 if test $ac_cv_header_stdc = yes; then
4438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449 $EGREP "memchr" >/dev/null 2>&1; then
4452 ac_cv_header_stdc=no
4458 if test $ac_cv_header_stdc = yes; then
4459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4460 cat >conftest.$ac_ext <<_ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470 $EGREP "free" >/dev/null 2>&1; then
4473 ac_cv_header_stdc=no
4479 if test $ac_cv_header_stdc = yes; then
4480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4481 if test "$cross_compiling" = yes; then
4484 cat >conftest.$ac_ext <<_ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4492 #if ((' ' & 0x0FF) == 0x020)
4493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4496 # define ISLOWER(c) \
4497 (('a' <= (c) && (c) <= 'i') \
4498 || ('j' <= (c) && (c) <= 'r') \
4499 || ('s' <= (c) && (c) <= 'z'))
4500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4508 for (i = 0; i < 256; i++)
4509 if (XOR (islower (i), ISLOWER (i))
4510 || toupper (i) != TOUPPER (i))
4515 rm -f conftest$ac_exeext
4516 if { (ac_try="$ac_link"
4518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4519 *) ac_try_echo
=$ac_try;;
4521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522 (eval "$ac_link") 2>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4526 { (case "(($ac_try" in
4527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_try") 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4537 echo "$as_me: program exited with status $ac_status" >&5
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4542 ac_cv_header_stdc=no
4544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4550 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4551 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4552 if test $ac_cv_header_stdc = yes; then
4554 cat >>confdefs.h <<\_ACEOF
4555 #define STDC_HEADERS 1
4560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4571 inttypes.h stdint.h unistd.h
4573 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 cat >conftest.$ac_ext <<_ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4587 #include <$ac_header>
4589 rm -f conftest.$ac_objext
4590 if { (ac_try="$ac_compile"
4592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4593 *) ac_try_echo
=$ac_try;;
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4598 grep -v '^ *+' conftest.er1
>conftest.err
4600 cat conftest.err
>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.
$ac_objext; then
4606 eval "$as_ac_Header=yes"
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.
$ac_ext >&5
4611 eval "$as_ac_Header=no"
4614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4616 ac_res
=`eval echo '${'$as_ac_Header'}'`
4617 { echo "$as_me:$LINENO: result: $ac_res" >&5
4618 echo "${ECHO_T}$ac_res" >&6; }
4619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4620 cat >>confdefs.h
<<_ACEOF
4621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4630 for ac_header
in dlfcn.h
4632 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4633 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4636 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_res
=`eval echo '${'$as_ac_Header'}'`
4640 { echo "$as_me:$LINENO: result: $ac_res" >&5
4641 echo "${ECHO_T}$ac_res" >&6; }
4643 # Is the header compilable?
4644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4646 cat >conftest.
$ac_ext <<_ACEOF
4649 cat confdefs.h
>>conftest.
$ac_ext
4650 cat >>conftest.
$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 $ac_includes_default
4653 #include <$ac_header>
4655 rm -f conftest.
$ac_objext
4656 if { (ac_try
="$ac_compile"
4658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_compile") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1 >conftest.err
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest.$ac_objext; then
4672 ac_header_compiler=yes
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 ac_header_compiler=no
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4682 echo "${ECHO_T}$ac_header_compiler" >&6; }
4684 # Is the header present?
4685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 #include <$ac_header>
4695 if { (ac_try="$ac_cpp conftest.$ac_ext"
4697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4698 *) ac_try_echo
=$ac_try;;
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4703 grep -v '^ *+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev
/null
&& {
4708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4711 ac_header_preproc
=yes
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.
$ac_ext >&5
4716 ac_header_preproc
=no
4719 rm -f conftest.err conftest.
$ac_ext
4720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4721 echo "${ECHO_T}$ac_header_preproc" >&6; }
4723 # So? What about this header?
4724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4730 ac_header_preproc
=yes
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4750 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 eval "$as_ac_Header=\$ac_header_preproc"
4755 ac_res
=`eval echo '${'$as_ac_Header'}'`
4756 { echo "$as_me:$LINENO: result: $ac_res" >&5
4757 echo "${ECHO_T}$ac_res" >&6; }
4760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4761 cat >>confdefs.h
<<_ACEOF
4762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770 ac_cpp
='$CXXCPP $CPPFLAGS'
4771 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4774 if test -z "$CXX"; then
4775 if test -n "$CCC"; then
4778 if test -n "$ac_tool_prefix"; then
4779 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4782 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_prog_CXX+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 if test -n "$CXX"; then
4789 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir
=.
4796 for ac_exec_ext
in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 if test -n "$CXX"; then
4810 { echo "$as_me:$LINENO: result: $CXX" >&5
4811 echo "${ECHO_T}$CXX" >&6; }
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4818 test -n "$CXX" && break
4821 if test -z "$CXX"; then
4823 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826 set dummy
$ac_prog; ac_word
=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 if test -n "$ac_ct_CXX"; then
4833 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir
=.
4840 for ac_exec_ext
in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4853 if test -n "$ac_ct_CXX"; then
4854 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4855 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4857 { echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6; }
4862 test -n "$ac_ct_CXX" && break
4865 if test "x$ac_ct_CXX" = x
; then
4868 case $cross_compiling:$ac_tool_warned in
4870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4871 whose name does not start with the host triplet. If you think this
4872 configuration is useful to you, please write to autoconf@gnu.org." >&5
4873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4874 whose name does not start with the host triplet. If you think this
4875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4876 ac_tool_warned
=yes ;;
4884 # Provide some information about the compiler.
4885 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4886 ac_compiler
=`set X $ac_compile; echo $2`
4887 { (ac_try
="$ac_compiler --version >&5"
4889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compiler --version >&5") 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4897 { (ac_try="$ac_compiler -v >&5"
4899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4900 *) ac_try_echo
=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compiler -v >&5") 2>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }
4907 { (ac_try
="$ac_compiler -V >&5"
4909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_compiler -V >&5") 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }
4918 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4919 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4920 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 cat >conftest.$ac_ext <<_ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4945 *) ac_try_echo
=$ac_try;;
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4950 grep -v '^ *+' conftest.er1
>conftest.err
4952 cat conftest.err
>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_cxx_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.
$ac_objext; then
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.
$ac_ext >&5
4966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4967 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4970 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4971 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4972 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4973 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4974 ac_save_CXXFLAGS
=$CXXFLAGS
4975 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4976 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_cxx_g+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4981 ac_cxx_werror_flag
=yes
4984 cat >conftest.
$ac_ext <<_ACEOF
4987 cat confdefs.h
>>conftest.
$ac_ext
4988 cat >>conftest.
$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4999 rm -f conftest.
$ac_objext
5000 if { (ac_try
="$ac_compile"
5002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5008 grep -v '^ *+' conftest.er1 >conftest.err
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_cxx_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5016 ac_cv_prog_cxx_g=yes
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5022 cat >conftest.$ac_ext <<_ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5041 *) ac_try_echo
=$ac_try;;
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_compile") 2>conftest.er1
5046 grep -v '^ *+' conftest.er1
>conftest.err
5048 cat conftest.err
>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_cxx_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest.
$ac_objext; then
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.
$ac_ext >&5
5059 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5061 cat >conftest.
$ac_ext <<_ACEOF
5064 cat confdefs.h
>>conftest.
$ac_ext
5065 cat >>conftest.
$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5076 rm -f conftest.
$ac_objext
5077 if { (ac_try
="$ac_compile"
5079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_compile") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_cxx_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest.$ac_objext; then
5093 ac_cv_prog_cxx_g=yes
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5110 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5111 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5112 if test "$ac_test_CXXFLAGS" = set; then
5113 CXXFLAGS=$ac_save_CXXFLAGS
5114 elif test $ac_cv_prog_cxx_g = yes; then
5115 if test "$GXX" = yes; then
5121 if test "$GXX" = yes; then
5128 ac_cpp='$CXXCPP $CPPFLAGS'
5129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5136 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
5137 (test "X$CXX" != "Xg++"))) ; then
5139 ac_cpp='$CXXCPP $CPPFLAGS'
5140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5144 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5145 if test -z "$CXXCPP"; then
5146 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 # Double quotes because CXXCPP needs to be expanded
5150 for CXXCPP in "$CXX -E" "/lib/cpp"
5153 for ac_cxx_preproc_warn_flag in '' yes
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5168 # include <limits.h>
5170 # include <assert.h>
5174 if { (ac_try="$ac_cpp conftest.$ac_ext"
5176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5177 *) ac_try_echo
=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5182 grep -v '^ *+' conftest.er1
>conftest.err
5184 cat conftest.err
>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev
/null
&& {
5187 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5188 test ! -s conftest.err
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.
$ac_ext >&5
5195 # Broken: fails on valid input.
5199 rm -f conftest.err conftest.
$ac_ext
5201 # OK, works on sane cases. Now check whether nonexistent headers
5202 # can be detected and how.
5203 cat >conftest.
$ac_ext <<_ACEOF
5206 cat confdefs.h
>>conftest.
$ac_ext
5207 cat >>conftest.
$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <ac_nonexistent.h>
5211 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5219 grep -v '^ *+' conftest.er1 >conftest.err
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null && {
5224 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5225 test ! -s conftest.err
5227 # Broken: success on invalid input.
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 # Passes both tests.
5238 rm -f conftest.err conftest.$ac_ext
5241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5242 rm -f conftest.err conftest.
$ac_ext
5243 if $ac_preproc_ok; then
5248 ac_cv_prog_CXXCPP
=$CXXCPP
5251 CXXCPP
=$ac_cv_prog_CXXCPP
5253 ac_cv_prog_CXXCPP
=$CXXCPP
5255 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5256 echo "${ECHO_T}$CXXCPP" >&6; }
5258 for ac_cxx_preproc_warn_flag
in '' yes
5260 # Use a header file that comes with gcc, so configuring glibc
5261 # with a fresh cross-compiler works.
5262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5263 # <limits.h> exists even on freestanding compilers.
5264 # On the NeXT, cc -E runs the code through the compiler's parser,
5265 # not just through cpp. "Syntax error" is here to catch this case.
5266 cat >conftest.
$ac_ext <<_ACEOF
5269 cat confdefs.h
>>conftest.
$ac_ext
5270 cat >>conftest.
$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5273 # include <limits.h>
5275 # include <assert.h>
5279 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } >/dev/null && {
5292 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5293 test ! -s conftest.err
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 # Broken: fails on valid input.
5304 rm -f conftest.err conftest.$ac_ext
5306 # OK, works on sane cases. Now check whether nonexistent headers
5307 # can be detected and how.
5308 cat >conftest.$ac_ext <<_ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <ac_nonexistent.h>
5316 if { (ac_try="$ac_cpp conftest.$ac_ext"
5318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5319 *) ac_try_echo
=$ac_try;;
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5324 grep -v '^ *+' conftest.er1
>conftest.err
5326 cat conftest.err
>&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } >/dev
/null
&& {
5329 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5330 test ! -s conftest.err
5332 # Broken: success on invalid input.
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5338 # Passes both tests.
5343 rm -f conftest.err conftest.
$ac_ext
5346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5347 rm -f conftest.err conftest.
$ac_ext
5348 if $ac_preproc_ok; then
5351 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5352 See \`config.log' for more details." >&5
5353 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5354 See \`config.log' for more details." >&2;}
5355 { (exit 1); exit 1; }; }
5359 ac_cpp
='$CXXCPP $CPPFLAGS'
5360 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5368 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5369 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5371 if test -n "$ac_tool_prefix"; then
5372 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5375 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_prog_F77+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if test -n "$F77"; then
5382 ac_cv_prog_F77
="$F77" # Let the user override the test.
5384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir
=.
5389 for ac_exec_ext
in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 if test -n "$F77"; then
5403 { echo "$as_me:$LINENO: result: $F77" >&5
5404 echo "${ECHO_T}$F77" >&6; }
5406 { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5411 test -n "$F77" && break
5414 if test -z "$F77"; then
5416 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5418 # Extract the first word of "$ac_prog", so it can be a program name with args.
5419 set dummy
$ac_prog; ac_word
=$2
5420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 if test -n "$ac_ct_F77"; then
5426 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir
=.
5433 for ac_exec_ext
in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_prog_ac_ct_F77
="$ac_prog"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5446 if test -n "$ac_ct_F77"; then
5447 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5448 echo "${ECHO_T}$ac_ct_F77" >&6; }
5450 { echo "$as_me:$LINENO: result: no" >&5
5451 echo "${ECHO_T}no" >&6; }
5455 test -n "$ac_ct_F77" && break
5458 if test "x$ac_ct_F77" = x
; then
5461 case $cross_compiling:$ac_tool_warned in
5463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5464 whose name does not start with the host triplet. If you think this
5465 configuration is useful to you, please write to autoconf@gnu.org." >&5
5466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5467 whose name does not start with the host triplet. If you think this
5468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5469 ac_tool_warned
=yes ;;
5476 # Provide some information about the compiler.
5477 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5478 ac_compiler
=`set X $ac_compile; echo $2`
5479 { (ac_try
="$ac_compiler --version >&5"
5481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compiler --version >&5") 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }
5489 { (ac_try="$ac_compiler -v >&5"
5491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5492 *) ac_try_echo
=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compiler -v >&5") 2>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }
5499 { (ac_try
="$ac_compiler -V >&5"
5501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compiler -V >&5") 2>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }
5511 # If we don't use `.F
' as extension, the preprocessor is not run on the
5512 # input file. (Note that this only needs to work for GNU compilers.)
5515 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5516 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5517 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 cat >conftest.$ac_ext <<_ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5537 grep -v '^
*+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_f77_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5547 echo "$as_me: failed program was:" >&5
5548 sed 's
/^
/|
/' conftest.$ac_ext >&5
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5557 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5558 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5560 ac_test_FFLAGS=${FFLAGS+set}
5561 ac_save_FFLAGS=$FFLAGS
5563 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5564 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5565 if test "${ac_cv_prog_f77_g+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 cat >conftest.$ac_ext <<_ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (ac_try="$ac_compile"
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_compile") 2>conftest.er1
5583 grep -v '^
*+' conftest.er1 >conftest.err
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && {
5588 test -z "$ac_f77_werror_flag" ||
5589 test ! -s conftest.err
5590 } && test -s conftest.$ac_objext; then
5591 ac_cv_prog_f77_g=yes
5593 echo "$as_me: failed program was:" >&5
5594 sed 's
/^
/|
/' conftest.$ac_ext >&5
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5603 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5604 if test "$ac_test_FFLAGS" = set; then
5605 FFLAGS=$ac_save_FFLAGS
5606 elif test $ac_cv_prog_f77_g = yes; then
5607 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5613 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5620 G77=`test $ac_compiler_gnu = yes && echo yes`
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5624 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
5630 # find the maximum length of command line arguments
5631 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5632 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 # On DJGPP, this test can blow up pretty badly due to problems in libc
5642 # (any single argument exceeding 2000 bytes causes a buffer overrun
5643 # during glob expansion). Even if it were fixed, the result of this
5644 # check would be larger than it should be.
5645 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5649 # Under GNU Hurd, this test is not required because there is
5650 # no limit to the length of command line arguments.
5651 # Libtool will interpret -1 as no limit whatsoever
5652 lt_cv_sys_max_cmd_len
=-1;
5656 # On Win9x/ME, this test blows up -- it succeeds, but takes
5657 # about 5 minutes as the teststring grows exponentially.
5658 # Worse, since 9x/ME are not pre-emptively multitasking,
5659 # you end up with a "frozen" computer, even though with patience
5660 # the test eventually succeeds (with a max line length of 256k).
5661 # Instead, let's just punt: use the minimum linelength reported by
5662 # all of the supported platforms: 8192 (on NT/2K/XP).
5663 lt_cv_sys_max_cmd_len
=8192;
5667 # On AmigaOS with pdksh, this test takes hours, literally.
5668 # So we just punt and use a minimum line length of 8192.
5669 lt_cv_sys_max_cmd_len
=8192;
5672 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5673 # This has been around since 386BSD, at least. Likely further.
5674 if test -x /sbin
/sysctl
; then
5675 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5676 elif test -x /usr
/sbin
/sysctl
; then
5677 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5679 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5681 # And add a safety zone
5682 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5683 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5688 lt_cv_sys_max_cmd_len
=196608
5692 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5693 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5694 # nice to cause kernel panics so lets avoid the loop below.
5695 # First set a reasonable default.
5696 lt_cv_sys_max_cmd_len
=16384
5698 if test -x /sbin
/sysconfig
; then
5699 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5700 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5705 lt_cv_sys_max_cmd_len
=102400
5707 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5708 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5709 if test -n "$kargmax"; then
5710 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5712 lt_cv_sys_max_cmd_len
=32768
5716 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5717 if test -n "$lt_cv_sys_max_cmd_len"; then
5718 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5719 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5721 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5722 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5723 = "XX$teststring") >/dev
/null
2>&1 &&
5724 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5725 lt_cv_sys_max_cmd_len
=$new_result &&
5726 test $i != 17 # 1/2 MB should be enough
5729 teststring
=$teststring$teststring
5732 # Add a significant safety factor because C++ compilers can tack on massive
5733 # amounts of additional arguments before passing them to the linker.
5734 # It appears as though 1/2 is a usable value.
5735 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5742 if test -n $lt_cv_sys_max_cmd_len ; then
5743 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5744 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5746 { echo "$as_me:$LINENO: result: none" >&5
5747 echo "${ECHO_T}none" >&6; }
5754 # Check for command to grab the raw symbol name followed by C symbol from nm.
5755 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5756 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5757 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 # These are sane defaults that work on at least a few old systems.
5762 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5764 # Character class describing NM global symbol codes.
5765 symcode
='[BCDEGRST]'
5767 # Regexp to match symbols that can be accessed directly from C.
5768 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5770 # Transform an extracted symbol line into a proper C declaration
5771 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5773 # Transform an extracted symbol line into symbol name and symbol address
5774 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5776 # Define system-specific variables.
5781 cygwin
* | mingw
* | pw32
*)
5782 symcode
='[ABCDGISTW]'
5784 hpux
*) # Its linker distinguishes data from code symbols
5785 if test "$host_cpu" = ia64
; then
5786 symcode
='[ABCDEGRST]'
5788 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5789 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5791 linux
* | k
*bsd
*-gnu)
5792 if test "$host_cpu" = ia64
; then
5793 symcode
='[ABCDGIRSTW]'
5794 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5795 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5799 symcode
='[BCDEGRST]'
5802 symcode
='[BCDEGQRST]'
5813 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
5821 # Handle CRLF in mingw tool chain
5825 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5829 # If we're using GNU nm, then use its standard symbol codes.
5830 case `$NM -V 2>&1` in
5831 *GNU
* |
*'with BFD'*)
5832 symcode
='[ABCDGIRSTW]' ;;
5835 # Try without a prefix undercore, then with it.
5836 for ac_symprfx
in "" "_"; do
5838 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5839 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5841 # Write the raw and C identifiers.
5842 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5844 # Check to see that the pipe works correctly.
5848 cat > conftest.
$ac_ext <<EOF
5853 void nm_test_func(){}
5857 int main(){nm_test_var='a';nm_test_func();return(0);}
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; then
5865 # Now try to grab the symbols.
5867 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5868 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && test -s "$nlist"; then
5872 # Try sorting and uniquifying the output.
5873 if sort "$nlist" |
uniq > "$nlist"T
; then
5874 mv -f "$nlist"T
"$nlist"
5879 # Make sure that we snagged all the symbols we need.
5880 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5881 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5882 cat <<EOF > conftest.$ac_ext
5888 # Now generate the symbol file.
5889 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5891 cat <<EOF >> conftest.$ac_ext
5892 #if defined (__STDC__) && __STDC__
5893 # define lt_ptr_t void *
5895 # define lt_ptr_t char *
5899 /* The mapping between symbol names and symbols. */
5904 lt_preloaded_symbols[] =
5907 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5908 cat <<\EOF
>> conftest.
$ac_ext
5916 # Now try linking the two files.
5917 mv conftest.
$ac_objext conftstm.
$ac_objext
5918 lt_save_LIBS
="$LIBS"
5919 lt_save_CFLAGS
="$CFLAGS"
5920 LIBS
="conftstm.$ac_objext"
5921 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5929 LIBS
="$lt_save_LIBS"
5930 CFLAGS
="$lt_save_CFLAGS"
5932 echo "cannot find nm_test_func in $nlist" >&5
5935 echo "cannot find nm_test_var in $nlist" >&5
5938 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5941 echo "$progname: failed program was:" >&5
5942 cat conftest.
$ac_ext >&5
5944 rm -rf conftest
* conftst
*
5946 # Do not use the global_symbol_pipe unless it works.
5947 if test "$pipe_works" = yes; then
5950 lt_cv_sys_global_symbol_pipe
=
5956 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5957 lt_cv_sys_global_symbol_to_cdecl
=
5959 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5960 { echo "$as_me:$LINENO: result: failed" >&5
5961 echo "${ECHO_T}failed" >&6; }
5963 { echo "$as_me:$LINENO: result: ok" >&5
5964 echo "${ECHO_T}ok" >&6; }
5967 { echo "$as_me:$LINENO: checking for objdir" >&5
5968 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5969 if test "${lt_cv_objdir+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 rm -f .libs
2>/dev
/null
5973 mkdir .libs
2>/dev
/null
5974 if test -d .libs
; then
5977 # MS-DOS does not allow filenames that begin with a dot.
5980 rmdir .libs
2>/dev
/null
5982 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5983 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5984 objdir
=$lt_cv_objdir
5992 # AIX sometimes has problems with the GCC collect2 program. For some
5993 # reason, if we set the COLLECT_NAMES environment variable, the problems
5994 # vanish in a puff of smoke.
5995 if test "X${COLLECT_NAMES+set}" != Xset
; then
5997 export COLLECT_NAMES
6002 # Sed substitution that helps us do robust quoting. It backslashifies
6003 # metacharacters that are still active within double-quoted strings.
6004 Xsed
='sed -e 1s/^X//'
6005 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6007 # Same as above, but do not quote variable references.
6008 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6010 # Sed substitution to delay expansion of an escaped shell variable in a
6011 # double_quote_subst'ed string.
6012 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6014 # Sed substitution to avoid accidental globbing in evaled expressions
6015 no_glob_subst
='s/\*/\\\*/g'
6021 default_ofile
=libtool
6022 can_build_shared
=yes
6024 # All known linkers require a `.a' archive for static linking (except MSVC,
6025 # which needs '.lib').
6027 ltmain
="$ac_aux_dir/ltmain.sh"
6028 ofile
="$default_ofile"
6029 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6033 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6036 if test "${ac_cv_prog_AR+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 if test -n "$AR"; then
6040 ac_cv_prog_AR
="$AR" # Let the user override the test.
6042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6046 test -z "$as_dir" && as_dir
=.
6047 for ac_exec_ext
in '' $ac_executable_extensions; do
6048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 if test -n "$AR"; then
6061 { echo "$as_me:$LINENO: result: $AR" >&5
6062 echo "${ECHO_T}$AR" >&6; }
6064 { echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6; }
6070 if test -z "$ac_cv_prog_AR"; then
6072 # Extract the first word of "ar", so it can be a program name with args.
6073 set dummy
ar; ac_word
=$2
6074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6076 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 if test -n "$ac_ct_AR"; then
6080 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6086 test -z "$as_dir" && as_dir
=.
6087 for ac_exec_ext
in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_ac_ct_AR
="ar"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6100 if test -n "$ac_ct_AR"; then
6101 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6102 echo "${ECHO_T}$ac_ct_AR" >&6; }
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6108 if test "x$ac_ct_AR" = x
; then
6111 case $cross_compiling:$ac_tool_warned in
6113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6114 whose name does not start with the host triplet. If you think this
6115 configuration is useful to you, please write to autoconf@gnu.org." >&5
6116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6117 whose name does not start with the host triplet. If you think this
6118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6119 ac_tool_warned
=yes ;;
6127 if test -n "$ac_tool_prefix"; then
6128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6129 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132 if test "${ac_cv_prog_RANLIB+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 if test -n "$RANLIB"; then
6136 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir
=.
6143 for ac_exec_ext
in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 RANLIB
=$ac_cv_prog_RANLIB
6156 if test -n "$RANLIB"; then
6157 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6158 echo "${ECHO_T}$RANLIB" >&6; }
6160 { echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6; }
6166 if test -z "$ac_cv_prog_RANLIB"; then
6167 ac_ct_RANLIB
=$RANLIB
6168 # Extract the first word of "ranlib", so it can be a program name with args.
6169 set dummy ranlib
; ac_word
=$2
6170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 if test -n "$ac_ct_RANLIB"; then
6176 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6182 test -z "$as_dir" && as_dir
=.
6183 for ac_exec_ext
in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6196 if test -n "$ac_ct_RANLIB"; then
6197 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6198 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6200 { echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6; }
6204 if test "x$ac_ct_RANLIB" = x
; then
6207 case $cross_compiling:$ac_tool_warned in
6209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6210 whose name does not start with the host triplet. If you think this
6211 configuration is useful to you, please write to autoconf@gnu.org." >&5
6212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6213 whose name does not start with the host triplet. If you think this
6214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6215 ac_tool_warned
=yes ;;
6217 RANLIB
=$ac_ct_RANLIB
6220 RANLIB
="$ac_cv_prog_RANLIB"
6223 if test -n "$ac_tool_prefix"; then
6224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6225 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_prog_STRIP+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 if test -n "$STRIP"; then
6232 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir
=.
6239 for ac_exec_ext
in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 STRIP
=$ac_cv_prog_STRIP
6252 if test -n "$STRIP"; then
6253 { echo "$as_me:$LINENO: result: $STRIP" >&5
6254 echo "${ECHO_T}$STRIP" >&6; }
6256 { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6262 if test -z "$ac_cv_prog_STRIP"; then
6264 # Extract the first word of "strip", so it can be a program name with args.
6265 set dummy strip
; ac_word
=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 if test -n "$ac_ct_STRIP"; then
6272 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir
=.
6279 for ac_exec_ext
in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_STRIP
="strip"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6292 if test -n "$ac_ct_STRIP"; then
6293 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6294 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6300 if test "x$ac_ct_STRIP" = x
; then
6303 case $cross_compiling:$ac_tool_warned in
6305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6306 whose name does not start with the host triplet. If you think this
6307 configuration is useful to you, please write to autoconf@gnu.org." >&5
6308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6309 whose name does not start with the host triplet. If you think this
6310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6311 ac_tool_warned
=yes ;;
6316 STRIP
="$ac_cv_prog_STRIP"
6321 old_CFLAGS
="$CFLAGS"
6323 # Set sane defaults for various variables
6324 test -z "$AR" && AR
=ar
6325 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6326 test -z "$AS" && AS
=as
6327 test -z "$CC" && CC
=cc
6328 test -z "$LTCC" && LTCC
=$CC
6329 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6330 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6331 test -z "$LD" && LD
=ld
6332 test -z "$LN_S" && LN_S
="ln -s"
6333 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6334 test -z "$NM" && NM
=nm
6335 test -z "$SED" && SED
=sed
6336 test -z "$OBJDUMP" && OBJDUMP
=objdump
6337 test -z "$RANLIB" && RANLIB
=:
6338 test -z "$STRIP" && STRIP
=:
6339 test -z "$ac_objext" && ac_objext
=o
6341 # Determine commands to create old-style static archives.
6342 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6343 old_postinstall_cmds
='chmod 644 $oldlib'
6344 old_postuninstall_cmds
=
6346 if test -n "$RANLIB"; then
6349 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6352 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6355 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6358 for cc_temp
in $compiler""; do
6360 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6361 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6366 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6369 # Only perform the check for file, if the check method requires it
6370 case $deplibs_check_method in
6372 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6373 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6374 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6375 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6383 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6384 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6385 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6386 for ac_dir
in $ac_dummy; do
6388 test -z "$ac_dir" && ac_dir
=.
6389 if test -f $ac_dir/${ac_tool_prefix}file; then
6390 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6391 if test -n "$file_magic_test_file"; then
6392 case $deplibs_check_method in
6394 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6395 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6396 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6397 $EGREP "$file_magic_regex" > /dev
/null
; then
6402 *** Warning: the command libtool uses to detect shared libraries,
6403 *** $file_magic_cmd, produces output that libtool cannot recognize.
6404 *** The result is that libtool may fail to recognize shared libraries
6405 *** as such. This will affect the creation of libtool libraries that
6406 *** depend on shared libraries, but programs linked with such libtool
6407 *** libraries will work regardless of this problem. Nevertheless, you
6408 *** may want to report the problem to your system manager and/or to
6409 *** bug-libtool@gnu.org
6419 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6424 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6425 if test -n "$MAGIC_CMD"; then
6426 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6427 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6429 { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6433 if test -z "$lt_cv_path_MAGIC_CMD"; then
6434 if test -n "$ac_tool_prefix"; then
6435 { echo "$as_me:$LINENO: checking for file" >&5
6436 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6437 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6445 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6446 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6447 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6448 for ac_dir
in $ac_dummy; do
6450 test -z "$ac_dir" && ac_dir
=.
6451 if test -f $ac_dir/file; then
6452 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6453 if test -n "$file_magic_test_file"; then
6454 case $deplibs_check_method in
6456 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6457 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6458 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6459 $EGREP "$file_magic_regex" > /dev
/null
; then
6464 *** Warning: the command libtool uses to detect shared libraries,
6465 *** $file_magic_cmd, produces output that libtool cannot recognize.
6466 *** The result is that libtool may fail to recognize shared libraries
6467 *** as such. This will affect the creation of libtool libraries that
6468 *** depend on shared libraries, but programs linked with such libtool
6469 *** libraries will work regardless of this problem. Nevertheless, you
6470 *** may want to report the problem to your system manager and/or to
6471 *** bug-libtool@gnu.org
6481 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6486 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6487 if test -n "$MAGIC_CMD"; then
6488 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6489 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6506 rhapsody
* | darwin
*)
6507 if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6509 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 if test -n "$DSYMUTIL"; then
6516 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
6518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir
=.
6523 for ac_exec_ext
in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
6536 if test -n "$DSYMUTIL"; then
6537 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6538 echo "${ECHO_T}$DSYMUTIL" >&6; }
6540 { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6546 if test -z "$ac_cv_prog_DSYMUTIL"; then
6547 ac_ct_DSYMUTIL
=$DSYMUTIL
6548 # Extract the first word of "dsymutil", so it can be a program name with args.
6549 set dummy dsymutil
; ac_word
=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 if test -n "$ac_ct_DSYMUTIL"; then
6556 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
6558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir
=.
6563 for ac_exec_ext
in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
6576 if test -n "$ac_ct_DSYMUTIL"; then
6577 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6578 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6584 if test "x$ac_ct_DSYMUTIL" = x
; then
6587 case $cross_compiling:$ac_tool_warned in
6589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6590 whose name does not start with the host triplet. If you think this
6591 configuration is useful to you, please write to autoconf@gnu.org." >&5
6592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet. If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6595 ac_tool_warned
=yes ;;
6597 DSYMUTIL
=$ac_ct_DSYMUTIL
6600 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6605 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 if test -n "$NMEDIT"; then
6612 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
6614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir
=.
6619 for ac_exec_ext
in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 NMEDIT
=$ac_cv_prog_NMEDIT
6632 if test -n "$NMEDIT"; then
6633 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6634 echo "${ECHO_T}$NMEDIT" >&6; }
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6642 if test -z "$ac_cv_prog_NMEDIT"; then
6643 ac_ct_NMEDIT
=$NMEDIT
6644 # Extract the first word of "nmedit", so it can be a program name with args.
6645 set dummy nmedit
; ac_word
=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 if test -n "$ac_ct_NMEDIT"; then
6652 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
6654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir
=.
6659 for ac_exec_ext
in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
6672 if test -n "$ac_ct_NMEDIT"; then
6673 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6674 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6676 { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6680 if test "x$ac_ct_NMEDIT" = x
; then
6683 case $cross_compiling:$ac_tool_warned in
6685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6686 whose name does not start with the host triplet. If you think this
6687 configuration is useful to you, please write to autoconf@gnu.org." >&5
6688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet. If you think this
6690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6691 ac_tool_warned
=yes ;;
6693 NMEDIT
=$ac_ct_NMEDIT
6696 NMEDIT
="$ac_cv_prog_NMEDIT"
6700 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6701 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6702 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 lt_cv_apple_cc_single_mod
=no
6706 if test -z "${LT_MULTI_MODULE}"; then
6707 # By default we will add the -single_module flag. You can override
6708 # by either setting the environment variable LT_MULTI_MODULE
6709 # non-empty at configure time, or by adding -multi_module to the
6711 echo "int foo(void){return 1;}" > conftest.c
6712 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6713 -dynamiclib ${wl}-single_module conftest.c
6714 if test -f libconftest.dylib
; then
6715 lt_cv_apple_cc_single_mod
=yes
6716 rm -rf libconftest.dylib
*
6721 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6722 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6723 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6724 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6725 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 lt_cv_ld_exported_symbols_list
=no
6729 save_LDFLAGS
=$LDFLAGS
6730 echo "_main" > conftest.sym
6731 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6732 cat >conftest.
$ac_ext <<_ACEOF
6735 cat confdefs.h
>>conftest.
$ac_ext
6736 cat >>conftest.
$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6747 rm -f conftest.
$ac_objext conftest
$ac_exeext
6748 if { (ac_try
="$ac_link"
6750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754 (eval "$ac_link") 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest$ac_exeext &&
6764 $as_test_x conftest$ac_exeext; then
6765 lt_cv_ld_exported_symbols_list=yes
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6770 lt_cv_ld_exported_symbols_list=no
6773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6774 conftest$ac_exeext conftest.$ac_ext
6775 LDFLAGS="$save_LDFLAGS"
6778 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6779 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6781 rhapsody* | darwin1.[0123])
6782 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6786 # if running on 10.5 or later, the deployment target defaults
6787 # to the OS version, if on x86, and 10.4, the deployment
6788 # target defaults to 10.4. Don't you love it?
6789 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6790 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6791 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6793 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6795 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6799 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6800 _lt_dar_single_mod='$single_module'
6802 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6803 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6805 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6807 if test "$DSYMUTIL" != ":"; then
6808 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6819 # Check whether --enable-libtool-lock was given.
6820 if test "${enable_libtool_lock+set}" = set; then
6821 enableval=$enable_libtool_lock;
6824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6827 # Check whether --with-pic was given.
6828 if test "${with_pic+set}" = set; then
6829 withval=$with_pic; pic_mode="$withval"
6834 test -z "$pic_mode" && pic_mode=default
6836 # Use C for the default configuration in the libtool script
6840 ac_cpp='$CPP $CPPFLAGS'
6841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 # Source file extension for C test sources.
6849 # Object file extension for compiled C test sources.
6853 # Code to be used in simple compile tests
6854 lt_simple_compile_test_code="int some_variable = 0;"
6856 # Code to be used in simple link tests
6857 lt_simple_link_test_code='int main(){return(0);}'
6860 # If no C compiler was specified, use CC.
6863 # If no C compiler flags were specified, use CFLAGS.
6864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6866 # Allow CC to be a program name with arguments.
6870 # save warnings/boilerplate of simple test code
6871 ac_outfile=conftest.$ac_objext
6872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6874 _lt_compiler_boilerplate=`cat conftest.err
`
6877 ac_outfile=conftest.$ac_objext
6878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6880 _lt_linker_boilerplate=`cat conftest.err
`
6885 ## There is no encapsulation within the following macros, do not change
6886 ## the running order or otherwise move them around unless you know exactly
6887 ## what you are doing...
6889 lt_prog_compiler_no_builtin_flag=
6891 if test "$GCC" = yes; then
6892 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6895 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6896 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6897 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 lt_cv_prog_compiler_rtti_exceptions=no
6901 ac_outfile=conftest.$ac_objext
6902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6903 lt_compiler_flag="-fno-rtti -fno-exceptions"
6904 # Insert the option either (1) after the last *FLAGS variable, or
6905 # (2) before a word containing "conftest.", or (3) at the end.
6906 # Note that $ac_compile itself does not contain backslashes and begins
6907 # with a dollar sign (not a hyphen), so the echo should work correctly.
6908 # The option is referenced via a variable to avoid confusing sed.
6909 lt_compile=`echo "$ac_compile" |
$SED \
6910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6912 -e 's:$: $lt_compiler_flag:'`
6913 (eval echo "\"\$as_me:6913: $lt_compile\"" >&5)
6914 (eval "$lt_compile" 2>conftest.err)
6916 cat conftest.err >&5
6917 echo "$as_me:6917: \$? = $ac_status" >&5
6918 if (exit $ac_status) && test -s "$ac_outfile"; then
6919 # The compiler can only warn and ignore the option if not recognized
6920 # So say no if there are warnings other than the usual output.
6921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6924 lt_cv_prog_compiler_rtti_exceptions=yes
6930 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6931 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6933 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6934 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6941 lt_prog_compiler_wl=
6942 lt_prog_compiler_pic=
6943 lt_prog_compiler_static=
6945 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6946 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6948 if test "$GCC" = yes; then
6949 lt_prog_compiler_wl='-Wl,'
6950 lt_prog_compiler_static='-static'
6954 # All AIX code is PIC.
6955 if test "$host_cpu" = ia64; then
6956 # AIX 5 now supports IA64 processor
6957 lt_prog_compiler_static='-Bstatic'
6962 # FIXME: we need at least 68020 code to build shared libraries, but
6963 # adding the `-m68020' flag to GCC prevents building anything better,
6965 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6968 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6969 # PIC is the default for these OSes.
6972 mingw
* | cygwin
* | pw32
* | os2
*)
6973 # This hack is so that the source file can tell whether it is being
6974 # built for inclusion in a dll (and should export symbols for example).
6975 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6976 # (--disable-auto-import) libraries
6977 lt_prog_compiler_pic
='-DDLL_EXPORT'
6980 darwin
* | rhapsody
*)
6981 # PIC is the default on this platform
6982 # Common symbols not allowed in MH_DYLIB files
6983 lt_prog_compiler_pic
='-fno-common'
6987 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6988 # Instead, we relocate shared libraries at runtime.
6992 # Just because we use GCC doesn't mean we suddenly get shared libraries
6993 # on systems that don't support them.
6994 lt_prog_compiler_can_build_shared
=no
6999 if test -d /usr
/nec
; then
7000 lt_prog_compiler_pic
=-Kconform_pic
7005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7012 lt_prog_compiler_pic
='-fPIC'
7018 lt_prog_compiler_pic
='-fPIC'
7022 # PORTME Check for flag to pass linker flags through the system compiler.
7025 lt_prog_compiler_wl
='-Wl,'
7026 if test "$host_cpu" = ia64
; then
7027 # AIX 5 now supports IA64 processor
7028 lt_prog_compiler_static
='-Bstatic'
7030 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7034 # PIC is the default on this platform
7035 # Common symbols not allowed in MH_DYLIB files
7036 case $cc_basename in
7038 lt_prog_compiler_pic
='-qnocommon'
7039 lt_prog_compiler_wl
='-Wl,'
7044 mingw
* | cygwin
* | pw32
* | os2
*)
7045 # This hack is so that the source file can tell whether it is being
7046 # built for inclusion in a dll (and should export symbols for example).
7047 lt_prog_compiler_pic
='-DDLL_EXPORT'
7050 hpux9
* | hpux10
* | hpux11
*)
7051 lt_prog_compiler_wl
='-Wl,'
7052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7059 lt_prog_compiler_pic
='+Z'
7062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7063 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7066 irix5
* | irix6
* | nonstopux
*)
7067 lt_prog_compiler_wl
='-Wl,'
7068 # PIC (with -KPIC) is the default.
7069 lt_prog_compiler_static
='-non_shared'
7073 lt_prog_compiler_pic
='-KPIC'
7074 lt_prog_compiler_static
='-Bstatic'
7077 linux
* | k
*bsd
*-gnu)
7078 case $cc_basename in
7080 lt_prog_compiler_wl
='-Wl,'
7081 lt_prog_compiler_pic
='-KPIC'
7082 lt_prog_compiler_static
='-static'
7084 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7085 # Portland Group compilers (*not* the Pentium gcc compiler,
7086 # which looks to be a dead project)
7087 lt_prog_compiler_wl
='-Wl,'
7088 lt_prog_compiler_pic
='-fpic'
7089 lt_prog_compiler_static
='-Bstatic'
7092 lt_prog_compiler_wl
='-Wl,'
7093 # All Alpha code is PIC.
7094 lt_prog_compiler_static
='-non_shared'
7097 case `$CC -V 2>&1 | sed 5q` in
7100 lt_prog_compiler_pic
='-KPIC'
7101 lt_prog_compiler_static
='-Bstatic'
7102 lt_prog_compiler_wl
='-Wl,'
7105 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7106 lt_prog_compiler_pic
='-KPIC'
7107 lt_prog_compiler_static
='-Bstatic'
7108 lt_prog_compiler_wl
=''
7115 osf3
* | osf4
* | osf5
*)
7116 lt_prog_compiler_wl
='-Wl,'
7117 # All OSF/1 code is PIC.
7118 lt_prog_compiler_static
='-non_shared'
7122 lt_prog_compiler_static
='-non_shared'
7126 lt_prog_compiler_pic
='-KPIC'
7127 lt_prog_compiler_static
='-Bstatic'
7128 case $cc_basename in
7130 lt_prog_compiler_wl
='-Qoption ld ';;
7132 lt_prog_compiler_wl
='-Wl,';;
7137 lt_prog_compiler_wl
='-Qoption ld '
7138 lt_prog_compiler_pic
='-PIC'
7139 lt_prog_compiler_static
='-Bstatic'
7142 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7143 lt_prog_compiler_wl
='-Wl,'
7144 lt_prog_compiler_pic
='-KPIC'
7145 lt_prog_compiler_static
='-Bstatic'
7149 if test -d /usr
/nec
;then
7150 lt_prog_compiler_pic
='-Kconform_pic'
7151 lt_prog_compiler_static
='-Bstatic'
7155 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7156 lt_prog_compiler_wl
='-Wl,'
7157 lt_prog_compiler_pic
='-KPIC'
7158 lt_prog_compiler_static
='-Bstatic'
7162 lt_prog_compiler_wl
='-Wl,'
7163 lt_prog_compiler_can_build_shared
=no
7167 lt_prog_compiler_pic
='-pic'
7168 lt_prog_compiler_static
='-Bstatic'
7172 lt_prog_compiler_can_build_shared
=no
7177 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7178 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7181 # Check to make sure the PIC flag actually works.
7183 if test -n "$lt_prog_compiler_pic"; then
7185 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7186 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7187 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 lt_cv_prog_compiler_pic_works
=no
7191 ac_outfile
=conftest.
$ac_objext
7192 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7193 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7194 # Insert the option either (1) after the last *FLAGS variable, or
7195 # (2) before a word containing "conftest.", or (3) at the end.
7196 # Note that $ac_compile itself does not contain backslashes and begins
7197 # with a dollar sign (not a hyphen), so the echo should work correctly.
7198 # The option is referenced via a variable to avoid confusing sed.
7199 lt_compile
=`echo "$ac_compile" | $SED \
7200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7202 -e 's:$: $lt_compiler_flag:'`
7203 (eval echo "\"\$as_me:7203: $lt_compile\"" >&5)
7204 (eval "$lt_compile" 2>conftest.err
)
7206 cat conftest.err
>&5
7207 echo "$as_me:7207: \$? = $ac_status" >&5
7208 if (exit $ac_status) && test -s "$ac_outfile"; then
7209 # The compiler can only warn and ignore the option if not recognized
7210 # So say no if there are warnings other than the usual output.
7211 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7212 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7213 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7214 lt_cv_prog_compiler_pic_works
=yes
7220 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7221 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7223 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
7224 case $lt_prog_compiler_pic in
7226 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7229 lt_prog_compiler_pic
=
7230 lt_prog_compiler_can_build_shared
=no
7235 # For platforms which do not support PIC, -DPIC is meaningless:
7237 lt_prog_compiler_pic
=
7240 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7245 # Check to make sure the static flag actually works.
7247 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7248 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7249 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7250 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 lt_cv_prog_compiler_static_works
=no
7254 save_LDFLAGS
="$LDFLAGS"
7255 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7256 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7257 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7258 # The linker can only warn and ignore the option if not recognized
7259 # So say no if there are warnings
7260 if test -s conftest.err
; then
7261 # Append any errors to the config.log.
7262 cat conftest.err
1>&5
7263 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7264 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7265 if diff conftest.exp conftest.er2
>/dev
/null
; then
7266 lt_cv_prog_compiler_static_works
=yes
7269 lt_cv_prog_compiler_static_works
=yes
7273 LDFLAGS
="$save_LDFLAGS"
7276 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7277 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7279 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
7282 lt_prog_compiler_static
=
7286 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7288 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 lt_cv_prog_compiler_c_o
=no
7292 $rm -r conftest
2>/dev
/null
7296 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7298 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7299 # Insert the option either (1) after the last *FLAGS variable, or
7300 # (2) before a word containing "conftest.", or (3) at the end.
7301 # Note that $ac_compile itself does not contain backslashes and begins
7302 # with a dollar sign (not a hyphen), so the echo should work correctly.
7303 lt_compile
=`echo "$ac_compile" | $SED \
7304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7306 -e 's:$: $lt_compiler_flag:'`
7307 (eval echo "\"\$as_me:7307: $lt_compile\"" >&5)
7308 (eval "$lt_compile" 2>out
/conftest.err
)
7310 cat out
/conftest.err
>&5
7311 echo "$as_me:7311: \$? = $ac_status" >&5
7312 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7314 # The compiler can only warn and ignore the option if not recognized
7315 # So say no if there are warnings
7316 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7317 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7318 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7319 lt_cv_prog_compiler_c_o
=yes
7324 # SGI C++ compiler will create directory out/ii_files/ for
7325 # template instantiation
7326 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7327 $rm out
/* && rmdir out
7333 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7337 hard_links
="nottested"
7338 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7339 # do not overwrite the value of need_locks provided by the user
7340 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7344 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7346 ln conftest.a conftest.b
2>&5 || hard_links
=no
7347 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7348 { echo "$as_me:$LINENO: result: $hard_links" >&5
7349 echo "${ECHO_T}$hard_links" >&6; }
7350 if test "$hard_links" = no
; then
7351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7359 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7363 allow_undefined_flag
=
7364 enable_shared_with_static_runtimes
=no
7366 archive_expsym_cmds
=
7367 old_archive_From_new_cmds
=
7368 old_archive_from_expsyms_cmds
=
7369 export_dynamic_flag_spec
=
7370 whole_archive_flag_spec
=
7371 thread_safe_flag_spec
=
7372 hardcode_libdir_flag_spec
=
7373 hardcode_libdir_flag_spec_ld
=
7374 hardcode_libdir_separator
=
7377 hardcode_shlibpath_var
=unsupported
7378 link_all_deplibs
=unknown
7379 hardcode_automatic
=no
7382 always_export_symbols
=no
7383 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7384 # include_expsyms should be a list of space-separated symbols to be *always*
7385 # included in the symbol list
7387 # exclude_expsyms can be an extended regexp of symbols to exclude
7388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7390 # as well as any symbol that contains `d'.
7391 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7393 # platforms (ab)use it in PIC code, but their linkers get confused if
7394 # the symbol is explicitly referenced. Since portable code cannot
7395 # rely on this symbol name, it's probably fine to never include it in
7396 # preloaded symbol tables.
7397 # Exclude shared library initialization/finalization symbols.
7398 extract_expsyms_cmds
=
7399 # Just being paranoid about ensuring that cc_basename is set.
7400 for cc_temp
in $compiler""; do
7402 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7403 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7408 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7411 cygwin
* | mingw
* | pw32
*)
7412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7413 # When not using gcc, we currently assume that we are using
7414 # Microsoft Visual C++.
7415 if test "$GCC" != yes; then
7420 # we just hope/assume this is gcc and not c89 (= MSVC++)
7429 if test "$with_gnu_ld" = yes; then
7430 # If archive_cmds runs LD, not CC, wlarc should be empty
7433 # Set some defaults for GNU ld with shared library support. These
7434 # are reset later if shared libraries are not supported. Putting them
7435 # here allows them to be overridden if necessary.
7436 runpath_var
=LD_RUN_PATH
7437 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7438 export_dynamic_flag_spec
='${wl}--export-dynamic'
7439 # ancient GNU ld didn't support --whole-archive et. al.
7440 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7441 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7443 whole_archive_flag_spec
=
7445 supports_anon_versioning
=no
7446 case `$LD -v 2>/dev/null` in
7447 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7448 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7449 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7450 *\
2.11.
*) ;; # other 2.11 versions
7451 *) supports_anon_versioning
=yes ;;
7454 # See if GNU ld supports shared libraries.
7457 # On AIX/PPC, the GNU linker is very broken
7458 if test "$host_cpu" != ia64
; then
7462 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7463 *** to be unable to reliably create shared libraries on AIX.
7464 *** Therefore, libtool is disabling shared libraries support. If you
7465 *** really care for shared libraries, you may want to modify your PATH
7466 *** so that a non-GNU linker is found, and then restart.
7473 archive_cmds
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7474 hardcode_libdir_flag_spec
='-L$libdir'
7475 hardcode_minus_L
=yes
7477 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7478 # that the semantics of dynamic libraries on AmigaOS, at least up
7479 # to version 4, is to share data among multiple programs linked
7480 # with the same dynamic library. Since this doesn't match the
7481 # behavior of shared libraries on other platforms, we can't use
7487 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7488 allow_undefined_flag
=unsupported
7489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7490 # support --undefined. This deserves some investigation. FIXME
7491 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497 cygwin
* | mingw
* | pw32
*)
7498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7499 # as there is no search path for DLLs.
7500 hardcode_libdir_flag_spec
='-L$libdir'
7501 allow_undefined_flag
=unsupported
7502 always_export_symbols
=no
7503 enable_shared_with_static_runtimes
=yes
7504 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7506 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7507 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7508 # If the export-symbols file already is a .def file (1st line
7509 # is EXPORTS), use it as is; otherwise, prepend...
7510 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7511 cp $export_symbols $output_objdir/$soname.def;
7513 echo EXPORTS > $output_objdir/$soname.def;
7514 cat $export_symbols >> $output_objdir/$soname.def;
7516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7524 hardcode_shlibpath_var
=no
7525 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7526 export_dynamic_flag_spec
='${wl}-E'
7527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7528 # Instead, shared libraries are loaded at an image base (0x10000000 by
7529 # default) and relocated if they conflict, which is a slow very memory
7530 # consuming and fragmenting process. To avoid this, we pick a random,
7531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7532 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7533 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7534 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'
7537 gnu
* | linux
* | k
*bsd
*-gnu)
7538 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7540 case $cc_basename,$host_cpu in
7541 pgcc
*) # Portland Group C compiler
7542 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7543 tmp_addflag
=' $pic_flag'
7545 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7546 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7547 tmp_addflag
=' $pic_flag -Mnomain' ;;
7548 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7549 tmp_addflag
=' -i_dynamic' ;;
7550 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7551 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7552 ifc
* | ifort
*) # Intel Fortran compiler
7553 tmp_addflag
=' -nofor_main' ;;
7555 case `$CC -V 2>&1 | sed 5q` in
7556 *Sun\ C
*) # Sun C 5.9
7557 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7558 tmp_sharedflag
='-G' ;;
7559 *Sun\ F
*) # Sun Fortran 8.3
7560 tmp_sharedflag
='-G' ;;
7562 tmp_sharedflag
='-shared' ;;
7564 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7566 if test $supports_anon_versioning = yes; then
7567 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7568 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7569 $echo "local: *; };" >> $output_objdir/$libname.ver~
7570 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7578 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7579 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7582 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7583 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7588 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7593 *** create shared libraries on Solaris systems. Therefore, libtool
7594 *** is disabling shared libraries support. We urge you to upgrade GNU
7595 *** binutils to release 2.9.1 or newer. Another option is to modify
7596 *** your PATH or compiler configuration so that the native linker is
7597 *** used, and then restart.
7600 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7601 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7602 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7608 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7609 case `$LD -v 2>&1` in
7610 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7614 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7615 *** reliably create shared libraries on SCO systems. Therefore, libtool
7616 *** is disabling shared libraries support. We urge you to upgrade GNU
7617 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7618 *** your PATH or compiler configuration so that the native linker is
7619 *** used, and then restart.
7624 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7625 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7626 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7627 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7636 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7639 hardcode_shlibpath_var
=no
7643 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7644 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7645 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7652 if test "$ld_shlibs" = no
; then
7654 hardcode_libdir_flag_spec
=
7655 export_dynamic_flag_spec
=
7656 whole_archive_flag_spec
=
7659 # PORTME fill in a description of your system's linker (not GNU ld)
7662 allow_undefined_flag
=unsupported
7663 always_export_symbols
=yes
7664 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7665 # Note: this linker hardcodes the directories in LIBPATH if there
7666 # are no directories specified by -L.
7667 hardcode_minus_L
=yes
7668 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7669 # Neither direct hardcoding nor static linking is supported with a
7671 hardcode_direct
=unsupported
7676 if test "$host_cpu" = ia64
; then
7677 # On IA64, the linker does run time linking by default, so we don't
7678 # have to do anything special.
7679 aix_use_runtimelinking
=no
7680 exp_sym_flag
='-Bexport'
7683 # If we're using GNU nm, then we don't want the "-C" option.
7684 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7685 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7686 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7688 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'
7690 aix_use_runtimelinking
=no
7692 # Test if we are trying to use run time linking or normal
7693 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7694 # need to do runtime linking.
7695 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
7696 for ld_flag
in $LDFLAGS; do
7697 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7698 aix_use_runtimelinking
=yes
7705 exp_sym_flag
='-bexport'
7706 no_entry_flag
='-bnoentry'
7709 # When large executables or shared objects are built, AIX ld can
7710 # have problems creating the table of contents. If linking a library
7711 # or program results in "error TOC overflow" add -mminimal-toc to
7712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7717 hardcode_libdir_separator
=':'
7718 link_all_deplibs
=yes
7720 if test "$GCC" = yes; then
7721 case $host_os in aix4.
[012]|aix4.
[012].
*)
7722 # We only want to do this on AIX 4.2 and lower, the check
7723 # below for broken collect2 doesn't work under 4.3+
7724 collect2name
=`${CC} -print-prog-name=collect2`
7725 if test -f "$collect2name" && \
7726 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7728 # We have reworked collect2
7731 # We have old collect2
7732 hardcode_direct
=unsupported
7733 # It fails to find uninstalled libraries when the uninstalled
7734 # path is not listed in the libpath. Setting hardcode_minus_L
7735 # to unsupported forces relinking
7736 hardcode_minus_L
=yes
7737 hardcode_libdir_flag_spec
='-L$libdir'
7738 hardcode_libdir_separator
=
7742 shared_flag
='-shared'
7743 if test "$aix_use_runtimelinking" = yes; then
7744 shared_flag
="$shared_flag "'${wl}-G'
7748 if test "$host_cpu" = ia64
; then
7749 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7750 # chokes on -Wl,-G. The following line is correct:
7753 if test "$aix_use_runtimelinking" = yes; then
7754 shared_flag
='${wl}-G'
7756 shared_flag
='${wl}-bM:SRE'
7761 # It seems that -bexpall does not export symbols beginning with
7762 # underscore (_), so it is better to generate a list of symbols to export.
7763 always_export_symbols
=yes
7764 if test "$aix_use_runtimelinking" = yes; then
7765 # Warning - without using the other runtime loading flags (-brtl),
7766 # -berok will link without error, but may produce a broken library.
7767 allow_undefined_flag
='-berok'
7768 # Determine the default libpath from the value encoded in an empty executable.
7769 cat >conftest.
$ac_ext <<_ACEOF
7772 cat confdefs.h
>>conftest.
$ac_ext
7773 cat >>conftest.
$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7784 rm -f conftest.
$ac_objext conftest
$ac_exeext
7785 if { (ac_try
="$ac_link"
7787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_link") 2>conftest.er1
7793 grep -v '^ *+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest$ac_exeext &&
7801 $as_test_x conftest$ac_exeext; then
7803 lt_aix_libpath_sed='
7804 /Import File Strings/,/^$/ {
7810 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
7811 # Check for a 64-bit object if we didn't find anything.
7812 if test -z "$aix_libpath"; then
7813 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7823 conftest$ac_exeext conftest.$ac_ext
7824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7827 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7829 if test "$host_cpu" = ia64; then
7830 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7831 allow_undefined_flag="-z nodefs"
7832 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"
7834 # Determine the default libpath from the value encoded in an empty executable.
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7854 *) ac_try_echo
=$ac_try;;
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7859 grep -v '^ *+' conftest.er1
>conftest.err
7861 cat conftest.err
>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest
$ac_exeext &&
7867 $as_test_x conftest
$ac_exeext; then
7869 lt_aix_libpath_sed
='
7870 /Import File Strings/,/^$/ {
7876 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7877 # Check for a 64-bit object if we didn't find anything.
7878 if test -z "$aix_libpath"; then
7879 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.
$ac_ext >&5
7888 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7889 conftest
$ac_exeext conftest.
$ac_ext
7890 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7892 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7893 # Warning - without using the other run time loading flags,
7894 # -berok will link without error, but may produce a broken library.
7895 no_undefined_flag
=' ${wl}-bernotok'
7896 allow_undefined_flag
=' ${wl}-berok'
7897 # Exported symbols can be pulled into shared objects from archives
7898 whole_archive_flag_spec
='$convenience'
7899 archive_cmds_need_lc
=yes
7900 # This is similar to how AIX traditionally builds its shared libraries.
7901 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'
7907 archive_cmds
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7908 hardcode_libdir_flag_spec
='-L$libdir'
7909 hardcode_minus_L
=yes
7910 # see comment about different semantics on the GNU ld section
7915 export_dynamic_flag_spec
=-rdynamic
7918 cygwin
* | mingw
* | pw32
*)
7919 # When not using gcc, we currently assume that we are using
7920 # Microsoft Visual C++.
7921 # hardcode_libdir_flag_spec is actually meaningless, as there is
7922 # no search path for DLLs.
7923 hardcode_libdir_flag_spec
=' '
7924 allow_undefined_flag
=unsupported
7925 # Tell ltmain to make .lib files, not .a files.
7927 # Tell ltmain to make .dll files, not .so files.
7929 # FIXME: Setting linknames here is a bad hack.
7930 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7931 # The linker will automatically build a .lib file if we build a DLL.
7932 old_archive_From_new_cmds
='true'
7933 # FIXME: Should let the user specify the lib program.
7934 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
7935 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7936 enable_shared_with_static_runtimes
=yes
7939 darwin
* | rhapsody
*)
7941 rhapsody
* | darwin1.
[012])
7942 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7945 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7946 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7948 case ${MACOSX_DEPLOYMENT_TARGET} in
7950 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7953 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7959 archive_cmds_need_lc
=no
7961 hardcode_automatic
=yes
7962 hardcode_shlibpath_var
=unsupported
7963 whole_archive_flag_spec
=''
7964 link_all_deplibs
=yes
7965 if test "$GCC" = yes ; then
7966 output_verbose_link_cmd
='echo'
7967 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7968 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7969 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}"
7970 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}"
7972 case $cc_basename in
7974 output_verbose_link_cmd
='echo'
7975 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7976 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7977 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7978 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7979 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7989 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7990 hardcode_libdir_flag_spec
='-L$libdir'
7991 hardcode_shlibpath_var
=no
7998 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7999 # support. Future versions do this automatically, but an explicit c++rt0.o
8000 # does not break anything, and helps significantly (at the cost of a little
8003 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8004 hardcode_libdir_flag_spec
='-R$libdir'
8006 hardcode_shlibpath_var
=no
8009 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8011 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8013 hardcode_minus_L
=yes
8014 hardcode_shlibpath_var
=no
8017 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8018 freebsd
* | dragonfly
*)
8019 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8020 hardcode_libdir_flag_spec
='-R$libdir'
8022 hardcode_shlibpath_var
=no
8026 if test "$GCC" = yes; then
8027 archive_cmds
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8029 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'
8031 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8032 hardcode_libdir_separator
=:
8035 # hardcode_minus_L: Not really in the search PATH,
8036 # but as the default location of the library.
8037 hardcode_minus_L
=yes
8038 export_dynamic_flag_spec
='${wl}-E'
8042 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8043 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8045 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8047 if test "$with_gnu_ld" = no
; then
8048 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8049 hardcode_libdir_separator
=:
8052 export_dynamic_flag_spec
='${wl}-E'
8054 # hardcode_minus_L: Not really in the search PATH,
8055 # but as the default location of the library.
8056 hardcode_minus_L
=yes
8061 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8064 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8067 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8070 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8076 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8079 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8082 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8086 if test "$with_gnu_ld" = no
; then
8087 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8088 hardcode_libdir_separator
=:
8092 hardcode_libdir_flag_spec_ld
='+b $libdir'
8094 hardcode_shlibpath_var
=no
8098 export_dynamic_flag_spec
='${wl}-E'
8100 # hardcode_minus_L: Not really in the search PATH,
8101 # but as the default location of the library.
8102 hardcode_minus_L
=yes
8108 irix5
* | irix6
* | nonstopux
*)
8109 if test "$GCC" = yes; then
8110 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8112 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8113 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8115 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8116 hardcode_libdir_separator
=:
8117 link_all_deplibs
=yes
8121 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8122 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8124 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8126 hardcode_libdir_flag_spec
='-R$libdir'
8128 hardcode_shlibpath_var
=no
8132 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8134 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8135 hardcode_libdir_separator
=:
8136 hardcode_shlibpath_var
=no
8140 if test -f /usr
/libexec
/ld.so
; then
8142 hardcode_shlibpath_var
=no
8143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8144 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8145 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8146 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8147 export_dynamic_flag_spec
='${wl}-E'
8150 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8151 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8152 hardcode_libdir_flag_spec
='-R$libdir'
8155 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8156 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8166 hardcode_libdir_flag_spec
='-L$libdir'
8167 hardcode_minus_L
=yes
8168 allow_undefined_flag
=unsupported
8169 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'
8170 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8174 if test "$GCC" = yes; then
8175 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8176 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8178 allow_undefined_flag
=' -expect_unresolved \*'
8179 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8181 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8182 hardcode_libdir_separator
=:
8185 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8186 if test "$GCC" = yes; then
8187 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8188 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8189 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8191 allow_undefined_flag
=' -expect_unresolved \*'
8192 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8193 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8194 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8196 # Both c and cxx compiler support -rpath directly
8197 hardcode_libdir_flag_spec
='-rpath $libdir'
8199 hardcode_libdir_separator
=:
8203 no_undefined_flag
=' -z text'
8204 if test "$GCC" = yes; then
8206 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8207 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8208 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8211 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8212 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8215 hardcode_libdir_flag_spec
='-R$libdir'
8216 hardcode_shlibpath_var
=no
8218 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8220 # The compiler driver will combine and reorder linker options,
8221 # but understands `-z linker_flag'. GCC discards it without `$wl',
8222 # but is careful enough not to reorder.
8223 # Supported since Solaris 2.6 (maybe 2.5.1?)
8224 if test "$GCC" = yes; then
8225 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8227 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8231 link_all_deplibs
=yes
8235 if test "x$host_vendor" = xsequent
; then
8236 # Use $CC to link under sequent, because it throws in some extra .o
8237 # files that make .init and .fini sections work.
8238 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8240 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8242 hardcode_libdir_flag_spec
='-L$libdir'
8244 hardcode_minus_L
=yes
8245 hardcode_shlibpath_var
=no
8249 case $host_vendor in
8251 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8252 hardcode_direct
=yes # is this really true???
8255 ## LD is ld it makes a PLAMLIB
8256 ## CC just makes a GrossModule.
8257 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8258 reload_cmds
='$CC -r -o $output$reload_objs'
8262 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8263 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8266 runpath_var
='LD_RUN_PATH'
8267 hardcode_shlibpath_var
=no
8271 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8272 hardcode_shlibpath_var
=no
8273 export_dynamic_flag_spec
='-Bexport'
8277 if test -d /usr
/nec
; then
8278 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_shlibpath_var
=no
8280 runpath_var
=LD_RUN_PATH
8281 hardcode_runpath_var
=yes
8286 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8287 no_undefined_flag
='${wl}-z,text'
8288 archive_cmds_need_lc
=no
8289 hardcode_shlibpath_var
=no
8290 runpath_var
='LD_RUN_PATH'
8292 if test "$GCC" = yes; then
8293 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8294 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8296 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8297 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 sysv5
* | sco3.2v5
* | sco5v6
*)
8302 # Note: We can NOT use -z defs as we might desire, because we do not
8303 # link with -lc, and that would cause any symbols used from libc to
8304 # always be unresolved, which means just about no library would
8305 # ever link correctly. If we're not using GNU ld we use -z text
8306 # though, which does catch some bad symbols but isn't as heavy-handed
8308 no_undefined_flag
='${wl}-z,text'
8309 allow_undefined_flag
='${wl}-z,nodefs'
8310 archive_cmds_need_lc
=no
8311 hardcode_shlibpath_var
=no
8312 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8313 hardcode_libdir_separator
=':'
8314 link_all_deplibs
=yes
8315 export_dynamic_flag_spec
='${wl}-Bexport'
8316 runpath_var
='LD_RUN_PATH'
8318 if test "$GCC" = yes; then
8319 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8322 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8323 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8328 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8329 hardcode_libdir_flag_spec
='-L$libdir'
8330 hardcode_shlibpath_var
=no
8339 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8340 echo "${ECHO_T}$ld_shlibs" >&6; }
8341 test "$ld_shlibs" = no
&& can_build_shared
=no
8344 # Do we need to explicitly link libc?
8346 case "x$archive_cmds_need_lc" in
8348 # Assume -lc should be added
8349 archive_cmds_need_lc
=yes
8351 if test "$enable_shared" = yes && test "$GCC" = yes; then
8352 case $archive_cmds in
8354 # FIXME: we may have to deal with multi-command sequences.
8357 # Test whether the compiler implicitly links with -lc since on some
8358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8359 # to ld, don't add -lc before -lgcc.
8360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8363 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } 2>conftest.err
; then
8372 libobjs
=conftest.
$ac_objext
8374 wl
=$lt_prog_compiler_wl
8375 pic_flag
=$lt_prog_compiler_pic
8381 lt_save_allow_undefined_flag
=$allow_undefined_flag
8382 allow_undefined_flag
=
8383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8384 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }
8389 archive_cmds_need_lc
=no
8391 archive_cmds_need_lc
=yes
8393 allow_undefined_flag
=$lt_save_allow_undefined_flag
8395 cat conftest.err
1>&5
8398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8399 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8406 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8409 libname_spec
='lib$name'
8417 shlibpath_overrides_runpath
=unknown
8419 dynamic_linker
="$host_os ld.so"
8420 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8422 if test "$GCC" = yes; then
8424 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8425 *) lt_awk_arg
="/^libraries:/" ;;
8427 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8428 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
8429 # if the path contains ";" then we assume it to be the separator
8430 # otherwise default to the standard path separator (i.e. ":") - it is
8431 # assumed that no part of a normal pathname contains ";" but that should
8432 # okay in the real world where ";" in dirpaths is itself problematic.
8433 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8435 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8437 # Ok, now we have the path, separated by spaces, we can step through it
8438 # and add multilib dir if necessary.
8439 lt_tmp_lt_search_path_spec
=
8440 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8441 for lt_sys_path
in $lt_search_path_spec; do
8442 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8443 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8445 test -d "$lt_sys_path" && \
8446 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8449 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8450 BEGIN {RS=" "; FS="/|\n";} {
8453 for (lt_i = NF; lt_i > 0; lt_i--) {
8454 if ($lt_i != "" && $lt_i != ".") {
8455 if ($lt_i == "..") {
8458 if (lt_count == 0) {
8459 lt_foo="/" $lt_i lt_foo;
8466 if (lt_foo != "") { lt_freq[lt_foo]++; }
8467 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8469 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
8471 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8473 need_lib_prefix
=unknown
8474 hardcode_into_libs
=no
8476 # when you set need_version to no, make sure it does not cause -set_version
8477 # flags to be left without arguments
8478 need_version
=unknown
8483 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8484 shlibpath_var
=LIBPATH
8486 # AIX 3 has no versioning support, so we append a major version to the name.
8487 soname_spec
='${libname}${release}${shared_ext}$major'
8494 hardcode_into_libs
=yes
8495 if test "$host_cpu" = ia64
; then
8496 # AIX 5 supports IA64
8497 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8498 shlibpath_var
=LD_LIBRARY_PATH
8500 # With GCC up to 2.95.x, collect2 would create an import file
8501 # for dependence libraries. The import file would start with
8502 # the line `#! .'. This would cause the generated library to
8503 # depend on `.', always an invalid library. This was fixed in
8504 # development snapshots of GCC prior to 3.0.
8506 aix4 | aix4.
[01] | aix4.
[01].
*)
8507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8509 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8517 # soname into executable. Probably we can add versioning support to
8518 # collect2, so additional links can be useful in future.
8519 if test "$aix_use_runtimelinking" = yes; then
8520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8521 # instead of lib<name>.a to let people know that these are not
8522 # typical AIX shared libraries.
8523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525 # We preserve .a as extension for shared libraries through AIX4.2
8526 # and later when we are not doing run time linking.
8527 library_names_spec
='${libname}${release}.a $libname.a'
8528 soname_spec
='${libname}${release}${shared_ext}$major'
8530 shlibpath_var
=LIBPATH
8535 library_names_spec
='$libname.ixlibrary $libname.a'
8536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8537 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8541 library_names_spec
='${libname}${shared_ext}'
8542 dynamic_linker
="$host_os ld.so"
8543 shlibpath_var
=LIBRARY_PATH
8549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550 soname_spec
='${libname}${release}${shared_ext}$major'
8551 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8552 shlibpath_var
=LD_LIBRARY_PATH
8553 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8554 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8555 # the default ld.so.conf also contains /usr/contrib/lib and
8556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8557 # libtool to hard-code these into programs
8560 cygwin
* | mingw
* | pw32
*)
8561 version_type
=windows
8566 case $GCC,$host_os in
8567 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8568 library_names_spec
='$libname.dll.a'
8569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8570 postinstall_cmds
='base_file=`basename \${file}`~
8571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8572 dldir=$destdir/`dirname \$dlpath`~
8573 test -d \$dldir || mkdir -p \$dldir~
8574 $install_prog $dir/$dlname \$dldir/$dlname~
8575 chmod a+x \$dldir/$dlname'
8576 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8577 dlpath=$dir/\$dldll~
8579 shlibpath_overrides_runpath
=yes
8583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8584 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8585 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8588 # MinGW DLLs use traditional 'lib' prefix
8589 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8590 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8591 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8592 # It is most probably a Windows format PATH printed by
8593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8594 # path with ; separators, and with drive letters. We can handle the
8595 # drive letters (cygwin fileutils understands them), so leave them,
8596 # especially as we might pass files found there to a mingw objdump,
8597 # which wouldn't understand a cygwinified path. Ahh.
8598 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8600 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8604 # pw32 DLLs use 'pw' prefix rather than 'lib'
8605 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8611 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8614 dynamic_linker
='Win32 ld.exe'
8615 # FIXME: first we should search . and the directory the executable is in
8619 darwin
* | rhapsody
*)
8620 dynamic_linker
="$host_os dyld"
8624 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8625 soname_spec
='${libname}${release}${major}$shared_ext'
8626 shlibpath_overrides_runpath
=yes
8627 shlibpath_var
=DYLD_LIBRARY_PATH
8628 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8630 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
8631 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8639 soname_spec
='${libname}${release}${shared_ext}$major'
8640 shlibpath_var
=LD_LIBRARY_PATH
8647 freebsd
* | dragonfly
*)
8648 # DragonFly does not have aout. When/if they implement a new
8649 # versioning mechanism, adjust this.
8650 if test -x /usr
/bin
/objformat
; then
8651 objformat
=`/usr/bin/objformat`
8654 freebsd
[123]*) objformat
=aout
;;
8658 version_type
=freebsd-
$objformat
8659 case $version_type in
8661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8666 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8670 shlibpath_var
=LD_LIBRARY_PATH
8673 shlibpath_overrides_runpath
=yes
8675 freebsd3.
[01]* | freebsdelf3.
[01]*)
8676 shlibpath_overrides_runpath
=yes
8677 hardcode_into_libs
=yes
8679 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8680 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8681 shlibpath_overrides_runpath
=no
8682 hardcode_into_libs
=yes
8684 *) # from 4.6 on, and DragonFly
8685 shlibpath_overrides_runpath
=yes
8686 hardcode_into_libs
=yes
8695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8696 soname_spec
='${libname}${release}${shared_ext}$major'
8697 shlibpath_var
=LD_LIBRARY_PATH
8698 hardcode_into_libs
=yes
8701 hpux9
* | hpux10
* | hpux11
*)
8702 # Give a soname corresponding to the major version so that dld.sl refuses to
8703 # link against other versions.
8710 hardcode_into_libs
=yes
8711 dynamic_linker
="$host_os dld.so"
8712 shlibpath_var
=LD_LIBRARY_PATH
8713 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8715 soname_spec
='${libname}${release}${shared_ext}$major'
8716 if test "X$HPUX_IA64_MODE" = X32
; then
8717 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8719 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8721 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8725 hardcode_into_libs
=yes
8726 dynamic_linker
="$host_os dld.sl"
8727 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8728 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8729 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8730 soname_spec
='${libname}${release}${shared_ext}$major'
8731 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8732 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8736 dynamic_linker
="$host_os dld.sl"
8737 shlibpath_var
=SHLIB_PATH
8738 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740 soname_spec
='${libname}${release}${shared_ext}$major'
8743 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8744 postinstall_cmds
='chmod 555 $lib'
8751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8752 soname_spec
='${libname}${release}${shared_ext}$major'
8753 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8754 shlibpath_var
=LD_LIBRARY_PATH
8755 shlibpath_overrides_runpath
=no
8756 hardcode_into_libs
=yes
8759 irix5
* | irix6
* | nonstopux
*)
8761 nonstopux
*) version_type
=nonstopux
;;
8763 if test "$lt_cv_prog_gnu_ld" = yes; then
8771 soname_spec
='${libname}${release}${shared_ext}$major'
8772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8774 irix5
* | nonstopux
*)
8778 case $LD in # libtool.m4 will add one of these switches to LD
8779 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8780 libsuff
= shlibsuff
= libmagic
=32-bit;;
8781 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8782 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8783 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8784 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8785 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8789 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8790 shlibpath_overrides_runpath
=no
8791 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8792 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8793 hardcode_into_libs
=yes
8796 # No shared lib support for Linux oldld, aout, or coff.
8797 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8801 # This must be Linux ELF.
8802 linux
* | k
*bsd
*-gnu)
8806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 soname_spec
='${libname}${release}${shared_ext}$major'
8808 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8809 shlibpath_var
=LD_LIBRARY_PATH
8810 shlibpath_overrides_runpath
=no
8811 # This implies no fast_install, which is unacceptable.
8812 # Some rework will be needed to allow for fast_install
8813 # before this can be enabled.
8814 hardcode_into_libs
=yes
8816 # Append ld.so.conf contents to the search path
8817 if test -f /etc
/ld.so.conf
; then
8818 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;/^$/d' | tr '\n' ' '`
8819 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
8822 # We used to test for /lib/ld.so.1 and disable shared libraries on
8823 # powerpc, because MkLinux only supported shared libraries with the
8824 # GNU dynamic linker. Since this was broken with cross compilers,
8825 # most powerpc-linux boxes support dynamic linking these days and
8826 # people can always --disable-shared, the test was removed, and we
8827 # assume the GNU/Linux dynamic linker is in use.
8828 dynamic_linker
='GNU/Linux ld.so'
8835 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8837 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8838 dynamic_linker
='NetBSD (a.out) ld.so'
8840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8841 soname_spec
='${libname}${release}${shared_ext}$major'
8842 dynamic_linker
='NetBSD ld.elf_so'
8844 shlibpath_var
=LD_LIBRARY_PATH
8845 shlibpath_overrides_runpath
=yes
8846 hardcode_into_libs
=yes
8851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 shlibpath_var
=LD_LIBRARY_PATH
8853 shlibpath_overrides_runpath
=yes
8860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 soname_spec
='${libname}${release}${shared_ext}$major'
8862 shlibpath_var
=LD_LIBRARY_PATH
8863 shlibpath_overrides_runpath
=yes
8868 sys_lib_dlsearch_path_spec
="/usr/lib"
8870 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8872 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8873 *) need_version
=no
;;
8875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8876 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8877 shlibpath_var
=LD_LIBRARY_PATH
8878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8880 openbsd2.
[89] | openbsd2.
[89].
*)
8881 shlibpath_overrides_runpath
=no
8884 shlibpath_overrides_runpath
=yes
8888 shlibpath_overrides_runpath
=yes
8893 libname_spec
='$name'
8896 library_names_spec
='$libname${shared_ext} $libname.a'
8897 dynamic_linker
='OS/2 ld.exe'
8898 shlibpath_var
=LIBPATH
8901 osf3
* | osf4
* | osf5
*)
8905 soname_spec
='${libname}${release}${shared_ext}$major'
8906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 shlibpath_var
=LD_LIBRARY_PATH
8908 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8909 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec
='${libname}${release}${shared_ext}$major'
8922 shlibpath_var
=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath
=yes
8924 hardcode_into_libs
=yes
8925 # ldd complains unless libraries are executable
8926 postinstall_cmds
='chmod +x $lib'
8931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8932 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8933 shlibpath_var
=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath
=yes
8935 if test "$with_gnu_ld" = yes; then
8943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944 soname_spec
='${libname}${release}${shared_ext}$major'
8945 shlibpath_var
=LD_LIBRARY_PATH
8946 case $host_vendor in
8948 shlibpath_overrides_runpath
=no
8950 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8951 runpath_var
=LD_RUN_PATH
8959 shlibpath_overrides_runpath
=no
8960 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8966 if test -d /usr
/nec
;then
8968 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8969 soname_spec
='$libname${shared_ext}.$major'
8970 shlibpath_var
=LD_LIBRARY_PATH
8974 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
8975 version_type
=freebsd-elf
8978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8979 soname_spec
='${libname}${release}${shared_ext}$major'
8980 shlibpath_var
=LD_LIBRARY_PATH
8981 hardcode_into_libs
=yes
8982 if test "$with_gnu_ld" = yes; then
8983 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8984 shlibpath_overrides_runpath
=no
8986 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
8987 shlibpath_overrides_runpath
=yes
8990 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
8994 sys_lib_dlsearch_path_spec
='/usr/lib'
8999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec
='${libname}${release}${shared_ext}$major'
9001 shlibpath_var
=LD_LIBRARY_PATH
9008 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9009 echo "${ECHO_T}$dynamic_linker" >&6; }
9010 test "$dynamic_linker" = no
&& can_build_shared
=no
9012 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
9018 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
9019 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
9025 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
9027 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9028 if test "$GCC" = yes; then
9029 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9032 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9033 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9035 if test -n "$hardcode_libdir_flag_spec" || \
9036 test -n "$runpath_var" || \
9037 test "X$hardcode_automatic" = "Xyes" ; then
9039 # We can hardcode non-existant directories.
9040 if test "$hardcode_direct" != no
&&
9041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9042 # have to relink, otherwise we might link with an installed library
9043 # when we should be linking with a yet-to-be-installed one
9044 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9045 test "$hardcode_minus_L" != no
; then
9046 # Linking always hardcodes the temporary library directory.
9047 hardcode_action
=relink
9049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9050 hardcode_action
=immediate
9053 # We cannot hardcode anything, or else we can only hardcode existing
9055 hardcode_action
=unsupported
9057 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9058 echo "${ECHO_T}$hardcode_action" >&6; }
9060 if test "$hardcode_action" = relink
; then
9061 # Fast installation is not supported
9062 enable_fast_install
=no
9063 elif test "$shlibpath_overrides_runpath" = yes ||
9064 test "$enable_shared" = no
; then
9065 # Fast installation is not necessary
9066 enable_fast_install
=needless
9071 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9072 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9073 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9074 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9075 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9076 { echo "$as_me:$LINENO: result: yes" >&5
9077 echo "${ECHO_T}yes" >&6; }
9079 # FIXME - insert some real tests, host_os isn't really good enough
9082 if test -n "$STRIP" ; then
9083 striplib
="$STRIP -x"
9084 old_striplib
="$STRIP -S"
9085 { echo "$as_me:$LINENO: result: yes" >&5
9086 echo "${ECHO_T}yes" >&6; }
9088 { echo "$as_me:$LINENO: result: no" >&5
9089 echo "${ECHO_T}no" >&6; }
9093 { echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6; }
9099 if test "x$enable_dlopen" != xyes
; then
9100 enable_dlopen
=unknown
9101 enable_dlopen_self
=unknown
9102 enable_dlopen_self_static
=unknown
9109 lt_cv_dlopen
="load_add_on"
9111 lt_cv_dlopen_self
=yes
9115 lt_cv_dlopen
="LoadLibrary"
9120 lt_cv_dlopen
="dlopen"
9125 # if libdl is installed we need to link against it
9126 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9127 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9128 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 ac_check_lib_save_LIBS
=$LIBS
9133 cat >conftest.
$ac_ext <<_ACEOF
9136 cat confdefs.h
>>conftest.
$ac_ext
9137 cat >>conftest.
$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9155 rm -f conftest.
$ac_objext conftest
$ac_exeext
9156 if { (ac_try
="$ac_link"
9158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_link") 2>conftest.er1
9164 grep -v '^ *+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest$ac_exeext &&
9172 $as_test_x conftest$ac_exeext; then
9173 ac_cv_lib_dl_dlopen=yes
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 ac_cv_lib_dl_dlopen=no
9181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9182 conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_check_lib_save_LIBS
9185 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9186 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9187 if test $ac_cv_lib_dl_dlopen = yes; then
9188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9193 lt_cv_dlopen_self=yes
9200 { echo "$as_me:$LINENO: checking for shl_load" >&5
9201 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9202 if test "${ac_cv_func_shl_load+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 cat >conftest.$ac_ext <<_ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9213 #define shl_load innocuous_shl_load
9215 /* System header to define __stub macros and hopefully few prototypes,
9216 which can conflict with char shl_load (); below.
9217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9218 <limits.h> exists even on freestanding compilers. */
9221 # include <limits.h>
9223 # include <assert.h>
9228 /* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9235 /* The GNU C library defines this for functions which it implements
9236 to always fail with ENOSYS. Some functions are actually named
9237 something starting with __ and the normal name is an alias. */
9238 #if defined __stub_shl_load || defined __stub___shl_load
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (ac_try="$ac_link"
9253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9254 *) ac_try_echo
=$ac_try;;
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_link") 2>conftest.er1
9259 grep -v '^ *+' conftest.er1
>conftest.err
9261 cat conftest.err
>&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && {
9264 test -z "$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9266 } && test -s conftest
$ac_exeext &&
9267 $as_test_x conftest
$ac_exeext; then
9268 ac_cv_func_shl_load
=yes
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.
$ac_ext >&5
9273 ac_cv_func_shl_load
=no
9276 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9277 conftest
$ac_exeext conftest.
$ac_ext
9279 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9280 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9281 if test $ac_cv_func_shl_load = yes; then
9282 lt_cv_dlopen
="shl_load"
9284 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9285 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9286 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 ac_check_lib_save_LIBS
=$LIBS
9291 cat >conftest.
$ac_ext <<_ACEOF
9294 cat confdefs.h
>>conftest.
$ac_ext
9295 cat >>conftest.
$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9313 rm -f conftest.
$ac_objext conftest
$ac_exeext
9314 if { (ac_try
="$ac_link"
9316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_link") 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest$ac_exeext &&
9330 $as_test_x conftest$ac_exeext; then
9331 ac_cv_lib_dld_shl_load=yes
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_cv_lib_dld_shl_load=no
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9343 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9344 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9345 if test $ac_cv_lib_dld_shl_load = yes; then
9346 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9348 { echo "$as_me:$LINENO: checking for dlopen" >&5
9349 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9350 if test "${ac_cv_func_dlopen+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9361 #define dlopen innocuous_dlopen
9363 /* System header to define __stub macros and hopefully few prototypes,
9364 which can conflict with char dlopen (); below.
9365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9366 <limits.h> exists even on freestanding compilers. */
9369 # include <limits.h>
9371 # include <assert.h>
9376 /* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9383 /* The GNU C library defines this for functions which it implements
9384 to always fail with ENOSYS. Some functions are actually named
9385 something starting with __ and the normal name is an alias. */
9386 #if defined __stub_dlopen || defined __stub___dlopen
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (ac_try="$ac_link"
9401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9402 *) ac_try_echo
=$ac_try;;
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_link") 2>conftest.er1
9407 grep -v '^ *+' conftest.er1
>conftest.err
9409 cat conftest.err
>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest
$ac_exeext &&
9415 $as_test_x conftest
$ac_exeext; then
9416 ac_cv_func_dlopen
=yes
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.
$ac_ext >&5
9421 ac_cv_func_dlopen
=no
9424 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9425 conftest
$ac_exeext conftest.
$ac_ext
9427 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9428 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9429 if test $ac_cv_func_dlopen = yes; then
9430 lt_cv_dlopen
="dlopen"
9432 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9433 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9434 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 ac_check_lib_save_LIBS
=$LIBS
9439 cat >conftest.
$ac_ext <<_ACEOF
9442 cat confdefs.h
>>conftest.
$ac_ext
9443 cat >>conftest.
$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9446 /* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9461 rm -f conftest.
$ac_objext conftest
$ac_exeext
9462 if { (ac_try
="$ac_link"
9464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_link") 2>conftest.er1
9470 grep -v '^ *+' conftest.er1 >conftest.err
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest$ac_exeext &&
9478 $as_test_x conftest$ac_exeext; then
9479 ac_cv_lib_dl_dlopen=yes
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ac_cv_lib_dl_dlopen=no
9487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9488 conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9491 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9492 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9493 if test $ac_cv_lib_dl_dlopen = yes; then
9494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9496 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9497 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9498 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 ac_check_lib_save_LIBS=$LIBS
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9510 /* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9529 *) ac_try_echo
=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9534 grep -v '^ *+' conftest.er1
>conftest.err
9536 cat conftest.err
>&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest
$ac_exeext &&
9542 $as_test_x conftest
$ac_exeext; then
9543 ac_cv_lib_svld_dlopen
=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.
$ac_ext >&5
9548 ac_cv_lib_svld_dlopen
=no
9551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9552 conftest
$ac_exeext conftest.
$ac_ext
9553 LIBS
=$ac_check_lib_save_LIBS
9555 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9556 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9557 if test $ac_cv_lib_svld_dlopen = yes; then
9558 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9560 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9561 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9562 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 ac_check_lib_save_LIBS
=$LIBS
9567 cat >conftest.
$ac_ext <<_ACEOF
9570 cat confdefs.h
>>conftest.
$ac_ext
9571 cat >>conftest.
$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9589 rm -f conftest.
$ac_objext conftest
$ac_exeext
9590 if { (ac_try
="$ac_link"
9592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_link") 2>conftest.er1
9598 grep -v '^ *+' conftest.er1 >conftest.err
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest$ac_exeext &&
9606 $as_test_x conftest$ac_exeext; then
9607 ac_cv_lib_dld_dld_link=yes
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_lib_dld_dld_link=no
9615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9619 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9620 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9621 if test $ac_cv_lib_dld_dld_link = yes; then
9622 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9643 if test "x$lt_cv_dlopen" != xno; then
9649 case $lt_cv_dlopen in
9651 save_CPPFLAGS="$CPPFLAGS"
9652 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9654 save_LDFLAGS="$LDFLAGS"
9655 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9658 LIBS="$lt_cv_dlopen_libs $LIBS"
9660 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9661 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9662 if test "${lt_cv_dlopen_self+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 if test "$cross_compiling" = yes; then :
9666 lt_cv_dlopen_self=cross
9668 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9669 lt_status=$lt_dlunknown
9670 cat > conftest.$ac_ext <<EOF
9671 #line 9671 "configure"
9672 #include "confdefs.h"
9681 # define LT_DLGLOBAL RTLD_GLOBAL
9684 # define LT_DLGLOBAL DL_GLOBAL
9686 # define LT_DLGLOBAL 0
9690 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9691 find out it does not work in some platform. */
9692 #ifndef LT_DLLAZY_OR_NOW
9694 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9697 # define LT_DLLAZY_OR_NOW DL_LAZY
9700 # define LT_DLLAZY_OR_NOW RTLD_NOW
9703 # define LT_DLLAZY_OR_NOW DL_NOW
9705 # define LT_DLLAZY_OR_NOW 0
9713 extern "C" void exit (int);
9716 void fnord() { int i=42;}
9719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9720 int status = $lt_dlunknown;
9724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9725 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9726 /* dlclose (self); */
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9739 (./conftest; exit; ) >&5 2>/dev/null
9742 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9743 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9744 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9747 # compilation failed
9748 lt_cv_dlopen_self=no
9755 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9756 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9758 if test "x$lt_cv_dlopen_self" = xyes; then
9759 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9760 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9761 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9762 if test "${lt_cv_dlopen_self_static+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 if test "$cross_compiling" = yes; then :
9766 lt_cv_dlopen_self_static=cross
9768 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9769 lt_status=$lt_dlunknown
9770 cat > conftest.$ac_ext <<EOF
9771 #line 9771 "configure"
9772 #include "confdefs.h"
9781 # define LT_DLGLOBAL RTLD_GLOBAL
9784 # define LT_DLGLOBAL DL_GLOBAL
9786 # define LT_DLGLOBAL 0
9790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9791 find out it does not work in some platform. */
9792 #ifndef LT_DLLAZY_OR_NOW
9794 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9797 # define LT_DLLAZY_OR_NOW DL_LAZY
9800 # define LT_DLLAZY_OR_NOW RTLD_NOW
9803 # define LT_DLLAZY_OR_NOW DL_NOW
9805 # define LT_DLLAZY_OR_NOW 0
9813 extern "C" void exit (int);
9816 void fnord() { int i=42;}
9819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9820 int status = $lt_dlunknown;
9824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9825 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9826 /* dlclose (self); */
9834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9835 (eval $ac_link) 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9839 (./conftest; exit; ) >&5 2>/dev/null
9842 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9843 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9844 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9847 # compilation failed
9848 lt_cv_dlopen_self_static=no
9855 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9856 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9859 CPPFLAGS="$save_CPPFLAGS"
9860 LDFLAGS="$save_LDFLAGS"
9865 case $lt_cv_dlopen_self in
9866 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9867 *) enable_dlopen_self=unknown ;;
9870 case $lt_cv_dlopen_self_static in
9871 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9872 *) enable_dlopen_self_static=unknown ;;
9877 # Report which library types will actually be built
9878 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9879 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9880 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9881 echo "${ECHO_T}$can_build_shared" >&6; }
9883 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9884 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9885 test "$can_build_shared" = "no" && enable_shared=no
9887 # On AIX, shared libraries and static libraries use the same namespace, and
9888 # are all built from PIC.
9891 test "$enable_shared" = yes && enable_static=no
9892 if test -n "$RANLIB"; then
9893 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9894 postinstall_cmds='$RANLIB $lib'
9899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9900 test "$enable_shared" = yes && enable_static=no
9904 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9905 echo "${ECHO_T}$enable_shared" >&6; }
9907 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9908 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9909 # Make sure either enable_shared or enable_static is yes.
9910 test "$enable_shared" = yes || enable_static=yes
9911 { echo "$as_me:$LINENO: result: $enable_static" >&5
9912 echo "${ECHO_T}$enable_static" >&6; }
9914 # The else clause should only fire when bootstrapping the
9915 # libtool distribution, otherwise you forgot to ship ltmain.sh
9916 # with your package, and you will get complaints that there are
9917 # no rules to generate ltmain.sh.
9918 if test -f "$ltmain"; then
9919 # See if we are running on zsh, and set the options which allow our commands through
9920 # without removal of \ escapes.
9921 if test -n "${ZSH_VERSION+set}" ; then
9922 setopt NO_GLOB_SUBST
9924 # Now quote all the things that may contain metacharacters while being
9925 # careful not to overquote the AC_SUBSTed values. We take copies of the
9926 # variables and quote the copies for generation of the libtool script.
9927 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9929 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9930 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9931 deplibs_check_method reload_flag reload_cmds need_locks \
9932 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9933 lt_cv_sys_global_symbol_to_c_name_address \
9934 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9935 old_postinstall_cmds old_postuninstall_cmds \
9939 lt_prog_compiler_wl \
9940 lt_prog_compiler_pic \
9941 lt_prog_compiler_static \
9942 lt_prog_compiler_no_builtin_flag \
9943 export_dynamic_flag_spec \
9944 thread_safe_flag_spec \
9945 whole_archive_flag_spec \
9946 enable_shared_with_static_runtimes \
9948 old_archive_from_new_cmds \
9953 compiler_lib_search_path \
9954 compiler_lib_search_dirs \
9956 archive_expsym_cmds \
9958 postuninstall_cmds \
9959 old_archive_from_expsyms_cmds \
9960 allow_undefined_flag \
9962 export_symbols_cmds \
9963 hardcode_libdir_flag_spec \
9964 hardcode_libdir_flag_spec_ld \
9965 hardcode_libdir_separator \
9966 hardcode_automatic \
9968 module_expsym_cmds \
9969 lt_cv_prog_compiler_c_o \
9975 old_archive_cmds | \
9976 old_archive_from_new_cmds | \
9978 archive_expsym_cmds | \
9980 module_expsym_cmds | \
9981 old_archive_from_expsyms_cmds | \
9982 export_symbols_cmds | \
9983 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9984 postinstall_cmds | postuninstall_cmds | \
9985 old_postinstall_cmds | old_postuninstall_cmds | \
9986 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9987 # Double-quote double-evaled strings.
9988 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
9991 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
9997 *'\$0 --fallback-echo"')
9998 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10002 cfgfile="${ofile}T"
10003 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10005 { echo "$as_me:$LINENO: creating $ofile" >&5
10006 echo "$as_me: creating $ofile" >&6;}
10008 cat <<__EOF__ >> "$cfgfile"
10011 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10012 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10013 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10015 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10016 # Free Software Foundation, Inc.
10018 # This file is part of GNU Libtool:
10019 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10021 # This program is free software; you can redistribute it and/or modify
10022 # it under the terms of the GNU General Public License as published by
10023 # the Free Software Foundation; either version 2 of the License, or
10024 # (at your option) any later version.
10026 # This program is distributed in the hope that it will be useful, but
10027 # WITHOUT ANY WARRANTY; without even the implied warranty of
10028 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10029 # General Public License for more details.
10031 # You should have received a copy of the GNU General Public License
10032 # along with this program; if not, write to the Free Software
10033 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10035 # As a special exception to the GNU General Public License, if you
10036 # distribute this file as part of a program that contains a
10037 # configuration script generated by Autoconf, you may include it under
10038 # the same distribution terms that you use for the rest of that program.
10040 # A sed program that does not truncate output.
10043 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10044 Xsed="$SED -e 1s/^X//"
10046 # The HP-UX ksh and POSIX shell print the target directory to stdout
10047 # if CDPATH is set.
10048 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10050 # The names of the tagged configurations supported by this script.
10053 # ### BEGIN LIBTOOL CONFIG
10055 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10057 # Shell to use when invoking shell scripts.
10060 # Whether or not to build shared libraries.
10061 build_libtool_libs=$enable_shared
10063 # Whether or not to build static libraries.
10064 build_old_libs=$enable_static
10066 # Whether or not to add -lc for building shared libraries.
10067 build_libtool_need_lc=$archive_cmds_need_lc
10069 # Whether or not to disallow shared libs when runtime libs are static
10070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10072 # Whether or not to optimize for fast installation.
10073 fast_install=$enable_fast_install
10076 host_alias=$host_alias
10080 # The build system.
10081 build_alias=$build_alias
10085 # An echo program that does not interpret backslashes.
10090 AR_FLAGS=$lt_AR_FLAGS
10095 # LTCC compiler flags.
10096 LTCFLAGS=$lt_LTCFLAGS
10098 # A language-specific compiler.
10101 # Is the compiler the GNU C compiler?
10107 # The linker used to build libraries.
10110 # Whether we need hard or soft links.
10113 # A BSD-compatible nm program.
10116 # A symbol stripping program
10119 # Used to examine libraries when file_magic_cmd begins "file"
10120 MAGIC_CMD=$MAGIC_CMD
10122 # Used on cygwin: DLL creation program.
10125 # Used on cygwin: object dumper.
10128 # Used on cygwin: assembler.
10131 # The name of the directory that contains temporary libtool files.
10134 # How to create reloadable object files.
10135 reload_flag=$lt_reload_flag
10136 reload_cmds=$lt_reload_cmds
10138 # How to pass a linker flag through the compiler.
10139 wl=$lt_lt_prog_compiler_wl
10141 # Object file suffix (normally "o").
10142 objext="$ac_objext"
10144 # Old archive suffix (normally "a").
10147 # Shared library suffix (normally ".so").
10148 shrext_cmds='$shrext_cmds'
10150 # Executable file suffix (normally "").
10153 # Additional compiler flags for building library objects.
10154 pic_flag=$lt_lt_prog_compiler_pic
10157 # What is the maximum length of a command?
10158 max_cmd_len=$lt_cv_sys_max_cmd_len
10160 # Does compiler simultaneously support -c and -o options?
10161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10163 # Must we lock files when doing compilation?
10164 need_locks=$lt_need_locks
10166 # Do we need the lib prefix for modules?
10167 need_lib_prefix=$need_lib_prefix
10169 # Do we need a version for libraries?
10170 need_version=$need_version
10172 # Whether dlopen is supported.
10173 dlopen_support=$enable_dlopen
10175 # Whether dlopen of programs is supported.
10176 dlopen_self=$enable_dlopen_self
10178 # Whether dlopen of statically linked programs is supported.
10179 dlopen_self_static=$enable_dlopen_self_static
10181 # Compiler flag to prevent dynamic linking.
10182 link_static_flag=$lt_lt_prog_compiler_static
10184 # Compiler flag to turn off builtin functions.
10185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10187 # Compiler flag to allow reflexive dlopens.
10188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10190 # Compiler flag to generate shared objects directly from archives.
10191 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10193 # Compiler flag to generate thread-safe objects.
10194 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10196 # Library versioning type.
10197 version_type=$version_type
10199 # Format of library name prefix.
10200 libname_spec=$lt_libname_spec
10202 # List of archive names. First name is the real one, the rest are links.
10203 # The last name is the one that the linker finds with -lNAME.
10204 library_names_spec=$lt_library_names_spec
10206 # The coded name of the library, if different from the real name.
10207 soname_spec=$lt_soname_spec
10209 # Commands used to build and install an old-style archive.
10211 old_archive_cmds=$lt_old_archive_cmds
10212 old_postinstall_cmds=$lt_old_postinstall_cmds
10213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10215 # Create an old-style archive from a shared archive.
10216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10218 # Create a temporary old-style archive to link instead of a shared archive.
10219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10221 # Commands used to build and install a shared archive.
10222 archive_cmds=$lt_archive_cmds
10223 archive_expsym_cmds=$lt_archive_expsym_cmds
10224 postinstall_cmds=$lt_postinstall_cmds
10225 postuninstall_cmds=$lt_postuninstall_cmds
10227 # Commands used to build a loadable module (assumed same as above if empty)
10228 module_cmds=$lt_module_cmds
10229 module_expsym_cmds=$lt_module_expsym_cmds
10231 # Commands to strip libraries.
10232 old_striplib=$lt_old_striplib
10233 striplib=$lt_striplib
10235 # Dependencies to place before the objects being linked to create a
10237 predep_objects=$lt_predep_objects
10239 # Dependencies to place after the objects being linked to create a
10241 postdep_objects=$lt_postdep_objects
10243 # Dependencies to place before the objects being linked to create a
10245 predeps=$lt_predeps
10247 # Dependencies to place after the objects being linked to create a
10249 postdeps=$lt_postdeps
10251 # The directories searched by this compiler when creating a shared
10253 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10255 # The library search path used internally by the compiler when linking
10256 # a shared library.
10257 compiler_lib_search_path=$lt_compiler_lib_search_path
10259 # Method to check whether dependent libraries are shared objects.
10260 deplibs_check_method=$lt_deplibs_check_method
10262 # Command to use when deplibs_check_method == file_magic.
10263 file_magic_cmd=$lt_file_magic_cmd
10265 # Flag that allows shared libraries with undefined symbols to be built.
10266 allow_undefined_flag=$lt_allow_undefined_flag
10268 # Flag that forces no undefined symbols.
10269 no_undefined_flag=$lt_no_undefined_flag
10271 # Commands used to finish a libtool library installation in a directory.
10272 finish_cmds=$lt_finish_cmds
10274 # Same as above, but a single script fragment to be evaled but not shown.
10275 finish_eval=$lt_finish_eval
10277 # Take the output of nm and produce a listing of raw symbols and C names.
10278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10280 # Transform the output of nm in a proper C declaration
10281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10283 # Transform the output of nm in a C name address pair
10284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10286 # This is the shared library runtime path variable.
10287 runpath_var=$runpath_var
10289 # This is the shared library path variable.
10290 shlibpath_var=$shlibpath_var
10292 # Is shlibpath searched before the hard-coded library search path?
10293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10295 # How to hardcode a shared library path into an executable.
10296 hardcode_action=$hardcode_action
10298 # Whether we should hardcode library paths into libraries.
10299 hardcode_into_libs=$hardcode_into_libs
10301 # Flag to hardcode \$libdir into a binary during linking.
10302 # This must work even if \$libdir does not exist.
10303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10305 # If ld is used when linking, flag to hardcode \$libdir into
10306 # a binary during linking. This must work even if \$libdir does
10308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10310 # Whether we need a single -rpath flag with a separated argument.
10311 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10314 # resulting binary.
10315 hardcode_direct=$hardcode_direct
10317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10318 # resulting binary.
10319 hardcode_minus_L=$hardcode_minus_L
10321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10322 # the resulting binary.
10323 hardcode_shlibpath_var=$hardcode_shlibpath_var
10325 # Set to yes if building a shared library automatically hardcodes DIR into the library
10326 # and all subsequent libraries and executables linked against it.
10327 hardcode_automatic=$hardcode_automatic
10329 # Variables whose values should be saved in libtool wrapper scripts and
10330 # restored at relink time.
10331 variables_saved_for_relink="$variables_saved_for_relink"
10333 # Whether libtool must link a program against all its dependency libraries.
10334 link_all_deplibs=$link_all_deplibs
10336 # Compile-time system search path for libraries
10337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10339 # Run-time system search path for libraries
10340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10342 # Fix the shell variable \$srcfile for the compiler.
10343 fix_srcfile_path=$lt_fix_srcfile_path
10345 # Set to yes if exported symbols are required.
10346 always_export_symbols=$always_export_symbols
10348 # The commands to list exported symbols.
10349 export_symbols_cmds=$lt_export_symbols_cmds
10351 # The commands to extract the exported symbol list from a shared archive.
10352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10354 # Symbols that should not be listed in the preloaded symbols.
10355 exclude_expsyms=$lt_exclude_expsyms
10357 # Symbols that must always be exported.
10358 include_expsyms=$lt_include_expsyms
10360 # ### END LIBTOOL CONFIG
10367 cat <<\EOF >> "$cfgfile"
10369 # AIX sometimes has problems with the GCC collect2 program. For some
10370 # reason, if we set the COLLECT_NAMES environment variable, the problems
10371 # vanish in a puff of smoke.
10372 if test "X${COLLECT_NAMES+set}" != Xset; then
10374 export COLLECT_NAMES
10380 # We use sed instead of cat because bash on DJGPP gets confused if
10381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10382 # text mode, it properly converts lines to CR/LF. This bash problem
10383 # is reportedly fixed, but why not run on old versions too?
10384 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10386 mv -f "$cfgfile" "$ofile" || \
10387 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10391 # If there is no Makefile yet, we rely on a make rule to execute
10392 # `config.status
--recheck' to rerun these tests and create the
10393 # libtool script then.
10394 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10395 if test -f "$ltmain_in"; then
10396 test -f Makefile && make "$ltmain"
10402 ac_cpp='$CPP $CPPFLAGS'
10403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10404 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10410 # Check whether --with-tags was given.
10411 if test "${with_tags+set}" = set; then
10412 withval=$with_tags; tagnames="$withval"
10416 if test -f "$ltmain" && test -n "$tagnames"; then
10417 if test ! -f "${ofile}"; then
10418 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10419 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10422 if test -z "$LTCC"; then
10423 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10424 if test -z "$LTCC"; then
10425 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10426 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10428 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10429 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10432 if test -z "$LTCFLAGS"; then
10433 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10436 # Extract list of available tagged configurations in $ofile.
10437 # Note that this assumes the entire list is on one line.
10438 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10441 for tagname in $tagnames; do
10443 # Check whether tagname contains only valid characters
10444 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10446 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10447 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10448 { (exit 1); exit 1; }; }
10452 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10454 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10455 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10456 { (exit 1); exit 1; }; }
10459 # Update the list of available tags.
10460 if test -n "$tagname"; then
10461 echo appending configuration tag \"$tagname\" to $ofile
10465 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10466 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10467 (test "X$CXX" != "Xg++"))) ; then
10469 ac_cpp='$CXXCPP $CPPFLAGS'
10470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10477 archive_cmds_need_lc_CXX=no
10478 allow_undefined_flag_CXX=
10479 always_export_symbols_CXX=no
10480 archive_expsym_cmds_CXX=
10481 export_dynamic_flag_spec_CXX=
10482 hardcode_direct_CXX=no
10483 hardcode_libdir_flag_spec_CXX=
10484 hardcode_libdir_flag_spec_ld_CXX=
10485 hardcode_libdir_separator_CXX=
10486 hardcode_minus_L_CXX=no
10487 hardcode_shlibpath_var_CXX=unsupported
10488 hardcode_automatic_CXX=no
10490 module_expsym_cmds_CXX=
10491 link_all_deplibs_CXX=unknown
10492 old_archive_cmds_CXX=$old_archive_cmds
10493 no_undefined_flag_CXX=
10494 whole_archive_flag_spec_CXX=
10495 enable_shared_with_static_runtimes_CXX=no
10497 # Dependencies to place before and after the object being linked:
10498 predep_objects_CXX=
10499 postdep_objects_CXX=
10502 compiler_lib_search_path_CXX=
10503 compiler_lib_search_dirs_CXX=
10505 # Source file extension for C++ test sources.
10508 # Object file extension for compiled C++ test sources.
10512 # Code to be used in simple compile tests
10513 lt_simple_compile_test_code="int some_variable = 0;"
10515 # Code to be used in simple link tests
10516 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10518 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10520 # If no C compiler was specified, use CC.
10523 # If no C compiler flags were specified, use CFLAGS.
10524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10526 # Allow CC to be a program name with arguments.
10530 # save warnings/boilerplate of simple test code
10531 ac_outfile=conftest.$ac_objext
10532 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10534 _lt_compiler_boilerplate=`cat conftest.err
`
10537 ac_outfile=conftest.$ac_objext
10538 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10540 _lt_linker_boilerplate=`cat conftest.err
`
10544 # Allow CC to be a program name with arguments.
10549 lt_save_with_gnu_ld=$with_gnu_ld
10550 lt_save_path_LD=$lt_cv_path_LD
10551 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10552 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10554 $as_unset lt_cv_prog_gnu_ld
10556 if test -n "${lt_cv_path_LDCXX+set}"; then
10557 lt_cv_path_LD=$lt_cv_path_LDCXX
10559 $as_unset lt_cv_path_LD
10561 test -z "${LDCXX+set}" || LD=$LDCXX
10565 for cc_temp in $compiler""; do
10567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10573 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10576 # We don't want -fno-exception wen compiling C++ code, so set the
10577 # no_builtin_flag separately
10578 if test "$GXX" = yes; then
10579 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10581 lt_prog_compiler_no_builtin_flag_CXX=
10584 if test "$GXX" = yes; then
10585 # Set up default GNU C++ configuration
10588 # Check whether --with-gnu-ld was given.
10589 if test "${with_gnu_ld+set}" = set; then
10590 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10596 if test "$GCC" = yes; then
10597 # Check if gcc -print-prog-name=ld gives a path.
10598 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10599 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10602 # gcc leaves a trailing carriage return which upsets mingw
10603 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10605 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10608 # Accept absolute paths.
10610 re_direlt='/[^/][^/]*/\.\./'
10611 # Canonicalize the pathname of ld
10612 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10613 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10614 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10616 test -z "$LD" && LD="$ac_prog"
10619 # If it fails, then pretend we aren't using GCC.
10623 # If it is relative, then search for the first ld in PATH.
10624 with_gnu_ld=unknown
10627 elif test "$with_gnu_ld" = yes; then
10628 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10629 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10631 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10632 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10634 if test "${lt_cv_path_LD+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 if test -z "$LD"; then
10638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10639 for ac_dir in $PATH; do
10641 test -z "$ac_dir" && ac_dir=.
10642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10643 lt_cv_path_LD="$ac_dir/$ac_prog"
10644 # Check to see if the program is GNU ld. I'd rather use --version,
10645 # but apparently some variants of GNU ld only accept -v.
10646 # Break only if it was the GNU/non-GNU ld that we prefer.
10647 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10648 *GNU* | *'with BFD'*)
10649 test "$with_gnu_ld" != no && break
10652 test "$with_gnu_ld" != yes && break
10659 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10663 LD="$lt_cv_path_LD"
10664 if test -n "$LD"; then
10665 { echo "$as_me:$LINENO: result: $LD" >&5
10666 echo "${ECHO_T}$LD" >&6; }
10668 { echo "$as_me:$LINENO: result: no" >&5
10669 echo "${ECHO_T}no" >&6; }
10671 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10672 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10673 { (exit 1); exit 1; }; }
10674 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10675 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10676 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10680 case `$LD -v 2>&1 </dev
/null
` in
10681 *GNU* | *'with BFD'*)
10682 lt_cv_prog_gnu_ld=yes
10685 lt_cv_prog_gnu_ld=no
10689 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10690 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10691 with_gnu_ld=$lt_cv_prog_gnu_ld
10695 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10696 # archiving commands below assume that GNU ld is being used.
10697 if test "$with_gnu_ld" = yes; then
10698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10704 # If archive_cmds runs LD, not CC, wlarc should be empty
10705 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10706 # investigate it a little bit more. (MM)
10709 # ancient GNU ld didn't support --whole-archive et. al.
10710 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10711 grep 'no-whole-archive' > /dev/null; then
10712 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10714 whole_archive_flag_spec_CXX=
10720 # A generic and very simple default shared library creation
10721 # command for GNU C++ for the case where it uses the native
10722 # linker, instead of GNU ld. If possible, this setting should
10723 # overridden to take advantage of the native linker features on
10724 # the platform it is being used on.
10725 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10728 # Commands to make compiler produce verbose output that lists
10729 # what "hidden" libraries, object files and flags are used when
10730 # linking a shared library.
10731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10739 # PORTME: fill in a description of your system's C++ link characteristics
10740 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10741 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10745 # FIXME: insert proper C++ library support
10749 if test "$host_cpu" = ia64; then
10750 # On IA64, the linker does run time linking by default, so we don't
10751 # have to do anything special.
10752 aix_use_runtimelinking=no
10753 exp_sym_flag='-Bexport'
10756 aix_use_runtimelinking=no
10758 # Test if we are trying to use run time linking or normal
10759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10760 # need to do runtime linking.
10761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10762 for ld_flag in $LDFLAGS; do
10765 aix_use_runtimelinking=yes
10773 exp_sym_flag='-bexport'
10774 no_entry_flag='-bnoentry'
10777 # When large executables or shared objects are built, AIX ld can
10778 # have problems creating the table of contents. If linking a library
10779 # or program results in "error TOC overflow" add -mminimal-toc to
10780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10783 archive_cmds_CXX=''
10784 hardcode_direct_CXX=yes
10785 hardcode_libdir_separator_CXX=':'
10786 link_all_deplibs_CXX=yes
10788 if test "$GXX" = yes; then
10789 case $host_os in aix4.[012]|aix4.[012].*)
10790 # We only want to do this on AIX 4.2 and lower, the check
10791 # below for broken collect2 doesn't work under 4.3+
10792 collect2name=`${CC} -print-prog-name=collect2
`
10793 if test -f "$collect2name" && \
10794 strings "$collect2name" | grep resolve_lib_name >/dev/null
10796 # We have reworked collect2
10799 # We have old collect2
10800 hardcode_direct_CXX=unsupported
10801 # It fails to find uninstalled libraries when the uninstalled
10802 # path is not listed in the libpath. Setting hardcode_minus_L
10803 # to unsupported forces relinking
10804 hardcode_minus_L_CXX=yes
10805 hardcode_libdir_flag_spec_CXX='-L$libdir'
10806 hardcode_libdir_separator_CXX=
10810 shared_flag='-shared'
10811 if test "$aix_use_runtimelinking" = yes; then
10812 shared_flag="$shared_flag "'${wl}-G'
10816 if test "$host_cpu" = ia64; then
10817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10818 # chokes on -Wl,-G. The following line is correct:
10821 if test "$aix_use_runtimelinking" = yes; then
10822 shared_flag='${wl}-G'
10824 shared_flag='${wl}-bM:SRE'
10829 # It seems that -bexpall does not export symbols beginning with
10830 # underscore (_), so it is better to generate a list of symbols to export.
10831 always_export_symbols_CXX=yes
10832 if test "$aix_use_runtimelinking" = yes; then
10833 # Warning - without using the other runtime loading flags (-brtl),
10834 # -berok will link without error, but may produce a broken library.
10835 allow_undefined_flag_CXX='-berok'
10836 # Determine the default libpath from the value encoded in an empty executable.
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10856 *) ac_try_echo
=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_link") 2>conftest.er1
10861 grep -v '^ *+' conftest.er1
>conftest.err
10863 cat conftest.err
>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_cxx_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest
$ac_exeext &&
10869 $as_test_x conftest
$ac_exeext; then
10871 lt_aix_libpath_sed
='
10872 /Import File Strings/,/^$/ {
10878 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10879 # Check for a 64-bit object if we didn't find anything.
10880 if test -z "$aix_libpath"; then
10881 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.
$ac_ext >&5
10890 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10891 conftest
$ac_exeext conftest.
$ac_ext
10892 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10894 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10896 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10898 if test "$host_cpu" = ia64
; then
10899 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
10900 allow_undefined_flag_CXX
="-z nodefs"
10901 archive_expsym_cmds_CXX
="\$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"
10903 # Determine the default libpath from the value encoded in an empty executable.
10904 cat >conftest.
$ac_ext <<_ACEOF
10907 cat confdefs.h
>>conftest.
$ac_ext
10908 cat >>conftest.
$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10919 rm -f conftest.
$ac_objext conftest
$ac_exeext
10920 if { (ac_try
="$ac_link"
10921 case "(($ac_try" in
10922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_link") 2>conftest.er1
10928 grep -v '^ *+' conftest.er1 >conftest.err
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && {
10933 test -z "$ac_cxx_werror_flag" ||
10934 test ! -s conftest.err
10935 } && test -s conftest$ac_exeext &&
10936 $as_test_x conftest$ac_exeext; then
10938 lt_aix_libpath_sed='
10939 /Import File Strings/,/^$/ {
10945 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
10946 # Check for a 64-bit object if we didn't find anything.
10947 if test -z "$aix_libpath"; then
10948 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10958 conftest$ac_exeext conftest.$ac_ext
10959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10962 # Warning - without using the other run time loading flags,
10963 # -berok will link without error, but may produce a broken library.
10964 no_undefined_flag_CXX=' ${wl}-bernotok'
10965 allow_undefined_flag_CXX=' ${wl}-berok'
10966 # Exported symbols can be pulled into shared objects from archives
10967 whole_archive_flag_spec_CXX='$convenience'
10968 archive_cmds_need_lc_CXX=yes
10969 # This is similar to how AIX traditionally builds its shared libraries.
10970 archive_expsym_cmds_CXX="\$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'
10976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10977 allow_undefined_flag_CXX=unsupported
10978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10979 # support --undefined. This deserves some investigation. FIXME
10980 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10987 case $cc_basename in
10989 # FIXME: insert proper C++ library support
10995 cygwin* | mingw* | pw32*)
10996 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10997 # as there is no search path for DLLs.
10998 hardcode_libdir_flag_spec_CXX='-L$libdir'
10999 allow_undefined_flag_CXX=unsupported
11000 always_export_symbols_CXX=no
11001 enable_shared_with_static_runtimes_CXX=yes
11003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11005 # If the export-symbols file already is a .def file (1st line
11006 # is EXPORTS), use it as is; otherwise, prepend...
11007 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11008 cp $export_symbols $output_objdir/$soname.def;
11010 echo EXPORTS > $output_objdir/$soname.def;
11011 cat $export_symbols >> $output_objdir/$soname.def;
11013 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11018 darwin* | rhapsody*)
11019 archive_cmds_need_lc_CXX=no
11020 hardcode_direct_CXX=no
11021 hardcode_automatic_CXX=yes
11022 hardcode_shlibpath_var_CXX=unsupported
11023 whole_archive_flag_spec_CXX=''
11024 link_all_deplibs_CXX=yes
11025 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11026 if test "$GXX" = yes ; then
11027 output_verbose_link_cmd='echo'
11028 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11029 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11030 archive_expsym_cmds_CXX="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}"
11031 module_expsym_cmds_CXX="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}"
11032 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11033 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11034 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11037 case $cc_basename in
11039 output_verbose_link_cmd='echo'
11040 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11041 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11043 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11044 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11054 case $cc_basename in
11056 # FIXME: insert proper C++ library support
11060 # Green Hills C++ Compiler
11061 # FIXME: insert proper C++ library support
11065 # FIXME: insert proper C++ library support
11071 # C++ shared libraries reported to be fairly broken before switch to ELF
11075 archive_cmds_need_lc_CXX=no
11077 freebsd* | dragonfly*)
11078 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11085 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11086 hardcode_libdir_separator_CXX=:
11087 export_dynamic_flag_spec_CXX='${wl}-E'
11088 hardcode_direct_CXX=yes
11089 hardcode_minus_L_CXX=yes # Not in the search PATH,
11090 # but as the default
11091 # location of the library.
11093 case $cc_basename in
11095 # FIXME: insert proper C++ library support
11099 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11100 # Commands to make compiler produce verbose output that lists
11101 # what "hidden" libraries, object files and flags are used when
11102 # linking a shared library.
11104 # There doesn't appear to be a way to prevent this compiler from
11105 # explicitly linking system object files so we need to strip them
11106 # from the output so that they don't get included in the library
11108 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.
$objext 2>&1) |
grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11111 if test "$GXX" = yes; then
11112 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11114 # FIXME: insert proper C++ library support
11121 if test $with_gnu_ld = no; then
11122 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11123 hardcode_libdir_separator_CXX=:
11128 export_dynamic_flag_spec_CXX='${wl}-E'
11134 hardcode_direct_CXX=no
11135 hardcode_shlibpath_var_CXX=no
11138 hardcode_direct_CXX=yes
11139 hardcode_minus_L_CXX=yes # Not in the search PATH,
11140 # but as the default
11141 # location of the library.
11145 case $cc_basename in
11147 # FIXME: insert proper C++ library support
11153 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11156 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11159 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11162 # Commands to make compiler produce verbose output that lists
11163 # what "hidden" libraries, object files and flags are used when
11164 # linking a shared library.
11166 # There doesn't appear to be a way to prevent this compiler from
11167 # explicitly linking system object files so we need to strip them
11168 # from the output so that they don't get included in the library
11170 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.
$objext 2>&1) |
grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11173 if test "$GXX" = yes; then
11174 if test $with_gnu_ld = no; then
11177 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11180 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11183 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11188 # FIXME: insert proper C++ library support
11195 hardcode_direct_CXX=no
11196 hardcode_shlibpath_var_CXX=no
11197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11198 export_dynamic_flag_spec_CXX='${wl}-E'
11199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11200 # Instead, shared libraries are loaded at an image base (0x10000000 by
11201 # default) and relocated if they conflict, which is a slow very memory
11202 # consuming and fragmenting process. To avoid this, we pick a random,
11203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11205 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11206 archive_expsym_cmds_CXX='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'
11209 case $cc_basename in
11212 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11214 # Archives containing C++ object files must be created using
11215 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11216 # necessary to make sure instantiated templates are included
11218 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11221 if test "$GXX" = yes; then
11222 if test "$with_gnu_ld" = no; then
11223 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11225 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11228 link_all_deplibs_CXX=yes
11231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11232 hardcode_libdir_separator_CXX=:
11234 linux* | k*bsd*-gnu)
11235 case $cc_basename in
11237 # Kuck and Associates, Inc. (KAI) C++ Compiler
11239 # KCC will only create a shared library if the output file
11240 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11241 # to its proper name (with version) after linking.
11242 archive_cmds_CXX='tempext
=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib
=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \
$templib; mv \
$templib $lib'
11243 archive_expsym_cmds_CXX='tempext
=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib
=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \
$templib ${wl}-retain-symbols-file,$export_symbols; mv \
$templib $lib'
11244 # Commands to make compiler produce verbose output that lists
11245 # what "hidden" libraries, object files and flags are used when
11246 # linking a shared library.
11248 # There doesn't appear to be a way to prevent this compiler from
11249 # explicitly linking system object files so we need to strip them
11250 # from the output so that they don't get included in the library
11252 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11254 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11255 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11257 # Archives containing C++ object files must be created using
11258 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11259 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11264 # version 8.0 and above of icpc choke on multiply defined symbols
11265 # if we add $predep_objects and $postdep_objects, however 7.1 and
11266 # earlier do not add the objects themselves.
11267 case `$CC -V 2>&1` in
11269 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11270 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11272 *) # Version 8.0 or newer
11275 ia64
*) tmp_idyn
=' -i_dynamic';;
11277 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11278 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11281 archive_cmds_need_lc_CXX
=no
11282 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11283 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11284 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11287 # Portland Group C++ compiler
11288 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11289 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11291 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11292 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11293 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11297 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11298 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11300 runpath_var
=LD_RUN_PATH
11301 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11302 hardcode_libdir_separator_CXX
=:
11304 # Commands to make compiler produce verbose output that lists
11305 # what "hidden" libraries, object files and flags are used when
11306 # linking a shared library.
11308 # There doesn't appear to be a way to prevent this compiler from
11309 # explicitly linking system object files so we need to strip them
11310 # from the output so that they don't get included in the library
11312 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11315 case `$CC -V 2>&1 | sed 5q` in
11318 no_undefined_flag_CXX
=' -zdefs'
11319 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11320 archive_expsym_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11321 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11322 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11324 # Not sure whether something based on
11325 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11327 output_verbose_link_cmd
='echo'
11329 # Archives containing C++ object files must be created using
11330 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11331 # necessary to make sure instantiated templates are included
11333 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11340 # FIXME: insert proper C++ library support
11344 # FIXME: insert proper C++ library support
11348 case $cc_basename in
11350 # FIXME: insert proper C++ library support
11354 # FIXME: insert proper C++ library support
11360 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11361 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11363 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11364 hardcode_direct_CXX
=yes
11365 hardcode_shlibpath_var_CXX
=no
11367 # Workaround some broken pre-1.5 toolchains
11368 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11371 # C++ shared libraries are fairly broken
11375 if test -f /usr
/libexec
/ld.so
; then
11376 hardcode_direct_CXX
=yes
11377 hardcode_shlibpath_var_CXX
=no
11378 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11379 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11381 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11382 export_dynamic_flag_spec_CXX
='${wl}-E'
11383 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11385 output_verbose_link_cmd
='echo'
11391 case $cc_basename in
11393 # Kuck and Associates, Inc. (KAI) C++ Compiler
11395 # KCC will only create a shared library if the output file
11396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11397 # to its proper name (with version) after linking.
11398 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11400 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11401 hardcode_libdir_separator_CXX
=:
11403 # Archives containing C++ object files must be created using
11404 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11405 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11409 # Rational C++ 2.4.1
11410 # FIXME: insert proper C++ library support
11414 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11415 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11417 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11418 hardcode_libdir_separator_CXX
=:
11420 # Commands to make compiler produce verbose output that lists
11421 # what "hidden" libraries, object files and flags are used when
11422 # linking a shared library.
11424 # There doesn't appear to be a way to prevent this compiler from
11425 # explicitly linking system object files so we need to strip them
11426 # from the output so that they don't get included in the library
11428 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11431 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11432 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11433 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11435 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11436 hardcode_libdir_separator_CXX
=:
11438 # Commands to make compiler produce verbose output that lists
11439 # what "hidden" libraries, object files and flags are used when
11440 # linking a shared library.
11441 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11444 # FIXME: insert proper C++ library support
11451 case $cc_basename in
11453 # Kuck and Associates, Inc. (KAI) C++ Compiler
11455 # KCC will only create a shared library if the output file
11456 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11457 # to its proper name (with version) after linking.
11458 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11460 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11461 hardcode_libdir_separator_CXX
=:
11463 # Archives containing C++ object files must be created using
11464 # the KAI C++ compiler.
11465 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11468 # Rational C++ 2.4.1
11469 # FIXME: insert proper C++ library support
11473 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11474 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11475 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11476 echo "-hidden">> $lib.exp~
11477 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11480 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11481 hardcode_libdir_separator_CXX
=:
11483 # Commands to make compiler produce verbose output that lists
11484 # what "hidden" libraries, object files and flags are used when
11485 # linking a shared library.
11487 # There doesn't appear to be a way to prevent this compiler from
11488 # explicitly linking system object files so we need to strip them
11489 # from the output so that they don't get included in the library
11491 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11494 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11495 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11496 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11498 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11499 hardcode_libdir_separator_CXX
=:
11501 # Commands to make compiler produce verbose output that lists
11502 # what "hidden" libraries, object files and flags are used when
11503 # linking a shared library.
11504 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11507 # FIXME: insert proper C++ library support
11514 # FIXME: insert proper C++ library support
11518 case $cc_basename in
11521 # FIXME: insert proper C++ library support
11526 # FIXME: insert proper C++ library support
11530 # FIXME: insert proper C++ library support
11536 case $cc_basename in
11538 # Sun C++ 4.2, 5.x and Centerline C++
11539 archive_cmds_need_lc_CXX
=yes
11540 no_undefined_flag_CXX
=' -zdefs'
11541 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11542 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11543 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11545 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11546 hardcode_shlibpath_var_CXX
=no
11548 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11550 # The compiler driver will combine and reorder linker options,
11551 # but understands `-z linker_flag'.
11552 # Supported since Solaris 2.6 (maybe 2.5.1?)
11553 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
11556 link_all_deplibs_CXX
=yes
11558 output_verbose_link_cmd
='echo'
11560 # Archives containing C++ object files must be created using
11561 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11562 # necessary to make sure instantiated templates are included
11564 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11567 # Green Hills C++ Compiler
11568 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11570 # The C++ compiler must be used to create the archive.
11571 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11574 # GNU C++ compiler with Solaris linker
11575 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11576 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11577 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11578 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11579 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11580 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11582 # Commands to make compiler produce verbose output that lists
11583 # what "hidden" libraries, object files and flags are used when
11584 # linking a shared library.
11585 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11587 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11589 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11590 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11591 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11593 # Commands to make compiler produce verbose output that lists
11594 # what "hidden" libraries, object files and flags are used when
11595 # linking a shared library.
11596 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11599 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11601 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11603 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11610 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11611 no_undefined_flag_CXX
='${wl}-z,text'
11612 archive_cmds_need_lc_CXX
=no
11613 hardcode_shlibpath_var_CXX
=no
11614 runpath_var
='LD_RUN_PATH'
11616 case $cc_basename in
11618 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11619 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11622 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11623 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11627 sysv5
* | sco3.2v5
* | sco5v6
*)
11628 # Note: We can NOT use -z defs as we might desire, because we do not
11629 # link with -lc, and that would cause any symbols used from libc to
11630 # always be unresolved, which means just about no library would
11631 # ever link correctly. If we're not using GNU ld we use -z text
11632 # though, which does catch some bad symbols but isn't as heavy-handed
11634 # For security reasons, it is highly recommended that you always
11635 # use absolute paths for naming shared libraries, and exclude the
11636 # DT_RUNPATH tag from executables and libraries. But doing so
11637 # requires that you compile everything twice, which is a pain.
11638 # So that behaviour is only enabled if SCOABSPATH is set to a
11639 # non-empty value in the environment. Most likely only useful for
11640 # creating official distributions of packages.
11641 # This is a hack until libtool officially supports absolute path
11642 # names for shared libraries.
11643 no_undefined_flag_CXX
='${wl}-z,text'
11644 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11645 archive_cmds_need_lc_CXX
=no
11646 hardcode_shlibpath_var_CXX
=no
11647 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11648 hardcode_libdir_separator_CXX
=':'
11649 link_all_deplibs_CXX
=yes
11650 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11651 runpath_var
='LD_RUN_PATH'
11653 case $cc_basename in
11655 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11656 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11659 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11660 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11665 case $cc_basename in
11667 # NonStop-UX NCC 3.20
11668 # FIXME: insert proper C++ library support
11672 # FIXME: insert proper C++ library support
11678 # FIXME: insert proper C++ library support
11682 # FIXME: insert proper C++ library support
11686 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11687 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11688 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11694 ## There is no encapsulation within the following macros, do not change
11695 ## the running order or otherwise move them around unless you know exactly
11696 ## what you are doing...
11697 cat > conftest.
$ac_ext <<EOF
11701 Foo (void) { a = 0; }
11707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11708 (eval $ac_compile) 2>&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; then
11712 # Parse the compiler output and extract the necessary
11713 # objects, libraries and library flags.
11715 # Sentinel used to keep track of whether or not we are before
11716 # the conftest object file.
11717 pre_test_object_deps_done
=no
11719 # The `*' in the case matches for architectures that use `case' in
11720 # $output_verbose_cmd can trigger glob expansion during the loop
11721 # eval without this substitution.
11722 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11724 for p
in `eval $output_verbose_link_cmd`; do
11728 # Some compilers place space between "-{L,R}" and the path.
11729 # Remove the space.
11730 if test $p = "-L" \
11731 ||
test $p = "-R"; then
11738 if test "$pre_test_object_deps_done" = no
; then
11741 # Internal compiler library paths should come after those
11742 # provided the user. The postdeps already come after the
11743 # user supplied libs so there is no need to process them.
11744 if test -z "$compiler_lib_search_path_CXX"; then
11745 compiler_lib_search_path_CXX
="${prev}${p}"
11747 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11750 # The "-l" case would never come before the object being
11751 # linked, so don't bother handling this case.
11754 if test -z "$postdeps_CXX"; then
11755 postdeps_CXX
="${prev}${p}"
11757 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11763 # This assumes that the test object file only shows up
11764 # once in the compiler output.
11765 if test "$p" = "conftest.$objext"; then
11766 pre_test_object_deps_done
=yes
11770 if test "$pre_test_object_deps_done" = no
; then
11771 if test -z "$predep_objects_CXX"; then
11772 predep_objects_CXX
="$p"
11774 predep_objects_CXX
="$predep_objects_CXX $p"
11777 if test -z "$postdep_objects_CXX"; then
11778 postdep_objects_CXX
="$p"
11780 postdep_objects_CXX
="$postdep_objects_CXX $p"
11785 *) ;; # Ignore the rest.
11793 echo "libtool.m4: error: problem compiling CXX test program"
11796 $rm -f confest.
$objext
11798 compiler_lib_search_dirs_CXX
=
11799 if test -n "$compiler_lib_search_path_CXX"; then
11800 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11803 # PORTME: override above test on systems where it is broken
11806 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11807 # hack all around it, let's just trust "g++" to DTRT.
11808 predep_objects_CXX
=
11809 postdep_objects_CXX
=
11814 case `$CC -V 2>&1 | sed 5q` in
11818 # The more standards-conforming stlport4 library is
11819 # incompatible with the Cstd library. Avoid specifying
11820 # it if it's in CXXFLAGS. Ignore libCrun as
11821 # -library=stlport4 depends on it.
11822 case " $CXX $CXXFLAGS " in
11823 *" -library=stlport4 "*)
11824 solaris_use_stlport4
=yes
11827 if test "$solaris_use_stlport4" != yes; then
11828 postdeps_CXX
='-library=Cstd -library=Crun'
11835 case $cc_basename in
11837 # The more standards-conforming stlport4 library is
11838 # incompatible with the Cstd library. Avoid specifying
11839 # it if it's in CXXFLAGS. Ignore libCrun as
11840 # -library=stlport4 depends on it.
11841 case " $CXX $CXXFLAGS " in
11842 *" -library=stlport4 "*)
11843 solaris_use_stlport4
=yes
11847 # Adding this requires a known-good setup of shared libraries for
11848 # Sun compiler versions before 5.6, else PIC objects from an old
11849 # archive will be linked into the output, leading to subtle bugs.
11850 if test "$solaris_use_stlport4" != yes; then
11851 postdeps_CXX
='-library=Cstd -library=Crun'
11858 case " $postdeps_CXX " in
11859 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11862 lt_prog_compiler_wl_CXX
=
11863 lt_prog_compiler_pic_CXX
=
11864 lt_prog_compiler_static_CXX
=
11866 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11867 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11869 # C++ specific cases for pic, static, wl, etc.
11870 if test "$GXX" = yes; then
11871 lt_prog_compiler_wl_CXX
='-Wl,'
11872 lt_prog_compiler_static_CXX
='-static'
11876 # All AIX code is PIC.
11877 if test "$host_cpu" = ia64
; then
11878 # AIX 5 now supports IA64 processor
11879 lt_prog_compiler_static_CXX
='-Bstatic'
11883 # FIXME: we need at least 68020 code to build shared libraries, but
11884 # adding the `-m68020' flag to GCC prevents building anything better,
11886 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11888 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11889 # PIC is the default for these OSes.
11891 mingw
* | cygwin
* | os2
* | pw32
*)
11892 # This hack is so that the source file can tell whether it is being
11893 # built for inclusion in a dll (and should export symbols for example).
11894 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11895 # (--disable-auto-import) libraries
11896 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11898 darwin
* | rhapsody
*)
11899 # PIC is the default on this platform
11900 # Common symbols not allowed in MH_DYLIB files
11901 lt_prog_compiler_pic_CXX
='-fno-common'
11904 # DJGPP does not support shared libraries at all
11905 lt_prog_compiler_pic_CXX
=
11908 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11909 # Instead, we relocate shared libraries at runtime.
11912 if test -d /usr
/nec
; then
11913 lt_prog_compiler_pic_CXX
=-Kconform_pic
11917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11918 # not for PA HP-UX.
11923 lt_prog_compiler_pic_CXX
='-fPIC'
11928 lt_prog_compiler_pic_CXX
='-fPIC'
11934 # All AIX code is PIC.
11935 if test "$host_cpu" = ia64
; then
11936 # AIX 5 now supports IA64 processor
11937 lt_prog_compiler_static_CXX
='-Bstatic'
11939 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11943 case $cc_basename in
11945 # Green Hills C++ Compiler
11946 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11951 # PIC is the default on this platform
11952 # Common symbols not allowed in MH_DYLIB files
11953 case $cc_basename in
11955 lt_prog_compiler_pic_CXX
='-qnocommon'
11956 lt_prog_compiler_wl_CXX
='-Wl,'
11961 case $cc_basename in
11963 lt_prog_compiler_pic_CXX
='-KPIC'
11966 # Green Hills C++ Compiler
11967 lt_prog_compiler_pic_CXX
='-pic'
11973 freebsd
* | dragonfly
*)
11974 # FreeBSD uses GNU C++
11976 hpux9
* | hpux10
* | hpux11
*)
11977 case $cc_basename in
11979 lt_prog_compiler_wl_CXX
='-Wl,'
11980 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11981 if test "$host_cpu" != ia64
; then
11982 lt_prog_compiler_pic_CXX
='+Z'
11986 lt_prog_compiler_wl_CXX
='-Wl,'
11987 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11993 lt_prog_compiler_pic_CXX
='+Z'
12002 # This is c89, which is MS Visual C++ (no shared libs)
12003 # Anyone wants to do a port?
12005 irix5
* | irix6
* | nonstopux
*)
12006 case $cc_basename in
12008 lt_prog_compiler_wl_CXX
='-Wl,'
12009 lt_prog_compiler_static_CXX
='-non_shared'
12010 # CC pic flag -KPIC is the default.
12016 linux
* | k
*bsd
*-gnu)
12017 case $cc_basename in
12020 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12021 lt_prog_compiler_pic_CXX
='-fPIC'
12025 lt_prog_compiler_wl_CXX
='-Wl,'
12026 lt_prog_compiler_pic_CXX
='-KPIC'
12027 lt_prog_compiler_static_CXX
='-static'
12030 # Portland Group C++ compiler.
12031 lt_prog_compiler_wl_CXX
='-Wl,'
12032 lt_prog_compiler_pic_CXX
='-fpic'
12033 lt_prog_compiler_static_CXX
='-Bstatic'
12037 # Make sure the PIC flag is empty. It appears that all Alpha
12038 # Linux and Compaq Tru64 Unix objects are PIC.
12039 lt_prog_compiler_pic_CXX
=
12040 lt_prog_compiler_static_CXX
='-non_shared'
12043 case `$CC -V 2>&1 | sed 5q` in
12046 lt_prog_compiler_pic_CXX
='-KPIC'
12047 lt_prog_compiler_static_CXX
='-Bstatic'
12048 lt_prog_compiler_wl_CXX
='-Qoption ld '
12059 case $cc_basename in
12061 lt_prog_compiler_pic_CXX
='-W c,exportall'
12069 osf3
* | osf4
* | osf5
*)
12070 case $cc_basename in
12072 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12075 # Rational C++ 2.4.1
12076 lt_prog_compiler_pic_CXX
='-pic'
12079 # Digital/Compaq C++
12080 lt_prog_compiler_wl_CXX
='-Wl,'
12081 # Make sure the PIC flag is empty. It appears that all Alpha
12082 # Linux and Compaq Tru64 Unix objects are PIC.
12083 lt_prog_compiler_pic_CXX
=
12084 lt_prog_compiler_static_CXX
='-non_shared'
12093 case $cc_basename in
12095 # Sun C++ 4.2, 5.x and Centerline C++
12096 lt_prog_compiler_pic_CXX
='-KPIC'
12097 lt_prog_compiler_static_CXX
='-Bstatic'
12098 lt_prog_compiler_wl_CXX
='-Qoption ld '
12101 # Green Hills C++ Compiler
12102 lt_prog_compiler_pic_CXX
='-PIC'
12109 case $cc_basename in
12112 lt_prog_compiler_pic_CXX
='-pic'
12113 lt_prog_compiler_static_CXX
='-Bstatic'
12117 lt_prog_compiler_pic_CXX
='-pic'
12124 case $cc_basename in
12126 # NonStop-UX NCC 3.20
12127 lt_prog_compiler_pic_CXX
='-KPIC'
12133 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12134 case $cc_basename in
12136 lt_prog_compiler_wl_CXX
='-Wl,'
12137 lt_prog_compiler_pic_CXX
='-KPIC'
12138 lt_prog_compiler_static_CXX
='-Bstatic'
12145 lt_prog_compiler_can_build_shared_CXX
=no
12150 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12151 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12154 # Check to make sure the PIC flag actually works.
12156 if test -n "$lt_prog_compiler_pic_CXX"; then
12158 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12159 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12160 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 lt_cv_prog_compiler_pic_works_CXX
=no
12164 ac_outfile
=conftest.
$ac_objext
12165 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12166 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12167 # Insert the option either (1) after the last *FLAGS variable, or
12168 # (2) before a word containing "conftest.", or (3) at the end.
12169 # Note that $ac_compile itself does not contain backslashes and begins
12170 # with a dollar sign (not a hyphen), so the echo should work correctly.
12171 # The option is referenced via a variable to avoid confusing sed.
12172 lt_compile
=`echo "$ac_compile" | $SED \
12173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12175 -e 's:$: $lt_compiler_flag:'`
12176 (eval echo "\"\$as_me:12176: $lt_compile\"" >&5)
12177 (eval "$lt_compile" 2>conftest.err
)
12179 cat conftest.err
>&5
12180 echo "$as_me:12180: \$? = $ac_status" >&5
12181 if (exit $ac_status) && test -s "$ac_outfile"; then
12182 # The compiler can only warn and ignore the option if not recognized
12183 # So say no if there are warnings other than the usual output.
12184 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12185 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12186 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12187 lt_cv_prog_compiler_pic_works_CXX
=yes
12193 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12194 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12196 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
12197 case $lt_prog_compiler_pic_CXX in
12199 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12202 lt_prog_compiler_pic_CXX
=
12203 lt_prog_compiler_can_build_shared_CXX
=no
12208 # For platforms which do not support PIC, -DPIC is meaningless:
12210 lt_prog_compiler_pic_CXX
=
12213 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12218 # Check to make sure the static flag actually works.
12220 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12221 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12222 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12223 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 lt_cv_prog_compiler_static_works_CXX
=no
12227 save_LDFLAGS
="$LDFLAGS"
12228 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12229 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12230 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12231 # The linker can only warn and ignore the option if not recognized
12232 # So say no if there are warnings
12233 if test -s conftest.err
; then
12234 # Append any errors to the config.log.
12235 cat conftest.err
1>&5
12236 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12237 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12238 if diff conftest.exp conftest.er2
>/dev
/null
; then
12239 lt_cv_prog_compiler_static_works_CXX
=yes
12242 lt_cv_prog_compiler_static_works_CXX
=yes
12246 LDFLAGS
="$save_LDFLAGS"
12249 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12250 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12252 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
12255 lt_prog_compiler_static_CXX
=
12259 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12260 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12261 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 lt_cv_prog_compiler_c_o_CXX
=no
12265 $rm -r conftest
2>/dev
/null
12269 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12271 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12272 # Insert the option either (1) after the last *FLAGS variable, or
12273 # (2) before a word containing "conftest.", or (3) at the end.
12274 # Note that $ac_compile itself does not contain backslashes and begins
12275 # with a dollar sign (not a hyphen), so the echo should work correctly.
12276 lt_compile
=`echo "$ac_compile" | $SED \
12277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12279 -e 's:$: $lt_compiler_flag:'`
12280 (eval echo "\"\$as_me:12280: $lt_compile\"" >&5)
12281 (eval "$lt_compile" 2>out
/conftest.err
)
12283 cat out
/conftest.err
>&5
12284 echo "$as_me:12284: \$? = $ac_status" >&5
12285 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12287 # The compiler can only warn and ignore the option if not recognized
12288 # So say no if there are warnings
12289 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12290 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12291 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12292 lt_cv_prog_compiler_c_o_CXX
=yes
12297 # SGI C++ compiler will create directory out/ii_files/ for
12298 # template instantiation
12299 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12300 $rm out
/* && rmdir out
12306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12307 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12310 hard_links
="nottested"
12311 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12312 # do not overwrite the value of need_locks provided by the user
12313 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12314 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12317 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12319 ln conftest.a conftest.b
2>&5 || hard_links
=no
12320 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12321 { echo "$as_me:$LINENO: result: $hard_links" >&5
12322 echo "${ECHO_T}$hard_links" >&6; }
12323 if test "$hard_links" = no
; then
12324 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12325 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12332 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12335 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12338 # If we're using GNU nm, then we don't want the "-C" option.
12339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12340 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12341 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12343 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12347 export_symbols_cmds_CXX
="$ltdll_cmds"
12350 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12353 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12356 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12358 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12359 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12360 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12363 # Do we need to explicitly link libc?
12365 case "x$archive_cmds_need_lc_CXX" in
12367 # Assume -lc should be added
12368 archive_cmds_need_lc_CXX
=yes
12370 if test "$enable_shared" = yes && test "$GCC" = yes; then
12371 case $archive_cmds_CXX in
12373 # FIXME: we may have to deal with multi-command sequences.
12376 # Test whether the compiler implicitly links with -lc since on some
12377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12378 # to ld, don't add -lc before -lgcc.
12379 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12380 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12382 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12385 (eval $ac_compile) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } 2>conftest.err
; then
12391 libobjs
=conftest.
$ac_objext
12393 wl
=$lt_prog_compiler_wl_CXX
12394 pic_flag
=$lt_prog_compiler_pic_CXX
12400 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12401 allow_undefined_flag_CXX
=
12402 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12403 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }
12408 archive_cmds_need_lc_CXX
=no
12410 archive_cmds_need_lc_CXX
=yes
12412 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12414 cat conftest.err
1>&5
12417 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12418 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12425 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12426 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12427 library_names_spec
=
12428 libname_spec
='lib$name'
12432 postuninstall_cmds
=
12436 shlibpath_overrides_runpath
=unknown
12438 dynamic_linker
="$host_os ld.so"
12439 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12441 need_lib_prefix
=unknown
12442 hardcode_into_libs
=no
12444 # when you set need_version to no, make sure it does not cause -set_version
12445 # flags to be left without arguments
12446 need_version
=unknown
12451 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12452 shlibpath_var
=LIBPATH
12454 # AIX 3 has no versioning support, so we append a major version to the name.
12455 soname_spec
='${libname}${release}${shared_ext}$major'
12462 hardcode_into_libs
=yes
12463 if test "$host_cpu" = ia64
; then
12464 # AIX 5 supports IA64
12465 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12466 shlibpath_var
=LD_LIBRARY_PATH
12468 # With GCC up to 2.95.x, collect2 would create an import file
12469 # for dependence libraries. The import file would start with
12470 # the line `#! .'. This would cause the generated library to
12471 # depend on `.', always an invalid library. This was fixed in
12472 # development snapshots of GCC prior to 3.0.
12474 aix4 | aix4.
[01] | aix4.
[01].
*)
12475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12477 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12480 can_build_shared
=no
12484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12485 # soname into executable. Probably we can add versioning support to
12486 # collect2, so additional links can be useful in future.
12487 if test "$aix_use_runtimelinking" = yes; then
12488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12489 # instead of lib<name>.a to let people know that these are not
12490 # typical AIX shared libraries.
12491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12493 # We preserve .a as extension for shared libraries through AIX4.2
12494 # and later when we are not doing run time linking.
12495 library_names_spec
='${libname}${release}.a $libname.a'
12496 soname_spec
='${libname}${release}${shared_ext}$major'
12498 shlibpath_var
=LIBPATH
12503 library_names_spec
='$libname.ixlibrary $libname.a'
12504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12505 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12509 library_names_spec
='${libname}${shared_ext}'
12510 dynamic_linker
="$host_os ld.so"
12511 shlibpath_var
=LIBRARY_PATH
12517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12518 soname_spec
='${libname}${release}${shared_ext}$major'
12519 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12520 shlibpath_var
=LD_LIBRARY_PATH
12521 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12522 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12523 # the default ld.so.conf also contains /usr/contrib/lib and
12524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12525 # libtool to hard-code these into programs
12528 cygwin
* | mingw
* | pw32
*)
12529 version_type
=windows
12534 case $GCC,$host_os in
12535 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12536 library_names_spec
='$libname.dll.a'
12537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12538 postinstall_cmds
='base_file=`basename \${file}`~
12539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12540 dldir=$destdir/`dirname \$dlpath`~
12541 test -d \$dldir || mkdir -p \$dldir~
12542 $install_prog $dir/$dlname \$dldir/$dlname~
12543 chmod a+x \$dldir/$dlname'
12544 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12545 dlpath=$dir/\$dldll~
12547 shlibpath_overrides_runpath
=yes
12551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12552 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12553 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12556 # MinGW DLLs use traditional 'lib' prefix
12557 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12558 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12559 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12560 # It is most probably a Windows format PATH printed by
12561 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12562 # path with ; separators, and with drive letters. We can handle the
12563 # drive letters (cygwin fileutils understands them), so leave them,
12564 # especially as we might pass files found there to a mingw objdump,
12565 # which wouldn't understand a cygwinified path. Ahh.
12566 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12568 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12572 # pw32 DLLs use 'pw' prefix rather than 'lib'
12573 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12579 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12582 dynamic_linker
='Win32 ld.exe'
12583 # FIXME: first we should search . and the directory the executable is in
12587 darwin
* | rhapsody
*)
12588 dynamic_linker
="$host_os dyld"
12589 version_type
=darwin
12592 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12593 soname_spec
='${libname}${release}${major}$shared_ext'
12594 shlibpath_overrides_runpath
=yes
12595 shlibpath_var
=DYLD_LIBRARY_PATH
12596 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12598 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12606 soname_spec
='${libname}${release}${shared_ext}$major'
12607 shlibpath_var
=LD_LIBRARY_PATH
12614 freebsd
* | dragonfly
*)
12615 # DragonFly does not have aout. When/if they implement a new
12616 # versioning mechanism, adjust this.
12617 if test -x /usr
/bin
/objformat
; then
12618 objformat
=`/usr/bin/objformat`
12621 freebsd
[123]*) objformat
=aout
;;
12622 *) objformat
=elf
;;
12625 version_type
=freebsd-
$objformat
12626 case $version_type in
12628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12633 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12637 shlibpath_var
=LD_LIBRARY_PATH
12640 shlibpath_overrides_runpath
=yes
12642 freebsd3.
[01]* | freebsdelf3.
[01]*)
12643 shlibpath_overrides_runpath
=yes
12644 hardcode_into_libs
=yes
12646 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12647 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12648 shlibpath_overrides_runpath
=no
12649 hardcode_into_libs
=yes
12651 *) # from 4.6 on, and DragonFly
12652 shlibpath_overrides_runpath
=yes
12653 hardcode_into_libs
=yes
12662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12663 soname_spec
='${libname}${release}${shared_ext}$major'
12664 shlibpath_var
=LD_LIBRARY_PATH
12665 hardcode_into_libs
=yes
12668 hpux9
* | hpux10
* | hpux11
*)
12669 # Give a soname corresponding to the major version so that dld.sl refuses to
12670 # link against other versions.
12677 hardcode_into_libs
=yes
12678 dynamic_linker
="$host_os dld.so"
12679 shlibpath_var
=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682 soname_spec
='${libname}${release}${shared_ext}$major'
12683 if test "X$HPUX_IA64_MODE" = X32
; then
12684 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12686 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12688 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12692 hardcode_into_libs
=yes
12693 dynamic_linker
="$host_os dld.sl"
12694 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12695 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12697 soname_spec
='${libname}${release}${shared_ext}$major'
12698 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12699 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12703 dynamic_linker
="$host_os dld.sl"
12704 shlibpath_var
=SHLIB_PATH
12705 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707 soname_spec
='${libname}${release}${shared_ext}$major'
12710 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12711 postinstall_cmds
='chmod 555 $lib'
12718 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12719 soname_spec
='${libname}${release}${shared_ext}$major'
12720 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12721 shlibpath_var
=LD_LIBRARY_PATH
12722 shlibpath_overrides_runpath
=no
12723 hardcode_into_libs
=yes
12726 irix5
* | irix6
* | nonstopux
*)
12728 nonstopux
*) version_type
=nonstopux
;;
12730 if test "$lt_cv_prog_gnu_ld" = yes; then
12738 soname_spec
='${libname}${release}${shared_ext}$major'
12739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12741 irix5
* | nonstopux
*)
12742 libsuff
= shlibsuff
=
12745 case $LD in # libtool.m4 will add one of these switches to LD
12746 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12747 libsuff
= shlibsuff
= libmagic
=32-bit;;
12748 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12749 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12750 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12751 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12752 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12756 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12757 shlibpath_overrides_runpath
=no
12758 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12759 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12760 hardcode_into_libs
=yes
12763 # No shared lib support for Linux oldld, aout, or coff.
12764 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12768 # This must be Linux ELF.
12769 linux
* | k
*bsd
*-gnu)
12773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774 soname_spec
='${libname}${release}${shared_ext}$major'
12775 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12776 shlibpath_var
=LD_LIBRARY_PATH
12777 shlibpath_overrides_runpath
=no
12778 # This implies no fast_install, which is unacceptable.
12779 # Some rework will be needed to allow for fast_install
12780 # before this can be enabled.
12781 hardcode_into_libs
=yes
12783 # Append ld.so.conf contents to the search path
12784 if test -f /etc
/ld.so.conf
; then
12785 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;/^$/d' | tr '\n' ' '`
12786 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12789 # We used to test for /lib/ld.so.1 and disable shared libraries on
12790 # powerpc, because MkLinux only supported shared libraries with the
12791 # GNU dynamic linker. Since this was broken with cross compilers,
12792 # most powerpc-linux boxes support dynamic linking these days and
12793 # people can always --disable-shared, the test was removed, and we
12794 # assume the GNU/Linux dynamic linker is in use.
12795 dynamic_linker
='GNU/Linux ld.so'
12802 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12804 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12805 dynamic_linker
='NetBSD (a.out) ld.so'
12807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12808 soname_spec
='${libname}${release}${shared_ext}$major'
12809 dynamic_linker
='NetBSD ld.elf_so'
12811 shlibpath_var
=LD_LIBRARY_PATH
12812 shlibpath_overrides_runpath
=yes
12813 hardcode_into_libs
=yes
12818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12819 shlibpath_var
=LD_LIBRARY_PATH
12820 shlibpath_overrides_runpath
=yes
12827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12828 soname_spec
='${libname}${release}${shared_ext}$major'
12829 shlibpath_var
=LD_LIBRARY_PATH
12830 shlibpath_overrides_runpath
=yes
12835 sys_lib_dlsearch_path_spec
="/usr/lib"
12837 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12839 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12840 *) need_version
=no
;;
12842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12843 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12844 shlibpath_var
=LD_LIBRARY_PATH
12845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12847 openbsd2.
[89] | openbsd2.
[89].
*)
12848 shlibpath_overrides_runpath
=no
12851 shlibpath_overrides_runpath
=yes
12855 shlibpath_overrides_runpath
=yes
12860 libname_spec
='$name'
12863 library_names_spec
='$libname${shared_ext} $libname.a'
12864 dynamic_linker
='OS/2 ld.exe'
12865 shlibpath_var
=LIBPATH
12868 osf3
* | osf4
* | osf5
*)
12872 soname_spec
='${libname}${release}${shared_ext}$major'
12873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12874 shlibpath_var
=LD_LIBRARY_PATH
12875 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12876 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888 soname_spec
='${libname}${release}${shared_ext}$major'
12889 shlibpath_var
=LD_LIBRARY_PATH
12890 shlibpath_overrides_runpath
=yes
12891 hardcode_into_libs
=yes
12892 # ldd complains unless libraries are executable
12893 postinstall_cmds
='chmod +x $lib'
12898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12899 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12900 shlibpath_var
=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath
=yes
12902 if test "$with_gnu_ld" = yes; then
12910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 soname_spec
='${libname}${release}${shared_ext}$major'
12912 shlibpath_var
=LD_LIBRARY_PATH
12913 case $host_vendor in
12915 shlibpath_overrides_runpath
=no
12917 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12918 runpath_var
=LD_RUN_PATH
12926 shlibpath_overrides_runpath
=no
12927 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12933 if test -d /usr
/nec
;then
12935 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12936 soname_spec
='$libname${shared_ext}.$major'
12937 shlibpath_var
=LD_LIBRARY_PATH
12941 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12942 version_type
=freebsd-elf
12945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12946 soname_spec
='${libname}${release}${shared_ext}$major'
12947 shlibpath_var
=LD_LIBRARY_PATH
12948 hardcode_into_libs
=yes
12949 if test "$with_gnu_ld" = yes; then
12950 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12951 shlibpath_overrides_runpath
=no
12953 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12954 shlibpath_overrides_runpath
=yes
12957 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12961 sys_lib_dlsearch_path_spec
='/usr/lib'
12966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12967 soname_spec
='${libname}${release}${shared_ext}$major'
12968 shlibpath_var
=LD_LIBRARY_PATH
12975 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12976 echo "${ECHO_T}$dynamic_linker" >&6; }
12977 test "$dynamic_linker" = no
&& can_build_shared
=no
12979 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
12985 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12986 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
12992 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12994 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12995 if test "$GCC" = yes; then
12996 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12999 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13000 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13001 hardcode_action_CXX
=
13002 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13003 test -n "$runpath_var_CXX" || \
13004 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13006 # We can hardcode non-existant directories.
13007 if test "$hardcode_direct_CXX" != no
&&
13008 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13009 # have to relink, otherwise we might link with an installed library
13010 # when we should be linking with a yet-to-be-installed one
13011 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13012 test "$hardcode_minus_L_CXX" != no
; then
13013 # Linking always hardcodes the temporary library directory.
13014 hardcode_action_CXX
=relink
13016 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13017 hardcode_action_CXX
=immediate
13020 # We cannot hardcode anything, or else we can only hardcode existing
13022 hardcode_action_CXX
=unsupported
13024 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13025 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13027 if test "$hardcode_action_CXX" = relink
; then
13028 # Fast installation is not supported
13029 enable_fast_install
=no
13030 elif test "$shlibpath_overrides_runpath" = yes ||
13031 test "$enable_shared" = no
; then
13032 # Fast installation is not necessary
13033 enable_fast_install
=needless
13037 # The else clause should only fire when bootstrapping the
13038 # libtool distribution, otherwise you forgot to ship ltmain.sh
13039 # with your package, and you will get complaints that there are
13040 # no rules to generate ltmain.sh.
13041 if test -f "$ltmain"; then
13042 # See if we are running on zsh, and set the options which allow our commands through
13043 # without removal of \ escapes.
13044 if test -n "${ZSH_VERSION+set}" ; then
13045 setopt NO_GLOB_SUBST
13047 # Now quote all the things that may contain metacharacters while being
13048 # careful not to overquote the AC_SUBSTed values. We take copies of the
13049 # variables and quote the copies for generation of the libtool script.
13050 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13054 deplibs_check_method reload_flag reload_cmds need_locks \
13055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13056 lt_cv_sys_global_symbol_to_c_name_address \
13057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13058 old_postinstall_cmds old_postuninstall_cmds \
13062 lt_prog_compiler_wl_CXX \
13063 lt_prog_compiler_pic_CXX \
13064 lt_prog_compiler_static_CXX \
13065 lt_prog_compiler_no_builtin_flag_CXX \
13066 export_dynamic_flag_spec_CXX \
13067 thread_safe_flag_spec_CXX \
13068 whole_archive_flag_spec_CXX \
13069 enable_shared_with_static_runtimes_CXX \
13070 old_archive_cmds_CXX \
13071 old_archive_from_new_cmds_CXX \
13072 predep_objects_CXX \
13073 postdep_objects_CXX \
13076 compiler_lib_search_path_CXX \
13077 compiler_lib_search_dirs_CXX \
13079 archive_expsym_cmds_CXX \
13080 postinstall_cmds_CXX \
13081 postuninstall_cmds_CXX \
13082 old_archive_from_expsyms_cmds_CXX \
13083 allow_undefined_flag_CXX \
13084 no_undefined_flag_CXX \
13085 export_symbols_cmds_CXX \
13086 hardcode_libdir_flag_spec_CXX \
13087 hardcode_libdir_flag_spec_ld_CXX \
13088 hardcode_libdir_separator_CXX \
13089 hardcode_automatic_CXX \
13091 module_expsym_cmds_CXX \
13092 lt_cv_prog_compiler_c_o_CXX \
13093 fix_srcfile_path_CXX \
13094 exclude_expsyms_CXX \
13095 include_expsyms_CXX
; do
13098 old_archive_cmds_CXX | \
13099 old_archive_from_new_cmds_CXX | \
13100 archive_cmds_CXX | \
13101 archive_expsym_cmds_CXX | \
13102 module_cmds_CXX | \
13103 module_expsym_cmds_CXX | \
13104 old_archive_from_expsyms_cmds_CXX | \
13105 export_symbols_cmds_CXX | \
13106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13107 postinstall_cmds | postuninstall_cmds | \
13108 old_postinstall_cmds | old_postuninstall_cmds | \
13109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13110 # Double-quote double-evaled strings.
13111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13120 *'\$0 --fallback-echo"')
13121 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13127 cat <<__EOF__ >> "$cfgfile"
13128 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13132 # Shell to use when invoking shell scripts.
13135 # Whether or not to build shared libraries.
13136 build_libtool_libs=$enable_shared
13138 # Whether or not to build static libraries.
13139 build_old_libs=$enable_static
13141 # Whether or not to add -lc for building shared libraries.
13142 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13144 # Whether or not to disallow shared libs when runtime libs are static
13145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13147 # Whether or not to optimize for fast installation.
13148 fast_install=$enable_fast_install
13151 host_alias=$host_alias
13155 # The build system.
13156 build_alias=$build_alias
13160 # An echo program that does not interpret backslashes.
13165 AR_FLAGS=$lt_AR_FLAGS
13170 # LTCC compiler flags.
13171 LTCFLAGS=$lt_LTCFLAGS
13173 # A language-specific compiler.
13174 CC=$lt_compiler_CXX
13176 # Is the compiler the GNU C compiler?
13182 # The linker used to build libraries.
13185 # Whether we need hard or soft links.
13188 # A BSD-compatible nm program.
13191 # A symbol stripping program
13194 # Used to examine libraries when file_magic_cmd begins "file"
13195 MAGIC_CMD=$MAGIC_CMD
13197 # Used on cygwin: DLL creation program.
13200 # Used on cygwin: object dumper.
13203 # Used on cygwin: assembler.
13206 # The name of the directory that contains temporary libtool files.
13209 # How to create reloadable object files.
13210 reload_flag=$lt_reload_flag
13211 reload_cmds=$lt_reload_cmds
13213 # How to pass a linker flag through the compiler.
13214 wl=$lt_lt_prog_compiler_wl_CXX
13216 # Object file suffix (normally "o").
13217 objext="$ac_objext"
13219 # Old archive suffix (normally "a").
13222 # Shared library suffix (normally ".so").
13223 shrext_cmds='$shrext_cmds'
13225 # Executable file suffix (normally "").
13228 # Additional compiler flags for building library objects.
13229 pic_flag=$lt_lt_prog_compiler_pic_CXX
13232 # What is the maximum length of a command?
13233 max_cmd_len=$lt_cv_sys_max_cmd_len
13235 # Does compiler simultaneously support -c and -o options?
13236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13238 # Must we lock files when doing compilation?
13239 need_locks=$lt_need_locks
13241 # Do we need the lib prefix for modules?
13242 need_lib_prefix=$need_lib_prefix
13244 # Do we need a version for libraries?
13245 need_version=$need_version
13247 # Whether dlopen is supported.
13248 dlopen_support=$enable_dlopen
13250 # Whether dlopen of programs is supported.
13251 dlopen_self=$enable_dlopen_self
13253 # Whether dlopen of statically linked programs is supported.
13254 dlopen_self_static=$enable_dlopen_self_static
13256 # Compiler flag to prevent dynamic linking.
13257 link_static_flag=$lt_lt_prog_compiler_static_CXX
13259 # Compiler flag to turn off builtin functions.
13260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13262 # Compiler flag to allow reflexive dlopens.
13263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13265 # Compiler flag to generate shared objects directly from archives.
13266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13268 # Compiler flag to generate thread-safe objects.
13269 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13271 # Library versioning type.
13272 version_type=$version_type
13274 # Format of library name prefix.
13275 libname_spec=$lt_libname_spec
13277 # List of archive names. First name is the real one, the rest are links.
13278 # The last name is the one that the linker finds with -lNAME.
13279 library_names_spec=$lt_library_names_spec
13281 # The coded name of the library, if different from the real name.
13282 soname_spec=$lt_soname_spec
13284 # Commands used to build and install an old-style archive.
13286 old_archive_cmds=$lt_old_archive_cmds_CXX
13287 old_postinstall_cmds=$lt_old_postinstall_cmds
13288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13290 # Create an old-style archive from a shared archive.
13291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13293 # Create a temporary old-style archive to link instead of a shared archive.
13294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13296 # Commands used to build and install a shared archive.
13297 archive_cmds=$lt_archive_cmds_CXX
13298 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13299 postinstall_cmds=$lt_postinstall_cmds
13300 postuninstall_cmds=$lt_postuninstall_cmds
13302 # Commands used to build a loadable module (assumed same as above if empty)
13303 module_cmds=$lt_module_cmds_CXX
13304 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13306 # Commands to strip libraries.
13307 old_striplib=$lt_old_striplib
13308 striplib=$lt_striplib
13310 # Dependencies to place before the objects being linked to create a
13312 predep_objects=$lt_predep_objects_CXX
13314 # Dependencies to place after the objects being linked to create a
13316 postdep_objects=$lt_postdep_objects_CXX
13318 # Dependencies to place before the objects being linked to create a
13320 predeps=$lt_predeps_CXX
13322 # Dependencies to place after the objects being linked to create a
13324 postdeps=$lt_postdeps_CXX
13326 # The directories searched by this compiler when creating a shared
13328 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13330 # The library search path used internally by the compiler when linking
13331 # a shared library.
13332 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13334 # Method to check whether dependent libraries are shared objects.
13335 deplibs_check_method=$lt_deplibs_check_method
13337 # Command to use when deplibs_check_method == file_magic.
13338 file_magic_cmd=$lt_file_magic_cmd
13340 # Flag that allows shared libraries with undefined symbols to be built.
13341 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13343 # Flag that forces no undefined symbols.
13344 no_undefined_flag=$lt_no_undefined_flag_CXX
13346 # Commands used to finish a libtool library installation in a directory.
13347 finish_cmds=$lt_finish_cmds
13349 # Same as above, but a single script fragment to be evaled but not shown.
13350 finish_eval=$lt_finish_eval
13352 # Take the output of nm and produce a listing of raw symbols and C names.
13353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13355 # Transform the output of nm in a proper C declaration
13356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13358 # Transform the output of nm in a C name address pair
13359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13361 # This is the shared library runtime path variable.
13362 runpath_var=$runpath_var
13364 # This is the shared library path variable.
13365 shlibpath_var=$shlibpath_var
13367 # Is shlibpath searched before the hard-coded library search path?
13368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13370 # How to hardcode a shared library path into an executable.
13371 hardcode_action=$hardcode_action_CXX
13373 # Whether we should hardcode library paths into libraries.
13374 hardcode_into_libs=$hardcode_into_libs
13376 # Flag to hardcode \$libdir into a binary during linking.
13377 # This must work even if \$libdir does not exist.
13378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13380 # If ld is used when linking, flag to hardcode \$libdir into
13381 # a binary during linking. This must work even if \$libdir does
13383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13385 # Whether we need a single -rpath flag with a separated argument.
13386 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13389 # resulting binary.
13390 hardcode_direct=$hardcode_direct_CXX
13392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13393 # resulting binary.
13394 hardcode_minus_L=$hardcode_minus_L_CXX
13396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13397 # the resulting binary.
13398 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13400 # Set to yes if building a shared library automatically hardcodes DIR into the library
13401 # and all subsequent libraries and executables linked against it.
13402 hardcode_automatic=$hardcode_automatic_CXX
13404 # Variables whose values should be saved in libtool wrapper scripts and
13405 # restored at relink time.
13406 variables_saved_for_relink="$variables_saved_for_relink"
13408 # Whether libtool must link a program against all its dependency libraries.
13409 link_all_deplibs=$link_all_deplibs_CXX
13411 # Compile-time system search path for libraries
13412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13414 # Run-time system search path for libraries
13415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13417 # Fix the shell variable \$srcfile for the compiler.
13418 fix_srcfile_path=$lt_fix_srcfile_path
13420 # Set to yes if exported symbols are required.
13421 always_export_symbols=$always_export_symbols_CXX
13423 # The commands to list exported symbols.
13424 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13426 # The commands to extract the exported symbol list from a shared archive.
13427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13429 # Symbols that should not be listed in the preloaded symbols.
13430 exclude_expsyms=$lt_exclude_expsyms_CXX
13432 # Symbols that must always be exported.
13433 include_expsyms=$lt_include_expsyms_CXX
13435 # ### END LIBTOOL TAG CONFIG: $tagname
13441 # If there is no Makefile yet, we rely on a make rule to execute
13442 # `config.status --recheck' to rerun these tests and create the
13443 # libtool script then.
13444 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13445 if test -f "$ltmain_in"; then
13446 test -f Makefile
&& make "$ltmain"
13452 ac_cpp
='$CPP $CPPFLAGS'
13453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13461 with_gnu_ldcxx
=$with_gnu_ld
13462 with_gnu_ld
=$lt_save_with_gnu_ld
13463 lt_cv_path_LDCXX
=$lt_cv_path_LD
13464 lt_cv_path_LD
=$lt_save_path_LD
13465 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13466 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13474 if test -n "$F77" && test "X$F77" != "Xno"; then
13477 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13478 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13482 archive_cmds_need_lc_F77
=no
13483 allow_undefined_flag_F77
=
13484 always_export_symbols_F77
=no
13485 archive_expsym_cmds_F77
=
13486 export_dynamic_flag_spec_F77
=
13487 hardcode_direct_F77
=no
13488 hardcode_libdir_flag_spec_F77
=
13489 hardcode_libdir_flag_spec_ld_F77
=
13490 hardcode_libdir_separator_F77
=
13491 hardcode_minus_L_F77
=no
13492 hardcode_automatic_F77
=no
13494 module_expsym_cmds_F77
=
13495 link_all_deplibs_F77
=unknown
13496 old_archive_cmds_F77
=$old_archive_cmds
13497 no_undefined_flag_F77
=
13498 whole_archive_flag_spec_F77
=
13499 enable_shared_with_static_runtimes_F77
=no
13501 # Source file extension for f77 test sources.
13504 # Object file extension for compiled f77 test sources.
13508 # Code to be used in simple compile tests
13509 lt_simple_compile_test_code
="\
13515 # Code to be used in simple link tests
13516 lt_simple_link_test_code
="\
13521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13523 # If no C compiler was specified, use CC.
13526 # If no C compiler flags were specified, use CFLAGS.
13527 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13529 # Allow CC to be a program name with arguments.
13533 # save warnings/boilerplate of simple test code
13534 ac_outfile
=conftest.
$ac_objext
13535 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13536 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13537 _lt_compiler_boilerplate
=`cat conftest.err`
13540 ac_outfile
=conftest.
$ac_objext
13541 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13542 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13543 _lt_linker_boilerplate
=`cat conftest.err`
13547 # Allow CC to be a program name with arguments.
13552 for cc_temp
in $compiler""; do
13554 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13555 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13560 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13563 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13564 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13565 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13566 echo "${ECHO_T}$can_build_shared" >&6; }
13568 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13569 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13570 test "$can_build_shared" = "no" && enable_shared
=no
13572 # On AIX, shared libraries and static libraries use the same namespace, and
13573 # are all built from PIC.
13576 test "$enable_shared" = yes && enable_static
=no
13577 if test -n "$RANLIB"; then
13578 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13579 postinstall_cmds
='$RANLIB $lib'
13583 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13584 test "$enable_shared" = yes && enable_static
=no
13588 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13589 echo "${ECHO_T}$enable_shared" >&6; }
13591 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13592 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13593 # Make sure either enable_shared or enable_static is yes.
13594 test "$enable_shared" = yes || enable_static
=yes
13595 { echo "$as_me:$LINENO: result: $enable_static" >&5
13596 echo "${ECHO_T}$enable_static" >&6; }
13601 lt_prog_compiler_wl_F77
=
13602 lt_prog_compiler_pic_F77
=
13603 lt_prog_compiler_static_F77
=
13605 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13608 if test "$GCC" = yes; then
13609 lt_prog_compiler_wl_F77
='-Wl,'
13610 lt_prog_compiler_static_F77
='-static'
13614 # All AIX code is PIC.
13615 if test "$host_cpu" = ia64
; then
13616 # AIX 5 now supports IA64 processor
13617 lt_prog_compiler_static_F77
='-Bstatic'
13622 # FIXME: we need at least 68020 code to build shared libraries, but
13623 # adding the `-m68020' flag to GCC prevents building anything better,
13625 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13628 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13629 # PIC is the default for these OSes.
13632 mingw
* | cygwin
* | pw32
* | os2
*)
13633 # This hack is so that the source file can tell whether it is being
13634 # built for inclusion in a dll (and should export symbols for example).
13635 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13636 # (--disable-auto-import) libraries
13637 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13640 darwin
* | rhapsody
*)
13641 # PIC is the default on this platform
13642 # Common symbols not allowed in MH_DYLIB files
13643 lt_prog_compiler_pic_F77
='-fno-common'
13647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13648 # Instead, we relocate shared libraries at runtime.
13652 # Just because we use GCC doesn't mean we suddenly get shared libraries
13653 # on systems that don't support them.
13654 lt_prog_compiler_can_build_shared_F77
=no
13659 if test -d /usr
/nec
; then
13660 lt_prog_compiler_pic_F77
=-Kconform_pic
13665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13666 # not for PA HP-UX.
13672 lt_prog_compiler_pic_F77
='-fPIC'
13678 lt_prog_compiler_pic_F77
='-fPIC'
13682 # PORTME Check for flag to pass linker flags through the system compiler.
13685 lt_prog_compiler_wl_F77
='-Wl,'
13686 if test "$host_cpu" = ia64
; then
13687 # AIX 5 now supports IA64 processor
13688 lt_prog_compiler_static_F77
='-Bstatic'
13690 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13694 # PIC is the default on this platform
13695 # Common symbols not allowed in MH_DYLIB files
13696 case $cc_basename in
13698 lt_prog_compiler_pic_F77
='-qnocommon'
13699 lt_prog_compiler_wl_F77
='-Wl,'
13704 mingw
* | cygwin
* | pw32
* | os2
*)
13705 # This hack is so that the source file can tell whether it is being
13706 # built for inclusion in a dll (and should export symbols for example).
13707 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13710 hpux9
* | hpux10
* | hpux11
*)
13711 lt_prog_compiler_wl_F77
='-Wl,'
13712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13713 # not for PA HP-UX.
13719 lt_prog_compiler_pic_F77
='+Z'
13722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13723 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13726 irix5
* | irix6
* | nonstopux
*)
13727 lt_prog_compiler_wl_F77
='-Wl,'
13728 # PIC (with -KPIC) is the default.
13729 lt_prog_compiler_static_F77
='-non_shared'
13733 lt_prog_compiler_pic_F77
='-KPIC'
13734 lt_prog_compiler_static_F77
='-Bstatic'
13737 linux
* | k
*bsd
*-gnu)
13738 case $cc_basename in
13740 lt_prog_compiler_wl_F77
='-Wl,'
13741 lt_prog_compiler_pic_F77
='-KPIC'
13742 lt_prog_compiler_static_F77
='-static'
13744 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13745 # Portland Group compilers (*not* the Pentium gcc compiler,
13746 # which looks to be a dead project)
13747 lt_prog_compiler_wl_F77
='-Wl,'
13748 lt_prog_compiler_pic_F77
='-fpic'
13749 lt_prog_compiler_static_F77
='-Bstatic'
13752 lt_prog_compiler_wl_F77
='-Wl,'
13753 # All Alpha code is PIC.
13754 lt_prog_compiler_static_F77
='-non_shared'
13757 case `$CC -V 2>&1 | sed 5q` in
13760 lt_prog_compiler_pic_F77
='-KPIC'
13761 lt_prog_compiler_static_F77
='-Bstatic'
13762 lt_prog_compiler_wl_F77
='-Wl,'
13765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13766 lt_prog_compiler_pic_F77
='-KPIC'
13767 lt_prog_compiler_static_F77
='-Bstatic'
13768 lt_prog_compiler_wl_F77
=''
13775 osf3
* | osf4
* | osf5
*)
13776 lt_prog_compiler_wl_F77
='-Wl,'
13777 # All OSF/1 code is PIC.
13778 lt_prog_compiler_static_F77
='-non_shared'
13782 lt_prog_compiler_static_F77
='-non_shared'
13786 lt_prog_compiler_pic_F77
='-KPIC'
13787 lt_prog_compiler_static_F77
='-Bstatic'
13788 case $cc_basename in
13789 f77
* | f90
* | f95
*)
13790 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13792 lt_prog_compiler_wl_F77
='-Wl,';;
13797 lt_prog_compiler_wl_F77
='-Qoption ld '
13798 lt_prog_compiler_pic_F77
='-PIC'
13799 lt_prog_compiler_static_F77
='-Bstatic'
13802 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13803 lt_prog_compiler_wl_F77
='-Wl,'
13804 lt_prog_compiler_pic_F77
='-KPIC'
13805 lt_prog_compiler_static_F77
='-Bstatic'
13809 if test -d /usr
/nec
;then
13810 lt_prog_compiler_pic_F77
='-Kconform_pic'
13811 lt_prog_compiler_static_F77
='-Bstatic'
13815 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13816 lt_prog_compiler_wl_F77
='-Wl,'
13817 lt_prog_compiler_pic_F77
='-KPIC'
13818 lt_prog_compiler_static_F77
='-Bstatic'
13822 lt_prog_compiler_wl_F77
='-Wl,'
13823 lt_prog_compiler_can_build_shared_F77
=no
13827 lt_prog_compiler_pic_F77
='-pic'
13828 lt_prog_compiler_static_F77
='-Bstatic'
13832 lt_prog_compiler_can_build_shared_F77
=no
13837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13838 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13841 # Check to make sure the PIC flag actually works.
13843 if test -n "$lt_prog_compiler_pic_F77"; then
13845 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13846 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13847 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 lt_cv_prog_compiler_pic_works_F77
=no
13851 ac_outfile
=conftest.
$ac_objext
13852 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13853 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13854 # Insert the option either (1) after the last *FLAGS variable, or
13855 # (2) before a word containing "conftest.", or (3) at the end.
13856 # Note that $ac_compile itself does not contain backslashes and begins
13857 # with a dollar sign (not a hyphen), so the echo should work correctly.
13858 # The option is referenced via a variable to avoid confusing sed.
13859 lt_compile
=`echo "$ac_compile" | $SED \
13860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13862 -e 's:$: $lt_compiler_flag:'`
13863 (eval echo "\"\$as_me:13863: $lt_compile\"" >&5)
13864 (eval "$lt_compile" 2>conftest.err
)
13866 cat conftest.err
>&5
13867 echo "$as_me:13867: \$? = $ac_status" >&5
13868 if (exit $ac_status) && test -s "$ac_outfile"; then
13869 # The compiler can only warn and ignore the option if not recognized
13870 # So say no if there are warnings other than the usual output.
13871 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13872 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13873 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13874 lt_cv_prog_compiler_pic_works_F77
=yes
13880 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13881 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
13883 if test x
"$lt_cv_prog_compiler_pic_works_F77" = xyes
; then
13884 case $lt_prog_compiler_pic_F77 in
13886 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13889 lt_prog_compiler_pic_F77
=
13890 lt_prog_compiler_can_build_shared_F77
=no
13895 # For platforms which do not support PIC, -DPIC is meaningless:
13897 lt_prog_compiler_pic_F77
=
13900 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13905 # Check to make sure the static flag actually works.
13907 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
13908 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13909 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13910 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 lt_cv_prog_compiler_static_works_F77
=no
13914 save_LDFLAGS
="$LDFLAGS"
13915 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13916 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13917 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13918 # The linker can only warn and ignore the option if not recognized
13919 # So say no if there are warnings
13920 if test -s conftest.err
; then
13921 # Append any errors to the config.log.
13922 cat conftest.err
1>&5
13923 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
13924 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13925 if diff conftest.exp conftest.er2
>/dev
/null
; then
13926 lt_cv_prog_compiler_static_works_F77
=yes
13929 lt_cv_prog_compiler_static_works_F77
=yes
13933 LDFLAGS
="$save_LDFLAGS"
13936 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
13937 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
13939 if test x
"$lt_cv_prog_compiler_static_works_F77" = xyes
; then
13942 lt_prog_compiler_static_F77
=
13946 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13947 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13948 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 lt_cv_prog_compiler_c_o_F77
=no
13952 $rm -r conftest
2>/dev
/null
13956 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13958 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13959 # Insert the option either (1) after the last *FLAGS variable, or
13960 # (2) before a word containing "conftest.", or (3) at the end.
13961 # Note that $ac_compile itself does not contain backslashes and begins
13962 # with a dollar sign (not a hyphen), so the echo should work correctly.
13963 lt_compile
=`echo "$ac_compile" | $SED \
13964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13966 -e 's:$: $lt_compiler_flag:'`
13967 (eval echo "\"\$as_me:13967: $lt_compile\"" >&5)
13968 (eval "$lt_compile" 2>out
/conftest.err
)
13970 cat out
/conftest.err
>&5
13971 echo "$as_me:13971: \$? = $ac_status" >&5
13972 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13974 # The compiler can only warn and ignore the option if not recognized
13975 # So say no if there are warnings
13976 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
13977 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13978 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13979 lt_cv_prog_compiler_c_o_F77
=yes
13984 # SGI C++ compiler will create directory out/ii_files/ for
13985 # template instantiation
13986 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13987 $rm out
/* && rmdir out
13993 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13994 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13997 hard_links
="nottested"
13998 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13999 # do not overwrite the value of need_locks provided by the user
14000 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14001 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14004 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14006 ln conftest.a conftest.b
2>&5 || hard_links
=no
14007 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14008 { echo "$as_me:$LINENO: result: $hard_links" >&5
14009 echo "${ECHO_T}$hard_links" >&6; }
14010 if test "$hard_links" = no
; then
14011 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14012 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14019 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14023 allow_undefined_flag_F77
=
14024 enable_shared_with_static_runtimes_F77
=no
14026 archive_expsym_cmds_F77
=
14027 old_archive_From_new_cmds_F77
=
14028 old_archive_from_expsyms_cmds_F77
=
14029 export_dynamic_flag_spec_F77
=
14030 whole_archive_flag_spec_F77
=
14031 thread_safe_flag_spec_F77
=
14032 hardcode_libdir_flag_spec_F77
=
14033 hardcode_libdir_flag_spec_ld_F77
=
14034 hardcode_libdir_separator_F77
=
14035 hardcode_direct_F77
=no
14036 hardcode_minus_L_F77
=no
14037 hardcode_shlibpath_var_F77
=unsupported
14038 link_all_deplibs_F77
=unknown
14039 hardcode_automatic_F77
=no
14041 module_expsym_cmds_F77
=
14042 always_export_symbols_F77
=no
14043 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14044 # include_expsyms should be a list of space-separated symbols to be *always*
14045 # included in the symbol list
14046 include_expsyms_F77
=
14047 # exclude_expsyms can be an extended regexp of symbols to exclude
14048 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14049 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14050 # as well as any symbol that contains `d'.
14051 exclude_expsyms_F77
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14053 # platforms (ab)use it in PIC code, but their linkers get confused if
14054 # the symbol is explicitly referenced. Since portable code cannot
14055 # rely on this symbol name, it's probably fine to never include it in
14056 # preloaded symbol tables.
14057 # Exclude shared library initialization/finalization symbols.
14058 extract_expsyms_cmds
=
14059 # Just being paranoid about ensuring that cc_basename is set.
14060 for cc_temp
in $compiler""; do
14062 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14063 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14068 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14071 cygwin
* | mingw
* | pw32
*)
14072 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14073 # When not using gcc, we currently assume that we are using
14074 # Microsoft Visual C++.
14075 if test "$GCC" != yes; then
14080 # we just hope/assume this is gcc and not c89 (= MSVC++)
14089 if test "$with_gnu_ld" = yes; then
14090 # If archive_cmds runs LD, not CC, wlarc should be empty
14093 # Set some defaults for GNU ld with shared library support. These
14094 # are reset later if shared libraries are not supported. Putting them
14095 # here allows them to be overridden if necessary.
14096 runpath_var
=LD_RUN_PATH
14097 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14098 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14099 # ancient GNU ld didn't support --whole-archive et. al.
14100 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14101 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14103 whole_archive_flag_spec_F77
=
14105 supports_anon_versioning
=no
14106 case `$LD -v 2>/dev/null` in
14107 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14108 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14109 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14110 *\
2.11.
*) ;; # other 2.11 versions
14111 *) supports_anon_versioning
=yes ;;
14114 # See if GNU ld supports shared libraries.
14117 # On AIX/PPC, the GNU linker is very broken
14118 if test "$host_cpu" != ia64
; then
14122 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14123 *** to be unable to reliably create shared libraries on AIX.
14124 *** Therefore, libtool is disabling shared libraries support. If you
14125 *** really care for shared libraries, you may want to modify your PATH
14126 *** so that a non-GNU linker is found, and then restart.
14133 archive_cmds_F77
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14134 hardcode_libdir_flag_spec_F77
='-L$libdir'
14135 hardcode_minus_L_F77
=yes
14137 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14138 # that the semantics of dynamic libraries on AmigaOS, at least up
14139 # to version 4, is to share data among multiple programs linked
14140 # with the same dynamic library. Since this doesn't match the
14141 # behavior of shared libraries on other platforms, we can't use
14147 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14148 allow_undefined_flag_F77
=unsupported
14149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14150 # support --undefined. This deserves some investigation. FIXME
14151 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157 cygwin
* | mingw
* | pw32
*)
14158 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14159 # as there is no search path for DLLs.
14160 hardcode_libdir_flag_spec_F77
='-L$libdir'
14161 allow_undefined_flag_F77
=unsupported
14162 always_export_symbols_F77
=no
14163 enable_shared_with_static_runtimes_F77
=yes
14164 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14166 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14167 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14168 # If the export-symbols file already is a .def file (1st line
14169 # is EXPORTS), use it as is; otherwise, prepend...
14170 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14171 cp $export_symbols $output_objdir/$soname.def;
14173 echo EXPORTS > $output_objdir/$soname.def;
14174 cat $export_symbols >> $output_objdir/$soname.def;
14176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14183 hardcode_direct_F77
=no
14184 hardcode_shlibpath_var_F77
=no
14185 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14186 export_dynamic_flag_spec_F77
='${wl}-E'
14187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14188 # Instead, shared libraries are loaded at an image base (0x10000000 by
14189 # default) and relocated if they conflict, which is a slow very memory
14190 # consuming and fragmenting process. To avoid this, we pick a random,
14191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14193 archive_cmds_F77
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14194 archive_expsym_cmds_F77
='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'
14197 gnu
* | linux
* | k
*bsd
*-gnu)
14198 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14200 case $cc_basename,$host_cpu in
14201 pgcc
*) # Portland Group C compiler
14202 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14203 tmp_addflag
=' $pic_flag'
14205 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14206 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14207 tmp_addflag
=' $pic_flag -Mnomain' ;;
14208 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14209 tmp_addflag
=' -i_dynamic' ;;
14210 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14211 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14212 ifc
* | ifort
*) # Intel Fortran compiler
14213 tmp_addflag
=' -nofor_main' ;;
14215 case `$CC -V 2>&1 | sed 5q` in
14216 *Sun\ C
*) # Sun C 5.9
14217 whole_archive_flag_spec_F77
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14218 tmp_sharedflag
='-G' ;;
14219 *Sun\ F
*) # Sun Fortran 8.3
14220 tmp_sharedflag
='-G' ;;
14222 tmp_sharedflag
='-shared' ;;
14224 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14226 if test $supports_anon_versioning = yes; then
14227 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14229 $echo "local: *; };" >> $output_objdir/$libname.ver~
14230 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14238 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14239 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14242 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14243 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14248 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14253 *** create shared libraries on Solaris systems. Therefore, libtool
14254 *** is disabling shared libraries support. We urge you to upgrade GNU
14255 *** binutils to release 2.9.1 or newer. Another option is to modify
14256 *** your PATH or compiler configuration so that the native linker is
14257 *** used, and then restart.
14260 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14261 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14262 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14268 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14269 case `$LD -v 2>&1` in
14270 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14275 *** reliably create shared libraries on SCO systems. Therefore, libtool
14276 *** is disabling shared libraries support. We urge you to upgrade GNU
14277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14278 *** your PATH or compiler configuration so that the native linker is
14279 *** used, and then restart.
14284 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14285 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14286 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14287 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14296 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14298 hardcode_direct_F77
=yes
14299 hardcode_shlibpath_var_F77
=no
14303 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14304 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14305 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14312 if test "$ld_shlibs_F77" = no
; then
14314 hardcode_libdir_flag_spec_F77
=
14315 export_dynamic_flag_spec_F77
=
14316 whole_archive_flag_spec_F77
=
14319 # PORTME fill in a description of your system's linker (not GNU ld)
14322 allow_undefined_flag_F77
=unsupported
14323 always_export_symbols_F77
=yes
14324 archive_expsym_cmds_F77
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14325 # Note: this linker hardcodes the directories in LIBPATH if there
14326 # are no directories specified by -L.
14327 hardcode_minus_L_F77
=yes
14328 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14329 # Neither direct hardcoding nor static linking is supported with a
14331 hardcode_direct_F77
=unsupported
14336 if test "$host_cpu" = ia64
; then
14337 # On IA64, the linker does run time linking by default, so we don't
14338 # have to do anything special.
14339 aix_use_runtimelinking
=no
14340 exp_sym_flag
='-Bexport'
14343 # If we're using GNU nm, then we don't want the "-C" option.
14344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14345 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14346 export_symbols_cmds_F77
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14348 export_symbols_cmds_F77
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14350 aix_use_runtimelinking
=no
14352 # Test if we are trying to use run time linking or normal
14353 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14354 # need to do runtime linking.
14355 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
14356 for ld_flag
in $LDFLAGS; do
14357 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14358 aix_use_runtimelinking
=yes
14365 exp_sym_flag
='-bexport'
14366 no_entry_flag
='-bnoentry'
14369 # When large executables or shared objects are built, AIX ld can
14370 # have problems creating the table of contents. If linking a library
14371 # or program results in "error TOC overflow" add -mminimal-toc to
14372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14375 archive_cmds_F77
=''
14376 hardcode_direct_F77
=yes
14377 hardcode_libdir_separator_F77
=':'
14378 link_all_deplibs_F77
=yes
14380 if test "$GCC" = yes; then
14381 case $host_os in aix4.
[012]|aix4.
[012].
*)
14382 # We only want to do this on AIX 4.2 and lower, the check
14383 # below for broken collect2 doesn't work under 4.3+
14384 collect2name
=`${CC} -print-prog-name=collect2`
14385 if test -f "$collect2name" && \
14386 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14388 # We have reworked collect2
14391 # We have old collect2
14392 hardcode_direct_F77
=unsupported
14393 # It fails to find uninstalled libraries when the uninstalled
14394 # path is not listed in the libpath. Setting hardcode_minus_L
14395 # to unsupported forces relinking
14396 hardcode_minus_L_F77
=yes
14397 hardcode_libdir_flag_spec_F77
='-L$libdir'
14398 hardcode_libdir_separator_F77
=
14402 shared_flag
='-shared'
14403 if test "$aix_use_runtimelinking" = yes; then
14404 shared_flag
="$shared_flag "'${wl}-G'
14408 if test "$host_cpu" = ia64
; then
14409 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14410 # chokes on -Wl,-G. The following line is correct:
14413 if test "$aix_use_runtimelinking" = yes; then
14414 shared_flag
='${wl}-G'
14416 shared_flag
='${wl}-bM:SRE'
14421 # It seems that -bexpall does not export symbols beginning with
14422 # underscore (_), so it is better to generate a list of symbols to export.
14423 always_export_symbols_F77
=yes
14424 if test "$aix_use_runtimelinking" = yes; then
14425 # Warning - without using the other runtime loading flags (-brtl),
14426 # -berok will link without error, but may produce a broken library.
14427 allow_undefined_flag_F77
='-berok'
14428 # Determine the default libpath from the value encoded in an empty executable.
14429 cat >conftest.
$ac_ext <<_ACEOF
14434 rm -f conftest.
$ac_objext conftest
$ac_exeext
14435 if { (ac_try
="$ac_link"
14436 case "(($ac_try" in
14437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_link") 2>conftest.er1
14443 grep -v '^ *+' conftest.er1 >conftest.err
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } && {
14448 test -z "$ac_f77_werror_flag" ||
14449 test ! -s conftest.err
14450 } && test -s conftest$ac_exeext &&
14451 $as_test_x conftest$ac_exeext; then
14453 lt_aix_libpath_sed='
14454 /Import File Strings/,/^$/ {
14460 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14461 # Check for a 64-bit object if we didn't find anything.
14462 if test -z "$aix_libpath"; then
14463 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14473 conftest$ac_exeext conftest.$ac_ext
14474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14476 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14477 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14479 if test "$host_cpu" = ia64; then
14480 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14481 allow_undefined_flag_F77="-z nodefs"
14482 archive_expsym_cmds_F77="\$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"
14484 # Determine the default libpath from the value encoded in an empty executable.
14485 cat >conftest.$ac_ext <<_ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (ac_try="$ac_link"
14492 case "(($ac_try" in
14493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14494 *) ac_try_echo
=$ac_try;;
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_link") 2>conftest.er1
14499 grep -v '^ *+' conftest.er1
>conftest.err
14501 cat conftest.err
>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_f77_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest
$ac_exeext &&
14507 $as_test_x conftest
$ac_exeext; then
14509 lt_aix_libpath_sed
='
14510 /Import File Strings/,/^$/ {
14516 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14517 # Check for a 64-bit object if we didn't find anything.
14518 if test -z "$aix_libpath"; then
14519 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14522 echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.
$ac_ext >&5
14528 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14529 conftest
$ac_exeext conftest.
$ac_ext
14530 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14532 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14533 # Warning - without using the other run time loading flags,
14534 # -berok will link without error, but may produce a broken library.
14535 no_undefined_flag_F77
=' ${wl}-bernotok'
14536 allow_undefined_flag_F77
=' ${wl}-berok'
14537 # Exported symbols can be pulled into shared objects from archives
14538 whole_archive_flag_spec_F77
='$convenience'
14539 archive_cmds_need_lc_F77
=yes
14540 # This is similar to how AIX traditionally builds its shared libraries.
14541 archive_expsym_cmds_F77
="\$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'
14547 archive_cmds_F77
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14548 hardcode_libdir_flag_spec_F77
='-L$libdir'
14549 hardcode_minus_L_F77
=yes
14550 # see comment about different semantics on the GNU ld section
14555 export_dynamic_flag_spec_F77
=-rdynamic
14558 cygwin
* | mingw
* | pw32
*)
14559 # When not using gcc, we currently assume that we are using
14560 # Microsoft Visual C++.
14561 # hardcode_libdir_flag_spec is actually meaningless, as there is
14562 # no search path for DLLs.
14563 hardcode_libdir_flag_spec_F77
=' '
14564 allow_undefined_flag_F77
=unsupported
14565 # Tell ltmain to make .lib files, not .a files.
14567 # Tell ltmain to make .dll files, not .so files.
14569 # FIXME: Setting linknames here is a bad hack.
14570 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14571 # The linker will automatically build a .lib file if we build a DLL.
14572 old_archive_From_new_cmds_F77
='true'
14573 # FIXME: Should let the user specify the lib program.
14574 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
14575 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14576 enable_shared_with_static_runtimes_F77
=yes
14579 darwin
* | rhapsody
*)
14581 rhapsody
* | darwin1.
[012])
14582 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14585 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14586 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14588 case ${MACOSX_DEPLOYMENT_TARGET} in
14590 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14593 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14599 archive_cmds_need_lc_F77
=no
14600 hardcode_direct_F77
=no
14601 hardcode_automatic_F77
=yes
14602 hardcode_shlibpath_var_F77
=unsupported
14603 whole_archive_flag_spec_F77
=''
14604 link_all_deplibs_F77
=yes
14605 if test "$GCC" = yes ; then
14606 output_verbose_link_cmd
='echo'
14607 archive_cmds_F77
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14608 module_cmds_F77
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14609 archive_expsym_cmds_F77
="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}"
14610 module_expsym_cmds_F77
="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}"
14612 case $cc_basename in
14614 output_verbose_link_cmd
='echo'
14615 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14616 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14618 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14619 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14629 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14630 hardcode_libdir_flag_spec_F77
='-L$libdir'
14631 hardcode_shlibpath_var_F77
=no
14638 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14639 # support. Future versions do this automatically, but an explicit c++rt0.o
14640 # does not break anything, and helps significantly (at the cost of a little
14643 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14644 hardcode_libdir_flag_spec_F77
='-R$libdir'
14645 hardcode_direct_F77
=yes
14646 hardcode_shlibpath_var_F77
=no
14649 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14651 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14652 hardcode_direct_F77
=yes
14653 hardcode_minus_L_F77
=yes
14654 hardcode_shlibpath_var_F77
=no
14657 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14658 freebsd
* | dragonfly
*)
14659 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14660 hardcode_libdir_flag_spec_F77
='-R$libdir'
14661 hardcode_direct_F77
=yes
14662 hardcode_shlibpath_var_F77
=no
14666 if test "$GCC" = yes; then
14667 archive_cmds_F77
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14669 archive_cmds_F77
='$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'
14671 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14672 hardcode_libdir_separator_F77
=:
14673 hardcode_direct_F77
=yes
14675 # hardcode_minus_L: Not really in the search PATH,
14676 # but as the default location of the library.
14677 hardcode_minus_L_F77
=yes
14678 export_dynamic_flag_spec_F77
='${wl}-E'
14682 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14683 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14685 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14687 if test "$with_gnu_ld" = no
; then
14688 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14689 hardcode_libdir_separator_F77
=:
14691 hardcode_direct_F77
=yes
14692 export_dynamic_flag_spec_F77
='${wl}-E'
14694 # hardcode_minus_L: Not really in the search PATH,
14695 # but as the default location of the library.
14696 hardcode_minus_L_F77
=yes
14701 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14704 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14707 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14710 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14716 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14719 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14722 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14726 if test "$with_gnu_ld" = no
; then
14727 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14728 hardcode_libdir_separator_F77
=:
14732 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14733 hardcode_direct_F77
=no
14734 hardcode_shlibpath_var_F77
=no
14737 hardcode_direct_F77
=yes
14738 export_dynamic_flag_spec_F77
='${wl}-E'
14740 # hardcode_minus_L: Not really in the search PATH,
14741 # but as the default location of the library.
14742 hardcode_minus_L_F77
=yes
14748 irix5
* | irix6
* | nonstopux
*)
14749 if test "$GCC" = yes; then
14750 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14752 archive_cmds_F77
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14753 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14755 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14756 hardcode_libdir_separator_F77
=:
14757 link_all_deplibs_F77
=yes
14761 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14762 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14764 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14766 hardcode_libdir_flag_spec_F77
='-R$libdir'
14767 hardcode_direct_F77
=yes
14768 hardcode_shlibpath_var_F77
=no
14772 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_direct_F77
=yes
14774 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14775 hardcode_libdir_separator_F77
=:
14776 hardcode_shlibpath_var_F77
=no
14780 if test -f /usr
/libexec
/ld.so
; then
14781 hardcode_direct_F77
=yes
14782 hardcode_shlibpath_var_F77
=no
14783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14784 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14785 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14786 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14787 export_dynamic_flag_spec_F77
='${wl}-E'
14790 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14791 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_libdir_flag_spec_F77
='-R$libdir'
14795 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14796 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14806 hardcode_libdir_flag_spec_F77
='-L$libdir'
14807 hardcode_minus_L_F77
=yes
14808 allow_undefined_flag_F77
=unsupported
14809 archive_cmds_F77
='$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'
14810 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14814 if test "$GCC" = yes; then
14815 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14816 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14818 allow_undefined_flag_F77
=' -expect_unresolved \*'
14819 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14821 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14822 hardcode_libdir_separator_F77
=:
14825 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14826 if test "$GCC" = yes; then
14827 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14828 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14829 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14831 allow_undefined_flag_F77
=' -expect_unresolved \*'
14832 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14833 archive_expsym_cmds_F77
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14834 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14836 # Both c and cxx compiler support -rpath directly
14837 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14839 hardcode_libdir_separator_F77
=:
14843 no_undefined_flag_F77
=' -z text'
14844 if test "$GCC" = yes; then
14846 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14848 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14851 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14853 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14855 hardcode_libdir_flag_spec_F77
='-R$libdir'
14856 hardcode_shlibpath_var_F77
=no
14858 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14860 # The compiler driver will combine and reorder linker options,
14861 # but understands `-z linker_flag'. GCC discards it without `$wl',
14862 # but is careful enough not to reorder.
14863 # Supported since Solaris 2.6 (maybe 2.5.1?)
14864 if test "$GCC" = yes; then
14865 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14867 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
14871 link_all_deplibs_F77
=yes
14875 if test "x$host_vendor" = xsequent
; then
14876 # Use $CC to link under sequent, because it throws in some extra .o
14877 # files that make .init and .fini sections work.
14878 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14880 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14882 hardcode_libdir_flag_spec_F77
='-L$libdir'
14883 hardcode_direct_F77
=yes
14884 hardcode_minus_L_F77
=yes
14885 hardcode_shlibpath_var_F77
=no
14889 case $host_vendor in
14891 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_direct_F77
=yes # is this really true???
14895 ## LD is ld it makes a PLAMLIB
14896 ## CC just makes a GrossModule.
14897 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14898 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14899 hardcode_direct_F77
=no
14902 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14903 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14906 runpath_var
='LD_RUN_PATH'
14907 hardcode_shlibpath_var_F77
=no
14911 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_shlibpath_var_F77
=no
14913 export_dynamic_flag_spec_F77
='-Bexport'
14917 if test -d /usr
/nec
; then
14918 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919 hardcode_shlibpath_var_F77
=no
14920 runpath_var
=LD_RUN_PATH
14921 hardcode_runpath_var
=yes
14926 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
14927 no_undefined_flag_F77
='${wl}-z,text'
14928 archive_cmds_need_lc_F77
=no
14929 hardcode_shlibpath_var_F77
=no
14930 runpath_var
='LD_RUN_PATH'
14932 if test "$GCC" = yes; then
14933 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14934 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14936 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14937 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14941 sysv5
* | sco3.2v5
* | sco5v6
*)
14942 # Note: We can NOT use -z defs as we might desire, because we do not
14943 # link with -lc, and that would cause any symbols used from libc to
14944 # always be unresolved, which means just about no library would
14945 # ever link correctly. If we're not using GNU ld we use -z text
14946 # though, which does catch some bad symbols but isn't as heavy-handed
14948 no_undefined_flag_F77
='${wl}-z,text'
14949 allow_undefined_flag_F77
='${wl}-z,nodefs'
14950 archive_cmds_need_lc_F77
=no
14951 hardcode_shlibpath_var_F77
=no
14952 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14953 hardcode_libdir_separator_F77
=':'
14954 link_all_deplibs_F77
=yes
14955 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14956 runpath_var
='LD_RUN_PATH'
14958 if test "$GCC" = yes; then
14959 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14962 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14963 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14968 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969 hardcode_libdir_flag_spec_F77
='-L$libdir'
14970 hardcode_shlibpath_var_F77
=no
14979 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14980 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14981 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14984 # Do we need to explicitly link libc?
14986 case "x$archive_cmds_need_lc_F77" in
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_F77
=yes
14991 if test "$enable_shared" = yes && test "$GCC" = yes; then
14992 case $archive_cmds_F77 in
14994 # FIXME: we may have to deal with multi-command sequences.
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15003 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } 2>conftest.err
; then
15012 libobjs
=conftest.
$ac_objext
15014 wl
=$lt_prog_compiler_wl_F77
15015 pic_flag
=$lt_prog_compiler_pic_F77
15021 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15022 allow_undefined_flag_F77
=
15023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }
15029 archive_cmds_need_lc_F77
=no
15031 archive_cmds_need_lc_F77
=yes
15033 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15035 cat conftest.err
1>&5
15038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15046 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15048 library_names_spec
=
15049 libname_spec
='lib$name'
15053 postuninstall_cmds
=
15057 shlibpath_overrides_runpath
=unknown
15059 dynamic_linker
="$host_os ld.so"
15060 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15062 need_lib_prefix
=unknown
15063 hardcode_into_libs
=no
15065 # when you set need_version to no, make sure it does not cause -set_version
15066 # flags to be left without arguments
15067 need_version
=unknown
15072 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15073 shlibpath_var
=LIBPATH
15075 # AIX 3 has no versioning support, so we append a major version to the name.
15076 soname_spec
='${libname}${release}${shared_ext}$major'
15083 hardcode_into_libs
=yes
15084 if test "$host_cpu" = ia64
; then
15085 # AIX 5 supports IA64
15086 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15087 shlibpath_var
=LD_LIBRARY_PATH
15089 # With GCC up to 2.95.x, collect2 would create an import file
15090 # for dependence libraries. The import file would start with
15091 # the line `#! .'. This would cause the generated library to
15092 # depend on `.', always an invalid library. This was fixed in
15093 # development snapshots of GCC prior to 3.0.
15095 aix4 | aix4.
[01] | aix4.
[01].
*)
15096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15098 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15101 can_build_shared
=no
15105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15106 # soname into executable. Probably we can add versioning support to
15107 # collect2, so additional links can be useful in future.
15108 if test "$aix_use_runtimelinking" = yes; then
15109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15110 # instead of lib<name>.a to let people know that these are not
15111 # typical AIX shared libraries.
15112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114 # We preserve .a as extension for shared libraries through AIX4.2
15115 # and later when we are not doing run time linking.
15116 library_names_spec
='${libname}${release}.a $libname.a'
15117 soname_spec
='${libname}${release}${shared_ext}$major'
15119 shlibpath_var
=LIBPATH
15124 library_names_spec
='$libname.ixlibrary $libname.a'
15125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15126 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15130 library_names_spec
='${libname}${shared_ext}'
15131 dynamic_linker
="$host_os ld.so"
15132 shlibpath_var
=LIBRARY_PATH
15138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139 soname_spec
='${libname}${release}${shared_ext}$major'
15140 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15141 shlibpath_var
=LD_LIBRARY_PATH
15142 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15143 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15144 # the default ld.so.conf also contains /usr/contrib/lib and
15145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15146 # libtool to hard-code these into programs
15149 cygwin
* | mingw
* | pw32
*)
15150 version_type
=windows
15155 case $GCC,$host_os in
15156 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15157 library_names_spec
='$libname.dll.a'
15158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15159 postinstall_cmds
='base_file=`basename \${file}`~
15160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15161 dldir=$destdir/`dirname \$dlpath`~
15162 test -d \$dldir || mkdir -p \$dldir~
15163 $install_prog $dir/$dlname \$dldir/$dlname~
15164 chmod a+x \$dldir/$dlname'
15165 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15166 dlpath=$dir/\$dldll~
15168 shlibpath_overrides_runpath
=yes
15172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15173 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15174 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15177 # MinGW DLLs use traditional 'lib' prefix
15178 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15179 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15180 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15181 # It is most probably a Windows format PATH printed by
15182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15183 # path with ; separators, and with drive letters. We can handle the
15184 # drive letters (cygwin fileutils understands them), so leave them,
15185 # especially as we might pass files found there to a mingw objdump,
15186 # which wouldn't understand a cygwinified path. Ahh.
15187 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15189 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15193 # pw32 DLLs use 'pw' prefix rather than 'lib'
15194 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15200 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15203 dynamic_linker
='Win32 ld.exe'
15204 # FIXME: first we should search . and the directory the executable is in
15208 darwin
* | rhapsody
*)
15209 dynamic_linker
="$host_os dyld"
15210 version_type
=darwin
15213 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15214 soname_spec
='${libname}${release}${major}$shared_ext'
15215 shlibpath_overrides_runpath
=yes
15216 shlibpath_var
=DYLD_LIBRARY_PATH
15217 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15219 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15227 soname_spec
='${libname}${release}${shared_ext}$major'
15228 shlibpath_var
=LD_LIBRARY_PATH
15235 freebsd
* | dragonfly
*)
15236 # DragonFly does not have aout. When/if they implement a new
15237 # versioning mechanism, adjust this.
15238 if test -x /usr
/bin
/objformat
; then
15239 objformat
=`/usr/bin/objformat`
15242 freebsd
[123]*) objformat
=aout
;;
15243 *) objformat
=elf
;;
15246 version_type
=freebsd-
$objformat
15247 case $version_type in
15249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15254 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15258 shlibpath_var
=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath
=yes
15263 freebsd3.
[01]* | freebsdelf3.
[01]*)
15264 shlibpath_overrides_runpath
=yes
15265 hardcode_into_libs
=yes
15267 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15268 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15269 shlibpath_overrides_runpath
=no
15270 hardcode_into_libs
=yes
15272 *) # from 4.6 on, and DragonFly
15273 shlibpath_overrides_runpath
=yes
15274 hardcode_into_libs
=yes
15283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15284 soname_spec
='${libname}${release}${shared_ext}$major'
15285 shlibpath_var
=LD_LIBRARY_PATH
15286 hardcode_into_libs
=yes
15289 hpux9
* | hpux10
* | hpux11
*)
15290 # Give a soname corresponding to the major version so that dld.sl refuses to
15291 # link against other versions.
15298 hardcode_into_libs
=yes
15299 dynamic_linker
="$host_os dld.so"
15300 shlibpath_var
=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303 soname_spec
='${libname}${release}${shared_ext}$major'
15304 if test "X$HPUX_IA64_MODE" = X32
; then
15305 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15307 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15309 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15313 hardcode_into_libs
=yes
15314 dynamic_linker
="$host_os dld.sl"
15315 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15316 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 soname_spec
='${libname}${release}${shared_ext}$major'
15319 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15320 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15324 dynamic_linker
="$host_os dld.sl"
15325 shlibpath_var
=SHLIB_PATH
15326 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328 soname_spec
='${libname}${release}${shared_ext}$major'
15331 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15332 postinstall_cmds
='chmod 555 $lib'
15339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15340 soname_spec
='${libname}${release}${shared_ext}$major'
15341 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15342 shlibpath_var
=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath
=no
15344 hardcode_into_libs
=yes
15347 irix5
* | irix6
* | nonstopux
*)
15349 nonstopux
*) version_type
=nonstopux
;;
15351 if test "$lt_cv_prog_gnu_ld" = yes; then
15359 soname_spec
='${libname}${release}${shared_ext}$major'
15360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15362 irix5
* | nonstopux
*)
15363 libsuff
= shlibsuff
=
15366 case $LD in # libtool.m4 will add one of these switches to LD
15367 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15368 libsuff
= shlibsuff
= libmagic
=32-bit;;
15369 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15370 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15371 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15372 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15373 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15377 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15378 shlibpath_overrides_runpath
=no
15379 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15380 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15381 hardcode_into_libs
=yes
15384 # No shared lib support for Linux oldld, aout, or coff.
15385 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15389 # This must be Linux ELF.
15390 linux
* | k
*bsd
*-gnu)
15394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec
='${libname}${release}${shared_ext}$major'
15396 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15397 shlibpath_var
=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath
=no
15399 # This implies no fast_install, which is unacceptable.
15400 # Some rework will be needed to allow for fast_install
15401 # before this can be enabled.
15402 hardcode_into_libs
=yes
15404 # Append ld.so.conf contents to the search path
15405 if test -f /etc
/ld.so.conf
; then
15406 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;/^$/d' | tr '\n' ' '`
15407 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15410 # We used to test for /lib/ld.so.1 and disable shared libraries on
15411 # powerpc, because MkLinux only supported shared libraries with the
15412 # GNU dynamic linker. Since this was broken with cross compilers,
15413 # most powerpc-linux boxes support dynamic linking these days and
15414 # people can always --disable-shared, the test was removed, and we
15415 # assume the GNU/Linux dynamic linker is in use.
15416 dynamic_linker
='GNU/Linux ld.so'
15423 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15425 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15426 dynamic_linker
='NetBSD (a.out) ld.so'
15428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15429 soname_spec
='${libname}${release}${shared_ext}$major'
15430 dynamic_linker
='NetBSD ld.elf_so'
15432 shlibpath_var
=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath
=yes
15434 hardcode_into_libs
=yes
15439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440 shlibpath_var
=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath
=yes
15448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec
='${libname}${release}${shared_ext}$major'
15450 shlibpath_var
=LD_LIBRARY_PATH
15451 shlibpath_overrides_runpath
=yes
15456 sys_lib_dlsearch_path_spec
="/usr/lib"
15458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15460 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15461 *) need_version
=no
;;
15463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15464 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15465 shlibpath_var
=LD_LIBRARY_PATH
15466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15468 openbsd2.
[89] | openbsd2.
[89].
*)
15469 shlibpath_overrides_runpath
=no
15472 shlibpath_overrides_runpath
=yes
15476 shlibpath_overrides_runpath
=yes
15481 libname_spec
='$name'
15484 library_names_spec
='$libname${shared_ext} $libname.a'
15485 dynamic_linker
='OS/2 ld.exe'
15486 shlibpath_var
=LIBPATH
15489 osf3
* | osf4
* | osf5
*)
15493 soname_spec
='${libname}${release}${shared_ext}$major'
15494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 shlibpath_var
=LD_LIBRARY_PATH
15496 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15497 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509 soname_spec
='${libname}${release}${shared_ext}$major'
15510 shlibpath_var
=LD_LIBRARY_PATH
15511 shlibpath_overrides_runpath
=yes
15512 hardcode_into_libs
=yes
15513 # ldd complains unless libraries are executable
15514 postinstall_cmds
='chmod +x $lib'
15519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15520 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15521 shlibpath_var
=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath
=yes
15523 if test "$with_gnu_ld" = yes; then
15531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec
='${libname}${release}${shared_ext}$major'
15533 shlibpath_var
=LD_LIBRARY_PATH
15534 case $host_vendor in
15536 shlibpath_overrides_runpath
=no
15538 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15539 runpath_var
=LD_RUN_PATH
15547 shlibpath_overrides_runpath
=no
15548 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15554 if test -d /usr
/nec
;then
15556 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15557 soname_spec
='$libname${shared_ext}.$major'
15558 shlibpath_var
=LD_LIBRARY_PATH
15562 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15563 version_type
=freebsd-elf
15566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15567 soname_spec
='${libname}${release}${shared_ext}$major'
15568 shlibpath_var
=LD_LIBRARY_PATH
15569 hardcode_into_libs
=yes
15570 if test "$with_gnu_ld" = yes; then
15571 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15572 shlibpath_overrides_runpath
=no
15574 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15575 shlibpath_overrides_runpath
=yes
15578 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15582 sys_lib_dlsearch_path_spec
='/usr/lib'
15587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588 soname_spec
='${libname}${release}${shared_ext}$major'
15589 shlibpath_var
=LD_LIBRARY_PATH
15596 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15597 echo "${ECHO_T}$dynamic_linker" >&6; }
15598 test "$dynamic_linker" = no
&& can_build_shared
=no
15600 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
15606 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15607 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
15613 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15615 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15616 if test "$GCC" = yes; then
15617 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15620 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15621 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15622 hardcode_action_F77
=
15623 if test -n "$hardcode_libdir_flag_spec_F77" || \
15624 test -n "$runpath_var_F77" || \
15625 test "X$hardcode_automatic_F77" = "Xyes" ; then
15627 # We can hardcode non-existant directories.
15628 if test "$hardcode_direct_F77" != no
&&
15629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15630 # have to relink, otherwise we might link with an installed library
15631 # when we should be linking with a yet-to-be-installed one
15632 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15633 test "$hardcode_minus_L_F77" != no
; then
15634 # Linking always hardcodes the temporary library directory.
15635 hardcode_action_F77
=relink
15637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15638 hardcode_action_F77
=immediate
15641 # We cannot hardcode anything, or else we can only hardcode existing
15643 hardcode_action_F77
=unsupported
15645 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15646 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15648 if test "$hardcode_action_F77" = relink
; then
15649 # Fast installation is not supported
15650 enable_fast_install
=no
15651 elif test "$shlibpath_overrides_runpath" = yes ||
15652 test "$enable_shared" = no
; then
15653 # Fast installation is not necessary
15654 enable_fast_install
=needless
15658 # The else clause should only fire when bootstrapping the
15659 # libtool distribution, otherwise you forgot to ship ltmain.sh
15660 # with your package, and you will get complaints that there are
15661 # no rules to generate ltmain.sh.
15662 if test -f "$ltmain"; then
15663 # See if we are running on zsh, and set the options which allow our commands through
15664 # without removal of \ escapes.
15665 if test -n "${ZSH_VERSION+set}" ; then
15666 setopt NO_GLOB_SUBST
15668 # Now quote all the things that may contain metacharacters while being
15669 # careful not to overquote the AC_SUBSTed values. We take copies of the
15670 # variables and quote the copies for generation of the libtool script.
15671 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15673 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15674 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15675 deplibs_check_method reload_flag reload_cmds need_locks \
15676 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15677 lt_cv_sys_global_symbol_to_c_name_address \
15678 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15679 old_postinstall_cmds old_postuninstall_cmds \
15683 lt_prog_compiler_wl_F77 \
15684 lt_prog_compiler_pic_F77 \
15685 lt_prog_compiler_static_F77 \
15686 lt_prog_compiler_no_builtin_flag_F77 \
15687 export_dynamic_flag_spec_F77 \
15688 thread_safe_flag_spec_F77 \
15689 whole_archive_flag_spec_F77 \
15690 enable_shared_with_static_runtimes_F77 \
15691 old_archive_cmds_F77 \
15692 old_archive_from_new_cmds_F77 \
15693 predep_objects_F77 \
15694 postdep_objects_F77 \
15697 compiler_lib_search_path_F77 \
15698 compiler_lib_search_dirs_F77 \
15700 archive_expsym_cmds_F77 \
15701 postinstall_cmds_F77 \
15702 postuninstall_cmds_F77 \
15703 old_archive_from_expsyms_cmds_F77 \
15704 allow_undefined_flag_F77 \
15705 no_undefined_flag_F77 \
15706 export_symbols_cmds_F77 \
15707 hardcode_libdir_flag_spec_F77 \
15708 hardcode_libdir_flag_spec_ld_F77 \
15709 hardcode_libdir_separator_F77 \
15710 hardcode_automatic_F77 \
15712 module_expsym_cmds_F77 \
15713 lt_cv_prog_compiler_c_o_F77 \
15714 fix_srcfile_path_F77 \
15715 exclude_expsyms_F77 \
15716 include_expsyms_F77
; do
15719 old_archive_cmds_F77 | \
15720 old_archive_from_new_cmds_F77 | \
15721 archive_cmds_F77 | \
15722 archive_expsym_cmds_F77 | \
15723 module_cmds_F77 | \
15724 module_expsym_cmds_F77 | \
15725 old_archive_from_expsyms_cmds_F77 | \
15726 export_symbols_cmds_F77 | \
15727 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15728 postinstall_cmds | postuninstall_cmds | \
15729 old_postinstall_cmds | old_postuninstall_cmds | \
15730 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15731 # Double-quote double-evaled strings.
15732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15741 *'\$0 --fallback-echo"')
15742 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15748 cat <<__EOF__ >> "$cfgfile"
15749 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15751 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15753 # Shell to use when invoking shell scripts.
15756 # Whether or not to build shared libraries.
15757 build_libtool_libs=$enable_shared
15759 # Whether or not to build static libraries.
15760 build_old_libs=$enable_static
15762 # Whether or not to add -lc for building shared libraries.
15763 build_libtool_need_lc=$archive_cmds_need_lc_F77
15765 # Whether or not to disallow shared libs when runtime libs are static
15766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15768 # Whether or not to optimize for fast installation.
15769 fast_install=$enable_fast_install
15772 host_alias=$host_alias
15776 # The build system.
15777 build_alias=$build_alias
15781 # An echo program that does not interpret backslashes.
15786 AR_FLAGS=$lt_AR_FLAGS
15791 # LTCC compiler flags.
15792 LTCFLAGS=$lt_LTCFLAGS
15794 # A language-specific compiler.
15795 CC=$lt_compiler_F77
15797 # Is the compiler the GNU C compiler?
15803 # The linker used to build libraries.
15806 # Whether we need hard or soft links.
15809 # A BSD-compatible nm program.
15812 # A symbol stripping program
15815 # Used to examine libraries when file_magic_cmd begins "file"
15816 MAGIC_CMD=$MAGIC_CMD
15818 # Used on cygwin: DLL creation program.
15821 # Used on cygwin: object dumper.
15824 # Used on cygwin: assembler.
15827 # The name of the directory that contains temporary libtool files.
15830 # How to create reloadable object files.
15831 reload_flag=$lt_reload_flag
15832 reload_cmds=$lt_reload_cmds
15834 # How to pass a linker flag through the compiler.
15835 wl=$lt_lt_prog_compiler_wl_F77
15837 # Object file suffix (normally "o").
15838 objext="$ac_objext"
15840 # Old archive suffix (normally "a").
15843 # Shared library suffix (normally ".so").
15844 shrext_cmds='$shrext_cmds'
15846 # Executable file suffix (normally "").
15849 # Additional compiler flags for building library objects.
15850 pic_flag=$lt_lt_prog_compiler_pic_F77
15853 # What is the maximum length of a command?
15854 max_cmd_len=$lt_cv_sys_max_cmd_len
15856 # Does compiler simultaneously support -c and -o options?
15857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15859 # Must we lock files when doing compilation?
15860 need_locks=$lt_need_locks
15862 # Do we need the lib prefix for modules?
15863 need_lib_prefix=$need_lib_prefix
15865 # Do we need a version for libraries?
15866 need_version=$need_version
15868 # Whether dlopen is supported.
15869 dlopen_support=$enable_dlopen
15871 # Whether dlopen of programs is supported.
15872 dlopen_self=$enable_dlopen_self
15874 # Whether dlopen of statically linked programs is supported.
15875 dlopen_self_static=$enable_dlopen_self_static
15877 # Compiler flag to prevent dynamic linking.
15878 link_static_flag=$lt_lt_prog_compiler_static_F77
15880 # Compiler flag to turn off builtin functions.
15881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15883 # Compiler flag to allow reflexive dlopens.
15884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15886 # Compiler flag to generate shared objects directly from archives.
15887 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15889 # Compiler flag to generate thread-safe objects.
15890 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15892 # Library versioning type.
15893 version_type=$version_type
15895 # Format of library name prefix.
15896 libname_spec=$lt_libname_spec
15898 # List of archive names. First name is the real one, the rest are links.
15899 # The last name is the one that the linker finds with -lNAME.
15900 library_names_spec=$lt_library_names_spec
15902 # The coded name of the library, if different from the real name.
15903 soname_spec=$lt_soname_spec
15905 # Commands used to build and install an old-style archive.
15907 old_archive_cmds=$lt_old_archive_cmds_F77
15908 old_postinstall_cmds=$lt_old_postinstall_cmds
15909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15911 # Create an old-style archive from a shared archive.
15912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15914 # Create a temporary old-style archive to link instead of a shared archive.
15915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15917 # Commands used to build and install a shared archive.
15918 archive_cmds=$lt_archive_cmds_F77
15919 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15920 postinstall_cmds=$lt_postinstall_cmds
15921 postuninstall_cmds=$lt_postuninstall_cmds
15923 # Commands used to build a loadable module (assumed same as above if empty)
15924 module_cmds=$lt_module_cmds_F77
15925 module_expsym_cmds=$lt_module_expsym_cmds_F77
15927 # Commands to strip libraries.
15928 old_striplib=$lt_old_striplib
15929 striplib=$lt_striplib
15931 # Dependencies to place before the objects being linked to create a
15933 predep_objects=$lt_predep_objects_F77
15935 # Dependencies to place after the objects being linked to create a
15937 postdep_objects=$lt_postdep_objects_F77
15939 # Dependencies to place before the objects being linked to create a
15941 predeps=$lt_predeps_F77
15943 # Dependencies to place after the objects being linked to create a
15945 postdeps=$lt_postdeps_F77
15947 # The directories searched by this compiler when creating a shared
15949 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15951 # The library search path used internally by the compiler when linking
15952 # a shared library.
15953 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15955 # Method to check whether dependent libraries are shared objects.
15956 deplibs_check_method=$lt_deplibs_check_method
15958 # Command to use when deplibs_check_method == file_magic.
15959 file_magic_cmd=$lt_file_magic_cmd
15961 # Flag that allows shared libraries with undefined symbols to be built.
15962 allow_undefined_flag=$lt_allow_undefined_flag_F77
15964 # Flag that forces no undefined symbols.
15965 no_undefined_flag=$lt_no_undefined_flag_F77
15967 # Commands used to finish a libtool library installation in a directory.
15968 finish_cmds=$lt_finish_cmds
15970 # Same as above, but a single script fragment to be evaled but not shown.
15971 finish_eval=$lt_finish_eval
15973 # Take the output of nm and produce a listing of raw symbols and C names.
15974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15976 # Transform the output of nm in a proper C declaration
15977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15979 # Transform the output of nm in a C name address pair
15980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15982 # This is the shared library runtime path variable.
15983 runpath_var=$runpath_var
15985 # This is the shared library path variable.
15986 shlibpath_var=$shlibpath_var
15988 # Is shlibpath searched before the hard-coded library search path?
15989 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15991 # How to hardcode a shared library path into an executable.
15992 hardcode_action=$hardcode_action_F77
15994 # Whether we should hardcode library paths into libraries.
15995 hardcode_into_libs=$hardcode_into_libs
15997 # Flag to hardcode \$libdir into a binary during linking.
15998 # This must work even if \$libdir does not exist.
15999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16001 # If ld is used when linking, flag to hardcode \$libdir into
16002 # a binary during linking. This must work even if \$libdir does
16004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16006 # Whether we need a single -rpath flag with a separated argument.
16007 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16009 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16010 # resulting binary.
16011 hardcode_direct=$hardcode_direct_F77
16013 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16014 # resulting binary.
16015 hardcode_minus_L=$hardcode_minus_L_F77
16017 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16018 # the resulting binary.
16019 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16021 # Set to yes if building a shared library automatically hardcodes DIR into the library
16022 # and all subsequent libraries and executables linked against it.
16023 hardcode_automatic=$hardcode_automatic_F77
16025 # Variables whose values should be saved in libtool wrapper scripts and
16026 # restored at relink time.
16027 variables_saved_for_relink="$variables_saved_for_relink"
16029 # Whether libtool must link a program against all its dependency libraries.
16030 link_all_deplibs=$link_all_deplibs_F77
16032 # Compile-time system search path for libraries
16033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16035 # Run-time system search path for libraries
16036 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16038 # Fix the shell variable \$srcfile for the compiler.
16039 fix_srcfile_path=$lt_fix_srcfile_path
16041 # Set to yes if exported symbols are required.
16042 always_export_symbols=$always_export_symbols_F77
16044 # The commands to list exported symbols.
16045 export_symbols_cmds=$lt_export_symbols_cmds_F77
16047 # The commands to extract the exported symbol list from a shared archive.
16048 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16050 # Symbols that should not be listed in the preloaded symbols.
16051 exclude_expsyms=$lt_exclude_expsyms_F77
16053 # Symbols that must always be exported.
16054 include_expsyms=$lt_include_expsyms_F77
16056 # ### END LIBTOOL TAG CONFIG: $tagname
16062 # If there is no Makefile yet, we rely on a make rule to execute
16063 # `config.status --recheck' to rerun these tests and create the
16064 # libtool script then.
16065 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16066 if test -f "$ltmain_in"; then
16067 test -f Makefile
&& make "$ltmain"
16073 ac_cpp
='$CPP $CPPFLAGS'
16074 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16075 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16076 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16086 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16089 # Source file extension for Java test sources.
16092 # Object file extension for compiled Java test sources.
16096 # Code to be used in simple compile tests
16097 lt_simple_compile_test_code
="class foo {}"
16099 # Code to be used in simple link tests
16100 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16104 # If no C compiler was specified, use CC.
16107 # If no C compiler flags were specified, use CFLAGS.
16108 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16110 # Allow CC to be a program name with arguments.
16114 # save warnings/boilerplate of simple test code
16115 ac_outfile
=conftest.
$ac_objext
16116 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16117 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16118 _lt_compiler_boilerplate
=`cat conftest.err`
16121 ac_outfile
=conftest.
$ac_objext
16122 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16123 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16124 _lt_linker_boilerplate
=`cat conftest.err`
16128 # Allow CC to be a program name with arguments.
16133 for cc_temp
in $compiler""; do
16135 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16136 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16141 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16144 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16145 archive_cmds_need_lc_GCJ
=no
16147 old_archive_cmds_GCJ
=$old_archive_cmds
16150 ## There is no encapsulation within the following macros, do not change
16151 ## the running order or otherwise move them around unless you know exactly
16152 ## what you are doing...
16154 lt_prog_compiler_no_builtin_flag_GCJ
=
16156 if test "$GCC" = yes; then
16157 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16160 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16161 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16162 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 lt_cv_prog_compiler_rtti_exceptions
=no
16166 ac_outfile
=conftest.
$ac_objext
16167 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16168 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16169 # Insert the option either (1) after the last *FLAGS variable, or
16170 # (2) before a word containing "conftest.", or (3) at the end.
16171 # Note that $ac_compile itself does not contain backslashes and begins
16172 # with a dollar sign (not a hyphen), so the echo should work correctly.
16173 # The option is referenced via a variable to avoid confusing sed.
16174 lt_compile
=`echo "$ac_compile" | $SED \
16175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16177 -e 's:$: $lt_compiler_flag:'`
16178 (eval echo "\"\$as_me:16178: $lt_compile\"" >&5)
16179 (eval "$lt_compile" 2>conftest.err
)
16181 cat conftest.err
>&5
16182 echo "$as_me:16182: \$? = $ac_status" >&5
16183 if (exit $ac_status) && test -s "$ac_outfile"; then
16184 # The compiler can only warn and ignore the option if not recognized
16185 # So say no if there are warnings other than the usual output.
16186 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16187 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16188 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16189 lt_cv_prog_compiler_rtti_exceptions
=yes
16195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16196 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16198 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16199 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16206 lt_prog_compiler_wl_GCJ
=
16207 lt_prog_compiler_pic_GCJ
=
16208 lt_prog_compiler_static_GCJ
=
16210 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16213 if test "$GCC" = yes; then
16214 lt_prog_compiler_wl_GCJ
='-Wl,'
16215 lt_prog_compiler_static_GCJ
='-static'
16219 # All AIX code is PIC.
16220 if test "$host_cpu" = ia64
; then
16221 # AIX 5 now supports IA64 processor
16222 lt_prog_compiler_static_GCJ
='-Bstatic'
16227 # FIXME: we need at least 68020 code to build shared libraries, but
16228 # adding the `-m68020' flag to GCC prevents building anything better,
16230 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16233 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16234 # PIC is the default for these OSes.
16237 mingw
* | cygwin
* | pw32
* | os2
*)
16238 # This hack is so that the source file can tell whether it is being
16239 # built for inclusion in a dll (and should export symbols for example).
16240 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16241 # (--disable-auto-import) libraries
16245 darwin
* | rhapsody
*)
16246 # PIC is the default on this platform
16247 # Common symbols not allowed in MH_DYLIB files
16248 lt_prog_compiler_pic_GCJ
='-fno-common'
16252 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16253 # Instead, we relocate shared libraries at runtime.
16257 # Just because we use GCC doesn't mean we suddenly get shared libraries
16258 # on systems that don't support them.
16259 lt_prog_compiler_can_build_shared_GCJ
=no
16264 if test -d /usr
/nec
; then
16265 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16271 # not for PA HP-UX.
16277 lt_prog_compiler_pic_GCJ
='-fPIC'
16283 lt_prog_compiler_pic_GCJ
='-fPIC'
16287 # PORTME Check for flag to pass linker flags through the system compiler.
16290 lt_prog_compiler_wl_GCJ
='-Wl,'
16291 if test "$host_cpu" = ia64
; then
16292 # AIX 5 now supports IA64 processor
16293 lt_prog_compiler_static_GCJ
='-Bstatic'
16295 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16299 # PIC is the default on this platform
16300 # Common symbols not allowed in MH_DYLIB files
16301 case $cc_basename in
16303 lt_prog_compiler_pic_GCJ
='-qnocommon'
16304 lt_prog_compiler_wl_GCJ
='-Wl,'
16309 mingw
* | cygwin
* | pw32
* | os2
*)
16310 # This hack is so that the source file can tell whether it is being
16311 # built for inclusion in a dll (and should export symbols for example).
16315 hpux9
* | hpux10
* | hpux11
*)
16316 lt_prog_compiler_wl_GCJ
='-Wl,'
16317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16318 # not for PA HP-UX.
16324 lt_prog_compiler_pic_GCJ
='+Z'
16327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16328 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16331 irix5
* | irix6
* | nonstopux
*)
16332 lt_prog_compiler_wl_GCJ
='-Wl,'
16333 # PIC (with -KPIC) is the default.
16334 lt_prog_compiler_static_GCJ
='-non_shared'
16338 lt_prog_compiler_pic_GCJ
='-KPIC'
16339 lt_prog_compiler_static_GCJ
='-Bstatic'
16342 linux
* | k
*bsd
*-gnu)
16343 case $cc_basename in
16345 lt_prog_compiler_wl_GCJ
='-Wl,'
16346 lt_prog_compiler_pic_GCJ
='-KPIC'
16347 lt_prog_compiler_static_GCJ
='-static'
16349 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16350 # Portland Group compilers (*not* the Pentium gcc compiler,
16351 # which looks to be a dead project)
16352 lt_prog_compiler_wl_GCJ
='-Wl,'
16353 lt_prog_compiler_pic_GCJ
='-fpic'
16354 lt_prog_compiler_static_GCJ
='-Bstatic'
16357 lt_prog_compiler_wl_GCJ
='-Wl,'
16358 # All Alpha code is PIC.
16359 lt_prog_compiler_static_GCJ
='-non_shared'
16362 case `$CC -V 2>&1 | sed 5q` in
16365 lt_prog_compiler_pic_GCJ
='-KPIC'
16366 lt_prog_compiler_static_GCJ
='-Bstatic'
16367 lt_prog_compiler_wl_GCJ
='-Wl,'
16370 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16371 lt_prog_compiler_pic_GCJ
='-KPIC'
16372 lt_prog_compiler_static_GCJ
='-Bstatic'
16373 lt_prog_compiler_wl_GCJ
=''
16380 osf3
* | osf4
* | osf5
*)
16381 lt_prog_compiler_wl_GCJ
='-Wl,'
16382 # All OSF/1 code is PIC.
16383 lt_prog_compiler_static_GCJ
='-non_shared'
16387 lt_prog_compiler_static_GCJ
='-non_shared'
16391 lt_prog_compiler_pic_GCJ
='-KPIC'
16392 lt_prog_compiler_static_GCJ
='-Bstatic'
16393 case $cc_basename in
16394 f77
* | f90
* | f95
*)
16395 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16397 lt_prog_compiler_wl_GCJ
='-Wl,';;
16402 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16403 lt_prog_compiler_pic_GCJ
='-PIC'
16404 lt_prog_compiler_static_GCJ
='-Bstatic'
16407 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16408 lt_prog_compiler_wl_GCJ
='-Wl,'
16409 lt_prog_compiler_pic_GCJ
='-KPIC'
16410 lt_prog_compiler_static_GCJ
='-Bstatic'
16414 if test -d /usr
/nec
;then
16415 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16416 lt_prog_compiler_static_GCJ
='-Bstatic'
16420 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16421 lt_prog_compiler_wl_GCJ
='-Wl,'
16422 lt_prog_compiler_pic_GCJ
='-KPIC'
16423 lt_prog_compiler_static_GCJ
='-Bstatic'
16427 lt_prog_compiler_wl_GCJ
='-Wl,'
16428 lt_prog_compiler_can_build_shared_GCJ
=no
16432 lt_prog_compiler_pic_GCJ
='-pic'
16433 lt_prog_compiler_static_GCJ
='-Bstatic'
16437 lt_prog_compiler_can_build_shared_GCJ
=no
16442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16443 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16446 # Check to make sure the PIC flag actually works.
16448 if test -n "$lt_prog_compiler_pic_GCJ"; then
16450 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16451 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16452 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 lt_cv_prog_compiler_pic_works_GCJ
=no
16456 ac_outfile
=conftest.
$ac_objext
16457 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16458 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16459 # Insert the option either (1) after the last *FLAGS variable, or
16460 # (2) before a word containing "conftest.", or (3) at the end.
16461 # Note that $ac_compile itself does not contain backslashes and begins
16462 # with a dollar sign (not a hyphen), so the echo should work correctly.
16463 # The option is referenced via a variable to avoid confusing sed.
16464 lt_compile
=`echo "$ac_compile" | $SED \
16465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16467 -e 's:$: $lt_compiler_flag:'`
16468 (eval echo "\"\$as_me:16468: $lt_compile\"" >&5)
16469 (eval "$lt_compile" 2>conftest.err
)
16471 cat conftest.err
>&5
16472 echo "$as_me:16472: \$? = $ac_status" >&5
16473 if (exit $ac_status) && test -s "$ac_outfile"; then
16474 # The compiler can only warn and ignore the option if not recognized
16475 # So say no if there are warnings other than the usual output.
16476 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16477 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16478 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16479 lt_cv_prog_compiler_pic_works_GCJ
=yes
16485 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16486 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16488 if test x
"$lt_cv_prog_compiler_pic_works_GCJ" = xyes
; then
16489 case $lt_prog_compiler_pic_GCJ in
16491 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16494 lt_prog_compiler_pic_GCJ
=
16495 lt_prog_compiler_can_build_shared_GCJ
=no
16500 # For platforms which do not support PIC, -DPIC is meaningless:
16502 lt_prog_compiler_pic_GCJ
=
16505 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16510 # Check to make sure the static flag actually works.
16512 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16513 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16514 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16515 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 lt_cv_prog_compiler_static_works_GCJ
=no
16519 save_LDFLAGS
="$LDFLAGS"
16520 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16521 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16522 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16523 # The linker can only warn and ignore the option if not recognized
16524 # So say no if there are warnings
16525 if test -s conftest.err
; then
16526 # Append any errors to the config.log.
16527 cat conftest.err
1>&5
16528 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16529 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16530 if diff conftest.exp conftest.er2
>/dev
/null
; then
16531 lt_cv_prog_compiler_static_works_GCJ
=yes
16534 lt_cv_prog_compiler_static_works_GCJ
=yes
16538 LDFLAGS
="$save_LDFLAGS"
16541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16542 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16544 if test x
"$lt_cv_prog_compiler_static_works_GCJ" = xyes
; then
16547 lt_prog_compiler_static_GCJ
=
16551 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16552 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16553 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 lt_cv_prog_compiler_c_o_GCJ
=no
16557 $rm -r conftest
2>/dev
/null
16561 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16563 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16564 # Insert the option either (1) after the last *FLAGS variable, or
16565 # (2) before a word containing "conftest.", or (3) at the end.
16566 # Note that $ac_compile itself does not contain backslashes and begins
16567 # with a dollar sign (not a hyphen), so the echo should work correctly.
16568 lt_compile
=`echo "$ac_compile" | $SED \
16569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16571 -e 's:$: $lt_compiler_flag:'`
16572 (eval echo "\"\$as_me:16572: $lt_compile\"" >&5)
16573 (eval "$lt_compile" 2>out
/conftest.err
)
16575 cat out
/conftest.err
>&5
16576 echo "$as_me:16576: \$? = $ac_status" >&5
16577 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16579 # The compiler can only warn and ignore the option if not recognized
16580 # So say no if there are warnings
16581 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16582 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16583 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16584 lt_cv_prog_compiler_c_o_GCJ
=yes
16589 # SGI C++ compiler will create directory out/ii_files/ for
16590 # template instantiation
16591 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16592 $rm out
/* && rmdir out
16598 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16599 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16602 hard_links
="nottested"
16603 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16604 # do not overwrite the value of need_locks provided by the user
16605 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16606 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16609 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16611 ln conftest.a conftest.b
2>&5 || hard_links
=no
16612 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16613 { echo "$as_me:$LINENO: result: $hard_links" >&5
16614 echo "${ECHO_T}$hard_links" >&6; }
16615 if test "$hard_links" = no
; then
16616 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16617 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16624 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16625 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16628 allow_undefined_flag_GCJ
=
16629 enable_shared_with_static_runtimes_GCJ
=no
16631 archive_expsym_cmds_GCJ
=
16632 old_archive_From_new_cmds_GCJ
=
16633 old_archive_from_expsyms_cmds_GCJ
=
16634 export_dynamic_flag_spec_GCJ
=
16635 whole_archive_flag_spec_GCJ
=
16636 thread_safe_flag_spec_GCJ
=
16637 hardcode_libdir_flag_spec_GCJ
=
16638 hardcode_libdir_flag_spec_ld_GCJ
=
16639 hardcode_libdir_separator_GCJ
=
16640 hardcode_direct_GCJ
=no
16641 hardcode_minus_L_GCJ
=no
16642 hardcode_shlibpath_var_GCJ
=unsupported
16643 link_all_deplibs_GCJ
=unknown
16644 hardcode_automatic_GCJ
=no
16646 module_expsym_cmds_GCJ
=
16647 always_export_symbols_GCJ
=no
16648 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16649 # include_expsyms should be a list of space-separated symbols to be *always*
16650 # included in the symbol list
16651 include_expsyms_GCJ
=
16652 # exclude_expsyms can be an extended regexp of symbols to exclude
16653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16655 # as well as any symbol that contains `d'.
16656 exclude_expsyms_GCJ
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16658 # platforms (ab)use it in PIC code, but their linkers get confused if
16659 # the symbol is explicitly referenced. Since portable code cannot
16660 # rely on this symbol name, it's probably fine to never include it in
16661 # preloaded symbol tables.
16662 # Exclude shared library initialization/finalization symbols.
16663 extract_expsyms_cmds
=
16664 # Just being paranoid about ensuring that cc_basename is set.
16665 for cc_temp
in $compiler""; do
16667 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16668 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16673 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16676 cygwin
* | mingw
* | pw32
*)
16677 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16678 # When not using gcc, we currently assume that we are using
16679 # Microsoft Visual C++.
16680 if test "$GCC" != yes; then
16685 # we just hope/assume this is gcc and not c89 (= MSVC++)
16694 if test "$with_gnu_ld" = yes; then
16695 # If archive_cmds runs LD, not CC, wlarc should be empty
16698 # Set some defaults for GNU ld with shared library support. These
16699 # are reset later if shared libraries are not supported. Putting them
16700 # here allows them to be overridden if necessary.
16701 runpath_var
=LD_RUN_PATH
16702 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16703 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16704 # ancient GNU ld didn't support --whole-archive et. al.
16705 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16706 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16708 whole_archive_flag_spec_GCJ
=
16710 supports_anon_versioning
=no
16711 case `$LD -v 2>/dev/null` in
16712 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16713 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16714 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16715 *\
2.11.
*) ;; # other 2.11 versions
16716 *) supports_anon_versioning
=yes ;;
16719 # See if GNU ld supports shared libraries.
16722 # On AIX/PPC, the GNU linker is very broken
16723 if test "$host_cpu" != ia64
; then
16727 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16728 *** to be unable to reliably create shared libraries on AIX.
16729 *** Therefore, libtool is disabling shared libraries support. If you
16730 *** really care for shared libraries, you may want to modify your PATH
16731 *** so that a non-GNU linker is found, and then restart.
16738 archive_cmds_GCJ
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16739 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16740 hardcode_minus_L_GCJ
=yes
16742 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16743 # that the semantics of dynamic libraries on AmigaOS, at least up
16744 # to version 4, is to share data among multiple programs linked
16745 # with the same dynamic library. Since this doesn't match the
16746 # behavior of shared libraries on other platforms, we can't use
16752 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16753 allow_undefined_flag_GCJ
=unsupported
16754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16755 # support --undefined. This deserves some investigation. FIXME
16756 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16762 cygwin
* | mingw
* | pw32
*)
16763 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16764 # as there is no search path for DLLs.
16765 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16766 allow_undefined_flag_GCJ
=unsupported
16767 always_export_symbols_GCJ
=no
16768 enable_shared_with_static_runtimes_GCJ
=yes
16769 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16771 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16772 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16773 # If the export-symbols file already is a .def file (1st line
16774 # is EXPORTS), use it as is; otherwise, prepend...
16775 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16776 cp $export_symbols $output_objdir/$soname.def;
16778 echo EXPORTS > $output_objdir/$soname.def;
16779 cat $export_symbols >> $output_objdir/$soname.def;
16781 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16788 hardcode_direct_GCJ
=no
16789 hardcode_shlibpath_var_GCJ
=no
16790 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16791 export_dynamic_flag_spec_GCJ
='${wl}-E'
16792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16793 # Instead, shared libraries are loaded at an image base (0x10000000 by
16794 # default) and relocated if they conflict, which is a slow very memory
16795 # consuming and fragmenting process. To avoid this, we pick a random,
16796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16797 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16798 archive_cmds_GCJ
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16799 archive_expsym_cmds_GCJ
='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'
16802 gnu
* | linux
* | k
*bsd
*-gnu)
16803 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16805 case $cc_basename,$host_cpu in
16806 pgcc
*) # Portland Group C compiler
16807 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16808 tmp_addflag
=' $pic_flag'
16810 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16811 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16812 tmp_addflag
=' $pic_flag -Mnomain' ;;
16813 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16814 tmp_addflag
=' -i_dynamic' ;;
16815 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16816 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16817 ifc
* | ifort
*) # Intel Fortran compiler
16818 tmp_addflag
=' -nofor_main' ;;
16820 case `$CC -V 2>&1 | sed 5q` in
16821 *Sun\ C
*) # Sun C 5.9
16822 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16823 tmp_sharedflag
='-G' ;;
16824 *Sun\ F
*) # Sun Fortran 8.3
16825 tmp_sharedflag
='-G' ;;
16827 tmp_sharedflag
='-shared' ;;
16829 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16831 if test $supports_anon_versioning = yes; then
16832 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16834 $echo "local: *; };" >> $output_objdir/$libname.ver~
16835 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16843 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16844 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16847 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16848 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16853 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16858 *** create shared libraries on Solaris systems. Therefore, libtool
16859 *** is disabling shared libraries support. We urge you to upgrade GNU
16860 *** binutils to release 2.9.1 or newer. Another option is to modify
16861 *** your PATH or compiler configuration so that the native linker is
16862 *** used, and then restart.
16865 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16866 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16867 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16873 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16874 case `$LD -v 2>&1` in
16875 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16879 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16880 *** reliably create shared libraries on SCO systems. Therefore, libtool
16881 *** is disabling shared libraries support. We urge you to upgrade GNU
16882 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16883 *** your PATH or compiler configuration so that the native linker is
16884 *** used, and then restart.
16889 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16890 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16891 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16892 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16901 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16903 hardcode_direct_GCJ
=yes
16904 hardcode_shlibpath_var_GCJ
=no
16908 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16909 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16917 if test "$ld_shlibs_GCJ" = no
; then
16919 hardcode_libdir_flag_spec_GCJ
=
16920 export_dynamic_flag_spec_GCJ
=
16921 whole_archive_flag_spec_GCJ
=
16924 # PORTME fill in a description of your system's linker (not GNU ld)
16927 allow_undefined_flag_GCJ
=unsupported
16928 always_export_symbols_GCJ
=yes
16929 archive_expsym_cmds_GCJ
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16930 # Note: this linker hardcodes the directories in LIBPATH if there
16931 # are no directories specified by -L.
16932 hardcode_minus_L_GCJ
=yes
16933 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16934 # Neither direct hardcoding nor static linking is supported with a
16936 hardcode_direct_GCJ
=unsupported
16941 if test "$host_cpu" = ia64
; then
16942 # On IA64, the linker does run time linking by default, so we don't
16943 # have to do anything special.
16944 aix_use_runtimelinking
=no
16945 exp_sym_flag
='-Bexport'
16948 # If we're using GNU nm, then we don't want the "-C" option.
16949 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16950 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16951 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16953 export_symbols_cmds_GCJ
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16955 aix_use_runtimelinking
=no
16957 # Test if we are trying to use run time linking or normal
16958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16959 # need to do runtime linking.
16960 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16961 for ld_flag
in $LDFLAGS; do
16962 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16963 aix_use_runtimelinking
=yes
16970 exp_sym_flag
='-bexport'
16971 no_entry_flag
='-bnoentry'
16974 # When large executables or shared objects are built, AIX ld can
16975 # have problems creating the table of contents. If linking a library
16976 # or program results in "error TOC overflow" add -mminimal-toc to
16977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16980 archive_cmds_GCJ
=''
16981 hardcode_direct_GCJ
=yes
16982 hardcode_libdir_separator_GCJ
=':'
16983 link_all_deplibs_GCJ
=yes
16985 if test "$GCC" = yes; then
16986 case $host_os in aix4.
[012]|aix4.
[012].
*)
16987 # We only want to do this on AIX 4.2 and lower, the check
16988 # below for broken collect2 doesn't work under 4.3+
16989 collect2name
=`${CC} -print-prog-name=collect2`
16990 if test -f "$collect2name" && \
16991 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16993 # We have reworked collect2
16996 # We have old collect2
16997 hardcode_direct_GCJ
=unsupported
16998 # It fails to find uninstalled libraries when the uninstalled
16999 # path is not listed in the libpath. Setting hardcode_minus_L
17000 # to unsupported forces relinking
17001 hardcode_minus_L_GCJ
=yes
17002 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17003 hardcode_libdir_separator_GCJ
=
17007 shared_flag
='-shared'
17008 if test "$aix_use_runtimelinking" = yes; then
17009 shared_flag
="$shared_flag "'${wl}-G'
17013 if test "$host_cpu" = ia64
; then
17014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17015 # chokes on -Wl,-G. The following line is correct:
17018 if test "$aix_use_runtimelinking" = yes; then
17019 shared_flag
='${wl}-G'
17021 shared_flag
='${wl}-bM:SRE'
17026 # It seems that -bexpall does not export symbols beginning with
17027 # underscore (_), so it is better to generate a list of symbols to export.
17028 always_export_symbols_GCJ
=yes
17029 if test "$aix_use_runtimelinking" = yes; then
17030 # Warning - without using the other runtime loading flags (-brtl),
17031 # -berok will link without error, but may produce a broken library.
17032 allow_undefined_flag_GCJ
='-berok'
17033 # Determine the default libpath from the value encoded in an empty executable.
17034 cat >conftest.
$ac_ext <<_ACEOF
17037 cat confdefs.h
>>conftest.
$ac_ext
17038 cat >>conftest.
$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17049 rm -f conftest.
$ac_objext conftest
$ac_exeext
17050 if { (ac_try
="$ac_link"
17051 case "(($ac_try" in
17052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_link") 2>conftest.er1
17058 grep -v '^ *+' conftest.er1 >conftest.err
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && {
17063 test -z "$ac_c_werror_flag" ||
17064 test ! -s conftest.err
17065 } && test -s conftest$ac_exeext &&
17066 $as_test_x conftest$ac_exeext; then
17068 lt_aix_libpath_sed='
17069 /Import File Strings/,/^$/ {
17075 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17076 # Check for a 64-bit object if we didn't find anything.
17077 if test -z "$aix_libpath"; then
17078 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17088 conftest$ac_exeext conftest.$ac_ext
17089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17091 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17092 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17094 if test "$host_cpu" = ia64; then
17095 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17096 allow_undefined_flag_GCJ="-z nodefs"
17097 archive_expsym_cmds_GCJ="\$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"
17099 # Determine the default libpath from the value encoded in an empty executable.
17100 cat >conftest.$ac_ext <<_ACEOF
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17115 rm -f conftest.$ac_objext conftest$ac_exeext
17116 if { (ac_try="$ac_link"
17117 case "(($ac_try" in
17118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17119 *) ac_try_echo
=$ac_try;;
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_link") 2>conftest.er1
17124 grep -v '^ *+' conftest.er1
>conftest.err
17126 cat conftest.err
>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } && {
17129 test -z "$ac_c_werror_flag" ||
17130 test ! -s conftest.err
17131 } && test -s conftest
$ac_exeext &&
17132 $as_test_x conftest
$ac_exeext; then
17134 lt_aix_libpath_sed
='
17135 /Import File Strings/,/^$/ {
17141 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17142 # Check for a 64-bit object if we didn't find anything.
17143 if test -z "$aix_libpath"; then
17144 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.
$ac_ext >&5
17153 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17154 conftest
$ac_exeext conftest.
$ac_ext
17155 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17157 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17158 # Warning - without using the other run time loading flags,
17159 # -berok will link without error, but may produce a broken library.
17160 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17161 allow_undefined_flag_GCJ
=' ${wl}-berok'
17162 # Exported symbols can be pulled into shared objects from archives
17163 whole_archive_flag_spec_GCJ
='$convenience'
17164 archive_cmds_need_lc_GCJ
=yes
17165 # This is similar to how AIX traditionally builds its shared libraries.
17166 archive_expsym_cmds_GCJ
="\$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'
17172 archive_cmds_GCJ
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17173 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17174 hardcode_minus_L_GCJ
=yes
17175 # see comment about different semantics on the GNU ld section
17180 export_dynamic_flag_spec_GCJ
=-rdynamic
17183 cygwin
* | mingw
* | pw32
*)
17184 # When not using gcc, we currently assume that we are using
17185 # Microsoft Visual C++.
17186 # hardcode_libdir_flag_spec is actually meaningless, as there is
17187 # no search path for DLLs.
17188 hardcode_libdir_flag_spec_GCJ
=' '
17189 allow_undefined_flag_GCJ
=unsupported
17190 # Tell ltmain to make .lib files, not .a files.
17192 # Tell ltmain to make .dll files, not .so files.
17194 # FIXME: Setting linknames here is a bad hack.
17195 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17196 # The linker will automatically build a .lib file if we build a DLL.
17197 old_archive_From_new_cmds_GCJ
='true'
17198 # FIXME: Should let the user specify the lib program.
17199 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17200 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17201 enable_shared_with_static_runtimes_GCJ
=yes
17204 darwin
* | rhapsody
*)
17206 rhapsody
* | darwin1.
[012])
17207 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17210 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17211 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17213 case ${MACOSX_DEPLOYMENT_TARGET} in
17215 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17218 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17224 archive_cmds_need_lc_GCJ
=no
17225 hardcode_direct_GCJ
=no
17226 hardcode_automatic_GCJ
=yes
17227 hardcode_shlibpath_var_GCJ
=unsupported
17228 whole_archive_flag_spec_GCJ
=''
17229 link_all_deplibs_GCJ
=yes
17230 if test "$GCC" = yes ; then
17231 output_verbose_link_cmd
='echo'
17232 archive_cmds_GCJ
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17233 module_cmds_GCJ
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17234 archive_expsym_cmds_GCJ
="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}"
17235 module_expsym_cmds_GCJ
="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}"
17237 case $cc_basename in
17239 output_verbose_link_cmd
='echo'
17240 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17241 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17243 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17244 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17254 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17255 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17256 hardcode_shlibpath_var_GCJ
=no
17263 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17264 # support. Future versions do this automatically, but an explicit c++rt0.o
17265 # does not break anything, and helps significantly (at the cost of a little
17268 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17269 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17270 hardcode_direct_GCJ
=yes
17271 hardcode_shlibpath_var_GCJ
=no
17274 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17276 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17277 hardcode_direct_GCJ
=yes
17278 hardcode_minus_L_GCJ
=yes
17279 hardcode_shlibpath_var_GCJ
=no
17282 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17283 freebsd
* | dragonfly
*)
17284 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17285 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17286 hardcode_direct_GCJ
=yes
17287 hardcode_shlibpath_var_GCJ
=no
17291 if test "$GCC" = yes; then
17292 archive_cmds_GCJ
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17294 archive_cmds_GCJ
='$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'
17296 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17297 hardcode_libdir_separator_GCJ
=:
17298 hardcode_direct_GCJ
=yes
17300 # hardcode_minus_L: Not really in the search PATH,
17301 # but as the default location of the library.
17302 hardcode_minus_L_GCJ
=yes
17303 export_dynamic_flag_spec_GCJ
='${wl}-E'
17307 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17308 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17310 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17312 if test "$with_gnu_ld" = no
; then
17313 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17314 hardcode_libdir_separator_GCJ
=:
17316 hardcode_direct_GCJ
=yes
17317 export_dynamic_flag_spec_GCJ
='${wl}-E'
17319 # hardcode_minus_L: Not really in the search PATH,
17320 # but as the default location of the library.
17321 hardcode_minus_L_GCJ
=yes
17326 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17329 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17332 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17335 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17341 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17344 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17347 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17351 if test "$with_gnu_ld" = no
; then
17352 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17353 hardcode_libdir_separator_GCJ
=:
17357 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17358 hardcode_direct_GCJ
=no
17359 hardcode_shlibpath_var_GCJ
=no
17362 hardcode_direct_GCJ
=yes
17363 export_dynamic_flag_spec_GCJ
='${wl}-E'
17365 # hardcode_minus_L: Not really in the search PATH,
17366 # but as the default location of the library.
17367 hardcode_minus_L_GCJ
=yes
17373 irix5
* | irix6
* | nonstopux
*)
17374 if test "$GCC" = yes; then
17375 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17377 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17378 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17380 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17381 hardcode_libdir_separator_GCJ
=:
17382 link_all_deplibs_GCJ
=yes
17386 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17387 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17389 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17391 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17392 hardcode_direct_GCJ
=yes
17393 hardcode_shlibpath_var_GCJ
=no
17397 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17398 hardcode_direct_GCJ
=yes
17399 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17400 hardcode_libdir_separator_GCJ
=:
17401 hardcode_shlibpath_var_GCJ
=no
17405 if test -f /usr
/libexec
/ld.so
; then
17406 hardcode_direct_GCJ
=yes
17407 hardcode_shlibpath_var_GCJ
=no
17408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17409 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17410 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17411 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17412 export_dynamic_flag_spec_GCJ
='${wl}-E'
17415 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17416 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17417 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17420 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17421 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17431 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17432 hardcode_minus_L_GCJ
=yes
17433 allow_undefined_flag_GCJ
=unsupported
17434 archive_cmds_GCJ
='$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'
17435 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17439 if test "$GCC" = yes; then
17440 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17441 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17443 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17444 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17446 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17447 hardcode_libdir_separator_GCJ
=:
17450 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17451 if test "$GCC" = yes; then
17452 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17453 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17454 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17456 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17457 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17458 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17459 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17461 # Both c and cxx compiler support -rpath directly
17462 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17464 hardcode_libdir_separator_GCJ
=:
17468 no_undefined_flag_GCJ
=' -z text'
17469 if test "$GCC" = yes; then
17471 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17472 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17473 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17476 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17480 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17481 hardcode_shlibpath_var_GCJ
=no
17483 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17485 # The compiler driver will combine and reorder linker options,
17486 # but understands `-z linker_flag'. GCC discards it without `$wl',
17487 # but is careful enough not to reorder.
17488 # Supported since Solaris 2.6 (maybe 2.5.1?)
17489 if test "$GCC" = yes; then
17490 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17492 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
17496 link_all_deplibs_GCJ
=yes
17500 if test "x$host_vendor" = xsequent
; then
17501 # Use $CC to link under sequent, because it throws in some extra .o
17502 # files that make .init and .fini sections work.
17503 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17505 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17507 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17508 hardcode_direct_GCJ
=yes
17509 hardcode_minus_L_GCJ
=yes
17510 hardcode_shlibpath_var_GCJ
=no
17514 case $host_vendor in
17516 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17517 hardcode_direct_GCJ
=yes # is this really true???
17520 ## LD is ld it makes a PLAMLIB
17521 ## CC just makes a GrossModule.
17522 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17523 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17524 hardcode_direct_GCJ
=no
17527 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17528 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17531 runpath_var
='LD_RUN_PATH'
17532 hardcode_shlibpath_var_GCJ
=no
17536 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537 hardcode_shlibpath_var_GCJ
=no
17538 export_dynamic_flag_spec_GCJ
='-Bexport'
17542 if test -d /usr
/nec
; then
17543 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17544 hardcode_shlibpath_var_GCJ
=no
17545 runpath_var
=LD_RUN_PATH
17546 hardcode_runpath_var
=yes
17551 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17552 no_undefined_flag_GCJ
='${wl}-z,text'
17553 archive_cmds_need_lc_GCJ
=no
17554 hardcode_shlibpath_var_GCJ
=no
17555 runpath_var
='LD_RUN_PATH'
17557 if test "$GCC" = yes; then
17558 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17559 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17561 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17562 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17566 sysv5
* | sco3.2v5
* | sco5v6
*)
17567 # Note: We can NOT use -z defs as we might desire, because we do not
17568 # link with -lc, and that would cause any symbols used from libc to
17569 # always be unresolved, which means just about no library would
17570 # ever link correctly. If we're not using GNU ld we use -z text
17571 # though, which does catch some bad symbols but isn't as heavy-handed
17573 no_undefined_flag_GCJ
='${wl}-z,text'
17574 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17575 archive_cmds_need_lc_GCJ
=no
17576 hardcode_shlibpath_var_GCJ
=no
17577 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17578 hardcode_libdir_separator_GCJ
=':'
17579 link_all_deplibs_GCJ
=yes
17580 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17581 runpath_var
='LD_RUN_PATH'
17583 if test "$GCC" = yes; then
17584 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17587 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17593 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17594 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17595 hardcode_shlibpath_var_GCJ
=no
17604 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17605 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17606 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17609 # Do we need to explicitly link libc?
17611 case "x$archive_cmds_need_lc_GCJ" in
17613 # Assume -lc should be added
17614 archive_cmds_need_lc_GCJ
=yes
17616 if test "$enable_shared" = yes && test "$GCC" = yes; then
17617 case $archive_cmds_GCJ in
17619 # FIXME: we may have to deal with multi-command sequences.
17622 # Test whether the compiler implicitly links with -lc since on some
17623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17624 # to ld, don't add -lc before -lgcc.
17625 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17626 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17628 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } 2>conftest.err
; then
17637 libobjs
=conftest.
$ac_objext
17639 wl
=$lt_prog_compiler_wl_GCJ
17640 pic_flag
=$lt_prog_compiler_pic_GCJ
17646 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17647 allow_undefined_flag_GCJ
=
17648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17649 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }
17654 archive_cmds_need_lc_GCJ
=no
17656 archive_cmds_need_lc_GCJ
=yes
17658 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17660 cat conftest.err
1>&5
17663 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17664 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17671 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17672 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17673 library_names_spec
=
17674 libname_spec
='lib$name'
17678 postuninstall_cmds
=
17682 shlibpath_overrides_runpath
=unknown
17684 dynamic_linker
="$host_os ld.so"
17685 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17687 need_lib_prefix
=unknown
17688 hardcode_into_libs
=no
17690 # when you set need_version to no, make sure it does not cause -set_version
17691 # flags to be left without arguments
17692 need_version
=unknown
17697 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17698 shlibpath_var
=LIBPATH
17700 # AIX 3 has no versioning support, so we append a major version to the name.
17701 soname_spec
='${libname}${release}${shared_ext}$major'
17708 hardcode_into_libs
=yes
17709 if test "$host_cpu" = ia64
; then
17710 # AIX 5 supports IA64
17711 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17712 shlibpath_var
=LD_LIBRARY_PATH
17714 # With GCC up to 2.95.x, collect2 would create an import file
17715 # for dependence libraries. The import file would start with
17716 # the line `#! .'. This would cause the generated library to
17717 # depend on `.', always an invalid library. This was fixed in
17718 # development snapshots of GCC prior to 3.0.
17720 aix4 | aix4.
[01] | aix4.
[01].
*)
17721 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17723 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17726 can_build_shared
=no
17730 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17731 # soname into executable. Probably we can add versioning support to
17732 # collect2, so additional links can be useful in future.
17733 if test "$aix_use_runtimelinking" = yes; then
17734 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17735 # instead of lib<name>.a to let people know that these are not
17736 # typical AIX shared libraries.
17737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17739 # We preserve .a as extension for shared libraries through AIX4.2
17740 # and later when we are not doing run time linking.
17741 library_names_spec
='${libname}${release}.a $libname.a'
17742 soname_spec
='${libname}${release}${shared_ext}$major'
17744 shlibpath_var
=LIBPATH
17749 library_names_spec
='$libname.ixlibrary $libname.a'
17750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17751 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17755 library_names_spec
='${libname}${shared_ext}'
17756 dynamic_linker
="$host_os ld.so"
17757 shlibpath_var
=LIBRARY_PATH
17763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 soname_spec
='${libname}${release}${shared_ext}$major'
17765 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17766 shlibpath_var
=LD_LIBRARY_PATH
17767 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17768 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17769 # the default ld.so.conf also contains /usr/contrib/lib and
17770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17771 # libtool to hard-code these into programs
17774 cygwin
* | mingw
* | pw32
*)
17775 version_type
=windows
17780 case $GCC,$host_os in
17781 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17782 library_names_spec
='$libname.dll.a'
17783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17784 postinstall_cmds
='base_file=`basename \${file}`~
17785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17786 dldir=$destdir/`dirname \$dlpath`~
17787 test -d \$dldir || mkdir -p \$dldir~
17788 $install_prog $dir/$dlname \$dldir/$dlname~
17789 chmod a+x \$dldir/$dlname'
17790 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17791 dlpath=$dir/\$dldll~
17793 shlibpath_overrides_runpath
=yes
17797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17798 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17799 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17802 # MinGW DLLs use traditional 'lib' prefix
17803 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17804 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17805 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17806 # It is most probably a Windows format PATH printed by
17807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17808 # path with ; separators, and with drive letters. We can handle the
17809 # drive letters (cygwin fileutils understands them), so leave them,
17810 # especially as we might pass files found there to a mingw objdump,
17811 # which wouldn't understand a cygwinified path. Ahh.
17812 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17814 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17818 # pw32 DLLs use 'pw' prefix rather than 'lib'
17819 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17825 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17828 dynamic_linker
='Win32 ld.exe'
17829 # FIXME: first we should search . and the directory the executable is in
17833 darwin
* | rhapsody
*)
17834 dynamic_linker
="$host_os dyld"
17835 version_type
=darwin
17838 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17839 soname_spec
='${libname}${release}${major}$shared_ext'
17840 shlibpath_overrides_runpath
=yes
17841 shlibpath_var
=DYLD_LIBRARY_PATH
17842 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17844 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17852 soname_spec
='${libname}${release}${shared_ext}$major'
17853 shlibpath_var
=LD_LIBRARY_PATH
17860 freebsd
* | dragonfly
*)
17861 # DragonFly does not have aout. When/if they implement a new
17862 # versioning mechanism, adjust this.
17863 if test -x /usr
/bin
/objformat
; then
17864 objformat
=`/usr/bin/objformat`
17867 freebsd
[123]*) objformat
=aout
;;
17868 *) objformat
=elf
;;
17871 version_type
=freebsd-
$objformat
17872 case $version_type in
17874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17879 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17883 shlibpath_var
=LD_LIBRARY_PATH
17886 shlibpath_overrides_runpath
=yes
17888 freebsd3.
[01]* | freebsdelf3.
[01]*)
17889 shlibpath_overrides_runpath
=yes
17890 hardcode_into_libs
=yes
17892 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17893 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17894 shlibpath_overrides_runpath
=no
17895 hardcode_into_libs
=yes
17897 *) # from 4.6 on, and DragonFly
17898 shlibpath_overrides_runpath
=yes
17899 hardcode_into_libs
=yes
17908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17909 soname_spec
='${libname}${release}${shared_ext}$major'
17910 shlibpath_var
=LD_LIBRARY_PATH
17911 hardcode_into_libs
=yes
17914 hpux9
* | hpux10
* | hpux11
*)
17915 # Give a soname corresponding to the major version so that dld.sl refuses to
17916 # link against other versions.
17923 hardcode_into_libs
=yes
17924 dynamic_linker
="$host_os dld.so"
17925 shlibpath_var
=LD_LIBRARY_PATH
17926 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928 soname_spec
='${libname}${release}${shared_ext}$major'
17929 if test "X$HPUX_IA64_MODE" = X32
; then
17930 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17932 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17934 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17938 hardcode_into_libs
=yes
17939 dynamic_linker
="$host_os dld.sl"
17940 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17941 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec
='${libname}${release}${shared_ext}$major'
17944 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17945 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17949 dynamic_linker
="$host_os dld.sl"
17950 shlibpath_var
=SHLIB_PATH
17951 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953 soname_spec
='${libname}${release}${shared_ext}$major'
17956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17957 postinstall_cmds
='chmod 555 $lib'
17964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17965 soname_spec
='${libname}${release}${shared_ext}$major'
17966 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17967 shlibpath_var
=LD_LIBRARY_PATH
17968 shlibpath_overrides_runpath
=no
17969 hardcode_into_libs
=yes
17972 irix5
* | irix6
* | nonstopux
*)
17974 nonstopux
*) version_type
=nonstopux
;;
17976 if test "$lt_cv_prog_gnu_ld" = yes; then
17984 soname_spec
='${libname}${release}${shared_ext}$major'
17985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17987 irix5
* | nonstopux
*)
17988 libsuff
= shlibsuff
=
17991 case $LD in # libtool.m4 will add one of these switches to LD
17992 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17993 libsuff
= shlibsuff
= libmagic
=32-bit;;
17994 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17995 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17996 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17997 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17998 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18002 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18003 shlibpath_overrides_runpath
=no
18004 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18005 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18006 hardcode_into_libs
=yes
18009 # No shared lib support for Linux oldld, aout, or coff.
18010 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18014 # This must be Linux ELF.
18015 linux
* | k
*bsd
*-gnu)
18019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18020 soname_spec
='${libname}${release}${shared_ext}$major'
18021 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18022 shlibpath_var
=LD_LIBRARY_PATH
18023 shlibpath_overrides_runpath
=no
18024 # This implies no fast_install, which is unacceptable.
18025 # Some rework will be needed to allow for fast_install
18026 # before this can be enabled.
18027 hardcode_into_libs
=yes
18029 # Append ld.so.conf contents to the search path
18030 if test -f /etc
/ld.so.conf
; then
18031 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;/^$/d' | tr '\n' ' '`
18032 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18035 # We used to test for /lib/ld.so.1 and disable shared libraries on
18036 # powerpc, because MkLinux only supported shared libraries with the
18037 # GNU dynamic linker. Since this was broken with cross compilers,
18038 # most powerpc-linux boxes support dynamic linking these days and
18039 # people can always --disable-shared, the test was removed, and we
18040 # assume the GNU/Linux dynamic linker is in use.
18041 dynamic_linker
='GNU/Linux ld.so'
18048 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18050 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18051 dynamic_linker
='NetBSD (a.out) ld.so'
18053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18054 soname_spec
='${libname}${release}${shared_ext}$major'
18055 dynamic_linker
='NetBSD ld.elf_so'
18057 shlibpath_var
=LD_LIBRARY_PATH
18058 shlibpath_overrides_runpath
=yes
18059 hardcode_into_libs
=yes
18064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 shlibpath_var
=LD_LIBRARY_PATH
18066 shlibpath_overrides_runpath
=yes
18073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18074 soname_spec
='${libname}${release}${shared_ext}$major'
18075 shlibpath_var
=LD_LIBRARY_PATH
18076 shlibpath_overrides_runpath
=yes
18081 sys_lib_dlsearch_path_spec
="/usr/lib"
18083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18085 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18086 *) need_version
=no
;;
18088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18089 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18090 shlibpath_var
=LD_LIBRARY_PATH
18091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18093 openbsd2.
[89] | openbsd2.
[89].
*)
18094 shlibpath_overrides_runpath
=no
18097 shlibpath_overrides_runpath
=yes
18101 shlibpath_overrides_runpath
=yes
18106 libname_spec
='$name'
18109 library_names_spec
='$libname${shared_ext} $libname.a'
18110 dynamic_linker
='OS/2 ld.exe'
18111 shlibpath_var
=LIBPATH
18114 osf3
* | osf4
* | osf5
*)
18118 soname_spec
='${libname}${release}${shared_ext}$major'
18119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18120 shlibpath_var
=LD_LIBRARY_PATH
18121 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18122 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18134 soname_spec
='${libname}${release}${shared_ext}$major'
18135 shlibpath_var
=LD_LIBRARY_PATH
18136 shlibpath_overrides_runpath
=yes
18137 hardcode_into_libs
=yes
18138 # ldd complains unless libraries are executable
18139 postinstall_cmds
='chmod +x $lib'
18144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18145 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18146 shlibpath_var
=LD_LIBRARY_PATH
18147 shlibpath_overrides_runpath
=yes
18148 if test "$with_gnu_ld" = yes; then
18156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec
='${libname}${release}${shared_ext}$major'
18158 shlibpath_var
=LD_LIBRARY_PATH
18159 case $host_vendor in
18161 shlibpath_overrides_runpath
=no
18163 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18164 runpath_var
=LD_RUN_PATH
18172 shlibpath_overrides_runpath
=no
18173 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18179 if test -d /usr
/nec
;then
18181 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18182 soname_spec
='$libname${shared_ext}.$major'
18183 shlibpath_var
=LD_LIBRARY_PATH
18187 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18188 version_type
=freebsd-elf
18191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18192 soname_spec
='${libname}${release}${shared_ext}$major'
18193 shlibpath_var
=LD_LIBRARY_PATH
18194 hardcode_into_libs
=yes
18195 if test "$with_gnu_ld" = yes; then
18196 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18197 shlibpath_overrides_runpath
=no
18199 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18200 shlibpath_overrides_runpath
=yes
18203 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18207 sys_lib_dlsearch_path_spec
='/usr/lib'
18212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec
='${libname}${release}${shared_ext}$major'
18214 shlibpath_var
=LD_LIBRARY_PATH
18221 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18222 echo "${ECHO_T}$dynamic_linker" >&6; }
18223 test "$dynamic_linker" = no
&& can_build_shared
=no
18225 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
18231 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18232 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
18238 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18240 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18241 if test "$GCC" = yes; then
18242 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18247 hardcode_action_GCJ
=
18248 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18249 test -n "$runpath_var_GCJ" || \
18250 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18252 # We can hardcode non-existant directories.
18253 if test "$hardcode_direct_GCJ" != no
&&
18254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18255 # have to relink, otherwise we might link with an installed library
18256 # when we should be linking with a yet-to-be-installed one
18257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18258 test "$hardcode_minus_L_GCJ" != no
; then
18259 # Linking always hardcodes the temporary library directory.
18260 hardcode_action_GCJ
=relink
18262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18263 hardcode_action_GCJ
=immediate
18266 # We cannot hardcode anything, or else we can only hardcode existing
18268 hardcode_action_GCJ
=unsupported
18270 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18271 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18273 if test "$hardcode_action_GCJ" = relink
; then
18274 # Fast installation is not supported
18275 enable_fast_install
=no
18276 elif test "$shlibpath_overrides_runpath" = yes ||
18277 test "$enable_shared" = no
; then
18278 # Fast installation is not necessary
18279 enable_fast_install
=needless
18283 # The else clause should only fire when bootstrapping the
18284 # libtool distribution, otherwise you forgot to ship ltmain.sh
18285 # with your package, and you will get complaints that there are
18286 # no rules to generate ltmain.sh.
18287 if test -f "$ltmain"; then
18288 # See if we are running on zsh, and set the options which allow our commands through
18289 # without removal of \ escapes.
18290 if test -n "${ZSH_VERSION+set}" ; then
18291 setopt NO_GLOB_SUBST
18293 # Now quote all the things that may contain metacharacters while being
18294 # careful not to overquote the AC_SUBSTed values. We take copies of the
18295 # variables and quote the copies for generation of the libtool script.
18296 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18300 deplibs_check_method reload_flag reload_cmds need_locks \
18301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18302 lt_cv_sys_global_symbol_to_c_name_address \
18303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18304 old_postinstall_cmds old_postuninstall_cmds \
18308 lt_prog_compiler_wl_GCJ \
18309 lt_prog_compiler_pic_GCJ \
18310 lt_prog_compiler_static_GCJ \
18311 lt_prog_compiler_no_builtin_flag_GCJ \
18312 export_dynamic_flag_spec_GCJ \
18313 thread_safe_flag_spec_GCJ \
18314 whole_archive_flag_spec_GCJ \
18315 enable_shared_with_static_runtimes_GCJ \
18316 old_archive_cmds_GCJ \
18317 old_archive_from_new_cmds_GCJ \
18318 predep_objects_GCJ \
18319 postdep_objects_GCJ \
18322 compiler_lib_search_path_GCJ \
18323 compiler_lib_search_dirs_GCJ \
18325 archive_expsym_cmds_GCJ \
18326 postinstall_cmds_GCJ \
18327 postuninstall_cmds_GCJ \
18328 old_archive_from_expsyms_cmds_GCJ \
18329 allow_undefined_flag_GCJ \
18330 no_undefined_flag_GCJ \
18331 export_symbols_cmds_GCJ \
18332 hardcode_libdir_flag_spec_GCJ \
18333 hardcode_libdir_flag_spec_ld_GCJ \
18334 hardcode_libdir_separator_GCJ \
18335 hardcode_automatic_GCJ \
18337 module_expsym_cmds_GCJ \
18338 lt_cv_prog_compiler_c_o_GCJ \
18339 fix_srcfile_path_GCJ \
18340 exclude_expsyms_GCJ \
18341 include_expsyms_GCJ
; do
18344 old_archive_cmds_GCJ | \
18345 old_archive_from_new_cmds_GCJ | \
18346 archive_cmds_GCJ | \
18347 archive_expsym_cmds_GCJ | \
18348 module_cmds_GCJ | \
18349 module_expsym_cmds_GCJ | \
18350 old_archive_from_expsyms_cmds_GCJ | \
18351 export_symbols_cmds_GCJ | \
18352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18353 postinstall_cmds | postuninstall_cmds | \
18354 old_postinstall_cmds | old_postuninstall_cmds | \
18355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18356 # Double-quote double-evaled strings.
18357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18366 *'\$0 --fallback-echo"')
18367 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18373 cat <<__EOF__ >> "$cfgfile"
18374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18378 # Shell to use when invoking shell scripts.
18381 # Whether or not to build shared libraries.
18382 build_libtool_libs=$enable_shared
18384 # Whether or not to build static libraries.
18385 build_old_libs=$enable_static
18387 # Whether or not to add -lc for building shared libraries.
18388 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18390 # Whether or not to disallow shared libs when runtime libs are static
18391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18393 # Whether or not to optimize for fast installation.
18394 fast_install=$enable_fast_install
18397 host_alias=$host_alias
18401 # The build system.
18402 build_alias=$build_alias
18406 # An echo program that does not interpret backslashes.
18411 AR_FLAGS=$lt_AR_FLAGS
18416 # LTCC compiler flags.
18417 LTCFLAGS=$lt_LTCFLAGS
18419 # A language-specific compiler.
18420 CC=$lt_compiler_GCJ
18422 # Is the compiler the GNU C compiler?
18428 # The linker used to build libraries.
18431 # Whether we need hard or soft links.
18434 # A BSD-compatible nm program.
18437 # A symbol stripping program
18440 # Used to examine libraries when file_magic_cmd begins "file"
18441 MAGIC_CMD=$MAGIC_CMD
18443 # Used on cygwin: DLL creation program.
18446 # Used on cygwin: object dumper.
18449 # Used on cygwin: assembler.
18452 # The name of the directory that contains temporary libtool files.
18455 # How to create reloadable object files.
18456 reload_flag=$lt_reload_flag
18457 reload_cmds=$lt_reload_cmds
18459 # How to pass a linker flag through the compiler.
18460 wl=$lt_lt_prog_compiler_wl_GCJ
18462 # Object file suffix (normally "o").
18463 objext="$ac_objext"
18465 # Old archive suffix (normally "a").
18468 # Shared library suffix (normally ".so").
18469 shrext_cmds='$shrext_cmds'
18471 # Executable file suffix (normally "").
18474 # Additional compiler flags for building library objects.
18475 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18478 # What is the maximum length of a command?
18479 max_cmd_len=$lt_cv_sys_max_cmd_len
18481 # Does compiler simultaneously support -c and -o options?
18482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18484 # Must we lock files when doing compilation?
18485 need_locks=$lt_need_locks
18487 # Do we need the lib prefix for modules?
18488 need_lib_prefix=$need_lib_prefix
18490 # Do we need a version for libraries?
18491 need_version=$need_version
18493 # Whether dlopen is supported.
18494 dlopen_support=$enable_dlopen
18496 # Whether dlopen of programs is supported.
18497 dlopen_self=$enable_dlopen_self
18499 # Whether dlopen of statically linked programs is supported.
18500 dlopen_self_static=$enable_dlopen_self_static
18502 # Compiler flag to prevent dynamic linking.
18503 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18505 # Compiler flag to turn off builtin functions.
18506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18508 # Compiler flag to allow reflexive dlopens.
18509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18511 # Compiler flag to generate shared objects directly from archives.
18512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18514 # Compiler flag to generate thread-safe objects.
18515 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18517 # Library versioning type.
18518 version_type=$version_type
18520 # Format of library name prefix.
18521 libname_spec=$lt_libname_spec
18523 # List of archive names. First name is the real one, the rest are links.
18524 # The last name is the one that the linker finds with -lNAME.
18525 library_names_spec=$lt_library_names_spec
18527 # The coded name of the library, if different from the real name.
18528 soname_spec=$lt_soname_spec
18530 # Commands used to build and install an old-style archive.
18532 old_archive_cmds=$lt_old_archive_cmds_GCJ
18533 old_postinstall_cmds=$lt_old_postinstall_cmds
18534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18536 # Create an old-style archive from a shared archive.
18537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18539 # Create a temporary old-style archive to link instead of a shared archive.
18540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18542 # Commands used to build and install a shared archive.
18543 archive_cmds=$lt_archive_cmds_GCJ
18544 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18545 postinstall_cmds=$lt_postinstall_cmds
18546 postuninstall_cmds=$lt_postuninstall_cmds
18548 # Commands used to build a loadable module (assumed same as above if empty)
18549 module_cmds=$lt_module_cmds_GCJ
18550 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18552 # Commands to strip libraries.
18553 old_striplib=$lt_old_striplib
18554 striplib=$lt_striplib
18556 # Dependencies to place before the objects being linked to create a
18558 predep_objects=$lt_predep_objects_GCJ
18560 # Dependencies to place after the objects being linked to create a
18562 postdep_objects=$lt_postdep_objects_GCJ
18564 # Dependencies to place before the objects being linked to create a
18566 predeps=$lt_predeps_GCJ
18568 # Dependencies to place after the objects being linked to create a
18570 postdeps=$lt_postdeps_GCJ
18572 # The directories searched by this compiler when creating a shared
18574 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18576 # The library search path used internally by the compiler when linking
18577 # a shared library.
18578 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18580 # Method to check whether dependent libraries are shared objects.
18581 deplibs_check_method=$lt_deplibs_check_method
18583 # Command to use when deplibs_check_method == file_magic.
18584 file_magic_cmd=$lt_file_magic_cmd
18586 # Flag that allows shared libraries with undefined symbols to be built.
18587 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18589 # Flag that forces no undefined symbols.
18590 no_undefined_flag=$lt_no_undefined_flag_GCJ
18592 # Commands used to finish a libtool library installation in a directory.
18593 finish_cmds=$lt_finish_cmds
18595 # Same as above, but a single script fragment to be evaled but not shown.
18596 finish_eval=$lt_finish_eval
18598 # Take the output of nm and produce a listing of raw symbols and C names.
18599 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18601 # Transform the output of nm in a proper C declaration
18602 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18604 # Transform the output of nm in a C name address pair
18605 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18607 # This is the shared library runtime path variable.
18608 runpath_var=$runpath_var
18610 # This is the shared library path variable.
18611 shlibpath_var=$shlibpath_var
18613 # Is shlibpath searched before the hard-coded library search path?
18614 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18616 # How to hardcode a shared library path into an executable.
18617 hardcode_action=$hardcode_action_GCJ
18619 # Whether we should hardcode library paths into libraries.
18620 hardcode_into_libs=$hardcode_into_libs
18622 # Flag to hardcode \$libdir into a binary during linking.
18623 # This must work even if \$libdir does not exist.
18624 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18626 # If ld is used when linking, flag to hardcode \$libdir into
18627 # a binary during linking. This must work even if \$libdir does
18629 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18631 # Whether we need a single -rpath flag with a separated argument.
18632 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18634 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18635 # resulting binary.
18636 hardcode_direct=$hardcode_direct_GCJ
18638 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18639 # resulting binary.
18640 hardcode_minus_L=$hardcode_minus_L_GCJ
18642 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18643 # the resulting binary.
18644 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18646 # Set to yes if building a shared library automatically hardcodes DIR into the library
18647 # and all subsequent libraries and executables linked against it.
18648 hardcode_automatic=$hardcode_automatic_GCJ
18650 # Variables whose values should be saved in libtool wrapper scripts and
18651 # restored at relink time.
18652 variables_saved_for_relink="$variables_saved_for_relink"
18654 # Whether libtool must link a program against all its dependency libraries.
18655 link_all_deplibs=$link_all_deplibs_GCJ
18657 # Compile-time system search path for libraries
18658 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18660 # Run-time system search path for libraries
18661 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18663 # Fix the shell variable \$srcfile for the compiler.
18664 fix_srcfile_path=$lt_fix_srcfile_path
18666 # Set to yes if exported symbols are required.
18667 always_export_symbols=$always_export_symbols_GCJ
18669 # The commands to list exported symbols.
18670 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18672 # The commands to extract the exported symbol list from a shared archive.
18673 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18675 # Symbols that should not be listed in the preloaded symbols.
18676 exclude_expsyms=$lt_exclude_expsyms_GCJ
18678 # Symbols that must always be exported.
18679 include_expsyms=$lt_include_expsyms_GCJ
18681 # ### END LIBTOOL TAG CONFIG: $tagname
18687 # If there is no Makefile yet, we rely on a make rule to execute
18688 # `config.status --recheck' to rerun these tests and create the
18689 # libtool script then.
18690 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18691 if test -f "$ltmain_in"; then
18692 test -f Makefile
&& make "$ltmain"
18698 ac_cpp
='$CPP $CPPFLAGS'
18699 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18700 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18701 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18713 # Source file extension for RC test sources.
18716 # Object file extension for compiled RC test sources.
18720 # Code to be used in simple compile tests
18721 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18723 # Code to be used in simple link tests
18724 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18728 # If no C compiler was specified, use CC.
18731 # If no C compiler flags were specified, use CFLAGS.
18732 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18734 # Allow CC to be a program name with arguments.
18738 # save warnings/boilerplate of simple test code
18739 ac_outfile
=conftest.
$ac_objext
18740 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18741 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18742 _lt_compiler_boilerplate
=`cat conftest.err`
18745 ac_outfile
=conftest.
$ac_objext
18746 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18747 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18748 _lt_linker_boilerplate
=`cat conftest.err`
18752 # Allow CC to be a program name with arguments.
18757 for cc_temp
in $compiler""; do
18759 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18760 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18765 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18767 lt_cv_prog_compiler_c_o_RC
=yes
18769 # The else clause should only fire when bootstrapping the
18770 # libtool distribution, otherwise you forgot to ship ltmain.sh
18771 # with your package, and you will get complaints that there are
18772 # no rules to generate ltmain.sh.
18773 if test -f "$ltmain"; then
18774 # See if we are running on zsh, and set the options which allow our commands through
18775 # without removal of \ escapes.
18776 if test -n "${ZSH_VERSION+set}" ; then
18777 setopt NO_GLOB_SUBST
18779 # Now quote all the things that may contain metacharacters while being
18780 # careful not to overquote the AC_SUBSTed values. We take copies of the
18781 # variables and quote the copies for generation of the libtool script.
18782 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18784 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18785 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18786 deplibs_check_method reload_flag reload_cmds need_locks \
18787 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18788 lt_cv_sys_global_symbol_to_c_name_address \
18789 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18790 old_postinstall_cmds old_postuninstall_cmds \
18794 lt_prog_compiler_wl_RC \
18795 lt_prog_compiler_pic_RC \
18796 lt_prog_compiler_static_RC \
18797 lt_prog_compiler_no_builtin_flag_RC \
18798 export_dynamic_flag_spec_RC \
18799 thread_safe_flag_spec_RC \
18800 whole_archive_flag_spec_RC \
18801 enable_shared_with_static_runtimes_RC \
18802 old_archive_cmds_RC \
18803 old_archive_from_new_cmds_RC \
18804 predep_objects_RC \
18805 postdep_objects_RC \
18808 compiler_lib_search_path_RC \
18809 compiler_lib_search_dirs_RC \
18811 archive_expsym_cmds_RC \
18812 postinstall_cmds_RC \
18813 postuninstall_cmds_RC \
18814 old_archive_from_expsyms_cmds_RC \
18815 allow_undefined_flag_RC \
18816 no_undefined_flag_RC \
18817 export_symbols_cmds_RC \
18818 hardcode_libdir_flag_spec_RC \
18819 hardcode_libdir_flag_spec_ld_RC \
18820 hardcode_libdir_separator_RC \
18821 hardcode_automatic_RC \
18823 module_expsym_cmds_RC \
18824 lt_cv_prog_compiler_c_o_RC \
18825 fix_srcfile_path_RC \
18826 exclude_expsyms_RC \
18827 include_expsyms_RC
; do
18830 old_archive_cmds_RC | \
18831 old_archive_from_new_cmds_RC | \
18832 archive_cmds_RC | \
18833 archive_expsym_cmds_RC | \
18835 module_expsym_cmds_RC | \
18836 old_archive_from_expsyms_cmds_RC | \
18837 export_symbols_cmds_RC | \
18838 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18839 postinstall_cmds | postuninstall_cmds | \
18840 old_postinstall_cmds | old_postuninstall_cmds | \
18841 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18842 # Double-quote double-evaled strings.
18843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18846 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18852 *'\$0 --fallback-echo"')
18853 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18859 cat <<__EOF__ >> "$cfgfile"
18860 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18864 # Shell to use when invoking shell scripts.
18867 # Whether or not to build shared libraries.
18868 build_libtool_libs=$enable_shared
18870 # Whether or not to build static libraries.
18871 build_old_libs=$enable_static
18873 # Whether or not to add -lc for building shared libraries.
18874 build_libtool_need_lc=$archive_cmds_need_lc_RC
18876 # Whether or not to disallow shared libs when runtime libs are static
18877 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18879 # Whether or not to optimize for fast installation.
18880 fast_install=$enable_fast_install
18883 host_alias=$host_alias
18887 # The build system.
18888 build_alias=$build_alias
18892 # An echo program that does not interpret backslashes.
18897 AR_FLAGS=$lt_AR_FLAGS
18902 # LTCC compiler flags.
18903 LTCFLAGS=$lt_LTCFLAGS
18905 # A language-specific compiler.
18908 # Is the compiler the GNU C compiler?
18914 # The linker used to build libraries.
18917 # Whether we need hard or soft links.
18920 # A BSD-compatible nm program.
18923 # A symbol stripping program
18926 # Used to examine libraries when file_magic_cmd begins "file"
18927 MAGIC_CMD=$MAGIC_CMD
18929 # Used on cygwin: DLL creation program.
18932 # Used on cygwin: object dumper.
18935 # Used on cygwin: assembler.
18938 # The name of the directory that contains temporary libtool files.
18941 # How to create reloadable object files.
18942 reload_flag=$lt_reload_flag
18943 reload_cmds=$lt_reload_cmds
18945 # How to pass a linker flag through the compiler.
18946 wl=$lt_lt_prog_compiler_wl_RC
18948 # Object file suffix (normally "o").
18949 objext="$ac_objext"
18951 # Old archive suffix (normally "a").
18954 # Shared library suffix (normally ".so").
18955 shrext_cmds='$shrext_cmds'
18957 # Executable file suffix (normally "").
18960 # Additional compiler flags for building library objects.
18961 pic_flag=$lt_lt_prog_compiler_pic_RC
18964 # What is the maximum length of a command?
18965 max_cmd_len=$lt_cv_sys_max_cmd_len
18967 # Does compiler simultaneously support -c and -o options?
18968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18970 # Must we lock files when doing compilation?
18971 need_locks=$lt_need_locks
18973 # Do we need the lib prefix for modules?
18974 need_lib_prefix=$need_lib_prefix
18976 # Do we need a version for libraries?
18977 need_version=$need_version
18979 # Whether dlopen is supported.
18980 dlopen_support=$enable_dlopen
18982 # Whether dlopen of programs is supported.
18983 dlopen_self=$enable_dlopen_self
18985 # Whether dlopen of statically linked programs is supported.
18986 dlopen_self_static=$enable_dlopen_self_static
18988 # Compiler flag to prevent dynamic linking.
18989 link_static_flag=$lt_lt_prog_compiler_static_RC
18991 # Compiler flag to turn off builtin functions.
18992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18994 # Compiler flag to allow reflexive dlopens.
18995 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18997 # Compiler flag to generate shared objects directly from archives.
18998 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19000 # Compiler flag to generate thread-safe objects.
19001 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19003 # Library versioning type.
19004 version_type=$version_type
19006 # Format of library name prefix.
19007 libname_spec=$lt_libname_spec
19009 # List of archive names. First name is the real one, the rest are links.
19010 # The last name is the one that the linker finds with -lNAME.
19011 library_names_spec=$lt_library_names_spec
19013 # The coded name of the library, if different from the real name.
19014 soname_spec=$lt_soname_spec
19016 # Commands used to build and install an old-style archive.
19018 old_archive_cmds=$lt_old_archive_cmds_RC
19019 old_postinstall_cmds=$lt_old_postinstall_cmds
19020 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19022 # Create an old-style archive from a shared archive.
19023 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19025 # Create a temporary old-style archive to link instead of a shared archive.
19026 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19028 # Commands used to build and install a shared archive.
19029 archive_cmds=$lt_archive_cmds_RC
19030 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19031 postinstall_cmds=$lt_postinstall_cmds
19032 postuninstall_cmds=$lt_postuninstall_cmds
19034 # Commands used to build a loadable module (assumed same as above if empty)
19035 module_cmds=$lt_module_cmds_RC
19036 module_expsym_cmds=$lt_module_expsym_cmds_RC
19038 # Commands to strip libraries.
19039 old_striplib=$lt_old_striplib
19040 striplib=$lt_striplib
19042 # Dependencies to place before the objects being linked to create a
19044 predep_objects=$lt_predep_objects_RC
19046 # Dependencies to place after the objects being linked to create a
19048 postdep_objects=$lt_postdep_objects_RC
19050 # Dependencies to place before the objects being linked to create a
19052 predeps=$lt_predeps_RC
19054 # Dependencies to place after the objects being linked to create a
19056 postdeps=$lt_postdeps_RC
19058 # The directories searched by this compiler when creating a shared
19060 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19062 # The library search path used internally by the compiler when linking
19063 # a shared library.
19064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19066 # Method to check whether dependent libraries are shared objects.
19067 deplibs_check_method=$lt_deplibs_check_method
19069 # Command to use when deplibs_check_method == file_magic.
19070 file_magic_cmd=$lt_file_magic_cmd
19072 # Flag that allows shared libraries with undefined symbols to be built.
19073 allow_undefined_flag=$lt_allow_undefined_flag_RC
19075 # Flag that forces no undefined symbols.
19076 no_undefined_flag=$lt_no_undefined_flag_RC
19078 # Commands used to finish a libtool library installation in a directory.
19079 finish_cmds=$lt_finish_cmds
19081 # Same as above, but a single script fragment to be evaled but not shown.
19082 finish_eval=$lt_finish_eval
19084 # Take the output of nm and produce a listing of raw symbols and C names.
19085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19087 # Transform the output of nm in a proper C declaration
19088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19090 # Transform the output of nm in a C name address pair
19091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19093 # This is the shared library runtime path variable.
19094 runpath_var=$runpath_var
19096 # This is the shared library path variable.
19097 shlibpath_var=$shlibpath_var
19099 # Is shlibpath searched before the hard-coded library search path?
19100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_RC
19105 # Whether we should hardcode library paths into libraries.
19106 hardcode_into_libs=$hardcode_into_libs
19108 # Flag to hardcode \$libdir into a binary during linking.
19109 # This must work even if \$libdir does not exist.
19110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19112 # If ld is used when linking, flag to hardcode \$libdir into
19113 # a binary during linking. This must work even if \$libdir does
19115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19117 # Whether we need a single -rpath flag with a separated argument.
19118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_direct=$hardcode_direct_RC
19124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_minus_L=$hardcode_minus_L_RC
19128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19129 # the resulting binary.
19130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19132 # Set to yes if building a shared library automatically hardcodes DIR into the library
19133 # and all subsequent libraries and executables linked against it.
19134 hardcode_automatic=$hardcode_automatic_RC
19136 # Variables whose values should be saved in libtool wrapper scripts and
19137 # restored at relink time.
19138 variables_saved_for_relink="$variables_saved_for_relink"
19140 # Whether libtool must link a program against all its dependency libraries.
19141 link_all_deplibs=$link_all_deplibs_RC
19143 # Compile-time system search path for libraries
19144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19146 # Run-time system search path for libraries
19147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19149 # Fix the shell variable \$srcfile for the compiler.
19150 fix_srcfile_path=$lt_fix_srcfile_path
19152 # Set to yes if exported symbols are required.
19153 always_export_symbols=$always_export_symbols_RC
19155 # The commands to list exported symbols.
19156 export_symbols_cmds=$lt_export_symbols_cmds_RC
19158 # The commands to extract the exported symbol list from a shared archive.
19159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19161 # Symbols that should not be listed in the preloaded symbols.
19162 exclude_expsyms=$lt_exclude_expsyms_RC
19164 # Symbols that must always be exported.
19165 include_expsyms=$lt_include_expsyms_RC
19167 # ### END LIBTOOL TAG CONFIG: $tagname
19173 # If there is no Makefile yet, we rely on a make rule to execute
19174 # `config.status --recheck' to rerun these tests and create the
19175 # libtool script then.
19176 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19177 if test -f "$ltmain_in"; then
19178 test -f Makefile
&& make "$ltmain"
19184 ac_cpp
='$CPP $CPPFLAGS'
19185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19196 { (exit 1); exit 1; }; }
19200 # Append the new tag name to the list of available tags.
19201 if test -n "$tagname" ; then
19202 available_tags
="$available_tags $tagname"
19208 # Now substitute the updated list of available tags.
19209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19210 mv "${ofile}T" "$ofile"
19214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19216 { (exit 1); exit 1; }; }
19222 # This can be used to rebuild libtool when needed
19223 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19225 # Always use our own libtool.
19226 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19228 # Prevent multiple expansion
19249 # Find a good install program. We prefer a C program (faster),
19250 # so one script is as good as another. But avoid the broken or
19251 # incompatible versions:
19252 # SysV /etc/install, /usr/sbin/install
19253 # SunOS /usr/etc/install
19254 # IRIX /sbin/install
19256 # AmigaOS /C/install, which installs bootblocks on floppy discs
19257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19260 # OS/2's system install, which has a completely different semantic
19261 # ./install, which can be erroneously created by make from ./install.sh.
19262 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19263 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19264 if test -z "$INSTALL"; then
19265 if test "${ac_cv_path_install+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19269 for as_dir
in $PATH
19272 test -z "$as_dir" && as_dir
=.
19273 # Account for people who put trailing slashes in PATH elements.
19275 .
/ | .
// |
/cC
/* | \
19276 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
19277 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
19280 # OSF1 and SCO ODT 3.0 have their own names for install.
19281 # Don't use installbsd from OSF since it installs stuff as root
19283 for ac_prog
in ginstall scoinst
install; do
19284 for ac_exec_ext
in '' $ac_executable_extensions; do
19285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19286 if test $ac_prog = install &&
19287 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19288 # AIX install. It has an incompatible calling convention.
19290 elif test $ac_prog = install &&
19291 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19292 # program-specific install script used by HP pwplus--don't use.
19295 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
19308 if test "${ac_cv_path_install+set}" = set; then
19309 INSTALL
=$ac_cv_path_install
19311 # As a last resort, use the slow shell script. Don't cache a
19312 # value for INSTALL within a source directory, because that will
19313 # break other packages using the cache if that directory is
19314 # removed, or if the value is a relative name.
19315 INSTALL
=$ac_install_sh
19318 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19319 echo "${ECHO_T}$INSTALL" >&6; }
19321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19322 # It thinks the first close brace ends the variable substitution.
19323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
19325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
19327 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
19329 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
19330 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
19332 if test "$LN_S" = "ln -s"; then
19333 { echo "$as_me:$LINENO: result: yes" >&5
19334 echo "${ECHO_T}yes" >&6; }
19336 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19337 echo "${ECHO_T}no, using $LN_S" >&6; }
19346 # Warn if the user specified libbind, which is now deprecated
19347 # Check whether --enable-libbind was given.
19348 if test "${enable_libbind+set}" = set; then
19349 enableval
=$enable_libbind;
19353 case "$enable_libbind" in
19355 { { echo "$as_me:$LINENO: error: 'libbind' is no longer part of the BIND 9 distribution.
19356 It is available from http://www.isc.org as a separate download." >&5
19357 echo "$as_me: error: 'libbind' is no longer part of the BIND 9 distribution.
19358 It is available from http://www.isc.org as a separate download." >&2;}
19359 { (exit 1); exit 1; }; }
19366 # Make very sure that these are the first files processed by
19367 # config.status, since we use the processed output as the input for
19368 # AC_SUBST_FILE() substitutions in other files.
19370 ac_config_files
="$ac_config_files make/rules make/includes"
19373 # Extract the first word of "ar", so it can be a program name with args.
19374 set dummy
ar; ac_word
=$2
19375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19377 if test "${ac_cv_path_AR+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
19385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19386 for as_dir
in $PATH
19389 test -z "$as_dir" && as_dir
=.
19390 for ac_exec_ext
in '' $ac_executable_extensions; do
19391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19392 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
19393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19404 if test -n "$AR"; then
19405 { echo "$as_me:$LINENO: result: $AR" >&5
19406 echo "${ECHO_T}$AR" >&6; }
19408 { echo "$as_me:$LINENO: result: no" >&5
19409 echo "${ECHO_T}no" >&6; }
19417 # The POSIX ln(1) program. Non-POSIX systems may substitute
19418 # "copy" or something.
19424 { { echo "$as_me:$LINENO: error:
19425 ar program not found. Please fix your PATH to include the directory in
19426 which ar resides, or set AR in the environment with the full path to ar.
19428 echo "$as_me: error:
19429 ar program not found. Please fix your PATH to include the directory in
19430 which ar resides, or set AR in the environment with the full path to ar.
19432 { (exit 1); exit 1; }; }
19440 for ac_prog
in etags emacs-etags
19442 # Extract the first word of "$ac_prog", so it can be a program name with args.
19443 set dummy
$ac_prog; ac_word
=$2
19444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19446 if test "${ac_cv_path_ETAGS+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 ac_cv_path_ETAGS
="$ETAGS" # Let the user override the test with a path.
19454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19455 for as_dir
in $PATH
19458 test -z "$as_dir" && as_dir
=.
19459 for ac_exec_ext
in '' $ac_executable_extensions; do
19460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19461 ac_cv_path_ETAGS
="$as_dir/$ac_word$ac_exec_ext"
19462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19472 ETAGS
=$ac_cv_path_ETAGS
19473 if test -n "$ETAGS"; then
19474 { echo "$as_me:$LINENO: result: $ETAGS" >&5
19475 echo "${ECHO_T}$ETAGS" >&6; }
19477 { echo "$as_me:$LINENO: result: no" >&5
19478 echo "${ECHO_T}no" >&6; }
19482 test -n "$ETAGS" && break
19487 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
19488 # GNU emacs etags, and it requires the -L flag.
19490 if test "X$ETAGS" != "X"; then
19491 { echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5
19492 echo $ECHO_N "checking for Exuberant Ctags etags... $ECHO_C" >&6; }
19493 if $ETAGS --version 2>&1 |
grep 'Exuberant Ctags' >/dev
/null
2>&1; then
19494 { echo "$as_me:$LINENO: result: yes" >&5
19495 echo "${ECHO_T}yes" >&6; }
19498 { echo "$as_me:$LINENO: result: no" >&5
19499 echo "${ECHO_T}no" >&6; }
19505 # Perl is optional; it is used only by some of the system test scripts.
19506 # Note: the backtrace feature (see below) uses perl to build the symbol table,
19507 # but it still compiles without perl, in which case an empty table will be used.
19509 for ac_prog
in perl5 perl
19511 # Extract the first word of "$ac_prog", so it can be a program name with args.
19512 set dummy
$ac_prog; ac_word
=$2
19513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19515 if test "${ac_cv_path_PERL+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
19523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19524 for as_dir
in $PATH
19527 test -z "$as_dir" && as_dir
=.
19528 for ac_exec_ext
in '' $ac_executable_extensions; do
19529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19530 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
19531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19541 PERL
=$ac_cv_path_PERL
19542 if test -n "$PERL"; then
19543 { echo "$as_me:$LINENO: result: $PERL" >&5
19544 echo "${ECHO_T}$PERL" >&6; }
19546 { echo "$as_me:$LINENO: result: no" >&5
19547 echo "${ECHO_T}no" >&6; }
19551 test -n "$PERL" && break
19557 # Special processing of paths depending on whether --prefix,
19558 # --sysconfdir or --localstatedir arguments were given. What's
19559 # desired is some compatibility with the way previous versions
19560 # of BIND built; they defaulted to /usr/local for most parts of
19561 # the installation, but named.boot/named.conf was in /etc
19562 # and named.pid was in /var/run.
19564 # So ... if none of --prefix, --sysconfdir or --localstatedir are
19565 # specified, set things up that way. If --prefix is given, use
19566 # it for sysconfdir and localstatedir the way configure normally
19567 # would. To change the prefix for everything but leave named.conf
19568 # in /etc or named.pid in /var/run, then do this the usual configure way:
19569 # ./configure --prefix=/somewhere --sysconfdir=/etc
19570 # ./configure --prefix=/somewhere --localstatedir=/var
19572 # To put named.conf and named.pid in /usr/local with everything else,
19573 # set the prefix explicitly to /usr/local even though that's the default:
19574 # ./configure --prefix=/usr/local
19578 case "$sysconfdir" in
19583 case "$localstatedir" in
19592 # Make sure INSTALL uses an absolute path, else it will be wrong in all
19593 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
19594 # configure based on the location of the file where it is substituted.
19595 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
19596 # subdirectory of install-sh, This relative path will be wrong for all
19597 # directories more than one level down from install-sh.
19604 # Not all systems have dirname.
19607 ac_dir
="`echo $INSTALL | sed 's%/[^/]*$%%'`"
19610 ac_prog
="`echo $INSTALL | sed 's%.*/%%'`"
19611 test "$ac_dir" = "$ac_prog" && ac_dir
=.
19612 test -d "$ac_dir" && ac_dir
="`(cd \"$ac_dir\" && pwd)`"
19613 INSTALL
="$ac_dir/$ac_prog"
19618 # On these hosts, we really want to use cc, not gcc, even if it is
19619 # found. The gcc that these systems have will not correctly handle
19622 # However, if the user sets $CC to be something, let that override
19625 if test "X$CC" = "X" ; then
19631 # Use Sun's cc if it is available, but watch
19632 # out for /usr/ucb/cc; it will never be the right
19635 # If setting CC here fails, the AC_PROG_CC done
19636 # below might still find gcc.
19637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
19638 for ac_dir
in $PATH; do
19639 test -z "$ac_dir" && ac_dir
=.
19645 if test -f "$ac_dir/cc"; then
19664 ac_cpp
='$CPP $CPPFLAGS'
19665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19668 if test -n "$ac_tool_prefix"; then
19669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19670 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
19671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19673 if test "${ac_cv_prog_CC+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 if test -n "$CC"; then
19677 ac_cv_prog_CC
="$CC" # Let the user override the test.
19679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19680 for as_dir
in $PATH
19683 test -z "$as_dir" && as_dir
=.
19684 for ac_exec_ext
in '' $ac_executable_extensions; do
19685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19686 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
19687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19697 if test -n "$CC"; then
19698 { echo "$as_me:$LINENO: result: $CC" >&5
19699 echo "${ECHO_T}$CC" >&6; }
19701 { echo "$as_me:$LINENO: result: no" >&5
19702 echo "${ECHO_T}no" >&6; }
19707 if test -z "$ac_cv_prog_CC"; then
19709 # Extract the first word of "gcc", so it can be a program name with args.
19710 set dummy gcc
; ac_word
=$2
19711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 if test -n "$ac_ct_CC"; then
19717 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19720 for as_dir
in $PATH
19723 test -z "$as_dir" && as_dir
=.
19724 for ac_exec_ext
in '' $ac_executable_extensions; do
19725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19726 ac_cv_prog_ac_ct_CC
="gcc"
19727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19736 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19737 if test -n "$ac_ct_CC"; then
19738 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19739 echo "${ECHO_T}$ac_ct_CC" >&6; }
19741 { echo "$as_me:$LINENO: result: no" >&5
19742 echo "${ECHO_T}no" >&6; }
19745 if test "x$ac_ct_CC" = x
; then
19748 case $cross_compiling:$ac_tool_warned in
19750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19751 whose name does not start with the host triplet. If you think this
19752 configuration is useful to you, please write to autoconf@gnu.org." >&5
19753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19754 whose name does not start with the host triplet. If you think this
19755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19756 ac_tool_warned
=yes ;;
19761 CC
="$ac_cv_prog_CC"
19764 if test -z "$CC"; then
19765 if test -n "$ac_tool_prefix"; then
19766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19767 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
19768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19770 if test "${ac_cv_prog_CC+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 if test -n "$CC"; then
19774 ac_cv_prog_CC
="$CC" # Let the user override the test.
19776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19777 for as_dir
in $PATH
19780 test -z "$as_dir" && as_dir
=.
19781 for ac_exec_ext
in '' $ac_executable_extensions; do
19782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19783 ac_cv_prog_CC
="${ac_tool_prefix}cc"
19784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19794 if test -n "$CC"; then
19795 { echo "$as_me:$LINENO: result: $CC" >&5
19796 echo "${ECHO_T}$CC" >&6; }
19798 { echo "$as_me:$LINENO: result: no" >&5
19799 echo "${ECHO_T}no" >&6; }
19805 if test -z "$CC"; then
19806 # Extract the first word of "cc", so it can be a program name with args.
19807 set dummy cc
; ac_word
=$2
19808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19810 if test "${ac_cv_prog_CC+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 if test -n "$CC"; then
19814 ac_cv_prog_CC
="$CC" # Let the user override the test.
19816 ac_prog_rejected
=no
19817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19818 for as_dir
in $PATH
19821 test -z "$as_dir" && as_dir
=.
19822 for ac_exec_ext
in '' $ac_executable_extensions; do
19823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19825 ac_prog_rejected
=yes
19829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19836 if test $ac_prog_rejected = yes; then
19837 # We found a bogon in the path, so make sure we never use it.
19838 set dummy
$ac_cv_prog_CC
19840 if test $# != 0; then
19841 # We chose a different compiler from the bogus one.
19842 # However, it has the same basename, so the bogon will be chosen
19843 # first if we set CC to just the basename; use the full file name.
19845 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
19851 if test -n "$CC"; then
19852 { echo "$as_me:$LINENO: result: $CC" >&5
19853 echo "${ECHO_T}$CC" >&6; }
19855 { echo "$as_me:$LINENO: result: no" >&5
19856 echo "${ECHO_T}no" >&6; }
19861 if test -z "$CC"; then
19862 if test -n "$ac_tool_prefix"; then
19863 for ac_prog
in cl.exe
19865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19866 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
19867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19869 if test "${ac_cv_prog_CC+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 if test -n "$CC"; then
19873 ac_cv_prog_CC
="$CC" # Let the user override the test.
19875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19876 for as_dir
in $PATH
19879 test -z "$as_dir" && as_dir
=.
19880 for ac_exec_ext
in '' $ac_executable_extensions; do
19881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19882 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
19883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19893 if test -n "$CC"; then
19894 { echo "$as_me:$LINENO: result: $CC" >&5
19895 echo "${ECHO_T}$CC" >&6; }
19897 { echo "$as_me:$LINENO: result: no" >&5
19898 echo "${ECHO_T}no" >&6; }
19902 test -n "$CC" && break
19905 if test -z "$CC"; then
19907 for ac_prog
in cl.exe
19909 # Extract the first word of "$ac_prog", so it can be a program name with args.
19910 set dummy
$ac_prog; ac_word
=$2
19911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 if test -n "$ac_ct_CC"; then
19917 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19920 for as_dir
in $PATH
19923 test -z "$as_dir" && as_dir
=.
19924 for ac_exec_ext
in '' $ac_executable_extensions; do
19925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19926 ac_cv_prog_ac_ct_CC
="$ac_prog"
19927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19936 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19937 if test -n "$ac_ct_CC"; then
19938 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19939 echo "${ECHO_T}$ac_ct_CC" >&6; }
19941 { echo "$as_me:$LINENO: result: no" >&5
19942 echo "${ECHO_T}no" >&6; }
19946 test -n "$ac_ct_CC" && break
19949 if test "x$ac_ct_CC" = x
; then
19952 case $cross_compiling:$ac_tool_warned in
19954 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19955 whose name does not start with the host triplet. If you think this
19956 configuration is useful to you, please write to autoconf@gnu.org." >&5
19957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19958 whose name does not start with the host triplet. If you think this
19959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19960 ac_tool_warned
=yes ;;
19969 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19970 See \`config.log' for more details." >&5
19971 echo "$as_me: error: no acceptable C compiler found in \$PATH
19972 See \`config.log' for more details." >&2;}
19973 { (exit 1); exit 1; }; }
19975 # Provide some information about the compiler.
19976 echo "$as_me:$LINENO: checking for C compiler version" >&5
19977 ac_compiler
=`set X $ac_compile; echo $2`
19978 { (ac_try
="$ac_compiler --version >&5"
19979 case "(($ac_try" in
19980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_compiler --version >&5") 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }
19988 { (ac_try="$ac_compiler -v >&5"
19989 case "(($ac_try" in
19990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19991 *) ac_try_echo
=$ac_try;;
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_compiler -v >&5") 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }
19998 { (ac_try
="$ac_compiler -V >&5"
19999 case "(($ac_try" in
20000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compiler -V >&5") 2>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }
20009 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20010 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 cat >conftest.$ac_ext <<_ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20032 rm -f conftest.$ac_objext
20033 if { (ac_try="$ac_compile"
20034 case "(($ac_try" in
20035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20036 *) ac_try_echo
=$ac_try;;
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_compile") 2>conftest.er1
20041 grep -v '^ *+' conftest.er1
>conftest.err
20043 cat conftest.err
>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && {
20046 test -z "$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20048 } && test -s conftest.
$ac_objext; then
20049 ac_compiler_gnu
=yes
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.
$ac_ext >&5
20057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20058 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
20061 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20062 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20063 GCC
=`test $ac_compiler_gnu = yes && echo yes`
20064 ac_test_CFLAGS
=${CFLAGS+set}
20065 ac_save_CFLAGS
=$CFLAGS
20066 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20067 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20068 if test "${ac_cv_prog_cc_g+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 ac_save_c_werror_flag
=$ac_c_werror_flag
20072 ac_c_werror_flag
=yes
20075 cat >conftest.
$ac_ext <<_ACEOF
20078 cat confdefs.h
>>conftest.
$ac_ext
20079 cat >>conftest.
$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20090 rm -f conftest.
$ac_objext
20091 if { (ac_try
="$ac_compile"
20092 case "(($ac_try" in
20093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_compile") 2>conftest.er1
20099 grep -v '^ *+' conftest.er1 >conftest.err
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest.$ac_objext; then
20107 ac_cv_prog_cc_g=yes
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20128 rm -f conftest.$ac_objext
20129 if { (ac_try="$ac_compile"
20130 case "(($ac_try" in
20131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20132 *) ac_try_echo
=$ac_try;;
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_compile") 2>conftest.er1
20137 grep -v '^ *+' conftest.er1
>conftest.err
20139 cat conftest.err
>&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } && {
20142 test -z "$ac_c_werror_flag" ||
20143 test ! -s conftest.err
20144 } && test -s conftest.
$ac_objext; then
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.
$ac_ext >&5
20150 ac_c_werror_flag
=$ac_save_c_werror_flag
20152 cat >conftest.
$ac_ext <<_ACEOF
20155 cat confdefs.h
>>conftest.
$ac_ext
20156 cat >>conftest.
$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20167 rm -f conftest.
$ac_objext
20168 if { (ac_try
="$ac_compile"
20169 case "(($ac_try" in
20170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_compile") 2>conftest.er1
20176 grep -v '^ *+' conftest.er1 >conftest.err
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } && {
20181 test -z "$ac_c_werror_flag" ||
20182 test ! -s conftest.err
20183 } && test -s conftest.$ac_objext; then
20184 ac_cv_prog_cc_g=yes
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20199 ac_c_werror_flag=$ac_save_c_werror_flag
20201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20203 if test "$ac_test_CFLAGS" = set; then
20204 CFLAGS=$ac_save_CFLAGS
20205 elif test $ac_cv_prog_cc_g = yes; then
20206 if test "$GCC" = yes; then
20212 if test "$GCC" = yes; then
20218 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20219 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20220 if test "${ac_cv_prog_cc_c89+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 ac_cv_prog_cc_c89=no
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <stdarg.h>
20233 #include <sys/types.h>
20234 #include <sys/stat.h>
20235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20236 struct buf { int x; };
20237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20238 static char *e (p, i)
20244 static char *f (char * (*g) (char **, int), char **p, ...)
20249 s = g (p, va_arg (v,int));
20254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20255 function prototypes and stuff, but not '\xHH' hex character constants.
20256 These don't provoke an error unfortunately, instead are silently treated
20257 as 'x'. The following induces an error, until -std is added to get
20258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20259 array size at least. It's necessary to write '\x00'==0 to get something
20260 that's true only with -std. */
20261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20264 inside strings and character constants. */
20266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20268 int test (int i, double x);
20269 struct s1 {int (*f) (int a);};
20270 struct s2 {int (*f) (double a);};
20271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20285 CC="$ac_save_CC $ac_arg"
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20290 *) ac_try_echo
=$ac_try;;
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_compile") 2>conftest.er1
20295 grep -v '^ *+' conftest.er1
>conftest.err
20297 cat conftest.err
>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest.
$ac_objext; then
20303 ac_cv_prog_cc_c89
=$ac_arg
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.
$ac_ext >&5
20311 rm -f core conftest.err conftest.
$ac_objext
20312 test "x$ac_cv_prog_cc_c89" != "xno" && break
20314 rm -f conftest.
$ac_ext
20319 case "x$ac_cv_prog_cc_c89" in
20321 { echo "$as_me:$LINENO: result: none needed" >&5
20322 echo "${ECHO_T}none needed" >&6; } ;;
20324 { echo "$as_me:$LINENO: result: unsupported" >&5
20325 echo "${ECHO_T}unsupported" >&6; } ;;
20327 CC
="$CC $ac_cv_prog_cc_c89"
20328 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20329 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20334 ac_cpp
='$CPP $CPPFLAGS'
20335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20341 # gcc's optimiser is broken at -02 for ultrasparc
20343 if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
20352 # OS dependent CC flags
20355 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
20356 # -D_XOPEN_SOURCE_EXTENDED.
20358 STD_CDEFINES
="$STD_CDEFINES -D_POSIX_PII_SOCKET"
20359 CPPFLAGS
="$CPPFLAGS -D_POSIX_PII_SOCKET"
20361 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
20363 STD_CDEFINES
="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
20364 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
20365 LIBS
="-lxnet $LIBS"
20367 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
20369 STD_CDEFINES
="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
20370 CPPFLAGS
="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
20372 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
20373 # parts of the IPv6 Advanced Socket API as a result. This is stupid
20374 # as it breaks how the two halves (Basic and Advanced) of the IPv6
20375 # Socket API were designed to be used but we have to live with it.
20376 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
20378 STD_CDEFINES
="$STD_CDEFINES -D_GNU_SOURCE"
20379 CPPFLAGS
="$CPPFLAGS -D_GNU_SOURCE"
20383 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20384 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20385 if test "${ac_cv_header_stdc+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 cat >conftest.
$ac_ext <<_ACEOF
20391 cat confdefs.h
>>conftest.
$ac_ext
20392 cat >>conftest.
$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <stdlib.h>
20395 #include <stdarg.h>
20396 #include <string.h>
20407 rm -f conftest.
$ac_objext
20408 if { (ac_try
="$ac_compile"
20409 case "(($ac_try" in
20410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_compile") 2>conftest.er1
20416 grep -v '^ *+' conftest.er1 >conftest.err
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest.$ac_objext; then
20424 ac_cv_header_stdc=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_header_stdc=no
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 if test $ac_cv_header_stdc = yes; then
20435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20436 cat >conftest.$ac_ext <<_ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442 #include <string.h>
20445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20446 $EGREP "memchr" >/dev/null 2>&1; then
20449 ac_cv_header_stdc=no
20455 if test $ac_cv_header_stdc = yes; then
20456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20457 cat >conftest.$ac_ext <<_ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 #include <stdlib.h>
20466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20467 $EGREP "free" >/dev/null 2>&1; then
20470 ac_cv_header_stdc=no
20476 if test $ac_cv_header_stdc = yes; then
20477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20478 if test "$cross_compiling" = yes; then
20481 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20488 #include <stdlib.h>
20489 #if ((' ' & 0x0FF) == 0x020)
20490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20493 # define ISLOWER(c) \
20494 (('a' <= (c) && (c) <= 'i') \
20495 || ('j' <= (c) && (c) <= 'r') \
20496 || ('s' <= (c) && (c) <= 'z'))
20497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20505 for (i = 0; i < 256; i++)
20506 if (XOR (islower (i), ISLOWER (i))
20507 || toupper (i) != TOUPPER (i))
20512 rm -f conftest$ac_exeext
20513 if { (ac_try="$ac_link"
20514 case "(($ac_try" in
20515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20516 *) ac_try_echo
=$ac_try;;
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_link") 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20523 { (case "(($ac_try" in
20524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_try") 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20534 echo "$as_me: program exited with status $ac_status" >&5
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ( exit $ac_status )
20539 ac_cv_header_stdc=no
20541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20547 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20548 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20549 if test $ac_cv_header_stdc = yes; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define STDC_HEADERS 1
20567 for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h
20569 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 $ac_includes_default
20582 #ifdef HAVE_SYS_PARAM_H
20583 # include <sys/param.h>
20587 #include <$ac_header>
20589 rm -f conftest.$ac_objext
20590 if { (ac_try="$ac_compile"
20591 case "(($ac_try" in
20592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20593 *) ac_try_echo
=$ac_try;;
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_compile") 2>conftest.er1
20598 grep -v '^ *+' conftest.er1
>conftest.err
20600 cat conftest.err
>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } && {
20603 test -z "$ac_c_werror_flag" ||
20604 test ! -s conftest.err
20605 } && test -s conftest.
$ac_objext; then
20606 eval "$as_ac_Header=yes"
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.
$ac_ext >&5
20611 eval "$as_ac_Header=no"
20614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20616 ac_res
=`eval echo '${'$as_ac_Header'}'`
20617 { echo "$as_me:$LINENO: result: $ac_res" >&5
20618 echo "${ECHO_T}$ac_res" >&6; }
20619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20620 cat >>confdefs.h
<<_ACEOF
20621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20631 if test "${ac_cv_c_const+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20634 cat >conftest.
$ac_ext <<_ACEOF
20637 cat confdefs.h
>>conftest.
$ac_ext
20638 cat >>conftest.
$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20644 /* FIXME: Include the comments suggested by Paul. */
20645 #ifndef __cplusplus
20646 /* Ultrix mips cc rejects this. */
20647 typedef int charset[2];
20649 /* SunOS 4.1.1 cc rejects this. */
20650 char const *const *pcpcc;
20652 /* NEC SVR4.0.2 mips cc rejects this. */
20653 struct point {int x, y;};
20654 static struct point const zero = {0,0};
20655 /* AIX XL C 1.02.0.0 rejects this.
20656 It does not let you subtract one const X* pointer from another in
20657 an arm of an if-expression whose if-part is not a constant
20659 const char *g = "string";
20660 pcpcc = &g + (g ? g-g : 0);
20661 /* HPUX 7.0 cc rejects these. */
20663 ppc = (char**) pcpcc;
20664 pcpcc = (char const *const *) ppc;
20665 { /* SCO 3.2v4 cc rejects this. */
20667 char const *s = 0 ? (char *) 0 : (char const *) 0;
20672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20673 int x[] = {25, 17};
20674 const int *foo = &x[0];
20677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20678 typedef const int *iptr;
20682 { /* AIX XL C 1.02.0.0 rejects this saying
20683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20684 struct s { int j; const int *ap[3]; };
20685 struct s *b; b->j = 5;
20687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20688 const int foo = 10;
20689 if (!foo) return 0;
20691 return !cs[0] && !zero.x;
20698 rm -f conftest.
$ac_objext
20699 if { (ac_try
="$ac_compile"
20700 case "(($ac_try" in
20701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_compile") 2>conftest.er1
20707 grep -v '^ *+' conftest.er1 >conftest.err
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest.$ac_objext; then
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20727 if test $ac_cv_c_const = no; then
20729 cat >>confdefs.h <<\_ACEOF
20735 { echo "$as_me:$LINENO: checking for inline" >&5
20736 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20737 if test "${ac_cv_c_inline+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 for ac_kw in inline __inline__ __inline; do
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #ifndef __cplusplus
20750 static $ac_kw foo_t static_foo () {return 0; }
20751 $ac_kw foo_t foo () {return 0; }
20755 rm -f conftest.$ac_objext
20756 if { (ac_try="$ac_compile"
20757 case "(($ac_try" in
20758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20759 *) ac_try_echo
=$ac_try;;
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_compile") 2>conftest.er1
20764 grep -v '^ *+' conftest.er1
>conftest.err
20766 cat conftest.err
>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && {
20769 test -z "$ac_c_werror_flag" ||
20770 test ! -s conftest.err
20771 } && test -s conftest.
$ac_objext; then
20772 ac_cv_c_inline
=$ac_kw
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.
$ac_ext >&5
20780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20781 test "$ac_cv_c_inline" != no
&& break
20785 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20786 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20789 case $ac_cv_c_inline in
20792 case $ac_cv_c_inline in
20794 *) ac_val
=$ac_cv_c_inline;;
20796 cat >>confdefs.h
<<_ACEOF
20797 #ifndef __cplusplus
20798 #define inline $ac_val
20804 { echo "$as_me:$LINENO: checking for working volatile" >&5
20805 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20806 if test "${ac_cv_c_volatile+set}" = set; then
20807 echo $ECHO_N "(cached) $ECHO_C" >&6
20809 cat >conftest.
$ac_ext <<_ACEOF
20812 cat confdefs.h
>>conftest.
$ac_ext
20813 cat >>conftest.
$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20821 int * volatile y = (int *) 0;
20827 rm -f conftest.
$ac_objext
20828 if { (ac_try
="$ac_compile"
20829 case "(($ac_try" in
20830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_compile") 2>conftest.er1
20836 grep -v '^ *+' conftest.er1 >conftest.err
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } && {
20841 test -z "$ac_c_werror_flag" ||
20842 test ! -s conftest.err
20843 } && test -s conftest.$ac_objext; then
20844 ac_cv_c_volatile=yes
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 ac_cv_c_volatile=no
20852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20855 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
20856 if test $ac_cv_c_volatile = no; then
20858 cat >>confdefs.h <<\_ACEOF
20864 { echo "$as_me:$LINENO: checking for sysctlbyname" >&5
20865 echo $ECHO_N "checking for sysctlbyname... $ECHO_C" >&6; }
20866 if test "${ac_cv_func_sysctlbyname+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 /* Define sysctlbyname to an innocuous variant, in case <limits.h> declares sysctlbyname.
20876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20877 #define sysctlbyname innocuous_sysctlbyname
20879 /* System header to define __stub macros and hopefully few prototypes,
20880 which can conflict with char sysctlbyname (); below.
20881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20882 <limits.h> exists even on freestanding compilers. */
20885 # include <limits.h>
20887 # include <assert.h>
20890 #undef sysctlbyname
20892 /* Override any GCC internal prototype to avoid an error.
20893 Use char because int might match the return type of a GCC
20894 builtin and then its argument prototype would still apply. */
20898 char sysctlbyname ();
20899 /* The GNU C library defines this for functions which it implements
20900 to always fail with ENOSYS. Some functions are actually named
20901 something starting with __ and the normal name is an alias. */
20902 #if defined __stub_sysctlbyname || defined __stub___sysctlbyname
20909 return sysctlbyname ();
20914 rm -f conftest.$ac_objext conftest$ac_exeext
20915 if { (ac_try="$ac_link"
20916 case "(($ac_try" in
20917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20918 *) ac_try_echo
=$ac_try;;
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_link") 2>conftest.er1
20923 grep -v '^ *+' conftest.er1
>conftest.err
20925 cat conftest.err
>&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest
$ac_exeext &&
20931 $as_test_x conftest
$ac_exeext; then
20932 ac_cv_func_sysctlbyname
=yes
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.
$ac_ext >&5
20937 ac_cv_func_sysctlbyname
=no
20940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20941 conftest
$ac_exeext conftest.
$ac_ext
20943 { echo "$as_me:$LINENO: result: $ac_cv_func_sysctlbyname" >&5
20944 echo "${ECHO_T}$ac_cv_func_sysctlbyname" >&6; }
20945 if test $ac_cv_func_sysctlbyname = yes; then
20946 cat >>confdefs.h
<<\_ACEOF
20947 #define HAVE_SYSCTLBYNAME 1
20954 # Older versions of HP/UX don't define seteuid() and setegid()
20958 for ac_func
in seteuid setresuid
20960 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20963 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20966 cat >conftest.
$ac_ext <<_ACEOF
20969 cat confdefs.h
>>conftest.
$ac_ext
20970 cat >>conftest.
$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20974 #define $ac_func innocuous_$ac_func
20976 /* System header to define __stub macros and hopefully few prototypes,
20977 which can conflict with char $ac_func (); below.
20978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20979 <limits.h> exists even on freestanding compilers. */
20982 # include <limits.h>
20984 # include <assert.h>
20989 /* Override any GCC internal prototype to avoid an error.
20990 Use char because int might match the return type of a GCC
20991 builtin and then its argument prototype would still apply. */
20996 /* The GNU C library defines this for functions which it implements
20997 to always fail with ENOSYS. Some functions are actually named
20998 something starting with __ and the normal name is an alias. */
20999 #if defined __stub_$ac_func || defined __stub___$ac_func
21006 return $ac_func ();
21011 rm -f conftest.
$ac_objext conftest
$ac_exeext
21012 if { (ac_try
="$ac_link"
21013 case "(($ac_try" in
21014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_link") 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest$ac_exeext &&
21028 $as_test_x conftest$ac_exeext; then
21029 eval "$as_ac_var=yes"
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 eval "$as_ac_var=no"
21037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21038 conftest$ac_exeext conftest.$ac_ext
21040 ac_res=`eval echo '${'$as_ac_var'}'`
21041 { echo "$as_me:$LINENO: result: $ac_res" >&5
21042 echo "${ECHO_T}$ac_res" >&6; }
21043 if test `eval echo '${'$as_ac_var'}'` = yes; then
21044 cat >>confdefs.h <<_ACEOF
21045 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21053 for ac_func in setegid setresgid
21055 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 cat >conftest.$ac_ext <<_ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21069 #define $ac_func innocuous_$ac_func
21071 /* System header to define __stub macros and hopefully few prototypes,
21072 which can conflict with char $ac_func (); below.
21073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21074 <limits.h> exists even on freestanding compilers. */
21077 # include <limits.h>
21079 # include <assert.h>
21084 /* Override any GCC internal prototype to avoid an error.
21085 Use char because int might match the return type of a GCC
21086 builtin and then its argument prototype would still apply. */
21091 /* The GNU C library defines this for functions which it implements
21092 to always fail with ENOSYS. Some functions are actually named
21093 something starting with __ and the normal name is an alias. */
21094 #if defined __stub_$ac_func || defined __stub___$ac_func
21101 return $ac_func ();
21106 rm -f conftest.$ac_objext conftest$ac_exeext
21107 if { (ac_try="$ac_link"
21108 case "(($ac_try" in
21109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21110 *) ac_try_echo
=$ac_try;;
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_link") 2>conftest.er1
21115 grep -v '^ *+' conftest.er1
>conftest.err
21117 cat conftest.err
>&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest
$ac_exeext &&
21123 $as_test_x conftest
$ac_exeext; then
21124 eval "$as_ac_var=yes"
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.
$ac_ext >&5
21129 eval "$as_ac_var=no"
21132 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21133 conftest
$ac_exeext conftest.
$ac_ext
21135 ac_res
=`eval echo '${'$as_ac_var'}'`
21136 { echo "$as_me:$LINENO: result: $ac_res" >&5
21137 echo "${ECHO_T}$ac_res" >&6; }
21138 if test `eval echo '${'$as_ac_var'}'` = yes; then
21139 cat >>confdefs.h
<<_ACEOF
21140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21148 # UnixWare 7.1.1 with the feature supplement to the UDK compiler
21149 # is reported to not support "static inline" (RT #1212).
21151 { echo "$as_me:$LINENO: checking for static inline breakage" >&5
21152 echo $ECHO_N "checking for static inline breakage... $ECHO_C" >&6; }
21153 cat >conftest.
$ac_ext <<_ACEOF
21156 cat confdefs.h
>>conftest.
$ac_ext
21157 cat >>conftest.
$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21167 static inline int foo1() {
21171 static inline int foo2() {
21178 rm -f conftest.
$ac_objext
21179 if { (ac_try
="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21195 { echo "$as_me:$LINENO: result: no" >&5
21196 echo "${ECHO_T}no" >&6; }
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21201 { echo "$as_me:$LINENO: result: yes" >&5
21202 echo "${ECHO_T}yes" >&6; }
21203 cat >>confdefs.h <<\_ACEOF
21209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 { echo "$as_me:$LINENO: checking for size_t" >&5
21212 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21213 if test "${ac_cv_type_size_t+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 $ac_includes_default
21223 typedef size_t ac__type_new_;
21227 if ((ac__type_new_ *) 0)
21229 if (sizeof (ac__type_new_))
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21239 *) ac_try_echo
=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1
>conftest.err
21246 cat conftest.err
>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.
$ac_objext; then
21252 ac_cv_type_size_t
=yes
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.
$ac_ext >&5
21257 ac_cv_type_size_t
=no
21260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21262 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21263 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21264 if test $ac_cv_type_size_t = yes; then
21268 cat >>confdefs.h
<<_ACEOF
21269 #define size_t unsigned int
21274 { echo "$as_me:$LINENO: checking for ssize_t" >&5
21275 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21276 if test "${ac_cv_type_ssize_t+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 cat >conftest.
$ac_ext <<_ACEOF
21282 cat confdefs.h
>>conftest.
$ac_ext
21283 cat >>conftest.
$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 typedef ssize_t ac__type_new_;
21290 if ((ac__type_new_ *) 0)
21292 if (sizeof (ac__type_new_))
21298 rm -f conftest.
$ac_objext
21299 if { (ac_try
="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
21315 ac_cv_type_ssize_t=yes
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_cv_type_ssize_t=no
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21326 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
21327 if test $ac_cv_type_ssize_t = yes; then
21331 cat >>confdefs.h <<_ACEOF
21332 #define ssize_t int
21337 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
21338 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
21339 if test "${ac_cv_type_uintptr_t+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 cat >conftest.$ac_ext <<_ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 $ac_includes_default
21349 typedef uintptr_t ac__type_new_;
21353 if ((ac__type_new_ *) 0)
21355 if (sizeof (ac__type_new_))
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21365 *) ac_try_echo
=$ac_try;;
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_compile") 2>conftest.er1
21370 grep -v '^ *+' conftest.er1
>conftest.err
21372 cat conftest.err
>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest.
$ac_objext; then
21378 ac_cv_type_uintptr_t
=yes
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.
$ac_ext >&5
21383 ac_cv_type_uintptr_t
=no
21386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21388 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21389 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
21390 if test $ac_cv_type_uintptr_t = yes; then
21394 cat >>confdefs.h
<<_ACEOF
21395 #define uintptr_t unsigned long
21400 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21401 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21402 if test "${ac_cv_type_socklen_t+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 cat >conftest.
$ac_ext <<_ACEOF
21408 cat confdefs.h
>>conftest.
$ac_ext
21409 cat >>conftest.
$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21412 #include <sys/types.h>
21413 #include <sys/socket.h>
21416 typedef socklen_t ac__type_new_;
21420 if ((ac__type_new_ *) 0)
21422 if (sizeof (ac__type_new_))
21428 rm -f conftest.
$ac_objext
21429 if { (ac_try
="$ac_compile"
21430 case "(($ac_try" in
21431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_compile") 2>conftest.er1
21437 grep -v '^ *+' conftest.er1 >conftest.err
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } && {
21442 test -z "$ac_c_werror_flag" ||
21443 test ! -s conftest.err
21444 } && test -s conftest.$ac_objext; then
21445 ac_cv_type_socklen_t=yes
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 ac_cv_type_socklen_t=no
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21456 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
21457 if test $ac_cv_type_socklen_t = yes; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define ISC_SOCKADDR_LEN_T socklen_t
21464 cat >conftest.$ac_ext <<_ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21471 #include <sys/types.h>
21472 #include <sys/socket.h>
21473 int getsockname(int, struct sockaddr *, size_t *);
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21487 *) ac_try_echo
=$ac_try;;
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21492 grep -v '^ *+' conftest.er1
>conftest.err
21494 cat conftest.err
>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.
$ac_objext; then
21500 cat >>confdefs.h
<<\_ACEOF
21501 #define ISC_SOCKADDR_LEN_T size_t
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.
$ac_ext >&5
21508 cat >>confdefs.h
<<\_ACEOF
21509 #define ISC_SOCKADDR_LEN_T int
21514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21519 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21520 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21521 if test "${ac_cv_header_time+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 cat >conftest.
$ac_ext <<_ACEOF
21527 cat confdefs.h
>>conftest.
$ac_ext
21528 cat >>conftest.
$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 #include <sys/types.h>
21531 #include <sys/time.h>
21537 if ((struct tm *) 0)
21543 rm -f conftest.
$ac_objext
21544 if { (ac_try
="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21552 grep -v '^ *+' conftest.er1 >conftest.err
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_cv_header_time=yes
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_cv_header_time=no
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21571 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21572 if test $ac_cv_header_time = yes; then
21574 cat >>confdefs.h <<\_ACEOF
21575 #define TIME_WITH_SYS_TIME 1
21580 { echo "$as_me:$LINENO: checking for long long" >&5
21581 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21592 long long i = 0; return (0);
21597 rm -f conftest.$ac_objext
21598 if { (ac_try="$ac_compile"
21599 case "(($ac_try" in
21600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21601 *) ac_try_echo
=$ac_try;;
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_compile") 2>conftest.er1
21606 grep -v '^ *+' conftest.er1
>conftest.err
21608 cat conftest.err
>&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } && {
21611 test -z "$ac_c_werror_flag" ||
21612 test ! -s conftest.err
21613 } && test -s conftest.
$ac_objext; then
21614 { echo "$as_me:$LINENO: result: yes" >&5
21615 echo "${ECHO_T}yes" >&6; }
21616 ISC_PLATFORM_HAVELONGLONG
="#define ISC_PLATFORM_HAVELONGLONG 1"
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.
$ac_ext >&5
21621 { echo "$as_me:$LINENO: result: no" >&5
21622 echo "${ECHO_T}no" >&6; }
21623 ISC_PLATFORM_HAVELONGLONG
="#undef ISC_PLATFORM_HAVELONGLONG"
21626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21630 # check for GCC noreturn attribute
21632 { echo "$as_me:$LINENO: checking for GCC noreturn attribute" >&5
21633 echo $ECHO_N "checking for GCC noreturn attribute... $ECHO_C" >&6; }
21634 cat >conftest.
$ac_ext <<_ACEOF
21637 cat confdefs.h
>>conftest.
$ac_ext
21638 cat >>conftest.
$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21644 void foo() __attribute__((noreturn));
21649 rm -f conftest.
$ac_objext
21650 if { (ac_try
="$ac_compile"
21651 case "(($ac_try" in
21652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_compile") 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest.$ac_objext; then
21666 { echo "$as_me:$LINENO: result: yes" >&5
21667 echo "${ECHO_T}yes" >&6; }
21668 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
21669 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 { echo "$as_me:$LINENO: result: no" >&5
21675 echo "${ECHO_T}no" >&6; }
21676 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
21677 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21685 # check if we have lifconf
21687 { echo "$as_me:$LINENO: checking for struct lifconf" >&5
21688 echo $ECHO_N "checking for struct lifconf... $ECHO_C" >&6; }
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21696 #include <sys/types.h>
21697 #include <sys/socket.h>
21698 #include <net/if.h>
21704 struct lifconf lifconf;
21705 lifconf.lifc_len = 0;
21712 rm -f conftest.$ac_objext
21713 if { (ac_try="$ac_compile"
21714 case "(($ac_try" in
21715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21716 *) ac_try_echo
=$ac_try;;
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_compile") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1
>conftest.err
21723 cat conftest.err
>&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest.
$ac_objext; then
21729 { echo "$as_me:$LINENO: result: yes" >&5
21730 echo "${ECHO_T}yes" >&6; }
21731 ISC_PLATFORM_HAVELIFCONF
="#define ISC_PLATFORM_HAVELIFCONF 1"
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.
$ac_ext >&5
21736 { echo "$as_me:$LINENO: result: no" >&5
21737 echo "${ECHO_T}no" >&6; }
21738 ISC_PLATFORM_HAVELIFCONF
="#undef ISC_PLATFORM_HAVELIFCONF"
21741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21745 # check if we have kqueue
21747 # Check whether --enable-kqueue was given.
21748 if test "${enable_kqueue+set}" = set; then
21749 enableval
=$enable_kqueue; want_kqueue
="$enableval"
21754 case $want_kqueue in
21756 { echo "$as_me:$LINENO: checking for kqueue" >&5
21757 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
21758 if test "${ac_cv_func_kqueue+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 cat >conftest.
$ac_ext <<_ACEOF
21764 cat confdefs.h
>>conftest.
$ac_ext
21765 cat >>conftest.
$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21767 /* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue.
21768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21769 #define kqueue innocuous_kqueue
21771 /* System header to define __stub macros and hopefully few prototypes,
21772 which can conflict with char kqueue (); below.
21773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21774 <limits.h> exists even on freestanding compilers. */
21777 # include <limits.h>
21779 # include <assert.h>
21784 /* Override any GCC internal prototype to avoid an error.
21785 Use char because int might match the return type of a GCC
21786 builtin and then its argument prototype would still apply. */
21791 /* The GNU C library defines this for functions which it implements
21792 to always fail with ENOSYS. Some functions are actually named
21793 something starting with __ and the normal name is an alias. */
21794 #if defined __stub_kqueue || defined __stub___kqueue
21806 rm -f conftest.
$ac_objext conftest
$ac_exeext
21807 if { (ac_try
="$ac_link"
21808 case "(($ac_try" in
21809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_link") 2>conftest.er1
21815 grep -v '^ *+' conftest.er1 >conftest.err
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } && {
21820 test -z "$ac_c_werror_flag" ||
21821 test ! -s conftest.err
21822 } && test -s conftest$ac_exeext &&
21823 $as_test_x conftest$ac_exeext; then
21824 ac_cv_func_kqueue=yes
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_cv_func_kqueue=no
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21835 { echo "$as_me:$LINENO: result: $ac_cv_func_kqueue" >&5
21836 echo "${ECHO_T}$ac_cv_func_kqueue" >&6; }
21837 if test $ac_cv_func_kqueue = yes; then
21838 ac_cv_have_kqueue=yes
21840 ac_cv_have_kqueue=no
21843 case $ac_cv_have_kqueue in
21845 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
21848 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
21853 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
21859 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
21860 # so we need to try running the code, not just test its existence.
21862 # Check whether --enable-epoll was given.
21863 if test "${enable_epoll+set}" = set; then
21864 enableval=$enable_epoll; want_epoll="$enableval"
21869 case $want_epoll in
21871 { echo "$as_me:$LINENO: checking epoll support" >&5
21872 echo $ECHO_N "checking epoll support... $ECHO_C" >&6; }
21873 if test "$cross_compiling" = yes; then
21874 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21875 See \`config.log
' for more details." >&5
21876 echo "$as_me: error: cannot run test program while cross compiling
21877 See \`config.log' for more details.
" >&2;}
21878 { (exit 1); exit 1; }; }
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21887 #include <sys/epoll.h>
21889 if (epoll_create(1) < 0)
21895 rm -f conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_link") 2>&5
21904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21906 { (case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_try") 2>&5
21913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915 { echo "$as_me:$LINENO: result
: yes" >&5
21916 echo "${ECHO_T}yes" >&6; }
21917 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
21919 echo "$as_me: program exited with status $ac_status" >&5
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.
$ac_ext >&5
21923 ( exit $ac_status )
21924 { echo "$as_me:$LINENO: result: no" >&5
21925 echo "${ECHO_T}no" >&6; }
21926 ISC_PLATFORM_HAVEEPOLL
="#undef ISC_PLATFORM_HAVEEPOLL"
21928 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21934 ISC_PLATFORM_HAVEEPOLL
="#define ISC_PLATFORM_HAVEEPOLL 1"
21937 ISC_PLATFORM_HAVEEPOLL
="#undef ISC_PLATFORM_HAVEEPOLL"
21943 # check if we support /dev/poll
21945 # Check whether --enable-devpoll was given.
21946 if test "${enable_devpoll+set}" = set; then
21947 enableval
=$enable_devpoll; want_devpoll
="$enableval"
21952 case $want_devpoll in
21955 for ac_header
in sys
/devpoll.h
21957 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21961 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 ac_res
=`eval echo '${'$as_ac_Header'}'`
21965 { echo "$as_me:$LINENO: result: $ac_res" >&5
21966 echo "${ECHO_T}$ac_res" >&6; }
21968 # Is the header compilable?
21969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21971 cat >conftest.
$ac_ext <<_ACEOF
21974 cat confdefs.h
>>conftest.
$ac_ext
21975 cat >>conftest.
$ac_ext <<_ACEOF
21976 /* end confdefs.h. */
21977 $ac_includes_default
21978 #include <$ac_header>
21980 rm -f conftest.
$ac_objext
21981 if { (ac_try
="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_header_compiler=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_header_compiler=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 echo "${ECHO_T}$ac_header_compiler" >&6; }
22009 # Is the header present?
22010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include <$ac_header>
22020 if { (ac_try="$ac_cpp conftest.$ac_ext"
22021 case "(($ac_try" in
22022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22023 *) ac_try_echo
=$ac_try;;
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22028 grep -v '^ *+' conftest.er1
>conftest.err
22030 cat conftest.err
>&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev
/null
&& {
22033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22036 ac_header_preproc
=yes
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.
$ac_ext >&5
22041 ac_header_preproc
=no
22044 rm -f conftest.err conftest.
$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046 echo "${ECHO_T}$ac_header_preproc" >&6; }
22048 # So? What about this header?
22049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22055 ac_header_preproc
=yes
22058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22075 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 eval "$as_ac_Header=\$ac_header_preproc"
22080 ac_res
=`eval echo '${'$as_ac_Header'}'`
22081 { echo "$as_me:$LINENO: result: $ac_res" >&5
22082 echo "${ECHO_T}$ac_res" >&6; }
22085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22086 cat >>confdefs.h
<<_ACEOF
22087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22089 ISC_PLATFORM_HAVEDEVPOLL
="#define ISC_PLATFORM_HAVEDEVPOLL 1"
22092 ISC_PLATFORM_HAVEDEVPOLL
="#undef ISC_PLATFORM_HAVEDEVPOLL"
22100 ISC_PLATFORM_HAVEDEVPOLL
="#undef ISC_PLATFORM_HAVEDEVPOLL"
22106 # check if we need to #include sys/select.h explicitly
22108 case $ac_cv_header_unistd_h in
22110 { echo "$as_me:$LINENO: checking if unistd.h or sys/types.h defines fd_set" >&5
22111 echo $ECHO_N "checking if unistd.h or sys/types.h defines fd_set... $ECHO_C" >&6; }
22112 cat >conftest.
$ac_ext <<_ACEOF
22115 cat confdefs.h
>>conftest.
$ac_ext
22116 cat >>conftest.
$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22119 #include <sys/types.h> /* Ultrix */
22120 #include <unistd.h>
22124 fd_set read_set; return (0);
22129 rm -f conftest.
$ac_objext
22130 if { (ac_try
="$ac_compile"
22131 case "(($ac_try" in
22132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136 (eval "$ac_compile") 2>conftest.er1
22138 grep -v '^ *+' conftest.er1 >conftest.err
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } && {
22143 test -z "$ac_c_werror_flag" ||
22144 test ! -s conftest.err
22145 } && test -s conftest.$ac_objext; then
22146 { echo "$as_me:$LINENO: result: yes" >&5
22147 echo "${ECHO_T}yes" >&6; }
22148 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
22149 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 { echo "$as_me:$LINENO: result: no" >&5
22155 echo "${ECHO_T}no" >&6; }
22156 case $ac_cv_header_sys_select_h in
22158 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
22159 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
22162 { { echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5
22163 echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;}
22164 { (exit 1); exit 1; }; }
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 case $ac_cv_header_sys_select_h in
22175 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
22176 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
22179 { { echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5
22180 echo "$as_me: error: need either unistd.h or sys/select.h" >&2;}
22181 { (exit 1); exit 1; }; }
22190 # Find the machine's endian flavor.
22192 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22193 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22194 if test "${ac_cv_c_bigendian+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 # See if sys/param.h defines the BYTE_ORDER macro.
22198 cat >conftest.$ac_ext <<_ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 #include <sys/types.h>
22205 #include <sys/param.h>
22210 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22211 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22212 bogus endian macros
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22223 *) ac_try_echo
=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_compile") 2>conftest.er1
22228 grep -v '^ *+' conftest.er1
>conftest.err
22230 cat conftest.err
>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest.
$ac_objext; then
22236 # It does; now see whether it defined to BIG_ENDIAN or not.
22237 cat >conftest.
$ac_ext <<_ACEOF
22240 cat confdefs.h
>>conftest.
$ac_ext
22241 cat >>conftest.
$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 #include <sys/types.h>
22244 #include <sys/param.h>
22249 #if BYTE_ORDER != BIG_ENDIAN
22257 rm -f conftest.
$ac_objext
22258 if { (ac_try
="$ac_compile"
22259 case "(($ac_try" in
22260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_compile") 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest.$ac_objext; then
22274 ac_cv_c_bigendian=yes
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22279 ac_cv_c_bigendian=no
22282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 # It does not; compile a test program.
22288 if test "$cross_compiling" = yes; then
22289 # try to guess the endianness by grepping values into an object file
22290 ac_cv_c_bigendian=unknown
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22298 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22299 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22300 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22301 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22302 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22306 _ascii (); _ebcdic ();
22311 rm -f conftest.$ac_objext
22312 if { (ac_try="$ac_compile"
22313 case "(($ac_try" in
22314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22315 *) ac_try_echo
=$ac_try;;
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_compile") 2>conftest.er1
22320 grep -v '^ *+' conftest.er1
>conftest.err
22322 cat conftest.err
>&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } && {
22325 test -z "$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 } && test -s conftest.
$ac_objext; then
22328 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
22329 ac_cv_c_bigendian
=yes
22331 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
22332 if test "$ac_cv_c_bigendian" = unknown
; then
22333 ac_cv_c_bigendian
=no
22335 # finding both strings is unlikely to happen, but who knows?
22336 ac_cv_c_bigendian
=unknown
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.
$ac_ext >&5
22346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22348 cat >conftest.
$ac_ext <<_ACEOF
22351 cat confdefs.h
>>conftest.
$ac_ext
22352 cat >>conftest.
$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 $ac_includes_default
22359 /* Are we little or big endian? From Harbison&Steele. */
22363 char c[sizeof (long int)];
22366 return u.c[sizeof (long int) - 1] == 1;
22372 rm -f conftest
$ac_exeext
22373 if { (ac_try
="$ac_link"
22374 case "(($ac_try" in
22375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379 (eval "$ac_link") 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22383 { (case "(($ac_try" in
22384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22385 *) ac_try_echo
=$ac_try;;
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388 (eval "$ac_try") 2>&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; }; then
22392 ac_cv_c_bigendian
=no
22394 echo "$as_me: program exited with status $ac_status" >&5
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.
$ac_ext >&5
22398 ( exit $ac_status )
22399 ac_cv_c_bigendian
=yes
22401 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22409 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22410 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22411 case $ac_cv_c_bigendian in
22414 cat >>confdefs.h
<<\_ACEOF
22415 #define WORDS_BIGENDIAN 1
22421 { { echo "$as_me:$LINENO: error: unknown endianness
22422 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22423 echo "$as_me: error: unknown endianness
22424 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22425 { (exit 1); exit 1; }; } ;;
22431 # was --with-openssl specified?
22434 { echo "$as_me:$LINENO: checking for OpenSSL library" >&5
22435 echo $ECHO_N "checking for OpenSSL library... $ECHO_C" >&6; }
22437 # Check whether --with-openssl was given.
22438 if test "${with_openssl+set}" = set; then
22439 withval
=$with_openssl; use_openssl
="$withval"
22445 openssldirs
="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
22446 if test "$use_openssl" = "auto"
22448 for d
in $openssldirs
22450 if test -f $d/include
/openssl
/opensslv.h
22457 case "$use_openssl" in
22459 { echo "$as_me:$LINENO: result: no" >&5
22460 echo "${ECHO_T}no" >&6; }
22467 { { echo "$as_me:$LINENO: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
22468 If you don't want OpenSSL, use --without-openssl" >&5
22469 echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
22470 If you don't want OpenSSL, use --without-openssl" >&2;}
22471 { (exit 1); exit 1; }; }
22474 if test "$use_openssl" = "yes"
22476 # User did not specify a path - guess it
22477 for d
in $openssldirs
22479 if test -f $d/include
/openssl
/opensslv.h
22485 if test "$use_openssl" = "yes"
22487 { echo "$as_me:$LINENO: result: not found" >&5
22488 echo "${ECHO_T}not found" >&6; }
22489 { { echo "$as_me:$LINENO: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&5
22490 echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&2;}
22491 { (exit 1); exit 1; }; }
22493 elif ! test -f "$use_openssl"/include
/openssl
/opensslv.h
22495 { { echo "$as_me:$LINENO: error: \"$use_openssl/include/openssl/opensslv.h\" not found" >&5
22496 echo "$as_me: error: \"$use_openssl/include/openssl/opensslv.h\" not found" >&2;}
22497 { (exit 1); exit 1; }; }
22499 USE_OPENSSL
='-DOPENSSL'
22500 if test "$use_openssl" = "/usr"
22503 DNS_OPENSSL_LIBS
="-lcrypto"
22505 DST_OPENSSL_INC
="-I$use_openssl/include"
22508 DNS_OPENSSL_LIBS
="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
22511 DNS_OPENSSL_LIBS
="-L$use_openssl/lib -Wl,+b: -lcrypto"
22515 # Apple's ld seaches for serially for dynamic
22516 # then static libraries. This means you can't
22517 # use -L to override dynamic system libraries
22518 # with static ones when linking. Instead
22519 # we specify a absolute path.
22521 if test -f "$use_openssl/lib/libcrypto.dylib"
22523 DNS_OPENSSL_LIBS
="-L$use_openssl/lib -lcrypto"
22525 DNS_OPENSSL_LIBS
="$use_openssl/lib/libcrypto.a"
22529 DNS_OPENSSL_LIBS
="-L$use_openssl/lib -lcrypto"
22533 { echo "$as_me:$LINENO: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
22534 echo "${ECHO_T}using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
22536 saved_cflags
="$CFLAGS"
22538 CFLAGS
="$CFLAGS $DST_OPENSSL_INC"
22539 LIBS
="$LIBS $DNS_OPENSSL_LIBS"
22540 { echo "$as_me:$LINENO: checking whether linking with OpenSSL works" >&5
22541 echo $ECHO_N "checking whether linking with OpenSSL works... $ECHO_C" >&6; }
22542 if test "$cross_compiling" = yes; then
22543 { echo "$as_me:$LINENO: result: assuming it does work on target platform" >&5
22544 echo "${ECHO_T}assuming it does work on target platform" >&6; }
22546 cat >conftest.
$ac_ext <<_ACEOF
22549 cat confdefs.h
>>conftest.
$ac_ext
22550 cat >>conftest.
$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22553 #include <openssl/err.h>
22560 rm -f conftest
$ac_exeext
22561 if { (ac_try
="$ac_link"
22562 case "(($ac_try" in
22563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_link") 2>&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22571 { (case "(($ac_try" in
22572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22573 *) ac_try_echo
=$ac_try;;
22575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576 (eval "$ac_try") 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
22580 { echo "$as_me:$LINENO: result: yes" >&5
22581 echo "${ECHO_T}yes" >&6; }
22583 echo "$as_me: program exited with status $ac_status" >&5
22584 echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.
$ac_ext >&5
22587 ( exit $ac_status )
22588 { echo "$as_me:$LINENO: result: no" >&5
22589 echo "${ECHO_T}no" >&6; }
22590 { { echo "$as_me:$LINENO: error: Could not run test program using OpenSSL from
22591 $use_openssl/lib and $use_openssl/include.
22592 Please check the argument to --with-openssl and your
22593 shared library configuration (e.g., LD_LIBRARY_PATH)." >&5
22594 echo "$as_me: error: Could not run test program using OpenSSL from
22595 $use_openssl/lib and $use_openssl/include.
22596 Please check the argument to --with-openssl and your
22597 shared library configuration (e.g., LD_LIBRARY_PATH)." >&2;}
22598 { (exit 1); exit 1; }; }
22600 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22605 { echo "$as_me:$LINENO: checking whether linking with OpenSSL requires -ldl" >&5
22606 echo $ECHO_N "checking whether linking with OpenSSL requires -ldl... $ECHO_C" >&6; }
22607 cat >conftest.
$ac_ext <<_ACEOF
22610 cat confdefs.h
>>conftest.
$ac_ext
22611 cat >>conftest.
$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22614 #include <openssl/err.h>
22618 DSO_METHOD_dlfcn();
22623 rm -f conftest.
$ac_objext conftest
$ac_exeext
22624 if { (ac_try
="$ac_link"
22625 case "(($ac_try" in
22626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_link") 2>conftest.er1
22632 grep -v '^ *+' conftest.er1 >conftest.err
22634 cat conftest.err >&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && {
22637 test -z "$ac_c_werror_flag" ||
22638 test ! -s conftest.err
22639 } && test -s conftest$ac_exeext &&
22640 $as_test_x conftest$ac_exeext; then
22641 { echo "$as_me:$LINENO: result: no" >&5
22642 echo "${ECHO_T}no" >&6; }
22644 echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22655 #include <openssl/err.h>
22660 DSO_METHOD_dlfcn();
22665 rm -f conftest.$ac_objext conftest$ac_exeext
22666 if { (ac_try="$ac_link"
22667 case "(($ac_try" in
22668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22669 *) ac_try_echo
=$ac_try;;
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_link") 2>conftest.er1
22674 grep -v '^ *+' conftest.er1
>conftest.err
22676 cat conftest.err
>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } && {
22679 test -z "$ac_c_werror_flag" ||
22680 test ! -s conftest.err
22681 } && test -s conftest
$ac_exeext &&
22682 $as_test_x conftest
$ac_exeext; then
22683 { echo "$as_me:$LINENO: result: yes" >&5
22684 echo "${ECHO_T}yes" >&6; }
22685 DNS_OPENSSL_LIBS
="$DNS_OPENSSL_LIBS -ldl"
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.
$ac_ext >&5
22691 { echo "$as_me:$LINENO: result: unknown" >&5
22692 echo "${ECHO_T}unknown" >&6; }
22693 { { echo "$as_me:$LINENO: error: OpenSSL has unsupported dynamic loading" >&5
22694 echo "$as_me: error: OpenSSL has unsupported dynamic loading" >&2;}
22695 { (exit 1); exit 1; }; }
22698 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22699 conftest
$ac_exeext conftest.
$ac_ext
22703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22704 conftest
$ac_exeext conftest.
$ac_ext
22706 # Check whether --enable-openssl-version-check was given.
22707 if test "${enable_openssl_version_check+set}" = set; then
22708 enableval
=$enable_openssl_version_check;
22711 case "$enable_openssl_version_check" in
22713 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
22714 echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
22715 if test "$cross_compiling" = yes; then
22716 { echo "$as_me:$LINENO: result: assuming target platform has compatible version" >&5
22717 echo "${ECHO_T}assuming target platform has compatible version" >&6; }
22719 cat >conftest.
$ac_ext <<_ACEOF
22722 cat confdefs.h
>>conftest.
$ac_ext
22723 cat >>conftest.
$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22727 #include <openssl/opensslv.h>
22729 if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
22730 OPENSSL_VERSION_NUMBER < 0x00908000L) ||
22731 OPENSSL_VERSION_NUMBER >= 0x0090804fL)
22733 printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n",
22734 OPENSSL_VERSION_NUMBER);
22735 printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n"
22736 "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n");
22741 rm -f conftest
$ac_exeext
22742 if { (ac_try
="$ac_link"
22743 case "(($ac_try" in
22744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_link") 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22752 { (case "(($ac_try" in
22753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22754 *) ac_try_echo
=$ac_try;;
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_try") 2>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 { echo "$as_me:$LINENO: result: ok" >&5
22762 echo "${ECHO_T}ok" >&6; }
22764 echo "$as_me: program exited with status $ac_status" >&5
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.
$ac_ext >&5
22768 ( exit $ac_status )
22769 { echo "$as_me:$LINENO: result: not compatible" >&5
22770 echo "${ECHO_T}not compatible" >&6; }
22771 OPENSSL_WARNING
=yes
22774 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22780 { echo "$as_me:$LINENO: result: Skipped OpenSSL version check" >&5
22781 echo "${ECHO_T}Skipped OpenSSL version check" >&6; }
22785 { echo "$as_me:$LINENO: checking for OpenSSL DSA support" >&5
22786 echo $ECHO_N "checking for OpenSSL DSA support... $ECHO_C" >&6; }
22787 if test -f $use_openssl/include
/openssl
/dsa.h
22789 cat >>confdefs.h
<<\_ACEOF
22790 #define HAVE_OPENSSL_DSA 1
22793 { echo "$as_me:$LINENO: result: yes" >&5
22794 echo "${ECHO_T}yes" >&6; }
22796 { echo "$as_me:$LINENO: result: no" >&5
22797 echo "${ECHO_T}no" >&6; }
22801 for ac_func
in EVP_sha256 EVP_sha512
22803 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22806 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22809 cat >conftest.
$ac_ext <<_ACEOF
22812 cat confdefs.h
>>conftest.
$ac_ext
22813 cat >>conftest.
$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22817 #define $ac_func innocuous_$ac_func
22819 /* System header to define __stub macros and hopefully few prototypes,
22820 which can conflict with char $ac_func (); below.
22821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22822 <limits.h> exists even on freestanding compilers. */
22825 # include <limits.h>
22827 # include <assert.h>
22832 /* Override any GCC internal prototype to avoid an error.
22833 Use char because int might match the return type of a GCC
22834 builtin and then its argument prototype would still apply. */
22839 /* The GNU C library defines this for functions which it implements
22840 to always fail with ENOSYS. Some functions are actually named
22841 something starting with __ and the normal name is an alias. */
22842 #if defined __stub_$ac_func || defined __stub___$ac_func
22849 return $ac_func ();
22854 rm -f conftest.
$ac_objext conftest
$ac_exeext
22855 if { (ac_try
="$ac_link"
22856 case "(($ac_try" in
22857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_link") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest$ac_exeext &&
22871 $as_test_x conftest$ac_exeext; then
22872 eval "$as_ac_var=yes"
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 eval "$as_ac_var=no"
22880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881 conftest$ac_exeext conftest.$ac_ext
22883 ac_res=`eval echo '${'$as_ac_var'}'`
22884 { echo "$as_me:$LINENO: result: $ac_res" >&5
22885 echo "${ECHO_T}$ac_res" >&6; }
22886 if test `eval echo '${'$as_ac_var'}'` = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22894 CFLAGS="$saved_cflags"
22901 # This would include the system openssl path (and linker options to use
22902 # it as needed) if it is found.
22907 DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DNS_OPENSSL_LIBS"
22910 # Use OpenSSL for hash functions
22913 # Check whether --enable-openssl-hash was given.
22914 if test "${enable_openssl_hash+set}" = set; then
22915 enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
22917 want_openssl_hash="no"
22920 case $want_openssl_hash in
22922 if test "$USE_OPENSSL" = ""
22924 { { echo "$as_me:$LINENO: error: No OpenSSL for hash functions" >&5
22925 echo "$as_me: error: No OpenSSL for hash functions" >&2;}
22926 { (exit 1); exit 1; }; }
22928 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
22929 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
22932 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
22940 # PKCS11 (aka crypto hardware) support
22942 # This works only with the right OpenSSL with PKCS11 engine!
22945 { echo "$as_me:$LINENO: checking for PKCS11 support" >&5
22946 echo $ECHO_N "checking for PKCS11 support... $ECHO_C" >&6; }
22948 # Check whether --with-pkcs11 was given.
22949 if test "${with_pkcs11+set}" = set; then
22950 withval=$with_pkcs11; use_pkcs11="$withval"
22956 case "$use_pkcs11" in
22958 { echo "$as_me:$LINENO: result: disabled" >&5
22959 echo "${ECHO_T}disabled" >&6; }
22964 { echo "$as_me:$LINENO: result: using OpenSSL with PKCS11 support" >&5
22965 echo "${ECHO_T}using OpenSSL with PKCS11 support" >&6; }
22966 USE_PKCS11='-DUSE_PKCS11'
22967 PKCS11_TOOLS=pkcs11
22973 { echo "$as_me:$LINENO: checking for PKCS11 tools" >&5
22974 echo $ECHO_N "checking for PKCS11 tools... $ECHO_C" >&6; }
22975 case "$use_pkcs11" in
22977 { echo "$as_me:$LINENO: result: disabled" >&5
22978 echo "${ECHO_T}disabled" >&6; }
22979 PKCS11_PROVIDER="undefined"
22982 { echo "$as_me:$LINENO: result: PKCS11 provider is \"$use_pkcs11\"" >&5
22983 echo "${ECHO_T}PKCS11 provider is \"$use_pkcs11\"" >&6; }
22984 PKCS11_PROVIDER="$use_pkcs11"
22989 { echo "$as_me:$LINENO: checking for GSSAPI library" >&5
22990 echo $ECHO_N "checking for GSSAPI library... $ECHO_C" >&6; }
22992 # Check whether --with-gssapi was given.
22993 if test "${with_gssapi+set}" = set; then
22994 withval=$with_gssapi; use_gssapi="$withval"
23000 gssapidirs="/usr/local /usr/pkg /usr/kerberos /usr"
23001 if test "$use_gssapi" = "yes"
23003 for d in $gssapidirs
23005 if test -f $d/include/gssapi/gssapi.h -o -f $d/include/gssapi.h
23013 case "$use_gssapi" in
23015 { echo "$as_me:$LINENO: result: disabled" >&5
23016 echo "${ECHO_T}disabled" >&6; }
23020 { { echo "$as_me:$LINENO: error: --with-gssapi must specify a path" >&5
23021 echo "$as_me: error: --with-gssapi must specify a path" >&2;}
23022 { (exit 1); exit 1; }; }
23025 { echo "$as_me:$LINENO: result: looking in $use_gssapi/lib" >&5
23026 echo "${ECHO_T}looking in $use_gssapi/lib" >&6; }
23027 USE_GSSAPI='-DGSSAPI'
23028 saved_cppflags="$CPPFLAGS"
23029 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
23032 for ac_header in gssapi.h gssapi/gssapi.h
23034 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 ac_res=`eval echo '${'$as_ac_Header'}'`
23042 { echo "$as_me:$LINENO: result: $ac_res" >&5
23043 echo "${ECHO_T}$ac_res" >&6; }
23045 # Is the header compilable?
23046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23048 cat >conftest.$ac_ext <<_ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h. */
23054 $ac_includes_default
23055 #include <$ac_header>
23057 rm -f conftest.$ac_objext
23058 if { (ac_try="$ac_compile"
23059 case "(($ac_try" in
23060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23061 *) ac_try_echo
=$ac_try;;
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_compile") 2>conftest.er1
23066 grep -v '^ *+' conftest.er1
>conftest.err
23068 cat conftest.err
>&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && {
23071 test -z "$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23073 } && test -s conftest.
$ac_objext; then
23074 ac_header_compiler
=yes
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.
$ac_ext >&5
23079 ac_header_compiler
=no
23082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23084 echo "${ECHO_T}$ac_header_compiler" >&6; }
23086 # Is the header present?
23087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23089 cat >conftest.
$ac_ext <<_ACEOF
23092 cat confdefs.h
>>conftest.
$ac_ext
23093 cat >>conftest.
$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 #include <$ac_header>
23097 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23098 case "(($ac_try" in
23099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23105 grep -v '^ *+' conftest.er1 >conftest.err
23107 cat conftest.err >&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } >/dev/null && {
23110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23113 ac_header_preproc=yes
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_header_preproc=no
23121 rm -f conftest.err conftest.$ac_ext
23122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23123 echo "${ECHO_T}$ac_header_preproc" >&6; }
23125 # So? What about this header?
23126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23132 ac_header_preproc=yes
23135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 eval "$as_ac_Header=\$ac_header_preproc"
23157 ac_res=`eval echo '${'$as_ac_Header'}'`
23158 { echo "$as_me:$LINENO: result: $ac_res" >&5
23159 echo "${ECHO_T}$ac_res" >&6; }
23162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23163 cat >>confdefs.h <<_ACEOF
23164 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23166 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
23172 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then
23173 { { echo "$as_me:$LINENO: error: gssapi.h not found" >&5
23174 echo "$as_me: error: gssapi.h not found" >&2;}
23175 { (exit 1); exit 1; }; }
23178 CPPFLAGS="$saved_cppflags"
23181 # XXXDCL This probably doesn't work right on all systems.
23182 # It will need to be worked on as problems become evident.
23184 # Essentially the problems here relate to two different
23185 # areas. The first area is building with either KTH
23186 # or MIT Kerberos, particularly when both are present on
23187 # the machine. The other is static versus dynamic linking.
23189 # On the KTH vs MIT issue, Both have libkrb5 that can mess
23190 # up the works if one implementation ends up trying to
23191 # use the other's krb. This is unfortunately a situation
23192 # that very easily arises.
23194 # Dynamic linking when the dependency information is built
23195 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
23196 # all such problems go away, but when that setup is not
23197 # present, because either the dynamic libraries lack
23198 # dependencies or static linking is being done, then the
23199 # problems start to show up.
23203 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
23204 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
23206 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
23207 "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
23210 # Note that this does not include $saved_libs, because
23211 # on FreeBSD machines this configure script has added
23212 # -L/usr/local/lib to LIBS, which can make the
23213 # -lgssapi_krb5 test succeed with shared libraries even
23214 # when you are trying to build with KTH in /usr/lib.
23215 LIBS="-L$use_gssapi/lib $TRY_LIBS"
23216 { echo "$as_me:$LINENO: checking linking as $TRY_LIBS" >&5
23217 echo $ECHO_N "checking linking as $TRY_LIBS... $ECHO_C" >&6; }
23218 cat >conftest.$ac_ext <<_ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h. */
23228 gss_acquire_cred();
23233 rm -f conftest.$ac_objext conftest$ac_exeext
23234 if { (ac_try="$ac_link"
23235 case "(($ac_try" in
23236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23237 *) ac_try_echo
=$ac_try;;
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_link") 2>conftest.er1
23242 grep -v '^ *+' conftest.er1
>conftest.err
23244 cat conftest.err
>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } && {
23247 test -z "$ac_c_werror_flag" ||
23248 test ! -s conftest.err
23249 } && test -s conftest
$ac_exeext &&
23250 $as_test_x conftest
$ac_exeext; then
23253 echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.
$ac_ext >&5
23259 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23260 conftest
$ac_exeext conftest.
$ac_ext
23261 case $gssapi_linked in
23262 yes) { echo "$as_me:$LINENO: result: yes" >&5
23263 echo "${ECHO_T}yes" >&6; }; break ;;
23264 no
) { echo "$as_me:$LINENO: result: no" >&5
23265 echo "${ECHO_T}no" >&6; } ;;
23269 case $gssapi_linked in
23270 no
) { { echo "$as_me:$LINENO: error: could not determine proper GSSAPI linkage" >&5
23271 echo "$as_me: error: could not determine proper GSSAPI linkage" >&2;}
23272 { (exit 1); exit 1; }; } ;;
23276 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
23277 # but MIT in /usr/local/lib and trying to build with KTH.
23278 # /usr/local/lib can end up earlier on the link lines.
23279 # Like most kludges, this one is not only inelegant it
23280 # is also likely to be the wrong thing to do at least as
23281 # many times as it is the right thing. Something better
23282 # needs to be done.
23284 if test "$use_gssapi" = "/usr" -a \
23285 -f /usr
/local
/lib
/libkrb5.a
; then
23289 case "$FIX_KTH_VS_MIT" in
23291 case "$enable_static_linking" in
23292 yes) gssapi_lib_suffix
=".a" ;;
23293 *) gssapi_lib_suffix
=".so" ;;
23296 for lib
in $LIBS; do
23301 new_lib
=`echo $lib |
23302 sed -e s%^-l%$use_gssapi/lib/lib% \
23303 -e s%$%$gssapi_lib_suffix%`
23304 NEW_LIBS
="$NEW_LIBS $new_lib"
23307 { { echo "$as_me:$LINENO: error: KTH vs MIT Kerberos confusion!" >&5
23308 echo "$as_me: error: KTH vs MIT Kerberos confusion!" >&2;}
23309 { (exit 1); exit 1; }; }
23317 DST_GSSAPI_INC
="-I$use_gssapi/include"
23318 DNS_GSSAPI_LIBS
="$LIBS"
23320 { echo "$as_me:$LINENO: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
23321 echo "${ECHO_T}using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
23332 DNS_CRYPTO_LIBS
="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
23335 # Applications linking with libdns also need to link with these libraries.
23341 # was --with-randomdev specified?
23343 { echo "$as_me:$LINENO: checking for random device" >&5
23344 echo $ECHO_N "checking for random device... $ECHO_C" >&6; }
23346 # Check whether --with-randomdev was given.
23347 if test "${with_randomdev+set}" = set; then
23348 withval
=$with_randomdev; use_randomdev
="$withval"
23350 use_randomdev
="unspec"
23354 case "$use_randomdev" in
23358 devrandom
=/dev
/arandom
23361 devrandom
=/dev
/random
23364 { echo "$as_me:$LINENO: result: $devrandom" >&5
23365 echo "${ECHO_T}$devrandom" >&6; }
23366 as_ac_File
=`echo "ac_cv_file_$devrandom" | $as_tr_sh`
23367 { echo "$as_me:$LINENO: checking for $devrandom" >&5
23368 echo $ECHO_N "checking for $devrandom... $ECHO_C" >&6; }
23369 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 test "$cross_compiling" = yes &&
23373 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23374 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23375 { (exit 1); exit 1; }; }
23376 if test -r "$devrandom"; then
23377 eval "$as_ac_File=yes"
23379 eval "$as_ac_File=no"
23382 ac_res
=`eval echo '${'$as_ac_File'}'`
23383 { echo "$as_me:$LINENO: result: $ac_res" >&5
23384 echo "${ECHO_T}$ac_res" >&6; }
23385 if test `eval echo '${'$as_ac_File'}'` = yes; then
23386 cat >>confdefs.h
<<_ACEOF
23387 #define PATH_RANDOMDEV "$devrandom"
23394 { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5
23395 echo "$as_me: error: --with-randomdev must specify a path" >&2;}
23396 { (exit 1); exit 1; }; }
23399 { echo "$as_me:$LINENO: result: disabled" >&5
23400 echo "${ECHO_T}disabled" >&6; }
23403 cat >>confdefs.h
<<_ACEOF
23404 #define PATH_RANDOMDEV "$use_randomdev"
23407 { echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5
23408 echo "${ECHO_T}using \"$use_randomdev\"" >&6; }
23413 # Do we have arc4random() ?
23415 { echo "$as_me:$LINENO: checking for arc4random" >&5
23416 echo $ECHO_N "checking for arc4random... $ECHO_C" >&6; }
23417 if test "${ac_cv_func_arc4random+set}" = set; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 cat >conftest.
$ac_ext <<_ACEOF
23423 cat confdefs.h
>>conftest.
$ac_ext
23424 cat >>conftest.
$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23426 /* Define arc4random to an innocuous variant, in case <limits.h> declares arc4random.
23427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23428 #define arc4random innocuous_arc4random
23430 /* System header to define __stub macros and hopefully few prototypes,
23431 which can conflict with char arc4random (); below.
23432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23433 <limits.h> exists even on freestanding compilers. */
23436 # include <limits.h>
23438 # include <assert.h>
23443 /* Override any GCC internal prototype to avoid an error.
23444 Use char because int might match the return type of a GCC
23445 builtin and then its argument prototype would still apply. */
23449 char arc4random ();
23450 /* The GNU C library defines this for functions which it implements
23451 to always fail with ENOSYS. Some functions are actually named
23452 something starting with __ and the normal name is an alias. */
23453 #if defined __stub_arc4random || defined __stub___arc4random
23460 return arc4random ();
23465 rm -f conftest.
$ac_objext conftest
$ac_exeext
23466 if { (ac_try
="$ac_link"
23467 case "(($ac_try" in
23468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_link") 2>conftest.er1
23474 grep -v '^ *+' conftest.er1 >conftest.err
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest$ac_exeext &&
23482 $as_test_x conftest$ac_exeext; then
23483 ac_cv_func_arc4random=yes
23485 echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23488 ac_cv_func_arc4random=no
23491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23492 conftest$ac_exeext conftest.$ac_ext
23494 { echo "$as_me:$LINENO: result: $ac_cv_func_arc4random" >&5
23495 echo "${ECHO_T}$ac_cv_func_arc4random" >&6; }
23496 if test $ac_cv_func_arc4random = yes; then
23497 cat >>confdefs.h <<\_ACEOF
23498 #define HAVE_ARC4RANDOM 1
23505 # Begin pthreads checking.
23507 # First, decide whether to use multithreading or not.
23509 # Enable multithreading by default on systems where it is known
23510 # to work well, and where debugging of multithreaded programs
23514 { echo "$as_me:$LINENO: checking whether to build with thread support" >&5
23515 echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6; }
23519 use_threads=true ;;
23521 # Thread signals are broken on Solaris 2.6; they are sometimes
23522 # delivered to the wrong thread.
23523 use_threads=false ;;
23525 use_threads=true ;;
23527 use_threads=true ;;
23529 use_threads=false ;;
23531 use_threads=true ;;
23533 use_threads=true ;;
23534 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
23536 use_threads=false ;;
23537 *-*-sysv*OpenUNIX*)
23539 use_threads=true ;;
23541 if test -r /usr/lib/libpthread.so ; then
23544 # Socket I/O optimizations introduced in 9.2 expose a
23545 # bug in unproven-pthreads; see PR #12650
23550 # OpenBSD users have reported that named dumps core on
23551 # startup when built with threads.
23552 use_threads=false ;;
23554 use_threads=false ;;
23556 # Thread signals do not work reliably on some versions of BSD/OS.
23557 use_threads=false ;;
23559 use_threads=true ;;
23561 # Threads are disabled on Linux by default because most
23562 # Linux kernels produce unusable core dumps from multithreaded
23563 # programs, and because of limitations in setuid().
23564 use_threads=false ;;
23566 use_threads=false ;;
23569 # Check whether --enable-threads was given.
23570 if test "${enable_threads+set}" = set; then
23571 enableval=$enable_threads;
23574 case "$enable_threads" in
23582 # Use system-dependent default
23585 { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5
23586 echo "$as_me: error: --enable-threads takes yes or no" >&2;}
23587 { (exit 1); exit 1; }; }
23593 { echo "$as_me:$LINENO: result: yes" >&5
23594 echo "${ECHO_T}yes" >&6; }
23596 { echo "$as_me:$LINENO: result: no" >&5
23597 echo "${ECHO_T}no" >&6; }
23603 # Search for / configure pthreads in a system-dependent fashion.
23607 # NetBSD has multiple pthreads implementations. The
23608 # recommended one to use is "unproven-pthreads". The
23609 # older "mit-pthreads" may also work on some NetBSD
23610 # versions. The PTL2 thread library does not
23611 # currently work with bind9, but can be chosen with
23612 # the --with-ptl2 option for those who wish to
23613 # experiment with it.
23615 { echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5
23616 echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6; }
23619 # Check whether --with-ptl2 was given.
23620 if test "${with_ptl2+set}" = set; then
23621 withval=$with_ptl2; use_ptl2="$withval"
23627 : ${LOCALBASE:=/usr/pkg}
23629 if test "X$use_ptl2" = "Xyes"
23631 { echo "$as_me:$LINENO: result: PTL2" >&5
23632 echo "${ECHO_T}PTL2" >&6; }
23633 { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
23634 echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
23637 if test -r /usr/lib/libpthread.so
23639 { echo "$as_me:$LINENO: result: native" >&5
23640 echo "${ECHO_T}native" >&6; }
23641 LIBS="-lpthread $LIBS"
23643 if test ! -d $LOCALBASE/pthreads
23645 { echo "$as_me:$LINENO: result: none" >&5
23646 echo "${ECHO_T}none" >&6; }
23647 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
23648 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
23649 { (exit 1); exit 1; }; }
23654 { echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5
23655 echo "${ECHO_T}mit-pthreads/unproven-pthreads" >&6; }
23656 pkg="$LOCALBASE/pthreads"
23657 lib1="-L$pkg/lib -Wl,-R$pkg/lib"
23658 lib2="-lpthread -lm -lgcc -lpthread"
23659 LIBS="$lib1 $lib2 $LIBS"
23660 CPPFLAGS="$CPPFLAGS -I$pkg/include"
23661 STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
23667 # We don't want to set -lpthread as that break
23668 # the ability to choose threads library at final
23669 # link time and is not valid for all architectures.
23672 if test "X$GCC" = "Xyes"; then
23675 { echo "$as_me:$LINENO: checking for gcc -pthread support" >&5
23676 echo $ECHO_N "checking for gcc -pthread support... $ECHO_C" >&6; };
23677 cat >conftest.$ac_ext <<_ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h. */
23683 #include <pthread.h>
23687 printf("%x\n", pthread_create);
23692 rm -f conftest.$ac_objext conftest$ac_exeext
23693 if { (ac_try="$ac_link"
23694 case "(($ac_try" in
23695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23696 *) ac_try_echo
=$ac_try;;
23698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699 (eval "$ac_link") 2>conftest.er1
23701 grep -v '^ *+' conftest.er1
>conftest.err
23703 cat conftest.err
>&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } && {
23706 test -z "$ac_c_werror_flag" ||
23707 test ! -s conftest.err
23708 } && test -s conftest
$ac_exeext &&
23709 $as_test_x conftest
$ac_exeext; then
23711 { echo "$as_me:$LINENO: result: yes" >&5
23712 echo "${ECHO_T}yes" >&6; }
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.
$ac_ext >&5
23717 { echo "$as_me:$LINENO: result: no" >&5
23718 echo "${ECHO_T}no" >&6; }
23721 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23722 conftest
$ac_exeext conftest.
$ac_ext
23725 if test "X$PTHREAD" != "Xyes"; then
23727 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23728 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
23729 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 ac_check_lib_save_LIBS
=$LIBS
23733 LIBS
="-lpthread $LIBS"
23734 cat >conftest.
$ac_ext <<_ACEOF
23737 cat confdefs.h
>>conftest.
$ac_ext
23738 cat >>conftest.
$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23741 /* Override any GCC internal prototype to avoid an error.
23742 Use char because int might match the return type of a GCC
23743 builtin and then its argument prototype would still apply. */
23747 char pthread_create ();
23751 return pthread_create ();
23756 rm -f conftest.
$ac_objext conftest
$ac_exeext
23757 if { (ac_try
="$ac_link"
23758 case "(($ac_try" in
23759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_link") 2>conftest.er1
23765 grep -v '^ *+' conftest.er1 >conftest.err
23767 cat conftest.err >&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && {
23770 test -z "$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 } && test -s conftest$ac_exeext &&
23773 $as_test_x conftest$ac_exeext; then
23774 ac_cv_lib_pthread_pthread_create=yes
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ac_cv_lib_pthread_pthread_create=no
23782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23783 conftest$ac_exeext conftest.$ac_ext
23784 LIBS=$ac_check_lib_save_LIBS
23786 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23787 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
23788 if test $ac_cv_lib_pthread_pthread_create = yes; then
23789 cat >>confdefs.h <<_ACEOF
23790 #define HAVE_LIBPTHREAD 1
23793 LIBS="-lpthread $LIBS"
23797 { echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5
23798 echo $ECHO_N "checking for thread_create in -lthr... $ECHO_C" >&6; }
23799 if test "${ac_cv_lib_thr_thread_create+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23802 ac_check_lib_save_LIBS=$LIBS
23804 cat >conftest.$ac_ext <<_ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23811 /* Override any GCC internal prototype to avoid an error.
23812 Use char because int might match the return type of a GCC
23813 builtin and then its argument prototype would still apply. */
23817 char thread_create ();
23821 return thread_create ();
23826 rm -f conftest.$ac_objext conftest$ac_exeext
23827 if { (ac_try="$ac_link"
23828 case "(($ac_try" in
23829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23830 *) ac_try_echo
=$ac_try;;
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_link") 2>conftest.er1
23835 grep -v '^ *+' conftest.er1
>conftest.err
23837 cat conftest.err
>&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest
$ac_exeext &&
23843 $as_test_x conftest
$ac_exeext; then
23844 ac_cv_lib_thr_thread_create
=yes
23846 echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.
$ac_ext >&5
23849 ac_cv_lib_thr_thread_create
=no
23852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23853 conftest
$ac_exeext conftest.
$ac_ext
23854 LIBS
=$ac_check_lib_save_LIBS
23856 { echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5
23857 echo "${ECHO_T}$ac_cv_lib_thr_thread_create" >&6; }
23858 if test $ac_cv_lib_thr_thread_create = yes; then
23859 cat >>confdefs.h
<<_ACEOF
23860 #define HAVE_LIBTHR 1
23867 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23868 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
23869 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23872 ac_check_lib_save_LIBS
=$LIBS
23874 cat >conftest.
$ac_ext <<_ACEOF
23877 cat confdefs.h
>>conftest.
$ac_ext
23878 cat >>conftest.
$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23881 /* Override any GCC internal prototype to avoid an error.
23882 Use char because int might match the return type of a GCC
23883 builtin and then its argument prototype would still apply. */
23887 char pthread_create ();
23891 return pthread_create ();
23896 rm -f conftest.
$ac_objext conftest
$ac_exeext
23897 if { (ac_try
="$ac_link"
23898 case "(($ac_try" in
23899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23900 *) ac_try_echo=$ac_try;;
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903 (eval "$ac_link") 2>conftest.er1
23905 grep -v '^ *+' conftest.er1 >conftest.err
23907 cat conftest.err >&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest$ac_exeext &&
23913 $as_test_x conftest$ac_exeext; then
23914 ac_cv_lib_c_r_pthread_create=yes
23916 echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 ac_cv_lib_c_r_pthread_create=no
23922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23923 conftest$ac_exeext conftest.$ac_ext
23924 LIBS=$ac_check_lib_save_LIBS
23926 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23927 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
23928 if test $ac_cv_lib_c_r_pthread_create = yes; then
23929 cat >>confdefs.h <<_ACEOF
23930 #define HAVE_LIBC_R 1
23937 { echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
23938 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; }
23939 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
23940 echo $ECHO_N "(cached) $ECHO_C" >&6
23942 ac_check_lib_save_LIBS=$LIBS
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23951 /* Override any GCC internal prototype to avoid an error.
23952 Use char because int might match the return type of a GCC
23953 builtin and then its argument prototype would still apply. */
23957 char pthread_create ();
23961 return pthread_create ();
23966 rm -f conftest.$ac_objext conftest$ac_exeext
23967 if { (ac_try="$ac_link"
23968 case "(($ac_try" in
23969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23970 *) ac_try_echo
=$ac_try;;
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973 (eval "$ac_link") 2>conftest.er1
23975 grep -v '^ *+' conftest.er1
>conftest.err
23977 cat conftest.err
>&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } && {
23980 test -z "$ac_c_werror_flag" ||
23981 test ! -s conftest.err
23982 } && test -s conftest
$ac_exeext &&
23983 $as_test_x conftest
$ac_exeext; then
23984 ac_cv_lib_c_pthread_create
=yes
23986 echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.
$ac_ext >&5
23989 ac_cv_lib_c_pthread_create
=no
23992 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23993 conftest
$ac_exeext conftest.
$ac_ext
23994 LIBS
=$ac_check_lib_save_LIBS
23996 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
23997 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; }
23998 if test $ac_cv_lib_c_pthread_create = yes; then
23999 cat >>confdefs.h
<<_ACEOF
24000 #define HAVE_LIBC 1
24006 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
24007 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
24008 { (exit 1); exit 1; }; }
24021 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24022 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24023 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24026 ac_check_lib_save_LIBS
=$LIBS
24027 LIBS
="-lpthread $LIBS"
24028 cat >conftest.
$ac_ext <<_ACEOF
24031 cat confdefs.h
>>conftest.
$ac_ext
24032 cat >>conftest.
$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24035 /* Override any GCC internal prototype to avoid an error.
24036 Use char because int might match the return type of a GCC
24037 builtin and then its argument prototype would still apply. */
24041 char pthread_create ();
24045 return pthread_create ();
24050 rm -f conftest.
$ac_objext conftest
$ac_exeext
24051 if { (ac_try
="$ac_link"
24052 case "(($ac_try" in
24053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24054 *) ac_try_echo=$ac_try;;
24056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24057 (eval "$ac_link") 2>conftest.er1
24059 grep -v '^ *+' conftest.er1 >conftest.err
24061 cat conftest.err >&5
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); } && {
24064 test -z "$ac_c_werror_flag" ||
24065 test ! -s conftest.err
24066 } && test -s conftest$ac_exeext &&
24067 $as_test_x conftest$ac_exeext; then
24068 ac_cv_lib_pthread_pthread_create=yes
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 ac_cv_lib_pthread_pthread_create=no
24076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24077 conftest$ac_exeext conftest.$ac_ext
24078 LIBS=$ac_check_lib_save_LIBS
24080 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24081 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24082 if test $ac_cv_lib_pthread_pthread_create = yes; then
24083 cat >>confdefs.h <<_ACEOF
24084 #define HAVE_LIBPTHREAD 1
24087 LIBS="-lpthread $LIBS"
24091 { echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
24092 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6; }
24093 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 ac_check_lib_save_LIBS=$LIBS
24097 LIBS="-lpthread $LIBS"
24098 cat >conftest.$ac_ext <<_ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24105 /* Override any GCC internal prototype to avoid an error.
24106 Use char because int might match the return type of a GCC
24107 builtin and then its argument prototype would still apply. */
24111 char __pthread_create ();
24115 return __pthread_create ();
24120 rm -f conftest.$ac_objext conftest$ac_exeext
24121 if { (ac_try="$ac_link"
24122 case "(($ac_try" in
24123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24124 *) ac_try_echo
=$ac_try;;
24126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24127 (eval "$ac_link") 2>conftest.er1
24129 grep -v '^ *+' conftest.er1
>conftest.err
24131 cat conftest.err
>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); } && {
24134 test -z "$ac_c_werror_flag" ||
24135 test ! -s conftest.err
24136 } && test -s conftest
$ac_exeext &&
24137 $as_test_x conftest
$ac_exeext; then
24138 ac_cv_lib_pthread___pthread_create
=yes
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.
$ac_ext >&5
24143 ac_cv_lib_pthread___pthread_create
=no
24146 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24147 conftest
$ac_exeext conftest.
$ac_ext
24148 LIBS
=$ac_check_lib_save_LIBS
24150 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
24151 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6; }
24152 if test $ac_cv_lib_pthread___pthread_create = yes; then
24153 cat >>confdefs.h
<<_ACEOF
24154 #define HAVE_LIBPTHREAD 1
24157 LIBS
="-lpthread $LIBS"
24161 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
24162 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
24163 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
24164 echo $ECHO_N "(cached) $ECHO_C" >&6
24166 ac_check_lib_save_LIBS
=$LIBS
24167 LIBS
="-lpthread $LIBS"
24168 cat >conftest.
$ac_ext <<_ACEOF
24171 cat confdefs.h
>>conftest.
$ac_ext
24172 cat >>conftest.
$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24175 /* Override any GCC internal prototype to avoid an error.
24176 Use char because int might match the return type of a GCC
24177 builtin and then its argument prototype would still apply. */
24181 char __pthread_create_system ();
24185 return __pthread_create_system ();
24190 rm -f conftest.
$ac_objext conftest
$ac_exeext
24191 if { (ac_try
="$ac_link"
24192 case "(($ac_try" in
24193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197 (eval "$ac_link") 2>conftest.er1
24199 grep -v '^ *+' conftest.er1 >conftest.err
24201 cat conftest.err >&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } && {
24204 test -z "$ac_c_werror_flag" ||
24205 test ! -s conftest.err
24206 } && test -s conftest$ac_exeext &&
24207 $as_test_x conftest$ac_exeext; then
24208 ac_cv_lib_pthread___pthread_create_system=yes
24210 echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_cv_lib_pthread___pthread_create_system=no
24216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24217 conftest$ac_exeext conftest.$ac_ext
24218 LIBS=$ac_check_lib_save_LIBS
24220 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
24221 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
24222 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
24223 cat >>confdefs.h <<_ACEOF
24224 #define HAVE_LIBPTHREAD 1
24227 LIBS="-lpthread $LIBS"
24231 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
24232 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
24233 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
24234 echo $ECHO_N "(cached) $ECHO_C" >&6
24236 ac_check_lib_save_LIBS=$LIBS
24238 cat >conftest.$ac_ext <<_ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24245 /* Override any GCC internal prototype to avoid an error.
24246 Use char because int might match the return type of a GCC
24247 builtin and then its argument prototype would still apply. */
24251 char pthread_create ();
24255 return pthread_create ();
24260 rm -f conftest.$ac_objext conftest$ac_exeext
24261 if { (ac_try="$ac_link"
24262 case "(($ac_try" in
24263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24264 *) ac_try_echo
=$ac_try;;
24266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24267 (eval "$ac_link") 2>conftest.er1
24269 grep -v '^ *+' conftest.er1
>conftest.err
24271 cat conftest.err
>&5
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); } && {
24274 test -z "$ac_c_werror_flag" ||
24275 test ! -s conftest.err
24276 } && test -s conftest
$ac_exeext &&
24277 $as_test_x conftest
$ac_exeext; then
24278 ac_cv_lib_c_r_pthread_create
=yes
24280 echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.
$ac_ext >&5
24283 ac_cv_lib_c_r_pthread_create
=no
24286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24287 conftest
$ac_exeext conftest.
$ac_ext
24288 LIBS
=$ac_check_lib_save_LIBS
24290 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
24291 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
24292 if test $ac_cv_lib_c_r_pthread_create = yes; then
24293 cat >>confdefs.h
<<_ACEOF
24294 #define HAVE_LIBC_R 1
24301 { echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
24302 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; }
24303 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
24304 echo $ECHO_N "(cached) $ECHO_C" >&6
24306 ac_check_lib_save_LIBS
=$LIBS
24308 cat >conftest.
$ac_ext <<_ACEOF
24311 cat confdefs.h
>>conftest.
$ac_ext
24312 cat >>conftest.
$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24315 /* Override any GCC internal prototype to avoid an error.
24316 Use char because int might match the return type of a GCC
24317 builtin and then its argument prototype would still apply. */
24321 char pthread_create ();
24325 return pthread_create ();
24330 rm -f conftest.
$ac_objext conftest
$ac_exeext
24331 if { (ac_try
="$ac_link"
24332 case "(($ac_try" in
24333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_link") 2>conftest.er1
24339 grep -v '^ *+' conftest.er1 >conftest.err
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } && {
24344 test -z "$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24346 } && test -s conftest$ac_exeext &&
24347 $as_test_x conftest$ac_exeext; then
24348 ac_cv_lib_c_pthread_create=yes
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 ac_cv_lib_c_pthread_create=no
24356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24357 conftest$ac_exeext conftest.$ac_ext
24358 LIBS=$ac_check_lib_save_LIBS
24360 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
24361 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; }
24362 if test $ac_cv_lib_c_pthread_create = yes; then
24363 cat >>confdefs.h <<_ACEOF
24364 #define HAVE_LIBC 1
24370 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
24371 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
24372 { (exit 1); exit 1; }; }
24389 if test "X$GCC" = "Xyes"; then
24393 CCOPT="$CCOPT -pthread"
24394 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
24398 CCOPT="$CCOPT -pthread"
24401 LIBS="$LIBS -lthread"
24404 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
24411 CCOPT="$CCOPT -pthread"
24418 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
24420 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
24422 CCOPT="$CCOPT -Kthread"
24424 *-*-sysv*OpenUNIX*)
24426 CCOPT="$CCOPT -Kpthread"
24430 ALWAYS_DEFINES="-D_REENTRANT"
24431 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
24432 thread_dir=pthreads
24434 # We'd like to use sigwait() too
24436 { echo "$as_me:$LINENO: checking for sigwait" >&5
24437 echo $ECHO_N "checking for sigwait... $ECHO_C" >&6; }
24438 if test "${ac_cv_func_sigwait+set}" = set; then
24439 echo $ECHO_N "(cached) $ECHO_C" >&6
24441 cat >conftest.$ac_ext <<_ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447 /* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait.
24448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24449 #define sigwait innocuous_sigwait
24451 /* System header to define __stub macros and hopefully few prototypes,
24452 which can conflict with char sigwait (); below.
24453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24454 <limits.h> exists even on freestanding compilers. */
24457 # include <limits.h>
24459 # include <assert.h>
24464 /* Override any GCC internal prototype to avoid an error.
24465 Use char because int might match the return type of a GCC
24466 builtin and then its argument prototype would still apply. */
24471 /* The GNU C library defines this for functions which it implements
24472 to always fail with ENOSYS. Some functions are actually named
24473 something starting with __ and the normal name is an alias. */
24474 #if defined __stub_sigwait || defined __stub___sigwait
24486 rm -f conftest.$ac_objext conftest$ac_exeext
24487 if { (ac_try="$ac_link"
24488 case "(($ac_try" in
24489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24490 *) ac_try_echo
=$ac_try;;
24492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24493 (eval "$ac_link") 2>conftest.er1
24495 grep -v '^ *+' conftest.er1
>conftest.err
24497 cat conftest.err
>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); } && {
24500 test -z "$ac_c_werror_flag" ||
24501 test ! -s conftest.err
24502 } && test -s conftest
$ac_exeext &&
24503 $as_test_x conftest
$ac_exeext; then
24504 ac_cv_func_sigwait
=yes
24506 echo "$as_me: failed program was:" >&5
24507 sed 's/^/| /' conftest.
$ac_ext >&5
24509 ac_cv_func_sigwait
=no
24512 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24513 conftest
$ac_exeext conftest.
$ac_ext
24515 { echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5
24516 echo "${ECHO_T}$ac_cv_func_sigwait" >&6; }
24517 if test $ac_cv_func_sigwait = yes; then
24518 cat >>confdefs.h
<<\_ACEOF
24519 #define HAVE_SIGWAIT 1
24523 { echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
24524 echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6; }
24525 if test "${ac_cv_lib_c_sigwait+set}" = set; then
24526 echo $ECHO_N "(cached) $ECHO_C" >&6
24528 ac_check_lib_save_LIBS
=$LIBS
24530 cat >conftest.
$ac_ext <<_ACEOF
24533 cat confdefs.h
>>conftest.
$ac_ext
24534 cat >>conftest.
$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24537 /* Override any GCC internal prototype to avoid an error.
24538 Use char because int might match the return type of a GCC
24539 builtin and then its argument prototype would still apply. */
24552 rm -f conftest.
$ac_objext conftest
$ac_exeext
24553 if { (ac_try
="$ac_link"
24554 case "(($ac_try" in
24555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_link") 2>conftest.er1
24561 grep -v '^ *+' conftest.er1 >conftest.err
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } && {
24566 test -z "$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24568 } && test -s conftest$ac_exeext &&
24569 $as_test_x conftest$ac_exeext; then
24570 ac_cv_lib_c_sigwait=yes
24572 echo "$as_me: failed program was:" >&5
24573 sed 's/^/| /' conftest.$ac_ext >&5
24575 ac_cv_lib_c_sigwait=no
24578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24579 conftest$ac_exeext conftest.$ac_ext
24580 LIBS=$ac_check_lib_save_LIBS
24582 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
24583 echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6; }
24584 if test $ac_cv_lib_c_sigwait = yes; then
24585 cat >>confdefs.h <<\_ACEOF
24586 #define HAVE_SIGWAIT 1
24590 { echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
24591 echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6; }
24592 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24595 ac_check_lib_save_LIBS=$LIBS
24596 LIBS="-lpthread $LIBS"
24597 cat >conftest.$ac_ext <<_ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24604 /* Override any GCC internal prototype to avoid an error.
24605 Use char because int might match the return type of a GCC
24606 builtin and then its argument prototype would still apply. */
24619 rm -f conftest.$ac_objext conftest$ac_exeext
24620 if { (ac_try="$ac_link"
24621 case "(($ac_try" in
24622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24623 *) ac_try_echo
=$ac_try;;
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_link") 2>conftest.er1
24628 grep -v '^ *+' conftest.er1
>conftest.err
24630 cat conftest.err
>&5
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); } && {
24633 test -z "$ac_c_werror_flag" ||
24634 test ! -s conftest.err
24635 } && test -s conftest
$ac_exeext &&
24636 $as_test_x conftest
$ac_exeext; then
24637 ac_cv_lib_pthread_sigwait
=yes
24639 echo "$as_me: failed program was:" >&5
24640 sed 's/^/| /' conftest.
$ac_ext >&5
24642 ac_cv_lib_pthread_sigwait
=no
24645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24646 conftest
$ac_exeext conftest.
$ac_ext
24647 LIBS
=$ac_check_lib_save_LIBS
24649 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
24650 echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6; }
24651 if test $ac_cv_lib_pthread_sigwait = yes; then
24652 cat >>confdefs.h
<<\_ACEOF
24653 #define HAVE_SIGWAIT 1
24657 { echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
24658 echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6; }
24659 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24662 ac_check_lib_save_LIBS
=$LIBS
24663 LIBS
="-lpthread $LIBS"
24664 cat >conftest.
$ac_ext <<_ACEOF
24667 cat confdefs.h
>>conftest.
$ac_ext
24668 cat >>conftest.
$ac_ext <<_ACEOF
24669 /* end confdefs.h. */
24671 /* Override any GCC internal prototype to avoid an error.
24672 Use char because int might match the return type of a GCC
24673 builtin and then its argument prototype would still apply. */
24681 return _Psigwait ();
24686 rm -f conftest.
$ac_objext conftest
$ac_exeext
24687 if { (ac_try
="$ac_link"
24688 case "(($ac_try" in
24689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24690 *) ac_try_echo=$ac_try;;
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693 (eval "$ac_link") 2>conftest.er1
24695 grep -v '^ *+' conftest.er1 >conftest.err
24697 cat conftest.err >&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } && {
24700 test -z "$ac_c_werror_flag" ||
24701 test ! -s conftest.err
24702 } && test -s conftest$ac_exeext &&
24703 $as_test_x conftest$ac_exeext; then
24704 ac_cv_lib_pthread__Psigwait=yes
24706 echo "$as_me: failed program was:" >&5
24707 sed 's/^/| /' conftest.$ac_ext >&5
24709 ac_cv_lib_pthread__Psigwait=no
24712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24713 conftest$ac_exeext conftest.$ac_ext
24714 LIBS=$ac_check_lib_save_LIBS
24716 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
24717 echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6; }
24718 if test $ac_cv_lib_pthread__Psigwait = yes; then
24719 cat >>confdefs.h <<\_ACEOF
24720 #define HAVE_SIGWAIT 1
24732 { echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
24733 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6; }
24734 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
24735 echo $ECHO_N "(cached) $ECHO_C" >&6
24737 cat >conftest.$ac_ext <<_ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h. */
24743 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
24744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24745 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
24747 /* System header to define __stub macros and hopefully few prototypes,
24748 which can conflict with char pthread_attr_getstacksize (); below.
24749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24750 <limits.h> exists even on freestanding compilers. */
24753 # include <limits.h>
24755 # include <assert.h>
24758 #undef pthread_attr_getstacksize
24760 /* Override any GCC internal prototype to avoid an error.
24761 Use char because int might match the return type of a GCC
24762 builtin and then its argument prototype would still apply. */
24766 char pthread_attr_getstacksize ();
24767 /* The GNU C library defines this for functions which it implements
24768 to always fail with ENOSYS. Some functions are actually named
24769 something starting with __ and the normal name is an alias. */
24770 #if defined __stub_pthread_attr_getstacksize || defined __stub___pthread_attr_getstacksize
24777 return pthread_attr_getstacksize ();
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (ac_try="$ac_link"
24784 case "(($ac_try" in
24785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24786 *) ac_try_echo
=$ac_try;;
24788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24789 (eval "$ac_link") 2>conftest.er1
24791 grep -v '^ *+' conftest.er1
>conftest.err
24793 cat conftest.err
>&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } && {
24796 test -z "$ac_c_werror_flag" ||
24797 test ! -s conftest.err
24798 } && test -s conftest
$ac_exeext &&
24799 $as_test_x conftest
$ac_exeext; then
24800 ac_cv_func_pthread_attr_getstacksize
=yes
24802 echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.
$ac_ext >&5
24805 ac_cv_func_pthread_attr_getstacksize
=no
24808 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24809 conftest
$ac_exeext conftest.
$ac_ext
24811 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
24812 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6; }
24813 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
24814 cat >>confdefs.h
<<\_ACEOF
24815 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
24821 { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
24822 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
24823 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
24824 echo $ECHO_N "(cached) $ECHO_C" >&6
24826 cat >conftest.
$ac_ext <<_ACEOF
24829 cat confdefs.h
>>conftest.
$ac_ext
24830 cat >>conftest.
$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
24833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24834 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
24836 /* System header to define __stub macros and hopefully few prototypes,
24837 which can conflict with char pthread_attr_setstacksize (); below.
24838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24839 <limits.h> exists even on freestanding compilers. */
24842 # include <limits.h>
24844 # include <assert.h>
24847 #undef pthread_attr_setstacksize
24849 /* Override any GCC internal prototype to avoid an error.
24850 Use char because int might match the return type of a GCC
24851 builtin and then its argument prototype would still apply. */
24855 char pthread_attr_setstacksize ();
24856 /* The GNU C library defines this for functions which it implements
24857 to always fail with ENOSYS. Some functions are actually named
24858 something starting with __ and the normal name is an alias. */
24859 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
24866 return pthread_attr_setstacksize ();
24871 rm -f conftest.
$ac_objext conftest
$ac_exeext
24872 if { (ac_try
="$ac_link"
24873 case "(($ac_try" in
24874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878 (eval "$ac_link") 2>conftest.er1
24880 grep -v '^ *+' conftest.er1 >conftest.err
24882 cat conftest.err >&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } && {
24885 test -z "$ac_c_werror_flag" ||
24886 test ! -s conftest.err
24887 } && test -s conftest$ac_exeext &&
24888 $as_test_x conftest$ac_exeext; then
24889 ac_cv_func_pthread_attr_setstacksize=yes
24891 echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24894 ac_cv_func_pthread_attr_setstacksize=no
24897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24898 conftest$ac_exeext conftest.$ac_ext
24900 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
24901 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
24902 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
24903 cat >>confdefs.h <<\_ACEOF
24904 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
24911 # Additional OS-specific issues related to pthreads and sigwait.
24915 # One more place to look for sigwait.
24918 { echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
24919 echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6; }
24920 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24923 ac_check_lib_save_LIBS=$LIBS
24925 cat >conftest.$ac_ext <<_ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24932 /* Override any GCC internal prototype to avoid an error.
24933 Use char because int might match the return type of a GCC
24934 builtin and then its argument prototype would still apply. */
24947 rm -f conftest.$ac_objext conftest$ac_exeext
24948 if { (ac_try="$ac_link"
24949 case "(($ac_try" in
24950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24951 *) ac_try_echo
=$ac_try;;
24953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954 (eval "$ac_link") 2>conftest.er1
24956 grep -v '^ *+' conftest.er1
>conftest.err
24958 cat conftest.err
>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } && {
24961 test -z "$ac_c_werror_flag" ||
24962 test ! -s conftest.err
24963 } && test -s conftest
$ac_exeext &&
24964 $as_test_x conftest
$ac_exeext; then
24965 ac_cv_lib_c_r_sigwait
=yes
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.
$ac_ext >&5
24970 ac_cv_lib_c_r_sigwait
=no
24973 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24974 conftest
$ac_exeext conftest.
$ac_ext
24975 LIBS
=$ac_check_lib_save_LIBS
24977 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
24978 echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6; }
24979 if test $ac_cv_lib_c_r_sigwait = yes; then
24980 cat >>confdefs.h
<<\_ACEOF
24981 #define HAVE_SIGWAIT 1
24987 *-freebsd5.
[012]|
*-freebsd5.
[012].
*);;
24988 *-freebsd5.
[3456789]|
*-freebsd5.
[3456789].
*)
24989 cat >>confdefs.h
<<\_ACEOF
24990 #define NEED_PTHREAD_SCOPE_SYSTEM 1
24995 cat >>confdefs.h
<<\_ACEOF
24996 #define NEED_PTHREAD_SCOPE_SYSTEM 1
25003 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
25004 # called before certain pthreads calls. This is deprecated
25007 *-bsdi3.
*|
*-bsdi4.0
*)
25008 cat >>confdefs.h
<<\_ACEOF
25009 #define NEED_PTHREAD_INIT 1
25014 # LinuxThreads requires some changes to the way we
25015 # deal with signals.
25018 cat >>confdefs.h
<<\_ACEOF
25019 #define HAVE_LINUXTHREADS 1
25024 # Ensure the right sigwait() semantics on Solaris and make
25025 # sure we call pthread_setconcurrency.
25028 cat >>confdefs.h
<<\_ACEOF
25029 #define _POSIX_PTHREAD_SEMANTICS 1
25032 { echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
25033 echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6; }
25034 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
25035 echo $ECHO_N "(cached) $ECHO_C" >&6
25037 cat >conftest.
$ac_ext <<_ACEOF
25040 cat confdefs.h
>>conftest.
$ac_ext
25041 cat >>conftest.
$ac_ext <<_ACEOF
25042 /* end confdefs.h. */
25043 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
25044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25045 #define pthread_setconcurrency innocuous_pthread_setconcurrency
25047 /* System header to define __stub macros and hopefully few prototypes,
25048 which can conflict with char pthread_setconcurrency (); below.
25049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25050 <limits.h> exists even on freestanding compilers. */
25053 # include <limits.h>
25055 # include <assert.h>
25058 #undef pthread_setconcurrency
25060 /* Override any GCC internal prototype to avoid an error.
25061 Use char because int might match the return type of a GCC
25062 builtin and then its argument prototype would still apply. */
25066 char pthread_setconcurrency ();
25067 /* The GNU C library defines this for functions which it implements
25068 to always fail with ENOSYS. Some functions are actually named
25069 something starting with __ and the normal name is an alias. */
25070 #if defined __stub_pthread_setconcurrency || defined __stub___pthread_setconcurrency
25077 return pthread_setconcurrency ();
25082 rm -f conftest.
$ac_objext conftest
$ac_exeext
25083 if { (ac_try
="$ac_link"
25084 case "(($ac_try" in
25085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25086 *) ac_try_echo=$ac_try;;
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089 (eval "$ac_link") 2>conftest.er1
25091 grep -v '^ *+' conftest.er1 >conftest.err
25093 cat conftest.err >&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } && {
25096 test -z "$ac_c_werror_flag" ||
25097 test ! -s conftest.err
25098 } && test -s conftest$ac_exeext &&
25099 $as_test_x conftest$ac_exeext; then
25100 ac_cv_func_pthread_setconcurrency=yes
25102 echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25105 ac_cv_func_pthread_setconcurrency=no
25108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25109 conftest$ac_exeext conftest.$ac_ext
25111 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
25112 echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6; }
25113 if test $ac_cv_func_pthread_setconcurrency = yes; then
25114 cat >>confdefs.h <<\_ACEOF
25115 #define CALL_PTHREAD_SETCONCURRENCY 1
25122 # UnixWare does things its own way.
25124 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25125 cat >>confdefs.h <<\_ACEOF
25126 #define HAVE_UNIXWARE_SIGWAIT 1
25133 # Look for sysconf to allow detection of the number of processors.
25135 { echo "$as_me:$LINENO: checking for sysconf" >&5
25136 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
25137 if test "${ac_cv_func_sysconf+set}" = set; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25140 cat >conftest.$ac_ext <<_ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
25147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25148 #define sysconf innocuous_sysconf
25150 /* System header to define __stub macros and hopefully few prototypes,
25151 which can conflict with char sysconf (); below.
25152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25153 <limits.h> exists even on freestanding compilers. */
25156 # include <limits.h>
25158 # include <assert.h>
25163 /* Override any GCC internal prototype to avoid an error.
25164 Use char because int might match the return type of a GCC
25165 builtin and then its argument prototype would still apply. */
25170 /* The GNU C library defines this for functions which it implements
25171 to always fail with ENOSYS. Some functions are actually named
25172 something starting with __ and the normal name is an alias. */
25173 #if defined __stub_sysconf || defined __stub___sysconf
25185 rm -f conftest.$ac_objext conftest$ac_exeext
25186 if { (ac_try="$ac_link"
25187 case "(($ac_try" in
25188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25189 *) ac_try_echo
=$ac_try;;
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192 (eval "$ac_link") 2>conftest.er1
25194 grep -v '^ *+' conftest.er1
>conftest.err
25196 cat conftest.err
>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest
$ac_exeext &&
25202 $as_test_x conftest
$ac_exeext; then
25203 ac_cv_func_sysconf
=yes
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.
$ac_ext >&5
25208 ac_cv_func_sysconf
=no
25211 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25212 conftest
$ac_exeext conftest.
$ac_ext
25214 { echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
25215 echo "${ECHO_T}$ac_cv_func_sysconf" >&6; }
25216 if test $ac_cv_func_sysconf = yes; then
25217 cat >>confdefs.h
<<\_ACEOF
25218 #define HAVE_SYSCONF 1
25225 ISC_PLATFORM_USETHREADS
="#undef ISC_PLATFORM_USETHREADS"
25226 thread_dir
=nothreads
25232 ISC_THREAD_DIR
=$thread_dir
25236 # was --with-libxml2 specified?
25238 { echo "$as_me:$LINENO: checking for libxml2 library" >&5
25239 echo $ECHO_N "checking for libxml2 library... $ECHO_C" >&6; }
25241 # Check whether --with-libxml2 was given.
25242 if test "${with_libxml2+set}" = set; then
25243 withval
=$with_libxml2; use_libxml2
="$withval"
25249 case "$use_libxml2" in
25254 case X
`(xml2-config --version) 2>/dev/null` in
25256 libxml2_libs
=`xml2-config --libs`
25257 libxml2_cflags
=`xml2-config --cflags`
25266 if test -f "$use_libxml2/bin/xml2-config" ; then
25267 libxml2_libs
=`$use_libxml2/bin/xml2-config --libs`
25268 libxml2_cflags
=`$use_libxml2/bin/xml2-config --cflags`
25273 if test "X$libxml2_libs" != "X"
25275 { echo "$as_me:$LINENO: result: yes" >&5
25276 echo "${ECHO_T}yes" >&6; }
25277 CFLAGS
="$CFLAGS $libxml2_cflags"
25278 LIBS
="$LIBS $libxml2_libs"
25280 cat >>confdefs.h
<<\_ACEOF
25281 #define HAVE_LIBXML2 1
25285 { echo "$as_me:$LINENO: result: no" >&5
25286 echo "${ECHO_T}no" >&6; }
25290 # In solaris 10, SMF can manage named service
25293 { echo "$as_me:$LINENO: checking for smf_enable_instance in -lscf" >&5
25294 echo $ECHO_N "checking for smf_enable_instance in -lscf... $ECHO_C" >&6; }
25295 if test "${ac_cv_lib_scf_smf_enable_instance+set}" = set; then
25296 echo $ECHO_N "(cached) $ECHO_C" >&6
25298 ac_check_lib_save_LIBS
=$LIBS
25300 cat >conftest.
$ac_ext <<_ACEOF
25303 cat confdefs.h
>>conftest.
$ac_ext
25304 cat >>conftest.
$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25307 /* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25313 char smf_enable_instance ();
25317 return smf_enable_instance ();
25322 rm -f conftest.
$ac_objext conftest
$ac_exeext
25323 if { (ac_try
="$ac_link"
25324 case "(($ac_try" in
25325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25326 *) ac_try_echo=$ac_try;;
25328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25329 (eval "$ac_link") 2>conftest.er1
25331 grep -v '^ *+' conftest.er1 >conftest.err
25333 cat conftest.err >&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } && {
25336 test -z "$ac_c_werror_flag" ||
25337 test ! -s conftest.err
25338 } && test -s conftest$ac_exeext &&
25339 $as_test_x conftest$ac_exeext; then
25340 ac_cv_lib_scf_smf_enable_instance=yes
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 ac_cv_lib_scf_smf_enable_instance=no
25348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25349 conftest$ac_exeext conftest.$ac_ext
25350 LIBS=$ac_check_lib_save_LIBS
25352 { echo "$as_me:$LINENO: result: $ac_cv_lib_scf_smf_enable_instance" >&5
25353 echo "${ECHO_T}$ac_cv_lib_scf_smf_enable_instance" >&6; }
25354 if test $ac_cv_lib_scf_smf_enable_instance = yes; then
25355 cat >>confdefs.h <<_ACEOF
25356 #define HAVE_LIBSCF 1
25365 # flockfile is usually provided by pthreads, but we may want to use it
25366 # even if compiled with --disable-threads. getc_unlocked might also not
25369 { echo "$as_me:$LINENO: checking for flockfile" >&5
25370 echo $ECHO_N "checking for flockfile... $ECHO_C" >&6; }
25371 if test "${ac_cv_func_flockfile+set}" = set; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25374 cat >conftest.$ac_ext <<_ACEOF
25377 cat confdefs.h >>conftest.$ac_ext
25378 cat >>conftest.$ac_ext <<_ACEOF
25379 /* end confdefs.h. */
25380 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
25381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25382 #define flockfile innocuous_flockfile
25384 /* System header to define __stub macros and hopefully few prototypes,
25385 which can conflict with char flockfile (); below.
25386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25387 <limits.h> exists even on freestanding compilers. */
25390 # include <limits.h>
25392 # include <assert.h>
25397 /* Override any GCC internal prototype to avoid an error.
25398 Use char because int might match the return type of a GCC
25399 builtin and then its argument prototype would still apply. */
25404 /* The GNU C library defines this for functions which it implements
25405 to always fail with ENOSYS. Some functions are actually named
25406 something starting with __ and the normal name is an alias. */
25407 #if defined __stub_flockfile || defined __stub___flockfile
25414 return flockfile ();
25419 rm -f conftest.$ac_objext conftest$ac_exeext
25420 if { (ac_try="$ac_link"
25421 case "(($ac_try" in
25422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25423 *) ac_try_echo
=$ac_try;;
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426 (eval "$ac_link") 2>conftest.er1
25428 grep -v '^ *+' conftest.er1
>conftest.err
25430 cat conftest.err
>&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } && {
25433 test -z "$ac_c_werror_flag" ||
25434 test ! -s conftest.err
25435 } && test -s conftest
$ac_exeext &&
25436 $as_test_x conftest
$ac_exeext; then
25437 ac_cv_func_flockfile
=yes
25439 echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.
$ac_ext >&5
25442 ac_cv_func_flockfile
=no
25445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25446 conftest
$ac_exeext conftest.
$ac_ext
25448 { echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
25449 echo "${ECHO_T}$ac_cv_func_flockfile" >&6; }
25450 if test $ac_cv_func_flockfile = yes; then
25451 cat >>confdefs.h
<<\_ACEOF
25452 #define HAVE_FLOCKFILE 1
25457 { echo "$as_me:$LINENO: checking for getc_unlocked" >&5
25458 echo $ECHO_N "checking for getc_unlocked... $ECHO_C" >&6; }
25459 if test "${ac_cv_func_getc_unlocked+set}" = set; then
25460 echo $ECHO_N "(cached) $ECHO_C" >&6
25462 cat >conftest.
$ac_ext <<_ACEOF
25465 cat confdefs.h
>>conftest.
$ac_ext
25466 cat >>conftest.
$ac_ext <<_ACEOF
25467 /* end confdefs.h. */
25468 /* Define getc_unlocked to an innocuous variant, in case <limits.h> declares getc_unlocked.
25469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25470 #define getc_unlocked innocuous_getc_unlocked
25472 /* System header to define __stub macros and hopefully few prototypes,
25473 which can conflict with char getc_unlocked (); below.
25474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25475 <limits.h> exists even on freestanding compilers. */
25478 # include <limits.h>
25480 # include <assert.h>
25483 #undef getc_unlocked
25485 /* Override any GCC internal prototype to avoid an error.
25486 Use char because int might match the return type of a GCC
25487 builtin and then its argument prototype would still apply. */
25491 char getc_unlocked ();
25492 /* The GNU C library defines this for functions which it implements
25493 to always fail with ENOSYS. Some functions are actually named
25494 something starting with __ and the normal name is an alias. */
25495 #if defined __stub_getc_unlocked || defined __stub___getc_unlocked
25502 return getc_unlocked ();
25507 rm -f conftest.
$ac_objext conftest
$ac_exeext
25508 if { (ac_try
="$ac_link"
25509 case "(($ac_try" in
25510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25511 *) ac_try_echo=$ac_try;;
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514 (eval "$ac_link") 2>conftest.er1
25516 grep -v '^ *+' conftest.er1 >conftest.err
25518 cat conftest.err >&5
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); } && {
25521 test -z "$ac_c_werror_flag" ||
25522 test ! -s conftest.err
25523 } && test -s conftest$ac_exeext &&
25524 $as_test_x conftest$ac_exeext; then
25525 ac_cv_func_getc_unlocked=yes
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 ac_cv_func_getc_unlocked=no
25533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25534 conftest$ac_exeext conftest.$ac_ext
25536 { echo "$as_me:$LINENO: result: $ac_cv_func_getc_unlocked" >&5
25537 echo "${ECHO_T}$ac_cv_func_getc_unlocked" >&6; }
25538 if test $ac_cv_func_getc_unlocked = yes; then
25539 cat >>confdefs.h <<\_ACEOF
25540 #define HAVE_GETCUNLOCKED 1
25547 # Indicate what the final decision was regarding threads.
25549 { echo "$as_me:$LINENO: checking whether to build with threads" >&5
25550 echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6; }
25551 if $use_threads; then
25552 { echo "$as_me:$LINENO: result: yes" >&5
25553 echo "${ECHO_T}yes" >&6; }
25555 { echo "$as_me:$LINENO: result: no" >&5
25556 echo "${ECHO_T}no" >&6; }
25560 # End of pthreads stuff.
25566 # Check whether --enable-largefile was given.
25567 if test "${enable_largefile+set}" = set; then
25568 enableval=$enable_largefile; want_largefile="yes"
25570 want_largefile="no"
25573 case $want_largefile in
25575 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25582 # Additional compiler settings.
25586 IRIX_DNSSEC_WARNINGS_HACK=""
25588 if test "X$GCC" = "Xyes"; then
25589 { echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5
25590 echo $ECHO_N "checking if \"$CC\" supports -fno-strict-aliasing... $ECHO_C" >&6; }
25591 SAVE_CFLAGS=$CFLAGS
25592 CFLAGS=-fno-strict-aliasing
25593 cat >conftest.$ac_ext <<_ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h. */
25608 rm -f conftest.$ac_objext
25609 if { (ac_try="$ac_compile"
25610 case "(($ac_try" in
25611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25612 *) ac_try_echo
=$ac_try;;
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615 (eval "$ac_compile") 2>conftest.er1
25617 grep -v '^ *+' conftest.er1
>conftest.err
25619 cat conftest.err
>&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } && {
25622 test -z "$ac_c_werror_flag" ||
25623 test ! -s conftest.err
25624 } && test -s conftest.
$ac_objext; then
25625 FNOSTRICTALIASING
=yes
25627 echo "$as_me: failed program was:" >&5
25628 sed 's/^/| /' conftest.
$ac_ext >&5
25630 FNOSTRICTALIASING
=no
25633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25634 CFLAGS
=$SAVE_CFLAGS
25635 if test "$FNOSTRICTALIASING" = "yes"; then
25636 { echo "$as_me:$LINENO: result: yes" >&5
25637 echo "${ECHO_T}yes" >&6; }
25638 STD_CWARNINGS
="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
25640 { echo "$as_me:$LINENO: result: no" >&5
25641 echo "${ECHO_T}no" >&6; }
25642 STD_CWARNINGS
="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
25646 LDFLAGS
="-Wl,+vnocompatwarnings $LDFLAGS"
25653 CCOPT
="$CCOPT -std"
25658 # The version of the C compiler that constantly warns about
25659 # 'const' as well as alignment issues is unfortunately not
25660 # able to be discerned via the version of the operating
25661 # system, nor does cc have a version flag.
25662 case "`$CC +W 123 2>&1`" in
25664 STD_CWARNINGS
="+w1"
25667 # Turn off the pointlessly noisy warnings.
25668 STD_CWARNINGS
="+w1 +W 474,530,2193,2236"
25671 CCOPT
="$CCOPT -Ae -z"
25672 LDFLAGS
="-Wl,+vnocompatwarnings $LDFLAGS"
25673 MKDEPPROG
='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
25676 STD_CWARNINGS
="-fullwarn -woff 1209"
25678 # Silence more than 250 instances of
25679 # "prototyped function redeclared without prototype"
25680 # and 11 instances of
25681 # "variable ... was set but never used"
25682 # from lib/dns/sec/openssl.
25684 IRIX_DNSSEC_WARNINGS_HACK
="-woff 1692,1552"
25689 *-sco-sysv*uw
*|
*-*-sysv*UnixWare
*|
*-*-sysv*OpenUNIX
*)
25704 { echo "$as_me:$LINENO: checking for catgets" >&5
25705 echo $ECHO_N "checking for catgets... $ECHO_C" >&6; }
25706 if test "${ac_cv_func_catgets+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 cat >conftest.
$ac_ext <<_ACEOF
25712 cat confdefs.h
>>conftest.
$ac_ext
25713 cat >>conftest.
$ac_ext <<_ACEOF
25714 /* end confdefs.h. */
25715 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
25716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25717 #define catgets innocuous_catgets
25719 /* System header to define __stub macros and hopefully few prototypes,
25720 which can conflict with char catgets (); below.
25721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25722 <limits.h> exists even on freestanding compilers. */
25725 # include <limits.h>
25727 # include <assert.h>
25732 /* Override any GCC internal prototype to avoid an error.
25733 Use char because int might match the return type of a GCC
25734 builtin and then its argument prototype would still apply. */
25739 /* The GNU C library defines this for functions which it implements
25740 to always fail with ENOSYS. Some functions are actually named
25741 something starting with __ and the normal name is an alias. */
25742 #if defined __stub_catgets || defined __stub___catgets
25754 rm -f conftest.
$ac_objext conftest
$ac_exeext
25755 if { (ac_try
="$ac_link"
25756 case "(($ac_try" in
25757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25758 *) ac_try_echo=$ac_try;;
25760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761 (eval "$ac_link") 2>conftest.er1
25763 grep -v '^ *+' conftest.er1 >conftest.err
25765 cat conftest.err >&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } && {
25768 test -z "$ac_c_werror_flag" ||
25769 test ! -s conftest.err
25770 } && test -s conftest$ac_exeext &&
25771 $as_test_x conftest$ac_exeext; then
25772 ac_cv_func_catgets=yes
25774 echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25777 ac_cv_func_catgets=no
25780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25781 conftest$ac_exeext conftest.$ac_ext
25783 { echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
25784 echo "${ECHO_T}$ac_cv_func_catgets" >&6; }
25785 if test $ac_cv_func_catgets = yes; then
25786 cat >>confdefs.h <<\_ACEOF
25787 #define HAVE_CATGETS 1
25794 # -lxnet buys us one big porting headache... standards, gotta love 'em.
25796 # AC_CHECK_LIB(xnet, socket, ,
25797 # AC_CHECK_LIB(socket, socket)
25800 # Use this for now, instead:
25809 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
25810 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
25811 if test "${ac_cv_lib_socket_socket+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25814 ac_check_lib_save_LIBS=$LIBS
25815 LIBS="-lsocket $LIBS"
25816 cat >conftest.$ac_ext <<_ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h. */
25823 /* Override any GCC internal prototype to avoid an error.
25824 Use char because int might match the return type of a GCC
25825 builtin and then its argument prototype would still apply. */
25838 rm -f conftest.$ac_objext conftest$ac_exeext
25839 if { (ac_try="$ac_link"
25840 case "(($ac_try" in
25841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25842 *) ac_try_echo
=$ac_try;;
25844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845 (eval "$ac_link") 2>conftest.er1
25847 grep -v '^ *+' conftest.er1
>conftest.err
25849 cat conftest.err
>&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } && {
25852 test -z "$ac_c_werror_flag" ||
25853 test ! -s conftest.err
25854 } && test -s conftest
$ac_exeext &&
25855 $as_test_x conftest
$ac_exeext; then
25856 ac_cv_lib_socket_socket
=yes
25858 echo "$as_me: failed program was:" >&5
25859 sed 's/^/| /' conftest.
$ac_ext >&5
25861 ac_cv_lib_socket_socket
=no
25864 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25865 conftest
$ac_exeext conftest.
$ac_ext
25866 LIBS
=$ac_check_lib_save_LIBS
25868 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
25869 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
25870 if test $ac_cv_lib_socket_socket = yes; then
25871 cat >>confdefs.h
<<_ACEOF
25872 #define HAVE_LIBSOCKET 1
25875 LIBS
="-lsocket $LIBS"
25880 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
25881 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
25882 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25885 ac_check_lib_save_LIBS
=$LIBS
25887 cat >conftest.
$ac_ext <<_ACEOF
25890 cat confdefs.h
>>conftest.
$ac_ext
25891 cat >>conftest.
$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25894 /* Override any GCC internal prototype to avoid an error.
25895 Use char because int might match the return type of a GCC
25896 builtin and then its argument prototype would still apply. */
25904 return inet_addr ();
25909 rm -f conftest.
$ac_objext conftest
$ac_exeext
25910 if { (ac_try
="$ac_link"
25911 case "(($ac_try" in
25912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25913 *) ac_try_echo=$ac_try;;
25915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25916 (eval "$ac_link") 2>conftest.er1
25918 grep -v '^ *+' conftest.er1 >conftest.err
25920 cat conftest.err >&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } && {
25923 test -z "$ac_c_werror_flag" ||
25924 test ! -s conftest.err
25925 } && test -s conftest$ac_exeext &&
25926 $as_test_x conftest$ac_exeext; then
25927 ac_cv_lib_nsl_inet_addr=yes
25929 echo "$as_me: failed program was:" >&5
25930 sed 's/^/| /' conftest.$ac_ext >&5
25932 ac_cv_lib_nsl_inet_addr=no
25935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25936 conftest$ac_exeext conftest.$ac_ext
25937 LIBS=$ac_check_lib_save_LIBS
25939 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
25940 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
25941 if test $ac_cv_lib_nsl_inet_addr = yes; then
25942 cat >>confdefs.h <<_ACEOF
25943 #define HAVE_LIBNSL 1
25954 # Work around Solaris's select() limitations.
25957 *-solaris2.[89]|*-solaris2.1?)
25959 cat >>confdefs.h <<\_ACEOF
25960 #define FD_SETSIZE 65536
25969 { echo "$as_me:$LINENO: checking whether to use purify" >&5
25970 echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6; }
25972 # Check whether --with-purify was given.
25973 if test "${with_purify+set}" = set; then
25974 withval=$with_purify; use_purify="$withval"
25980 case "$use_purify" in
25984 # Extract the first word of "purify", so it can be a program name with args.
25985 set dummy purify; ac_word=$2
25986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25988 if test "${ac_cv_path_purify_path+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 case $purify_path in
25993 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
25996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25997 for as_dir in $PATH
26000 test -z "$as_dir" && as_dir=.
26001 for ac_exec_ext in '' $ac_executable_extensions; do
26002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26003 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
26004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26011 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
26015 purify_path=$ac_cv_path_purify_path
26016 if test -n "$purify_path"; then
26017 { echo "$as_me:$LINENO: result: $purify_path" >&5
26018 echo "${ECHO_T}$purify_path" >&6; }
26020 { echo "$as_me:$LINENO: result: no" >&5
26021 echo "${ECHO_T}no" >&6; }
26027 purify_path="$use_purify"
26031 case "$use_purify" in
26033 { echo "$as_me:$LINENO: result: no" >&5
26034 echo "${ECHO_T}no" >&6; }
26038 if test -f $purify_path || test $purify_path = purify; then
26039 { echo "$as_me:$LINENO: result: $purify_path" >&5
26040 echo "${ECHO_T}$purify_path" >&6; }
26041 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
26042 PURIFY="$purify_path $PURIFYFLAGS"
26044 { { echo "$as_me:$LINENO: error: $purify_path not found.
26046 Please choose the proper path with the following command:
26048 configure --with-purify=PATH
26050 echo "$as_me: error: $purify_path not found.
26052 Please choose the proper path with the following command:
26054 configure --with-purify=PATH
26056 { (exit 1); exit 1; }; }
26065 # Check whether --with-libtool was given.
26066 if test "${with_libtool+set}" = set; then
26067 withval=$with_libtool; use_libtool="$withval"
26073 case $use_libtool in
26078 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
26079 LIBTOOL_MODE_COMPILE='--mode=compile'
26080 LIBTOOL_MODE_INSTALL='--mode=install'
26081 LIBTOOL_MODE_LINK='--mode=link'
26083 *) LIBTOOL_ALLOW_UNDEFINED= ;;
26086 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
26087 *) LIBTOOL_IN_MAIN= ;;
26096 LIBTOOL_MODE_COMPILE=
26097 LIBTOOL_MODE_INSTALL=
26099 LIBTOOL_ALLOW_UNDEFINED=
26105 # enable/disable dumping stack backtrace. Also check if the system supports
26106 # glibc-compatible backtrace() function.
26108 # Check whether --enable-backtrace was given.
26109 if test "${enable_backtrace+set}" = set; then
26110 enableval=$enable_backtrace; want_backtrace="$enableval"
26112 want_backtrace="yes"
26115 case $want_backtrace in
26117 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
26118 cat >conftest.$ac_ext <<_ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 #include <execinfo.h>
26128 return (backtrace((void **)0, 0));
26133 rm -f conftest.$ac_objext conftest$ac_exeext
26134 if { (ac_try="$ac_link"
26135 case "(($ac_try" in
26136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26137 *) ac_try_echo
=$ac_try;;
26139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26140 (eval "$ac_link") 2>conftest.er1
26142 grep -v '^ *+' conftest.er1
>conftest.err
26144 cat conftest.err
>&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); } && {
26147 test -z "$ac_c_werror_flag" ||
26148 test ! -s conftest.err
26149 } && test -s conftest
$ac_exeext &&
26150 $as_test_x conftest
$ac_exeext; then
26152 cat >>confdefs.h
<<\_ACEOF
26153 #define HAVE_LIBCTRACE
26157 echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.
$ac_ext >&5
26163 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26164 conftest
$ac_exeext conftest.
$ac_ext
26167 ISC_PLATFORM_USEBACKTRACE
="#undef ISC_PLATFORM_USEBACKTRACE"
26172 # Check whether --enable-symtable was given.
26173 if test "${enable_symtable+set}" = set; then
26174 enableval
=$enable_symtable; want_symtable
="$enableval"
26176 want_symtable
="minimal"
26179 case $want_symtable in
26180 yes|all|minimal
) # "yes" is a hidden value equivalent to "minimal"
26181 if test "$PERL" = ""
26183 { { echo "$as_me:$LINENO: error: Internal symbol table requires perl but no perl is found.
26184 Install perl or explicitly disable the feature by --disable-symtable." >&5
26185 echo "$as_me: error: Internal symbol table requires perl but no perl is found.
26186 Install perl or explicitly disable the feature by --disable-symtable." >&2;}
26187 { (exit 1); exit 1; }; }
26189 if test "$use_libtool" = "yes"; then
26190 { echo "$as_me:$LINENO: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
26191 echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
26193 # we generate the internal symbol table only for those systems
26194 # known to work to avoid unexpected build failure. Also, warn
26195 # about unsupported systems when the feature is enabled
26198 freebsd
*|netbsd
*|openbsd
*|linux
*|solaris
*|darwin
*)
26199 MKSYMTBL_PROGRAM
="$PERL"
26200 if test $want_symtable = all
; then
26201 ALWAYS_MAKE_SYMTABLE
="yes"
26205 if test $want_symtable = yes -o $want_symtable = all
26207 { echo "$as_me:$LINENO: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
26208 echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
26220 # File name extension for static archive files, for those few places
26221 # where they are treated differently from dynamic ones.
26236 # build exportable DNS library?
26238 # Check whether --enable-exportlib was given.
26239 if test "${enable_exportlib+set}" = set; then
26240 enableval
=$enable_exportlib;
26243 case "$enable_exportlib" in
26246 for x
in gmake gnumake
make; do
26247 if $x --version 2>/dev
/null |
grep GNU
> /dev
/null
; then
26252 if test -z "$gmake"; then
26253 { { echo "$as_me:$LINENO: error: exportlib requires GNU make. Install it or disable the feature." >&5
26254 echo "$as_me: error: exportlib requires GNU make. Install it or disable the feature." >&2;}
26255 { (exit 1); exit 1; }; }
26257 LIBEXPORT
=lib
/export
26259 BIND9_CO_RULE
="%.$O: \${srcdir}/%.c"
26262 BIND9_CO_RULE
=".c.$O:"
26268 # Check whether --with-export-libdir was given.
26269 if test "${with_export_libdir+set}" = set; then
26270 withval
=$with_export_libdir; export_libdir
="$withval"
26273 if test -z "$export_libdir"; then
26274 export_libdir
="\${exec_prefix}/lib/bind9/"
26279 # Check whether --with-export-includedir was given.
26280 if test "${with_export_includedir+set}" = set; then
26281 withval
=$with_export_includedir; export_includedir
="$withval"
26284 if test -z "$export_includedir"; then
26285 export_includedir
="\${prefix}/include/bind9/"
26290 # Here begins a very long section to determine the system's networking
26291 # capabilities. The order of the tests is significant.
26297 # Check whether --enable-ipv6 was given.
26298 if test "${enable_ipv6+set}" = set; then
26299 enableval
=$enable_ipv6;
26303 case "$enable_ipv6" in
26305 cat >>confdefs.h
<<\_ACEOF
26306 #define WANT_IPV6 1
26315 # We do the IPv6 compilation checking after libtool so that we can put
26316 # the right suffix on the files.
26318 { echo "$as_me:$LINENO: checking for IPv6 structures" >&5
26319 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6; }
26320 cat >conftest.
$ac_ext <<_ACEOF
26323 cat confdefs.h
>>conftest.
$ac_ext
26324 cat >>conftest.
$ac_ext <<_ACEOF
26325 /* end confdefs.h. */
26327 #include <sys/types.h>
26328 #include <sys/socket.h>
26329 #include <netinet/in.h>
26333 struct sockaddr_in6 sin6; return (0);
26338 rm -f conftest.
$ac_objext
26339 if { (ac_try
="$ac_compile"
26340 case "(($ac_try" in
26341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_compile") 2>conftest.er1
26347 grep -v '^ *+' conftest.er1 >conftest.err
26349 cat conftest.err >&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); } && {
26352 test -z "$ac_c_werror_flag" ||
26353 test ! -s conftest.err
26354 } && test -s conftest.$ac_objext; then
26355 { echo "$as_me:$LINENO: result: yes" >&5
26356 echo "${ECHO_T}yes" >&6; }
26359 echo "$as_me: failed program was:" >&5
26360 sed 's/^/| /' conftest.$ac_ext >&5
26362 { echo "$as_me:$LINENO: result: no" >&5
26363 echo "${ECHO_T}no" >&6; }
26367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26370 # See whether IPv6 support is provided via a Kame add-on.
26371 # This is done before other IPv6 linking tests to LIBS is properly set.
26373 { echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
26374 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6; }
26376 # Check whether --with-kame was given.
26377 if test "${with_kame+set}" = set; then
26378 withval=$with_kame; use_kame="$withval"
26384 case "$use_kame" in
26388 kame_path=/usr/local/v6
26391 kame_path="$use_kame"
26395 case "$use_kame" in
26397 { echo "$as_me:$LINENO: result: no" >&5
26398 echo "${ECHO_T}no" >&6; }
26401 if test -f $kame_path/lib/libinet6.a; then
26402 { echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
26403 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6; }
26404 LIBS="-L$kame_path/lib -linet6 $LIBS"
26406 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
26408 Please choose the proper path with the following command:
26410 configure --with-kame=PATH
26412 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
26414 Please choose the proper path with the following command:
26416 configure --with-kame=PATH
26418 { (exit 1); exit 1; }; }
26424 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
26425 # Including it on Kame-using platforms is very bad, though, because
26426 # Kame uses #error against direct inclusion. So include it on only
26427 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
26428 # This is done before the in6_pktinfo check because that's what
26429 # netinet6/in6.h is needed for.
26434 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
26435 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
26436 isc_netinet6in6_hack="#include <netinet6/in6.h>"
26439 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
26440 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
26441 isc_netinet6in6_hack=""
26447 # This is similar to the netinet6/in6.h issue.
26450 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26452 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
26453 LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
26454 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
26455 isc_netinetin6_hack="#include <netinet/in6.h>"
26458 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
26459 LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
26460 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
26461 isc_netinetin6_hack=""
26466 # Now delve deeper into the suitability of the IPv6 support.
26468 case "$found_ipv6" in
26470 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
26471 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
26473 { echo "$as_me:$LINENO: checking for in6_addr" >&5
26474 echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6; }
26475 cat >conftest.$ac_ext <<_ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26482 #include <sys/types.h>
26483 #include <sys/socket.h>
26484 #include <netinet/in.h>
26485 $isc_netinetin6_hack
26486 $isc_netinet6in6_hack
26491 struct in6_addr in6; return (0);
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26500 *) ac_try_echo
=$ac_try;;
26502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26503 (eval "$ac_compile") 2>conftest.er1
26505 grep -v '^ *+' conftest.er1
>conftest.err
26507 cat conftest.err
>&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } && {
26510 test -z "$ac_c_werror_flag" ||
26511 test ! -s conftest.err
26512 } && test -s conftest.
$ac_objext; then
26513 { echo "$as_me:$LINENO: result: yes" >&5
26514 echo "${ECHO_T}yes" >&6; }
26515 ISC_PLATFORM_HAVEINADDR6
="#undef ISC_PLATFORM_HAVEINADDR6"
26516 LWRES_PLATFORM_HAVEINADDR6
="#undef LWRES_PLATFORM_HAVEINADDR6"
26517 isc_in_addr6_hack
=""
26519 echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.
$ac_ext >&5
26522 { echo "$as_me:$LINENO: result: no" >&5
26523 echo "${ECHO_T}no" >&6; }
26524 ISC_PLATFORM_HAVEINADDR6
="#define ISC_PLATFORM_HAVEINADDR6 1"
26525 LWRES_PLATFORM_HAVEINADDR6
="#define LWRES_PLATFORM_HAVEINADDR6 1"
26526 isc_in_addr6_hack
="#define in6_addr in_addr6"
26529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26531 { echo "$as_me:$LINENO: checking for in6addr_any" >&5
26532 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6; }
26533 cat >conftest.
$ac_ext <<_ACEOF
26536 cat confdefs.h
>>conftest.
$ac_ext
26537 cat >>conftest.
$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26540 #include <sys/types.h>
26541 #include <sys/socket.h>
26542 #include <netinet/in.h>
26543 $isc_netinetin6_hack
26544 $isc_netinet6in6_hack
26550 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
26555 rm -f conftest.
$ac_objext conftest
$ac_exeext
26556 if { (ac_try
="$ac_link"
26557 case "(($ac_try" in
26558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26559 *) ac_try_echo=$ac_try;;
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562 (eval "$ac_link") 2>conftest.er1
26564 grep -v '^ *+' conftest.er1 >conftest.err
26566 cat conftest.err >&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } && {
26569 test -z "$ac_c_werror_flag" ||
26570 test ! -s conftest.err
26571 } && test -s conftest$ac_exeext &&
26572 $as_test_x conftest$ac_exeext; then
26573 { echo "$as_me:$LINENO: result: yes" >&5
26574 echo "${ECHO_T}yes" >&6; }
26575 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
26576 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 { echo "$as_me:$LINENO: result: no" >&5
26582 echo "${ECHO_T}no" >&6; }
26583 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
26584 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
26587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26588 conftest$ac_exeext conftest.$ac_ext
26590 { echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
26591 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6; }
26592 cat >conftest.$ac_ext <<_ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26599 #include <sys/types.h>
26600 #include <sys/socket.h>
26601 #include <netinet/in.h>
26602 $isc_netinetin6_hack
26603 $isc_netinet6in6_hack
26609 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26618 *) ac_try_echo
=$ac_try;;
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621 (eval "$ac_link") 2>conftest.er1
26623 grep -v '^ *+' conftest.er1
>conftest.err
26625 cat conftest.err
>&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); } && {
26628 test -z "$ac_c_werror_flag" ||
26629 test ! -s conftest.err
26630 } && test -s conftest
$ac_exeext &&
26631 $as_test_x conftest
$ac_exeext; then
26632 { echo "$as_me:$LINENO: result: yes" >&5
26633 echo "${ECHO_T}yes" >&6; }
26634 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
26635 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.
$ac_ext >&5
26640 { echo "$as_me:$LINENO: result: no" >&5
26641 echo "${ECHO_T}no" >&6; }
26642 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
26643 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
26646 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26647 conftest
$ac_exeext conftest.
$ac_ext
26649 { echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
26650 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6; }
26651 cat >conftest.
$ac_ext <<_ACEOF
26654 cat confdefs.h
>>conftest.
$ac_ext
26655 cat >>conftest.
$ac_ext <<_ACEOF
26656 /* end confdefs.h. */
26658 #include <sys/types.h>
26659 #include <sys/socket.h>
26660 #include <netinet/in.h>
26661 $isc_netinetin6_hack
26662 $isc_netinet6in6_hack
26667 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
26672 rm -f conftest.
$ac_objext
26673 if { (ac_try
="$ac_compile"
26674 case "(($ac_try" in
26675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679 (eval "$ac_compile") 2>conftest.er1
26681 grep -v '^ *+' conftest.er1 >conftest.err
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } && {
26686 test -z "$ac_c_werror_flag" ||
26687 test ! -s conftest.err
26688 } && test -s conftest.$ac_objext; then
26689 { echo "$as_me:$LINENO: result: yes" >&5
26690 echo "${ECHO_T}yes" >&6; }
26691 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
26692 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
26694 echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26697 { echo "$as_me:$LINENO: result: no" >&5
26698 echo "${ECHO_T}no" >&6; }
26699 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
26700 result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
26703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26704 LWRES_HAVE_SIN6_SCOPE_ID="$result"
26706 { echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
26707 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6; }
26708 cat >conftest.$ac_ext <<_ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h. */
26715 #include <sys/types.h>
26716 #include <sys/socket.h>
26717 #include <netinet/in.h>
26718 $isc_netinetin6_hack
26719 $isc_netinet6in6_hack
26724 struct in6_pktinfo xyzzy; return (0);
26729 rm -f conftest.$ac_objext
26730 if { (ac_try="$ac_compile"
26731 case "(($ac_try" in
26732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26733 *) ac_try_echo
=$ac_try;;
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736 (eval "$ac_compile") 2>conftest.er1
26738 grep -v '^ *+' conftest.er1
>conftest.err
26740 cat conftest.err
>&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } && {
26743 test -z "$ac_c_werror_flag" ||
26744 test ! -s conftest.err
26745 } && test -s conftest.
$ac_objext; then
26746 { echo "$as_me:$LINENO: result: yes" >&5
26747 echo "${ECHO_T}yes" >&6; }
26748 ISC_PLATFORM_HAVEIN6PKTINFO
="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
26750 echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.
$ac_ext >&5
26753 { echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
26754 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6; }
26755 ISC_PLATFORM_HAVEIN6PKTINFO
="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
26758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26761 ISC_PLATFORM_HAVEIPV6
="#undef ISC_PLATFORM_HAVEIPV6"
26762 LWRES_PLATFORM_HAVEIPV6
="#undef LWRES_PLATFORM_HAVEIPV6"
26763 ISC_PLATFORM_NEEDIN6ADDRANY
="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
26764 LWRES_PLATFORM_NEEDIN6ADDRANY
="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
26765 ISC_PLATFORM_HAVEIN6PKTINFO
="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
26766 LWRES_HAVE_SIN6_SCOPE_ID
="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
26767 ISC_PLATFORM_HAVESCOPEID
="#define ISC_PLATFORM_HAVESCOPEID 1"
26768 ISC_IPV6_H
="ipv6.h"
26769 ISC_IPV6_O
="ipv6.$O"
26770 ISC_ISCIPV6_O
="unix/ipv6.$O"
26771 ISC_IPV6_C
="ipv6.c"
26796 { echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
26797 echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6; }
26798 cat >conftest.
$ac_ext <<_ACEOF
26801 cat confdefs.h
>>conftest.
$ac_ext
26802 cat >>conftest.
$ac_ext <<_ACEOF
26803 /* end confdefs.h. */
26805 #include <sys/types.h>
26806 #include <net/if6.h>
26811 struct if_laddrreq a;
26816 rm -f conftest.
$ac_objext conftest
$ac_exeext
26817 if { (ac_try
="$ac_link"
26818 case "(($ac_try" in
26819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_link") 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } && {
26830 test -z "$ac_c_werror_flag" ||
26831 test ! -s conftest.err
26832 } && test -s conftest$ac_exeext &&
26833 $as_test_x conftest$ac_exeext; then
26834 { echo "$as_me:$LINENO: result: yes" >&5
26835 echo "${ECHO_T}yes" >&6; }
26836 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
26838 echo "$as_me: failed program was:" >&5
26839 sed 's/^/| /' conftest.$ac_ext >&5
26841 { echo "$as_me:$LINENO: result: no" >&5
26842 echo "${ECHO_T}no" >&6; }
26843 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
26846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26847 conftest$ac_exeext conftest.$ac_ext
26850 { echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
26851 echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6; }
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26859 #include <sys/types.h>
26860 #include <net/if6.h>
26865 struct if_laddrconf a;
26870 rm -f conftest.$ac_objext conftest$ac_exeext
26871 if { (ac_try="$ac_link"
26872 case "(($ac_try" in
26873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26874 *) ac_try_echo
=$ac_try;;
26876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26877 (eval "$ac_link") 2>conftest.er1
26879 grep -v '^ *+' conftest.er1
>conftest.err
26881 cat conftest.err
>&5
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); } && {
26884 test -z "$ac_c_werror_flag" ||
26885 test ! -s conftest.err
26886 } && test -s conftest
$ac_exeext &&
26887 $as_test_x conftest
$ac_exeext; then
26888 { echo "$as_me:$LINENO: result: yes" >&5
26889 echo "${ECHO_T}yes" >&6; }
26890 ISC_PLATFORM_HAVEIF_LADDRCONF
="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
26892 echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.
$ac_ext >&5
26895 { echo "$as_me:$LINENO: result: no" >&5
26896 echo "${ECHO_T}no" >&6; }
26897 ISC_PLATFORM_HAVEIF_LADDRCONF
="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
26900 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26901 conftest
$ac_exeext conftest.
$ac_ext
26905 # Check for network functions that are often missing. We do this
26906 # after the libtool checking, so we can put the right suffix on
26907 # the files. It also needs to come after checking for a Kame add-on,
26908 # which provides some (all?) of the desired functions.
26911 { echo "$as_me:$LINENO: checking for inet_ntop with IPv6 support" >&5
26912 echo $ECHO_N "checking for inet_ntop with IPv6 support... $ECHO_C" >&6; }
26913 if test "$cross_compiling" = yes; then
26914 { echo "$as_me:$LINENO: result: assuming inet_ntop needed" >&5
26915 echo "${ECHO_T}assuming inet_ntop needed" >&6; }
26916 ISC_EXTRA_OBJS
="$ISC_EXTRA_OBJS inet_ntop.$O"
26917 ISC_EXTRA_SRCS
="$ISC_EXTRA_SRCS inet_ntop.c"
26918 ISC_PLATFORM_NEEDNTOP
="#define ISC_PLATFORM_NEEDNTOP 1"
26920 cat >conftest.
$ac_ext <<_ACEOF
26923 cat confdefs.h
>>conftest.
$ac_ext
26924 cat >>conftest.
$ac_ext <<_ACEOF
26925 /* end confdefs.h. */
26927 #include <sys/types.h>
26928 #include <sys/socket.h>
26929 #include <netinet/in.h>
26930 #include <arpa/inet.h>
26932 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
26934 rm -f conftest
$ac_exeext
26935 if { (ac_try
="$ac_link"
26936 case "(($ac_try" in
26937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_link") 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26945 { (case "(($ac_try" in
26946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26947 *) ac_try_echo
=$ac_try;;
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_try") 2>&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; }; then
26954 { echo "$as_me:$LINENO: result: yes" >&5
26955 echo "${ECHO_T}yes" >&6; }
26956 ISC_PLATFORM_NEEDNTOP
="#undef ISC_PLATFORM_NEEDNTOP"
26958 echo "$as_me: program exited with status $ac_status" >&5
26959 echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.
$ac_ext >&5
26962 ( exit $ac_status )
26963 { echo "$as_me:$LINENO: result: no" >&5
26964 echo "${ECHO_T}no" >&6; }
26965 ISC_EXTRA_OBJS
="$ISC_EXTRA_OBJS inet_ntop.$O"
26966 ISC_EXTRA_SRCS
="$ISC_EXTRA_SRCS inet_ntop.c"
26967 ISC_PLATFORM_NEEDNTOP
="#define ISC_PLATFORM_NEEDNTOP 1"
26969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26975 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
26976 # addresses with less than four octets, like "1.2.3". Also leading
26977 # zeros should also be rejected.
26979 { echo "$as_me:$LINENO: checking for working inet_pton with IPv6 support" >&5
26980 echo $ECHO_N "checking for working inet_pton with IPv6 support... $ECHO_C" >&6; }
26981 if test "$cross_compiling" = yes; then
26982 { echo "$as_me:$LINENO: result: assuming target platform has working inet_pton" >&5
26983 echo "${ECHO_T}assuming target platform has working inet_pton" >&6; }
26984 ISC_PLATFORM_NEEDPTON
="#undef ISC_PLATFORM_NEEDPTON"
26986 cat >conftest.
$ac_ext <<_ACEOF
26989 cat confdefs.h
>>conftest.
$ac_ext
26990 cat >>conftest.
$ac_ext <<_ACEOF
26991 /* end confdefs.h. */
26993 #include <sys/types.h>
26994 #include <sys/socket.h>
26995 #include <netinet/in.h>
26996 #include <arpa/inet.h>
26997 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
26998 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
26999 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
27001 rm -f conftest
$ac_exeext
27002 if { (ac_try
="$ac_link"
27003 case "(($ac_try" in
27004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27005 *) ac_try_echo=$ac_try;;
27007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27008 (eval "$ac_link") 2>&5
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27012 { (case "(($ac_try" in
27013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27014 *) ac_try_echo
=$ac_try;;
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017 (eval "$ac_try") 2>&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; }; then
27021 { echo "$as_me:$LINENO: result: yes" >&5
27022 echo "${ECHO_T}yes" >&6; }
27023 ISC_PLATFORM_NEEDPTON
="#undef ISC_PLATFORM_NEEDPTON"
27025 echo "$as_me: program exited with status $ac_status" >&5
27026 echo "$as_me: failed program was:" >&5
27027 sed 's/^/| /' conftest.
$ac_ext >&5
27029 ( exit $ac_status )
27030 { echo "$as_me:$LINENO: result: no" >&5
27031 echo "${ECHO_T}no" >&6; }
27032 ISC_EXTRA_OBJS
="$ISC_EXTRA_OBJS inet_pton.$O"
27033 ISC_EXTRA_SRCS
="$ISC_EXTRA_SRCS inet_pton.c"
27034 ISC_PLATFORM_NEEDPTON
="#define ISC_PLATFORM_NEEDPTON 1"
27036 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27045 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
27049 # Turn on 4.4BSD style sa_len support.
27050 cat >>confdefs.h
<<\_ACEOF
27051 #define _SOCKADDR_LEN 1
27057 { echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
27058 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
27059 cat >conftest.
$ac_ext <<_ACEOF
27062 cat confdefs.h
>>conftest.
$ac_ext
27063 cat >>conftest.
$ac_ext <<_ACEOF
27064 /* end confdefs.h. */
27066 #include <sys/types.h>
27067 #include <sys/socket.h>
27071 struct sockaddr sa; sa.sa_len = 0; return (0);
27076 rm -f conftest.
$ac_objext
27077 if { (ac_try
="$ac_compile"
27078 case "(($ac_try" in
27079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27080 *) ac_try_echo=$ac_try;;
27082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27083 (eval "$ac_compile") 2>conftest.er1
27085 grep -v '^ *+' conftest.er1 >conftest.err
27087 cat conftest.err >&5
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); } && {
27090 test -z "$ac_c_werror_flag" ||
27091 test ! -s conftest.err
27092 } && test -s conftest.$ac_objext; then
27093 { echo "$as_me:$LINENO: result: yes" >&5
27094 echo "${ECHO_T}yes" >&6; }
27095 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
27096 LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
27098 echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27101 { echo "$as_me:$LINENO: result: no" >&5
27102 echo "${ECHO_T}no" >&6; }
27103 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
27104 LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
27107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27112 # Look for a 4.4BSD or 4.3BSD struct msghdr
27114 { echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
27115 echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6; }
27116 cat >conftest.$ac_ext <<_ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h. */
27123 #include <sys/types.h>
27124 #include <sys/socket.h>
27128 struct msghdr msg; msg.msg_flags = 0; return (0);
27133 rm -f conftest.$ac_objext
27134 if { (ac_try="$ac_compile"
27135 case "(($ac_try" in
27136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27137 *) ac_try_echo
=$ac_try;;
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140 (eval "$ac_compile") 2>conftest.er1
27142 grep -v '^ *+' conftest.er1
>conftest.err
27144 cat conftest.err
>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest.
$ac_objext; then
27150 { echo "$as_me:$LINENO: result: 4.4BSD" >&5
27151 echo "${ECHO_T}4.4BSD" >&6; }
27152 ISC_PLATFORM_MSGHDRFLAVOR
="#define ISC_NET_BSD44MSGHDR 1"
27154 echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.
$ac_ext >&5
27157 { echo "$as_me:$LINENO: result: 4.3BSD" >&5
27158 echo "${ECHO_T}4.3BSD" >&6; }
27159 ISC_PLATFORM_MSGHDRFLAVOR
="#define ISC_NET_BSD43MSGHDR 1"
27162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27166 # Look for in_port_t.
27168 { echo "$as_me:$LINENO: checking for type in_port_t" >&5
27169 echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6; }
27170 cat >conftest.
$ac_ext <<_ACEOF
27173 cat confdefs.h
>>conftest.
$ac_ext
27174 cat >>conftest.
$ac_ext <<_ACEOF
27175 /* end confdefs.h. */
27177 #include <sys/types.h>
27178 #include <netinet/in.h>
27182 in_port_t port = 25; return (0);
27187 rm -f conftest.
$ac_objext
27188 if { (ac_try
="$ac_compile"
27189 case "(($ac_try" in
27190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194 (eval "$ac_compile") 2>conftest.er1
27196 grep -v '^ *+' conftest.er1 >conftest.err
27198 cat conftest.err >&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } && {
27201 test -z "$ac_c_werror_flag" ||
27202 test ! -s conftest.err
27203 } && test -s conftest.$ac_objext; then
27204 { echo "$as_me:$LINENO: result: yes" >&5
27205 echo "${ECHO_T}yes" >&6; }
27206 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
27208 echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27211 { echo "$as_me:$LINENO: result: no" >&5
27212 echo "${ECHO_T}no" >&6; }
27213 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
27216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27220 # Check for addrinfo
27222 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27223 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
27224 cat >conftest.$ac_ext <<_ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h. */
27235 struct addrinfo a; return (0);
27240 rm -f conftest.$ac_objext
27241 if { (ac_try="$ac_compile"
27242 case "(($ac_try" in
27243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27244 *) ac_try_echo
=$ac_try;;
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_compile") 2>conftest.er1
27249 grep -v '^ *+' conftest.er1
>conftest.err
27251 cat conftest.err
>&5
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); } && {
27254 test -z "$ac_c_werror_flag" ||
27255 test ! -s conftest.err
27256 } && test -s conftest.
$ac_objext; then
27257 { echo "$as_me:$LINENO: result: yes" >&5
27258 echo "${ECHO_T}yes" >&6; }
27259 ISC_LWRES_NEEDADDRINFO
="#undef ISC_LWRES_NEEDADDRINFO"
27260 ISC_IRS_NEEDADDRINFO
="#undef ISC_IRS_NEEDADDRINFO"
27261 cat >>confdefs.h
<<\_ACEOF
27262 #define HAVE_ADDRINFO 1
27266 echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.
$ac_ext >&5
27269 { echo "$as_me:$LINENO: result: no" >&5
27270 echo "${ECHO_T}no" >&6; }
27271 ISC_LWRES_NEEDADDRINFO
="#define ISC_LWRES_NEEDADDRINFO 1"
27272 ISC_IRS_NEEDADDRINFO
="#define ISC_IRS_NEEDADDRINFO 1"
27275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27280 # Check for rrsetinfo
27282 { echo "$as_me:$LINENO: checking for struct rrsetinfo" >&5
27283 echo $ECHO_N "checking for struct rrsetinfo... $ECHO_C" >&6; }
27284 cat >conftest.
$ac_ext <<_ACEOF
27287 cat confdefs.h
>>conftest.
$ac_ext
27288 cat >>conftest.
$ac_ext <<_ACEOF
27289 /* end confdefs.h. */
27295 struct rrsetinfo r; return (0);
27300 rm -f conftest.
$ac_objext
27301 if { (ac_try
="$ac_compile"
27302 case "(($ac_try" in
27303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27304 *) ac_try_echo=$ac_try;;
27306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27307 (eval "$ac_compile") 2>conftest.er1
27309 grep -v '^ *+' conftest.er1 >conftest.err
27311 cat conftest.err >&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } && {
27314 test -z "$ac_c_werror_flag" ||
27315 test ! -s conftest.err
27316 } && test -s conftest.$ac_objext; then
27317 { echo "$as_me:$LINENO: result: yes" >&5
27318 echo "${ECHO_T}yes" >&6; }
27319 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27324 { echo "$as_me:$LINENO: result: no" >&5
27325 echo "${ECHO_T}no" >&6; }
27326 ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
27329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27332 { echo "$as_me:$LINENO: checking for int sethostent" >&5
27333 echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6; }
27334 cat >conftest.$ac_ext <<_ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h. */
27345 int i = sethostent(0); return(0);
27350 rm -f conftest.$ac_objext
27351 if { (ac_try="$ac_compile"
27352 case "(($ac_try" in
27353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27354 *) ac_try_echo
=$ac_try;;
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357 (eval "$ac_compile") 2>conftest.er1
27359 grep -v '^ *+' conftest.er1
>conftest.err
27361 cat conftest.err
>&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); } && {
27364 test -z "$ac_c_werror_flag" ||
27365 test ! -s conftest.err
27366 } && test -s conftest.
$ac_objext; then
27367 { echo "$as_me:$LINENO: result: yes" >&5
27368 echo "${ECHO_T}yes" >&6; }
27369 ISC_LWRES_SETHOSTENTINT
="#define ISC_LWRES_SETHOSTENTINT 1"
27371 echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.
$ac_ext >&5
27374 { echo "$as_me:$LINENO: result: no" >&5
27375 echo "${ECHO_T}no" >&6; }
27376 ISC_LWRES_SETHOSTENTINT
="#undef ISC_LWRES_SETHOSTENTINT"
27379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27382 { echo "$as_me:$LINENO: checking for int endhostent" >&5
27383 echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6; }
27384 cat >conftest.
$ac_ext <<_ACEOF
27387 cat confdefs.h
>>conftest.
$ac_ext
27388 cat >>conftest.
$ac_ext <<_ACEOF
27389 /* end confdefs.h. */
27395 int i = endhostent(); return(0);
27400 rm -f conftest.
$ac_objext
27401 if { (ac_try
="$ac_compile"
27402 case "(($ac_try" in
27403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27404 *) ac_try_echo=$ac_try;;
27406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27407 (eval "$ac_compile") 2>conftest.er1
27409 grep -v '^ *+' conftest.er1 >conftest.err
27411 cat conftest.err >&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } && {
27414 test -z "$ac_c_werror_flag" ||
27415 test ! -s conftest.err
27416 } && test -s conftest.$ac_objext; then
27417 { echo "$as_me:$LINENO: result: yes" >&5
27418 echo "${ECHO_T}yes" >&6; }
27419 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
27421 echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.$ac_ext >&5
27424 { echo "$as_me:$LINENO: result: no" >&5
27425 echo "${ECHO_T}no" >&6; }
27426 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
27429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432 { echo "$as_me:$LINENO: checking for getnetbyaddr(in_addr_t, ...)" >&5
27433 echo $ECHO_N "checking for getnetbyaddr(in_addr_t, ...)... $ECHO_C" >&6; }
27434 cat >conftest.$ac_ext <<_ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h. */
27442 struct netent *getnetbyaddr(in_addr_t, int);
27451 rm -f conftest.$ac_objext
27452 if { (ac_try="$ac_compile"
27453 case "(($ac_try" in
27454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27455 *) ac_try_echo
=$ac_try;;
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_compile") 2>conftest.er1
27460 grep -v '^ *+' conftest.er1
>conftest.err
27462 cat conftest.err
>&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } && {
27465 test -z "$ac_c_werror_flag" ||
27466 test ! -s conftest.err
27467 } && test -s conftest.
$ac_objext; then
27468 { echo "$as_me:$LINENO: result: yes" >&5
27469 echo "${ECHO_T}yes" >&6; }
27470 ISC_LWRES_GETNETBYADDRINADDR
="#define ISC_LWRES_GETNETBYADDRINADDR 1"
27472 echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.
$ac_ext >&5
27475 { echo "$as_me:$LINENO: result: no" >&5
27476 echo "${ECHO_T}no" >&6; }
27477 ISC_LWRES_GETNETBYADDRINADDR
="#undef ISC_LWRES_GETNETBYADDRINADDR"
27480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27483 { echo "$as_me:$LINENO: checking for int setnetent" >&5
27484 echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6; }
27485 cat >conftest.
$ac_ext <<_ACEOF
27488 cat confdefs.h
>>conftest.
$ac_ext
27489 cat >>conftest.
$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27496 int i = setnetent(0); return(0);
27501 rm -f conftest.
$ac_objext
27502 if { (ac_try
="$ac_compile"
27503 case "(($ac_try" in
27504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_compile") 2>conftest.er1
27510 grep -v '^ *+' conftest.er1 >conftest.err
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } && {
27515 test -z "$ac_c_werror_flag" ||
27516 test ! -s conftest.err
27517 } && test -s conftest.$ac_objext; then
27518 { echo "$as_me:$LINENO: result: yes" >&5
27519 echo "${ECHO_T}yes" >&6; }
27520 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
27522 echo "$as_me: failed program was:" >&5
27523 sed 's/^/| /' conftest.$ac_ext >&5
27525 { echo "$as_me:$LINENO: result: no" >&5
27526 echo "${ECHO_T}no" >&6; }
27527 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
27530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27533 { echo "$as_me:$LINENO: checking for int endnetent" >&5
27534 echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6; }
27535 cat >conftest.$ac_ext <<_ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h. */
27546 int i = endnetent(); return(0);
27551 rm -f conftest.$ac_objext
27552 if { (ac_try="$ac_compile"
27553 case "(($ac_try" in
27554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27555 *) ac_try_echo
=$ac_try;;
27557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27558 (eval "$ac_compile") 2>conftest.er1
27560 grep -v '^ *+' conftest.er1
>conftest.err
27562 cat conftest.err
>&5
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); } && {
27565 test -z "$ac_c_werror_flag" ||
27566 test ! -s conftest.err
27567 } && test -s conftest.
$ac_objext; then
27568 { echo "$as_me:$LINENO: result: yes" >&5
27569 echo "${ECHO_T}yes" >&6; }
27570 ISC_LWRES_ENDNETENTINT
="#define ISC_LWRES_ENDNETENTINT 1"
27572 echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.
$ac_ext >&5
27575 { echo "$as_me:$LINENO: result: no" >&5
27576 echo "${ECHO_T}no" >&6; }
27577 ISC_LWRES_ENDNETENTINT
="#undef ISC_LWRES_ENDNETENTINT"
27580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27583 { echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
27584 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6; }
27585 cat >conftest.
$ac_ext <<_ACEOF
27588 cat confdefs.h
>>conftest.
$ac_ext
27589 cat >>conftest.
$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27593 struct hostent *gethostbyaddr(const void *, size_t, int);
27602 rm -f conftest.
$ac_objext
27603 if { (ac_try
="$ac_compile"
27604 case "(($ac_try" in
27605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27606 *) ac_try_echo=$ac_try;;
27608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27609 (eval "$ac_compile") 2>conftest.er1
27611 grep -v '^ *+' conftest.er1 >conftest.err
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } && {
27616 test -z "$ac_c_werror_flag" ||
27617 test ! -s conftest.err
27618 } && test -s conftest.$ac_objext; then
27619 { echo "$as_me:$LINENO: result: yes" >&5
27620 echo "${ECHO_T}yes" >&6; }
27621 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
27623 echo "$as_me: failed program was:" >&5
27624 sed 's/^/| /' conftest.$ac_ext >&5
27626 { echo "$as_me:$LINENO: result: no" >&5
27627 echo "${ECHO_T}no" >&6; }
27628 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
27631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27634 { echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
27635 echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6; }
27636 cat >conftest.$ac_ext <<_ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h. */
27647 h_errno = 1; return(0);
27652 rm -f conftest.$ac_objext
27653 if { (ac_try="$ac_compile"
27654 case "(($ac_try" in
27655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27656 *) ac_try_echo
=$ac_try;;
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_compile") 2>conftest.er1
27661 grep -v '^ *+' conftest.er1
>conftest.err
27663 cat conftest.err
>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } && {
27666 test -z "$ac_c_werror_flag" ||
27667 test ! -s conftest.err
27668 } && test -s conftest.
$ac_objext; then
27669 { echo "$as_me:$LINENO: result: yes" >&5
27670 echo "${ECHO_T}yes" >&6; }
27671 ISC_LWRES_NEEDHERRNO
="#undef ISC_LWRES_NEEDHERRNO"
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.
$ac_ext >&5
27676 { echo "$as_me:$LINENO: result: no" >&5
27677 echo "${ECHO_T}no" >&6; }
27678 ISC_LWRES_NEEDHERRNO
="#define ISC_LWRES_NEEDHERRNO 1"
27681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27685 # Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch
27686 # known variations here:
27688 { echo "$as_me:$LINENO: checking for getnameinfo prototype definitions" >&5
27689 echo $ECHO_N "checking for getnameinfo prototype definitions... $ECHO_C" >&6; }
27690 cat >conftest.
$ac_ext <<_ACEOF
27693 cat confdefs.h
>>conftest.
$ac_ext
27694 cat >>conftest.
$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27697 #include <sys/types.h>
27698 #include <sys/socket.h>
27700 int getnameinfo(const struct sockaddr *, socklen_t, char *,
27701 socklen_t, char *, socklen_t, unsigned int);
27710 rm -f conftest.
$ac_objext
27711 if { (ac_try
="$ac_compile"
27712 case "(($ac_try" in
27713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27714 *) ac_try_echo=$ac_try;;
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717 (eval "$ac_compile") 2>conftest.er1
27719 grep -v '^ *+' conftest.er1 >conftest.err
27721 cat conftest.err >&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } && {
27724 test -z "$ac_c_werror_flag" ||
27725 test ! -s conftest.err
27726 } && test -s conftest.$ac_objext; then
27727 { echo "$as_me:$LINENO: result: socklen_t for buflen; u_int for flags" >&5
27728 echo "${ECHO_T}socklen_t for buflen; u_int for flags" >&6; }
27730 cat >>confdefs.h <<\_ACEOF
27731 #define IRS_GETNAMEINFO_BUFLEN_T socklen_t
27735 cat >>confdefs.h <<\_ACEOF
27736 #define IRS_GETNAMEINFO_FLAGS_T unsigned int
27740 echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27743 cat >conftest.$ac_ext <<_ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h. */
27750 #include <sys/types.h>
27751 #include <sys/socket.h>
27753 int getnameinfo(const struct sockaddr *, socklen_t, char *,
27754 size_t, char *, size_t, int);
27763 rm -f conftest.$ac_objext
27764 if { (ac_try="$ac_compile"
27765 case "(($ac_try" in
27766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27767 *) ac_try_echo
=$ac_try;;
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_compile") 2>conftest.er1
27772 grep -v '^ *+' conftest.er1
>conftest.err
27774 cat conftest.err
>&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } && {
27777 test -z "$ac_c_werror_flag" ||
27778 test ! -s conftest.err
27779 } && test -s conftest.
$ac_objext; then
27780 { echo "$as_me:$LINENO: result: size_t for buflen; int for flags" >&5
27781 echo "${ECHO_T}size_t for buflen; int for flags" >&6; }
27782 cat >>confdefs.h
<<\_ACEOF
27783 #define IRS_GETNAMEINFO_BUFLEN_T size_t
27786 cat >>confdefs.h
<<\_ACEOF
27787 #define IRS_GETNAMEINFO_FLAGS_T int
27791 echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.
$ac_ext >&5
27794 { echo "$as_me:$LINENO: result: not match any subspecies; assume standard definition" >&5
27795 echo "${ECHO_T}not match any subspecies; assume standard definition" >&6; }
27796 cat >>confdefs.h
<<\_ACEOF
27797 #define IRS_GETNAMEINFO_BUFLEN_T socklen_t
27800 cat >>confdefs.h
<<\_ACEOF
27801 #define IRS_GETNAMEINFO_FLAGS_T int
27806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27812 # ...and same for gai_strerror().
27814 { echo "$as_me:$LINENO: checking for gai_strerror prototype definitions" >&5
27815 echo $ECHO_N "checking for gai_strerror prototype definitions... $ECHO_C" >&6; }
27816 cat >conftest.
$ac_ext <<_ACEOF
27819 cat confdefs.h
>>conftest.
$ac_ext
27820 cat >>conftest.
$ac_ext <<_ACEOF
27821 /* end confdefs.h. */
27823 #include <sys/types.h>
27824 #include <sys/socket.h>
27826 char *gai_strerror(int ecode);
27835 rm -f conftest.
$ac_objext
27836 if { (ac_try
="$ac_compile"
27837 case "(($ac_try" in
27838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_compile") 2>conftest.er1
27844 grep -v '^ *+' conftest.er1 >conftest.err
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } && {
27849 test -z "$ac_c_werror_flag" ||
27850 test ! -s conftest.err
27851 } && test -s conftest.$ac_objext; then
27852 { echo "$as_me:$LINENO: result: returning char *" >&5
27853 echo "${ECHO_T}returning char *" >&6; }
27855 cat >>confdefs.h <<\_ACEOF
27856 #define IRS_GAISTRERROR_RETURN_T char *
27860 echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27863 { echo "$as_me:$LINENO: result: not match any subspecies; assume standard definition" >&5
27864 echo "${ECHO_T}not match any subspecies; assume standard definition" >&6; }
27865 cat >>confdefs.h <<\_ACEOF
27866 #define IRS_GAISTRERROR_RETURN_T const char *
27871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27873 { echo "$as_me:$LINENO: checking for getipnodebyname" >&5
27874 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; }
27875 if test "${ac_cv_func_getipnodebyname+set}" = set; then
27876 echo $ECHO_N "(cached) $ECHO_C" >&6
27878 cat >conftest.$ac_ext <<_ACEOF
27881 cat confdefs.h >>conftest.$ac_ext
27882 cat >>conftest.$ac_ext <<_ACEOF
27883 /* end confdefs.h. */
27884 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
27885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27886 #define getipnodebyname innocuous_getipnodebyname
27888 /* System header to define __stub macros and hopefully few prototypes,
27889 which can conflict with char getipnodebyname (); below.
27890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27891 <limits.h> exists even on freestanding compilers. */
27894 # include <limits.h>
27896 # include <assert.h>
27899 #undef getipnodebyname
27901 /* Override any GCC internal prototype to avoid an error.
27902 Use char because int might match the return type of a GCC
27903 builtin and then its argument prototype would still apply. */
27907 char getipnodebyname ();
27908 /* The GNU C library defines this for functions which it implements
27909 to always fail with ENOSYS. Some functions are actually named
27910 something starting with __ and the normal name is an alias. */
27911 #if defined __stub_getipnodebyname || defined __stub___getipnodebyname
27918 return getipnodebyname ();
27923 rm -f conftest.$ac_objext conftest$ac_exeext
27924 if { (ac_try="$ac_link"
27925 case "(($ac_try" in
27926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27927 *) ac_try_echo
=$ac_try;;
27929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27930 (eval "$ac_link") 2>conftest.er1
27932 grep -v '^ *+' conftest.er1
>conftest.err
27934 cat conftest.err
>&5
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); } && {
27937 test -z "$ac_c_werror_flag" ||
27938 test ! -s conftest.err
27939 } && test -s conftest
$ac_exeext &&
27940 $as_test_x conftest
$ac_exeext; then
27941 ac_cv_func_getipnodebyname
=yes
27943 echo "$as_me: failed program was:" >&5
27944 sed 's/^/| /' conftest.
$ac_ext >&5
27946 ac_cv_func_getipnodebyname
=no
27949 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27950 conftest
$ac_exeext conftest.
$ac_ext
27952 { echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
27953 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; }
27954 if test $ac_cv_func_getipnodebyname = yes; then
27955 ISC_LWRES_GETIPNODEPROTO
="#undef ISC_LWRES_GETIPNODEPROTO"
27957 ISC_LWRES_GETIPNODEPROTO
="#define ISC_LWRES_GETIPNODEPROTO 1"
27960 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
27961 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
27962 if test "${ac_cv_func_getnameinfo+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27965 cat >conftest.
$ac_ext <<_ACEOF
27968 cat confdefs.h
>>conftest.
$ac_ext
27969 cat >>conftest.
$ac_ext <<_ACEOF
27970 /* end confdefs.h. */
27971 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
27972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27973 #define getnameinfo innocuous_getnameinfo
27975 /* System header to define __stub macros and hopefully few prototypes,
27976 which can conflict with char getnameinfo (); below.
27977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27978 <limits.h> exists even on freestanding compilers. */
27981 # include <limits.h>
27983 # include <assert.h>
27988 /* Override any GCC internal prototype to avoid an error.
27989 Use char because int might match the return type of a GCC
27990 builtin and then its argument prototype would still apply. */
27994 char getnameinfo ();
27995 /* The GNU C library defines this for functions which it implements
27996 to always fail with ENOSYS. Some functions are actually named
27997 something starting with __ and the normal name is an alias. */
27998 #if defined __stub_getnameinfo || defined __stub___getnameinfo
28005 return getnameinfo ();
28010 rm -f conftest.
$ac_objext conftest
$ac_exeext
28011 if { (ac_try
="$ac_link"
28012 case "(($ac_try" in
28013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28014 *) ac_try_echo=$ac_try;;
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017 (eval "$ac_link") 2>conftest.er1
28019 grep -v '^ *+' conftest.er1 >conftest.err
28021 cat conftest.err >&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } && {
28024 test -z "$ac_c_werror_flag" ||
28025 test ! -s conftest.err
28026 } && test -s conftest$ac_exeext &&
28027 $as_test_x conftest$ac_exeext; then
28028 ac_cv_func_getnameinfo=yes
28030 echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28033 ac_cv_func_getnameinfo=no
28036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28037 conftest$ac_exeext conftest.$ac_ext
28039 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
28040 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
28041 if test $ac_cv_func_getnameinfo = yes; then
28042 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
28044 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
28047 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
28048 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
28049 if test "${ac_cv_func_getaddrinfo+set}" = set; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 cat >conftest.$ac_ext <<_ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h. */
28058 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
28059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28060 #define getaddrinfo innocuous_getaddrinfo
28062 /* System header to define __stub macros and hopefully few prototypes,
28063 which can conflict with char getaddrinfo (); below.
28064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28065 <limits.h> exists even on freestanding compilers. */
28068 # include <limits.h>
28070 # include <assert.h>
28075 /* Override any GCC internal prototype to avoid an error.
28076 Use char because int might match the return type of a GCC
28077 builtin and then its argument prototype would still apply. */
28081 char getaddrinfo ();
28082 /* The GNU C library defines this for functions which it implements
28083 to always fail with ENOSYS. Some functions are actually named
28084 something starting with __ and the normal name is an alias. */
28085 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
28092 return getaddrinfo ();
28097 rm -f conftest.$ac_objext conftest$ac_exeext
28098 if { (ac_try="$ac_link"
28099 case "(($ac_try" in
28100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28101 *) ac_try_echo
=$ac_try;;
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104 (eval "$ac_link") 2>conftest.er1
28106 grep -v '^ *+' conftest.er1
>conftest.err
28108 cat conftest.err
>&5
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); } && {
28111 test -z "$ac_c_werror_flag" ||
28112 test ! -s conftest.err
28113 } && test -s conftest
$ac_exeext &&
28114 $as_test_x conftest
$ac_exeext; then
28115 ac_cv_func_getaddrinfo
=yes
28117 echo "$as_me: failed program was:" >&5
28118 sed 's/^/| /' conftest.
$ac_ext >&5
28120 ac_cv_func_getaddrinfo
=no
28123 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28124 conftest
$ac_exeext conftest.
$ac_ext
28126 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
28127 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
28128 if test $ac_cv_func_getaddrinfo = yes; then
28129 ISC_LWRES_GETADDRINFOPROTO
="#undef ISC_LWRES_GETADDRINFOPROTO"
28130 cat >>confdefs.h
<<\_ACEOF
28131 #define HAVE_GETADDRINFO 1
28135 ISC_LWRES_GETADDRINFOPROTO
="#define ISC_LWRES_GETADDRINFOPROTO 1"
28138 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
28139 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
28140 if test "${ac_cv_func_gai_strerror+set}" = set; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28143 cat >conftest.
$ac_ext <<_ACEOF
28146 cat confdefs.h
>>conftest.
$ac_ext
28147 cat >>conftest.
$ac_ext <<_ACEOF
28148 /* end confdefs.h. */
28149 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
28150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28151 #define gai_strerror innocuous_gai_strerror
28153 /* System header to define __stub macros and hopefully few prototypes,
28154 which can conflict with char gai_strerror (); below.
28155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28156 <limits.h> exists even on freestanding compilers. */
28159 # include <limits.h>
28161 # include <assert.h>
28164 #undef gai_strerror
28166 /* Override any GCC internal prototype to avoid an error.
28167 Use char because int might match the return type of a GCC
28168 builtin and then its argument prototype would still apply. */
28172 char gai_strerror ();
28173 /* The GNU C library defines this for functions which it implements
28174 to always fail with ENOSYS. Some functions are actually named
28175 something starting with __ and the normal name is an alias. */
28176 #if defined __stub_gai_strerror || defined __stub___gai_strerror
28183 return gai_strerror ();
28188 rm -f conftest.
$ac_objext conftest
$ac_exeext
28189 if { (ac_try
="$ac_link"
28190 case "(($ac_try" in
28191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195 (eval "$ac_link") 2>conftest.er1
28197 grep -v '^ *+' conftest.er1 >conftest.err
28199 cat conftest.err >&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); } && {
28202 test -z "$ac_c_werror_flag" ||
28203 test ! -s conftest.err
28204 } && test -s conftest$ac_exeext &&
28205 $as_test_x conftest$ac_exeext; then
28206 ac_cv_func_gai_strerror=yes
28208 echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28211 ac_cv_func_gai_strerror=no
28214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28215 conftest$ac_exeext conftest.$ac_ext
28217 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
28218 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
28219 if test $ac_cv_func_gai_strerror = yes; then
28220 cat >>confdefs.h <<\_ACEOF
28221 #define HAVE_GAISTRERROR 1
28231 # Check whether --enable-getifaddrs was given.
28232 if test "${enable_getifaddrs+set}" = set; then
28233 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
28235 want_getifaddrs="yes"
28240 # This interface iteration code for getifaddrs() will fall back to using
28241 # /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
28244 case $want_getifaddrs in
28246 { echo "$as_me:$LINENO: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
28247 echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
28248 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
28249 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
28250 if test "${ac_cv_func_getifaddrs+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28253 cat >conftest.$ac_ext <<_ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28259 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
28260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28261 #define getifaddrs innocuous_getifaddrs
28263 /* System header to define __stub macros and hopefully few prototypes,
28264 which can conflict with char getifaddrs (); below.
28265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28266 <limits.h> exists even on freestanding compilers. */
28269 # include <limits.h>
28271 # include <assert.h>
28276 /* Override any GCC internal prototype to avoid an error.
28277 Use char because int might match the return type of a GCC
28278 builtin and then its argument prototype would still apply. */
28282 char getifaddrs ();
28283 /* The GNU C library defines this for functions which it implements
28284 to always fail with ENOSYS. Some functions are actually named
28285 something starting with __ and the normal name is an alias. */
28286 #if defined __stub_getifaddrs || defined __stub___getifaddrs
28293 return getifaddrs ();
28298 rm -f conftest.$ac_objext conftest$ac_exeext
28299 if { (ac_try="$ac_link"
28300 case "(($ac_try" in
28301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28302 *) ac_try_echo
=$ac_try;;
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_link") 2>conftest.er1
28307 grep -v '^ *+' conftest.er1
>conftest.err
28309 cat conftest.err
>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest
$ac_exeext &&
28315 $as_test_x conftest
$ac_exeext; then
28316 ac_cv_func_getifaddrs
=yes
28318 echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.
$ac_ext >&5
28321 ac_cv_func_getifaddrs
=no
28324 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28325 conftest
$ac_exeext conftest.
$ac_ext
28327 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
28328 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
28329 if test $ac_cv_func_getifaddrs = yes; then
28330 cat >>confdefs.h
<<\_ACEOF
28331 #define HAVE_GETIFADDRS 1
28338 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
28339 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
28340 if test "${ac_cv_func_getifaddrs+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28343 cat >conftest.
$ac_ext <<_ACEOF
28346 cat confdefs.h
>>conftest.
$ac_ext
28347 cat >>conftest.
$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28349 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
28350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28351 #define getifaddrs innocuous_getifaddrs
28353 /* System header to define __stub macros and hopefully few prototypes,
28354 which can conflict with char getifaddrs (); below.
28355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28356 <limits.h> exists even on freestanding compilers. */
28359 # include <limits.h>
28361 # include <assert.h>
28366 /* Override any GCC internal prototype to avoid an error.
28367 Use char because int might match the return type of a GCC
28368 builtin and then its argument prototype would still apply. */
28372 char getifaddrs ();
28373 /* The GNU C library defines this for functions which it implements
28374 to always fail with ENOSYS. Some functions are actually named
28375 something starting with __ and the normal name is an alias. */
28376 #if defined __stub_getifaddrs || defined __stub___getifaddrs
28383 return getifaddrs ();
28388 rm -f conftest.
$ac_objext conftest
$ac_exeext
28389 if { (ac_try
="$ac_link"
28390 case "(($ac_try" in
28391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_link") 2>conftest.er1
28397 grep -v '^ *+' conftest.er1 >conftest.err
28399 cat conftest.err >&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } && {
28402 test -z "$ac_c_werror_flag" ||
28403 test ! -s conftest.err
28404 } && test -s conftest$ac_exeext &&
28405 $as_test_x conftest$ac_exeext; then
28406 ac_cv_func_getifaddrs=yes
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ac_cv_func_getifaddrs=no
28414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28415 conftest$ac_exeext conftest.$ac_ext
28417 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
28418 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
28419 if test $ac_cv_func_getifaddrs = yes; then
28420 cat >>confdefs.h <<\_ACEOF
28421 #define HAVE_GETIFADDRS 1
28432 # Look for a sysctl call to get the list of network interfaces.
28434 case $ac_cv_header_sys_sysctl_h in
28436 { echo "$as_me:$LINENO: checking for interface list sysctl" >&5
28437 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6; }
28438 cat >conftest.$ac_ext <<_ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h. */
28445 #include <sys/param.h>
28446 #include <sys/sysctl.h>
28447 #include <sys/socket.h>
28448 #ifdef NET_RT_IFLIST
28453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28454 $EGREP "found_rt_iflist" >/dev/null 2>&1; then
28455 { echo "$as_me:$LINENO: result: yes" >&5
28456 echo "${ECHO_T}yes" >&6; }
28457 cat >>confdefs.h <<\_ACEOF
28458 #define HAVE_IFLIST_SYSCTL 1
28462 { echo "$as_me:$LINENO: result: no" >&5
28463 echo "${ECHO_T}no" >&6; }
28471 # Check for some other useful functions that are not ever-present.
28474 # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
28475 # because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
28476 # reportedly defines strsep() without declaring it in <string.h> when
28477 # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
28478 # AC_CHECK_FUNC() incorrectly succeeds because it declares
28479 # the function itself.
28480 { echo "$as_me:$LINENO: checking for correctly declared strsep()" >&5
28481 echo $ECHO_N "checking for correctly declared strsep()... $ECHO_C" >&6; }
28482 cat >conftest.$ac_ext <<_ACEOF
28485 cat confdefs.h >>conftest.$ac_ext
28486 cat >>conftest.$ac_ext <<_ACEOF
28487 /* end confdefs.h. */
28488 #include <string.h>
28492 char *sp; char *foo = strsep(&sp, ".");
28497 rm -f conftest.$ac_objext conftest$ac_exeext
28498 if { (ac_try="$ac_link"
28499 case "(($ac_try" in
28500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28501 *) ac_try_echo
=$ac_try;;
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504 (eval "$ac_link") 2>conftest.er1
28506 grep -v '^ *+' conftest.er1
>conftest.err
28508 cat conftest.err
>&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); } && {
28511 test -z "$ac_c_werror_flag" ||
28512 test ! -s conftest.err
28513 } && test -s conftest
$ac_exeext &&
28514 $as_test_x conftest
$ac_exeext; then
28515 { echo "$as_me:$LINENO: result: yes" >&5
28516 echo "${ECHO_T}yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP
="#undef ISC_PLATFORM_NEEDSTRSEP"
28518 echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.
$ac_ext >&5
28521 { echo "$as_me:$LINENO: result: no" >&5
28522 echo "${ECHO_T}no" >&6; }; ISC_PLATFORM_NEEDSTRSEP
="#define ISC_PLATFORM_NEEDSTRSEP 1"
28525 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28526 conftest
$ac_exeext conftest.
$ac_ext
28529 { echo "$as_me:$LINENO: checking for memmove" >&5
28530 echo $ECHO_N "checking for memmove... $ECHO_C" >&6; }
28531 if test "${ac_cv_func_memmove+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28534 cat >conftest.
$ac_ext <<_ACEOF
28537 cat confdefs.h
>>conftest.
$ac_ext
28538 cat >>conftest.
$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28540 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
28541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28542 #define memmove innocuous_memmove
28544 /* System header to define __stub macros and hopefully few prototypes,
28545 which can conflict with char memmove (); below.
28546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28547 <limits.h> exists even on freestanding compilers. */
28550 # include <limits.h>
28552 # include <assert.h>
28557 /* Override any GCC internal prototype to avoid an error.
28558 Use char because int might match the return type of a GCC
28559 builtin and then its argument prototype would still apply. */
28564 /* The GNU C library defines this for functions which it implements
28565 to always fail with ENOSYS. Some functions are actually named
28566 something starting with __ and the normal name is an alias. */
28567 #if defined __stub_memmove || defined __stub___memmove
28579 rm -f conftest.
$ac_objext conftest
$ac_exeext
28580 if { (ac_try
="$ac_link"
28581 case "(($ac_try" in
28582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28583 *) ac_try_echo=$ac_try;;
28585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586 (eval "$ac_link") 2>conftest.er1
28588 grep -v '^ *+' conftest.er1 >conftest.err
28590 cat conftest.err >&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); } && {
28593 test -z "$ac_c_werror_flag" ||
28594 test ! -s conftest.err
28595 } && test -s conftest$ac_exeext &&
28596 $as_test_x conftest$ac_exeext; then
28597 ac_cv_func_memmove=yes
28599 echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28602 ac_cv_func_memmove=no
28605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28606 conftest$ac_exeext conftest.$ac_ext
28608 { echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
28609 echo "${ECHO_T}$ac_cv_func_memmove" >&6; }
28610 if test $ac_cv_func_memmove = yes; then
28611 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
28613 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
28618 { echo "$as_me:$LINENO: checking for strtoul" >&5
28619 echo $ECHO_N "checking for strtoul... $ECHO_C" >&6; }
28620 if test "${ac_cv_func_strtoul+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 cat >conftest.$ac_ext <<_ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h. */
28629 /* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul.
28630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28631 #define strtoul innocuous_strtoul
28633 /* System header to define __stub macros and hopefully few prototypes,
28634 which can conflict with char strtoul (); below.
28635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28636 <limits.h> exists even on freestanding compilers. */
28639 # include <limits.h>
28641 # include <assert.h>
28646 /* Override any GCC internal prototype to avoid an error.
28647 Use char because int might match the return type of a GCC
28648 builtin and then its argument prototype would still apply. */
28653 /* The GNU C library defines this for functions which it implements
28654 to always fail with ENOSYS. Some functions are actually named
28655 something starting with __ and the normal name is an alias. */
28656 #if defined __stub_strtoul || defined __stub___strtoul
28668 rm -f conftest.$ac_objext conftest$ac_exeext
28669 if { (ac_try="$ac_link"
28670 case "(($ac_try" in
28671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28672 *) ac_try_echo
=$ac_try;;
28674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28675 (eval "$ac_link") 2>conftest.er1
28677 grep -v '^ *+' conftest.er1
>conftest.err
28679 cat conftest.err
>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } && {
28682 test -z "$ac_c_werror_flag" ||
28683 test ! -s conftest.err
28684 } && test -s conftest
$ac_exeext &&
28685 $as_test_x conftest
$ac_exeext; then
28686 ac_cv_func_strtoul
=yes
28688 echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.
$ac_ext >&5
28691 ac_cv_func_strtoul
=no
28694 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28695 conftest
$ac_exeext conftest.
$ac_ext
28697 { echo "$as_me:$LINENO: result: $ac_cv_func_strtoul" >&5
28698 echo "${ECHO_T}$ac_cv_func_strtoul" >&6; }
28699 if test $ac_cv_func_strtoul = yes; then
28700 ISC_PLATFORM_NEEDSTRTOUL
="#undef ISC_PLATFORM_NEEDSTRTOUL"
28701 LWRES_PLATFORM_NEEDSTRTOUL
="#undef LWRES_PLATFORM_NEEDSTRTOUL"
28704 ISC_PLATFORM_NEEDSTRTOUL
="#define ISC_PLATFORM_NEEDSTRTOUL 1"
28705 LWRES_PLATFORM_NEEDSTRTOUL
="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
28706 GENRANDOMLIB
='${ISCLIBS}'
28713 { echo "$as_me:$LINENO: checking for strlcpy" >&5
28714 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
28715 if test "${ac_cv_func_strlcpy+set}" = set; then
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28718 cat >conftest.
$ac_ext <<_ACEOF
28721 cat confdefs.h
>>conftest.
$ac_ext
28722 cat >>conftest.
$ac_ext <<_ACEOF
28723 /* end confdefs.h. */
28724 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
28725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28726 #define strlcpy innocuous_strlcpy
28728 /* System header to define __stub macros and hopefully few prototypes,
28729 which can conflict with char strlcpy (); below.
28730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28731 <limits.h> exists even on freestanding compilers. */
28734 # include <limits.h>
28736 # include <assert.h>
28741 /* Override any GCC internal prototype to avoid an error.
28742 Use char because int might match the return type of a GCC
28743 builtin and then its argument prototype would still apply. */
28748 /* The GNU C library defines this for functions which it implements
28749 to always fail with ENOSYS. Some functions are actually named
28750 something starting with __ and the normal name is an alias. */
28751 #if defined __stub_strlcpy || defined __stub___strlcpy
28763 rm -f conftest.
$ac_objext conftest
$ac_exeext
28764 if { (ac_try
="$ac_link"
28765 case "(($ac_try" in
28766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_link") 2>conftest.er1
28772 grep -v '^ *+' conftest.er1 >conftest.err
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } && {
28777 test -z "$ac_c_werror_flag" ||
28778 test ! -s conftest.err
28779 } && test -s conftest$ac_exeext &&
28780 $as_test_x conftest$ac_exeext; then
28781 ac_cv_func_strlcpy=yes
28783 echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28786 ac_cv_func_strlcpy=no
28789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28790 conftest$ac_exeext conftest.$ac_ext
28792 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
28793 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; }
28794 if test $ac_cv_func_strlcpy = yes; then
28795 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
28797 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
28802 { echo "$as_me:$LINENO: checking for strlcat" >&5
28803 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
28804 if test "${ac_cv_func_strlcat+set}" = set; then
28805 echo $ECHO_N "(cached) $ECHO_C" >&6
28807 cat >conftest.$ac_ext <<_ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28813 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
28814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28815 #define strlcat innocuous_strlcat
28817 /* System header to define __stub macros and hopefully few prototypes,
28818 which can conflict with char strlcat (); below.
28819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28820 <limits.h> exists even on freestanding compilers. */
28823 # include <limits.h>
28825 # include <assert.h>
28830 /* Override any GCC internal prototype to avoid an error.
28831 Use char because int might match the return type of a GCC
28832 builtin and then its argument prototype would still apply. */
28837 /* The GNU C library defines this for functions which it implements
28838 to always fail with ENOSYS. Some functions are actually named
28839 something starting with __ and the normal name is an alias. */
28840 #if defined __stub_strlcat || defined __stub___strlcat
28852 rm -f conftest.$ac_objext conftest$ac_exeext
28853 if { (ac_try="$ac_link"
28854 case "(($ac_try" in
28855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28856 *) ac_try_echo
=$ac_try;;
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859 (eval "$ac_link") 2>conftest.er1
28861 grep -v '^ *+' conftest.er1
>conftest.err
28863 cat conftest.err
>&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); } && {
28866 test -z "$ac_c_werror_flag" ||
28867 test ! -s conftest.err
28868 } && test -s conftest
$ac_exeext &&
28869 $as_test_x conftest
$ac_exeext; then
28870 ac_cv_func_strlcat
=yes
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.
$ac_ext >&5
28875 ac_cv_func_strlcat
=no
28878 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28879 conftest
$ac_exeext conftest.
$ac_ext
28881 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
28882 echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
28883 if test $ac_cv_func_strlcat = yes; then
28884 ISC_PLATFORM_NEEDSTRLCAT
="#undef ISC_PLATFORM_NEEDSTRLCAT"
28886 ISC_PLATFORM_NEEDSTRLCAT
="#define ISC_PLATFORM_NEEDSTRLCAT 1"
28893 { echo "$as_me:$LINENO: checking sprintf" >&5
28894 echo $ECHO_N "checking sprintf... $ECHO_C" >&6; }
28895 cat >conftest.
$ac_ext <<_ACEOF
28898 cat confdefs.h
>>conftest.
$ac_ext
28899 cat >>conftest.
$ac_ext <<_ACEOF
28900 /* end confdefs.h. */
28907 char buf[2]; return(*sprintf(buf,"x"));
28912 rm -f conftest.
$ac_objext
28913 if { (ac_try
="$ac_compile"
28914 case "(($ac_try" in
28915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28916 *) ac_try_echo=$ac_try;;
28918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28919 (eval "$ac_compile") 2>conftest.er1
28921 grep -v '^ *+' conftest.er1 >conftest.err
28923 cat conftest.err >&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); } && {
28926 test -z "$ac_c_werror_flag" ||
28927 test ! -s conftest.err
28928 } && test -s conftest.$ac_objext; then
28930 ISC_PRINT_OBJS="print.$O"
28931 ISC_PRINT_SRCS="print.c"
28932 ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
28933 LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
28936 echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28939 ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF"
28940 LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF"
28944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28948 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
28949 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
28950 if test "${ac_cv_func_vsnprintf+set}" = set; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28953 cat >conftest.$ac_ext <<_ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
28960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28961 #define vsnprintf innocuous_vsnprintf
28963 /* System header to define __stub macros and hopefully few prototypes,
28964 which can conflict with char vsnprintf (); below.
28965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28966 <limits.h> exists even on freestanding compilers. */
28969 # include <limits.h>
28971 # include <assert.h>
28976 /* Override any GCC internal prototype to avoid an error.
28977 Use char because int might match the return type of a GCC
28978 builtin and then its argument prototype would still apply. */
28983 /* The GNU C library defines this for functions which it implements
28984 to always fail with ENOSYS. Some functions are actually named
28985 something starting with __ and the normal name is an alias. */
28986 #if defined __stub_vsnprintf || defined __stub___vsnprintf
28993 return vsnprintf ();
28998 rm -f conftest.$ac_objext conftest$ac_exeext
28999 if { (ac_try="$ac_link"
29000 case "(($ac_try" in
29001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29002 *) ac_try_echo
=$ac_try;;
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_link") 2>conftest.er1
29007 grep -v '^ *+' conftest.er1
>conftest.err
29009 cat conftest.err
>&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } && {
29012 test -z "$ac_c_werror_flag" ||
29013 test ! -s conftest.err
29014 } && test -s conftest
$ac_exeext &&
29015 $as_test_x conftest
$ac_exeext; then
29016 ac_cv_func_vsnprintf
=yes
29018 echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.
$ac_ext >&5
29021 ac_cv_func_vsnprintf
=no
29024 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29025 conftest
$ac_exeext conftest.
$ac_ext
29027 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
29028 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
29029 if test $ac_cv_func_vsnprintf = yes; then
29030 ISC_PLATFORM_NEEDVSNPRINTF
="#undef ISC_PLATFORM_NEEDVSNPRINTF"
29031 LWRES_PLATFORM_NEEDVSNPRINTF
="#undef LWRES_PLATFORM_NEEDVSNPRINTF"
29033 ISC_PRINT_OBJS
="print.$O"
29034 ISC_PRINT_SRCS
="print.c"
29035 ISC_PLATFORM_NEEDVSNPRINTF
="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
29036 LWRES_PLATFORM_NEEDVSNPRINTF
="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
29041 ISC_EXTRA_OBJS
="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
29042 ISC_EXTRA_SRCS
="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
29044 { echo "$as_me:$LINENO: checking for strerror" >&5
29045 echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
29046 if test "${ac_cv_func_strerror+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29049 cat >conftest.
$ac_ext <<_ACEOF
29052 cat confdefs.h
>>conftest.
$ac_ext
29053 cat >>conftest.
$ac_ext <<_ACEOF
29054 /* end confdefs.h. */
29055 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
29056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29057 #define strerror innocuous_strerror
29059 /* System header to define __stub macros and hopefully few prototypes,
29060 which can conflict with char strerror (); below.
29061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29062 <limits.h> exists even on freestanding compilers. */
29065 # include <limits.h>
29067 # include <assert.h>
29072 /* Override any GCC internal prototype to avoid an error.
29073 Use char because int might match the return type of a GCC
29074 builtin and then its argument prototype would still apply. */
29079 /* The GNU C library defines this for functions which it implements
29080 to always fail with ENOSYS. Some functions are actually named
29081 something starting with __ and the normal name is an alias. */
29082 #if defined __stub_strerror || defined __stub___strerror
29089 return strerror ();
29094 rm -f conftest.
$ac_objext conftest
$ac_exeext
29095 if { (ac_try
="$ac_link"
29096 case "(($ac_try" in
29097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29098 *) ac_try_echo=$ac_try;;
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101 (eval "$ac_link") 2>conftest.er1
29103 grep -v '^ *+' conftest.er1 >conftest.err
29105 cat conftest.err >&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); } && {
29108 test -z "$ac_c_werror_flag" ||
29109 test ! -s conftest.err
29110 } && test -s conftest$ac_exeext &&
29111 $as_test_x conftest$ac_exeext; then
29112 ac_cv_func_strerror=yes
29114 echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29117 ac_cv_func_strerror=no
29120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29121 conftest$ac_exeext conftest.$ac_ext
29123 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
29124 echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
29125 if test $ac_cv_func_strerror = yes; then
29126 cat >>confdefs.h <<\_ACEOF
29127 #define HAVE_STRERROR 1
29137 # Use our own SPNEGO implementation?
29139 # Check whether --enable-isc-spnego was given.
29140 if test "${enable_isc_spnego+set}" = set; then
29141 enableval=$enable_isc_spnego;
29145 if test -n "$USE_GSSAPI"
29147 case "$enable_isc_spnego" in
29149 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
29150 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
29151 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
29152 { echo "$as_me:$LINENO: result: using SPNEGO from lib/dns" >&5
29153 echo "${ECHO_T}using SPNEGO from lib/dns" >&6; }
29156 { echo "$as_me:$LINENO: result: using SPNEGO from GSSAPI library" >&5
29157 echo "${ECHO_T}using SPNEGO from GSSAPI library" >&6; }
29167 # Determine the printf format characters to use when printing
29168 # values of type isc_int64_t. This will normally be "ll", but where
29169 # the compiler treats "long long" as a alias for "long" and printf
29170 # doesn't know about "long long" use "l". Hopefully the sprintf
29171 # will produce a inconsistent result in the later case. If the compiler
29172 # fails due to seeing "%lld" we fall back to "l".
29174 # Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
29175 # %ld even for (long long)/
29177 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
29178 # configure on Win32.
29180 { echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
29181 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6; }
29182 if test "$cross_compiling" = yes; then
29183 { echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
29184 echo "${ECHO_T}assuming target platform uses ll" >&6; }
29185 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
29186 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
29188 cat >conftest.$ac_ext <<_ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h. */
29197 long long int j = 0;
29200 sprintf(buf, "%lld", j);
29201 exit((sizeof(long long int) != sizeof(long int))? 0 :
29202 (strcmp(buf, "0") != 0));
29206 rm -f conftest$ac_exeext
29207 if { (ac_try="$ac_link"
29208 case "(($ac_try" in
29209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29210 *) ac_try_echo
=$ac_try;;
29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213 (eval "$ac_link") 2>&5
29215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29217 { (case "(($ac_try" in
29218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_try") 2>&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; }; then
29226 { echo "$as_me:$LINENO: result: ll" >&5
29227 echo "${ECHO_T}ll" >&6; }
29228 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
29229 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
29231 echo "$as_me: program exited with status $ac_status" >&5
29232 echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29235 ( exit $ac_status )
29236 { echo "$as_me:$LINENO: result: l" >&5
29237 echo "${ECHO_T}l" >&6; }
29238 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
29239 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"'
29241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29251 # Note it is very recommended to *not* disable chroot(),
29252 # this is only because chroot() was made obsolete by Posix.
29253 # Check whether --enable-chroot was given.
29254 if test "${enable_chroot+set}" = set; then
29255 enableval=$enable_chroot;
29258 case "$enable_chroot" in
29261 for ac_func in chroot
29263 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
29264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29267 echo $ECHO_N "(cached) $ECHO_C" >&6
29269 cat >conftest.$ac_ext <<_ACEOF
29272 cat confdefs.h >>conftest.$ac_ext
29273 cat >>conftest.$ac_ext <<_ACEOF
29274 /* end confdefs.h. */
29275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29277 #define $ac_func innocuous_$ac_func
29279 /* System header to define __stub macros and hopefully few prototypes,
29280 which can conflict with char $ac_func (); below.
29281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29282 <limits.h> exists even on freestanding compilers. */
29285 # include <limits.h>
29287 # include <assert.h>
29292 /* Override any GCC internal prototype to avoid an error.
29293 Use char because int might match the return type of a GCC
29294 builtin and then its argument prototype would still apply. */
29299 /* The GNU C library defines this for functions which it implements
29300 to always fail with ENOSYS. Some functions are actually named
29301 something starting with __ and the normal name is an alias. */
29302 #if defined __stub_$ac_func || defined __stub___$ac_func
29309 return $ac_func ();
29314 rm -f conftest.$ac_objext conftest$ac_exeext
29315 if { (ac_try="$ac_link"
29316 case "(($ac_try" in
29317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29318 *) ac_try_echo
=$ac_try;;
29320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29321 (eval "$ac_link") 2>conftest.er1
29323 grep -v '^ *+' conftest.er1
>conftest.err
29325 cat conftest.err
>&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } && {
29328 test -z "$ac_c_werror_flag" ||
29329 test ! -s conftest.err
29330 } && test -s conftest
$ac_exeext &&
29331 $as_test_x conftest
$ac_exeext; then
29332 eval "$as_ac_var=yes"
29334 echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.
$ac_ext >&5
29337 eval "$as_ac_var=no"
29340 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29341 conftest
$ac_exeext conftest.
$ac_ext
29343 ac_res
=`eval echo '${'$as_ac_var'}'`
29344 { echo "$as_me:$LINENO: result: $ac_res" >&5
29345 echo "${ECHO_T}$ac_res" >&6; }
29346 if test `eval echo '${'$as_ac_var'}'` = yes; then
29347 cat >>confdefs.h
<<_ACEOF
29348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29358 # Check whether --enable-linux-caps was given.
29359 if test "${enable_linux_caps+set}" = set; then
29360 enableval
=$enable_linux_caps;
29363 case "$enable_linux_caps" in
29367 for ac_header
in linux
/capability.h sys
/capability.h
29369 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29370 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29373 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29376 ac_res
=`eval echo '${'$as_ac_Header'}'`
29377 { echo "$as_me:$LINENO: result: $ac_res" >&5
29378 echo "${ECHO_T}$ac_res" >&6; }
29380 # Is the header compilable?
29381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29383 cat >conftest.
$ac_ext <<_ACEOF
29386 cat confdefs.h
>>conftest.
$ac_ext
29387 cat >>conftest.
$ac_ext <<_ACEOF
29388 /* end confdefs.h. */
29389 $ac_includes_default
29390 #include <$ac_header>
29392 rm -f conftest.
$ac_objext
29393 if { (ac_try
="$ac_compile"
29394 case "(($ac_try" in
29395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29396 *) ac_try_echo=$ac_try;;
29398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29399 (eval "$ac_compile") 2>conftest.er1
29401 grep -v '^ *+' conftest.er1 >conftest.err
29403 cat conftest.err >&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); } && {
29406 test -z "$ac_c_werror_flag" ||
29407 test ! -s conftest.err
29408 } && test -s conftest.$ac_objext; then
29409 ac_header_compiler=yes
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29414 ac_header_compiler=no
29417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29419 echo "${ECHO_T}$ac_header_compiler" >&6; }
29421 # Is the header present?
29422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29424 cat >conftest.$ac_ext <<_ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h. */
29430 #include <$ac_header>
29432 if { (ac_try="$ac_cpp conftest.$ac_ext"
29433 case "(($ac_try" in
29434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29435 *) ac_try_echo
=$ac_try;;
29437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29440 grep -v '^ *+' conftest.er1
>conftest.err
29442 cat conftest.err
>&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } >/dev
/null
&& {
29445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29446 test ! -s conftest.err
29448 ac_header_preproc
=yes
29450 echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.
$ac_ext >&5
29453 ac_header_preproc
=no
29456 rm -f conftest.err conftest.
$ac_ext
29457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29458 echo "${ECHO_T}$ac_header_preproc" >&6; }
29460 # So? What about this header?
29461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29467 ac_header_preproc
=yes
29470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29487 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29488 echo $ECHO_N "(cached) $ECHO_C" >&6
29490 eval "$as_ac_Header=\$ac_header_preproc"
29492 ac_res
=`eval echo '${'$as_ac_Header'}'`
29493 { echo "$as_me:$LINENO: result: $ac_res" >&5
29494 echo "${ECHO_T}$ac_res" >&6; }
29497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29498 cat >>confdefs.h
<<_ACEOF
29499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29507 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
29508 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
29509 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
29510 echo $ECHO_N "(cached) $ECHO_C" >&6
29512 ac_check_lib_save_LIBS
=$LIBS
29514 cat >conftest.
$ac_ext <<_ACEOF
29517 cat confdefs.h
>>conftest.
$ac_ext
29518 cat >>conftest.
$ac_ext <<_ACEOF
29519 /* end confdefs.h. */
29521 /* Override any GCC internal prototype to avoid an error.
29522 Use char because int might match the return type of a GCC
29523 builtin and then its argument prototype would still apply. */
29527 char cap_set_proc ();
29531 return cap_set_proc ();
29536 rm -f conftest.
$ac_objext conftest
$ac_exeext
29537 if { (ac_try
="$ac_link"
29538 case "(($ac_try" in
29539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_link") 2>conftest.er1
29545 grep -v '^ *+' conftest.er1 >conftest.err
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } && {
29550 test -z "$ac_c_werror_flag" ||
29551 test ! -s conftest.err
29552 } && test -s conftest$ac_exeext &&
29553 $as_test_x conftest$ac_exeext; then
29554 ac_cv_lib_cap_cap_set_proc=yes
29556 echo "$as_me: failed program was:" >&5
29557 sed 's/^/| /' conftest.$ac_ext >&5
29559 ac_cv_lib_cap_cap_set_proc=no
29562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29563 conftest$ac_exeext conftest.$ac_ext
29564 LIBS=$ac_check_lib_save_LIBS
29566 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
29567 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
29568 if test $ac_cv_lib_cap_cap_set_proc = yes; then
29569 cat >>confdefs.h <<_ACEOF
29570 #define HAVE_LIBCAP 1
29582 for ac_header in sys/prctl.h
29584 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29589 echo $ECHO_N "(cached) $ECHO_C" >&6
29591 ac_res=`eval echo '${'$as_ac_Header'}'`
29592 { echo "$as_me:$LINENO: result: $ac_res" >&5
29593 echo "${ECHO_T}$ac_res" >&6; }
29595 # Is the header compilable?
29596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29598 cat >conftest.$ac_ext <<_ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29604 $ac_includes_default
29605 #include <$ac_header>
29607 rm -f conftest.$ac_objext
29608 if { (ac_try="$ac_compile"
29609 case "(($ac_try" in
29610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29611 *) ac_try_echo
=$ac_try;;
29613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29614 (eval "$ac_compile") 2>conftest.er1
29616 grep -v '^ *+' conftest.er1
>conftest.err
29618 cat conftest.err
>&5
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); } && {
29621 test -z "$ac_c_werror_flag" ||
29622 test ! -s conftest.err
29623 } && test -s conftest.
$ac_objext; then
29624 ac_header_compiler
=yes
29626 echo "$as_me: failed program was:" >&5
29627 sed 's/^/| /' conftest.
$ac_ext >&5
29629 ac_header_compiler
=no
29632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29634 echo "${ECHO_T}$ac_header_compiler" >&6; }
29636 # Is the header present?
29637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29639 cat >conftest.
$ac_ext <<_ACEOF
29642 cat confdefs.h
>>conftest.
$ac_ext
29643 cat >>conftest.
$ac_ext <<_ACEOF
29644 /* end confdefs.h. */
29645 #include <$ac_header>
29647 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29648 case "(($ac_try" in
29649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29655 grep -v '^ *+' conftest.er1 >conftest.err
29657 cat conftest.err >&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } >/dev/null && {
29660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29661 test ! -s conftest.err
29663 ac_header_preproc=yes
29665 echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29668 ac_header_preproc=no
29671 rm -f conftest.err conftest.$ac_ext
29672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29673 echo "${ECHO_T}$ac_header_preproc" >&6; }
29675 # So? What about this header?
29676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29682 ac_header_preproc=yes
29685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29705 eval "$as_ac_Header=\$ac_header_preproc"
29707 ac_res=`eval echo '${'$as_ac_Header'}'`
29708 { echo "$as_me:$LINENO: result: $ac_res" >&5
29709 echo "${ECHO_T}$ac_res" >&6; }
29712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29713 cat >>confdefs.h <<_ACEOF
29714 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29723 for ac_header in sys/un.h
29725 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29732 ac_res=`eval echo '${'$as_ac_Header'}'`
29733 { echo "$as_me:$LINENO: result: $ac_res" >&5
29734 echo "${ECHO_T}$ac_res" >&6; }
29736 # Is the header compilable?
29737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29739 cat >conftest.$ac_ext <<_ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h. */
29745 $ac_includes_default
29746 #include <$ac_header>
29748 rm -f conftest.$ac_objext
29749 if { (ac_try="$ac_compile"
29750 case "(($ac_try" in
29751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29752 *) ac_try_echo
=$ac_try;;
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_compile") 2>conftest.er1
29757 grep -v '^ *+' conftest.er1
>conftest.err
29759 cat conftest.err
>&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } && {
29762 test -z "$ac_c_werror_flag" ||
29763 test ! -s conftest.err
29764 } && test -s conftest.
$ac_objext; then
29765 ac_header_compiler
=yes
29767 echo "$as_me: failed program was:" >&5
29768 sed 's/^/| /' conftest.
$ac_ext >&5
29770 ac_header_compiler
=no
29773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29775 echo "${ECHO_T}$ac_header_compiler" >&6; }
29777 # Is the header present?
29778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29780 cat >conftest.
$ac_ext <<_ACEOF
29783 cat confdefs.h
>>conftest.
$ac_ext
29784 cat >>conftest.
$ac_ext <<_ACEOF
29785 /* end confdefs.h. */
29786 #include <$ac_header>
29788 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29789 case "(($ac_try" in
29790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29791 *) ac_try_echo=$ac_try;;
29793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29796 grep -v '^ *+' conftest.er1 >conftest.err
29798 cat conftest.err >&5
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); } >/dev/null && {
29801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29802 test ! -s conftest.err
29804 ac_header_preproc=yes
29806 echo "$as_me: failed program was:" >&5
29807 sed 's/^/| /' conftest.$ac_ext >&5
29809 ac_header_preproc=no
29812 rm -f conftest.err conftest.$ac_ext
29813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29814 echo "${ECHO_T}$ac_header_preproc" >&6; }
29816 # So? What about this header?
29817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29823 ac_header_preproc=yes
29826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29844 echo $ECHO_N "(cached) $ECHO_C" >&6
29846 eval "$as_ac_Header=\$ac_header_preproc"
29848 ac_res=`eval echo '${'$as_ac_Header'}'`
29849 { echo "$as_me:$LINENO: result: $ac_res" >&5
29850 echo "${ECHO_T}$ac_res" >&6; }
29853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29854 cat >>confdefs.h <<_ACEOF
29855 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29857 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
29860 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
29871 cat >>confdefs.h <<\_ACEOF
29872 #define NEED_SECURE_DIRECTORY 1
29878 cat >>confdefs.h <<\_ACEOF
29879 #define NEED_SECURE_DIRECTORY 1
29888 { echo "$as_me:$LINENO: checking for tzset" >&5
29889 echo $ECHO_N "checking for tzset... $ECHO_C" >&6; }
29890 if test "${ac_cv_func_tzset+set}" = set; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29893 cat >conftest.$ac_ext <<_ACEOF
29896 cat confdefs.h >>conftest.$ac_ext
29897 cat >>conftest.$ac_ext <<_ACEOF
29898 /* end confdefs.h. */
29899 /* Define tzset to an innocuous variant, in case <limits.h> declares tzset.
29900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29901 #define tzset innocuous_tzset
29903 /* System header to define __stub macros and hopefully few prototypes,
29904 which can conflict with char tzset (); below.
29905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29906 <limits.h> exists even on freestanding compilers. */
29909 # include <limits.h>
29911 # include <assert.h>
29916 /* Override any GCC internal prototype to avoid an error.
29917 Use char because int might match the return type of a GCC
29918 builtin and then its argument prototype would still apply. */
29923 /* The GNU C library defines this for functions which it implements
29924 to always fail with ENOSYS. Some functions are actually named
29925 something starting with __ and the normal name is an alias. */
29926 #if defined __stub_tzset || defined __stub___tzset
29938 rm -f conftest.$ac_objext conftest$ac_exeext
29939 if { (ac_try="$ac_link"
29940 case "(($ac_try" in
29941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29942 *) ac_try_echo
=$ac_try;;
29944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945 (eval "$ac_link") 2>conftest.er1
29947 grep -v '^ *+' conftest.er1
>conftest.err
29949 cat conftest.err
>&5
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); } && {
29952 test -z "$ac_c_werror_flag" ||
29953 test ! -s conftest.err
29954 } && test -s conftest
$ac_exeext &&
29955 $as_test_x conftest
$ac_exeext; then
29956 ac_cv_func_tzset
=yes
29958 echo "$as_me: failed program was:" >&5
29959 sed 's/^/| /' conftest.
$ac_ext >&5
29961 ac_cv_func_tzset
=no
29964 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29965 conftest
$ac_exeext conftest.
$ac_ext
29967 { echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5
29968 echo "${ECHO_T}$ac_cv_func_tzset" >&6; }
29969 if test $ac_cv_func_tzset = yes; then
29970 cat >>confdefs.h
<<\_ACEOF
29971 #define HAVE_TZSET 1
29977 { echo "$as_me:$LINENO: checking for optarg declaration" >&5
29978 echo $ECHO_N "checking for optarg declaration... $ECHO_C" >&6; }
29979 cat >conftest.
$ac_ext <<_ACEOF
29982 cat confdefs.h
>>conftest.
$ac_ext
29983 cat >>conftest.
$ac_ext <<_ACEOF
29984 /* end confdefs.h. */
29986 #include <unistd.h>
29996 rm -f conftest.
$ac_objext
29997 if { (ac_try
="$ac_compile"
29998 case "(($ac_try" in
29999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_compile") 2>conftest.er1
30005 grep -v '^ *+' conftest.er1 >conftest.err
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && {
30010 test -z "$ac_c_werror_flag" ||
30011 test ! -s conftest.err
30012 } && test -s conftest.$ac_objext; then
30013 { echo "$as_me:$LINENO: result: yes" >&5
30014 echo "${ECHO_T}yes" >&6; }
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30019 { echo "$as_me:$LINENO: result: no" >&5
30020 echo "${ECHO_T}no" >&6; }
30021 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
30023 cat >>confdefs.h <<\_ACEOF
30024 #define NEED_OPTARG 1
30029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30032 # BSD/OS, and perhaps some others, don't define rlim_t.
30034 { echo "$as_me:$LINENO: checking for type rlim_t" >&5
30035 echo $ECHO_N "checking for type rlim_t... $ECHO_C" >&6; }
30036 cat >conftest.$ac_ext <<_ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h. */
30043 #include <sys/types.h>
30044 #include <sys/time.h>
30045 #include <sys/resource.h>
30049 rlim_t rl = 19671212; return (0);
30054 rm -f conftest.$ac_objext
30055 if { (ac_try="$ac_compile"
30056 case "(($ac_try" in
30057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30058 *) ac_try_echo
=$ac_try;;
30060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30061 (eval "$ac_compile") 2>conftest.er1
30063 grep -v '^ *+' conftest.er1
>conftest.err
30065 cat conftest.err
>&5
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); } && {
30068 test -z "$ac_c_werror_flag" ||
30069 test ! -s conftest.err
30070 } && test -s conftest.
$ac_objext; then
30071 { echo "$as_me:$LINENO: result: yes" >&5
30072 echo "${ECHO_T}yes" >&6; }
30073 ISC_PLATFORM_RLIMITTYPE
="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
30075 echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.
$ac_ext >&5
30078 { echo "$as_me:$LINENO: result: no" >&5
30079 echo "${ECHO_T}no" >&6; }
30081 { echo "$as_me:$LINENO: checking type of rlim_cur" >&5
30082 echo $ECHO_N "checking type of rlim_cur... $ECHO_C" >&6; }
30083 if test "$cross_compiling" = yes; then
30085 ISC_PLATFORM_RLIMITTYPE
="#define ISC_PLATFORM_RLIMITTYPE long long int"
30086 { echo "$as_me:$LINENO: result: cannot determine type of rlim_cur when cross compiling - assuming long long int" >&5
30087 echo "${ECHO_T}cannot determine type of rlim_cur when cross compiling - assuming long long int" >&6; }
30089 cat >conftest.
$ac_ext <<_ACEOF
30092 cat confdefs.h
>>conftest.
$ac_ext
30093 cat >>conftest.
$ac_ext <<_ACEOF
30094 /* end confdefs.h. */
30096 #include <sys/types.h>
30097 #include <sys/time.h>
30098 #include <sys/resource.h>
30099 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
30101 rm -f conftest
$ac_exeext
30102 if { (ac_try
="$ac_link"
30103 case "(($ac_try" in
30104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_link") 2>&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30112 { (case "(($ac_try" in
30113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30114 *) ac_try_echo
=$ac_try;;
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_try") 2>&5
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); }; }; then
30121 { echo "$as_me:$LINENO: result: int" >&5
30122 echo "${ECHO_T}int" >&6; }
30123 ISC_PLATFORM_RLIMITTYPE
="#define ISC_PLATFORM_RLIMITTYPE int"
30125 echo "$as_me: program exited with status $ac_status" >&5
30126 echo "$as_me: failed program was:" >&5
30127 sed 's/^/| /' conftest.
$ac_ext >&5
30129 ( exit $ac_status )
30131 if test "$cross_compiling" = yes; then
30132 { { echo "$as_me:$LINENO: error: this cannot happen" >&5
30133 echo "$as_me: error: this cannot happen" >&2;}
30134 { (exit 1); exit 1; }; }
30136 cat >conftest.
$ac_ext <<_ACEOF
30139 cat confdefs.h
>>conftest.
$ac_ext
30140 cat >>conftest.
$ac_ext <<_ACEOF
30141 /* end confdefs.h. */
30143 #include <sys/types.h>
30144 #include <sys/time.h>
30145 #include <sys/resource.h>
30146 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
30148 rm -f conftest
$ac_exeext
30149 if { (ac_try
="$ac_link"
30150 case "(($ac_try" in
30151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155 (eval "$ac_link") 2>&5
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30159 { (case "(($ac_try" in
30160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30161 *) ac_try_echo
=$ac_try;;
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164 (eval "$ac_try") 2>&5
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; }; then
30168 { echo "$as_me:$LINENO: result: long int" >&5
30169 echo "${ECHO_T}long int" >&6; }
30170 ISC_PLATFORM_RLIMITTYPE
="#define ISC_PLATFORM_RLIMITTYPE long int"
30172 echo "$as_me: program exited with status $ac_status" >&5
30173 echo "$as_me: failed program was:" >&5
30174 sed 's/^/| /' conftest.
$ac_ext >&5
30176 ( exit $ac_status )
30178 if test "$cross_compiling" = yes; then
30179 { { echo "$as_me:$LINENO: error: this cannot happen" >&5
30180 echo "$as_me: error: this cannot happen" >&2;}
30181 { (exit 1); exit 1; }; }
30183 cat >conftest.
$ac_ext <<_ACEOF
30186 cat confdefs.h
>>conftest.
$ac_ext
30187 cat >>conftest.
$ac_ext <<_ACEOF
30188 /* end confdefs.h. */
30190 #include <sys/types.h>
30191 #include <sys/time.h>
30192 #include <sys/resource.h>
30193 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
30195 rm -f conftest
$ac_exeext
30196 if { (ac_try
="$ac_link"
30197 case "(($ac_try" in
30198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_link") 2>&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30206 { (case "(($ac_try" in
30207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30208 *) ac_try_echo
=$ac_try;;
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211 (eval "$ac_try") 2>&5
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); }; }; then
30215 { echo "$as_me:$LINENO: result: long long int" >&5
30216 echo "${ECHO_T}long long int" >&6; }
30217 ISC_PLATFORM_RLIMITTYPE
="#define ISC_PLATFORM_RLIMITTYPE long long int"
30219 echo "$as_me: program exited with status $ac_status" >&5
30220 echo "$as_me: failed program was:" >&5
30221 sed 's/^/| /' conftest.
$ac_ext >&5
30223 ( exit $ac_status )
30224 { { echo "$as_me:$LINENO: error: unable to determine sizeof rlim_cur" >&5
30225 echo "$as_me: error: unable to determine sizeof rlim_cur" >&2;}
30226 { (exit 1); exit 1; }; }
30229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30235 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30252 # Older HP-UX doesn't have gettune
30257 for ac_header
in sys
/dyntune.h
30259 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30260 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30263 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30264 echo $ECHO_N "(cached) $ECHO_C" >&6
30266 ac_res
=`eval echo '${'$as_ac_Header'}'`
30267 { echo "$as_me:$LINENO: result: $ac_res" >&5
30268 echo "${ECHO_T}$ac_res" >&6; }
30270 # Is the header compilable?
30271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30273 cat >conftest.
$ac_ext <<_ACEOF
30276 cat confdefs.h
>>conftest.
$ac_ext
30277 cat >>conftest.
$ac_ext <<_ACEOF
30278 /* end confdefs.h. */
30279 $ac_includes_default
30280 #include <$ac_header>
30282 rm -f conftest.
$ac_objext
30283 if { (ac_try
="$ac_compile"
30284 case "(($ac_try" in
30285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_compile") 2>conftest.er1
30291 grep -v '^ *+' conftest.er1 >conftest.err
30293 cat conftest.err >&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } && {
30296 test -z "$ac_c_werror_flag" ||
30297 test ! -s conftest.err
30298 } && test -s conftest.$ac_objext; then
30299 ac_header_compiler=yes
30301 echo "$as_me: failed program was:" >&5
30302 sed 's/^/| /' conftest.$ac_ext >&5
30304 ac_header_compiler=no
30307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30309 echo "${ECHO_T}$ac_header_compiler" >&6; }
30311 # Is the header present?
30312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30314 cat >conftest.$ac_ext <<_ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h. */
30320 #include <$ac_header>
30322 if { (ac_try="$ac_cpp conftest.$ac_ext"
30323 case "(($ac_try" in
30324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30325 *) ac_try_echo
=$ac_try;;
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30330 grep -v '^ *+' conftest.er1
>conftest.err
30332 cat conftest.err
>&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); } >/dev
/null
&& {
30335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30336 test ! -s conftest.err
30338 ac_header_preproc
=yes
30340 echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.
$ac_ext >&5
30343 ac_header_preproc
=no
30346 rm -f conftest.err conftest.
$ac_ext
30347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30348 echo "${ECHO_T}$ac_header_preproc" >&6; }
30350 # So? What about this header?
30351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30357 ac_header_preproc
=yes
30360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30377 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30378 echo $ECHO_N "(cached) $ECHO_C" >&6
30380 eval "$as_ac_Header=\$ac_header_preproc"
30382 ac_res
=`eval echo '${'$as_ac_Header'}'`
30383 { echo "$as_me:$LINENO: result: $ac_res" >&5
30384 echo "${ECHO_T}$ac_res" >&6; }
30387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30388 cat >>confdefs.h
<<_ACEOF
30389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30403 # Compaq TruCluster requires more code for handling cluster IP aliases
30407 { echo "$as_me:$LINENO: checking for clua_getaliasaddress in -lclua" >&5
30408 echo $ECHO_N "checking for clua_getaliasaddress in -lclua... $ECHO_C" >&6; }
30409 if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then
30410 echo $ECHO_N "(cached) $ECHO_C" >&6
30412 ac_check_lib_save_LIBS
=$LIBS
30413 LIBS
="-lclua $LIBS"
30414 cat >conftest.
$ac_ext <<_ACEOF
30417 cat confdefs.h
>>conftest.
$ac_ext
30418 cat >>conftest.
$ac_ext <<_ACEOF
30419 /* end confdefs.h. */
30421 /* Override any GCC internal prototype to avoid an error.
30422 Use char because int might match the return type of a GCC
30423 builtin and then its argument prototype would still apply. */
30427 char clua_getaliasaddress ();
30431 return clua_getaliasaddress ();
30436 rm -f conftest.
$ac_objext conftest
$ac_exeext
30437 if { (ac_try
="$ac_link"
30438 case "(($ac_try" in
30439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30440 *) ac_try_echo=$ac_try;;
30442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443 (eval "$ac_link") 2>conftest.er1
30445 grep -v '^ *+' conftest.er1 >conftest.err
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } && {
30450 test -z "$ac_c_werror_flag" ||
30451 test ! -s conftest.err
30452 } && test -s conftest$ac_exeext &&
30453 $as_test_x conftest$ac_exeext; then
30454 ac_cv_lib_clua_clua_getaliasaddress=yes
30456 echo "$as_me: failed program was:" >&5
30457 sed 's/^/| /' conftest.$ac_ext >&5
30459 ac_cv_lib_clua_clua_getaliasaddress=no
30462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30463 conftest$ac_exeext conftest.$ac_ext
30464 LIBS=$ac_check_lib_save_LIBS
30466 { echo "$as_me:$LINENO: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
30467 echo "${ECHO_T}$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
30468 if test $ac_cv_lib_clua_clua_getaliasaddress = yes; then
30469 LIBS="-lclua $LIBS"
30472 { echo "$as_me:$LINENO: checking for clua_getaliasaddress" >&5
30473 echo $ECHO_N "checking for clua_getaliasaddress... $ECHO_C" >&6; }
30474 if test "${ac_cv_func_clua_getaliasaddress+set}" = set; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30477 cat >conftest.$ac_ext <<_ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h. */
30483 /* Define clua_getaliasaddress to an innocuous variant, in case <limits.h> declares clua_getaliasaddress.
30484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30485 #define clua_getaliasaddress innocuous_clua_getaliasaddress
30487 /* System header to define __stub macros and hopefully few prototypes,
30488 which can conflict with char clua_getaliasaddress (); below.
30489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30490 <limits.h> exists even on freestanding compilers. */
30493 # include <limits.h>
30495 # include <assert.h>
30498 #undef clua_getaliasaddress
30500 /* Override any GCC internal prototype to avoid an error.
30501 Use char because int might match the return type of a GCC
30502 builtin and then its argument prototype would still apply. */
30506 char clua_getaliasaddress ();
30507 /* The GNU C library defines this for functions which it implements
30508 to always fail with ENOSYS. Some functions are actually named
30509 something starting with __ and the normal name is an alias. */
30510 #if defined __stub_clua_getaliasaddress || defined __stub___clua_getaliasaddress
30517 return clua_getaliasaddress ();
30522 rm -f conftest.$ac_objext conftest$ac_exeext
30523 if { (ac_try="$ac_link"
30524 case "(($ac_try" in
30525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30526 *) ac_try_echo
=$ac_try;;
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_link") 2>conftest.er1
30531 grep -v '^ *+' conftest.er1
>conftest.err
30533 cat conftest.err
>&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } && {
30536 test -z "$ac_c_werror_flag" ||
30537 test ! -s conftest.err
30538 } && test -s conftest
$ac_exeext &&
30539 $as_test_x conftest
$ac_exeext; then
30540 ac_cv_func_clua_getaliasaddress
=yes
30542 echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.
$ac_ext >&5
30545 ac_cv_func_clua_getaliasaddress
=no
30548 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30549 conftest
$ac_exeext conftest.
$ac_ext
30551 { echo "$as_me:$LINENO: result: $ac_cv_func_clua_getaliasaddress" >&5
30552 echo "${ECHO_T}$ac_cv_func_clua_getaliasaddress" >&6; }
30553 if test $ac_cv_func_clua_getaliasaddress = yes; then
30555 cat >>confdefs.h
<<\_ACEOF
30556 #define HAVE_TRUCLUSTER 1
30567 # Some hosts need msg_namelen to match the size of the socket structure.
30568 # Some hosts don't set msg_namelen appropriately on return from recvmsg().
30573 cat >>confdefs.h
<<\_ACEOF
30574 #define BROKEN_RECVMSG 1
30581 # Microsoft has their own way of handling shared libraries that requires
30582 # additional qualifiers on extern variables. Unix systems don't need it.
30585 ISC_PLATFORM_USEDECLSPEC
="#undef ISC_PLATFORM_USEDECLSPEC"
30587 LWRES_PLATFORM_USEDECLSPEC
="#undef LWRES_PLATFORM_USEDECLSPEC"
30589 IRS_PLATFORM_USEDECLSPEC
="#undef IRS_PLATFORM_USEDECLSPEC"
30592 # Random remaining OS-specific issues involving compiler warnings.
30593 # XXXDCL print messages to indicate some compensation is being done?
30596 ISC_PLATFORM_BRACEPTHREADONCEINIT
="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
30600 hack_shutup_pthreadonceinit
=yes
30603 hack_shutup_sputaux
=yes
30606 hack_shutup_sigwait
=yes
30607 hack_shutup_sputaux
=yes
30610 hack_shutup_stdargcast
=yes
30613 hack_shutup_pthreadonceinit
=yes
30616 cat >conftest.
$ac_ext <<_ACEOF
30619 cat confdefs.h
>>conftest.
$ac_ext
30620 cat >>conftest.
$ac_ext <<_ACEOF
30621 /* end confdefs.h. */
30622 #include <pthread.h>
30626 static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
30631 rm -f conftest.
$ac_objext
30632 if { (ac_try
="$ac_compile"
30633 case "(($ac_try" in
30634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30635 *) ac_try_echo=$ac_try;;
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638 (eval "$ac_compile") 2>conftest.er1
30640 grep -v '^ *+' conftest.er1 >conftest.err
30642 cat conftest.err >&5
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); } && {
30645 test -z "$ac_c_werror_flag" ||
30646 test ! -s conftest.err
30647 } && test -s conftest.$ac_objext; then
30648 hack_shutup_pthreadonceinit=yes
30650 echo "$as_me: failed program was:" >&5
30651 sed 's/^/| /' conftest.$ac_ext >&5
30656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30660 case "$hack_shutup_pthreadonceinit" in
30663 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
30665 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
30669 case "$hack_shutup_sigwait" in
30672 # Shut up a -Wmissing-prototypes warning for sigwait().
30674 cat >>confdefs.h <<\_ACEOF
30675 #define SHUTUP_SIGWAIT 1
30681 case "$hack_shutup_sputaux" in
30684 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
30686 cat >>confdefs.h <<\_ACEOF
30687 #define SHUTUP_SPUTAUX 1
30693 case "$hack_shutup_stdargcast" in
30696 # Shut up a -Wcast-qual warning from va_start().
30698 cat >>confdefs.h <<\_ACEOF
30699 #define SHUTUP_STDARG_CAST 1
30706 for ac_header in strings.h
30708 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30715 ac_res=`eval echo '${'$as_ac_Header'}'`
30716 { echo "$as_me:$LINENO: result: $ac_res" >&5
30717 echo "${ECHO_T}$ac_res" >&6; }
30719 # Is the header compilable?
30720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30722 cat >conftest.$ac_ext <<_ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30728 $ac_includes_default
30729 #include <$ac_header>
30731 rm -f conftest.$ac_objext
30732 if { (ac_try="$ac_compile"
30733 case "(($ac_try" in
30734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30735 *) ac_try_echo
=$ac_try;;
30737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30738 (eval "$ac_compile") 2>conftest.er1
30740 grep -v '^ *+' conftest.er1
>conftest.err
30742 cat conftest.err
>&5
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); } && {
30745 test -z "$ac_c_werror_flag" ||
30746 test ! -s conftest.err
30747 } && test -s conftest.
$ac_objext; then
30748 ac_header_compiler
=yes
30750 echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.
$ac_ext >&5
30753 ac_header_compiler
=no
30756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30758 echo "${ECHO_T}$ac_header_compiler" >&6; }
30760 # Is the header present?
30761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30763 cat >conftest.
$ac_ext <<_ACEOF
30766 cat confdefs.h
>>conftest.
$ac_ext
30767 cat >>conftest.
$ac_ext <<_ACEOF
30768 /* end confdefs.h. */
30769 #include <$ac_header>
30771 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30772 case "(($ac_try" in
30773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30774 *) ac_try_echo=$ac_try;;
30776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30779 grep -v '^ *+' conftest.er1 >conftest.err
30781 cat conftest.err >&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } >/dev/null && {
30784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30785 test ! -s conftest.err
30787 ac_header_preproc=yes
30789 echo "$as_me: failed program was:" >&5
30790 sed 's/^/| /' conftest.$ac_ext >&5
30792 ac_header_preproc=no
30795 rm -f conftest.err conftest.$ac_ext
30796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30797 echo "${ECHO_T}$ac_header_preproc" >&6; }
30799 # So? What about this header?
30800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30806 ac_header_preproc=yes
30809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30827 echo $ECHO_N "(cached) $ECHO_C" >&6
30829 eval "$as_ac_Header=\$ac_header_preproc"
30831 ac_res=`eval echo '${'$as_ac_Header'}'`
30832 { echo "$as_me:$LINENO: result: $ac_res" >&5
30833 echo "${ECHO_T}$ac_res" >&6; }
30836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30837 cat >>confdefs.h <<_ACEOF
30838 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30840 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
30843 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
30852 # Check for if_nametoindex() for IPv6 scoped addresses support
30854 { echo "$as_me:$LINENO: checking for if_nametoindex" >&5
30855 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6; }
30856 if test "${ac_cv_func_if_nametoindex+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30859 cat >conftest.$ac_ext <<_ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h. */
30865 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
30866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30867 #define if_nametoindex innocuous_if_nametoindex
30869 /* System header to define __stub macros and hopefully few prototypes,
30870 which can conflict with char if_nametoindex (); below.
30871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30872 <limits.h> exists even on freestanding compilers. */
30875 # include <limits.h>
30877 # include <assert.h>
30880 #undef if_nametoindex
30882 /* Override any GCC internal prototype to avoid an error.
30883 Use char because int might match the return type of a GCC
30884 builtin and then its argument prototype would still apply. */
30888 char if_nametoindex ();
30889 /* The GNU C library defines this for functions which it implements
30890 to always fail with ENOSYS. Some functions are actually named
30891 something starting with __ and the normal name is an alias. */
30892 #if defined __stub_if_nametoindex || defined __stub___if_nametoindex
30899 return if_nametoindex ();
30904 rm -f conftest.$ac_objext conftest$ac_exeext
30905 if { (ac_try="$ac_link"
30906 case "(($ac_try" in
30907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30908 *) ac_try_echo
=$ac_try;;
30910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30911 (eval "$ac_link") 2>conftest.er1
30913 grep -v '^ *+' conftest.er1
>conftest.err
30915 cat conftest.err
>&5
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); } && {
30918 test -z "$ac_c_werror_flag" ||
30919 test ! -s conftest.err
30920 } && test -s conftest
$ac_exeext &&
30921 $as_test_x conftest
$ac_exeext; then
30922 ac_cv_func_if_nametoindex
=yes
30924 echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.
$ac_ext >&5
30927 ac_cv_func_if_nametoindex
=no
30930 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30931 conftest
$ac_exeext conftest.
$ac_ext
30933 { echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
30934 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6; }
30935 if test $ac_cv_func_if_nametoindex = yes; then
30936 ac_cv_have_if_nametoindex
=yes
30938 ac_cv_have_if_nametoindex
=no
30941 case $ac_cv_have_if_nametoindex in
30945 { echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5
30946 echo $ECHO_N "checking for if_nametoindex in -lipv6... $ECHO_C" >&6; }
30947 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30950 ac_check_lib_save_LIBS
=$LIBS
30951 LIBS
="-lipv6 $LIBS"
30952 cat >conftest.
$ac_ext <<_ACEOF
30955 cat confdefs.h
>>conftest.
$ac_ext
30956 cat >>conftest.
$ac_ext <<_ACEOF
30957 /* end confdefs.h. */
30959 /* Override any GCC internal prototype to avoid an error.
30960 Use char because int might match the return type of a GCC
30961 builtin and then its argument prototype would still apply. */
30965 char if_nametoindex ();
30969 return if_nametoindex ();
30974 rm -f conftest.
$ac_objext conftest
$ac_exeext
30975 if { (ac_try
="$ac_link"
30976 case "(($ac_try" in
30977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30978 *) ac_try_echo=$ac_try;;
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981 (eval "$ac_link") 2>conftest.er1
30983 grep -v '^ *+' conftest.er1 >conftest.err
30985 cat conftest.err >&5
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } && {
30988 test -z "$ac_c_werror_flag" ||
30989 test ! -s conftest.err
30990 } && test -s conftest$ac_exeext &&
30991 $as_test_x conftest$ac_exeext; then
30992 ac_cv_lib_ipv6_if_nametoindex=yes
30994 echo "$as_me: failed program was:" >&5
30995 sed 's/^/| /' conftest.$ac_ext >&5
30997 ac_cv_lib_ipv6_if_nametoindex=no
31000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31001 conftest$ac_exeext conftest.$ac_ext
31002 LIBS=$ac_check_lib_save_LIBS
31004 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
31005 echo "${ECHO_T}$ac_cv_lib_ipv6_if_nametoindex" >&6; }
31006 if test $ac_cv_lib_ipv6_if_nametoindex = yes; then
31007 ac_cv_have_if_nametoindex=yes
31008 LIBS="-lipv6 $LIBS"
31014 case $ac_cv_have_if_nametoindex in
31016 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
31019 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
31025 for ac_func in nanosleep
31027 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31033 cat >conftest.$ac_ext <<_ACEOF
31036 cat confdefs.h >>conftest.$ac_ext
31037 cat >>conftest.$ac_ext <<_ACEOF
31038 /* end confdefs.h. */
31039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31041 #define $ac_func innocuous_$ac_func
31043 /* System header to define __stub macros and hopefully few prototypes,
31044 which can conflict with char $ac_func (); below.
31045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31046 <limits.h> exists even on freestanding compilers. */
31049 # include <limits.h>
31051 # include <assert.h>
31056 /* Override any GCC internal prototype to avoid an error.
31057 Use char because int might match the return type of a GCC
31058 builtin and then its argument prototype would still apply. */
31063 /* The GNU C library defines this for functions which it implements
31064 to always fail with ENOSYS. Some functions are actually named
31065 something starting with __ and the normal name is an alias. */
31066 #if defined __stub_$ac_func || defined __stub___$ac_func
31073 return $ac_func ();
31078 rm -f conftest.$ac_objext conftest$ac_exeext
31079 if { (ac_try="$ac_link"
31080 case "(($ac_try" in
31081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31082 *) ac_try_echo
=$ac_try;;
31084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31085 (eval "$ac_link") 2>conftest.er1
31087 grep -v '^ *+' conftest.er1
>conftest.err
31089 cat conftest.err
>&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); } && {
31092 test -z "$ac_c_werror_flag" ||
31093 test ! -s conftest.err
31094 } && test -s conftest
$ac_exeext &&
31095 $as_test_x conftest
$ac_exeext; then
31096 eval "$as_ac_var=yes"
31098 echo "$as_me: failed program was:" >&5
31099 sed 's/^/| /' conftest.
$ac_ext >&5
31101 eval "$as_ac_var=no"
31104 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31105 conftest
$ac_exeext conftest.
$ac_ext
31107 ac_res
=`eval echo '${'$as_ac_var'}'`
31108 { echo "$as_me:$LINENO: result: $ac_res" >&5
31109 echo "${ECHO_T}$ac_res" >&6; }
31110 if test `eval echo '${'$as_ac_var'}'` = yes; then
31111 cat >>confdefs.h
<<_ACEOF
31112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31120 # Machine architecture dependent features
31122 # Check whether --enable-atomic was given.
31123 if test "${enable_atomic+set}" = set; then
31124 enableval
=$enable_atomic; enable_atomic
="$enableval"
31126 enable_atomic
="autodetect"
31129 case "$enable_atomic" in
31133 if test "X$GCC" = "Xyes"; then
31134 { echo "$as_me:$LINENO: checking if asm(\"isc\"); works" >&5
31135 echo $ECHO_N "checking if asm(\"isc\"); works... $ECHO_C" >&6; }
31136 cat >conftest.
$ac_ext <<_ACEOF
31139 cat confdefs.h
>>conftest.
$ac_ext
31140 cat >>conftest.
$ac_ext <<_ACEOF
31141 /* end confdefs.h. */
31147 main() { asm("ics"); exit(0); }
31153 rm -f conftest.
$ac_objext
31154 if { (ac_try
="$ac_compile"
31155 case "(($ac_try" in
31156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31157 *) ac_try_echo=$ac_try;;
31159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31160 (eval "$ac_compile") 2>conftest.er1
31162 grep -v '^ *+' conftest.er1 >conftest.err
31164 cat conftest.err >&5
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); } && {
31167 test -z "$ac_c_werror_flag" ||
31168 test ! -s conftest.err
31169 } && test -s conftest.$ac_objext; then
31170 { echo "$as_me:$LINENO: result: yes" >&5
31171 echo "${ECHO_T}yes" >&6; }
31174 echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31178 saved_cflags="$CFLAGS"
31179 CFLAGS="$CFLAGS -Wa,-many"
31180 if test "$cross_compiling" = yes; then
31181 { echo "$as_me:$LINENO: result: cross compile, assume yes" >&5
31182 echo "${ECHO_T}cross compile, assume yes" >&6; }
31183 CFLAGS="$saved_cflags"
31186 cat >conftest.$ac_ext <<_ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h. */
31193 main() { asm("ics"); exit(0); }
31196 rm -f conftest$ac_exeext
31197 if { (ac_try="$ac_link"
31198 case "(($ac_try" in
31199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31200 *) ac_try_echo
=$ac_try;;
31202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203 (eval "$ac_link") 2>&5
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31207 { (case "(($ac_try" in
31208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31209 *) ac_try_echo=$ac_try;;
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_try") 2>&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); }; }; then
31216 { echo "$as_me:$LINENO: result: yes, required -Wa,-many" >&5
31217 echo "${ECHO_T}yes, required -Wa,-many" >&6; }
31220 echo "$as_me: program exited with status $ac_status" >&5
31221 echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31224 ( exit $ac_status )
31225 { echo "$as_me:$LINENO: result: no, use_atomic disabled" >&5
31226 echo "${ECHO_T}no, use_atomic disabled" >&6; }
31227 CFLAGS="$saved_cflags"
31230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31252 ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
31253 if test "$use_atomic" = "yes"; then
31254 { echo "$as_me:$LINENO: checking architecture type for atomic operations" >&5
31255 echo $ECHO_N "checking architecture type for atomic operations... $ECHO_C" >&6; }
31256 have_atomic=yes # set default
31259 # XXX: some old x86 architectures actually do not support
31260 # (some of) these operations. Do we need stricter checks?
31261 if test "$cross_compiling" = yes; then
31264 cat >conftest.$ac_ext <<_ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h. */
31272 exit((sizeof(void *) == 8) ? 0 : 1);
31276 rm -f conftest$ac_exeext
31277 if { (ac_try="$ac_link"
31278 case "(($ac_try" in
31279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31280 *) ac_try_echo
=$ac_try;;
31282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283 (eval "$ac_link") 2>&5
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31287 { (case "(($ac_try" in
31288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_try") 2>&5
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; }; then
31299 echo "$as_me: program exited with status $ac_status" >&5
31300 echo "$as_me: failed program was:" >&5
31301 sed 's/^/| /' conftest.$ac_ext >&5
31303 ( exit $ac_status )
31306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31312 if test "$cross_compiling" = yes; then
31316 cat >conftest.$ac_ext <<_ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h. */
31324 exit((sizeof(void *) == 8) ? 0 : 1);
31328 rm -f conftest$ac_exeext
31329 if { (ac_try="$ac_link"
31330 case "(($ac_try" in
31331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31332 *) ac_try_echo
=$ac_try;;
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_link") 2>&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31339 { (case "(($ac_try" in
31340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31341 *) ac_try_echo=$ac_try;;
31343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31344 (eval "$ac_try") 2>&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; }; then
31351 echo "$as_me: program exited with status $ac_status" >&5
31352 echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31355 ( exit $ac_status )
31358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31369 mips-*|mipsel-*|mips64-*|mips64el-*)
31380 { echo "$as_me:$LINENO: result: $arch" >&5
31381 echo "${ECHO_T}$arch" >&6; }
31384 if test "$have_atomic" = "yes"; then
31385 { echo "$as_me:$LINENO: checking compiler support for inline assembly code" >&5
31386 echo $ECHO_N "checking compiler support for inline assembly code... $ECHO_C" >&6; }
31389 # Check whether the compiler supports the assembly syntax we provide.
31390 if test "X$GCC" = "Xyes"; then
31391 # GCC's ASM extension always works
31393 if test $arch = "x86_64"; then
31394 # We can share the same code for gcc with x86_32
31397 if test $arch = "powerpc"; then
31399 # The MacOS (and maybe others) uses "r0" for register
31400 # zero. Under linux/ibm it is "0" for register 0.
31401 # Probe to see if we have a MacOS style assembler.
31403 { echo "$as_me:$LINENO: checking Checking for MacOS style assembler syntax" >&5
31404 echo $ECHO_N "checking Checking for MacOS style assembler syntax... $ECHO_C" >&6; }
31405 cat >conftest.$ac_ext <<_ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h. */
31416 __asm__ volatile ("li r0, 0x0\n"::);
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31426 *) ac_try_echo
=$ac_try;;
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_compile") 2>conftest.er1
31431 grep -v '^ *+' conftest.er1
>conftest.err
31433 cat conftest.err
>&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } && {
31436 test -z "$ac_c_werror_flag" ||
31437 test ! -s conftest.err
31438 } && test -s conftest.
$ac_objext; then
31440 { echo "$as_me:$LINENO: result: yes" >&5
31441 echo "${ECHO_T}yes" >&6; }
31443 ISC_PLATFORM_USEMACASM
="#define ISC_PLATFORM_USEMACASM 1"
31446 echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.
$ac_ext >&5
31449 { echo "$as_me:$LINENO: result: no" >&5
31450 echo "${ECHO_T}no" >&6; }
31453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31458 # Tru64 compiler has its own syntax for inline
31460 cat >conftest.
$ac_ext <<_ACEOF
31463 cat confdefs.h
>>conftest.
$ac_ext
31464 cat >>conftest.
$ac_ext <<_ACEOF
31465 /* end confdefs.h. */
31472 #error "unexpected compiler"
31479 rm -f conftest.
$ac_objext
31480 if { (ac_try
="$ac_compile"
31481 case "(($ac_try" in
31482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31483 *) ac_try_echo=$ac_try;;
31485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486 (eval "$ac_compile") 2>conftest.er1
31488 grep -v '^ *+' conftest.er1 >conftest.err
31490 cat conftest.err >&5
31491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); } && {
31493 test -z "$ac_c_werror_flag" ||
31494 test ! -s conftest.err
31495 } && test -s conftest.$ac_objext; then
31498 echo "$as_me: failed program was:" >&5
31499 sed 's/^/| /' conftest.$ac_ext >&5
31504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31511 case "$compiler" in
31513 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
31516 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
31523 # See if the generic __asm function works. If not,
31524 # we need to disable the atomic operations.
31525 cat >conftest.$ac_ext <<_ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h. */
31542 rm -f conftest.$ac_objext conftest$ac_exeext
31543 if { (ac_try="$ac_link"
31544 case "(($ac_try" in
31545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31546 *) ac_try_echo
=$ac_try;;
31548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31549 (eval "$ac_link") 2>conftest.er1
31551 grep -v '^ *+' conftest.er1
>conftest.err
31553 cat conftest.err
>&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); } && {
31556 test -z "$ac_c_werror_flag" ||
31557 test ! -s conftest.err
31558 } && test -s conftest
$ac_exeext &&
31559 $as_test_x conftest
$ac_exeext; then
31560 compiler
="standard"
31561 ISC_PLATFORM_USESTDASM
="#define ISC_PLATFORM_USESTDASM 1"
31563 echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.
$ac_ext >&5
31566 compiler
="not supported (atomic operations disabled)"
31571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31572 conftest
$ac_exeext conftest.
$ac_ext;
31576 { echo "$as_me:$LINENO: result: $compiler" >&5
31577 echo "${ECHO_T}$compiler" >&6; }
31580 if test "$have_atomic" = "yes"; then
31581 ISC_PLATFORM_HAVEXADD
="#define ISC_PLATFORM_HAVEXADD 1"
31582 ISC_PLATFORM_HAVECMPXCHG
="#define ISC_PLATFORM_HAVECMPXCHG 1"
31583 ISC_PLATFORM_HAVEATOMICSTORE
="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
31585 ISC_PLATFORM_HAVEXADD
="#undef ISC_PLATFORM_HAVEXADD"
31586 ISC_PLATFORM_HAVECMPXCHG
="#undef ISC_PLATFORM_HAVECMPXCHG"
31587 ISC_PLATFORM_HAVEATOMICSTORE
="#undef ISC_PLATFORM_HAVEATOMICSTORE"
31590 if test "$have_xaddq" = "yes"; then
31591 ISC_PLATFORM_HAVEXADDQ
="#define ISC_PLATFORM_HAVEXADDQ 1"
31593 ISC_PLATFORM_HAVEXADDQ
="#undef ISC_PLATFORM_HAVEXADDQ"
31610 # Activate "rrset-order fixed" or not?
31612 # Check whether --enable-fixed-rrset was given.
31613 if test "${enable_fixed_rrset+set}" = set; then
31614 enableval
=$enable_fixed_rrset; enable_fixed
="$enableval"
31619 case "$enable_fixed" in
31622 cat >>confdefs.h
<<\_ACEOF
31623 #define DNS_RDATASET_FIXED 1
31634 # Activate "filter-aaaa-on-v4" or not?
31636 # Check whether --enable-filter-aaaa was given.
31637 if test "${enable_filter_aaaa+set}" = set; then
31638 enableval
=$enable_filter_aaaa; enable_filter
="$enableval"
31643 case "$enable_filter" in
31646 cat >>confdefs.h
<<\_ACEOF
31647 #define ALLOW_FILTER_AAAA_ON_V4 1
31658 # The following sets up how non-blocking i/o is established.
31659 # Sunos, cygwin and solaris 2.x (x<5) require special handling.
31662 *-sunos*) cat >>confdefs.h
<<\_ACEOF
31663 #define PORT_NONBLOCK O_NDELAY
31666 *-cygwin*) cat >>confdefs.h
<<\_ACEOF
31667 #define PORT_NONBLOCK O_NDELAY
31670 *-solaris2.
[01234])
31671 cat >>confdefs.h
<<\_ACEOF
31672 #define PORT_NONBLOCK O_NONBLOCK
31676 cat >>confdefs.h
<<\_ACEOF
31677 #define USE_FIONBIO_IOCTL 1
31682 cat >>confdefs.h
<<\_ACEOF
31683 #define PORT_NONBLOCK O_NONBLOCK
31689 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
31690 # This prevents the source address being set.
31693 *-solaris2.
[012345]|
*-solaris2.5
.1)
31695 cat >>confdefs.h
<<\_ACEOF
31696 #define BROKEN_TCP_BIND_BEFORE_CONNECT 1
31702 # The following sections deal with tools used for formatting
31703 # the documentation. They are all optional, unless you are
31704 # a developer editing the documentation source.
31711 for ac_prog
in latex
31713 # Extract the first word of "$ac_prog", so it can be a program name with args.
31714 set dummy
$ac_prog; ac_word
=$2
31715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31717 if test "${ac_cv_path_LATEX+set}" = set; then
31718 echo $ECHO_N "(cached) $ECHO_C" >&6
31722 ac_cv_path_LATEX
="$LATEX" # Let the user override the test with a path.
31725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31726 for as_dir
in $PATH
31729 test -z "$as_dir" && as_dir
=.
31730 for ac_exec_ext
in '' $ac_executable_extensions; do
31731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31732 ac_cv_path_LATEX
="$as_dir/$ac_word$ac_exec_ext"
31733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31743 LATEX
=$ac_cv_path_LATEX
31744 if test -n "$LATEX"; then
31745 { echo "$as_me:$LINENO: result: $LATEX" >&5
31746 echo "${ECHO_T}$LATEX" >&6; }
31748 { echo "$as_me:$LINENO: result: no" >&5
31749 echo "${ECHO_T}no" >&6; }
31753 test -n "$LATEX" && break
31755 test -n "$LATEX" || LATEX
="latex"
31759 for ac_prog
in pdflatex
31761 # Extract the first word of "$ac_prog", so it can be a program name with args.
31762 set dummy
$ac_prog; ac_word
=$2
31763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31765 if test "${ac_cv_path_PDFLATEX+set}" = set; then
31766 echo $ECHO_N "(cached) $ECHO_C" >&6
31770 ac_cv_path_PDFLATEX
="$PDFLATEX" # Let the user override the test with a path.
31773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31774 for as_dir
in $PATH
31777 test -z "$as_dir" && as_dir
=.
31778 for ac_exec_ext
in '' $ac_executable_extensions; do
31779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31780 ac_cv_path_PDFLATEX
="$as_dir/$ac_word$ac_exec_ext"
31781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31791 PDFLATEX
=$ac_cv_path_PDFLATEX
31792 if test -n "$PDFLATEX"; then
31793 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
31794 echo "${ECHO_T}$PDFLATEX" >&6; }
31796 { echo "$as_me:$LINENO: result: no" >&5
31797 echo "${ECHO_T}no" >&6; }
31801 test -n "$PDFLATEX" && break
31803 test -n "$PDFLATEX" || PDFLATEX
="pdflatex"
31813 # Extract the first word of "$ac_prog", so it can be a program name with args.
31814 set dummy
$ac_prog; ac_word
=$2
31815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31817 if test "${ac_cv_path_W3M+set}" = set; then
31818 echo $ECHO_N "(cached) $ECHO_C" >&6
31822 ac_cv_path_W3M
="$W3M" # Let the user override the test with a path.
31825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31826 for as_dir
in $PATH
31829 test -z "$as_dir" && as_dir
=.
31830 for ac_exec_ext
in '' $ac_executable_extensions; do
31831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31832 ac_cv_path_W3M
="$as_dir/$ac_word$ac_exec_ext"
31833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31843 W3M
=$ac_cv_path_W3M
31844 if test -n "$W3M"; then
31845 { echo "$as_me:$LINENO: result: $W3M" >&5
31846 echo "${ECHO_T}$W3M" >&6; }
31848 { echo "$as_me:$LINENO: result: no" >&5
31849 echo "${ECHO_T}no" >&6; }
31853 test -n "$W3M" && break
31855 test -n "$W3M" || W3M
="w3m"
31860 # Look for xsltproc (libxslt)
31863 # Extract the first word of "xsltproc", so it can be a program name with args.
31864 set dummy xsltproc
; ac_word
=$2
31865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31867 if test "${ac_cv_path_XSLTPROC+set}" = set; then
31868 echo $ECHO_N "(cached) $ECHO_C" >&6
31872 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
31875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31876 for as_dir
in $PATH
31879 test -z "$as_dir" && as_dir
=.
31880 for ac_exec_ext
in '' $ac_executable_extensions; do
31881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31882 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
31883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31890 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC
="xsltproc"
31894 XSLTPROC
=$ac_cv_path_XSLTPROC
31895 if test -n "$XSLTPROC"; then
31896 { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
31897 echo "${ECHO_T}$XSLTPROC" >&6; }
31899 { echo "$as_me:$LINENO: result: no" >&5
31900 echo "${ECHO_T}no" >&6; }
31907 # Look for xmllint (libxml2)
31910 # Extract the first word of "xmllint", so it can be a program name with args.
31911 set dummy xmllint
; ac_word
=$2
31912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31914 if test "${ac_cv_path_XMLLINT+set}" = set; then
31915 echo $ECHO_N "(cached) $ECHO_C" >&6
31919 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
31922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31923 for as_dir
in $PATH
31926 test -z "$as_dir" && as_dir
=.
31927 for ac_exec_ext
in '' $ac_executable_extensions; do
31928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31929 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
31930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31937 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT
="xmllint"
31941 XMLLINT
=$ac_cv_path_XMLLINT
31942 if test -n "$XMLLINT"; then
31943 { echo "$as_me:$LINENO: result: $XMLLINT" >&5
31944 echo "${ECHO_T}$XMLLINT" >&6; }
31946 { echo "$as_me:$LINENO: result: no" >&5
31947 echo "${ECHO_T}no" >&6; }
31957 # Extract the first word of "doxygen", so it can be a program name with args.
31958 set dummy doxygen
; ac_word
=$2
31959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31961 if test "${ac_cv_path_DOXYGEN+set}" = set; then
31962 echo $ECHO_N "(cached) $ECHO_C" >&6
31966 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
31969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31970 for as_dir
in $PATH
31973 test -z "$as_dir" && as_dir
=.
31974 for ac_exec_ext
in '' $ac_executable_extensions; do
31975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31976 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
31977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31984 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN
="doxygen"
31988 DOXYGEN
=$ac_cv_path_DOXYGEN
31989 if test -n "$DOXYGEN"; then
31990 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
31991 echo "${ECHO_T}$DOXYGEN" >&6; }
31993 { echo "$as_me:$LINENO: result: no" >&5
31994 echo "${ECHO_T}no" >&6; }
32001 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
32002 # in a number of directories:
32004 # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
32006 # If the file FILENAME is found in one of the DIRECTORIES, the shell
32007 # variable VARIABLE is defined to its absolute pathname. Otherwise,
32008 # it is set to FILENAME, with no directory prefix (that's not terribly
32009 # useful, but looks less confusing in substitutions than leaving it
32010 # empty). The variable VARIABLE will be substituted into output files.
32016 # Look for Docbook-XSL stylesheets. Location probably varies by system.
32017 # If it's not explicitly specified, guess where it might be found, based on
32018 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
32019 # of at the moment).
32021 { echo "$as_me:$LINENO: checking for Docbook-XSL path" >&5
32022 echo $ECHO_N "checking for Docbook-XSL path... $ECHO_C" >&6; }
32024 # Check whether --with-docbook-xsl was given.
32025 if test "${with_docbook_xsl+set}" = set; then
32026 withval
=$with_docbook_xsl; docbook_path
="$withval"
32028 docbook_path
="auto"
32031 case "$docbook_path" in
32033 { echo "$as_me:$LINENO: result: auto" >&5
32034 echo "${ECHO_T}auto" >&6; }
32035 docbook_xsl_trees
="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook"
32038 docbook_xsl_trees
="$withval"
32039 { echo "$as_me:$LINENO: result: $docbook_xsl_trees" >&5
32040 echo "${ECHO_T}$docbook_xsl_trees" >&6; }
32045 # Look for stylesheets we need.
32049 XSLT_DOCBOOK_STYLE_HTML
=""
32050 { echo "$as_me:$LINENO: checking for html/docbook.xsl" >&5
32051 echo $ECHO_N "checking for html/docbook.xsl... $ECHO_C" >&6; }
32052 for d
in $docbook_xsl_trees
32054 f
=$d/html
/docbook.xsl
32057 XSLT_DOCBOOK_STYLE_HTML
=$f
32058 { echo "$as_me:$LINENO: result: $f" >&5
32059 echo "${ECHO_T}$f" >&6; }
32063 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
32065 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32066 echo "${ECHO_T}\"not found\"" >&6; };
32067 XSLT_DOCBOOK_STYLE_HTML
=html
/docbook.xsl
32072 XSLT_DOCBOOK_STYLE_XHTML
=""
32073 { echo "$as_me:$LINENO: checking for xhtml/docbook.xsl" >&5
32074 echo $ECHO_N "checking for xhtml/docbook.xsl... $ECHO_C" >&6; }
32075 for d
in $docbook_xsl_trees
32077 f
=$d/xhtml
/docbook.xsl
32080 XSLT_DOCBOOK_STYLE_XHTML
=$f
32081 { echo "$as_me:$LINENO: result: $f" >&5
32082 echo "${ECHO_T}$f" >&6; }
32086 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
32088 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32089 echo "${ECHO_T}\"not found\"" >&6; };
32090 XSLT_DOCBOOK_STYLE_XHTML
=xhtml
/docbook.xsl
32095 XSLT_DOCBOOK_STYLE_MAN
=""
32096 { echo "$as_me:$LINENO: checking for manpages/docbook.xsl" >&5
32097 echo $ECHO_N "checking for manpages/docbook.xsl... $ECHO_C" >&6; }
32098 for d
in $docbook_xsl_trees
32100 f
=$d/manpages
/docbook.xsl
32103 XSLT_DOCBOOK_STYLE_MAN
=$f
32104 { echo "$as_me:$LINENO: result: $f" >&5
32105 echo "${ECHO_T}$f" >&6; }
32109 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
32111 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32112 echo "${ECHO_T}\"not found\"" >&6; };
32113 XSLT_DOCBOOK_STYLE_MAN
=manpages
/docbook.xsl
32118 XSLT_DOCBOOK_CHUNK_HTML
=""
32119 { echo "$as_me:$LINENO: checking for html/chunk.xsl" >&5
32120 echo $ECHO_N "checking for html/chunk.xsl... $ECHO_C" >&6; }
32121 for d
in $docbook_xsl_trees
32123 f
=$d/html
/chunk.xsl
32126 XSLT_DOCBOOK_CHUNK_HTML
=$f
32127 { echo "$as_me:$LINENO: result: $f" >&5
32128 echo "${ECHO_T}$f" >&6; }
32132 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
32134 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32135 echo "${ECHO_T}\"not found\"" >&6; };
32136 XSLT_DOCBOOK_CHUNK_HTML
=html
/chunk.xsl
32141 XSLT_DOCBOOK_CHUNK_XHTML
=""
32142 { echo "$as_me:$LINENO: checking for xhtml/chunk.xsl" >&5
32143 echo $ECHO_N "checking for xhtml/chunk.xsl... $ECHO_C" >&6; }
32144 for d
in $docbook_xsl_trees
32146 f
=$d/xhtml
/chunk.xsl
32149 XSLT_DOCBOOK_CHUNK_XHTML
=$f
32150 { echo "$as_me:$LINENO: result: $f" >&5
32151 echo "${ECHO_T}$f" >&6; }
32155 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
32157 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32158 echo "${ECHO_T}\"not found\"" >&6; };
32159 XSLT_DOCBOOK_CHUNK_XHTML
=xhtml
/chunk.xsl
32164 XSLT_DOCBOOK_CHUNKTOC_HTML
=""
32165 { echo "$as_me:$LINENO: checking for html/chunktoc.xsl" >&5
32166 echo $ECHO_N "checking for html/chunktoc.xsl... $ECHO_C" >&6; }
32167 for d
in $docbook_xsl_trees
32169 f
=$d/html
/chunktoc.xsl
32172 XSLT_DOCBOOK_CHUNKTOC_HTML
=$f
32173 { echo "$as_me:$LINENO: result: $f" >&5
32174 echo "${ECHO_T}$f" >&6; }
32178 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
32180 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32181 echo "${ECHO_T}\"not found\"" >&6; };
32182 XSLT_DOCBOOK_CHUNKTOC_HTML
=html
/chunktoc.xsl
32187 XSLT_DOCBOOK_CHUNKTOC_XHTML
=""
32188 { echo "$as_me:$LINENO: checking for xhtml/chunktoc.xsl" >&5
32189 echo $ECHO_N "checking for xhtml/chunktoc.xsl... $ECHO_C" >&6; }
32190 for d
in $docbook_xsl_trees
32192 f
=$d/xhtml
/chunktoc.xsl
32195 XSLT_DOCBOOK_CHUNKTOC_XHTML
=$f
32196 { echo "$as_me:$LINENO: result: $f" >&5
32197 echo "${ECHO_T}$f" >&6; }
32201 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
32203 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32204 echo "${ECHO_T}\"not found\"" >&6; };
32205 XSLT_DOCBOOK_CHUNKTOC_XHTML
=xhtml
/chunktoc.xsl
32210 XSLT_DOCBOOK_MAKETOC_HTML
=""
32211 { echo "$as_me:$LINENO: checking for html/maketoc.xsl" >&5
32212 echo $ECHO_N "checking for html/maketoc.xsl... $ECHO_C" >&6; }
32213 for d
in $docbook_xsl_trees
32215 f
=$d/html
/maketoc.xsl
32218 XSLT_DOCBOOK_MAKETOC_HTML
=$f
32219 { echo "$as_me:$LINENO: result: $f" >&5
32220 echo "${ECHO_T}$f" >&6; }
32224 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
32226 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32227 echo "${ECHO_T}\"not found\"" >&6; };
32228 XSLT_DOCBOOK_MAKETOC_HTML
=html
/maketoc.xsl
32233 XSLT_DOCBOOK_MAKETOC_XHTML
=""
32234 { echo "$as_me:$LINENO: checking for xhtml/maketoc.xsl" >&5
32235 echo $ECHO_N "checking for xhtml/maketoc.xsl... $ECHO_C" >&6; }
32236 for d
in $docbook_xsl_trees
32238 f
=$d/xhtml
/maketoc.xsl
32241 XSLT_DOCBOOK_MAKETOC_XHTML
=$f
32242 { echo "$as_me:$LINENO: result: $f" >&5
32243 echo "${ECHO_T}$f" >&6; }
32247 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
32249 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32250 echo "${ECHO_T}\"not found\"" >&6; };
32251 XSLT_DOCBOOK_MAKETOC_XHTML
=xhtml
/maketoc.xsl
32257 # Same dance for db2latex
32259 # No idea where this lives except on FreeBSD.
32262 db2latex_xsl_trees
="/usr/local/share"
32265 # Look for stylesheets we need.
32269 XSLT_DB2LATEX_STYLE
=""
32270 { echo "$as_me:$LINENO: checking for db2latex/xsl/docbook.xsl" >&5
32271 echo $ECHO_N "checking for db2latex/xsl/docbook.xsl... $ECHO_C" >&6; }
32272 for d
in $db2latex_xsl_trees
32274 f
=$d/db2latex
/xsl
/docbook.xsl
32277 XSLT_DB2LATEX_STYLE
=$f
32278 { echo "$as_me:$LINENO: result: $f" >&5
32279 echo "${ECHO_T}$f" >&6; }
32283 if test "X$XSLT_DB2LATEX_STYLE" = "X"
32285 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32286 echo "${ECHO_T}\"not found\"" >&6; };
32287 XSLT_DB2LATEX_STYLE
=db2latex
/xsl
/docbook.xsl
32293 # Look for "admonition" image directory. Can't use NOM_PATH_FILE()
32294 # because it's a directory, so just do the same things, inline.
32297 { echo "$as_me:$LINENO: checking for db2latex/xsl/figures" >&5
32298 echo $ECHO_N "checking for db2latex/xsl/figures... $ECHO_C" >&6; }
32299 for d
in $db2latex_xsl_trees
32301 dd=$d/db2latex
/xsl
/figures
32304 XSLT_DB2LATEX_ADMONITIONS
=$dd
32305 { echo "$as_me:$LINENO: result: $dd" >&5
32306 echo "${ECHO_T}$dd" >&6; }
32310 if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X"
32312 { echo "$as_me:$LINENO: result: not found" >&5
32313 echo "${ECHO_T}not found" >&6; }
32314 XSLT_DB2LATEX_ADMONITIONS
=db2latex
/xsl
/figures
32322 # Check whether --with-idn was given.
32323 if test "${with_idn+set}" = set; then
32324 withval
=$with_idn; use_idn
="$withval"
32331 if test X
$prefix = XNONE
; then
32332 idn_path
=/usr
/local
32340 idn_path
="$use_idn"
32347 # Check whether --with-libiconv was given.
32348 if test "${with_libiconv+set}" = set; then
32349 withval
=$with_libiconv; use_libiconv
="$withval"
32354 case "$use_libiconv" in
32356 if test X
$prefix = XNONE
; then
32357 iconvlib
="-L/usr/local/lib -R/usr/local/lib -liconv"
32359 iconvlib
="-L$prefix/lib -R$prefix/lib -liconv"
32366 iconvlib
="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
32371 # Check whether --with-iconv was given.
32372 if test "${with_iconv+set}" = set; then
32373 withval
=$with_iconv; iconvlib
="$withval"
32376 case "$iconvlib" in
32386 # Check whether --with-idnlib was given.
32387 if test "${with_idnlib+set}" = set; then
32388 withval
=$with_idnlib; idnlib
="$withval"
32393 if test "$idnlib" = yes; then
32394 { { echo "$as_me:$LINENO: error: You must specify ARG for --with-idnlib." >&5
32395 echo "$as_me: error: You must specify ARG for --with-idnlib." >&2;}
32396 { (exit 1); exit 1; }; }
32400 if test "$use_idn" != no
; then
32402 cat >>confdefs.h
<<\_ACEOF
32406 STD_CINCLUDES
="$STD_CINCLUDES -I$idn_path/include"
32407 if test "$idnlib" != no
; then
32408 IDNLIBS
="$idnlib $iconvlib"
32410 IDNLIBS
="-L$idn_path/lib -lidnkit $iconvlib"
32416 for ac_header
in locale.h
32418 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32419 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32422 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32423 echo $ECHO_N "(cached) $ECHO_C" >&6
32425 ac_res
=`eval echo '${'$as_ac_Header'}'`
32426 { echo "$as_me:$LINENO: result: $ac_res" >&5
32427 echo "${ECHO_T}$ac_res" >&6; }
32429 # Is the header compilable?
32430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32432 cat >conftest.
$ac_ext <<_ACEOF
32435 cat confdefs.h
>>conftest.
$ac_ext
32436 cat >>conftest.
$ac_ext <<_ACEOF
32437 /* end confdefs.h. */
32438 $ac_includes_default
32439 #include <$ac_header>
32441 rm -f conftest.
$ac_objext
32442 if { (ac_try
="$ac_compile"
32443 case "(($ac_try" in
32444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32445 *) ac_try_echo=$ac_try;;
32447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448 (eval "$ac_compile") 2>conftest.er1
32450 grep -v '^ *+' conftest.er1 >conftest.err
32452 cat conftest.err >&5
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); } && {
32455 test -z "$ac_c_werror_flag" ||
32456 test ! -s conftest.err
32457 } && test -s conftest.$ac_objext; then
32458 ac_header_compiler=yes
32460 echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32463 ac_header_compiler=no
32466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32468 echo "${ECHO_T}$ac_header_compiler" >&6; }
32470 # Is the header present?
32471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32473 cat >conftest.$ac_ext <<_ACEOF
32476 cat confdefs.h >>conftest.$ac_ext
32477 cat >>conftest.$ac_ext <<_ACEOF
32478 /* end confdefs.h. */
32479 #include <$ac_header>
32481 if { (ac_try="$ac_cpp conftest.$ac_ext"
32482 case "(($ac_try" in
32483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32484 *) ac_try_echo
=$ac_try;;
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32489 grep -v '^ *+' conftest.er1
>conftest.err
32491 cat conftest.err
>&5
32492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493 (exit $ac_status); } >/dev
/null
&& {
32494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32495 test ! -s conftest.err
32497 ac_header_preproc
=yes
32499 echo "$as_me: failed program was:" >&5
32500 sed 's/^/| /' conftest.
$ac_ext >&5
32502 ac_header_preproc
=no
32505 rm -f conftest.err conftest.
$ac_ext
32506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32507 echo "${ECHO_T}$ac_header_preproc" >&6; }
32509 # So? What about this header?
32510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32516 ac_header_preproc
=yes
32519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32536 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32537 echo $ECHO_N "(cached) $ECHO_C" >&6
32539 eval "$as_ac_Header=\$ac_header_preproc"
32541 ac_res
=`eval echo '${'$as_ac_Header'}'`
32542 { echo "$as_me:$LINENO: result: $ac_res" >&5
32543 echo "${ECHO_T}$ac_res" >&6; }
32546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32547 cat >>confdefs.h
<<_ACEOF
32548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32556 for ac_func
in setlocale
32558 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32561 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32564 cat >conftest.
$ac_ext <<_ACEOF
32567 cat confdefs.h
>>conftest.
$ac_ext
32568 cat >>conftest.
$ac_ext <<_ACEOF
32569 /* end confdefs.h. */
32570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32572 #define $ac_func innocuous_$ac_func
32574 /* System header to define __stub macros and hopefully few prototypes,
32575 which can conflict with char $ac_func (); below.
32576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32577 <limits.h> exists even on freestanding compilers. */
32580 # include <limits.h>
32582 # include <assert.h>
32587 /* Override any GCC internal prototype to avoid an error.
32588 Use char because int might match the return type of a GCC
32589 builtin and then its argument prototype would still apply. */
32594 /* The GNU C library defines this for functions which it implements
32595 to always fail with ENOSYS. Some functions are actually named
32596 something starting with __ and the normal name is an alias. */
32597 #if defined __stub_$ac_func || defined __stub___$ac_func
32604 return $ac_func ();
32609 rm -f conftest.
$ac_objext conftest
$ac_exeext
32610 if { (ac_try
="$ac_link"
32611 case "(($ac_try" in
32612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32613 *) ac_try_echo=$ac_try;;
32615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616 (eval "$ac_link") 2>conftest.er1
32618 grep -v '^ *+' conftest.er1 >conftest.err
32620 cat conftest.err >&5
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); } && {
32623 test -z "$ac_c_werror_flag" ||
32624 test ! -s conftest.err
32625 } && test -s conftest$ac_exeext &&
32626 $as_test_x conftest$ac_exeext; then
32627 eval "$as_ac_var=yes"
32629 echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32632 eval "$as_ac_var=no"
32635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32636 conftest$ac_exeext conftest.$ac_ext
32638 ac_res=`eval echo '${'$as_ac_var'}'`
32639 { echo "$as_me:$LINENO: result: $ac_res" >&5
32640 echo "${ECHO_T}$ac_res" >&6; }
32641 if test `eval echo '${'$as_ac_var'}'` = yes; then
32642 cat >>confdefs.h <<_ACEOF
32643 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32654 BIND9_TOP_BUILDDIR=`pwd`
32662 if test "X$srcdir" != "X"; then
32663 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
32664 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
32665 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
32666 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
32667 BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
32668 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
32670 BIND9_ISC_BUILDINCLUDE=""
32671 BIND9_ISCCC_BUILDINCLUDE=""
32672 BIND9_ISCCFG_BUILDINCLUDE=""
32673 BIND9_DNS_BUILDINCLUDE=""
32674 BIND9_LWRES_BUILDINCLUDE=""
32675 BIND9_BIND9_BUILDINCLUDE=""
32679 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
32682 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
32685 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}"
32688 if test -z "$ac_configure_args"; then
32689 BIND9_CONFIGARGS="defaults"
32691 for a in $ac_configure_args
32693 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
32696 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS |
sed 's/^ //'`"
32697 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
32701 LIBISC_API=$srcdir/lib/isc/api
32704 LIBISCCC_API=$srcdir/lib/isccc/api
32707 LIBISCCFG_API=$srcdir/lib/isccfg/api
32710 LIBDNS_API=$srcdir/lib/dns/api
32713 LIBBIND9_API=$srcdir/lib/bind9/api
32716 LIBLWRES_API=$srcdir/lib/lwres/api
32719 LIBIRS_API=$srcdir/lib/irs/api
32722 # Configure any DLZ drivers.
32724 # If config.dlz.in selects one or more DLZ drivers, it will set
32725 # USE_DLZ to a non-empty value, which will be our clue to
32726 # enable the DLZ core functions.
32728 # This section has to come after the libtool stuff because it needs to
32729 # know how to name the driver object files.
32733 DLZ_DRIVER_INCLUDES=""
32738 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
32740 # Permission to use, copy, modify, and distribute this software for any
32741 # purpose with or without fee is hereby granted, provided that the above
32742 # copyright notice and this permission notice appear in all copies.
32744 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
32745 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
32746 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
32747 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
32748 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
32749 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
32750 # PERFORMANCE OF THIS SOFTWARE.
32753 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
32755 dlzdir='${DLZ_DRIVER_DIR}'
32758 # Private autoconf macro to simplify configuring drivers:
32760 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
32763 # DEFINE is FOO (to define -DDLZ_FOO)
32764 # DRIVER is dlz_foo_driver (sources without the .c)
32765 # INCLUDES is any necessary include definitions
32766 # LIBS is any necessary library definitions
32771 # Check for the various DLZ drivers
32775 # Was --with-dlz-postgres specified?
32778 { echo "$as_me:$LINENO: checking for Postgres DLZ driver" >&5
32779 echo $ECHO_N "checking for Postgres DLZ driver... $ECHO_C" >&6; }
32781 # Check whether --with-dlz_postgres was given.
32782 if test "${with_dlz_postgres+set}" = set; then
32783 withval=$with_dlz_postgres; use_dlz_postgres="$withval"
32785 use_dlz_postgres="no"
32789 if test "$use_dlz_postgres" = "yes"
32791 # User did not specify a path - guess it
32792 # Ask Postgres to tell us where it is
32794 for ac_prog in pg_config
32796 # Extract the first word of "$ac_prog", so it can be a program name with args.
32797 set dummy $ac_prog; ac_word=$2
32798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32800 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
32801 echo $ECHO_N "(cached) $ECHO_C" >&6
32805 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
32808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32809 for as_dir in $PATH
32812 test -z "$as_dir" && as_dir=.
32813 for ac_exec_ext in '' $ac_executable_extensions; do
32814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32815 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32826 PG_CONFIG=$ac_cv_path_PG_CONFIG
32827 if test -n "$PG_CONFIG"; then
32828 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
32829 echo "${ECHO_T}$PG_CONFIG" >&6; }
32831 { echo "$as_me:$LINENO: result: no" >&5
32832 echo "${ECHO_T}no" >&6; }
32836 test -n "$PG_CONFIG" && break
32838 test -n "$PG_CONFIG" || PG_CONFIG="not found"
32841 if test "$PG_CONFIG" != "not found"
32843 use_dlz_postgres=`$PG_CONFIG --includedir`
32844 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
32848 if test "$use_dlz_postgres" = "yes"
32850 # User did not specify path and Postgres didn't say - guess it
32852 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
32855 if test -f $d/include/libpq-fe.h
32857 use_dlz_postgres=$d/include
32858 use_dlz_postgres_lib=$d/lib
32864 if test "$use_dlz_postgres" = "yes"
32866 # Still no joy, give up
32868 { echo "$as_me:$LINENO: result: not found" >&5
32869 echo "${ECHO_T}not found" >&6; }
32870 { { echo "$as_me:$LINENO: error: No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" >&5
32871 echo "$as_me: error: No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" >&2;}
32872 { (exit 1); exit 1; }; }
32875 case "$use_dlz_postgres" in
32877 { echo "$as_me:$LINENO: result: no" >&5
32878 echo "${ECHO_T}no" >&6; }
32882 USE_DLZ="$USE_DLZ -DDLZ_POSTGRES"
32883 for i in dlz_postgres_driver
32885 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
32886 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
32888 if test -n "-I$use_dlz_postgres"
32890 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
32892 if test -n "-L$use_dlz_postgres_lib -lpq"
32894 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
32898 { echo "$as_me:$LINENO: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
32899 echo "${ECHO_T}using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
32905 # Was --with-dlz-mysql specified?
32908 { echo "$as_me:$LINENO: checking for MySQL DLZ driver" >&5
32909 echo $ECHO_N "checking for MySQL DLZ driver... $ECHO_C" >&6; }
32911 # Check whether --with-dlz_mysql was given.
32912 if test "${with_dlz_mysql+set}" = set; then
32913 withval=$with_dlz_mysql; use_dlz_mysql="$withval"
32921 if test "$use_dlz_mysql" = "yes"
32923 # User did not specify a path - guess it
32924 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
32925 for d in $mysqldirs
32927 if test -f $d/include/mysql/mysql.h
32930 mysql_include=$d/include/mysql
32931 if test -d $d/lib/mysql
32933 mysql_lib=$d/lib/mysql
32938 elif test -f $d/include/mysql.h
32941 mysql_include=$d/include
32942 if test -d $d/lib/mysql
32944 mysql_lib=$d/lib/mysql
32951 elif test "$use_dlz_mysql" != "no"
32954 if test -f $d/include/mysql/mysql.h
32956 mysql_include=$d/include/mysql
32957 if test -d $d/lib/mysql
32959 mysql_lib=$d/lib/mysql
32963 elif test -f $d/include/mysql.h
32965 mysql_include=$d/include
32966 if test -d $d/lib/mysql
32968 mysql_lib=$d/lib/mysql
32975 if test "$use_dlz_mysql" = "yes"
32977 { echo "$as_me:$LINENO: result: not found" >&5
32978 echo "${ECHO_T}not found" >&6; }
32979 { { echo "$as_me:$LINENO: error: MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" >&5
32980 echo "$as_me: error: MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" >&2;}
32981 { (exit 1); exit 1; }; }
32984 case "$use_dlz_mysql" in
32986 { echo "$as_me:$LINENO: result: no" >&5
32987 echo "${ECHO_T}no" >&6; }
32991 USE_DLZ="$USE_DLZ -DDLZ_MYSQL"
32992 for i in dlz_mysql_driver
32994 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
32995 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
32997 if test -n "-I${mysql_include}"
32999 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
33001 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
33003 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
33007 { echo "$as_me:$LINENO: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
33008 echo "${ECHO_T}using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
33014 # Was --with-dlz-bdb specified?
33017 { echo "$as_me:$LINENO: checking for Berkeley DB DLZ driver" >&5
33018 echo $ECHO_N "checking for Berkeley DB DLZ driver... $ECHO_C" >&6; }
33020 # Check whether --with-dlz_bdb was given.
33021 if test "${with_dlz_bdb+set}" = set; then
33022 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
33028 case "$use_dlz_bdb" in
33030 { echo "$as_me:$LINENO: result: no" >&5
33031 echo "${ECHO_T}no" >&6; }
33034 if test "$use_dlz_bdb" = "yes"
33036 # User did not specify a path - guess directories
33037 bdbdirs="/usr/local /usr/pkg /usr"
33038 elif test -d "$use_dlz_bdb"
33040 # User specified directory and it exists
33041 bdbdirs="$use_dlz_bdb"
33043 { echo "$as_me:$LINENO: result: not found" >&5
33044 echo "${ECHO_T}not found" >&6; }
33045 { { echo "$as_me:$LINENO: error: path $use_dlz_bdb does not exist" >&5
33046 echo "$as_me: error: path $use_dlz_bdb does not exist" >&2;}
33047 { (exit 1); exit 1; }; }
33051 # Use path we were given or guessed. This is insanely
33052 # complicated because we have to search for a bunch of
33053 # platform-specific variations and have to check
33054 # separately for include and library directories.
33056 # Set both to yes, so we can check them later
33062 # Skip nonexistant directories
33068 # Check other locations for includes.
33069 # Order is important (sigh).
33071 bdb_incdirs="/ /db42/ /db41/ /db4/ /db/"
33072 for d in $bdb_incdirs
33074 if test -f "$dd/include${d}db.h"
33076 dlz_bdb_inc="-I$dd/include${d}"
33081 # Give up on this directory if we couldn't
33082 # find the include subdir
33084 if test "$dlz_bdb_inc" = "yes"
33089 # Look for libname other than libdb.so.
33090 # Order is important (sigh).
33092 bdb_libnames="db42 db-4.2 db41 db-4.1 db"
33093 for d in $bdb_libnames
33095 if test -f "$dd/lib/lib${d}.so"
33097 if test "$dd" != "/usr"
33099 dlz_bdb_libs="-L${dd}/lib "
33103 dlz_bdb_libs="${dlz_bdb_libs}-l${d}"
33108 # If we found both incdir and lib, we're done
33109 if test "$dlz_bdb_libs" != "yes"
33114 # Otherwise, we're starting over
33120 # Done searching, now make sure we got everything.
33122 if test "$dlz_bdb_inc" = "yes"
33124 { echo "$as_me:$LINENO: result: not found" >&5
33125 echo "${ECHO_T}not found" >&6; }
33126 { { echo "$as_me:$LINENO: error: could not find Berkeley DB include directory" >&5
33127 echo "$as_me: error: could not find Berkeley DB include directory" >&2;}
33128 { (exit 1); exit 1; }; }
33131 if test "$dlz_bdb_libs" = "yes"
33133 { echo "$as_me:$LINENO: result: not found" >&5
33134 echo "${ECHO_T}not found" >&6; }
33135 { { echo "$as_me:$LINENO: error: could not find Berkeley DB library" >&5
33136 echo "$as_me: error: could not find Berkeley DB library" >&2;}
33137 { (exit 1); exit 1; }; }
33141 USE_DLZ="$USE_DLZ -DDLZ_BDB"
33142 for i in dlz_bdb_driver dlz_bdbhpt_driver
33144 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33145 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33147 if test -n "$dlz_bdb_inc"
33149 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
33151 if test -n "$dlz_bdb_libs"
33153 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
33157 { echo "$as_me:$LINENO: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
33158 echo "${ECHO_T}using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
33160 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
33167 # Was --with-dlz-filesystem specified?
33170 { echo "$as_me:$LINENO: checking for file system DLZ driver" >&5
33171 echo $ECHO_N "checking for file system DLZ driver... $ECHO_C" >&6; }
33173 # Check whether --with-dlz_filesystem was given.
33174 if test "${with_dlz_filesystem+set}" = set; then
33175 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
33177 use_dlz_filesystem="no"
33181 case "$use_dlz_filesystem" in
33183 { echo "$as_me:$LINENO: result: no" >&5
33184 echo "${ECHO_T}no" >&6; }
33188 USE_DLZ="$USE_DLZ -DDLZ_FILESYSTEM"
33189 for i in dlz_filesystem_driver
33191 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33192 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33196 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
33200 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
33204 { echo "$as_me:$LINENO: result: yes" >&5
33205 echo "${ECHO_T}yes" >&6; }
33211 # Was --with-dlz-ldap specified?
33214 { echo "$as_me:$LINENO: checking for LDAP DLZ driver" >&5
33215 echo $ECHO_N "checking for LDAP DLZ driver... $ECHO_C" >&6; }
33217 # Check whether --with-dlz_ldap was given.
33218 if test "${with_dlz_ldap+set}" = set; then
33219 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
33225 if test "$use_dlz_ldap" = "yes"
33227 # User did not specify a path - guess it
33228 ldapdirs="/usr /usr/local /usr/pkg"
33231 if test -f $d/include/ldap.h
33239 if test "$use_dlz_ldap" = "yes"
33241 { echo "$as_me:$LINENO: result: not found" >&5
33242 echo "${ECHO_T}not found" >&6; }
33243 { { echo "$as_me:$LINENO: error: LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" >&5
33244 echo "$as_me: error: LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" >&2;}
33245 { (exit 1); exit 1; }; }
33248 case "$use_dlz_ldap" in
33250 { echo "$as_me:$LINENO: result: no" >&5
33251 echo "${ECHO_T}no" >&6; }
33255 USE_DLZ="$USE_DLZ -DDLZ_LDAP"
33256 for i in dlz_ldap_driver
33258 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33259 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33261 if test -n "-I$use_dlz_ldap/include"
33263 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
33265 if test -n "-L$use_dlz_ldap/lib -lldap -llber"
33267 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
33271 { echo "$as_me:$LINENO: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
33272 echo "${ECHO_T}using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
33278 # Was --with-dlz-odbc specified?
33281 { echo "$as_me:$LINENO: checking for ODBC DLZ driver" >&5
33282 echo $ECHO_N "checking for ODBC DLZ driver... $ECHO_C" >&6; }
33284 # Check whether --with-dlz_odbc was given.
33285 if test "${with_dlz_odbc+set}" = set; then
33286 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
33292 if test "$use_dlz_odbc" = "yes"
33294 # User did not specify a path - guess it
33295 odbcdirs="/usr /usr/local /usr/pkg"
33298 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
33306 case "$use_dlz_odbc" in
33308 { echo "$as_me:$LINENO: result: no" >&5
33309 echo "${ECHO_T}no" >&6; }
33312 { echo "$as_me:$LINENO: result: not found" >&5
33313 echo "${ECHO_T}not found" >&6; }
33314 { { echo "$as_me:$LINENO: error: ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" >&5
33315 echo "$as_me: error: ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" >&2;}
33316 { (exit 1); exit 1; }; }
33320 USE_DLZ="$USE_DLZ -DDLZ_ODBC"
33321 for i in dlz_odbc_driver
33323 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33324 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33326 if test -n "-I$use_dlz_odbc/include"
33328 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_odbc/include"
33330 if test -n "-L$use_dlz_odbc/lib -lodbc"
33332 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_odbc/lib -lodbc"
33336 { echo "$as_me:$LINENO: result: using ODBC from $use_dlz_odbc" >&5
33337 echo "${ECHO_T}using ODBC from $use_dlz_odbc" >&6; }
33343 # Was --with-dlz-stub specified?
33346 { echo "$as_me:$LINENO: checking for stub DLZ driver" >&5
33347 echo $ECHO_N "checking for stub DLZ driver... $ECHO_C" >&6; }
33349 # Check whether --with-dlz_stub was given.
33350 if test "${with_dlz_stub+set}" = set; then
33351 withval=$with_dlz_stub; use_dlz_stub="$withval"
33357 case "$use_dlz_stub" in
33359 { echo "$as_me:$LINENO: result: no" >&5
33360 echo "${ECHO_T}no" >&6; }
33365 USE_DLZ="$USE_DLZ -DDLZ_STUB"
33366 for i in dlz_stub_driver
33368 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33369 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33373 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
33377 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
33381 { echo "$as_me:$LINENO: result: yes" >&5
33382 echo "${ECHO_T}yes" >&6; }
33387 # Add any additional DLZ drivers here.
33390 # Finally, some generic stuff that applies to all drivers, assuming
33391 # we're compiling DLZ at all.
33393 if test -n "$USE_DLZ"
33396 # Where to find DLZ driver header files.
33398 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
33401 # Initialization and shutdown wrappers, helper functions.
33403 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
33404 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
33408 { echo "$as_me:$LINENO: checking for DLZ" >&5
33409 echo $ECHO_N "checking for DLZ... $ECHO_C" >&6; }
33411 if test -n "$USE_DLZ"
33413 { echo "$as_me:$LINENO: result: yes" >&5
33414 echo "${ECHO_T}yes" >&6; }
33415 USE_DLZ="-DDLZ $USE_DLZ"
33416 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
33417 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES"
33420 { echo "$as_me:$LINENO: result: no" >&5
33421 echo "${ECHO_T}no" >&6; }
33422 DLZ_DRIVER_RULES=/dev/null
33432 if test "$cross_compiling" = "yes"; then
33433 if test -z "$BUILD_CC"; then
33434 { { echo "$as_me:$LINENO: error: BUILD_CC not set" >&5
33435 echo "$as_me: error: BUILD_CC not set" >&2;}
33436 { (exit 1); exit 1; }; }
33438 BUILD_CFLAGS="$BUILD_CFLAGS"
33439 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
33440 BUILD_LDFLAGS="$BUILD_LDFLAGS"
33441 BUILD_LIBS="$BUILD_LIBS"
33444 BUILD_CFLAGS="$CFLAGS"
33445 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
33446 BUILD_LDFLAGS="$LDFLAGS"
33451 for e in $BUILD_LDFLAGS ; do
33456 ee=`echo $e |
sed -e 's%^-L%-Wl,-rpath,%'`
33457 NEWFLAGS="$NEWFLAGS $e $ee"
33460 ee=`echo $e |
sed -e 's%^-L%-Wl,-rpath,%'`
33461 NEWFLAGS="$NEWFLAGS $e $ee"
33464 ee=`echo $e |
sed -e 's%^-L%-R%'`
33465 NEWFLAGS="$NEWFLAGS $e $ee"
33468 NEWFLAGS="$NEWFLAGS $e"
33473 NEWFLAGS="$NEWFLAGS $e"
33477 BUILD_LDFLAGS="$NEWFLAGS"
33480 for e in $DNS_GSSAPI_LIBS ; do
33485 ee=`echo $e |
sed -e 's%^-L%-Wl,-rpath,%'`
33486 NEWFLAGS="$NEWFLAGS $e $ee"
33489 ee=`echo $e |
sed -e 's%^-L%-Wl,-rpath,%'`
33490 NEWFLAGS="$NEWFLAGS $e $ee"
33493 ee=`echo $e |
sed -e 's%^-L%-R%'`
33494 NEWFLAGS="$NEWFLAGS $e $ee"
33497 NEWFLAGS="$NEWFLAGS $e"
33502 NEWFLAGS="$NEWFLAGS $e"
33506 DNS_GSSAPI_LIBS="$NEWFLAGS"
33509 for e in $DNS_CRYPTO_LIBS ; do
33514 ee=`echo $e |
sed -e 's%^-L%-Wl,-rpath,%'`
33515 NEWFLAGS="$NEWFLAGS $e $ee"
33518 ee=`echo $e |
sed -e 's%^-L%-Wl,-rpath,%'`
33519 NEWFLAGS="$NEWFLAGS $e $ee"
33522 ee=`echo $e |
sed -e 's%^-L%-R%'`
33523 NEWFLAGS="$NEWFLAGS $e $ee"
33526 NEWFLAGS="$NEWFLAGS $e"
33531 NEWFLAGS="$NEWFLAGS $e"
33535 DNS_CRYPTO_LIBS="$NEWFLAGS"
33544 # Commands to run at the end of config.status.
33545 # Don't just put these into configure, it won't work right if somebody
33546 # runs config.status directly (which autoconf allows).
33549 ac_config_commands="$ac_config_commands chmod"
33553 # Files to configure. These are listed here because we used to
33554 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
33555 # elsewhere if there's a good reason for doing so.
33558 ac_config_files="$ac_config_files Makefile make/Makefile make/mkdep lib/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/nls/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/export/Makefile lib/export/isc/Makefile lib/export/isc/include/Makefile lib/export/isc/include/isc/Makefile lib/export/isc/unix/Makefile lib/export/isc/unix/include/Makefile lib/export/isc/unix/include/isc/Makefile lib/export/isc/nls/Makefile lib/export/isc/$thread_dir/Makefile lib/export/isc/$thread_dir/include/Makefile lib/export/isc/$thread_dir/include/isc/Makefile lib/export/dns/Makefile lib/export/dns/include/Makefile lib/export/dns/include/dns/Makefile lib/export/dns/include/dst/Makefile lib/export/irs/Makefile lib/export/irs/include/Makefile lib/export/irs/include/irs/Makefile lib/export/isccfg/Makefile lib/export/isccfg/include/Makefile lib/export/isccfg/include/isccfg/Makefile lib/export/samples/Makefile lib/export/samples/Makefile-postinstall lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/lwres/Makefile lib/lwres/include/Makefile lib/lwres/include/lwres/Makefile lib/lwres/include/lwres/netdb.h lib/lwres/include/lwres/platform.h lib/lwres/man/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/tests/Makefile lib/tests/include/Makefile lib/tests/include/tests/Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/named/Makefile bin/named/unix/Makefile bin/rndc/Makefile bin/dig/Makefile bin/nsupdate/Makefile bin/tests/Makefile bin/tests/names/Makefile bin/tests/master/Makefile bin/tests/rbt/Makefile bin/tests/db/Makefile bin/tests/tasks/Makefile bin/tests/timers/Makefile bin/tests/dst/Makefile bin/tests/mem/Makefile bin/tests/net/Makefile bin/tests/sockaddr/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/lwresd/Makefile bin/tests/system/tkey/Makefile bin/tests/headerdep_test.sh bin/tools/Makefile bin/dnssec/Makefile bin/pkcs11/Makefile doc/Makefile doc/arm/Makefile doc/misc/Makefile isc-config.sh doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-docbook-latex.xsl doc/xsl/isc-manpage.xsl doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter"
33565 cat >confcache <<\_ACEOF
33566 # This file is a shell script that caches the results of configure
33567 # tests run on this system so they can be shared between configure
33568 # scripts and configure runs, see configure's option --config-cache.
33569 # It is not useful on other systems. If it contains results you don't
33570 # want to keep, you may remove or edit it.
33572 # config.status only pays attention to the cache file if you give it
33573 # the --recheck option to rerun configure.
33575 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
33576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33577 # following values.
33581 # The following way of writing the cache mishandles newlines in values,
33582 # but we know of no workaround that is simple, portable, and efficient.
33583 # So, we kill variables containing newlines.
33584 # Ultrix sh set writes to stderr and can't be redirected directly,
33585 # and sets the high bit in the cache file unless we assign to the vars.
33587 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33588 eval ac_val
=\$
$ac_var
33592 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33596 _ | IFS | as_nl
) ;; #(
33597 *) $as_unset $ac_var ;;
33603 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33604 *${as_nl}ac_space
=\
*)
33605 # `set' does not quote correctly, so add quotes (double-quote
33606 # substitution turns \\\\ into \\, and sed turns \\ into \).
33609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33612 # `set' quotes correctly as required by POSIX, so do not add quotes.
33613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33626 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33627 if test -w "$cache_file"; then
33628 test "x$cache_file" != "x/dev/null" &&
33629 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33630 echo "$as_me: updating cache $cache_file" >&6;}
33631 cat confcache
>$cache_file
33633 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33634 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33639 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33640 # Let make expand exec_prefix.
33641 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33643 DEFS
=-DHAVE_CONFIG_H
33647 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33648 # 1. Remove the extension, and $U if already installed.
33649 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33650 ac_i
=`echo "$ac_i" | sed "$ac_script"`
33651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33652 # will be set to the directory where LIBOBJS objects are built.
33653 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33654 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33656 LIBOBJS
=$ac_libobjs
33658 LTLIBOBJS
=$ac_ltlibobjs
33662 : ${CONFIG_STATUS=./config.status}
33663 ac_clean_files_save
=$ac_clean_files
33664 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33665 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33666 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33667 cat >$CONFIG_STATUS <<_ACEOF
33669 # Generated by $as_me.
33670 # Run this file to recreate the current configuration.
33671 # Compiler output produced by configure, useful for debugging
33672 # configure, is in config.log if it exists.
33675 ac_cs_recheck=false
33677 SHELL=\${CONFIG_SHELL-$SHELL}
33680 cat >>$CONFIG_STATUS <<\_ACEOF
33681 ## --------------------- ##
33682 ## M4sh Initialization. ##
33683 ## --------------------- ##
33685 # Be more Bourne compatible
33686 DUALCASE
=1; export DUALCASE
# for MKS sh
33687 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
33690 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33691 # is contrary to our usage. Disable this feature.
33692 alias -g '${1+"$@"}'='"$@"'
33693 setopt NO_GLOB_SUBST
33695 case `(set -o) 2>/dev/null` in
33696 *posix
*) set -o posix
;;
33705 # Avoid depending upon Character Ranges.
33706 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33707 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33708 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33709 as_cr_digits
='0123456789'
33710 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33712 # The user is always right.
33713 if test "${PATH_SEPARATOR+set}" != set; then
33714 echo "#! /bin/sh" >conf$$.sh
33715 echo "exit 0" >>conf$$.sh
33717 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
33725 # Support unset when possible.
33726 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
33734 # We need space, tab and new line, in precisely that order. Quoting is
33735 # there to prevent editors from complaining about space-tab.
33736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33737 # splitting by setting IFS to empty value.)
33742 # Find who we are. Look in the path if we contain no directory separator.
33744 *[\\/]* ) as_myself
=$0 ;;
33745 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33746 for as_dir
in $PATH
33749 test -z "$as_dir" && as_dir
=.
33750 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
33756 # We did not find ourselves, most probably we were run as `sh COMMAND'
33757 # in which case we are not to be found in the path.
33758 if test "x$as_myself" = x
; then
33761 if test ! -f "$as_myself"; then
33762 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33763 { (exit 1); exit 1; }
33766 # Work around bugs in pre-3.0 UWIN ksh.
33767 for as_var
in ENV MAIL MAILPATH
33768 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
33776 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33777 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33778 LC_TELEPHONE LC_TIME
33780 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33781 eval $as_var=C
; export $as_var
33783 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
33787 # Required to use basename.
33788 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33789 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33795 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33796 as_basename
=basename
33802 # Name of the executable.
33803 as_me
=`$as_basename -- "$0" ||
33804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33805 X"$0" : 'X\(//\)$' \| \
33806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33808 sed '/^.*\/\([^/][^/]*\)\/*$/{
33827 as_lineno_1
=$LINENO
33828 as_lineno_2
=$LINENO
33829 test "x$as_lineno_1" != "x$as_lineno_2" &&
33830 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
33832 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33833 # uniformly replaced by the line number. The first 'sed' inserts a
33834 # line-number line after each line using $LINENO; the second 'sed'
33835 # does the real work. The second script uses 'N' to pair each
33836 # line-number line with the line containing $LINENO, and appends
33837 # trailing '-' during substitution so that $LINENO is not a special
33838 # case at line end.
33839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33840 # scripts with optimization help from Paolo Bonzini. Blame Lee
33841 # E. McMahon (1931-1989) for sed's syntax. :-)
33853 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33856 ' >$as_me.lineno
&&
33857 chmod +x
"$as_me.lineno" ||
33858 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33859 { (exit 1); exit 1; }; }
33861 # Don't try to exec as it changes $[0], causing all sort of problems
33862 # (the dirname of $[0] is not the place where we might find the
33863 # original and so on. Autoconf is especially sensitive to this).
33864 .
"./$as_me.lineno"
33865 # Exit status is that of the last command.
33870 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33876 ECHO_C
= ECHO_N
= ECHO_T
=
33877 case `echo -n x` in
33879 case `echo 'x\c'` in
33880 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33887 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33888 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33894 rm -f conf$$ conf$$.exe conf$$.
file
33895 if test -d conf$$.dir
; then
33896 rm -f conf$$.dir
/conf$$.
file
33902 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33904 # ... but there are two gotchas:
33905 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33906 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33907 # In both cases, we have to default to `cp -p'.
33908 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33910 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33915 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33916 rmdir conf$$.dir
2>/dev
/null
33918 if mkdir
-p .
2>/dev
/null
; then
33921 test -d .
/-p && rmdir .
/-p
33925 if test -x / >/dev
/null
2>&1; then
33926 as_test_x
='test -x'
33928 if ls -dL / >/dev
/null
2>&1; then
33935 if test -d "$1"; then
33941 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33942 ???[sx]*):;;*)false;;esac;fi
33946 as_executable_p
=$as_test_x
33948 # Sed expression to map a string onto a valid CPP name.
33949 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33951 # Sed expression to map a string onto a valid variable name.
33952 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33957 # Save the log message, to keep $[0] and so on meaningful, and to
33958 # report actual input values of CONFIG_FILES etc. instead of their
33959 # values after options handling.
33961 This file was extended by $as_me, which was
33962 generated by GNU Autoconf 2.61. Invocation command line was
33964 CONFIG_FILES = $CONFIG_FILES
33965 CONFIG_HEADERS = $CONFIG_HEADERS
33966 CONFIG_LINKS = $CONFIG_LINKS
33967 CONFIG_COMMANDS = $CONFIG_COMMANDS
33970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33975 cat >>$CONFIG_STATUS <<_ACEOF
33976 # Files that config.status was made for.
33977 config_files="$ac_config_files"
33978 config_headers="$ac_config_headers"
33979 config_commands="$ac_config_commands"
33983 cat >>$CONFIG_STATUS <<\_ACEOF
33985 \`$as_me' instantiates files from templates according to the
33986 current configuration.
33988 Usage: $0 [OPTIONS] [FILE]...
33990 -h, --help print this help, then exit
33991 -V, --version print version number and configuration settings, then exit
33992 -q, --quiet do not print progress messages
33993 -d, --debug don't remove temporary files
33994 --recheck update $as_me by reconfiguring in the same conditions
33995 --file=FILE[:TEMPLATE]
33996 instantiate the configuration file FILE
33997 --header=FILE[:TEMPLATE]
33998 instantiate the configuration header FILE
34000 Configuration files:
34003 Configuration headers:
34006 Configuration commands:
34009 Report bugs to <bug-autoconf@gnu.org>."
34012 cat >>$CONFIG_STATUS <<_ACEOF
34015 configured by $0, generated by GNU Autoconf 2.61,
34016 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34018 Copyright (C) 2006 Free Software Foundation, Inc.
34019 This config.status script is free software; the Free Software Foundation
34020 gives unlimited permission to copy, distribute and modify it."
34027 cat >>$CONFIG_STATUS <<\_ACEOF
34028 # If no file are specified by the user, then we need to provide default
34029 # value. By we need to know if files were specified by the user.
34035 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34036 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34047 # Handling of the options.
34048 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34050 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34051 echo "$ac_cs_version"; exit ;;
34052 --debug |
--debu |
--deb |
--de |
--d |
-d )
34054 --file |
--fil |
--fi |
--f )
34056 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
34057 ac_need_defaults
=false
;;
34058 --header |
--heade |
--head |
--hea )
34060 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
34061 ac_need_defaults
=false
;;
34063 # Conflict between --help and --header
34064 { echo "$as_me: error: ambiguous option: $1
34065 Try \`$0 --help' for more information." >&2
34066 { (exit 1); exit 1; }; };;
34067 --help |
--hel |
-h )
34068 echo "$ac_cs_usage"; exit ;;
34069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34070 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34073 # This is an error.
34074 -*) { echo "$as_me: error: unrecognized option: $1
34075 Try \`$0 --help' for more information." >&2
34076 { (exit 1); exit 1; }; } ;;
34078 *) ac_config_targets
="$ac_config_targets $1"
34079 ac_need_defaults
=false
;;
34085 ac_configure_extra_args
=
34087 if $ac_cs_silent; then
34089 ac_configure_extra_args
="$ac_configure_extra_args --silent"
34093 cat >>$CONFIG_STATUS <<_ACEOF
34094 if \$ac_cs_recheck; then
34095 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34096 CONFIG_SHELL=$SHELL
34097 export CONFIG_SHELL
34098 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34102 cat >>$CONFIG_STATUS <<\_ACEOF
34106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34107 ## Running $as_me. ##
34113 cat >>$CONFIG_STATUS <<_ACEOF
34116 cat >>$CONFIG_STATUS <<\_ACEOF
34118 # Handling of arguments.
34119 for ac_config_target
in $ac_config_targets
34121 case $ac_config_target in
34122 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
34123 "make/rules") CONFIG_FILES
="$CONFIG_FILES make/rules" ;;
34124 "make/includes") CONFIG_FILES
="$CONFIG_FILES make/includes" ;;
34125 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
34126 "$DLZ_DRIVER_RULES") CONFIG_FILES
="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
34127 "chmod") CONFIG_COMMANDS
="$CONFIG_COMMANDS chmod" ;;
34128 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
34129 "make/Makefile") CONFIG_FILES
="$CONFIG_FILES make/Makefile" ;;
34130 "make/mkdep") CONFIG_FILES
="$CONFIG_FILES make/mkdep" ;;
34131 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
34132 "lib/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/Makefile" ;;
34133 "lib/isc/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/include/Makefile" ;;
34134 "lib/isc/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
34135 "lib/isc/include/isc/platform.h") CONFIG_FILES
="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
34136 "lib/isc/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/unix/Makefile" ;;
34137 "lib/isc/unix/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
34138 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
34139 "lib/isc/nls/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/nls/Makefile" ;;
34140 "lib/isc/$thread_dir/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
34141 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
34142 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
34143 "lib/isc/$arch/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
34144 "lib/isc/$arch/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
34145 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
34146 "lib/isccc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccc/Makefile" ;;
34147 "lib/isccc/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccc/include/Makefile" ;;
34148 "lib/isccc/include/isccc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
34149 "lib/isccfg/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccfg/Makefile" ;;
34150 "lib/isccfg/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
34151 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
34152 "lib/irs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/irs/Makefile" ;;
34153 "lib/irs/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/irs/include/Makefile" ;;
34154 "lib/irs/include/irs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
34155 "lib/irs/include/irs/netdb.h") CONFIG_FILES
="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
34156 "lib/irs/include/irs/platform.h") CONFIG_FILES
="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
34157 "lib/dns/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/Makefile" ;;
34158 "lib/dns/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/include/Makefile" ;;
34159 "lib/dns/include/dns/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
34160 "lib/dns/include/dst/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
34161 "lib/export/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/Makefile" ;;
34162 "lib/export/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/Makefile" ;;
34163 "lib/export/isc/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/include/Makefile" ;;
34164 "lib/export/isc/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/include/isc/Makefile" ;;
34165 "lib/export/isc/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/unix/Makefile" ;;
34166 "lib/export/isc/unix/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/unix/include/Makefile" ;;
34167 "lib/export/isc/unix/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/unix/include/isc/Makefile" ;;
34168 "lib/export/isc/nls/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/nls/Makefile" ;;
34169 "lib/export/isc/$thread_dir/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/$thread_dir/Makefile" ;;
34170 "lib/export/isc/$thread_dir/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/$thread_dir/include/Makefile" ;;
34171 "lib/export/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isc/$thread_dir/include/isc/Makefile" ;;
34172 "lib/export/dns/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/dns/Makefile" ;;
34173 "lib/export/dns/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/dns/include/Makefile" ;;
34174 "lib/export/dns/include/dns/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/dns/include/dns/Makefile" ;;
34175 "lib/export/dns/include/dst/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/dns/include/dst/Makefile" ;;
34176 "lib/export/irs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/irs/Makefile" ;;
34177 "lib/export/irs/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/irs/include/Makefile" ;;
34178 "lib/export/irs/include/irs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/irs/include/irs/Makefile" ;;
34179 "lib/export/isccfg/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isccfg/Makefile" ;;
34180 "lib/export/isccfg/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isccfg/include/Makefile" ;;
34181 "lib/export/isccfg/include/isccfg/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/isccfg/include/isccfg/Makefile" ;;
34182 "lib/export/samples/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/export/samples/Makefile" ;;
34183 "lib/export/samples/Makefile-postinstall") CONFIG_FILES
="$CONFIG_FILES lib/export/samples/Makefile-postinstall" ;;
34184 "lib/bind9/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/bind9/Makefile" ;;
34185 "lib/bind9/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/bind9/include/Makefile" ;;
34186 "lib/bind9/include/bind9/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
34187 "lib/lwres/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/Makefile" ;;
34188 "lib/lwres/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/include/Makefile" ;;
34189 "lib/lwres/include/lwres/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
34190 "lib/lwres/include/lwres/netdb.h") CONFIG_FILES
="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
34191 "lib/lwres/include/lwres/platform.h") CONFIG_FILES
="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
34192 "lib/lwres/man/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/man/Makefile" ;;
34193 "lib/lwres/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
34194 "lib/lwres/unix/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
34195 "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
34196 "lib/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tests/Makefile" ;;
34197 "lib/tests/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tests/include/Makefile" ;;
34198 "lib/tests/include/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
34199 "bin/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/Makefile" ;;
34200 "bin/check/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/check/Makefile" ;;
34201 "bin/confgen/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/confgen/Makefile" ;;
34202 "bin/confgen/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
34203 "bin/named/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/named/Makefile" ;;
34204 "bin/named/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/named/unix/Makefile" ;;
34205 "bin/rndc/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/rndc/Makefile" ;;
34206 "bin/dig/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/dig/Makefile" ;;
34207 "bin/nsupdate/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/nsupdate/Makefile" ;;
34208 "bin/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/Makefile" ;;
34209 "bin/tests/names/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/names/Makefile" ;;
34210 "bin/tests/master/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/master/Makefile" ;;
34211 "bin/tests/rbt/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
34212 "bin/tests/db/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/db/Makefile" ;;
34213 "bin/tests/tasks/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
34214 "bin/tests/timers/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/timers/Makefile" ;;
34215 "bin/tests/dst/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Makefile" ;;
34216 "bin/tests/mem/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/mem/Makefile" ;;
34217 "bin/tests/net/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/net/Makefile" ;;
34218 "bin/tests/sockaddr/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
34219 "bin/tests/system/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/Makefile" ;;
34220 "bin/tests/system/conf.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/conf.sh" ;;
34221 "bin/tests/system/lwresd/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
34222 "bin/tests/system/tkey/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
34223 "bin/tests/headerdep_test.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
34224 "bin/tools/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tools/Makefile" ;;
34225 "bin/dnssec/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/dnssec/Makefile" ;;
34226 "bin/pkcs11/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/pkcs11/Makefile" ;;
34227 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
34228 "doc/arm/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/arm/Makefile" ;;
34229 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
34230 "isc-config.sh") CONFIG_FILES
="$CONFIG_FILES isc-config.sh" ;;
34231 "doc/xsl/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/xsl/Makefile" ;;
34232 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
34233 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
34234 "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;;
34235 "doc/xsl/isc-manpage.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
34236 "doc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
34237 "doc/doxygen/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/doxygen/Makefile" ;;
34238 "doc/doxygen/doxygen-input-filter") CONFIG_FILES
="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
34240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34242 { (exit 1); exit 1; }; };;
34247 # If the user did not use the arguments to specify the items to instantiate,
34248 # then the envvar interface is used. Set only those that are not.
34249 # We use the long form for the default assignment because of an extremely
34250 # bizarre bug on SunOS 4.1.3.
34251 if $ac_need_defaults; then
34252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
34257 # Have a temporary directory for convenience. Make it in the build tree
34258 # simply because there is no reason against having it here, and in addition,
34259 # creating and moving files from /tmp can sometimes cause problems.
34260 # Hook for its removal unless debugging.
34261 # Note that there is a small window in which the directory will not be cleaned:
34262 # after its creation but before its name has been assigned to `$tmp'.
34266 trap 'exit_status=$?
34267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34269 trap '{ (exit 1); exit 1; }' 1 2 13 15
34271 # Create a (secure) tmp directory for tmp files.
34274 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34275 test -n "$tmp" && test -d "$tmp"
34278 tmp
=.
/conf$$
-$RANDOM
34279 (umask 077 && mkdir
"$tmp")
34282 echo "$me: cannot create a temporary directory in ." >&2
34283 { (exit 1); exit 1; }
34287 # Set up the sed scripts for CONFIG_FILES section.
34290 # No need to generate the scripts if there are no CONFIG_FILES.
34291 # This happens for instance when ./config.status config.h
34292 if test -n "$CONFIG_FILES"; then
34296 # Create sed commands to just substitute file output variables.
34298 # Remaining file output variables are in a fragment that also has non-file
34304 for ac_last_try
in false false false false false
:; do
34305 cat >conf$
$subs.
sed <<_ACEOF
34306 SHELL!$SHELL$ac_delim
34307 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34308 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34309 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34310 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34311 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34312 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34313 exec_prefix!$exec_prefix$ac_delim
34314 prefix!$prefix$ac_delim
34315 program_transform_name!$program_transform_name$ac_delim
34316 bindir!$bindir$ac_delim
34317 sbindir!$sbindir$ac_delim
34318 libexecdir!$libexecdir$ac_delim
34319 datarootdir!$datarootdir$ac_delim
34320 datadir!$datadir$ac_delim
34321 sysconfdir!$sysconfdir$ac_delim
34322 sharedstatedir!$sharedstatedir$ac_delim
34323 localstatedir!$localstatedir$ac_delim
34324 includedir!$includedir$ac_delim
34325 oldincludedir!$oldincludedir$ac_delim
34326 docdir!$docdir$ac_delim
34327 infodir!$infodir$ac_delim
34328 htmldir!$htmldir$ac_delim
34329 dvidir!$dvidir$ac_delim
34330 pdfdir!$pdfdir$ac_delim
34331 psdir!$psdir$ac_delim
34332 libdir!$libdir$ac_delim
34333 localedir!$localedir$ac_delim
34334 mandir!$mandir$ac_delim
34335 DEFS!$DEFS$ac_delim
34336 ECHO_C!$ECHO_C$ac_delim
34337 ECHO_N!$ECHO_N$ac_delim
34338 ECHO_T!$ECHO_T$ac_delim
34339 LIBS!$LIBS$ac_delim
34340 build_alias!$build_alias$ac_delim
34341 host_alias!$host_alias$ac_delim
34342 target_alias!$target_alias$ac_delim
34343 build!$build$ac_delim
34344 build_cpu!$build_cpu$ac_delim
34345 build_vendor!$build_vendor$ac_delim
34346 build_os!$build_os$ac_delim
34347 host!$host$ac_delim
34348 host_cpu!$host_cpu$ac_delim
34349 host_vendor!$host_vendor$ac_delim
34350 host_os!$host_os$ac_delim
34351 SET_MAKE!$SET_MAKE$ac_delim
34353 CFLAGS!$CFLAGS$ac_delim
34354 LDFLAGS!$LDFLAGS$ac_delim
34355 CPPFLAGS!$CPPFLAGS$ac_delim
34356 ac_ct_CC!$ac_ct_CC$ac_delim
34357 EXEEXT!$EXEEXT$ac_delim
34358 OBJEXT!$OBJEXT$ac_delim
34360 GREP!$GREP$ac_delim
34361 EGREP!$EGREP$ac_delim
34362 LN_S!$LN_S$ac_delim
34363 ECHO!$ECHO$ac_delim
34365 RANLIB!$RANLIB$ac_delim
34366 STRIP!$STRIP$ac_delim
34367 DSYMUTIL!$DSYMUTIL$ac_delim
34368 NMEDIT!$NMEDIT$ac_delim
34371 CXXFLAGS!$CXXFLAGS$ac_delim
34372 ac_ct_CXX!$ac_ct_CXX$ac_delim
34375 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
34377 elif $ac_last_try; then
34378 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34380 { (exit 1); exit 1; }; }
34382 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34386 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34387 if test -n "$ac_eof"; then
34388 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34389 ac_eof
=`expr $ac_eof + 1`
34392 cat >>$CONFIG_STATUS <<_ACEOF
34393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34395 /^[ ]*@BIND9_MAKE_INCLUDES@[ ]*$/{
34396 r $BIND9_MAKE_INCLUDES
34399 /^[ ]*@BIND9_MAKE_RULES@[ ]*$/{
34400 r $BIND9_MAKE_RULES
34403 /^[ ]*@LIBISC_API@[ ]*$/{
34407 /^[ ]*@LIBISCCC_API@[ ]*$/{
34411 /^[ ]*@LIBISCCFG_API@[ ]*$/{
34415 /^[ ]*@LIBDNS_API@[ ]*$/{
34419 /^[ ]*@LIBBIND9_API@[ ]*$/{
34423 /^[ ]*@LIBLWRES_API@[ ]*$/{
34427 /^[ ]*@LIBIRS_API@[ ]*$/{
34431 /^[ ]*@DLZ_DRIVER_RULES@[ ]*$/{
34432 r $DLZ_DRIVER_RULES
34437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34438 s/^/s,@/; s/!/@,|#_!!_#|/
34441 s/'"$ac_delim"'$/,g/; t
34443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34444 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34445 rm -f conf$
$subs.
sed
34446 cat >>$CONFIG_STATUS <<_ACEOF
34452 for ac_last_try
in false false false false false
:; do
34453 cat >conf$
$subs.
sed <<_ACEOF
34454 CXXCPP!$CXXCPP$ac_delim
34456 FFLAGS!$FFLAGS$ac_delim
34457 ac_ct_F77!$ac_ct_F77$ac_delim
34458 LIBTOOL!$LIBTOOL$ac_delim
34459 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34460 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34461 INSTALL_DATA!$INSTALL_DATA$ac_delim
34462 STD_CINCLUDES!$STD_CINCLUDES$ac_delim
34463 STD_CDEFINES!$STD_CDEFINES$ac_delim
34464 STD_CWARNINGS!$STD_CWARNINGS$ac_delim
34465 CCOPT!$CCOPT$ac_delim
34466 ARFLAGS!$ARFLAGS$ac_delim
34468 ETAGS!$ETAGS$ac_delim
34469 PERL!$PERL$ac_delim
34470 ISC_SOCKADDR_LEN_T!$ISC_SOCKADDR_LEN_T$ac_delim
34471 ISC_PLATFORM_HAVELONGLONG!$ISC_PLATFORM_HAVELONGLONG$ac_delim
34472 ISC_PLATFORM_NORETURN_PRE!$ISC_PLATFORM_NORETURN_PRE$ac_delim
34473 ISC_PLATFORM_NORETURN_POST!$ISC_PLATFORM_NORETURN_POST$ac_delim
34474 ISC_PLATFORM_HAVELIFCONF!$ISC_PLATFORM_HAVELIFCONF$ac_delim
34475 ISC_PLATFORM_HAVEKQUEUE!$ISC_PLATFORM_HAVEKQUEUE$ac_delim
34476 ISC_PLATFORM_HAVEEPOLL!$ISC_PLATFORM_HAVEEPOLL$ac_delim
34477 ISC_PLATFORM_HAVEDEVPOLL!$ISC_PLATFORM_HAVEDEVPOLL$ac_delim
34478 ISC_PLATFORM_NEEDSYSSELECTH!$ISC_PLATFORM_NEEDSYSSELECTH$ac_delim
34479 LWRES_PLATFORM_NEEDSYSSELECTH!$LWRES_PLATFORM_NEEDSYSSELECTH$ac_delim
34480 USE_OPENSSL!$USE_OPENSSL$ac_delim
34481 DST_OPENSSL_INC!$DST_OPENSSL_INC$ac_delim
34482 ISC_PLATFORM_OPENSSLHASH!$ISC_PLATFORM_OPENSSLHASH$ac_delim
34483 ISC_OPENSSL_INC!$ISC_OPENSSL_INC$ac_delim
34484 USE_PKCS11!$USE_PKCS11$ac_delim
34485 PKCS11_TOOLS!$PKCS11_TOOLS$ac_delim
34486 PKCS11_PROVIDER!$PKCS11_PROVIDER$ac_delim
34487 ISC_PLATFORM_HAVEGSSAPI!$ISC_PLATFORM_HAVEGSSAPI$ac_delim
34488 ISC_PLATFORM_GSSAPIHEADER!$ISC_PLATFORM_GSSAPIHEADER$ac_delim
34489 USE_GSSAPI!$USE_GSSAPI$ac_delim
34490 DST_GSSAPI_INC!$DST_GSSAPI_INC$ac_delim
34491 DNS_GSSAPI_LIBS!$DNS_GSSAPI_LIBS$ac_delim
34492 DNS_CRYPTO_LIBS!$DNS_CRYPTO_LIBS$ac_delim
34493 ALWAYS_DEFINES!$ALWAYS_DEFINES$ac_delim
34494 ISC_PLATFORM_USETHREADS!$ISC_PLATFORM_USETHREADS$ac_delim
34495 ISC_THREAD_DIR!$ISC_THREAD_DIR$ac_delim
34496 MKDEPCC!$MKDEPCC$ac_delim
34497 MKDEPCFLAGS!$MKDEPCFLAGS$ac_delim
34498 MKDEPPROG!$MKDEPPROG$ac_delim
34499 IRIX_DNSSEC_WARNINGS_HACK!$IRIX_DNSSEC_WARNINGS_HACK$ac_delim
34500 purify_path!$purify_path$ac_delim
34501 PURIFY!$PURIFY$ac_delim
34502 ISC_PLATFORM_USEBACKTRACE!$ISC_PLATFORM_USEBACKTRACE$ac_delim
34503 MKSYMTBL_PROGRAM!$MKSYMTBL_PROGRAM$ac_delim
34504 ALWAYS_MAKE_SYMTABLE!$ALWAYS_MAKE_SYMTABLE$ac_delim
34508 LIBTOOL_MKDEP_SED!$LIBTOOL_MKDEP_SED$ac_delim
34509 LIBTOOL_MODE_COMPILE!$LIBTOOL_MODE_COMPILE$ac_delim
34510 LIBTOOL_MODE_INSTALL!$LIBTOOL_MODE_INSTALL$ac_delim
34511 LIBTOOL_MODE_LINK!$LIBTOOL_MODE_LINK$ac_delim
34512 LIBTOOL_ALLOW_UNDEFINED!$LIBTOOL_ALLOW_UNDEFINED$ac_delim
34513 LIBTOOL_IN_MAIN!$LIBTOOL_IN_MAIN$ac_delim
34514 LIBEXPORT!$LIBEXPORT$ac_delim
34515 BIND9_CO_RULE!$BIND9_CO_RULE$ac_delim
34516 export_libdir!$export_libdir$ac_delim
34517 export_includedir!$export_includedir$ac_delim
34518 ISC_PLATFORM_HAVEIPV6!$ISC_PLATFORM_HAVEIPV6$ac_delim
34519 LWRES_PLATFORM_HAVEIPV6!$LWRES_PLATFORM_HAVEIPV6$ac_delim
34520 ISC_PLATFORM_NEEDNETINETIN6H!$ISC_PLATFORM_NEEDNETINETIN6H$ac_delim
34521 LWRES_PLATFORM_NEEDNETINETIN6H!$LWRES_PLATFORM_NEEDNETINETIN6H$ac_delim
34522 ISC_PLATFORM_NEEDNETINET6IN6H!$ISC_PLATFORM_NEEDNETINET6IN6H$ac_delim
34523 LWRES_PLATFORM_NEEDNETINET6IN6H!$LWRES_PLATFORM_NEEDNETINET6IN6H$ac_delim
34524 ISC_PLATFORM_HAVEINADDR6!$ISC_PLATFORM_HAVEINADDR6$ac_delim
34525 LWRES_PLATFORM_HAVEINADDR6!$LWRES_PLATFORM_HAVEINADDR6$ac_delim
34526 ISC_PLATFORM_NEEDIN6ADDRANY!$ISC_PLATFORM_NEEDIN6ADDRANY$ac_delim
34527 LWRES_PLATFORM_NEEDIN6ADDRANY!$LWRES_PLATFORM_NEEDIN6ADDRANY$ac_delim
34528 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK!$ISC_PLATFORM_NEEDIN6ADDRLOOPBACK$ac_delim
34529 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK!$LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK$ac_delim
34530 ISC_PLATFORM_HAVEIN6PKTINFO!$ISC_PLATFORM_HAVEIN6PKTINFO$ac_delim
34531 ISC_PLATFORM_FIXIN6ISADDR!$ISC_PLATFORM_FIXIN6ISADDR$ac_delim
34532 ISC_IPV6_H!$ISC_IPV6_H$ac_delim
34533 ISC_IPV6_O!$ISC_IPV6_O$ac_delim
34534 ISC_ISCIPV6_O!$ISC_ISCIPV6_O$ac_delim
34535 ISC_IPV6_C!$ISC_IPV6_C$ac_delim
34536 LWRES_HAVE_SIN6_SCOPE_ID!$LWRES_HAVE_SIN6_SCOPE_ID$ac_delim
34537 ISC_PLATFORM_HAVESCOPEID!$ISC_PLATFORM_HAVESCOPEID$ac_delim
34538 ISC_PLATFORM_HAVEIF_LADDRREQ!$ISC_PLATFORM_HAVEIF_LADDRREQ$ac_delim
34539 ISC_PLATFORM_HAVEIF_LADDRCONF!$ISC_PLATFORM_HAVEIF_LADDRCONF$ac_delim
34540 ISC_PLATFORM_NEEDNTOP!$ISC_PLATFORM_NEEDNTOP$ac_delim
34541 ISC_PLATFORM_NEEDPTON!$ISC_PLATFORM_NEEDPTON$ac_delim
34542 ISC_PLATFORM_HAVESALEN!$ISC_PLATFORM_HAVESALEN$ac_delim
34543 LWRES_PLATFORM_HAVESALEN!$LWRES_PLATFORM_HAVESALEN$ac_delim
34544 ISC_PLATFORM_MSGHDRFLAVOR!$ISC_PLATFORM_MSGHDRFLAVOR$ac_delim
34545 ISC_PLATFORM_NEEDPORTT!$ISC_PLATFORM_NEEDPORTT$ac_delim
34546 ISC_LWRES_NEEDADDRINFO!$ISC_LWRES_NEEDADDRINFO$ac_delim
34547 ISC_IRS_NEEDADDRINFO!$ISC_IRS_NEEDADDRINFO$ac_delim
34548 ISC_LWRES_NEEDRRSETINFO!$ISC_LWRES_NEEDRRSETINFO$ac_delim
34549 ISC_LWRES_SETHOSTENTINT!$ISC_LWRES_SETHOSTENTINT$ac_delim
34550 ISC_LWRES_ENDHOSTENTINT!$ISC_LWRES_ENDHOSTENTINT$ac_delim
34553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34555 elif $ac_last_try; then
34556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34558 { (exit 1); exit 1; }; }
34560 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34564 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34565 if test -n "$ac_eof"; then
34566 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34567 ac_eof
=`expr $ac_eof + 1`
34570 cat >>$CONFIG_STATUS <<_ACEOF
34571 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34576 s/^/s,@/; s/!/@,|#_!!_#|/
34579 s/'"$ac_delim"'$/,g/; t
34581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34582 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34583 rm -f conf$
$subs.
sed
34584 cat >>$CONFIG_STATUS <<_ACEOF
34590 for ac_last_try
in false false false false false
:; do
34591 cat >conf$
$subs.
sed <<_ACEOF
34592 ISC_LWRES_GETNETBYADDRINADDR!$ISC_LWRES_GETNETBYADDRINADDR$ac_delim
34593 ISC_LWRES_SETNETENTINT!$ISC_LWRES_SETNETENTINT$ac_delim
34594 ISC_LWRES_ENDNETENTINT!$ISC_LWRES_ENDNETENTINT$ac_delim
34595 ISC_LWRES_GETHOSTBYADDRVOID!$ISC_LWRES_GETHOSTBYADDRVOID$ac_delim
34596 ISC_LWRES_NEEDHERRNO!$ISC_LWRES_NEEDHERRNO$ac_delim
34597 ISC_LWRES_GETIPNODEPROTO!$ISC_LWRES_GETIPNODEPROTO$ac_delim
34598 ISC_LWRES_GETADDRINFOPROTO!$ISC_LWRES_GETADDRINFOPROTO$ac_delim
34599 ISC_LWRES_GETNAMEINFOPROTO!$ISC_LWRES_GETNAMEINFOPROTO$ac_delim
34600 ISC_IRS_GETNAMEINFOSOCKLEN!$ISC_IRS_GETNAMEINFOSOCKLEN$ac_delim
34601 ISC_PLATFORM_NEEDSTRSEP!$ISC_PLATFORM_NEEDSTRSEP$ac_delim
34602 ISC_PLATFORM_NEEDMEMMOVE!$ISC_PLATFORM_NEEDMEMMOVE$ac_delim
34603 ISC_PLATFORM_NEEDSTRTOUL!$ISC_PLATFORM_NEEDSTRTOUL$ac_delim
34604 LWRES_PLATFORM_NEEDSTRTOUL!$LWRES_PLATFORM_NEEDSTRTOUL$ac_delim
34605 GENRANDOMLIB!$GENRANDOMLIB$ac_delim
34606 ISC_PLATFORM_NEEDSTRLCPY!$ISC_PLATFORM_NEEDSTRLCPY$ac_delim
34607 ISC_PLATFORM_NEEDSTRLCAT!$ISC_PLATFORM_NEEDSTRLCAT$ac_delim
34608 ISC_PLATFORM_NEEDSPRINTF!$ISC_PLATFORM_NEEDSPRINTF$ac_delim
34609 LWRES_PLATFORM_NEEDSPRINTF!$LWRES_PLATFORM_NEEDSPRINTF$ac_delim
34610 ISC_PLATFORM_NEEDVSNPRINTF!$ISC_PLATFORM_NEEDVSNPRINTF$ac_delim
34611 LWRES_PLATFORM_NEEDVSNPRINTF!$LWRES_PLATFORM_NEEDVSNPRINTF$ac_delim
34612 ISC_EXTRA_OBJS!$ISC_EXTRA_OBJS$ac_delim
34613 ISC_EXTRA_SRCS!$ISC_EXTRA_SRCS$ac_delim
34614 USE_ISC_SPNEGO!$USE_ISC_SPNEGO$ac_delim
34615 DST_EXTRA_OBJS!$DST_EXTRA_OBJS$ac_delim
34616 DST_EXTRA_SRCS!$DST_EXTRA_SRCS$ac_delim
34617 ISC_PLATFORM_QUADFORMAT!$ISC_PLATFORM_QUADFORMAT$ac_delim
34618 LWRES_PLATFORM_QUADFORMAT!$LWRES_PLATFORM_QUADFORMAT$ac_delim
34619 ISC_PLATFORM_HAVESYSUNH!$ISC_PLATFORM_HAVESYSUNH$ac_delim
34620 ISC_PLATFORM_RLIMITTYPE!$ISC_PLATFORM_RLIMITTYPE$ac_delim
34621 ISC_PLATFORM_USEDECLSPEC!$ISC_PLATFORM_USEDECLSPEC$ac_delim
34622 LWRES_PLATFORM_USEDECLSPEC!$LWRES_PLATFORM_USEDECLSPEC$ac_delim
34623 IRS_PLATFORM_USEDECLSPEC!$IRS_PLATFORM_USEDECLSPEC$ac_delim
34624 ISC_PLATFORM_BRACEPTHREADONCEINIT!$ISC_PLATFORM_BRACEPTHREADONCEINIT$ac_delim
34625 ISC_PLATFORM_HAVESTRINGSH!$ISC_PLATFORM_HAVESTRINGSH$ac_delim
34626 ISC_PLATFORM_HAVEIFNAMETOINDEX!$ISC_PLATFORM_HAVEIFNAMETOINDEX$ac_delim
34627 ISC_PLATFORM_HAVEXADD!$ISC_PLATFORM_HAVEXADD$ac_delim
34628 ISC_PLATFORM_HAVEXADDQ!$ISC_PLATFORM_HAVEXADDQ$ac_delim
34629 ISC_PLATFORM_HAVECMPXCHG!$ISC_PLATFORM_HAVECMPXCHG$ac_delim
34630 ISC_PLATFORM_HAVEATOMICSTORE!$ISC_PLATFORM_HAVEATOMICSTORE$ac_delim
34631 ISC_PLATFORM_USEGCCASM!$ISC_PLATFORM_USEGCCASM$ac_delim
34632 ISC_PLATFORM_USEOSFASM!$ISC_PLATFORM_USEOSFASM$ac_delim
34633 ISC_PLATFORM_USESTDASM!$ISC_PLATFORM_USESTDASM$ac_delim
34634 ISC_PLATFORM_USEMACASM!$ISC_PLATFORM_USEMACASM$ac_delim
34635 ISC_ARCH_DIR!$ISC_ARCH_DIR$ac_delim
34636 LATEX!$LATEX$ac_delim
34637 PDFLATEX!$PDFLATEX$ac_delim
34639 XSLTPROC!$XSLTPROC$ac_delim
34640 XMLLINT!$XMLLINT$ac_delim
34641 DOXYGEN!$DOXYGEN$ac_delim
34642 XSLT_DOCBOOK_STYLE_HTML!$XSLT_DOCBOOK_STYLE_HTML$ac_delim
34643 XSLT_DOCBOOK_STYLE_XHTML!$XSLT_DOCBOOK_STYLE_XHTML$ac_delim
34644 XSLT_DOCBOOK_STYLE_MAN!$XSLT_DOCBOOK_STYLE_MAN$ac_delim
34645 XSLT_DOCBOOK_CHUNK_HTML!$XSLT_DOCBOOK_CHUNK_HTML$ac_delim
34646 XSLT_DOCBOOK_CHUNK_XHTML!$XSLT_DOCBOOK_CHUNK_XHTML$ac_delim
34647 XSLT_DOCBOOK_CHUNKTOC_HTML!$XSLT_DOCBOOK_CHUNKTOC_HTML$ac_delim
34648 XSLT_DOCBOOK_CHUNKTOC_XHTML!$XSLT_DOCBOOK_CHUNKTOC_XHTML$ac_delim
34649 XSLT_DOCBOOK_MAKETOC_HTML!$XSLT_DOCBOOK_MAKETOC_HTML$ac_delim
34650 XSLT_DOCBOOK_MAKETOC_XHTML!$XSLT_DOCBOOK_MAKETOC_XHTML$ac_delim
34651 XSLT_DB2LATEX_STYLE!$XSLT_DB2LATEX_STYLE$ac_delim
34652 XSLT_DB2LATEX_ADMONITIONS!$XSLT_DB2LATEX_ADMONITIONS$ac_delim
34653 IDNLIBS!$IDNLIBS$ac_delim
34654 BIND9_TOP_BUILDDIR!$BIND9_TOP_BUILDDIR$ac_delim
34655 BIND9_ISC_BUILDINCLUDE!$BIND9_ISC_BUILDINCLUDE$ac_delim
34656 BIND9_ISCCC_BUILDINCLUDE!$BIND9_ISCCC_BUILDINCLUDE$ac_delim
34657 BIND9_ISCCFG_BUILDINCLUDE!$BIND9_ISCCFG_BUILDINCLUDE$ac_delim
34658 BIND9_DNS_BUILDINCLUDE!$BIND9_DNS_BUILDINCLUDE$ac_delim
34659 BIND9_LWRES_BUILDINCLUDE!$BIND9_LWRES_BUILDINCLUDE$ac_delim
34660 BIND9_BIND9_BUILDINCLUDE!$BIND9_BIND9_BUILDINCLUDE$ac_delim
34661 BIND9_VERSION!$BIND9_VERSION$ac_delim
34662 BIND9_CONFIGARGS!$BIND9_CONFIGARGS$ac_delim
34663 PG_CONFIG!$PG_CONFIG$ac_delim
34664 USE_DLZ!$USE_DLZ$ac_delim
34665 DLZ_DRIVER_INCLUDES!$DLZ_DRIVER_INCLUDES$ac_delim
34666 DLZ_DRIVER_LIBS!$DLZ_DRIVER_LIBS$ac_delim
34667 DLZ_DRIVER_SRCS!$DLZ_DRIVER_SRCS$ac_delim
34668 DLZ_DRIVER_OBJS!$DLZ_DRIVER_OBJS$ac_delim
34669 BUILD_CC!$BUILD_CC$ac_delim
34670 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
34671 BUILD_CPPFLAGS!$BUILD_CPPFLAGS$ac_delim
34672 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
34673 BUILD_LIBS!$BUILD_LIBS$ac_delim
34674 LIBOBJS!$LIBOBJS$ac_delim
34675 LTLIBOBJS!$LTLIBOBJS$ac_delim
34678 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
34680 elif $ac_last_try; then
34681 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34682 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34683 { (exit 1); exit 1; }; }
34685 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34689 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34690 if test -n "$ac_eof"; then
34691 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34692 ac_eof
=`expr $ac_eof + 1`
34695 cat >>$CONFIG_STATUS <<_ACEOF
34696 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34700 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34701 s/^/s,@/; s/!/@,|#_!!_#|/
34704 s/'"$ac_delim"'$/,g/; t
34706 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34707 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34708 rm -f conf$
$subs.
sed
34709 cat >>$CONFIG_STATUS <<_ACEOF
34716 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34717 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34718 # trailing colons and then remove the whole line if VPATH becomes empty
34719 # (actually we leave an empty line to preserve line numbers).
34720 if test "x$srcdir" = x.
; then
34721 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
34722 s/:*\$(srcdir):*/:/
34723 s/:*\${srcdir}:*/:/
34725 s/^\([^=]*=[ ]*\):*/\1/
34731 cat >>$CONFIG_STATUS <<\_ACEOF
34732 fi # test -n "$CONFIG_FILES"
34735 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
34738 :[FHLC
]) ac_mode
=$ac_tag; continue;;
34740 case $ac_mode$ac_tag in
34742 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34743 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34744 { (exit 1); exit 1; }; };;
34745 :[FH
]-) ac_tag
=-:-;;
34746 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
34763 -) ac_f
="$tmp/stdin";;
34764 *) # Look for the file first in the build tree, then in the source tree
34765 # (if the path is not absolute). The absolute path cannot be DOS-style,
34766 # because $ac_f cannot contain `:'.
34770 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
34772 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34773 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34774 { (exit 1); exit 1; }; };;
34776 ac_file_inputs
="$ac_file_inputs $ac_f"
34779 # Let's still pretend it is `configure' which instantiates (i.e., don't
34780 # use $as_me), people would be surprised to read:
34781 # /* config.h. Generated by config.status. */
34782 configure_input
="Generated from "`IFS=:
34783 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34784 if test x
"$ac_file" != x-
; then
34785 configure_input
="$ac_file. $configure_input"
34786 { echo "$as_me:$LINENO: creating $ac_file" >&5
34787 echo "$as_me: creating $ac_file" >&6;}
34791 *:-:* |
*:-) cat >"$tmp/stdin";;
34796 ac_dir
=`$as_dirname -- "$ac_file" ||
34797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34798 X"$ac_file" : 'X\(//\)[^/]' \| \
34799 X"$ac_file" : 'X\(//\)$' \| \
34800 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34806 /^X\(\/\/\)[^/].*/{
34821 -*) as_dir
=.
/$as_dir;;
34823 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
34827 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34828 *) as_qdir
=$as_dir;;
34830 as_dirs
="'$as_qdir' $as_dirs"
34831 as_dir
=`$as_dirname -- "$as_dir" ||
34832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34833 X"$as_dir" : 'X\(//\)[^/]' \| \
34834 X"$as_dir" : 'X\(//\)$' \| \
34835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34841 /^X\(\/\/\)[^/].*/{
34854 test -d "$as_dir" && break
34856 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34857 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34858 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34859 { (exit 1); exit 1; }; }; }
34863 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34865 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34866 # A ".." for each directory in $ac_dir_suffix.
34867 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34868 case $ac_top_builddir_sub in
34869 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34870 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34873 ac_abs_top_builddir
=$ac_pwd
34874 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34875 # for backward compatibility:
34876 ac_top_builddir
=$ac_top_build_prefix
34879 .
) # We are building in place.
34881 ac_top_srcdir
=$ac_top_builddir_sub
34882 ac_abs_top_srcdir
=$ac_pwd ;;
34883 [\\/]* | ?
:[\\/]* ) # Absolute name.
34884 ac_srcdir
=$srcdir$ac_dir_suffix;
34885 ac_top_srcdir
=$srcdir
34886 ac_abs_top_srcdir
=$srcdir ;;
34887 *) # Relative name.
34888 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34889 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34890 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34892 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34902 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
34903 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
34907 cat >>$CONFIG_STATUS <<\_ACEOF
34908 # If the template does not know about datarootdir, expand it.
34909 # FIXME: This hack should be removed a few years after 2.60.
34910 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34912 case `sed -n '/datarootdir/ {
34921 ' $ac_file_inputs` in
34922 *datarootdir
*) ac_datarootdir_seen
=yes;;
34923 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34924 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34925 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34927 cat >>$CONFIG_STATUS <<_ACEOF
34928 ac_datarootdir_hack='
34929 s&@datadir@&$datadir&g
34930 s&@docdir@&$docdir&g
34931 s&@infodir@&$infodir&g
34932 s&@localedir@&$localedir&g
34933 s&@mandir@&$mandir&g
34934 s&\\\${datarootdir}&$datarootdir&g' ;;
34938 # Neutralize VPATH when `$srcdir' = `.'.
34939 # Shell code in configure.ac might set extrasub.
34940 # FIXME: do we really want to maintain this feature?
34941 cat >>$CONFIG_STATUS <<_ACEOF
34945 cat >>$CONFIG_STATUS <<\_ACEOF
34947 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34948 s
&@configure_input@
&$configure_input&;t t
34949 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34950 s
&@srcdir@
&$ac_srcdir&;t t
34951 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34952 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34953 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34954 s
&@builddir@
&$ac_builddir&;t t
34955 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34956 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34957 s
&@INSTALL@
&$ac_INSTALL&;t t
34958 $ac_datarootdir_hack
34959 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
34961 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34962 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
34963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
34964 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34965 which seems to be undefined. Please make sure it is defined." >&5
34966 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34967 which seems to be undefined. Please make sure it is defined." >&2;}
34971 -) cat "$tmp/out"; rm -f "$tmp/out";;
34972 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34981 # Transform confdefs.h into a sed script `conftest.defines', that
34982 # substitutes the proper values into config.h.in to produce config.h.
34983 rm -f conftest.defines conftest.
tail
34984 # First, append a space to every undef/define line, to ease matching.
34985 echo 's/$/ /' >conftest.defines
34986 # Then, protect against being on the right side of a sed subst, or in
34987 # an unquoted here document, in config.status. If some macros were
34988 # called several times there might be several #defines for the same
34989 # symbol, which is useless. But do not sort them, since the last
34990 # AC_DEFINE must be honored.
34991 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
34992 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34993 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34994 # PARAMS is the parameter list in the macro definition--in most cases, it's
34995 # just an empty string.
34996 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34997 ac_dB
='\\)[ (].*,\\1define\\2'
35005 s/^[ ]*#[ ]*define[ ][ ]*//
35010 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35011 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35012 ' >>conftest.defines
35014 # Remove the space that was appended to ease matching.
35015 # Then replace #undef with comments. This is necessary, for
35016 # example, in the case of _POSIX_SOURCE, which is predefined and required
35017 # on some systems where configure will not decide to define it.
35018 # (The regexp can be short, since the line contains either #define or #undef.)
35020 s,^[ #]*u.*,/* & */,' >>conftest.defines
35022 # Break up conftest.defines:
35023 ac_max_sed_lines
=50
35025 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35026 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35027 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35029 ac_in
='$ac_file_inputs'
35030 ac_out
='"$tmp/out1"'
35031 ac_nxt
='"$tmp/out2"'
35035 # Write a here document:
35036 cat >>$CONFIG_STATUS <<_ACEOF
35037 # First, check the format of the line:
35038 cat >"\$tmp/defines.sed" <<\\CEOF
35039 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35040 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35044 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
35046 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35047 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
35048 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
35049 grep . conftest.
tail >/dev
/null ||
break
35050 rm -f conftest.defines
35051 mv conftest.
tail conftest.defines
35053 rm -f conftest.defines conftest.
tail
35055 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35056 cat >>$CONFIG_STATUS <<\_ACEOF
35057 if test x
"$ac_file" != x-
; then
35058 echo "/* $configure_input */" >"$tmp/config.h"
35059 cat "$ac_result" >>"$tmp/config.h"
35060 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
35061 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35062 echo "$as_me: $ac_file is unchanged" >&6;}
35065 mv "$tmp/config.h" $ac_file
35068 echo "/* $configure_input */"
35074 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35075 echo "$as_me: executing $ac_file commands" >&6;}
35080 case $ac_file$ac_mode in
35081 "chmod":C
) chmod a
+x isc-config.sh
doc
/doxygen
/doxygen-input-filter
;;
35087 { (exit 0); exit 0; }
35089 chmod +x
$CONFIG_STATUS
35090 ac_clean_files
=$ac_clean_files_save
35093 # configure is writing to config.log, and then calls config.status.
35094 # config.status does its own redirection, appending to config.log.
35095 # Unfortunately, on DOS this fails, as config.log is still kept open
35096 # by configure, so config.status won't be able to write to it; its
35097 # output is simply discarded. So we exec the FD to /dev/null,
35098 # effectively closing config.log, so it can be properly (re)opened and
35099 # appended to by config.status. When coming back to configure, we
35100 # need to make the FD available again.
35101 if test "$no_create" != yes; then
35103 ac_config_status_args
=
35104 test "$silent" = yes &&
35105 ac_config_status_args
="$ac_config_status_args --quiet"
35107 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35109 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35110 # would make configure fail if this is the last instruction.
35111 $ac_cs_success ||
{ (exit 1); exit 1; }
35115 if test "X$USE_OPENSSL" = "X"; then
35117 BIND is being built without OpenSSL. This means it will not have DNSSEC support.
35121 if test "X$OPENSSL_WARNING" != "X"; then
35123 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
35124 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
35126 WARNING Your OpenSSL crypto library may be vulnerable to WARNING
35127 WARNING one or
more of the the following known security WARNING
35128 WARNING flaws
: WARNING
35130 WARNING CAN-2002-0659
, CAN-2006-4339
, CVE-2006-2937 and WARNING
35131 WARNING CVE-2006-2940. WARNING
35133 WARNING It is recommended that you upgrade to OpenSSL WARNING
35134 WARNING version
0.9.8d
/0.9.7l (or greater
). WARNING
35136 WARNING You can disable this warning by specifying
: WARNING
35138 WARNING
--disable-openssl-version-check WARNING
35140 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
35141 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
35145 # Tell Emacs to edit this file in shell mode.