2 # From configure.in Revision: 1.145 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 # Check that we are running under the correct shell.
555 SHELL
=${CONFIG_SHELL-/bin/sh}
559 # Remove one level of quotation (which was required for Make).
560 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 if test "X$1" = X--no-reexec
; then
566 # Discard the --no-reexec flag, and continue.
568 elif test "X$1" = X--fallback-echo
; then
569 # Avoid inline document here, it may be left over
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
575 # Restart under the correct shell.
576 exec $SHELL "$0" --no-reexec ${1+"$@"}
579 if test "X$1" = X--fallback-echo
; then
580 # used as fallback echo
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset
; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
598 echo_test_string
=`eval $cmd` &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
618 for dir
in $PATH /usr
/ucb
; do
620 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
630 if test "X$echo" = Xecho
; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
637 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL
=/bin
/ksh
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
653 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
659 SHELL
="$CONFIG_SHELL"
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
668 # maybe with a smaller string...
671 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string
=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 # Oops. We lost completely, so just stick with echo.
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 tagnames
=${tagnames+${tagnames},}CXX
705 tagnames
=${tagnames+${tagnames},}F77
707 exec 7<&0 </dev
/null
6>&1
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
717 ac_default_prefix
=/usr
/local
719 ac_config_libobj_dir
=.
725 SHELL
=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
734 ac_unique_file
="resolv/herror.c"
735 # Factoring default headers for most tests.
736 ac_includes_default
="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
857 ISC_PLATFORM_NEEDSYSSELECTH
869 WANT_IRS_THREADSGR_OBJS
870 WANT_IRS_THREADSPW_OBJS
871 WANT_IRS_THREADS_OBJS
883 IRIX_DNSSEC_WARNINGS_HACK
894 ISC_PLATFORM_NEEDNETINETIN6H
895 ISC_PLATFORM_NEEDNETINET6IN6H
898 ISC_PLATFORM_HAVEIN6PKTINFO
899 ISC_PLATFORM_FIXIN6ISADDR
905 HAVE_SOCKADDR_STORAGE
906 ISC_PLATFORM_NEEDNTOP
907 ISC_PLATFORM_NEEDPTON
908 ISC_PLATFORM_NEEDATON
920 ISC_PLATFORM_MSGHDRFLAVOR
921 ISC_PLATFORM_NEEDPORTT
922 ISC_PLATFORM_NEEDTIMESPEC
923 ISC_LWRES_ENDHOSTENTINT
924 ISC_LWRES_SETNETENTINT
925 ISC_LWRES_ENDNETENTINT
926 ISC_LWRES_GETHOSTBYADDRVOID
928 ISC_LWRES_GETIPNODEPROTO
929 ISC_LWRES_GETADDRINFOPROTO
930 ISC_LWRES_GETNAMEINFOPROTO
934 ISC_PLATFORM_NEEDSTRSEP
935 ISC_PLATFORM_NEEDVSNPRINTF
938 ISC_PLATFORM_QUADFORMAT
1039 ac_subst_files
='BIND9_INCLUDES
1042 ac_precious_vars
='build_alias
1059 # Initialize some variables set by options.
1061 ac_init_version
=false
1062 # The variables have the same names as the options, with
1063 # dashes changed to underlines.
1064 cache_file
=/dev
/null
1071 program_transform_name
=s
,x
,x
,
1079 # Installation directory options.
1080 # These are left unexpanded so users can "make install exec_prefix=/foo"
1081 # and all the variables that are supposed to be based on exec_prefix
1082 # by default will actually change.
1083 # Use braces instead of parens because sh, perl, etc. also accept them.
1084 # (The list follows the same order as the GNU Coding Standards.)
1085 bindir
='${exec_prefix}/bin'
1086 sbindir
='${exec_prefix}/sbin'
1087 libexecdir
='${exec_prefix}/libexec'
1088 datarootdir
='${prefix}/share'
1089 datadir
='${datarootdir}'
1090 sysconfdir
='${prefix}/etc'
1091 sharedstatedir
='${prefix}/com'
1092 localstatedir
='${prefix}/var'
1093 includedir
='${prefix}/include'
1094 oldincludedir
='/usr/include'
1095 docdir
='${datarootdir}/doc/${PACKAGE}'
1096 infodir
='${datarootdir}/info'
1101 libdir
='${exec_prefix}/lib'
1102 localedir
='${datarootdir}/locale'
1103 mandir
='${datarootdir}/man'
1109 # If the previous option needs an argument, assign it.
1110 if test -n "$ac_prev"; then
1111 eval $ac_prev=\
$ac_option
1117 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1121 # Accept the important Cygnus configure options, so we can diagnose typos.
1123 case $ac_dashdash$ac_option in
1127 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1129 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1130 bindir
=$ac_optarg ;;
1132 -build |
--build |
--buil |
--bui |
--bu)
1133 ac_prev
=build_alias
;;
1134 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1135 build_alias
=$ac_optarg ;;
1137 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1138 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1139 ac_prev
=cache_file
;;
1140 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1141 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1142 cache_file
=$ac_optarg ;;
1144 --config-cache |
-C)
1145 cache_file
=config.cache
;;
1147 -datadir |
--datadir |
--datadi |
--datad)
1149 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1150 datadir
=$ac_optarg ;;
1152 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1153 |
--dataroo |
--dataro |
--datar)
1154 ac_prev
=datarootdir
;;
1155 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1156 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1157 datarootdir
=$ac_optarg ;;
1159 -disable-* |
--disable-*)
1160 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1163 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1166 eval enable_
$ac_feature=no
;;
1168 -docdir |
--docdir |
--docdi |
--doc |
--do)
1170 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1171 docdir
=$ac_optarg ;;
1173 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1175 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1176 dvidir
=$ac_optarg ;;
1178 -enable-* |
--enable-*)
1179 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1182 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1183 { (exit 1); exit 1; }; }
1184 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1185 eval enable_
$ac_feature=\
$ac_optarg ;;
1187 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1188 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1189 |
--exec |
--exe |
--ex)
1190 ac_prev
=exec_prefix
;;
1191 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1192 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1193 |
--exec=* |
--exe=* |
--ex=*)
1194 exec_prefix
=$ac_optarg ;;
1196 -gas |
--gas |
--ga |
--g)
1197 # Obsolete; use --with-gas.
1200 -help |
--help |
--hel |
--he |
-h)
1201 ac_init_help
=long
;;
1202 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1203 ac_init_help
=recursive
;;
1204 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1205 ac_init_help
=short
;;
1207 -host |
--host |
--hos |
--ho)
1208 ac_prev
=host_alias
;;
1209 -host=* |
--host=* |
--hos=* |
--ho=*)
1210 host_alias
=$ac_optarg ;;
1212 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1214 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1216 htmldir
=$ac_optarg ;;
1218 -includedir |
--includedir |
--includedi |
--included |
--include \
1219 |
--includ |
--inclu |
--incl |
--inc)
1220 ac_prev
=includedir
;;
1221 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1222 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1223 includedir
=$ac_optarg ;;
1225 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1227 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1228 infodir
=$ac_optarg ;;
1230 -libdir |
--libdir |
--libdi |
--libd)
1232 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1233 libdir
=$ac_optarg ;;
1235 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1236 |
--libexe |
--libex |
--libe)
1237 ac_prev
=libexecdir
;;
1238 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1239 |
--libexe=* |
--libex=* |
--libe=*)
1240 libexecdir
=$ac_optarg ;;
1242 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1243 ac_prev
=localedir
;;
1244 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1245 localedir
=$ac_optarg ;;
1247 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1248 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1249 ac_prev
=localstatedir
;;
1250 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1251 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1252 localstatedir
=$ac_optarg ;;
1254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1257 mandir
=$ac_optarg ;;
1259 -nfp |
--nfp |
--nf)
1260 # Obsolete; use --without-fp.
1263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1264 |
--no-cr |
--no-c |
-n)
1267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1273 |
--oldin |
--oldi |
--old |
--ol |
--o)
1274 ac_prev
=oldincludedir
;;
1275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1278 oldincludedir
=$ac_optarg ;;
1280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1283 prefix
=$ac_optarg ;;
1285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1286 |
--program-pre |
--program-pr |
--program-p)
1287 ac_prev
=program_prefix
;;
1288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1290 program_prefix
=$ac_optarg ;;
1292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1293 |
--program-suf |
--program-su |
--program-s)
1294 ac_prev
=program_suffix
;;
1295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1297 program_suffix
=$ac_optarg ;;
1299 -program-transform-name |
--program-transform-name \
1300 |
--program-transform-nam |
--program-transform-na \
1301 |
--program-transform-n |
--program-transform- \
1302 |
--program-transform |
--program-transfor \
1303 |
--program-transfo |
--program-transf \
1304 |
--program-trans |
--program-tran \
1305 |
--progr-tra |
--program-tr |
--program-t)
1306 ac_prev
=program_transform_name
;;
1307 -program-transform-name=* |
--program-transform-name=* \
1308 |
--program-transform-nam=* |
--program-transform-na=* \
1309 |
--program-transform-n=* |
--program-transform-=* \
1310 |
--program-transform=* |
--program-transfor=* \
1311 |
--program-transfo=* |
--program-transf=* \
1312 |
--program-trans=* |
--program-tran=* \
1313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1314 program_transform_name
=$ac_optarg ;;
1316 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1318 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1319 pdfdir
=$ac_optarg ;;
1321 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1323 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1326 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1327 |
-silent |
--silent |
--silen |
--sile |
--sil)
1330 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1332 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1334 sbindir
=$ac_optarg ;;
1336 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1337 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1338 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1340 ac_prev
=sharedstatedir
;;
1341 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1342 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1343 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1345 sharedstatedir
=$ac_optarg ;;
1347 -site |
--site |
--sit)
1349 -site=* |
--site=* |
--sit=*)
1352 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1354 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1355 srcdir
=$ac_optarg ;;
1357 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1358 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1359 ac_prev
=sysconfdir
;;
1360 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1361 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1362 sysconfdir
=$ac_optarg ;;
1364 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1365 ac_prev
=target_alias
;;
1366 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1367 target_alias
=$ac_optarg ;;
1369 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1372 -version |
--version |
--versio |
--versi |
--vers |
-V)
1373 ac_init_version
=: ;;
1376 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1379 { echo "$as_me: error: invalid package name: $ac_package" >&2
1380 { (exit 1); exit 1; }; }
1381 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1382 eval with_
$ac_package=\
$ac_optarg ;;
1384 -without-* |
--without-*)
1385 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1388 { echo "$as_me: error: invalid package name: $ac_package" >&2
1389 { (exit 1); exit 1; }; }
1390 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1391 eval with_
$ac_package=no
;;
1394 # Obsolete; use --with-x.
1397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1399 ac_prev
=x_includes
;;
1400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1402 x_includes
=$ac_optarg ;;
1404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1406 ac_prev
=x_libraries
;;
1407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1409 x_libraries
=$ac_optarg ;;
1411 -*) { echo "$as_me: error: unrecognized option: $ac_option
1412 Try \`$0 --help' for more information." >&2
1413 { (exit 1); exit 1; }; }
1417 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1420 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1421 { (exit 1); exit 1; }; }
1422 eval $ac_envvar=\
$ac_optarg
1423 export $ac_envvar ;;
1426 # FIXME: should be removed in autoconf 3.0.
1427 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1429 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436 if test -n "$ac_prev"; then
1437 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1438 { echo "$as_me: error: missing argument to $ac_option" >&2
1439 { (exit 1); exit 1; }; }
1442 # Be sure to have absolute directory names.
1443 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444 datadir sysconfdir sharedstatedir localstatedir includedir \
1445 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446 libdir localedir mandir
1448 eval ac_val
=\$
$ac_var
1450 [\\/$
]* | ?
:[\\/]* ) continue;;
1451 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1453 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454 { (exit 1); exit 1; }; }
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1462 target
=$target_alias
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x
; then
1466 if test "x$build_alias" = x
; then
1467 cross_compiling
=maybe
1468 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469 If a cross compiler is detected then cross compile mode will be used." >&2
1470 elif test "x$build_alias" != "x$host_alias"; then
1476 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1478 test "$silent" = yes && exec 6>/dev
/null
1481 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di
=`ls -di .` &&
1483 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1484 { echo "$as_me: error: Working directory cannot be determined" >&2
1485 { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487 { echo "$as_me: error: pwd does not report name of working directory" >&2
1488 { (exit 1); exit 1; }; }
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493 ac_srcdir_defaulted
=yes
1494 # Try the directory containing this script, then the parent directory.
1495 ac_confdir
=`$as_dirname -- "$0" ||
1496 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497 X"$0" : 'X\(//\)[^/]' \| \
1498 X"$0" : 'X\(//\)$' \| \
1499 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1523 ac_srcdir_defaulted
=no
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1527 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528 { (exit 1); exit 1; }; }
1530 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1532 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1533 { (exit 1); exit 1; }; }
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1543 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1545 for ac_var
in $ac_precious_vars; do
1546 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1547 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1548 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1549 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1553 # Report the --help message.
1555 if test "$ac_init_help" = "long"; then
1556 # Omit some internal or obsolete options to make the list less imposing.
1557 # This message is too long to be a string in the A/UX 3.1 sh.
1559 \`configure' configures this package to adapt to many kinds of systems.
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE. See below for descriptions of some of the useful variables.
1566 Defaults for the options are specified in brackets.
1569 -h, --help display this help and exit
1570 --help=short display options specific to this package
1571 --help=recursive display the short help of all the included packages
1572 -V, --version display version information and exit
1573 -q, --quiet, --silent do not print \`checking...' messages
1574 --cache-file=FILE cache test results in FILE [disabled]
1575 -C, --config-cache alias for \`--cache-file=config.cache'
1576 -n, --no-create do not create output files
1577 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1579 Installation directories:
1580 --prefix=PREFIX install architecture-independent files in PREFIX
1581 [$ac_default_prefix]
1582 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1590 For better control, use the options below.
1592 Fine tuning of the installation directories:
1593 --bindir=DIR user executables [EPREFIX/bin]
1594 --sbindir=DIR system admin executables [EPREFIX/sbin]
1595 --libexecdir=DIR program executables [EPREFIX/libexec]
1596 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1597 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1598 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1599 --libdir=DIR object code libraries [EPREFIX/lib]
1600 --includedir=DIR C header files [PREFIX/include]
1601 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1604 --infodir=DIR info documentation [DATAROOTDIR/info]
1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1606 --mandir=DIR man documentation [DATAROOTDIR/man]
1607 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1608 --htmldir=DIR html documentation [DOCDIR]
1609 --dvidir=DIR dvi documentation [DOCDIR]
1610 --pdfdir=DIR pdf documentation [DOCDIR]
1611 --psdir=DIR ps documentation [DOCDIR]
1617 --build=BUILD configure
for building on BUILD
[guessed
]
1618 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1622 if test -n "$ac_init_help"; then
1627 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1628 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1629 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1630 --enable-static[=PKGS
] build static libraries
[default
=yes]
1631 --enable-fast-install[=PKGS
]
1632 optimize
for fast installation
[default
=yes]
1633 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1634 --enable-threads enable multithreading
1635 --enable-ipv6 use IPv6 default
=autodetect
1638 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1639 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1640 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1641 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1643 --with-tags[=TAGS
] include additional configurations
[automatic
]
1644 --with-irs-gr Build with WANT_IRS_GR
1645 --with-irs-pw Build with WANT_IRS_PW
1646 --with-irs-nis Build with WANT_IRS_NIS
1647 --with-randomdev=PATH Specify path
for random device
1648 --with-ptl2 on NetBSD
, use the ptl2 thread library
(experimental
)
1649 --with-purify=PATH use Rational purify
1650 --with-libtool use GNU libtool
(following indented options supported
)
1651 --with-kame=PATH use Kame IPv6 default path
/usr
/local
/v6
1653 Some influential environment variables
:
1654 CC C compiler
command
1655 CFLAGS C compiler flags
1656 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1657 nonstandard directory
<lib dir
>
1658 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1659 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1660 you have headers
in a nonstandard directory
<include dir
>
1662 CXX C
++ compiler
command
1663 CXXFLAGS C
++ compiler flags
1664 CXXCPP C
++ preprocessor
1665 F77 Fortran
77 compiler
command
1666 FFLAGS Fortran
77 compiler flags
1668 Use these variables to override the choices made by
`configure' or to help
1669 it to find libraries and programs with nonstandard names/locations.
1675 if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1678 test -d "$ac_dir" || continue
1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1685 # A ".." for each directory in $ac_dir_suffix.
1686 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1687 case $ac_top_builddir_sub in
1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 ac_abs_top_builddir=$ac_pwd
1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694 # for backward compatibility:
1695 ac_top_builddir=$ac_top_build_prefix
1698 .) # We are building in place.
1700 ac_top_srcdir=$ac_top_builddir_sub
1701 ac_abs_top_srcdir=$ac_pwd ;;
1702 [\\/]* | ?:[\\/]* ) # Absolute name.
1703 ac_srcdir=$srcdir$ac_dir_suffix;
1704 ac_top_srcdir=$srcdir
1705 ac_abs_top_srcdir=$srcdir ;;
1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708 ac_top_srcdir=$ac_top_build_prefix$srcdir
1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713 cd "$ac_dir" || { ac_status=$?; continue; }
1714 # Check for guested configure.
1715 if test -f "$ac_srcdir/configure.gnu"; then
1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718 elif test -f "$ac_srcdir/configure"; then
1720 $SHELL "$ac_srcdir/configure" --help=recursive
1722 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1724 cd "$ac_pwd" || { ac_status=$?; break; }
1728 test -n "$ac_init_help" && exit $ac_status
1729 if $ac_init_version; then
1732 generated by GNU Autoconf 2.61
1734 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1735 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1736 This configure script is free software; the Free Software Foundation
1737 gives unlimited permission to copy, distribute and modify it.
1741 cat >config.log <<_ACEOF
1742 This file contains any messages produced by compilers while
1743 running configure, to aid debugging if configure makes a mistake.
1745 It was created by $as_me, which was
1746 generated by GNU Autoconf 2.61. Invocation command line was
1758 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1759 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1760 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1761 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1762 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1764 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1765 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1767 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1768 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1769 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1770 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1771 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1772 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1773 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir=.
1782 echo "PATH: $as_dir"
1798 # Keep a trace of the command line.
1799 # Strip out --no-create and --no-recursion so they do not pile up.
1800 # Strip out --silent because we don't want to record it for future runs.
1801 # Also quote any args containing shell meta-characters.
1802 # Make two passes to allow for proper duplicate-argument suppression.
1806 ac_must_keep_next=false
1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814 | -silent | --silent | --silen | --sile | --sil)
1817 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1820 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1822 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1823 if test $ac_must_keep_next = true; then
1824 ac_must_keep_next=false # Got value, back to normal.
1827 *=* | --config-cache | -C | -disable-* | --disable-* \
1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830 | -with-* | --with-* | -without-* | --without-* | --x)
1831 case "$ac_configure_args0 " in
1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 -* ) ac_must_keep_next=true ;;
1838 ac_configure_args="$ac_configure_args '$ac_arg'"
1843 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1844 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1846 # When interrupted or exit'd, cleanup temporary files, and complete
1847 # config.log. We remove comments because anyway the quotes in there
1848 # would cause problems or look ugly.
1849 # WARNING: Use '\'' to represent an apostrophe within the trap.
1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851 trap 'exit_status=$?
1852 # Save into config.log some information that might help in debugging.
1857 ## ---------------- ##
1858 ## Cache variables. ##
1859 ## ---------------- ##
1862 # The following way of writing the cache mishandles newlines in values,
1864 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1865 eval ac_val=\$$ac_var
1869 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1870 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1873 _ | IFS | as_nl) ;; #(
1874 *) $as_unset $ac_var ;;
1879 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1880 *${as_nl}ac_space=\ *)
1882 "s/'\''/'\''\\\\'\'''\''/g;
1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1894 ## ----------------- ##
1895 ## Output variables. ##
1896 ## ----------------- ##
1899 for ac_var in $ac_subst_vars
1901 eval ac_val=\$$ac_var
1903 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 echo "$ac_var='\''$ac_val'\''"
1909 if test -n "$ac_subst_files"; then
1911 ## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##
1916 for ac_var in $ac_subst_files
1918 eval ac_val=\$$ac_var
1920 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1922 echo "$ac_var='\''$ac_val'\''"
1927 if test -s confdefs.h; then
1937 test "$ac_signal" != 0 &&
1938 echo "$as_me: caught signal $ac_signal"
1939 echo "$as_me: exit $exit_status"
1941 rm -f core *.core core.conftest.* &&
1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1945 for ac_signal in 1 2 13 15; do
1946 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1950 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1951 rm -f -r conftest* confdefs.h
1953 # Predefined preprocessor variables.
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_NAME "$PACKAGE_NAME"
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_STRING "$PACKAGE_STRING"
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1980 # Let the site file select an alternate cache file if it wants to.
1981 # Prefer explicitly selected file to automatically selected ones.
1982 if test -n "$CONFIG_SITE"; then
1983 set x "$CONFIG_SITE"
1984 elif test "x$prefix" != xNONE; then
1985 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1987 set x "$ac_default_prefix/share/config.site" \
1988 "$ac_default_prefix/etc/config.site"
1993 if test -r "$ac_site_file"; then
1994 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1995 echo "$as_me: loading site script $ac_site_file" >&6;}
1996 sed 's/^/| /' "$ac_site_file" >&5
2001 if test -r "$cache_file"; then
2002 # Some versions of bash will fail to source /dev/null (special
2003 # files actually), so we avoid doing that.
2004 if test -f "$cache_file"; then
2005 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2006 echo "$as_me: loading cache $cache_file" >&6;}
2008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2009 *) . "./$cache_file";;
2013 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2014 echo "$as_me: creating cache $cache_file" >&6;}
2018 # Check that the precious variables saved in the cache have kept the same
2020 ac_cache_corrupted=false
2021 for ac_var in $ac_precious_vars; do
2022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2023 eval ac_new_set=\$ac_env_${ac_var}_set
2024 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2025 eval ac_new_val=\$ac_env_${ac_var}_value
2026 case $ac_old_set,$ac_new_set in
2028 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2029 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2032 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
2033 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2034 ac_cache_corrupted=: ;;
2037 if test "x$ac_old_val" != "x$ac_new_val"; then
2038 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2040 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
2041 echo "$as_me: former value
: $ac_old_val" >&2;}
2042 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
2043 echo "$as_me: current value
: $ac_new_val" >&2;}
2044 ac_cache_corrupted=:
2047 # Pass precious variables to config.status.
2048 if test "$ac_new_set" = set; then
2050 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2051 *) ac_arg=$ac_var=$ac_new_val ;;
2053 case " $ac_configure_args " in
2054 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2055 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2059 if $ac_cache_corrupted; then
2060 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2061 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2062 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2063 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2064 { (exit 1); exit 1; }; }
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 ac_config_headers="$ac_config_headers config.h"
2096 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097 if test -f "$ac_dir/install-sh"; then
2099 ac_install_sh="$ac_aux_dir/install-sh -c"
2101 elif test -f "$ac_dir/install.sh"; then
2103 ac_install_sh="$ac_aux_dir/install.sh -c"
2105 elif test -f "$ac_dir/shtool"; then
2107 ac_install_sh="$ac_aux_dir/shtool install -c"
2111 if test -z "$ac_aux_dir"; then
2112 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2113 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2114 { (exit 1); exit 1; }; }
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS=$IFS; IFS='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2196 ac_save_IFS=$IFS; IFS='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2210 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2212 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 cat >conftest.make <<\_ACEOF
2219 @echo '@@@%%%=$(MAKE)=@@@%%%'
2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2224 eval ac_cv_prog_make_${ac_make}_set=yes;;
2226 eval ac_cv_prog_make_${ac_make}_set=no;;
2230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2235 { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2237 SET_MAKE="MAKE=${MAKE-make}"
2240 # Check whether --enable-shared was given.
2241 if test "${enable_shared+set}" = set; then
2242 enableval=$enable_shared; p=${PACKAGE-default}
2244 yes) enable_shared=yes ;;
2245 no) enable_shared=no ;;
2248 # Look at the argument we got. We use all the common list separators.
2249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2250 for pkg in $enableval; do
2252 if test "X$pkg" = "X$p"; then
2264 # Check whether --enable-static was given.
2265 if test "${enable_static+set}" = set; then
2266 enableval=$enable_static; p=${PACKAGE-default}
2268 yes) enable_static=yes ;;
2269 no) enable_static=no ;;
2272 # Look at the argument we got. We use all the common list separators.
2273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2274 for pkg in $enableval; do
2276 if test "X$pkg" = "X$p"; then
2288 # Check whether --enable-fast-install was given.
2289 if test "${enable_fast_install+set}" = set; then
2290 enableval=$enable_fast_install; p=${PACKAGE-default}
2292 yes) enable_fast_install=yes ;;
2293 no) enable_fast_install=no ;;
2295 enable_fast_install=no
2296 # Look at the argument we got. We use all the common list separators.
2297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2298 for pkg in $enableval; do
2300 if test "X$pkg" = "X$p"; then
2301 enable_fast_install=yes
2308 enable_fast_install=yes
2313 ac_cpp='$CPP $CPPFLAGS'
2314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_CC+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 if test -n "$CC"; then
2326 ac_cv_prog_CC="$CC" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 if test -n "$CC"; then
2347 { echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6; }
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2356 if test -z "$ac_cv_prog_CC"; then
2358 # Extract the first word of "gcc", so it can be a program name with args.
2359 set dummy gcc; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$ac_ct_CC"; then
2366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_CC="gcc"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2386 if test -n "$ac_ct_CC"; then
2387 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2388 echo "${ECHO_T}$ac_ct_CC" >&6; }
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2394 if test "x$ac_ct_CC" = x; then
2397 case $cross_compiling:$ac_tool_warned in
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2413 if test -z "$CC"; then
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}cc; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_CC="${ac_tool_prefix}cc"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 if test -n "$CC"; then
2444 { echo "$as_me:$LINENO: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6; }
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2454 if test -z "$CC"; then
2455 # Extract the first word of "cc", so it can be a program name with args.
2456 set dummy cc; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_CC+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2474 ac_prog_rejected=yes
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test $ac_prog_rejected = yes; then
2486 # We found a bogon in the path, so make sure we never use it.
2487 set dummy $ac_cv_prog_CC
2489 if test $# != 0; then
2490 # We chose a different compiler from the bogus one.
2491 # However, it has the same basename, so the bogon will be chosen
2492 # first if we set CC to just the basename; use the full file name.
2494 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2500 if test -n "$CC"; then
2501 { echo "$as_me:$LINENO: result: $CC" >&5
2502 echo "${ECHO_T}$CC" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2510 if test -z "$CC"; then
2511 if test -n "$ac_tool_prefix"; then
2512 for ac_prog in cl.exe
2514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 if test -n "$CC"; then
2543 { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2551 test -n "$CC" && break
2554 if test -z "$CC"; then
2556 for ac_prog in cl.exe
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 if test -n "$ac_ct_CC"; then
2566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_ac_ct_CC="$ac_prog"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586 if test -n "$ac_ct_CC"; then
2587 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2588 echo "${ECHO_T}$ac_ct_CC" >&6; }
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2595 test -n "$ac_ct_CC" && break
2598 if test "x$ac_ct_CC" = x; then
2601 case $cross_compiling:$ac_tool_warned in
2603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&5
2606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2607 whose name does not start with the host triplet. If you think this
2608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2609 ac_tool_warned=yes ;;
2618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2619 See \`config.log
' for more details." >&5
2620 echo "$as_me: error: no acceptable C compiler found in \$PATH
2621 See \`config.log' for more details.
" >&2;}
2622 { (exit 1); exit 1; }; }
2624 # Provide some information about the compiler.
2625 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2626 ac_compiler=`set X $ac_compile; echo $2`
2627 { (ac_try="$ac_compiler --version >&5"
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_compiler --version >&5") 2>&5
2635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2636 (exit $ac_status); }
2637 { (ac_try="$ac_compiler -v >&5"
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compiler -v >&5") 2>&5
2645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2646 (exit $ac_status); }
2647 { (ac_try="$ac_compiler -V >&5"
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compiler -V >&5") 2>&5
2655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2656 (exit $ac_status); }
2658 cat >conftest.$ac_ext <<_ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2673 ac_clean_files_save=$ac_clean_files
2674 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2675 # Try to create an executable without -o first, disregard a.out.
2676 # It will help us diagnose broken compilers, and finding out an intuition
2678 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2679 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2680 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2682 # List of possible output files, starting from the most likely.
2683 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2684 # only as a last resort. b.out is created by i960 compilers.
2685 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2687 # The IRIX 6 linker writes into existing files which may not be
2688 # executable, retaining their permissions. Remove them first so a
2689 # subsequent execution test works.
2691 for ac_file in $ac_files
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2695 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2700 if { (ac_try="$ac_link_default"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_link_default") 2>&5
2708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2709 (exit $ac_status); }; then
2710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2711 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2712 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2713 # so that the user can short-circuit this test for compilers unknown to
2715 for ac_file in $ac_files ''
2717 test -f "$ac_file" || continue
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2722 # We found the default executable, but exeext='' is most
2726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2730 # We set ac_cv_exeext here because the later test for it is not
2731 # safe: cross compilers may not add the suffix if given an `-o'
2732 # argument, so we may need to know it at that point already.
2733 # Even if this section looks crufty: it has the advantage of
2740 test "$ac_cv_exeext" = no && ac_cv_exeext=
2746 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2747 echo "${ECHO_T}$ac_file" >&6; }
2748 if test -z "$ac_file"; then
2749 echo "$as_me: failed program was
:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2753 See \
`config.log' for more details." >&5
2754 echo "$as_me: error: C compiler cannot create executables
2755 See \`config.log
' for more details." >&2;}
2756 { (exit 77); exit 77; }; }
2759 ac_exeext=$ac_cv_exeext
2761 # Check that the compiler produces executables we can run. If not, either
2762 # the compiler is broken, or we cross compile.
2763 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2764 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2765 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2766 # If not cross compiling, check that we can run a simple program.
2767 if test "$cross_compiling" != yes; then
2768 if { ac_try='.
/$ac_file'
2769 { (case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_try") 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2780 if test "$cross_compiling" = maybe; then
2783 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2784 If you meant to cross compile, use \`--host'.
2785 See \
`config.log' for more details." >&5
2786 echo "$as_me: error: cannot run C compiled programs.
2787 If you meant to cross compile, use \`--host'.
2788 See \`config.log' for more details.
" >&2;}
2789 { (exit 1); exit 1; }; }
2793 { echo "$as_me:$LINENO: result
: yes" >&5
2794 echo "${ECHO_T}yes" >&6; }
2796 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2797 ac_clean_files=$ac_clean_files_save
2798 # Check that the compiler produces executables we can run. If not, either
2799 # the compiler is broken, or we cross compile.
2800 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2801 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2802 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2803 echo "${ECHO_T}$cross_compiling" >&6; }
2805 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2806 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2807 if { (ac_try="$ac_link"
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_link") 2>&5
2815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2816 (exit $ac_status); }; then
2817 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2818 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2819 # work properly (i.e., refer to `conftest.exe'), while it won't with
2821 for ac_file in conftest.exe conftest conftest.*; do
2822 test -f "$ac_file" || continue
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2831 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2832 See \
`config.log' for more details." >&5
2833 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2834 See \`config.log
' for more details." >&2;}
2835 { (exit 1); exit 1; }; }
2838 rm -f conftest$ac_cv_exeext
2839 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2840 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2842 rm -f conftest.$ac_ext
2843 EXEEXT=$ac_cv_exeext
2845 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2846 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2847 if test "${ac_cv_objext+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 cat >conftest.$ac_ext <<_ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2865 rm -f conftest.o conftest.obj
2866 if { (ac_try="$ac_compile"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compile") 2>&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; then
2876 for ac_file in conftest.o conftest.obj conftest.*; do
2877 test -f "$ac_file" || continue;
2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2880 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2885 echo "$as_me: failed program was:" >&5
2886 sed 's
/^
/|
/' conftest.$ac_ext >&5
2888 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2889 See \`config.log' for more details.
" >&5
2890 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2891 See \
`config.log' for more details." >&2;}
2892 { (exit 1); exit 1; }; }
2895 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2897 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2898 echo "${ECHO_T}$ac_cv_objext" >&6; }
2899 OBJEXT=$ac_cv_objext
2901 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2902 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2903 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 cat >conftest.$ac_ext <<_ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2924 rm -f conftest.$ac_objext
2925 if { (ac_try="$ac_compile"
2927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2928 *) ac_try_echo
=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compile") 2>conftest.er1
2933 grep -v '^ *+' conftest.er1
>conftest.err
2935 cat conftest.err
>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } && {
2938 test -z "$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 } && test -s conftest.
$ac_objext; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.
$ac_ext >&5
2949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2950 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2953 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2954 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2955 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2956 ac_test_CFLAGS
=${CFLAGS+set}
2957 ac_save_CFLAGS
=$CFLAGS
2958 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2959 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2960 if test "${ac_cv_prog_cc_g+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 ac_save_c_werror_flag
=$ac_c_werror_flag
2964 ac_c_werror_flag
=yes
2967 cat >conftest.
$ac_ext <<_ACEOF
2970 cat confdefs.h
>>conftest.
$ac_ext
2971 cat >>conftest.
$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2982 rm -f conftest.
$ac_objext
2983 if { (ac_try
="$ac_compile"
2985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3024 *) ac_try_echo
=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1
>conftest.err
3031 cat conftest.err
>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.
$ac_objext; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.
$ac_ext >&5
3042 ac_c_werror_flag
=$ac_save_c_werror_flag
3044 cat >conftest.
$ac_ext <<_ACEOF
3047 cat confdefs.h
>>conftest.
$ac_ext
3048 cat >>conftest.
$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3059 rm -f conftest.
$ac_objext
3060 if { (ac_try
="$ac_compile"
3062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compile") 2>conftest.er1
3068 grep -v '^ *+' conftest.er1 >conftest.err
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && {
3073 test -z "$ac_c_werror_flag" ||
3074 test ! -s conftest.err
3075 } && test -s conftest.$ac_objext; then
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 ac_c_werror_flag=$ac_save_c_werror_flag
3093 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3094 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3095 if test "$ac_test_CFLAGS" = set; then
3096 CFLAGS=$ac_save_CFLAGS
3097 elif test $ac_cv_prog_cc_g = yes; then
3098 if test "$GCC" = yes; then
3104 if test "$GCC" = yes; then
3110 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3111 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_cc_c89+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 ac_cv_prog_cc_c89=no
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3125 #include <sys/types.h>
3126 #include <sys/stat.h>
3127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3128 struct buf { int x; };
3129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3130 static char *e (p, i)
3136 static char *f (char * (*g) (char **, int), char **p, ...)
3141 s = g (p, va_arg (v,int));
3146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3147 function prototypes and stuff, but not '\xHH' hex character constants.
3148 These don't provoke an error unfortunately, instead are silently treated
3149 as 'x'. The following induces an error, until -std is added to get
3150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3151 array size at least. It's necessary to write '\x00'==0 to get something
3152 that's true only with -std. */
3153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3156 inside strings and character constants. */
3158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3160 int test (int i, double x);
3161 struct s1 {int (*f) (int a);};
3162 struct s2 {int (*f) (double a);};
3163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3177 CC="$ac_save_CC $ac_arg"
3178 rm -f conftest.$ac_objext
3179 if { (ac_try="$ac_compile"
3181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3182 *) ac_try_echo
=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3187 grep -v '^ *+' conftest.er1
>conftest.err
3189 cat conftest.err
>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } && {
3192 test -z "$ac_c_werror_flag" ||
3193 test ! -s conftest.err
3194 } && test -s conftest.
$ac_objext; then
3195 ac_cv_prog_cc_c89
=$ac_arg
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.
$ac_ext >&5
3203 rm -f core conftest.err conftest.
$ac_objext
3204 test "x$ac_cv_prog_cc_c89" != "xno" && break
3206 rm -f conftest.
$ac_ext
3211 case "x$ac_cv_prog_cc_c89" in
3213 { echo "$as_me:$LINENO: result: none needed" >&5
3214 echo "${ECHO_T}none needed" >&6; } ;;
3216 { echo "$as_me:$LINENO: result: unsupported" >&5
3217 echo "${ECHO_T}unsupported" >&6; } ;;
3219 CC
="$CC $ac_cv_prog_cc_c89"
3220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3221 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3226 ac_cpp
='$CPP $CPPFLAGS'
3227 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3231 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3232 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3233 if test "${lt_cv_path_SED+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 # Loop through the user's path and test for sed and gsed.
3237 # Then use that list of sed's as ones to test for truncation.
3238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir
=.
3243 for lt_ac_prog
in sed gsed
; do
3244 for ac_exec_ext
in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3246 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3254 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3255 # along with /bin/sed that truncates output.
3256 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3257 test ! -f $lt_ac_sed && continue
3258 cat /dev
/null
> conftest.
in
3260 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3261 # Check for GNU sed and select it if it is found.
3262 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3263 lt_cv_path_SED
=$lt_ac_sed
3267 cat conftest.
in conftest.
in >conftest.tmp
3268 mv conftest.tmp conftest.
in
3269 cp conftest.
in conftest.
nl
3271 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3272 cmp -s conftest.out conftest.
nl ||
break
3273 # 10000 chars as input seems more than enough
3274 test $lt_ac_count -gt 10 && break
3275 lt_ac_count
=`expr $lt_ac_count + 1`
3276 if test $lt_ac_count -gt $lt_ac_max; then
3277 lt_ac_max
=$lt_ac_count
3278 lt_cv_path_SED
=$lt_ac_sed
3287 { echo "$as_me:$LINENO: result: $SED" >&5
3288 echo "${ECHO_T}$SED" >&6; }
3290 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3291 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3292 if test "${ac_cv_path_GREP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 # Extract the first word of "grep ggrep" to use in msg output
3296 if test -z "$GREP"; then
3297 set dummy
grep ggrep
; ac_prog_name
=$2
3298 if test "${ac_cv_path_GREP+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 ac_path_GREP_found
=false
3302 # Loop through the user's path and test for each of PROGNAME-LIST
3303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3304 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3307 test -z "$as_dir" && as_dir
=.
3308 for ac_prog
in grep ggrep
; do
3309 for ac_exec_ext
in '' $ac_executable_extensions; do
3310 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3311 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3312 # Check for GNU ac_path_GREP and select it if it is found.
3313 # Check for GNU $ac_path_GREP
3314 case `"$ac_path_GREP" --version 2>&1` in
3316 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3319 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3322 cat "conftest.in" "conftest.in" >"conftest.tmp"
3323 mv "conftest.tmp" "conftest.in"
3324 cp "conftest.in" "conftest.nl"
3325 echo 'GREP' >> "conftest.nl"
3326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3327 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3328 ac_count
=`expr $ac_count + 1`
3329 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3330 # Best one so far, save it but keep looking for a better one
3331 ac_cv_path_GREP
="$ac_path_GREP"
3332 ac_path_GREP_max
=$ac_count
3334 # 10*(2^10) chars as input seems more than enough
3335 test $ac_count -gt 10 && break
3337 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3341 $ac_path_GREP_found && break 3
3351 GREP
="$ac_cv_path_GREP"
3352 if test -z "$GREP"; then
3353 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3354 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3355 { (exit 1); exit 1; }; }
3359 ac_cv_path_GREP
=$GREP
3364 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3365 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3366 GREP
="$ac_cv_path_GREP"
3369 { echo "$as_me:$LINENO: checking for egrep" >&5
3370 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3371 if test "${ac_cv_path_EGREP+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3375 then ac_cv_path_EGREP
="$GREP -E"
3377 # Extract the first word of "egrep" to use in msg output
3378 if test -z "$EGREP"; then
3379 set dummy
egrep; ac_prog_name
=$2
3380 if test "${ac_cv_path_EGREP+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_path_EGREP_found
=false
3384 # Loop through the user's path and test for each of PROGNAME-LIST
3385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3386 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3389 test -z "$as_dir" && as_dir
=.
3390 for ac_prog
in egrep; do
3391 for ac_exec_ext
in '' $ac_executable_extensions; do
3392 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3393 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3394 # Check for GNU ac_path_EGREP and select it if it is found.
3395 # Check for GNU $ac_path_EGREP
3396 case `"$ac_path_EGREP" --version 2>&1` in
3398 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3401 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3404 cat "conftest.in" "conftest.in" >"conftest.tmp"
3405 mv "conftest.tmp" "conftest.in"
3406 cp "conftest.in" "conftest.nl"
3407 echo 'EGREP' >> "conftest.nl"
3408 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3409 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3410 ac_count
=`expr $ac_count + 1`
3411 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3412 # Best one so far, save it but keep looking for a better one
3413 ac_cv_path_EGREP
="$ac_path_EGREP"
3414 ac_path_EGREP_max
=$ac_count
3416 # 10*(2^10) chars as input seems more than enough
3417 test $ac_count -gt 10 && break
3419 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3423 $ac_path_EGREP_found && break 3
3433 EGREP
="$ac_cv_path_EGREP"
3434 if test -z "$EGREP"; then
3435 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3436 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3437 { (exit 1); exit 1; }; }
3441 ac_cv_path_EGREP
=$EGREP
3447 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3448 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3449 EGREP
="$ac_cv_path_EGREP"
3453 # Check whether --with-gnu-ld was given.
3454 if test "${with_gnu_ld+set}" = set; then
3455 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
3461 if test "$GCC" = yes; then
3462 # Check if gcc -print-prog-name=ld gives a path.
3463 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3464 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3467 # gcc leaves a trailing carriage return which upsets mingw
3468 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3470 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3473 # Accept absolute paths.
3475 re_direlt
='/[^/][^/]*/\.\./'
3476 # Canonicalize the pathname of ld
3477 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3478 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3479 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3481 test -z "$LD" && LD
="$ac_prog"
3484 # If it fails, then pretend we aren't using GCC.
3488 # If it is relative, then search for the first ld in PATH.
3492 elif test "$with_gnu_ld" = yes; then
3493 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3494 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3496 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3497 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3499 if test "${lt_cv_path_LD+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -z "$LD"; then
3503 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3504 for ac_dir
in $PATH; do
3506 test -z "$ac_dir" && ac_dir
=.
3507 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3508 lt_cv_path_LD
="$ac_dir/$ac_prog"
3509 # Check to see if the program is GNU ld. I'd rather use --version,
3510 # but apparently some variants of GNU ld only accept -v.
3511 # Break only if it was the GNU/non-GNU ld that we prefer.
3512 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3513 *GNU
* |
*'with BFD'*)
3514 test "$with_gnu_ld" != no
&& break
3517 test "$with_gnu_ld" != yes && break
3524 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3529 if test -n "$LD"; then
3530 { echo "$as_me:$LINENO: result: $LD" >&5
3531 echo "${ECHO_T}$LD" >&6; }
3533 { echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6; }
3536 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3537 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3538 { (exit 1); exit 1; }; }
3539 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3540 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3541 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3545 case `$LD -v 2>&1 </dev/null` in
3546 *GNU
* |
*'with BFD'*)
3547 lt_cv_prog_gnu_ld
=yes
3550 lt_cv_prog_gnu_ld
=no
3554 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3555 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3556 with_gnu_ld
=$lt_cv_prog_gnu_ld
3559 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3560 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3561 if test "${lt_cv_ld_reload_flag+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 lt_cv_ld_reload_flag
='-r'
3566 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3567 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3568 reload_flag
=$lt_cv_ld_reload_flag
3569 case $reload_flag in
3571 *) reload_flag
=" $reload_flag" ;;
3573 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3576 if test "$GCC" = yes; then
3577 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3579 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3584 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3585 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3586 if test "${lt_cv_path_NM+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test -n "$NM"; then
3590 # Let the user override the test.
3593 lt_nm_to_check
="${ac_tool_prefix}nm"
3594 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3595 lt_nm_to_check
="$lt_nm_to_check nm"
3597 for lt_tmp_nm
in $lt_nm_to_check; do
3598 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3599 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
3601 test -z "$ac_dir" && ac_dir
=.
3602 tmp_nm
="$ac_dir/$lt_tmp_nm"
3603 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3604 # Check to see if the nm accepts a BSD-compat flag.
3605 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3606 # nm: unknown option "B" ignored
3607 # Tru64's nm complains that /dev/null is an invalid object file
3608 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3609 */dev
/null
* |
*'Invalid file or object type'*)
3610 lt_cv_path_NM
="$tmp_nm -B"
3614 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3616 lt_cv_path_NM
="$tmp_nm -p"
3620 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3621 continue # so that we can try to find one that supports BSD flags
3630 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3633 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3634 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3637 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3638 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3640 if test "$LN_S" = "ln -s"; then
3641 { echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6; }
3644 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3645 echo "${ECHO_T}no, using $LN_S" >&6; }
3648 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3649 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3650 if test "${lt_cv_deplibs_check_method+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3654 lt_cv_file_magic_test_file
=
3655 lt_cv_deplibs_check_method
='unknown'
3656 # Need to set the preceding variable on all platforms that support
3657 # interlibrary dependencies.
3658 # 'none' -- dependencies not supported.
3659 # `unknown' -- same as none, but documents that we really don't know.
3660 # 'pass_all' -- all dependencies passed with no checks.
3661 # 'test_compile' -- check by making test program.
3662 # 'file_magic [[regex]]' -- check by looking for files in library path
3663 # which responds to the $file_magic_cmd with a given extended regex.
3664 # If you have `file' or equivalent on your system and you're not sure
3665 # whether `pass_all' will *always* work, you probably want this one.
3669 lt_cv_deplibs_check_method
=pass_all
3673 lt_cv_deplibs_check_method
=pass_all
3677 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3678 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3679 lt_cv_file_magic_test_file
=/shlib
/libc.so
3683 # func_win32_libid is a shell function defined in ltmain.sh
3684 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3685 lt_cv_file_magic_cmd
='func_win32_libid'
3689 # Base MSYS/MinGW do not provide the 'file' command needed by
3690 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3691 # unless we find 'file', for example because we are cross-compiling.
3692 if ( file / ) >/dev
/null
2>&1; then
3693 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3694 lt_cv_file_magic_cmd
='func_win32_libid'
3696 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3697 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3701 darwin
* | rhapsody
*)
3702 lt_cv_deplibs_check_method
=pass_all
3705 freebsd
* | dragonfly
*)
3706 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3709 # Not sure whether the presence of OpenBSD here was a mistake.
3710 # Let's accept both of them until this is cleared up.
3711 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3712 lt_cv_file_magic_cmd
=/usr
/bin
/file
3713 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3717 lt_cv_deplibs_check_method
=pass_all
3722 lt_cv_deplibs_check_method
=pass_all
3725 hpux10.20
* | hpux11
*)
3726 lt_cv_file_magic_cmd
=/usr
/bin
/file
3729 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3730 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3733 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]'
3734 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
3737 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3738 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3744 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3745 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
3748 irix5
* | irix6
* | nonstopux
*)
3750 *-32|
*"-32 ") libmagic
=32-bit;;
3751 *-n32|
*"-n32 ") libmagic
=N32
;;
3752 *-64|
*"-64 ") libmagic
=64-bit;;
3753 *) libmagic
=never-match
;;
3755 lt_cv_deplibs_check_method
=pass_all
3758 # This must be Linux ELF.
3759 linux
* | k
*bsd
*-gnu)
3760 lt_cv_deplibs_check_method
=pass_all
3764 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3765 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3767 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3772 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3773 lt_cv_file_magic_cmd
=/usr
/bin
/file
3774 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3778 lt_cv_deplibs_check_method
=unknown
3782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3783 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3785 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3789 osf3
* | osf4
* | osf5
*)
3790 lt_cv_deplibs_check_method
=pass_all
3794 lt_cv_deplibs_check_method
=pass_all
3798 lt_cv_deplibs_check_method
=pass_all
3802 case $host_vendor in
3804 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]'
3805 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3808 lt_cv_deplibs_check_method
=pass_all
3811 lt_cv_file_magic_cmd
='/bin/file'
3812 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3815 lt_cv_file_magic_cmd
='/bin/file'
3816 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3817 lt_cv_file_magic_test_file
=/lib
/libc.so
3820 lt_cv_deplibs_check_method
=pass_all
3823 lt_cv_deplibs_check_method
=pass_all
3828 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
3829 lt_cv_deplibs_check_method
=pass_all
3834 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3835 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3836 file_magic_cmd
=$lt_cv_file_magic_cmd
3837 deplibs_check_method
=$lt_cv_deplibs_check_method
3838 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
3843 # If no C compiler was specified, use CC.
3846 # If no C compiler flags were specified, use CFLAGS.
3847 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
3849 # Allow CC to be a program name with arguments.
3853 # Check whether --enable-libtool-lock was given.
3854 if test "${enable_libtool_lock+set}" = set; then
3855 enableval
=$enable_libtool_lock;
3858 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3860 # Some flags need to be propagated to the compiler or linker for good
3864 # Find out which ABI we are using.
3865 echo 'int i;' > conftest.
$ac_ext
3866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3867 (eval $ac_compile) 2>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; then
3871 case `/usr/bin/file conftest.$ac_objext` in
3883 # Find out which ABI we are using.
3884 echo '#line 3884 "configure"' > conftest.
$ac_ext
3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; then
3890 if test "$lt_cv_prog_gnu_ld" = yes; then
3891 case `/usr/bin/file conftest.$ac_objext` in
3893 LD
="${LD-ld} -melf32bsmip"
3896 LD
="${LD-ld} -melf32bmipn32"
3899 LD
="${LD-ld} -melf64bmip"
3903 case `/usr/bin/file conftest.$ac_objext` in
3919 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
3920 s390
*-*linux
*|sparc
*-*linux
*)
3921 # Find out which ABI we are using.
3922 echo 'int i;' > conftest.
$ac_ext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; then
3928 case `/usr/bin/file conftest.o` in
3931 x86_64-
*kfreebsd
*-gnu)
3932 LD
="${LD-ld} -m elf_i386_fbsd"
3935 LD
="${LD-ld} -m elf_i386"
3937 ppc64-
*linux
*|powerpc64-
*linux
*)
3938 LD
="${LD-ld} -m elf32ppclinux"
3941 LD
="${LD-ld} -m elf_s390"
3944 LD
="${LD-ld} -m elf32_sparc"
3950 x86_64-
*kfreebsd
*-gnu)
3951 LD
="${LD-ld} -m elf_x86_64_fbsd"
3954 LD
="${LD-ld} -m elf_x86_64"
3956 ppc
*-*linux
*|powerpc
*-*linux
*)
3957 LD
="${LD-ld} -m elf64ppc"
3960 LD
="${LD-ld} -m elf64_s390"
3963 LD
="${LD-ld} -m elf64_sparc"
3973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3974 SAVE_CFLAGS
="$CFLAGS"
3975 CFLAGS
="$CFLAGS -belf"
3976 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3977 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3978 if test "${lt_cv_cc_needs_belf+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 ac_cpp
='$CPP $CPPFLAGS'
3983 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3987 cat >conftest.
$ac_ext <<_ACEOF
3990 cat confdefs.h
>>conftest.
$ac_ext
3991 cat >>conftest.
$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
4002 rm -f conftest.
$ac_objext conftest
$ac_exeext
4003 if { (ac_try
="$ac_link"
4005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>conftest.er1
4011 grep -v '^ *+' conftest.er1 >conftest.err
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && {
4016 test -z "$ac_c_werror_flag" ||
4017 test ! -s conftest.err
4018 } && test -s conftest$ac_exeext &&
4019 $as_test_x conftest$ac_exeext; then
4020 lt_cv_cc_needs_belf=yes
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 lt_cv_cc_needs_belf=no
4028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4029 conftest$ac_exeext conftest.$ac_ext
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4038 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4041 CFLAGS="$SAVE_CFLAGS"
4045 # Find out which ABI we are using.
4046 echo 'int i;' > conftest.$ac_ext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048 (eval $ac_compile) 2>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; then
4052 case `/usr
/bin
/file conftest.o
` in
4054 case $lt_cv_prog_gnu_ld in
4055 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4057 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4071 need_locks="$enable_libtool_lock"
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4080 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4081 # On Suns, sometimes $CPP names a directory.
4082 if test -n "$CPP" && test -d "$CPP"; then
4085 if test -z "$CPP"; then
4086 if test "${ac_cv_prog_CPP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 # Double quotes because CPP needs to be expanded
4090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4093 for ac_c_preproc_warn_flag in '' yes
4095 # Use a header file that comes with gcc, so configuring glibc
4096 # with a fresh cross-compiler works.
4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098 # <limits.h> exists even on freestanding compilers.
4099 # On the NeXT, cc -E runs the code through the compiler's parser,
4100 # not just through cpp. "Syntax error" is here to catch this case.
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4108 # include <limits.h>
4110 # include <assert.h>
4114 if { (ac_try="$ac_cpp conftest.$ac_ext"
4116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4117 *) ac_try_echo
=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1
>conftest.err
4124 cat conftest.err
>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } >/dev
/null
&& {
4127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.
$ac_ext >&5
4135 # Broken: fails on valid input.
4139 rm -f conftest.err conftest.
$ac_ext
4141 # OK, works on sane cases. Now check whether nonexistent headers
4142 # can be detected and how.
4143 cat >conftest.
$ac_ext <<_ACEOF
4146 cat confdefs.h
>>conftest.
$ac_ext
4147 cat >>conftest.
$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <ac_nonexistent.h>
4151 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } >/dev/null && {
4164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4167 # Broken: success on invalid input.
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 # Passes both tests.
4178 rm -f conftest.err conftest.$ac_ext
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.err conftest.
$ac_ext
4183 if $ac_preproc_ok; then
4195 { echo "$as_me:$LINENO: result: $CPP" >&5
4196 echo "${ECHO_T}$CPP" >&6; }
4198 for ac_c_preproc_warn_flag
in '' yes
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
4206 cat >conftest.
$ac_ext <<_ACEOF
4209 cat confdefs.h
>>conftest.
$ac_ext
4210 cat >>conftest.
$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4213 # include <limits.h>
4215 # include <assert.h>
4219 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 # Broken: fails on valid input.
4244 rm -f conftest.err conftest.$ac_ext
4246 # OK, works on sane cases. Now check whether nonexistent headers
4247 # can be detected and how.
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 #include <ac_nonexistent.h>
4256 if { (ac_try="$ac_cpp conftest.$ac_ext"
4258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4259 *) ac_try_echo
=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1
>conftest.err
4266 cat conftest.err
>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } >/dev
/null
&& {
4269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4270 test ! -s conftest.err
4272 # Broken: success on invalid input.
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.
$ac_ext >&5
4278 # Passes both tests.
4283 rm -f conftest.err conftest.
$ac_ext
4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287 rm -f conftest.err conftest.
$ac_ext
4288 if $ac_preproc_ok; then
4291 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&2;}
4295 { (exit 1); exit 1; }; }
4299 ac_cpp
='$CPP $CPPFLAGS'
4300 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4305 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4307 if test "${ac_cv_header_stdc+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 cat >conftest.
$ac_ext <<_ACEOF
4313 cat confdefs.h
>>conftest.
$ac_ext
4314 cat >>conftest.
$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4329 rm -f conftest.
$ac_objext
4330 if { (ac_try
="$ac_compile"
4332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4338 grep -v '^ *+' conftest.er1 >conftest.err
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && {
4343 test -z "$ac_c_werror_flag" ||
4344 test ! -s conftest.err
4345 } && test -s conftest.$ac_objext; then
4346 ac_cv_header_stdc=yes
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4351 ac_cv_header_stdc=no
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 if test $ac_cv_header_stdc = yes; then
4357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358 cat >conftest.$ac_ext <<_ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4368 $EGREP "memchr" >/dev/null 2>&1; then
4371 ac_cv_header_stdc=no
4377 if test $ac_cv_header_stdc = yes; then
4378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4389 $EGREP "free" >/dev/null 2>&1; then
4392 ac_cv_header_stdc=no
4398 if test $ac_cv_header_stdc = yes; then
4399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4400 if test "$cross_compiling" = yes; then
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4411 #if ((' ' & 0x0FF) == 0x020)
4412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4415 # define ISLOWER(c) \
4416 (('a' <= (c) && (c) <= 'i') \
4417 || ('j' <= (c) && (c) <= 'r') \
4418 || ('s' <= (c) && (c) <= 'z'))
4419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4427 for (i = 0; i < 256; i++)
4428 if (XOR (islower (i), ISLOWER (i))
4429 || toupper (i) != TOUPPER (i))
4434 rm -f conftest$ac_exeext
4435 if { (ac_try="$ac_link"
4437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4438 *) ac_try_echo
=$ac_try;;
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_link") 2>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4445 { (case "(($ac_try" in
4446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4456 echo "$as_me: program exited with status $ac_status" >&5
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4461 ac_cv_header_stdc=no
4463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4469 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4470 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4471 if test $ac_cv_header_stdc = yes; then
4473 cat >>confdefs.h <<\_ACEOF
4474 #define STDC_HEADERS 1
4479 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4490 inttypes.h stdint.h unistd.h
4492 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 $ac_includes_default
4506 #include <$ac_header>
4508 rm -f conftest.$ac_objext
4509 if { (ac_try="$ac_compile"
4511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4512 *) ac_try_echo
=$ac_try;;
4514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4515 (eval "$ac_compile") 2>conftest.er1
4517 grep -v '^ *+' conftest.er1
>conftest.err
4519 cat conftest.err
>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } && {
4522 test -z "$ac_c_werror_flag" ||
4523 test ! -s conftest.err
4524 } && test -s conftest.
$ac_objext; then
4525 eval "$as_ac_Header=yes"
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.
$ac_ext >&5
4530 eval "$as_ac_Header=no"
4533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4535 ac_res
=`eval echo '${'$as_ac_Header'}'`
4536 { echo "$as_me:$LINENO: result: $ac_res" >&5
4537 echo "${ECHO_T}$ac_res" >&6; }
4538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4539 cat >>confdefs.h
<<_ACEOF
4540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4549 for ac_header
in dlfcn.h
4551 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4552 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4555 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 ac_res
=`eval echo '${'$as_ac_Header'}'`
4559 { echo "$as_me:$LINENO: result: $ac_res" >&5
4560 echo "${ECHO_T}$ac_res" >&6; }
4562 # Is the header compilable?
4563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4565 cat >conftest.
$ac_ext <<_ACEOF
4568 cat confdefs.h
>>conftest.
$ac_ext
4569 cat >>conftest.
$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4572 #include <$ac_header>
4574 rm -f conftest.
$ac_objext
4575 if { (ac_try
="$ac_compile"
4577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_compile") 2>conftest.er1
4583 grep -v '^ *+' conftest.er1 >conftest.err
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest.$ac_objext; then
4591 ac_header_compiler=yes
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 ac_header_compiler=no
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4601 echo "${ECHO_T}$ac_header_compiler" >&6; }
4603 # Is the header present?
4604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 #include <$ac_header>
4614 if { (ac_try="$ac_cpp conftest.$ac_ext"
4616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4617 *) ac_try_echo
=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4622 grep -v '^ *+' conftest.er1
>conftest.err
4624 cat conftest.err
>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } >/dev
/null
&& {
4627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4628 test ! -s conftest.err
4630 ac_header_preproc
=yes
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.
$ac_ext >&5
4635 ac_header_preproc
=no
4638 rm -f conftest.err conftest.
$ac_ext
4639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4640 echo "${ECHO_T}$ac_header_preproc" >&6; }
4642 # So? What about this header?
4643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4649 ac_header_preproc
=yes
4652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4669 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 eval "$as_ac_Header=\$ac_header_preproc"
4674 ac_res
=`eval echo '${'$as_ac_Header'}'`
4675 { echo "$as_me:$LINENO: result: $ac_res" >&5
4676 echo "${ECHO_T}$ac_res" >&6; }
4679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4680 cat >>confdefs.h
<<_ACEOF
4681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4689 ac_cpp
='$CXXCPP $CPPFLAGS'
4690 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4693 if test -z "$CXX"; then
4694 if test -n "$CCC"; then
4697 if test -n "$ac_tool_prefix"; then
4698 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4701 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704 if test "${ac_cv_prog_CXX+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 if test -n "$CXX"; then
4708 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir
=.
4715 for ac_exec_ext
in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 if test -n "$CXX"; then
4729 { echo "$as_me:$LINENO: result: $CXX" >&5
4730 echo "${ECHO_T}$CXX" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4737 test -n "$CXX" && break
4740 if test -z "$CXX"; then
4742 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4744 # Extract the first word of "$ac_prog", so it can be a program name with args.
4745 set dummy
$ac_prog; ac_word
=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 if test -n "$ac_ct_CXX"; then
4752 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir
=.
4759 for ac_exec_ext
in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4772 if test -n "$ac_ct_CXX"; then
4773 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4774 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4781 test -n "$ac_ct_CXX" && break
4784 if test "x$ac_ct_CXX" = x
; then
4787 case $cross_compiling:$ac_tool_warned in
4789 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4790 whose name does not start with the host triplet. If you think this
4791 configuration is useful to you, please write to autoconf@gnu.org." >&5
4792 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4793 whose name does not start with the host triplet. If you think this
4794 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4795 ac_tool_warned
=yes ;;
4803 # Provide some information about the compiler.
4804 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4805 ac_compiler
=`set X $ac_compile; echo $2`
4806 { (ac_try
="$ac_compiler --version >&5"
4808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_compiler --version >&5") 2>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }
4816 { (ac_try="$ac_compiler -v >&5"
4818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4819 *) ac_try_echo
=$ac_try;;
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_compiler -v >&5") 2>&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }
4826 { (ac_try
="$ac_compiler -V >&5"
4828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_compiler -V >&5") 2>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }
4837 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4838 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4839 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4864 *) ac_try_echo
=$ac_try;;
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4869 grep -v '^ *+' conftest.er1
>conftest.err
4871 cat conftest.err
>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_cxx_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.
$ac_objext; then
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.
$ac_ext >&5
4885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4886 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4889 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4890 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4891 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4892 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4893 ac_save_CXXFLAGS
=$CXXFLAGS
4894 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4895 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_cxx_g+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4900 ac_cxx_werror_flag
=yes
4903 cat >conftest.
$ac_ext <<_ACEOF
4906 cat confdefs.h
>>conftest.
$ac_ext
4907 cat >>conftest.
$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4918 rm -f conftest.
$ac_objext
4919 if { (ac_try
="$ac_compile"
4921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_compile") 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_cxx_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest.$ac_objext; then
4935 ac_cv_prog_cxx_g=yes
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4956 rm -f conftest.$ac_objext
4957 if { (ac_try="$ac_compile"
4959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4960 *) ac_try_echo
=$ac_try;;
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_compile") 2>conftest.er1
4965 grep -v '^ *+' conftest.er1
>conftest.err
4967 cat conftest.err
>&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_cxx_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest.
$ac_objext; then
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.
$ac_ext >&5
4978 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4980 cat >conftest.
$ac_ext <<_ACEOF
4983 cat confdefs.h
>>conftest.
$ac_ext
4984 cat >>conftest.
$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4995 rm -f conftest.
$ac_objext
4996 if { (ac_try
="$ac_compile"
4998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_compile") 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && {
5009 test -z "$ac_cxx_werror_flag" ||
5010 test ! -s conftest.err
5011 } && test -s conftest.$ac_objext; then
5012 ac_cv_prog_cxx_g=yes
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5029 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5030 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5031 if test "$ac_test_CXXFLAGS" = set; then
5032 CXXFLAGS=$ac_save_CXXFLAGS
5033 elif test $ac_cv_prog_cxx_g = yes; then
5034 if test "$GXX" = yes; then
5040 if test "$GXX" = yes; then
5047 ac_cpp='$CXXCPP $CPPFLAGS'
5048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5054 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5055 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
5056 (test "X$CXX" != "Xg++"))) ; then
5058 ac_cpp='$CXXCPP $CPPFLAGS'
5059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5062 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5063 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5064 if test -z "$CXXCPP"; then
5065 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 # Double quotes because CXXCPP needs to be expanded
5069 for CXXCPP in "$CXX -E" "/lib/cpp"
5072 for ac_cxx_preproc_warn_flag in '' yes
5074 # Use a header file that comes with gcc, so configuring glibc
5075 # with a fresh cross-compiler works.
5076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5077 # <limits.h> exists even on freestanding compilers.
5078 # On the NeXT, cc -E runs the code through the compiler's parser,
5079 # not just through cpp. "Syntax error" is here to catch this case.
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5087 # include <limits.h>
5089 # include <assert.h>
5093 if { (ac_try="$ac_cpp conftest.$ac_ext"
5095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5096 *) ac_try_echo
=$ac_try;;
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5101 grep -v '^ *+' conftest.er1
>conftest.err
5103 cat conftest.err
>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev
/null
&& {
5106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5107 test ! -s conftest.err
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.
$ac_ext >&5
5114 # Broken: fails on valid input.
5118 rm -f conftest.err conftest.
$ac_ext
5120 # OK, works on sane cases. Now check whether nonexistent headers
5121 # can be detected and how.
5122 cat >conftest.
$ac_ext <<_ACEOF
5125 cat confdefs.h
>>conftest.
$ac_ext
5126 cat >>conftest.
$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #include <ac_nonexistent.h>
5130 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5138 grep -v '^ *+' conftest.er1 >conftest.err
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } >/dev/null && {
5143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5144 test ! -s conftest.err
5146 # Broken: success on invalid input.
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 # Passes both tests.
5157 rm -f conftest.err conftest.$ac_ext
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.err conftest.
$ac_ext
5162 if $ac_preproc_ok; then
5167 ac_cv_prog_CXXCPP
=$CXXCPP
5170 CXXCPP
=$ac_cv_prog_CXXCPP
5172 ac_cv_prog_CXXCPP
=$CXXCPP
5174 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5175 echo "${ECHO_T}$CXXCPP" >&6; }
5177 for ac_cxx_preproc_warn_flag
in '' yes
5179 # Use a header file that comes with gcc, so configuring glibc
5180 # with a fresh cross-compiler works.
5181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5182 # <limits.h> exists even on freestanding compilers.
5183 # On the NeXT, cc -E runs the code through the compiler's parser,
5184 # not just through cpp. "Syntax error" is here to catch this case.
5185 cat >conftest.
$ac_ext <<_ACEOF
5188 cat confdefs.h
>>conftest.
$ac_ext
5189 cat >>conftest.
$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5192 # include <limits.h>
5194 # include <assert.h>
5198 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5206 grep -v '^ *+' conftest.er1 >conftest.err
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } >/dev/null && {
5211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5212 test ! -s conftest.err
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 # Broken: fails on valid input.
5223 rm -f conftest.err conftest.$ac_ext
5225 # OK, works on sane cases. Now check whether nonexistent headers
5226 # can be detected and how.
5227 cat >conftest.$ac_ext <<_ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <ac_nonexistent.h>
5235 if { (ac_try="$ac_cpp conftest.$ac_ext"
5237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5238 *) ac_try_echo
=$ac_try;;
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5243 grep -v '^ *+' conftest.er1
>conftest.err
5245 cat conftest.err
>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } >/dev
/null
&& {
5248 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5249 test ! -s conftest.err
5251 # Broken: success on invalid input.
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.
$ac_ext >&5
5257 # Passes both tests.
5262 rm -f conftest.err conftest.
$ac_ext
5265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5266 rm -f conftest.err conftest.
$ac_ext
5267 if $ac_preproc_ok; then
5270 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5271 See \`config.log' for more details." >&5
5272 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5273 See \`config.log' for more details." >&2;}
5274 { (exit 1); exit 1; }; }
5278 ac_cpp
='$CXXCPP $CPPFLAGS'
5279 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5287 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5288 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5290 if test -n "$ac_tool_prefix"; then
5291 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
5293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5294 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5297 if test "${ac_cv_prog_F77+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 if test -n "$F77"; then
5301 ac_cv_prog_F77
="$F77" # Let the user override the test.
5303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir
=.
5308 for ac_exec_ext
in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 if test -n "$F77"; then
5322 { echo "$as_me:$LINENO: result: $F77" >&5
5323 echo "${ECHO_T}$F77" >&6; }
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5330 test -n "$F77" && break
5333 if test -z "$F77"; then
5335 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
5337 # Extract the first word of "$ac_prog", so it can be a program name with args.
5338 set dummy
$ac_prog; ac_word
=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 if test -n "$ac_ct_F77"; then
5345 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir
=.
5352 for ac_exec_ext
in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_F77
="$ac_prog"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5365 if test -n "$ac_ct_F77"; then
5366 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5367 echo "${ECHO_T}$ac_ct_F77" >&6; }
5369 { echo "$as_me:$LINENO: result: no" >&5
5370 echo "${ECHO_T}no" >&6; }
5374 test -n "$ac_ct_F77" && break
5377 if test "x$ac_ct_F77" = x
; then
5380 case $cross_compiling:$ac_tool_warned in
5382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5383 whose name does not start with the host triplet. If you think this
5384 configuration is useful to you, please write to autoconf@gnu.org." >&5
5385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5386 whose name does not start with the host triplet. If you think this
5387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5388 ac_tool_warned
=yes ;;
5395 # Provide some information about the compiler.
5396 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5397 ac_compiler
=`set X $ac_compile; echo $2`
5398 { (ac_try
="$ac_compiler --version >&5"
5400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compiler --version >&5") 2>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }
5408 { (ac_try="$ac_compiler -v >&5"
5410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5411 *) ac_try_echo
=$ac_try;;
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_compiler -v >&5") 2>&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }
5418 { (ac_try
="$ac_compiler -V >&5"
5420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_compiler -V >&5") 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }
5430 # If we don't use `.F
' as extension, the preprocessor is not run on the
5431 # input file. (Note that this only needs to work for GNU compilers.)
5434 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5435 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5436 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 cat >conftest.$ac_ext <<_ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (ac_try="$ac_compile"
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_compile") 2>conftest.er1
5456 grep -v '^
*+' conftest.er1 >conftest.err
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_f77_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest.$ac_objext; then
5466 echo "$as_me: failed program was:" >&5
5467 sed 's
/^
/|
/' conftest.$ac_ext >&5
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5476 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5477 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5479 ac_test_FFLAGS=${FFLAGS+set}
5480 ac_save_FFLAGS=$FFLAGS
5482 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5483 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5484 if test "${ac_cv_prog_f77_g+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 cat >conftest.$ac_ext <<_ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5502 grep -v '^
*+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_f77_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_prog_f77_g=yes
5512 echo "$as_me: failed program was:" >&5
5513 sed 's
/^
/|
/' conftest.$ac_ext >&5
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5522 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5523 if test "$ac_test_FFLAGS" = set; then
5524 FFLAGS=$ac_save_FFLAGS
5525 elif test $ac_cv_prog_f77_g = yes; then
5526 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5532 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5539 G77=`test $ac_compiler_gnu = yes && echo yes`
5541 ac_cpp='$CPP $CPPFLAGS'
5542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5543 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
5549 # find the maximum length of command line arguments
5550 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5551 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5552 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 # On DJGPP, this test can blow up pretty badly due to problems in libc
5561 # (any single argument exceeding 2000 bytes causes a buffer overrun
5562 # during glob expansion). Even if it were fixed, the result of this
5563 # check would be larger than it should be.
5564 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5568 # Under GNU Hurd, this test is not required because there is
5569 # no limit to the length of command line arguments.
5570 # Libtool will interpret -1 as no limit whatsoever
5571 lt_cv_sys_max_cmd_len
=-1;
5575 # On Win9x/ME, this test blows up -- it succeeds, but takes
5576 # about 5 minutes as the teststring grows exponentially.
5577 # Worse, since 9x/ME are not pre-emptively multitasking,
5578 # you end up with a "frozen" computer, even though with patience
5579 # the test eventually succeeds (with a max line length of 256k).
5580 # Instead, let's just punt: use the minimum linelength reported by
5581 # all of the supported platforms: 8192 (on NT/2K/XP).
5582 lt_cv_sys_max_cmd_len
=8192;
5586 # On AmigaOS with pdksh, this test takes hours, literally.
5587 # So we just punt and use a minimum line length of 8192.
5588 lt_cv_sys_max_cmd_len
=8192;
5591 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5592 # This has been around since 386BSD, at least. Likely further.
5593 if test -x /sbin
/sysctl
; then
5594 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5595 elif test -x /usr
/sbin
/sysctl
; then
5596 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5598 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5600 # And add a safety zone
5601 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5602 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5607 lt_cv_sys_max_cmd_len
=196608
5611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5613 # nice to cause kernel panics so lets avoid the loop below.
5614 # First set a reasonable default.
5615 lt_cv_sys_max_cmd_len
=16384
5617 if test -x /sbin
/sysconfig
; then
5618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5619 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5624 lt_cv_sys_max_cmd_len
=102400
5626 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5627 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5628 if test -n "$kargmax"; then
5629 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5631 lt_cv_sys_max_cmd_len
=32768
5635 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5636 if test -n "$lt_cv_sys_max_cmd_len"; then
5637 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5638 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5640 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5641 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5642 = "XX$teststring") >/dev
/null
2>&1 &&
5643 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5644 lt_cv_sys_max_cmd_len
=$new_result &&
5645 test $i != 17 # 1/2 MB should be enough
5648 teststring
=$teststring$teststring
5651 # Add a significant safety factor because C++ compilers can tack on massive
5652 # amounts of additional arguments before passing them to the linker.
5653 # It appears as though 1/2 is a usable value.
5654 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5661 if test -n $lt_cv_sys_max_cmd_len ; then
5662 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5663 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5665 { echo "$as_me:$LINENO: result: none" >&5
5666 echo "${ECHO_T}none" >&6; }
5673 # Check for command to grab the raw symbol name followed by C symbol from nm.
5674 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5675 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5676 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 # These are sane defaults that work on at least a few old systems.
5681 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5683 # Character class describing NM global symbol codes.
5684 symcode
='[BCDEGRST]'
5686 # Regexp to match symbols that can be accessed directly from C.
5687 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5689 # Transform an extracted symbol line into a proper C declaration
5690 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5692 # Transform an extracted symbol line into symbol name and symbol address
5693 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'"
5695 # Define system-specific variables.
5700 cygwin
* | mingw
* | pw32
*)
5701 symcode
='[ABCDGISTW]'
5703 hpux
*) # Its linker distinguishes data from code symbols
5704 if test "$host_cpu" = ia64
; then
5705 symcode
='[ABCDEGRST]'
5707 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5708 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'"
5710 linux
* | k
*bsd
*-gnu)
5711 if test "$host_cpu" = ia64
; then
5712 symcode
='[ABCDGIRSTW]'
5713 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5714 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'"
5718 symcode
='[BCDEGRST]'
5721 symcode
='[BCDEGQRST]'
5732 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
5740 # Handle CRLF in mingw tool chain
5744 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5748 # If we're using GNU nm, then use its standard symbol codes.
5749 case `$NM -V 2>&1` in
5750 *GNU
* |
*'with BFD'*)
5751 symcode
='[ABCDGIRSTW]' ;;
5754 # Try without a prefix undercore, then with it.
5755 for ac_symprfx
in "" "_"; do
5757 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5758 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5760 # Write the raw and C identifiers.
5761 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5763 # Check to see that the pipe works correctly.
5767 cat > conftest.
$ac_ext <<EOF
5772 void nm_test_func(){}
5776 int main(){nm_test_var='a';nm_test_func();return(0);}
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; then
5784 # Now try to grab the symbols.
5786 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5787 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && test -s "$nlist"; then
5791 # Try sorting and uniquifying the output.
5792 if sort "$nlist" |
uniq > "$nlist"T
; then
5793 mv -f "$nlist"T
"$nlist"
5798 # Make sure that we snagged all the symbols we need.
5799 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5800 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5801 cat <<EOF > conftest.$ac_ext
5807 # Now generate the symbol file.
5808 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5810 cat <<EOF >> conftest.$ac_ext
5811 #if defined (__STDC__) && __STDC__
5812 # define lt_ptr_t void *
5814 # define lt_ptr_t char *
5818 /* The mapping between symbol names and symbols. */
5823 lt_preloaded_symbols[] =
5826 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5827 cat <<\EOF
>> conftest.
$ac_ext
5835 # Now try linking the two files.
5836 mv conftest.
$ac_objext conftstm.
$ac_objext
5837 lt_save_LIBS
="$LIBS"
5838 lt_save_CFLAGS
="$CFLAGS"
5839 LIBS
="conftstm.$ac_objext"
5840 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842 (eval $ac_link) 2>&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5848 LIBS
="$lt_save_LIBS"
5849 CFLAGS
="$lt_save_CFLAGS"
5851 echo "cannot find nm_test_func in $nlist" >&5
5854 echo "cannot find nm_test_var in $nlist" >&5
5857 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5860 echo "$progname: failed program was:" >&5
5861 cat conftest.
$ac_ext >&5
5863 rm -rf conftest
* conftst
*
5865 # Do not use the global_symbol_pipe unless it works.
5866 if test "$pipe_works" = yes; then
5869 lt_cv_sys_global_symbol_pipe
=
5875 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5876 lt_cv_sys_global_symbol_to_cdecl
=
5878 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5879 { echo "$as_me:$LINENO: result: failed" >&5
5880 echo "${ECHO_T}failed" >&6; }
5882 { echo "$as_me:$LINENO: result: ok" >&5
5883 echo "${ECHO_T}ok" >&6; }
5886 { echo "$as_me:$LINENO: checking for objdir" >&5
5887 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5888 if test "${lt_cv_objdir+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 rm -f .libs
2>/dev
/null
5892 mkdir .libs
2>/dev
/null
5893 if test -d .libs
; then
5896 # MS-DOS does not allow filenames that begin with a dot.
5899 rmdir .libs
2>/dev
/null
5901 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5902 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5903 objdir
=$lt_cv_objdir
5911 # AIX sometimes has problems with the GCC collect2 program. For some
5912 # reason, if we set the COLLECT_NAMES environment variable, the problems
5913 # vanish in a puff of smoke.
5914 if test "X${COLLECT_NAMES+set}" != Xset
; then
5916 export COLLECT_NAMES
5921 # Sed substitution that helps us do robust quoting. It backslashifies
5922 # metacharacters that are still active within double-quoted strings.
5923 Xsed
='sed -e 1s/^X//'
5924 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5926 # Same as above, but do not quote variable references.
5927 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5929 # Sed substitution to delay expansion of an escaped shell variable in a
5930 # double_quote_subst'ed string.
5931 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5933 # Sed substitution to avoid accidental globbing in evaled expressions
5934 no_glob_subst
='s/\*/\\\*/g'
5940 default_ofile
=libtool
5941 can_build_shared
=yes
5943 # All known linkers require a `.a' archive for static linking (except MSVC,
5944 # which needs '.lib').
5946 ltmain
="$ac_aux_dir/ltmain.sh"
5947 ofile
="$default_ofile"
5948 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5950 if test -n "$ac_tool_prefix"; then
5951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5952 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955 if test "${ac_cv_prog_AR+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 if test -n "$AR"; then
5959 ac_cv_prog_AR
="$AR" # Let the user override the test.
5961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir
=.
5966 for ac_exec_ext
in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 if test -n "$AR"; then
5980 { echo "$as_me:$LINENO: result: $AR" >&5
5981 echo "${ECHO_T}$AR" >&6; }
5983 { echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6; }
5989 if test -z "$ac_cv_prog_AR"; then
5991 # Extract the first word of "ar", so it can be a program name with args.
5992 set dummy
ar; ac_word
=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 if test -n "$ac_ct_AR"; then
5999 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir
=.
6006 for ac_exec_ext
in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008 ac_cv_prog_ac_ct_AR
="ar"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6019 if test -n "$ac_ct_AR"; then
6020 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6021 echo "${ECHO_T}$ac_ct_AR" >&6; }
6023 { echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6; }
6027 if test "x$ac_ct_AR" = x
; then
6030 case $cross_compiling:$ac_tool_warned in
6032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet. If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&5
6035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6036 whose name does not start with the host triplet. If you think this
6037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6038 ac_tool_warned
=yes ;;
6046 if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6048 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_RANLIB+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$RANLIB"; then
6055 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir
=.
6062 for ac_exec_ext
in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 RANLIB
=$ac_cv_prog_RANLIB
6075 if test -n "$RANLIB"; then
6076 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6077 echo "${ECHO_T}$RANLIB" >&6; }
6079 { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6085 if test -z "$ac_cv_prog_RANLIB"; then
6086 ac_ct_RANLIB
=$RANLIB
6087 # Extract the first word of "ranlib", so it can be a program name with args.
6088 set dummy ranlib
; ac_word
=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 if test -n "$ac_ct_RANLIB"; then
6095 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir
=.
6102 for ac_exec_ext
in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6115 if test -n "$ac_ct_RANLIB"; then
6116 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6117 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6119 { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6123 if test "x$ac_ct_RANLIB" = x
; then
6126 case $cross_compiling:$ac_tool_warned in
6128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6129 whose name does not start with the host triplet. If you think this
6130 configuration is useful to you, please write to autoconf@gnu.org." >&5
6131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6132 whose name does not start with the host triplet. If you think this
6133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6134 ac_tool_warned
=yes ;;
6136 RANLIB
=$ac_ct_RANLIB
6139 RANLIB
="$ac_cv_prog_RANLIB"
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6144 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_STRIP+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 if test -n "$STRIP"; then
6151 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir
=.
6158 for ac_exec_ext
in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 STRIP
=$ac_cv_prog_STRIP
6171 if test -n "$STRIP"; then
6172 { echo "$as_me:$LINENO: result: $STRIP" >&5
6173 echo "${ECHO_T}$STRIP" >&6; }
6175 { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6181 if test -z "$ac_cv_prog_STRIP"; then
6183 # Extract the first word of "strip", so it can be a program name with args.
6184 set dummy strip
; ac_word
=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 if test -n "$ac_ct_STRIP"; then
6191 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6197 test -z "$as_dir" && as_dir
=.
6198 for ac_exec_ext
in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_STRIP
="strip"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6211 if test -n "$ac_ct_STRIP"; then
6212 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6213 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6215 { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6219 if test "x$ac_ct_STRIP" = x
; then
6222 case $cross_compiling:$ac_tool_warned in
6224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet. If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&5
6227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6228 whose name does not start with the host triplet. If you think this
6229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6230 ac_tool_warned
=yes ;;
6235 STRIP
="$ac_cv_prog_STRIP"
6240 old_CFLAGS
="$CFLAGS"
6242 # Set sane defaults for various variables
6243 test -z "$AR" && AR
=ar
6244 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6245 test -z "$AS" && AS
=as
6246 test -z "$CC" && CC
=cc
6247 test -z "$LTCC" && LTCC
=$CC
6248 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6249 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6250 test -z "$LD" && LD
=ld
6251 test -z "$LN_S" && LN_S
="ln -s"
6252 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6253 test -z "$NM" && NM
=nm
6254 test -z "$SED" && SED
=sed
6255 test -z "$OBJDUMP" && OBJDUMP
=objdump
6256 test -z "$RANLIB" && RANLIB
=:
6257 test -z "$STRIP" && STRIP
=:
6258 test -z "$ac_objext" && ac_objext
=o
6260 # Determine commands to create old-style static archives.
6261 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6262 old_postinstall_cmds
='chmod 644 $oldlib'
6263 old_postuninstall_cmds
=
6265 if test -n "$RANLIB"; then
6268 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6271 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6274 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6277 for cc_temp
in $compiler""; do
6279 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6280 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6285 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6288 # Only perform the check for file, if the check method requires it
6289 case $deplibs_check_method in
6291 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6292 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6293 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6294 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6302 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6303 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6304 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6305 for ac_dir
in $ac_dummy; do
6307 test -z "$ac_dir" && ac_dir
=.
6308 if test -f $ac_dir/${ac_tool_prefix}file; then
6309 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6310 if test -n "$file_magic_test_file"; then
6311 case $deplibs_check_method in
6313 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6314 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6315 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6316 $EGREP "$file_magic_regex" > /dev
/null
; then
6321 *** Warning: the command libtool uses to detect shared libraries,
6322 *** $file_magic_cmd, produces output that libtool cannot recognize.
6323 *** The result is that libtool may fail to recognize shared libraries
6324 *** as such. This will affect the creation of libtool libraries that
6325 *** depend on shared libraries, but programs linked with such libtool
6326 *** libraries will work regardless of this problem. Nevertheless, you
6327 *** may want to report the problem to your system manager and/or to
6328 *** bug-libtool@gnu.org
6338 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6343 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6344 if test -n "$MAGIC_CMD"; then
6345 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6346 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6352 if test -z "$lt_cv_path_MAGIC_CMD"; then
6353 if test -n "$ac_tool_prefix"; then
6354 { echo "$as_me:$LINENO: checking for file" >&5
6355 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6356 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6364 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6365 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6366 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6367 for ac_dir
in $ac_dummy; do
6369 test -z "$ac_dir" && ac_dir
=.
6370 if test -f $ac_dir/file; then
6371 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6372 if test -n "$file_magic_test_file"; then
6373 case $deplibs_check_method in
6375 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6376 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6377 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6378 $EGREP "$file_magic_regex" > /dev
/null
; then
6383 *** Warning: the command libtool uses to detect shared libraries,
6384 *** $file_magic_cmd, produces output that libtool cannot recognize.
6385 *** The result is that libtool may fail to recognize shared libraries
6386 *** as such. This will affect the creation of libtool libraries that
6387 *** depend on shared libraries, but programs linked with such libtool
6388 *** libraries will work regardless of this problem. Nevertheless, you
6389 *** may want to report the problem to your system manager and/or to
6390 *** bug-libtool@gnu.org
6400 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6405 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6406 if test -n "$MAGIC_CMD"; then
6407 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6408 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6410 { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6425 rhapsody
* | darwin
*)
6426 if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6428 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
6429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6431 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 if test -n "$DSYMUTIL"; then
6435 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
6437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir
=.
6442 for ac_exec_ext
in '' $ac_executable_extensions; do
6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
6455 if test -n "$DSYMUTIL"; then
6456 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6457 echo "${ECHO_T}$DSYMUTIL" >&6; }
6459 { echo "$as_me:$LINENO: result: no" >&5
6460 echo "${ECHO_T}no" >&6; }
6465 if test -z "$ac_cv_prog_DSYMUTIL"; then
6466 ac_ct_DSYMUTIL
=$DSYMUTIL
6467 # Extract the first word of "dsymutil", so it can be a program name with args.
6468 set dummy dsymutil
; ac_word
=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 if test -n "$ac_ct_DSYMUTIL"; then
6475 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
6477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir
=.
6482 for ac_exec_ext
in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
6495 if test -n "$ac_ct_DSYMUTIL"; then
6496 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6497 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6499 { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6503 if test "x$ac_ct_DSYMUTIL" = x
; then
6506 case $cross_compiling:$ac_tool_warned in
6508 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6509 whose name does not start with the host triplet. If you think this
6510 configuration is useful to you, please write to autoconf@gnu.org." >&5
6511 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6512 whose name does not start with the host triplet. If you think this
6513 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6514 ac_tool_warned
=yes ;;
6516 DSYMUTIL
=$ac_ct_DSYMUTIL
6519 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
6522 if test -n "$ac_tool_prefix"; then
6523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6524 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 if test -n "$NMEDIT"; then
6531 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
6533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir
=.
6538 for ac_exec_ext
in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 NMEDIT
=$ac_cv_prog_NMEDIT
6551 if test -n "$NMEDIT"; then
6552 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6553 echo "${ECHO_T}$NMEDIT" >&6; }
6555 { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6561 if test -z "$ac_cv_prog_NMEDIT"; then
6562 ac_ct_NMEDIT
=$NMEDIT
6563 # Extract the first word of "nmedit", so it can be a program name with args.
6564 set dummy nmedit
; ac_word
=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 if test -n "$ac_ct_NMEDIT"; then
6571 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
6573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir
=.
6578 for ac_exec_ext
in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
6591 if test -n "$ac_ct_NMEDIT"; then
6592 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6593 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6599 if test "x$ac_ct_NMEDIT" = x
; then
6602 case $cross_compiling:$ac_tool_warned in
6604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6605 whose name does not start with the host triplet. If you think this
6606 configuration is useful to you, please write to autoconf@gnu.org." >&5
6607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6608 whose name does not start with the host triplet. If you think this
6609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6610 ac_tool_warned
=yes ;;
6612 NMEDIT
=$ac_ct_NMEDIT
6615 NMEDIT
="$ac_cv_prog_NMEDIT"
6619 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6620 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6621 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 lt_cv_apple_cc_single_mod
=no
6625 if test -z "${LT_MULTI_MODULE}"; then
6626 # By default we will add the -single_module flag. You can override
6627 # by either setting the environment variable LT_MULTI_MODULE
6628 # non-empty at configure time, or by adding -multi_module to the
6630 echo "int foo(void){return 1;}" > conftest.c
6631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6632 -dynamiclib ${wl}-single_module conftest.c
6633 if test -f libconftest.dylib
; then
6634 lt_cv_apple_cc_single_mod
=yes
6635 rm -rf libconftest.dylib
*
6640 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6641 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6642 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6643 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6644 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 lt_cv_ld_exported_symbols_list
=no
6648 save_LDFLAGS
=$LDFLAGS
6649 echo "_main" > conftest.sym
6650 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6651 cat >conftest.
$ac_ext <<_ACEOF
6654 cat confdefs.h
>>conftest.
$ac_ext
6655 cat >>conftest.
$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6666 rm -f conftest.
$ac_objext conftest
$ac_exeext
6667 if { (ac_try
="$ac_link"
6669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_link") 2>conftest.er1
6675 grep -v '^ *+' conftest.er1 >conftest.err
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest$ac_exeext &&
6683 $as_test_x conftest$ac_exeext; then
6684 lt_cv_ld_exported_symbols_list=yes
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6689 lt_cv_ld_exported_symbols_list=no
6692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6693 conftest$ac_exeext conftest.$ac_ext
6694 LDFLAGS="$save_LDFLAGS"
6697 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6698 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6700 rhapsody* | darwin1.[0123])
6701 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6705 # if running on 10.5 or later, the deployment target defaults
6706 # to the OS version, if on x86, and 10.4, the deployment
6707 # target defaults to 10.4. Don't you love it?
6708 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6709 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6710 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6718 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6719 _lt_dar_single_mod='$single_module'
6721 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6722 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6724 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6726 if test "$DSYMUTIL" != ":"; then
6727 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6738 # Check whether --enable-libtool-lock was given.
6739 if test "${enable_libtool_lock+set}" = set; then
6740 enableval=$enable_libtool_lock;
6743 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6746 # Check whether --with-pic was given.
6747 if test "${with_pic+set}" = set; then
6748 withval=$with_pic; pic_mode="$withval"
6753 test -z "$pic_mode" && pic_mode=default
6755 # Use C for the default configuration in the libtool script
6759 ac_cpp='$CPP $CPPFLAGS'
6760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765 # Source file extension for C test sources.
6768 # Object file extension for compiled C test sources.
6772 # Code to be used in simple compile tests
6773 lt_simple_compile_test_code="int some_variable = 0;"
6775 # Code to be used in simple link tests
6776 lt_simple_link_test_code='int main(){return(0);}'
6779 # If no C compiler was specified, use CC.
6782 # If no C compiler flags were specified, use CFLAGS.
6783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6785 # Allow CC to be a program name with arguments.
6789 # save warnings/boilerplate of simple test code
6790 ac_outfile=conftest.$ac_objext
6791 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6793 _lt_compiler_boilerplate=`cat conftest.err
`
6796 ac_outfile=conftest.$ac_objext
6797 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6799 _lt_linker_boilerplate=`cat conftest.err
`
6804 ## There is no encapsulation within the following macros, do not change
6805 ## the running order or otherwise move them around unless you know exactly
6806 ## what you are doing...
6808 lt_prog_compiler_no_builtin_flag=
6810 if test "$GCC" = yes; then
6811 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6814 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6815 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6816 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 lt_cv_prog_compiler_rtti_exceptions=no
6820 ac_outfile=conftest.$ac_objext
6821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6822 lt_compiler_flag="-fno-rtti -fno-exceptions"
6823 # Insert the option either (1) after the last *FLAGS variable, or
6824 # (2) before a word containing "conftest.", or (3) at the end.
6825 # Note that $ac_compile itself does not contain backslashes and begins
6826 # with a dollar sign (not a hyphen), so the echo should work correctly.
6827 # The option is referenced via a variable to avoid confusing sed.
6828 lt_compile=`echo "$ac_compile" |
$SED \
6829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6831 -e 's:$: $lt_compiler_flag:'`
6832 (eval echo "\"\$as_me:6832: $lt_compile\"" >&5)
6833 (eval "$lt_compile" 2>conftest.err)
6835 cat conftest.err >&5
6836 echo "$as_me:6836: \$? = $ac_status" >&5
6837 if (exit $ac_status) && test -s "$ac_outfile"; then
6838 # The compiler can only warn and ignore the option if not recognized
6839 # So say no if there are warnings other than the usual output.
6840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6843 lt_cv_prog_compiler_rtti_exceptions=yes
6849 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6850 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6852 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6860 lt_prog_compiler_wl=
6861 lt_prog_compiler_pic=
6862 lt_prog_compiler_static=
6864 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6865 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6867 if test "$GCC" = yes; then
6868 lt_prog_compiler_wl='-Wl,'
6869 lt_prog_compiler_static='-static'
6873 # All AIX code is PIC.
6874 if test "$host_cpu" = ia64; then
6875 # AIX 5 now supports IA64 processor
6876 lt_prog_compiler_static='-Bstatic'
6881 # FIXME: we need at least 68020 code to build shared libraries, but
6882 # adding the `-m68020' flag to GCC prevents building anything better,
6884 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6887 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6888 # PIC is the default for these OSes.
6891 mingw
* | cygwin
* | pw32
* | os2
*)
6892 # This hack is so that the source file can tell whether it is being
6893 # built for inclusion in a dll (and should export symbols for example).
6894 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6895 # (--disable-auto-import) libraries
6896 lt_prog_compiler_pic
='-DDLL_EXPORT'
6899 darwin
* | rhapsody
*)
6900 # PIC is the default on this platform
6901 # Common symbols not allowed in MH_DYLIB files
6902 lt_prog_compiler_pic
='-fno-common'
6906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6907 # Instead, we relocate shared libraries at runtime.
6911 # Just because we use GCC doesn't mean we suddenly get shared libraries
6912 # on systems that don't support them.
6913 lt_prog_compiler_can_build_shared
=no
6918 if test -d /usr
/nec
; then
6919 lt_prog_compiler_pic
=-Kconform_pic
6924 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6931 lt_prog_compiler_pic
='-fPIC'
6937 lt_prog_compiler_pic
='-fPIC'
6941 # PORTME Check for flag to pass linker flags through the system compiler.
6944 lt_prog_compiler_wl
='-Wl,'
6945 if test "$host_cpu" = ia64
; then
6946 # AIX 5 now supports IA64 processor
6947 lt_prog_compiler_static
='-Bstatic'
6949 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6953 # PIC is the default on this platform
6954 # Common symbols not allowed in MH_DYLIB files
6955 case $cc_basename in
6957 lt_prog_compiler_pic
='-qnocommon'
6958 lt_prog_compiler_wl
='-Wl,'
6963 mingw
* | cygwin
* | pw32
* | os2
*)
6964 # This hack is so that the source file can tell whether it is being
6965 # built for inclusion in a dll (and should export symbols for example).
6966 lt_prog_compiler_pic
='-DDLL_EXPORT'
6969 hpux9
* | hpux10
* | hpux11
*)
6970 lt_prog_compiler_wl
='-Wl,'
6971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6978 lt_prog_compiler_pic
='+Z'
6981 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6982 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6985 irix5
* | irix6
* | nonstopux
*)
6986 lt_prog_compiler_wl
='-Wl,'
6987 # PIC (with -KPIC) is the default.
6988 lt_prog_compiler_static
='-non_shared'
6992 lt_prog_compiler_pic
='-KPIC'
6993 lt_prog_compiler_static
='-Bstatic'
6996 linux
* | k
*bsd
*-gnu)
6997 case $cc_basename in
6999 lt_prog_compiler_wl
='-Wl,'
7000 lt_prog_compiler_pic
='-KPIC'
7001 lt_prog_compiler_static
='-static'
7003 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7004 # Portland Group compilers (*not* the Pentium gcc compiler,
7005 # which looks to be a dead project)
7006 lt_prog_compiler_wl
='-Wl,'
7007 lt_prog_compiler_pic
='-fpic'
7008 lt_prog_compiler_static
='-Bstatic'
7011 lt_prog_compiler_wl
='-Wl,'
7012 # All Alpha code is PIC.
7013 lt_prog_compiler_static
='-non_shared'
7016 case `$CC -V 2>&1 | sed 5q` in
7019 lt_prog_compiler_pic
='-KPIC'
7020 lt_prog_compiler_static
='-Bstatic'
7021 lt_prog_compiler_wl
='-Wl,'
7024 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7025 lt_prog_compiler_pic
='-KPIC'
7026 lt_prog_compiler_static
='-Bstatic'
7027 lt_prog_compiler_wl
=''
7034 osf3
* | osf4
* | osf5
*)
7035 lt_prog_compiler_wl
='-Wl,'
7036 # All OSF/1 code is PIC.
7037 lt_prog_compiler_static
='-non_shared'
7041 lt_prog_compiler_static
='-non_shared'
7045 lt_prog_compiler_pic
='-KPIC'
7046 lt_prog_compiler_static
='-Bstatic'
7047 case $cc_basename in
7049 lt_prog_compiler_wl
='-Qoption ld ';;
7051 lt_prog_compiler_wl
='-Wl,';;
7056 lt_prog_compiler_wl
='-Qoption ld '
7057 lt_prog_compiler_pic
='-PIC'
7058 lt_prog_compiler_static
='-Bstatic'
7061 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7062 lt_prog_compiler_wl
='-Wl,'
7063 lt_prog_compiler_pic
='-KPIC'
7064 lt_prog_compiler_static
='-Bstatic'
7068 if test -d /usr
/nec
;then
7069 lt_prog_compiler_pic
='-Kconform_pic'
7070 lt_prog_compiler_static
='-Bstatic'
7074 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7075 lt_prog_compiler_wl
='-Wl,'
7076 lt_prog_compiler_pic
='-KPIC'
7077 lt_prog_compiler_static
='-Bstatic'
7081 lt_prog_compiler_wl
='-Wl,'
7082 lt_prog_compiler_can_build_shared
=no
7086 lt_prog_compiler_pic
='-pic'
7087 lt_prog_compiler_static
='-Bstatic'
7091 lt_prog_compiler_can_build_shared
=no
7096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7097 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7100 # Check to make sure the PIC flag actually works.
7102 if test -n "$lt_prog_compiler_pic"; then
7104 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7106 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 lt_cv_prog_compiler_pic_works
=no
7110 ac_outfile
=conftest.
$ac_objext
7111 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7112 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7113 # Insert the option either (1) after the last *FLAGS variable, or
7114 # (2) before a word containing "conftest.", or (3) at the end.
7115 # Note that $ac_compile itself does not contain backslashes and begins
7116 # with a dollar sign (not a hyphen), so the echo should work correctly.
7117 # The option is referenced via a variable to avoid confusing sed.
7118 lt_compile
=`echo "$ac_compile" | $SED \
7119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7121 -e 's:$: $lt_compiler_flag:'`
7122 (eval echo "\"\$as_me:7122: $lt_compile\"" >&5)
7123 (eval "$lt_compile" 2>conftest.err
)
7125 cat conftest.err
>&5
7126 echo "$as_me:7126: \$? = $ac_status" >&5
7127 if (exit $ac_status) && test -s "$ac_outfile"; then
7128 # The compiler can only warn and ignore the option if not recognized
7129 # So say no if there are warnings other than the usual output.
7130 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7131 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7132 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7133 lt_cv_prog_compiler_pic_works
=yes
7139 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7140 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7142 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
7143 case $lt_prog_compiler_pic in
7145 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7148 lt_prog_compiler_pic
=
7149 lt_prog_compiler_can_build_shared
=no
7154 # For platforms which do not support PIC, -DPIC is meaningless:
7156 lt_prog_compiler_pic
=
7159 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7164 # Check to make sure the static flag actually works.
7166 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7167 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7168 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7169 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 lt_cv_prog_compiler_static_works
=no
7173 save_LDFLAGS
="$LDFLAGS"
7174 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7175 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7176 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7177 # The linker can only warn and ignore the option if not recognized
7178 # So say no if there are warnings
7179 if test -s conftest.err
; then
7180 # Append any errors to the config.log.
7181 cat conftest.err
1>&5
7182 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7183 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7184 if diff conftest.exp conftest.er2
>/dev
/null
; then
7185 lt_cv_prog_compiler_static_works
=yes
7188 lt_cv_prog_compiler_static_works
=yes
7192 LDFLAGS
="$save_LDFLAGS"
7195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7196 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7198 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
7201 lt_prog_compiler_static
=
7205 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7207 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 lt_cv_prog_compiler_c_o
=no
7211 $rm -r conftest
2>/dev
/null
7215 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7217 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7218 # Insert the option either (1) after the last *FLAGS variable, or
7219 # (2) before a word containing "conftest.", or (3) at the end.
7220 # Note that $ac_compile itself does not contain backslashes and begins
7221 # with a dollar sign (not a hyphen), so the echo should work correctly.
7222 lt_compile
=`echo "$ac_compile" | $SED \
7223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7225 -e 's:$: $lt_compiler_flag:'`
7226 (eval echo "\"\$as_me:7226: $lt_compile\"" >&5)
7227 (eval "$lt_compile" 2>out
/conftest.err
)
7229 cat out
/conftest.err
>&5
7230 echo "$as_me:7230: \$? = $ac_status" >&5
7231 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7233 # The compiler can only warn and ignore the option if not recognized
7234 # So say no if there are warnings
7235 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7236 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7237 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7238 lt_cv_prog_compiler_c_o
=yes
7243 # SGI C++ compiler will create directory out/ii_files/ for
7244 # template instantiation
7245 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7246 $rm out
/* && rmdir out
7252 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7256 hard_links
="nottested"
7257 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7258 # do not overwrite the value of need_locks provided by the user
7259 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7263 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7265 ln conftest.a conftest.b
2>&5 || hard_links
=no
7266 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7267 { echo "$as_me:$LINENO: result: $hard_links" >&5
7268 echo "${ECHO_T}$hard_links" >&6; }
7269 if test "$hard_links" = no
; then
7270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7271 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7282 allow_undefined_flag
=
7283 enable_shared_with_static_runtimes
=no
7285 archive_expsym_cmds
=
7286 old_archive_From_new_cmds
=
7287 old_archive_from_expsyms_cmds
=
7288 export_dynamic_flag_spec
=
7289 whole_archive_flag_spec
=
7290 thread_safe_flag_spec
=
7291 hardcode_libdir_flag_spec
=
7292 hardcode_libdir_flag_spec_ld
=
7293 hardcode_libdir_separator
=
7296 hardcode_shlibpath_var
=unsupported
7297 link_all_deplibs
=unknown
7298 hardcode_automatic
=no
7301 always_export_symbols
=no
7302 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7303 # include_expsyms should be a list of space-separated symbols to be *always*
7304 # included in the symbol list
7306 # exclude_expsyms can be an extended regexp of symbols to exclude
7307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7309 # as well as any symbol that contains `d'.
7310 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7312 # platforms (ab)use it in PIC code, but their linkers get confused if
7313 # the symbol is explicitly referenced. Since portable code cannot
7314 # rely on this symbol name, it's probably fine to never include it in
7315 # preloaded symbol tables.
7316 # Exclude shared library initialization/finalization symbols.
7317 extract_expsyms_cmds
=
7318 # Just being paranoid about ensuring that cc_basename is set.
7319 for cc_temp
in $compiler""; do
7321 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7322 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7327 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7330 cygwin
* | mingw
* | pw32
*)
7331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7332 # When not using gcc, we currently assume that we are using
7333 # Microsoft Visual C++.
7334 if test "$GCC" != yes; then
7339 # we just hope/assume this is gcc and not c89 (= MSVC++)
7348 if test "$with_gnu_ld" = yes; then
7349 # If archive_cmds runs LD, not CC, wlarc should be empty
7352 # Set some defaults for GNU ld with shared library support. These
7353 # are reset later if shared libraries are not supported. Putting them
7354 # here allows them to be overridden if necessary.
7355 runpath_var
=LD_RUN_PATH
7356 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7357 export_dynamic_flag_spec
='${wl}--export-dynamic'
7358 # ancient GNU ld didn't support --whole-archive et. al.
7359 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7360 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7362 whole_archive_flag_spec
=
7364 supports_anon_versioning
=no
7365 case `$LD -v 2>/dev/null` in
7366 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7367 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7368 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7369 *\
2.11.
*) ;; # other 2.11 versions
7370 *) supports_anon_versioning
=yes ;;
7373 # See if GNU ld supports shared libraries.
7376 # On AIX/PPC, the GNU linker is very broken
7377 if test "$host_cpu" != ia64
; then
7381 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7382 *** to be unable to reliably create shared libraries on AIX.
7383 *** Therefore, libtool is disabling shared libraries support. If you
7384 *** really care for shared libraries, you may want to modify your PATH
7385 *** so that a non-GNU linker is found, and then restart.
7392 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)'
7393 hardcode_libdir_flag_spec
='-L$libdir'
7394 hardcode_minus_L
=yes
7396 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7397 # that the semantics of dynamic libraries on AmigaOS, at least up
7398 # to version 4, is to share data among multiple programs linked
7399 # with the same dynamic library. Since this doesn't match the
7400 # behavior of shared libraries on other platforms, we can't use
7406 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7407 allow_undefined_flag
=unsupported
7408 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7409 # support --undefined. This deserves some investigation. FIXME
7410 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7416 cygwin
* | mingw
* | pw32
*)
7417 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7418 # as there is no search path for DLLs.
7419 hardcode_libdir_flag_spec
='-L$libdir'
7420 allow_undefined_flag
=unsupported
7421 always_export_symbols
=no
7422 enable_shared_with_static_runtimes
=yes
7423 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7425 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7426 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7427 # If the export-symbols file already is a .def file (1st line
7428 # is EXPORTS), use it as is; otherwise, prepend...
7429 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7430 cp $export_symbols $output_objdir/$soname.def;
7432 echo EXPORTS > $output_objdir/$soname.def;
7433 cat $export_symbols >> $output_objdir/$soname.def;
7435 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7443 hardcode_shlibpath_var
=no
7444 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7445 export_dynamic_flag_spec
='${wl}-E'
7446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7447 # Instead, shared libraries are loaded at an image base (0x10000000 by
7448 # default) and relocated if they conflict, which is a slow very memory
7449 # consuming and fragmenting process. To avoid this, we pick a random,
7450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7451 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7452 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7453 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'
7456 gnu
* | linux
* | k
*bsd
*-gnu)
7457 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7459 case $cc_basename,$host_cpu in
7460 pgcc
*) # Portland Group C compiler
7461 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'
7462 tmp_addflag
=' $pic_flag'
7464 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7465 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'
7466 tmp_addflag
=' $pic_flag -Mnomain' ;;
7467 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7468 tmp_addflag
=' -i_dynamic' ;;
7469 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7470 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7471 ifc
* | ifort
*) # Intel Fortran compiler
7472 tmp_addflag
=' -nofor_main' ;;
7474 case `$CC -V 2>&1 | sed 5q` in
7475 *Sun\ C
*) # Sun C 5.9
7476 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'
7477 tmp_sharedflag
='-G' ;;
7478 *Sun\ F
*) # Sun Fortran 8.3
7479 tmp_sharedflag
='-G' ;;
7481 tmp_sharedflag
='-shared' ;;
7483 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7485 if test $supports_anon_versioning = yes; then
7486 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7488 $echo "local: *; };" >> $output_objdir/$libname.ver~
7489 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7497 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7498 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7501 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7502 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7507 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7512 *** create shared libraries on Solaris systems. Therefore, libtool
7513 *** is disabling shared libraries support. We urge you to upgrade GNU
7514 *** binutils to release 2.9.1 or newer. Another option is to modify
7515 *** your PATH or compiler configuration so that the native linker is
7516 *** used, and then restart.
7519 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7520 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7521 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7527 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7528 case `$LD -v 2>&1` in
7529 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7534 *** reliably create shared libraries on SCO systems. Therefore, libtool
7535 *** is disabling shared libraries support. We urge you to upgrade GNU
7536 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7537 *** your PATH or compiler configuration so that the native linker is
7538 *** used, and then restart.
7543 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7544 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7545 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7546 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7555 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7558 hardcode_shlibpath_var
=no
7562 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7563 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7564 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7571 if test "$ld_shlibs" = no
; then
7573 hardcode_libdir_flag_spec
=
7574 export_dynamic_flag_spec
=
7575 whole_archive_flag_spec
=
7578 # PORTME fill in a description of your system's linker (not GNU ld)
7581 allow_undefined_flag
=unsupported
7582 always_export_symbols
=yes
7583 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'
7584 # Note: this linker hardcodes the directories in LIBPATH if there
7585 # are no directories specified by -L.
7586 hardcode_minus_L
=yes
7587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7588 # Neither direct hardcoding nor static linking is supported with a
7590 hardcode_direct
=unsupported
7595 if test "$host_cpu" = ia64
; then
7596 # On IA64, the linker does run time linking by default, so we don't
7597 # have to do anything special.
7598 aix_use_runtimelinking
=no
7599 exp_sym_flag
='-Bexport'
7602 # If we're using GNU nm, then we don't want the "-C" option.
7603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7604 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7605 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'
7607 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'
7609 aix_use_runtimelinking
=no
7611 # Test if we are trying to use run time linking or normal
7612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7613 # need to do runtime linking.
7614 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
7615 for ld_flag
in $LDFLAGS; do
7616 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7617 aix_use_runtimelinking
=yes
7624 exp_sym_flag
='-bexport'
7625 no_entry_flag
='-bnoentry'
7628 # When large executables or shared objects are built, AIX ld can
7629 # have problems creating the table of contents. If linking a library
7630 # or program results in "error TOC overflow" add -mminimal-toc to
7631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7636 hardcode_libdir_separator
=':'
7637 link_all_deplibs
=yes
7639 if test "$GCC" = yes; then
7640 case $host_os in aix4.
[012]|aix4.
[012].
*)
7641 # We only want to do this on AIX 4.2 and lower, the check
7642 # below for broken collect2 doesn't work under 4.3+
7643 collect2name
=`${CC} -print-prog-name=collect2`
7644 if test -f "$collect2name" && \
7645 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7647 # We have reworked collect2
7650 # We have old collect2
7651 hardcode_direct
=unsupported
7652 # It fails to find uninstalled libraries when the uninstalled
7653 # path is not listed in the libpath. Setting hardcode_minus_L
7654 # to unsupported forces relinking
7655 hardcode_minus_L
=yes
7656 hardcode_libdir_flag_spec
='-L$libdir'
7657 hardcode_libdir_separator
=
7661 shared_flag
='-shared'
7662 if test "$aix_use_runtimelinking" = yes; then
7663 shared_flag
="$shared_flag "'${wl}-G'
7667 if test "$host_cpu" = ia64
; then
7668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7669 # chokes on -Wl,-G. The following line is correct:
7672 if test "$aix_use_runtimelinking" = yes; then
7673 shared_flag
='${wl}-G'
7675 shared_flag
='${wl}-bM:SRE'
7680 # It seems that -bexpall does not export symbols beginning with
7681 # underscore (_), so it is better to generate a list of symbols to export.
7682 always_export_symbols
=yes
7683 if test "$aix_use_runtimelinking" = yes; then
7684 # Warning - without using the other runtime loading flags (-brtl),
7685 # -berok will link without error, but may produce a broken library.
7686 allow_undefined_flag
='-berok'
7687 # Determine the default libpath from the value encoded in an empty executable.
7688 cat >conftest.
$ac_ext <<_ACEOF
7691 cat confdefs.h
>>conftest.
$ac_ext
7692 cat >>conftest.
$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7703 rm -f conftest.
$ac_objext conftest
$ac_exeext
7704 if { (ac_try
="$ac_link"
7706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_link") 2>conftest.er1
7712 grep -v '^ *+' conftest.er1 >conftest.err
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest$ac_exeext &&
7720 $as_test_x conftest$ac_exeext; then
7722 lt_aix_libpath_sed='
7723 /Import File Strings/,/^$/ {
7729 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
7730 # Check for a 64-bit object if we didn't find anything.
7731 if test -z "$aix_libpath"; then
7732 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7742 conftest$ac_exeext conftest.$ac_ext
7743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7745 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7746 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"
7748 if test "$host_cpu" = ia64; then
7749 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7750 allow_undefined_flag="-z nodefs"
7751 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"
7753 # Determine the default libpath from the value encoded in an empty executable.
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (ac_try="$ac_link"
7772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7773 *) ac_try_echo
=$ac_try;;
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_link") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1
>conftest.err
7780 cat conftest.err
>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest
$ac_exeext &&
7786 $as_test_x conftest
$ac_exeext; then
7788 lt_aix_libpath_sed
='
7789 /Import File Strings/,/^$/ {
7795 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7796 # Check for a 64-bit object if we didn't find anything.
7797 if test -z "$aix_libpath"; then
7798 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.
$ac_ext >&5
7807 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7808 conftest
$ac_exeext conftest.
$ac_ext
7809 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7811 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7812 # Warning - without using the other run time loading flags,
7813 # -berok will link without error, but may produce a broken library.
7814 no_undefined_flag
=' ${wl}-bernotok'
7815 allow_undefined_flag
=' ${wl}-berok'
7816 # Exported symbols can be pulled into shared objects from archives
7817 whole_archive_flag_spec
='$convenience'
7818 archive_cmds_need_lc
=yes
7819 # This is similar to how AIX traditionally builds its shared libraries.
7820 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'
7826 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)'
7827 hardcode_libdir_flag_spec
='-L$libdir'
7828 hardcode_minus_L
=yes
7829 # see comment about different semantics on the GNU ld section
7834 export_dynamic_flag_spec
=-rdynamic
7837 cygwin
* | mingw
* | pw32
*)
7838 # When not using gcc, we currently assume that we are using
7839 # Microsoft Visual C++.
7840 # hardcode_libdir_flag_spec is actually meaningless, as there is
7841 # no search path for DLLs.
7842 hardcode_libdir_flag_spec
=' '
7843 allow_undefined_flag
=unsupported
7844 # Tell ltmain to make .lib files, not .a files.
7846 # Tell ltmain to make .dll files, not .so files.
7848 # FIXME: Setting linknames here is a bad hack.
7849 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7850 # The linker will automatically build a .lib file if we build a DLL.
7851 old_archive_From_new_cmds
='true'
7852 # FIXME: Should let the user specify the lib program.
7853 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
7854 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7855 enable_shared_with_static_runtimes
=yes
7858 darwin
* | rhapsody
*)
7860 rhapsody
* | darwin1.
[012])
7861 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7864 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7865 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7867 case ${MACOSX_DEPLOYMENT_TARGET} in
7869 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7872 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7878 archive_cmds_need_lc
=no
7880 hardcode_automatic
=yes
7881 hardcode_shlibpath_var
=unsupported
7882 whole_archive_flag_spec
=''
7883 link_all_deplibs
=yes
7884 if test "$GCC" = yes ; then
7885 output_verbose_link_cmd
='echo'
7886 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7887 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7888 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}"
7889 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}"
7891 case $cc_basename in
7893 output_verbose_link_cmd
='echo'
7894 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7895 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7896 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7897 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}'
7898 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}'
7908 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7909 hardcode_libdir_flag_spec
='-L$libdir'
7910 hardcode_shlibpath_var
=no
7917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7918 # support. Future versions do this automatically, but an explicit c++rt0.o
7919 # does not break anything, and helps significantly (at the cost of a little
7922 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7923 hardcode_libdir_flag_spec
='-R$libdir'
7925 hardcode_shlibpath_var
=no
7928 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7930 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7932 hardcode_minus_L
=yes
7933 hardcode_shlibpath_var
=no
7936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7937 freebsd
* | dragonfly
*)
7938 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7939 hardcode_libdir_flag_spec
='-R$libdir'
7941 hardcode_shlibpath_var
=no
7945 if test "$GCC" = yes; then
7946 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'
7948 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'
7950 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7951 hardcode_libdir_separator
=:
7954 # hardcode_minus_L: Not really in the search PATH,
7955 # but as the default location of the library.
7956 hardcode_minus_L
=yes
7957 export_dynamic_flag_spec
='${wl}-E'
7961 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7962 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7964 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7966 if test "$with_gnu_ld" = no
; then
7967 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7968 hardcode_libdir_separator
=:
7971 export_dynamic_flag_spec
='${wl}-E'
7973 # hardcode_minus_L: Not really in the search PATH,
7974 # but as the default location of the library.
7975 hardcode_minus_L
=yes
7980 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7983 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7986 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7989 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7995 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7998 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8001 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8005 if test "$with_gnu_ld" = no
; then
8006 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8007 hardcode_libdir_separator
=:
8011 hardcode_libdir_flag_spec_ld
='+b $libdir'
8013 hardcode_shlibpath_var
=no
8017 export_dynamic_flag_spec
='${wl}-E'
8019 # hardcode_minus_L: Not really in the search PATH,
8020 # but as the default location of the library.
8021 hardcode_minus_L
=yes
8027 irix5
* | irix6
* | nonstopux
*)
8028 if test "$GCC" = yes; then
8029 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'
8031 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'
8032 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8034 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8035 hardcode_libdir_separator
=:
8036 link_all_deplibs
=yes
8040 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8041 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8043 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8045 hardcode_libdir_flag_spec
='-R$libdir'
8047 hardcode_shlibpath_var
=no
8051 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8053 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8054 hardcode_libdir_separator
=:
8055 hardcode_shlibpath_var
=no
8059 if test -f /usr
/libexec
/ld.so
; then
8061 hardcode_shlibpath_var
=no
8062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8063 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8064 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8065 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8066 export_dynamic_flag_spec
='${wl}-E'
8069 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8070 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8071 hardcode_libdir_flag_spec
='-R$libdir'
8074 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8075 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8085 hardcode_libdir_flag_spec
='-L$libdir'
8086 hardcode_minus_L
=yes
8087 allow_undefined_flag
=unsupported
8088 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'
8089 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8093 if test "$GCC" = yes; then
8094 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8095 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'
8097 allow_undefined_flag
=' -expect_unresolved \*'
8098 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'
8100 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8101 hardcode_libdir_separator
=:
8104 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8105 if test "$GCC" = yes; then
8106 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8107 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'
8108 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8110 allow_undefined_flag
=' -expect_unresolved \*'
8111 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'
8112 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8113 $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'
8115 # Both c and cxx compiler support -rpath directly
8116 hardcode_libdir_flag_spec
='-rpath $libdir'
8118 hardcode_libdir_separator
=:
8122 no_undefined_flag
=' -z text'
8123 if test "$GCC" = yes; then
8125 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8126 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8127 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8130 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8132 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8134 hardcode_libdir_flag_spec
='-R$libdir'
8135 hardcode_shlibpath_var
=no
8137 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8139 # The compiler driver will combine and reorder linker options,
8140 # but understands `-z linker_flag'. GCC discards it without `$wl',
8141 # but is careful enough not to reorder.
8142 # Supported since Solaris 2.6 (maybe 2.5.1?)
8143 if test "$GCC" = yes; then
8144 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8146 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8150 link_all_deplibs
=yes
8154 if test "x$host_vendor" = xsequent
; then
8155 # Use $CC to link under sequent, because it throws in some extra .o
8156 # files that make .init and .fini sections work.
8157 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8159 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8161 hardcode_libdir_flag_spec
='-L$libdir'
8163 hardcode_minus_L
=yes
8164 hardcode_shlibpath_var
=no
8168 case $host_vendor in
8170 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8171 hardcode_direct
=yes # is this really true???
8174 ## LD is ld it makes a PLAMLIB
8175 ## CC just makes a GrossModule.
8176 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8177 reload_cmds
='$CC -r -o $output$reload_objs'
8181 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8182 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8185 runpath_var
='LD_RUN_PATH'
8186 hardcode_shlibpath_var
=no
8190 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8191 hardcode_shlibpath_var
=no
8192 export_dynamic_flag_spec
='-Bexport'
8196 if test -d /usr
/nec
; then
8197 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8198 hardcode_shlibpath_var
=no
8199 runpath_var
=LD_RUN_PATH
8200 hardcode_runpath_var
=yes
8205 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8206 no_undefined_flag
='${wl}-z,text'
8207 archive_cmds_need_lc
=no
8208 hardcode_shlibpath_var
=no
8209 runpath_var
='LD_RUN_PATH'
8211 if test "$GCC" = yes; then
8212 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8213 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8215 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8216 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8220 sysv5
* | sco3.2v5
* | sco5v6
*)
8221 # Note: We can NOT use -z defs as we might desire, because we do not
8222 # link with -lc, and that would cause any symbols used from libc to
8223 # always be unresolved, which means just about no library would
8224 # ever link correctly. If we're not using GNU ld we use -z text
8225 # though, which does catch some bad symbols but isn't as heavy-handed
8227 no_undefined_flag
='${wl}-z,text'
8228 allow_undefined_flag
='${wl}-z,nodefs'
8229 archive_cmds_need_lc
=no
8230 hardcode_shlibpath_var
=no
8231 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8232 hardcode_libdir_separator
=':'
8233 link_all_deplibs
=yes
8234 export_dynamic_flag_spec
='${wl}-Bexport'
8235 runpath_var
='LD_RUN_PATH'
8237 if test "$GCC" = yes; then
8238 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8239 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8241 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8242 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8247 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8248 hardcode_libdir_flag_spec
='-L$libdir'
8249 hardcode_shlibpath_var
=no
8258 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8259 echo "${ECHO_T}$ld_shlibs" >&6; }
8260 test "$ld_shlibs" = no
&& can_build_shared
=no
8263 # Do we need to explicitly link libc?
8265 case "x$archive_cmds_need_lc" in
8267 # Assume -lc should be added
8268 archive_cmds_need_lc
=yes
8270 if test "$enable_shared" = yes && test "$GCC" = yes; then
8271 case $archive_cmds in
8273 # FIXME: we may have to deal with multi-command sequences.
8276 # Test whether the compiler implicitly links with -lc since on some
8277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8278 # to ld, don't add -lc before -lgcc.
8279 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8282 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8285 (eval $ac_compile) 2>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } 2>conftest.err
; then
8291 libobjs
=conftest.
$ac_objext
8293 wl
=$lt_prog_compiler_wl
8294 pic_flag
=$lt_prog_compiler_pic
8300 lt_save_allow_undefined_flag
=$allow_undefined_flag
8301 allow_undefined_flag
=
8302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8303 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }
8308 archive_cmds_need_lc
=no
8310 archive_cmds_need_lc
=yes
8312 allow_undefined_flag
=$lt_save_allow_undefined_flag
8314 cat conftest.err
1>&5
8317 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8318 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8325 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8328 libname_spec
='lib$name'
8336 shlibpath_overrides_runpath
=unknown
8338 dynamic_linker
="$host_os ld.so"
8339 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8341 if test "$GCC" = yes; then
8343 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8344 *) lt_awk_arg
="/^libraries:/" ;;
8346 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8347 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
8348 # if the path contains ";" then we assume it to be the separator
8349 # otherwise default to the standard path separator (i.e. ":") - it is
8350 # assumed that no part of a normal pathname contains ";" but that should
8351 # okay in the real world where ";" in dirpaths is itself problematic.
8352 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8354 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8356 # Ok, now we have the path, separated by spaces, we can step through it
8357 # and add multilib dir if necessary.
8358 lt_tmp_lt_search_path_spec
=
8359 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8360 for lt_sys_path
in $lt_search_path_spec; do
8361 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8362 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8364 test -d "$lt_sys_path" && \
8365 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8368 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8369 BEGIN {RS=" "; FS="/|\n";} {
8372 for (lt_i = NF; lt_i > 0; lt_i--) {
8373 if ($lt_i != "" && $lt_i != ".") {
8374 if ($lt_i == "..") {
8377 if (lt_count == 0) {
8378 lt_foo="/" $lt_i lt_foo;
8385 if (lt_foo != "") { lt_freq[lt_foo]++; }
8386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8388 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
8390 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8392 need_lib_prefix
=unknown
8393 hardcode_into_libs
=no
8395 # when you set need_version to no, make sure it does not cause -set_version
8396 # flags to be left without arguments
8397 need_version
=unknown
8402 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8403 shlibpath_var
=LIBPATH
8405 # AIX 3 has no versioning support, so we append a major version to the name.
8406 soname_spec
='${libname}${release}${shared_ext}$major'
8413 hardcode_into_libs
=yes
8414 if test "$host_cpu" = ia64
; then
8415 # AIX 5 supports IA64
8416 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8417 shlibpath_var
=LD_LIBRARY_PATH
8419 # With GCC up to 2.95.x, collect2 would create an import file
8420 # for dependence libraries. The import file would start with
8421 # the line `#! .'. This would cause the generated library to
8422 # depend on `.', always an invalid library. This was fixed in
8423 # development snapshots of GCC prior to 3.0.
8425 aix4 | aix4.
[01] | aix4.
[01].
*)
8426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8428 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8435 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8436 # soname into executable. Probably we can add versioning support to
8437 # collect2, so additional links can be useful in future.
8438 if test "$aix_use_runtimelinking" = yes; then
8439 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8440 # instead of lib<name>.a to let people know that these are not
8441 # typical AIX shared libraries.
8442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8444 # We preserve .a as extension for shared libraries through AIX4.2
8445 # and later when we are not doing run time linking.
8446 library_names_spec
='${libname}${release}.a $libname.a'
8447 soname_spec
='${libname}${release}${shared_ext}$major'
8449 shlibpath_var
=LIBPATH
8454 library_names_spec
='$libname.ixlibrary $libname.a'
8455 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8456 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'
8460 library_names_spec
='${libname}${shared_ext}'
8461 dynamic_linker
="$host_os ld.so"
8462 shlibpath_var
=LIBRARY_PATH
8468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469 soname_spec
='${libname}${release}${shared_ext}$major'
8470 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8471 shlibpath_var
=LD_LIBRARY_PATH
8472 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8473 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8474 # the default ld.so.conf also contains /usr/contrib/lib and
8475 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8476 # libtool to hard-code these into programs
8479 cygwin
* | mingw
* | pw32
*)
8480 version_type
=windows
8485 case $GCC,$host_os in
8486 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8487 library_names_spec
='$libname.dll.a'
8488 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8489 postinstall_cmds
='base_file=`basename \${file}`~
8490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8491 dldir=$destdir/`dirname \$dlpath`~
8492 test -d \$dldir || mkdir -p \$dldir~
8493 $install_prog $dir/$dlname \$dldir/$dlname~
8494 chmod a+x \$dldir/$dlname'
8495 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8496 dlpath=$dir/\$dldll~
8498 shlibpath_overrides_runpath
=yes
8502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8503 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8504 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8507 # MinGW DLLs use traditional 'lib' prefix
8508 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8509 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8510 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8511 # It is most probably a Windows format PATH printed by
8512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8513 # path with ; separators, and with drive letters. We can handle the
8514 # drive letters (cygwin fileutils understands them), so leave them,
8515 # especially as we might pass files found there to a mingw objdump,
8516 # which wouldn't understand a cygwinified path. Ahh.
8517 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8519 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8523 # pw32 DLLs use 'pw' prefix rather than 'lib'
8524 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8530 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8533 dynamic_linker
='Win32 ld.exe'
8534 # FIXME: first we should search . and the directory the executable is in
8538 darwin
* | rhapsody
*)
8539 dynamic_linker
="$host_os dyld"
8543 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8544 soname_spec
='${libname}${release}${major}$shared_ext'
8545 shlibpath_overrides_runpath
=yes
8546 shlibpath_var
=DYLD_LIBRARY_PATH
8547 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8549 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
8550 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8558 soname_spec
='${libname}${release}${shared_ext}$major'
8559 shlibpath_var
=LD_LIBRARY_PATH
8566 freebsd
* | dragonfly
*)
8567 # DragonFly does not have aout. When/if they implement a new
8568 # versioning mechanism, adjust this.
8569 if test -x /usr
/bin
/objformat
; then
8570 objformat
=`/usr/bin/objformat`
8573 freebsd
[123]*) objformat
=aout
;;
8577 version_type
=freebsd-
$objformat
8578 case $version_type in
8580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8585 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8589 shlibpath_var
=LD_LIBRARY_PATH
8592 shlibpath_overrides_runpath
=yes
8594 freebsd3.
[01]* | freebsdelf3.
[01]*)
8595 shlibpath_overrides_runpath
=yes
8596 hardcode_into_libs
=yes
8598 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8599 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8600 shlibpath_overrides_runpath
=no
8601 hardcode_into_libs
=yes
8603 *) # from 4.6 on, and DragonFly
8604 shlibpath_overrides_runpath
=yes
8605 hardcode_into_libs
=yes
8614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8615 soname_spec
='${libname}${release}${shared_ext}$major'
8616 shlibpath_var
=LD_LIBRARY_PATH
8617 hardcode_into_libs
=yes
8620 hpux9
* | hpux10
* | hpux11
*)
8621 # Give a soname corresponding to the major version so that dld.sl refuses to
8622 # link against other versions.
8629 hardcode_into_libs
=yes
8630 dynamic_linker
="$host_os dld.so"
8631 shlibpath_var
=LD_LIBRARY_PATH
8632 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634 soname_spec
='${libname}${release}${shared_ext}$major'
8635 if test "X$HPUX_IA64_MODE" = X32
; then
8636 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8638 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8640 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8644 hardcode_into_libs
=yes
8645 dynamic_linker
="$host_os dld.sl"
8646 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8647 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649 soname_spec
='${libname}${release}${shared_ext}$major'
8650 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8651 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8655 dynamic_linker
="$host_os dld.sl"
8656 shlibpath_var
=SHLIB_PATH
8657 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8659 soname_spec
='${libname}${release}${shared_ext}$major'
8662 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8663 postinstall_cmds
='chmod 555 $lib'
8670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8671 soname_spec
='${libname}${release}${shared_ext}$major'
8672 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8673 shlibpath_var
=LD_LIBRARY_PATH
8674 shlibpath_overrides_runpath
=no
8675 hardcode_into_libs
=yes
8678 irix5
* | irix6
* | nonstopux
*)
8680 nonstopux
*) version_type
=nonstopux
;;
8682 if test "$lt_cv_prog_gnu_ld" = yes; then
8690 soname_spec
='${libname}${release}${shared_ext}$major'
8691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8693 irix5
* | nonstopux
*)
8697 case $LD in # libtool.m4 will add one of these switches to LD
8698 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8699 libsuff
= shlibsuff
= libmagic
=32-bit;;
8700 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8701 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8702 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8703 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8704 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8708 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8709 shlibpath_overrides_runpath
=no
8710 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8711 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8712 hardcode_into_libs
=yes
8715 # No shared lib support for Linux oldld, aout, or coff.
8716 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8720 # This must be Linux ELF.
8721 linux
* | k
*bsd
*-gnu)
8725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726 soname_spec
='${libname}${release}${shared_ext}$major'
8727 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8728 shlibpath_var
=LD_LIBRARY_PATH
8729 shlibpath_overrides_runpath
=no
8730 # This implies no fast_install, which is unacceptable.
8731 # Some rework will be needed to allow for fast_install
8732 # before this can be enabled.
8733 hardcode_into_libs
=yes
8735 # Append ld.so.conf contents to the search path
8736 if test -f /etc
/ld.so.conf
; then
8737 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' ' '`
8738 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
8741 # We used to test for /lib/ld.so.1 and disable shared libraries on
8742 # powerpc, because MkLinux only supported shared libraries with the
8743 # GNU dynamic linker. Since this was broken with cross compilers,
8744 # most powerpc-linux boxes support dynamic linking these days and
8745 # people can always --disable-shared, the test was removed, and we
8746 # assume the GNU/Linux dynamic linker is in use.
8747 dynamic_linker
='GNU/Linux ld.so'
8754 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8756 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8757 dynamic_linker
='NetBSD (a.out) ld.so'
8759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8760 soname_spec
='${libname}${release}${shared_ext}$major'
8761 dynamic_linker
='NetBSD ld.elf_so'
8763 shlibpath_var
=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath
=yes
8765 hardcode_into_libs
=yes
8770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 shlibpath_var
=LD_LIBRARY_PATH
8772 shlibpath_overrides_runpath
=yes
8779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780 soname_spec
='${libname}${release}${shared_ext}$major'
8781 shlibpath_var
=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath
=yes
8787 sys_lib_dlsearch_path_spec
="/usr/lib"
8789 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8791 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8792 *) need_version
=no
;;
8794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8795 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8796 shlibpath_var
=LD_LIBRARY_PATH
8797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8799 openbsd2.
[89] | openbsd2.
[89].
*)
8800 shlibpath_overrides_runpath
=no
8803 shlibpath_overrides_runpath
=yes
8807 shlibpath_overrides_runpath
=yes
8812 libname_spec
='$name'
8815 library_names_spec
='$libname${shared_ext} $libname.a'
8816 dynamic_linker
='OS/2 ld.exe'
8817 shlibpath_var
=LIBPATH
8820 osf3
* | osf4
* | osf5
*)
8824 soname_spec
='${libname}${release}${shared_ext}$major'
8825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 shlibpath_var
=LD_LIBRARY_PATH
8827 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8828 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8839 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840 soname_spec
='${libname}${release}${shared_ext}$major'
8841 shlibpath_var
=LD_LIBRARY_PATH
8842 shlibpath_overrides_runpath
=yes
8843 hardcode_into_libs
=yes
8844 # ldd complains unless libraries are executable
8845 postinstall_cmds
='chmod +x $lib'
8850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8851 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8852 shlibpath_var
=LD_LIBRARY_PATH
8853 shlibpath_overrides_runpath
=yes
8854 if test "$with_gnu_ld" = yes; then
8862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec
='${libname}${release}${shared_ext}$major'
8864 shlibpath_var
=LD_LIBRARY_PATH
8865 case $host_vendor in
8867 shlibpath_overrides_runpath
=no
8869 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8870 runpath_var
=LD_RUN_PATH
8878 shlibpath_overrides_runpath
=no
8879 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8885 if test -d /usr
/nec
;then
8887 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8888 soname_spec
='$libname${shared_ext}.$major'
8889 shlibpath_var
=LD_LIBRARY_PATH
8893 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
8894 version_type
=freebsd-elf
8897 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8898 soname_spec
='${libname}${release}${shared_ext}$major'
8899 shlibpath_var
=LD_LIBRARY_PATH
8900 hardcode_into_libs
=yes
8901 if test "$with_gnu_ld" = yes; then
8902 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8903 shlibpath_overrides_runpath
=no
8905 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
8906 shlibpath_overrides_runpath
=yes
8909 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
8913 sys_lib_dlsearch_path_spec
='/usr/lib'
8918 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 soname_spec
='${libname}${release}${shared_ext}$major'
8920 shlibpath_var
=LD_LIBRARY_PATH
8927 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8928 echo "${ECHO_T}$dynamic_linker" >&6; }
8929 test "$dynamic_linker" = no
&& can_build_shared
=no
8931 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
8937 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
8938 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
8944 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
8946 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
8947 if test "$GCC" = yes; then
8948 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8951 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8952 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8954 if test -n "$hardcode_libdir_flag_spec" || \
8955 test -n "$runpath_var" || \
8956 test "X$hardcode_automatic" = "Xyes" ; then
8958 # We can hardcode non-existant directories.
8959 if test "$hardcode_direct" != no
&&
8960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8961 # have to relink, otherwise we might link with an installed library
8962 # when we should be linking with a yet-to-be-installed one
8963 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8964 test "$hardcode_minus_L" != no
; then
8965 # Linking always hardcodes the temporary library directory.
8966 hardcode_action
=relink
8968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8969 hardcode_action
=immediate
8972 # We cannot hardcode anything, or else we can only hardcode existing
8974 hardcode_action
=unsupported
8976 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8977 echo "${ECHO_T}$hardcode_action" >&6; }
8979 if test "$hardcode_action" = relink
; then
8980 # Fast installation is not supported
8981 enable_fast_install
=no
8982 elif test "$shlibpath_overrides_runpath" = yes ||
8983 test "$enable_shared" = no
; then
8984 # Fast installation is not necessary
8985 enable_fast_install
=needless
8990 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8991 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8992 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8993 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8994 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8995 { echo "$as_me:$LINENO: result: yes" >&5
8996 echo "${ECHO_T}yes" >&6; }
8998 # FIXME - insert some real tests, host_os isn't really good enough
9001 if test -n "$STRIP" ; then
9002 striplib
="$STRIP -x"
9003 old_striplib
="$STRIP -S"
9004 { echo "$as_me:$LINENO: result: yes" >&5
9005 echo "${ECHO_T}yes" >&6; }
9007 { echo "$as_me:$LINENO: result: no" >&5
9008 echo "${ECHO_T}no" >&6; }
9012 { echo "$as_me:$LINENO: result: no" >&5
9013 echo "${ECHO_T}no" >&6; }
9018 if test "x$enable_dlopen" != xyes
; then
9019 enable_dlopen
=unknown
9020 enable_dlopen_self
=unknown
9021 enable_dlopen_self_static
=unknown
9028 lt_cv_dlopen
="load_add_on"
9030 lt_cv_dlopen_self
=yes
9034 lt_cv_dlopen
="LoadLibrary"
9039 lt_cv_dlopen
="dlopen"
9044 # if libdl is installed we need to link against it
9045 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9046 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9047 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 ac_check_lib_save_LIBS
=$LIBS
9052 cat >conftest.
$ac_ext <<_ACEOF
9055 cat confdefs.h
>>conftest.
$ac_ext
9056 cat >>conftest.
$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9059 /* Override any GCC internal prototype to avoid an error.
9060 Use char because int might match the return type of a GCC
9061 builtin and then its argument prototype would still apply. */
9074 rm -f conftest.
$ac_objext conftest
$ac_exeext
9075 if { (ac_try
="$ac_link"
9077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_link") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest$ac_exeext &&
9091 $as_test_x conftest$ac_exeext; then
9092 ac_cv_lib_dl_dlopen=yes
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 ac_cv_lib_dl_dlopen=no
9100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LIBS=$ac_check_lib_save_LIBS
9104 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9106 if test $ac_cv_lib_dl_dlopen = yes; then
9107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9112 lt_cv_dlopen_self=yes
9119 { echo "$as_me:$LINENO: checking for shl_load" >&5
9120 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9121 if test "${ac_cv_func_shl_load+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 cat >conftest.$ac_ext <<_ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9132 #define shl_load innocuous_shl_load
9134 /* System header to define __stub macros and hopefully few prototypes,
9135 which can conflict with char shl_load (); below.
9136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9137 <limits.h> exists even on freestanding compilers. */
9140 # include <limits.h>
9142 # include <assert.h>
9147 /* Override any GCC internal prototype to avoid an error.
9148 Use char because int might match the return type of a GCC
9149 builtin and then its argument prototype would still apply. */
9154 /* The GNU C library defines this for functions which it implements
9155 to always fail with ENOSYS. Some functions are actually named
9156 something starting with __ and the normal name is an alias. */
9157 #if defined __stub_shl_load || defined __stub___shl_load
9169 rm -f conftest.$ac_objext conftest$ac_exeext
9170 if { (ac_try="$ac_link"
9172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9173 *) ac_try_echo
=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_link") 2>conftest.er1
9178 grep -v '^ *+' conftest.er1
>conftest.err
9180 cat conftest.err
>&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && {
9183 test -z "$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9185 } && test -s conftest
$ac_exeext &&
9186 $as_test_x conftest
$ac_exeext; then
9187 ac_cv_func_shl_load
=yes
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.
$ac_ext >&5
9192 ac_cv_func_shl_load
=no
9195 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9196 conftest
$ac_exeext conftest.
$ac_ext
9198 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9199 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9200 if test $ac_cv_func_shl_load = yes; then
9201 lt_cv_dlopen
="shl_load"
9203 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9204 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9205 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 ac_check_lib_save_LIBS
=$LIBS
9210 cat >conftest.
$ac_ext <<_ACEOF
9213 cat confdefs.h
>>conftest.
$ac_ext
9214 cat >>conftest.
$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9217 /* Override any GCC internal prototype to avoid an error.
9218 Use char because int might match the return type of a GCC
9219 builtin and then its argument prototype would still apply. */
9232 rm -f conftest.
$ac_objext conftest
$ac_exeext
9233 if { (ac_try
="$ac_link"
9235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_link") 2>conftest.er1
9241 grep -v '^ *+' conftest.er1 >conftest.err
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest$ac_exeext &&
9249 $as_test_x conftest$ac_exeext; then
9250 ac_cv_lib_dld_shl_load=yes
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_cv_lib_dld_shl_load=no
9258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9259 conftest$ac_exeext conftest.$ac_ext
9260 LIBS=$ac_check_lib_save_LIBS
9262 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9263 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9264 if test $ac_cv_lib_dld_shl_load = yes; then
9265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9267 { echo "$as_me:$LINENO: checking for dlopen" >&5
9268 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9269 if test "${ac_cv_func_dlopen+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 cat >conftest.$ac_ext <<_ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9278 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9280 #define dlopen innocuous_dlopen
9282 /* System header to define __stub macros and hopefully few prototypes,
9283 which can conflict with char dlopen (); below.
9284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9285 <limits.h> exists even on freestanding compilers. */
9288 # include <limits.h>
9290 # include <assert.h>
9295 /* Override any GCC internal prototype to avoid an error.
9296 Use char because int might match the return type of a GCC
9297 builtin and then its argument prototype would still apply. */
9302 /* The GNU C library defines this for functions which it implements
9303 to always fail with ENOSYS. Some functions are actually named
9304 something starting with __ and the normal name is an alias. */
9305 #if defined __stub_dlopen || defined __stub___dlopen
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (ac_try="$ac_link"
9320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9321 *) ac_try_echo
=$ac_try;;
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_link") 2>conftest.er1
9326 grep -v '^ *+' conftest.er1
>conftest.err
9328 cat conftest.err
>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && {
9331 test -z "$ac_c_werror_flag" ||
9332 test ! -s conftest.err
9333 } && test -s conftest
$ac_exeext &&
9334 $as_test_x conftest
$ac_exeext; then
9335 ac_cv_func_dlopen
=yes
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.
$ac_ext >&5
9340 ac_cv_func_dlopen
=no
9343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9344 conftest
$ac_exeext conftest.
$ac_ext
9346 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9347 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9348 if test $ac_cv_func_dlopen = yes; then
9349 lt_cv_dlopen
="dlopen"
9351 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9352 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9353 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 ac_check_lib_save_LIBS
=$LIBS
9358 cat >conftest.
$ac_ext <<_ACEOF
9361 cat confdefs.h
>>conftest.
$ac_ext
9362 cat >>conftest.
$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9365 /* Override any GCC internal prototype to avoid an error.
9366 Use char because int might match the return type of a GCC
9367 builtin and then its argument prototype would still apply. */
9380 rm -f conftest.
$ac_objext conftest
$ac_exeext
9381 if { (ac_try
="$ac_link"
9383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_link") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest$ac_exeext &&
9397 $as_test_x conftest$ac_exeext; then
9398 ac_cv_lib_dl_dlopen=yes
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_cv_lib_dl_dlopen=no
9406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9407 conftest$ac_exeext conftest.$ac_ext
9408 LIBS=$ac_check_lib_save_LIBS
9410 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9412 if test $ac_cv_lib_dl_dlopen = yes; then
9413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9415 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9416 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9417 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 ac_check_lib_save_LIBS=$LIBS
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9429 /* Override any GCC internal prototype to avoid an error.
9430 Use char because int might match the return type of a GCC
9431 builtin and then its argument prototype would still apply. */
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9448 *) ac_try_echo
=$ac_try;;
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1
>conftest.err
9455 cat conftest.err
>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest
$ac_exeext &&
9461 $as_test_x conftest
$ac_exeext; then
9462 ac_cv_lib_svld_dlopen
=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.
$ac_ext >&5
9467 ac_cv_lib_svld_dlopen
=no
9470 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9471 conftest
$ac_exeext conftest.
$ac_ext
9472 LIBS
=$ac_check_lib_save_LIBS
9474 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9475 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9476 if test $ac_cv_lib_svld_dlopen = yes; then
9477 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9479 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9480 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9481 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 ac_check_lib_save_LIBS
=$LIBS
9486 cat >conftest.
$ac_ext <<_ACEOF
9489 cat confdefs.h
>>conftest.
$ac_ext
9490 cat >>conftest.
$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9508 rm -f conftest.
$ac_objext conftest
$ac_exeext
9509 if { (ac_try
="$ac_link"
9511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_link") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && {
9522 test -z "$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 } && test -s conftest$ac_exeext &&
9525 $as_test_x conftest$ac_exeext; then
9526 ac_cv_lib_dld_dld_link=yes
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ac_cv_lib_dld_dld_link=no
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9539 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9540 if test $ac_cv_lib_dld_dld_link = yes; then
9541 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9562 if test "x$lt_cv_dlopen" != xno; then
9568 case $lt_cv_dlopen in
9570 save_CPPFLAGS="$CPPFLAGS"
9571 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9573 save_LDFLAGS="$LDFLAGS"
9574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9577 LIBS="$lt_cv_dlopen_libs $LIBS"
9579 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9580 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9581 if test "${lt_cv_dlopen_self+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 if test "$cross_compiling" = yes; then :
9585 lt_cv_dlopen_self=cross
9587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9588 lt_status=$lt_dlunknown
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9590 "configure"
9591 #include "confdefs.h"
9600 # define LT_DLGLOBAL RTLD_GLOBAL
9603 # define LT_DLGLOBAL DL_GLOBAL
9605 # define LT_DLGLOBAL 0
9609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9610 find out it does not work in some platform. */
9611 #ifndef LT_DLLAZY_OR_NOW
9613 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9616 # define LT_DLLAZY_OR_NOW DL_LAZY
9619 # define LT_DLLAZY_OR_NOW RTLD_NOW
9622 # define LT_DLLAZY_OR_NOW DL_NOW
9624 # define LT_DLLAZY_OR_NOW 0
9632 extern "C" void exit (int);
9635 void fnord() { int i=42;}
9638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9639 int status = $lt_dlunknown;
9643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9644 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9645 /* dlclose (self); */
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9658 (./conftest; exit; ) >&5 2>/dev/null
9661 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9662 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9663 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9666 # compilation failed
9667 lt_cv_dlopen_self=no
9674 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9675 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9677 if test "x$lt_cv_dlopen_self" = xyes; then
9678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9679 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9680 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9681 if test "${lt_cv_dlopen_self_static+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 if test "$cross_compiling" = yes; then :
9685 lt_cv_dlopen_self_static=cross
9687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9688 lt_status=$lt_dlunknown
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9690 "configure"
9691 #include "confdefs.h"
9700 # define LT_DLGLOBAL RTLD_GLOBAL
9703 # define LT_DLGLOBAL DL_GLOBAL
9705 # define LT_DLGLOBAL 0
9709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9710 find out it does not work in some platform. */
9711 #ifndef LT_DLLAZY_OR_NOW
9713 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9716 # define LT_DLLAZY_OR_NOW DL_LAZY
9719 # define LT_DLLAZY_OR_NOW RTLD_NOW
9722 # define LT_DLLAZY_OR_NOW DL_NOW
9724 # define LT_DLLAZY_OR_NOW 0
9732 extern "C" void exit (int);
9735 void fnord() { int i=42;}
9738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9739 int status = $lt_dlunknown;
9743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9745 /* dlclose (self); */
9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9758 (./conftest; exit; ) >&5 2>/dev/null
9761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9766 # compilation failed
9767 lt_cv_dlopen_self_static=no
9774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9775 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9778 CPPFLAGS="$save_CPPFLAGS"
9779 LDFLAGS="$save_LDFLAGS"
9784 case $lt_cv_dlopen_self in
9785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9786 *) enable_dlopen_self=unknown ;;
9789 case $lt_cv_dlopen_self_static in
9790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9791 *) enable_dlopen_self_static=unknown ;;
9796 # Report which library types will actually be built
9797 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9798 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9799 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9800 echo "${ECHO_T}$can_build_shared" >&6; }
9802 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9803 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9804 test "$can_build_shared" = "no" && enable_shared=no
9806 # On AIX, shared libraries and static libraries use the same namespace, and
9807 # are all built from PIC.
9810 test "$enable_shared" = yes && enable_static=no
9811 if test -n "$RANLIB"; then
9812 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9813 postinstall_cmds='$RANLIB $lib'
9818 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9819 test "$enable_shared" = yes && enable_static=no
9823 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9824 echo "${ECHO_T}$enable_shared" >&6; }
9826 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9827 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9828 # Make sure either enable_shared or enable_static is yes.
9829 test "$enable_shared" = yes || enable_static=yes
9830 { echo "$as_me:$LINENO: result: $enable_static" >&5
9831 echo "${ECHO_T}$enable_static" >&6; }
9833 # The else clause should only fire when bootstrapping the
9834 # libtool distribution, otherwise you forgot to ship ltmain.sh
9835 # with your package, and you will get complaints that there are
9836 # no rules to generate ltmain.sh.
9837 if test -f "$ltmain"; then
9838 # See if we are running on zsh, and set the options which allow our commands through
9839 # without removal of \ escapes.
9840 if test -n "${ZSH_VERSION+set}" ; then
9841 setopt NO_GLOB_SUBST
9843 # Now quote all the things that may contain metacharacters while being
9844 # careful not to overquote the AC_SUBSTed values. We take copies of the
9845 # variables and quote the copies for generation of the libtool script.
9846 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9848 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9849 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9850 deplibs_check_method reload_flag reload_cmds need_locks \
9851 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9852 lt_cv_sys_global_symbol_to_c_name_address \
9853 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9854 old_postinstall_cmds old_postuninstall_cmds \
9858 lt_prog_compiler_wl \
9859 lt_prog_compiler_pic \
9860 lt_prog_compiler_static \
9861 lt_prog_compiler_no_builtin_flag \
9862 export_dynamic_flag_spec \
9863 thread_safe_flag_spec \
9864 whole_archive_flag_spec \
9865 enable_shared_with_static_runtimes \
9867 old_archive_from_new_cmds \
9872 compiler_lib_search_path \
9873 compiler_lib_search_dirs \
9875 archive_expsym_cmds \
9877 postuninstall_cmds \
9878 old_archive_from_expsyms_cmds \
9879 allow_undefined_flag \
9881 export_symbols_cmds \
9882 hardcode_libdir_flag_spec \
9883 hardcode_libdir_flag_spec_ld \
9884 hardcode_libdir_separator \
9885 hardcode_automatic \
9887 module_expsym_cmds \
9888 lt_cv_prog_compiler_c_o \
9894 old_archive_cmds | \
9895 old_archive_from_new_cmds | \
9897 archive_expsym_cmds | \
9899 module_expsym_cmds | \
9900 old_archive_from_expsyms_cmds | \
9901 export_symbols_cmds | \
9902 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9903 postinstall_cmds | postuninstall_cmds | \
9904 old_postinstall_cmds | old_postuninstall_cmds | \
9905 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9906 # Double-quote double-evaled strings.
9907 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
9910 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
9916 *'\$0 --fallback-echo"')
9917 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9922 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9924 { echo "$as_me:$LINENO: creating $ofile" >&5
9925 echo "$as_me: creating $ofile" >&6;}
9927 cat <<__EOF__ >> "$cfgfile"
9930 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
9931 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9932 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9934 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9935 # Free Software Foundation, Inc.
9937 # This file is part of GNU Libtool:
9938 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9940 # This program is free software; you can redistribute it and/or modify
9941 # it under the terms of the GNU General Public License as published by
9942 # the Free Software Foundation; either version 2 of the License, or
9943 # (at your option) any later version.
9945 # This program is distributed in the hope that it will be useful, but
9946 # WITHOUT ANY WARRANTY; without even the implied warranty of
9947 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9948 # General Public License for more details.
9950 # You should have received a copy of the GNU General Public License
9951 # along with this program; if not, write to the Free Software
9952 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9954 # As a special exception to the GNU General Public License, if you
9955 # distribute this file as part of a program that contains a
9956 # configuration script generated by Autoconf, you may include it under
9957 # the same distribution terms that you use for the rest of that program.
9959 # A sed program that does not truncate output.
9962 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9963 Xsed="$SED -e 1s/^X//"
9965 # The HP-UX ksh and POSIX shell print the target directory to stdout
9967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9969 # The names of the tagged configurations supported by this script.
9972 # ### BEGIN LIBTOOL CONFIG
9974 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
9976 # Shell to use when invoking shell scripts.
9979 # Whether or not to build shared libraries.
9980 build_libtool_libs=$enable_shared
9982 # Whether or not to build static libraries.
9983 build_old_libs=$enable_static
9985 # Whether or not to add -lc for building shared libraries.
9986 build_libtool_need_lc=$archive_cmds_need_lc
9988 # Whether or not to disallow shared libs when runtime libs are static
9989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9991 # Whether or not to optimize for fast installation.
9992 fast_install=$enable_fast_install
9995 host_alias=$host_alias
10000 build_alias=$build_alias
10004 # An echo program that does not interpret backslashes.
10009 AR_FLAGS=$lt_AR_FLAGS
10014 # LTCC compiler flags.
10015 LTCFLAGS=$lt_LTCFLAGS
10017 # A language-specific compiler.
10020 # Is the compiler the GNU C compiler?
10026 # The linker used to build libraries.
10029 # Whether we need hard or soft links.
10032 # A BSD-compatible nm program.
10035 # A symbol stripping program
10038 # Used to examine libraries when file_magic_cmd begins "file"
10039 MAGIC_CMD=$MAGIC_CMD
10041 # Used on cygwin: DLL creation program.
10044 # Used on cygwin: object dumper.
10047 # Used on cygwin: assembler.
10050 # The name of the directory that contains temporary libtool files.
10053 # How to create reloadable object files.
10054 reload_flag=$lt_reload_flag
10055 reload_cmds=$lt_reload_cmds
10057 # How to pass a linker flag through the compiler.
10058 wl=$lt_lt_prog_compiler_wl
10060 # Object file suffix (normally "o").
10061 objext="$ac_objext"
10063 # Old archive suffix (normally "a").
10066 # Shared library suffix (normally ".so").
10067 shrext_cmds='$shrext_cmds'
10069 # Executable file suffix (normally "").
10072 # Additional compiler flags for building library objects.
10073 pic_flag=$lt_lt_prog_compiler_pic
10076 # What is the maximum length of a command?
10077 max_cmd_len=$lt_cv_sys_max_cmd_len
10079 # Does compiler simultaneously support -c and -o options?
10080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10082 # Must we lock files when doing compilation?
10083 need_locks=$lt_need_locks
10085 # Do we need the lib prefix for modules?
10086 need_lib_prefix=$need_lib_prefix
10088 # Do we need a version for libraries?
10089 need_version=$need_version
10091 # Whether dlopen is supported.
10092 dlopen_support=$enable_dlopen
10094 # Whether dlopen of programs is supported.
10095 dlopen_self=$enable_dlopen_self
10097 # Whether dlopen of statically linked programs is supported.
10098 dlopen_self_static=$enable_dlopen_self_static
10100 # Compiler flag to prevent dynamic linking.
10101 link_static_flag=$lt_lt_prog_compiler_static
10103 # Compiler flag to turn off builtin functions.
10104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10106 # Compiler flag to allow reflexive dlopens.
10107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10109 # Compiler flag to generate shared objects directly from archives.
10110 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10112 # Compiler flag to generate thread-safe objects.
10113 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10115 # Library versioning type.
10116 version_type=$version_type
10118 # Format of library name prefix.
10119 libname_spec=$lt_libname_spec
10121 # List of archive names. First name is the real one, the rest are links.
10122 # The last name is the one that the linker finds with -lNAME.
10123 library_names_spec=$lt_library_names_spec
10125 # The coded name of the library, if different from the real name.
10126 soname_spec=$lt_soname_spec
10128 # Commands used to build and install an old-style archive.
10130 old_archive_cmds=$lt_old_archive_cmds
10131 old_postinstall_cmds=$lt_old_postinstall_cmds
10132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10134 # Create an old-style archive from a shared archive.
10135 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10137 # Create a temporary old-style archive to link instead of a shared archive.
10138 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10140 # Commands used to build and install a shared archive.
10141 archive_cmds=$lt_archive_cmds
10142 archive_expsym_cmds=$lt_archive_expsym_cmds
10143 postinstall_cmds=$lt_postinstall_cmds
10144 postuninstall_cmds=$lt_postuninstall_cmds
10146 # Commands used to build a loadable module (assumed same as above if empty)
10147 module_cmds=$lt_module_cmds
10148 module_expsym_cmds=$lt_module_expsym_cmds
10150 # Commands to strip libraries.
10151 old_striplib=$lt_old_striplib
10152 striplib=$lt_striplib
10154 # Dependencies to place before the objects being linked to create a
10156 predep_objects=$lt_predep_objects
10158 # Dependencies to place after the objects being linked to create a
10160 postdep_objects=$lt_postdep_objects
10162 # Dependencies to place before the objects being linked to create a
10164 predeps=$lt_predeps
10166 # Dependencies to place after the objects being linked to create a
10168 postdeps=$lt_postdeps
10170 # The directories searched by this compiler when creating a shared
10172 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10174 # The library search path used internally by the compiler when linking
10175 # a shared library.
10176 compiler_lib_search_path=$lt_compiler_lib_search_path
10178 # Method to check whether dependent libraries are shared objects.
10179 deplibs_check_method=$lt_deplibs_check_method
10181 # Command to use when deplibs_check_method == file_magic.
10182 file_magic_cmd=$lt_file_magic_cmd
10184 # Flag that allows shared libraries with undefined symbols to be built.
10185 allow_undefined_flag=$lt_allow_undefined_flag
10187 # Flag that forces no undefined symbols.
10188 no_undefined_flag=$lt_no_undefined_flag
10190 # Commands used to finish a libtool library installation in a directory.
10191 finish_cmds=$lt_finish_cmds
10193 # Same as above, but a single script fragment to be evaled but not shown.
10194 finish_eval=$lt_finish_eval
10196 # Take the output of nm and produce a listing of raw symbols and C names.
10197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10199 # Transform the output of nm in a proper C declaration
10200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10202 # Transform the output of nm in a C name address pair
10203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10205 # This is the shared library runtime path variable.
10206 runpath_var=$runpath_var
10208 # This is the shared library path variable.
10209 shlibpath_var=$shlibpath_var
10211 # Is shlibpath searched before the hard-coded library search path?
10212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10214 # How to hardcode a shared library path into an executable.
10215 hardcode_action=$hardcode_action
10217 # Whether we should hardcode library paths into libraries.
10218 hardcode_into_libs=$hardcode_into_libs
10220 # Flag to hardcode \$libdir into a binary during linking.
10221 # This must work even if \$libdir does not exist.
10222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10224 # If ld is used when linking, flag to hardcode \$libdir into
10225 # a binary during linking. This must work even if \$libdir does
10227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10229 # Whether we need a single -rpath flag with a separated argument.
10230 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10233 # resulting binary.
10234 hardcode_direct=$hardcode_direct
10236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10237 # resulting binary.
10238 hardcode_minus_L=$hardcode_minus_L
10240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10241 # the resulting binary.
10242 hardcode_shlibpath_var=$hardcode_shlibpath_var
10244 # Set to yes if building a shared library automatically hardcodes DIR into the library
10245 # and all subsequent libraries and executables linked against it.
10246 hardcode_automatic=$hardcode_automatic
10248 # Variables whose values should be saved in libtool wrapper scripts and
10249 # restored at relink time.
10250 variables_saved_for_relink="$variables_saved_for_relink"
10252 # Whether libtool must link a program against all its dependency libraries.
10253 link_all_deplibs=$link_all_deplibs
10255 # Compile-time system search path for libraries
10256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10258 # Run-time system search path for libraries
10259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10261 # Fix the shell variable \$srcfile for the compiler.
10262 fix_srcfile_path=$lt_fix_srcfile_path
10264 # Set to yes if exported symbols are required.
10265 always_export_symbols=$always_export_symbols
10267 # The commands to list exported symbols.
10268 export_symbols_cmds=$lt_export_symbols_cmds
10270 # The commands to extract the exported symbol list from a shared archive.
10271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10273 # Symbols that should not be listed in the preloaded symbols.
10274 exclude_expsyms=$lt_exclude_expsyms
10276 # Symbols that must always be exported.
10277 include_expsyms=$lt_include_expsyms
10279 # ### END LIBTOOL CONFIG
10286 cat <<\EOF >> "$cfgfile"
10288 # AIX sometimes has problems with the GCC collect2 program. For some
10289 # reason, if we set the COLLECT_NAMES environment variable, the problems
10290 # vanish in a puff of smoke.
10291 if test "X${COLLECT_NAMES+set}" != Xset; then
10293 export COLLECT_NAMES
10299 # We use sed instead of cat because bash on DJGPP gets confused if
10300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10301 # text mode, it properly converts lines to CR/LF. This bash problem
10302 # is reportedly fixed, but why not run on old versions too?
10303 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10305 mv -f "$cfgfile" "$ofile" || \
10306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10310 # If there is no Makefile yet, we rely on a make rule to execute
10311 # `config.status
--recheck' to rerun these tests and create the
10312 # libtool script then.
10313 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10314 if test -f "$ltmain_in"; then
10315 test -f Makefile && make "$ltmain"
10321 ac_cpp='$CPP $CPPFLAGS'
10322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10323 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10329 # Check whether --with-tags was given.
10330 if test "${with_tags+set}" = set; then
10331 withval=$with_tags; tagnames="$withval"
10335 if test -f "$ltmain" && test -n "$tagnames"; then
10336 if test ! -f "${ofile}"; then
10337 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10338 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10341 if test -z "$LTCC"; then
10342 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10343 if test -z "$LTCC"; then
10344 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10345 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10347 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10348 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10351 if test -z "$LTCFLAGS"; then
10352 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10355 # Extract list of available tagged configurations in $ofile.
10356 # Note that this assumes the entire list is on one line.
10357 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10360 for tagname in $tagnames; do
10362 # Check whether tagname contains only valid characters
10363 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10365 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10366 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10367 { (exit 1); exit 1; }; }
10371 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10373 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10374 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10375 { (exit 1); exit 1; }; }
10378 # Update the list of available tags.
10379 if test -n "$tagname"; then
10380 echo appending configuration tag \"$tagname\" to $ofile
10384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10385 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10386 (test "X$CXX" != "Xg++"))) ; then
10388 ac_cpp='$CXXCPP $CPPFLAGS'
10389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10396 archive_cmds_need_lc_CXX=no
10397 allow_undefined_flag_CXX=
10398 always_export_symbols_CXX=no
10399 archive_expsym_cmds_CXX=
10400 export_dynamic_flag_spec_CXX=
10401 hardcode_direct_CXX=no
10402 hardcode_libdir_flag_spec_CXX=
10403 hardcode_libdir_flag_spec_ld_CXX=
10404 hardcode_libdir_separator_CXX=
10405 hardcode_minus_L_CXX=no
10406 hardcode_shlibpath_var_CXX=unsupported
10407 hardcode_automatic_CXX=no
10409 module_expsym_cmds_CXX=
10410 link_all_deplibs_CXX=unknown
10411 old_archive_cmds_CXX=$old_archive_cmds
10412 no_undefined_flag_CXX=
10413 whole_archive_flag_spec_CXX=
10414 enable_shared_with_static_runtimes_CXX=no
10416 # Dependencies to place before and after the object being linked:
10417 predep_objects_CXX=
10418 postdep_objects_CXX=
10421 compiler_lib_search_path_CXX=
10422 compiler_lib_search_dirs_CXX=
10424 # Source file extension for C++ test sources.
10427 # Object file extension for compiled C++ test sources.
10431 # Code to be used in simple compile tests
10432 lt_simple_compile_test_code="int some_variable = 0;"
10434 # Code to be used in simple link tests
10435 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10439 # If no C compiler was specified, use CC.
10442 # If no C compiler flags were specified, use CFLAGS.
10443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10445 # Allow CC to be a program name with arguments.
10449 # save warnings/boilerplate of simple test code
10450 ac_outfile=conftest.$ac_objext
10451 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10453 _lt_compiler_boilerplate=`cat conftest.err
`
10456 ac_outfile=conftest.$ac_objext
10457 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10459 _lt_linker_boilerplate=`cat conftest.err
`
10463 # Allow CC to be a program name with arguments.
10468 lt_save_with_gnu_ld=$with_gnu_ld
10469 lt_save_path_LD=$lt_cv_path_LD
10470 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10471 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10473 $as_unset lt_cv_prog_gnu_ld
10475 if test -n "${lt_cv_path_LDCXX+set}"; then
10476 lt_cv_path_LD=$lt_cv_path_LDCXX
10478 $as_unset lt_cv_path_LD
10480 test -z "${LDCXX+set}" || LD=$LDCXX
10484 for cc_temp in $compiler""; do
10486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10492 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10495 # We don't want -fno-exception wen compiling C++ code, so set the
10496 # no_builtin_flag separately
10497 if test "$GXX" = yes; then
10498 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10500 lt_prog_compiler_no_builtin_flag_CXX=
10503 if test "$GXX" = yes; then
10504 # Set up default GNU C++ configuration
10507 # Check whether --with-gnu-ld was given.
10508 if test "${with_gnu_ld+set}" = set; then
10509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10515 if test "$GCC" = yes; then
10516 # Check if gcc -print-prog-name=ld gives a path.
10517 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10518 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10521 # gcc leaves a trailing carriage return which upsets mingw
10522 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10524 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10527 # Accept absolute paths.
10529 re_direlt='/[^/][^/]*/\.\./'
10530 # Canonicalize the pathname of ld
10531 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10532 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10533 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10535 test -z "$LD" && LD="$ac_prog"
10538 # If it fails, then pretend we aren't using GCC.
10542 # If it is relative, then search for the first ld in PATH.
10543 with_gnu_ld=unknown
10546 elif test "$with_gnu_ld" = yes; then
10547 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10548 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10550 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10551 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10553 if test "${lt_cv_path_LD+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 if test -z "$LD"; then
10557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10558 for ac_dir in $PATH; do
10560 test -z "$ac_dir" && ac_dir=.
10561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10562 lt_cv_path_LD="$ac_dir/$ac_prog"
10563 # Check to see if the program is GNU ld. I'd rather use --version,
10564 # but apparently some variants of GNU ld only accept -v.
10565 # Break only if it was the GNU/non-GNU ld that we prefer.
10566 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10567 *GNU* | *'with BFD'*)
10568 test "$with_gnu_ld" != no && break
10571 test "$with_gnu_ld" != yes && break
10578 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10582 LD="$lt_cv_path_LD"
10583 if test -n "$LD"; then
10584 { echo "$as_me:$LINENO: result: $LD" >&5
10585 echo "${ECHO_T}$LD" >&6; }
10587 { echo "$as_me:$LINENO: result: no" >&5
10588 echo "${ECHO_T}no" >&6; }
10590 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10591 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10592 { (exit 1); exit 1; }; }
10593 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10594 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10595 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10599 case `$LD -v 2>&1 </dev
/null
` in
10600 *GNU* | *'with BFD'*)
10601 lt_cv_prog_gnu_ld=yes
10604 lt_cv_prog_gnu_ld=no
10608 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10609 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10610 with_gnu_ld=$lt_cv_prog_gnu_ld
10614 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10615 # archiving commands below assume that GNU ld is being used.
10616 if test "$with_gnu_ld" = yes; then
10617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10618 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'
10620 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10623 # If archive_cmds runs LD, not CC, wlarc should be empty
10624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10625 # investigate it a little bit more. (MM)
10628 # ancient GNU ld didn't support --whole-archive et. al.
10629 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10630 grep 'no-whole-archive' > /dev/null; then
10631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10633 whole_archive_flag_spec_CXX=
10639 # A generic and very simple default shared library creation
10640 # command for GNU C++ for the case where it uses the native
10641 # linker, instead of GNU ld. If possible, this setting should
10642 # overridden to take advantage of the native linker features on
10643 # the platform it is being used on.
10644 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10647 # Commands to make compiler produce verbose output that lists
10648 # what "hidden" libraries, object files and flags are used when
10649 # linking a shared library.
10650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10658 # PORTME: fill in a description of your system's C++ link characteristics
10659 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10664 # FIXME: insert proper C++ library support
10668 if test "$host_cpu" = ia64; then
10669 # On IA64, the linker does run time linking by default, so we don't
10670 # have to do anything special.
10671 aix_use_runtimelinking=no
10672 exp_sym_flag='-Bexport'
10675 aix_use_runtimelinking=no
10677 # Test if we are trying to use run time linking or normal
10678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10679 # need to do runtime linking.
10680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10681 for ld_flag in $LDFLAGS; do
10684 aix_use_runtimelinking=yes
10692 exp_sym_flag='-bexport'
10693 no_entry_flag='-bnoentry'
10696 # When large executables or shared objects are built, AIX ld can
10697 # have problems creating the table of contents. If linking a library
10698 # or program results in "error TOC overflow" add -mminimal-toc to
10699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10702 archive_cmds_CXX=''
10703 hardcode_direct_CXX=yes
10704 hardcode_libdir_separator_CXX=':'
10705 link_all_deplibs_CXX=yes
10707 if test "$GXX" = yes; then
10708 case $host_os in aix4.[012]|aix4.[012].*)
10709 # We only want to do this on AIX 4.2 and lower, the check
10710 # below for broken collect2 doesn't work under 4.3+
10711 collect2name=`${CC} -print-prog-name=collect2
`
10712 if test -f "$collect2name" && \
10713 strings "$collect2name" | grep resolve_lib_name >/dev/null
10715 # We have reworked collect2
10718 # We have old collect2
10719 hardcode_direct_CXX=unsupported
10720 # It fails to find uninstalled libraries when the uninstalled
10721 # path is not listed in the libpath. Setting hardcode_minus_L
10722 # to unsupported forces relinking
10723 hardcode_minus_L_CXX=yes
10724 hardcode_libdir_flag_spec_CXX='-L$libdir'
10725 hardcode_libdir_separator_CXX=
10729 shared_flag='-shared'
10730 if test "$aix_use_runtimelinking" = yes; then
10731 shared_flag="$shared_flag "'${wl}-G'
10735 if test "$host_cpu" = ia64; then
10736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10737 # chokes on -Wl,-G. The following line is correct:
10740 if test "$aix_use_runtimelinking" = yes; then
10741 shared_flag='${wl}-G'
10743 shared_flag='${wl}-bM:SRE'
10748 # It seems that -bexpall does not export symbols beginning with
10749 # underscore (_), so it is better to generate a list of symbols to export.
10750 always_export_symbols_CXX=yes
10751 if test "$aix_use_runtimelinking" = yes; then
10752 # Warning - without using the other runtime loading flags (-brtl),
10753 # -berok will link without error, but may produce a broken library.
10754 allow_undefined_flag_CXX='-berok'
10755 # Determine the default libpath from the value encoded in an empty executable.
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10771 rm -f conftest.$ac_objext conftest$ac_exeext
10772 if { (ac_try="$ac_link"
10773 case "(($ac_try" in
10774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10775 *) ac_try_echo
=$ac_try;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_link") 2>conftest.er1
10780 grep -v '^ *+' conftest.er1
>conftest.err
10782 cat conftest.err
>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } && {
10785 test -z "$ac_cxx_werror_flag" ||
10786 test ! -s conftest.err
10787 } && test -s conftest
$ac_exeext &&
10788 $as_test_x conftest
$ac_exeext; then
10790 lt_aix_libpath_sed
='
10791 /Import File Strings/,/^$/ {
10797 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10798 # Check for a 64-bit object if we didn't find anything.
10799 if test -z "$aix_libpath"; then
10800 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.
$ac_ext >&5
10809 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10810 conftest
$ac_exeext conftest.
$ac_ext
10811 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10813 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10815 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"
10817 if test "$host_cpu" = ia64
; then
10818 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
10819 allow_undefined_flag_CXX
="-z nodefs"
10820 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"
10822 # Determine the default libpath from the value encoded in an empty executable.
10823 cat >conftest.
$ac_ext <<_ACEOF
10826 cat confdefs.h
>>conftest.
$ac_ext
10827 cat >>conftest.
$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10838 rm -f conftest.
$ac_objext conftest
$ac_exeext
10839 if { (ac_try
="$ac_link"
10840 case "(($ac_try" in
10841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_link") 2>conftest.er1
10847 grep -v '^ *+' conftest.er1 >conftest.err
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && {
10852 test -z "$ac_cxx_werror_flag" ||
10853 test ! -s conftest.err
10854 } && test -s conftest$ac_exeext &&
10855 $as_test_x conftest$ac_exeext; then
10857 lt_aix_libpath_sed='
10858 /Import File Strings/,/^$/ {
10864 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
10865 # Check for a 64-bit object if we didn't find anything.
10866 if test -z "$aix_libpath"; then
10867 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
10870 echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10877 conftest$ac_exeext conftest.$ac_ext
10878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10880 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10881 # Warning - without using the other run time loading flags,
10882 # -berok will link without error, but may produce a broken library.
10883 no_undefined_flag_CXX=' ${wl}-bernotok'
10884 allow_undefined_flag_CXX=' ${wl}-berok'
10885 # Exported symbols can be pulled into shared objects from archives
10886 whole_archive_flag_spec_CXX='$convenience'
10887 archive_cmds_need_lc_CXX=yes
10888 # This is similar to how AIX traditionally builds its shared libraries.
10889 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'
10895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10896 allow_undefined_flag_CXX=unsupported
10897 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10898 # support --undefined. This deserves some investigation. FIXME
10899 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10906 case $cc_basename in
10908 # FIXME: insert proper C++ library support
10914 cygwin* | mingw* | pw32*)
10915 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10916 # as there is no search path for DLLs.
10917 hardcode_libdir_flag_spec_CXX='-L$libdir'
10918 allow_undefined_flag_CXX=unsupported
10919 always_export_symbols_CXX=no
10920 enable_shared_with_static_runtimes_CXX=yes
10922 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10923 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'
10924 # If the export-symbols file already is a .def file (1st line
10925 # is EXPORTS), use it as is; otherwise, prepend...
10926 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
10927 cp $export_symbols $output_objdir/$soname.def;
10929 echo EXPORTS > $output_objdir/$soname.def;
10930 cat $export_symbols >> $output_objdir/$soname.def;
10932 $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'
10937 darwin* | rhapsody*)
10938 archive_cmds_need_lc_CXX=no
10939 hardcode_direct_CXX=no
10940 hardcode_automatic_CXX=yes
10941 hardcode_shlibpath_var_CXX=unsupported
10942 whole_archive_flag_spec_CXX=''
10943 link_all_deplibs_CXX=yes
10944 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10945 if test "$GXX" = yes ; then
10946 output_verbose_link_cmd='echo'
10947 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}"
10948 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10949 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}"
10950 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}"
10951 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10952 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}"
10953 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}"
10956 case $cc_basename in
10958 output_verbose_link_cmd='echo'
10959 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'
10960 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10962 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}'
10963 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}'
10973 case $cc_basename in
10975 # FIXME: insert proper C++ library support
10979 # Green Hills C++ Compiler
10980 # FIXME: insert proper C++ library support
10984 # FIXME: insert proper C++ library support
10990 # C++ shared libraries reported to be fairly broken before switch to ELF
10994 archive_cmds_need_lc_CXX=no
10996 freebsd* | dragonfly*)
10997 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11004 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11005 hardcode_libdir_separator_CXX=:
11006 export_dynamic_flag_spec_CXX='${wl}-E'
11007 hardcode_direct_CXX=yes
11008 hardcode_minus_L_CXX=yes # Not in the search PATH,
11009 # but as the default
11010 # location of the library.
11012 case $cc_basename in
11014 # FIXME: insert proper C++ library support
11018 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'
11019 # Commands to make compiler produce verbose output that lists
11020 # what "hidden" libraries, object files and flags are used when
11021 # linking a shared library.
11023 # There doesn't appear to be a way to prevent this compiler from
11024 # explicitly linking system object files so we need to strip them
11025 # from the output so that they don't get included in the library
11027 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'
11030 if test "$GXX" = yes; then
11031 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'
11033 # FIXME: insert proper C++ library support
11040 if test $with_gnu_ld = no; then
11041 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11042 hardcode_libdir_separator_CXX=:
11047 export_dynamic_flag_spec_CXX='${wl}-E'
11053 hardcode_direct_CXX=no
11054 hardcode_shlibpath_var_CXX=no
11057 hardcode_direct_CXX=yes
11058 hardcode_minus_L_CXX=yes # Not in the search PATH,
11059 # but as the default
11060 # location of the library.
11064 case $cc_basename in
11066 # FIXME: insert proper C++ library support
11072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11081 # Commands to make compiler produce verbose output that lists
11082 # what "hidden" libraries, object files and flags are used when
11083 # linking a shared library.
11085 # There doesn't appear to be a way to prevent this compiler from
11086 # explicitly linking system object files so we need to strip them
11087 # from the output so that they don't get included in the library
11089 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'
11092 if test "$GXX" = yes; then
11093 if test $with_gnu_ld = no; then
11096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11102 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'
11107 # FIXME: insert proper C++ library support
11114 hardcode_direct_CXX=no
11115 hardcode_shlibpath_var_CXX=no
11116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11117 export_dynamic_flag_spec_CXX='${wl}-E'
11118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11119 # Instead, shared libraries are loaded at an image base (0x10000000 by
11120 # default) and relocated if they conflict, which is a slow very memory
11121 # consuming and fragmenting process. To avoid this, we pick a random,
11122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11124 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'
11125 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'
11128 case $cc_basename in
11131 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'
11133 # Archives containing C++ object files must be created using
11134 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11135 # necessary to make sure instantiated templates are included
11137 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11140 if test "$GXX" = yes; then
11141 if test "$with_gnu_ld" = no; then
11142 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'
11144 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'
11147 link_all_deplibs_CXX=yes
11150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11151 hardcode_libdir_separator_CXX=:
11153 linux* | k*bsd*-gnu)
11154 case $cc_basename in
11156 # Kuck and Associates, Inc. (KAI) C++ Compiler
11158 # KCC will only create a shared library if the output file
11159 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11160 # to its proper name (with version) after linking.
11161 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'
11162 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'
11163 # Commands to make compiler produce verbose output that lists
11164 # what "hidden" libraries, object files and flags are used when
11165 # linking a shared library.
11167 # There doesn't appear to be a way to prevent this compiler from
11168 # explicitly linking system object files so we need to strip them
11169 # from the output so that they don't get included in the library
11171 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'
11173 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11174 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11176 # Archives containing C++ object files must be created using
11177 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11178 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11183 # version 8.0 and above of icpc choke on multiply defined symbols
11184 # if we add $predep_objects and $postdep_objects, however 7.1 and
11185 # earlier do not add the objects themselves.
11186 case `$CC -V 2>&1` in
11188 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11189 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'
11191 *) # Version 8.0 or newer
11194 ia64
*) tmp_idyn
=' -i_dynamic';;
11196 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11197 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'
11200 archive_cmds_need_lc_CXX
=no
11201 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11202 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11203 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11206 # Portland Group C++ compiler
11207 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11208 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'
11210 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11211 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11212 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'
11216 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11217 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'
11219 runpath_var
=LD_RUN_PATH
11220 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11221 hardcode_libdir_separator_CXX
=:
11223 # Commands to make compiler produce verbose output that lists
11224 # what "hidden" libraries, object files and flags are used when
11225 # linking a shared library.
11227 # There doesn't appear to be a way to prevent this compiler from
11228 # explicitly linking system object files so we need to strip them
11229 # from the output so that they don't get included in the library
11231 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'
11234 case `$CC -V 2>&1 | sed 5q` in
11237 no_undefined_flag_CXX
=' -zdefs'
11238 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11239 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'
11240 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11241 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'
11243 # Not sure whether something based on
11244 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11246 output_verbose_link_cmd
='echo'
11248 # Archives containing C++ object files must be created using
11249 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11250 # necessary to make sure instantiated templates are included
11252 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11259 # FIXME: insert proper C++ library support
11263 # FIXME: insert proper C++ library support
11267 case $cc_basename in
11269 # FIXME: insert proper C++ library support
11273 # FIXME: insert proper C++ library support
11279 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11280 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11282 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11283 hardcode_direct_CXX
=yes
11284 hardcode_shlibpath_var_CXX
=no
11286 # Workaround some broken pre-1.5 toolchains
11287 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11290 # C++ shared libraries are fairly broken
11294 if test -f /usr
/libexec
/ld.so
; then
11295 hardcode_direct_CXX
=yes
11296 hardcode_shlibpath_var_CXX
=no
11297 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11298 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11300 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11301 export_dynamic_flag_spec_CXX
='${wl}-E'
11302 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11304 output_verbose_link_cmd
='echo'
11310 case $cc_basename in
11312 # Kuck and Associates, Inc. (KAI) C++ Compiler
11314 # KCC will only create a shared library if the output file
11315 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11316 # to its proper name (with version) after linking.
11317 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'
11319 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11320 hardcode_libdir_separator_CXX
=:
11322 # Archives containing C++ object files must be created using
11323 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11324 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11328 # Rational C++ 2.4.1
11329 # FIXME: insert proper C++ library support
11333 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11334 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'
11336 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11337 hardcode_libdir_separator_CXX
=:
11339 # Commands to make compiler produce verbose output that lists
11340 # what "hidden" libraries, object files and flags are used when
11341 # linking a shared library.
11343 # There doesn't appear to be a way to prevent this compiler from
11344 # explicitly linking system object files so we need to strip them
11345 # from the output so that they don't get included in the library
11347 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'
11350 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11351 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11352 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'
11354 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11355 hardcode_libdir_separator_CXX
=:
11357 # Commands to make compiler produce verbose output that lists
11358 # what "hidden" libraries, object files and flags are used when
11359 # linking a shared library.
11360 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11363 # FIXME: insert proper C++ library support
11370 case $cc_basename in
11372 # Kuck and Associates, Inc. (KAI) C++ Compiler
11374 # KCC will only create a shared library if the output file
11375 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11376 # to its proper name (with version) after linking.
11377 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'
11379 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11380 hardcode_libdir_separator_CXX
=:
11382 # Archives containing C++ object files must be created using
11383 # the KAI C++ compiler.
11384 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11387 # Rational C++ 2.4.1
11388 # FIXME: insert proper C++ library support
11392 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11393 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'
11394 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11395 echo "-hidden">> $lib.exp~
11396 $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~
11399 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11400 hardcode_libdir_separator_CXX
=:
11402 # Commands to make compiler produce verbose output that lists
11403 # what "hidden" libraries, object files and flags are used when
11404 # linking a shared library.
11406 # There doesn't appear to be a way to prevent this compiler from
11407 # explicitly linking system object files so we need to strip them
11408 # from the output so that they don't get included in the library
11410 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'
11413 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11414 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11415 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'
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.
11423 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11426 # FIXME: insert proper C++ library support
11433 # FIXME: insert proper C++ library support
11437 case $cc_basename in
11440 # FIXME: insert proper C++ library support
11445 # FIXME: insert proper C++ library support
11449 # FIXME: insert proper C++ library support
11455 case $cc_basename in
11457 # Sun C++ 4.2, 5.x and Centerline C++
11458 archive_cmds_need_lc_CXX
=yes
11459 no_undefined_flag_CXX
=' -zdefs'
11460 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11461 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11462 $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'
11464 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11465 hardcode_shlibpath_var_CXX
=no
11467 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11469 # The compiler driver will combine and reorder linker options,
11470 # but understands `-z linker_flag'.
11471 # Supported since Solaris 2.6 (maybe 2.5.1?)
11472 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
11475 link_all_deplibs_CXX
=yes
11477 output_verbose_link_cmd
='echo'
11479 # Archives containing C++ object files must be created using
11480 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11481 # necessary to make sure instantiated templates are included
11483 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11486 # Green Hills C++ Compiler
11487 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11489 # The C++ compiler must be used to create the archive.
11490 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11493 # GNU C++ compiler with Solaris linker
11494 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11495 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11496 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11497 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11498 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11499 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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\""
11506 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11508 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11509 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11510 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11512 # Commands to make compiler produce verbose output that lists
11513 # what "hidden" libraries, object files and flags are used when
11514 # linking a shared library.
11515 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11518 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11520 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11522 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11529 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11530 no_undefined_flag_CXX
='${wl}-z,text'
11531 archive_cmds_need_lc_CXX
=no
11532 hardcode_shlibpath_var_CXX
=no
11533 runpath_var
='LD_RUN_PATH'
11535 case $cc_basename in
11537 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11538 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11541 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11542 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11546 sysv5
* | sco3.2v5
* | sco5v6
*)
11547 # Note: We can NOT use -z defs as we might desire, because we do not
11548 # link with -lc, and that would cause any symbols used from libc to
11549 # always be unresolved, which means just about no library would
11550 # ever link correctly. If we're not using GNU ld we use -z text
11551 # though, which does catch some bad symbols but isn't as heavy-handed
11553 # For security reasons, it is highly recommended that you always
11554 # use absolute paths for naming shared libraries, and exclude the
11555 # DT_RUNPATH tag from executables and libraries. But doing so
11556 # requires that you compile everything twice, which is a pain.
11557 # So that behaviour is only enabled if SCOABSPATH is set to a
11558 # non-empty value in the environment. Most likely only useful for
11559 # creating official distributions of packages.
11560 # This is a hack until libtool officially supports absolute path
11561 # names for shared libraries.
11562 no_undefined_flag_CXX
='${wl}-z,text'
11563 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11564 archive_cmds_need_lc_CXX
=no
11565 hardcode_shlibpath_var_CXX
=no
11566 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11567 hardcode_libdir_separator_CXX
=':'
11568 link_all_deplibs_CXX
=yes
11569 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11570 runpath_var
='LD_RUN_PATH'
11572 case $cc_basename in
11574 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11575 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11578 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11579 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11584 case $cc_basename in
11586 # NonStop-UX NCC 3.20
11587 # FIXME: insert proper C++ library support
11591 # FIXME: insert proper C++ library support
11597 # FIXME: insert proper C++ library support
11601 # FIXME: insert proper C++ library support
11605 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11606 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11607 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11613 ## There is no encapsulation within the following macros, do not change
11614 ## the running order or otherwise move them around unless you know exactly
11615 ## what you are doing...
11616 cat > conftest.
$ac_ext <<EOF
11620 Foo (void) { a = 0; }
11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627 (eval $ac_compile) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; then
11631 # Parse the compiler output and extract the necessary
11632 # objects, libraries and library flags.
11634 # Sentinel used to keep track of whether or not we are before
11635 # the conftest object file.
11636 pre_test_object_deps_done
=no
11638 # The `*' in the case matches for architectures that use `case' in
11639 # $output_verbose_cmd can trigger glob expansion during the loop
11640 # eval without this substitution.
11641 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11643 for p
in `eval $output_verbose_link_cmd`; do
11647 # Some compilers place space between "-{L,R}" and the path.
11648 # Remove the space.
11649 if test $p = "-L" \
11650 ||
test $p = "-R"; then
11657 if test "$pre_test_object_deps_done" = no
; then
11660 # Internal compiler library paths should come after those
11661 # provided the user. The postdeps already come after the
11662 # user supplied libs so there is no need to process them.
11663 if test -z "$compiler_lib_search_path_CXX"; then
11664 compiler_lib_search_path_CXX
="${prev}${p}"
11666 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11669 # The "-l" case would never come before the object being
11670 # linked, so don't bother handling this case.
11673 if test -z "$postdeps_CXX"; then
11674 postdeps_CXX
="${prev}${p}"
11676 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11682 # This assumes that the test object file only shows up
11683 # once in the compiler output.
11684 if test "$p" = "conftest.$objext"; then
11685 pre_test_object_deps_done
=yes
11689 if test "$pre_test_object_deps_done" = no
; then
11690 if test -z "$predep_objects_CXX"; then
11691 predep_objects_CXX
="$p"
11693 predep_objects_CXX
="$predep_objects_CXX $p"
11696 if test -z "$postdep_objects_CXX"; then
11697 postdep_objects_CXX
="$p"
11699 postdep_objects_CXX
="$postdep_objects_CXX $p"
11704 *) ;; # Ignore the rest.
11712 echo "libtool.m4: error: problem compiling CXX test program"
11715 $rm -f confest.
$objext
11717 compiler_lib_search_dirs_CXX
=
11718 if test -n "$compiler_lib_search_path_CXX"; then
11719 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11722 # PORTME: override above test on systems where it is broken
11725 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11726 # hack all around it, let's just trust "g++" to DTRT.
11727 predep_objects_CXX
=
11728 postdep_objects_CXX
=
11733 case `$CC -V 2>&1 | sed 5q` in
11737 # The more standards-conforming stlport4 library is
11738 # incompatible with the Cstd library. Avoid specifying
11739 # it if it's in CXXFLAGS. Ignore libCrun as
11740 # -library=stlport4 depends on it.
11741 case " $CXX $CXXFLAGS " in
11742 *" -library=stlport4 "*)
11743 solaris_use_stlport4
=yes
11746 if test "$solaris_use_stlport4" != yes; then
11747 postdeps_CXX
='-library=Cstd -library=Crun'
11754 case $cc_basename in
11756 # The more standards-conforming stlport4 library is
11757 # incompatible with the Cstd library. Avoid specifying
11758 # it if it's in CXXFLAGS. Ignore libCrun as
11759 # -library=stlport4 depends on it.
11760 case " $CXX $CXXFLAGS " in
11761 *" -library=stlport4 "*)
11762 solaris_use_stlport4
=yes
11766 # Adding this requires a known-good setup of shared libraries for
11767 # Sun compiler versions before 5.6, else PIC objects from an old
11768 # archive will be linked into the output, leading to subtle bugs.
11769 if test "$solaris_use_stlport4" != yes; then
11770 postdeps_CXX
='-library=Cstd -library=Crun'
11777 case " $postdeps_CXX " in
11778 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11781 lt_prog_compiler_wl_CXX
=
11782 lt_prog_compiler_pic_CXX
=
11783 lt_prog_compiler_static_CXX
=
11785 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11786 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11788 # C++ specific cases for pic, static, wl, etc.
11789 if test "$GXX" = yes; then
11790 lt_prog_compiler_wl_CXX
='-Wl,'
11791 lt_prog_compiler_static_CXX
='-static'
11795 # All AIX code is PIC.
11796 if test "$host_cpu" = ia64
; then
11797 # AIX 5 now supports IA64 processor
11798 lt_prog_compiler_static_CXX
='-Bstatic'
11802 # FIXME: we need at least 68020 code to build shared libraries, but
11803 # adding the `-m68020' flag to GCC prevents building anything better,
11805 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11807 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11808 # PIC is the default for these OSes.
11810 mingw
* | cygwin
* | os2
* | pw32
*)
11811 # This hack is so that the source file can tell whether it is being
11812 # built for inclusion in a dll (and should export symbols for example).
11813 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11814 # (--disable-auto-import) libraries
11815 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11817 darwin
* | rhapsody
*)
11818 # PIC is the default on this platform
11819 # Common symbols not allowed in MH_DYLIB files
11820 lt_prog_compiler_pic_CXX
='-fno-common'
11823 # DJGPP does not support shared libraries at all
11824 lt_prog_compiler_pic_CXX
=
11827 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11828 # Instead, we relocate shared libraries at runtime.
11831 if test -d /usr
/nec
; then
11832 lt_prog_compiler_pic_CXX
=-Kconform_pic
11836 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11837 # not for PA HP-UX.
11842 lt_prog_compiler_pic_CXX
='-fPIC'
11847 lt_prog_compiler_pic_CXX
='-fPIC'
11853 # All AIX code is PIC.
11854 if test "$host_cpu" = ia64
; then
11855 # AIX 5 now supports IA64 processor
11856 lt_prog_compiler_static_CXX
='-Bstatic'
11858 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11862 case $cc_basename in
11864 # Green Hills C++ Compiler
11865 # _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"
11870 # PIC is the default on this platform
11871 # Common symbols not allowed in MH_DYLIB files
11872 case $cc_basename in
11874 lt_prog_compiler_pic_CXX
='-qnocommon'
11875 lt_prog_compiler_wl_CXX
='-Wl,'
11880 case $cc_basename in
11882 lt_prog_compiler_pic_CXX
='-KPIC'
11885 # Green Hills C++ Compiler
11886 lt_prog_compiler_pic_CXX
='-pic'
11892 freebsd
* | dragonfly
*)
11893 # FreeBSD uses GNU C++
11895 hpux9
* | hpux10
* | hpux11
*)
11896 case $cc_basename in
11898 lt_prog_compiler_wl_CXX
='-Wl,'
11899 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11900 if test "$host_cpu" != ia64
; then
11901 lt_prog_compiler_pic_CXX
='+Z'
11905 lt_prog_compiler_wl_CXX
='-Wl,'
11906 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11912 lt_prog_compiler_pic_CXX
='+Z'
11921 # This is c89, which is MS Visual C++ (no shared libs)
11922 # Anyone wants to do a port?
11924 irix5
* | irix6
* | nonstopux
*)
11925 case $cc_basename in
11927 lt_prog_compiler_wl_CXX
='-Wl,'
11928 lt_prog_compiler_static_CXX
='-non_shared'
11929 # CC pic flag -KPIC is the default.
11935 linux
* | k
*bsd
*-gnu)
11936 case $cc_basename in
11939 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11940 lt_prog_compiler_pic_CXX
='-fPIC'
11944 lt_prog_compiler_wl_CXX
='-Wl,'
11945 lt_prog_compiler_pic_CXX
='-KPIC'
11946 lt_prog_compiler_static_CXX
='-static'
11949 # Portland Group C++ compiler.
11950 lt_prog_compiler_wl_CXX
='-Wl,'
11951 lt_prog_compiler_pic_CXX
='-fpic'
11952 lt_prog_compiler_static_CXX
='-Bstatic'
11956 # Make sure the PIC flag is empty. It appears that all Alpha
11957 # Linux and Compaq Tru64 Unix objects are PIC.
11958 lt_prog_compiler_pic_CXX
=
11959 lt_prog_compiler_static_CXX
='-non_shared'
11962 case `$CC -V 2>&1 | sed 5q` in
11965 lt_prog_compiler_pic_CXX
='-KPIC'
11966 lt_prog_compiler_static_CXX
='-Bstatic'
11967 lt_prog_compiler_wl_CXX
='-Qoption ld '
11978 case $cc_basename in
11980 lt_prog_compiler_pic_CXX
='-W c,exportall'
11988 osf3
* | osf4
* | osf5
*)
11989 case $cc_basename in
11991 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11994 # Rational C++ 2.4.1
11995 lt_prog_compiler_pic_CXX
='-pic'
11998 # Digital/Compaq C++
11999 lt_prog_compiler_wl_CXX
='-Wl,'
12000 # Make sure the PIC flag is empty. It appears that all Alpha
12001 # Linux and Compaq Tru64 Unix objects are PIC.
12002 lt_prog_compiler_pic_CXX
=
12003 lt_prog_compiler_static_CXX
='-non_shared'
12012 case $cc_basename in
12014 # Sun C++ 4.2, 5.x and Centerline C++
12015 lt_prog_compiler_pic_CXX
='-KPIC'
12016 lt_prog_compiler_static_CXX
='-Bstatic'
12017 lt_prog_compiler_wl_CXX
='-Qoption ld '
12020 # Green Hills C++ Compiler
12021 lt_prog_compiler_pic_CXX
='-PIC'
12028 case $cc_basename in
12031 lt_prog_compiler_pic_CXX
='-pic'
12032 lt_prog_compiler_static_CXX
='-Bstatic'
12036 lt_prog_compiler_pic_CXX
='-pic'
12043 case $cc_basename in
12045 # NonStop-UX NCC 3.20
12046 lt_prog_compiler_pic_CXX
='-KPIC'
12052 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12053 case $cc_basename in
12055 lt_prog_compiler_wl_CXX
='-Wl,'
12056 lt_prog_compiler_pic_CXX
='-KPIC'
12057 lt_prog_compiler_static_CXX
='-Bstatic'
12064 lt_prog_compiler_can_build_shared_CXX
=no
12069 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12070 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12073 # Check to make sure the PIC flag actually works.
12075 if test -n "$lt_prog_compiler_pic_CXX"; then
12077 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12078 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12079 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 lt_cv_prog_compiler_pic_works_CXX
=no
12083 ac_outfile
=conftest.
$ac_objext
12084 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12085 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12086 # Insert the option either (1) after the last *FLAGS variable, or
12087 # (2) before a word containing "conftest.", or (3) at the end.
12088 # Note that $ac_compile itself does not contain backslashes and begins
12089 # with a dollar sign (not a hyphen), so the echo should work correctly.
12090 # The option is referenced via a variable to avoid confusing sed.
12091 lt_compile
=`echo "$ac_compile" | $SED \
12092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12094 -e 's:$: $lt_compiler_flag:'`
12095 (eval echo "\"\$as_me:12095: $lt_compile\"" >&5)
12096 (eval "$lt_compile" 2>conftest.err
)
12098 cat conftest.err
>&5
12099 echo "$as_me:12099: \$? = $ac_status" >&5
12100 if (exit $ac_status) && test -s "$ac_outfile"; then
12101 # The compiler can only warn and ignore the option if not recognized
12102 # So say no if there are warnings other than the usual output.
12103 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12104 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12105 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12106 lt_cv_prog_compiler_pic_works_CXX
=yes
12112 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12113 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12115 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
12116 case $lt_prog_compiler_pic_CXX in
12118 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12121 lt_prog_compiler_pic_CXX
=
12122 lt_prog_compiler_can_build_shared_CXX
=no
12127 # For platforms which do not support PIC, -DPIC is meaningless:
12129 lt_prog_compiler_pic_CXX
=
12132 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12137 # Check to make sure the static flag actually works.
12139 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12140 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12141 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12142 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 lt_cv_prog_compiler_static_works_CXX
=no
12146 save_LDFLAGS
="$LDFLAGS"
12147 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12148 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12149 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12150 # The linker can only warn and ignore the option if not recognized
12151 # So say no if there are warnings
12152 if test -s conftest.err
; then
12153 # Append any errors to the config.log.
12154 cat conftest.err
1>&5
12155 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12156 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12157 if diff conftest.exp conftest.er2
>/dev
/null
; then
12158 lt_cv_prog_compiler_static_works_CXX
=yes
12161 lt_cv_prog_compiler_static_works_CXX
=yes
12165 LDFLAGS
="$save_LDFLAGS"
12168 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12169 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12171 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
12174 lt_prog_compiler_static_CXX
=
12178 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12179 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12180 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 lt_cv_prog_compiler_c_o_CXX
=no
12184 $rm -r conftest
2>/dev
/null
12188 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12190 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12191 # Insert the option either (1) after the last *FLAGS variable, or
12192 # (2) before a word containing "conftest.", or (3) at the end.
12193 # Note that $ac_compile itself does not contain backslashes and begins
12194 # with a dollar sign (not a hyphen), so the echo should work correctly.
12195 lt_compile
=`echo "$ac_compile" | $SED \
12196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12198 -e 's:$: $lt_compiler_flag:'`
12199 (eval echo "\"\$as_me:12199: $lt_compile\"" >&5)
12200 (eval "$lt_compile" 2>out
/conftest.err
)
12202 cat out
/conftest.err
>&5
12203 echo "$as_me:12203: \$? = $ac_status" >&5
12204 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12206 # The compiler can only warn and ignore the option if not recognized
12207 # So say no if there are warnings
12208 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12209 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12210 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12211 lt_cv_prog_compiler_c_o_CXX
=yes
12216 # SGI C++ compiler will create directory out/ii_files/ for
12217 # template instantiation
12218 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12219 $rm out
/* && rmdir out
12225 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12226 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12229 hard_links
="nottested"
12230 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12231 # do not overwrite the value of need_locks provided by the user
12232 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12233 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12236 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12238 ln conftest.a conftest.b
2>&5 || hard_links
=no
12239 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12240 { echo "$as_me:$LINENO: result: $hard_links" >&5
12241 echo "${ECHO_T}$hard_links" >&6; }
12242 if test "$hard_links" = no
; then
12243 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12244 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12251 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12254 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12257 # If we're using GNU nm, then we don't want the "-C" option.
12258 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12259 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12260 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'
12262 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'
12266 export_symbols_cmds_CXX
="$ltdll_cmds"
12269 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'
12272 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12275 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12277 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12278 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12279 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12282 # Do we need to explicitly link libc?
12284 case "x$archive_cmds_need_lc_CXX" in
12286 # Assume -lc should be added
12287 archive_cmds_need_lc_CXX
=yes
12289 if test "$enable_shared" = yes && test "$GCC" = yes; then
12290 case $archive_cmds_CXX in
12292 # FIXME: we may have to deal with multi-command sequences.
12295 # Test whether the compiler implicitly links with -lc since on some
12296 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12297 # to ld, don't add -lc before -lgcc.
12298 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12299 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12301 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } 2>conftest.err
; then
12310 libobjs
=conftest.
$ac_objext
12312 wl
=$lt_prog_compiler_wl_CXX
12313 pic_flag
=$lt_prog_compiler_pic_CXX
12319 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12320 allow_undefined_flag_CXX
=
12321 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12322 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }
12327 archive_cmds_need_lc_CXX
=no
12329 archive_cmds_need_lc_CXX
=yes
12331 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12333 cat conftest.err
1>&5
12336 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12337 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12344 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12345 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12346 library_names_spec
=
12347 libname_spec
='lib$name'
12351 postuninstall_cmds
=
12355 shlibpath_overrides_runpath
=unknown
12357 dynamic_linker
="$host_os ld.so"
12358 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12360 need_lib_prefix
=unknown
12361 hardcode_into_libs
=no
12363 # when you set need_version to no, make sure it does not cause -set_version
12364 # flags to be left without arguments
12365 need_version
=unknown
12370 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12371 shlibpath_var
=LIBPATH
12373 # AIX 3 has no versioning support, so we append a major version to the name.
12374 soname_spec
='${libname}${release}${shared_ext}$major'
12381 hardcode_into_libs
=yes
12382 if test "$host_cpu" = ia64
; then
12383 # AIX 5 supports IA64
12384 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12385 shlibpath_var
=LD_LIBRARY_PATH
12387 # With GCC up to 2.95.x, collect2 would create an import file
12388 # for dependence libraries. The import file would start with
12389 # the line `#! .'. This would cause the generated library to
12390 # depend on `.', always an invalid library. This was fixed in
12391 # development snapshots of GCC prior to 3.0.
12393 aix4 | aix4.
[01] | aix4.
[01].
*)
12394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12396 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12399 can_build_shared
=no
12403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12404 # soname into executable. Probably we can add versioning support to
12405 # collect2, so additional links can be useful in future.
12406 if test "$aix_use_runtimelinking" = yes; then
12407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12408 # instead of lib<name>.a to let people know that these are not
12409 # typical AIX shared libraries.
12410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12412 # We preserve .a as extension for shared libraries through AIX4.2
12413 # and later when we are not doing run time linking.
12414 library_names_spec
='${libname}${release}.a $libname.a'
12415 soname_spec
='${libname}${release}${shared_ext}$major'
12417 shlibpath_var
=LIBPATH
12422 library_names_spec
='$libname.ixlibrary $libname.a'
12423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12424 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'
12428 library_names_spec
='${libname}${shared_ext}'
12429 dynamic_linker
="$host_os ld.so"
12430 shlibpath_var
=LIBRARY_PATH
12436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12437 soname_spec
='${libname}${release}${shared_ext}$major'
12438 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12439 shlibpath_var
=LD_LIBRARY_PATH
12440 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12441 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12442 # the default ld.so.conf also contains /usr/contrib/lib and
12443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12444 # libtool to hard-code these into programs
12447 cygwin
* | mingw
* | pw32
*)
12448 version_type
=windows
12453 case $GCC,$host_os in
12454 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12455 library_names_spec
='$libname.dll.a'
12456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12457 postinstall_cmds
='base_file=`basename \${file}`~
12458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12459 dldir=$destdir/`dirname \$dlpath`~
12460 test -d \$dldir || mkdir -p \$dldir~
12461 $install_prog $dir/$dlname \$dldir/$dlname~
12462 chmod a+x \$dldir/$dlname'
12463 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12464 dlpath=$dir/\$dldll~
12466 shlibpath_overrides_runpath
=yes
12470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12471 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12472 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12475 # MinGW DLLs use traditional 'lib' prefix
12476 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12477 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12478 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12479 # It is most probably a Windows format PATH printed by
12480 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12481 # path with ; separators, and with drive letters. We can handle the
12482 # drive letters (cygwin fileutils understands them), so leave them,
12483 # especially as we might pass files found there to a mingw objdump,
12484 # which wouldn't understand a cygwinified path. Ahh.
12485 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12487 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12491 # pw32 DLLs use 'pw' prefix rather than 'lib'
12492 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12498 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12501 dynamic_linker
='Win32 ld.exe'
12502 # FIXME: first we should search . and the directory the executable is in
12506 darwin
* | rhapsody
*)
12507 dynamic_linker
="$host_os dyld"
12508 version_type
=darwin
12511 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12512 soname_spec
='${libname}${release}${major}$shared_ext'
12513 shlibpath_overrides_runpath
=yes
12514 shlibpath_var
=DYLD_LIBRARY_PATH
12515 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12517 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12525 soname_spec
='${libname}${release}${shared_ext}$major'
12526 shlibpath_var
=LD_LIBRARY_PATH
12533 freebsd
* | dragonfly
*)
12534 # DragonFly does not have aout. When/if they implement a new
12535 # versioning mechanism, adjust this.
12536 if test -x /usr
/bin
/objformat
; then
12537 objformat
=`/usr/bin/objformat`
12540 freebsd
[123]*) objformat
=aout
;;
12541 *) objformat
=elf
;;
12544 version_type
=freebsd-
$objformat
12545 case $version_type in
12547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12552 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12556 shlibpath_var
=LD_LIBRARY_PATH
12559 shlibpath_overrides_runpath
=yes
12561 freebsd3.
[01]* | freebsdelf3.
[01]*)
12562 shlibpath_overrides_runpath
=yes
12563 hardcode_into_libs
=yes
12565 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12566 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12567 shlibpath_overrides_runpath
=no
12568 hardcode_into_libs
=yes
12570 *) # from 4.6 on, and DragonFly
12571 shlibpath_overrides_runpath
=yes
12572 hardcode_into_libs
=yes
12581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12582 soname_spec
='${libname}${release}${shared_ext}$major'
12583 shlibpath_var
=LD_LIBRARY_PATH
12584 hardcode_into_libs
=yes
12587 hpux9
* | hpux10
* | hpux11
*)
12588 # Give a soname corresponding to the major version so that dld.sl refuses to
12589 # link against other versions.
12596 hardcode_into_libs
=yes
12597 dynamic_linker
="$host_os dld.so"
12598 shlibpath_var
=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601 soname_spec
='${libname}${release}${shared_ext}$major'
12602 if test "X$HPUX_IA64_MODE" = X32
; then
12603 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12605 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12607 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12611 hardcode_into_libs
=yes
12612 dynamic_linker
="$host_os dld.sl"
12613 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12614 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12616 soname_spec
='${libname}${release}${shared_ext}$major'
12617 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12618 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12622 dynamic_linker
="$host_os dld.sl"
12623 shlibpath_var
=SHLIB_PATH
12624 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12626 soname_spec
='${libname}${release}${shared_ext}$major'
12629 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12630 postinstall_cmds
='chmod 555 $lib'
12637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12638 soname_spec
='${libname}${release}${shared_ext}$major'
12639 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12640 shlibpath_var
=LD_LIBRARY_PATH
12641 shlibpath_overrides_runpath
=no
12642 hardcode_into_libs
=yes
12645 irix5
* | irix6
* | nonstopux
*)
12647 nonstopux
*) version_type
=nonstopux
;;
12649 if test "$lt_cv_prog_gnu_ld" = yes; then
12657 soname_spec
='${libname}${release}${shared_ext}$major'
12658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12660 irix5
* | nonstopux
*)
12661 libsuff
= shlibsuff
=
12664 case $LD in # libtool.m4 will add one of these switches to LD
12665 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12666 libsuff
= shlibsuff
= libmagic
=32-bit;;
12667 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12668 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12669 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12670 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12671 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12675 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12676 shlibpath_overrides_runpath
=no
12677 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12678 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12679 hardcode_into_libs
=yes
12682 # No shared lib support for Linux oldld, aout, or coff.
12683 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12687 # This must be Linux ELF.
12688 linux
* | k
*bsd
*-gnu)
12692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12693 soname_spec
='${libname}${release}${shared_ext}$major'
12694 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12695 shlibpath_var
=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath
=no
12697 # This implies no fast_install, which is unacceptable.
12698 # Some rework will be needed to allow for fast_install
12699 # before this can be enabled.
12700 hardcode_into_libs
=yes
12702 # Append ld.so.conf contents to the search path
12703 if test -f /etc
/ld.so.conf
; then
12704 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' ' '`
12705 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12708 # We used to test for /lib/ld.so.1 and disable shared libraries on
12709 # powerpc, because MkLinux only supported shared libraries with the
12710 # GNU dynamic linker. Since this was broken with cross compilers,
12711 # most powerpc-linux boxes support dynamic linking these days and
12712 # people can always --disable-shared, the test was removed, and we
12713 # assume the GNU/Linux dynamic linker is in use.
12714 dynamic_linker
='GNU/Linux ld.so'
12721 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12722 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12723 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12724 dynamic_linker
='NetBSD (a.out) ld.so'
12726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12727 soname_spec
='${libname}${release}${shared_ext}$major'
12728 dynamic_linker
='NetBSD ld.elf_so'
12730 shlibpath_var
=LD_LIBRARY_PATH
12731 shlibpath_overrides_runpath
=yes
12732 hardcode_into_libs
=yes
12737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738 shlibpath_var
=LD_LIBRARY_PATH
12739 shlibpath_overrides_runpath
=yes
12746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12747 soname_spec
='${libname}${release}${shared_ext}$major'
12748 shlibpath_var
=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath
=yes
12754 sys_lib_dlsearch_path_spec
="/usr/lib"
12756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12758 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12759 *) need_version
=no
;;
12761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12762 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12763 shlibpath_var
=LD_LIBRARY_PATH
12764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12766 openbsd2.
[89] | openbsd2.
[89].
*)
12767 shlibpath_overrides_runpath
=no
12770 shlibpath_overrides_runpath
=yes
12774 shlibpath_overrides_runpath
=yes
12779 libname_spec
='$name'
12782 library_names_spec
='$libname${shared_ext} $libname.a'
12783 dynamic_linker
='OS/2 ld.exe'
12784 shlibpath_var
=LIBPATH
12787 osf3
* | osf4
* | osf5
*)
12791 soname_spec
='${libname}${release}${shared_ext}$major'
12792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 shlibpath_var
=LD_LIBRARY_PATH
12794 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12795 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12807 soname_spec
='${libname}${release}${shared_ext}$major'
12808 shlibpath_var
=LD_LIBRARY_PATH
12809 shlibpath_overrides_runpath
=yes
12810 hardcode_into_libs
=yes
12811 # ldd complains unless libraries are executable
12812 postinstall_cmds
='chmod +x $lib'
12817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12818 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12819 shlibpath_var
=LD_LIBRARY_PATH
12820 shlibpath_overrides_runpath
=yes
12821 if test "$with_gnu_ld" = yes; then
12829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830 soname_spec
='${libname}${release}${shared_ext}$major'
12831 shlibpath_var
=LD_LIBRARY_PATH
12832 case $host_vendor in
12834 shlibpath_overrides_runpath
=no
12836 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12837 runpath_var
=LD_RUN_PATH
12845 shlibpath_overrides_runpath
=no
12846 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12852 if test -d /usr
/nec
;then
12854 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12855 soname_spec
='$libname${shared_ext}.$major'
12856 shlibpath_var
=LD_LIBRARY_PATH
12860 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12861 version_type
=freebsd-elf
12864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12865 soname_spec
='${libname}${release}${shared_ext}$major'
12866 shlibpath_var
=LD_LIBRARY_PATH
12867 hardcode_into_libs
=yes
12868 if test "$with_gnu_ld" = yes; then
12869 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12870 shlibpath_overrides_runpath
=no
12872 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12873 shlibpath_overrides_runpath
=yes
12876 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12880 sys_lib_dlsearch_path_spec
='/usr/lib'
12885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886 soname_spec
='${libname}${release}${shared_ext}$major'
12887 shlibpath_var
=LD_LIBRARY_PATH
12894 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12895 echo "${ECHO_T}$dynamic_linker" >&6; }
12896 test "$dynamic_linker" = no
&& can_build_shared
=no
12898 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
12904 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12905 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
12911 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12913 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12914 if test "$GCC" = yes; then
12915 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12918 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12919 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12920 hardcode_action_CXX
=
12921 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12922 test -n "$runpath_var_CXX" || \
12923 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12925 # We can hardcode non-existant directories.
12926 if test "$hardcode_direct_CXX" != no
&&
12927 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12928 # have to relink, otherwise we might link with an installed library
12929 # when we should be linking with a yet-to-be-installed one
12930 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12931 test "$hardcode_minus_L_CXX" != no
; then
12932 # Linking always hardcodes the temporary library directory.
12933 hardcode_action_CXX
=relink
12935 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12936 hardcode_action_CXX
=immediate
12939 # We cannot hardcode anything, or else we can only hardcode existing
12941 hardcode_action_CXX
=unsupported
12943 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12944 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12946 if test "$hardcode_action_CXX" = relink
; then
12947 # Fast installation is not supported
12948 enable_fast_install
=no
12949 elif test "$shlibpath_overrides_runpath" = yes ||
12950 test "$enable_shared" = no
; then
12951 # Fast installation is not necessary
12952 enable_fast_install
=needless
12956 # The else clause should only fire when bootstrapping the
12957 # libtool distribution, otherwise you forgot to ship ltmain.sh
12958 # with your package, and you will get complaints that there are
12959 # no rules to generate ltmain.sh.
12960 if test -f "$ltmain"; then
12961 # See if we are running on zsh, and set the options which allow our commands through
12962 # without removal of \ escapes.
12963 if test -n "${ZSH_VERSION+set}" ; then
12964 setopt NO_GLOB_SUBST
12966 # Now quote all the things that may contain metacharacters while being
12967 # careful not to overquote the AC_SUBSTed values. We take copies of the
12968 # variables and quote the copies for generation of the libtool script.
12969 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12971 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12972 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12973 deplibs_check_method reload_flag reload_cmds need_locks \
12974 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12975 lt_cv_sys_global_symbol_to_c_name_address \
12976 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12977 old_postinstall_cmds old_postuninstall_cmds \
12981 lt_prog_compiler_wl_CXX \
12982 lt_prog_compiler_pic_CXX \
12983 lt_prog_compiler_static_CXX \
12984 lt_prog_compiler_no_builtin_flag_CXX \
12985 export_dynamic_flag_spec_CXX \
12986 thread_safe_flag_spec_CXX \
12987 whole_archive_flag_spec_CXX \
12988 enable_shared_with_static_runtimes_CXX \
12989 old_archive_cmds_CXX \
12990 old_archive_from_new_cmds_CXX \
12991 predep_objects_CXX \
12992 postdep_objects_CXX \
12995 compiler_lib_search_path_CXX \
12996 compiler_lib_search_dirs_CXX \
12998 archive_expsym_cmds_CXX \
12999 postinstall_cmds_CXX \
13000 postuninstall_cmds_CXX \
13001 old_archive_from_expsyms_cmds_CXX \
13002 allow_undefined_flag_CXX \
13003 no_undefined_flag_CXX \
13004 export_symbols_cmds_CXX \
13005 hardcode_libdir_flag_spec_CXX \
13006 hardcode_libdir_flag_spec_ld_CXX \
13007 hardcode_libdir_separator_CXX \
13008 hardcode_automatic_CXX \
13010 module_expsym_cmds_CXX \
13011 lt_cv_prog_compiler_c_o_CXX \
13012 fix_srcfile_path_CXX \
13013 exclude_expsyms_CXX \
13014 include_expsyms_CXX
; do
13017 old_archive_cmds_CXX | \
13018 old_archive_from_new_cmds_CXX | \
13019 archive_cmds_CXX | \
13020 archive_expsym_cmds_CXX | \
13021 module_cmds_CXX | \
13022 module_expsym_cmds_CXX | \
13023 old_archive_from_expsyms_cmds_CXX | \
13024 export_symbols_cmds_CXX | \
13025 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13026 postinstall_cmds | postuninstall_cmds | \
13027 old_postinstall_cmds | old_postuninstall_cmds | \
13028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13029 # Double-quote double-evaled strings.
13030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13039 *'\$0 --fallback-echo"')
13040 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13046 cat <<__EOF__ >> "$cfgfile"
13047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13051 # Shell to use when invoking shell scripts.
13054 # Whether or not to build shared libraries.
13055 build_libtool_libs=$enable_shared
13057 # Whether or not to build static libraries.
13058 build_old_libs=$enable_static
13060 # Whether or not to add -lc for building shared libraries.
13061 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13063 # Whether or not to disallow shared libs when runtime libs are static
13064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13066 # Whether or not to optimize for fast installation.
13067 fast_install=$enable_fast_install
13070 host_alias=$host_alias
13074 # The build system.
13075 build_alias=$build_alias
13079 # An echo program that does not interpret backslashes.
13084 AR_FLAGS=$lt_AR_FLAGS
13089 # LTCC compiler flags.
13090 LTCFLAGS=$lt_LTCFLAGS
13092 # A language-specific compiler.
13093 CC=$lt_compiler_CXX
13095 # Is the compiler the GNU C compiler?
13101 # The linker used to build libraries.
13104 # Whether we need hard or soft links.
13107 # A BSD-compatible nm program.
13110 # A symbol stripping program
13113 # Used to examine libraries when file_magic_cmd begins "file"
13114 MAGIC_CMD=$MAGIC_CMD
13116 # Used on cygwin: DLL creation program.
13119 # Used on cygwin: object dumper.
13122 # Used on cygwin: assembler.
13125 # The name of the directory that contains temporary libtool files.
13128 # How to create reloadable object files.
13129 reload_flag=$lt_reload_flag
13130 reload_cmds=$lt_reload_cmds
13132 # How to pass a linker flag through the compiler.
13133 wl=$lt_lt_prog_compiler_wl_CXX
13135 # Object file suffix (normally "o").
13136 objext="$ac_objext"
13138 # Old archive suffix (normally "a").
13141 # Shared library suffix (normally ".so").
13142 shrext_cmds='$shrext_cmds'
13144 # Executable file suffix (normally "").
13147 # Additional compiler flags for building library objects.
13148 pic_flag=$lt_lt_prog_compiler_pic_CXX
13151 # What is the maximum length of a command?
13152 max_cmd_len=$lt_cv_sys_max_cmd_len
13154 # Does compiler simultaneously support -c and -o options?
13155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13157 # Must we lock files when doing compilation?
13158 need_locks=$lt_need_locks
13160 # Do we need the lib prefix for modules?
13161 need_lib_prefix=$need_lib_prefix
13163 # Do we need a version for libraries?
13164 need_version=$need_version
13166 # Whether dlopen is supported.
13167 dlopen_support=$enable_dlopen
13169 # Whether dlopen of programs is supported.
13170 dlopen_self=$enable_dlopen_self
13172 # Whether dlopen of statically linked programs is supported.
13173 dlopen_self_static=$enable_dlopen_self_static
13175 # Compiler flag to prevent dynamic linking.
13176 link_static_flag=$lt_lt_prog_compiler_static_CXX
13178 # Compiler flag to turn off builtin functions.
13179 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13181 # Compiler flag to allow reflexive dlopens.
13182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13184 # Compiler flag to generate shared objects directly from archives.
13185 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13187 # Compiler flag to generate thread-safe objects.
13188 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13190 # Library versioning type.
13191 version_type=$version_type
13193 # Format of library name prefix.
13194 libname_spec=$lt_libname_spec
13196 # List of archive names. First name is the real one, the rest are links.
13197 # The last name is the one that the linker finds with -lNAME.
13198 library_names_spec=$lt_library_names_spec
13200 # The coded name of the library, if different from the real name.
13201 soname_spec=$lt_soname_spec
13203 # Commands used to build and install an old-style archive.
13205 old_archive_cmds=$lt_old_archive_cmds_CXX
13206 old_postinstall_cmds=$lt_old_postinstall_cmds
13207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13209 # Create an old-style archive from a shared archive.
13210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13212 # Create a temporary old-style archive to link instead of a shared archive.
13213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13215 # Commands used to build and install a shared archive.
13216 archive_cmds=$lt_archive_cmds_CXX
13217 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13218 postinstall_cmds=$lt_postinstall_cmds
13219 postuninstall_cmds=$lt_postuninstall_cmds
13221 # Commands used to build a loadable module (assumed same as above if empty)
13222 module_cmds=$lt_module_cmds_CXX
13223 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13225 # Commands to strip libraries.
13226 old_striplib=$lt_old_striplib
13227 striplib=$lt_striplib
13229 # Dependencies to place before the objects being linked to create a
13231 predep_objects=$lt_predep_objects_CXX
13233 # Dependencies to place after the objects being linked to create a
13235 postdep_objects=$lt_postdep_objects_CXX
13237 # Dependencies to place before the objects being linked to create a
13239 predeps=$lt_predeps_CXX
13241 # Dependencies to place after the objects being linked to create a
13243 postdeps=$lt_postdeps_CXX
13245 # The directories searched by this compiler when creating a shared
13247 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13249 # The library search path used internally by the compiler when linking
13250 # a shared library.
13251 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13253 # Method to check whether dependent libraries are shared objects.
13254 deplibs_check_method=$lt_deplibs_check_method
13256 # Command to use when deplibs_check_method == file_magic.
13257 file_magic_cmd=$lt_file_magic_cmd
13259 # Flag that allows shared libraries with undefined symbols to be built.
13260 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13262 # Flag that forces no undefined symbols.
13263 no_undefined_flag=$lt_no_undefined_flag_CXX
13265 # Commands used to finish a libtool library installation in a directory.
13266 finish_cmds=$lt_finish_cmds
13268 # Same as above, but a single script fragment to be evaled but not shown.
13269 finish_eval=$lt_finish_eval
13271 # Take the output of nm and produce a listing of raw symbols and C names.
13272 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13274 # Transform the output of nm in a proper C declaration
13275 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13277 # Transform the output of nm in a C name address pair
13278 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13280 # This is the shared library runtime path variable.
13281 runpath_var=$runpath_var
13283 # This is the shared library path variable.
13284 shlibpath_var=$shlibpath_var
13286 # Is shlibpath searched before the hard-coded library search path?
13287 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13289 # How to hardcode a shared library path into an executable.
13290 hardcode_action=$hardcode_action_CXX
13292 # Whether we should hardcode library paths into libraries.
13293 hardcode_into_libs=$hardcode_into_libs
13295 # Flag to hardcode \$libdir into a binary during linking.
13296 # This must work even if \$libdir does not exist.
13297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13299 # If ld is used when linking, flag to hardcode \$libdir into
13300 # a binary during linking. This must work even if \$libdir does
13302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13304 # Whether we need a single -rpath flag with a separated argument.
13305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13307 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13308 # resulting binary.
13309 hardcode_direct=$hardcode_direct_CXX
13311 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13312 # resulting binary.
13313 hardcode_minus_L=$hardcode_minus_L_CXX
13315 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13316 # the resulting binary.
13317 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13319 # Set to yes if building a shared library automatically hardcodes DIR into the library
13320 # and all subsequent libraries and executables linked against it.
13321 hardcode_automatic=$hardcode_automatic_CXX
13323 # Variables whose values should be saved in libtool wrapper scripts and
13324 # restored at relink time.
13325 variables_saved_for_relink="$variables_saved_for_relink"
13327 # Whether libtool must link a program against all its dependency libraries.
13328 link_all_deplibs=$link_all_deplibs_CXX
13330 # Compile-time system search path for libraries
13331 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13333 # Run-time system search path for libraries
13334 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13336 # Fix the shell variable \$srcfile for the compiler.
13337 fix_srcfile_path=$lt_fix_srcfile_path
13339 # Set to yes if exported symbols are required.
13340 always_export_symbols=$always_export_symbols_CXX
13342 # The commands to list exported symbols.
13343 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13345 # The commands to extract the exported symbol list from a shared archive.
13346 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13348 # Symbols that should not be listed in the preloaded symbols.
13349 exclude_expsyms=$lt_exclude_expsyms_CXX
13351 # Symbols that must always be exported.
13352 include_expsyms=$lt_include_expsyms_CXX
13354 # ### END LIBTOOL TAG CONFIG: $tagname
13360 # If there is no Makefile yet, we rely on a make rule to execute
13361 # `config.status --recheck' to rerun these tests and create the
13362 # libtool script then.
13363 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13364 if test -f "$ltmain_in"; then
13365 test -f Makefile
&& make "$ltmain"
13371 ac_cpp
='$CPP $CPPFLAGS'
13372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13380 with_gnu_ldcxx
=$with_gnu_ld
13381 with_gnu_ld
=$lt_save_with_gnu_ld
13382 lt_cv_path_LDCXX
=$lt_cv_path_LD
13383 lt_cv_path_LD
=$lt_save_path_LD
13384 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13385 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13393 if test -n "$F77" && test "X$F77" != "Xno"; then
13396 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13397 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13398 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13401 archive_cmds_need_lc_F77
=no
13402 allow_undefined_flag_F77
=
13403 always_export_symbols_F77
=no
13404 archive_expsym_cmds_F77
=
13405 export_dynamic_flag_spec_F77
=
13406 hardcode_direct_F77
=no
13407 hardcode_libdir_flag_spec_F77
=
13408 hardcode_libdir_flag_spec_ld_F77
=
13409 hardcode_libdir_separator_F77
=
13410 hardcode_minus_L_F77
=no
13411 hardcode_automatic_F77
=no
13413 module_expsym_cmds_F77
=
13414 link_all_deplibs_F77
=unknown
13415 old_archive_cmds_F77
=$old_archive_cmds
13416 no_undefined_flag_F77
=
13417 whole_archive_flag_spec_F77
=
13418 enable_shared_with_static_runtimes_F77
=no
13420 # Source file extension for f77 test sources.
13423 # Object file extension for compiled f77 test sources.
13427 # Code to be used in simple compile tests
13428 lt_simple_compile_test_code
="\
13434 # Code to be used in simple link tests
13435 lt_simple_link_test_code
="\
13440 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13442 # If no C compiler was specified, use CC.
13445 # If no C compiler flags were specified, use CFLAGS.
13446 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13448 # Allow CC to be a program name with arguments.
13452 # save warnings/boilerplate of simple test code
13453 ac_outfile
=conftest.
$ac_objext
13454 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13455 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13456 _lt_compiler_boilerplate
=`cat conftest.err`
13459 ac_outfile
=conftest.
$ac_objext
13460 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13461 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13462 _lt_linker_boilerplate
=`cat conftest.err`
13466 # Allow CC to be a program name with arguments.
13471 for cc_temp
in $compiler""; do
13473 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13474 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13479 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13482 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13483 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13484 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13485 echo "${ECHO_T}$can_build_shared" >&6; }
13487 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13488 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13489 test "$can_build_shared" = "no" && enable_shared
=no
13491 # On AIX, shared libraries and static libraries use the same namespace, and
13492 # are all built from PIC.
13495 test "$enable_shared" = yes && enable_static
=no
13496 if test -n "$RANLIB"; then
13497 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13498 postinstall_cmds
='$RANLIB $lib'
13502 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13503 test "$enable_shared" = yes && enable_static
=no
13507 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13508 echo "${ECHO_T}$enable_shared" >&6; }
13510 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13511 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13512 # Make sure either enable_shared or enable_static is yes.
13513 test "$enable_shared" = yes || enable_static
=yes
13514 { echo "$as_me:$LINENO: result: $enable_static" >&5
13515 echo "${ECHO_T}$enable_static" >&6; }
13520 lt_prog_compiler_wl_F77
=
13521 lt_prog_compiler_pic_F77
=
13522 lt_prog_compiler_static_F77
=
13524 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13527 if test "$GCC" = yes; then
13528 lt_prog_compiler_wl_F77
='-Wl,'
13529 lt_prog_compiler_static_F77
='-static'
13533 # All AIX code is PIC.
13534 if test "$host_cpu" = ia64
; then
13535 # AIX 5 now supports IA64 processor
13536 lt_prog_compiler_static_F77
='-Bstatic'
13541 # FIXME: we need at least 68020 code to build shared libraries, but
13542 # adding the `-m68020' flag to GCC prevents building anything better,
13544 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13547 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13548 # PIC is the default for these OSes.
13551 mingw
* | cygwin
* | pw32
* | os2
*)
13552 # This hack is so that the source file can tell whether it is being
13553 # built for inclusion in a dll (and should export symbols for example).
13554 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13555 # (--disable-auto-import) libraries
13556 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13559 darwin
* | rhapsody
*)
13560 # PIC is the default on this platform
13561 # Common symbols not allowed in MH_DYLIB files
13562 lt_prog_compiler_pic_F77
='-fno-common'
13566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13567 # Instead, we relocate shared libraries at runtime.
13571 # Just because we use GCC doesn't mean we suddenly get shared libraries
13572 # on systems that don't support them.
13573 lt_prog_compiler_can_build_shared_F77
=no
13578 if test -d /usr
/nec
; then
13579 lt_prog_compiler_pic_F77
=-Kconform_pic
13584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13585 # not for PA HP-UX.
13591 lt_prog_compiler_pic_F77
='-fPIC'
13597 lt_prog_compiler_pic_F77
='-fPIC'
13601 # PORTME Check for flag to pass linker flags through the system compiler.
13604 lt_prog_compiler_wl_F77
='-Wl,'
13605 if test "$host_cpu" = ia64
; then
13606 # AIX 5 now supports IA64 processor
13607 lt_prog_compiler_static_F77
='-Bstatic'
13609 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13613 # PIC is the default on this platform
13614 # Common symbols not allowed in MH_DYLIB files
13615 case $cc_basename in
13617 lt_prog_compiler_pic_F77
='-qnocommon'
13618 lt_prog_compiler_wl_F77
='-Wl,'
13623 mingw
* | cygwin
* | pw32
* | os2
*)
13624 # This hack is so that the source file can tell whether it is being
13625 # built for inclusion in a dll (and should export symbols for example).
13626 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13629 hpux9
* | hpux10
* | hpux11
*)
13630 lt_prog_compiler_wl_F77
='-Wl,'
13631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13632 # not for PA HP-UX.
13638 lt_prog_compiler_pic_F77
='+Z'
13641 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13642 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13645 irix5
* | irix6
* | nonstopux
*)
13646 lt_prog_compiler_wl_F77
='-Wl,'
13647 # PIC (with -KPIC) is the default.
13648 lt_prog_compiler_static_F77
='-non_shared'
13652 lt_prog_compiler_pic_F77
='-KPIC'
13653 lt_prog_compiler_static_F77
='-Bstatic'
13656 linux
* | k
*bsd
*-gnu)
13657 case $cc_basename in
13659 lt_prog_compiler_wl_F77
='-Wl,'
13660 lt_prog_compiler_pic_F77
='-KPIC'
13661 lt_prog_compiler_static_F77
='-static'
13663 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13664 # Portland Group compilers (*not* the Pentium gcc compiler,
13665 # which looks to be a dead project)
13666 lt_prog_compiler_wl_F77
='-Wl,'
13667 lt_prog_compiler_pic_F77
='-fpic'
13668 lt_prog_compiler_static_F77
='-Bstatic'
13671 lt_prog_compiler_wl_F77
='-Wl,'
13672 # All Alpha code is PIC.
13673 lt_prog_compiler_static_F77
='-non_shared'
13676 case `$CC -V 2>&1 | sed 5q` in
13679 lt_prog_compiler_pic_F77
='-KPIC'
13680 lt_prog_compiler_static_F77
='-Bstatic'
13681 lt_prog_compiler_wl_F77
='-Wl,'
13684 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13685 lt_prog_compiler_pic_F77
='-KPIC'
13686 lt_prog_compiler_static_F77
='-Bstatic'
13687 lt_prog_compiler_wl_F77
=''
13694 osf3
* | osf4
* | osf5
*)
13695 lt_prog_compiler_wl_F77
='-Wl,'
13696 # All OSF/1 code is PIC.
13697 lt_prog_compiler_static_F77
='-non_shared'
13701 lt_prog_compiler_static_F77
='-non_shared'
13705 lt_prog_compiler_pic_F77
='-KPIC'
13706 lt_prog_compiler_static_F77
='-Bstatic'
13707 case $cc_basename in
13708 f77
* | f90
* | f95
*)
13709 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13711 lt_prog_compiler_wl_F77
='-Wl,';;
13716 lt_prog_compiler_wl_F77
='-Qoption ld '
13717 lt_prog_compiler_pic_F77
='-PIC'
13718 lt_prog_compiler_static_F77
='-Bstatic'
13721 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13722 lt_prog_compiler_wl_F77
='-Wl,'
13723 lt_prog_compiler_pic_F77
='-KPIC'
13724 lt_prog_compiler_static_F77
='-Bstatic'
13728 if test -d /usr
/nec
;then
13729 lt_prog_compiler_pic_F77
='-Kconform_pic'
13730 lt_prog_compiler_static_F77
='-Bstatic'
13734 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13735 lt_prog_compiler_wl_F77
='-Wl,'
13736 lt_prog_compiler_pic_F77
='-KPIC'
13737 lt_prog_compiler_static_F77
='-Bstatic'
13741 lt_prog_compiler_wl_F77
='-Wl,'
13742 lt_prog_compiler_can_build_shared_F77
=no
13746 lt_prog_compiler_pic_F77
='-pic'
13747 lt_prog_compiler_static_F77
='-Bstatic'
13751 lt_prog_compiler_can_build_shared_F77
=no
13756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13757 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13760 # Check to make sure the PIC flag actually works.
13762 if test -n "$lt_prog_compiler_pic_F77"; then
13764 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13766 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 lt_cv_prog_compiler_pic_works_F77
=no
13770 ac_outfile
=conftest.
$ac_objext
13771 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13772 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13773 # Insert the option either (1) after the last *FLAGS variable, or
13774 # (2) before a word containing "conftest.", or (3) at the end.
13775 # Note that $ac_compile itself does not contain backslashes and begins
13776 # with a dollar sign (not a hyphen), so the echo should work correctly.
13777 # The option is referenced via a variable to avoid confusing sed.
13778 lt_compile
=`echo "$ac_compile" | $SED \
13779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13781 -e 's:$: $lt_compiler_flag:'`
13782 (eval echo "\"\$as_me:13782: $lt_compile\"" >&5)
13783 (eval "$lt_compile" 2>conftest.err
)
13785 cat conftest.err
>&5
13786 echo "$as_me:13786: \$? = $ac_status" >&5
13787 if (exit $ac_status) && test -s "$ac_outfile"; then
13788 # The compiler can only warn and ignore the option if not recognized
13789 # So say no if there are warnings other than the usual output.
13790 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13791 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13792 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13793 lt_cv_prog_compiler_pic_works_F77
=yes
13799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13800 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
13802 if test x
"$lt_cv_prog_compiler_pic_works_F77" = xyes
; then
13803 case $lt_prog_compiler_pic_F77 in
13805 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13808 lt_prog_compiler_pic_F77
=
13809 lt_prog_compiler_can_build_shared_F77
=no
13814 # For platforms which do not support PIC, -DPIC is meaningless:
13816 lt_prog_compiler_pic_F77
=
13819 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13824 # Check to make sure the static flag actually works.
13826 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
13827 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13828 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13829 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 lt_cv_prog_compiler_static_works_F77
=no
13833 save_LDFLAGS
="$LDFLAGS"
13834 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13835 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13836 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13837 # The linker can only warn and ignore the option if not recognized
13838 # So say no if there are warnings
13839 if test -s conftest.err
; then
13840 # Append any errors to the config.log.
13841 cat conftest.err
1>&5
13842 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
13843 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13844 if diff conftest.exp conftest.er2
>/dev
/null
; then
13845 lt_cv_prog_compiler_static_works_F77
=yes
13848 lt_cv_prog_compiler_static_works_F77
=yes
13852 LDFLAGS
="$save_LDFLAGS"
13855 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
13856 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
13858 if test x
"$lt_cv_prog_compiler_static_works_F77" = xyes
; then
13861 lt_prog_compiler_static_F77
=
13865 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13866 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13867 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 lt_cv_prog_compiler_c_o_F77
=no
13871 $rm -r conftest
2>/dev
/null
13875 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13877 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13878 # Insert the option either (1) after the last *FLAGS variable, or
13879 # (2) before a word containing "conftest.", or (3) at the end.
13880 # Note that $ac_compile itself does not contain backslashes and begins
13881 # with a dollar sign (not a hyphen), so the echo should work correctly.
13882 lt_compile
=`echo "$ac_compile" | $SED \
13883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13885 -e 's:$: $lt_compiler_flag:'`
13886 (eval echo "\"\$as_me:13886: $lt_compile\"" >&5)
13887 (eval "$lt_compile" 2>out
/conftest.err
)
13889 cat out
/conftest.err
>&5
13890 echo "$as_me:13890: \$? = $ac_status" >&5
13891 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13893 # The compiler can only warn and ignore the option if not recognized
13894 # So say no if there are warnings
13895 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
13896 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13897 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13898 lt_cv_prog_compiler_c_o_F77
=yes
13903 # SGI C++ compiler will create directory out/ii_files/ for
13904 # template instantiation
13905 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13906 $rm out
/* && rmdir out
13912 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13916 hard_links
="nottested"
13917 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13918 # do not overwrite the value of need_locks provided by the user
13919 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13923 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13925 ln conftest.a conftest.b
2>&5 || hard_links
=no
13926 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13927 { echo "$as_me:$LINENO: result: $hard_links" >&5
13928 echo "${ECHO_T}$hard_links" >&6; }
13929 if test "$hard_links" = no
; then
13930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13938 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13942 allow_undefined_flag_F77
=
13943 enable_shared_with_static_runtimes_F77
=no
13945 archive_expsym_cmds_F77
=
13946 old_archive_From_new_cmds_F77
=
13947 old_archive_from_expsyms_cmds_F77
=
13948 export_dynamic_flag_spec_F77
=
13949 whole_archive_flag_spec_F77
=
13950 thread_safe_flag_spec_F77
=
13951 hardcode_libdir_flag_spec_F77
=
13952 hardcode_libdir_flag_spec_ld_F77
=
13953 hardcode_libdir_separator_F77
=
13954 hardcode_direct_F77
=no
13955 hardcode_minus_L_F77
=no
13956 hardcode_shlibpath_var_F77
=unsupported
13957 link_all_deplibs_F77
=unknown
13958 hardcode_automatic_F77
=no
13960 module_expsym_cmds_F77
=
13961 always_export_symbols_F77
=no
13962 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13963 # include_expsyms should be a list of space-separated symbols to be *always*
13964 # included in the symbol list
13965 include_expsyms_F77
=
13966 # exclude_expsyms can be an extended regexp of symbols to exclude
13967 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13968 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13969 # as well as any symbol that contains `d'.
13970 exclude_expsyms_F77
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13972 # platforms (ab)use it in PIC code, but their linkers get confused if
13973 # the symbol is explicitly referenced. Since portable code cannot
13974 # rely on this symbol name, it's probably fine to never include it in
13975 # preloaded symbol tables.
13976 # Exclude shared library initialization/finalization symbols.
13977 extract_expsyms_cmds
=
13978 # Just being paranoid about ensuring that cc_basename is set.
13979 for cc_temp
in $compiler""; do
13981 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13982 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13987 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13990 cygwin
* | mingw
* | pw32
*)
13991 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13992 # When not using gcc, we currently assume that we are using
13993 # Microsoft Visual C++.
13994 if test "$GCC" != yes; then
13999 # we just hope/assume this is gcc and not c89 (= MSVC++)
14008 if test "$with_gnu_ld" = yes; then
14009 # If archive_cmds runs LD, not CC, wlarc should be empty
14012 # Set some defaults for GNU ld with shared library support. These
14013 # are reset later if shared libraries are not supported. Putting them
14014 # here allows them to be overridden if necessary.
14015 runpath_var
=LD_RUN_PATH
14016 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14017 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14018 # ancient GNU ld didn't support --whole-archive et. al.
14019 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14020 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14022 whole_archive_flag_spec_F77
=
14024 supports_anon_versioning
=no
14025 case `$LD -v 2>/dev/null` in
14026 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14027 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14028 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14029 *\
2.11.
*) ;; # other 2.11 versions
14030 *) supports_anon_versioning
=yes ;;
14033 # See if GNU ld supports shared libraries.
14036 # On AIX/PPC, the GNU linker is very broken
14037 if test "$host_cpu" != ia64
; then
14041 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14042 *** to be unable to reliably create shared libraries on AIX.
14043 *** Therefore, libtool is disabling shared libraries support. If you
14044 *** really care for shared libraries, you may want to modify your PATH
14045 *** so that a non-GNU linker is found, and then restart.
14052 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)'
14053 hardcode_libdir_flag_spec_F77
='-L$libdir'
14054 hardcode_minus_L_F77
=yes
14056 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14057 # that the semantics of dynamic libraries on AmigaOS, at least up
14058 # to version 4, is to share data among multiple programs linked
14059 # with the same dynamic library. Since this doesn't match the
14060 # behavior of shared libraries on other platforms, we can't use
14066 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14067 allow_undefined_flag_F77
=unsupported
14068 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14069 # support --undefined. This deserves some investigation. FIXME
14070 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14076 cygwin
* | mingw
* | pw32
*)
14077 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14078 # as there is no search path for DLLs.
14079 hardcode_libdir_flag_spec_F77
='-L$libdir'
14080 allow_undefined_flag_F77
=unsupported
14081 always_export_symbols_F77
=no
14082 enable_shared_with_static_runtimes_F77
=yes
14083 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14085 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14086 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14087 # If the export-symbols file already is a .def file (1st line
14088 # is EXPORTS), use it as is; otherwise, prepend...
14089 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14090 cp $export_symbols $output_objdir/$soname.def;
14092 echo EXPORTS > $output_objdir/$soname.def;
14093 cat $export_symbols >> $output_objdir/$soname.def;
14095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14102 hardcode_direct_F77
=no
14103 hardcode_shlibpath_var_F77
=no
14104 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14105 export_dynamic_flag_spec_F77
='${wl}-E'
14106 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14107 # Instead, shared libraries are loaded at an image base (0x10000000 by
14108 # default) and relocated if they conflict, which is a slow very memory
14109 # consuming and fragmenting process. To avoid this, we pick a random,
14110 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14111 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14112 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'
14113 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'
14116 gnu
* | linux
* | k
*bsd
*-gnu)
14117 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14119 case $cc_basename,$host_cpu in
14120 pgcc
*) # Portland Group C compiler
14121 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'
14122 tmp_addflag
=' $pic_flag'
14124 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14125 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'
14126 tmp_addflag
=' $pic_flag -Mnomain' ;;
14127 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14128 tmp_addflag
=' -i_dynamic' ;;
14129 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14130 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14131 ifc
* | ifort
*) # Intel Fortran compiler
14132 tmp_addflag
=' -nofor_main' ;;
14134 case `$CC -V 2>&1 | sed 5q` in
14135 *Sun\ C
*) # Sun C 5.9
14136 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'
14137 tmp_sharedflag
='-G' ;;
14138 *Sun\ F
*) # Sun Fortran 8.3
14139 tmp_sharedflag
='-G' ;;
14141 tmp_sharedflag
='-shared' ;;
14143 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14145 if test $supports_anon_versioning = yes; then
14146 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14148 $echo "local: *; };" >> $output_objdir/$libname.ver~
14149 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14157 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14158 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14161 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14162 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14167 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14171 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14172 *** create shared libraries on Solaris systems. Therefore, libtool
14173 *** is disabling shared libraries support. We urge you to upgrade GNU
14174 *** binutils to release 2.9.1 or newer. Another option is to modify
14175 *** your PATH or compiler configuration so that the native linker is
14176 *** used, and then restart.
14179 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14180 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14181 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14187 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14188 case `$LD -v 2>&1` in
14189 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14193 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14194 *** reliably create shared libraries on SCO systems. Therefore, libtool
14195 *** is disabling shared libraries support. We urge you to upgrade GNU
14196 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14197 *** your PATH or compiler configuration so that the native linker is
14198 *** used, and then restart.
14203 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14204 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14205 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14206 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14215 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14217 hardcode_direct_F77
=yes
14218 hardcode_shlibpath_var_F77
=no
14222 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14223 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14224 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14231 if test "$ld_shlibs_F77" = no
; then
14233 hardcode_libdir_flag_spec_F77
=
14234 export_dynamic_flag_spec_F77
=
14235 whole_archive_flag_spec_F77
=
14238 # PORTME fill in a description of your system's linker (not GNU ld)
14241 allow_undefined_flag_F77
=unsupported
14242 always_export_symbols_F77
=yes
14243 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'
14244 # Note: this linker hardcodes the directories in LIBPATH if there
14245 # are no directories specified by -L.
14246 hardcode_minus_L_F77
=yes
14247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14248 # Neither direct hardcoding nor static linking is supported with a
14250 hardcode_direct_F77
=unsupported
14255 if test "$host_cpu" = ia64
; then
14256 # On IA64, the linker does run time linking by default, so we don't
14257 # have to do anything special.
14258 aix_use_runtimelinking
=no
14259 exp_sym_flag
='-Bexport'
14262 # If we're using GNU nm, then we don't want the "-C" option.
14263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14264 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14265 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'
14267 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'
14269 aix_use_runtimelinking
=no
14271 # Test if we are trying to use run time linking or normal
14272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14273 # need to do runtime linking.
14274 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
14275 for ld_flag
in $LDFLAGS; do
14276 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14277 aix_use_runtimelinking
=yes
14284 exp_sym_flag
='-bexport'
14285 no_entry_flag
='-bnoentry'
14288 # When large executables or shared objects are built, AIX ld can
14289 # have problems creating the table of contents. If linking a library
14290 # or program results in "error TOC overflow" add -mminimal-toc to
14291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14294 archive_cmds_F77
=''
14295 hardcode_direct_F77
=yes
14296 hardcode_libdir_separator_F77
=':'
14297 link_all_deplibs_F77
=yes
14299 if test "$GCC" = yes; then
14300 case $host_os in aix4.
[012]|aix4.
[012].
*)
14301 # We only want to do this on AIX 4.2 and lower, the check
14302 # below for broken collect2 doesn't work under 4.3+
14303 collect2name
=`${CC} -print-prog-name=collect2`
14304 if test -f "$collect2name" && \
14305 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14307 # We have reworked collect2
14310 # We have old collect2
14311 hardcode_direct_F77
=unsupported
14312 # It fails to find uninstalled libraries when the uninstalled
14313 # path is not listed in the libpath. Setting hardcode_minus_L
14314 # to unsupported forces relinking
14315 hardcode_minus_L_F77
=yes
14316 hardcode_libdir_flag_spec_F77
='-L$libdir'
14317 hardcode_libdir_separator_F77
=
14321 shared_flag
='-shared'
14322 if test "$aix_use_runtimelinking" = yes; then
14323 shared_flag
="$shared_flag "'${wl}-G'
14327 if test "$host_cpu" = ia64
; then
14328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14329 # chokes on -Wl,-G. The following line is correct:
14332 if test "$aix_use_runtimelinking" = yes; then
14333 shared_flag
='${wl}-G'
14335 shared_flag
='${wl}-bM:SRE'
14340 # It seems that -bexpall does not export symbols beginning with
14341 # underscore (_), so it is better to generate a list of symbols to export.
14342 always_export_symbols_F77
=yes
14343 if test "$aix_use_runtimelinking" = yes; then
14344 # Warning - without using the other runtime loading flags (-brtl),
14345 # -berok will link without error, but may produce a broken library.
14346 allow_undefined_flag_F77
='-berok'
14347 # Determine the default libpath from the value encoded in an empty executable.
14348 cat >conftest.
$ac_ext <<_ACEOF
14353 rm -f conftest.
$ac_objext conftest
$ac_exeext
14354 if { (ac_try
="$ac_link"
14355 case "(($ac_try" in
14356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_link") 2>conftest.er1
14362 grep -v '^ *+' conftest.er1 >conftest.err
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } && {
14367 test -z "$ac_f77_werror_flag" ||
14368 test ! -s conftest.err
14369 } && test -s conftest$ac_exeext &&
14370 $as_test_x conftest$ac_exeext; then
14372 lt_aix_libpath_sed='
14373 /Import File Strings/,/^$/ {
14379 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14380 # Check for a 64-bit object if we didn't find anything.
14381 if test -z "$aix_libpath"; then
14382 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14392 conftest$ac_exeext conftest.$ac_ext
14393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14395 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14396 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"
14398 if test "$host_cpu" = ia64; then
14399 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14400 allow_undefined_flag_F77="-z nodefs"
14401 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"
14403 # Determine the default libpath from the value encoded in an empty executable.
14404 cat >conftest.$ac_ext <<_ACEOF
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (ac_try="$ac_link"
14411 case "(($ac_try" in
14412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14413 *) ac_try_echo
=$ac_try;;
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_link") 2>conftest.er1
14418 grep -v '^ *+' conftest.er1
>conftest.err
14420 cat conftest.err
>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && {
14423 test -z "$ac_f77_werror_flag" ||
14424 test ! -s conftest.err
14425 } && test -s conftest
$ac_exeext &&
14426 $as_test_x conftest
$ac_exeext; then
14428 lt_aix_libpath_sed
='
14429 /Import File Strings/,/^$/ {
14435 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14436 # Check for a 64-bit object if we didn't find anything.
14437 if test -z "$aix_libpath"; then
14438 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.
$ac_ext >&5
14447 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14448 conftest
$ac_exeext conftest.
$ac_ext
14449 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14451 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14452 # Warning - without using the other run time loading flags,
14453 # -berok will link without error, but may produce a broken library.
14454 no_undefined_flag_F77
=' ${wl}-bernotok'
14455 allow_undefined_flag_F77
=' ${wl}-berok'
14456 # Exported symbols can be pulled into shared objects from archives
14457 whole_archive_flag_spec_F77
='$convenience'
14458 archive_cmds_need_lc_F77
=yes
14459 # This is similar to how AIX traditionally builds its shared libraries.
14460 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'
14466 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)'
14467 hardcode_libdir_flag_spec_F77
='-L$libdir'
14468 hardcode_minus_L_F77
=yes
14469 # see comment about different semantics on the GNU ld section
14474 export_dynamic_flag_spec_F77
=-rdynamic
14477 cygwin
* | mingw
* | pw32
*)
14478 # When not using gcc, we currently assume that we are using
14479 # Microsoft Visual C++.
14480 # hardcode_libdir_flag_spec is actually meaningless, as there is
14481 # no search path for DLLs.
14482 hardcode_libdir_flag_spec_F77
=' '
14483 allow_undefined_flag_F77
=unsupported
14484 # Tell ltmain to make .lib files, not .a files.
14486 # Tell ltmain to make .dll files, not .so files.
14488 # FIXME: Setting linknames here is a bad hack.
14489 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14490 # The linker will automatically build a .lib file if we build a DLL.
14491 old_archive_From_new_cmds_F77
='true'
14492 # FIXME: Should let the user specify the lib program.
14493 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
14494 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14495 enable_shared_with_static_runtimes_F77
=yes
14498 darwin
* | rhapsody
*)
14500 rhapsody
* | darwin1.
[012])
14501 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14505 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14507 case ${MACOSX_DEPLOYMENT_TARGET} in
14509 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14512 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14518 archive_cmds_need_lc_F77
=no
14519 hardcode_direct_F77
=no
14520 hardcode_automatic_F77
=yes
14521 hardcode_shlibpath_var_F77
=unsupported
14522 whole_archive_flag_spec_F77
=''
14523 link_all_deplibs_F77
=yes
14524 if test "$GCC" = yes ; then
14525 output_verbose_link_cmd
='echo'
14526 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}"
14527 module_cmds_F77
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14528 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}"
14529 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}"
14531 case $cc_basename in
14533 output_verbose_link_cmd
='echo'
14534 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14535 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14537 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}'
14538 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}'
14548 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_libdir_flag_spec_F77
='-L$libdir'
14550 hardcode_shlibpath_var_F77
=no
14557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14558 # support. Future versions do this automatically, but an explicit c++rt0.o
14559 # does not break anything, and helps significantly (at the cost of a little
14562 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14563 hardcode_libdir_flag_spec_F77
='-R$libdir'
14564 hardcode_direct_F77
=yes
14565 hardcode_shlibpath_var_F77
=no
14568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14570 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14571 hardcode_direct_F77
=yes
14572 hardcode_minus_L_F77
=yes
14573 hardcode_shlibpath_var_F77
=no
14576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14577 freebsd
* | dragonfly
*)
14578 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14579 hardcode_libdir_flag_spec_F77
='-R$libdir'
14580 hardcode_direct_F77
=yes
14581 hardcode_shlibpath_var_F77
=no
14585 if test "$GCC" = yes; then
14586 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'
14588 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'
14590 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14591 hardcode_libdir_separator_F77
=:
14592 hardcode_direct_F77
=yes
14594 # hardcode_minus_L: Not really in the search PATH,
14595 # but as the default location of the library.
14596 hardcode_minus_L_F77
=yes
14597 export_dynamic_flag_spec_F77
='${wl}-E'
14601 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14602 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14604 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14606 if test "$with_gnu_ld" = no
; then
14607 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14608 hardcode_libdir_separator_F77
=:
14610 hardcode_direct_F77
=yes
14611 export_dynamic_flag_spec_F77
='${wl}-E'
14613 # hardcode_minus_L: Not really in the search PATH,
14614 # but as the default location of the library.
14615 hardcode_minus_L_F77
=yes
14620 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14623 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14629 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14635 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14638 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14641 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14645 if test "$with_gnu_ld" = no
; then
14646 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14647 hardcode_libdir_separator_F77
=:
14651 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14652 hardcode_direct_F77
=no
14653 hardcode_shlibpath_var_F77
=no
14656 hardcode_direct_F77
=yes
14657 export_dynamic_flag_spec_F77
='${wl}-E'
14659 # hardcode_minus_L: Not really in the search PATH,
14660 # but as the default location of the library.
14661 hardcode_minus_L_F77
=yes
14667 irix5
* | irix6
* | nonstopux
*)
14668 if test "$GCC" = yes; then
14669 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'
14671 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'
14672 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14674 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14675 hardcode_libdir_separator_F77
=:
14676 link_all_deplibs_F77
=yes
14680 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14681 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14683 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14685 hardcode_libdir_flag_spec_F77
='-R$libdir'
14686 hardcode_direct_F77
=yes
14687 hardcode_shlibpath_var_F77
=no
14691 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692 hardcode_direct_F77
=yes
14693 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14694 hardcode_libdir_separator_F77
=:
14695 hardcode_shlibpath_var_F77
=no
14699 if test -f /usr
/libexec
/ld.so
; then
14700 hardcode_direct_F77
=yes
14701 hardcode_shlibpath_var_F77
=no
14702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14703 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14704 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14705 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14706 export_dynamic_flag_spec_F77
='${wl}-E'
14709 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14710 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14711 hardcode_libdir_flag_spec_F77
='-R$libdir'
14714 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14715 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14725 hardcode_libdir_flag_spec_F77
='-L$libdir'
14726 hardcode_minus_L_F77
=yes
14727 allow_undefined_flag_F77
=unsupported
14728 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'
14729 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14733 if test "$GCC" = yes; then
14734 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14735 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'
14737 allow_undefined_flag_F77
=' -expect_unresolved \*'
14738 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'
14740 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14741 hardcode_libdir_separator_F77
=:
14744 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14745 if test "$GCC" = yes; then
14746 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14747 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'
14748 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14750 allow_undefined_flag_F77
=' -expect_unresolved \*'
14751 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'
14752 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~
14753 $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'
14755 # Both c and cxx compiler support -rpath directly
14756 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14758 hardcode_libdir_separator_F77
=:
14762 no_undefined_flag_F77
=' -z text'
14763 if test "$GCC" = yes; then
14765 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14766 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14767 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14770 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14771 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14774 hardcode_libdir_flag_spec_F77
='-R$libdir'
14775 hardcode_shlibpath_var_F77
=no
14777 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14779 # The compiler driver will combine and reorder linker options,
14780 # but understands `-z linker_flag'. GCC discards it without `$wl',
14781 # but is careful enough not to reorder.
14782 # Supported since Solaris 2.6 (maybe 2.5.1?)
14783 if test "$GCC" = yes; then
14784 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14786 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
14790 link_all_deplibs_F77
=yes
14794 if test "x$host_vendor" = xsequent
; then
14795 # Use $CC to link under sequent, because it throws in some extra .o
14796 # files that make .init and .fini sections work.
14797 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14799 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14801 hardcode_libdir_flag_spec_F77
='-L$libdir'
14802 hardcode_direct_F77
=yes
14803 hardcode_minus_L_F77
=yes
14804 hardcode_shlibpath_var_F77
=no
14808 case $host_vendor in
14810 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14811 hardcode_direct_F77
=yes # is this really true???
14814 ## LD is ld it makes a PLAMLIB
14815 ## CC just makes a GrossModule.
14816 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14817 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14818 hardcode_direct_F77
=no
14821 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14822 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14825 runpath_var
='LD_RUN_PATH'
14826 hardcode_shlibpath_var_F77
=no
14830 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14831 hardcode_shlibpath_var_F77
=no
14832 export_dynamic_flag_spec_F77
='-Bexport'
14836 if test -d /usr
/nec
; then
14837 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_shlibpath_var_F77
=no
14839 runpath_var
=LD_RUN_PATH
14840 hardcode_runpath_var
=yes
14845 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
14846 no_undefined_flag_F77
='${wl}-z,text'
14847 archive_cmds_need_lc_F77
=no
14848 hardcode_shlibpath_var_F77
=no
14849 runpath_var
='LD_RUN_PATH'
14851 if test "$GCC" = yes; then
14852 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14855 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14856 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14860 sysv5
* | sco3.2v5
* | sco5v6
*)
14861 # Note: We can NOT use -z defs as we might desire, because we do not
14862 # link with -lc, and that would cause any symbols used from libc to
14863 # always be unresolved, which means just about no library would
14864 # ever link correctly. If we're not using GNU ld we use -z text
14865 # though, which does catch some bad symbols but isn't as heavy-handed
14867 no_undefined_flag_F77
='${wl}-z,text'
14868 allow_undefined_flag_F77
='${wl}-z,nodefs'
14869 archive_cmds_need_lc_F77
=no
14870 hardcode_shlibpath_var_F77
=no
14871 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14872 hardcode_libdir_separator_F77
=':'
14873 link_all_deplibs_F77
=yes
14874 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14875 runpath_var
='LD_RUN_PATH'
14877 if test "$GCC" = yes; then
14878 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14879 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14881 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14882 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14887 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14888 hardcode_libdir_flag_spec_F77
='-L$libdir'
14889 hardcode_shlibpath_var_F77
=no
14898 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14899 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14900 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14903 # Do we need to explicitly link libc?
14905 case "x$archive_cmds_need_lc_F77" in
14907 # Assume -lc should be added
14908 archive_cmds_need_lc_F77
=yes
14910 if test "$enable_shared" = yes && test "$GCC" = yes; then
14911 case $archive_cmds_F77 in
14913 # FIXME: we may have to deal with multi-command sequences.
14916 # Test whether the compiler implicitly links with -lc since on some
14917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14918 # to ld, don't add -lc before -lgcc.
14919 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14922 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14925 (eval $ac_compile) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } 2>conftest.err
; then
14931 libobjs
=conftest.
$ac_objext
14933 wl
=$lt_prog_compiler_wl_F77
14934 pic_flag
=$lt_prog_compiler_pic_F77
14940 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14941 allow_undefined_flag_F77
=
14942 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14943 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }
14948 archive_cmds_need_lc_F77
=no
14950 archive_cmds_need_lc_F77
=yes
14952 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14954 cat conftest.err
1>&5
14957 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14958 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14965 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14966 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14967 library_names_spec
=
14968 libname_spec
='lib$name'
14972 postuninstall_cmds
=
14976 shlibpath_overrides_runpath
=unknown
14978 dynamic_linker
="$host_os ld.so"
14979 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14981 need_lib_prefix
=unknown
14982 hardcode_into_libs
=no
14984 # when you set need_version to no, make sure it does not cause -set_version
14985 # flags to be left without arguments
14986 need_version
=unknown
14991 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14992 shlibpath_var
=LIBPATH
14994 # AIX 3 has no versioning support, so we append a major version to the name.
14995 soname_spec
='${libname}${release}${shared_ext}$major'
15002 hardcode_into_libs
=yes
15003 if test "$host_cpu" = ia64
; then
15004 # AIX 5 supports IA64
15005 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15006 shlibpath_var
=LD_LIBRARY_PATH
15008 # With GCC up to 2.95.x, collect2 would create an import file
15009 # for dependence libraries. The import file would start with
15010 # the line `#! .'. This would cause the generated library to
15011 # depend on `.', always an invalid library. This was fixed in
15012 # development snapshots of GCC prior to 3.0.
15014 aix4 | aix4.
[01] | aix4.
[01].
*)
15015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15017 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15020 can_build_shared
=no
15024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15025 # soname into executable. Probably we can add versioning support to
15026 # collect2, so additional links can be useful in future.
15027 if test "$aix_use_runtimelinking" = yes; then
15028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15029 # instead of lib<name>.a to let people know that these are not
15030 # typical AIX shared libraries.
15031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033 # We preserve .a as extension for shared libraries through AIX4.2
15034 # and later when we are not doing run time linking.
15035 library_names_spec
='${libname}${release}.a $libname.a'
15036 soname_spec
='${libname}${release}${shared_ext}$major'
15038 shlibpath_var
=LIBPATH
15043 library_names_spec
='$libname.ixlibrary $libname.a'
15044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15045 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'
15049 library_names_spec
='${libname}${shared_ext}'
15050 dynamic_linker
="$host_os ld.so"
15051 shlibpath_var
=LIBRARY_PATH
15057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058 soname_spec
='${libname}${release}${shared_ext}$major'
15059 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15060 shlibpath_var
=LD_LIBRARY_PATH
15061 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15062 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15063 # the default ld.so.conf also contains /usr/contrib/lib and
15064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15065 # libtool to hard-code these into programs
15068 cygwin
* | mingw
* | pw32
*)
15069 version_type
=windows
15074 case $GCC,$host_os in
15075 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15076 library_names_spec
='$libname.dll.a'
15077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15078 postinstall_cmds
='base_file=`basename \${file}`~
15079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15080 dldir=$destdir/`dirname \$dlpath`~
15081 test -d \$dldir || mkdir -p \$dldir~
15082 $install_prog $dir/$dlname \$dldir/$dlname~
15083 chmod a+x \$dldir/$dlname'
15084 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15085 dlpath=$dir/\$dldll~
15087 shlibpath_overrides_runpath
=yes
15091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15092 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15093 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15096 # MinGW DLLs use traditional 'lib' prefix
15097 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15098 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15099 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15100 # It is most probably a Windows format PATH printed by
15101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15102 # path with ; separators, and with drive letters. We can handle the
15103 # drive letters (cygwin fileutils understands them), so leave them,
15104 # especially as we might pass files found there to a mingw objdump,
15105 # which wouldn't understand a cygwinified path. Ahh.
15106 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15108 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15112 # pw32 DLLs use 'pw' prefix rather than 'lib'
15113 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15119 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15122 dynamic_linker
='Win32 ld.exe'
15123 # FIXME: first we should search . and the directory the executable is in
15127 darwin
* | rhapsody
*)
15128 dynamic_linker
="$host_os dyld"
15129 version_type
=darwin
15132 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15133 soname_spec
='${libname}${release}${major}$shared_ext'
15134 shlibpath_overrides_runpath
=yes
15135 shlibpath_var
=DYLD_LIBRARY_PATH
15136 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15138 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15146 soname_spec
='${libname}${release}${shared_ext}$major'
15147 shlibpath_var
=LD_LIBRARY_PATH
15154 freebsd
* | dragonfly
*)
15155 # DragonFly does not have aout. When/if they implement a new
15156 # versioning mechanism, adjust this.
15157 if test -x /usr
/bin
/objformat
; then
15158 objformat
=`/usr/bin/objformat`
15161 freebsd
[123]*) objformat
=aout
;;
15162 *) objformat
=elf
;;
15165 version_type
=freebsd-
$objformat
15166 case $version_type in
15168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15173 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15177 shlibpath_var
=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath
=yes
15182 freebsd3.
[01]* | freebsdelf3.
[01]*)
15183 shlibpath_overrides_runpath
=yes
15184 hardcode_into_libs
=yes
15186 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15187 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15188 shlibpath_overrides_runpath
=no
15189 hardcode_into_libs
=yes
15191 *) # from 4.6 on, and DragonFly
15192 shlibpath_overrides_runpath
=yes
15193 hardcode_into_libs
=yes
15202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15203 soname_spec
='${libname}${release}${shared_ext}$major'
15204 shlibpath_var
=LD_LIBRARY_PATH
15205 hardcode_into_libs
=yes
15208 hpux9
* | hpux10
* | hpux11
*)
15209 # Give a soname corresponding to the major version so that dld.sl refuses to
15210 # link against other versions.
15217 hardcode_into_libs
=yes
15218 dynamic_linker
="$host_os dld.so"
15219 shlibpath_var
=LD_LIBRARY_PATH
15220 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec
='${libname}${release}${shared_ext}$major'
15223 if test "X$HPUX_IA64_MODE" = X32
; then
15224 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15226 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15228 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15232 hardcode_into_libs
=yes
15233 dynamic_linker
="$host_os dld.sl"
15234 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15235 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15236 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 soname_spec
='${libname}${release}${shared_ext}$major'
15238 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15239 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15243 dynamic_linker
="$host_os dld.sl"
15244 shlibpath_var
=SHLIB_PATH
15245 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247 soname_spec
='${libname}${release}${shared_ext}$major'
15250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15251 postinstall_cmds
='chmod 555 $lib'
15258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15259 soname_spec
='${libname}${release}${shared_ext}$major'
15260 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15261 shlibpath_var
=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath
=no
15263 hardcode_into_libs
=yes
15266 irix5
* | irix6
* | nonstopux
*)
15268 nonstopux
*) version_type
=nonstopux
;;
15270 if test "$lt_cv_prog_gnu_ld" = yes; then
15278 soname_spec
='${libname}${release}${shared_ext}$major'
15279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15281 irix5
* | nonstopux
*)
15282 libsuff
= shlibsuff
=
15285 case $LD in # libtool.m4 will add one of these switches to LD
15286 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15287 libsuff
= shlibsuff
= libmagic
=32-bit;;
15288 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15289 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15290 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15291 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15292 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15296 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15297 shlibpath_overrides_runpath
=no
15298 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15299 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15300 hardcode_into_libs
=yes
15303 # No shared lib support for Linux oldld, aout, or coff.
15304 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15308 # This must be Linux ELF.
15309 linux
* | k
*bsd
*-gnu)
15313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15314 soname_spec
='${libname}${release}${shared_ext}$major'
15315 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15316 shlibpath_var
=LD_LIBRARY_PATH
15317 shlibpath_overrides_runpath
=no
15318 # This implies no fast_install, which is unacceptable.
15319 # Some rework will be needed to allow for fast_install
15320 # before this can be enabled.
15321 hardcode_into_libs
=yes
15323 # Append ld.so.conf contents to the search path
15324 if test -f /etc
/ld.so.conf
; then
15325 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' ' '`
15326 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15329 # We used to test for /lib/ld.so.1 and disable shared libraries on
15330 # powerpc, because MkLinux only supported shared libraries with the
15331 # GNU dynamic linker. Since this was broken with cross compilers,
15332 # most powerpc-linux boxes support dynamic linking these days and
15333 # people can always --disable-shared, the test was removed, and we
15334 # assume the GNU/Linux dynamic linker is in use.
15335 dynamic_linker
='GNU/Linux ld.so'
15342 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15344 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15345 dynamic_linker
='NetBSD (a.out) ld.so'
15347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15348 soname_spec
='${libname}${release}${shared_ext}$major'
15349 dynamic_linker
='NetBSD ld.elf_so'
15351 shlibpath_var
=LD_LIBRARY_PATH
15352 shlibpath_overrides_runpath
=yes
15353 hardcode_into_libs
=yes
15358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 shlibpath_var
=LD_LIBRARY_PATH
15360 shlibpath_overrides_runpath
=yes
15367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 soname_spec
='${libname}${release}${shared_ext}$major'
15369 shlibpath_var
=LD_LIBRARY_PATH
15370 shlibpath_overrides_runpath
=yes
15375 sys_lib_dlsearch_path_spec
="/usr/lib"
15377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15379 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15380 *) need_version
=no
;;
15382 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15383 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15384 shlibpath_var
=LD_LIBRARY_PATH
15385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15387 openbsd2.
[89] | openbsd2.
[89].
*)
15388 shlibpath_overrides_runpath
=no
15391 shlibpath_overrides_runpath
=yes
15395 shlibpath_overrides_runpath
=yes
15400 libname_spec
='$name'
15403 library_names_spec
='$libname${shared_ext} $libname.a'
15404 dynamic_linker
='OS/2 ld.exe'
15405 shlibpath_var
=LIBPATH
15408 osf3
* | osf4
* | osf5
*)
15412 soname_spec
='${libname}${release}${shared_ext}$major'
15413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 shlibpath_var
=LD_LIBRARY_PATH
15415 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15416 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec
='${libname}${release}${shared_ext}$major'
15429 shlibpath_var
=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath
=yes
15431 hardcode_into_libs
=yes
15432 # ldd complains unless libraries are executable
15433 postinstall_cmds
='chmod +x $lib'
15438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15439 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15440 shlibpath_var
=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath
=yes
15442 if test "$with_gnu_ld" = yes; then
15450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec
='${libname}${release}${shared_ext}$major'
15452 shlibpath_var
=LD_LIBRARY_PATH
15453 case $host_vendor in
15455 shlibpath_overrides_runpath
=no
15457 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15458 runpath_var
=LD_RUN_PATH
15466 shlibpath_overrides_runpath
=no
15467 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15473 if test -d /usr
/nec
;then
15475 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15476 soname_spec
='$libname${shared_ext}.$major'
15477 shlibpath_var
=LD_LIBRARY_PATH
15481 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15482 version_type
=freebsd-elf
15485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15486 soname_spec
='${libname}${release}${shared_ext}$major'
15487 shlibpath_var
=LD_LIBRARY_PATH
15488 hardcode_into_libs
=yes
15489 if test "$with_gnu_ld" = yes; then
15490 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15491 shlibpath_overrides_runpath
=no
15493 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15494 shlibpath_overrides_runpath
=yes
15497 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15501 sys_lib_dlsearch_path_spec
='/usr/lib'
15506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507 soname_spec
='${libname}${release}${shared_ext}$major'
15508 shlibpath_var
=LD_LIBRARY_PATH
15515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15516 echo "${ECHO_T}$dynamic_linker" >&6; }
15517 test "$dynamic_linker" = no
&& can_build_shared
=no
15519 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
15525 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15526 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
15532 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15534 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15535 if test "$GCC" = yes; then
15536 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15539 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15540 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15541 hardcode_action_F77
=
15542 if test -n "$hardcode_libdir_flag_spec_F77" || \
15543 test -n "$runpath_var_F77" || \
15544 test "X$hardcode_automatic_F77" = "Xyes" ; then
15546 # We can hardcode non-existant directories.
15547 if test "$hardcode_direct_F77" != no
&&
15548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15549 # have to relink, otherwise we might link with an installed library
15550 # when we should be linking with a yet-to-be-installed one
15551 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15552 test "$hardcode_minus_L_F77" != no
; then
15553 # Linking always hardcodes the temporary library directory.
15554 hardcode_action_F77
=relink
15556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15557 hardcode_action_F77
=immediate
15560 # We cannot hardcode anything, or else we can only hardcode existing
15562 hardcode_action_F77
=unsupported
15564 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15565 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15567 if test "$hardcode_action_F77" = relink
; then
15568 # Fast installation is not supported
15569 enable_fast_install
=no
15570 elif test "$shlibpath_overrides_runpath" = yes ||
15571 test "$enable_shared" = no
; then
15572 # Fast installation is not necessary
15573 enable_fast_install
=needless
15577 # The else clause should only fire when bootstrapping the
15578 # libtool distribution, otherwise you forgot to ship ltmain.sh
15579 # with your package, and you will get complaints that there are
15580 # no rules to generate ltmain.sh.
15581 if test -f "$ltmain"; then
15582 # See if we are running on zsh, and set the options which allow our commands through
15583 # without removal of \ escapes.
15584 if test -n "${ZSH_VERSION+set}" ; then
15585 setopt NO_GLOB_SUBST
15587 # Now quote all the things that may contain metacharacters while being
15588 # careful not to overquote the AC_SUBSTed values. We take copies of the
15589 # variables and quote the copies for generation of the libtool script.
15590 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15594 deplibs_check_method reload_flag reload_cmds need_locks \
15595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15596 lt_cv_sys_global_symbol_to_c_name_address \
15597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15598 old_postinstall_cmds old_postuninstall_cmds \
15602 lt_prog_compiler_wl_F77 \
15603 lt_prog_compiler_pic_F77 \
15604 lt_prog_compiler_static_F77 \
15605 lt_prog_compiler_no_builtin_flag_F77 \
15606 export_dynamic_flag_spec_F77 \
15607 thread_safe_flag_spec_F77 \
15608 whole_archive_flag_spec_F77 \
15609 enable_shared_with_static_runtimes_F77 \
15610 old_archive_cmds_F77 \
15611 old_archive_from_new_cmds_F77 \
15612 predep_objects_F77 \
15613 postdep_objects_F77 \
15616 compiler_lib_search_path_F77 \
15617 compiler_lib_search_dirs_F77 \
15619 archive_expsym_cmds_F77 \
15620 postinstall_cmds_F77 \
15621 postuninstall_cmds_F77 \
15622 old_archive_from_expsyms_cmds_F77 \
15623 allow_undefined_flag_F77 \
15624 no_undefined_flag_F77 \
15625 export_symbols_cmds_F77 \
15626 hardcode_libdir_flag_spec_F77 \
15627 hardcode_libdir_flag_spec_ld_F77 \
15628 hardcode_libdir_separator_F77 \
15629 hardcode_automatic_F77 \
15631 module_expsym_cmds_F77 \
15632 lt_cv_prog_compiler_c_o_F77 \
15633 fix_srcfile_path_F77 \
15634 exclude_expsyms_F77 \
15635 include_expsyms_F77
; do
15638 old_archive_cmds_F77 | \
15639 old_archive_from_new_cmds_F77 | \
15640 archive_cmds_F77 | \
15641 archive_expsym_cmds_F77 | \
15642 module_cmds_F77 | \
15643 module_expsym_cmds_F77 | \
15644 old_archive_from_expsyms_cmds_F77 | \
15645 export_symbols_cmds_F77 | \
15646 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15647 postinstall_cmds | postuninstall_cmds | \
15648 old_postinstall_cmds | old_postuninstall_cmds | \
15649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15650 # Double-quote double-evaled strings.
15651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15660 *'\$0 --fallback-echo"')
15661 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15667 cat <<__EOF__ >> "$cfgfile"
15668 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15672 # Shell to use when invoking shell scripts.
15675 # Whether or not to build shared libraries.
15676 build_libtool_libs=$enable_shared
15678 # Whether or not to build static libraries.
15679 build_old_libs=$enable_static
15681 # Whether or not to add -lc for building shared libraries.
15682 build_libtool_need_lc=$archive_cmds_need_lc_F77
15684 # Whether or not to disallow shared libs when runtime libs are static
15685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15687 # Whether or not to optimize for fast installation.
15688 fast_install=$enable_fast_install
15691 host_alias=$host_alias
15695 # The build system.
15696 build_alias=$build_alias
15700 # An echo program that does not interpret backslashes.
15705 AR_FLAGS=$lt_AR_FLAGS
15710 # LTCC compiler flags.
15711 LTCFLAGS=$lt_LTCFLAGS
15713 # A language-specific compiler.
15714 CC=$lt_compiler_F77
15716 # Is the compiler the GNU C compiler?
15722 # The linker used to build libraries.
15725 # Whether we need hard or soft links.
15728 # A BSD-compatible nm program.
15731 # A symbol stripping program
15734 # Used to examine libraries when file_magic_cmd begins "file"
15735 MAGIC_CMD=$MAGIC_CMD
15737 # Used on cygwin: DLL creation program.
15740 # Used on cygwin: object dumper.
15743 # Used on cygwin: assembler.
15746 # The name of the directory that contains temporary libtool files.
15749 # How to create reloadable object files.
15750 reload_flag=$lt_reload_flag
15751 reload_cmds=$lt_reload_cmds
15753 # How to pass a linker flag through the compiler.
15754 wl=$lt_lt_prog_compiler_wl_F77
15756 # Object file suffix (normally "o").
15757 objext="$ac_objext"
15759 # Old archive suffix (normally "a").
15762 # Shared library suffix (normally ".so").
15763 shrext_cmds='$shrext_cmds'
15765 # Executable file suffix (normally "").
15768 # Additional compiler flags for building library objects.
15769 pic_flag=$lt_lt_prog_compiler_pic_F77
15772 # What is the maximum length of a command?
15773 max_cmd_len=$lt_cv_sys_max_cmd_len
15775 # Does compiler simultaneously support -c and -o options?
15776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15778 # Must we lock files when doing compilation?
15779 need_locks=$lt_need_locks
15781 # Do we need the lib prefix for modules?
15782 need_lib_prefix=$need_lib_prefix
15784 # Do we need a version for libraries?
15785 need_version=$need_version
15787 # Whether dlopen is supported.
15788 dlopen_support=$enable_dlopen
15790 # Whether dlopen of programs is supported.
15791 dlopen_self=$enable_dlopen_self
15793 # Whether dlopen of statically linked programs is supported.
15794 dlopen_self_static=$enable_dlopen_self_static
15796 # Compiler flag to prevent dynamic linking.
15797 link_static_flag=$lt_lt_prog_compiler_static_F77
15799 # Compiler flag to turn off builtin functions.
15800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15802 # Compiler flag to allow reflexive dlopens.
15803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15805 # Compiler flag to generate shared objects directly from archives.
15806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15808 # Compiler flag to generate thread-safe objects.
15809 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15811 # Library versioning type.
15812 version_type=$version_type
15814 # Format of library name prefix.
15815 libname_spec=$lt_libname_spec
15817 # List of archive names. First name is the real one, the rest are links.
15818 # The last name is the one that the linker finds with -lNAME.
15819 library_names_spec=$lt_library_names_spec
15821 # The coded name of the library, if different from the real name.
15822 soname_spec=$lt_soname_spec
15824 # Commands used to build and install an old-style archive.
15826 old_archive_cmds=$lt_old_archive_cmds_F77
15827 old_postinstall_cmds=$lt_old_postinstall_cmds
15828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15830 # Create an old-style archive from a shared archive.
15831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15833 # Create a temporary old-style archive to link instead of a shared archive.
15834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15836 # Commands used to build and install a shared archive.
15837 archive_cmds=$lt_archive_cmds_F77
15838 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15839 postinstall_cmds=$lt_postinstall_cmds
15840 postuninstall_cmds=$lt_postuninstall_cmds
15842 # Commands used to build a loadable module (assumed same as above if empty)
15843 module_cmds=$lt_module_cmds_F77
15844 module_expsym_cmds=$lt_module_expsym_cmds_F77
15846 # Commands to strip libraries.
15847 old_striplib=$lt_old_striplib
15848 striplib=$lt_striplib
15850 # Dependencies to place before the objects being linked to create a
15852 predep_objects=$lt_predep_objects_F77
15854 # Dependencies to place after the objects being linked to create a
15856 postdep_objects=$lt_postdep_objects_F77
15858 # Dependencies to place before the objects being linked to create a
15860 predeps=$lt_predeps_F77
15862 # Dependencies to place after the objects being linked to create a
15864 postdeps=$lt_postdeps_F77
15866 # The directories searched by this compiler when creating a shared
15868 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15870 # The library search path used internally by the compiler when linking
15871 # a shared library.
15872 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15874 # Method to check whether dependent libraries are shared objects.
15875 deplibs_check_method=$lt_deplibs_check_method
15877 # Command to use when deplibs_check_method == file_magic.
15878 file_magic_cmd=$lt_file_magic_cmd
15880 # Flag that allows shared libraries with undefined symbols to be built.
15881 allow_undefined_flag=$lt_allow_undefined_flag_F77
15883 # Flag that forces no undefined symbols.
15884 no_undefined_flag=$lt_no_undefined_flag_F77
15886 # Commands used to finish a libtool library installation in a directory.
15887 finish_cmds=$lt_finish_cmds
15889 # Same as above, but a single script fragment to be evaled but not shown.
15890 finish_eval=$lt_finish_eval
15892 # Take the output of nm and produce a listing of raw symbols and C names.
15893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15895 # Transform the output of nm in a proper C declaration
15896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15898 # Transform the output of nm in a C name address pair
15899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15901 # This is the shared library runtime path variable.
15902 runpath_var=$runpath_var
15904 # This is the shared library path variable.
15905 shlibpath_var=$shlibpath_var
15907 # Is shlibpath searched before the hard-coded library search path?
15908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15910 # How to hardcode a shared library path into an executable.
15911 hardcode_action=$hardcode_action_F77
15913 # Whether we should hardcode library paths into libraries.
15914 hardcode_into_libs=$hardcode_into_libs
15916 # Flag to hardcode \$libdir into a binary during linking.
15917 # This must work even if \$libdir does not exist.
15918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15920 # If ld is used when linking, flag to hardcode \$libdir into
15921 # a binary during linking. This must work even if \$libdir does
15923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15925 # Whether we need a single -rpath flag with a separated argument.
15926 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15929 # resulting binary.
15930 hardcode_direct=$hardcode_direct_F77
15932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15933 # resulting binary.
15934 hardcode_minus_L=$hardcode_minus_L_F77
15936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15937 # the resulting binary.
15938 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15940 # Set to yes if building a shared library automatically hardcodes DIR into the library
15941 # and all subsequent libraries and executables linked against it.
15942 hardcode_automatic=$hardcode_automatic_F77
15944 # Variables whose values should be saved in libtool wrapper scripts and
15945 # restored at relink time.
15946 variables_saved_for_relink="$variables_saved_for_relink"
15948 # Whether libtool must link a program against all its dependency libraries.
15949 link_all_deplibs=$link_all_deplibs_F77
15951 # Compile-time system search path for libraries
15952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15954 # Run-time system search path for libraries
15955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15957 # Fix the shell variable \$srcfile for the compiler.
15958 fix_srcfile_path=$lt_fix_srcfile_path
15960 # Set to yes if exported symbols are required.
15961 always_export_symbols=$always_export_symbols_F77
15963 # The commands to list exported symbols.
15964 export_symbols_cmds=$lt_export_symbols_cmds_F77
15966 # The commands to extract the exported symbol list from a shared archive.
15967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15969 # Symbols that should not be listed in the preloaded symbols.
15970 exclude_expsyms=$lt_exclude_expsyms_F77
15972 # Symbols that must always be exported.
15973 include_expsyms=$lt_include_expsyms_F77
15975 # ### END LIBTOOL TAG CONFIG: $tagname
15981 # If there is no Makefile yet, we rely on a make rule to execute
15982 # `config.status --recheck' to rerun these tests and create the
15983 # libtool script then.
15984 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15985 if test -f "$ltmain_in"; then
15986 test -f Makefile
&& make "$ltmain"
15992 ac_cpp
='$CPP $CPPFLAGS'
15993 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15994 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15995 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16005 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16008 # Source file extension for Java test sources.
16011 # Object file extension for compiled Java test sources.
16015 # Code to be used in simple compile tests
16016 lt_simple_compile_test_code
="class foo {}"
16018 # Code to be used in simple link tests
16019 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16021 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16023 # If no C compiler was specified, use CC.
16026 # If no C compiler flags were specified, use CFLAGS.
16027 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16029 # Allow CC to be a program name with arguments.
16033 # save warnings/boilerplate of simple test code
16034 ac_outfile
=conftest.
$ac_objext
16035 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16036 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16037 _lt_compiler_boilerplate
=`cat conftest.err`
16040 ac_outfile
=conftest.
$ac_objext
16041 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16042 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16043 _lt_linker_boilerplate
=`cat conftest.err`
16047 # Allow CC to be a program name with arguments.
16052 for cc_temp
in $compiler""; do
16054 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16055 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16060 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16063 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16064 archive_cmds_need_lc_GCJ
=no
16066 old_archive_cmds_GCJ
=$old_archive_cmds
16069 ## There is no encapsulation within the following macros, do not change
16070 ## the running order or otherwise move them around unless you know exactly
16071 ## what you are doing...
16073 lt_prog_compiler_no_builtin_flag_GCJ
=
16075 if test "$GCC" = yes; then
16076 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16079 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16080 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16081 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 lt_cv_prog_compiler_rtti_exceptions
=no
16085 ac_outfile
=conftest.
$ac_objext
16086 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16087 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16088 # Insert the option either (1) after the last *FLAGS variable, or
16089 # (2) before a word containing "conftest.", or (3) at the end.
16090 # Note that $ac_compile itself does not contain backslashes and begins
16091 # with a dollar sign (not a hyphen), so the echo should work correctly.
16092 # The option is referenced via a variable to avoid confusing sed.
16093 lt_compile
=`echo "$ac_compile" | $SED \
16094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16096 -e 's:$: $lt_compiler_flag:'`
16097 (eval echo "\"\$as_me:16097: $lt_compile\"" >&5)
16098 (eval "$lt_compile" 2>conftest.err
)
16100 cat conftest.err
>&5
16101 echo "$as_me:16101: \$? = $ac_status" >&5
16102 if (exit $ac_status) && test -s "$ac_outfile"; then
16103 # The compiler can only warn and ignore the option if not recognized
16104 # So say no if there are warnings other than the usual output.
16105 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16106 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16107 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16108 lt_cv_prog_compiler_rtti_exceptions
=yes
16114 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16115 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16117 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16118 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16125 lt_prog_compiler_wl_GCJ
=
16126 lt_prog_compiler_pic_GCJ
=
16127 lt_prog_compiler_static_GCJ
=
16129 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16130 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16132 if test "$GCC" = yes; then
16133 lt_prog_compiler_wl_GCJ
='-Wl,'
16134 lt_prog_compiler_static_GCJ
='-static'
16138 # All AIX code is PIC.
16139 if test "$host_cpu" = ia64
; then
16140 # AIX 5 now supports IA64 processor
16141 lt_prog_compiler_static_GCJ
='-Bstatic'
16146 # FIXME: we need at least 68020 code to build shared libraries, but
16147 # adding the `-m68020' flag to GCC prevents building anything better,
16149 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16152 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16153 # PIC is the default for these OSes.
16156 mingw
* | cygwin
* | pw32
* | os2
*)
16157 # This hack is so that the source file can tell whether it is being
16158 # built for inclusion in a dll (and should export symbols for example).
16159 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16160 # (--disable-auto-import) libraries
16164 darwin
* | rhapsody
*)
16165 # PIC is the default on this platform
16166 # Common symbols not allowed in MH_DYLIB files
16167 lt_prog_compiler_pic_GCJ
='-fno-common'
16171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16172 # Instead, we relocate shared libraries at runtime.
16176 # Just because we use GCC doesn't mean we suddenly get shared libraries
16177 # on systems that don't support them.
16178 lt_prog_compiler_can_build_shared_GCJ
=no
16183 if test -d /usr
/nec
; then
16184 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16190 # not for PA HP-UX.
16196 lt_prog_compiler_pic_GCJ
='-fPIC'
16202 lt_prog_compiler_pic_GCJ
='-fPIC'
16206 # PORTME Check for flag to pass linker flags through the system compiler.
16209 lt_prog_compiler_wl_GCJ
='-Wl,'
16210 if test "$host_cpu" = ia64
; then
16211 # AIX 5 now supports IA64 processor
16212 lt_prog_compiler_static_GCJ
='-Bstatic'
16214 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16218 # PIC is the default on this platform
16219 # Common symbols not allowed in MH_DYLIB files
16220 case $cc_basename in
16222 lt_prog_compiler_pic_GCJ
='-qnocommon'
16223 lt_prog_compiler_wl_GCJ
='-Wl,'
16228 mingw
* | cygwin
* | pw32
* | os2
*)
16229 # This hack is so that the source file can tell whether it is being
16230 # built for inclusion in a dll (and should export symbols for example).
16234 hpux9
* | hpux10
* | hpux11
*)
16235 lt_prog_compiler_wl_GCJ
='-Wl,'
16236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16237 # not for PA HP-UX.
16243 lt_prog_compiler_pic_GCJ
='+Z'
16246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16247 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16250 irix5
* | irix6
* | nonstopux
*)
16251 lt_prog_compiler_wl_GCJ
='-Wl,'
16252 # PIC (with -KPIC) is the default.
16253 lt_prog_compiler_static_GCJ
='-non_shared'
16257 lt_prog_compiler_pic_GCJ
='-KPIC'
16258 lt_prog_compiler_static_GCJ
='-Bstatic'
16261 linux
* | k
*bsd
*-gnu)
16262 case $cc_basename in
16264 lt_prog_compiler_wl_GCJ
='-Wl,'
16265 lt_prog_compiler_pic_GCJ
='-KPIC'
16266 lt_prog_compiler_static_GCJ
='-static'
16268 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16269 # Portland Group compilers (*not* the Pentium gcc compiler,
16270 # which looks to be a dead project)
16271 lt_prog_compiler_wl_GCJ
='-Wl,'
16272 lt_prog_compiler_pic_GCJ
='-fpic'
16273 lt_prog_compiler_static_GCJ
='-Bstatic'
16276 lt_prog_compiler_wl_GCJ
='-Wl,'
16277 # All Alpha code is PIC.
16278 lt_prog_compiler_static_GCJ
='-non_shared'
16281 case `$CC -V 2>&1 | sed 5q` in
16284 lt_prog_compiler_pic_GCJ
='-KPIC'
16285 lt_prog_compiler_static_GCJ
='-Bstatic'
16286 lt_prog_compiler_wl_GCJ
='-Wl,'
16289 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16290 lt_prog_compiler_pic_GCJ
='-KPIC'
16291 lt_prog_compiler_static_GCJ
='-Bstatic'
16292 lt_prog_compiler_wl_GCJ
=''
16299 osf3
* | osf4
* | osf5
*)
16300 lt_prog_compiler_wl_GCJ
='-Wl,'
16301 # All OSF/1 code is PIC.
16302 lt_prog_compiler_static_GCJ
='-non_shared'
16306 lt_prog_compiler_static_GCJ
='-non_shared'
16310 lt_prog_compiler_pic_GCJ
='-KPIC'
16311 lt_prog_compiler_static_GCJ
='-Bstatic'
16312 case $cc_basename in
16313 f77
* | f90
* | f95
*)
16314 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16316 lt_prog_compiler_wl_GCJ
='-Wl,';;
16321 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16322 lt_prog_compiler_pic_GCJ
='-PIC'
16323 lt_prog_compiler_static_GCJ
='-Bstatic'
16326 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16327 lt_prog_compiler_wl_GCJ
='-Wl,'
16328 lt_prog_compiler_pic_GCJ
='-KPIC'
16329 lt_prog_compiler_static_GCJ
='-Bstatic'
16333 if test -d /usr
/nec
;then
16334 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16335 lt_prog_compiler_static_GCJ
='-Bstatic'
16339 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16340 lt_prog_compiler_wl_GCJ
='-Wl,'
16341 lt_prog_compiler_pic_GCJ
='-KPIC'
16342 lt_prog_compiler_static_GCJ
='-Bstatic'
16346 lt_prog_compiler_wl_GCJ
='-Wl,'
16347 lt_prog_compiler_can_build_shared_GCJ
=no
16351 lt_prog_compiler_pic_GCJ
='-pic'
16352 lt_prog_compiler_static_GCJ
='-Bstatic'
16356 lt_prog_compiler_can_build_shared_GCJ
=no
16361 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16362 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16365 # Check to make sure the PIC flag actually works.
16367 if test -n "$lt_prog_compiler_pic_GCJ"; then
16369 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16370 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16371 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 lt_cv_prog_compiler_pic_works_GCJ
=no
16375 ac_outfile
=conftest.
$ac_objext
16376 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16377 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16378 # Insert the option either (1) after the last *FLAGS variable, or
16379 # (2) before a word containing "conftest.", or (3) at the end.
16380 # Note that $ac_compile itself does not contain backslashes and begins
16381 # with a dollar sign (not a hyphen), so the echo should work correctly.
16382 # The option is referenced via a variable to avoid confusing sed.
16383 lt_compile
=`echo "$ac_compile" | $SED \
16384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16386 -e 's:$: $lt_compiler_flag:'`
16387 (eval echo "\"\$as_me:16387: $lt_compile\"" >&5)
16388 (eval "$lt_compile" 2>conftest.err
)
16390 cat conftest.err
>&5
16391 echo "$as_me:16391: \$? = $ac_status" >&5
16392 if (exit $ac_status) && test -s "$ac_outfile"; then
16393 # The compiler can only warn and ignore the option if not recognized
16394 # So say no if there are warnings other than the usual output.
16395 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16396 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16397 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16398 lt_cv_prog_compiler_pic_works_GCJ
=yes
16404 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16405 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16407 if test x
"$lt_cv_prog_compiler_pic_works_GCJ" = xyes
; then
16408 case $lt_prog_compiler_pic_GCJ in
16410 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16413 lt_prog_compiler_pic_GCJ
=
16414 lt_prog_compiler_can_build_shared_GCJ
=no
16419 # For platforms which do not support PIC, -DPIC is meaningless:
16421 lt_prog_compiler_pic_GCJ
=
16424 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16429 # Check to make sure the static flag actually works.
16431 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16432 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16433 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16434 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 lt_cv_prog_compiler_static_works_GCJ
=no
16438 save_LDFLAGS
="$LDFLAGS"
16439 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16440 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16441 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16442 # The linker can only warn and ignore the option if not recognized
16443 # So say no if there are warnings
16444 if test -s conftest.err
; then
16445 # Append any errors to the config.log.
16446 cat conftest.err
1>&5
16447 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16448 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16449 if diff conftest.exp conftest.er2
>/dev
/null
; then
16450 lt_cv_prog_compiler_static_works_GCJ
=yes
16453 lt_cv_prog_compiler_static_works_GCJ
=yes
16457 LDFLAGS
="$save_LDFLAGS"
16460 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16461 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16463 if test x
"$lt_cv_prog_compiler_static_works_GCJ" = xyes
; then
16466 lt_prog_compiler_static_GCJ
=
16470 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16471 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16472 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 lt_cv_prog_compiler_c_o_GCJ
=no
16476 $rm -r conftest
2>/dev
/null
16480 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16482 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16483 # Insert the option either (1) after the last *FLAGS variable, or
16484 # (2) before a word containing "conftest.", or (3) at the end.
16485 # Note that $ac_compile itself does not contain backslashes and begins
16486 # with a dollar sign (not a hyphen), so the echo should work correctly.
16487 lt_compile
=`echo "$ac_compile" | $SED \
16488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16490 -e 's:$: $lt_compiler_flag:'`
16491 (eval echo "\"\$as_me:16491: $lt_compile\"" >&5)
16492 (eval "$lt_compile" 2>out
/conftest.err
)
16494 cat out
/conftest.err
>&5
16495 echo "$as_me:16495: \$? = $ac_status" >&5
16496 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16498 # The compiler can only warn and ignore the option if not recognized
16499 # So say no if there are warnings
16500 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16501 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16502 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16503 lt_cv_prog_compiler_c_o_GCJ
=yes
16508 # SGI C++ compiler will create directory out/ii_files/ for
16509 # template instantiation
16510 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16511 $rm out
/* && rmdir out
16517 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16518 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16521 hard_links
="nottested"
16522 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16523 # do not overwrite the value of need_locks provided by the user
16524 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16525 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16528 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16530 ln conftest.a conftest.b
2>&5 || hard_links
=no
16531 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16532 { echo "$as_me:$LINENO: result: $hard_links" >&5
16533 echo "${ECHO_T}$hard_links" >&6; }
16534 if test "$hard_links" = no
; then
16535 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16536 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16543 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16544 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16547 allow_undefined_flag_GCJ
=
16548 enable_shared_with_static_runtimes_GCJ
=no
16550 archive_expsym_cmds_GCJ
=
16551 old_archive_From_new_cmds_GCJ
=
16552 old_archive_from_expsyms_cmds_GCJ
=
16553 export_dynamic_flag_spec_GCJ
=
16554 whole_archive_flag_spec_GCJ
=
16555 thread_safe_flag_spec_GCJ
=
16556 hardcode_libdir_flag_spec_GCJ
=
16557 hardcode_libdir_flag_spec_ld_GCJ
=
16558 hardcode_libdir_separator_GCJ
=
16559 hardcode_direct_GCJ
=no
16560 hardcode_minus_L_GCJ
=no
16561 hardcode_shlibpath_var_GCJ
=unsupported
16562 link_all_deplibs_GCJ
=unknown
16563 hardcode_automatic_GCJ
=no
16565 module_expsym_cmds_GCJ
=
16566 always_export_symbols_GCJ
=no
16567 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16568 # include_expsyms should be a list of space-separated symbols to be *always*
16569 # included in the symbol list
16570 include_expsyms_GCJ
=
16571 # exclude_expsyms can be an extended regexp of symbols to exclude
16572 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16573 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16574 # as well as any symbol that contains `d'.
16575 exclude_expsyms_GCJ
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16576 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16577 # platforms (ab)use it in PIC code, but their linkers get confused if
16578 # the symbol is explicitly referenced. Since portable code cannot
16579 # rely on this symbol name, it's probably fine to never include it in
16580 # preloaded symbol tables.
16581 # Exclude shared library initialization/finalization symbols.
16582 extract_expsyms_cmds
=
16583 # Just being paranoid about ensuring that cc_basename is set.
16584 for cc_temp
in $compiler""; do
16586 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16587 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16592 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16595 cygwin
* | mingw
* | pw32
*)
16596 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16597 # When not using gcc, we currently assume that we are using
16598 # Microsoft Visual C++.
16599 if test "$GCC" != yes; then
16604 # we just hope/assume this is gcc and not c89 (= MSVC++)
16613 if test "$with_gnu_ld" = yes; then
16614 # If archive_cmds runs LD, not CC, wlarc should be empty
16617 # Set some defaults for GNU ld with shared library support. These
16618 # are reset later if shared libraries are not supported. Putting them
16619 # here allows them to be overridden if necessary.
16620 runpath_var
=LD_RUN_PATH
16621 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16622 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16623 # ancient GNU ld didn't support --whole-archive et. al.
16624 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16625 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16627 whole_archive_flag_spec_GCJ
=
16629 supports_anon_versioning
=no
16630 case `$LD -v 2>/dev/null` in
16631 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16632 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16633 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16634 *\
2.11.
*) ;; # other 2.11 versions
16635 *) supports_anon_versioning
=yes ;;
16638 # See if GNU ld supports shared libraries.
16641 # On AIX/PPC, the GNU linker is very broken
16642 if test "$host_cpu" != ia64
; then
16646 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16647 *** to be unable to reliably create shared libraries on AIX.
16648 *** Therefore, libtool is disabling shared libraries support. If you
16649 *** really care for shared libraries, you may want to modify your PATH
16650 *** so that a non-GNU linker is found, and then restart.
16657 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)'
16658 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16659 hardcode_minus_L_GCJ
=yes
16661 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16662 # that the semantics of dynamic libraries on AmigaOS, at least up
16663 # to version 4, is to share data among multiple programs linked
16664 # with the same dynamic library. Since this doesn't match the
16665 # behavior of shared libraries on other platforms, we can't use
16671 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16672 allow_undefined_flag_GCJ
=unsupported
16673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16674 # support --undefined. This deserves some investigation. FIXME
16675 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16681 cygwin
* | mingw
* | pw32
*)
16682 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16683 # as there is no search path for DLLs.
16684 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16685 allow_undefined_flag_GCJ
=unsupported
16686 always_export_symbols_GCJ
=no
16687 enable_shared_with_static_runtimes_GCJ
=yes
16688 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16690 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16691 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16692 # If the export-symbols file already is a .def file (1st line
16693 # is EXPORTS), use it as is; otherwise, prepend...
16694 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16695 cp $export_symbols $output_objdir/$soname.def;
16697 echo EXPORTS > $output_objdir/$soname.def;
16698 cat $export_symbols >> $output_objdir/$soname.def;
16700 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16707 hardcode_direct_GCJ
=no
16708 hardcode_shlibpath_var_GCJ
=no
16709 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16710 export_dynamic_flag_spec_GCJ
='${wl}-E'
16711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16712 # Instead, shared libraries are loaded at an image base (0x10000000 by
16713 # default) and relocated if they conflict, which is a slow very memory
16714 # consuming and fragmenting process. To avoid this, we pick a random,
16715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16716 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16717 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'
16718 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'
16721 gnu
* | linux
* | k
*bsd
*-gnu)
16722 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16724 case $cc_basename,$host_cpu in
16725 pgcc
*) # Portland Group C compiler
16726 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'
16727 tmp_addflag
=' $pic_flag'
16729 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16730 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'
16731 tmp_addflag
=' $pic_flag -Mnomain' ;;
16732 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16733 tmp_addflag
=' -i_dynamic' ;;
16734 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16735 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16736 ifc
* | ifort
*) # Intel Fortran compiler
16737 tmp_addflag
=' -nofor_main' ;;
16739 case `$CC -V 2>&1 | sed 5q` in
16740 *Sun\ C
*) # Sun C 5.9
16741 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'
16742 tmp_sharedflag
='-G' ;;
16743 *Sun\ F
*) # Sun Fortran 8.3
16744 tmp_sharedflag
='-G' ;;
16746 tmp_sharedflag
='-shared' ;;
16748 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16750 if test $supports_anon_versioning = yes; then
16751 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16753 $echo "local: *; };" >> $output_objdir/$libname.ver~
16754 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16762 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16763 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16766 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16767 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16772 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16776 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16777 *** create shared libraries on Solaris systems. Therefore, libtool
16778 *** is disabling shared libraries support. We urge you to upgrade GNU
16779 *** binutils to release 2.9.1 or newer. Another option is to modify
16780 *** your PATH or compiler configuration so that the native linker is
16781 *** used, and then restart.
16784 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16785 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16786 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16792 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16793 case `$LD -v 2>&1` in
16794 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16798 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16799 *** reliably create shared libraries on SCO systems. Therefore, libtool
16800 *** is disabling shared libraries support. We urge you to upgrade GNU
16801 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16802 *** your PATH or compiler configuration so that the native linker is
16803 *** used, and then restart.
16808 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16809 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16810 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16811 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16820 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16822 hardcode_direct_GCJ
=yes
16823 hardcode_shlibpath_var_GCJ
=no
16827 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16828 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16829 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16836 if test "$ld_shlibs_GCJ" = no
; then
16838 hardcode_libdir_flag_spec_GCJ
=
16839 export_dynamic_flag_spec_GCJ
=
16840 whole_archive_flag_spec_GCJ
=
16843 # PORTME fill in a description of your system's linker (not GNU ld)
16846 allow_undefined_flag_GCJ
=unsupported
16847 always_export_symbols_GCJ
=yes
16848 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'
16849 # Note: this linker hardcodes the directories in LIBPATH if there
16850 # are no directories specified by -L.
16851 hardcode_minus_L_GCJ
=yes
16852 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16853 # Neither direct hardcoding nor static linking is supported with a
16855 hardcode_direct_GCJ
=unsupported
16860 if test "$host_cpu" = ia64
; then
16861 # On IA64, the linker does run time linking by default, so we don't
16862 # have to do anything special.
16863 aix_use_runtimelinking
=no
16864 exp_sym_flag
='-Bexport'
16867 # If we're using GNU nm, then we don't want the "-C" option.
16868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16869 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16870 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'
16872 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'
16874 aix_use_runtimelinking
=no
16876 # Test if we are trying to use run time linking or normal
16877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16878 # need to do runtime linking.
16879 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16880 for ld_flag
in $LDFLAGS; do
16881 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16882 aix_use_runtimelinking
=yes
16889 exp_sym_flag
='-bexport'
16890 no_entry_flag
='-bnoentry'
16893 # When large executables or shared objects are built, AIX ld can
16894 # have problems creating the table of contents. If linking a library
16895 # or program results in "error TOC overflow" add -mminimal-toc to
16896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16899 archive_cmds_GCJ
=''
16900 hardcode_direct_GCJ
=yes
16901 hardcode_libdir_separator_GCJ
=':'
16902 link_all_deplibs_GCJ
=yes
16904 if test "$GCC" = yes; then
16905 case $host_os in aix4.
[012]|aix4.
[012].
*)
16906 # We only want to do this on AIX 4.2 and lower, the check
16907 # below for broken collect2 doesn't work under 4.3+
16908 collect2name
=`${CC} -print-prog-name=collect2`
16909 if test -f "$collect2name" && \
16910 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16912 # We have reworked collect2
16915 # We have old collect2
16916 hardcode_direct_GCJ
=unsupported
16917 # It fails to find uninstalled libraries when the uninstalled
16918 # path is not listed in the libpath. Setting hardcode_minus_L
16919 # to unsupported forces relinking
16920 hardcode_minus_L_GCJ
=yes
16921 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16922 hardcode_libdir_separator_GCJ
=
16926 shared_flag
='-shared'
16927 if test "$aix_use_runtimelinking" = yes; then
16928 shared_flag
="$shared_flag "'${wl}-G'
16932 if test "$host_cpu" = ia64
; then
16933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16934 # chokes on -Wl,-G. The following line is correct:
16937 if test "$aix_use_runtimelinking" = yes; then
16938 shared_flag
='${wl}-G'
16940 shared_flag
='${wl}-bM:SRE'
16945 # It seems that -bexpall does not export symbols beginning with
16946 # underscore (_), so it is better to generate a list of symbols to export.
16947 always_export_symbols_GCJ
=yes
16948 if test "$aix_use_runtimelinking" = yes; then
16949 # Warning - without using the other runtime loading flags (-brtl),
16950 # -berok will link without error, but may produce a broken library.
16951 allow_undefined_flag_GCJ
='-berok'
16952 # Determine the default libpath from the value encoded in an empty executable.
16953 cat >conftest.
$ac_ext <<_ACEOF
16956 cat confdefs.h
>>conftest.
$ac_ext
16957 cat >>conftest.
$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16968 rm -f conftest.
$ac_objext conftest
$ac_exeext
16969 if { (ac_try
="$ac_link"
16970 case "(($ac_try" in
16971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_link") 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } && {
16982 test -z "$ac_c_werror_flag" ||
16983 test ! -s conftest.err
16984 } && test -s conftest$ac_exeext &&
16985 $as_test_x conftest$ac_exeext; then
16987 lt_aix_libpath_sed='
16988 /Import File Strings/,/^$/ {
16994 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
16995 # Check for a 64-bit object if we didn't find anything.
16996 if test -z "$aix_libpath"; then
16997 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17007 conftest$ac_exeext conftest.$ac_ext
17008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17010 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17011 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"
17013 if test "$host_cpu" = ia64; then
17014 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17015 allow_undefined_flag_GCJ="-z nodefs"
17016 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"
17018 # Determine the default libpath from the value encoded in an empty executable.
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17038 *) ac_try_echo
=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17043 grep -v '^ *+' conftest.er1
>conftest.err
17045 cat conftest.err
>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } && {
17048 test -z "$ac_c_werror_flag" ||
17049 test ! -s conftest.err
17050 } && test -s conftest
$ac_exeext &&
17051 $as_test_x conftest
$ac_exeext; then
17053 lt_aix_libpath_sed
='
17054 /Import File Strings/,/^$/ {
17060 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17061 # Check for a 64-bit object if we didn't find anything.
17062 if test -z "$aix_libpath"; then
17063 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.
$ac_ext >&5
17072 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17073 conftest
$ac_exeext conftest.
$ac_ext
17074 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17076 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17077 # Warning - without using the other run time loading flags,
17078 # -berok will link without error, but may produce a broken library.
17079 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17080 allow_undefined_flag_GCJ
=' ${wl}-berok'
17081 # Exported symbols can be pulled into shared objects from archives
17082 whole_archive_flag_spec_GCJ
='$convenience'
17083 archive_cmds_need_lc_GCJ
=yes
17084 # This is similar to how AIX traditionally builds its shared libraries.
17085 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'
17091 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)'
17092 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17093 hardcode_minus_L_GCJ
=yes
17094 # see comment about different semantics on the GNU ld section
17099 export_dynamic_flag_spec_GCJ
=-rdynamic
17102 cygwin
* | mingw
* | pw32
*)
17103 # When not using gcc, we currently assume that we are using
17104 # Microsoft Visual C++.
17105 # hardcode_libdir_flag_spec is actually meaningless, as there is
17106 # no search path for DLLs.
17107 hardcode_libdir_flag_spec_GCJ
=' '
17108 allow_undefined_flag_GCJ
=unsupported
17109 # Tell ltmain to make .lib files, not .a files.
17111 # Tell ltmain to make .dll files, not .so files.
17113 # FIXME: Setting linknames here is a bad hack.
17114 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17115 # The linker will automatically build a .lib file if we build a DLL.
17116 old_archive_From_new_cmds_GCJ
='true'
17117 # FIXME: Should let the user specify the lib program.
17118 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17119 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17120 enable_shared_with_static_runtimes_GCJ
=yes
17123 darwin
* | rhapsody
*)
17125 rhapsody
* | darwin1.
[012])
17126 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17130 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17132 case ${MACOSX_DEPLOYMENT_TARGET} in
17134 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17137 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17143 archive_cmds_need_lc_GCJ
=no
17144 hardcode_direct_GCJ
=no
17145 hardcode_automatic_GCJ
=yes
17146 hardcode_shlibpath_var_GCJ
=unsupported
17147 whole_archive_flag_spec_GCJ
=''
17148 link_all_deplibs_GCJ
=yes
17149 if test "$GCC" = yes ; then
17150 output_verbose_link_cmd
='echo'
17151 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}"
17152 module_cmds_GCJ
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17153 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}"
17154 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}"
17156 case $cc_basename in
17158 output_verbose_link_cmd
='echo'
17159 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17160 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17162 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}'
17163 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}'
17173 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17175 hardcode_shlibpath_var_GCJ
=no
17182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17183 # support. Future versions do this automatically, but an explicit c++rt0.o
17184 # does not break anything, and helps significantly (at the cost of a little
17187 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17188 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17189 hardcode_direct_GCJ
=yes
17190 hardcode_shlibpath_var_GCJ
=no
17193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17195 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17196 hardcode_direct_GCJ
=yes
17197 hardcode_minus_L_GCJ
=yes
17198 hardcode_shlibpath_var_GCJ
=no
17201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17202 freebsd
* | dragonfly
*)
17203 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17204 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17205 hardcode_direct_GCJ
=yes
17206 hardcode_shlibpath_var_GCJ
=no
17210 if test "$GCC" = yes; then
17211 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'
17213 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'
17215 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17216 hardcode_libdir_separator_GCJ
=:
17217 hardcode_direct_GCJ
=yes
17219 # hardcode_minus_L: Not really in the search PATH,
17220 # but as the default location of the library.
17221 hardcode_minus_L_GCJ
=yes
17222 export_dynamic_flag_spec_GCJ
='${wl}-E'
17226 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17227 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17229 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17231 if test "$with_gnu_ld" = no
; then
17232 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17233 hardcode_libdir_separator_GCJ
=:
17235 hardcode_direct_GCJ
=yes
17236 export_dynamic_flag_spec_GCJ
='${wl}-E'
17238 # hardcode_minus_L: Not really in the search PATH,
17239 # but as the default location of the library.
17240 hardcode_minus_L_GCJ
=yes
17245 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17248 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17251 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17254 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17260 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17263 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17266 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17270 if test "$with_gnu_ld" = no
; then
17271 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17272 hardcode_libdir_separator_GCJ
=:
17276 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17277 hardcode_direct_GCJ
=no
17278 hardcode_shlibpath_var_GCJ
=no
17281 hardcode_direct_GCJ
=yes
17282 export_dynamic_flag_spec_GCJ
='${wl}-E'
17284 # hardcode_minus_L: Not really in the search PATH,
17285 # but as the default location of the library.
17286 hardcode_minus_L_GCJ
=yes
17292 irix5
* | irix6
* | nonstopux
*)
17293 if test "$GCC" = yes; then
17294 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'
17296 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'
17297 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17299 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17300 hardcode_libdir_separator_GCJ
=:
17301 link_all_deplibs_GCJ
=yes
17305 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17306 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17308 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17310 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17311 hardcode_direct_GCJ
=yes
17312 hardcode_shlibpath_var_GCJ
=no
17316 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17317 hardcode_direct_GCJ
=yes
17318 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17319 hardcode_libdir_separator_GCJ
=:
17320 hardcode_shlibpath_var_GCJ
=no
17324 if test -f /usr
/libexec
/ld.so
; then
17325 hardcode_direct_GCJ
=yes
17326 hardcode_shlibpath_var_GCJ
=no
17327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17328 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17329 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17330 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17331 export_dynamic_flag_spec_GCJ
='${wl}-E'
17334 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17335 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17336 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17339 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17340 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17350 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17351 hardcode_minus_L_GCJ
=yes
17352 allow_undefined_flag_GCJ
=unsupported
17353 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'
17354 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17358 if test "$GCC" = yes; then
17359 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17360 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'
17362 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17363 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'
17365 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17366 hardcode_libdir_separator_GCJ
=:
17369 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17370 if test "$GCC" = yes; then
17371 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17372 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'
17373 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17375 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17376 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'
17377 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~
17378 $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'
17380 # Both c and cxx compiler support -rpath directly
17381 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17383 hardcode_libdir_separator_GCJ
=:
17387 no_undefined_flag_GCJ
=' -z text'
17388 if test "$GCC" = yes; then
17390 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17391 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17392 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17395 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17396 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17399 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17400 hardcode_shlibpath_var_GCJ
=no
17402 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17404 # The compiler driver will combine and reorder linker options,
17405 # but understands `-z linker_flag'. GCC discards it without `$wl',
17406 # but is careful enough not to reorder.
17407 # Supported since Solaris 2.6 (maybe 2.5.1?)
17408 if test "$GCC" = yes; then
17409 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17411 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
17415 link_all_deplibs_GCJ
=yes
17419 if test "x$host_vendor" = xsequent
; then
17420 # Use $CC to link under sequent, because it throws in some extra .o
17421 # files that make .init and .fini sections work.
17422 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17424 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17426 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17427 hardcode_direct_GCJ
=yes
17428 hardcode_minus_L_GCJ
=yes
17429 hardcode_shlibpath_var_GCJ
=no
17433 case $host_vendor in
17435 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17436 hardcode_direct_GCJ
=yes # is this really true???
17439 ## LD is ld it makes a PLAMLIB
17440 ## CC just makes a GrossModule.
17441 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17442 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17443 hardcode_direct_GCJ
=no
17446 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17447 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17450 runpath_var
='LD_RUN_PATH'
17451 hardcode_shlibpath_var_GCJ
=no
17455 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17456 hardcode_shlibpath_var_GCJ
=no
17457 export_dynamic_flag_spec_GCJ
='-Bexport'
17461 if test -d /usr
/nec
; then
17462 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17463 hardcode_shlibpath_var_GCJ
=no
17464 runpath_var
=LD_RUN_PATH
17465 hardcode_runpath_var
=yes
17470 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17471 no_undefined_flag_GCJ
='${wl}-z,text'
17472 archive_cmds_need_lc_GCJ
=no
17473 hardcode_shlibpath_var_GCJ
=no
17474 runpath_var
='LD_RUN_PATH'
17476 if test "$GCC" = yes; then
17477 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17478 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17480 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17481 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17485 sysv5
* | sco3.2v5
* | sco5v6
*)
17486 # Note: We can NOT use -z defs as we might desire, because we do not
17487 # link with -lc, and that would cause any symbols used from libc to
17488 # always be unresolved, which means just about no library would
17489 # ever link correctly. If we're not using GNU ld we use -z text
17490 # though, which does catch some bad symbols but isn't as heavy-handed
17492 no_undefined_flag_GCJ
='${wl}-z,text'
17493 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17494 archive_cmds_need_lc_GCJ
=no
17495 hardcode_shlibpath_var_GCJ
=no
17496 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17497 hardcode_libdir_separator_GCJ
=':'
17498 link_all_deplibs_GCJ
=yes
17499 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17500 runpath_var
='LD_RUN_PATH'
17502 if test "$GCC" = yes; then
17503 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17506 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17507 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17512 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17513 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17514 hardcode_shlibpath_var_GCJ
=no
17523 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17524 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17525 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17528 # Do we need to explicitly link libc?
17530 case "x$archive_cmds_need_lc_GCJ" in
17532 # Assume -lc should be added
17533 archive_cmds_need_lc_GCJ
=yes
17535 if test "$enable_shared" = yes && test "$GCC" = yes; then
17536 case $archive_cmds_GCJ in
17538 # FIXME: we may have to deal with multi-command sequences.
17541 # Test whether the compiler implicitly links with -lc since on some
17542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17543 # to ld, don't add -lc before -lgcc.
17544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17547 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17550 (eval $ac_compile) 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } 2>conftest.err
; then
17556 libobjs
=conftest.
$ac_objext
17558 wl
=$lt_prog_compiler_wl_GCJ
17559 pic_flag
=$lt_prog_compiler_pic_GCJ
17565 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17566 allow_undefined_flag_GCJ
=
17567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17568 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }
17573 archive_cmds_need_lc_GCJ
=no
17575 archive_cmds_need_lc_GCJ
=yes
17577 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17579 cat conftest.err
1>&5
17582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17583 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17592 library_names_spec
=
17593 libname_spec
='lib$name'
17597 postuninstall_cmds
=
17601 shlibpath_overrides_runpath
=unknown
17603 dynamic_linker
="$host_os ld.so"
17604 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17606 need_lib_prefix
=unknown
17607 hardcode_into_libs
=no
17609 # when you set need_version to no, make sure it does not cause -set_version
17610 # flags to be left without arguments
17611 need_version
=unknown
17616 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17617 shlibpath_var
=LIBPATH
17619 # AIX 3 has no versioning support, so we append a major version to the name.
17620 soname_spec
='${libname}${release}${shared_ext}$major'
17627 hardcode_into_libs
=yes
17628 if test "$host_cpu" = ia64
; then
17629 # AIX 5 supports IA64
17630 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17631 shlibpath_var
=LD_LIBRARY_PATH
17633 # With GCC up to 2.95.x, collect2 would create an import file
17634 # for dependence libraries. The import file would start with
17635 # the line `#! .'. This would cause the generated library to
17636 # depend on `.', always an invalid library. This was fixed in
17637 # development snapshots of GCC prior to 3.0.
17639 aix4 | aix4.
[01] | aix4.
[01].
*)
17640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17642 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17645 can_build_shared
=no
17649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17650 # soname into executable. Probably we can add versioning support to
17651 # collect2, so additional links can be useful in future.
17652 if test "$aix_use_runtimelinking" = yes; then
17653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17654 # instead of lib<name>.a to let people know that these are not
17655 # typical AIX shared libraries.
17656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658 # We preserve .a as extension for shared libraries through AIX4.2
17659 # and later when we are not doing run time linking.
17660 library_names_spec
='${libname}${release}.a $libname.a'
17661 soname_spec
='${libname}${release}${shared_ext}$major'
17663 shlibpath_var
=LIBPATH
17668 library_names_spec
='$libname.ixlibrary $libname.a'
17669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17670 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'
17674 library_names_spec
='${libname}${shared_ext}'
17675 dynamic_linker
="$host_os ld.so"
17676 shlibpath_var
=LIBRARY_PATH
17682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17683 soname_spec
='${libname}${release}${shared_ext}$major'
17684 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17685 shlibpath_var
=LD_LIBRARY_PATH
17686 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17687 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17688 # the default ld.so.conf also contains /usr/contrib/lib and
17689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17690 # libtool to hard-code these into programs
17693 cygwin
* | mingw
* | pw32
*)
17694 version_type
=windows
17699 case $GCC,$host_os in
17700 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17701 library_names_spec
='$libname.dll.a'
17702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17703 postinstall_cmds
='base_file=`basename \${file}`~
17704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17705 dldir=$destdir/`dirname \$dlpath`~
17706 test -d \$dldir || mkdir -p \$dldir~
17707 $install_prog $dir/$dlname \$dldir/$dlname~
17708 chmod a+x \$dldir/$dlname'
17709 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17710 dlpath=$dir/\$dldll~
17712 shlibpath_overrides_runpath
=yes
17716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17717 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17718 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17721 # MinGW DLLs use traditional 'lib' prefix
17722 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17723 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17724 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17725 # It is most probably a Windows format PATH printed by
17726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17727 # path with ; separators, and with drive letters. We can handle the
17728 # drive letters (cygwin fileutils understands them), so leave them,
17729 # especially as we might pass files found there to a mingw objdump,
17730 # which wouldn't understand a cygwinified path. Ahh.
17731 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17733 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17737 # pw32 DLLs use 'pw' prefix rather than 'lib'
17738 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17744 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17747 dynamic_linker
='Win32 ld.exe'
17748 # FIXME: first we should search . and the directory the executable is in
17752 darwin
* | rhapsody
*)
17753 dynamic_linker
="$host_os dyld"
17754 version_type
=darwin
17757 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17758 soname_spec
='${libname}${release}${major}$shared_ext'
17759 shlibpath_overrides_runpath
=yes
17760 shlibpath_var
=DYLD_LIBRARY_PATH
17761 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17763 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17771 soname_spec
='${libname}${release}${shared_ext}$major'
17772 shlibpath_var
=LD_LIBRARY_PATH
17779 freebsd
* | dragonfly
*)
17780 # DragonFly does not have aout. When/if they implement a new
17781 # versioning mechanism, adjust this.
17782 if test -x /usr
/bin
/objformat
; then
17783 objformat
=`/usr/bin/objformat`
17786 freebsd
[123]*) objformat
=aout
;;
17787 *) objformat
=elf
;;
17790 version_type
=freebsd-
$objformat
17791 case $version_type in
17793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17798 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17802 shlibpath_var
=LD_LIBRARY_PATH
17805 shlibpath_overrides_runpath
=yes
17807 freebsd3.
[01]* | freebsdelf3.
[01]*)
17808 shlibpath_overrides_runpath
=yes
17809 hardcode_into_libs
=yes
17811 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17812 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17813 shlibpath_overrides_runpath
=no
17814 hardcode_into_libs
=yes
17816 *) # from 4.6 on, and DragonFly
17817 shlibpath_overrides_runpath
=yes
17818 hardcode_into_libs
=yes
17827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17828 soname_spec
='${libname}${release}${shared_ext}$major'
17829 shlibpath_var
=LD_LIBRARY_PATH
17830 hardcode_into_libs
=yes
17833 hpux9
* | hpux10
* | hpux11
*)
17834 # Give a soname corresponding to the major version so that dld.sl refuses to
17835 # link against other versions.
17842 hardcode_into_libs
=yes
17843 dynamic_linker
="$host_os dld.so"
17844 shlibpath_var
=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 soname_spec
='${libname}${release}${shared_ext}$major'
17848 if test "X$HPUX_IA64_MODE" = X32
; then
17849 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17851 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17853 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17857 hardcode_into_libs
=yes
17858 dynamic_linker
="$host_os dld.sl"
17859 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17860 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862 soname_spec
='${libname}${release}${shared_ext}$major'
17863 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17864 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17868 dynamic_linker
="$host_os dld.sl"
17869 shlibpath_var
=SHLIB_PATH
17870 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17872 soname_spec
='${libname}${release}${shared_ext}$major'
17875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17876 postinstall_cmds
='chmod 555 $lib'
17883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17884 soname_spec
='${libname}${release}${shared_ext}$major'
17885 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17886 shlibpath_var
=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath
=no
17888 hardcode_into_libs
=yes
17891 irix5
* | irix6
* | nonstopux
*)
17893 nonstopux
*) version_type
=nonstopux
;;
17895 if test "$lt_cv_prog_gnu_ld" = yes; then
17903 soname_spec
='${libname}${release}${shared_ext}$major'
17904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17906 irix5
* | nonstopux
*)
17907 libsuff
= shlibsuff
=
17910 case $LD in # libtool.m4 will add one of these switches to LD
17911 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17912 libsuff
= shlibsuff
= libmagic
=32-bit;;
17913 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17914 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17915 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17916 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17917 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17921 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17922 shlibpath_overrides_runpath
=no
17923 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17924 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17925 hardcode_into_libs
=yes
17928 # No shared lib support for Linux oldld, aout, or coff.
17929 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17933 # This must be Linux ELF.
17934 linux
* | k
*bsd
*-gnu)
17938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939 soname_spec
='${libname}${release}${shared_ext}$major'
17940 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17941 shlibpath_var
=LD_LIBRARY_PATH
17942 shlibpath_overrides_runpath
=no
17943 # This implies no fast_install, which is unacceptable.
17944 # Some rework will be needed to allow for fast_install
17945 # before this can be enabled.
17946 hardcode_into_libs
=yes
17948 # Append ld.so.conf contents to the search path
17949 if test -f /etc
/ld.so.conf
; then
17950 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' ' '`
17951 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17954 # We used to test for /lib/ld.so.1 and disable shared libraries on
17955 # powerpc, because MkLinux only supported shared libraries with the
17956 # GNU dynamic linker. Since this was broken with cross compilers,
17957 # most powerpc-linux boxes support dynamic linking these days and
17958 # people can always --disable-shared, the test was removed, and we
17959 # assume the GNU/Linux dynamic linker is in use.
17960 dynamic_linker
='GNU/Linux ld.so'
17967 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17969 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17970 dynamic_linker
='NetBSD (a.out) ld.so'
17972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17973 soname_spec
='${libname}${release}${shared_ext}$major'
17974 dynamic_linker
='NetBSD ld.elf_so'
17976 shlibpath_var
=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath
=yes
17978 hardcode_into_libs
=yes
17983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984 shlibpath_var
=LD_LIBRARY_PATH
17985 shlibpath_overrides_runpath
=yes
17992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993 soname_spec
='${libname}${release}${shared_ext}$major'
17994 shlibpath_var
=LD_LIBRARY_PATH
17995 shlibpath_overrides_runpath
=yes
18000 sys_lib_dlsearch_path_spec
="/usr/lib"
18002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18004 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18005 *) need_version
=no
;;
18007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18008 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18009 shlibpath_var
=LD_LIBRARY_PATH
18010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18012 openbsd2.
[89] | openbsd2.
[89].
*)
18013 shlibpath_overrides_runpath
=no
18016 shlibpath_overrides_runpath
=yes
18020 shlibpath_overrides_runpath
=yes
18025 libname_spec
='$name'
18028 library_names_spec
='$libname${shared_ext} $libname.a'
18029 dynamic_linker
='OS/2 ld.exe'
18030 shlibpath_var
=LIBPATH
18033 osf3
* | osf4
* | osf5
*)
18037 soname_spec
='${libname}${release}${shared_ext}$major'
18038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039 shlibpath_var
=LD_LIBRARY_PATH
18040 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18041 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 soname_spec
='${libname}${release}${shared_ext}$major'
18054 shlibpath_var
=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath
=yes
18056 hardcode_into_libs
=yes
18057 # ldd complains unless libraries are executable
18058 postinstall_cmds
='chmod +x $lib'
18063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18064 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18065 shlibpath_var
=LD_LIBRARY_PATH
18066 shlibpath_overrides_runpath
=yes
18067 if test "$with_gnu_ld" = yes; then
18075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076 soname_spec
='${libname}${release}${shared_ext}$major'
18077 shlibpath_var
=LD_LIBRARY_PATH
18078 case $host_vendor in
18080 shlibpath_overrides_runpath
=no
18082 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18083 runpath_var
=LD_RUN_PATH
18091 shlibpath_overrides_runpath
=no
18092 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18098 if test -d /usr
/nec
;then
18100 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18101 soname_spec
='$libname${shared_ext}.$major'
18102 shlibpath_var
=LD_LIBRARY_PATH
18106 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18107 version_type
=freebsd-elf
18110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18111 soname_spec
='${libname}${release}${shared_ext}$major'
18112 shlibpath_var
=LD_LIBRARY_PATH
18113 hardcode_into_libs
=yes
18114 if test "$with_gnu_ld" = yes; then
18115 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18116 shlibpath_overrides_runpath
=no
18118 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18119 shlibpath_overrides_runpath
=yes
18122 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18126 sys_lib_dlsearch_path_spec
='/usr/lib'
18131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18132 soname_spec
='${libname}${release}${shared_ext}$major'
18133 shlibpath_var
=LD_LIBRARY_PATH
18140 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18141 echo "${ECHO_T}$dynamic_linker" >&6; }
18142 test "$dynamic_linker" = no
&& can_build_shared
=no
18144 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
18150 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18151 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
18157 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18159 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18160 if test "$GCC" = yes; then
18161 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18164 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18165 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18166 hardcode_action_GCJ
=
18167 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18168 test -n "$runpath_var_GCJ" || \
18169 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18171 # We can hardcode non-existant directories.
18172 if test "$hardcode_direct_GCJ" != no
&&
18173 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18174 # have to relink, otherwise we might link with an installed library
18175 # when we should be linking with a yet-to-be-installed one
18176 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18177 test "$hardcode_minus_L_GCJ" != no
; then
18178 # Linking always hardcodes the temporary library directory.
18179 hardcode_action_GCJ
=relink
18181 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18182 hardcode_action_GCJ
=immediate
18185 # We cannot hardcode anything, or else we can only hardcode existing
18187 hardcode_action_GCJ
=unsupported
18189 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18190 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18192 if test "$hardcode_action_GCJ" = relink
; then
18193 # Fast installation is not supported
18194 enable_fast_install
=no
18195 elif test "$shlibpath_overrides_runpath" = yes ||
18196 test "$enable_shared" = no
; then
18197 # Fast installation is not necessary
18198 enable_fast_install
=needless
18202 # The else clause should only fire when bootstrapping the
18203 # libtool distribution, otherwise you forgot to ship ltmain.sh
18204 # with your package, and you will get complaints that there are
18205 # no rules to generate ltmain.sh.
18206 if test -f "$ltmain"; then
18207 # See if we are running on zsh, and set the options which allow our commands through
18208 # without removal of \ escapes.
18209 if test -n "${ZSH_VERSION+set}" ; then
18210 setopt NO_GLOB_SUBST
18212 # Now quote all the things that may contain metacharacters while being
18213 # careful not to overquote the AC_SUBSTed values. We take copies of the
18214 # variables and quote the copies for generation of the libtool script.
18215 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18217 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18218 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18219 deplibs_check_method reload_flag reload_cmds need_locks \
18220 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18221 lt_cv_sys_global_symbol_to_c_name_address \
18222 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18223 old_postinstall_cmds old_postuninstall_cmds \
18227 lt_prog_compiler_wl_GCJ \
18228 lt_prog_compiler_pic_GCJ \
18229 lt_prog_compiler_static_GCJ \
18230 lt_prog_compiler_no_builtin_flag_GCJ \
18231 export_dynamic_flag_spec_GCJ \
18232 thread_safe_flag_spec_GCJ \
18233 whole_archive_flag_spec_GCJ \
18234 enable_shared_with_static_runtimes_GCJ \
18235 old_archive_cmds_GCJ \
18236 old_archive_from_new_cmds_GCJ \
18237 predep_objects_GCJ \
18238 postdep_objects_GCJ \
18241 compiler_lib_search_path_GCJ \
18242 compiler_lib_search_dirs_GCJ \
18244 archive_expsym_cmds_GCJ \
18245 postinstall_cmds_GCJ \
18246 postuninstall_cmds_GCJ \
18247 old_archive_from_expsyms_cmds_GCJ \
18248 allow_undefined_flag_GCJ \
18249 no_undefined_flag_GCJ \
18250 export_symbols_cmds_GCJ \
18251 hardcode_libdir_flag_spec_GCJ \
18252 hardcode_libdir_flag_spec_ld_GCJ \
18253 hardcode_libdir_separator_GCJ \
18254 hardcode_automatic_GCJ \
18256 module_expsym_cmds_GCJ \
18257 lt_cv_prog_compiler_c_o_GCJ \
18258 fix_srcfile_path_GCJ \
18259 exclude_expsyms_GCJ \
18260 include_expsyms_GCJ
; do
18263 old_archive_cmds_GCJ | \
18264 old_archive_from_new_cmds_GCJ | \
18265 archive_cmds_GCJ | \
18266 archive_expsym_cmds_GCJ | \
18267 module_cmds_GCJ | \
18268 module_expsym_cmds_GCJ | \
18269 old_archive_from_expsyms_cmds_GCJ | \
18270 export_symbols_cmds_GCJ | \
18271 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18272 postinstall_cmds | postuninstall_cmds | \
18273 old_postinstall_cmds | old_postuninstall_cmds | \
18274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18275 # Double-quote double-evaled strings.
18276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18285 *'\$0 --fallback-echo"')
18286 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18292 cat <<__EOF__ >> "$cfgfile"
18293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18297 # Shell to use when invoking shell scripts.
18300 # Whether or not to build shared libraries.
18301 build_libtool_libs=$enable_shared
18303 # Whether or not to build static libraries.
18304 build_old_libs=$enable_static
18306 # Whether or not to add -lc for building shared libraries.
18307 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18309 # Whether or not to disallow shared libs when runtime libs are static
18310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18312 # Whether or not to optimize for fast installation.
18313 fast_install=$enable_fast_install
18316 host_alias=$host_alias
18320 # The build system.
18321 build_alias=$build_alias
18325 # An echo program that does not interpret backslashes.
18330 AR_FLAGS=$lt_AR_FLAGS
18335 # LTCC compiler flags.
18336 LTCFLAGS=$lt_LTCFLAGS
18338 # A language-specific compiler.
18339 CC=$lt_compiler_GCJ
18341 # Is the compiler the GNU C compiler?
18347 # The linker used to build libraries.
18350 # Whether we need hard or soft links.
18353 # A BSD-compatible nm program.
18356 # A symbol stripping program
18359 # Used to examine libraries when file_magic_cmd begins "file"
18360 MAGIC_CMD=$MAGIC_CMD
18362 # Used on cygwin: DLL creation program.
18365 # Used on cygwin: object dumper.
18368 # Used on cygwin: assembler.
18371 # The name of the directory that contains temporary libtool files.
18374 # How to create reloadable object files.
18375 reload_flag=$lt_reload_flag
18376 reload_cmds=$lt_reload_cmds
18378 # How to pass a linker flag through the compiler.
18379 wl=$lt_lt_prog_compiler_wl_GCJ
18381 # Object file suffix (normally "o").
18382 objext="$ac_objext"
18384 # Old archive suffix (normally "a").
18387 # Shared library suffix (normally ".so").
18388 shrext_cmds='$shrext_cmds'
18390 # Executable file suffix (normally "").
18393 # Additional compiler flags for building library objects.
18394 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18397 # What is the maximum length of a command?
18398 max_cmd_len=$lt_cv_sys_max_cmd_len
18400 # Does compiler simultaneously support -c and -o options?
18401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18403 # Must we lock files when doing compilation?
18404 need_locks=$lt_need_locks
18406 # Do we need the lib prefix for modules?
18407 need_lib_prefix=$need_lib_prefix
18409 # Do we need a version for libraries?
18410 need_version=$need_version
18412 # Whether dlopen is supported.
18413 dlopen_support=$enable_dlopen
18415 # Whether dlopen of programs is supported.
18416 dlopen_self=$enable_dlopen_self
18418 # Whether dlopen of statically linked programs is supported.
18419 dlopen_self_static=$enable_dlopen_self_static
18421 # Compiler flag to prevent dynamic linking.
18422 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18424 # Compiler flag to turn off builtin functions.
18425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18427 # Compiler flag to allow reflexive dlopens.
18428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18430 # Compiler flag to generate shared objects directly from archives.
18431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18433 # Compiler flag to generate thread-safe objects.
18434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18436 # Library versioning type.
18437 version_type=$version_type
18439 # Format of library name prefix.
18440 libname_spec=$lt_libname_spec
18442 # List of archive names. First name is the real one, the rest are links.
18443 # The last name is the one that the linker finds with -lNAME.
18444 library_names_spec=$lt_library_names_spec
18446 # The coded name of the library, if different from the real name.
18447 soname_spec=$lt_soname_spec
18449 # Commands used to build and install an old-style archive.
18451 old_archive_cmds=$lt_old_archive_cmds_GCJ
18452 old_postinstall_cmds=$lt_old_postinstall_cmds
18453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18455 # Create an old-style archive from a shared archive.
18456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18458 # Create a temporary old-style archive to link instead of a shared archive.
18459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18461 # Commands used to build and install a shared archive.
18462 archive_cmds=$lt_archive_cmds_GCJ
18463 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18464 postinstall_cmds=$lt_postinstall_cmds
18465 postuninstall_cmds=$lt_postuninstall_cmds
18467 # Commands used to build a loadable module (assumed same as above if empty)
18468 module_cmds=$lt_module_cmds_GCJ
18469 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18471 # Commands to strip libraries.
18472 old_striplib=$lt_old_striplib
18473 striplib=$lt_striplib
18475 # Dependencies to place before the objects being linked to create a
18477 predep_objects=$lt_predep_objects_GCJ
18479 # Dependencies to place after the objects being linked to create a
18481 postdep_objects=$lt_postdep_objects_GCJ
18483 # Dependencies to place before the objects being linked to create a
18485 predeps=$lt_predeps_GCJ
18487 # Dependencies to place after the objects being linked to create a
18489 postdeps=$lt_postdeps_GCJ
18491 # The directories searched by this compiler when creating a shared
18493 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18495 # The library search path used internally by the compiler when linking
18496 # a shared library.
18497 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18499 # Method to check whether dependent libraries are shared objects.
18500 deplibs_check_method=$lt_deplibs_check_method
18502 # Command to use when deplibs_check_method == file_magic.
18503 file_magic_cmd=$lt_file_magic_cmd
18505 # Flag that allows shared libraries with undefined symbols to be built.
18506 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18508 # Flag that forces no undefined symbols.
18509 no_undefined_flag=$lt_no_undefined_flag_GCJ
18511 # Commands used to finish a libtool library installation in a directory.
18512 finish_cmds=$lt_finish_cmds
18514 # Same as above, but a single script fragment to be evaled but not shown.
18515 finish_eval=$lt_finish_eval
18517 # Take the output of nm and produce a listing of raw symbols and C names.
18518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18520 # Transform the output of nm in a proper C declaration
18521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18523 # Transform the output of nm in a C name address pair
18524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18526 # This is the shared library runtime path variable.
18527 runpath_var=$runpath_var
18529 # This is the shared library path variable.
18530 shlibpath_var=$shlibpath_var
18532 # Is shlibpath searched before the hard-coded library search path?
18533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18535 # How to hardcode a shared library path into an executable.
18536 hardcode_action=$hardcode_action_GCJ
18538 # Whether we should hardcode library paths into libraries.
18539 hardcode_into_libs=$hardcode_into_libs
18541 # Flag to hardcode \$libdir into a binary during linking.
18542 # This must work even if \$libdir does not exist.
18543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18545 # If ld is used when linking, flag to hardcode \$libdir into
18546 # a binary during linking. This must work even if \$libdir does
18548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18550 # Whether we need a single -rpath flag with a separated argument.
18551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18554 # resulting binary.
18555 hardcode_direct=$hardcode_direct_GCJ
18557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18558 # resulting binary.
18559 hardcode_minus_L=$hardcode_minus_L_GCJ
18561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18562 # the resulting binary.
18563 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18565 # Set to yes if building a shared library automatically hardcodes DIR into the library
18566 # and all subsequent libraries and executables linked against it.
18567 hardcode_automatic=$hardcode_automatic_GCJ
18569 # Variables whose values should be saved in libtool wrapper scripts and
18570 # restored at relink time.
18571 variables_saved_for_relink="$variables_saved_for_relink"
18573 # Whether libtool must link a program against all its dependency libraries.
18574 link_all_deplibs=$link_all_deplibs_GCJ
18576 # Compile-time system search path for libraries
18577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18579 # Run-time system search path for libraries
18580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18582 # Fix the shell variable \$srcfile for the compiler.
18583 fix_srcfile_path=$lt_fix_srcfile_path
18585 # Set to yes if exported symbols are required.
18586 always_export_symbols=$always_export_symbols_GCJ
18588 # The commands to list exported symbols.
18589 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18591 # The commands to extract the exported symbol list from a shared archive.
18592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18594 # Symbols that should not be listed in the preloaded symbols.
18595 exclude_expsyms=$lt_exclude_expsyms_GCJ
18597 # Symbols that must always be exported.
18598 include_expsyms=$lt_include_expsyms_GCJ
18600 # ### END LIBTOOL TAG CONFIG: $tagname
18606 # If there is no Makefile yet, we rely on a make rule to execute
18607 # `config.status --recheck' to rerun these tests and create the
18608 # libtool script then.
18609 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18610 if test -f "$ltmain_in"; then
18611 test -f Makefile
&& make "$ltmain"
18617 ac_cpp
='$CPP $CPPFLAGS'
18618 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18619 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18620 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18632 # Source file extension for RC test sources.
18635 # Object file extension for compiled RC test sources.
18639 # Code to be used in simple compile tests
18640 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18642 # Code to be used in simple link tests
18643 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18647 # If no C compiler was specified, use CC.
18650 # If no C compiler flags were specified, use CFLAGS.
18651 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18653 # Allow CC to be a program name with arguments.
18657 # save warnings/boilerplate of simple test code
18658 ac_outfile
=conftest.
$ac_objext
18659 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18660 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18661 _lt_compiler_boilerplate
=`cat conftest.err`
18664 ac_outfile
=conftest.
$ac_objext
18665 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18666 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18667 _lt_linker_boilerplate
=`cat conftest.err`
18671 # Allow CC to be a program name with arguments.
18676 for cc_temp
in $compiler""; do
18678 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18679 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18684 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18686 lt_cv_prog_compiler_c_o_RC
=yes
18688 # The else clause should only fire when bootstrapping the
18689 # libtool distribution, otherwise you forgot to ship ltmain.sh
18690 # with your package, and you will get complaints that there are
18691 # no rules to generate ltmain.sh.
18692 if test -f "$ltmain"; then
18693 # See if we are running on zsh, and set the options which allow our commands through
18694 # without removal of \ escapes.
18695 if test -n "${ZSH_VERSION+set}" ; then
18696 setopt NO_GLOB_SUBST
18698 # Now quote all the things that may contain metacharacters while being
18699 # careful not to overquote the AC_SUBSTed values. We take copies of the
18700 # variables and quote the copies for generation of the libtool script.
18701 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18703 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18704 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18705 deplibs_check_method reload_flag reload_cmds need_locks \
18706 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18707 lt_cv_sys_global_symbol_to_c_name_address \
18708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18709 old_postinstall_cmds old_postuninstall_cmds \
18713 lt_prog_compiler_wl_RC \
18714 lt_prog_compiler_pic_RC \
18715 lt_prog_compiler_static_RC \
18716 lt_prog_compiler_no_builtin_flag_RC \
18717 export_dynamic_flag_spec_RC \
18718 thread_safe_flag_spec_RC \
18719 whole_archive_flag_spec_RC \
18720 enable_shared_with_static_runtimes_RC \
18721 old_archive_cmds_RC \
18722 old_archive_from_new_cmds_RC \
18723 predep_objects_RC \
18724 postdep_objects_RC \
18727 compiler_lib_search_path_RC \
18728 compiler_lib_search_dirs_RC \
18730 archive_expsym_cmds_RC \
18731 postinstall_cmds_RC \
18732 postuninstall_cmds_RC \
18733 old_archive_from_expsyms_cmds_RC \
18734 allow_undefined_flag_RC \
18735 no_undefined_flag_RC \
18736 export_symbols_cmds_RC \
18737 hardcode_libdir_flag_spec_RC \
18738 hardcode_libdir_flag_spec_ld_RC \
18739 hardcode_libdir_separator_RC \
18740 hardcode_automatic_RC \
18742 module_expsym_cmds_RC \
18743 lt_cv_prog_compiler_c_o_RC \
18744 fix_srcfile_path_RC \
18745 exclude_expsyms_RC \
18746 include_expsyms_RC
; do
18749 old_archive_cmds_RC | \
18750 old_archive_from_new_cmds_RC | \
18751 archive_cmds_RC | \
18752 archive_expsym_cmds_RC | \
18754 module_expsym_cmds_RC | \
18755 old_archive_from_expsyms_cmds_RC | \
18756 export_symbols_cmds_RC | \
18757 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18758 postinstall_cmds | postuninstall_cmds | \
18759 old_postinstall_cmds | old_postuninstall_cmds | \
18760 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18761 # Double-quote double-evaled strings.
18762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18771 *'\$0 --fallback-echo"')
18772 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18778 cat <<__EOF__ >> "$cfgfile"
18779 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18781 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18783 # Shell to use when invoking shell scripts.
18786 # Whether or not to build shared libraries.
18787 build_libtool_libs=$enable_shared
18789 # Whether or not to build static libraries.
18790 build_old_libs=$enable_static
18792 # Whether or not to add -lc for building shared libraries.
18793 build_libtool_need_lc=$archive_cmds_need_lc_RC
18795 # Whether or not to disallow shared libs when runtime libs are static
18796 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18798 # Whether or not to optimize for fast installation.
18799 fast_install=$enable_fast_install
18802 host_alias=$host_alias
18806 # The build system.
18807 build_alias=$build_alias
18811 # An echo program that does not interpret backslashes.
18816 AR_FLAGS=$lt_AR_FLAGS
18821 # LTCC compiler flags.
18822 LTCFLAGS=$lt_LTCFLAGS
18824 # A language-specific compiler.
18827 # Is the compiler the GNU C compiler?
18833 # The linker used to build libraries.
18836 # Whether we need hard or soft links.
18839 # A BSD-compatible nm program.
18842 # A symbol stripping program
18845 # Used to examine libraries when file_magic_cmd begins "file"
18846 MAGIC_CMD=$MAGIC_CMD
18848 # Used on cygwin: DLL creation program.
18851 # Used on cygwin: object dumper.
18854 # Used on cygwin: assembler.
18857 # The name of the directory that contains temporary libtool files.
18860 # How to create reloadable object files.
18861 reload_flag=$lt_reload_flag
18862 reload_cmds=$lt_reload_cmds
18864 # How to pass a linker flag through the compiler.
18865 wl=$lt_lt_prog_compiler_wl_RC
18867 # Object file suffix (normally "o").
18868 objext="$ac_objext"
18870 # Old archive suffix (normally "a").
18873 # Shared library suffix (normally ".so").
18874 shrext_cmds='$shrext_cmds'
18876 # Executable file suffix (normally "").
18879 # Additional compiler flags for building library objects.
18880 pic_flag=$lt_lt_prog_compiler_pic_RC
18883 # What is the maximum length of a command?
18884 max_cmd_len=$lt_cv_sys_max_cmd_len
18886 # Does compiler simultaneously support -c and -o options?
18887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18889 # Must we lock files when doing compilation?
18890 need_locks=$lt_need_locks
18892 # Do we need the lib prefix for modules?
18893 need_lib_prefix=$need_lib_prefix
18895 # Do we need a version for libraries?
18896 need_version=$need_version
18898 # Whether dlopen is supported.
18899 dlopen_support=$enable_dlopen
18901 # Whether dlopen of programs is supported.
18902 dlopen_self=$enable_dlopen_self
18904 # Whether dlopen of statically linked programs is supported.
18905 dlopen_self_static=$enable_dlopen_self_static
18907 # Compiler flag to prevent dynamic linking.
18908 link_static_flag=$lt_lt_prog_compiler_static_RC
18910 # Compiler flag to turn off builtin functions.
18911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18913 # Compiler flag to allow reflexive dlopens.
18914 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18916 # Compiler flag to generate shared objects directly from archives.
18917 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18919 # Compiler flag to generate thread-safe objects.
18920 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18922 # Library versioning type.
18923 version_type=$version_type
18925 # Format of library name prefix.
18926 libname_spec=$lt_libname_spec
18928 # List of archive names. First name is the real one, the rest are links.
18929 # The last name is the one that the linker finds with -lNAME.
18930 library_names_spec=$lt_library_names_spec
18932 # The coded name of the library, if different from the real name.
18933 soname_spec=$lt_soname_spec
18935 # Commands used to build and install an old-style archive.
18937 old_archive_cmds=$lt_old_archive_cmds_RC
18938 old_postinstall_cmds=$lt_old_postinstall_cmds
18939 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18941 # Create an old-style archive from a shared archive.
18942 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18944 # Create a temporary old-style archive to link instead of a shared archive.
18945 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18947 # Commands used to build and install a shared archive.
18948 archive_cmds=$lt_archive_cmds_RC
18949 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18950 postinstall_cmds=$lt_postinstall_cmds
18951 postuninstall_cmds=$lt_postuninstall_cmds
18953 # Commands used to build a loadable module (assumed same as above if empty)
18954 module_cmds=$lt_module_cmds_RC
18955 module_expsym_cmds=$lt_module_expsym_cmds_RC
18957 # Commands to strip libraries.
18958 old_striplib=$lt_old_striplib
18959 striplib=$lt_striplib
18961 # Dependencies to place before the objects being linked to create a
18963 predep_objects=$lt_predep_objects_RC
18965 # Dependencies to place after the objects being linked to create a
18967 postdep_objects=$lt_postdep_objects_RC
18969 # Dependencies to place before the objects being linked to create a
18971 predeps=$lt_predeps_RC
18973 # Dependencies to place after the objects being linked to create a
18975 postdeps=$lt_postdeps_RC
18977 # The directories searched by this compiler when creating a shared
18979 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18981 # The library search path used internally by the compiler when linking
18982 # a shared library.
18983 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18985 # Method to check whether dependent libraries are shared objects.
18986 deplibs_check_method=$lt_deplibs_check_method
18988 # Command to use when deplibs_check_method == file_magic.
18989 file_magic_cmd=$lt_file_magic_cmd
18991 # Flag that allows shared libraries with undefined symbols to be built.
18992 allow_undefined_flag=$lt_allow_undefined_flag_RC
18994 # Flag that forces no undefined symbols.
18995 no_undefined_flag=$lt_no_undefined_flag_RC
18997 # Commands used to finish a libtool library installation in a directory.
18998 finish_cmds=$lt_finish_cmds
19000 # Same as above, but a single script fragment to be evaled but not shown.
19001 finish_eval=$lt_finish_eval
19003 # Take the output of nm and produce a listing of raw symbols and C names.
19004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19006 # Transform the output of nm in a proper C declaration
19007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19009 # Transform the output of nm in a C name address pair
19010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19012 # This is the shared library runtime path variable.
19013 runpath_var=$runpath_var
19015 # This is the shared library path variable.
19016 shlibpath_var=$shlibpath_var
19018 # Is shlibpath searched before the hard-coded library search path?
19019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19021 # How to hardcode a shared library path into an executable.
19022 hardcode_action=$hardcode_action_RC
19024 # Whether we should hardcode library paths into libraries.
19025 hardcode_into_libs=$hardcode_into_libs
19027 # Flag to hardcode \$libdir into a binary during linking.
19028 # This must work even if \$libdir does not exist.
19029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19031 # If ld is used when linking, flag to hardcode \$libdir into
19032 # a binary during linking. This must work even if \$libdir does
19034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19036 # Whether we need a single -rpath flag with a separated argument.
19037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19040 # resulting binary.
19041 hardcode_direct=$hardcode_direct_RC
19043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19044 # resulting binary.
19045 hardcode_minus_L=$hardcode_minus_L_RC
19047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19048 # the resulting binary.
19049 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19051 # Set to yes if building a shared library automatically hardcodes DIR into the library
19052 # and all subsequent libraries and executables linked against it.
19053 hardcode_automatic=$hardcode_automatic_RC
19055 # Variables whose values should be saved in libtool wrapper scripts and
19056 # restored at relink time.
19057 variables_saved_for_relink="$variables_saved_for_relink"
19059 # Whether libtool must link a program against all its dependency libraries.
19060 link_all_deplibs=$link_all_deplibs_RC
19062 # Compile-time system search path for libraries
19063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19065 # Run-time system search path for libraries
19066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19068 # Fix the shell variable \$srcfile for the compiler.
19069 fix_srcfile_path=$lt_fix_srcfile_path
19071 # Set to yes if exported symbols are required.
19072 always_export_symbols=$always_export_symbols_RC
19074 # The commands to list exported symbols.
19075 export_symbols_cmds=$lt_export_symbols_cmds_RC
19077 # The commands to extract the exported symbol list from a shared archive.
19078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19080 # Symbols that should not be listed in the preloaded symbols.
19081 exclude_expsyms=$lt_exclude_expsyms_RC
19083 # Symbols that must always be exported.
19084 include_expsyms=$lt_include_expsyms_RC
19086 # ### END LIBTOOL TAG CONFIG: $tagname
19092 # If there is no Makefile yet, we rely on a make rule to execute
19093 # `config.status --recheck' to rerun these tests and create the
19094 # libtool script then.
19095 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19096 if test -f "$ltmain_in"; then
19097 test -f Makefile
&& make "$ltmain"
19103 ac_cpp
='$CPP $CPPFLAGS'
19104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19113 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19114 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19115 { (exit 1); exit 1; }; }
19119 # Append the new tag name to the list of available tags.
19120 if test -n "$tagname" ; then
19121 available_tags
="$available_tags $tagname"
19127 # Now substitute the updated list of available tags.
19128 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19129 mv "${ofile}T" "$ofile"
19133 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19134 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19135 { (exit 1); exit 1; }; }
19141 # This can be used to rebuild libtool when needed
19142 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19144 # Always use our own libtool.
19145 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19147 # Prevent multiple expansion
19168 # Find a good install program. We prefer a C program (faster),
19169 # so one script is as good as another. But avoid the broken or
19170 # incompatible versions:
19171 # SysV /etc/install, /usr/sbin/install
19172 # SunOS /usr/etc/install
19173 # IRIX /sbin/install
19175 # AmigaOS /C/install, which installs bootblocks on floppy discs
19176 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19177 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19178 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19179 # OS/2's system install, which has a completely different semantic
19180 # ./install, which can be erroneously created by make from ./install.sh.
19181 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19182 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19183 if test -z "$INSTALL"; then
19184 if test "${ac_cv_path_install+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19188 for as_dir
in $PATH
19191 test -z "$as_dir" && as_dir
=.
19192 # Account for people who put trailing slashes in PATH elements.
19194 .
/ | .
// |
/cC
/* | \
19195 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
19196 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
19199 # OSF1 and SCO ODT 3.0 have their own names for install.
19200 # Don't use installbsd from OSF since it installs stuff as root
19202 for ac_prog
in ginstall scoinst
install; do
19203 for ac_exec_ext
in '' $ac_executable_extensions; do
19204 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19205 if test $ac_prog = install &&
19206 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19207 # AIX install. It has an incompatible calling convention.
19209 elif test $ac_prog = install &&
19210 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19211 # program-specific install script used by HP pwplus--don't use.
19214 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
19227 if test "${ac_cv_path_install+set}" = set; then
19228 INSTALL
=$ac_cv_path_install
19230 # As a last resort, use the slow shell script. Don't cache a
19231 # value for INSTALL within a source directory, because that will
19232 # break other packages using the cache if that directory is
19233 # removed, or if the value is a relative name.
19234 INSTALL
=$ac_install_sh
19237 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19238 echo "${ECHO_T}$INSTALL" >&6; }
19240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19241 # It thinks the first close brace ends the variable substitution.
19242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
19244 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
19246 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
19254 # Extract the first word of "ar", so it can be a program name with args.
19255 set dummy
ar; ac_word
=$2
19256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19258 if test "${ac_cv_path_AR+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
19266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19267 for as_dir
in $PATH
19270 test -z "$as_dir" && as_dir
=.
19271 for ac_exec_ext
in '' $ac_executable_extensions; do
19272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19273 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
19274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19285 if test -n "$AR"; then
19286 { echo "$as_me:$LINENO: result: $AR" >&5
19287 echo "${ECHO_T}$AR" >&6; }
19289 { echo "$as_me:$LINENO: result: no" >&5
19290 echo "${ECHO_T}no" >&6; }
19298 # Extract the first word of "tbl", so it can be a program name with args.
19299 set dummy tbl
; ac_word
=$2
19300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19302 if test "${ac_cv_path_TBL+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 ac_cv_path_TBL
="$TBL" # Let the user override the test with a path.
19310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19311 for as_dir
in $PATH
19314 test -z "$as_dir" && as_dir
=.
19315 for ac_exec_ext
in '' $ac_executable_extensions; do
19316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19317 ac_cv_path_TBL
="$as_dir/$ac_word$ac_exec_ext"
19318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19328 TBL
=$ac_cv_path_TBL
19329 if test -n "$TBL"; then
19330 { echo "$as_me:$LINENO: result: $TBL" >&5
19331 echo "${ECHO_T}$TBL" >&6; }
19333 { echo "$as_me:$LINENO: result: no" >&5
19334 echo "${ECHO_T}no" >&6; }
19340 # Extract the first word of "nroff", so it can be a program name with args.
19341 set dummy nroff
; ac_word
=$2
19342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19344 if test "${ac_cv_path_NROFF+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 ac_cv_path_NROFF
="$NROFF" # Let the user override the test with a path.
19352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19353 for as_dir
in $PATH
19356 test -z "$as_dir" && as_dir
=.
19357 for ac_exec_ext
in '' $ac_executable_extensions; do
19358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19359 ac_cv_path_NROFF
="$as_dir/$ac_word$ac_exec_ext"
19360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19370 NROFF
=$ac_cv_path_NROFF
19371 if test -n "$NROFF"; then
19372 { echo "$as_me:$LINENO: result: $NROFF" >&5
19373 echo "${ECHO_T}$NROFF" >&6; }
19375 { echo "$as_me:$LINENO: result: no" >&5
19376 echo "${ECHO_T}no" >&6; }
19382 # Extract the first word of "sed", so it can be a program name with args.
19383 set dummy
sed; ac_word
=$2
19384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19386 if test "${ac_cv_path_SED+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
19394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19395 for as_dir
in $PATH
19398 test -z "$as_dir" && as_dir
=.
19399 for ac_exec_ext
in '' $ac_executable_extensions; do
19400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19401 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
19402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19412 SED
=$ac_cv_path_SED
19413 if test -n "$SED"; then
19414 { echo "$as_me:$LINENO: result: $SED" >&5
19415 echo "${ECHO_T}$SED" >&6; }
19417 { echo "$as_me:$LINENO: result: no" >&5
19418 echo "${ECHO_T}no" >&6; }
19424 # Extract the first word of "tr", so it can be a program name with args.
19425 set dummy
tr; ac_word
=$2
19426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19428 if test "${ac_cv_path_TR+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19433 ac_cv_path_TR
="$TR" # Let the user override the test with a path.
19436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19437 for as_dir
in $PATH
19440 test -z "$as_dir" && as_dir
=.
19441 for ac_exec_ext
in '' $ac_executable_extensions; do
19442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19443 ac_cv_path_TR
="$as_dir/$ac_word$ac_exec_ext"
19444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19455 if test -n "$TR"; then
19456 { echo "$as_me:$LINENO: result: $TR" >&5
19457 echo "${ECHO_T}$TR" >&6; }
19459 { echo "$as_me:$LINENO: result: no" >&5
19460 echo "${ECHO_T}no" >&6; }
19466 # The POSIX ln(1) program. Non-POSIX systems may substitute
19467 # "copy" or something.
19473 { { echo "$as_me:$LINENO: error:
19474 ar program not found. Please fix your PATH to include the directory in
19475 which ar resides, or set AR in the environment with the full path to ar.
19477 echo "$as_me: error:
19478 ar program not found. Please fix your PATH to include the directory in
19479 which ar resides, or set AR in the environment with the full path to ar.
19481 { (exit 1); exit 1; }; }
19489 for ac_prog
in etags emacs-etags
19491 # Extract the first word of "$ac_prog", so it can be a program name with args.
19492 set dummy
$ac_prog; ac_word
=$2
19493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19495 if test "${ac_cv_path_ETAGS+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 ac_cv_path_ETAGS
="$ETAGS" # Let the user override the test with a path.
19503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19504 for as_dir
in $PATH
19507 test -z "$as_dir" && as_dir
=.
19508 for ac_exec_ext
in '' $ac_executable_extensions; do
19509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19510 ac_cv_path_ETAGS
="$as_dir/$ac_word$ac_exec_ext"
19511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19521 ETAGS
=$ac_cv_path_ETAGS
19522 if test -n "$ETAGS"; then
19523 { echo "$as_me:$LINENO: result: $ETAGS" >&5
19524 echo "${ECHO_T}$ETAGS" >&6; }
19526 { echo "$as_me:$LINENO: result: no" >&5
19527 echo "${ECHO_T}no" >&6; }
19531 test -n "$ETAGS" && break
19536 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
19537 # GNU emacs etags, and it requires the -L flag.
19539 if test "X$ETAGS" != "X"; then
19540 { echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5
19541 echo $ECHO_N "checking for Exuberant Ctags etags... $ECHO_C" >&6; }
19542 if $ETAGS --version 2>&1 |
grep 'Exuberant Ctags' >/dev
/null
2>&1; then
19543 { echo "$as_me:$LINENO: result: yes" >&5
19544 echo "${ECHO_T}yes" >&6; }
19547 { echo "$as_me:$LINENO: result: no" >&5
19548 echo "${ECHO_T}no" >&6; }
19554 # Perl is optional; it is used only by some of the system test scripts.
19556 for ac_prog
in perl5 perl
19558 # Extract the first word of "$ac_prog", so it can be a program name with args.
19559 set dummy
$ac_prog; ac_word
=$2
19560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19562 if test "${ac_cv_path_PERL+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
19570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19571 for as_dir
in $PATH
19574 test -z "$as_dir" && as_dir
=.
19575 for ac_exec_ext
in '' $ac_executable_extensions; do
19576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
19578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19588 PERL
=$ac_cv_path_PERL
19589 if test -n "$PERL"; then
19590 { echo "$as_me:$LINENO: result: $PERL" >&5
19591 echo "${ECHO_T}$PERL" >&6; }
19593 { echo "$as_me:$LINENO: result: no" >&5
19594 echo "${ECHO_T}no" >&6; }
19598 test -n "$PERL" && break
19604 # isc/list.h and others clash with BIND 9 and system header files.
19605 # Install into non-shared directory.
19607 case "$includedir" in
19608 '${prefix}/include')
19609 includedir
='${prefix}/include/bind'
19613 # -lbind can clash with system version. Install into non-shared directory.
19617 libdir
='${prefix}/lib/bind'
19622 # Make sure INSTALL uses an absolute path, else it will be wrong in all
19623 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
19624 # configure based on the location of the file where it is substituted.
19625 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
19626 # subdirectory of install-sh, This relative path will be wrong for all
19627 # directories more than one level down from install-sh.
19634 # Not all systems have dirname.
19637 ac_dir
="`echo $INSTALL | sed 's%/[^/]*$%%'`"
19640 ac_prog
="`echo $INSTALL | sed 's%.*/%%'`"
19641 test "$ac_dir" = "$ac_prog" && ac_dir
=.
19642 test -d "$ac_dir" && ac_dir
="`(cd \"$ac_dir\" && pwd)`"
19643 INSTALL
="$ac_dir/$ac_prog"
19648 # On these hosts, we really want to use cc, not gcc, even if it is
19649 # found. The gcc that these systems have will not correctly handle
19652 # However, if the user sets $CC to be something, let that override
19655 if test "X$CC" = "X" ; then
19661 # Use Sun's cc if it is available, but watch
19662 # out for /usr/ucb/cc; it will never be the right
19665 # If setting CC here fails, the AC_PROG_CC done
19666 # below might still find gcc.
19667 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
19668 for ac_dir
in $PATH; do
19669 test -z "$ac_dir" && ac_dir
=.
19675 if test -f "$ac_dir/cc"; then
19695 ac_cpp
='$CPP $CPPFLAGS'
19696 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19697 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19698 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19699 if test -n "$ac_tool_prefix"; then
19700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19701 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
19702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19704 if test "${ac_cv_prog_CC+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 if test -n "$CC"; then
19708 ac_cv_prog_CC
="$CC" # Let the user override the test.
19710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19711 for as_dir
in $PATH
19714 test -z "$as_dir" && as_dir
=.
19715 for ac_exec_ext
in '' $ac_executable_extensions; do
19716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19717 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
19718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19728 if test -n "$CC"; then
19729 { echo "$as_me:$LINENO: result: $CC" >&5
19730 echo "${ECHO_T}$CC" >&6; }
19732 { echo "$as_me:$LINENO: result: no" >&5
19733 echo "${ECHO_T}no" >&6; }
19738 if test -z "$ac_cv_prog_CC"; then
19740 # Extract the first word of "gcc", so it can be a program name with args.
19741 set dummy gcc
; ac_word
=$2
19742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 if test -n "$ac_ct_CC"; then
19748 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19751 for as_dir
in $PATH
19754 test -z "$as_dir" && as_dir
=.
19755 for ac_exec_ext
in '' $ac_executable_extensions; do
19756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19757 ac_cv_prog_ac_ct_CC
="gcc"
19758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19767 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19768 if test -n "$ac_ct_CC"; then
19769 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19770 echo "${ECHO_T}$ac_ct_CC" >&6; }
19772 { echo "$as_me:$LINENO: result: no" >&5
19773 echo "${ECHO_T}no" >&6; }
19776 if test "x$ac_ct_CC" = x
; then
19779 case $cross_compiling:$ac_tool_warned in
19781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19782 whose name does not start with the host triplet. If you think this
19783 configuration is useful to you, please write to autoconf@gnu.org." >&5
19784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19785 whose name does not start with the host triplet. If you think this
19786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19787 ac_tool_warned
=yes ;;
19792 CC
="$ac_cv_prog_CC"
19795 if test -z "$CC"; then
19796 if test -n "$ac_tool_prefix"; then
19797 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19798 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
19799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19801 if test "${ac_cv_prog_CC+set}" = set; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 if test -n "$CC"; then
19805 ac_cv_prog_CC
="$CC" # Let the user override the test.
19807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19808 for as_dir
in $PATH
19811 test -z "$as_dir" && as_dir
=.
19812 for ac_exec_ext
in '' $ac_executable_extensions; do
19813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19814 ac_cv_prog_CC
="${ac_tool_prefix}cc"
19815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19825 if test -n "$CC"; then
19826 { echo "$as_me:$LINENO: result: $CC" >&5
19827 echo "${ECHO_T}$CC" >&6; }
19829 { echo "$as_me:$LINENO: result: no" >&5
19830 echo "${ECHO_T}no" >&6; }
19836 if test -z "$CC"; then
19837 # Extract the first word of "cc", so it can be a program name with args.
19838 set dummy cc
; ac_word
=$2
19839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19841 if test "${ac_cv_prog_CC+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 if test -n "$CC"; then
19845 ac_cv_prog_CC
="$CC" # Let the user override the test.
19847 ac_prog_rejected
=no
19848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19849 for as_dir
in $PATH
19852 test -z "$as_dir" && as_dir
=.
19853 for ac_exec_ext
in '' $ac_executable_extensions; do
19854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19855 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19856 ac_prog_rejected
=yes
19860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19867 if test $ac_prog_rejected = yes; then
19868 # We found a bogon in the path, so make sure we never use it.
19869 set dummy
$ac_cv_prog_CC
19871 if test $# != 0; then
19872 # We chose a different compiler from the bogus one.
19873 # However, it has the same basename, so the bogon will be chosen
19874 # first if we set CC to just the basename; use the full file name.
19876 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
19882 if test -n "$CC"; then
19883 { echo "$as_me:$LINENO: result: $CC" >&5
19884 echo "${ECHO_T}$CC" >&6; }
19886 { echo "$as_me:$LINENO: result: no" >&5
19887 echo "${ECHO_T}no" >&6; }
19892 if test -z "$CC"; then
19893 if test -n "$ac_tool_prefix"; then
19894 for ac_prog
in cl.exe
19896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19897 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
19898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19900 if test "${ac_cv_prog_CC+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 if test -n "$CC"; then
19904 ac_cv_prog_CC
="$CC" # Let the user override the test.
19906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19907 for as_dir
in $PATH
19910 test -z "$as_dir" && as_dir
=.
19911 for ac_exec_ext
in '' $ac_executable_extensions; do
19912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19913 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
19914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19924 if test -n "$CC"; then
19925 { echo "$as_me:$LINENO: result: $CC" >&5
19926 echo "${ECHO_T}$CC" >&6; }
19928 { echo "$as_me:$LINENO: result: no" >&5
19929 echo "${ECHO_T}no" >&6; }
19933 test -n "$CC" && break
19936 if test -z "$CC"; then
19938 for ac_prog
in cl.exe
19940 # Extract the first word of "$ac_prog", so it can be a program name with args.
19941 set dummy
$ac_prog; ac_word
=$2
19942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 if test -n "$ac_ct_CC"; then
19948 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19951 for as_dir
in $PATH
19954 test -z "$as_dir" && as_dir
=.
19955 for ac_exec_ext
in '' $ac_executable_extensions; do
19956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19957 ac_cv_prog_ac_ct_CC
="$ac_prog"
19958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19967 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19968 if test -n "$ac_ct_CC"; then
19969 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19970 echo "${ECHO_T}$ac_ct_CC" >&6; }
19972 { echo "$as_me:$LINENO: result: no" >&5
19973 echo "${ECHO_T}no" >&6; }
19977 test -n "$ac_ct_CC" && break
19980 if test "x$ac_ct_CC" = x
; then
19983 case $cross_compiling:$ac_tool_warned in
19985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19986 whose name does not start with the host triplet. If you think this
19987 configuration is useful to you, please write to autoconf@gnu.org." >&5
19988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19989 whose name does not start with the host triplet. If you think this
19990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19991 ac_tool_warned
=yes ;;
20000 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20001 See \`config.log' for more details." >&5
20002 echo "$as_me: error: no acceptable C compiler found in \$PATH
20003 See \`config.log' for more details." >&2;}
20004 { (exit 1); exit 1; }; }
20006 # Provide some information about the compiler.
20007 echo "$as_me:$LINENO: checking for C compiler version" >&5
20008 ac_compiler
=`set X $ac_compile; echo $2`
20009 { (ac_try
="$ac_compiler --version >&5"
20010 case "(($ac_try" in
20011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_compiler --version >&5") 2>&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }
20019 { (ac_try="$ac_compiler -v >&5"
20020 case "(($ac_try" in
20021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20022 *) ac_try_echo
=$ac_try;;
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_compiler -v >&5") 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }
20029 { (ac_try
="$ac_compiler -V >&5"
20030 case "(($ac_try" in
20031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_compiler -V >&5") 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }
20040 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20041 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20042 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20063 rm -f conftest.$ac_objext
20064 if { (ac_try="$ac_compile"
20065 case "(($ac_try" in
20066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20067 *) ac_try_echo
=$ac_try;;
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_compile") 2>conftest.er1
20072 grep -v '^ *+' conftest.er1
>conftest.err
20074 cat conftest.err
>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && {
20077 test -z "$ac_c_werror_flag" ||
20078 test ! -s conftest.err
20079 } && test -s conftest.
$ac_objext; then
20080 ac_compiler_gnu
=yes
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.
$ac_ext >&5
20088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20089 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
20092 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20094 GCC
=`test $ac_compiler_gnu = yes && echo yes`
20095 ac_test_CFLAGS
=${CFLAGS+set}
20096 ac_save_CFLAGS
=$CFLAGS
20097 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20099 if test "${ac_cv_prog_cc_g+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 ac_save_c_werror_flag
=$ac_c_werror_flag
20103 ac_c_werror_flag
=yes
20106 cat >conftest.
$ac_ext <<_ACEOF
20109 cat confdefs.h
>>conftest.
$ac_ext
20110 cat >>conftest.
$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20121 rm -f conftest.
$ac_objext
20122 if { (ac_try
="$ac_compile"
20123 case "(($ac_try" in
20124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_compile") 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest.$ac_objext; then
20138 ac_cv_prog_cc_g=yes
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20159 rm -f conftest.$ac_objext
20160 if { (ac_try="$ac_compile"
20161 case "(($ac_try" in
20162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20163 *) ac_try_echo
=$ac_try;;
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_compile") 2>conftest.er1
20168 grep -v '^ *+' conftest.er1
>conftest.err
20170 cat conftest.err
>&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest.
$ac_objext; then
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.
$ac_ext >&5
20181 ac_c_werror_flag
=$ac_save_c_werror_flag
20183 cat >conftest.
$ac_ext <<_ACEOF
20186 cat confdefs.h
>>conftest.
$ac_ext
20187 cat >>conftest.
$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20198 rm -f conftest.
$ac_objext
20199 if { (ac_try
="$ac_compile"
20200 case "(($ac_try" in
20201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_compile") 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && {
20212 test -z "$ac_c_werror_flag" ||
20213 test ! -s conftest.err
20214 } && test -s conftest.$ac_objext; then
20215 ac_cv_prog_cc_g=yes
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20230 ac_c_werror_flag=$ac_save_c_werror_flag
20232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20234 if test "$ac_test_CFLAGS" = set; then
20235 CFLAGS=$ac_save_CFLAGS
20236 elif test $ac_cv_prog_cc_g = yes; then
20237 if test "$GCC" = yes; then
20243 if test "$GCC" = yes; then
20249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20251 if test "${ac_cv_prog_cc_c89+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 ac_cv_prog_cc_c89=no
20256 cat >conftest.$ac_ext <<_ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20262 #include <stdarg.h>
20264 #include <sys/types.h>
20265 #include <sys/stat.h>
20266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20267 struct buf { int x; };
20268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20269 static char *e (p, i)
20275 static char *f (char * (*g) (char **, int), char **p, ...)
20280 s = g (p, va_arg (v,int));
20285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20286 function prototypes and stuff, but not '\xHH' hex character constants.
20287 These don't provoke an error unfortunately, instead are silently treated
20288 as 'x'. The following induces an error, until -std is added to get
20289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20290 array size at least. It's necessary to write '\x00'==0 to get something
20291 that's true only with -std. */
20292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20295 inside strings and character constants. */
20297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20299 int test (int i, double x);
20300 struct s1 {int (*f) (int a);};
20301 struct s2 {int (*f) (double a);};
20302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20316 CC="$ac_save_CC $ac_arg"
20317 rm -f conftest.$ac_objext
20318 if { (ac_try="$ac_compile"
20319 case "(($ac_try" in
20320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20321 *) ac_try_echo
=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_compile") 2>conftest.er1
20326 grep -v '^ *+' conftest.er1
>conftest.err
20328 cat conftest.err
>&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && {
20331 test -z "$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20333 } && test -s conftest.
$ac_objext; then
20334 ac_cv_prog_cc_c89
=$ac_arg
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.
$ac_ext >&5
20342 rm -f core conftest.err conftest.
$ac_objext
20343 test "x$ac_cv_prog_cc_c89" != "xno" && break
20345 rm -f conftest.
$ac_ext
20350 case "x$ac_cv_prog_cc_c89" in
20352 { echo "$as_me:$LINENO: result: none needed" >&5
20353 echo "${ECHO_T}none needed" >&6; } ;;
20355 { echo "$as_me:$LINENO: result: unsupported" >&5
20356 echo "${ECHO_T}unsupported" >&6; } ;;
20358 CC
="$CC $ac_cv_prog_cc_c89"
20359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20360 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20365 ac_cpp
='$CPP $CPPFLAGS'
20366 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20371 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20373 if test "${ac_cv_header_stdc+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 cat >conftest.
$ac_ext <<_ACEOF
20379 cat confdefs.h
>>conftest.
$ac_ext
20380 cat >>conftest.
$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382 #include <stdlib.h>
20383 #include <stdarg.h>
20384 #include <string.h>
20395 rm -f conftest.
$ac_objext
20396 if { (ac_try
="$ac_compile"
20397 case "(($ac_try" in
20398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_compile") 2>conftest.er1
20404 grep -v '^ *+' conftest.er1 >conftest.err
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } && {
20409 test -z "$ac_c_werror_flag" ||
20410 test ! -s conftest.err
20411 } && test -s conftest.$ac_objext; then
20412 ac_cv_header_stdc=yes
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_cv_header_stdc=no
20420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20422 if test $ac_cv_header_stdc = yes; then
20423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20424 cat >conftest.$ac_ext <<_ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430 #include <string.h>
20433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20434 $EGREP "memchr" >/dev/null 2>&1; then
20437 ac_cv_header_stdc=no
20443 if test $ac_cv_header_stdc = yes; then
20444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 #include <stdlib.h>
20454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20455 $EGREP "free" >/dev/null 2>&1; then
20458 ac_cv_header_stdc=no
20464 if test $ac_cv_header_stdc = yes; then
20465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20466 if test "$cross_compiling" = yes; then
20469 cat >conftest.$ac_ext <<_ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20476 #include <stdlib.h>
20477 #if ((' ' & 0x0FF) == 0x020)
20478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20481 # define ISLOWER(c) \
20482 (('a' <= (c) && (c) <= 'i') \
20483 || ('j' <= (c) && (c) <= 'r') \
20484 || ('s' <= (c) && (c) <= 'z'))
20485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20493 for (i = 0; i < 256; i++)
20494 if (XOR (islower (i), ISLOWER (i))
20495 || toupper (i) != TOUPPER (i))
20500 rm -f conftest$ac_exeext
20501 if { (ac_try="$ac_link"
20502 case "(($ac_try" in
20503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20504 *) ac_try_echo
=$ac_try;;
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_link") 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20511 { (case "(($ac_try" in
20512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_try") 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20522 echo "$as_me: program exited with status $ac_status" >&5
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ( exit $ac_status )
20527 ac_cv_header_stdc=no
20529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20535 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20536 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20537 if test $ac_cv_header_stdc = yes; then
20539 cat >>confdefs.h <<\_ACEOF
20540 #define STDC_HEADERS 1
20556 for ac_header in fcntl.h db.h paths.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/timers.h stropts.h memory.h
20558 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 ac_res=`eval echo '${'$as_ac_Header'}'`
20566 { echo "$as_me:$LINENO: result: $ac_res" >&5
20567 echo "${ECHO_T}$ac_res" >&6; }
20569 # Is the header compilable?
20570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 $ac_includes_default
20579 #include <$ac_header>
20581 rm -f conftest.$ac_objext
20582 if { (ac_try="$ac_compile"
20583 case "(($ac_try" in
20584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20585 *) ac_try_echo
=$ac_try;;
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_compile") 2>conftest.er1
20590 grep -v '^ *+' conftest.er1
>conftest.err
20592 cat conftest.err
>&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest.
$ac_objext; then
20598 ac_header_compiler
=yes
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.
$ac_ext >&5
20603 ac_header_compiler
=no
20606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20608 echo "${ECHO_T}$ac_header_compiler" >&6; }
20610 # Is the header present?
20611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20613 cat >conftest.
$ac_ext <<_ACEOF
20616 cat confdefs.h
>>conftest.
$ac_ext
20617 cat >>conftest.
$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 #include <$ac_header>
20621 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20622 case "(($ac_try" in
20623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20629 grep -v '^ *+' conftest.er1 >conftest.err
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } >/dev/null && {
20634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20637 ac_header_preproc=yes
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 ac_header_preproc=no
20645 rm -f conftest.err conftest.$ac_ext
20646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20647 echo "${ECHO_T}$ac_header_preproc" >&6; }
20649 # So? What about this header?
20650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20656 ac_header_preproc=yes
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 eval "$as_ac_Header=\$ac_header_preproc"
20681 ac_res=`eval echo '${'$as_ac_Header'}'`
20682 { echo "$as_me:$LINENO: result: $ac_res" >&5
20683 echo "${ECHO_T}$ac_res" >&6; }
20686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20687 cat >>confdefs.h <<_ACEOF
20688 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20696 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20697 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20698 if test "${ac_cv_c_const+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20711 /* FIXME: Include the comments suggested by Paul. */
20712 #ifndef __cplusplus
20713 /* Ultrix mips cc rejects this. */
20714 typedef int charset[2];
20716 /* SunOS 4.1.1 cc rejects this. */
20717 char const *const *pcpcc;
20719 /* NEC SVR4.0.2 mips cc rejects this. */
20720 struct point {int x, y;};
20721 static struct point const zero = {0,0};
20722 /* AIX XL C 1.02.0.0 rejects this.
20723 It does not let you subtract one const X* pointer from another in
20724 an arm of an if-expression whose if-part is not a constant
20726 const char *g = "string";
20727 pcpcc = &g + (g ? g-g : 0);
20728 /* HPUX 7.0 cc rejects these. */
20730 ppc = (char**) pcpcc;
20731 pcpcc = (char const *const *) ppc;
20732 { /* SCO 3.2v4 cc rejects this. */
20734 char const *s = 0 ? (char *) 0 : (char const *) 0;
20739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20740 int x[] = {25, 17};
20741 const int *foo = &x[0];
20744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20745 typedef const int *iptr;
20749 { /* AIX XL C 1.02.0.0 rejects this saying
20750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20751 struct s { int j; const int *ap[3]; };
20752 struct s *b; b->j = 5;
20754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20755 const int foo = 10;
20756 if (!foo) return 0;
20758 return !cs[0] && !zero.x;
20765 rm -f conftest.$ac_objext
20766 if { (ac_try="$ac_compile"
20767 case "(($ac_try" in
20768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20769 *) ac_try_echo
=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_compile") 2>conftest.er1
20774 grep -v '^ *+' conftest.er1
>conftest.err
20776 cat conftest.err
>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } && {
20779 test -z "$ac_c_werror_flag" ||
20780 test ! -s conftest.err
20781 } && test -s conftest.
$ac_objext; then
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.
$ac_ext >&5
20790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20792 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20793 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20794 if test $ac_cv_c_const = no
; then
20796 cat >>confdefs.h
<<\_ACEOF
20802 { echo "$as_me:$LINENO: checking for inline" >&5
20803 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20804 if test "${ac_cv_c_inline+set}" = set; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 for ac_kw
in inline __inline__ __inline
; do
20809 cat >conftest.
$ac_ext <<_ACEOF
20812 cat confdefs.h
>>conftest.
$ac_ext
20813 cat >>conftest.
$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20815 #ifndef __cplusplus
20817 static $ac_kw foo_t static_foo () {return 0; }
20818 $ac_kw foo_t foo () {return 0; }
20822 rm -f conftest.
$ac_objext
20823 if { (ac_try
="$ac_compile"
20824 case "(($ac_try" in
20825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_compile") 2>conftest.er1
20831 grep -v '^ *+' conftest.er1 >conftest.err
20833 cat conftest.err >&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } && {
20836 test -z "$ac_c_werror_flag" ||
20837 test ! -s conftest.err
20838 } && test -s conftest.$ac_objext; then
20839 ac_cv_c_inline=$ac_kw
20841 echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848 test "$ac_cv_c_inline" != no && break
20852 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20853 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20856 case $ac_cv_c_inline in
20859 case $ac_cv_c_inline in
20861 *) ac_val=$ac_cv_c_inline;;
20863 cat >>confdefs.h <<_ACEOF
20864 #ifndef __cplusplus
20865 #define inline $ac_val
20871 { echo "$as_me:$LINENO: checking for size_t" >&5
20872 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20873 if test "${ac_cv_type_size_t+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 cat >conftest.$ac_ext <<_ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 $ac_includes_default
20883 typedef size_t ac__type_new_;
20887 if ((ac__type_new_ *) 0)
20889 if (sizeof (ac__type_new_))
20895 rm -f conftest.$ac_objext
20896 if { (ac_try="$ac_compile"
20897 case "(($ac_try" in
20898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20899 *) ac_try_echo
=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_compile") 2>conftest.er1
20904 grep -v '^ *+' conftest.er1
>conftest.err
20906 cat conftest.err
>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && {
20909 test -z "$ac_c_werror_flag" ||
20910 test ! -s conftest.err
20911 } && test -s conftest.
$ac_objext; then
20912 ac_cv_type_size_t
=yes
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.
$ac_ext >&5
20917 ac_cv_type_size_t
=no
20920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20922 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20923 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20924 if test $ac_cv_type_size_t = yes; then
20928 cat >>confdefs.h
<<_ACEOF
20929 #define size_t unsigned int
20934 { echo "$as_me:$LINENO: checking for ssize_t" >&5
20935 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
20936 if test "${ac_cv_type_ssize_t+set}" = set; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
20939 cat >conftest.
$ac_ext <<_ACEOF
20942 cat confdefs.h
>>conftest.
$ac_ext
20943 cat >>conftest.
$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 $ac_includes_default
20946 typedef ssize_t ac__type_new_;
20950 if ((ac__type_new_ *) 0)
20952 if (sizeof (ac__type_new_))
20958 rm -f conftest.
$ac_objext
20959 if { (ac_try
="$ac_compile"
20960 case "(($ac_try" in
20961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_compile") 2>conftest.er1
20967 grep -v '^ *+' conftest.er1 >conftest.err
20969 cat conftest.err >&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } && {
20972 test -z "$ac_c_werror_flag" ||
20973 test ! -s conftest.err
20974 } && test -s conftest.$ac_objext; then
20975 ac_cv_type_ssize_t=yes
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_cv_type_ssize_t=no
20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20986 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20987 if test $ac_cv_type_ssize_t = yes; then
20991 cat >>confdefs.h <<_ACEOF
20992 #define ssize_t signed
20997 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
20998 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
20999 if test "${ac_cv_type_uintptr_t+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 $ac_includes_default
21009 typedef uintptr_t ac__type_new_;
21013 if ((ac__type_new_ *) 0)
21015 if (sizeof (ac__type_new_))
21021 rm -f conftest.$ac_objext
21022 if { (ac_try="$ac_compile"
21023 case "(($ac_try" in
21024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21025 *) ac_try_echo
=$ac_try;;
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028 (eval "$ac_compile") 2>conftest.er1
21030 grep -v '^ *+' conftest.er1
>conftest.err
21032 cat conftest.err
>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); } && {
21035 test -z "$ac_c_werror_flag" ||
21036 test ! -s conftest.err
21037 } && test -s conftest.
$ac_objext; then
21038 ac_cv_type_uintptr_t
=yes
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.
$ac_ext >&5
21043 ac_cv_type_uintptr_t
=no
21046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21049 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
21050 if test $ac_cv_type_uintptr_t = yes; then
21054 cat >>confdefs.h
<<_ACEOF
21055 #define uintptr_t unsigned long
21060 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21061 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21062 if test "${ac_cv_header_time+set}" = set; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 cat >conftest.
$ac_ext <<_ACEOF
21068 cat confdefs.h
>>conftest.
$ac_ext
21069 cat >>conftest.
$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21071 #include <sys/types.h>
21072 #include <sys/time.h>
21078 if ((struct tm *) 0)
21084 rm -f conftest.
$ac_objext
21085 if { (ac_try
="$ac_compile"
21086 case "(($ac_try" in
21087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_compile") 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } && {
21098 test -z "$ac_c_werror_flag" ||
21099 test ! -s conftest.err
21100 } && test -s conftest.$ac_objext; then
21101 ac_cv_header_time=yes
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_cv_header_time=no
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21112 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21113 if test $ac_cv_header_time = yes; then
21115 cat >>confdefs.h <<\_ACEOF
21116 #define TIME_WITH_SYS_TIME 1
21123 # check for clock_gettime() in librt
21126 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
21127 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
21128 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 ac_check_lib_save_LIBS=$LIBS
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21140 /* Override any GCC internal prototype to avoid an error.
21141 Use char because int might match the return type of a GCC
21142 builtin and then its argument prototype would still apply. */
21146 char clock_gettime ();
21150 return clock_gettime ();
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (ac_try="$ac_link"
21157 case "(($ac_try" in
21158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21159 *) ac_try_echo
=$ac_try;;
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_link") 2>conftest.er1
21164 grep -v '^ *+' conftest.er1
>conftest.err
21166 cat conftest.err
>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && {
21169 test -z "$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21171 } && test -s conftest
$ac_exeext &&
21172 $as_test_x conftest
$ac_exeext; then
21173 ac_cv_lib_rt_clock_gettime
=yes
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.
$ac_ext >&5
21178 ac_cv_lib_rt_clock_gettime
=no
21181 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21182 conftest
$ac_exeext conftest.
$ac_ext
21183 LIBS
=$ac_check_lib_save_LIBS
21185 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
21186 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
21187 if test $ac_cv_lib_rt_clock_gettime = yes; then
21188 cat >>confdefs.h
<<_ACEOF
21189 #define HAVE_LIBRT 1
21198 # check for MD5Init() in libmd5
21201 { echo "$as_me:$LINENO: checking for MD5Init in -lmd5" >&5
21202 echo $ECHO_N "checking for MD5Init in -lmd5... $ECHO_C" >&6; }
21203 if test "${ac_cv_lib_md5_MD5Init+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 ac_check_lib_save_LIBS
=$LIBS
21208 cat >conftest.
$ac_ext <<_ACEOF
21211 cat confdefs.h
>>conftest.
$ac_ext
21212 cat >>conftest.
$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21215 /* Override any GCC internal prototype to avoid an error.
21216 Use char because int might match the return type of a GCC
21217 builtin and then its argument prototype would still apply. */
21230 rm -f conftest.
$ac_objext conftest
$ac_exeext
21231 if { (ac_try
="$ac_link"
21232 case "(($ac_try" in
21233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_link") 2>conftest.er1
21239 grep -v '^ *+' conftest.er1 >conftest.err
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest$ac_exeext &&
21247 $as_test_x conftest$ac_exeext; then
21248 ac_cv_lib_md5_MD5Init=yes
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21253 ac_cv_lib_md5_MD5Init=no
21256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21257 conftest$ac_exeext conftest.$ac_ext
21258 LIBS=$ac_check_lib_save_LIBS
21260 { echo "$as_me:$LINENO: result: $ac_cv_lib_md5_MD5Init" >&5
21261 echo "${ECHO_T}$ac_cv_lib_md5_MD5Init" >&6; }
21262 if test $ac_cv_lib_md5_MD5Init = yes; then
21263 cat >>confdefs.h <<_ACEOF
21264 #define HAVE_LIBMD5 1
21273 # check if we need to #include sys/select.h explicitly
21275 case $ac_cv_header_unistd_h in
21277 { echo "$as_me:$LINENO: checking if unistd.h defines fd_set" >&5
21278 echo $ECHO_N "checking if unistd.h defines fd_set... $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. */
21286 #include <unistd.h>
21290 fd_set read_set; return (0);
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21299 *) ac_try_echo
=$ac_try;;
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
21304 grep -v '^ *+' conftest.er1
>conftest.err
21306 cat conftest.err
>&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest.
$ac_objext; then
21312 { echo "$as_me:$LINENO: result: yes" >&5
21313 echo "${ECHO_T}yes" >&6; }
21314 ISC_PLATFORM_NEEDSYSSELECTH
="#undef ISC_PLATFORM_NEEDSYSSELECTH"
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.
$ac_ext >&5
21320 { echo "$as_me:$LINENO: result: no" >&5
21321 echo "${ECHO_T}no" >&6; }
21322 case ac_cv_header_sys_select_h
in
21324 ISC_PLATFORM_NEEDSYSSELECTH
="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
21327 { { echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5
21328 echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;}
21329 { (exit 1); exit 1; }; }
21335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21338 case ac_cv_header_sys_select_h
in
21340 ISC_PLATFORM_NEEDSYSSELECTH
="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
21343 { { echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5
21344 echo "$as_me: error: need either unistd.h or sys/select.h" >&2;}
21345 { (exit 1); exit 1; }; }
21353 # Find the machine's endian flavor.
21355 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21356 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21357 if test "${ac_cv_c_bigendian+set}" = set; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 # See if sys/param.h defines the BYTE_ORDER macro.
21361 cat >conftest.
$ac_ext <<_ACEOF
21364 cat confdefs.h
>>conftest.
$ac_ext
21365 cat >>conftest.
$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 #include <sys/types.h>
21368 #include <sys/param.h>
21373 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21374 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21375 bogus endian macros
21382 rm -f conftest.
$ac_objext
21383 if { (ac_try
="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21391 grep -v '^ *+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 # It does; now see whether it defined to BIG_ENDIAN or not.
21400 cat >conftest.$ac_ext <<_ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 #include <sys/types.h>
21407 #include <sys/param.h>
21412 #if BYTE_ORDER != BIG_ENDIAN
21420 rm -f conftest.$ac_objext
21421 if { (ac_try="$ac_compile"
21422 case "(($ac_try" in
21423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21424 *) ac_try_echo
=$ac_try;;
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_compile") 2>conftest.er1
21429 grep -v '^ *+' conftest.er1
>conftest.err
21431 cat conftest.err
>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && {
21434 test -z "$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 } && test -s conftest.
$ac_objext; then
21437 ac_cv_c_bigendian
=yes
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.
$ac_ext >&5
21442 ac_cv_c_bigendian
=no
21445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.
$ac_ext >&5
21450 # It does not; compile a test program.
21451 if test "$cross_compiling" = yes; then
21452 # try to guess the endianness by grepping values into an object file
21453 ac_cv_c_bigendian
=unknown
21454 cat >conftest.
$ac_ext <<_ACEOF
21457 cat confdefs.h
>>conftest.
$ac_ext
21458 cat >>conftest.
$ac_ext <<_ACEOF
21459 /* end confdefs.h. */
21460 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21461 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21462 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21463 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21464 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21465 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21469 _ascii (); _ebcdic ();
21474 rm -f conftest.
$ac_objext
21475 if { (ac_try
="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21483 grep -v '^ *+' conftest.er1 >conftest.err
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
21491 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21492 ac_cv_c_bigendian=yes
21494 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21495 if test "$ac_cv_c_bigendian" = unknown; then
21496 ac_cv_c_bigendian=no
21498 # finding both strings is unlikely to happen, but who knows?
21499 ac_cv_c_bigendian=unknown
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 $ac_includes_default
21522 /* Are we little or big endian? From Harbison&Steele. */
21526 char c[sizeof (long int)];
21529 return u.c[sizeof (long int) - 1] == 1;
21535 rm -f conftest$ac_exeext
21536 if { (ac_try="$ac_link"
21537 case "(($ac_try" in
21538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21539 *) ac_try_echo
=$ac_try;;
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_link") 2>&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21546 { (case "(($ac_try" in
21547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_try") 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_c_bigendian=no
21557 echo "$as_me: program exited with status $ac_status" >&5
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ( exit $ac_status )
21562 ac_cv_c_bigendian=yes
21564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21572 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21573 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21574 case $ac_cv_c_bigendian in
21577 cat >>confdefs.h <<\_ACEOF
21578 #define WORDS_BIGENDIAN 1
21584 { { echo "$as_me:$LINENO: error: unknown endianness
21585 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21586 echo "$as_me: error: unknown endianness
21587 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21588 { (exit 1); exit 1; }; } ;;
21593 # Check whether --with-irs-gr was given.
21594 if test "${with_irs_gr+set}" = set; then
21595 withval=$with_irs_gr; want_irs_gr="$withval"
21600 case "$want_irs_gr" in
21601 yes) WANT_IRS_GR="#define WANT_IRS_GR 1"
21602 WANT_IRS_GR_OBJS="\${WANT_IRS_GR_OBJS}"
21604 *) WANT_IRS_GR="#undef WANT_IRS_GR" WANT_IRS_GR_OBJS="";;
21610 # Check whether --with-irs-pw was given.
21611 if test "${with_irs_pw+set}" = set; then
21612 withval=$with_irs_pw; want_irs_pw="$withval"
21617 case "$want_irs_pw" in
21618 yes) WANT_IRS_PW="#define WANT_IRS_PW 1"
21619 WANT_IRS_PW_OBJS="\${WANT_IRS_PW_OBJS}";;
21620 *) WANT_IRS_PW="#undef WANT_IRS_PW" WANT_IRS_PW_OBJS="";;
21626 # Check whether --with-irs-nis was given.
21627 if test "${with_irs_nis+set}" = set; then
21628 withval=$with_irs_nis; want_irs_nis="$withval"
21633 case "$want_irs_nis" in
21635 WANT_IRS_NIS="#define WANT_IRS_NIS 1"
21636 WANT_IRS_NIS_OBJS="\${WANT_IRS_NIS_OBJS}"
21637 case "$want_irs_gr" in
21639 WANT_IRS_NISGR_OBJS="\${WANT_IRS_NISGR_OBJS}";;
21641 WANT_IRS_NISGR_OBJS="";;
21643 case "$want_irs_pw" in
21645 WANT_IRS_NISPW_OBJS="\${WANT_IRS_NISPW_OBJS}";;
21647 WANT_IRS_NISPW_OBJS="";;
21651 WANT_IRS_NIS="#undef WANT_IRS_NIS"
21652 WANT_IRS_NIS_OBJS=""
21653 WANT_IRS_NISGR_OBJS=""
21654 WANT_IRS_NISPW_OBJS="";;
21660 if test "$cross_compiling" = yes; then
21661 WANT_IRS_DBPW_OBJS=""
21664 cat >conftest.$ac_ext <<_ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21676 main() { return(!have_db_h); }
21679 rm -f conftest$ac_exeext
21680 if { (ac_try="$ac_link"
21681 case "(($ac_try" in
21682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21683 *) ac_try_echo
=$ac_try;;
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_link") 2>&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21690 { (case "(($ac_try" in
21691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_try") 2>&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; }; then
21699 WANT_IRS_DBPW_OBJS="\${WANT_IRS_DBPW_OBJS}"
21702 echo "$as_me: program exited with status $ac_status" >&5
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ( exit $ac_status )
21707 WANT_IRS_DBPW_OBJS=""
21710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21717 # was --with-randomdev specified?
21719 { echo "$as_me:$LINENO: checking for random device" >&5
21720 echo $ECHO_N "checking for random device... $ECHO_C" >&6; }
21722 # Check whether --with-randomdev was given.
21723 if test "${with_randomdev+set}" = set; then
21724 withval=$with_randomdev; use_randomdev="$withval"
21726 use_randomdev="unspec"
21730 case "$use_randomdev" in
21734 devrandom=/dev/srandom
21737 devrandom=/dev/random
21740 { echo "$as_me:$LINENO: result: $devrandom" >&5
21741 echo "${ECHO_T}$devrandom" >&6; }
21742 as_ac_File=`echo "ac_cv_file_$devrandom" |
$as_tr_sh`
21743 { echo "$as_me:$LINENO: checking for $devrandom" >&5
21744 echo $ECHO_N "checking for $devrandom... $ECHO_C" >&6; }
21745 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 test "$cross_compiling" = yes &&
21749 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21750 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21751 { (exit 1); exit 1; }; }
21752 if test -r "$devrandom"; then
21753 eval "$as_ac_File=yes"
21755 eval "$as_ac_File=no"
21758 ac_res=`eval echo '${'$as_ac_File'}'`
21759 { echo "$as_me:$LINENO: result: $ac_res" >&5
21760 echo "${ECHO_T}$ac_res" >&6; }
21761 if test `eval echo '${'$as_ac_File'}'` = yes; then
21762 cat >>confdefs.h <<_ACEOF
21763 #define PATH_RANDOMDEV "$devrandom"
21770 { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5
21771 echo "$as_me: error: --with-randomdev must specify a path" >&2;}
21772 { (exit 1); exit 1; }; }
21775 cat >>confdefs.h <<_ACEOF
21776 #define PATH_RANDOMDEV "$use_randomdev"
21779 { echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5
21780 echo "${ECHO_T}using \"$use_randomdev\"" >&6; }
21785 # Begin pthreads checking.
21787 # First, decide whether to use multithreading or not.
21789 # Enable multithreading by default on systems where it is known
21790 # to work well, and where debugging of multithreaded programs
21794 { echo "$as_me:$LINENO: checking whether to build with thread support" >&5
21795 echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6; }
21799 use_threads=true ;;
21801 # Thread signals are broken on Solaris 2.6; they are sometimes
21802 # delivered to the wrong thread.
21803 use_threads=false ;;
21805 use_threads=true ;;
21807 use_threads=true ;;
21809 use_threads=false ;;
21811 use_threads=true ;;
21813 use_threads=true ;;
21814 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
21816 use_threads=false ;;
21817 *-*-sysv*OpenUNIX*)
21819 use_threads=true ;;
21821 if test -r /usr/lib/libpthread.so ; then
21824 # Socket I/O optimizations introduced in 9.2 expose a
21825 # bug in unproven-pthreads; see PR #12650
21830 # OpenBSD users have reported that named dumps core on
21831 # startup when built with threads.
21832 use_threads=false ;;
21834 use_threads=false ;;
21836 # Thread signals do not work reliably on some versions of BSD/OS.
21837 use_threads=false ;;
21839 use_threads=true ;;
21841 # Threads are disabled on Linux by default because most
21842 # Linux kernels produce unusable core dumps from multithreaded
21843 # programs, and because of limitations in setuid().
21844 use_threads=false ;;
21846 use_threads=false ;;
21849 # Check whether --enable-threads was given.
21850 if test "${enable_threads+set}" = set; then
21851 enableval=$enable_threads;
21854 case "$enable_threads" in
21862 # Use system-dependent default
21865 { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5
21866 echo "$as_me: error: --enable-threads takes yes or no" >&2;}
21867 { (exit 1); exit 1; }; }
21873 { echo "$as_me:$LINENO: result: yes" >&5
21874 echo "${ECHO_T}yes" >&6; }
21876 { echo "$as_me:$LINENO: result: no" >&5
21877 echo "${ECHO_T}no" >&6; }
21883 # Search for / configure pthreads in a system-dependent fashion.
21887 # NetBSD has multiple pthreads implementations. The
21888 # recommended one to use is "unproven-pthreads". The
21889 # older "mit-pthreads" may also work on some NetBSD
21890 # versions. The PTL2 thread library does not
21891 # currently work with bind9, but can be chosen with
21892 # the --with-ptl2 option for those who wish to
21893 # experiment with it.
21895 { echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5
21896 echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6; }
21899 # Check whether --with-ptl2 was given.
21900 if test "${with_ptl2+set}" = set; then
21901 withval=$with_ptl2; use_ptl2="$withval"
21907 : ${LOCALBASE:=/usr/pkg}
21909 if test "X$use_ptl2" = "Xyes"
21911 { echo "$as_me:$LINENO: result: PTL2" >&5
21912 echo "${ECHO_T}PTL2" >&6; }
21913 { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
21914 echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
21917 if test -r /usr/lib/libpthread.so
21919 { echo "$as_me:$LINENO: result: native" >&5
21920 echo "${ECHO_T}native" >&6; }
21921 LIBS="-lpthread $LIBS"
21923 if test ! -d $LOCALBASE/pthreads
21925 { echo "$as_me:$LINENO: result: none" >&5
21926 echo "${ECHO_T}none" >&6; }
21927 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
21928 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
21929 { (exit 1); exit 1; }; }
21934 { echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5
21935 echo "${ECHO_T}mit-pthreads/unproven-pthreads" >&6; }
21936 pkg="$LOCALBASE/pthreads"
21937 lib1="-L$pkg/lib -Wl,-R$pkg/lib"
21938 lib2="-lpthread -lm -lgcc -lpthread"
21939 LIBS="$lib1 $lib2 $LIBS"
21940 CPPFLAGS="$CPPFLAGS -I$pkg/include"
21941 STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
21947 # We don't want to set -lpthread as that break
21948 # the ability to choose threads library at final
21949 # link time and is not valid for all architectures.
21952 if test "X$GCC" = "Xyes"; then
21955 { echo "$as_me:$LINENO: checking for gcc -pthread support" >&5
21956 echo $ECHO_N "checking for gcc -pthread support... $ECHO_C" >&6; };
21957 cat >conftest.$ac_ext <<_ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21963 #include <pthread.h>
21967 printf("%x\n", pthread_create);
21972 rm -f conftest.$ac_objext conftest$ac_exeext
21973 if { (ac_try="$ac_link"
21974 case "(($ac_try" in
21975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21976 *) ac_try_echo
=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_link") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1
>conftest.err
21983 cat conftest.err
>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest
$ac_exeext &&
21989 $as_test_x conftest
$ac_exeext; then
21991 { echo "$as_me:$LINENO: result: yes" >&5
21992 echo "${ECHO_T}yes" >&6; }
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.
$ac_ext >&5
21997 { echo "$as_me:$LINENO: result: no" >&5
21998 echo "${ECHO_T}no" >&6; }
22001 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22002 conftest
$ac_exeext conftest.
$ac_ext
22005 if test "X$PTHREAD" != "Xyes"; then
22007 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22008 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
22009 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22010 echo $ECHO_N "(cached) $ECHO_C" >&6
22012 ac_check_lib_save_LIBS
=$LIBS
22013 LIBS
="-lpthread $LIBS"
22014 cat >conftest.
$ac_ext <<_ACEOF
22017 cat confdefs.h
>>conftest.
$ac_ext
22018 cat >>conftest.
$ac_ext <<_ACEOF
22019 /* end confdefs.h. */
22021 /* Override any GCC internal prototype to avoid an error.
22022 Use char because int might match the return type of a GCC
22023 builtin and then its argument prototype would still apply. */
22027 char pthread_create ();
22031 return pthread_create ();
22036 rm -f conftest.
$ac_objext conftest
$ac_exeext
22037 if { (ac_try
="$ac_link"
22038 case "(($ac_try" in
22039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_link") 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && {
22050 test -z "$ac_c_werror_flag" ||
22051 test ! -s conftest.err
22052 } && test -s conftest$ac_exeext &&
22053 $as_test_x conftest$ac_exeext; then
22054 ac_cv_lib_pthread_pthread_create=yes
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 ac_cv_lib_pthread_pthread_create=no
22062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22063 conftest$ac_exeext conftest.$ac_ext
22064 LIBS=$ac_check_lib_save_LIBS
22066 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
22067 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
22068 if test $ac_cv_lib_pthread_pthread_create = yes; then
22069 cat >>confdefs.h <<_ACEOF
22070 #define HAVE_LIBPTHREAD 1
22073 LIBS="-lpthread $LIBS"
22077 { echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5
22078 echo $ECHO_N "checking for thread_create in -lthr... $ECHO_C" >&6; }
22079 if test "${ac_cv_lib_thr_thread_create+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 ac_check_lib_save_LIBS=$LIBS
22084 cat >conftest.$ac_ext <<_ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22091 /* Override any GCC internal prototype to avoid an error.
22092 Use char because int might match the return type of a GCC
22093 builtin and then its argument prototype would still apply. */
22097 char thread_create ();
22101 return thread_create ();
22106 rm -f conftest.$ac_objext conftest$ac_exeext
22107 if { (ac_try="$ac_link"
22108 case "(($ac_try" in
22109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22110 *) ac_try_echo
=$ac_try;;
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_link") 2>conftest.er1
22115 grep -v '^ *+' conftest.er1
>conftest.err
22117 cat conftest.err
>&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest
$ac_exeext &&
22123 $as_test_x conftest
$ac_exeext; then
22124 ac_cv_lib_thr_thread_create
=yes
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.
$ac_ext >&5
22129 ac_cv_lib_thr_thread_create
=no
22132 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22133 conftest
$ac_exeext conftest.
$ac_ext
22134 LIBS
=$ac_check_lib_save_LIBS
22136 { echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5
22137 echo "${ECHO_T}$ac_cv_lib_thr_thread_create" >&6; }
22138 if test $ac_cv_lib_thr_thread_create = yes; then
22139 cat >>confdefs.h
<<_ACEOF
22140 #define HAVE_LIBTHR 1
22147 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
22148 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
22149 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 ac_check_lib_save_LIBS
=$LIBS
22154 cat >conftest.
$ac_ext <<_ACEOF
22157 cat confdefs.h
>>conftest.
$ac_ext
22158 cat >>conftest.
$ac_ext <<_ACEOF
22159 /* end confdefs.h. */
22161 /* Override any GCC internal prototype to avoid an error.
22162 Use char because int might match the return type of a GCC
22163 builtin and then its argument prototype would still apply. */
22167 char pthread_create ();
22171 return pthread_create ();
22176 rm -f conftest.
$ac_objext conftest
$ac_exeext
22177 if { (ac_try
="$ac_link"
22178 case "(($ac_try" in
22179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22180 *) ac_try_echo=$ac_try;;
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183 (eval "$ac_link") 2>conftest.er1
22185 grep -v '^ *+' conftest.er1 >conftest.err
22187 cat conftest.err >&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } && {
22190 test -z "$ac_c_werror_flag" ||
22191 test ! -s conftest.err
22192 } && test -s conftest$ac_exeext &&
22193 $as_test_x conftest$ac_exeext; then
22194 ac_cv_lib_c_r_pthread_create=yes
22196 echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22199 ac_cv_lib_c_r_pthread_create=no
22202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22203 conftest$ac_exeext conftest.$ac_ext
22204 LIBS=$ac_check_lib_save_LIBS
22206 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
22207 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
22208 if test $ac_cv_lib_c_r_pthread_create = yes; then
22209 cat >>confdefs.h <<_ACEOF
22210 #define HAVE_LIBC_R 1
22217 { echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
22218 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; }
22219 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 ac_check_lib_save_LIBS=$LIBS
22224 cat >conftest.$ac_ext <<_ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22231 /* Override any GCC internal prototype to avoid an error.
22232 Use char because int might match the return type of a GCC
22233 builtin and then its argument prototype would still apply. */
22237 char pthread_create ();
22241 return pthread_create ();
22246 rm -f conftest.$ac_objext conftest$ac_exeext
22247 if { (ac_try="$ac_link"
22248 case "(($ac_try" in
22249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22250 *) ac_try_echo
=$ac_try;;
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_link") 2>conftest.er1
22255 grep -v '^ *+' conftest.er1
>conftest.err
22257 cat conftest.err
>&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } && {
22260 test -z "$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 } && test -s conftest
$ac_exeext &&
22263 $as_test_x conftest
$ac_exeext; then
22264 ac_cv_lib_c_pthread_create
=yes
22266 echo "$as_me: failed program was:" >&5
22267 sed 's/^/| /' conftest.
$ac_ext >&5
22269 ac_cv_lib_c_pthread_create
=no
22272 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22273 conftest
$ac_exeext conftest.
$ac_ext
22274 LIBS
=$ac_check_lib_save_LIBS
22276 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
22277 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; }
22278 if test $ac_cv_lib_c_pthread_create = yes; then
22279 cat >>confdefs.h
<<_ACEOF
22280 #define HAVE_LIBC 1
22286 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
22287 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
22288 { (exit 1); exit 1; }; }
22301 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22302 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
22303 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22306 ac_check_lib_save_LIBS
=$LIBS
22307 LIBS
="-lpthread $LIBS"
22308 cat >conftest.
$ac_ext <<_ACEOF
22311 cat confdefs.h
>>conftest.
$ac_ext
22312 cat >>conftest.
$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22315 /* Override any GCC internal prototype to avoid an error.
22316 Use char because int might match the return type of a GCC
22317 builtin and then its argument prototype would still apply. */
22321 char pthread_create ();
22325 return pthread_create ();
22330 rm -f conftest.
$ac_objext conftest
$ac_exeext
22331 if { (ac_try
="$ac_link"
22332 case "(($ac_try" in
22333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_link") 2>conftest.er1
22339 grep -v '^ *+' conftest.er1 >conftest.err
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest$ac_exeext &&
22347 $as_test_x conftest$ac_exeext; then
22348 ac_cv_lib_pthread_pthread_create=yes
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_lib_pthread_pthread_create=no
22356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22357 conftest$ac_exeext conftest.$ac_ext
22358 LIBS=$ac_check_lib_save_LIBS
22360 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
22361 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
22362 if test $ac_cv_lib_pthread_pthread_create = yes; then
22363 cat >>confdefs.h <<_ACEOF
22364 #define HAVE_LIBPTHREAD 1
22367 LIBS="-lpthread $LIBS"
22371 { echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
22372 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6; }
22373 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 ac_check_lib_save_LIBS=$LIBS
22377 LIBS="-lpthread $LIBS"
22378 cat >conftest.$ac_ext <<_ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22385 /* Override any GCC internal prototype to avoid an error.
22386 Use char because int might match the return type of a GCC
22387 builtin and then its argument prototype would still apply. */
22391 char __pthread_create ();
22395 return __pthread_create ();
22400 rm -f conftest.$ac_objext conftest$ac_exeext
22401 if { (ac_try="$ac_link"
22402 case "(($ac_try" in
22403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22404 *) ac_try_echo
=$ac_try;;
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_link") 2>conftest.er1
22409 grep -v '^ *+' conftest.er1
>conftest.err
22411 cat conftest.err
>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } && {
22414 test -z "$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22416 } && test -s conftest
$ac_exeext &&
22417 $as_test_x conftest
$ac_exeext; then
22418 ac_cv_lib_pthread___pthread_create
=yes
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.
$ac_ext >&5
22423 ac_cv_lib_pthread___pthread_create
=no
22426 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22427 conftest
$ac_exeext conftest.
$ac_ext
22428 LIBS
=$ac_check_lib_save_LIBS
22430 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
22431 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6; }
22432 if test $ac_cv_lib_pthread___pthread_create = yes; then
22433 cat >>confdefs.h
<<_ACEOF
22434 #define HAVE_LIBPTHREAD 1
22437 LIBS
="-lpthread $LIBS"
22441 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
22442 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
22443 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 ac_check_lib_save_LIBS
=$LIBS
22447 LIBS
="-lpthread $LIBS"
22448 cat >conftest.
$ac_ext <<_ACEOF
22451 cat confdefs.h
>>conftest.
$ac_ext
22452 cat >>conftest.
$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22455 /* Override any GCC internal prototype to avoid an error.
22456 Use char because int might match the return type of a GCC
22457 builtin and then its argument prototype would still apply. */
22461 char __pthread_create_system ();
22465 return __pthread_create_system ();
22470 rm -f conftest.
$ac_objext conftest
$ac_exeext
22471 if { (ac_try
="$ac_link"
22472 case "(($ac_try" in
22473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_link") 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } && {
22484 test -z "$ac_c_werror_flag" ||
22485 test ! -s conftest.err
22486 } && test -s conftest$ac_exeext &&
22487 $as_test_x conftest$ac_exeext; then
22488 ac_cv_lib_pthread___pthread_create_system=yes
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ac_cv_lib_pthread___pthread_create_system=no
22496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22497 conftest$ac_exeext conftest.$ac_ext
22498 LIBS=$ac_check_lib_save_LIBS
22500 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
22501 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
22502 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
22503 cat >>confdefs.h <<_ACEOF
22504 #define HAVE_LIBPTHREAD 1
22507 LIBS="-lpthread $LIBS"
22511 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
22512 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
22513 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22516 ac_check_lib_save_LIBS=$LIBS
22518 cat >conftest.$ac_ext <<_ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22525 /* Override any GCC internal prototype to avoid an error.
22526 Use char because int might match the return type of a GCC
22527 builtin and then its argument prototype would still apply. */
22531 char pthread_create ();
22535 return pthread_create ();
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (ac_try="$ac_link"
22542 case "(($ac_try" in
22543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22544 *) ac_try_echo
=$ac_try;;
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>conftest.er1
22549 grep -v '^ *+' conftest.er1
>conftest.err
22551 cat conftest.err
>&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } && {
22554 test -z "$ac_c_werror_flag" ||
22555 test ! -s conftest.err
22556 } && test -s conftest
$ac_exeext &&
22557 $as_test_x conftest
$ac_exeext; then
22558 ac_cv_lib_c_r_pthread_create
=yes
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.
$ac_ext >&5
22563 ac_cv_lib_c_r_pthread_create
=no
22566 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22567 conftest
$ac_exeext conftest.
$ac_ext
22568 LIBS
=$ac_check_lib_save_LIBS
22570 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
22571 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
22572 if test $ac_cv_lib_c_r_pthread_create = yes; then
22573 cat >>confdefs.h
<<_ACEOF
22574 #define HAVE_LIBC_R 1
22581 { echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
22582 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; }
22583 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22586 ac_check_lib_save_LIBS
=$LIBS
22588 cat >conftest.
$ac_ext <<_ACEOF
22591 cat confdefs.h
>>conftest.
$ac_ext
22592 cat >>conftest.
$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22595 /* Override any GCC internal prototype to avoid an error.
22596 Use char because int might match the return type of a GCC
22597 builtin and then its argument prototype would still apply. */
22601 char pthread_create ();
22605 return pthread_create ();
22610 rm -f conftest.
$ac_objext conftest
$ac_exeext
22611 if { (ac_try
="$ac_link"
22612 case "(($ac_try" in
22613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_link") 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest$ac_exeext &&
22627 $as_test_x conftest$ac_exeext; then
22628 ac_cv_lib_c_pthread_create=yes
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22633 ac_cv_lib_c_pthread_create=no
22636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22637 conftest$ac_exeext conftest.$ac_ext
22638 LIBS=$ac_check_lib_save_LIBS
22640 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
22641 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; }
22642 if test $ac_cv_lib_c_pthread_create = yes; then
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_LIBC 1
22650 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
22651 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
22652 { (exit 1); exit 1; }; }
22669 if test "X$GCC" = "Xyes"; then
22673 CCOPT="$CCOPT -pthread"
22674 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
22678 CCOPT="$CCOPT -pthread"
22681 LIBS="$LIBS -lthread"
22684 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
22691 CCOPT="$CCOPT -pthread"
22698 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
22702 CCOPT="$CCOPT -Kthread"
22706 cat >>confdefs.h <<\_ACEOF
22707 #define _REENTRANT 1
22710 ALWAYS_DEFINES="-D_REENTRANT"
22711 DO_PTHREADS="#define DO_PTHREADS 1"
22712 WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}"
22713 WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}"
22716 WANT_IRS_THREADS_OBJS="";;
22718 WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";;
22720 WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}"
22721 thread_dir=pthreads
22724 # We'd like to use sigwait() too
22726 { echo "$as_me:$LINENO: checking for sigwait" >&5
22727 echo $ECHO_N "checking for sigwait... $ECHO_C" >&6; }
22728 if test "${ac_cv_func_sigwait+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 /* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait.
22738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22739 #define sigwait innocuous_sigwait
22741 /* System header to define __stub macros and hopefully few prototypes,
22742 which can conflict with char sigwait (); below.
22743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22744 <limits.h> exists even on freestanding compilers. */
22747 # include <limits.h>
22749 # include <assert.h>
22754 /* Override any GCC internal prototype to avoid an error.
22755 Use char because int might match the return type of a GCC
22756 builtin and then its argument prototype would still apply. */
22761 /* The GNU C library defines this for functions which it implements
22762 to always fail with ENOSYS. Some functions are actually named
22763 something starting with __ and the normal name is an alias. */
22764 #if defined __stub_sigwait || defined __stub___sigwait
22776 rm -f conftest.$ac_objext conftest$ac_exeext
22777 if { (ac_try="$ac_link"
22778 case "(($ac_try" in
22779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22780 *) ac_try_echo
=$ac_try;;
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_link") 2>conftest.er1
22785 grep -v '^ *+' conftest.er1
>conftest.err
22787 cat conftest.err
>&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest
$ac_exeext &&
22793 $as_test_x conftest
$ac_exeext; then
22794 ac_cv_func_sigwait
=yes
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.
$ac_ext >&5
22799 ac_cv_func_sigwait
=no
22802 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22803 conftest
$ac_exeext conftest.
$ac_ext
22805 { echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5
22806 echo "${ECHO_T}$ac_cv_func_sigwait" >&6; }
22807 if test $ac_cv_func_sigwait = yes; then
22808 cat >>confdefs.h
<<\_ACEOF
22809 #define HAVE_SIGWAIT 1
22813 { echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
22814 echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6; }
22815 if test "${ac_cv_lib_c_sigwait+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 ac_check_lib_save_LIBS
=$LIBS
22820 cat >conftest.
$ac_ext <<_ACEOF
22823 cat confdefs.h
>>conftest.
$ac_ext
22824 cat >>conftest.
$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22827 /* Override any GCC internal prototype to avoid an error.
22828 Use char because int might match the return type of a GCC
22829 builtin and then its argument prototype would still apply. */
22842 rm -f conftest.
$ac_objext conftest
$ac_exeext
22843 if { (ac_try
="$ac_link"
22844 case "(($ac_try" in
22845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_link") 2>conftest.er1
22851 grep -v '^ *+' conftest.er1 >conftest.err
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && {
22856 test -z "$ac_c_werror_flag" ||
22857 test ! -s conftest.err
22858 } && test -s conftest$ac_exeext &&
22859 $as_test_x conftest$ac_exeext; then
22860 ac_cv_lib_c_sigwait=yes
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_cv_lib_c_sigwait=no
22868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22869 conftest$ac_exeext conftest.$ac_ext
22870 LIBS=$ac_check_lib_save_LIBS
22872 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
22873 echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6; }
22874 if test $ac_cv_lib_c_sigwait = yes; then
22875 cat >>confdefs.h <<\_ACEOF
22876 #define HAVE_SIGWAIT 1
22880 { echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
22881 echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6; }
22882 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 ac_check_lib_save_LIBS=$LIBS
22886 LIBS="-lpthread $LIBS"
22887 cat >conftest.$ac_ext <<_ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22894 /* Override any GCC internal prototype to avoid an error.
22895 Use char because int might match the return type of a GCC
22896 builtin and then its argument prototype would still apply. */
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22913 *) ac_try_echo
=$ac_try;;
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_link") 2>conftest.er1
22918 grep -v '^ *+' conftest.er1
>conftest.err
22920 cat conftest.err
>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } && {
22923 test -z "$ac_c_werror_flag" ||
22924 test ! -s conftest.err
22925 } && test -s conftest
$ac_exeext &&
22926 $as_test_x conftest
$ac_exeext; then
22927 ac_cv_lib_pthread_sigwait
=yes
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.
$ac_ext >&5
22932 ac_cv_lib_pthread_sigwait
=no
22935 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22936 conftest
$ac_exeext conftest.
$ac_ext
22937 LIBS
=$ac_check_lib_save_LIBS
22939 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
22940 echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6; }
22941 if test $ac_cv_lib_pthread_sigwait = yes; then
22942 cat >>confdefs.h
<<\_ACEOF
22943 #define HAVE_SIGWAIT 1
22947 { echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
22948 echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6; }
22949 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22952 ac_check_lib_save_LIBS
=$LIBS
22953 LIBS
="-lpthread $LIBS"
22954 cat >conftest.
$ac_ext <<_ACEOF
22957 cat confdefs.h
>>conftest.
$ac_ext
22958 cat >>conftest.
$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22961 /* Override any GCC internal prototype to avoid an error.
22962 Use char because int might match the return type of a GCC
22963 builtin and then its argument prototype would still apply. */
22971 return _Psigwait ();
22976 rm -f conftest.
$ac_objext conftest
$ac_exeext
22977 if { (ac_try
="$ac_link"
22978 case "(($ac_try" in
22979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_link") 2>conftest.er1
22985 grep -v '^ *+' conftest.er1 >conftest.err
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest$ac_exeext &&
22993 $as_test_x conftest$ac_exeext; then
22994 ac_cv_lib_pthread__Psigwait=yes
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 ac_cv_lib_pthread__Psigwait=no
23002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23003 conftest$ac_exeext conftest.$ac_ext
23004 LIBS=$ac_check_lib_save_LIBS
23006 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
23007 echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6; }
23008 if test $ac_cv_lib_pthread__Psigwait = yes; then
23009 cat >>confdefs.h <<\_ACEOF
23010 #define HAVE_SIGWAIT 1
23022 { echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
23023 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6; }
23024 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23027 cat >conftest.$ac_ext <<_ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h. */
23033 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
23034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23035 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
23037 /* System header to define __stub macros and hopefully few prototypes,
23038 which can conflict with char pthread_attr_getstacksize (); below.
23039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23040 <limits.h> exists even on freestanding compilers. */
23043 # include <limits.h>
23045 # include <assert.h>
23048 #undef pthread_attr_getstacksize
23050 /* Override any GCC internal prototype to avoid an error.
23051 Use char because int might match the return type of a GCC
23052 builtin and then its argument prototype would still apply. */
23056 char pthread_attr_getstacksize ();
23057 /* The GNU C library defines this for functions which it implements
23058 to always fail with ENOSYS. Some functions are actually named
23059 something starting with __ and the normal name is an alias. */
23060 #if defined __stub_pthread_attr_getstacksize || defined __stub___pthread_attr_getstacksize
23067 return pthread_attr_getstacksize ();
23072 rm -f conftest.$ac_objext conftest$ac_exeext
23073 if { (ac_try="$ac_link"
23074 case "(($ac_try" in
23075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23076 *) ac_try_echo
=$ac_try;;
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_link") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1
>conftest.err
23083 cat conftest.err
>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && {
23086 test -z "$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 } && test -s conftest
$ac_exeext &&
23089 $as_test_x conftest
$ac_exeext; then
23090 ac_cv_func_pthread_attr_getstacksize
=yes
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.
$ac_ext >&5
23095 ac_cv_func_pthread_attr_getstacksize
=no
23098 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23099 conftest
$ac_exeext conftest.
$ac_ext
23101 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
23102 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6; }
23103 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
23104 cat >>confdefs.h
<<\_ACEOF
23105 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
23112 # Additional OS-specific issues related to pthreads and sigwait.
23116 # One more place to look for sigwait.
23119 { echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
23120 echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6; }
23121 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 ac_check_lib_save_LIBS
=$LIBS
23126 cat >conftest.
$ac_ext <<_ACEOF
23129 cat confdefs.h
>>conftest.
$ac_ext
23130 cat >>conftest.
$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23133 /* Override any GCC internal prototype to avoid an error.
23134 Use char because int might match the return type of a GCC
23135 builtin and then its argument prototype would still apply. */
23148 rm -f conftest.
$ac_objext conftest
$ac_exeext
23149 if { (ac_try
="$ac_link"
23150 case "(($ac_try" in
23151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23152 *) ac_try_echo=$ac_try;;
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155 (eval "$ac_link") 2>conftest.er1
23157 grep -v '^ *+' conftest.er1 >conftest.err
23159 cat conftest.err >&5
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); } && {
23162 test -z "$ac_c_werror_flag" ||
23163 test ! -s conftest.err
23164 } && test -s conftest$ac_exeext &&
23165 $as_test_x conftest$ac_exeext; then
23166 ac_cv_lib_c_r_sigwait=yes
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ac_cv_lib_c_r_sigwait=no
23174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23175 conftest$ac_exeext conftest.$ac_ext
23176 LIBS=$ac_check_lib_save_LIBS
23178 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
23179 echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6; }
23180 if test $ac_cv_lib_c_r_sigwait = yes; then
23181 cat >>confdefs.h <<\_ACEOF
23182 #define HAVE_SIGWAIT 1
23189 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
23190 # called before certain pthreads calls. This is deprecated
23193 *-bsdi3.*|*-bsdi4.0*)
23194 cat >>confdefs.h <<\_ACEOF
23195 #define NEED_PTHREAD_INIT 1
23200 # LinuxThreads requires some changes to the way we
23201 # deal with signals.
23204 cat >>confdefs.h <<\_ACEOF
23205 #define HAVE_LINUXTHREADS 1
23210 # Ensure the right sigwait() semantics on Solaris and make
23211 # sure we call pthread_setconcurrency.
23214 cat >>confdefs.h <<\_ACEOF
23215 #define _POSIX_PTHREAD_SEMANTICS 1
23218 { echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
23219 echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6; }
23220 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23223 cat >conftest.$ac_ext <<_ACEOF
23226 cat confdefs.h >>conftest.$ac_ext
23227 cat >>conftest.$ac_ext <<_ACEOF
23228 /* end confdefs.h. */
23229 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
23230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23231 #define pthread_setconcurrency innocuous_pthread_setconcurrency
23233 /* System header to define __stub macros and hopefully few prototypes,
23234 which can conflict with char pthread_setconcurrency (); below.
23235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23236 <limits.h> exists even on freestanding compilers. */
23239 # include <limits.h>
23241 # include <assert.h>
23244 #undef pthread_setconcurrency
23246 /* Override any GCC internal prototype to avoid an error.
23247 Use char because int might match the return type of a GCC
23248 builtin and then its argument prototype would still apply. */
23252 char pthread_setconcurrency ();
23253 /* The GNU C library defines this for functions which it implements
23254 to always fail with ENOSYS. Some functions are actually named
23255 something starting with __ and the normal name is an alias. */
23256 #if defined __stub_pthread_setconcurrency || defined __stub___pthread_setconcurrency
23263 return pthread_setconcurrency ();
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23272 *) ac_try_echo
=$ac_try;;
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_link") 2>conftest.er1
23277 grep -v '^ *+' conftest.er1
>conftest.err
23279 cat conftest.err
>&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest
$ac_exeext &&
23285 $as_test_x conftest
$ac_exeext; then
23286 ac_cv_func_pthread_setconcurrency
=yes
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.
$ac_ext >&5
23291 ac_cv_func_pthread_setconcurrency
=no
23294 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23295 conftest
$ac_exeext conftest.
$ac_ext
23297 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
23298 echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6; }
23299 if test $ac_cv_func_pthread_setconcurrency = yes; then
23300 cat >>confdefs.h
<<\_ACEOF
23301 #define CALL_PTHREAD_SETCONCURRENCY 1
23306 cat >>confdefs.h
<<\_ACEOF
23307 #define POSIX_GETPWUID_R 1
23310 cat >>confdefs.h
<<\_ACEOF
23311 #define POSIX_GETPWNAM_R 1
23314 cat >>confdefs.h
<<\_ACEOF
23315 #define POSIX_GETGRGID_R 1
23318 cat >>confdefs.h
<<\_ACEOF
23319 #define POSIX_GETGRNAM_R 1
23324 cat >>confdefs.h
<<\_ACEOF
23325 #define NEED_ENDNETGRENT_R 1
23328 cat >>confdefs.h
<<\_ACEOF
23329 #define _PTHREADS_DRAFT4 1
23334 # UnixWare does things its own way.
23337 cat >>confdefs.h
<<\_ACEOF
23338 #define HAVE_UNIXWARE_SIGWAIT 1
23345 # Look for sysconf to allow detection of the number of processors.
23347 { echo "$as_me:$LINENO: checking for sysconf" >&5
23348 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
23349 if test "${ac_cv_func_sysconf+set}" = set; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 cat >conftest.
$ac_ext <<_ACEOF
23355 cat confdefs.h
>>conftest.
$ac_ext
23356 cat >>conftest.
$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23358 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
23359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23360 #define sysconf innocuous_sysconf
23362 /* System header to define __stub macros and hopefully few prototypes,
23363 which can conflict with char sysconf (); below.
23364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23365 <limits.h> exists even on freestanding compilers. */
23368 # include <limits.h>
23370 # include <assert.h>
23375 /* Override any GCC internal prototype to avoid an error.
23376 Use char because int might match the return type of a GCC
23377 builtin and then its argument prototype would still apply. */
23382 /* The GNU C library defines this for functions which it implements
23383 to always fail with ENOSYS. Some functions are actually named
23384 something starting with __ and the normal name is an alias. */
23385 #if defined __stub_sysconf || defined __stub___sysconf
23397 rm -f conftest.
$ac_objext conftest
$ac_exeext
23398 if { (ac_try
="$ac_link"
23399 case "(($ac_try" in
23400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_link") 2>conftest.er1
23406 grep -v '^ *+' conftest.er1 >conftest.err
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } && {
23411 test -z "$ac_c_werror_flag" ||
23412 test ! -s conftest.err
23413 } && test -s conftest$ac_exeext &&
23414 $as_test_x conftest$ac_exeext; then
23415 ac_cv_func_sysconf=yes
23417 echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23420 ac_cv_func_sysconf=no
23423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23424 conftest$ac_exeext conftest.$ac_ext
23426 { echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
23427 echo "${ECHO_T}$ac_cv_func_sysconf" >&6; }
23428 if test $ac_cv_func_sysconf = yes; then
23429 cat >>confdefs.h <<\_ACEOF
23430 #define HAVE_SYSCONF 1
23438 DO_PTHREADS="#undef DO_PTHREADS"
23439 WANT_IRS_THREADSGR_OBJS=""
23440 WANT_IRS_THREADSPW_OBJS=""
23441 WANT_IRS_THREADS_OBJS=""
23442 WANT_THREADS_OBJS=""
23443 thread_dir=nothreads
23453 { echo "$as_me:$LINENO: checking for strlcat" >&5
23454 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
23455 if test "${ac_cv_func_strlcat+set}" = set; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
23465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23466 #define strlcat innocuous_strlcat
23468 /* System header to define __stub macros and hopefully few prototypes,
23469 which can conflict with char strlcat (); below.
23470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23471 <limits.h> exists even on freestanding compilers. */
23474 # include <limits.h>
23476 # include <assert.h>
23481 /* Override any GCC internal prototype to avoid an error.
23482 Use char because int might match the return type of a GCC
23483 builtin and then its argument prototype would still apply. */
23488 /* The GNU C library defines this for functions which it implements
23489 to always fail with ENOSYS. Some functions are actually named
23490 something starting with __ and the normal name is an alias. */
23491 #if defined __stub_strlcat || defined __stub___strlcat
23503 rm -f conftest.$ac_objext conftest$ac_exeext
23504 if { (ac_try="$ac_link"
23505 case "(($ac_try" in
23506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23507 *) ac_try_echo
=$ac_try;;
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_link") 2>conftest.er1
23512 grep -v '^ *+' conftest.er1
>conftest.err
23514 cat conftest.err
>&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); } && {
23517 test -z "$ac_c_werror_flag" ||
23518 test ! -s conftest.err
23519 } && test -s conftest
$ac_exeext &&
23520 $as_test_x conftest
$ac_exeext; then
23521 ac_cv_func_strlcat
=yes
23523 echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.
$ac_ext >&5
23526 ac_cv_func_strlcat
=no
23529 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23530 conftest
$ac_exeext conftest.
$ac_ext
23532 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
23533 echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
23534 if test $ac_cv_func_strlcat = yes; then
23535 cat >>confdefs.h
<<\_ACEOF
23536 #define HAVE_STRLCAT 1
23541 { echo "$as_me:$LINENO: checking for memmove" >&5
23542 echo $ECHO_N "checking for memmove... $ECHO_C" >&6; }
23543 if test "${ac_cv_func_memmove+set}" = set; then
23544 echo $ECHO_N "(cached) $ECHO_C" >&6
23546 cat >conftest.
$ac_ext <<_ACEOF
23549 cat confdefs.h
>>conftest.
$ac_ext
23550 cat >>conftest.
$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23552 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
23553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23554 #define memmove innocuous_memmove
23556 /* System header to define __stub macros and hopefully few prototypes,
23557 which can conflict with char memmove (); below.
23558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23559 <limits.h> exists even on freestanding compilers. */
23562 # include <limits.h>
23564 # include <assert.h>
23569 /* Override any GCC internal prototype to avoid an error.
23570 Use char because int might match the return type of a GCC
23571 builtin and then its argument prototype would still apply. */
23576 /* The GNU C library defines this for functions which it implements
23577 to always fail with ENOSYS. Some functions are actually named
23578 something starting with __ and the normal name is an alias. */
23579 #if defined __stub_memmove || defined __stub___memmove
23591 rm -f conftest.
$ac_objext conftest
$ac_exeext
23592 if { (ac_try
="$ac_link"
23593 case "(($ac_try" in
23594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23595 *) ac_try_echo=$ac_try;;
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598 (eval "$ac_link") 2>conftest.er1
23600 grep -v '^ *+' conftest.er1 >conftest.err
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && {
23605 test -z "$ac_c_werror_flag" ||
23606 test ! -s conftest.err
23607 } && test -s conftest$ac_exeext &&
23608 $as_test_x conftest$ac_exeext; then
23609 ac_cv_func_memmove=yes
23611 echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23614 ac_cv_func_memmove=no
23617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23618 conftest$ac_exeext conftest.$ac_ext
23620 { echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
23621 echo "${ECHO_T}$ac_cv_func_memmove" >&6; }
23622 if test $ac_cv_func_memmove = yes; then
23623 cat >>confdefs.h <<\_ACEOF
23624 #define HAVE_MEMMOVE 1
23629 { echo "$as_me:$LINENO: checking for memchr" >&5
23630 echo $ECHO_N "checking for memchr... $ECHO_C" >&6; }
23631 if test "${ac_cv_func_memchr+set}" = set; then
23632 echo $ECHO_N "(cached) $ECHO_C" >&6
23634 cat >conftest.$ac_ext <<_ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23640 /* Define memchr to an innocuous variant, in case <limits.h> declares memchr.
23641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23642 #define memchr innocuous_memchr
23644 /* System header to define __stub macros and hopefully few prototypes,
23645 which can conflict with char memchr (); below.
23646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23647 <limits.h> exists even on freestanding compilers. */
23650 # include <limits.h>
23652 # include <assert.h>
23657 /* Override any GCC internal prototype to avoid an error.
23658 Use char because int might match the return type of a GCC
23659 builtin and then its argument prototype would still apply. */
23664 /* The GNU C library defines this for functions which it implements
23665 to always fail with ENOSYS. Some functions are actually named
23666 something starting with __ and the normal name is an alias. */
23667 #if defined __stub_memchr || defined __stub___memchr
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (ac_try="$ac_link"
23681 case "(($ac_try" in
23682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23683 *) ac_try_echo
=$ac_try;;
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686 (eval "$ac_link") 2>conftest.er1
23688 grep -v '^ *+' conftest.er1
>conftest.err
23690 cat conftest.err
>&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); } && {
23693 test -z "$ac_c_werror_flag" ||
23694 test ! -s conftest.err
23695 } && test -s conftest
$ac_exeext &&
23696 $as_test_x conftest
$ac_exeext; then
23697 ac_cv_func_memchr
=yes
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.
$ac_ext >&5
23702 ac_cv_func_memchr
=no
23705 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23706 conftest
$ac_exeext conftest.
$ac_ext
23708 { echo "$as_me:$LINENO: result: $ac_cv_func_memchr" >&5
23709 echo "${ECHO_T}$ac_cv_func_memchr" >&6; }
23710 if test $ac_cv_func_memchr = yes; then
23711 cat >>confdefs.h
<<\_ACEOF
23712 #define HAVE_MEMCHR 1
23717 { echo "$as_me:$LINENO: checking for strtoul" >&5
23718 echo $ECHO_N "checking for strtoul... $ECHO_C" >&6; }
23719 if test "${ac_cv_func_strtoul+set}" = set; then
23720 echo $ECHO_N "(cached) $ECHO_C" >&6
23722 cat >conftest.
$ac_ext <<_ACEOF
23725 cat confdefs.h
>>conftest.
$ac_ext
23726 cat >>conftest.
$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23728 /* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul.
23729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23730 #define strtoul innocuous_strtoul
23732 /* System header to define __stub macros and hopefully few prototypes,
23733 which can conflict with char strtoul (); below.
23734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23735 <limits.h> exists even on freestanding compilers. */
23738 # include <limits.h>
23740 # include <assert.h>
23745 /* Override any GCC internal prototype to avoid an error.
23746 Use char because int might match the return type of a GCC
23747 builtin and then its argument prototype would still apply. */
23752 /* The GNU C library defines this for functions which it implements
23753 to always fail with ENOSYS. Some functions are actually named
23754 something starting with __ and the normal name is an alias. */
23755 #if defined __stub_strtoul || defined __stub___strtoul
23767 rm -f conftest.
$ac_objext conftest
$ac_exeext
23768 if { (ac_try
="$ac_link"
23769 case "(($ac_try" in
23770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_link") 2>conftest.er1
23776 grep -v '^ *+' conftest.er1 >conftest.err
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } && {
23781 test -z "$ac_c_werror_flag" ||
23782 test ! -s conftest.err
23783 } && test -s conftest$ac_exeext &&
23784 $as_test_x conftest$ac_exeext; then
23785 ac_cv_func_strtoul=yes
23787 echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23790 ac_cv_func_strtoul=no
23793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23794 conftest$ac_exeext conftest.$ac_ext
23796 { echo "$as_me:$LINENO: result: $ac_cv_func_strtoul" >&5
23797 echo "${ECHO_T}$ac_cv_func_strtoul" >&6; }
23798 if test $ac_cv_func_strtoul = yes; then
23801 cat >>confdefs.h <<\_ACEOF
23802 #define NEED_STRTOUL 1
23808 { echo "$as_me:$LINENO: checking for if_nametoindex" >&5
23809 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6; }
23810 if test "${ac_cv_func_if_nametoindex+set}" = set; then
23811 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 cat >conftest.$ac_ext <<_ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
23820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23821 #define if_nametoindex innocuous_if_nametoindex
23823 /* System header to define __stub macros and hopefully few prototypes,
23824 which can conflict with char if_nametoindex (); below.
23825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23826 <limits.h> exists even on freestanding compilers. */
23829 # include <limits.h>
23831 # include <assert.h>
23834 #undef if_nametoindex
23836 /* Override any GCC internal prototype to avoid an error.
23837 Use char because int might match the return type of a GCC
23838 builtin and then its argument prototype would still apply. */
23842 char if_nametoindex ();
23843 /* The GNU C library defines this for functions which it implements
23844 to always fail with ENOSYS. Some functions are actually named
23845 something starting with __ and the normal name is an alias. */
23846 #if defined __stub_if_nametoindex || defined __stub___if_nametoindex
23853 return if_nametoindex ();
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (ac_try="$ac_link"
23860 case "(($ac_try" in
23861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23862 *) ac_try_echo
=$ac_try;;
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_link") 2>conftest.er1
23867 grep -v '^ *+' conftest.er1
>conftest.err
23869 cat conftest.err
>&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } && {
23872 test -z "$ac_c_werror_flag" ||
23873 test ! -s conftest.err
23874 } && test -s conftest
$ac_exeext &&
23875 $as_test_x conftest
$ac_exeext; then
23876 ac_cv_func_if_nametoindex
=yes
23878 echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.
$ac_ext >&5
23881 ac_cv_func_if_nametoindex
=no
23884 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23885 conftest
$ac_exeext conftest.
$ac_ext
23887 { echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
23888 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6; }
23889 if test $ac_cv_func_if_nametoindex = yes; then
23890 USE_IFNAMELINKID
="#define USE_IFNAMELINKID 1"
23892 USE_IFNAMELINKID
="#undef USE_IFNAMELINKID"
23897 ISC_THREAD_DIR
=$thread_dir
23900 { echo "$as_me:$LINENO: checking for daemon" >&5
23901 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
23902 if test "${ac_cv_func_daemon+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 cat >conftest.
$ac_ext <<_ACEOF
23908 cat confdefs.h
>>conftest.
$ac_ext
23909 cat >>conftest.
$ac_ext <<_ACEOF
23910 /* end confdefs.h. */
23911 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
23912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23913 #define daemon innocuous_daemon
23915 /* System header to define __stub macros and hopefully few prototypes,
23916 which can conflict with char daemon (); below.
23917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23918 <limits.h> exists even on freestanding compilers. */
23921 # include <limits.h>
23923 # include <assert.h>
23928 /* Override any GCC internal prototype to avoid an error.
23929 Use char because int might match the return type of a GCC
23930 builtin and then its argument prototype would still apply. */
23935 /* The GNU C library defines this for functions which it implements
23936 to always fail with ENOSYS. Some functions are actually named
23937 something starting with __ and the normal name is an alias. */
23938 #if defined __stub_daemon || defined __stub___daemon
23950 rm -f conftest.
$ac_objext conftest
$ac_exeext
23951 if { (ac_try
="$ac_link"
23952 case "(($ac_try" in
23953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_link") 2>conftest.er1
23959 grep -v '^ *+' conftest.er1 >conftest.err
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest$ac_exeext &&
23967 $as_test_x conftest$ac_exeext; then
23968 ac_cv_func_daemon=yes
23970 echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23973 ac_cv_func_daemon=no
23976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23977 conftest$ac_exeext conftest.$ac_ext
23979 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
23980 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
23981 if test $ac_cv_func_daemon = yes; then
23982 DAEMON_OBJS="" NEED_DAEMON="#undef NEED_DAEMON"
23985 DAEMON_OBJS="\${DAEMON_OBJS}" NEED_DAEMON="#define NEED_DAEMON 1"
23992 { echo "$as_me:$LINENO: checking for strsep" >&5
23993 echo $ECHO_N "checking for strsep... $ECHO_C" >&6; }
23994 if test "${ac_cv_func_strsep+set}" = set; then
23995 echo $ECHO_N "(cached) $ECHO_C" >&6
23997 cat >conftest.$ac_ext <<_ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24003 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
24004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24005 #define strsep innocuous_strsep
24007 /* System header to define __stub macros and hopefully few prototypes,
24008 which can conflict with char strsep (); below.
24009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24010 <limits.h> exists even on freestanding compilers. */
24013 # include <limits.h>
24015 # include <assert.h>
24020 /* Override any GCC internal prototype to avoid an error.
24021 Use char because int might match the return type of a GCC
24022 builtin and then its argument prototype would still apply. */
24027 /* The GNU C library defines this for functions which it implements
24028 to always fail with ENOSYS. Some functions are actually named
24029 something starting with __ and the normal name is an alias. */
24030 #if defined __stub_strsep || defined __stub___strsep
24042 rm -f conftest.$ac_objext conftest$ac_exeext
24043 if { (ac_try="$ac_link"
24044 case "(($ac_try" in
24045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24046 *) ac_try_echo
=$ac_try;;
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_link") 2>conftest.er1
24051 grep -v '^ *+' conftest.er1
>conftest.err
24053 cat conftest.err
>&5
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } && {
24056 test -z "$ac_c_werror_flag" ||
24057 test ! -s conftest.err
24058 } && test -s conftest
$ac_exeext &&
24059 $as_test_x conftest
$ac_exeext; then
24060 ac_cv_func_strsep
=yes
24062 echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.
$ac_ext >&5
24065 ac_cv_func_strsep
=no
24068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24069 conftest
$ac_exeext conftest.
$ac_ext
24071 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
24072 echo "${ECHO_T}$ac_cv_func_strsep" >&6; }
24073 if test $ac_cv_func_strsep = yes; then
24074 STRSEP_OBJS
="" NEED_STRSEP
="#undef NEED_STRSEP"
24077 STRSEP_OBJS
="\${STRSEP_OBJS}" NEED_STRSEP
="#define NEED_STRSEP 1"
24084 { echo "$as_me:$LINENO: checking for strerror" >&5
24085 echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
24086 if test "${ac_cv_func_strerror+set}" = set; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24089 cat >conftest.
$ac_ext <<_ACEOF
24092 cat confdefs.h
>>conftest.
$ac_ext
24093 cat >>conftest.
$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24095 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
24096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24097 #define strerror innocuous_strerror
24099 /* System header to define __stub macros and hopefully few prototypes,
24100 which can conflict with char strerror (); below.
24101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24102 <limits.h> exists even on freestanding compilers. */
24105 # include <limits.h>
24107 # include <assert.h>
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24119 /* The GNU C library defines this for functions which it implements
24120 to always fail with ENOSYS. Some functions are actually named
24121 something starting with __ and the normal name is an alias. */
24122 #if defined __stub_strerror || defined __stub___strerror
24129 return strerror ();
24134 rm -f conftest.
$ac_objext conftest
$ac_exeext
24135 if { (ac_try
="$ac_link"
24136 case "(($ac_try" in
24137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24138 *) ac_try_echo=$ac_try;;
24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141 (eval "$ac_link") 2>conftest.er1
24143 grep -v '^ *+' conftest.er1 >conftest.err
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } && {
24148 test -z "$ac_c_werror_flag" ||
24149 test ! -s conftest.err
24150 } && test -s conftest$ac_exeext &&
24151 $as_test_x conftest$ac_exeext; then
24152 ac_cv_func_strerror=yes
24154 echo "$as_me: failed program was:" >&5
24155 sed 's/^/| /' conftest.$ac_ext >&5
24157 ac_cv_func_strerror=no
24160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24161 conftest$ac_exeext conftest.$ac_ext
24163 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
24164 echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
24165 if test $ac_cv_func_strerror = yes; then
24166 NEED_STRERROR="#undef NEED_STRERROR"
24168 NEED_STRERROR="#define NEED_STRERROR 1"
24173 if test -n "$NEED_STRERROR"
24175 { echo "$as_me:$LINENO: checking for extern char * sys_errlist" >&5
24176 echo $ECHO_N "checking for extern char * sys_errlist... $ECHO_C" >&6; }
24177 cat >conftest.$ac_ext <<_ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h. */
24183 extern int sys_nerr; extern char *sys_errlist[];
24187 const char *p = sys_errlist[0];
24192 rm -f conftest.$ac_objext conftest$ac_exeext
24193 if { (ac_try="$ac_link"
24194 case "(($ac_try" in
24195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24196 *) ac_try_echo
=$ac_try;;
24198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24199 (eval "$ac_link") 2>conftest.er1
24201 grep -v '^ *+' conftest.er1
>conftest.err
24203 cat conftest.err
>&5
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); } && {
24206 test -z "$ac_c_werror_flag" ||
24207 test ! -s conftest.err
24208 } && test -s conftest
$ac_exeext &&
24209 $as_test_x conftest
$ac_exeext; then
24210 { echo "$as_me:$LINENO: result: yes" >&5
24211 echo "${ECHO_T}yes" >&6; }
24212 cat >>confdefs.h
<<\_ACEOF
24213 #define USE_SYSERROR_LIST 1
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.
$ac_ext >&5
24220 { echo "$as_me:$LINENO: result: no" >&5
24221 echo "${ECHO_T}no" >&6; }
24224 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24225 conftest
$ac_exeext conftest.
$ac_ext
24229 # flockfile is usually provided by pthreads, but we may want to use it
24230 # even if compiled with --disable-threads.
24232 { echo "$as_me:$LINENO: checking for flockfile" >&5
24233 echo $ECHO_N "checking for flockfile... $ECHO_C" >&6; }
24234 if test "${ac_cv_func_flockfile+set}" = set; then
24235 echo $ECHO_N "(cached) $ECHO_C" >&6
24237 cat >conftest.
$ac_ext <<_ACEOF
24240 cat confdefs.h
>>conftest.
$ac_ext
24241 cat >>conftest.
$ac_ext <<_ACEOF
24242 /* end confdefs.h. */
24243 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
24244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24245 #define flockfile innocuous_flockfile
24247 /* System header to define __stub macros and hopefully few prototypes,
24248 which can conflict with char flockfile (); below.
24249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24250 <limits.h> exists even on freestanding compilers. */
24253 # include <limits.h>
24255 # include <assert.h>
24260 /* Override any GCC internal prototype to avoid an error.
24261 Use char because int might match the return type of a GCC
24262 builtin and then its argument prototype would still apply. */
24267 /* The GNU C library defines this for functions which it implements
24268 to always fail with ENOSYS. Some functions are actually named
24269 something starting with __ and the normal name is an alias. */
24270 #if defined __stub_flockfile || defined __stub___flockfile
24277 return flockfile ();
24282 rm -f conftest.
$ac_objext conftest
$ac_exeext
24283 if { (ac_try
="$ac_link"
24284 case "(($ac_try" in
24285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289 (eval "$ac_link") 2>conftest.er1
24291 grep -v '^ *+' conftest.er1 >conftest.err
24293 cat conftest.err >&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest$ac_exeext &&
24299 $as_test_x conftest$ac_exeext; then
24300 ac_cv_func_flockfile=yes
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 ac_cv_func_flockfile=no
24308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24309 conftest$ac_exeext conftest.$ac_ext
24311 { echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
24312 echo "${ECHO_T}$ac_cv_func_flockfile" >&6; }
24313 if test $ac_cv_func_flockfile = yes; then
24314 cat >>confdefs.h <<\_ACEOF
24315 #define HAVE_FLOCKFILE 1
24322 # Indicate what the final decision was regarding threads.
24324 { echo "$as_me:$LINENO: checking whether to build with threads" >&5
24325 echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6; }
24326 if $use_threads; then
24327 { echo "$as_me:$LINENO: result: yes" >&5
24328 echo "${ECHO_T}yes" >&6; }
24330 { echo "$as_me:$LINENO: result: no" >&5
24331 echo "${ECHO_T}no" >&6; }
24335 # End of pthreads stuff.
24339 # Additional compiler settings.
24343 IRIX_DNSSEC_WARNINGS_HACK=""
24345 if test "X$GCC" = "Xyes"; then
24346 { echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5
24347 echo $ECHO_N "checking if \"$CC\" supports -fno-strict-aliasing... $ECHO_C" >&6; }
24348 SAVE_CFLAGS=$CFLAGS
24349 CFLAGS=-fno-strict-aliasing
24350 cat >conftest.$ac_ext <<_ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24369 *) ac_try_echo
=$ac_try;;
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_compile") 2>conftest.er1
24374 grep -v '^ *+' conftest.er1
>conftest.err
24376 cat conftest.err
>&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && {
24379 test -z "$ac_c_werror_flag" ||
24380 test ! -s conftest.err
24381 } && test -s conftest.
$ac_objext; then
24382 FNOSTRICTALIASING
=yes
24384 echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.
$ac_ext >&5
24387 FNOSTRICTALIASING
=no
24390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24391 CFLAGS
=$SAVE_CFLAGS
24392 if test "$FNOSTRICTALIASING" = "yes"; then
24393 { echo "$as_me:$LINENO: result: yes" >&5
24394 echo "${ECHO_T}yes" >&6; }
24395 STD_CWARNINGS
="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
24397 { echo "$as_me:$LINENO: result: no" >&5
24398 echo "${ECHO_T}no" >&6; }
24399 STD_CWARNINGS
="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
24405 CCOPT
="$CCOPT -std"
24410 # The version of the C compiler that constantly warns about
24411 # 'const' as well as alignment issues is unfortunately not
24412 # able to be discerned via the version of the operating
24413 # system, nor does cc have a version flag.
24414 case "`$CC +W 123 2>&1`" in
24416 STD_CWARNINGS
="+w1"
24419 # Turn off the pointlessly noisy warnings.
24420 STD_CWARNINGS
="+w1 +W 474,530,2193,2236"
24423 CCOPT
="$CCOPT -Ae -z"
24424 LIBS
="-Wl,+vnocompatwarnings $LIBS"
24425 MKDEPPROG
='cc -Ae -E -Wp,-M >/dev/null 2>&1 | awk '"'"'BEGIN {colon=0; rec="";} { for (i = 0 ; i < NF; i++) { if (colon && a$i) continue; if ($i == "\\") continue; if (!colon) { rec = $i continue; } if ($i == ":") { rec = rec " :" colon = 1 continue; } if (length(rec $i) > 76) { print rec " \\"; rec = "\t" $i; a$i = 1; } else { rec = rec " " $i a$i = 1; } } } END {print rec}'"'"' >>$TMP'
24426 MKDEPPROG
='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
24429 STD_CWARNINGS
="-fullwarn -woff 1209"
24431 # Silence more than 250 instances of
24432 # "prototyped function redeclared without prototype"
24433 # and 11 instances of
24434 # "variable ... was set but never used"
24435 # from lib/dns/sec/openssl.
24437 IRIX_DNSSEC_WARNINGS_HACK
="-woff 1692,1552"
24449 # _GNU_SOURCE is needed to access the fd_bits field of struct fd_set, which
24450 # is supposed to be opaque.
24454 STD_CDEFINES
="$STD_CDEFINES -D_GNU_SOURCE"
24466 { echo "$as_me:$LINENO: checking for catgets" >&5
24467 echo $ECHO_N "checking for catgets... $ECHO_C" >&6; }
24468 if test "${ac_cv_func_catgets+set}" = set; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24471 cat >conftest.
$ac_ext <<_ACEOF
24474 cat confdefs.h
>>conftest.
$ac_ext
24475 cat >>conftest.
$ac_ext <<_ACEOF
24476 /* end confdefs.h. */
24477 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
24478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24479 #define catgets innocuous_catgets
24481 /* System header to define __stub macros and hopefully few prototypes,
24482 which can conflict with char catgets (); below.
24483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24484 <limits.h> exists even on freestanding compilers. */
24487 # include <limits.h>
24489 # include <assert.h>
24494 /* Override any GCC internal prototype to avoid an error.
24495 Use char because int might match the return type of a GCC
24496 builtin and then its argument prototype would still apply. */
24501 /* The GNU C library defines this for functions which it implements
24502 to always fail with ENOSYS. Some functions are actually named
24503 something starting with __ and the normal name is an alias. */
24504 #if defined __stub_catgets || defined __stub___catgets
24516 rm -f conftest.
$ac_objext conftest
$ac_exeext
24517 if { (ac_try
="$ac_link"
24518 case "(($ac_try" in
24519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523 (eval "$ac_link") 2>conftest.er1
24525 grep -v '^ *+' conftest.er1 >conftest.err
24527 cat conftest.err >&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && {
24530 test -z "$ac_c_werror_flag" ||
24531 test ! -s conftest.err
24532 } && test -s conftest$ac_exeext &&
24533 $as_test_x conftest$ac_exeext; then
24534 ac_cv_func_catgets=yes
24536 echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24539 ac_cv_func_catgets=no
24542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24543 conftest$ac_exeext conftest.$ac_ext
24545 { echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
24546 echo "${ECHO_T}$ac_cv_func_catgets" >&6; }
24547 if test $ac_cv_func_catgets = yes; then
24548 cat >>confdefs.h <<\_ACEOF
24549 #define HAVE_CATGETS 1
24556 # -lxnet buys us one big porting headache... standards, gotta love 'em.
24558 # AC_CHECK_LIB(xnet, socket, ,
24559 # AC_CHECK_LIB(socket, socket)
24560 # AC_CHECK_LIB(nsl, inet_ntoa)
24563 # Use this for now, instead:
24570 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
24571 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
24572 if test "${ac_cv_lib_socket_socket+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24575 ac_check_lib_save_LIBS=$LIBS
24576 LIBS="-lsocket $LIBS"
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24584 /* Override any GCC internal prototype to avoid an error.
24585 Use char because int might match the return type of a GCC
24586 builtin and then its argument prototype would still apply. */
24599 rm -f conftest.$ac_objext conftest$ac_exeext
24600 if { (ac_try="$ac_link"
24601 case "(($ac_try" in
24602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24603 *) ac_try_echo
=$ac_try;;
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606 (eval "$ac_link") 2>conftest.er1
24608 grep -v '^ *+' conftest.er1
>conftest.err
24610 cat conftest.err
>&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); } && {
24613 test -z "$ac_c_werror_flag" ||
24614 test ! -s conftest.err
24615 } && test -s conftest
$ac_exeext &&
24616 $as_test_x conftest
$ac_exeext; then
24617 ac_cv_lib_socket_socket
=yes
24619 echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.
$ac_ext >&5
24622 ac_cv_lib_socket_socket
=no
24625 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24626 conftest
$ac_exeext conftest.
$ac_ext
24627 LIBS
=$ac_check_lib_save_LIBS
24629 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
24630 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
24631 if test $ac_cv_lib_socket_socket = yes; then
24632 cat >>confdefs.h
<<_ACEOF
24633 #define HAVE_LIBSOCKET 1
24636 LIBS
="-lsocket $LIBS"
24641 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
24642 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
24643 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 ac_check_lib_save_LIBS
=$LIBS
24648 cat >conftest.
$ac_ext <<_ACEOF
24651 cat confdefs.h
>>conftest.
$ac_ext
24652 cat >>conftest.
$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24655 /* Override any GCC internal prototype to avoid an error.
24656 Use char because int might match the return type of a GCC
24657 builtin and then its argument prototype would still apply. */
24665 return inet_ntoa ();
24670 rm -f conftest.
$ac_objext conftest
$ac_exeext
24671 if { (ac_try
="$ac_link"
24672 case "(($ac_try" in
24673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_link") 2>conftest.er1
24679 grep -v '^ *+' conftest.er1 >conftest.err
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && {
24684 test -z "$ac_c_werror_flag" ||
24685 test ! -s conftest.err
24686 } && test -s conftest$ac_exeext &&
24687 $as_test_x conftest$ac_exeext; then
24688 ac_cv_lib_nsl_inet_ntoa=yes
24690 echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24693 ac_cv_lib_nsl_inet_ntoa=no
24696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24697 conftest$ac_exeext conftest.$ac_ext
24698 LIBS=$ac_check_lib_save_LIBS
24700 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
24701 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
24702 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
24703 cat >>confdefs.h <<_ACEOF
24704 #define HAVE_LIBNSL 1
24714 { echo "$as_me:$LINENO: checking for gethostbyname_r in -ld4r" >&5
24715 echo $ECHO_N "checking for gethostbyname_r in -ld4r... $ECHO_C" >&6; }
24716 if test "${ac_cv_lib_d4r_gethostbyname_r+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24719 ac_check_lib_save_LIBS=$LIBS
24721 cat >conftest.$ac_ext <<_ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h. */
24728 /* Override any GCC internal prototype to avoid an error.
24729 Use char because int might match the return type of a GCC
24730 builtin and then its argument prototype would still apply. */
24734 char gethostbyname_r ();
24738 return gethostbyname_r ();
24743 rm -f conftest.$ac_objext conftest$ac_exeext
24744 if { (ac_try="$ac_link"
24745 case "(($ac_try" in
24746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24747 *) ac_try_echo
=$ac_try;;
24749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24750 (eval "$ac_link") 2>conftest.er1
24752 grep -v '^ *+' conftest.er1
>conftest.err
24754 cat conftest.err
>&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } && {
24757 test -z "$ac_c_werror_flag" ||
24758 test ! -s conftest.err
24759 } && test -s conftest
$ac_exeext &&
24760 $as_test_x conftest
$ac_exeext; then
24761 ac_cv_lib_d4r_gethostbyname_r
=yes
24763 echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.
$ac_ext >&5
24766 ac_cv_lib_d4r_gethostbyname_r
=no
24769 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24770 conftest
$ac_exeext conftest.
$ac_ext
24771 LIBS
=$ac_check_lib_save_LIBS
24773 { echo "$as_me:$LINENO: result: $ac_cv_lib_d4r_gethostbyname_r" >&5
24774 echo "${ECHO_T}$ac_cv_lib_d4r_gethostbyname_r" >&6; }
24775 if test $ac_cv_lib_d4r_gethostbyname_r = yes; then
24776 cat >>confdefs.h
<<_ACEOF
24777 #define HAVE_LIBD4R 1
24785 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
24786 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
24787 if test "${ac_cv_lib_socket_socket+set}" = set; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24790 ac_check_lib_save_LIBS
=$LIBS
24791 LIBS
="-lsocket $LIBS"
24792 cat >conftest.
$ac_ext <<_ACEOF
24795 cat confdefs.h
>>conftest.
$ac_ext
24796 cat >>conftest.
$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24799 /* Override any GCC internal prototype to avoid an error.
24800 Use char because int might match the return type of a GCC
24801 builtin and then its argument prototype would still apply. */
24814 rm -f conftest.
$ac_objext conftest
$ac_exeext
24815 if { (ac_try
="$ac_link"
24816 case "(($ac_try" in
24817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24818 *) ac_try_echo=$ac_try;;
24820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24821 (eval "$ac_link") 2>conftest.er1
24823 grep -v '^ *+' conftest.er1 >conftest.err
24825 cat conftest.err >&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } && {
24828 test -z "$ac_c_werror_flag" ||
24829 test ! -s conftest.err
24830 } && test -s conftest$ac_exeext &&
24831 $as_test_x conftest$ac_exeext; then
24832 ac_cv_lib_socket_socket=yes
24834 echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24837 ac_cv_lib_socket_socket=no
24840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24841 conftest$ac_exeext conftest.$ac_ext
24842 LIBS=$ac_check_lib_save_LIBS
24844 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
24845 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
24846 if test $ac_cv_lib_socket_socket = yes; then
24847 cat >>confdefs.h <<_ACEOF
24848 #define HAVE_LIBSOCKET 1
24851 LIBS="-lsocket $LIBS"
24855 { echo "$as_me:$LINENO: checking for inet_ntoa" >&5
24856 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6; }
24857 if test "${ac_cv_func_inet_ntoa+set}" = set; then
24858 echo $ECHO_N "(cached) $ECHO_C" >&6
24860 cat >conftest.$ac_ext <<_ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24866 /* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
24867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24868 #define inet_ntoa innocuous_inet_ntoa
24870 /* System header to define __stub macros and hopefully few prototypes,
24871 which can conflict with char inet_ntoa (); below.
24872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24873 <limits.h> exists even on freestanding compilers. */
24876 # include <limits.h>
24878 # include <assert.h>
24883 /* Override any GCC internal prototype to avoid an error.
24884 Use char because int might match the return type of a GCC
24885 builtin and then its argument prototype would still apply. */
24890 /* The GNU C library defines this for functions which it implements
24891 to always fail with ENOSYS. Some functions are actually named
24892 something starting with __ and the normal name is an alias. */
24893 #if defined __stub_inet_ntoa || defined __stub___inet_ntoa
24900 return inet_ntoa ();
24905 rm -f conftest.$ac_objext conftest$ac_exeext
24906 if { (ac_try="$ac_link"
24907 case "(($ac_try" in
24908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24909 *) ac_try_echo
=$ac_try;;
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912 (eval "$ac_link") 2>conftest.er1
24914 grep -v '^ *+' conftest.er1
>conftest.err
24916 cat conftest.err
>&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } && {
24919 test -z "$ac_c_werror_flag" ||
24920 test ! -s conftest.err
24921 } && test -s conftest
$ac_exeext &&
24922 $as_test_x conftest
$ac_exeext; then
24923 ac_cv_func_inet_ntoa
=yes
24925 echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.
$ac_ext >&5
24928 ac_cv_func_inet_ntoa
=no
24931 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24932 conftest
$ac_exeext conftest.
$ac_ext
24934 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
24935 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6; }
24936 if test $ac_cv_func_inet_ntoa = yes; then
24940 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
24941 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
24942 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
24943 echo $ECHO_N "(cached) $ECHO_C" >&6
24945 ac_check_lib_save_LIBS
=$LIBS
24947 cat >conftest.
$ac_ext <<_ACEOF
24950 cat confdefs.h
>>conftest.
$ac_ext
24951 cat >>conftest.
$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24954 /* Override any GCC internal prototype to avoid an error.
24955 Use char because int might match the return type of a GCC
24956 builtin and then its argument prototype would still apply. */
24964 return inet_ntoa ();
24969 rm -f conftest.
$ac_objext conftest
$ac_exeext
24970 if { (ac_try
="$ac_link"
24971 case "(($ac_try" in
24972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_link") 2>conftest.er1
24978 grep -v '^ *+' conftest.er1 >conftest.err
24980 cat conftest.err >&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } && {
24983 test -z "$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24985 } && test -s conftest$ac_exeext &&
24986 $as_test_x conftest$ac_exeext; then
24987 ac_cv_lib_nsl_inet_ntoa=yes
24989 echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24992 ac_cv_lib_nsl_inet_ntoa=no
24995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24996 conftest$ac_exeext conftest.$ac_ext
24997 LIBS=$ac_check_lib_save_LIBS
24999 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
25000 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
25001 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
25002 cat >>confdefs.h <<_ACEOF
25003 #define HAVE_LIBNSL 1
25018 { echo "$as_me:$LINENO: checking whether to use purify" >&5
25019 echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6; }
25021 # Check whether --with-purify was given.
25022 if test "${with_purify+set}" = set; then
25023 withval=$with_purify; use_purify="$withval"
25029 case "$use_purify" in
25033 # Extract the first word of "purify", so it can be a program name with args.
25034 set dummy purify; ac_word=$2
25035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25037 if test "${ac_cv_path_purify_path+set}" = set; then
25038 echo $ECHO_N "(cached) $ECHO_C" >&6
25040 case $purify_path in
25042 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
25045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25046 for as_dir in $PATH
25049 test -z "$as_dir" && as_dir=.
25050 for ac_exec_ext in '' $ac_executable_extensions; do
25051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25052 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
25053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25060 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
25064 purify_path=$ac_cv_path_purify_path
25065 if test -n "$purify_path"; then
25066 { echo "$as_me:$LINENO: result: $purify_path" >&5
25067 echo "${ECHO_T}$purify_path" >&6; }
25069 { echo "$as_me:$LINENO: result: no" >&5
25070 echo "${ECHO_T}no" >&6; }
25076 purify_path="$use_purify"
25080 case "$use_purify" in
25082 { echo "$as_me:$LINENO: result: no" >&5
25083 echo "${ECHO_T}no" >&6; }
25087 if test -f $purify_path || test $purify_path = purify; then
25088 { echo "$as_me:$LINENO: result: $purify_path" >&5
25089 echo "${ECHO_T}$purify_path" >&6; }
25090 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
25091 PURIFY="$purify_path $PURIFYFLAGS"
25093 { { echo "$as_me:$LINENO: error: $purify_path not found.
25095 Please choose the proper path with the following command:
25097 configure --with-purify=PATH
25099 echo "$as_me: error: $purify_path not found.
25101 Please choose the proper path with the following command:
25103 configure --with-purify=PATH
25105 { (exit 1); exit 1; }; }
25113 # GNU libtool support
25117 # Just set the maximum command line length for sunos as it otherwise
25118 # takes a exceptionally long time to work it out. Required for libtool.
25119 lt_cv_sys_max_cmd_len=4096;
25124 # Check whether --with-libtool was given.
25125 if test "${with_libtool+set}" = set; then
25126 withval=$with_libtool; use_libtool="$withval"
25132 case $use_libtool in
25137 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
25138 LIBTOOL_MODE_COMPILE='--mode=compile'
25139 LIBTOOL_MODE_INSTALL='--mode=install'
25140 LIBTOOL_MODE_LINK='--mode=link'
25148 LIBTOOL_MODE_COMPILE=
25149 LIBTOOL_MODE_INSTALL=
25155 # File name extension for static archive files, for those few places
25156 # where they are treated differently from dynamic ones.
25169 # Here begins a very long section to determine the system's networking
25170 # capabilities. The order of the tests is signficant.
25176 # Check whether --enable-ipv6 was given.
25177 if test "${enable_ipv6+set}" = set; then
25178 enableval=$enable_ipv6;
25182 case "$enable_ipv6" in
25184 cat >>confdefs.h <<\_ACEOF
25185 #define WANT_IPV6 1
25194 # We do the IPv6 compilation checking after libtool so that we can put
25195 # the right suffix on the files.
25197 { echo "$as_me:$LINENO: checking for IPv6 structures" >&5
25198 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6; }
25199 cat >conftest.$ac_ext <<_ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h. */
25206 #include <sys/types.h>
25207 #include <sys/socket.h>
25208 #include <netinet/in.h>
25212 struct sockaddr_in6 sin6; return (0);
25217 rm -f conftest.$ac_objext
25218 if { (ac_try="$ac_compile"
25219 case "(($ac_try" in
25220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25221 *) ac_try_echo
=$ac_try;;
25223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_compile") 2>conftest.er1
25226 grep -v '^ *+' conftest.er1
>conftest.err
25228 cat conftest.err
>&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } && {
25231 test -z "$ac_c_werror_flag" ||
25232 test ! -s conftest.err
25233 } && test -s conftest.
$ac_objext; then
25234 { echo "$as_me:$LINENO: result: yes" >&5
25235 echo "${ECHO_T}yes" >&6; }
25238 echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.
$ac_ext >&5
25241 { echo "$as_me:$LINENO: result: no" >&5
25242 echo "${ECHO_T}no" >&6; }
25246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25249 # See whether IPv6 support is provided via a Kame add-on.
25250 # This is done before other IPv6 linking tests to LIBS is properly set.
25252 { echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
25253 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6; }
25255 # Check whether --with-kame was given.
25256 if test "${with_kame+set}" = set; then
25257 withval
=$with_kame; use_kame
="$withval"
25263 case "$use_kame" in
25267 kame_path
=/usr
/local
/v6
25270 kame_path
="$use_kame"
25274 case "$use_kame" in
25276 { echo "$as_me:$LINENO: result: no" >&5
25277 echo "${ECHO_T}no" >&6; }
25280 if test -f $kame_path/lib
/libinet6.a
; then
25281 { echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
25282 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6; }
25283 LIBS
="-L$kame_path/lib -linet6 $LIBS"
25285 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
25287 Please choose the proper path with the following command:
25289 configure --with-kame=PATH
25291 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
25293 Please choose the proper path with the following command:
25295 configure --with-kame=PATH
25297 { (exit 1); exit 1; }; }
25303 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
25304 # Including it on Kame-using platforms is very bad, though, because
25305 # Kame uses #error against direct inclusion. So include it on only
25306 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
25307 # This is done before the in6_pktinfo check because that's what
25308 # netinet6/in6.h is needed for.
25313 ISC_PLATFORM_NEEDNETINET6IN6H
="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
25314 isc_netinet6in6_hack
="#include <netinet6/in6.h>"
25317 ISC_PLATFORM_NEEDNETINET6IN6H
="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
25318 isc_netinet6in6_hack
=""
25324 # This is similar to the netinet6/in6.h issue.
25328 ISC_PLATFORM_NEEDNETINETIN6H
="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
25329 ISC_PLATFORM_FIXIN6ISADDR
="#define ISC_PLATFORM_FIXIN6ISADDR 1"
25330 isc_netinetin6_hack
="#include <netinet/in6.h>"
25333 ISC_PLATFORM_NEEDNETINETIN6H
="#undef ISC_PLATFORM_NEEDNETINETIN6H"
25334 ISC_PLATFORM_FIXIN6ISADDR
="#undef ISC_PLATFORM_FIXIN6ISADDR"
25335 isc_netinetin6_hack
=""
25340 # Now delve deeper into the suitability of the IPv6 support.
25342 case "$found_ipv6" in
25344 HAS_INET6_STRUCTS
="#define HAS_INET6_STRUCTS 1"
25346 { echo "$as_me:$LINENO: checking for in6_addr" >&5
25347 echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6; }
25348 cat >conftest.
$ac_ext <<_ACEOF
25351 cat confdefs.h
>>conftest.
$ac_ext
25352 cat >>conftest.
$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25355 #include <sys/types.h>
25356 #include <sys/socket.h>
25357 #include <netinet/in.h>
25358 $isc_netinetin6_hack
25359 $isc_netinet6in6_hack
25364 struct in6_addr in6; return (0);
25369 rm -f conftest.
$ac_objext
25370 if { (ac_try
="$ac_compile"
25371 case "(($ac_try" in
25372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376 (eval "$ac_compile") 2>conftest.er1
25378 grep -v '^ *+' conftest.er1 >conftest.err
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } && {
25383 test -z "$ac_c_werror_flag" ||
25384 test ! -s conftest.err
25385 } && test -s conftest.$ac_objext; then
25386 { echo "$as_me:$LINENO: result: yes" >&5
25387 echo "${ECHO_T}yes" >&6; }
25388 HAS_IN_ADDR6="#undef HAS_IN_ADDR6"
25389 isc_in_addr6_hack=""
25391 echo "$as_me: failed program was:" >&5
25392 sed 's/^/| /' conftest.$ac_ext >&5
25394 { echo "$as_me:$LINENO: result: no" >&5
25395 echo "${ECHO_T}no" >&6; }
25396 HAS_IN_ADDR6="#define HAS_IN_ADDR6 1"
25397 isc_in_addr6_hack="#define in6_addr in_addr6"
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402 { echo "$as_me:$LINENO: checking for in6addr_any" >&5
25403 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6; }
25404 cat >conftest.$ac_ext <<_ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h. */
25411 #include <sys/types.h>
25412 #include <sys/socket.h>
25413 #include <netinet/in.h>
25414 $isc_netinetin6_hack
25415 $isc_netinet6in6_hack
25421 struct in6_addr in6; in6 = in6addr_any; return (0);
25426 rm -f conftest.$ac_objext conftest$ac_exeext
25427 if { (ac_try="$ac_link"
25428 case "(($ac_try" in
25429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25430 *) ac_try_echo
=$ac_try;;
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433 (eval "$ac_link") 2>conftest.er1
25435 grep -v '^ *+' conftest.er1
>conftest.err
25437 cat conftest.err
>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } && {
25440 test -z "$ac_c_werror_flag" ||
25441 test ! -s conftest.err
25442 } && test -s conftest
$ac_exeext &&
25443 $as_test_x conftest
$ac_exeext; then
25444 { echo "$as_me:$LINENO: result: yes" >&5
25445 echo "${ECHO_T}yes" >&6; }
25446 NEED_IN6ADDR_ANY
="#undef NEED_IN6ADDR_ANY"
25448 echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.
$ac_ext >&5
25451 { echo "$as_me:$LINENO: result: no" >&5
25452 echo "${ECHO_T}no" >&6; }
25453 NEED_IN6ADDR_ANY
="#define NEED_IN6ADDR_ANY 1"
25456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25457 conftest
$ac_exeext conftest.
$ac_ext
25459 { echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
25460 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6; }
25461 cat >conftest.
$ac_ext <<_ACEOF
25464 cat confdefs.h
>>conftest.
$ac_ext
25465 cat >>conftest.
$ac_ext <<_ACEOF
25466 /* end confdefs.h. */
25468 #include <sys/types.h>
25469 #include <sys/socket.h>
25470 #include <netinet/in.h>
25471 $isc_netinetin6_hack
25472 $isc_netinet6in6_hack
25477 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
25482 rm -f conftest.
$ac_objext
25483 if { (ac_try
="$ac_compile"
25484 case "(($ac_try" in
25485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25486 *) ac_try_echo=$ac_try;;
25488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25489 (eval "$ac_compile") 2>conftest.er1
25491 grep -v '^ *+' conftest.er1 >conftest.err
25493 cat conftest.err >&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); } && {
25496 test -z "$ac_c_werror_flag" ||
25497 test ! -s conftest.err
25498 } && test -s conftest.$ac_objext; then
25499 { echo "$as_me:$LINENO: result: yes" >&5
25500 echo "${ECHO_T}yes" >&6; }
25501 result="#define HAVE_SIN6_SCOPE_ID 1"
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25506 { echo "$as_me:$LINENO: result: no" >&5
25507 echo "${ECHO_T}no" >&6; }
25508 result="#undef HAVE_SIN6_SCOPE_ID"
25511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25512 HAVE_SIN6_SCOPE_ID="$result"
25514 { echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
25515 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6; }
25516 cat >conftest.$ac_ext <<_ACEOF
25519 cat confdefs.h >>conftest.$ac_ext
25520 cat >>conftest.$ac_ext <<_ACEOF
25521 /* end confdefs.h. */
25523 #include <sys/types.h>
25524 #include <sys/socket.h>
25525 #include <netinet/in.h>
25526 $isc_netinetin6_hack
25527 $isc_netinet6in6_hack
25532 struct in6_pktinfo xyzzy; return (0);
25537 rm -f conftest.$ac_objext
25538 if { (ac_try="$ac_compile"
25539 case "(($ac_try" in
25540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25541 *) ac_try_echo
=$ac_try;;
25543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25544 (eval "$ac_compile") 2>conftest.er1
25546 grep -v '^ *+' conftest.er1
>conftest.err
25548 cat conftest.err
>&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } && {
25551 test -z "$ac_c_werror_flag" ||
25552 test ! -s conftest.err
25553 } && test -s conftest.
$ac_objext; then
25554 { echo "$as_me:$LINENO: result: yes" >&5
25555 echo "${ECHO_T}yes" >&6; }
25556 ISC_PLATFORM_HAVEIN6PKTINFO
="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
25558 echo "$as_me: failed program was:" >&5
25559 sed 's/^/| /' conftest.
$ac_ext >&5
25561 { echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
25562 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6; }
25563 ISC_PLATFORM_HAVEIN6PKTINFO
="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
25566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25569 HAS_INET6_STRUCTS
="#undef HAS_INET6_STRUCTS"
25570 NEED_IN6ADDR_ANY
="#undef NEED_IN6ADDR_ANY"
25571 ISC_PLATFORM_HAVEIN6PKTINFO
="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
25572 HAVE_SIN6_SCOPE_ID
="#define HAVE_SIN6_SCOPE_ID 1"
25573 ISC_IPV6_H
="ipv6.h"
25574 ISC_IPV6_O
="ipv6.$O"
25575 ISC_ISCIPV6_O
="unix/ipv6.$O"
25576 ISC_IPV6_C
="ipv6.c"
25580 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
25581 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
25582 cat >conftest.
$ac_ext <<_ACEOF
25585 cat confdefs.h
>>conftest.
$ac_ext
25586 cat >>conftest.
$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25589 #include <sys/types.h>
25590 #include <sys/socket.h>
25591 #include <netinet/in.h>
25596 struct sockaddr_storage xyzzy; return (0);
25601 rm -f conftest.
$ac_objext
25602 if { (ac_try
="$ac_compile"
25603 case "(($ac_try" in
25604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608 (eval "$ac_compile") 2>conftest.er1
25610 grep -v '^ *+' conftest.er1 >conftest.err
25612 cat conftest.err >&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } && {
25615 test -z "$ac_c_werror_flag" ||
25616 test ! -s conftest.err
25617 } && test -s conftest.$ac_objext; then
25618 { echo "$as_me:$LINENO: result: yes" >&5
25619 echo "${ECHO_T}yes" >&6; }
25620 HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1"
25622 echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25625 { echo "$as_me:$LINENO: result: no" >&5
25626 echo "${ECHO_T}no" >&6; }
25627 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
25630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 # Check for network functions that are often missing. We do this
25648 # after the libtool checking, so we can put the right suffix on
25649 # the files. It also needs to come after checking for a Kame add-on,
25650 # which provides some (all?) of the desired functions.
25652 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
25653 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
25654 cat >conftest.$ac_ext <<_ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h. */
25661 #include <sys/types.h>
25662 #include <netinet/in.h>
25663 #include <arpa/inet.h>
25667 inet_ntop(0, 0, 0, 0); return (0);
25672 rm -f conftest.$ac_objext conftest$ac_exeext
25673 if { (ac_try="$ac_link"
25674 case "(($ac_try" in
25675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25676 *) ac_try_echo
=$ac_try;;
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679 (eval "$ac_link") 2>conftest.er1
25681 grep -v '^ *+' conftest.er1
>conftest.err
25683 cat conftest.err
>&5
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } && {
25686 test -z "$ac_c_werror_flag" ||
25687 test ! -s conftest.err
25688 } && test -s conftest
$ac_exeext &&
25689 $as_test_x conftest
$ac_exeext; then
25690 { echo "$as_me:$LINENO: result: yes" >&5
25691 echo "${ECHO_T}yes" >&6; }
25692 ISC_PLATFORM_NEEDNTOP
="#undef ISC_PLATFORM_NEEDNTOP"
25694 echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.
$ac_ext >&5
25697 { echo "$as_me:$LINENO: result: no" >&5
25698 echo "${ECHO_T}no" >&6; }
25699 ISC_EXTRA_OBJS
="$ISC_EXTRA_OBJS inet_ntop.$O"
25700 ISC_EXTRA_SRCS
="$ISC_EXTRA_SRCS inet_ntop.c"
25701 ISC_PLATFORM_NEEDNTOP
="#define ISC_PLATFORM_NEEDNTOP 1"
25704 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25705 conftest
$ac_exeext conftest.
$ac_ext
25706 { echo "$as_me:$LINENO: checking for inet_pton" >&5
25707 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
25708 cat >conftest.
$ac_ext <<_ACEOF
25711 cat confdefs.h
>>conftest.
$ac_ext
25712 cat >>conftest.
$ac_ext <<_ACEOF
25713 /* end confdefs.h. */
25715 #include <sys/types.h>
25716 #include <netinet/in.h>
25717 #include <arpa/inet.h>
25721 inet_pton(0, 0, 0); return (0);
25726 rm -f conftest.
$ac_objext conftest
$ac_exeext
25727 if { (ac_try
="$ac_link"
25728 case "(($ac_try" in
25729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25730 *) ac_try_echo=$ac_try;;
25732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25733 (eval "$ac_link") 2>conftest.er1
25735 grep -v '^ *+' conftest.er1 >conftest.err
25737 cat conftest.err >&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); } && {
25740 test -z "$ac_c_werror_flag" ||
25741 test ! -s conftest.err
25742 } && test -s conftest$ac_exeext &&
25743 $as_test_x conftest$ac_exeext; then
25744 { echo "$as_me:$LINENO: result: yes" >&5
25745 echo "${ECHO_T}yes" >&6; }
25746 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25751 { echo "$as_me:$LINENO: result: no" >&5
25752 echo "${ECHO_T}no" >&6; }
25753 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
25754 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
25755 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
25758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25759 conftest$ac_exeext conftest.$ac_ext
25760 { echo "$as_me:$LINENO: checking for inet_aton" >&5
25761 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
25762 cat >conftest.$ac_ext <<_ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h. */
25769 #include <sys/types.h>
25770 #include <netinet/in.h>
25771 #include <arpa/inet.h>
25775 struct in_addr in; inet_aton(0, &in); return (0);
25780 rm -f conftest.$ac_objext conftest$ac_exeext
25781 if { (ac_try="$ac_link"
25782 case "(($ac_try" in
25783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25784 *) ac_try_echo
=$ac_try;;
25786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787 (eval "$ac_link") 2>conftest.er1
25789 grep -v '^ *+' conftest.er1
>conftest.err
25791 cat conftest.err
>&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); } && {
25794 test -z "$ac_c_werror_flag" ||
25795 test ! -s conftest.err
25796 } && test -s conftest
$ac_exeext &&
25797 $as_test_x conftest
$ac_exeext; then
25798 { echo "$as_me:$LINENO: result: yes" >&5
25799 echo "${ECHO_T}yes" >&6; }
25800 ISC_PLATFORM_NEEDATON
="#undef ISC_PLATFORM_NEEDATON"
25802 echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.
$ac_ext >&5
25805 { echo "$as_me:$LINENO: result: no" >&5
25806 echo "${ECHO_T}no" >&6; }
25807 ISC_EXTRA_OBJS
="$ISC_EXTRA_OBJS inet_aton.$O"
25808 ISC_EXTRA_SRCS
="$ISC_EXTRA_SRCS inet_aton.c"
25809 ISC_PLATFORM_NEEDATON
="#define ISC_PLATFORM_NEEDATON 1"
25812 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25813 conftest
$ac_exeext conftest.
$ac_ext
25820 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
25824 # Tru64 broke send() by defining it to send_OBSOLETE
25825 cat >>confdefs.h
<<\_ACEOF
25826 #define REENABLE_SEND 1
25829 # Turn on 4.4BSD style sa_len support.
25830 cat >>confdefs.h
<<\_ACEOF
25831 #define _SOCKADDR_LEN 1
25837 { echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
25838 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
25839 cat >conftest.
$ac_ext <<_ACEOF
25842 cat confdefs.h
>>conftest.
$ac_ext
25843 cat >>conftest.
$ac_ext <<_ACEOF
25844 /* end confdefs.h. */
25846 #include <sys/types.h>
25847 #include <sys/socket.h>
25851 struct sockaddr sa; sa.sa_len = 0; return (0);
25856 rm -f conftest.
$ac_objext
25857 if { (ac_try
="$ac_compile"
25858 case "(($ac_try" in
25859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_compile") 2>conftest.er1
25865 grep -v '^ *+' conftest.er1 >conftest.err
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && {
25870 test -z "$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 } && test -s conftest.$ac_objext; then
25873 { echo "$as_me:$LINENO: result: yes" >&5
25874 echo "${ECHO_T}yes" >&6; }
25875 HAVE_SA_LEN="#define HAVE_SA_LEN 1"
25877 echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25880 { echo "$as_me:$LINENO: result: no" >&5
25881 echo "${ECHO_T}no" >&6; }
25882 HAVE_SA_LEN="#undef HAVE_SA_LEN"
25885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25888 # HAVE_MINIMUM_IFREQ
25891 *-bsdi2345*) have_minimum_ifreq=yes;;
25892 *-darwin*) have_minimum_ifreq=yes;;
25893 *-freebsd*) have_minimum_ifreq=yes;;
25894 *-lynxos*) have_minimum_ifreq=yes;;
25895 *-netbsd*) have_minimum_ifreq=yes;;
25896 *-next*) have_minimum_ifreq=yes;;
25897 *-openbsd*) have_minimum_ifreq=yes;;
25898 *-rhapsody*) have_minimum_ifreq=yes;;
25901 case "$have_minimum_ifreq" in
25903 HAVE_MINIMUM_IFREQ="#define HAVE_MINIMUM_IFREQ 1";;
25905 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
25907 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
25912 PORT_DIR=port/unknown
25913 SOLARIS_BITTYPES="#undef NEED_SOLARIS_BITTYPES"
25914 BSD_COMP="#undef BSD_COMP"
25915 USE_FIONBIO_IOCTL="#undef USE_FIONBIO_IOCTL"
25916 PORT_NONBLOCK="#define PORT_NONBLOCK O_NONBLOCK"
25917 HAVE_MD5="#undef HAVE_MD5"
25918 USE_POLL="#undef HAVE_POLL"
25919 SOLARIS2="#undef SOLARIS2"
25921 *aix3.2*) PORT_DIR="port/aix32";;
25922 *aix4*) PORT_DIR="port/aix4";;
25923 *aix5*) PORT_DIR="port/aix5";;
25924 *aux3*) PORT_DIR="port/aux3";;
25925 *-bsdi2*) PORT_DIR="port/bsdos2";;
25926 *-bsdi*) PORT_DIR="port/bsdos";;
25928 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
25929 PORT_DIR="port/cygwin";;
25930 *-darwin*) PORT_DIR="port/darwin";;
25931 *-dragonfly*) PORT_DIR="port/dragonfly";;
25932 *-osf*) PORT_DIR="port/decunix";;
25933 *-freebsd*) PORT_DIR="port/freebsd";;
25934 *-hpux9*) PORT_DIR="port/hpux9";;
25935 *-hpux10*) PORT_DIR="port/hpux10";;
25936 *-hpux11*) PORT_DIR="port/hpux";;
25937 *-irix*) PORT_DIR="port/irix";;
25938 *-linux*) PORT_DIR="port/linux";;
25939 *-lynxos*) PORT_DIR="port/lynxos";;
25940 *-mpe*) PORT_DIR="port/mpe";;
25941 *-netbsd*) PORT_DIR="port/netbsd";;
25942 *-next*) PORT_DIR="port/next";;
25943 *-openbsd*) PORT_DIR="port/openbsd";;
25944 *-qnx*) PORT_DIR="port/qnx";;
25945 *-rhapsody*) PORT_DIR="port/rhapsody";;
25947 cat >>confdefs.h <<\_ACEOF
25948 #define NEED_SUN4PROTOS 1
25951 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
25952 PORT_DIR="port/sunos";;
25953 *-solaris2.[01234])
25954 BSD_COMP="#define BSD_COMP 1"
25955 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
25956 USE_FIONBIO_IOCTL="#define USE_FIONBIO_IOCTL 1"
25957 SOLARIS2="#define SOLARIS2 1"
25958 PORT_DIR="port/solaris";;
25960 BSD_COMP="#define BSD_COMP 1"
25961 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
25962 SOLARIS2="#define SOLARIS2 1"
25963 PORT_DIR="port/solaris";;
25965 BSD_COMP="#define BSD_COMP 1"
25966 SOLARIS2="#define SOLARIS2 1"
25967 PORT_DIR="port/solaris";;
25968 *-solaris2*) BSD_COMP="#define BSD_COMP 1"
25969 USE_POLL="#define USE_POLL 1"
25970 HAVE_MD5="#define HAVE_MD5 1"
25971 SOLARIS2="#define SOLARIS2 1"
25972 PORT_DIR="port/solaris";;
25973 *-ultrix*) PORT_DIR="port/ultrix";;
25974 *-sco-sysv*uw2.0*) PORT_DIR="port/unixware20";;
25975 *-sco-sysv*uw2.1.2*) PORT_DIR="port/unixware212";;
25976 *-sco-sysv*uw7*) PORT_DIR="port/unixware7";;
25987 PORT_INCLUDE=${PORT_DIR}/include
25991 # Look for a 4.4BSD or 4.3BSD struct msghdr
25993 { echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
25994 echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6; }
25995 cat >conftest.$ac_ext <<_ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26002 #include <sys/types.h>
26003 #include <sys/socket.h>
26007 struct msghdr msg; msg.msg_flags = 0; return (0);
26012 rm -f conftest.$ac_objext
26013 if { (ac_try="$ac_compile"
26014 case "(($ac_try" in
26015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26016 *) ac_try_echo
=$ac_try;;
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_compile") 2>conftest.er1
26021 grep -v '^ *+' conftest.er1
>conftest.err
26023 cat conftest.err
>&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } && {
26026 test -z "$ac_c_werror_flag" ||
26027 test ! -s conftest.err
26028 } && test -s conftest.
$ac_objext; then
26029 { echo "$as_me:$LINENO: result: 4.4BSD" >&5
26030 echo "${ECHO_T}4.4BSD" >&6; }
26031 ISC_PLATFORM_MSGHDRFLAVOR
="#define ISC_NET_BSD44MSGHDR 1"
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.
$ac_ext >&5
26036 { echo "$as_me:$LINENO: result: 4.3BSD" >&5
26037 echo "${ECHO_T}4.3BSD" >&6; }
26038 ISC_PLATFORM_MSGHDRFLAVOR
="#define ISC_NET_BSD43MSGHDR 1"
26041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26045 # Look for in_port_t.
26047 { echo "$as_me:$LINENO: checking for type in_port_t" >&5
26048 echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6; }
26049 cat >conftest.
$ac_ext <<_ACEOF
26052 cat confdefs.h
>>conftest.
$ac_ext
26053 cat >>conftest.
$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26056 #include <sys/types.h>
26057 #include <netinet/in.h>
26061 in_port_t port = 25; return (0);
26066 rm -f conftest.
$ac_objext
26067 if { (ac_try
="$ac_compile"
26068 case "(($ac_try" in
26069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26070 *) ac_try_echo=$ac_try;;
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073 (eval "$ac_compile") 2>conftest.er1
26075 grep -v '^ *+' conftest.er1 >conftest.err
26077 cat conftest.err >&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } && {
26080 test -z "$ac_c_werror_flag" ||
26081 test ! -s conftest.err
26082 } && test -s conftest.$ac_objext; then
26083 { echo "$as_me:$LINENO: result: yes" >&5
26084 echo "${ECHO_T}yes" >&6; }
26085 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
26087 echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 { echo "$as_me:$LINENO: result: no" >&5
26091 echo "${ECHO_T}no" >&6; }
26092 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098 { echo "$as_me:$LINENO: checking for struct timespec" >&5
26099 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
26100 cat >conftest.$ac_ext <<_ACEOF
26103 cat confdefs.h >>conftest.$ac_ext
26104 cat >>conftest.$ac_ext <<_ACEOF
26105 /* end confdefs.h. */
26107 #include <sys/types.h>
26112 struct timespec ts = { 0, 0 }; return (0);
26117 rm -f conftest.$ac_objext
26118 if { (ac_try="$ac_compile"
26119 case "(($ac_try" in
26120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26121 *) ac_try_echo
=$ac_try;;
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124 (eval "$ac_compile") 2>conftest.er1
26126 grep -v '^ *+' conftest.er1
>conftest.err
26128 cat conftest.err
>&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } && {
26131 test -z "$ac_c_werror_flag" ||
26132 test ! -s conftest.err
26133 } && test -s conftest.
$ac_objext; then
26134 { echo "$as_me:$LINENO: result: yes" >&5
26135 echo "${ECHO_T}yes" >&6; }
26136 ISC_PLATFORM_NEEDTIMESPEC
="#undef ISC_PLATFORM_NEEDTIMESPEC"
26138 echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.
$ac_ext >&5
26141 { echo "$as_me:$LINENO: result: no" >&5
26142 echo "${ECHO_T}no" >&6; }
26143 ISC_PLATFORM_NEEDTIMESPEC
="#define ISC_PLATFORM_NEEDTIMESPEC 1"
26146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26150 # Check for addrinfo
26152 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
26153 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
26154 cat >conftest.
$ac_ext <<_ACEOF
26157 cat confdefs.h
>>conftest.
$ac_ext
26158 cat >>conftest.
$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26165 struct addrinfo a; return (0);
26170 rm -f conftest.
$ac_objext
26171 if { (ac_try
="$ac_compile"
26172 case "(($ac_try" in
26173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26174 *) ac_try_echo=$ac_try;;
26176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26177 (eval "$ac_compile") 2>conftest.er1
26179 grep -v '^ *+' conftest.er1 >conftest.err
26181 cat conftest.err >&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); } && {
26184 test -z "$ac_c_werror_flag" ||
26185 test ! -s conftest.err
26186 } && test -s conftest.$ac_objext; then
26187 { echo "$as_me:$LINENO: result: yes" >&5
26188 echo "${ECHO_T}yes" >&6; }
26189 cat >>confdefs.h <<\_ACEOF
26190 #define HAVE_ADDRINFO 1
26194 echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26197 { echo "$as_me:$LINENO: result: no" >&5
26198 echo "${ECHO_T}no" >&6; }
26201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26203 { echo "$as_me:$LINENO: checking for int sethostent" >&5
26204 echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6; }
26205 cat >conftest.$ac_ext <<_ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26216 int i = sethostent(0); return(0);
26221 rm -f conftest.$ac_objext
26222 if { (ac_try="$ac_compile"
26223 case "(($ac_try" in
26224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26225 *) ac_try_echo
=$ac_try;;
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228 (eval "$ac_compile") 2>conftest.er1
26230 grep -v '^ *+' conftest.er1
>conftest.err
26232 cat conftest.err
>&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); } && {
26235 test -z "$ac_c_werror_flag" ||
26236 test ! -s conftest.err
26237 } && test -s conftest.
$ac_objext; then
26238 { echo "$as_me:$LINENO: result: yes" >&5
26239 echo "${ECHO_T}yes" >&6; }
26241 echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.
$ac_ext >&5
26244 { echo "$as_me:$LINENO: result: no" >&5
26245 echo "${ECHO_T}no" >&6; }
26248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26250 { echo "$as_me:$LINENO: checking for int endhostent" >&5
26251 echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6; }
26252 cat >conftest.
$ac_ext <<_ACEOF
26255 cat confdefs.h
>>conftest.
$ac_ext
26256 cat >>conftest.
$ac_ext <<_ACEOF
26257 /* end confdefs.h. */
26263 int i = endhostent(); return(0);
26268 rm -f conftest.
$ac_objext
26269 if { (ac_try
="$ac_compile"
26270 case "(($ac_try" in
26271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26272 *) ac_try_echo=$ac_try;;
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275 (eval "$ac_compile") 2>conftest.er1
26277 grep -v '^ *+' conftest.er1 >conftest.err
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } && {
26282 test -z "$ac_c_werror_flag" ||
26283 test ! -s conftest.err
26284 } && test -s conftest.$ac_objext; then
26285 { echo "$as_me:$LINENO: result: yes" >&5
26286 echo "${ECHO_T}yes" >&6; }
26287 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
26289 echo "$as_me: failed program was:" >&5
26290 sed 's/^/| /' conftest.$ac_ext >&5
26292 { echo "$as_me:$LINENO: result: no" >&5
26293 echo "${ECHO_T}no" >&6; }
26294 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
26297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26300 { echo "$as_me:$LINENO: checking for int setnetent" >&5
26301 echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6; }
26302 cat >conftest.$ac_ext <<_ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26313 int i = setnetent(0); return(0);
26318 rm -f conftest.$ac_objext
26319 if { (ac_try="$ac_compile"
26320 case "(($ac_try" in
26321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26322 *) ac_try_echo
=$ac_try;;
26324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26325 (eval "$ac_compile") 2>conftest.er1
26327 grep -v '^ *+' conftest.er1
>conftest.err
26329 cat conftest.err
>&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } && {
26332 test -z "$ac_c_werror_flag" ||
26333 test ! -s conftest.err
26334 } && test -s conftest.
$ac_objext; then
26335 { echo "$as_me:$LINENO: result: yes" >&5
26336 echo "${ECHO_T}yes" >&6; }
26337 ISC_LWRES_SETNETENTINT
="#define ISC_LWRES_SETNETENTINT 1"
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.
$ac_ext >&5
26342 { echo "$as_me:$LINENO: result: no" >&5
26343 echo "${ECHO_T}no" >&6; }
26344 ISC_LWRES_SETNETENTINT
="#undef ISC_LWRES_SETNETENTINT"
26347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26350 { echo "$as_me:$LINENO: checking for int endnetent" >&5
26351 echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6; }
26352 cat >conftest.
$ac_ext <<_ACEOF
26355 cat confdefs.h
>>conftest.
$ac_ext
26356 cat >>conftest.
$ac_ext <<_ACEOF
26357 /* end confdefs.h. */
26363 int i = endnetent(); return(0);
26368 rm -f conftest.
$ac_objext
26369 if { (ac_try
="$ac_compile"
26370 case "(($ac_try" in
26371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26372 *) ac_try_echo=$ac_try;;
26374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26375 (eval "$ac_compile") 2>conftest.er1
26377 grep -v '^ *+' conftest.er1 >conftest.err
26379 cat conftest.err >&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } && {
26382 test -z "$ac_c_werror_flag" ||
26383 test ! -s conftest.err
26384 } && test -s conftest.$ac_objext; then
26385 { echo "$as_me:$LINENO: result: yes" >&5
26386 echo "${ECHO_T}yes" >&6; }
26387 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26392 { echo "$as_me:$LINENO: result: no" >&5
26393 echo "${ECHO_T}no" >&6; }
26394 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
26397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 { echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
26401 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6; }
26402 cat >conftest.$ac_ext <<_ACEOF
26405 cat confdefs.h >>conftest.$ac_ext
26406 cat >>conftest.$ac_ext <<_ACEOF
26407 /* end confdefs.h. */
26410 struct hostent *gethostbyaddr(const void *, size_t, int);
26419 rm -f conftest.$ac_objext
26420 if { (ac_try="$ac_compile"
26421 case "(($ac_try" in
26422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26423 *) ac_try_echo
=$ac_try;;
26425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26426 (eval "$ac_compile") 2>conftest.er1
26428 grep -v '^ *+' conftest.er1
>conftest.err
26430 cat conftest.err
>&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && {
26433 test -z "$ac_c_werror_flag" ||
26434 test ! -s conftest.err
26435 } && test -s conftest.
$ac_objext; then
26436 { echo "$as_me:$LINENO: result: yes" >&5
26437 echo "${ECHO_T}yes" >&6; }
26438 ISC_LWRES_GETHOSTBYADDRVOID
="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
26440 echo "$as_me: failed program was:" >&5
26441 sed 's/^/| /' conftest.
$ac_ext >&5
26443 { echo "$as_me:$LINENO: result: no" >&5
26444 echo "${ECHO_T}no" >&6; }
26445 ISC_LWRES_GETHOSTBYADDRVOID
="#undef ISC_LWRES_GETHOSTBYADDRVOID"
26448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26451 { echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
26452 echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6; }
26453 cat >conftest.
$ac_ext <<_ACEOF
26456 cat confdefs.h
>>conftest.
$ac_ext
26457 cat >>conftest.
$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26464 h_errno = 1; return(0);
26469 rm -f conftest.
$ac_objext
26470 if { (ac_try
="$ac_compile"
26471 case "(($ac_try" in
26472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26473 *) ac_try_echo=$ac_try;;
26475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26476 (eval "$ac_compile") 2>conftest.er1
26478 grep -v '^ *+' conftest.er1 >conftest.err
26480 cat conftest.err >&5
26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482 (exit $ac_status); } && {
26483 test -z "$ac_c_werror_flag" ||
26484 test ! -s conftest.err
26485 } && test -s conftest.$ac_objext; then
26486 { echo "$as_me:$LINENO: result: yes" >&5
26487 echo "${ECHO_T}yes" >&6; }
26488 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
26490 echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26493 { echo "$as_me:$LINENO: result: no" >&5
26494 echo "${ECHO_T}no" >&6; }
26495 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
26498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26501 { echo "$as_me:$LINENO: checking for getipnodebyname" >&5
26502 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; }
26503 if test "${ac_cv_func_getipnodebyname+set}" = set; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26506 cat >conftest.$ac_ext <<_ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h. */
26512 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
26513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26514 #define getipnodebyname innocuous_getipnodebyname
26516 /* System header to define __stub macros and hopefully few prototypes,
26517 which can conflict with char getipnodebyname (); below.
26518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26519 <limits.h> exists even on freestanding compilers. */
26522 # include <limits.h>
26524 # include <assert.h>
26527 #undef getipnodebyname
26529 /* Override any GCC internal prototype to avoid an error.
26530 Use char because int might match the return type of a GCC
26531 builtin and then its argument prototype would still apply. */
26535 char getipnodebyname ();
26536 /* The GNU C library defines this for functions which it implements
26537 to always fail with ENOSYS. Some functions are actually named
26538 something starting with __ and the normal name is an alias. */
26539 #if defined __stub_getipnodebyname || defined __stub___getipnodebyname
26546 return getipnodebyname ();
26551 rm -f conftest.$ac_objext conftest$ac_exeext
26552 if { (ac_try="$ac_link"
26553 case "(($ac_try" in
26554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26555 *) ac_try_echo
=$ac_try;;
26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26558 (eval "$ac_link") 2>conftest.er1
26560 grep -v '^ *+' conftest.er1
>conftest.err
26562 cat conftest.err
>&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } && {
26565 test -z "$ac_c_werror_flag" ||
26566 test ! -s conftest.err
26567 } && test -s conftest
$ac_exeext &&
26568 $as_test_x conftest
$ac_exeext; then
26569 ac_cv_func_getipnodebyname
=yes
26571 echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.
$ac_ext >&5
26574 ac_cv_func_getipnodebyname
=no
26577 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26578 conftest
$ac_exeext conftest.
$ac_ext
26580 { echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
26581 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; }
26582 if test $ac_cv_func_getipnodebyname = yes; then
26583 ISC_LWRES_GETIPNODEPROTO
="#undef ISC_LWRES_GETIPNODEPROTO"
26585 ISC_LWRES_GETIPNODEPROTO
="#define ISC_LWRES_GETIPNODEPROTO 1"
26588 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
26589 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
26590 if test "${ac_cv_func_getnameinfo+set}" = set; then
26591 echo $ECHO_N "(cached) $ECHO_C" >&6
26593 cat >conftest.
$ac_ext <<_ACEOF
26596 cat confdefs.h
>>conftest.
$ac_ext
26597 cat >>conftest.
$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26599 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
26600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26601 #define getnameinfo innocuous_getnameinfo
26603 /* System header to define __stub macros and hopefully few prototypes,
26604 which can conflict with char getnameinfo (); below.
26605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26606 <limits.h> exists even on freestanding compilers. */
26609 # include <limits.h>
26611 # include <assert.h>
26616 /* Override any GCC internal prototype to avoid an error.
26617 Use char because int might match the return type of a GCC
26618 builtin and then its argument prototype would still apply. */
26622 char getnameinfo ();
26623 /* The GNU C library defines this for functions which it implements
26624 to always fail with ENOSYS. Some functions are actually named
26625 something starting with __ and the normal name is an alias. */
26626 #if defined __stub_getnameinfo || defined __stub___getnameinfo
26633 return getnameinfo ();
26638 rm -f conftest.
$ac_objext conftest
$ac_exeext
26639 if { (ac_try
="$ac_link"
26640 case "(($ac_try" in
26641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26642 *) ac_try_echo=$ac_try;;
26644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26645 (eval "$ac_link") 2>conftest.er1
26647 grep -v '^ *+' conftest.er1 >conftest.err
26649 cat conftest.err >&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } && {
26652 test -z "$ac_c_werror_flag" ||
26653 test ! -s conftest.err
26654 } && test -s conftest$ac_exeext &&
26655 $as_test_x conftest$ac_exeext; then
26656 ac_cv_func_getnameinfo=yes
26658 echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26661 ac_cv_func_getnameinfo=no
26664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26665 conftest$ac_exeext conftest.$ac_ext
26667 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
26668 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
26669 if test $ac_cv_func_getnameinfo = yes; then
26670 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
26672 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
26675 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
26676 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
26677 if test "${ac_cv_func_getaddrinfo+set}" = set; then
26678 echo $ECHO_N "(cached) $ECHO_C" >&6
26680 cat >conftest.$ac_ext <<_ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h. */
26686 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
26687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26688 #define getaddrinfo innocuous_getaddrinfo
26690 /* System header to define __stub macros and hopefully few prototypes,
26691 which can conflict with char getaddrinfo (); below.
26692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26693 <limits.h> exists even on freestanding compilers. */
26696 # include <limits.h>
26698 # include <assert.h>
26703 /* Override any GCC internal prototype to avoid an error.
26704 Use char because int might match the return type of a GCC
26705 builtin and then its argument prototype would still apply. */
26709 char getaddrinfo ();
26710 /* The GNU C library defines this for functions which it implements
26711 to always fail with ENOSYS. Some functions are actually named
26712 something starting with __ and the normal name is an alias. */
26713 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
26720 return getaddrinfo ();
26725 rm -f conftest.$ac_objext conftest$ac_exeext
26726 if { (ac_try="$ac_link"
26727 case "(($ac_try" in
26728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26729 *) ac_try_echo
=$ac_try;;
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732 (eval "$ac_link") 2>conftest.er1
26734 grep -v '^ *+' conftest.er1
>conftest.err
26736 cat conftest.err
>&5
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); } && {
26739 test -z "$ac_c_werror_flag" ||
26740 test ! -s conftest.err
26741 } && test -s conftest
$ac_exeext &&
26742 $as_test_x conftest
$ac_exeext; then
26743 ac_cv_func_getaddrinfo
=yes
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.
$ac_ext >&5
26748 ac_cv_func_getaddrinfo
=no
26751 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26752 conftest
$ac_exeext conftest.
$ac_ext
26754 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
26755 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
26756 if test $ac_cv_func_getaddrinfo = yes; then
26757 ISC_LWRES_GETADDRINFOPROTO
="#undef ISC_LWRES_GETADDRINFOPROTO"
26758 cat >>confdefs.h
<<\_ACEOF
26759 #define HAVE_GETADDRINFO 1
26763 ISC_LWRES_GETADDRINFOPROTO
="#define ISC_LWRES_GETADDRINFOPROTO 1"
26766 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
26767 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
26768 if test "${ac_cv_func_gai_strerror+set}" = set; then
26769 echo $ECHO_N "(cached) $ECHO_C" >&6
26771 cat >conftest.
$ac_ext <<_ACEOF
26774 cat confdefs.h
>>conftest.
$ac_ext
26775 cat >>conftest.
$ac_ext <<_ACEOF
26776 /* end confdefs.h. */
26777 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
26778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26779 #define gai_strerror innocuous_gai_strerror
26781 /* System header to define __stub macros and hopefully few prototypes,
26782 which can conflict with char gai_strerror (); below.
26783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26784 <limits.h> exists even on freestanding compilers. */
26787 # include <limits.h>
26789 # include <assert.h>
26792 #undef gai_strerror
26794 /* Override any GCC internal prototype to avoid an error.
26795 Use char because int might match the return type of a GCC
26796 builtin and then its argument prototype would still apply. */
26800 char gai_strerror ();
26801 /* The GNU C library defines this for functions which it implements
26802 to always fail with ENOSYS. Some functions are actually named
26803 something starting with __ and the normal name is an alias. */
26804 #if defined __stub_gai_strerror || defined __stub___gai_strerror
26811 return gai_strerror ();
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 ac_cv_func_gai_strerror=yes
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 ac_cv_func_gai_strerror=no
26842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26843 conftest$ac_exeext conftest.$ac_ext
26845 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
26846 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
26847 if test $ac_cv_func_gai_strerror = yes; then
26848 cat >>confdefs.h <<\_ACEOF
26849 #define HAVE_GAISTRERROR 1
26857 { echo "$as_me:$LINENO: checking for pselect" >&5
26858 echo $ECHO_N "checking for pselect... $ECHO_C" >&6; }
26859 if test "${ac_cv_func_pselect+set}" = set; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
26862 cat >conftest.$ac_ext <<_ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h. */
26868 /* Define pselect to an innocuous variant, in case <limits.h> declares pselect.
26869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26870 #define pselect innocuous_pselect
26872 /* System header to define __stub macros and hopefully few prototypes,
26873 which can conflict with char pselect (); below.
26874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26875 <limits.h> exists even on freestanding compilers. */
26878 # include <limits.h>
26880 # include <assert.h>
26885 /* Override any GCC internal prototype to avoid an error.
26886 Use char because int might match the return type of a GCC
26887 builtin and then its argument prototype would still apply. */
26892 /* The GNU C library defines this for functions which it implements
26893 to always fail with ENOSYS. Some functions are actually named
26894 something starting with __ and the normal name is an alias. */
26895 #if defined __stub_pselect || defined __stub___pselect
26907 rm -f conftest.$ac_objext conftest$ac_exeext
26908 if { (ac_try="$ac_link"
26909 case "(($ac_try" in
26910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26911 *) ac_try_echo
=$ac_try;;
26913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26914 (eval "$ac_link") 2>conftest.er1
26916 grep -v '^ *+' conftest.er1
>conftest.err
26918 cat conftest.err
>&5
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); } && {
26921 test -z "$ac_c_werror_flag" ||
26922 test ! -s conftest.err
26923 } && test -s conftest
$ac_exeext &&
26924 $as_test_x conftest
$ac_exeext; then
26925 ac_cv_func_pselect
=yes
26927 echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.
$ac_ext >&5
26930 ac_cv_func_pselect
=no
26933 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26934 conftest
$ac_exeext conftest.
$ac_ext
26936 { echo "$as_me:$LINENO: result: $ac_cv_func_pselect" >&5
26937 echo "${ECHO_T}$ac_cv_func_pselect" >&6; }
26938 if test $ac_cv_func_pselect = yes; then
26939 NEED_PSELECT
="#undef NEED_PSELECT"
26941 NEED_PSELECT
="#define NEED_PSELECT"
26945 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
26946 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
26947 if test "${ac_cv_func_gettimeofday+set}" = set; then
26948 echo $ECHO_N "(cached) $ECHO_C" >&6
26950 cat >conftest.
$ac_ext <<_ACEOF
26953 cat confdefs.h
>>conftest.
$ac_ext
26954 cat >>conftest.
$ac_ext <<_ACEOF
26955 /* end confdefs.h. */
26956 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
26957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26958 #define gettimeofday innocuous_gettimeofday
26960 /* System header to define __stub macros and hopefully few prototypes,
26961 which can conflict with char gettimeofday (); below.
26962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26963 <limits.h> exists even on freestanding compilers. */
26966 # include <limits.h>
26968 # include <assert.h>
26971 #undef gettimeofday
26973 /* Override any GCC internal prototype to avoid an error.
26974 Use char because int might match the return type of a GCC
26975 builtin and then its argument prototype would still apply. */
26979 char gettimeofday ();
26980 /* The GNU C library defines this for functions which it implements
26981 to always fail with ENOSYS. Some functions are actually named
26982 something starting with __ and the normal name is an alias. */
26983 #if defined __stub_gettimeofday || defined __stub___gettimeofday
26990 return gettimeofday ();
26995 rm -f conftest.
$ac_objext conftest
$ac_exeext
26996 if { (ac_try
="$ac_link"
26997 case "(($ac_try" in
26998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26999 *) ac_try_echo=$ac_try;;
27001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27002 (eval "$ac_link") 2>conftest.er1
27004 grep -v '^ *+' conftest.er1 >conftest.err
27006 cat conftest.err >&5
27007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008 (exit $ac_status); } && {
27009 test -z "$ac_c_werror_flag" ||
27010 test ! -s conftest.err
27011 } && test -s conftest$ac_exeext &&
27012 $as_test_x conftest$ac_exeext; then
27013 ac_cv_func_gettimeofday=yes
27015 echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27018 ac_cv_func_gettimeofday=no
27021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27022 conftest$ac_exeext conftest.$ac_ext
27024 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
27025 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
27026 if test $ac_cv_func_gettimeofday = yes; then
27027 NEED_GETTIMEOFDAY="#undef NEED_GETTIMEOFDAY"
27029 NEED_GETTIMEOFDAY="#define NEED_GETTIMEOFDAY 1"
27033 { echo "$as_me:$LINENO: checking for strndup" >&5
27034 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
27035 if test "${ac_cv_func_strndup+set}" = set; then
27036 echo $ECHO_N "(cached) $ECHO_C" >&6
27038 cat >conftest.$ac_ext <<_ACEOF
27041 cat confdefs.h >>conftest.$ac_ext
27042 cat >>conftest.$ac_ext <<_ACEOF
27043 /* end confdefs.h. */
27044 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
27045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27046 #define strndup innocuous_strndup
27048 /* System header to define __stub macros and hopefully few prototypes,
27049 which can conflict with char strndup (); below.
27050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27051 <limits.h> exists even on freestanding compilers. */
27054 # include <limits.h>
27056 # include <assert.h>
27061 /* Override any GCC internal prototype to avoid an error.
27062 Use char because int might match the return type of a GCC
27063 builtin and then its argument prototype would still apply. */
27068 /* The GNU C library defines this for functions which it implements
27069 to always fail with ENOSYS. Some functions are actually named
27070 something starting with __ and the normal name is an alias. */
27071 #if defined __stub_strndup || defined __stub___strndup
27083 rm -f conftest.$ac_objext conftest$ac_exeext
27084 if { (ac_try="$ac_link"
27085 case "(($ac_try" in
27086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27087 *) ac_try_echo
=$ac_try;;
27089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27090 (eval "$ac_link") 2>conftest.er1
27092 grep -v '^ *+' conftest.er1
>conftest.err
27094 cat conftest.err
>&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } && {
27097 test -z "$ac_c_werror_flag" ||
27098 test ! -s conftest.err
27099 } && test -s conftest
$ac_exeext &&
27100 $as_test_x conftest
$ac_exeext; then
27101 ac_cv_func_strndup
=yes
27103 echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.
$ac_ext >&5
27106 ac_cv_func_strndup
=no
27109 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27110 conftest
$ac_exeext conftest.
$ac_ext
27112 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
27113 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
27114 if test $ac_cv_func_strndup = yes; then
27115 HAVE_STRNDUP
="#define HAVE_STRNDUP 1"
27117 HAVE_STRNDUP
="#undef HAVE_STRNDUP"
27123 # Look for a sysctl call to get the list of network interfaces.
27125 { echo "$as_me:$LINENO: checking for interface list sysctl" >&5
27126 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6; }
27127 cat >conftest.
$ac_ext <<_ACEOF
27130 cat confdefs.h
>>conftest.
$ac_ext
27131 cat >>conftest.
$ac_ext <<_ACEOF
27132 /* end confdefs.h. */
27134 #include <sys/param.h>
27135 #include <sys/sysctl.h>
27136 #include <sys/socket.h>
27137 #ifdef NET_RT_IFLIST
27142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27143 $EGREP "found_rt_iflist" >/dev
/null
2>&1; then
27144 { echo "$as_me:$LINENO: result: yes" >&5
27145 echo "${ECHO_T}yes" >&6; }
27146 cat >>confdefs.h
<<\_ACEOF
27147 #define HAVE_IFLIST_SYSCTL 1
27151 { echo "$as_me:$LINENO: result: no" >&5
27152 echo "${ECHO_T}no" >&6; }
27158 # Check for some other useful functions that are not ever-present.
27160 { echo "$as_me:$LINENO: checking for strsep" >&5
27161 echo $ECHO_N "checking for strsep... $ECHO_C" >&6; }
27162 if test "${ac_cv_func_strsep+set}" = set; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 cat >conftest.
$ac_ext <<_ACEOF
27168 cat confdefs.h
>>conftest.
$ac_ext
27169 cat >>conftest.
$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27171 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
27172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27173 #define strsep innocuous_strsep
27175 /* System header to define __stub macros and hopefully few prototypes,
27176 which can conflict with char strsep (); below.
27177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27178 <limits.h> exists even on freestanding compilers. */
27181 # include <limits.h>
27183 # include <assert.h>
27188 /* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27195 /* The GNU C library defines this for functions which it implements
27196 to always fail with ENOSYS. Some functions are actually named
27197 something starting with __ and the normal name is an alias. */
27198 #if defined __stub_strsep || defined __stub___strsep
27210 rm -f conftest.
$ac_objext conftest
$ac_exeext
27211 if { (ac_try
="$ac_link"
27212 case "(($ac_try" in
27213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_link") 2>conftest.er1
27219 grep -v '^ *+' conftest.er1 >conftest.err
27221 cat conftest.err >&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); } && {
27224 test -z "$ac_c_werror_flag" ||
27225 test ! -s conftest.err
27226 } && test -s conftest$ac_exeext &&
27227 $as_test_x conftest$ac_exeext; then
27228 ac_cv_func_strsep=yes
27230 echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.$ac_ext >&5
27233 ac_cv_func_strsep=no
27236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27237 conftest$ac_exeext conftest.$ac_ext
27239 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
27240 echo "${ECHO_T}$ac_cv_func_strsep" >&6; }
27241 if test $ac_cv_func_strsep = yes; then
27242 ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
27244 ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
27249 { echo "$as_me:$LINENO: checking for char *sprintf" >&5
27250 echo $ECHO_N "checking for char *sprintf... $ECHO_C" >&6; }
27251 cat >conftest.$ac_ext <<_ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h. */
27263 char buf[2]; return(*sprintf(buf,"x"));
27268 rm -f conftest.$ac_objext
27269 if { (ac_try="$ac_compile"
27270 case "(($ac_try" in
27271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27272 *) ac_try_echo
=$ac_try;;
27274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27275 (eval "$ac_compile") 2>conftest.er1
27277 grep -v '^ *+' conftest.er1
>conftest.err
27279 cat conftest.err
>&5
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); } && {
27282 test -z "$ac_c_werror_flag" ||
27283 test ! -s conftest.err
27284 } && test -s conftest.
$ac_objext; then
27285 cat >>confdefs.h
<<\_ACEOF
27286 #define SPRINTF_CHAR 1
27289 { echo "$as_me:$LINENO: result: yes" >&5
27290 echo "${ECHO_T}yes" >&6; }
27293 echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.
$ac_ext >&5
27296 { echo "$as_me:$LINENO: result: no" >&5
27297 echo "${ECHO_T}no" >&6; }
27301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27303 { echo "$as_me:$LINENO: checking for char *vsprintf" >&5
27304 echo $ECHO_N "checking for char *vsprintf... $ECHO_C" >&6; }
27306 *sunos4
*) # not decared in any header file.
27307 cat >>confdefs.h
<<\_ACEOF
27308 #define VSPRINTF_CHAR 1
27311 { echo "$as_me:$LINENO: result: yes" >&5
27312 echo "${ECHO_T}yes" >&6; }
27315 cat >conftest.
$ac_ext <<_ACEOF
27318 cat confdefs.h
>>conftest.
$ac_ext
27319 cat >>conftest.
$ac_ext <<_ACEOF
27320 /* end confdefs.h. */
27327 char buf[2]; return(*vsprintf(buf,"x"));
27332 rm -f conftest.
$ac_objext
27333 if { (ac_try
="$ac_compile"
27334 case "(($ac_try" in
27335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27336 *) ac_try_echo=$ac_try;;
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339 (eval "$ac_compile") 2>conftest.er1
27341 grep -v '^ *+' conftest.er1 >conftest.err
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } && {
27346 test -z "$ac_c_werror_flag" ||
27347 test ! -s conftest.err
27348 } && test -s conftest.$ac_objext; then
27349 cat >>confdefs.h <<\_ACEOF
27350 #define VSPRINTF_CHAR 1
27353 { echo "$as_me:$LINENO: result: yes" >&5
27354 echo "${ECHO_T}yes" >&6; }
27357 echo "$as_me: failed program was:" >&5
27358 sed 's/^/| /' conftest.$ac_ext >&5
27360 { echo "$as_me:$LINENO: result: no" >&5
27361 echo "${ECHO_T}no" >&6; }
27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27369 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
27370 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
27371 if test "${ac_cv_func_vsnprintf+set}" = set; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27374 cat >conftest.$ac_ext <<_ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27380 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
27381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27382 #define vsnprintf innocuous_vsnprintf
27384 /* System header to define __stub macros and hopefully few prototypes,
27385 which can conflict with char vsnprintf (); below.
27386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27387 <limits.h> exists even on freestanding compilers. */
27390 # include <limits.h>
27392 # include <assert.h>
27397 /* Override any GCC internal prototype to avoid an error.
27398 Use char because int might match the return type of a GCC
27399 builtin and then its argument prototype would still apply. */
27404 /* The GNU C library defines this for functions which it implements
27405 to always fail with ENOSYS. Some functions are actually named
27406 something starting with __ and the normal name is an alias. */
27407 #if defined __stub_vsnprintf || defined __stub___vsnprintf
27414 return vsnprintf ();
27419 rm -f conftest.$ac_objext conftest$ac_exeext
27420 if { (ac_try="$ac_link"
27421 case "(($ac_try" in
27422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27423 *) ac_try_echo
=$ac_try;;
27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_link") 2>conftest.er1
27428 grep -v '^ *+' conftest.er1
>conftest.err
27430 cat conftest.err
>&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); } && {
27433 test -z "$ac_c_werror_flag" ||
27434 test ! -s conftest.err
27435 } && test -s conftest
$ac_exeext &&
27436 $as_test_x conftest
$ac_exeext; then
27437 ac_cv_func_vsnprintf
=yes
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.
$ac_ext >&5
27442 ac_cv_func_vsnprintf
=no
27445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27446 conftest
$ac_exeext conftest.
$ac_ext
27448 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
27449 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
27450 if test $ac_cv_func_vsnprintf = yes; then
27451 ISC_PLATFORM_NEEDVSNPRINTF
="#undef ISC_PLATFORM_NEEDVSNPRINTF"
27453 ISC_EXTRA_OBJS
="$ISC_EXTRA_OBJS print.$O"
27454 ISC_EXTRA_SRCS
="$ISC_EXTRA_SRCS print.c"
27455 ISC_PLATFORM_NEEDVSNPRINTF
="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
27464 # Determine the printf format characters to use when printing
27465 # values of type isc_int64_t. We make the assumption that platforms
27466 # where a "long long" is the same size as a "long" (e.g., Alpha/OSF1)
27467 # want "%ld" and everyone else can use "%lld". Win32 uses "%I64d",
27468 # but that's defined elsewhere since we don't use configure on Win32.
27470 { echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
27471 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6; }
27472 if test "$cross_compiling" = yes; then
27473 { echo "$as_me:$LINENO: result: default ll" >&5
27474 echo "${ECHO_T}default ll" >&6; }
27475 ISC_PLATFORM_QUADFORMAT
='#define ISC_PLATFORM_QUADFORMAT "ll"'
27477 cat >conftest.
$ac_ext <<_ACEOF
27480 cat confdefs.h
>>conftest.
$ac_ext
27481 cat >>conftest.
$ac_ext <<_ACEOF
27482 /* end confdefs.h. */
27483 main() { exit(!(sizeof(long long int) == sizeof(long int))); }
27485 rm -f conftest
$ac_exeext
27486 if { (ac_try
="$ac_link"
27487 case "(($ac_try" in
27488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27489 *) ac_try_echo=$ac_try;;
27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492 (eval "$ac_link") 2>&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27498 *) ac_try_echo
=$ac_try;;
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 { echo "$as_me:$LINENO: result: l" >&5
27506 echo "${ECHO_T}l" >&6; }
27507 ISC_PLATFORM_QUADFORMAT
='#define ISC_PLATFORM_QUADFORMAT "l"'
27509 echo "$as_me: program exited with status $ac_status" >&5
27510 echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.
$ac_ext >&5
27513 ( exit $ac_status )
27514 { echo "$as_me:$LINENO: result: ll" >&5
27515 echo "${ECHO_T}ll" >&6; }
27516 ISC_PLATFORM_QUADFORMAT
='#define ISC_PLATFORM_QUADFORMAT "ll"'
27518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27527 { echo "$as_me:$LINENO: checking for chroot" >&5
27528 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
27529 if test "${ac_cv_func_chroot+set}" = set; then
27530 echo $ECHO_N "(cached) $ECHO_C" >&6
27532 cat >conftest.
$ac_ext <<_ACEOF
27535 cat confdefs.h
>>conftest.
$ac_ext
27536 cat >>conftest.
$ac_ext <<_ACEOF
27537 /* end confdefs.h. */
27538 /* Define chroot to an innocuous variant, in case <limits.h> declares chroot.
27539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27540 #define chroot innocuous_chroot
27542 /* System header to define __stub macros and hopefully few prototypes,
27543 which can conflict with char chroot (); below.
27544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27545 <limits.h> exists even on freestanding compilers. */
27548 # include <limits.h>
27550 # include <assert.h>
27555 /* Override any GCC internal prototype to avoid an error.
27556 Use char because int might match the return type of a GCC
27557 builtin and then its argument prototype would still apply. */
27562 /* The GNU C library defines this for functions which it implements
27563 to always fail with ENOSYS. Some functions are actually named
27564 something starting with __ and the normal name is an alias. */
27565 #if defined __stub_chroot || defined __stub___chroot
27577 rm -f conftest.
$ac_objext conftest
$ac_exeext
27578 if { (ac_try
="$ac_link"
27579 case "(($ac_try" in
27580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27581 *) ac_try_echo=$ac_try;;
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_link") 2>conftest.er1
27586 grep -v '^ *+' conftest.er1 >conftest.err
27588 cat conftest.err >&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); } && {
27591 test -z "$ac_c_werror_flag" ||
27592 test ! -s conftest.err
27593 } && test -s conftest$ac_exeext &&
27594 $as_test_x conftest$ac_exeext; then
27595 ac_cv_func_chroot=yes
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27600 ac_cv_func_chroot=no
27603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27604 conftest$ac_exeext conftest.$ac_ext
27606 { echo "$as_me:$LINENO: result: $ac_cv_func_chroot" >&5
27607 echo "${ECHO_T}$ac_cv_func_chroot" >&6; }
27608 if test $ac_cv_func_chroot = yes; then
27609 cat >>confdefs.h <<\_ACEOF
27610 #define HAVE_CHROOT 1
27617 # for accept, recvfrom, getpeername etc.
27619 { echo "$as_me:$LINENO: checking for socket length type" >&5
27620 echo $ECHO_N "checking for socket length type... $ECHO_C" >&6; }
27621 cat >conftest.$ac_ext <<_ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27628 #include <sys/types.h>
27629 #include <sys/socket.h>
27630 int accept(int, struct sockaddr *, socklen_t *);
27640 rm -f conftest.$ac_objext
27641 if { (ac_try="$ac_compile"
27642 case "(($ac_try" in
27643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27644 *) ac_try_echo
=$ac_try;;
27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_compile") 2>conftest.er1
27649 grep -v '^ *+' conftest.er1
>conftest.err
27651 cat conftest.err
>&5
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); } && {
27654 test -z "$ac_c_werror_flag" ||
27655 test ! -s conftest.err
27656 } && test -s conftest.
$ac_objext; then
27657 ISC_SOCKLEN_T
="#define ISC_SOCKLEN_T socklen_t"
27658 { echo "$as_me:$LINENO: result: socklen_t" >&5
27659 echo "${ECHO_T}socklen_t" >&6; }
27662 echo "$as_me: failed program was:" >&5
27663 sed 's/^/| /' conftest.
$ac_ext >&5
27665 cat >conftest.
$ac_ext <<_ACEOF
27668 cat confdefs.h
>>conftest.
$ac_ext
27669 cat >>conftest.
$ac_ext <<_ACEOF
27670 /* end confdefs.h. */
27672 #include <sys/types.h>
27673 #include <sys/socket.h>
27674 int accept(int, struct sockaddr *, unsigned int *);
27684 rm -f conftest.
$ac_objext
27685 if { (ac_try
="$ac_compile"
27686 case "(($ac_try" in
27687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27688 *) ac_try_echo=$ac_try;;
27690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691 (eval "$ac_compile") 2>conftest.er1
27693 grep -v '^ *+' conftest.er1 >conftest.err
27695 cat conftest.err >&5
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); } && {
27698 test -z "$ac_c_werror_flag" ||
27699 test ! -s conftest.err
27700 } && test -s conftest.$ac_objext; then
27701 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int"
27702 { echo "$as_me:$LINENO: result: unsigned int" >&5
27703 echo "${ECHO_T}unsigned int" >&6; }
27706 echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27709 cat >conftest.$ac_ext <<_ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27716 #include <sys/types.h>
27717 #include <sys/socket.h>
27718 int accept(int, struct sockaddr *, unsigned long *);
27728 rm -f conftest.$ac_objext
27729 if { (ac_try="$ac_compile"
27730 case "(($ac_try" in
27731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27732 *) ac_try_echo
=$ac_try;;
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735 (eval "$ac_compile") 2>conftest.er1
27737 grep -v '^ *+' conftest.er1
>conftest.err
27739 cat conftest.err
>&5
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); } && {
27742 test -z "$ac_c_werror_flag" ||
27743 test ! -s conftest.err
27744 } && test -s conftest.
$ac_objext; then
27745 ISC_SOCKLEN_T
="#define ISC_SOCKLEN_T unsigned long"
27746 { echo "$as_me:$LINENO: result: unsigned long" >&5
27747 echo "${ECHO_T}unsigned long" >&6; }
27750 echo "$as_me: failed program was:" >&5
27751 sed 's/^/| /' conftest.
$ac_ext >&5
27753 cat >conftest.
$ac_ext <<_ACEOF
27756 cat confdefs.h
>>conftest.
$ac_ext
27757 cat >>conftest.
$ac_ext <<_ACEOF
27758 /* end confdefs.h. */
27760 #include <sys/types.h>
27761 #include <sys/socket.h>
27762 int accept(int, struct sockaddr *, long *);
27772 rm -f conftest.
$ac_objext
27773 if { (ac_try
="$ac_compile"
27774 case "(($ac_try" in
27775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_compile") 2>conftest.er1
27781 grep -v '^ *+' conftest.er1 >conftest.err
27783 cat conftest.err >&5
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); } && {
27786 test -z "$ac_c_werror_flag" ||
27787 test ! -s conftest.err
27788 } && test -s conftest.$ac_objext; then
27789 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long"
27790 { echo "$as_me:$LINENO: result: long" >&5
27791 echo "${ECHO_T}long" >&6; }
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27797 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T int"
27798 { echo "$as_me:$LINENO: result: int" >&5
27799 echo "${ECHO_T}int" >&6; }
27803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27815 { echo "$as_me:$LINENO: checking for getgrouplist" >&5
27816 echo $ECHO_N "checking for getgrouplist... $ECHO_C" >&6; }
27817 if test "${ac_cv_func_getgrouplist+set}" = set; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27820 cat >conftest.$ac_ext <<_ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h. */
27826 /* Define getgrouplist to an innocuous variant, in case <limits.h> declares getgrouplist.
27827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27828 #define getgrouplist innocuous_getgrouplist
27830 /* System header to define __stub macros and hopefully few prototypes,
27831 which can conflict with char getgrouplist (); below.
27832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27833 <limits.h> exists even on freestanding compilers. */
27836 # include <limits.h>
27838 # include <assert.h>
27841 #undef getgrouplist
27843 /* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
27849 char getgrouplist ();
27850 /* The GNU C library defines this for functions which it implements
27851 to always fail with ENOSYS. Some functions are actually named
27852 something starting with __ and the normal name is an alias. */
27853 #if defined __stub_getgrouplist || defined __stub___getgrouplist
27860 return getgrouplist ();
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866 if { (ac_try="$ac_link"
27867 case "(($ac_try" in
27868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27869 *) ac_try_echo
=$ac_try;;
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
27874 grep -v '^ *+' conftest.er1
>conftest.err
27876 cat conftest.err
>&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } && {
27879 test -z "$ac_c_werror_flag" ||
27880 test ! -s conftest.err
27881 } && test -s conftest
$ac_exeext &&
27882 $as_test_x conftest
$ac_exeext; then
27883 ac_cv_func_getgrouplist
=yes
27885 echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.
$ac_ext >&5
27888 ac_cv_func_getgrouplist
=no
27891 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27892 conftest
$ac_exeext conftest.
$ac_ext
27894 { echo "$as_me:$LINENO: result: $ac_cv_func_getgrouplist" >&5
27895 echo "${ECHO_T}$ac_cv_func_getgrouplist" >&6; }
27896 if test $ac_cv_func_getgrouplist = yes; then
27897 cat >conftest.
$ac_ext <<_ACEOF
27900 cat confdefs.h
>>conftest.
$ac_ext
27901 cat >>conftest.
$ac_ext <<_ACEOF
27902 /* end confdefs.h. */
27903 #include <unistd.h>
27905 getgrouplist(const char *name, int basegid, int *groups, int *ngroups) {
27916 rm -f conftest.
$ac_objext
27917 if { (ac_try
="$ac_compile"
27918 case "(($ac_try" in
27919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27920 *) ac_try_echo=$ac_try;;
27922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27923 (eval "$ac_compile") 2>conftest.er1
27925 grep -v '^ *+' conftest.er1 >conftest.err
27927 cat conftest.err >&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); } && {
27930 test -z "$ac_c_werror_flag" ||
27931 test ! -s conftest.err
27932 } && test -s conftest.$ac_objext; then
27933 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, int *ngroups"
27936 echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27939 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
27943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27945 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
27946 cat >>confdefs.h <<\_ACEOF
27947 #define NEED_GETGROUPLIST 1
27955 { echo "$as_me:$LINENO: checking for setgroupent" >&5
27956 echo $ECHO_N "checking for setgroupent... $ECHO_C" >&6; }
27957 if test "${ac_cv_func_setgroupent+set}" = set; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27960 cat >conftest.$ac_ext <<_ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h. */
27966 /* Define setgroupent to an innocuous variant, in case <limits.h> declares setgroupent.
27967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27968 #define setgroupent innocuous_setgroupent
27970 /* System header to define __stub macros and hopefully few prototypes,
27971 which can conflict with char setgroupent (); below.
27972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27973 <limits.h> exists even on freestanding compilers. */
27976 # include <limits.h>
27978 # include <assert.h>
27983 /* Override any GCC internal prototype to avoid an error.
27984 Use char because int might match the return type of a GCC
27985 builtin and then its argument prototype would still apply. */
27989 char setgroupent ();
27990 /* The GNU C library defines this for functions which it implements
27991 to always fail with ENOSYS. Some functions are actually named
27992 something starting with __ and the normal name is an alias. */
27993 #if defined __stub_setgroupent || defined __stub___setgroupent
28000 return setgroupent ();
28005 rm -f conftest.$ac_objext conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28009 *) ac_try_echo
=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_link") 2>conftest.er1
28014 grep -v '^ *+' conftest.er1
>conftest.err
28016 cat conftest.err
>&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } && {
28019 test -z "$ac_c_werror_flag" ||
28020 test ! -s conftest.err
28021 } && test -s conftest
$ac_exeext &&
28022 $as_test_x conftest
$ac_exeext; then
28023 ac_cv_func_setgroupent
=yes
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.
$ac_ext >&5
28028 ac_cv_func_setgroupent
=no
28031 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28032 conftest
$ac_exeext conftest.
$ac_ext
28034 { echo "$as_me:$LINENO: result: $ac_cv_func_setgroupent" >&5
28035 echo "${ECHO_T}$ac_cv_func_setgroupent" >&6; }
28036 if test $ac_cv_func_setgroupent = yes; then
28039 cat >>confdefs.h
<<\_ACEOF
28040 #define NEED_SETGROUPENT 1
28050 { echo "$as_me:$LINENO: checking for getnetbyaddr_r" >&5
28051 echo $ECHO_N "checking for getnetbyaddr_r... $ECHO_C" >&6; }
28052 if test "${ac_cv_func_getnetbyaddr_r+set}" = set; then
28053 echo $ECHO_N "(cached) $ECHO_C" >&6
28055 cat >conftest.
$ac_ext <<_ACEOF
28058 cat confdefs.h
>>conftest.
$ac_ext
28059 cat >>conftest.
$ac_ext <<_ACEOF
28060 /* end confdefs.h. */
28061 /* Define getnetbyaddr_r to an innocuous variant, in case <limits.h> declares getnetbyaddr_r.
28062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28063 #define getnetbyaddr_r innocuous_getnetbyaddr_r
28065 /* System header to define __stub macros and hopefully few prototypes,
28066 which can conflict with char getnetbyaddr_r (); below.
28067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28068 <limits.h> exists even on freestanding compilers. */
28071 # include <limits.h>
28073 # include <assert.h>
28076 #undef getnetbyaddr_r
28078 /* Override any GCC internal prototype to avoid an error.
28079 Use char because int might match the return type of a GCC
28080 builtin and then its argument prototype would still apply. */
28084 char getnetbyaddr_r ();
28085 /* The GNU C library defines this for functions which it implements
28086 to always fail with ENOSYS. Some functions are actually named
28087 something starting with __ and the normal name is an alias. */
28088 #if defined __stub_getnetbyaddr_r || defined __stub___getnetbyaddr_r
28095 return getnetbyaddr_r ();
28100 rm -f conftest.
$ac_objext conftest
$ac_exeext
28101 if { (ac_try
="$ac_link"
28102 case "(($ac_try" in
28103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28104 *) ac_try_echo=$ac_try;;
28106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107 (eval "$ac_link") 2>conftest.er1
28109 grep -v '^ *+' conftest.er1 >conftest.err
28111 cat conftest.err >&5
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); } && {
28114 test -z "$ac_c_werror_flag" ||
28115 test ! -s conftest.err
28116 } && test -s conftest$ac_exeext &&
28117 $as_test_x conftest$ac_exeext; then
28118 ac_cv_func_getnetbyaddr_r=yes
28120 echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28123 ac_cv_func_getnetbyaddr_r=no
28126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28127 conftest$ac_exeext conftest.$ac_ext
28129 { echo "$as_me:$LINENO: result: $ac_cv_func_getnetbyaddr_r" >&5
28130 echo "${ECHO_T}$ac_cv_func_getnetbyaddr_r" >&6; }
28131 if test $ac_cv_func_getnetbyaddr_r = yes; then
28132 cat >conftest.$ac_ext <<_ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28141 #define _OSF_SOURCE
28146 getnetbyaddr_r(long net, int type, struct netent *result, char *buffer,
28157 rm -f conftest.$ac_objext
28158 if { (ac_try="$ac_compile"
28159 case "(($ac_try" in
28160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28161 *) ac_try_echo
=$ac_try;;
28163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164 (eval "$ac_compile") 2>conftest.er1
28166 grep -v '^ *+' conftest.er1
>conftest.err
28168 cat conftest.err
>&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } && {
28171 test -z "$ac_c_werror_flag" ||
28172 test ! -s conftest.err
28173 } && test -s conftest.
$ac_objext; then
28175 NET_R_ARGS
="#define NET_R_ARGS char *buf, int buflen"
28176 NET_R_BAD
="#define NET_R_BAD NULL"
28177 NET_R_COPY
="#define NET_R_COPY buf, buflen"
28178 NET_R_COPY_ARGS
="#define NET_R_COPY_ARGS NET_R_ARGS"
28179 NET_R_OK
="#define NET_R_OK nptr"
28180 NET_R_SETANSWER
="#undef NET_R_SETANSWER"
28181 NET_R_RETURN
="#define NET_R_RETURN struct netent *"
28182 GETNETBYADDR_ADDR_T
="#define GETNETBYADDR_ADDR_T long"
28183 NETENT_DATA
="#undef NETENT_DATA"
28186 echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.
$ac_ext >&5
28189 cat >conftest.
$ac_ext <<_ACEOF
28192 cat confdefs.h
>>conftest.
$ac_ext
28193 cat >>conftest.
$ac_ext <<_ACEOF
28194 /* end confdefs.h. */
28198 #define _OSF_SOURCE
28202 int getnetbyaddr_r (unsigned long int, int, struct netent *,
28203 char *, size_t, struct netent **, int *);
28213 rm -f conftest.
$ac_objext
28214 if { (ac_try
="$ac_compile"
28215 case "(($ac_try" in
28216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_compile") 2>conftest.er1
28222 grep -v '^ *+' conftest.er1 >conftest.err
28224 cat conftest.err >&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } && {
28227 test -z "$ac_c_werror_flag" ||
28228 test ! -s conftest.err
28229 } && test -s conftest.$ac_objext; then
28231 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
28232 NET_R_BAD="#define NET_R_BAD ERANGE"
28233 NET_R_COPY="#define NET_R_COPY buf, buflen"
28234 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
28235 NET_R_OK="#define NET_R_OK 0"
28236 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
28237 NET_R_RETURN="#define NET_R_RETURN int"
28238 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
28239 NETENT_DATA="#undef NETENT_DATA"
28242 echo "$as_me: failed program was:" >&5
28243 sed 's/^/| /' conftest.$ac_ext >&5
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28254 #define _OSF_SOURCE
28258 extern int getnetbyaddr_r(int, int, struct netent *, struct netent_data *);
28268 rm -f conftest.$ac_objext
28269 if { (ac_try="$ac_compile"
28270 case "(($ac_try" in
28271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28272 *) ac_try_echo
=$ac_try;;
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275 (eval "$ac_compile") 2>conftest.er1
28277 grep -v '^ *+' conftest.er1
>conftest.err
28279 cat conftest.err
>&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } && {
28282 test -z "$ac_c_werror_flag" ||
28283 test ! -s conftest.err
28284 } && test -s conftest.
$ac_objext; then
28286 NET_R_ARGS
="#define NET_R_ARGS struct netent_data *ndptr"
28287 NET_R_BAD
="#define NET_R_BAD (-1)"
28288 NET_R_COPY
="#define NET_R_COPY ndptr"
28289 NET_R_COPY_ARGS
="#define NET_R_COPY_ARGS struct netent_data *ndptr"
28290 NET_R_OK
="#define NET_R_OK 0"
28291 NET_R_SETANSWER
="#undef NET_R_SETANSWER"
28292 NET_R_RETURN
="#define NET_R_RETURN int"
28293 GETNETBYADDR_ADDR_T
="#define GETNETBYADDR_ADDR_T int"
28294 NETENT_DATA
="#define NETENT_DATA 1"
28297 echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.
$ac_ext >&5
28300 cat >conftest.
$ac_ext <<_ACEOF
28303 cat confdefs.h
>>conftest.
$ac_ext
28304 cat >>conftest.
$ac_ext <<_ACEOF
28305 /* end confdefs.h. */
28309 int getnetbyaddr_r (in_addr_t, int, struct netent *, struct netent_data *);
28319 rm -f conftest.
$ac_objext
28320 if { (ac_try
="$ac_compile"
28321 case "(($ac_try" in
28322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28323 *) ac_try_echo=$ac_try;;
28325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28326 (eval "$ac_compile") 2>conftest.er1
28328 grep -v '^ *+' conftest.er1 >conftest.err
28330 cat conftest.err >&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } && {
28333 test -z "$ac_c_werror_flag" ||
28334 test ! -s conftest.err
28335 } && test -s conftest.$ac_objext; then
28337 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
28338 NET_R_BAD="#define NET_R_BAD (-1)"
28339 NET_R_COPY="#define NET_R_COPY ndptr"
28340 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
28341 NET_R_OK="#define NET_R_OK 0"
28342 NET_R_SETANSWER="#undef NET_R_SETANSWER"
28343 NET_R_RETURN="#define NET_R_RETURN int"
28344 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
28345 NETENT_DATA="#define NETENT_DATA 1"
28348 echo "$as_me: failed program was:" >&5
28349 sed 's/^/| /' conftest.$ac_ext >&5
28351 cat >conftest.$ac_ext <<_ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h. */
28360 int getnetbyaddr_r (long, int, struct netent *, struct netent_data *);
28370 rm -f conftest.$ac_objext
28371 if { (ac_try="$ac_compile"
28372 case "(($ac_try" in
28373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28374 *) ac_try_echo
=$ac_try;;
28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377 (eval "$ac_compile") 2>conftest.er1
28379 grep -v '^ *+' conftest.er1
>conftest.err
28381 cat conftest.err
>&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } && {
28384 test -z "$ac_c_werror_flag" ||
28385 test ! -s conftest.err
28386 } && test -s conftest.
$ac_objext; then
28388 NET_R_ARGS
="#define NET_R_ARGS struct netent_data *ndptr"
28389 NET_R_BAD
="#define NET_R_BAD (-1)"
28390 NET_R_COPY
="#define NET_R_COPY ndptr"
28391 NET_R_COPY_ARGS
="#define NET_R_COPY_ARGS struct netent_data *ndptr"
28392 NET_R_OK
="#define NET_R_OK 0"
28393 NET_R_SETANSWER
="#undef NET_R_SETANSWER"
28394 NET_R_RETURN
="#define NET_R_RETURN int"
28395 GETNETBYADDR_ADDR_T
="#define GETNETBYADDR_ADDR_T long"
28396 NETENT_DATA
="#define NETENT_DATA 1"
28399 echo "$as_me: failed program was:" >&5
28400 sed 's/^/| /' conftest.
$ac_ext >&5
28402 cat >conftest.
$ac_ext <<_ACEOF
28405 cat confdefs.h
>>conftest.
$ac_ext
28406 cat >>conftest.
$ac_ext <<_ACEOF
28407 /* end confdefs.h. */
28411 int getnetbyaddr_r (uint32_t, int, struct netent *,
28412 char *, size_t, struct netent **, int *);
28422 rm -f conftest.
$ac_objext
28423 if { (ac_try
="$ac_compile"
28424 case "(($ac_try" in
28425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28426 *) ac_try_echo=$ac_try;;
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429 (eval "$ac_compile") 2>conftest.er1
28431 grep -v '^ *+' conftest.er1 >conftest.err
28433 cat conftest.err >&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } && {
28436 test -z "$ac_c_werror_flag" ||
28437 test ! -s conftest.err
28438 } && test -s conftest.$ac_objext; then
28440 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
28441 NET_R_BAD="#define NET_R_BAD ERANGE"
28442 NET_R_COPY="#define NET_R_COPY buf, buflen"
28443 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
28444 NET_R_OK="#define NET_R_OK 0"
28445 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
28446 NET_R_RETURN="#define NET_R_RETURN int"
28447 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
28448 NETENT_DATA="#undef NETENT_DATA"
28451 echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28480 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
28481 NET_R_BAD="#define NET_R_BAD NULL"
28482 NET_R_COPY="#define NET_R_COPY buf, buflen"
28483 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
28484 NET_R_OK="#define NET_R_OK nptr"
28485 NET_R_SETANSWER="#undef NET_R_SETANSWER"
28486 NET_R_RETURN="#define NET_R_RETURN struct netent *"
28487 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
28488 NETENT_DATA="#undef NETENT_DATA"
28495 *dec-osf*) GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" ;;
28507 { echo "$as_me:$LINENO: checking for setnetent_r" >&5
28508 echo $ECHO_N "checking for setnetent_r... $ECHO_C" >&6; }
28509 if test "${ac_cv_func_setnetent_r+set}" = set; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28512 cat >conftest.$ac_ext <<_ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h. */
28518 /* Define setnetent_r to an innocuous variant, in case <limits.h> declares setnetent_r.
28519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28520 #define setnetent_r innocuous_setnetent_r
28522 /* System header to define __stub macros and hopefully few prototypes,
28523 which can conflict with char setnetent_r (); below.
28524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28525 <limits.h> exists even on freestanding compilers. */
28528 # include <limits.h>
28530 # include <assert.h>
28535 /* Override any GCC internal prototype to avoid an error.
28536 Use char because int might match the return type of a GCC
28537 builtin and then its argument prototype would still apply. */
28541 char setnetent_r ();
28542 /* The GNU C library defines this for functions which it implements
28543 to always fail with ENOSYS. Some functions are actually named
28544 something starting with __ and the normal name is an alias. */
28545 #if defined __stub_setnetent_r || defined __stub___setnetent_r
28552 return setnetent_r ();
28557 rm -f conftest.$ac_objext conftest$ac_exeext
28558 if { (ac_try="$ac_link"
28559 case "(($ac_try" in
28560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28561 *) ac_try_echo
=$ac_try;;
28563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564 (eval "$ac_link") 2>conftest.er1
28566 grep -v '^ *+' conftest.er1
>conftest.err
28568 cat conftest.err
>&5
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); } && {
28571 test -z "$ac_c_werror_flag" ||
28572 test ! -s conftest.err
28573 } && test -s conftest
$ac_exeext &&
28574 $as_test_x conftest
$ac_exeext; then
28575 ac_cv_func_setnetent_r
=yes
28577 echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.
$ac_ext >&5
28580 ac_cv_func_setnetent_r
=no
28583 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28584 conftest
$ac_exeext conftest.
$ac_ext
28586 { echo "$as_me:$LINENO: result: $ac_cv_func_setnetent_r" >&5
28587 echo "${ECHO_T}$ac_cv_func_setnetent_r" >&6; }
28588 if test $ac_cv_func_setnetent_r = yes; then
28589 cat >conftest.
$ac_ext <<_ACEOF
28592 cat confdefs.h
>>conftest.
$ac_ext
28593 cat >>conftest.
$ac_ext <<_ACEOF
28594 /* end confdefs.h. */
28599 void setnetent_r (int);
28609 rm -f conftest.
$ac_objext
28610 if { (ac_try
="$ac_compile"
28611 case "(($ac_try" in
28612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28613 *) ac_try_echo=$ac_try;;
28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616 (eval "$ac_compile") 2>conftest.er1
28618 grep -v '^ *+' conftest.er1 >conftest.err
28620 cat conftest.err >&5
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); } && {
28623 test -z "$ac_c_werror_flag" ||
28624 test ! -s conftest.err
28625 } && test -s conftest.$ac_objext; then
28627 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
28628 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
28629 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
28632 echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28635 cat >conftest.$ac_ext <<_ACEOF
28638 cat confdefs.h >>conftest.$ac_ext
28639 cat >>conftest.$ac_ext <<_ACEOF
28640 /* end confdefs.h. */
28646 extern int setnetent_r(int, struct netent_data *);
28656 rm -f conftest.$ac_objext
28657 if { (ac_try="$ac_compile"
28658 case "(($ac_try" in
28659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28660 *) ac_try_echo
=$ac_try;;
28662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663 (eval "$ac_compile") 2>conftest.er1
28665 grep -v '^ *+' conftest.er1
>conftest.err
28667 cat conftest.err
>&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); } && {
28670 test -z "$ac_c_werror_flag" ||
28671 test ! -s conftest.err
28672 } && test -s conftest.
$ac_objext; then
28674 NET_R_ENT_ARGS
="#define NET_R_ENT_ARGS struct netent_data *ndptr"
28675 NET_R_SET_RESULT
="#define NET_R_SET_RESULT NET_R_OK"
28676 NET_R_SET_RETURN
="#define NET_R_SET_RETURN int"
28679 echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.
$ac_ext >&5
28685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28692 NET_R_ENT_ARGS
="#undef NET_R_ENT_ARGS /*empty*/"
28693 NET_R_SET_RESULT
="#undef NET_R_SET_RESULT /*empty*/"
28694 NET_R_SET_RETURN
="#define NET_R_SET_RETURN void"
28707 { echo "$as_me:$LINENO: checking for endnetent_r" >&5
28708 echo $ECHO_N "checking for endnetent_r... $ECHO_C" >&6; }
28709 if test "${ac_cv_func_endnetent_r+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 cat >conftest.
$ac_ext <<_ACEOF
28715 cat confdefs.h
>>conftest.
$ac_ext
28716 cat >>conftest.
$ac_ext <<_ACEOF
28717 /* end confdefs.h. */
28718 /* Define endnetent_r to an innocuous variant, in case <limits.h> declares endnetent_r.
28719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28720 #define endnetent_r innocuous_endnetent_r
28722 /* System header to define __stub macros and hopefully few prototypes,
28723 which can conflict with char endnetent_r (); below.
28724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28725 <limits.h> exists even on freestanding compilers. */
28728 # include <limits.h>
28730 # include <assert.h>
28735 /* Override any GCC internal prototype to avoid an error.
28736 Use char because int might match the return type of a GCC
28737 builtin and then its argument prototype would still apply. */
28741 char endnetent_r ();
28742 /* The GNU C library defines this for functions which it implements
28743 to always fail with ENOSYS. Some functions are actually named
28744 something starting with __ and the normal name is an alias. */
28745 #if defined __stub_endnetent_r || defined __stub___endnetent_r
28752 return endnetent_r ();
28757 rm -f conftest.
$ac_objext conftest
$ac_exeext
28758 if { (ac_try
="$ac_link"
28759 case "(($ac_try" in
28760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28761 *) ac_try_echo=$ac_try;;
28763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28764 (eval "$ac_link") 2>conftest.er1
28766 grep -v '^ *+' conftest.er1 >conftest.err
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } && {
28771 test -z "$ac_c_werror_flag" ||
28772 test ! -s conftest.err
28773 } && test -s conftest$ac_exeext &&
28774 $as_test_x conftest$ac_exeext; then
28775 ac_cv_func_endnetent_r=yes
28777 echo "$as_me: failed program was:" >&5
28778 sed 's/^/| /' conftest.$ac_ext >&5
28780 ac_cv_func_endnetent_r=no
28783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28784 conftest$ac_exeext conftest.$ac_ext
28786 { echo "$as_me:$LINENO: result: $ac_cv_func_endnetent_r" >&5
28787 echo "${ECHO_T}$ac_cv_func_endnetent_r" >&6; }
28788 if test $ac_cv_func_endnetent_r = yes; then
28789 cat >conftest.$ac_ext <<_ACEOF
28792 cat confdefs.h >>conftest.$ac_ext
28793 cat >>conftest.$ac_ext <<_ACEOF
28794 /* end confdefs.h. */
28801 void endnetent_r (void);
28811 rm -f conftest.$ac_objext
28812 if { (ac_try="$ac_compile"
28813 case "(($ac_try" in
28814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28815 *) ac_try_echo
=$ac_try;;
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_compile") 2>conftest.er1
28820 grep -v '^ *+' conftest.er1
>conftest.err
28822 cat conftest.err
>&5
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); } && {
28825 test -z "$ac_c_werror_flag" ||
28826 test ! -s conftest.err
28827 } && test -s conftest.
$ac_objext; then
28829 NET_R_END_RESULT
="#define NET_R_END_RESULT(x) /*empty*/"
28830 NET_R_END_RETURN
="#define NET_R_END_RETURN void"
28833 echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.
$ac_ext >&5
28836 cat >conftest.
$ac_ext <<_ACEOF
28839 cat confdefs.h
>>conftest.
$ac_ext
28840 cat >>conftest.
$ac_ext <<_ACEOF
28841 /* end confdefs.h. */
28848 extern int endnetent_r(struct netent_data *);
28858 rm -f conftest.
$ac_objext
28859 if { (ac_try
="$ac_compile"
28860 case "(($ac_try" in
28861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28862 *) ac_try_echo=$ac_try;;
28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865 (eval "$ac_compile") 2>conftest.er1
28867 grep -v '^ *+' conftest.er1 >conftest.err
28869 cat conftest.err >&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } && {
28872 test -z "$ac_c_werror_flag" ||
28873 test ! -s conftest.err
28874 } && test -s conftest.$ac_objext; then
28876 NET_R_END_RESULT="#define NET_R_END_RESULT(x) return (x)"
28877 NET_R_END_RETURN="#define NET_R_END_RETURN int"
28880 echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28883 cat >conftest.$ac_ext <<_ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h. */
28895 extern void endnetent_r(struct netent_data *);
28905 rm -f conftest.$ac_objext
28906 if { (ac_try="$ac_compile"
28907 case "(($ac_try" in
28908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28909 *) ac_try_echo
=$ac_try;;
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_compile") 2>conftest.er1
28914 grep -v '^ *+' conftest.er1
>conftest.err
28916 cat conftest.err
>&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } && {
28919 test -z "$ac_c_werror_flag" ||
28920 test ! -s conftest.err
28921 } && test -s conftest.
$ac_objext; then
28923 NET_R_END_RESULT
="#define NET_R_END_RESULT(x) /*empty*/"
28924 NET_R_END_RETURN
="#define NET_R_END_RETURN void"
28927 echo "$as_me: failed program was:" >&5
28928 sed 's/^/| /' conftest.
$ac_ext >&5
28933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28944 NET_R_END_RESULT
="#define NET_R_END_RESULT(x) /*empty*/"
28945 NET_R_END_RETURN
="#define NET_R_END_RETURN void"
28953 { echo "$as_me:$LINENO: checking for getgrnam_r" >&5
28954 echo $ECHO_N "checking for getgrnam_r... $ECHO_C" >&6; }
28955 if test "${ac_cv_func_getgrnam_r+set}" = set; then
28956 echo $ECHO_N "(cached) $ECHO_C" >&6
28958 cat >conftest.
$ac_ext <<_ACEOF
28961 cat confdefs.h
>>conftest.
$ac_ext
28962 cat >>conftest.
$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28964 /* Define getgrnam_r to an innocuous variant, in case <limits.h> declares getgrnam_r.
28965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28966 #define getgrnam_r innocuous_getgrnam_r
28968 /* System header to define __stub macros and hopefully few prototypes,
28969 which can conflict with char getgrnam_r (); below.
28970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28971 <limits.h> exists even on freestanding compilers. */
28974 # include <limits.h>
28976 # include <assert.h>
28981 /* Override any GCC internal prototype to avoid an error.
28982 Use char because int might match the return type of a GCC
28983 builtin and then its argument prototype would still apply. */
28987 char getgrnam_r ();
28988 /* The GNU C library defines this for functions which it implements
28989 to always fail with ENOSYS. Some functions are actually named
28990 something starting with __ and the normal name is an alias. */
28991 #if defined __stub_getgrnam_r || defined __stub___getgrnam_r
28998 return getgrnam_r ();
29003 rm -f conftest.
$ac_objext conftest
$ac_exeext
29004 if { (ac_try
="$ac_link"
29005 case "(($ac_try" in
29006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29007 *) ac_try_echo=$ac_try;;
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010 (eval "$ac_link") 2>conftest.er1
29012 grep -v '^ *+' conftest.er1 >conftest.err
29014 cat conftest.err >&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } && {
29017 test -z "$ac_c_werror_flag" ||
29018 test ! -s conftest.err
29019 } && test -s conftest$ac_exeext &&
29020 $as_test_x conftest$ac_exeext; then
29021 ac_cv_func_getgrnam_r=yes
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 ac_cv_func_getgrnam_r=no
29029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29030 conftest$ac_exeext conftest.$ac_ext
29032 { echo "$as_me:$LINENO: result: $ac_cv_func_getgrnam_r" >&5
29033 echo "${ECHO_T}$ac_cv_func_getgrnam_r" >&6; }
29034 if test $ac_cv_func_getgrnam_r = yes; then
29037 cat >>confdefs.h <<\_ACEOF
29038 #define NEED_GETGRNAM_R 1
29043 { echo "$as_me:$LINENO: checking for getgrgid_r" >&5
29044 echo $ECHO_N "checking for getgrgid_r... $ECHO_C" >&6; }
29045 if test "${ac_cv_func_getgrgid_r+set}" = set; then
29046 echo $ECHO_N "(cached) $ECHO_C" >&6
29048 cat >conftest.$ac_ext <<_ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h. */
29054 /* Define getgrgid_r to an innocuous variant, in case <limits.h> declares getgrgid_r.
29055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29056 #define getgrgid_r innocuous_getgrgid_r
29058 /* System header to define __stub macros and hopefully few prototypes,
29059 which can conflict with char getgrgid_r (); below.
29060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29061 <limits.h> exists even on freestanding compilers. */
29064 # include <limits.h>
29066 # include <assert.h>
29071 /* Override any GCC internal prototype to avoid an error.
29072 Use char because int might match the return type of a GCC
29073 builtin and then its argument prototype would still apply. */
29077 char getgrgid_r ();
29078 /* The GNU C library defines this for functions which it implements
29079 to always fail with ENOSYS. Some functions are actually named
29080 something starting with __ and the normal name is an alias. */
29081 #if defined __stub_getgrgid_r || defined __stub___getgrgid_r
29088 return getgrgid_r ();
29093 rm -f conftest.$ac_objext conftest$ac_exeext
29094 if { (ac_try="$ac_link"
29095 case "(($ac_try" in
29096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29097 *) ac_try_echo
=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_link") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1
>conftest.err
29104 cat conftest.err
>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } && {
29107 test -z "$ac_c_werror_flag" ||
29108 test ! -s conftest.err
29109 } && test -s conftest
$ac_exeext &&
29110 $as_test_x conftest
$ac_exeext; then
29111 ac_cv_func_getgrgid_r
=yes
29113 echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.
$ac_ext >&5
29116 ac_cv_func_getgrgid_r
=no
29119 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29120 conftest
$ac_exeext conftest.
$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_cv_func_getgrgid_r" >&5
29123 echo "${ECHO_T}$ac_cv_func_getgrgid_r" >&6; }
29124 if test $ac_cv_func_getgrgid_r = yes; then
29127 cat >>confdefs.h
<<\_ACEOF
29128 #define NEED_GETGRGID_R 1
29134 { echo "$as_me:$LINENO: checking for getgrent_r" >&5
29135 echo $ECHO_N "checking for getgrent_r... $ECHO_C" >&6; }
29136 if test "${ac_cv_func_getgrent_r+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 cat >conftest.
$ac_ext <<_ACEOF
29142 cat confdefs.h
>>conftest.
$ac_ext
29143 cat >>conftest.
$ac_ext <<_ACEOF
29144 /* end confdefs.h. */
29145 /* Define getgrent_r to an innocuous variant, in case <limits.h> declares getgrent_r.
29146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29147 #define getgrent_r innocuous_getgrent_r
29149 /* System header to define __stub macros and hopefully few prototypes,
29150 which can conflict with char getgrent_r (); below.
29151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29152 <limits.h> exists even on freestanding compilers. */
29155 # include <limits.h>
29157 # include <assert.h>
29162 /* Override any GCC internal prototype to avoid an error.
29163 Use char because int might match the return type of a GCC
29164 builtin and then its argument prototype would still apply. */
29168 char getgrent_r ();
29169 /* The GNU C library defines this for functions which it implements
29170 to always fail with ENOSYS. Some functions are actually named
29171 something starting with __ and the normal name is an alias. */
29172 #if defined __stub_getgrent_r || defined __stub___getgrent_r
29179 return getgrent_r ();
29184 rm -f conftest.
$ac_objext conftest
$ac_exeext
29185 if { (ac_try
="$ac_link"
29186 case "(($ac_try" in
29187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29188 *) ac_try_echo=$ac_try;;
29190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29191 (eval "$ac_link") 2>conftest.er1
29193 grep -v '^ *+' conftest.er1 >conftest.err
29195 cat conftest.err >&5
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); } && {
29198 test -z "$ac_c_werror_flag" ||
29199 test ! -s conftest.err
29200 } && test -s conftest$ac_exeext &&
29201 $as_test_x conftest$ac_exeext; then
29202 ac_cv_func_getgrent_r=yes
29204 echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29207 ac_cv_func_getgrent_r=no
29210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29211 conftest$ac_exeext conftest.$ac_ext
29213 { echo "$as_me:$LINENO: result: $ac_cv_func_getgrent_r" >&5
29214 echo "${ECHO_T}$ac_cv_func_getgrent_r" >&6; }
29215 if test $ac_cv_func_getgrent_r = yes; then
29216 cat >conftest.$ac_ext <<_ACEOF
29219 cat confdefs.h >>conftest.$ac_ext
29220 cat >>conftest.$ac_ext <<_ACEOF
29221 /* end confdefs.h. */
29224 struct group *getgrent_r(struct group *grp, char *buffer,
29235 rm -f conftest.$ac_objext
29236 if { (ac_try="$ac_compile"
29237 case "(($ac_try" in
29238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29239 *) ac_try_echo
=$ac_try;;
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_compile") 2>conftest.er1
29244 grep -v '^ *+' conftest.er1
>conftest.err
29246 cat conftest.err
>&5
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); } && {
29249 test -z "$ac_c_werror_flag" ||
29250 test ! -s conftest.err
29251 } && test -s conftest.
$ac_objext; then
29253 GROUP_R_ARGS
="#define GROUP_R_ARGS char *buf, int buflen"
29254 GROUP_R_BAD
="#define GROUP_R_BAD NULL"
29255 GROUP_R_OK
="#define GROUP_R_OK gptr"
29256 GROUP_R_RETURN
="#define GROUP_R_RETURN struct group *"
29259 echo "$as_me: failed program was:" >&5
29260 sed 's/^/| /' conftest.
$ac_ext >&5
29265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29268 GROUP_R_ARGS
="#define GROUP_R_ARGS char *buf, int buflen"
29269 GROUP_R_BAD
="#define GROUP_R_BAD NULL"
29270 GROUP_R_OK
="#define GROUP_R_OK gptr"
29271 GROUP_R_RETURN
="#define GROUP_R_RETURN struct group *"
29272 cat >>confdefs.h
<<\_ACEOF
29273 #define NEED_GETGRENT_R 1
29284 { echo "$as_me:$LINENO: checking for endgrent_r" >&5
29285 echo $ECHO_N "checking for endgrent_r... $ECHO_C" >&6; }
29286 if test "${ac_cv_func_endgrent_r+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29289 cat >conftest.
$ac_ext <<_ACEOF
29292 cat confdefs.h
>>conftest.
$ac_ext
29293 cat >>conftest.
$ac_ext <<_ACEOF
29294 /* end confdefs.h. */
29295 /* Define endgrent_r to an innocuous variant, in case <limits.h> declares endgrent_r.
29296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29297 #define endgrent_r innocuous_endgrent_r
29299 /* System header to define __stub macros and hopefully few prototypes,
29300 which can conflict with char endgrent_r (); below.
29301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29302 <limits.h> exists even on freestanding compilers. */
29305 # include <limits.h>
29307 # include <assert.h>
29312 /* Override any GCC internal prototype to avoid an error.
29313 Use char because int might match the return type of a GCC
29314 builtin and then its argument prototype would still apply. */
29318 char endgrent_r ();
29319 /* The GNU C library defines this for functions which it implements
29320 to always fail with ENOSYS. Some functions are actually named
29321 something starting with __ and the normal name is an alias. */
29322 #if defined __stub_endgrent_r || defined __stub___endgrent_r
29329 return endgrent_r ();
29334 rm -f conftest.
$ac_objext conftest
$ac_exeext
29335 if { (ac_try
="$ac_link"
29336 case "(($ac_try" in
29337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29338 *) ac_try_echo=$ac_try;;
29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341 (eval "$ac_link") 2>conftest.er1
29343 grep -v '^ *+' conftest.er1 >conftest.err
29345 cat conftest.err >&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); } && {
29348 test -z "$ac_c_werror_flag" ||
29349 test ! -s conftest.err
29350 } && test -s conftest$ac_exeext &&
29351 $as_test_x conftest$ac_exeext; then
29352 ac_cv_func_endgrent_r=yes
29354 echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29357 ac_cv_func_endgrent_r=no
29360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29361 conftest$ac_exeext conftest.$ac_ext
29363 { echo "$as_me:$LINENO: result: $ac_cv_func_endgrent_r" >&5
29364 echo "${ECHO_T}$ac_cv_func_endgrent_r" >&6; }
29365 if test $ac_cv_func_endgrent_r = yes; then
29368 GROUP_R_END_RESULT="#define GROUP_R_END_RESULT(x) /*empty*/"
29369 GROUP_R_END_RETURN="#define GROUP_R_END_RETURN void"
29370 GROUP_R_ENT_ARGS="#define GROUP_R_ENT_ARGS void"
29371 cat >>confdefs.h <<\_ACEOF
29372 #define NEED_ENDGRENT_R 1
29382 { echo "$as_me:$LINENO: checking for setgrent_r" >&5
29383 echo $ECHO_N "checking for setgrent_r... $ECHO_C" >&6; }
29384 if test "${ac_cv_func_setgrent_r+set}" = set; then
29385 echo $ECHO_N "(cached) $ECHO_C" >&6
29387 cat >conftest.$ac_ext <<_ACEOF
29390 cat confdefs.h >>conftest.$ac_ext
29391 cat >>conftest.$ac_ext <<_ACEOF
29392 /* end confdefs.h. */
29393 /* Define setgrent_r to an innocuous variant, in case <limits.h> declares setgrent_r.
29394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29395 #define setgrent_r innocuous_setgrent_r
29397 /* System header to define __stub macros and hopefully few prototypes,
29398 which can conflict with char setgrent_r (); below.
29399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29400 <limits.h> exists even on freestanding compilers. */
29403 # include <limits.h>
29405 # include <assert.h>
29410 /* Override any GCC internal prototype to avoid an error.
29411 Use char because int might match the return type of a GCC
29412 builtin and then its argument prototype would still apply. */
29416 char setgrent_r ();
29417 /* The GNU C library defines this for functions which it implements
29418 to always fail with ENOSYS. Some functions are actually named
29419 something starting with __ and the normal name is an alias. */
29420 #if defined __stub_setgrent_r || defined __stub___setgrent_r
29427 return setgrent_r ();
29432 rm -f conftest.$ac_objext conftest$ac_exeext
29433 if { (ac_try="$ac_link"
29434 case "(($ac_try" in
29435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29436 *) ac_try_echo
=$ac_try;;
29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439 (eval "$ac_link") 2>conftest.er1
29441 grep -v '^ *+' conftest.er1
>conftest.err
29443 cat conftest.err
>&5
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); } && {
29446 test -z "$ac_c_werror_flag" ||
29447 test ! -s conftest.err
29448 } && test -s conftest
$ac_exeext &&
29449 $as_test_x conftest
$ac_exeext; then
29450 ac_cv_func_setgrent_r
=yes
29452 echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.
$ac_ext >&5
29455 ac_cv_func_setgrent_r
=no
29458 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29459 conftest
$ac_exeext conftest.
$ac_ext
29461 { echo "$as_me:$LINENO: result: $ac_cv_func_setgrent_r" >&5
29462 echo "${ECHO_T}$ac_cv_func_setgrent_r" >&6; }
29463 if test $ac_cv_func_setgrent_r = yes; then
29466 GROUP_R_SET_RESULT
="#undef GROUP_R_SET_RESULT /*empty*/"
29467 GROUP_R_SET_RETURN
="#define GROUP_R_SET_RETURN void"
29468 cat >>confdefs.h
<<\_ACEOF
29469 #define NEED_SETGRENT_R 1
29483 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
29484 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
29485 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29488 cat >conftest.
$ac_ext <<_ACEOF
29491 cat confdefs.h
>>conftest.
$ac_ext
29492 cat >>conftest.
$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29494 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
29495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29496 #define gethostbyname_r innocuous_gethostbyname_r
29498 /* System header to define __stub macros and hopefully few prototypes,
29499 which can conflict with char gethostbyname_r (); below.
29500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29501 <limits.h> exists even on freestanding compilers. */
29504 # include <limits.h>
29506 # include <assert.h>
29509 #undef gethostbyname_r
29511 /* Override any GCC internal prototype to avoid an error.
29512 Use char because int might match the return type of a GCC
29513 builtin and then its argument prototype would still apply. */
29517 char gethostbyname_r ();
29518 /* The GNU C library defines this for functions which it implements
29519 to always fail with ENOSYS. Some functions are actually named
29520 something starting with __ and the normal name is an alias. */
29521 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
29528 return gethostbyname_r ();
29533 rm -f conftest.
$ac_objext conftest
$ac_exeext
29534 if { (ac_try
="$ac_link"
29535 case "(($ac_try" in
29536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29537 *) ac_try_echo=$ac_try;;
29539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29540 (eval "$ac_link") 2>conftest.er1
29542 grep -v '^ *+' conftest.er1 >conftest.err
29544 cat conftest.err >&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); } && {
29547 test -z "$ac_c_werror_flag" ||
29548 test ! -s conftest.err
29549 } && test -s conftest$ac_exeext &&
29550 $as_test_x conftest$ac_exeext; then
29551 ac_cv_func_gethostbyname_r=yes
29553 echo "$as_me: failed program was:" >&5
29554 sed 's/^/| /' conftest.$ac_ext >&5
29556 ac_cv_func_gethostbyname_r=no
29559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29560 conftest$ac_exeext conftest.$ac_ext
29562 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
29563 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
29564 if test $ac_cv_func_gethostbyname_r = yes; then
29565 cat >conftest.$ac_ext <<_ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h. */
29575 struct hostent *gethostbyname_r
29576 (const char *name, struct hostent *hp, char *buf, int len, int *h_errnop) {}
29586 rm -f conftest.$ac_objext
29587 if { (ac_try="$ac_compile"
29588 case "(($ac_try" in
29589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29590 *) ac_try_echo
=$ac_try;;
29592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29593 (eval "$ac_compile") 2>conftest.er1
29595 grep -v '^ *+' conftest.er1
>conftest.err
29597 cat conftest.err
>&5
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); } && {
29600 test -z "$ac_c_werror_flag" ||
29601 test ! -s conftest.err
29602 } && test -s conftest.
$ac_objext; then
29604 HOST_R_ARGS
="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
29605 HOST_R_BAD
="#define HOST_R_BAD NULL"
29606 HOST_R_COPY
="#define HOST_R_COPY buf, buflen"
29607 HOST_R_COPY_ARGS
="#define HOST_R_COPY_ARGS char *buf, int buflen"
29608 HOST_R_ERRNO
="#define HOST_R_ERRNO *h_errnop = h_errno"
29609 HOST_R_OK
="#define HOST_R_OK hptr"
29610 HOST_R_RETURN
="#define HOST_R_RETURN struct hostent *"
29611 HOST_R_SETANSWER
="#undef HOST_R_SETANSWER"
29612 HOSTENT_DATA
="#undef HOSTENT_DATA"
29616 echo "$as_me: failed program was:" >&5
29617 sed 's/^/| /' conftest.
$ac_ext >&5
29619 cat >conftest.
$ac_ext <<_ACEOF
29622 cat confdefs.h
>>conftest.
$ac_ext
29623 cat >>conftest.
$ac_ext <<_ACEOF
29624 /* end confdefs.h. */
29629 int gethostbyname_r(const char *name,
29630 struct hostent *result,
29631 struct hostent_data *hdptr);
29641 rm -f conftest.
$ac_objext
29642 if { (ac_try
="$ac_compile"
29643 case "(($ac_try" in
29644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_compile") 2>conftest.er1
29650 grep -v '^ *+' conftest.er1 >conftest.err
29652 cat conftest.err >&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } && {
29655 test -z "$ac_c_werror_flag" ||
29656 test ! -s conftest.err
29657 } && test -s conftest.$ac_objext; then
29659 HOST_R_ARGS="#define HOST_R_ARGS struct hostent_data *hdptr"
29660 HOST_R_BAD="#define HOST_R_BAD (-1)"
29661 HOST_R_COPY="#define HOST_R_COPY hdptr"
29662 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS HOST_R_ARGS"
29663 HOST_R_ERRNO="#undef HOST_R_ERRNO"
29664 HOST_R_OK="#define HOST_R_OK 0"
29665 HOST_R_RETURN="#define HOST_R_RETURN int"
29666 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
29667 HOSTENT_DATA="#define HOSTENT_DATA 1"
29670 echo "$as_me: failed program was:" >&5
29671 sed 's/^/| /' conftest.$ac_ext >&5
29673 cat >conftest.$ac_ext <<_ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h. */
29683 extern int gethostbyname_r (const char *,
29697 rm -f conftest.$ac_objext
29698 if { (ac_try="$ac_compile"
29699 case "(($ac_try" in
29700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29701 *) ac_try_echo
=$ac_try;;
29703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29704 (eval "$ac_compile") 2>conftest.er1
29706 grep -v '^ *+' conftest.er1
>conftest.err
29708 cat conftest.err
>&5
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); } && {
29711 test -z "$ac_c_werror_flag" ||
29712 test ! -s conftest.err
29713 } && test -s conftest.
$ac_objext; then
29715 HOST_R_ARGS
="#define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop"
29716 HOST_R_BAD
="#define HOST_R_BAD ERANGE"
29717 HOST_R_COPY
="#define HOST_R_COPY buf, buflen"
29718 HOST_R_COPY_ARGS
="#define HOST_R_COPY_ARGS char *buf, int buflen"
29719 HOST_R_ERRNO
="#define HOST_R_ERRNO *h_errnop = h_errno"
29720 HOST_R_OK
="#define HOST_R_OK 0"
29721 HOST_R_RETURN
="#define HOST_R_RETURN int"
29722 HOST_R_SETANSWER
="#define HOST_R_SETANSWER 1"
29723 HOSTENT_DATA
="#undef HOSTENT_DATA"
29726 echo "$as_me: failed program was:" >&5
29727 sed 's/^/| /' conftest.
$ac_ext >&5
29732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29741 HOST_R_ARGS
="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
29742 HOST_R_BAD
="#define HOST_R_BAD NULL"
29743 HOST_R_COPY
="#define HOST_R_COPY buf, buflen"
29744 HOST_R_COPY_ARGS
="#define HOST_R_COPY_ARGS char *buf, int buflen"
29745 HOST_R_ERRNO
="#define HOST_R_ERRNO *h_errnop = h_errno"
29746 HOST_R_OK
="#define HOST_R_OK hptr"
29747 HOST_R_RETURN
="#define HOST_R_RETURN struct hostent *"
29748 HOST_R_SETANSWER
="#undef HOST_R_SETANSWER"
29749 HOSTENT_DATA
="#undef HOSTENT_DATA"
29768 { echo "$as_me:$LINENO: checking for endhostent_r" >&5
29769 echo $ECHO_N "checking for endhostent_r... $ECHO_C" >&6; }
29770 if test "${ac_cv_func_endhostent_r+set}" = set; then
29771 echo $ECHO_N "(cached) $ECHO_C" >&6
29773 cat >conftest.
$ac_ext <<_ACEOF
29776 cat confdefs.h
>>conftest.
$ac_ext
29777 cat >>conftest.
$ac_ext <<_ACEOF
29778 /* end confdefs.h. */
29779 /* Define endhostent_r to an innocuous variant, in case <limits.h> declares endhostent_r.
29780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29781 #define endhostent_r innocuous_endhostent_r
29783 /* System header to define __stub macros and hopefully few prototypes,
29784 which can conflict with char endhostent_r (); below.
29785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29786 <limits.h> exists even on freestanding compilers. */
29789 # include <limits.h>
29791 # include <assert.h>
29794 #undef endhostent_r
29796 /* Override any GCC internal prototype to avoid an error.
29797 Use char because int might match the return type of a GCC
29798 builtin and then its argument prototype would still apply. */
29802 char endhostent_r ();
29803 /* The GNU C library defines this for functions which it implements
29804 to always fail with ENOSYS. Some functions are actually named
29805 something starting with __ and the normal name is an alias. */
29806 #if defined __stub_endhostent_r || defined __stub___endhostent_r
29813 return endhostent_r ();
29818 rm -f conftest.
$ac_objext conftest
$ac_exeext
29819 if { (ac_try
="$ac_link"
29820 case "(($ac_try" in
29821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_link") 2>conftest.er1
29827 grep -v '^ *+' conftest.er1 >conftest.err
29829 cat conftest.err >&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } && {
29832 test -z "$ac_c_werror_flag" ||
29833 test ! -s conftest.err
29834 } && test -s conftest$ac_exeext &&
29835 $as_test_x conftest$ac_exeext; then
29836 ac_cv_func_endhostent_r=yes
29838 echo "$as_me: failed program was:" >&5
29839 sed 's/^/| /' conftest.$ac_ext >&5
29841 ac_cv_func_endhostent_r=no
29844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29845 conftest$ac_exeext conftest.$ac_ext
29847 { echo "$as_me:$LINENO: result: $ac_cv_func_endhostent_r" >&5
29848 echo "${ECHO_T}$ac_cv_func_endhostent_r" >&6; }
29849 if test $ac_cv_func_endhostent_r = yes; then
29850 cat >conftest.$ac_ext <<_ACEOF
29853 cat confdefs.h >>conftest.$ac_ext
29854 cat >>conftest.$ac_ext <<_ACEOF
29855 /* end confdefs.h. */
29862 int endhostent_r(struct hostent_data *buffer);
29872 rm -f conftest.$ac_objext
29873 if { (ac_try="$ac_compile"
29874 case "(($ac_try" in
29875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29876 *) ac_try_echo
=$ac_try;;
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_compile") 2>conftest.er1
29881 grep -v '^ *+' conftest.er1
>conftest.err
29883 cat conftest.err
>&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } && {
29886 test -z "$ac_c_werror_flag" ||
29887 test ! -s conftest.err
29888 } && test -s conftest.
$ac_objext; then
29889 HOST_R_END_RESULT
="#define HOST_R_END_RESULT(x) return (x)"
29890 HOST_R_END_RETURN
="#define HOST_R_END_RETURN int"
29891 HOST_R_ENT_ARGS
="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
29894 echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.
$ac_ext >&5
29897 cat >conftest.
$ac_ext <<_ACEOF
29900 cat confdefs.h
>>conftest.
$ac_ext
29901 cat >>conftest.
$ac_ext <<_ACEOF
29902 /* end confdefs.h. */
29909 extern void endhostent_r(struct hostent_data *ht_data);
29919 rm -f conftest.
$ac_objext
29920 if { (ac_try
="$ac_compile"
29921 case "(($ac_try" in
29922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29923 *) ac_try_echo=$ac_try;;
29925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29926 (eval "$ac_compile") 2>conftest.er1
29928 grep -v '^ *+' conftest.er1 >conftest.err
29930 cat conftest.err >&5
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); } && {
29933 test -z "$ac_c_werror_flag" ||
29934 test ! -s conftest.err
29935 } && test -s conftest.$ac_objext; then
29937 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x)"
29938 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
29939 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
29942 echo "$as_me: failed program was:" >&5
29943 sed 's/^/| /' conftest.$ac_ext >&5
29945 cat >conftest.$ac_ext <<_ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h. */
29957 extern void endhostent_r(void);
29967 rm -f conftest.$ac_objext
29968 if { (ac_try="$ac_compile"
29969 case "(($ac_try" in
29970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29971 *) ac_try_echo
=$ac_try;;
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974 (eval "$ac_compile") 2>conftest.er1
29976 grep -v '^ *+' conftest.er1
>conftest.err
29978 cat conftest.err
>&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } && {
29981 test -z "$ac_c_werror_flag" ||
29982 test ! -s conftest.err
29983 } && test -s conftest.
$ac_objext; then
29985 HOST_R_END_RESULT
="#define HOST_R_END_RESULT(x) /*empty*/"
29986 HOST_R_END_RETURN
="#define HOST_R_END_RETURN void"
29987 HOST_R_ENT_ARGS
="#undef HOST_R_ENT_ARGS /*empty*/"
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.
$ac_ext >&5
29996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30007 HOST_R_END_RESULT
="#define HOST_R_END_RESULT(x) /*empty*/"
30008 HOST_R_END_RETURN
="#define HOST_R_END_RETURN void"
30009 HOST_R_ENT_ARGS
="#undef HOST_R_ENT_ARGS /*empty*/"
30022 { echo "$as_me:$LINENO: checking for sethostent_r" >&5
30023 echo $ECHO_N "checking for sethostent_r... $ECHO_C" >&6; }
30024 if test "${ac_cv_func_sethostent_r+set}" = set; then
30025 echo $ECHO_N "(cached) $ECHO_C" >&6
30027 cat >conftest.
$ac_ext <<_ACEOF
30030 cat confdefs.h
>>conftest.
$ac_ext
30031 cat >>conftest.
$ac_ext <<_ACEOF
30032 /* end confdefs.h. */
30033 /* Define sethostent_r to an innocuous variant, in case <limits.h> declares sethostent_r.
30034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30035 #define sethostent_r innocuous_sethostent_r
30037 /* System header to define __stub macros and hopefully few prototypes,
30038 which can conflict with char sethostent_r (); below.
30039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30040 <limits.h> exists even on freestanding compilers. */
30043 # include <limits.h>
30045 # include <assert.h>
30048 #undef sethostent_r
30050 /* Override any GCC internal prototype to avoid an error.
30051 Use char because int might match the return type of a GCC
30052 builtin and then its argument prototype would still apply. */
30056 char sethostent_r ();
30057 /* The GNU C library defines this for functions which it implements
30058 to always fail with ENOSYS. Some functions are actually named
30059 something starting with __ and the normal name is an alias. */
30060 #if defined __stub_sethostent_r || defined __stub___sethostent_r
30067 return sethostent_r ();
30072 rm -f conftest.
$ac_objext conftest
$ac_exeext
30073 if { (ac_try
="$ac_link"
30074 case "(($ac_try" in
30075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_link") 2>conftest.er1
30081 grep -v '^ *+' conftest.er1 >conftest.err
30083 cat conftest.err >&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); } && {
30086 test -z "$ac_c_werror_flag" ||
30087 test ! -s conftest.err
30088 } && test -s conftest$ac_exeext &&
30089 $as_test_x conftest$ac_exeext; then
30090 ac_cv_func_sethostent_r=yes
30092 echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30095 ac_cv_func_sethostent_r=no
30098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30099 conftest$ac_exeext conftest.$ac_ext
30101 { echo "$as_me:$LINENO: result: $ac_cv_func_sethostent_r" >&5
30102 echo "${ECHO_T}$ac_cv_func_sethostent_r" >&6; }
30103 if test $ac_cv_func_sethostent_r = yes; then
30104 cat >conftest.$ac_ext <<_ACEOF
30107 cat confdefs.h >>conftest.$ac_ext
30108 cat >>conftest.$ac_ext <<_ACEOF
30109 /* end confdefs.h. */
30116 extern void sethostent_r(int flag, struct hostent_data *ht_data);
30125 rm -f conftest.$ac_objext
30126 if { (ac_try="$ac_compile"
30127 case "(($ac_try" in
30128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30129 *) ac_try_echo
=$ac_try;;
30131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132 (eval "$ac_compile") 2>conftest.er1
30134 grep -v '^ *+' conftest.er1
>conftest.err
30136 cat conftest.err
>&5
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); } && {
30139 test -z "$ac_c_werror_flag" ||
30140 test ! -s conftest.err
30141 } && test -s conftest.
$ac_objext; then
30142 HOST_R_SET_RESULT
="#undef HOST_R_SET_RESULT /*empty*/"
30143 HOST_R_SET_RETURN
="#define HOST_R_SET_RETURN void"
30145 echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.
$ac_ext >&5
30148 cat >conftest.
$ac_ext <<_ACEOF
30151 cat confdefs.h
>>conftest.
$ac_ext
30152 cat >>conftest.
$ac_ext <<_ACEOF
30153 /* end confdefs.h. */
30160 extern int sethostent_r(int flag, struct hostent_data *ht_data);
30169 rm -f conftest.
$ac_objext
30170 if { (ac_try
="$ac_compile"
30171 case "(($ac_try" in
30172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30173 *) ac_try_echo=$ac_try;;
30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176 (eval "$ac_compile") 2>conftest.er1
30178 grep -v '^ *+' conftest.er1 >conftest.err
30180 cat conftest.err >&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } && {
30183 test -z "$ac_c_werror_flag" ||
30184 test ! -s conftest.err
30185 } && test -s conftest.$ac_objext; then
30186 HOST_R_SET_RESULT="#define HOST_R_SET_RESULT 0"
30187 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN int"
30189 echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30192 cat >conftest.$ac_ext <<_ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h. */
30204 void sethostent_r (int);
30213 rm -f conftest.$ac_objext
30214 if { (ac_try="$ac_compile"
30215 case "(($ac_try" in
30216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30217 *) ac_try_echo
=$ac_try;;
30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30220 (eval "$ac_compile") 2>conftest.er1
30222 grep -v '^ *+' conftest.er1
>conftest.err
30224 cat conftest.err
>&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); } && {
30227 test -z "$ac_c_werror_flag" ||
30228 test ! -s conftest.err
30229 } && test -s conftest.
$ac_objext; then
30230 HOST_R_SET_RESULT
="#undef HOST_R_SET_RESULT"
30231 HOST_R_SET_RETURN
="#define HOST_R_SET_RETURN void"
30233 echo "$as_me: failed program was:" >&5
30234 sed 's/^/| /' conftest.
$ac_ext >&5
30239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30250 HOST_R_SET_RESULT
="#undef HOST_R_SET_RESULT"
30251 HOST_R_SET_RETURN
="#define HOST_R_SET_RETURN void"
30260 { echo "$as_me:$LINENO: checking struct passwd element pw_class" >&5
30261 echo $ECHO_N "checking struct passwd element pw_class... $ECHO_C" >&6; }
30262 cat >conftest.
$ac_ext <<_ACEOF
30265 cat confdefs.h
>>conftest.
$ac_ext
30266 cat >>conftest.
$ac_ext <<_ACEOF
30267 /* end confdefs.h. */
30269 #include <sys/types.h>
30275 struct passwd *pw; pw->pw_class = "";
30280 rm -f conftest.
$ac_objext
30281 if { (ac_try
="$ac_compile"
30282 case "(($ac_try" in
30283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287 (eval "$ac_compile") 2>conftest.er1
30289 grep -v '^ *+' conftest.er1 >conftest.err
30291 cat conftest.err >&5
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); } && {
30294 test -z "$ac_c_werror_flag" ||
30295 test ! -s conftest.err
30296 } && test -s conftest.$ac_objext; then
30297 { echo "$as_me:$LINENO: result: yes" >&5
30298 echo "${ECHO_T}yes" >&6; }
30299 cat >>confdefs.h <<\_ACEOF
30300 #define HAS_PW_CLASS 1
30305 echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30308 { echo "$as_me:$LINENO: result: no" >&5
30309 echo "${ECHO_T}no" >&6; }
30313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30315 cat >conftest.$ac_ext <<_ACEOF
30318 cat confdefs.h >>conftest.$ac_ext
30319 cat >>conftest.$ac_ext <<_ACEOF
30320 /* end confdefs.h. */
30322 #include <sys/types.h>
30335 rm -f conftest.$ac_objext
30336 if { (ac_try="$ac_compile"
30337 case "(($ac_try" in
30338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30339 *) ac_try_echo
=$ac_try;;
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_compile") 2>conftest.er1
30344 grep -v '^ *+' conftest.er1
>conftest.err
30346 cat conftest.err
>&5
30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); } && {
30349 test -z "$ac_c_werror_flag" ||
30350 test ! -s conftest.err
30351 } && test -s conftest.
$ac_objext; then
30352 SETPWENT_VOID
="#define SETPWENT_VOID 1"
30355 echo "$as_me: failed program was:" >&5
30356 sed 's/^/| /' conftest.
$ac_ext >&5
30358 SETPWENT_VOID
="#undef SETPWENT_VOID"
30362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30365 cat >conftest.
$ac_ext <<_ACEOF
30368 cat confdefs.h
>>conftest.
$ac_ext
30369 cat >>conftest.
$ac_ext <<_ACEOF
30370 /* end confdefs.h. */
30372 #include <sys/types.h>
30385 rm -f conftest.
$ac_objext
30386 if { (ac_try
="$ac_compile"
30387 case "(($ac_try" in
30388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_compile") 2>conftest.er1
30394 grep -v '^ *+' conftest.er1 >conftest.err
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } && {
30399 test -z "$ac_c_werror_flag" ||
30400 test ! -s conftest.err
30401 } && test -s conftest.$ac_objext; then
30402 SETGRENT_VOID="#define SETGRENT_VOID 1"
30405 echo "$as_me: failed program was:" >&5
30406 sed 's/^/| /' conftest.$ac_ext >&5
30408 SETGRENT_VOID="#undef SETGRENT_VOID"
30412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30417 NGR_R_CONST="#define NGR_R_CONST"
30421 # HPUX doesn't have a prototype for getnetgrent_r().
30423 NGR_R_CONST="#define NGR_R_CONST"
30424 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
30425 NGR_R_BAD="#define NGR_R_BAD (0)"
30426 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
30427 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
30428 NGR_R_OK="#define NGR_R_OK 1"
30429 NGR_R_RETURN="#define NGR_R_RETURN int"
30433 { echo "$as_me:$LINENO: checking for getnetgrent_r" >&5
30434 echo $ECHO_N "checking for getnetgrent_r... $ECHO_C" >&6; }
30435 if test "${ac_cv_func_getnetgrent_r+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30438 cat >conftest.$ac_ext <<_ACEOF
30441 cat confdefs.h >>conftest.$ac_ext
30442 cat >>conftest.$ac_ext <<_ACEOF
30443 /* end confdefs.h. */
30444 /* Define getnetgrent_r to an innocuous variant, in case <limits.h> declares getnetgrent_r.
30445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30446 #define getnetgrent_r innocuous_getnetgrent_r
30448 /* System header to define __stub macros and hopefully few prototypes,
30449 which can conflict with char getnetgrent_r (); below.
30450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30451 <limits.h> exists even on freestanding compilers. */
30454 # include <limits.h>
30456 # include <assert.h>
30459 #undef getnetgrent_r
30461 /* Override any GCC internal prototype to avoid an error.
30462 Use char because int might match the return type of a GCC
30463 builtin and then its argument prototype would still apply. */
30467 char getnetgrent_r ();
30468 /* The GNU C library defines this for functions which it implements
30469 to always fail with ENOSYS. Some functions are actually named
30470 something starting with __ and the normal name is an alias. */
30471 #if defined __stub_getnetgrent_r || defined __stub___getnetgrent_r
30478 return getnetgrent_r ();
30483 rm -f conftest.$ac_objext conftest$ac_exeext
30484 if { (ac_try="$ac_link"
30485 case "(($ac_try" in
30486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30487 *) ac_try_echo
=$ac_try;;
30489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30490 (eval "$ac_link") 2>conftest.er1
30492 grep -v '^ *+' conftest.er1
>conftest.err
30494 cat conftest.err
>&5
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); } && {
30497 test -z "$ac_c_werror_flag" ||
30498 test ! -s conftest.err
30499 } && test -s conftest
$ac_exeext &&
30500 $as_test_x conftest
$ac_exeext; then
30501 ac_cv_func_getnetgrent_r
=yes
30503 echo "$as_me: failed program was:" >&5
30504 sed 's/^/| /' conftest.
$ac_ext >&5
30506 ac_cv_func_getnetgrent_r
=no
30509 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30510 conftest
$ac_exeext conftest.
$ac_ext
30512 { echo "$as_me:$LINENO: result: $ac_cv_func_getnetgrent_r" >&5
30513 echo "${ECHO_T}$ac_cv_func_getnetgrent_r" >&6; }
30514 if test $ac_cv_func_getnetgrent_r = yes; then
30515 cat >conftest.
$ac_ext <<_ACEOF
30518 cat confdefs.h
>>conftest.
$ac_ext
30519 cat >>conftest.
$ac_ext <<_ACEOF
30520 /* end confdefs.h. */
30525 #define _REEENTRANT
30527 #include <unistd.h>
30528 int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {}
30539 rm -f conftest.
$ac_objext
30540 if { (ac_try
="$ac_compile"
30541 case "(($ac_try" in
30542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_compile") 2>conftest.er1
30548 grep -v '^ *+' conftest.er1 >conftest.err
30550 cat conftest.err >&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } && {
30553 test -z "$ac_c_werror_flag" ||
30554 test ! -s conftest.err
30555 } && test -s conftest.$ac_objext; then
30557 NGR_R_CONST="#define NGR_R_CONST"
30558 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
30559 NGR_R_BAD="#define NGR_R_BAD (0)"
30560 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
30561 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
30562 NGR_R_OK="#define NGR_R_OK 1"
30563 NGR_R_RETURN="#define NGR_R_RETURN int"
30567 echo "$as_me: failed program was:" >&5
30568 sed 's/^/| /' conftest.$ac_ext >&5
30570 cat >conftest.$ac_ext <<_ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h. */
30580 #define _REEENTRANT
30582 #include <unistd.h>
30583 int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {}
30594 rm -f conftest.$ac_objext
30595 if { (ac_try="$ac_compile"
30596 case "(($ac_try" in
30597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30598 *) ac_try_echo
=$ac_try;;
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_compile") 2>conftest.er1
30603 grep -v '^ *+' conftest.er1
>conftest.err
30605 cat conftest.err
>&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); } && {
30608 test -z "$ac_c_werror_flag" ||
30609 test ! -s conftest.err
30610 } && test -s conftest.
$ac_objext; then
30612 NGR_R_CONST
="#define NGR_R_CONST"
30613 NGR_R_ARGS
="#define NGR_R_ARGS char *buf, size_t buflen"
30614 NGR_R_BAD
="#define NGR_R_BAD (0)"
30615 NGR_R_COPY
="#define NGR_R_COPY buf, buflen"
30616 NGR_R_COPY_ARGS
="#define NGR_R_COPY_ARGS NGR_R_ARGS"
30617 NGR_R_OK
="#define NGR_R_OK 1"
30618 NGR_R_RETURN
="#define NGR_R_RETURN int"
30622 echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.
$ac_ext >&5
30625 cat >conftest.
$ac_ext <<_ACEOF
30628 cat confdefs.h
>>conftest.
$ac_ext
30629 cat >>conftest.
$ac_ext <<_ACEOF
30630 /* end confdefs.h. */
30635 #define _REEENTRANT
30637 #include <unistd.h>
30638 extern int getnetgrent_r(char **, char **, char **, void **);
30649 rm -f conftest.
$ac_objext
30650 if { (ac_try
="$ac_compile"
30651 case "(($ac_try" in
30652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30653 *) ac_try_echo=$ac_try;;
30655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30656 (eval "$ac_compile") 2>conftest.er1
30658 grep -v '^ *+' conftest.er1 >conftest.err
30660 cat conftest.err >&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); } && {
30663 test -z "$ac_c_werror_flag" ||
30664 test ! -s conftest.err
30665 } && test -s conftest.$ac_objext; then
30667 NGR_R_CONST="#define NGR_R_CONST"
30668 NGR_R_ARGS="#define NGR_R_ARGS void **buf"
30669 NGR_R_BAD="#define NGR_R_BAD (0)"
30670 NGR_R_COPY="#define NGR_R_COPY buf"
30671 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
30672 NGR_R_OK="#define NGR_R_OK 1"
30673 NGR_R_RETURN="#define NGR_R_RETURN int"
30674 NGR_R_PRIVATE="#define NGR_R_PRIVATE 1"
30678 echo "$as_me: failed program was:" >&5
30679 sed 's/^/| /' conftest.$ac_ext >&5
30681 cat >conftest.$ac_ext <<_ACEOF
30684 cat confdefs.h >>conftest.$ac_ext
30685 cat >>conftest.$ac_ext <<_ACEOF
30686 /* end confdefs.h. */
30691 #define _REEENTRANT
30693 #include <unistd.h>
30694 extern int getnetgrent_r(const char **, const char **, const char **, void *);
30705 rm -f conftest.$ac_objext
30706 if { (ac_try="$ac_compile"
30707 case "(($ac_try" in
30708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30709 *) ac_try_echo
=$ac_try;;
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_compile") 2>conftest.er1
30714 grep -v '^ *+' conftest.er1
>conftest.err
30716 cat conftest.err
>&5
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); } && {
30719 test -z "$ac_c_werror_flag" ||
30720 test ! -s conftest.err
30721 } && test -s conftest.
$ac_objext; then
30723 NGR_R_CONST
="#define NGR_R_CONST const"
30724 NGR_R_ARGS
="#define NGR_R_ARGS void *buf"
30725 NGR_R_BAD
="#define NGR_R_BAD (0)"
30726 NGR_R_COPY
="#define NGR_R_COPY buf"
30727 NGR_R_COPY_ARGS
="#define NGR_R_COPY_ARGS NGR_R_ARGS"
30728 NGR_R_OK
="#define NGR_R_OK 1"
30729 NGR_R_RETURN
="#define NGR_R_RETURN int"
30730 NGR_R_PRIVATE
="#define NGR_R_PRIVATE 2"
30734 echo "$as_me: failed program was:" >&5
30735 sed 's/^/| /' conftest.
$ac_ext >&5
30740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30755 NGR_R_CONST
="#define NGR_R_CONST"
30756 NGR_R_ARGS
="#define NGR_R_ARGS char *buf, int buflen"
30757 NGR_R_BAD
="#define NGR_R_BAD (0)"
30758 NGR_R_COPY
="#define NGR_R_COPY buf, buflen"
30759 NGR_R_COPY_ARGS
="#define NGR_R_COPY_ARGS NGR_R_ARGS"
30760 NGR_R_OK
="#define NGR_R_OK 1"
30761 NGR_R_RETURN
="#define NGR_R_RETURN int"
30775 { echo "$as_me:$LINENO: checking for endnetgrent_r" >&5
30776 echo $ECHO_N "checking for endnetgrent_r... $ECHO_C" >&6; }
30777 if test "${ac_cv_func_endnetgrent_r+set}" = set; then
30778 echo $ECHO_N "(cached) $ECHO_C" >&6
30780 cat >conftest.
$ac_ext <<_ACEOF
30783 cat confdefs.h
>>conftest.
$ac_ext
30784 cat >>conftest.
$ac_ext <<_ACEOF
30785 /* end confdefs.h. */
30786 /* Define endnetgrent_r to an innocuous variant, in case <limits.h> declares endnetgrent_r.
30787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30788 #define endnetgrent_r innocuous_endnetgrent_r
30790 /* System header to define __stub macros and hopefully few prototypes,
30791 which can conflict with char endnetgrent_r (); below.
30792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30793 <limits.h> exists even on freestanding compilers. */
30796 # include <limits.h>
30798 # include <assert.h>
30801 #undef endnetgrent_r
30803 /* Override any GCC internal prototype to avoid an error.
30804 Use char because int might match the return type of a GCC
30805 builtin and then its argument prototype would still apply. */
30809 char endnetgrent_r ();
30810 /* The GNU C library defines this for functions which it implements
30811 to always fail with ENOSYS. Some functions are actually named
30812 something starting with __ and the normal name is an alias. */
30813 #if defined __stub_endnetgrent_r || defined __stub___endnetgrent_r
30820 return endnetgrent_r ();
30825 rm -f conftest.
$ac_objext conftest
$ac_exeext
30826 if { (ac_try
="$ac_link"
30827 case "(($ac_try" in
30828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30829 *) ac_try_echo=$ac_try;;
30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832 (eval "$ac_link") 2>conftest.er1
30834 grep -v '^ *+' conftest.er1 >conftest.err
30836 cat conftest.err >&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); } && {
30839 test -z "$ac_c_werror_flag" ||
30840 test ! -s conftest.err
30841 } && test -s conftest$ac_exeext &&
30842 $as_test_x conftest$ac_exeext; then
30843 ac_cv_func_endnetgrent_r=yes
30845 echo "$as_me: failed program was:" >&5
30846 sed 's/^/| /' conftest.$ac_ext >&5
30848 ac_cv_func_endnetgrent_r=no
30851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30852 conftest$ac_exeext conftest.$ac_ext
30854 { echo "$as_me:$LINENO: result: $ac_cv_func_endnetgrent_r" >&5
30855 echo "${ECHO_T}$ac_cv_func_endnetgrent_r" >&6; }
30856 if test $ac_cv_func_endnetgrent_r = yes; then
30857 cat >conftest.$ac_ext <<_ACEOF
30860 cat confdefs.h >>conftest.$ac_ext
30861 cat >>conftest.$ac_ext <<_ACEOF
30862 /* end confdefs.h. */
30867 #define _REEENTRANT
30869 #include <unistd.h>
30870 void endnetgrent_r(void **ptr);
30882 rm -f conftest.$ac_objext
30883 if { (ac_try="$ac_compile"
30884 case "(($ac_try" in
30885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30886 *) ac_try_echo
=$ac_try;;
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_compile") 2>conftest.er1
30891 grep -v '^ *+' conftest.er1
>conftest.err
30893 cat conftest.err
>&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); } && {
30896 test -z "$ac_c_werror_flag" ||
30897 test ! -s conftest.err
30898 } && test -s conftest.
$ac_objext; then
30900 NGR_R_END_RESULT
="#define NGR_R_END_RESULT(x) /* empty */"
30901 NGR_R_END_RETURN
="#define NGR_R_END_RETURN void"
30902 NGR_R_END_ARGS
="#define NGR_R_END_ARGS NGR_R_ARGS"
30906 echo "$as_me: failed program was:" >&5
30907 sed 's/^/| /' conftest.
$ac_ext >&5
30909 cat >conftest.
$ac_ext <<_ACEOF
30912 cat confdefs.h
>>conftest.
$ac_ext
30913 cat >>conftest.
$ac_ext <<_ACEOF
30914 /* end confdefs.h. */
30919 #define _REEENTRANT
30921 #include <unistd.h>
30922 void endnetgrent_r(void *ptr);
30934 rm -f conftest.
$ac_objext
30935 if { (ac_try
="$ac_compile"
30936 case "(($ac_try" in
30937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_compile") 2>conftest.er1
30943 grep -v '^ *+' conftest.er1 >conftest.err
30945 cat conftest.err >&5
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } && {
30948 test -z "$ac_c_werror_flag" ||
30949 test ! -s conftest.err
30950 } && test -s conftest.$ac_objext; then
30952 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */"
30953 NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
30954 NGR_R_END_ARGS="#define NGR_R_END_ARGS void *buf"
30958 echo "$as_me: failed program was:" >&5
30959 sed 's/^/| /' conftest.$ac_ext >&5
30962 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) return (x)"
30963 NGR_R_END_RETURN="#define NGR_R_END_RETURN int"
30964 NGR_R_END_ARGS="#define NGR_R_END_ARGS NGR_R_ARGS"
30969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30976 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /*empty*/"
30977 NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
30978 NGR_R_END_ARGS="#undef NGR_R_END_ARGS /*empty*/"
30979 cat >>confdefs.h <<\_ACEOF
30980 #define NEED_ENDNETGRENT_R 1
30990 { echo "$as_me:$LINENO: checking for setnetgrent_r" >&5
30991 echo $ECHO_N "checking for setnetgrent_r... $ECHO_C" >&6; }
30992 if test "${ac_cv_func_setnetgrent_r+set}" = set; then
30993 echo $ECHO_N "(cached) $ECHO_C" >&6
30995 cat >conftest.$ac_ext <<_ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h. */
31001 /* Define setnetgrent_r to an innocuous variant, in case <limits.h> declares setnetgrent_r.
31002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31003 #define setnetgrent_r innocuous_setnetgrent_r
31005 /* System header to define __stub macros and hopefully few prototypes,
31006 which can conflict with char setnetgrent_r (); below.
31007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31008 <limits.h> exists even on freestanding compilers. */
31011 # include <limits.h>
31013 # include <assert.h>
31016 #undef setnetgrent_r
31018 /* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31024 char setnetgrent_r ();
31025 /* The GNU C library defines this for functions which it implements
31026 to always fail with ENOSYS. Some functions are actually named
31027 something starting with __ and the normal name is an alias. */
31028 #if defined __stub_setnetgrent_r || defined __stub___setnetgrent_r
31035 return setnetgrent_r ();
31040 rm -f conftest.$ac_objext conftest$ac_exeext
31041 if { (ac_try="$ac_link"
31042 case "(($ac_try" in
31043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31044 *) ac_try_echo
=$ac_try;;
31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047 (eval "$ac_link") 2>conftest.er1
31049 grep -v '^ *+' conftest.er1
>conftest.err
31051 cat conftest.err
>&5
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); } && {
31054 test -z "$ac_c_werror_flag" ||
31055 test ! -s conftest.err
31056 } && test -s conftest
$ac_exeext &&
31057 $as_test_x conftest
$ac_exeext; then
31058 ac_cv_func_setnetgrent_r
=yes
31060 echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.
$ac_ext >&5
31063 ac_cv_func_setnetgrent_r
=no
31066 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31067 conftest
$ac_exeext conftest.
$ac_ext
31069 { echo "$as_me:$LINENO: result: $ac_cv_func_setnetgrent_r" >&5
31070 echo "${ECHO_T}$ac_cv_func_setnetgrent_r" >&6; }
31071 if test $ac_cv_func_setnetgrent_r = yes; then
31078 NGR_R_SET_RESULT
="#undef NGR_R_SET_RESULT /*empty*/"
31079 NGR_R_SET_RETURN
="#define NGR_R_SET_RETURN void"
31080 NGR_R_SET_ARGS
="#define NGR_R_SET_ARGS NGR_R_ARGS"
31081 NGR_R_SET_CONST
="#define NGR_R_SET_CONST"
31087 NGR_R_SET_RESULT
="#define NGR_R_SET_RESULT NGR_R_OK"
31088 NGR_R_SET_RETURN
="#define NGR_R_SET_RETURN int"
31089 NGR_R_SET_ARGS
="#undef NGR_R_SET_ARGS /* empty */"
31090 NGR_R_SET_CONST
="#define NGR_R_SET_CONST"
31093 cat >conftest.
$ac_ext <<_ACEOF
31096 cat confdefs.h
>>conftest.
$ac_ext
31097 cat >>conftest.
$ac_ext <<_ACEOF
31098 /* end confdefs.h. */
31103 #define _REEENTRANT
31105 #include <unistd.h>
31106 void setnetgrent_r(void **ptr);
31118 rm -f conftest.
$ac_objext
31119 if { (ac_try
="$ac_compile"
31120 case "(($ac_try" in
31121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31122 *) ac_try_echo=$ac_try;;
31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125 (eval "$ac_compile") 2>conftest.er1
31127 grep -v '^ *+' conftest.er1 >conftest.err
31129 cat conftest.err >&5
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); } && {
31132 test -z "$ac_c_werror_flag" ||
31133 test ! -s conftest.err
31134 } && test -s conftest.$ac_objext; then
31136 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /* empty */"
31137 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
31138 NGR_R_SET_ARGS="#define NGR_R_SET_ARGS void **buf"
31139 NGR_R_SET_CONST="#define NGR_R_SET_CONST"
31143 echo "$as_me: failed program was:" >&5
31144 sed 's/^/| /' conftest.$ac_ext >&5
31146 cat >conftest.$ac_ext <<_ACEOF
31149 cat confdefs.h >>conftest.$ac_ext
31150 cat >>conftest.$ac_ext <<_ACEOF
31151 /* end confdefs.h. */
31156 #define _REEENTRANT
31158 #include <unistd.h>
31159 extern int setnetgrent_r(char *, void **);
31171 rm -f conftest.$ac_objext
31172 if { (ac_try="$ac_compile"
31173 case "(($ac_try" in
31174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31175 *) ac_try_echo
=$ac_try;;
31177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31178 (eval "$ac_compile") 2>conftest.er1
31180 grep -v '^ *+' conftest.er1
>conftest.err
31182 cat conftest.err
>&5
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); } && {
31185 test -z "$ac_c_werror_flag" ||
31186 test ! -s conftest.err
31187 } && test -s conftest.
$ac_objext; then
31189 NGR_R_SET_RESULT
="#define NGR_R_SET_RESULT NGR_R_OK"
31190 NGR_R_SET_RETURN
="#define NGR_R_SET_RETURN int"
31191 NGR_R_SET_ARGS
="#define NGR_R_SET_ARGS void **buf"
31192 NGR_R_SET_CONST
="#define NGR_R_SET_CONST"
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.
$ac_ext >&5
31200 NGR_R_SET_RESULT
="#define NGR_R_SET_RESULT NGR_R_OK"
31201 NGR_R_SET_RETURN
="#define NGR_R_SET_RETURN int"
31202 NGR_R_SET_ARGS
="#undef NGR_R_SET_ARGS"
31203 NGR_R_SET_CONST
="#define NGR_R_SET_CONST const"
31208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31217 NGR_R_SET_RESULT
="#undef NGR_R_SET_RESULT /*empty*/"
31218 NGR_R_SET_RETURN
="#define NGR_R_SET_RETURN void"
31219 NGR_R_SET_ARGS
="#undef NGR_R_SET_ARGS"
31220 NGR_R_SET_CONST
="#define NGR_R_SET_CONST const"
31230 { echo "$as_me:$LINENO: checking for innetgr_r" >&5
31231 echo $ECHO_N "checking for innetgr_r... $ECHO_C" >&6; }
31232 if test "${ac_cv_func_innetgr_r+set}" = set; then
31233 echo $ECHO_N "(cached) $ECHO_C" >&6
31235 cat >conftest.
$ac_ext <<_ACEOF
31238 cat confdefs.h
>>conftest.
$ac_ext
31239 cat >>conftest.
$ac_ext <<_ACEOF
31240 /* end confdefs.h. */
31241 /* Define innetgr_r to an innocuous variant, in case <limits.h> declares innetgr_r.
31242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31243 #define innetgr_r innocuous_innetgr_r
31245 /* System header to define __stub macros and hopefully few prototypes,
31246 which can conflict with char innetgr_r (); below.
31247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31248 <limits.h> exists even on freestanding compilers. */
31251 # include <limits.h>
31253 # include <assert.h>
31258 /* Override any GCC internal prototype to avoid an error.
31259 Use char because int might match the return type of a GCC
31260 builtin and then its argument prototype would still apply. */
31265 /* The GNU C library defines this for functions which it implements
31266 to always fail with ENOSYS. Some functions are actually named
31267 something starting with __ and the normal name is an alias. */
31268 #if defined __stub_innetgr_r || defined __stub___innetgr_r
31275 return innetgr_r ();
31280 rm -f conftest.
$ac_objext conftest
$ac_exeext
31281 if { (ac_try
="$ac_link"
31282 case "(($ac_try" in
31283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31284 *) ac_try_echo=$ac_try;;
31286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287 (eval "$ac_link") 2>conftest.er1
31289 grep -v '^ *+' conftest.er1 >conftest.err
31291 cat conftest.err >&5
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); } && {
31294 test -z "$ac_c_werror_flag" ||
31295 test ! -s conftest.err
31296 } && test -s conftest$ac_exeext &&
31297 $as_test_x conftest$ac_exeext; then
31298 ac_cv_func_innetgr_r=yes
31300 echo "$as_me: failed program was:" >&5
31301 sed 's/^/| /' conftest.$ac_ext >&5
31303 ac_cv_func_innetgr_r=no
31306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31307 conftest$ac_exeext conftest.$ac_ext
31309 { echo "$as_me:$LINENO: result: $ac_cv_func_innetgr_r" >&5
31310 echo "${ECHO_T}$ac_cv_func_innetgr_r" >&6; }
31311 if test $ac_cv_func_innetgr_r = yes; then
31314 cat >>confdefs.h <<\_ACEOF
31315 #define NEED_INNETGR_R 1
31325 { echo "$as_me:$LINENO: checking for getprotoent_r" >&5
31326 echo $ECHO_N "checking for getprotoent_r... $ECHO_C" >&6; }
31327 if test "${ac_cv_func_getprotoent_r+set}" = set; then
31328 echo $ECHO_N "(cached) $ECHO_C" >&6
31330 cat >conftest.$ac_ext <<_ACEOF
31333 cat confdefs.h >>conftest.$ac_ext
31334 cat >>conftest.$ac_ext <<_ACEOF
31335 /* end confdefs.h. */
31336 /* Define getprotoent_r to an innocuous variant, in case <limits.h> declares getprotoent_r.
31337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31338 #define getprotoent_r innocuous_getprotoent_r
31340 /* System header to define __stub macros and hopefully few prototypes,
31341 which can conflict with char getprotoent_r (); below.
31342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31343 <limits.h> exists even on freestanding compilers. */
31346 # include <limits.h>
31348 # include <assert.h>
31351 #undef getprotoent_r
31353 /* Override any GCC internal prototype to avoid an error.
31354 Use char because int might match the return type of a GCC
31355 builtin and then its argument prototype would still apply. */
31359 char getprotoent_r ();
31360 /* The GNU C library defines this for functions which it implements
31361 to always fail with ENOSYS. Some functions are actually named
31362 something starting with __ and the normal name is an alias. */
31363 #if defined __stub_getprotoent_r || defined __stub___getprotoent_r
31370 return getprotoent_r ();
31375 rm -f conftest.$ac_objext conftest$ac_exeext
31376 if { (ac_try="$ac_link"
31377 case "(($ac_try" in
31378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31379 *) ac_try_echo
=$ac_try;;
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_link") 2>conftest.er1
31384 grep -v '^ *+' conftest.er1
>conftest.err
31386 cat conftest.err
>&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } && {
31389 test -z "$ac_c_werror_flag" ||
31390 test ! -s conftest.err
31391 } && test -s conftest
$ac_exeext &&
31392 $as_test_x conftest
$ac_exeext; then
31393 ac_cv_func_getprotoent_r
=yes
31395 echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.
$ac_ext >&5
31398 ac_cv_func_getprotoent_r
=no
31401 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31402 conftest
$ac_exeext conftest.
$ac_ext
31404 { echo "$as_me:$LINENO: result: $ac_cv_func_getprotoent_r" >&5
31405 echo "${ECHO_T}$ac_cv_func_getprotoent_r" >&6; }
31406 if test $ac_cv_func_getprotoent_r = yes; then
31407 cat >conftest.
$ac_ext <<_ACEOF
31410 cat confdefs.h
>>conftest.
$ac_ext
31411 cat >>conftest.
$ac_ext <<_ACEOF
31412 /* end confdefs.h. */
31417 struct protoent *getprotoent_r(struct protoent *result,
31418 char *buffer, int buflen) {}
31430 rm -f conftest.
$ac_objext
31431 if { (ac_try
="$ac_compile"
31432 case "(($ac_try" in
31433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_compile") 2>conftest.er1
31439 grep -v '^ *+' conftest.er1 >conftest.err
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && {
31444 test -z "$ac_c_werror_flag" ||
31445 test ! -s conftest.err
31446 } && test -s conftest.$ac_objext; then
31448 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
31449 PROTO_R_BAD="#define PROTO_R_BAD NULL"
31450 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
31451 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
31452 PROTO_R_OK="#define PROTO_R_OK pptr"
31453 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
31454 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
31455 PROTOENT_DATA="#undef PROTOENT_DATA"
31459 echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31462 cat >conftest.$ac_ext <<_ACEOF
31465 cat confdefs.h >>conftest.$ac_ext
31466 cat >>conftest.$ac_ext <<_ACEOF
31467 /* end confdefs.h. */
31472 int getprotoent_r (struct protoent *, char *, size_t, struct protoent **);
31485 rm -f conftest.$ac_objext
31486 if { (ac_try="$ac_compile"
31487 case "(($ac_try" in
31488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31489 *) ac_try_echo
=$ac_try;;
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_compile") 2>conftest.er1
31494 grep -v '^ *+' conftest.er1
>conftest.err
31496 cat conftest.err
>&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } && {
31499 test -z "$ac_c_werror_flag" ||
31500 test ! -s conftest.err
31501 } && test -s conftest.
$ac_objext; then
31503 PROTO_R_ARGS
="#define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp"
31504 PROTO_R_BAD
="#define PROTO_R_BAD ERANGE"
31505 PROTO_R_COPY
="#define PROTO_R_COPY buf, buflen"
31506 PROTO_R_COPY_ARGS
="#define PROTO_R_COPY_ARGS char *buf, size_t buflen"
31507 PROTO_R_OK
="#define PROTO_R_OK 0"
31508 PROTO_R_SETANSWER
="#define PROTO_R_SETANSWER 1"
31509 PROTO_R_RETURN
="#define PROTO_R_RETURN int"
31510 PROTOENT_DATA
="#undef PROTOENT_DATA"
31514 echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.
$ac_ext >&5
31517 cat >conftest.
$ac_ext <<_ACEOF
31520 cat confdefs.h
>>conftest.
$ac_ext
31521 cat >>conftest.
$ac_ext <<_ACEOF
31522 /* end confdefs.h. */
31527 int getprotoent_r (struct protoent *, struct protoent_data *prot_data);
31540 rm -f conftest.
$ac_objext
31541 if { (ac_try
="$ac_compile"
31542 case "(($ac_try" in
31543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_compile") 2>conftest.er1
31549 grep -v '^ *+' conftest.er1 >conftest.err
31551 cat conftest.err >&5
31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); } && {
31554 test -z "$ac_c_werror_flag" ||
31555 test ! -s conftest.err
31556 } && test -s conftest.$ac_objext; then
31558 PROTO_R_ARGS="#define PROTO_R_ARGS struct protoent_data *prot_data"
31559 PROTO_R_BAD="#define PROTO_R_BAD (-1)"
31560 PROTO_R_COPY="#define PROTO_R_COPY prot_data"
31561 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS struct protoent_data *pdptr"
31562 PROTO_R_OK="#define PROTO_R_OK 0"
31563 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
31564 PROTO_R_RETURN="#define PROTO_R_RETURN int"
31565 PROTOENT_DATA="#define PROTOENT_DATA 1"
31569 echo "$as_me: failed program was:" >&5
31570 sed 's/^/| /' conftest.$ac_ext >&5
31575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31586 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
31587 PROTO_R_BAD="#define PROTO_R_BAD NULL"
31588 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
31589 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
31590 PROTO_R_OK="#define PROTO_R_OK pptr"
31591 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
31592 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
31593 PROTOENT_DATA="#undef PROTOENT_DATA"
31612 { echo "$as_me:$LINENO: checking for endprotoent_r" >&5
31613 echo $ECHO_N "checking for endprotoent_r... $ECHO_C" >&6; }
31614 if test "${ac_cv_func_endprotoent_r+set}" = set; then
31615 echo $ECHO_N "(cached) $ECHO_C" >&6
31617 cat >conftest.$ac_ext <<_ACEOF
31620 cat confdefs.h >>conftest.$ac_ext
31621 cat >>conftest.$ac_ext <<_ACEOF
31622 /* end confdefs.h. */
31623 /* Define endprotoent_r to an innocuous variant, in case <limits.h> declares endprotoent_r.
31624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31625 #define endprotoent_r innocuous_endprotoent_r
31627 /* System header to define __stub macros and hopefully few prototypes,
31628 which can conflict with char endprotoent_r (); below.
31629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31630 <limits.h> exists even on freestanding compilers. */
31633 # include <limits.h>
31635 # include <assert.h>
31638 #undef endprotoent_r
31640 /* Override any GCC internal prototype to avoid an error.
31641 Use char because int might match the return type of a GCC
31642 builtin and then its argument prototype would still apply. */
31646 char endprotoent_r ();
31647 /* The GNU C library defines this for functions which it implements
31648 to always fail with ENOSYS. Some functions are actually named
31649 something starting with __ and the normal name is an alias. */
31650 #if defined __stub_endprotoent_r || defined __stub___endprotoent_r
31657 return endprotoent_r ();
31662 rm -f conftest.$ac_objext conftest$ac_exeext
31663 if { (ac_try="$ac_link"
31664 case "(($ac_try" in
31665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31666 *) ac_try_echo
=$ac_try;;
31668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31669 (eval "$ac_link") 2>conftest.er1
31671 grep -v '^ *+' conftest.er1
>conftest.err
31673 cat conftest.err
>&5
31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); } && {
31676 test -z "$ac_c_werror_flag" ||
31677 test ! -s conftest.err
31678 } && test -s conftest
$ac_exeext &&
31679 $as_test_x conftest
$ac_exeext; then
31680 ac_cv_func_endprotoent_r
=yes
31682 echo "$as_me: failed program was:" >&5
31683 sed 's/^/| /' conftest.
$ac_ext >&5
31685 ac_cv_func_endprotoent_r
=no
31688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31689 conftest
$ac_exeext conftest.
$ac_ext
31691 { echo "$as_me:$LINENO: result: $ac_cv_func_endprotoent_r" >&5
31692 echo "${ECHO_T}$ac_cv_func_endprotoent_r" >&6; }
31693 if test $ac_cv_func_endprotoent_r = yes; then
31694 cat >conftest.
$ac_ext <<_ACEOF
31697 cat confdefs.h
>>conftest.
$ac_ext
31698 cat >>conftest.
$ac_ext <<_ACEOF
31699 /* end confdefs.h. */
31706 void endprotoent_r(void);
31717 rm -f conftest.
$ac_objext
31718 if { (ac_try
="$ac_compile"
31719 case "(($ac_try" in
31720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31721 *) ac_try_echo=$ac_try;;
31723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31724 (eval "$ac_compile") 2>conftest.er1
31726 grep -v '^ *+' conftest.er1 >conftest.err
31728 cat conftest.err >&5
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); } && {
31731 test -z "$ac_c_werror_flag" ||
31732 test ! -s conftest.err
31733 } && test -s conftest.$ac_objext; then
31735 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
31736 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
31737 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS"
31738 PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"
31742 echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31745 cat >conftest.$ac_ext <<_ACEOF
31748 cat confdefs.h >>conftest.$ac_ext
31749 cat >>conftest.$ac_ext <<_ACEOF
31750 /* end confdefs.h. */
31757 void endprotoent_r(struct protoent_data *);
31768 rm -f conftest.$ac_objext
31769 if { (ac_try="$ac_compile"
31770 case "(($ac_try" in
31771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31772 *) ac_try_echo
=$ac_try;;
31774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775 (eval "$ac_compile") 2>conftest.er1
31777 grep -v '^ *+' conftest.er1
>conftest.err
31779 cat conftest.err
>&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); } && {
31782 test -z "$ac_c_werror_flag" ||
31783 test ! -s conftest.err
31784 } && test -s conftest.
$ac_objext; then
31786 PROTO_R_END_RESULT
="#define PROTO_R_END_RESULT(x) /*empty*/"
31787 PROTO_R_END_RETURN
="#define PROTO_R_END_RETURN void"
31788 PROTO_R_ENT_ARGS
="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"
31789 PROTO_R_ENT_UNUSED
="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"
31793 echo "$as_me: failed program was:" >&5
31794 sed 's/^/| /' conftest.
$ac_ext >&5
31796 cat >conftest.
$ac_ext <<_ACEOF
31799 cat confdefs.h
>>conftest.
$ac_ext
31800 cat >>conftest.
$ac_ext <<_ACEOF
31801 /* end confdefs.h. */
31808 int endprotoent_r(struct protoent_data *);
31819 rm -f conftest.
$ac_objext
31820 if { (ac_try
="$ac_compile"
31821 case "(($ac_try" in
31822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_compile") 2>conftest.er1
31828 grep -v '^ *+' conftest.er1 >conftest.err
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } && {
31833 test -z "$ac_c_werror_flag" ||
31834 test ! -s conftest.err
31835 } && test -s conftest.$ac_objext; then
31837 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) return(0)"
31838 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN int"
31839 PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"
31840 PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"
31844 echo "$as_me: failed program was:" >&5
31845 sed 's/^/| /' conftest.$ac_ext >&5
31850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31861 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
31862 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
31863 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/"
31864 PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"
31878 { echo "$as_me:$LINENO: checking for setprotoent_r" >&5
31879 echo $ECHO_N "checking for setprotoent_r... $ECHO_C" >&6; }
31880 if test "${ac_cv_func_setprotoent_r+set}" = set; then
31881 echo $ECHO_N "(cached) $ECHO_C" >&6
31883 cat >conftest.$ac_ext <<_ACEOF
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h. */
31889 /* Define setprotoent_r to an innocuous variant, in case <limits.h> declares setprotoent_r.
31890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31891 #define setprotoent_r innocuous_setprotoent_r
31893 /* System header to define __stub macros and hopefully few prototypes,
31894 which can conflict with char setprotoent_r (); below.
31895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31896 <limits.h> exists even on freestanding compilers. */
31899 # include <limits.h>
31901 # include <assert.h>
31904 #undef setprotoent_r
31906 /* Override any GCC internal prototype to avoid an error.
31907 Use char because int might match the return type of a GCC
31908 builtin and then its argument prototype would still apply. */
31912 char setprotoent_r ();
31913 /* The GNU C library defines this for functions which it implements
31914 to always fail with ENOSYS. Some functions are actually named
31915 something starting with __ and the normal name is an alias. */
31916 #if defined __stub_setprotoent_r || defined __stub___setprotoent_r
31923 return setprotoent_r ();
31928 rm -f conftest.$ac_objext conftest$ac_exeext
31929 if { (ac_try="$ac_link"
31930 case "(($ac_try" in
31931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31932 *) ac_try_echo
=$ac_try;;
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935 (eval "$ac_link") 2>conftest.er1
31937 grep -v '^ *+' conftest.er1
>conftest.err
31939 cat conftest.err
>&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } && {
31942 test -z "$ac_c_werror_flag" ||
31943 test ! -s conftest.err
31944 } && test -s conftest
$ac_exeext &&
31945 $as_test_x conftest
$ac_exeext; then
31946 ac_cv_func_setprotoent_r
=yes
31948 echo "$as_me: failed program was:" >&5
31949 sed 's/^/| /' conftest.
$ac_ext >&5
31951 ac_cv_func_setprotoent_r
=no
31954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31955 conftest
$ac_exeext conftest.
$ac_ext
31957 { echo "$as_me:$LINENO: result: $ac_cv_func_setprotoent_r" >&5
31958 echo "${ECHO_T}$ac_cv_func_setprotoent_r" >&6; }
31959 if test $ac_cv_func_setprotoent_r = yes; then
31960 cat >conftest.
$ac_ext <<_ACEOF
31963 cat confdefs.h
>>conftest.
$ac_ext
31964 cat >>conftest.
$ac_ext <<_ACEOF
31965 /* end confdefs.h. */
31972 void setprotoent_r __P((int));
31982 rm -f conftest.
$ac_objext
31983 if { (ac_try
="$ac_compile"
31984 case "(($ac_try" in
31985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31986 *) ac_try_echo=$ac_try;;
31988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989 (eval "$ac_compile") 2>conftest.er1
31991 grep -v '^ *+' conftest.er1 >conftest.err
31993 cat conftest.err >&5
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); } && {
31996 test -z "$ac_c_werror_flag" ||
31997 test ! -s conftest.err
31998 } && test -s conftest.$ac_objext; then
31999 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
32000 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
32003 echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32006 cat >conftest.$ac_ext <<_ACEOF
32009 cat confdefs.h >>conftest.$ac_ext
32010 cat >>conftest.$ac_ext <<_ACEOF
32011 /* end confdefs.h. */
32018 int setprotoent_r (int, struct protoent_data *);
32028 rm -f conftest.$ac_objext
32029 if { (ac_try="$ac_compile"
32030 case "(($ac_try" in
32031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32032 *) ac_try_echo
=$ac_try;;
32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_compile") 2>conftest.er1
32037 grep -v '^ *+' conftest.er1
>conftest.err
32039 cat conftest.err
>&5
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); } && {
32042 test -z "$ac_c_werror_flag" ||
32043 test ! -s conftest.err
32044 } && test -s conftest.
$ac_objext; then
32045 PROTO_R_SET_RESULT
="#define PROTO_R_SET_RESULT (0)"
32046 PROTO_R_SET_RETURN
="#define PROTO_R_SET_RETURN int"
32049 echo "$as_me: failed program was:" >&5
32050 sed 's/^/| /' conftest.
$ac_ext >&5
32055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32062 PROTO_R_SET_RESULT
="#undef PROTO_R_SET_RESULT"
32063 PROTO_R_SET_RETURN
="#define PROTO_R_SET_RETURN void"
32071 { echo "$as_me:$LINENO: checking for getpwent_r" >&5
32072 echo $ECHO_N "checking for getpwent_r... $ECHO_C" >&6; }
32073 if test "${ac_cv_func_getpwent_r+set}" = set; then
32074 echo $ECHO_N "(cached) $ECHO_C" >&6
32076 cat >conftest.
$ac_ext <<_ACEOF
32079 cat confdefs.h
>>conftest.
$ac_ext
32080 cat >>conftest.
$ac_ext <<_ACEOF
32081 /* end confdefs.h. */
32082 /* Define getpwent_r to an innocuous variant, in case <limits.h> declares getpwent_r.
32083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32084 #define getpwent_r innocuous_getpwent_r
32086 /* System header to define __stub macros and hopefully few prototypes,
32087 which can conflict with char getpwent_r (); below.
32088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32089 <limits.h> exists even on freestanding compilers. */
32092 # include <limits.h>
32094 # include <assert.h>
32099 /* Override any GCC internal prototype to avoid an error.
32100 Use char because int might match the return type of a GCC
32101 builtin and then its argument prototype would still apply. */
32105 char getpwent_r ();
32106 /* The GNU C library defines this for functions which it implements
32107 to always fail with ENOSYS. Some functions are actually named
32108 something starting with __ and the normal name is an alias. */
32109 #if defined __stub_getpwent_r || defined __stub___getpwent_r
32116 return getpwent_r ();
32121 rm -f conftest.
$ac_objext conftest
$ac_exeext
32122 if { (ac_try
="$ac_link"
32123 case "(($ac_try" in
32124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32125 *) ac_try_echo=$ac_try;;
32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128 (eval "$ac_link") 2>conftest.er1
32130 grep -v '^ *+' conftest.er1 >conftest.err
32132 cat conftest.err >&5
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); } && {
32135 test -z "$ac_c_werror_flag" ||
32136 test ! -s conftest.err
32137 } && test -s conftest$ac_exeext &&
32138 $as_test_x conftest$ac_exeext; then
32139 ac_cv_func_getpwent_r=yes
32141 echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32144 ac_cv_func_getpwent_r=no
32147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32148 conftest$ac_exeext conftest.$ac_ext
32150 { echo "$as_me:$LINENO: result: $ac_cv_func_getpwent_r" >&5
32151 echo "${ECHO_T}$ac_cv_func_getpwent_r" >&6; }
32152 if test $ac_cv_func_getpwent_r = yes; then
32153 cat >conftest.$ac_ext <<_ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h. */
32160 #include <sys/types.h>
32163 getpwent_r(struct passwd *pwptr, char *buf, int buflen) {}
32175 rm -f conftest.$ac_objext
32176 if { (ac_try="$ac_compile"
32177 case "(($ac_try" in
32178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32179 *) ac_try_echo
=$ac_try;;
32181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32182 (eval "$ac_compile") 2>conftest.er1
32184 grep -v '^ *+' conftest.er1
>conftest.err
32186 cat conftest.err
>&5
32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188 (exit $ac_status); } && {
32189 test -z "$ac_c_werror_flag" ||
32190 test ! -s conftest.err
32191 } && test -s conftest.
$ac_objext; then
32192 PASS_R_ARGS
="#define PASS_R_ARGS char *buf, int buflen"
32193 PASS_R_BAD
="#define PASS_R_BAD NULL"
32194 PASS_R_COPY
="#define PASS_R_COPY buf, buflen"
32195 PASS_R_COPY_ARGS
="#define PASS_R_COPY_ARGS PASS_R_ARGS"
32196 PASS_R_OK
="#define PASS_R_OK pwptr"
32197 PASS_R_RETURN
="#define PASS_R_RETURN struct passwd *"
32200 echo "$as_me: failed program was:" >&5
32201 sed 's/^/| /' conftest.
$ac_ext >&5
32206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32209 PASS_R_ARGS
="#define PASS_R_ARGS char *buf, int buflen"
32210 PASS_R_BAD
="#define PASS_R_BAD NULL"
32211 PASS_R_COPY
="#define PASS_R_COPY buf, buflen"
32212 PASS_R_COPY_ARGS
="#define PASS_R_COPY_ARGS PASS_R_ARGS"
32213 PASS_R_OK
="#define PASS_R_OK pwptr"
32214 PASS_R_RETURN
="#define PASS_R_RETURN struct passwd *"
32215 cat >>confdefs.h
<<\_ACEOF
32216 #define NEED_GETPWENT_R 1
32229 { echo "$as_me:$LINENO: checking for endpwent_r" >&5
32230 echo $ECHO_N "checking for endpwent_r... $ECHO_C" >&6; }
32231 if test "${ac_cv_func_endpwent_r+set}" = set; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32234 cat >conftest.
$ac_ext <<_ACEOF
32237 cat confdefs.h
>>conftest.
$ac_ext
32238 cat >>conftest.
$ac_ext <<_ACEOF
32239 /* end confdefs.h. */
32240 /* Define endpwent_r to an innocuous variant, in case <limits.h> declares endpwent_r.
32241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32242 #define endpwent_r innocuous_endpwent_r
32244 /* System header to define __stub macros and hopefully few prototypes,
32245 which can conflict with char endpwent_r (); below.
32246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32247 <limits.h> exists even on freestanding compilers. */
32250 # include <limits.h>
32252 # include <assert.h>
32257 /* Override any GCC internal prototype to avoid an error.
32258 Use char because int might match the return type of a GCC
32259 builtin and then its argument prototype would still apply. */
32263 char endpwent_r ();
32264 /* The GNU C library defines this for functions which it implements
32265 to always fail with ENOSYS. Some functions are actually named
32266 something starting with __ and the normal name is an alias. */
32267 #if defined __stub_endpwent_r || defined __stub___endpwent_r
32274 return endpwent_r ();
32279 rm -f conftest.
$ac_objext conftest
$ac_exeext
32280 if { (ac_try
="$ac_link"
32281 case "(($ac_try" in
32282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_link") 2>conftest.er1
32288 grep -v '^ *+' conftest.er1 >conftest.err
32290 cat conftest.err >&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } && {
32293 test -z "$ac_c_werror_flag" ||
32294 test ! -s conftest.err
32295 } && test -s conftest$ac_exeext &&
32296 $as_test_x conftest$ac_exeext; then
32297 ac_cv_func_endpwent_r=yes
32299 echo "$as_me: failed program was:" >&5
32300 sed 's/^/| /' conftest.$ac_ext >&5
32302 ac_cv_func_endpwent_r=no
32305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32306 conftest$ac_exeext conftest.$ac_ext
32308 { echo "$as_me:$LINENO: result: $ac_cv_func_endpwent_r" >&5
32309 echo "${ECHO_T}$ac_cv_func_endpwent_r" >&6; }
32310 if test $ac_cv_func_endpwent_r = yes; then
32311 cat >conftest.$ac_ext <<_ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h. */
32319 void endpwent_r(FILE **pwfp);
32329 rm -f conftest.$ac_objext
32330 if { (ac_try="$ac_compile"
32331 case "(($ac_try" in
32332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32333 *) ac_try_echo
=$ac_try;;
32335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32336 (eval "$ac_compile") 2>conftest.er1
32338 grep -v '^ *+' conftest.er1
>conftest.err
32340 cat conftest.err
>&5
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); } && {
32343 test -z "$ac_c_werror_flag" ||
32344 test ! -s conftest.err
32345 } && test -s conftest.
$ac_objext; then
32346 PASS_R_END_RESULT
="#define PASS_R_END_RESULT(x) /*empty*/"
32347 PASS_R_END_RETURN
="#define PASS_R_END_RETURN void"
32348 PASS_R_ENT_ARGS
="#define PASS_R_ENT_ARGS FILE **pwptr"
32351 echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.
$ac_ext >&5
32357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32360 PASS_R_END_RESULT
="#define PASS_R_END_RESULT(x) /*empty*/"
32361 PASS_R_END_RETURN
="#define PASS_R_END_RETURN void"
32362 PASS_R_ENT_ARGS
="#undef PASS_R_ENT_ARGS"
32363 cat >>confdefs.h
<<\_ACEOF
32364 #define NEED_ENDPWENT_R 1
32373 { echo "$as_me:$LINENO: checking for setpassent_r" >&5
32374 echo $ECHO_N "checking for setpassent_r... $ECHO_C" >&6; }
32375 if test "${ac_cv_func_setpassent_r+set}" = set; then
32376 echo $ECHO_N "(cached) $ECHO_C" >&6
32378 cat >conftest.
$ac_ext <<_ACEOF
32381 cat confdefs.h
>>conftest.
$ac_ext
32382 cat >>conftest.
$ac_ext <<_ACEOF
32383 /* end confdefs.h. */
32384 /* Define setpassent_r to an innocuous variant, in case <limits.h> declares setpassent_r.
32385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32386 #define setpassent_r innocuous_setpassent_r
32388 /* System header to define __stub macros and hopefully few prototypes,
32389 which can conflict with char setpassent_r (); below.
32390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32391 <limits.h> exists even on freestanding compilers. */
32394 # include <limits.h>
32396 # include <assert.h>
32399 #undef setpassent_r
32401 /* Override any GCC internal prototype to avoid an error.
32402 Use char because int might match the return type of a GCC
32403 builtin and then its argument prototype would still apply. */
32407 char setpassent_r ();
32408 /* The GNU C library defines this for functions which it implements
32409 to always fail with ENOSYS. Some functions are actually named
32410 something starting with __ and the normal name is an alias. */
32411 #if defined __stub_setpassent_r || defined __stub___setpassent_r
32418 return setpassent_r ();
32423 rm -f conftest.
$ac_objext conftest
$ac_exeext
32424 if { (ac_try
="$ac_link"
32425 case "(($ac_try" in
32426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32427 *) ac_try_echo=$ac_try;;
32429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32430 (eval "$ac_link") 2>conftest.er1
32432 grep -v '^ *+' conftest.er1 >conftest.err
32434 cat conftest.err >&5
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); } && {
32437 test -z "$ac_c_werror_flag" ||
32438 test ! -s conftest.err
32439 } && test -s conftest$ac_exeext &&
32440 $as_test_x conftest$ac_exeext; then
32441 ac_cv_func_setpassent_r=yes
32443 echo "$as_me: failed program was:" >&5
32444 sed 's/^/| /' conftest.$ac_ext >&5
32446 ac_cv_func_setpassent_r=no
32449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32450 conftest$ac_exeext conftest.$ac_ext
32452 { echo "$as_me:$LINENO: result: $ac_cv_func_setpassent_r" >&5
32453 echo "${ECHO_T}$ac_cv_func_setpassent_r" >&6; }
32454 if test $ac_cv_func_setpassent_r = yes; then
32457 cat >>confdefs.h <<\_ACEOF
32458 #define NEED_SETPASSENT_R 1
32463 { echo "$as_me:$LINENO: checking for setpassent" >&5
32464 echo $ECHO_N "checking for setpassent... $ECHO_C" >&6; }
32465 if test "${ac_cv_func_setpassent+set}" = set; then
32466 echo $ECHO_N "(cached) $ECHO_C" >&6
32468 cat >conftest.$ac_ext <<_ACEOF
32471 cat confdefs.h >>conftest.$ac_ext
32472 cat >>conftest.$ac_ext <<_ACEOF
32473 /* end confdefs.h. */
32474 /* Define setpassent to an innocuous variant, in case <limits.h> declares setpassent.
32475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32476 #define setpassent innocuous_setpassent
32478 /* System header to define __stub macros and hopefully few prototypes,
32479 which can conflict with char setpassent (); below.
32480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32481 <limits.h> exists even on freestanding compilers. */
32484 # include <limits.h>
32486 # include <assert.h>
32491 /* Override any GCC internal prototype to avoid an error.
32492 Use char because int might match the return type of a GCC
32493 builtin and then its argument prototype would still apply. */
32497 char setpassent ();
32498 /* The GNU C library defines this for functions which it implements
32499 to always fail with ENOSYS. Some functions are actually named
32500 something starting with __ and the normal name is an alias. */
32501 #if defined __stub_setpassent || defined __stub___setpassent
32508 return setpassent ();
32513 rm -f conftest.$ac_objext conftest$ac_exeext
32514 if { (ac_try="$ac_link"
32515 case "(($ac_try" in
32516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32517 *) ac_try_echo
=$ac_try;;
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_link") 2>conftest.er1
32522 grep -v '^ *+' conftest.er1
>conftest.err
32524 cat conftest.err
>&5
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } && {
32527 test -z "$ac_c_werror_flag" ||
32528 test ! -s conftest.err
32529 } && test -s conftest
$ac_exeext &&
32530 $as_test_x conftest
$ac_exeext; then
32531 ac_cv_func_setpassent
=yes
32533 echo "$as_me: failed program was:" >&5
32534 sed 's/^/| /' conftest.
$ac_ext >&5
32536 ac_cv_func_setpassent
=no
32539 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32540 conftest
$ac_exeext conftest.
$ac_ext
32542 { echo "$as_me:$LINENO: result: $ac_cv_func_setpassent" >&5
32543 echo "${ECHO_T}$ac_cv_func_setpassent" >&6; }
32544 if test $ac_cv_func_setpassent = yes; then
32547 cat >>confdefs.h
<<\_ACEOF
32548 #define NEED_SETPASSENT 1
32554 { echo "$as_me:$LINENO: checking for setpwent_r" >&5
32555 echo $ECHO_N "checking for setpwent_r... $ECHO_C" >&6; }
32556 if test "${ac_cv_func_setpwent_r+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32559 cat >conftest.
$ac_ext <<_ACEOF
32562 cat confdefs.h
>>conftest.
$ac_ext
32563 cat >>conftest.
$ac_ext <<_ACEOF
32564 /* end confdefs.h. */
32565 /* Define setpwent_r to an innocuous variant, in case <limits.h> declares setpwent_r.
32566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32567 #define setpwent_r innocuous_setpwent_r
32569 /* System header to define __stub macros and hopefully few prototypes,
32570 which can conflict with char setpwent_r (); below.
32571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32572 <limits.h> exists even on freestanding compilers. */
32575 # include <limits.h>
32577 # include <assert.h>
32582 /* Override any GCC internal prototype to avoid an error.
32583 Use char because int might match the return type of a GCC
32584 builtin and then its argument prototype would still apply. */
32588 char setpwent_r ();
32589 /* The GNU C library defines this for functions which it implements
32590 to always fail with ENOSYS. Some functions are actually named
32591 something starting with __ and the normal name is an alias. */
32592 #if defined __stub_setpwent_r || defined __stub___setpwent_r
32599 return setpwent_r ();
32604 rm -f conftest.
$ac_objext conftest
$ac_exeext
32605 if { (ac_try
="$ac_link"
32606 case "(($ac_try" in
32607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_link") 2>conftest.er1
32613 grep -v '^ *+' conftest.er1 >conftest.err
32615 cat conftest.err >&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } && {
32618 test -z "$ac_c_werror_flag" ||
32619 test ! -s conftest.err
32620 } && test -s conftest$ac_exeext &&
32621 $as_test_x conftest$ac_exeext; then
32622 ac_cv_func_setpwent_r=yes
32624 echo "$as_me: failed program was:" >&5
32625 sed 's/^/| /' conftest.$ac_ext >&5
32627 ac_cv_func_setpwent_r=no
32630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32631 conftest$ac_exeext conftest.$ac_ext
32633 { echo "$as_me:$LINENO: result: $ac_cv_func_setpwent_r" >&5
32634 echo "${ECHO_T}$ac_cv_func_setpwent_r" >&6; }
32635 if test $ac_cv_func_setpwent_r = yes; then
32636 cat >conftest.$ac_ext <<_ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h. */
32644 void setpwent_r(FILE **pwfp);
32654 rm -f conftest.$ac_objext
32655 if { (ac_try="$ac_compile"
32656 case "(($ac_try" in
32657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32658 *) ac_try_echo
=$ac_try;;
32660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661 (eval "$ac_compile") 2>conftest.er1
32663 grep -v '^ *+' conftest.er1
>conftest.err
32665 cat conftest.err
>&5
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); } && {
32668 test -z "$ac_c_werror_flag" ||
32669 test ! -s conftest.err
32670 } && test -s conftest.
$ac_objext; then
32671 PASS_R_SET_RESULT
="#undef PASS_R_SET_RESULT /* empty */"
32672 PASS_R_SET_RETURN
="#define PASS_R_SET_RETURN int"
32675 echo "$as_me: failed program was:" >&5
32676 sed 's/^/| /' conftest.
$ac_ext >&5
32678 cat >conftest.
$ac_ext <<_ACEOF
32681 cat confdefs.h
>>conftest.
$ac_ext
32682 cat >>conftest.
$ac_ext <<_ACEOF
32683 /* end confdefs.h. */
32686 int setpwent_r(FILE **pwfp);
32696 rm -f conftest.
$ac_objext
32697 if { (ac_try
="$ac_compile"
32698 case "(($ac_try" in
32699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_compile") 2>conftest.er1
32705 grep -v '^ *+' conftest.er1 >conftest.err
32707 cat conftest.err >&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); } && {
32710 test -z "$ac_c_werror_flag" ||
32711 test ! -s conftest.err
32712 } && test -s conftest.$ac_objext; then
32713 PASS_R_SET_RESULT="#define PASS_R_SET_RESULT 0"
32714 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
32717 echo "$as_me: failed program was:" >&5
32718 sed 's/^/| /' conftest.$ac_ext >&5
32723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32730 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /*empty*/"
32731 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN void"
32732 cat >>confdefs.h <<\_ACEOF
32733 #define NEED_SETPWENT_R 1
32742 { echo "$as_me:$LINENO: checking for getpwnam_r" >&5
32743 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6; }
32744 if test "${ac_cv_func_getpwnam_r+set}" = set; then
32745 echo $ECHO_N "(cached) $ECHO_C" >&6
32747 cat >conftest.$ac_ext <<_ACEOF
32750 cat confdefs.h >>conftest.$ac_ext
32751 cat >>conftest.$ac_ext <<_ACEOF
32752 /* end confdefs.h. */
32753 /* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r.
32754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32755 #define getpwnam_r innocuous_getpwnam_r
32757 /* System header to define __stub macros and hopefully few prototypes,
32758 which can conflict with char getpwnam_r (); below.
32759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32760 <limits.h> exists even on freestanding compilers. */
32763 # include <limits.h>
32765 # include <assert.h>
32770 /* Override any GCC internal prototype to avoid an error.
32771 Use char because int might match the return type of a GCC
32772 builtin and then its argument prototype would still apply. */
32776 char getpwnam_r ();
32777 /* The GNU C library defines this for functions which it implements
32778 to always fail with ENOSYS. Some functions are actually named
32779 something starting with __ and the normal name is an alias. */
32780 #if defined __stub_getpwnam_r || defined __stub___getpwnam_r
32787 return getpwnam_r ();
32792 rm -f conftest.$ac_objext conftest$ac_exeext
32793 if { (ac_try="$ac_link"
32794 case "(($ac_try" in
32795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32796 *) ac_try_echo
=$ac_try;;
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_link") 2>conftest.er1
32801 grep -v '^ *+' conftest.er1
>conftest.err
32803 cat conftest.err
>&5
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } && {
32806 test -z "$ac_c_werror_flag" ||
32807 test ! -s conftest.err
32808 } && test -s conftest
$ac_exeext &&
32809 $as_test_x conftest
$ac_exeext; then
32810 ac_cv_func_getpwnam_r
=yes
32812 echo "$as_me: failed program was:" >&5
32813 sed 's/^/| /' conftest.
$ac_ext >&5
32815 ac_cv_func_getpwnam_r
=no
32818 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32819 conftest
$ac_exeext conftest.
$ac_ext
32821 { echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5
32822 echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6; }
32823 if test $ac_cv_func_getpwnam_r = yes; then
32826 cat >>confdefs.h
<<\_ACEOF
32827 #define NEED_GETPWNAM_R 1
32832 { echo "$as_me:$LINENO: checking for getpwuid_r" >&5
32833 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6; }
32834 if test "${ac_cv_func_getpwuid_r+set}" = set; then
32835 echo $ECHO_N "(cached) $ECHO_C" >&6
32837 cat >conftest.
$ac_ext <<_ACEOF
32840 cat confdefs.h
>>conftest.
$ac_ext
32841 cat >>conftest.
$ac_ext <<_ACEOF
32842 /* end confdefs.h. */
32843 /* Define getpwuid_r to an innocuous variant, in case <limits.h> declares getpwuid_r.
32844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32845 #define getpwuid_r innocuous_getpwuid_r
32847 /* System header to define __stub macros and hopefully few prototypes,
32848 which can conflict with char getpwuid_r (); below.
32849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32850 <limits.h> exists even on freestanding compilers. */
32853 # include <limits.h>
32855 # include <assert.h>
32860 /* Override any GCC internal prototype to avoid an error.
32861 Use char because int might match the return type of a GCC
32862 builtin and then its argument prototype would still apply. */
32866 char getpwuid_r ();
32867 /* The GNU C library defines this for functions which it implements
32868 to always fail with ENOSYS. Some functions are actually named
32869 something starting with __ and the normal name is an alias. */
32870 #if defined __stub_getpwuid_r || defined __stub___getpwuid_r
32877 return getpwuid_r ();
32882 rm -f conftest.
$ac_objext conftest
$ac_exeext
32883 if { (ac_try
="$ac_link"
32884 case "(($ac_try" in
32885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32886 *) ac_try_echo=$ac_try;;
32888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32889 (eval "$ac_link") 2>conftest.er1
32891 grep -v '^ *+' conftest.er1 >conftest.err
32893 cat conftest.err >&5
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); } && {
32896 test -z "$ac_c_werror_flag" ||
32897 test ! -s conftest.err
32898 } && test -s conftest$ac_exeext &&
32899 $as_test_x conftest$ac_exeext; then
32900 ac_cv_func_getpwuid_r=yes
32902 echo "$as_me: failed program was:" >&5
32903 sed 's/^/| /' conftest.$ac_ext >&5
32905 ac_cv_func_getpwuid_r=no
32908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32909 conftest$ac_exeext conftest.$ac_ext
32911 { echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
32912 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6; }
32913 if test $ac_cv_func_getpwuid_r = yes; then
32916 cat >>confdefs.h <<\_ACEOF
32917 #define NEED_GETPWUID_R 1
32927 { echo "$as_me:$LINENO: checking for getservent_r" >&5
32928 echo $ECHO_N "checking for getservent_r... $ECHO_C" >&6; }
32929 if test "${ac_cv_func_getservent_r+set}" = set; then
32930 echo $ECHO_N "(cached) $ECHO_C" >&6
32932 cat >conftest.$ac_ext <<_ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32938 /* Define getservent_r to an innocuous variant, in case <limits.h> declares getservent_r.
32939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32940 #define getservent_r innocuous_getservent_r
32942 /* System header to define __stub macros and hopefully few prototypes,
32943 which can conflict with char getservent_r (); below.
32944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32945 <limits.h> exists even on freestanding compilers. */
32948 # include <limits.h>
32950 # include <assert.h>
32953 #undef getservent_r
32955 /* Override any GCC internal prototype to avoid an error.
32956 Use char because int might match the return type of a GCC
32957 builtin and then its argument prototype would still apply. */
32961 char getservent_r ();
32962 /* The GNU C library defines this for functions which it implements
32963 to always fail with ENOSYS. Some functions are actually named
32964 something starting with __ and the normal name is an alias. */
32965 #if defined __stub_getservent_r || defined __stub___getservent_r
32972 return getservent_r ();
32977 rm -f conftest.$ac_objext conftest$ac_exeext
32978 if { (ac_try="$ac_link"
32979 case "(($ac_try" in
32980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32981 *) ac_try_echo
=$ac_try;;
32983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32984 (eval "$ac_link") 2>conftest.er1
32986 grep -v '^ *+' conftest.er1
>conftest.err
32988 cat conftest.err
>&5
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); } && {
32991 test -z "$ac_c_werror_flag" ||
32992 test ! -s conftest.err
32993 } && test -s conftest
$ac_exeext &&
32994 $as_test_x conftest
$ac_exeext; then
32995 ac_cv_func_getservent_r
=yes
32997 echo "$as_me: failed program was:" >&5
32998 sed 's/^/| /' conftest.
$ac_ext >&5
33000 ac_cv_func_getservent_r
=no
33003 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33004 conftest
$ac_exeext conftest.
$ac_ext
33006 { echo "$as_me:$LINENO: result: $ac_cv_func_getservent_r" >&5
33007 echo "${ECHO_T}$ac_cv_func_getservent_r" >&6; }
33008 if test $ac_cv_func_getservent_r = yes; then
33009 cat >conftest.
$ac_ext <<_ACEOF
33012 cat confdefs.h
>>conftest.
$ac_ext
33013 cat >>conftest.
$ac_ext <<_ACEOF
33014 /* end confdefs.h. */
33020 getservent_r(struct servent *result, char *buffer, int buflen) {}
33030 rm -f conftest.
$ac_objext
33031 if { (ac_try
="$ac_compile"
33032 case "(($ac_try" in
33033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33034 *) ac_try_echo=$ac_try;;
33036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037 (eval "$ac_compile") 2>conftest.er1
33039 grep -v '^ *+' conftest.er1 >conftest.err
33041 cat conftest.err >&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } && {
33044 test -z "$ac_c_werror_flag" ||
33045 test ! -s conftest.err
33046 } && test -s conftest.$ac_objext; then
33048 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
33049 SERV_R_BAD="#define SERV_R_BAD NULL"
33050 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
33051 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
33052 SERV_R_OK="#define SERV_R_OK sptr"
33053 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
33054 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
33058 echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33061 cat >conftest.$ac_ext <<_ACEOF
33064 cat confdefs.h >>conftest.$ac_ext
33065 cat >>conftest.$ac_ext <<_ACEOF
33066 /* end confdefs.h. */
33072 getservent_r (struct servent *, char *, size_t, struct servent **);
33082 rm -f conftest.$ac_objext
33083 if { (ac_try="$ac_compile"
33084 case "(($ac_try" in
33085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33086 *) ac_try_echo
=$ac_try;;
33088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33089 (eval "$ac_compile") 2>conftest.er1
33091 grep -v '^ *+' conftest.er1
>conftest.err
33093 cat conftest.err
>&5
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); } && {
33096 test -z "$ac_c_werror_flag" ||
33097 test ! -s conftest.err
33098 } && test -s conftest.
$ac_objext; then
33100 SERV_R_ARGS
="#define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp"
33101 SERV_R_BAD
="#define SERV_R_BAD ERANGE"
33102 SERV_R_COPY
="#define SERV_R_COPY buf, buflen"
33103 SERV_R_COPY_ARGS
="#define SERV_R_COPY_ARGS char *buf, size_t buflen"
33104 SERV_R_OK
="#define SERV_R_OK (0)"
33105 SERV_R_SETANSWER
="#define SERV_R_SETANSWER 1"
33106 SERV_R_RETURN
="#define SERV_R_RETURN int"
33110 echo "$as_me: failed program was:" >&5
33111 sed 's/^/| /' conftest.
$ac_ext >&5
33113 cat >conftest.
$ac_ext <<_ACEOF
33116 cat confdefs.h
>>conftest.
$ac_ext
33117 cat >>conftest.
$ac_ext <<_ACEOF
33118 /* end confdefs.h. */
33124 getservent_r (struct servent *, struct servent_data *serv_data);
33134 rm -f conftest.
$ac_objext
33135 if { (ac_try
="$ac_compile"
33136 case "(($ac_try" in
33137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33138 *) ac_try_echo=$ac_try;;
33140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33141 (eval "$ac_compile") 2>conftest.er1
33143 grep -v '^ *+' conftest.er1 >conftest.err
33145 cat conftest.err >&5
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); } && {
33148 test -z "$ac_c_werror_flag" ||
33149 test ! -s conftest.err
33150 } && test -s conftest.$ac_objext; then
33152 SERV_R_ARGS="#define SERV_R_ARGS struct servent_data *serv_data"
33153 SERV_R_BAD="#define SERV_R_BAD (-1)"
33154 SERV_R_COPY="#define SERV_R_COPY serv_data"
33155 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS struct servent_data *sdptr"
33156 SERV_R_OK="#define SERV_R_OK (0)"
33157 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
33158 SERV_R_RETURN="#define SERV_R_RETURN int"
33159 SERVENT_DATA="#define SERVENT_DATA 1"
33163 echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33180 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
33181 SERV_R_BAD="#define SERV_R_BAD NULL"
33182 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
33183 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
33184 SERV_R_OK="#define SERV_R_OK sptr"
33185 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
33186 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
33204 { echo "$as_me:$LINENO: checking for endservent_r" >&5
33205 echo $ECHO_N "checking for endservent_r... $ECHO_C" >&6; }
33206 if test "${ac_cv_func_endservent_r+set}" = set; then
33207 echo $ECHO_N "(cached) $ECHO_C" >&6
33209 cat >conftest.$ac_ext <<_ACEOF
33212 cat confdefs.h >>conftest.$ac_ext
33213 cat >>conftest.$ac_ext <<_ACEOF
33214 /* end confdefs.h. */
33215 /* Define endservent_r to an innocuous variant, in case <limits.h> declares endservent_r.
33216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33217 #define endservent_r innocuous_endservent_r
33219 /* System header to define __stub macros and hopefully few prototypes,
33220 which can conflict with char endservent_r (); below.
33221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33222 <limits.h> exists even on freestanding compilers. */
33225 # include <limits.h>
33227 # include <assert.h>
33230 #undef endservent_r
33232 /* Override any GCC internal prototype to avoid an error.
33233 Use char because int might match the return type of a GCC
33234 builtin and then its argument prototype would still apply. */
33238 char endservent_r ();
33239 /* The GNU C library defines this for functions which it implements
33240 to always fail with ENOSYS. Some functions are actually named
33241 something starting with __ and the normal name is an alias. */
33242 #if defined __stub_endservent_r || defined __stub___endservent_r
33249 return endservent_r ();
33254 rm -f conftest.$ac_objext conftest$ac_exeext
33255 if { (ac_try="$ac_link"
33256 case "(($ac_try" in
33257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33258 *) ac_try_echo
=$ac_try;;
33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_link") 2>conftest.er1
33263 grep -v '^ *+' conftest.er1
>conftest.err
33265 cat conftest.err
>&5
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); } && {
33268 test -z "$ac_c_werror_flag" ||
33269 test ! -s conftest.err
33270 } && test -s conftest
$ac_exeext &&
33271 $as_test_x conftest
$ac_exeext; then
33272 ac_cv_func_endservent_r
=yes
33274 echo "$as_me: failed program was:" >&5
33275 sed 's/^/| /' conftest.
$ac_ext >&5
33277 ac_cv_func_endservent_r
=no
33280 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33281 conftest
$ac_exeext conftest.
$ac_ext
33283 { echo "$as_me:$LINENO: result: $ac_cv_func_endservent_r" >&5
33284 echo "${ECHO_T}$ac_cv_func_endservent_r" >&6; }
33285 if test $ac_cv_func_endservent_r = yes; then
33286 cat >conftest.
$ac_ext <<_ACEOF
33289 cat confdefs.h
>>conftest.
$ac_ext
33290 cat >>conftest.
$ac_ext <<_ACEOF
33291 /* end confdefs.h. */
33298 void endservent_r(void);
33309 rm -f conftest.
$ac_objext
33310 if { (ac_try
="$ac_compile"
33311 case "(($ac_try" in
33312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33313 *) ac_try_echo=$ac_try;;
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316 (eval "$ac_compile") 2>conftest.er1
33318 grep -v '^ *+' conftest.er1 >conftest.err
33320 cat conftest.err >&5
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); } && {
33323 test -z "$ac_c_werror_flag" ||
33324 test ! -s conftest.err
33325 } && test -s conftest.$ac_objext; then
33327 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
33328 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
33329 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
33330 SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"
33334 echo "$as_me: failed program was:" >&5
33335 sed 's/^/| /' conftest.$ac_ext >&5
33337 cat >conftest.$ac_ext <<_ACEOF
33340 cat confdefs.h >>conftest.$ac_ext
33341 cat >>conftest.$ac_ext <<_ACEOF
33342 /* end confdefs.h. */
33349 void endservent_r(struct servent_data *serv_data);
33360 rm -f conftest.$ac_objext
33361 if { (ac_try="$ac_compile"
33362 case "(($ac_try" in
33363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33364 *) ac_try_echo
=$ac_try;;
33366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367 (eval "$ac_compile") 2>conftest.er1
33369 grep -v '^ *+' conftest.er1
>conftest.err
33371 cat conftest.err
>&5
33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373 (exit $ac_status); } && {
33374 test -z "$ac_c_werror_flag" ||
33375 test ! -s conftest.err
33376 } && test -s conftest.
$ac_objext; then
33378 SERV_R_END_RESULT
="#define SERV_R_END_RESULT(x) /*empty*/"
33379 SERV_R_END_RETURN
="#define SERV_R_END_RETURN void "
33380 SERV_R_ENT_ARGS
="#define SERV_R_ENT_ARGS struct servent_data *serv_data"
33381 SERV_R_ENT_UNUSED
="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"
33385 echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.
$ac_ext >&5
33388 cat >conftest.
$ac_ext <<_ACEOF
33391 cat confdefs.h
>>conftest.
$ac_ext
33392 cat >>conftest.
$ac_ext <<_ACEOF
33393 /* end confdefs.h. */
33400 int endservent_r(struct servent_data *serv_data);
33411 rm -f conftest.
$ac_objext
33412 if { (ac_try
="$ac_compile"
33413 case "(($ac_try" in
33414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418 (eval "$ac_compile") 2>conftest.er1
33420 grep -v '^ *+' conftest.er1 >conftest.err
33422 cat conftest.err >&5
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); } && {
33425 test -z "$ac_c_werror_flag" ||
33426 test ! -s conftest.err
33427 } && test -s conftest.$ac_objext; then
33429 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) return(x)"
33430 SERV_R_END_RETURN="#define SERV_R_END_RETURN int "
33431 SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"
33432 SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"
33436 echo "$as_me: failed program was:" >&5
33437 sed 's/^/| /' conftest.$ac_ext >&5
33442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33453 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
33454 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
33455 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
33456 SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"
33470 { echo "$as_me:$LINENO: checking for setservent_r" >&5
33471 echo $ECHO_N "checking for setservent_r... $ECHO_C" >&6; }
33472 if test "${ac_cv_func_setservent_r+set}" = set; then
33473 echo $ECHO_N "(cached) $ECHO_C" >&6
33475 cat >conftest.$ac_ext <<_ACEOF
33478 cat confdefs.h >>conftest.$ac_ext
33479 cat >>conftest.$ac_ext <<_ACEOF
33480 /* end confdefs.h. */
33481 /* Define setservent_r to an innocuous variant, in case <limits.h> declares setservent_r.
33482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33483 #define setservent_r innocuous_setservent_r
33485 /* System header to define __stub macros and hopefully few prototypes,
33486 which can conflict with char setservent_r (); below.
33487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33488 <limits.h> exists even on freestanding compilers. */
33491 # include <limits.h>
33493 # include <assert.h>
33496 #undef setservent_r
33498 /* Override any GCC internal prototype to avoid an error.
33499 Use char because int might match the return type of a GCC
33500 builtin and then its argument prototype would still apply. */
33504 char setservent_r ();
33505 /* The GNU C library defines this for functions which it implements
33506 to always fail with ENOSYS. Some functions are actually named
33507 something starting with __ and the normal name is an alias. */
33508 #if defined __stub_setservent_r || defined __stub___setservent_r
33515 return setservent_r ();
33520 rm -f conftest.$ac_objext conftest$ac_exeext
33521 if { (ac_try="$ac_link"
33522 case "(($ac_try" in
33523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33524 *) ac_try_echo
=$ac_try;;
33526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527 (eval "$ac_link") 2>conftest.er1
33529 grep -v '^ *+' conftest.er1
>conftest.err
33531 cat conftest.err
>&5
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); } && {
33534 test -z "$ac_c_werror_flag" ||
33535 test ! -s conftest.err
33536 } && test -s conftest
$ac_exeext &&
33537 $as_test_x conftest
$ac_exeext; then
33538 ac_cv_func_setservent_r
=yes
33540 echo "$as_me: failed program was:" >&5
33541 sed 's/^/| /' conftest.
$ac_ext >&5
33543 ac_cv_func_setservent_r
=no
33546 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33547 conftest
$ac_exeext conftest.
$ac_ext
33549 { echo "$as_me:$LINENO: result: $ac_cv_func_setservent_r" >&5
33550 echo "${ECHO_T}$ac_cv_func_setservent_r" >&6; }
33551 if test $ac_cv_func_setservent_r = yes; then
33552 cat >conftest.
$ac_ext <<_ACEOF
33555 cat confdefs.h
>>conftest.
$ac_ext
33556 cat >>conftest.
$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33564 void setservent_r(int);
33575 rm -f conftest.
$ac_objext
33576 if { (ac_try
="$ac_compile"
33577 case "(($ac_try" in
33578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33579 *) ac_try_echo=$ac_try;;
33581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33582 (eval "$ac_compile") 2>conftest.er1
33584 grep -v '^ *+' conftest.er1 >conftest.err
33586 cat conftest.err >&5
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); } && {
33589 test -z "$ac_c_werror_flag" ||
33590 test ! -s conftest.err
33591 } && test -s conftest.$ac_objext; then
33593 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
33594 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
33598 echo "$as_me: failed program was:" >&5
33599 sed 's/^/| /' conftest.$ac_ext >&5
33601 cat >conftest.$ac_ext <<_ACEOF
33604 cat confdefs.h >>conftest.$ac_ext
33605 cat >>conftest.$ac_ext <<_ACEOF
33606 /* end confdefs.h. */
33613 int setservent_r(int, struct servent_data *);
33624 rm -f conftest.$ac_objext
33625 if { (ac_try="$ac_compile"
33626 case "(($ac_try" in
33627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33628 *) ac_try_echo
=$ac_try;;
33630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33631 (eval "$ac_compile") 2>conftest.er1
33633 grep -v '^ *+' conftest.er1
>conftest.err
33635 cat conftest.err
>&5
33636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637 (exit $ac_status); } && {
33638 test -z "$ac_c_werror_flag" ||
33639 test ! -s conftest.err
33640 } && test -s conftest.
$ac_objext; then
33642 SERV_R_SET_RESULT
="#define SERV_R_SET_RESULT (0)"
33643 SERV_R_SET_RETURN
="#define SERV_R_SET_RETURN int"
33647 echo "$as_me: failed program was:" >&5
33648 sed 's/^/| /' conftest.
$ac_ext >&5
33653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33660 SERV_R_SET_RESULT
="#undef SERV_R_SET_RESULT"
33661 SERV_R_SET_RETURN
="#define SERV_R_SET_RETURN void"
33669 cat >conftest.
$ac_ext <<_ACEOF
33672 cat confdefs.h
>>conftest.
$ac_ext
33673 cat >>conftest.
$ac_ext <<_ACEOF
33674 /* end confdefs.h. */
33680 #include <unistd.h>
33682 int innetgr(const char *netgroup, const char *host, const char *user, const char *domain);
33693 rm -f conftest.
$ac_objext
33694 if { (ac_try
="$ac_compile"
33695 case "(($ac_try" in
33696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33697 *) ac_try_echo=$ac_try;;
33699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33700 (eval "$ac_compile") 2>conftest.er1
33702 grep -v '^ *+' conftest.er1 >conftest.err
33704 cat conftest.err >&5
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); } && {
33707 test -z "$ac_c_werror_flag" ||
33708 test ! -s conftest.err
33709 } && test -s conftest.$ac_objext; then
33711 INNETGR_ARGS="#undef INNETGR_ARGS"
33715 echo "$as_me: failed program was:" >&5
33716 sed 's/^/| /' conftest.$ac_ext >&5
33718 cat >conftest.$ac_ext <<_ACEOF
33721 cat confdefs.h >>conftest.$ac_ext
33722 cat >>conftest.$ac_ext <<_ACEOF
33723 /* end confdefs.h. */
33729 #include <unistd.h>
33731 int innetgr(char *netgroup, char *host, char *user, char *domain);
33742 rm -f conftest.$ac_objext
33743 if { (ac_try="$ac_compile"
33744 case "(($ac_try" in
33745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33746 *) ac_try_echo
=$ac_try;;
33748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33749 (eval "$ac_compile") 2>conftest.er1
33751 grep -v '^ *+' conftest.er1
>conftest.err
33753 cat conftest.err
>&5
33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755 (exit $ac_status); } && {
33756 test -z "$ac_c_werror_flag" ||
33757 test ! -s conftest.err
33758 } && test -s conftest.
$ac_objext; then
33760 INNETGR_ARGS
="#define INNETGR_ARGS char *netgroup, char *host, char *user, char *domain"
33764 echo "$as_me: failed program was:" >&5
33765 sed 's/^/| /' conftest.
$ac_ext >&5
33770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33775 cat >conftest.
$ac_ext <<_ACEOF
33778 cat confdefs.h
>>conftest.
$ac_ext
33779 cat >>conftest.
$ac_ext <<_ACEOF
33780 /* end confdefs.h. */
33786 #include <unistd.h>
33788 void setnetgrent(const char *);
33799 rm -f conftest.
$ac_objext
33800 if { (ac_try
="$ac_compile"
33801 case "(($ac_try" in
33802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33803 *) ac_try_echo=$ac_try;;
33805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33806 (eval "$ac_compile") 2>conftest.er1
33808 grep -v '^ *+' conftest.er1 >conftest.err
33810 cat conftest.err >&5
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } && {
33813 test -z "$ac_c_werror_flag" ||
33814 test ! -s conftest.err
33815 } && test -s conftest.$ac_objext; then
33817 SETNETGRENT_ARGS="#undef SETNETGRENT_ARGS"
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33824 cat >conftest.$ac_ext <<_ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h. */
33835 #include <unistd.h>
33837 void setnetgrent(char *);
33848 rm -f conftest.$ac_objext
33849 if { (ac_try="$ac_compile"
33850 case "(($ac_try" in
33851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33852 *) ac_try_echo
=$ac_try;;
33854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33855 (eval "$ac_compile") 2>conftest.er1
33857 grep -v '^ *+' conftest.er1
>conftest.err
33859 cat conftest.err
>&5
33860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33861 (exit $ac_status); } && {
33862 test -z "$ac_c_werror_flag" ||
33863 test ! -s conftest.err
33864 } && test -s conftest.
$ac_objext; then
33866 SETNETGRENT_ARGS
="#define SETNETGRENT_ARGS char *netgroup"
33870 echo "$as_me: failed program was:" >&5
33871 sed 's/^/| /' conftest.
$ac_ext >&5
33876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33884 # Random remaining OS-specific issues involving compiler warnings.
33885 # XXXDCL print messages to indicate some compensation is being done?
33887 BROKEN_IN6ADDR_INIT_MACROS
="#undef BROKEN_IN6ADDR_INIT_MACROS"
33891 hack_shutup_pthreadmutexinit
=yes
33892 hack_shutup_in6addr_init_macros
=yes
33895 hack_shutup_in6addr_init_macros
=yes
33898 hack_shutup_sputaux
=yes
33901 hack_shutup_sigwait
=yes
33902 hack_shutup_sputaux
=yes
33903 hack_shutup_in6addr_init_macros
=yes
33906 hack_shutup_stdargcast
=yes
33909 hack_shutup_in6addr_init_macros
=yes
33911 *-osf5.1|
*-osf5.1b
)
33912 hack_shutup_in6addr_init_macros
=yes
33915 hack_shutup_in6addr_init_macros
=yes
33918 hack_shutup_in6addr_init_macros
=yes
33921 hack_shutup_in6addr_init_macros
=yes
33925 case "$hack_shutup_pthreadmutexinit" in
33928 # Shut up PTHREAD_MUTEX_INITIALIZER unbraced
33929 # initializer warnings.
33931 cat >>confdefs.h
<<\_ACEOF
33932 #define SHUTUP_MUTEX_INITIALIZER 1
33938 case "$hack_shutup_sigwait" in
33941 # Shut up a -Wmissing-prototypes warning for sigwait().
33943 cat >>confdefs.h
<<\_ACEOF
33944 #define SHUTUP_SIGWAIT 1
33950 case "$hack_shutup_sputaux" in
33953 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
33955 cat >>confdefs.h
<<\_ACEOF
33956 #define SHUTUP_SPUTAUX 1
33962 case "$hack_shutup_stdargcast" in
33965 # Shut up a -Wcast-qual warning from va_start().
33967 cat >>confdefs.h
<<\_ACEOF
33968 #define SHUTUP_STDARG_CAST 1
33974 case "$hack_shutup_in6addr_init_macros" in
33977 cat >>confdefs.h
<<\_ACEOF
33978 #define BROKEN_IN6ADDR_INIT_MACROS 1
33988 BIND9_TOP_BUILDDIR
=`pwd`
33991 BIND9_INCLUDES
=$BIND9_TOP_BUILDDIR/make
/includes
33994 BIND9_MAKE_RULES
=$BIND9_TOP_BUILDDIR/make
/rules
33997 LIBBIND_API
=$srcdir/api
33999 ac_config_files
="$ac_config_files make/rules make/mkdep make/includes Makefile bsd/Makefile doc/Makefile dst/Makefile include/Makefile inet/Makefile irs/Makefile isc/Makefile nameser/Makefile port_after.h port_before.h resolv/Makefile port/Makefile ${PORT_DIR}/Makefile ${PORT_INCLUDE}/Makefile include/isc/platform.h tests/Makefile"
34001 cat >confcache
<<\_ACEOF
34002 # This file is a shell script that caches the results of configure
34003 # tests run on this system so they can be shared between configure
34004 # scripts and configure runs, see configure's option --config-cache.
34005 # It is not useful on other systems. If it contains results you don't
34006 # want to keep, you may remove or edit it.
34008 # config.status only pays attention to the cache file if you give it
34009 # the --recheck option to rerun configure.
34011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34013 # following values.
34017 # The following way of writing the cache mishandles newlines in values,
34018 # but we know of no workaround that is simple, portable, and efficient.
34019 # So, we kill variables containing newlines.
34020 # Ultrix sh set writes to stderr and can't be redirected directly,
34021 # and sets the high bit in the cache file unless we assign to the vars.
34023 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34024 eval ac_val
=\$
$ac_var
34028 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34029 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34032 _ | IFS | as_nl
) ;; #(
34033 *) $as_unset $ac_var ;;
34039 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34040 *${as_nl}ac_space
=\
*)
34041 # `set' does not quote correctly, so add quotes (double-quote
34042 # substitution turns \\\\ into \\, and sed turns \\ into \).
34045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34048 # `set' quotes correctly as required by POSIX, so do not add quotes.
34049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34062 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
34063 if test -w "$cache_file"; then
34064 test "x$cache_file" != "x/dev/null" &&
34065 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34066 echo "$as_me: updating cache $cache_file" >&6;}
34067 cat confcache
>$cache_file
34069 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34070 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34075 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
34076 # Let make expand exec_prefix.
34077 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
34079 DEFS
=-DHAVE_CONFIG_H
34083 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
34084 # 1. Remove the extension, and $U if already installed.
34085 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
34086 ac_i
=`echo "$ac_i" | sed "$ac_script"`
34087 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34088 # will be set to the directory where LIBOBJS objects are built.
34089 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34090 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34092 LIBOBJS
=$ac_libobjs
34094 LTLIBOBJS
=$ac_ltlibobjs
34098 : ${CONFIG_STATUS=./config.status}
34099 ac_clean_files_save
=$ac_clean_files
34100 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
34101 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34102 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34103 cat >$CONFIG_STATUS <<_ACEOF
34105 # Generated by $as_me.
34106 # Run this file to recreate the current configuration.
34107 # Compiler output produced by configure, useful for debugging
34108 # configure, is in config.log if it exists.
34111 ac_cs_recheck=false
34113 SHELL=\${CONFIG_SHELL-$SHELL}
34116 cat >>$CONFIG_STATUS <<\_ACEOF
34117 ## --------------------- ##
34118 ## M4sh Initialization. ##
34119 ## --------------------- ##
34121 # Be more Bourne compatible
34122 DUALCASE
=1; export DUALCASE
# for MKS sh
34123 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
34126 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34127 # is contrary to our usage. Disable this feature.
34128 alias -g '${1+"$@"}'='"$@"'
34129 setopt NO_GLOB_SUBST
34131 case `(set -o) 2>/dev/null` in
34132 *posix
*) set -o posix
;;
34141 # Avoid depending upon Character Ranges.
34142 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
34143 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34144 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
34145 as_cr_digits
='0123456789'
34146 as_cr_alnum
=$as_cr_Letters$as_cr_digits
34148 # The user is always right.
34149 if test "${PATH_SEPARATOR+set}" != set; then
34150 echo "#! /bin/sh" >conf$$.sh
34151 echo "exit 0" >>conf$$.sh
34153 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
34161 # Support unset when possible.
34162 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34170 # We need space, tab and new line, in precisely that order. Quoting is
34171 # there to prevent editors from complaining about space-tab.
34172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34173 # splitting by setting IFS to empty value.)
34178 # Find who we are. Look in the path if we contain no directory separator.
34180 *[\\/]* ) as_myself
=$0 ;;
34181 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34182 for as_dir
in $PATH
34185 test -z "$as_dir" && as_dir
=.
34186 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
34192 # We did not find ourselves, most probably we were run as `sh COMMAND'
34193 # in which case we are not to be found in the path.
34194 if test "x$as_myself" = x
; then
34197 if test ! -f "$as_myself"; then
34198 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34199 { (exit 1); exit 1; }
34202 # Work around bugs in pre-3.0 UWIN ksh.
34203 for as_var
in ENV MAIL MAILPATH
34204 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34212 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34213 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34214 LC_TELEPHONE LC_TIME
34216 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34217 eval $as_var=C
; export $as_var
34219 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34223 # Required to use basename.
34224 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34225 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34231 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34232 as_basename
=basename
34238 # Name of the executable.
34239 as_me
=`$as_basename -- "$0" ||
34240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34241 X"$0" : 'X\(//\)$' \| \
34242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34244 sed '/^.*\/\([^/][^/]*\)\/*$/{
34263 as_lineno_1
=$LINENO
34264 as_lineno_2
=$LINENO
34265 test "x$as_lineno_1" != "x$as_lineno_2" &&
34266 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
34268 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34269 # uniformly replaced by the line number. The first 'sed' inserts a
34270 # line-number line after each line using $LINENO; the second 'sed'
34271 # does the real work. The second script uses 'N' to pair each
34272 # line-number line with the line containing $LINENO, and appends
34273 # trailing '-' during substitution so that $LINENO is not a special
34274 # case at line end.
34275 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34276 # scripts with optimization help from Paolo Bonzini. Blame Lee
34277 # E. McMahon (1931-1989) for sed's syntax. :-)
34289 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34292 ' >$as_me.lineno
&&
34293 chmod +x
"$as_me.lineno" ||
34294 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34295 { (exit 1); exit 1; }; }
34297 # Don't try to exec as it changes $[0], causing all sort of problems
34298 # (the dirname of $[0] is not the place where we might find the
34299 # original and so on. Autoconf is especially sensitive to this).
34300 .
"./$as_me.lineno"
34301 # Exit status is that of the last command.
34306 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34312 ECHO_C
= ECHO_N
= ECHO_T
=
34313 case `echo -n x` in
34315 case `echo 'x\c'` in
34316 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34323 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34324 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34330 rm -f conf$$ conf$$.exe conf$$.
file
34331 if test -d conf$$.dir
; then
34332 rm -f conf$$.dir
/conf$$.
file
34338 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34340 # ... but there are two gotchas:
34341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34343 # In both cases, we have to default to `cp -p'.
34344 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34346 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34351 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34352 rmdir conf$$.dir
2>/dev
/null
34354 if mkdir
-p .
2>/dev
/null
; then
34357 test -d .
/-p && rmdir .
/-p
34361 if test -x / >/dev
/null
2>&1; then
34362 as_test_x
='test -x'
34364 if ls -dL / >/dev
/null
2>&1; then
34371 if test -d "$1"; then
34377 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34378 ???[sx]*):;;*)false;;esac;fi
34382 as_executable_p
=$as_test_x
34384 # Sed expression to map a string onto a valid CPP name.
34385 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34387 # Sed expression to map a string onto a valid variable name.
34388 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34393 # Save the log message, to keep $[0] and so on meaningful, and to
34394 # report actual input values of CONFIG_FILES etc. instead of their
34395 # values after options handling.
34397 This file was extended by $as_me, which was
34398 generated by GNU Autoconf 2.61. Invocation command line was
34400 CONFIG_FILES = $CONFIG_FILES
34401 CONFIG_HEADERS = $CONFIG_HEADERS
34402 CONFIG_LINKS = $CONFIG_LINKS
34403 CONFIG_COMMANDS = $CONFIG_COMMANDS
34406 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34411 cat >>$CONFIG_STATUS <<_ACEOF
34412 # Files that config.status was made for.
34413 config_files="$ac_config_files"
34414 config_headers="$ac_config_headers"
34418 cat >>$CONFIG_STATUS <<\_ACEOF
34420 \`$as_me' instantiates files from templates according to the
34421 current configuration.
34423 Usage: $0 [OPTIONS] [FILE]...
34425 -h, --help print this help, then exit
34426 -V, --version print version number and configuration settings, then exit
34427 -q, --quiet do not print progress messages
34428 -d, --debug don't remove temporary files
34429 --recheck update $as_me by reconfiguring in the same conditions
34430 --file=FILE[:TEMPLATE]
34431 instantiate the configuration file FILE
34432 --header=FILE[:TEMPLATE]
34433 instantiate the configuration header FILE
34435 Configuration files:
34438 Configuration headers:
34441 Report bugs to <bug-autoconf@gnu.org>."
34444 cat >>$CONFIG_STATUS <<_ACEOF
34447 configured by $0, generated by GNU Autoconf 2.61,
34448 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34450 Copyright (C) 2006 Free Software Foundation, Inc.
34451 This config.status script is free software; the Free Software Foundation
34452 gives unlimited permission to copy, distribute and modify it."
34459 cat >>$CONFIG_STATUS <<\_ACEOF
34460 # If no file are specified by the user, then we need to provide default
34461 # value. By we need to know if files were specified by the user.
34467 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34468 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34479 # Handling of the options.
34480 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34482 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34483 echo "$ac_cs_version"; exit ;;
34484 --debug |
--debu |
--deb |
--de |
--d |
-d )
34486 --file |
--fil |
--fi |
--f )
34488 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
34489 ac_need_defaults
=false
;;
34490 --header |
--heade |
--head |
--hea )
34492 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
34493 ac_need_defaults
=false
;;
34495 # Conflict between --help and --header
34496 { echo "$as_me: error: ambiguous option: $1
34497 Try \`$0 --help' for more information." >&2
34498 { (exit 1); exit 1; }; };;
34499 --help |
--hel |
-h )
34500 echo "$ac_cs_usage"; exit ;;
34501 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34502 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34505 # This is an error.
34506 -*) { echo "$as_me: error: unrecognized option: $1
34507 Try \`$0 --help' for more information." >&2
34508 { (exit 1); exit 1; }; } ;;
34510 *) ac_config_targets
="$ac_config_targets $1"
34511 ac_need_defaults
=false
;;
34517 ac_configure_extra_args
=
34519 if $ac_cs_silent; then
34521 ac_configure_extra_args
="$ac_configure_extra_args --silent"
34525 cat >>$CONFIG_STATUS <<_ACEOF
34526 if \$ac_cs_recheck; then
34527 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34528 CONFIG_SHELL=$SHELL
34529 export CONFIG_SHELL
34530 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34534 cat >>$CONFIG_STATUS <<\_ACEOF
34538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34539 ## Running $as_me. ##
34545 cat >>$CONFIG_STATUS <<_ACEOF
34548 cat >>$CONFIG_STATUS <<\_ACEOF
34550 # Handling of arguments.
34551 for ac_config_target
in $ac_config_targets
34553 case $ac_config_target in
34554 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
34555 "make/rules") CONFIG_FILES
="$CONFIG_FILES make/rules" ;;
34556 "make/mkdep") CONFIG_FILES
="$CONFIG_FILES make/mkdep" ;;
34557 "make/includes") CONFIG_FILES
="$CONFIG_FILES make/includes" ;;
34558 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
34559 "bsd/Makefile") CONFIG_FILES
="$CONFIG_FILES bsd/Makefile" ;;
34560 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
34561 "dst/Makefile") CONFIG_FILES
="$CONFIG_FILES dst/Makefile" ;;
34562 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
34563 "inet/Makefile") CONFIG_FILES
="$CONFIG_FILES inet/Makefile" ;;
34564 "irs/Makefile") CONFIG_FILES
="$CONFIG_FILES irs/Makefile" ;;
34565 "isc/Makefile") CONFIG_FILES
="$CONFIG_FILES isc/Makefile" ;;
34566 "nameser/Makefile") CONFIG_FILES
="$CONFIG_FILES nameser/Makefile" ;;
34567 "port_after.h") CONFIG_FILES
="$CONFIG_FILES port_after.h" ;;
34568 "port_before.h") CONFIG_FILES
="$CONFIG_FILES port_before.h" ;;
34569 "resolv/Makefile") CONFIG_FILES
="$CONFIG_FILES resolv/Makefile" ;;
34570 "port/Makefile") CONFIG_FILES
="$CONFIG_FILES port/Makefile" ;;
34571 "${PORT_DIR}/Makefile") CONFIG_FILES
="$CONFIG_FILES ${PORT_DIR}/Makefile" ;;
34572 "${PORT_INCLUDE}/Makefile") CONFIG_FILES
="$CONFIG_FILES ${PORT_INCLUDE}/Makefile" ;;
34573 "include/isc/platform.h") CONFIG_FILES
="$CONFIG_FILES include/isc/platform.h" ;;
34574 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
34576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34578 { (exit 1); exit 1; }; };;
34583 # If the user did not use the arguments to specify the items to instantiate,
34584 # then the envvar interface is used. Set only those that are not.
34585 # We use the long form for the default assignment because of an extremely
34586 # bizarre bug on SunOS 4.1.3.
34587 if $ac_need_defaults; then
34588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34592 # Have a temporary directory for convenience. Make it in the build tree
34593 # simply because there is no reason against having it here, and in addition,
34594 # creating and moving files from /tmp can sometimes cause problems.
34595 # Hook for its removal unless debugging.
34596 # Note that there is a small window in which the directory will not be cleaned:
34597 # after its creation but before its name has been assigned to `$tmp'.
34601 trap 'exit_status=$?
34602 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34604 trap '{ (exit 1); exit 1; }' 1 2 13 15
34606 # Create a (secure) tmp directory for tmp files.
34609 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34610 test -n "$tmp" && test -d "$tmp"
34613 tmp
=.
/conf$$
-$RANDOM
34614 (umask 077 && mkdir
"$tmp")
34617 echo "$me: cannot create a temporary directory in ." >&2
34618 { (exit 1); exit 1; }
34622 # Set up the sed scripts for CONFIG_FILES section.
34625 # No need to generate the scripts if there are no CONFIG_FILES.
34626 # This happens for instance when ./config.status config.h
34627 if test -n "$CONFIG_FILES"; then
34631 # Create sed commands to just substitute file output variables.
34633 # Remaining file output variables are in a fragment that also has non-file
34639 for ac_last_try
in false false false false false
:; do
34640 cat >conf$
$subs.
sed <<_ACEOF
34641 SHELL!$SHELL$ac_delim
34642 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34643 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34644 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34645 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34646 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34647 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34648 exec_prefix!$exec_prefix$ac_delim
34649 prefix!$prefix$ac_delim
34650 program_transform_name!$program_transform_name$ac_delim
34651 bindir!$bindir$ac_delim
34652 sbindir!$sbindir$ac_delim
34653 libexecdir!$libexecdir$ac_delim
34654 datarootdir!$datarootdir$ac_delim
34655 datadir!$datadir$ac_delim
34656 sysconfdir!$sysconfdir$ac_delim
34657 sharedstatedir!$sharedstatedir$ac_delim
34658 localstatedir!$localstatedir$ac_delim
34659 includedir!$includedir$ac_delim
34660 oldincludedir!$oldincludedir$ac_delim
34661 docdir!$docdir$ac_delim
34662 infodir!$infodir$ac_delim
34663 htmldir!$htmldir$ac_delim
34664 dvidir!$dvidir$ac_delim
34665 pdfdir!$pdfdir$ac_delim
34666 psdir!$psdir$ac_delim
34667 libdir!$libdir$ac_delim
34668 localedir!$localedir$ac_delim
34669 mandir!$mandir$ac_delim
34670 DEFS!$DEFS$ac_delim
34671 ECHO_C!$ECHO_C$ac_delim
34672 ECHO_N!$ECHO_N$ac_delim
34673 ECHO_T!$ECHO_T$ac_delim
34674 LIBS!$LIBS$ac_delim
34675 build_alias!$build_alias$ac_delim
34676 host_alias!$host_alias$ac_delim
34677 target_alias!$target_alias$ac_delim
34678 build!$build$ac_delim
34679 build_cpu!$build_cpu$ac_delim
34680 build_vendor!$build_vendor$ac_delim
34681 build_os!$build_os$ac_delim
34682 host!$host$ac_delim
34683 host_cpu!$host_cpu$ac_delim
34684 host_vendor!$host_vendor$ac_delim
34685 host_os!$host_os$ac_delim
34686 SET_MAKE!$SET_MAKE$ac_delim
34688 CFLAGS!$CFLAGS$ac_delim
34689 LDFLAGS!$LDFLAGS$ac_delim
34690 CPPFLAGS!$CPPFLAGS$ac_delim
34691 ac_ct_CC!$ac_ct_CC$ac_delim
34692 EXEEXT!$EXEEXT$ac_delim
34693 OBJEXT!$OBJEXT$ac_delim
34695 GREP!$GREP$ac_delim
34696 EGREP!$EGREP$ac_delim
34697 LN_S!$LN_S$ac_delim
34698 ECHO!$ECHO$ac_delim
34700 RANLIB!$RANLIB$ac_delim
34701 STRIP!$STRIP$ac_delim
34702 DSYMUTIL!$DSYMUTIL$ac_delim
34703 NMEDIT!$NMEDIT$ac_delim
34706 CXXFLAGS!$CXXFLAGS$ac_delim
34707 ac_ct_CXX!$ac_ct_CXX$ac_delim
34708 CXXCPP!$CXXCPP$ac_delim
34710 FFLAGS!$FFLAGS$ac_delim
34711 ac_ct_F77!$ac_ct_F77$ac_delim
34712 LIBTOOL!$LIBTOOL$ac_delim
34713 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34714 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34715 INSTALL_DATA!$INSTALL_DATA$ac_delim
34716 STD_CINCLUDES!$STD_CINCLUDES$ac_delim
34717 STD_CDEFINES!$STD_CDEFINES$ac_delim
34718 STD_CWARNINGS!$STD_CWARNINGS$ac_delim
34719 CCOPT!$CCOPT$ac_delim
34720 ARFLAGS!$ARFLAGS$ac_delim
34722 NROFF!$NROFF$ac_delim
34725 ETAGS!$ETAGS$ac_delim
34726 PERL!$PERL$ac_delim
34727 ISC_PLATFORM_NEEDSYSSELECTH!$ISC_PLATFORM_NEEDSYSSELECTH$ac_delim
34728 WANT_IRS_GR!$WANT_IRS_GR$ac_delim
34731 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
34733 elif $ac_last_try; then
34734 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34735 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34736 { (exit 1); exit 1; }; }
34738 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34742 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34743 if test -n "$ac_eof"; then
34744 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34745 ac_eof
=`expr $ac_eof + 1`
34748 cat >>$CONFIG_STATUS <<_ACEOF
34749 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34751 /^[ ]*@BIND9_INCLUDES@[ ]*$/{
34755 /^[ ]*@BIND9_MAKE_RULES@[ ]*$/{
34756 r $BIND9_MAKE_RULES
34759 /^[ ]*@LIBBIND_API@[ ]*$/{
34765 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34766 s/^/s,@/; s/!/@,|#_!!_#|/
34769 s/'"$ac_delim"'$/,g/; t
34771 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34772 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34773 rm -f conf$
$subs.
sed
34774 cat >>$CONFIG_STATUS <<_ACEOF
34780 for ac_last_try
in false false false false false
:; do
34781 cat >conf$
$subs.
sed <<_ACEOF
34782 WANT_IRS_GR_OBJS!$WANT_IRS_GR_OBJS$ac_delim
34783 WANT_IRS_PW!$WANT_IRS_PW$ac_delim
34784 WANT_IRS_PW_OBJS!$WANT_IRS_PW_OBJS$ac_delim
34785 WANT_IRS_NIS!$WANT_IRS_NIS$ac_delim
34786 WANT_IRS_NIS_OBJS!$WANT_IRS_NIS_OBJS$ac_delim
34787 WANT_IRS_NISGR_OBJS!$WANT_IRS_NISGR_OBJS$ac_delim
34788 WANT_IRS_NISPW_OBJS!$WANT_IRS_NISPW_OBJS$ac_delim
34789 WANT_IRS_DBPW_OBJS!$WANT_IRS_DBPW_OBJS$ac_delim
34790 ALWAYS_DEFINES!$ALWAYS_DEFINES$ac_delim
34791 DO_PTHREADS!$DO_PTHREADS$ac_delim
34792 WANT_IRS_THREADSGR_OBJS!$WANT_IRS_THREADSGR_OBJS$ac_delim
34793 WANT_IRS_THREADSPW_OBJS!$WANT_IRS_THREADSPW_OBJS$ac_delim
34794 WANT_IRS_THREADS_OBJS!$WANT_IRS_THREADS_OBJS$ac_delim
34795 WANT_THREADS_OBJS!$WANT_THREADS_OBJS$ac_delim
34796 USE_IFNAMELINKID!$USE_IFNAMELINKID$ac_delim
34797 ISC_THREAD_DIR!$ISC_THREAD_DIR$ac_delim
34798 DAEMON_OBJS!$DAEMON_OBJS$ac_delim
34799 NEED_DAEMON!$NEED_DAEMON$ac_delim
34800 STRSEP_OBJS!$STRSEP_OBJS$ac_delim
34801 NEED_STRSEP!$NEED_STRSEP$ac_delim
34802 NEED_STRERROR!$NEED_STRERROR$ac_delim
34803 MKDEPCC!$MKDEPCC$ac_delim
34804 MKDEPCFLAGS!$MKDEPCFLAGS$ac_delim
34805 MKDEPPROG!$MKDEPPROG$ac_delim
34806 IRIX_DNSSEC_WARNINGS_HACK!$IRIX_DNSSEC_WARNINGS_HACK$ac_delim
34807 purify_path!$purify_path$ac_delim
34808 PURIFY!$PURIFY$ac_delim
34812 LIBTOOL_MKDEP_SED!$LIBTOOL_MKDEP_SED$ac_delim
34813 LIBTOOL_MODE_COMPILE!$LIBTOOL_MODE_COMPILE$ac_delim
34814 LIBTOOL_MODE_INSTALL!$LIBTOOL_MODE_INSTALL$ac_delim
34815 LIBTOOL_MODE_LINK!$LIBTOOL_MODE_LINK$ac_delim
34816 HAS_INET6_STRUCTS!$HAS_INET6_STRUCTS$ac_delim
34817 ISC_PLATFORM_NEEDNETINETIN6H!$ISC_PLATFORM_NEEDNETINETIN6H$ac_delim
34818 ISC_PLATFORM_NEEDNETINET6IN6H!$ISC_PLATFORM_NEEDNETINET6IN6H$ac_delim
34819 HAS_IN_ADDR6!$HAS_IN_ADDR6$ac_delim
34820 NEED_IN6ADDR_ANY!$NEED_IN6ADDR_ANY$ac_delim
34821 ISC_PLATFORM_HAVEIN6PKTINFO!$ISC_PLATFORM_HAVEIN6PKTINFO$ac_delim
34822 ISC_PLATFORM_FIXIN6ISADDR!$ISC_PLATFORM_FIXIN6ISADDR$ac_delim
34823 ISC_IPV6_H!$ISC_IPV6_H$ac_delim
34824 ISC_IPV6_O!$ISC_IPV6_O$ac_delim
34825 ISC_ISCIPV6_O!$ISC_ISCIPV6_O$ac_delim
34826 ISC_IPV6_C!$ISC_IPV6_C$ac_delim
34827 HAVE_SIN6_SCOPE_ID!$HAVE_SIN6_SCOPE_ID$ac_delim
34828 HAVE_SOCKADDR_STORAGE!$HAVE_SOCKADDR_STORAGE$ac_delim
34829 ISC_PLATFORM_NEEDNTOP!$ISC_PLATFORM_NEEDNTOP$ac_delim
34830 ISC_PLATFORM_NEEDPTON!$ISC_PLATFORM_NEEDPTON$ac_delim
34831 ISC_PLATFORM_NEEDATON!$ISC_PLATFORM_NEEDATON$ac_delim
34832 HAVE_SA_LEN!$HAVE_SA_LEN$ac_delim
34833 HAVE_MINIMUM_IFREQ!$HAVE_MINIMUM_IFREQ$ac_delim
34834 BSD_COMP!$BSD_COMP$ac_delim
34835 SOLARIS_BITTYPES!$SOLARIS_BITTYPES$ac_delim
34836 USE_FIONBIO_IOCTL!$USE_FIONBIO_IOCTL$ac_delim
34837 PORT_NONBLOCK!$PORT_NONBLOCK$ac_delim
34838 PORT_DIR!$PORT_DIR$ac_delim
34839 USE_POLL!$USE_POLL$ac_delim
34840 HAVE_MD5!$HAVE_MD5$ac_delim
34841 SOLARIS2!$SOLARIS2$ac_delim
34842 PORT_INCLUDE!$PORT_INCLUDE$ac_delim
34843 ISC_PLATFORM_MSGHDRFLAVOR!$ISC_PLATFORM_MSGHDRFLAVOR$ac_delim
34844 ISC_PLATFORM_NEEDPORTT!$ISC_PLATFORM_NEEDPORTT$ac_delim
34845 ISC_PLATFORM_NEEDTIMESPEC!$ISC_PLATFORM_NEEDTIMESPEC$ac_delim
34846 ISC_LWRES_ENDHOSTENTINT!$ISC_LWRES_ENDHOSTENTINT$ac_delim
34847 ISC_LWRES_SETNETENTINT!$ISC_LWRES_SETNETENTINT$ac_delim
34848 ISC_LWRES_ENDNETENTINT!$ISC_LWRES_ENDNETENTINT$ac_delim
34849 ISC_LWRES_GETHOSTBYADDRVOID!$ISC_LWRES_GETHOSTBYADDRVOID$ac_delim
34850 ISC_LWRES_NEEDHERRNO!$ISC_LWRES_NEEDHERRNO$ac_delim
34851 ISC_LWRES_GETIPNODEPROTO!$ISC_LWRES_GETIPNODEPROTO$ac_delim
34852 ISC_LWRES_GETADDRINFOPROTO!$ISC_LWRES_GETADDRINFOPROTO$ac_delim
34853 ISC_LWRES_GETNAMEINFOPROTO!$ISC_LWRES_GETNAMEINFOPROTO$ac_delim
34854 NEED_PSELECT!$NEED_PSELECT$ac_delim
34855 NEED_GETTIMEOFDAY!$NEED_GETTIMEOFDAY$ac_delim
34856 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
34857 ISC_PLATFORM_NEEDSTRSEP!$ISC_PLATFORM_NEEDSTRSEP$ac_delim
34858 ISC_PLATFORM_NEEDVSNPRINTF!$ISC_PLATFORM_NEEDVSNPRINTF$ac_delim
34859 ISC_EXTRA_OBJS!$ISC_EXTRA_OBJS$ac_delim
34860 ISC_EXTRA_SRCS!$ISC_EXTRA_SRCS$ac_delim
34861 ISC_PLATFORM_QUADFORMAT!$ISC_PLATFORM_QUADFORMAT$ac_delim
34862 ISC_SOCKLEN_T!$ISC_SOCKLEN_T$ac_delim
34863 GETGROUPLIST_ARGS!$GETGROUPLIST_ARGS$ac_delim
34864 NET_R_ARGS!$NET_R_ARGS$ac_delim
34865 NET_R_BAD!$NET_R_BAD$ac_delim
34866 NET_R_COPY!$NET_R_COPY$ac_delim
34867 NET_R_COPY_ARGS!$NET_R_COPY_ARGS$ac_delim
34868 NET_R_OK!$NET_R_OK$ac_delim
34869 NET_R_SETANSWER!$NET_R_SETANSWER$ac_delim
34870 NET_R_RETURN!$NET_R_RETURN$ac_delim
34871 GETNETBYADDR_ADDR_T!$GETNETBYADDR_ADDR_T$ac_delim
34872 NETENT_DATA!$NETENT_DATA$ac_delim
34873 NET_R_ENT_ARGS!$NET_R_ENT_ARGS$ac_delim
34874 NET_R_SET_RESULT!$NET_R_SET_RESULT$ac_delim
34875 NET_R_SET_RETURN!$NET_R_SET_RETURN$ac_delim
34876 NET_R_END_RESULT!$NET_R_END_RESULT$ac_delim
34877 NET_R_END_RETURN!$NET_R_END_RETURN$ac_delim
34878 GROUP_R_ARGS!$GROUP_R_ARGS$ac_delim
34881 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34883 elif $ac_last_try; then
34884 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34885 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34886 { (exit 1); exit 1; }; }
34888 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34892 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34893 if test -n "$ac_eof"; then
34894 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34895 ac_eof
=`expr $ac_eof + 1`
34898 cat >>$CONFIG_STATUS <<_ACEOF
34899 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34903 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34904 s/^/s,@/; s/!/@,|#_!!_#|/
34907 s/'"$ac_delim"'$/,g/; t
34909 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34910 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34911 rm -f conf$
$subs.
sed
34912 cat >>$CONFIG_STATUS <<_ACEOF
34918 for ac_last_try
in false false false false false
:; do
34919 cat >conf$
$subs.
sed <<_ACEOF
34920 GROUP_R_BAD!$GROUP_R_BAD$ac_delim
34921 GROUP_R_OK!$GROUP_R_OK$ac_delim
34922 GROUP_R_RETURN!$GROUP_R_RETURN$ac_delim
34923 GROUP_R_END_RESULT!$GROUP_R_END_RESULT$ac_delim
34924 GROUP_R_END_RETURN!$GROUP_R_END_RETURN$ac_delim
34925 GROUP_R_ENT_ARGS!$GROUP_R_ENT_ARGS$ac_delim
34926 GROUP_R_SET_RESULT!$GROUP_R_SET_RESULT$ac_delim
34927 GROUP_R_SET_RETURN!$GROUP_R_SET_RETURN$ac_delim
34928 HOST_R_ARGS!$HOST_R_ARGS$ac_delim
34929 HOST_R_BAD!$HOST_R_BAD$ac_delim
34930 HOST_R_COPY!$HOST_R_COPY$ac_delim
34931 HOST_R_COPY_ARGS!$HOST_R_COPY_ARGS$ac_delim
34932 HOST_R_ERRNO!$HOST_R_ERRNO$ac_delim
34933 HOST_R_OK!$HOST_R_OK$ac_delim
34934 HOST_R_RETURN!$HOST_R_RETURN$ac_delim
34935 HOST_R_SETANSWER!$HOST_R_SETANSWER$ac_delim
34936 HOSTENT_DATA!$HOSTENT_DATA$ac_delim
34937 HOST_R_END_RESULT!$HOST_R_END_RESULT$ac_delim
34938 HOST_R_END_RETURN!$HOST_R_END_RETURN$ac_delim
34939 HOST_R_ENT_ARGS!$HOST_R_ENT_ARGS$ac_delim
34940 HOST_R_SET_RESULT!$HOST_R_SET_RESULT$ac_delim
34941 HOST_R_SET_RETURN!$HOST_R_SET_RETURN$ac_delim
34942 SETPWENT_VOID!$SETPWENT_VOID$ac_delim
34943 SETGRENT_VOID!$SETGRENT_VOID$ac_delim
34944 NGR_R_CONST!$NGR_R_CONST$ac_delim
34945 NGR_R_ARGS!$NGR_R_ARGS$ac_delim
34946 NGR_R_BAD!$NGR_R_BAD$ac_delim
34947 NGR_R_COPY!$NGR_R_COPY$ac_delim
34948 NGR_R_COPY_ARGS!$NGR_R_COPY_ARGS$ac_delim
34949 NGR_R_OK!$NGR_R_OK$ac_delim
34950 NGR_R_RETURN!$NGR_R_RETURN$ac_delim
34951 NGR_R_PRIVATE!$NGR_R_PRIVATE$ac_delim
34952 NGR_R_END_RESULT!$NGR_R_END_RESULT$ac_delim
34953 NGR_R_END_RETURN!$NGR_R_END_RETURN$ac_delim
34954 NGR_R_END_ARGS!$NGR_R_END_ARGS$ac_delim
34955 NGR_R_SET_RESULT!$NGR_R_SET_RESULT$ac_delim
34956 NGR_R_SET_RETURN!$NGR_R_SET_RETURN$ac_delim
34957 NGR_R_SET_ARGS!$NGR_R_SET_ARGS$ac_delim
34958 NGR_R_SET_CONST!$NGR_R_SET_CONST$ac_delim
34959 PROTO_R_ARGS!$PROTO_R_ARGS$ac_delim
34960 PROTO_R_BAD!$PROTO_R_BAD$ac_delim
34961 PROTO_R_COPY!$PROTO_R_COPY$ac_delim
34962 PROTO_R_COPY_ARGS!$PROTO_R_COPY_ARGS$ac_delim
34963 PROTO_R_OK!$PROTO_R_OK$ac_delim
34964 PROTO_R_SETANSWER!$PROTO_R_SETANSWER$ac_delim
34965 PROTO_R_RETURN!$PROTO_R_RETURN$ac_delim
34966 PROTOENT_DATA!$PROTOENT_DATA$ac_delim
34967 PROTO_R_END_RESULT!$PROTO_R_END_RESULT$ac_delim
34968 PROTO_R_END_RETURN!$PROTO_R_END_RETURN$ac_delim
34969 PROTO_R_ENT_ARGS!$PROTO_R_ENT_ARGS$ac_delim
34970 PROTO_R_ENT_UNUSED!$PROTO_R_ENT_UNUSED$ac_delim
34971 PROTO_R_SET_RESULT!$PROTO_R_SET_RESULT$ac_delim
34972 PROTO_R_SET_RETURN!$PROTO_R_SET_RETURN$ac_delim
34973 PASS_R_ARGS!$PASS_R_ARGS$ac_delim
34974 PASS_R_BAD!$PASS_R_BAD$ac_delim
34975 PASS_R_COPY!$PASS_R_COPY$ac_delim
34976 PASS_R_COPY_ARGS!$PASS_R_COPY_ARGS$ac_delim
34977 PASS_R_OK!$PASS_R_OK$ac_delim
34978 PASS_R_RETURN!$PASS_R_RETURN$ac_delim
34979 PASS_R_END_RESULT!$PASS_R_END_RESULT$ac_delim
34980 PASS_R_END_RETURN!$PASS_R_END_RETURN$ac_delim
34981 PASS_R_ENT_ARGS!$PASS_R_ENT_ARGS$ac_delim
34982 PASS_R_SET_RESULT!$PASS_R_SET_RESULT$ac_delim
34983 PASS_R_SET_RETURN!$PASS_R_SET_RETURN$ac_delim
34984 SERV_R_ARGS!$SERV_R_ARGS$ac_delim
34985 SERV_R_BAD!$SERV_R_BAD$ac_delim
34986 SERV_R_COPY!$SERV_R_COPY$ac_delim
34987 SERV_R_COPY_ARGS!$SERV_R_COPY_ARGS$ac_delim
34988 SERV_R_OK!$SERV_R_OK$ac_delim
34989 SERV_R_SETANSWER!$SERV_R_SETANSWER$ac_delim
34990 SERV_R_RETURN!$SERV_R_RETURN$ac_delim
34991 SERVENT_DATA!$SERVENT_DATA$ac_delim
34992 SERV_R_END_RESULT!$SERV_R_END_RESULT$ac_delim
34993 SERV_R_END_RETURN!$SERV_R_END_RETURN$ac_delim
34994 SERV_R_ENT_ARGS!$SERV_R_ENT_ARGS$ac_delim
34995 SERV_R_ENT_UNUSED!$SERV_R_ENT_UNUSED$ac_delim
34996 SERV_R_SET_RESULT!$SERV_R_SET_RESULT$ac_delim
34997 SERV_R_SET_RETURN!$SERV_R_SET_RETURN$ac_delim
34998 SETNETGRENT_ARGS!$SETNETGRENT_ARGS$ac_delim
34999 INNETGR_ARGS!$INNETGR_ARGS$ac_delim
35000 BIND9_TOP_BUILDDIR!$BIND9_TOP_BUILDDIR$ac_delim
35001 LIBOBJS!$LIBOBJS$ac_delim
35002 LTLIBOBJS!$LTLIBOBJS$ac_delim
35005 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
35007 elif $ac_last_try; then
35008 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35009 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35010 { (exit 1); exit 1; }; }
35012 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35016 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35017 if test -n "$ac_eof"; then
35018 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35019 ac_eof
=`expr $ac_eof + 1`
35022 cat >>$CONFIG_STATUS <<_ACEOF
35023 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35027 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35028 s/^/s,@/; s/!/@,|#_!!_#|/
35031 s/'"$ac_delim"'$/,g/; t
35033 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35034 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35035 rm -f conf$
$subs.
sed
35036 cat >>$CONFIG_STATUS <<_ACEOF
35043 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35044 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35045 # trailing colons and then remove the whole line if VPATH becomes empty
35046 # (actually we leave an empty line to preserve line numbers).
35047 if test "x$srcdir" = x.
; then
35048 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
35049 s/:*\$(srcdir):*/:/
35050 s/:*\${srcdir}:*/:/
35052 s/^\([^=]*=[ ]*\):*/\1/
35058 cat >>$CONFIG_STATUS <<\_ACEOF
35059 fi # test -n "$CONFIG_FILES"
35062 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
35065 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35067 case $ac_mode$ac_tag in
35069 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35070 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35071 { (exit 1); exit 1; }; };;
35072 :[FH
]-) ac_tag
=-:-;;
35073 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35090 -) ac_f
="$tmp/stdin";;
35091 *) # Look for the file first in the build tree, then in the source tree
35092 # (if the path is not absolute). The absolute path cannot be DOS-style,
35093 # because $ac_f cannot contain `:'.
35097 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35099 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35100 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35101 { (exit 1); exit 1; }; };;
35103 ac_file_inputs
="$ac_file_inputs $ac_f"
35106 # Let's still pretend it is `configure' which instantiates (i.e., don't
35107 # use $as_me), people would be surprised to read:
35108 # /* config.h. Generated by config.status. */
35109 configure_input
="Generated from "`IFS=:
35110 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35111 if test x
"$ac_file" != x-
; then
35112 configure_input
="$ac_file. $configure_input"
35113 { echo "$as_me:$LINENO: creating $ac_file" >&5
35114 echo "$as_me: creating $ac_file" >&6;}
35118 *:-:* |
*:-) cat >"$tmp/stdin";;
35123 ac_dir
=`$as_dirname -- "$ac_file" ||
35124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35125 X"$ac_file" : 'X\(//\)[^/]' \| \
35126 X"$ac_file" : 'X\(//\)$' \| \
35127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35133 /^X\(\/\/\)[^/].*/{
35148 -*) as_dir
=.
/$as_dir;;
35150 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35154 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35155 *) as_qdir
=$as_dir;;
35157 as_dirs
="'$as_qdir' $as_dirs"
35158 as_dir
=`$as_dirname -- "$as_dir" ||
35159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35160 X"$as_dir" : 'X\(//\)[^/]' \| \
35161 X"$as_dir" : 'X\(//\)$' \| \
35162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35168 /^X\(\/\/\)[^/].*/{
35181 test -d "$as_dir" && break
35183 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35184 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35185 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35186 { (exit 1); exit 1; }; }; }
35190 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35192 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35193 # A ".." for each directory in $ac_dir_suffix.
35194 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35195 case $ac_top_builddir_sub in
35196 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35197 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35200 ac_abs_top_builddir
=$ac_pwd
35201 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35202 # for backward compatibility:
35203 ac_top_builddir
=$ac_top_build_prefix
35206 .
) # We are building in place.
35208 ac_top_srcdir
=$ac_top_builddir_sub
35209 ac_abs_top_srcdir
=$ac_pwd ;;
35210 [\\/]* | ?
:[\\/]* ) # Absolute name.
35211 ac_srcdir
=$srcdir$ac_dir_suffix;
35212 ac_top_srcdir
=$srcdir
35213 ac_abs_top_srcdir
=$srcdir ;;
35214 *) # Relative name.
35215 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35216 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35217 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35219 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35229 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35230 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35234 cat >>$CONFIG_STATUS <<\_ACEOF
35235 # If the template does not know about datarootdir, expand it.
35236 # FIXME: This hack should be removed a few years after 2.60.
35237 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35239 case `sed -n '/datarootdir/ {
35248 ' $ac_file_inputs` in
35249 *datarootdir
*) ac_datarootdir_seen
=yes;;
35250 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35251 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35252 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35254 cat >>$CONFIG_STATUS <<_ACEOF
35255 ac_datarootdir_hack='
35256 s&@datadir@&$datadir&g
35257 s&@docdir@&$docdir&g
35258 s&@infodir@&$infodir&g
35259 s&@localedir@&$localedir&g
35260 s&@mandir@&$mandir&g
35261 s&\\\${datarootdir}&$datarootdir&g' ;;
35265 # Neutralize VPATH when `$srcdir' = `.'.
35266 # Shell code in configure.ac might set extrasub.
35267 # FIXME: do we really want to maintain this feature?
35268 cat >>$CONFIG_STATUS <<_ACEOF
35272 cat >>$CONFIG_STATUS <<\_ACEOF
35274 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35275 s
&@configure_input@
&$configure_input&;t t
35276 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35277 s
&@srcdir@
&$ac_srcdir&;t t
35278 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35279 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35280 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35281 s
&@builddir@
&$ac_builddir&;t t
35282 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35283 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35284 s
&@INSTALL@
&$ac_INSTALL&;t t
35285 $ac_datarootdir_hack
35286 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
35288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35289 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
35290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
35291 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35292 which seems to be undefined. Please make sure it is defined." >&5
35293 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35294 which seems to be undefined. Please make sure it is defined." >&2;}
35298 -) cat "$tmp/out"; rm -f "$tmp/out";;
35299 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35308 # Transform confdefs.h into a sed script `conftest.defines', that
35309 # substitutes the proper values into config.h.in to produce config.h.
35310 rm -f conftest.defines conftest.
tail
35311 # First, append a space to every undef/define line, to ease matching.
35312 echo 's/$/ /' >conftest.defines
35313 # Then, protect against being on the right side of a sed subst, or in
35314 # an unquoted here document, in config.status. If some macros were
35315 # called several times there might be several #defines for the same
35316 # symbol, which is useless. But do not sort them, since the last
35317 # AC_DEFINE must be honored.
35318 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
35319 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35320 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35321 # PARAMS is the parameter list in the macro definition--in most cases, it's
35322 # just an empty string.
35323 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35324 ac_dB
='\\)[ (].*,\\1define\\2'
35332 s/^[ ]*#[ ]*define[ ][ ]*//
35337 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35338 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35339 ' >>conftest.defines
35341 # Remove the space that was appended to ease matching.
35342 # Then replace #undef with comments. This is necessary, for
35343 # example, in the case of _POSIX_SOURCE, which is predefined and required
35344 # on some systems where configure will not decide to define it.
35345 # (The regexp can be short, since the line contains either #define or #undef.)
35347 s,^[ #]*u.*,/* & */,' >>conftest.defines
35349 # Break up conftest.defines:
35350 ac_max_sed_lines
=50
35352 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35353 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35354 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35356 ac_in
='$ac_file_inputs'
35357 ac_out
='"$tmp/out1"'
35358 ac_nxt
='"$tmp/out2"'
35362 # Write a here document:
35363 cat >>$CONFIG_STATUS <<_ACEOF
35364 # First, check the format of the line:
35365 cat >"\$tmp/defines.sed" <<\\CEOF
35366 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35367 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35371 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
35373 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35374 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
35375 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
35376 grep . conftest.
tail >/dev
/null ||
break
35377 rm -f conftest.defines
35378 mv conftest.
tail conftest.defines
35380 rm -f conftest.defines conftest.
tail
35382 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35383 cat >>$CONFIG_STATUS <<\_ACEOF
35384 if test x
"$ac_file" != x-
; then
35385 echo "/* $configure_input */" >"$tmp/config.h"
35386 cat "$ac_result" >>"$tmp/config.h"
35387 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
35388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35389 echo "$as_me: $ac_file is unchanged" >&6;}
35392 mv "$tmp/config.h" $ac_file
35395 echo "/* $configure_input */"
35407 { (exit 0); exit 0; }
35409 chmod +x
$CONFIG_STATUS
35410 ac_clean_files
=$ac_clean_files_save
35413 # configure is writing to config.log, and then calls config.status.
35414 # config.status does its own redirection, appending to config.log.
35415 # Unfortunately, on DOS this fails, as config.log is still kept open
35416 # by configure, so config.status won't be able to write to it; its
35417 # output is simply discarded. So we exec the FD to /dev/null,
35418 # effectively closing config.log, so it can be properly (re)opened and
35419 # appended to by config.status. When coming back to configure, we
35420 # need to make the FD available again.
35421 if test "$no_create" != yes; then
35423 ac_config_status_args
=
35424 test "$silent" = yes &&
35425 ac_config_status_args
="$ac_config_status_args --quiet"
35427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35430 # would make configure fail if this is the last instruction.
35431 $ac_cs_success ||
{ (exit 1); exit 1; }
35435 # Tell Emacs to edit this file in shell mode.