Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / configure
blobe0385665e3b37a311ca9a455d34bf19c0c4a77a1
1 #! /bin/sh
2 # Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
3 # Copyright (C) 1996-2003 Internet Software Consortium.
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
9 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 # PERFORMANCE OF THIS SOFTWARE.
17 # Id: configure,v 1.473 2009/11/11 08:47:27 jinmei Exp
19 # Portions Copyright (C) 1996-2001 Nominum, Inc.
21 # Permission to use, copy, modify, and distribute this software for any
22 # purpose with or without fee is hereby granted, provided that the above
23 # copyright notice and this permission notice appear in all copies.
25 # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
26 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
27 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
28 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
29 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
30 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
31 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 # From configure.in Revision: 1.489 .
33 # Guess values for system-dependent variables and create Makefiles.
34 # Generated by GNU Autoconf 2.61.
36 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
37 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
38 # This configure script is free software; the Free Software Foundation
39 # gives unlimited permission to copy, distribute and modify it.
40 ## --------------------- ##
41 ## M4sh Initialization. ##
42 ## --------------------- ##
44 # Be more Bourne compatible
45 DUALCASE=1; export DUALCASE # for MKS sh
46 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47 emulate sh
48 NULLCMD=:
49 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50 # is contrary to our usage. Disable this feature.
51 alias -g '${1+"$@"}'='"$@"'
52 setopt NO_GLOB_SUBST
53 else
54 case `(set -o) 2>/dev/null` in
55 *posix*) set -o posix ;;
56 esac
63 # PATH needs CR
64 # Avoid depending upon Character Ranges.
65 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
67 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
68 as_cr_digits='0123456789'
69 as_cr_alnum=$as_cr_Letters$as_cr_digits
71 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
73 echo "#! /bin/sh" >conf$$.sh
74 echo "exit 0" >>conf$$.sh
75 chmod +x conf$$.sh
76 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
77 PATH_SEPARATOR=';'
78 else
79 PATH_SEPARATOR=:
81 rm -f conf$$.sh
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 as_nl='
99 IFS=" "" $as_nl"
101 # Find who we are. Look in the path if we contain no directory separator.
102 case $0 in
103 *[\\/]* ) as_myself=$0 ;;
104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 for as_dir in $PATH
107 IFS=$as_save_IFS
108 test -z "$as_dir" && as_dir=.
109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 done
111 IFS=$as_save_IFS
114 esac
115 # We did not find ourselves, most probably we were run as `sh COMMAND'
116 # in which case we are not to be found in the path.
117 if test "x$as_myself" = x; then
118 as_myself=$0
120 if test ! -f "$as_myself"; then
121 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122 { (exit 1); exit 1; }
125 # Work around bugs in pre-3.0 UWIN ksh.
126 for as_var in ENV MAIL MAILPATH
127 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
128 done
129 PS1='$ '
130 PS2='> '
131 PS4='+ '
133 # NLS nuisances.
134 for as_var in \
135 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
136 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
137 LC_TELEPHONE LC_TIME
139 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
140 eval $as_var=C; export $as_var
141 else
142 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
144 done
146 # Required to use basename.
147 if expr a : '\(a\)' >/dev/null 2>&1 &&
148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
149 as_expr=expr
150 else
151 as_expr=false
154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
155 as_basename=basename
156 else
157 as_basename=false
161 # Name of the executable.
162 as_me=`$as_basename -- "$0" ||
163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
164 X"$0" : 'X\(//\)$' \| \
165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
166 echo X/"$0" |
167 sed '/^.*\/\([^/][^/]*\)\/*$/{
168 s//\1/
171 /^X\/\(\/\/\)$/{
172 s//\1/
175 /^X\/\(\/\).*/{
176 s//\1/
179 s/.*/./; q'`
181 # CDPATH.
182 $as_unset CDPATH
185 if test "x$CONFIG_SHELL" = x; then
186 if (eval ":") 2>/dev/null; then
187 as_have_required=yes
188 else
189 as_have_required=no
192 if test $as_have_required = yes && (eval ":
193 (as_func_return () {
194 (exit \$1)
196 as_func_success () {
197 as_func_return 0
199 as_func_failure () {
200 as_func_return 1
202 as_func_ret_success () {
203 return 0
205 as_func_ret_failure () {
206 return 1
209 exitcode=0
210 if as_func_success; then
212 else
213 exitcode=1
214 echo as_func_success failed.
217 if as_func_failure; then
218 exitcode=1
219 echo as_func_failure succeeded.
222 if as_func_ret_success; then
224 else
225 exitcode=1
226 echo as_func_ret_success failed.
229 if as_func_ret_failure; then
230 exitcode=1
231 echo as_func_ret_failure succeeded.
234 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
236 else
237 exitcode=1
238 echo positional parameters were not saved.
241 test \$exitcode = 0) || { (exit 1); exit 1; }
244 as_lineno_1=\$LINENO
245 as_lineno_2=\$LINENO
246 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
247 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
248 ") 2> /dev/null; then
250 else
251 as_candidate_shells=
252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
253 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
255 IFS=$as_save_IFS
256 test -z "$as_dir" && as_dir=.
257 case $as_dir in
259 for as_base in sh bash ksh sh5; do
260 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
261 done;;
262 esac
263 done
264 IFS=$as_save_IFS
267 for as_shell in $as_candidate_shells $SHELL; do
268 # Try only shells that exist, to save several forks.
269 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
270 { ("$as_shell") 2> /dev/null <<\_ASEOF
271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
272 emulate sh
273 NULLCMD=:
274 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
275 # is contrary to our usage. Disable this feature.
276 alias -g '${1+"$@"}'='"$@"'
277 setopt NO_GLOB_SUBST
278 else
279 case `(set -o) 2>/dev/null` in
280 *posix*) set -o posix ;;
281 esac
287 _ASEOF
288 }; then
289 CONFIG_SHELL=$as_shell
290 as_have_required=yes
291 if { "$as_shell" 2> /dev/null <<\_ASEOF
292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
293 emulate sh
294 NULLCMD=:
295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
296 # is contrary to our usage. Disable this feature.
297 alias -g '${1+"$@"}'='"$@"'
298 setopt NO_GLOB_SUBST
299 else
300 case `(set -o) 2>/dev/null` in
301 *posix*) set -o posix ;;
302 esac
308 (as_func_return () {
309 (exit $1)
311 as_func_success () {
312 as_func_return 0
314 as_func_failure () {
315 as_func_return 1
317 as_func_ret_success () {
318 return 0
320 as_func_ret_failure () {
321 return 1
324 exitcode=0
325 if as_func_success; then
327 else
328 exitcode=1
329 echo as_func_success failed.
332 if as_func_failure; then
333 exitcode=1
334 echo as_func_failure succeeded.
337 if as_func_ret_success; then
339 else
340 exitcode=1
341 echo as_func_ret_success failed.
344 if as_func_ret_failure; then
345 exitcode=1
346 echo as_func_ret_failure succeeded.
349 if ( set x; as_func_ret_success y && test x = "$1" ); then
351 else
352 exitcode=1
353 echo positional parameters were not saved.
356 test $exitcode = 0) || { (exit 1); exit 1; }
359 as_lineno_1=$LINENO
360 as_lineno_2=$LINENO
361 test "x$as_lineno_1" != "x$as_lineno_2" &&
362 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
364 _ASEOF
365 }; then
366 break
371 done
373 if test "x$CONFIG_SHELL" != x; then
374 for as_var in BASH_ENV ENV
375 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
376 done
377 export CONFIG_SHELL
378 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
382 if test $as_have_required = no; then
383 echo This script requires a shell more modern than all the
384 echo shells that I found on your system. Please install a
385 echo modern shell, or manually run the script under such a
386 echo shell if you do have one.
387 { (exit 1); exit 1; }
397 (eval "as_func_return () {
398 (exit \$1)
400 as_func_success () {
401 as_func_return 0
403 as_func_failure () {
404 as_func_return 1
406 as_func_ret_success () {
407 return 0
409 as_func_ret_failure () {
410 return 1
413 exitcode=0
414 if as_func_success; then
416 else
417 exitcode=1
418 echo as_func_success failed.
421 if as_func_failure; then
422 exitcode=1
423 echo as_func_failure succeeded.
426 if as_func_ret_success; then
428 else
429 exitcode=1
430 echo as_func_ret_success failed.
433 if as_func_ret_failure; then
434 exitcode=1
435 echo as_func_ret_failure succeeded.
438 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
440 else
441 exitcode=1
442 echo positional parameters were not saved.
445 test \$exitcode = 0") || {
446 echo No shell found that supports shell functions.
447 echo Please tell autoconf@gnu.org about your system,
448 echo including any error possibly output before this
449 echo message
454 as_lineno_1=$LINENO
455 as_lineno_2=$LINENO
456 test "x$as_lineno_1" != "x$as_lineno_2" &&
457 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
459 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
460 # uniformly replaced by the line number. The first 'sed' inserts a
461 # line-number line after each line using $LINENO; the second 'sed'
462 # does the real work. The second script uses 'N' to pair each
463 # line-number line with the line containing $LINENO, and appends
464 # trailing '-' during substitution so that $LINENO is not a special
465 # case at line end.
466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
467 # scripts with optimization help from Paolo Bonzini. Blame Lee
468 # E. McMahon (1931-1989) for sed's syntax. :-)
469 sed -n '
471 /[$]LINENO/=
472 ' <$as_myself |
473 sed '
474 s/[$]LINENO.*/&-/
475 t lineno
477 :lineno
479 :loop
480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481 t loop
482 s/-\n.*//
483 ' >$as_me.lineno &&
484 chmod +x "$as_me.lineno" ||
485 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
486 { (exit 1); exit 1; }; }
488 # Don't try to exec as it changes $[0], causing all sort of problems
489 # (the dirname of $[0] is not the place where we might find the
490 # original and so on. Autoconf is especially sensitive to this).
491 . "./$as_me.lineno"
492 # Exit status is that of the last command.
493 exit
497 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
498 as_dirname=dirname
499 else
500 as_dirname=false
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in
505 -n*)
506 case `echo 'x\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 *) ECHO_C='\c';;
509 esac;;
511 ECHO_N='-n';;
512 esac
514 if expr a : '\(a\)' >/dev/null 2>&1 &&
515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
516 as_expr=expr
517 else
518 as_expr=false
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir
528 echo >conf$$.file
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -p'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -p'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -p'
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p=:
547 else
548 test -d ./-p && rmdir ./-p
549 as_mkdir_p=false
552 if test -x / >/dev/null 2>&1; then
553 as_test_x='test -x'
554 else
555 if ls -dL / >/dev/null 2>&1; then
556 as_ls_L_option=L
557 else
558 as_ls_L_option=
560 as_test_x='
561 eval sh -c '\''
562 if test -d "$1"; then
563 test -d "$1/.";
564 else
565 case $1 in
566 -*)set "./$1";;
567 esac;
568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
569 ???[sx]*):;;*)false;;esac;fi
570 '\'' sh
573 as_executable_p=$as_test_x
575 # Sed expression to map a string onto a valid CPP name.
576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
578 # Sed expression to map a string onto a valid variable name.
579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
584 # Check that we are running under the correct shell.
585 SHELL=${CONFIG_SHELL-/bin/sh}
587 case X$ECHO in
588 X*--fallback-echo)
589 # Remove one level of quotation (which was required for Make).
590 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
592 esac
594 echo=${ECHO-echo}
595 if test "X$1" = X--no-reexec; then
596 # Discard the --no-reexec flag, and continue.
597 shift
598 elif test "X$1" = X--fallback-echo; then
599 # Avoid inline document here, it may be left over
601 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
602 # Yippee, $echo works!
604 else
605 # Restart under the correct shell.
606 exec $SHELL "$0" --no-reexec ${1+"$@"}
609 if test "X$1" = X--fallback-echo; then
610 # used as fallback echo
611 shift
612 cat <<EOF
615 exit 0
618 # The HP-UX ksh and POSIX shell print the target directory to stdout
619 # if CDPATH is set.
620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
622 if test -z "$ECHO"; then
623 if test "X${echo_test_string+set}" != Xset; then
624 # find a string as large as possible, as long as the shell can cope with it
625 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
626 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
627 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
628 echo_test_string=`eval $cmd` &&
629 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
630 then
631 break
633 done
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
640 else
641 # The Solaris, AIX, and Digital Unix default echo programs unquote
642 # backslashes. This makes it impossible to quote backslashes using
643 # echo "$something" | sed 's/\\/\\\\/g'
645 # So, first we look for a working echo in the user's PATH.
647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
648 for dir in $PATH /usr/ucb; do
649 IFS="$lt_save_ifs"
650 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
651 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$dir/echo"
655 break
657 done
658 IFS="$lt_save_ifs"
660 if test "X$echo" = Xecho; then
661 # We didn't find a better echo, so look for alternatives.
662 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
663 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 # This shell has a builtin print -r that does the trick.
666 echo='print -r'
667 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
668 test "X$CONFIG_SHELL" != X/bin/ksh; then
669 # If we have ksh, try running configure again with it.
670 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
671 export ORIGINAL_CONFIG_SHELL
672 CONFIG_SHELL=/bin/ksh
673 export CONFIG_SHELL
674 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
675 else
676 # Try using printf.
677 echo='printf %s\n'
678 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
679 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 # Cool, printf works
683 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
688 export CONFIG_SHELL
689 SHELL="$CONFIG_SHELL"
690 export SHELL
691 echo="$CONFIG_SHELL $0 --fallback-echo"
692 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
693 test "X$echo_testing_string" = 'X\t' &&
694 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
695 test "X$echo_testing_string" = "X$echo_test_string"; then
696 echo="$CONFIG_SHELL $0 --fallback-echo"
697 else
698 # maybe with a smaller string...
699 prev=:
701 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
702 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
703 then
704 break
706 prev="$cmd"
707 done
709 if test "$prev" != 'sed 50q "$0"'; then
710 echo_test_string=`eval $prev`
711 export echo_test_string
712 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
713 else
714 # Oops. We lost completely, so just stick with echo.
715 echo=echo
723 # Copy echo and quote the copy suitably for passing to libtool from
724 # the Makefile, instead of quoting the original, which is used later.
725 ECHO=$echo
726 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
727 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
733 tagnames=${tagnames+${tagnames},}CXX
735 tagnames=${tagnames+${tagnames},}F77
737 exec 7<&0 </dev/null 6>&1
739 # Name of the host.
740 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
741 # so uname gets run too.
742 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
745 # Initializations.
747 ac_default_prefix=/usr/local
748 ac_clean_files=
749 ac_config_libobj_dir=.
750 LIBOBJS=
751 cross_compiling=no
752 subdirs=
753 MFLAGS=
754 MAKEFLAGS=
755 SHELL=${CONFIG_SHELL-/bin/sh}
757 # Identity of this package.
758 PACKAGE_NAME=
759 PACKAGE_TARNAME=
760 PACKAGE_VERSION=
761 PACKAGE_STRING=
762 PACKAGE_BUGREPORT=
764 ac_unique_file="lib/dns/name.c"
765 # Factoring default headers for most tests.
766 ac_includes_default="\
767 #include <stdio.h>
768 #ifdef HAVE_SYS_TYPES_H
769 # include <sys/types.h>
770 #endif
771 #ifdef HAVE_SYS_STAT_H
772 # include <sys/stat.h>
773 #endif
774 #ifdef STDC_HEADERS
775 # include <stdlib.h>
776 # include <stddef.h>
777 #else
778 # ifdef HAVE_STDLIB_H
779 # include <stdlib.h>
780 # endif
781 #endif
782 #ifdef HAVE_STRING_H
783 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
784 # include <memory.h>
785 # endif
786 # include <string.h>
787 #endif
788 #ifdef HAVE_STRINGS_H
789 # include <strings.h>
790 #endif
791 #ifdef HAVE_INTTYPES_H
792 # include <inttypes.h>
793 #endif
794 #ifdef HAVE_STDINT_H
795 # include <stdint.h>
796 #endif
797 #ifdef HAVE_UNISTD_H
798 # include <unistd.h>
799 #endif"
801 ac_subst_vars='SHELL
802 PATH_SEPARATOR
803 PACKAGE_NAME
804 PACKAGE_TARNAME
805 PACKAGE_VERSION
806 PACKAGE_STRING
807 PACKAGE_BUGREPORT
808 exec_prefix
809 prefix
810 program_transform_name
811 bindir
812 sbindir
813 libexecdir
814 datarootdir
815 datadir
816 sysconfdir
817 sharedstatedir
818 localstatedir
819 includedir
820 oldincludedir
821 docdir
822 infodir
823 htmldir
824 dvidir
825 pdfdir
826 psdir
827 libdir
828 localedir
829 mandir
830 DEFS
831 ECHO_C
832 ECHO_N
833 ECHO_T
834 LIBS
835 build_alias
836 host_alias
837 target_alias
838 build
839 build_cpu
840 build_vendor
841 build_os
842 host
843 host_cpu
844 host_vendor
845 host_os
846 SET_MAKE
848 CFLAGS
849 LDFLAGS
850 CPPFLAGS
851 ac_ct_CC
852 EXEEXT
853 OBJEXT
855 GREP
856 EGREP
857 LN_S
858 ECHO
860 RANLIB
861 STRIP
862 DSYMUTIL
863 NMEDIT
866 CXXFLAGS
867 ac_ct_CXX
868 CXXCPP
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 INSTALL_PROGRAM
874 INSTALL_SCRIPT
875 INSTALL_DATA
876 STD_CINCLUDES
877 STD_CDEFINES
878 STD_CWARNINGS
879 CCOPT
880 ARFLAGS
882 ETAGS
883 PERL
884 ISC_SOCKADDR_LEN_T
885 ISC_PLATFORM_HAVELONGLONG
886 ISC_PLATFORM_NORETURN_PRE
887 ISC_PLATFORM_NORETURN_POST
888 ISC_PLATFORM_HAVELIFCONF
889 ISC_PLATFORM_HAVEKQUEUE
890 ISC_PLATFORM_HAVEEPOLL
891 ISC_PLATFORM_HAVEDEVPOLL
892 ISC_PLATFORM_NEEDSYSSELECTH
893 LWRES_PLATFORM_NEEDSYSSELECTH
894 USE_OPENSSL
895 DST_OPENSSL_INC
896 ISC_PLATFORM_OPENSSLHASH
897 ISC_OPENSSL_INC
898 USE_PKCS11
899 PKCS11_TOOLS
900 PKCS11_PROVIDER
901 ISC_PLATFORM_HAVEGSSAPI
902 ISC_PLATFORM_GSSAPIHEADER
903 USE_GSSAPI
904 DST_GSSAPI_INC
905 DNS_GSSAPI_LIBS
906 DNS_CRYPTO_LIBS
907 ALWAYS_DEFINES
908 ISC_PLATFORM_USETHREADS
909 ISC_THREAD_DIR
910 MKDEPCC
911 MKDEPCFLAGS
912 MKDEPPROG
913 IRIX_DNSSEC_WARNINGS_HACK
914 purify_path
915 PURIFY
916 ISC_PLATFORM_USEBACKTRACE
917 MKSYMTBL_PROGRAM
918 ALWAYS_MAKE_SYMTABLE
922 LIBTOOL_MKDEP_SED
923 LIBTOOL_MODE_COMPILE
924 LIBTOOL_MODE_INSTALL
925 LIBTOOL_MODE_LINK
926 LIBTOOL_ALLOW_UNDEFINED
927 LIBTOOL_IN_MAIN
928 LIBEXPORT
929 BIND9_CO_RULE
930 export_libdir
931 export_includedir
932 ISC_PLATFORM_HAVEIPV6
933 LWRES_PLATFORM_HAVEIPV6
934 ISC_PLATFORM_NEEDNETINETIN6H
935 LWRES_PLATFORM_NEEDNETINETIN6H
936 ISC_PLATFORM_NEEDNETINET6IN6H
937 LWRES_PLATFORM_NEEDNETINET6IN6H
938 ISC_PLATFORM_HAVEINADDR6
939 LWRES_PLATFORM_HAVEINADDR6
940 ISC_PLATFORM_NEEDIN6ADDRANY
941 LWRES_PLATFORM_NEEDIN6ADDRANY
942 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
943 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
944 ISC_PLATFORM_HAVEIN6PKTINFO
945 ISC_PLATFORM_FIXIN6ISADDR
946 ISC_IPV6_H
947 ISC_IPV6_O
948 ISC_ISCIPV6_O
949 ISC_IPV6_C
950 LWRES_HAVE_SIN6_SCOPE_ID
951 ISC_PLATFORM_HAVESCOPEID
952 ISC_PLATFORM_HAVEIF_LADDRREQ
953 ISC_PLATFORM_HAVEIF_LADDRCONF
954 ISC_PLATFORM_NEEDNTOP
955 ISC_PLATFORM_NEEDPTON
956 ISC_PLATFORM_HAVESALEN
957 LWRES_PLATFORM_HAVESALEN
958 ISC_PLATFORM_MSGHDRFLAVOR
959 ISC_PLATFORM_NEEDPORTT
960 ISC_LWRES_NEEDADDRINFO
961 ISC_IRS_NEEDADDRINFO
962 ISC_LWRES_NEEDRRSETINFO
963 ISC_LWRES_SETHOSTENTINT
964 ISC_LWRES_ENDHOSTENTINT
965 ISC_LWRES_GETNETBYADDRINADDR
966 ISC_LWRES_SETNETENTINT
967 ISC_LWRES_ENDNETENTINT
968 ISC_LWRES_GETHOSTBYADDRVOID
969 ISC_LWRES_NEEDHERRNO
970 ISC_LWRES_GETIPNODEPROTO
971 ISC_LWRES_GETADDRINFOPROTO
972 ISC_LWRES_GETNAMEINFOPROTO
973 ISC_IRS_GETNAMEINFOSOCKLEN
974 ISC_PLATFORM_NEEDSTRSEP
975 ISC_PLATFORM_NEEDMEMMOVE
976 ISC_PLATFORM_NEEDSTRTOUL
977 LWRES_PLATFORM_NEEDSTRTOUL
978 GENRANDOMLIB
979 ISC_PLATFORM_NEEDSTRLCPY
980 ISC_PLATFORM_NEEDSTRLCAT
981 ISC_PLATFORM_NEEDSPRINTF
982 LWRES_PLATFORM_NEEDSPRINTF
983 ISC_PLATFORM_NEEDVSNPRINTF
984 LWRES_PLATFORM_NEEDVSNPRINTF
985 ISC_EXTRA_OBJS
986 ISC_EXTRA_SRCS
987 USE_ISC_SPNEGO
988 DST_EXTRA_OBJS
989 DST_EXTRA_SRCS
990 ISC_PLATFORM_QUADFORMAT
991 LWRES_PLATFORM_QUADFORMAT
992 ISC_PLATFORM_HAVESYSUNH
993 ISC_PLATFORM_RLIMITTYPE
994 ISC_PLATFORM_USEDECLSPEC
995 LWRES_PLATFORM_USEDECLSPEC
996 IRS_PLATFORM_USEDECLSPEC
997 ISC_PLATFORM_BRACEPTHREADONCEINIT
998 ISC_PLATFORM_HAVESTRINGSH
999 ISC_PLATFORM_HAVEIFNAMETOINDEX
1000 ISC_PLATFORM_HAVEXADD
1001 ISC_PLATFORM_HAVEXADDQ
1002 ISC_PLATFORM_HAVECMPXCHG
1003 ISC_PLATFORM_HAVEATOMICSTORE
1004 ISC_PLATFORM_USEGCCASM
1005 ISC_PLATFORM_USEOSFASM
1006 ISC_PLATFORM_USESTDASM
1007 ISC_PLATFORM_USEMACASM
1008 ISC_ARCH_DIR
1009 LATEX
1010 PDFLATEX
1012 XSLTPROC
1013 XMLLINT
1014 DOXYGEN
1015 XSLT_DOCBOOK_STYLE_HTML
1016 XSLT_DOCBOOK_STYLE_XHTML
1017 XSLT_DOCBOOK_STYLE_MAN
1018 XSLT_DOCBOOK_CHUNK_HTML
1019 XSLT_DOCBOOK_CHUNK_XHTML
1020 XSLT_DOCBOOK_CHUNKTOC_HTML
1021 XSLT_DOCBOOK_CHUNKTOC_XHTML
1022 XSLT_DOCBOOK_MAKETOC_HTML
1023 XSLT_DOCBOOK_MAKETOC_XHTML
1024 XSLT_DB2LATEX_STYLE
1025 XSLT_DB2LATEX_ADMONITIONS
1026 IDNLIBS
1027 BIND9_TOP_BUILDDIR
1028 BIND9_ISC_BUILDINCLUDE
1029 BIND9_ISCCC_BUILDINCLUDE
1030 BIND9_ISCCFG_BUILDINCLUDE
1031 BIND9_DNS_BUILDINCLUDE
1032 BIND9_LWRES_BUILDINCLUDE
1033 BIND9_BIND9_BUILDINCLUDE
1034 BIND9_VERSION
1035 BIND9_CONFIGARGS
1036 PG_CONFIG
1037 USE_DLZ
1038 DLZ_DRIVER_INCLUDES
1039 DLZ_DRIVER_LIBS
1040 DLZ_DRIVER_SRCS
1041 DLZ_DRIVER_OBJS
1042 BUILD_CC
1043 BUILD_CFLAGS
1044 BUILD_CPPFLAGS
1045 BUILD_LDFLAGS
1046 BUILD_LIBS
1047 LIBOBJS
1048 LTLIBOBJS'
1049 ac_subst_files='BIND9_MAKE_INCLUDES
1050 BIND9_MAKE_RULES
1051 LIBISC_API
1052 LIBISCCC_API
1053 LIBISCCFG_API
1054 LIBDNS_API
1055 LIBBIND9_API
1056 LIBLWRES_API
1057 LIBIRS_API
1058 DLZ_DRIVER_RULES'
1059 ac_precious_vars='build_alias
1060 host_alias
1061 target_alias
1063 CFLAGS
1064 LDFLAGS
1065 LIBS
1066 CPPFLAGS
1069 CXXFLAGS
1071 CXXCPP
1073 FFLAGS'
1076 # Initialize some variables set by options.
1077 ac_init_help=
1078 ac_init_version=false
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1082 exec_prefix=NONE
1083 no_create=
1084 no_recursion=
1085 prefix=NONE
1086 program_prefix=NONE
1087 program_suffix=NONE
1088 program_transform_name=s,x,x,
1089 silent=
1090 site=
1091 srcdir=
1092 verbose=
1093 x_includes=NONE
1094 x_libraries=NONE
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE}'
1113 infodir='${datarootdir}/info'
1114 htmldir='${docdir}'
1115 dvidir='${docdir}'
1116 pdfdir='${docdir}'
1117 psdir='${docdir}'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1122 ac_prev=
1123 ac_dashdash=
1124 for ac_option
1126 # If the previous option needs an argument, assign it.
1127 if test -n "$ac_prev"; then
1128 eval $ac_prev=\$ac_option
1129 ac_prev=
1130 continue
1133 case $ac_option in
1134 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135 *) ac_optarg=yes ;;
1136 esac
1138 # Accept the important Cygnus configure options, so we can diagnose typos.
1140 case $ac_dashdash$ac_option in
1142 ac_dashdash=yes ;;
1144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1145 ac_prev=bindir ;;
1146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1147 bindir=$ac_optarg ;;
1149 -build | --build | --buil | --bui | --bu)
1150 ac_prev=build_alias ;;
1151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1152 build_alias=$ac_optarg ;;
1154 -cache-file | --cache-file | --cache-fil | --cache-fi \
1155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1156 ac_prev=cache_file ;;
1157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1159 cache_file=$ac_optarg ;;
1161 --config-cache | -C)
1162 cache_file=config.cache ;;
1164 -datadir | --datadir | --datadi | --datad)
1165 ac_prev=datadir ;;
1166 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1167 datadir=$ac_optarg ;;
1169 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1170 | --dataroo | --dataro | --datar)
1171 ac_prev=datarootdir ;;
1172 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1173 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1174 datarootdir=$ac_optarg ;;
1176 -disable-* | --disable-*)
1177 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1183 eval enable_$ac_feature=no ;;
1185 -docdir | --docdir | --docdi | --doc | --do)
1186 ac_prev=docdir ;;
1187 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188 docdir=$ac_optarg ;;
1190 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191 ac_prev=dvidir ;;
1192 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193 dvidir=$ac_optarg ;;
1195 -enable-* | --enable-*)
1196 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1202 eval enable_$ac_feature=\$ac_optarg ;;
1204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1206 | --exec | --exe | --ex)
1207 ac_prev=exec_prefix ;;
1208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1210 | --exec=* | --exe=* | --ex=*)
1211 exec_prefix=$ac_optarg ;;
1213 -gas | --gas | --ga | --g)
1214 # Obsolete; use --with-gas.
1215 with_gas=yes ;;
1217 -help | --help | --hel | --he | -h)
1218 ac_init_help=long ;;
1219 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1220 ac_init_help=recursive ;;
1221 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1222 ac_init_help=short ;;
1224 -host | --host | --hos | --ho)
1225 ac_prev=host_alias ;;
1226 -host=* | --host=* | --hos=* | --ho=*)
1227 host_alias=$ac_optarg ;;
1229 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1230 ac_prev=htmldir ;;
1231 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1232 | --ht=*)
1233 htmldir=$ac_optarg ;;
1235 -includedir | --includedir | --includedi | --included | --include \
1236 | --includ | --inclu | --incl | --inc)
1237 ac_prev=includedir ;;
1238 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1239 | --includ=* | --inclu=* | --incl=* | --inc=*)
1240 includedir=$ac_optarg ;;
1242 -infodir | --infodir | --infodi | --infod | --info | --inf)
1243 ac_prev=infodir ;;
1244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1245 infodir=$ac_optarg ;;
1247 -libdir | --libdir | --libdi | --libd)
1248 ac_prev=libdir ;;
1249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1250 libdir=$ac_optarg ;;
1252 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1253 | --libexe | --libex | --libe)
1254 ac_prev=libexecdir ;;
1255 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1256 | --libexe=* | --libex=* | --libe=*)
1257 libexecdir=$ac_optarg ;;
1259 -localedir | --localedir | --localedi | --localed | --locale)
1260 ac_prev=localedir ;;
1261 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1262 localedir=$ac_optarg ;;
1264 -localstatedir | --localstatedir | --localstatedi | --localstated \
1265 | --localstate | --localstat | --localsta | --localst | --locals)
1266 ac_prev=localstatedir ;;
1267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1268 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1269 localstatedir=$ac_optarg ;;
1271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1272 ac_prev=mandir ;;
1273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1274 mandir=$ac_optarg ;;
1276 -nfp | --nfp | --nf)
1277 # Obsolete; use --without-fp.
1278 with_fp=no ;;
1280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1281 | --no-cr | --no-c | -n)
1282 no_create=yes ;;
1284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1286 no_recursion=yes ;;
1288 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1290 | --oldin | --oldi | --old | --ol | --o)
1291 ac_prev=oldincludedir ;;
1292 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1295 oldincludedir=$ac_optarg ;;
1297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1298 ac_prev=prefix ;;
1299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1300 prefix=$ac_optarg ;;
1302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1303 | --program-pre | --program-pr | --program-p)
1304 ac_prev=program_prefix ;;
1305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1307 program_prefix=$ac_optarg ;;
1309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1310 | --program-suf | --program-su | --program-s)
1311 ac_prev=program_suffix ;;
1312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1314 program_suffix=$ac_optarg ;;
1316 -program-transform-name | --program-transform-name \
1317 | --program-transform-nam | --program-transform-na \
1318 | --program-transform-n | --program-transform- \
1319 | --program-transform | --program-transfor \
1320 | --program-transfo | --program-transf \
1321 | --program-trans | --program-tran \
1322 | --progr-tra | --program-tr | --program-t)
1323 ac_prev=program_transform_name ;;
1324 -program-transform-name=* | --program-transform-name=* \
1325 | --program-transform-nam=* | --program-transform-na=* \
1326 | --program-transform-n=* | --program-transform-=* \
1327 | --program-transform=* | --program-transfor=* \
1328 | --program-transfo=* | --program-transf=* \
1329 | --program-trans=* | --program-tran=* \
1330 | --progr-tra=* | --program-tr=* | --program-t=*)
1331 program_transform_name=$ac_optarg ;;
1333 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1334 ac_prev=pdfdir ;;
1335 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1336 pdfdir=$ac_optarg ;;
1338 -psdir | --psdir | --psdi | --psd | --ps)
1339 ac_prev=psdir ;;
1340 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1341 psdir=$ac_optarg ;;
1343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344 | -silent | --silent | --silen | --sile | --sil)
1345 silent=yes ;;
1347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1348 ac_prev=sbindir ;;
1349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1350 | --sbi=* | --sb=*)
1351 sbindir=$ac_optarg ;;
1353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1355 | --sharedst | --shareds | --shared | --share | --shar \
1356 | --sha | --sh)
1357 ac_prev=sharedstatedir ;;
1358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1361 | --sha=* | --sh=*)
1362 sharedstatedir=$ac_optarg ;;
1364 -site | --site | --sit)
1365 ac_prev=site ;;
1366 -site=* | --site=* | --sit=*)
1367 site=$ac_optarg ;;
1369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1370 ac_prev=srcdir ;;
1371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1372 srcdir=$ac_optarg ;;
1374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1375 | --syscon | --sysco | --sysc | --sys | --sy)
1376 ac_prev=sysconfdir ;;
1377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1379 sysconfdir=$ac_optarg ;;
1381 -target | --target | --targe | --targ | --tar | --ta | --t)
1382 ac_prev=target_alias ;;
1383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1384 target_alias=$ac_optarg ;;
1386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1387 verbose=yes ;;
1389 -version | --version | --versio | --versi | --vers | -V)
1390 ac_init_version=: ;;
1392 -with-* | --with-*)
1393 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 { echo "$as_me: error: invalid package name: $ac_package" >&2
1397 { (exit 1); exit 1; }; }
1398 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399 eval with_$ac_package=\$ac_optarg ;;
1401 -without-* | --without-*)
1402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405 { echo "$as_me: error: invalid package name: $ac_package" >&2
1406 { (exit 1); exit 1; }; }
1407 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1408 eval with_$ac_package=no ;;
1410 --x)
1411 # Obsolete; use --with-x.
1412 with_x=yes ;;
1414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415 | --x-incl | --x-inc | --x-in | --x-i)
1416 ac_prev=x_includes ;;
1417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419 x_includes=$ac_optarg ;;
1421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423 ac_prev=x_libraries ;;
1424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426 x_libraries=$ac_optarg ;;
1428 -*) { echo "$as_me: error: unrecognized option: $ac_option
1429 Try \`$0 --help' for more information." >&2
1430 { (exit 1); exit 1; }; }
1433 *=*)
1434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1438 { (exit 1); exit 1; }; }
1439 eval $ac_envvar=\$ac_optarg
1440 export $ac_envvar ;;
1443 # FIXME: should be removed in autoconf 3.0.
1444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1450 esac
1451 done
1453 if test -n "$ac_prev"; then
1454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455 { echo "$as_me: error: missing argument to $ac_option" >&2
1456 { (exit 1); exit 1; }; }
1459 # Be sure to have absolute directory names.
1460 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1465 eval ac_val=\$$ac_var
1466 case $ac_val in
1467 [\\/$]* | ?:[\\/]* ) continue;;
1468 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469 esac
1470 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1471 { (exit 1); exit 1; }; }
1472 done
1474 # There might be people who depend on the old broken behavior: `$host'
1475 # used to hold the argument of --host etc.
1476 # FIXME: To remove some day.
1477 build=$build_alias
1478 host=$host_alias
1479 target=$target_alias
1481 # FIXME: To remove some day.
1482 if test "x$host_alias" != x; then
1483 if test "x$build_alias" = x; then
1484 cross_compiling=maybe
1485 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1486 If a cross compiler is detected then cross compile mode will be used." >&2
1487 elif test "x$build_alias" != "x$host_alias"; then
1488 cross_compiling=yes
1492 ac_tool_prefix=
1493 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1495 test "$silent" = yes && exec 6>/dev/null
1498 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di=`ls -di .` &&
1500 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1501 { echo "$as_me: error: Working directory cannot be determined" >&2
1502 { (exit 1); exit 1; }; }
1503 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1504 { echo "$as_me: error: pwd does not report name of working directory" >&2
1505 { (exit 1); exit 1; }; }
1508 # Find the source files, if location was not specified.
1509 if test -z "$srcdir"; then
1510 ac_srcdir_defaulted=yes
1511 # Try the directory containing this script, then the parent directory.
1512 ac_confdir=`$as_dirname -- "$0" ||
1513 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1514 X"$0" : 'X\(//\)[^/]' \| \
1515 X"$0" : 'X\(//\)$' \| \
1516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1517 echo X"$0" |
1518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1519 s//\1/
1522 /^X\(\/\/\)[^/].*/{
1523 s//\1/
1526 /^X\(\/\/\)$/{
1527 s//\1/
1530 /^X\(\/\).*/{
1531 s//\1/
1534 s/.*/./; q'`
1535 srcdir=$ac_confdir
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1537 srcdir=..
1539 else
1540 ac_srcdir_defaulted=no
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1544 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1545 { (exit 1); exit 1; }; }
1547 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1548 ac_abs_confdir=`(
1549 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1550 { (exit 1); exit 1; }; }
1551 pwd)`
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1554 srcdir=.
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1559 case $srcdir in
1560 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561 esac
1562 for ac_var in $ac_precious_vars; do
1563 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564 eval ac_env_${ac_var}_value=\$${ac_var}
1565 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1567 done
1570 # Report the --help message.
1572 if test "$ac_init_help" = "long"; then
1573 # Omit some internal or obsolete options to make the list less imposing.
1574 # This message is too long to be a string in the A/UX 3.1 sh.
1575 cat <<_ACEOF
1576 \`configure' configures this package to adapt to many kinds of systems.
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE. See below for descriptions of some of the useful variables.
1583 Defaults for the options are specified in brackets.
1585 Configuration:
1586 -h, --help display this help and exit
1587 --help=short display options specific to this package
1588 --help=recursive display the short help of all the included packages
1589 -V, --version display version information and exit
1590 -q, --quiet, --silent do not print \`checking...' messages
1591 --cache-file=FILE cache test results in FILE [disabled]
1592 -C, --config-cache alias for \`--cache-file=config.cache'
1593 -n, --no-create do not create output files
1594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1596 Installation directories:
1597 --prefix=PREFIX install architecture-independent files in PREFIX
1598 [$ac_default_prefix]
1599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1600 [PREFIX]
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1607 For better control, use the options below.
1609 Fine tuning of the installation directories:
1610 --bindir=DIR user executables [EPREFIX/bin]
1611 --sbindir=DIR system admin executables [EPREFIX/sbin]
1612 --libexecdir=DIR program executables [EPREFIX/libexec]
1613 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1614 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1615 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1616 --libdir=DIR object code libraries [EPREFIX/lib]
1617 --includedir=DIR C header files [PREFIX/include]
1618 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1619 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1620 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1621 --infodir=DIR info documentation [DATAROOTDIR/info]
1622 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1623 --mandir=DIR man documentation [DATAROOTDIR/man]
1624 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1625 --htmldir=DIR html documentation [DOCDIR]
1626 --dvidir=DIR dvi documentation [DOCDIR]
1627 --pdfdir=DIR pdf documentation [DOCDIR]
1628 --psdir=DIR ps documentation [DOCDIR]
1629 _ACEOF
1631 cat <<\_ACEOF
1633 System types:
1634 --build=BUILD configure for building on BUILD [guessed]
1635 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1636 _ACEOF
1639 if test -n "$ac_init_help"; then
1641 cat <<\_ACEOF
1643 Optional Features:
1644 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1645 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=yes]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-libbind deprecated
1652 --enable-kqueue use BSD kqueue when available [default=yes]
1653 --enable-epoll use Linux epoll when available [default=auto]
1654 --enable-devpoll use /dev/poll when available [default=yes]
1655 --enable-openssl-version-check
1656 Check OpenSSL Version [default=yes]
1657 --enable-openssl-hash use OpenSSL for hash functions [default=no]
1658 --enable-threads enable multithreading
1659 --enable-largefile 64-bit file support
1660 --enable-backtrace log stack backtrace on abort [default=yes]
1661 --enable-symtable use internal symbol table for backtrace
1662 [all|minimal(default)|none]
1663 --enable-exportlib build exportable library (GNU make required)
1664 [default=no]
1665 --enable-ipv6 use IPv6 default=autodetect
1666 --enable-getifaddrs Enable the use of getifaddrs() [yes|no].
1667 --disable-isc-spnego use SPNEGO from GSSAPI library
1668 --disable-chroot disable chroot
1669 --disable-linux-caps disable linux capabilities
1670 --enable-atomic enable machine specific atomic operations
1671 [default=autodetect]
1672 --enable-fixed-rrset enable fixed rrset ordering
1673 [default=no]
1674 --enable-filter-aaaa enable filtering of AAAA records over IPv4
1675 [default=no]
1677 Optional Packages:
1678 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1679 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-pic try to use only PIC/non-PIC objects [default=use
1682 both]
1683 --with-tags[=TAGS] include additional configurations [automatic]
1684 --with-openssl=PATH Build with OpenSSL yes|no|path.
1685 (Required for DNSSEC)
1686 --with-pkcs11=PATH Build with PKCS11 support yes|no|path
1687 (PATH is for the PKCS11 provider)
1688 --with-gssapi=PATH Specify path for system-supplied GSSAPI
1689 --with-randomdev=PATH Specify path for random device
1690 --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)
1691 --with-libxml2=PATH Build with libxml2 library yes|no|path
1692 --with-purify=PATH use Rational purify
1693 --with-libtool use GNU libtool
1694 --with-export-libdir=PATH
1695 installation directory for the export library
1696 [EPREFIX/lib/bind9]
1697 --with-export-includedir=PATH
1698 installation directory for the header files of the
1699 export library [PREFIX/include/bind9]
1700 --with-kame=PATH use Kame IPv6 default path /usr/local/v6
1701 --with-docbook-xsl=PATH Specify path for Docbook-XSL stylesheets
1702 --with-idn=MPREFIX enable IDN support using idnkit default PREFIX
1703 --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX
1704 --with-iconv=LIBSPEC specify iconv library default -liconv
1705 --with-idnlib=ARG specify libidnkit
1706 --with-dlz-postgres=PATH Build with Postgres DLZ driver yes|no|path.
1707 (Required to use Postgres with DLZ)
1708 --with-dlz-mysql=PATH Build with MySQL DLZ driver yes|no|path.
1709 (Required to use MySQL with DLZ)
1710 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver yes|no|path.
1711 (Required to use Berkeley DB with DLZ)
1712 --with-dlz-filesystem=PATH Build with filesystem DLZ driver yes|no.
1713 (Required to use file system driver with DLZ)
1714 --with-dlz-ldap=PATH Build with LDAP DLZ driver yes|no|path.
1715 (Required to use LDAP with DLZ)
1716 --with-dlz-odbc=PATH Build with ODBC DLZ driver yes|no|path.
1717 (Required to use ODBC with DLZ)
1718 --with-dlz-stub=PATH Build with stub DLZ driver yes|no.
1719 (Required to use stub driver with DLZ)
1721 Some influential environment variables:
1722 CC C compiler command
1723 CFLAGS C compiler flags
1724 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1725 nonstandard directory <lib dir>
1726 LIBS libraries to pass to the linker, e.g. -l<library>
1727 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1728 you have headers in a nonstandard directory <include dir>
1729 CPP C preprocessor
1730 CXX C++ compiler command
1731 CXXFLAGS C++ compiler flags
1732 CXXCPP C++ preprocessor
1733 F77 Fortran 77 compiler command
1734 FFLAGS Fortran 77 compiler flags
1736 Use these variables to override the choices made by `configure' or to help
1737 it to find libraries and programs with nonstandard names/locations.
1739 _ACEOF
1740 ac_status=$?
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" || continue
1747 ac_builddir=.
1749 case "$ac_dir" in
1750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758 esac ;;
1759 esac
1760 ac_abs_top_builddir=$ac_pwd
1761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762 # for backward compatibility:
1763 ac_top_builddir=$ac_top_build_prefix
1765 case $srcdir in
1766 .) # We are building in place.
1767 ac_srcdir=.
1768 ac_top_srcdir=$ac_top_builddir_sub
1769 ac_abs_top_srcdir=$ac_pwd ;;
1770 [\\/]* | ?:[\\/]* ) # Absolute name.
1771 ac_srcdir=$srcdir$ac_dir_suffix;
1772 ac_top_srcdir=$srcdir
1773 ac_abs_top_srcdir=$srcdir ;;
1774 *) # Relative name.
1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1778 esac
1779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1781 cd "$ac_dir" || { ac_status=$?; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1784 echo &&
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure" --help=recursive
1789 else
1790 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 fi || ac_status=$?
1792 cd "$ac_pwd" || { ac_status=$?; break; }
1793 done
1796 test -n "$ac_init_help" && exit $ac_status
1797 if $ac_init_version; then
1798 cat <<\_ACEOF
1799 configure
1800 generated by GNU Autoconf 2.61
1802 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1803 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1804 This configure script is free software; the Free Software Foundation
1805 gives unlimited permission to copy, distribute and modify it.
1806 _ACEOF
1807 exit
1809 cat >config.log <<_ACEOF
1810 This file contains any messages produced by compilers while
1811 running configure, to aid debugging if configure makes a mistake.
1813 It was created by $as_me, which was
1814 generated by GNU Autoconf 2.61. Invocation command line was
1816 $ $0 $@
1818 _ACEOF
1819 exec 5>>config.log
1821 cat <<_ASUNAME
1822 ## --------- ##
1823 ## Platform. ##
1824 ## --------- ##
1826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1833 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1835 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1836 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1838 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1839 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1840 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1841 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1843 _ASUNAME
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 echo "PATH: $as_dir"
1851 done
1852 IFS=$as_save_IFS
1854 } >&5
1856 cat >&5 <<_ACEOF
1859 ## ----------- ##
1860 ## Core tests. ##
1861 ## ----------- ##
1863 _ACEOF
1866 # Keep a trace of the command line.
1867 # Strip out --no-create and --no-recursion so they do not pile up.
1868 # Strip out --silent because we don't want to record it for future runs.
1869 # Also quote any args containing shell meta-characters.
1870 # Make two passes to allow for proper duplicate-argument suppression.
1871 ac_configure_args=
1872 ac_configure_args0=
1873 ac_configure_args1=
1874 ac_must_keep_next=false
1875 for ac_pass in 1 2
1877 for ac_arg
1879 case $ac_arg in
1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882 | -silent | --silent | --silen | --sile | --sil)
1883 continue ;;
1884 *\'*)
1885 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 esac
1887 case $ac_pass in
1888 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1890 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1891 if test $ac_must_keep_next = true; then
1892 ac_must_keep_next=false # Got value, back to normal.
1893 else
1894 case $ac_arg in
1895 *=* | --config-cache | -C | -disable-* | --disable-* \
1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898 | -with-* | --with-* | -without-* | --without-* | --x)
1899 case "$ac_configure_args0 " in
1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901 esac
1903 -* ) ac_must_keep_next=true ;;
1904 esac
1906 ac_configure_args="$ac_configure_args '$ac_arg'"
1908 esac
1909 done
1910 done
1911 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1912 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1914 # When interrupted or exit'd, cleanup temporary files, and complete
1915 # config.log. We remove comments because anyway the quotes in there
1916 # would cause problems or look ugly.
1917 # WARNING: Use '\'' to represent an apostrophe within the trap.
1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919 trap 'exit_status=$?
1920 # Save into config.log some information that might help in debugging.
1922 echo
1924 cat <<\_ASBOX
1925 ## ---------------- ##
1926 ## Cache variables. ##
1927 ## ---------------- ##
1928 _ASBOX
1929 echo
1930 # The following way of writing the cache mishandles newlines in values,
1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in #(
1935 *${as_nl}*)
1936 case $ac_var in #(
1937 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1938 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1939 esac
1940 case $ac_var in #(
1941 _ | IFS | as_nl) ;; #(
1942 *) $as_unset $ac_var ;;
1943 esac ;;
1944 esac
1945 done
1946 (set) 2>&1 |
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
1949 sed -n \
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956 esac |
1957 sort
1959 echo
1961 cat <<\_ASBOX
1962 ## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##
1965 _ASBOX
1966 echo
1967 for ac_var in $ac_subst_vars
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 echo "$ac_var='\''$ac_val'\''"
1974 done | sort
1975 echo
1977 if test -n "$ac_subst_files"; then
1978 cat <<\_ASBOX
1979 ## ------------------- ##
1980 ## File substitutions. ##
1981 ## ------------------- ##
1982 _ASBOX
1983 echo
1984 for ac_var in $ac_subst_files
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 echo "$ac_var='\''$ac_val'\''"
1991 done | sort
1992 echo
1995 if test -s confdefs.h; then
1996 cat <<\_ASBOX
1997 ## ----------- ##
1998 ## confdefs.h. ##
1999 ## ----------- ##
2000 _ASBOX
2001 echo
2002 cat confdefs.h
2003 echo
2005 test "$ac_signal" != 0 &&
2006 echo "$as_me: caught signal $ac_signal"
2007 echo "$as_me: exit $exit_status"
2008 } >&5
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2011 exit $exit_status
2013 for ac_signal in 1 2 13 15; do
2014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2015 done
2016 ac_signal=0
2018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2019 rm -f -r conftest* confdefs.h
2021 # Predefined preprocessor variables.
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_NAME "$PACKAGE_NAME"
2025 _ACEOF
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030 _ACEOF
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2035 _ACEOF
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_STRING "$PACKAGE_STRING"
2040 _ACEOF
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045 _ACEOF
2048 # Let the site file select an alternate cache file if it wants to.
2049 # Prefer explicitly selected file to automatically selected ones.
2050 if test -n "$CONFIG_SITE"; then
2051 set x "$CONFIG_SITE"
2052 elif test "x$prefix" != xNONE; then
2053 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2054 else
2055 set x "$ac_default_prefix/share/config.site" \
2056 "$ac_default_prefix/etc/config.site"
2058 shift
2059 for ac_site_file
2061 if test -r "$ac_site_file"; then
2062 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2063 echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file"
2067 done
2069 if test -r "$cache_file"; then
2070 # Some versions of bash will fail to source /dev/null (special
2071 # files actually), so we avoid doing that.
2072 if test -f "$cache_file"; then
2073 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2074 echo "$as_me: loading cache $cache_file" >&6;}
2075 case $cache_file in
2076 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077 *) . "./$cache_file";;
2078 esac
2080 else
2081 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2082 echo "$as_me: creating cache $cache_file" >&6;}
2083 >$cache_file
2086 # Check that the precious variables saved in the cache have kept the same
2087 # value.
2088 ac_cache_corrupted=false
2089 for ac_var in $ac_precious_vars; do
2090 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2091 eval ac_new_set=\$ac_env_${ac_var}_set
2092 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2093 eval ac_new_val=\$ac_env_${ac_var}_value
2094 case $ac_old_set,$ac_new_set in
2095 set,)
2096 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2097 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2098 ac_cache_corrupted=: ;;
2099 ,set)
2100 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2101 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,);;
2105 if test "x$ac_old_val" != "x$ac_new_val"; then
2106 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2107 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2108 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2109 echo "$as_me: former value: $ac_old_val" >&2;}
2110 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2111 echo "$as_me: current value: $ac_new_val" >&2;}
2112 ac_cache_corrupted=:
2113 fi;;
2114 esac
2115 # Pass precious variables to config.status.
2116 if test "$ac_new_set" = set; then
2117 case $ac_new_val in
2118 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2119 *) ac_arg=$ac_var=$ac_new_val ;;
2120 esac
2121 case " $ac_configure_args " in
2122 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2123 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2124 esac
2126 done
2127 if $ac_cache_corrupted; then
2128 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2129 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2130 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2131 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2132 { (exit 1); exit 1; }; }
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2160 ac_config_headers="$ac_config_headers config.h"
2163 ac_aux_dir=
2164 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2165 if test -f "$ac_dir/install-sh"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/install-sh -c"
2168 break
2169 elif test -f "$ac_dir/install.sh"; then
2170 ac_aux_dir=$ac_dir
2171 ac_install_sh="$ac_aux_dir/install.sh -c"
2172 break
2173 elif test -f "$ac_dir/shtool"; then
2174 ac_aux_dir=$ac_dir
2175 ac_install_sh="$ac_aux_dir/shtool install -c"
2176 break
2178 done
2179 if test -z "$ac_aux_dir"; then
2180 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2181 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2182 { (exit 1); exit 1; }; }
2185 # These three variables are undocumented and unsupported,
2186 # and are intended to be withdrawn in a future Autoconf release.
2187 # They can cause serious problems if a builder's source tree is in a directory
2188 # whose full name contains unusual characters.
2189 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2190 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2191 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2194 # Make sure we can run config.sub.
2195 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2196 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2197 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2198 { (exit 1); exit 1; }; }
2200 { echo "$as_me:$LINENO: checking build system type" >&5
2201 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_build+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 ac_build_alias=$build_alias
2206 test "x$ac_build_alias" = x &&
2207 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2208 test "x$ac_build_alias" = x &&
2209 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2210 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2211 { (exit 1); exit 1; }; }
2212 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2213 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2214 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2215 { (exit 1); exit 1; }; }
2218 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2219 echo "${ECHO_T}$ac_cv_build" >&6; }
2220 case $ac_cv_build in
2221 *-*-*) ;;
2222 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2223 echo "$as_me: error: invalid value of canonical build" >&2;}
2224 { (exit 1); exit 1; }; };;
2225 esac
2226 build=$ac_cv_build
2227 ac_save_IFS=$IFS; IFS='-'
2228 set x $ac_cv_build
2229 shift
2230 build_cpu=$1
2231 build_vendor=$2
2232 shift; shift
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2235 build_os=$*
2236 IFS=$ac_save_IFS
2237 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2240 { echo "$as_me:$LINENO: checking host system type" >&5
2241 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2242 if test "${ac_cv_host+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test "x$host_alias" = x; then
2246 ac_cv_host=$ac_cv_build
2247 else
2248 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2249 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2250 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2251 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2256 echo "${ECHO_T}$ac_cv_host" >&6; }
2257 case $ac_cv_host in
2258 *-*-*) ;;
2259 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2260 echo "$as_me: error: invalid value of canonical host" >&2;}
2261 { (exit 1); exit 1; }; };;
2262 esac
2263 host=$ac_cv_host
2264 ac_save_IFS=$IFS; IFS='-'
2265 set x $ac_cv_host
2266 shift
2267 host_cpu=$1
2268 host_vendor=$2
2269 shift; shift
2270 # Remember, the first character of IFS is used to create $*,
2271 # except with old shells:
2272 host_os=$*
2273 IFS=$ac_save_IFS
2274 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2278 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2279 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2280 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2281 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 cat >conftest.make <<\_ACEOF
2285 SHELL = /bin/sh
2286 all:
2287 @echo '@@@%%%=$(MAKE)=@@@%%%'
2288 _ACEOF
2289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2290 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2291 *@@@%%%=?*=@@@%%%*)
2292 eval ac_cv_prog_make_${ac_make}_set=yes;;
2294 eval ac_cv_prog_make_${ac_make}_set=no;;
2295 esac
2296 rm -f conftest.make
2298 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2299 { echo "$as_me:$LINENO: result: yes" >&5
2300 echo "${ECHO_T}yes" >&6; }
2301 SET_MAKE=
2302 else
2303 { echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6; }
2305 SET_MAKE="MAKE=${MAKE-make}"
2310 # GNU libtool support
2312 case $build_os in
2313 sunos*)
2314 # Just set the maximum command line length for sunos as it otherwise
2315 # takes a exceptionally long time to work it out. Required for libtool.
2317 lt_cv_sys_max_cmd_len=4096;
2319 esac
2321 # Check whether --enable-shared was given.
2322 if test "${enable_shared+set}" = set; then
2323 enableval=$enable_shared; p=${PACKAGE-default}
2324 case $enableval in
2325 yes) enable_shared=yes ;;
2326 no) enable_shared=no ;;
2328 enable_shared=no
2329 # Look at the argument we got. We use all the common list separators.
2330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2331 for pkg in $enableval; do
2332 IFS="$lt_save_ifs"
2333 if test "X$pkg" = "X$p"; then
2334 enable_shared=yes
2336 done
2337 IFS="$lt_save_ifs"
2339 esac
2340 else
2341 enable_shared=yes
2345 # Check whether --enable-static was given.
2346 if test "${enable_static+set}" = set; then
2347 enableval=$enable_static; p=${PACKAGE-default}
2348 case $enableval in
2349 yes) enable_static=yes ;;
2350 no) enable_static=no ;;
2352 enable_static=no
2353 # Look at the argument we got. We use all the common list separators.
2354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2355 for pkg in $enableval; do
2356 IFS="$lt_save_ifs"
2357 if test "X$pkg" = "X$p"; then
2358 enable_static=yes
2360 done
2361 IFS="$lt_save_ifs"
2363 esac
2364 else
2365 enable_static=yes
2369 # Check whether --enable-fast-install was given.
2370 if test "${enable_fast_install+set}" = set; then
2371 enableval=$enable_fast_install; p=${PACKAGE-default}
2372 case $enableval in
2373 yes) enable_fast_install=yes ;;
2374 no) enable_fast_install=no ;;
2376 enable_fast_install=no
2377 # Look at the argument we got. We use all the common list separators.
2378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2379 for pkg in $enableval; do
2380 IFS="$lt_save_ifs"
2381 if test "X$pkg" = "X$p"; then
2382 enable_fast_install=yes
2384 done
2385 IFS="$lt_save_ifs"
2387 esac
2388 else
2389 enable_fast_install=yes
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2420 done
2421 done
2422 IFS=$as_save_IFS
2426 CC=$ac_cv_prog_CC
2427 if test -n "$CC"; then
2428 { echo "$as_me:$LINENO: result: $CC" >&5
2429 echo "${ECHO_T}$CC" >&6; }
2430 else
2431 { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2437 if test -z "$ac_cv_prog_CC"; then
2438 ac_ct_CC=$CC
2439 # Extract the first word of "gcc", so it can be a program name with args.
2440 set dummy gcc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_ac_ct_CC="gcc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2460 done
2461 done
2462 IFS=$as_save_IFS
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2469 echo "${ECHO_T}$ac_ct_CC" >&6; }
2470 else
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2475 if test "x$ac_ct_CC" = x; then
2476 CC=""
2477 else
2478 case $cross_compiling:$ac_tool_warned in
2479 yes:)
2480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2481 whose name does not start with the host triplet. If you think this
2482 configuration is useful to you, please write to autoconf@gnu.org." >&5
2483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet. If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2486 ac_tool_warned=yes ;;
2487 esac
2488 CC=$ac_ct_CC
2490 else
2491 CC="$ac_cv_prog_CC"
2494 if test -z "$CC"; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_CC="${ac_tool_prefix}cc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2517 done
2518 done
2519 IFS=$as_save_IFS
2523 CC=$ac_cv_prog_CC
2524 if test -n "$CC"; then
2525 { echo "$as_me:$LINENO: result: $CC" >&5
2526 echo "${ECHO_T}$CC" >&6; }
2527 else
2528 { echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6; }
2535 if test -z "$CC"; then
2536 # Extract the first word of "cc", so it can be a program name with args.
2537 set dummy cc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 else
2546 ac_prog_rejected=no
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2555 ac_prog_rejected=yes
2556 continue
2558 ac_cv_prog_CC="cc"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2562 done
2563 done
2564 IFS=$as_save_IFS
2566 if test $ac_prog_rejected = yes; then
2567 # We found a bogon in the path, so make sure we never use it.
2568 set dummy $ac_cv_prog_CC
2569 shift
2570 if test $# != 0; then
2571 # We chose a different compiler from the bogus one.
2572 # However, it has the same basename, so the bogon will be chosen
2573 # first if we set CC to just the basename; use the full file name.
2574 shift
2575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580 CC=$ac_cv_prog_CC
2581 if test -n "$CC"; then
2582 { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2584 else
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2591 if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
2593 for ac_prog in cl.exe
2595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2616 done
2617 done
2618 IFS=$as_save_IFS
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624 { echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6; }
2626 else
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2632 test -n "$CC" && break
2633 done
2635 if test -z "$CC"; then
2636 ac_ct_CC=$CC
2637 for ac_prog in cl.exe
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646 if test -n "$ac_ct_CC"; then
2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_ac_ct_CC="$ac_prog"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2660 done
2661 done
2662 IFS=$as_save_IFS
2666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667 if test -n "$ac_ct_CC"; then
2668 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2669 echo "${ECHO_T}$ac_ct_CC" >&6; }
2670 else
2671 { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2676 test -n "$ac_ct_CC" && break
2677 done
2679 if test "x$ac_ct_CC" = x; then
2680 CC=""
2681 else
2682 case $cross_compiling:$ac_tool_warned in
2683 yes:)
2684 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet. If you think this
2686 configuration is useful to you, please write to autoconf@gnu.org." >&5
2687 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet. If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2690 ac_tool_warned=yes ;;
2691 esac
2692 CC=$ac_ct_CC
2699 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: no acceptable C compiler found in \$PATH
2702 See \`config.log' for more details." >&2;}
2703 { (exit 1); exit 1; }; }
2705 # Provide some information about the compiler.
2706 echo "$as_me:$LINENO: checking for C compiler version" >&5
2707 ac_compiler=`set X $ac_compile; echo $2`
2708 { (ac_try="$ac_compiler --version >&5"
2709 case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compiler --version >&5") 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }
2718 { (ac_try="$ac_compiler -v >&5"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler -v >&5") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (ac_try="$ac_compiler -V >&5"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -V >&5") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2739 cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h. */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2747 main ()
2751 return 0;
2753 _ACEOF
2754 ac_clean_files_save=$ac_clean_files
2755 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2756 # Try to create an executable without -o first, disregard a.out.
2757 # It will help us diagnose broken compilers, and finding out an intuition
2758 # of exeext.
2759 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2760 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2761 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763 # List of possible output files, starting from the most likely.
2764 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2765 # only as a last resort. b.out is created by i960 compilers.
2766 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2768 # The IRIX 6 linker writes into existing files which may not be
2769 # executable, retaining their permissions. Remove them first so a
2770 # subsequent execution test works.
2771 ac_rmfiles=
2772 for ac_file in $ac_files
2774 case $ac_file in
2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2777 esac
2778 done
2779 rm -f $ac_rmfiles
2781 if { (ac_try="$ac_link_default"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_link_default") 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; then
2791 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2792 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2793 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2794 # so that the user can short-circuit this test for compilers unknown to
2795 # Autoconf.
2796 for ac_file in $ac_files ''
2798 test -f "$ac_file" || continue
2799 case $ac_file in
2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2802 [ab].out )
2803 # We found the default executable, but exeext='' is most
2804 # certainly right.
2805 break;;
2806 *.* )
2807 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808 then :; else
2809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2811 # We set ac_cv_exeext here because the later test for it is not
2812 # safe: cross compilers may not add the suffix if given an `-o'
2813 # argument, so we may need to know it at that point already.
2814 # Even if this section looks crufty: it has the advantage of
2815 # actually working.
2816 break;;
2818 break;;
2819 esac
2820 done
2821 test "$ac_cv_exeext" = no && ac_cv_exeext=
2823 else
2824 ac_file=''
2827 { echo "$as_me:$LINENO: result: $ac_file" >&5
2828 echo "${ECHO_T}$ac_file" >&6; }
2829 if test -z "$ac_file"; then
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2834 See \`config.log' for more details." >&5
2835 echo "$as_me: error: C compiler cannot create executables
2836 See \`config.log' for more details." >&2;}
2837 { (exit 77); exit 77; }; }
2840 ac_exeext=$ac_cv_exeext
2842 # Check that the compiler produces executables we can run. If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847 # If not cross compiling, check that we can run a simple program.
2848 if test "$cross_compiling" != yes; then
2849 if { ac_try='./$ac_file'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 cross_compiling=no
2860 else
2861 if test "$cross_compiling" = maybe; then
2862 cross_compiling=yes
2863 else
2864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2874 { echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6; }
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6; }
2886 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888 if { (ac_try="$ac_link"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_link") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe'), while it won't with
2901 # `rm'.
2902 for ac_file in conftest.exe conftest conftest.*; do
2903 test -f "$ac_file" || continue
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 break;;
2908 * ) break;;
2909 esac
2910 done
2911 else
2912 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2919 rm -f conftest$ac_cv_exeext
2920 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923 rm -f conftest.$ac_ext
2924 EXEEXT=$ac_cv_exeext
2925 ac_exeext=$EXEEXT
2926 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928 if test "${ac_cv_objext+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2939 main ()
2943 return 0;
2945 _ACEOF
2946 rm -f conftest.o conftest.obj
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 for ac_file in conftest.o conftest.obj conftest.*; do
2958 test -f "$ac_file" || continue;
2959 case $ac_file in
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2962 break;;
2963 esac
2964 done
2965 else
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 echo "${ECHO_T}$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2981 ac_objext=$OBJEXT
2982 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2995 main ()
2997 #ifndef __GNUC__
2998 choke me
2999 #endif
3002 return 0;
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } && {
3019 test -z "$ac_c_werror_flag" ||
3020 test ! -s conftest.err
3021 } && test -s conftest.$ac_objext; then
3022 ac_compiler_gnu=yes
3023 else
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 ac_compiler_gnu=no
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3034 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036 GCC=`test $ac_compiler_gnu = yes && echo yes`
3037 ac_test_CFLAGS=${CFLAGS+set}
3038 ac_save_CFLAGS=$CFLAGS
3039 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_cc_g+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 ac_save_c_werror_flag=$ac_c_werror_flag
3045 ac_c_werror_flag=yes
3046 ac_cv_prog_cc_g=no
3047 CFLAGS="-g"
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3056 main ()
3060 return 0;
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3080 ac_cv_prog_cc_g=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 CFLAGS=""
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3094 main ()
3098 return 0;
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } && {
3115 test -z "$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.$ac_objext; then
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 ac_c_werror_flag=$ac_save_c_werror_flag
3124 CFLAGS="-g"
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3133 main ()
3137 return 0;
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3157 ac_cv_prog_cc_g=yes
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_c_werror_flag=$ac_save_c_werror_flag
3174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3175 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3176 if test "$ac_test_CFLAGS" = set; then
3177 CFLAGS=$ac_save_CFLAGS
3178 elif test $ac_cv_prog_cc_g = yes; then
3179 if test "$GCC" = yes; then
3180 CFLAGS="-g -O2"
3181 else
3182 CFLAGS="-g"
3184 else
3185 if test "$GCC" = yes; then
3186 CFLAGS="-O2"
3187 else
3188 CFLAGS=
3191 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3192 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_cc_c89+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 ac_cv_prog_cc_c89=no
3197 ac_save_CC=$CC
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204 #include <stdarg.h>
3205 #include <stdio.h>
3206 #include <sys/types.h>
3207 #include <sys/stat.h>
3208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3209 struct buf { int x; };
3210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3211 static char *e (p, i)
3212 char **p;
3213 int i;
3215 return p[i];
3217 static char *f (char * (*g) (char **, int), char **p, ...)
3219 char *s;
3220 va_list v;
3221 va_start (v,p);
3222 s = g (p, va_arg (v,int));
3223 va_end (v);
3224 return s;
3227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3228 function prototypes and stuff, but not '\xHH' hex character constants.
3229 These don't provoke an error unfortunately, instead are silently treated
3230 as 'x'. The following induces an error, until -std is added to get
3231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3232 array size at least. It's necessary to write '\x00'==0 to get something
3233 that's true only with -std. */
3234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3237 inside strings and character constants. */
3238 #define FOO(x) 'x'
3239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3241 int test (int i, double x);
3242 struct s1 {int (*f) (int a);};
3243 struct s2 {int (*f) (double a);};
3244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3245 int argc;
3246 char **argv;
3248 main ()
3250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3252 return 0;
3254 _ACEOF
3255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3258 CC="$ac_save_CC $ac_arg"
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3276 ac_cv_prog_cc_c89=$ac_arg
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3284 rm -f core conftest.err conftest.$ac_objext
3285 test "x$ac_cv_prog_cc_c89" != "xno" && break
3286 done
3287 rm -f conftest.$ac_ext
3288 CC=$ac_save_CC
3291 # AC_CACHE_VAL
3292 case "x$ac_cv_prog_cc_c89" in
3294 { echo "$as_me:$LINENO: result: none needed" >&5
3295 echo "${ECHO_T}none needed" >&6; } ;;
3296 xno)
3297 { echo "$as_me:$LINENO: result: unsupported" >&5
3298 echo "${ECHO_T}unsupported" >&6; } ;;
3300 CC="$CC $ac_cv_prog_cc_c89"
3301 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3302 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3303 esac
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3313 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3314 if test "${lt_cv_path_SED+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 # Loop through the user's path and test for sed and gsed.
3318 # Then use that list of sed's as ones to test for truncation.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for lt_ac_prog in sed gsed; do
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3327 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3329 done
3330 done
3331 done
3332 IFS=$as_save_IFS
3333 lt_ac_max=0
3334 lt_ac_count=0
3335 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3336 # along with /bin/sed that truncates output.
3337 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3338 test ! -f $lt_ac_sed && continue
3339 cat /dev/null > conftest.in
3340 lt_ac_count=0
3341 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3342 # Check for GNU sed and select it if it is found.
3343 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3344 lt_cv_path_SED=$lt_ac_sed
3345 break
3347 while true; do
3348 cat conftest.in conftest.in >conftest.tmp
3349 mv conftest.tmp conftest.in
3350 cp conftest.in conftest.nl
3351 echo >>conftest.nl
3352 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3353 cmp -s conftest.out conftest.nl || break
3354 # 10000 chars as input seems more than enough
3355 test $lt_ac_count -gt 10 && break
3356 lt_ac_count=`expr $lt_ac_count + 1`
3357 if test $lt_ac_count -gt $lt_ac_max; then
3358 lt_ac_max=$lt_ac_count
3359 lt_cv_path_SED=$lt_ac_sed
3361 done
3362 done
3366 SED=$lt_cv_path_SED
3368 { echo "$as_me:$LINENO: result: $SED" >&5
3369 echo "${ECHO_T}$SED" >&6; }
3371 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3372 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3373 if test "${ac_cv_path_GREP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 # Extract the first word of "grep ggrep" to use in msg output
3377 if test -z "$GREP"; then
3378 set dummy grep ggrep; ac_prog_name=$2
3379 if test "${ac_cv_path_GREP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 ac_path_GREP_found=false
3383 # Loop through the user's path and test for each of PROGNAME-LIST
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_prog in grep ggrep; do
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3392 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3393 # Check for GNU ac_path_GREP and select it if it is found.
3394 # Check for GNU $ac_path_GREP
3395 case `"$ac_path_GREP" --version 2>&1` in
3396 *GNU*)
3397 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3399 ac_count=0
3400 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3401 while :
3403 cat "conftest.in" "conftest.in" >"conftest.tmp"
3404 mv "conftest.tmp" "conftest.in"
3405 cp "conftest.in" "conftest.nl"
3406 echo 'GREP' >> "conftest.nl"
3407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3409 ac_count=`expr $ac_count + 1`
3410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3411 # Best one so far, save it but keep looking for a better one
3412 ac_cv_path_GREP="$ac_path_GREP"
3413 ac_path_GREP_max=$ac_count
3415 # 10*(2^10) chars as input seems more than enough
3416 test $ac_count -gt 10 && break
3417 done
3418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3419 esac
3422 $ac_path_GREP_found && break 3
3423 done
3424 done
3426 done
3427 IFS=$as_save_IFS
3432 GREP="$ac_cv_path_GREP"
3433 if test -z "$GREP"; then
3434 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3435 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3436 { (exit 1); exit 1; }; }
3439 else
3440 ac_cv_path_GREP=$GREP
3445 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3446 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3447 GREP="$ac_cv_path_GREP"
3450 { echo "$as_me:$LINENO: checking for egrep" >&5
3451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3452 if test "${ac_cv_path_EGREP+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3456 then ac_cv_path_EGREP="$GREP -E"
3457 else
3458 # Extract the first word of "egrep" to use in msg output
3459 if test -z "$EGREP"; then
3460 set dummy egrep; ac_prog_name=$2
3461 if test "${ac_cv_path_EGREP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 ac_path_EGREP_found=false
3465 # Loop through the user's path and test for each of PROGNAME-LIST
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_prog in egrep; do
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3474 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3475 # Check for GNU ac_path_EGREP and select it if it is found.
3476 # Check for GNU $ac_path_EGREP
3477 case `"$ac_path_EGREP" --version 2>&1` in
3478 *GNU*)
3479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3481 ac_count=0
3482 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3483 while :
3485 cat "conftest.in" "conftest.in" >"conftest.tmp"
3486 mv "conftest.tmp" "conftest.in"
3487 cp "conftest.in" "conftest.nl"
3488 echo 'EGREP' >> "conftest.nl"
3489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3491 ac_count=`expr $ac_count + 1`
3492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3493 # Best one so far, save it but keep looking for a better one
3494 ac_cv_path_EGREP="$ac_path_EGREP"
3495 ac_path_EGREP_max=$ac_count
3497 # 10*(2^10) chars as input seems more than enough
3498 test $ac_count -gt 10 && break
3499 done
3500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3501 esac
3504 $ac_path_EGREP_found && break 3
3505 done
3506 done
3508 done
3509 IFS=$as_save_IFS
3514 EGREP="$ac_cv_path_EGREP"
3515 if test -z "$EGREP"; then
3516 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3517 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3518 { (exit 1); exit 1; }; }
3521 else
3522 ac_cv_path_EGREP=$EGREP
3528 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3529 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3530 EGREP="$ac_cv_path_EGREP"
3534 # Check whether --with-gnu-ld was given.
3535 if test "${with_gnu_ld+set}" = set; then
3536 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3537 else
3538 with_gnu_ld=no
3541 ac_prog=ld
3542 if test "$GCC" = yes; then
3543 # Check if gcc -print-prog-name=ld gives a path.
3544 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3545 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3546 case $host in
3547 *-*-mingw*)
3548 # gcc leaves a trailing carriage return which upsets mingw
3549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3552 esac
3553 case $ac_prog in
3554 # Accept absolute paths.
3555 [\\/]* | ?:[\\/]*)
3556 re_direlt='/[^/][^/]*/\.\./'
3557 # Canonicalize the pathname of ld
3558 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3559 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3560 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3561 done
3562 test -z "$LD" && LD="$ac_prog"
3565 # If it fails, then pretend we aren't using GCC.
3566 ac_prog=ld
3569 # If it is relative, then search for the first ld in PATH.
3570 with_gnu_ld=unknown
3572 esac
3573 elif test "$with_gnu_ld" = yes; then
3574 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3575 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3576 else
3577 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3578 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3580 if test "${lt_cv_path_LD+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 if test -z "$LD"; then
3584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3585 for ac_dir in $PATH; do
3586 IFS="$lt_save_ifs"
3587 test -z "$ac_dir" && ac_dir=.
3588 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3589 lt_cv_path_LD="$ac_dir/$ac_prog"
3590 # Check to see if the program is GNU ld. I'd rather use --version,
3591 # but apparently some variants of GNU ld only accept -v.
3592 # Break only if it was the GNU/non-GNU ld that we prefer.
3593 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3594 *GNU* | *'with BFD'*)
3595 test "$with_gnu_ld" != no && break
3598 test "$with_gnu_ld" != yes && break
3600 esac
3602 done
3603 IFS="$lt_save_ifs"
3604 else
3605 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3609 LD="$lt_cv_path_LD"
3610 if test -n "$LD"; then
3611 { echo "$as_me:$LINENO: result: $LD" >&5
3612 echo "${ECHO_T}$LD" >&6; }
3613 else
3614 { echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6; }
3617 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3618 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3619 { (exit 1); exit 1; }; }
3620 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3621 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3622 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3626 case `$LD -v 2>&1 </dev/null` in
3627 *GNU* | *'with BFD'*)
3628 lt_cv_prog_gnu_ld=yes
3631 lt_cv_prog_gnu_ld=no
3633 esac
3635 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3636 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3637 with_gnu_ld=$lt_cv_prog_gnu_ld
3640 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3641 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3642 if test "${lt_cv_ld_reload_flag+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 lt_cv_ld_reload_flag='-r'
3647 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3648 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3649 reload_flag=$lt_cv_ld_reload_flag
3650 case $reload_flag in
3651 "" | " "*) ;;
3652 *) reload_flag=" $reload_flag" ;;
3653 esac
3654 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3655 case $host_os in
3656 darwin*)
3657 if test "$GCC" = yes; then
3658 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3659 else
3660 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3663 esac
3665 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3666 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3667 if test "${lt_cv_path_NM+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 if test -n "$NM"; then
3671 # Let the user override the test.
3672 lt_cv_path_NM="$NM"
3673 else
3674 lt_nm_to_check="${ac_tool_prefix}nm"
3675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3676 lt_nm_to_check="$lt_nm_to_check nm"
3678 for lt_tmp_nm in $lt_nm_to_check; do
3679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3680 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3681 IFS="$lt_save_ifs"
3682 test -z "$ac_dir" && ac_dir=.
3683 tmp_nm="$ac_dir/$lt_tmp_nm"
3684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3685 # Check to see if the nm accepts a BSD-compat flag.
3686 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3687 # nm: unknown option "B" ignored
3688 # Tru64's nm complains that /dev/null is an invalid object file
3689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3690 */dev/null* | *'Invalid file or object type'*)
3691 lt_cv_path_NM="$tmp_nm -B"
3692 break
3695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3696 */dev/null*)
3697 lt_cv_path_NM="$tmp_nm -p"
3698 break
3701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3702 continue # so that we can try to find one that supports BSD flags
3704 esac
3706 esac
3708 done
3709 IFS="$lt_save_ifs"
3710 done
3711 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3714 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3715 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3716 NM="$lt_cv_path_NM"
3718 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3719 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3720 LN_S=$as_ln_s
3721 if test "$LN_S" = "ln -s"; then
3722 { echo "$as_me:$LINENO: result: yes" >&5
3723 echo "${ECHO_T}yes" >&6; }
3724 else
3725 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3726 echo "${ECHO_T}no, using $LN_S" >&6; }
3729 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3730 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3731 if test "${lt_cv_deplibs_check_method+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 lt_cv_file_magic_cmd='$MAGIC_CMD'
3735 lt_cv_file_magic_test_file=
3736 lt_cv_deplibs_check_method='unknown'
3737 # Need to set the preceding variable on all platforms that support
3738 # interlibrary dependencies.
3739 # 'none' -- dependencies not supported.
3740 # `unknown' -- same as none, but documents that we really don't know.
3741 # 'pass_all' -- all dependencies passed with no checks.
3742 # 'test_compile' -- check by making test program.
3743 # 'file_magic [[regex]]' -- check by looking for files in library path
3744 # which responds to the $file_magic_cmd with a given extended regex.
3745 # If you have `file' or equivalent on your system and you're not sure
3746 # whether `pass_all' will *always* work, you probably want this one.
3748 case $host_os in
3749 aix[4-9]*)
3750 lt_cv_deplibs_check_method=pass_all
3753 beos*)
3754 lt_cv_deplibs_check_method=pass_all
3757 bsdi[45]*)
3758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3759 lt_cv_file_magic_cmd='/usr/bin/file -L'
3760 lt_cv_file_magic_test_file=/shlib/libc.so
3763 cygwin*)
3764 # func_win32_libid is a shell function defined in ltmain.sh
3765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3766 lt_cv_file_magic_cmd='func_win32_libid'
3769 mingw* | pw32*)
3770 # Base MSYS/MinGW do not provide the 'file' command needed by
3771 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3772 # unless we find 'file', for example because we are cross-compiling.
3773 if ( file / ) >/dev/null 2>&1; then
3774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3775 lt_cv_file_magic_cmd='func_win32_libid'
3776 else
3777 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3778 lt_cv_file_magic_cmd='$OBJDUMP -f'
3782 darwin* | rhapsody*)
3783 lt_cv_deplibs_check_method=pass_all
3786 freebsd* | dragonfly*)
3787 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3788 case $host_cpu in
3789 i*86 )
3790 # Not sure whether the presence of OpenBSD here was a mistake.
3791 # Let's accept both of them until this is cleared up.
3792 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3793 lt_cv_file_magic_cmd=/usr/bin/file
3794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3796 esac
3797 else
3798 lt_cv_deplibs_check_method=pass_all
3802 gnu*)
3803 lt_cv_deplibs_check_method=pass_all
3806 hpux10.20* | hpux11*)
3807 lt_cv_file_magic_cmd=/usr/bin/file
3808 case $host_cpu in
3809 ia64*)
3810 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3811 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3813 hppa*64*)
3814 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3815 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3819 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3821 esac
3824 interix[3-9]*)
3825 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3829 irix5* | irix6* | nonstopux*)
3830 case $LD in
3831 *-32|*"-32 ") libmagic=32-bit;;
3832 *-n32|*"-n32 ") libmagic=N32;;
3833 *-64|*"-64 ") libmagic=64-bit;;
3834 *) libmagic=never-match;;
3835 esac
3836 lt_cv_deplibs_check_method=pass_all
3839 # This must be Linux ELF.
3840 linux* | k*bsd*-gnu)
3841 lt_cv_deplibs_check_method=pass_all
3844 netbsd*)
3845 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3847 else
3848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3852 newos6*)
3853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3854 lt_cv_file_magic_cmd=/usr/bin/file
3855 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3858 nto-qnx*)
3859 lt_cv_deplibs_check_method=unknown
3862 openbsd*)
3863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3864 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3865 else
3866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3870 osf3* | osf4* | osf5*)
3871 lt_cv_deplibs_check_method=pass_all
3874 rdos*)
3875 lt_cv_deplibs_check_method=pass_all
3878 solaris*)
3879 lt_cv_deplibs_check_method=pass_all
3882 sysv4 | sysv4.3*)
3883 case $host_vendor in
3884 motorola)
3885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3886 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3888 ncr)
3889 lt_cv_deplibs_check_method=pass_all
3891 sequent)
3892 lt_cv_file_magic_cmd='/bin/file'
3893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3895 sni)
3896 lt_cv_file_magic_cmd='/bin/file'
3897 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3898 lt_cv_file_magic_test_file=/lib/libc.so
3900 siemens)
3901 lt_cv_deplibs_check_method=pass_all
3904 lt_cv_deplibs_check_method=pass_all
3906 esac
3909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3910 lt_cv_deplibs_check_method=pass_all
3912 esac
3915 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3916 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3917 file_magic_cmd=$lt_cv_file_magic_cmd
3918 deplibs_check_method=$lt_cv_deplibs_check_method
3919 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3924 # If no C compiler was specified, use CC.
3925 LTCC=${LTCC-"$CC"}
3927 # If no C compiler flags were specified, use CFLAGS.
3928 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3930 # Allow CC to be a program name with arguments.
3931 compiler=$CC
3934 # Check whether --enable-libtool-lock was given.
3935 if test "${enable_libtool_lock+set}" = set; then
3936 enableval=$enable_libtool_lock;
3939 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3941 # Some flags need to be propagated to the compiler or linker for good
3942 # libtool support.
3943 case $host in
3944 ia64-*-hpux*)
3945 # Find out which ABI we are using.
3946 echo 'int i;' > conftest.$ac_ext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948 (eval $ac_compile) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; then
3952 case `/usr/bin/file conftest.$ac_objext` in
3953 *ELF-32*)
3954 HPUX_IA64_MODE="32"
3956 *ELF-64*)
3957 HPUX_IA64_MODE="64"
3959 esac
3961 rm -rf conftest*
3963 *-*-irix6*)
3964 # Find out which ABI we are using.
3965 echo '#line 3965 "configure"' > conftest.$ac_ext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; then
3971 if test "$lt_cv_prog_gnu_ld" = yes; then
3972 case `/usr/bin/file conftest.$ac_objext` in
3973 *32-bit*)
3974 LD="${LD-ld} -melf32bsmip"
3976 *N32*)
3977 LD="${LD-ld} -melf32bmipn32"
3979 *64-bit*)
3980 LD="${LD-ld} -melf64bmip"
3982 esac
3983 else
3984 case `/usr/bin/file conftest.$ac_objext` in
3985 *32-bit*)
3986 LD="${LD-ld} -32"
3988 *N32*)
3989 LD="${LD-ld} -n32"
3991 *64-bit*)
3992 LD="${LD-ld} -64"
3994 esac
3997 rm -rf conftest*
4000 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4001 s390*-*linux*|sparc*-*linux*)
4002 # Find out which ABI we are using.
4003 echo 'int i;' > conftest.$ac_ext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; then
4009 case `/usr/bin/file conftest.o` in
4010 *32-bit*)
4011 case $host in
4012 x86_64-*kfreebsd*-gnu)
4013 LD="${LD-ld} -m elf_i386_fbsd"
4015 x86_64-*linux*)
4016 LD="${LD-ld} -m elf_i386"
4018 ppc64-*linux*|powerpc64-*linux*)
4019 LD="${LD-ld} -m elf32ppclinux"
4021 s390x-*linux*)
4022 LD="${LD-ld} -m elf_s390"
4024 sparc64-*linux*)
4025 LD="${LD-ld} -m elf32_sparc"
4027 esac
4029 *64-bit*)
4030 case $host in
4031 x86_64-*kfreebsd*-gnu)
4032 LD="${LD-ld} -m elf_x86_64_fbsd"
4034 x86_64-*linux*)
4035 LD="${LD-ld} -m elf_x86_64"
4037 ppc*-*linux*|powerpc*-*linux*)
4038 LD="${LD-ld} -m elf64ppc"
4040 s390*-*linux*)
4041 LD="${LD-ld} -m elf64_s390"
4043 sparc*-*linux*)
4044 LD="${LD-ld} -m elf64_sparc"
4046 esac
4048 esac
4050 rm -rf conftest*
4053 *-*-sco3.2v5*)
4054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4055 SAVE_CFLAGS="$CFLAGS"
4056 CFLAGS="$CFLAGS -belf"
4057 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4058 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4059 if test "${lt_cv_cc_needs_belf+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 ac_ext=c
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4076 main ()
4080 return 0;
4082 _ACEOF
4083 rm -f conftest.$ac_objext conftest$ac_exeext
4084 if { (ac_try="$ac_link"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_link") 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest$ac_exeext &&
4100 $as_test_x conftest$ac_exeext; then
4101 lt_cv_cc_needs_belf=yes
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 lt_cv_cc_needs_belf=no
4109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4110 conftest$ac_exeext conftest.$ac_ext
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4119 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4120 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4121 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4122 CFLAGS="$SAVE_CFLAGS"
4125 sparc*-*solaris*)
4126 # Find out which ABI we are using.
4127 echo 'int i;' > conftest.$ac_ext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129 (eval $ac_compile) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; then
4133 case `/usr/bin/file conftest.o` in
4134 *64-bit*)
4135 case $lt_cv_prog_gnu_ld in
4136 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4138 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4139 LD="${LD-ld} -64"
4142 esac
4144 esac
4146 rm -rf conftest*
4150 esac
4152 need_locks="$enable_libtool_lock"
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4161 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4162 # On Suns, sometimes $CPP names a directory.
4163 if test -n "$CPP" && test -d "$CPP"; then
4164 CPP=
4166 if test -z "$CPP"; then
4167 if test "${ac_cv_prog_CPP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 # Double quotes because CPP needs to be expanded
4171 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4173 ac_preproc_ok=false
4174 for ac_c_preproc_warn_flag in '' yes
4176 # Use a header file that comes with gcc, so configuring glibc
4177 # with a fresh cross-compiler works.
4178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179 # <limits.h> exists even on freestanding compilers.
4180 # On the NeXT, cc -E runs the code through the compiler's parser,
4181 # not just through cpp. "Syntax error" is here to catch this case.
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #ifdef __STDC__
4189 # include <limits.h>
4190 #else
4191 # include <assert.h>
4192 #endif
4193 Syntax error
4194 _ACEOF
4195 if { (ac_try="$ac_cpp conftest.$ac_ext"
4196 case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199 esac
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4202 ac_status=$?
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } >/dev/null && {
4208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4209 test ! -s conftest.err
4210 }; then
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Broken: fails on valid input.
4217 continue
4220 rm -f conftest.err conftest.$ac_ext
4222 # OK, works on sane cases. Now check whether nonexistent headers
4223 # can be detected and how.
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <ac_nonexistent.h>
4231 _ACEOF
4232 if { (ac_try="$ac_cpp conftest.$ac_ext"
4233 case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4247 }; then
4248 # Broken: success on invalid input.
4249 continue
4250 else
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4255 ac_preproc_ok=:
4256 break
4259 rm -f conftest.err conftest.$ac_ext
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4265 break
4268 done
4269 ac_cv_prog_CPP=$CPP
4272 CPP=$ac_cv_prog_CPP
4273 else
4274 ac_cv_prog_CPP=$CPP
4276 { echo "$as_me:$LINENO: result: $CPP" >&5
4277 echo "${ECHO_T}$CPP" >&6; }
4278 ac_preproc_ok=false
4279 for ac_c_preproc_warn_flag in '' yes
4281 # Use a header file that comes with gcc, so configuring glibc
4282 # with a fresh cross-compiler works.
4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 # <limits.h> exists even on freestanding compilers.
4285 # On the NeXT, cc -E runs the code through the compiler's parser,
4286 # not just through cpp. "Syntax error" is here to catch this case.
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #ifdef __STDC__
4294 # include <limits.h>
4295 #else
4296 # include <assert.h>
4297 #endif
4298 Syntax error
4299 _ACEOF
4300 if { (ac_try="$ac_cpp conftest.$ac_ext"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } >/dev/null && {
4313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4314 test ! -s conftest.err
4315 }; then
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 # Broken: fails on valid input.
4322 continue
4325 rm -f conftest.err conftest.$ac_ext
4327 # OK, works on sane cases. Now check whether nonexistent headers
4328 # can be detected and how.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #include <ac_nonexistent.h>
4336 _ACEOF
4337 if { (ac_try="$ac_cpp conftest.$ac_ext"
4338 case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null && {
4350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4352 }; then
4353 # Broken: success on invalid input.
4354 continue
4355 else
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 # Passes both tests.
4360 ac_preproc_ok=:
4361 break
4364 rm -f conftest.err conftest.$ac_ext
4366 done
4367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 rm -f conftest.err conftest.$ac_ext
4369 if $ac_preproc_ok; then
4371 else
4372 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details." >&5
4374 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4375 See \`config.log' for more details." >&2;}
4376 { (exit 1); exit 1; }; }
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4388 if test "${ac_cv_header_stdc+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #include <stdlib.h>
4398 #include <stdarg.h>
4399 #include <string.h>
4400 #include <float.h>
4403 main ()
4407 return 0;
4409 _ACEOF
4410 rm -f conftest.$ac_objext
4411 if { (ac_try="$ac_compile"
4412 case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 ac_cv_header_stdc=yes
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_cv_header_stdc=no
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 if test $ac_cv_header_stdc = yes; then
4438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <string.h>
4447 _ACEOF
4448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449 $EGREP "memchr" >/dev/null 2>&1; then
4451 else
4452 ac_cv_header_stdc=no
4454 rm -f conftest*
4458 if test $ac_cv_header_stdc = yes; then
4459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <stdlib.h>
4468 _ACEOF
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470 $EGREP "free" >/dev/null 2>&1; then
4472 else
4473 ac_cv_header_stdc=no
4475 rm -f conftest*
4479 if test $ac_cv_header_stdc = yes; then
4480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4481 if test "$cross_compiling" = yes; then
4483 else
4484 cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h. */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #include <ctype.h>
4491 #include <stdlib.h>
4492 #if ((' ' & 0x0FF) == 0x020)
4493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4495 #else
4496 # define ISLOWER(c) \
4497 (('a' <= (c) && (c) <= 'i') \
4498 || ('j' <= (c) && (c) <= 'r') \
4499 || ('s' <= (c) && (c) <= 'z'))
4500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4501 #endif
4503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4505 main ()
4507 int i;
4508 for (i = 0; i < 256; i++)
4509 if (XOR (islower (i), ISLOWER (i))
4510 || toupper (i) != TOUPPER (i))
4511 return 2;
4512 return 0;
4514 _ACEOF
4515 rm -f conftest$ac_exeext
4516 if { (ac_try="$ac_link"
4517 case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4520 esac
4521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522 (eval "$ac_link") 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4526 { (case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_try") 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4536 else
4537 echo "$as_me: program exited with status $ac_status" >&5
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 ( exit $ac_status )
4542 ac_cv_header_stdc=no
4544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4550 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4551 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4552 if test $ac_cv_header_stdc = yes; then
4554 cat >>confdefs.h <<\_ACEOF
4555 #define STDC_HEADERS 1
4556 _ACEOF
4560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4571 inttypes.h stdint.h unistd.h
4573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4587 #include <$ac_header>
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (ac_try="$ac_compile"
4591 case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
4606 eval "$as_ac_Header=yes"
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 eval "$as_ac_Header=no"
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_res=`eval echo '${'$as_ac_Header'}'`
4617 { echo "$as_me:$LINENO: result: $ac_res" >&5
4618 echo "${ECHO_T}$ac_res" >&6; }
4619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4620 cat >>confdefs.h <<_ACEOF
4621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4622 _ACEOF
4626 done
4630 for ac_header in dlfcn.h
4632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_res=`eval echo '${'$as_ac_Header'}'`
4640 { echo "$as_me:$LINENO: result: $ac_res" >&5
4641 echo "${ECHO_T}$ac_res" >&6; }
4642 else
4643 # Is the header compilable?
4644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 $ac_includes_default
4653 #include <$ac_header>
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_compile") 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest.$ac_objext; then
4672 ac_header_compiler=yes
4673 else
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 ac_header_compiler=no
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4682 echo "${ECHO_T}$ac_header_compiler" >&6; }
4684 # Is the header present?
4685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h. */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 #include <$ac_header>
4694 _ACEOF
4695 if { (ac_try="$ac_cpp conftest.$ac_ext"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev/null && {
4708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4710 }; then
4711 ac_header_preproc=yes
4712 else
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4716 ac_header_preproc=no
4719 rm -f conftest.err conftest.$ac_ext
4720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4721 echo "${ECHO_T}$ac_header_preproc" >&6; }
4723 # So? What about this header?
4724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4725 yes:no: )
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4730 ac_header_preproc=yes
4732 no:yes:* )
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4747 esac
4748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753 eval "$as_ac_Header=\$ac_header_preproc"
4755 ac_res=`eval echo '${'$as_ac_Header'}'`
4756 { echo "$as_me:$LINENO: result: $ac_res" >&5
4757 echo "${ECHO_T}$ac_res" >&6; }
4760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4761 cat >>confdefs.h <<_ACEOF
4762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4763 _ACEOF
4767 done
4769 ac_ext=cpp
4770 ac_cpp='$CXXCPP $CPPFLAGS'
4771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4774 if test -z "$CXX"; then
4775 if test -n "$CCC"; then
4776 CXX=$CCC
4777 else
4778 if test -n "$ac_tool_prefix"; then
4779 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_prog_CXX+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788 if test -n "$CXX"; then
4789 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4802 done
4803 done
4804 IFS=$as_save_IFS
4808 CXX=$ac_cv_prog_CXX
4809 if test -n "$CXX"; then
4810 { echo "$as_me:$LINENO: result: $CXX" >&5
4811 echo "${ECHO_T}$CXX" >&6; }
4812 else
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4818 test -n "$CXX" && break
4819 done
4821 if test -z "$CXX"; then
4822 ac_ct_CXX=$CXX
4823 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826 set dummy $ac_prog; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 if test -n "$ac_ct_CXX"; then
4833 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_ac_ct_CXX="$ac_prog"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4848 IFS=$as_save_IFS
4852 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4853 if test -n "$ac_ct_CXX"; then
4854 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4855 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4856 else
4857 { echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6; }
4862 test -n "$ac_ct_CXX" && break
4863 done
4865 if test "x$ac_ct_CXX" = x; then
4866 CXX="g++"
4867 else
4868 case $cross_compiling:$ac_tool_warned in
4869 yes:)
4870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4871 whose name does not start with the host triplet. If you think this
4872 configuration is useful to you, please write to autoconf@gnu.org." >&5
4873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4874 whose name does not start with the host triplet. If you think this
4875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4876 ac_tool_warned=yes ;;
4877 esac
4878 CXX=$ac_ct_CXX
4884 # Provide some information about the compiler.
4885 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4886 ac_compiler=`set X $ac_compile; echo $2`
4887 { (ac_try="$ac_compiler --version >&5"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compiler --version >&5") 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4897 { (ac_try="$ac_compiler -v >&5"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compiler -v >&5") 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }
4907 { (ac_try="$ac_compiler -V >&5"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_compiler -V >&5") 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }
4918 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4919 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4920 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4931 main ()
4933 #ifndef __GNUC__
4934 choke me
4935 #endif
4938 return 0;
4940 _ACEOF
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_cxx_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 ac_compiler_gnu=yes
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 ac_compiler_gnu=no
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4970 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4971 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4972 GXX=`test $ac_compiler_gnu = yes && echo yes`
4973 ac_test_CXXFLAGS=${CXXFLAGS+set}
4974 ac_save_CXXFLAGS=$CXXFLAGS
4975 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4976 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_cxx_g+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4981 ac_cxx_werror_flag=yes
4982 ac_cv_prog_cxx_g=no
4983 CXXFLAGS="-g"
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4992 main ()
4996 return 0;
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5001 case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_cxx_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5016 ac_cv_prog_cxx_g=yes
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 CXXFLAGS=""
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5030 main ()
5034 return 0;
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_compile") 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_cxx_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest.$ac_objext; then
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5060 CXXFLAGS="-g"
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5069 main ()
5073 return 0;
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (ac_try="$ac_compile"
5078 case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_compile") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_cxx_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest.$ac_objext; then
5093 ac_cv_prog_cxx_g=yes
5094 else
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5110 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5111 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5112 if test "$ac_test_CXXFLAGS" = set; then
5113 CXXFLAGS=$ac_save_CXXFLAGS
5114 elif test $ac_cv_prog_cxx_g = yes; then
5115 if test "$GXX" = yes; then
5116 CXXFLAGS="-g -O2"
5117 else
5118 CXXFLAGS="-g"
5120 else
5121 if test "$GXX" = yes; then
5122 CXXFLAGS="-O2"
5123 else
5124 CXXFLAGS=
5127 ac_ext=cpp
5128 ac_cpp='$CXXCPP $CPPFLAGS'
5129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5136 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5137 (test "X$CXX" != "Xg++"))) ; then
5138 ac_ext=cpp
5139 ac_cpp='$CXXCPP $CPPFLAGS'
5140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5144 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5145 if test -z "$CXXCPP"; then
5146 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 # Double quotes because CXXCPP needs to be expanded
5150 for CXXCPP in "$CXX -E" "/lib/cpp"
5152 ac_preproc_ok=false
5153 for ac_cxx_preproc_warn_flag in '' yes
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h. */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 #ifdef __STDC__
5168 # include <limits.h>
5169 #else
5170 # include <assert.h>
5171 #endif
5172 Syntax error
5173 _ACEOF
5174 if { (ac_try="$ac_cpp conftest.$ac_ext"
5175 case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null && {
5187 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5188 test ! -s conftest.err
5189 }; then
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 # Broken: fails on valid input.
5196 continue
5199 rm -f conftest.err conftest.$ac_ext
5201 # OK, works on sane cases. Now check whether nonexistent headers
5202 # can be detected and how.
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <ac_nonexistent.h>
5210 _ACEOF
5211 if { (ac_try="$ac_cpp conftest.$ac_ext"
5212 case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215 esac
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null && {
5224 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5225 test ! -s conftest.err
5226 }; then
5227 # Broken: success on invalid input.
5228 continue
5229 else
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 # Passes both tests.
5234 ac_preproc_ok=:
5235 break
5238 rm -f conftest.err conftest.$ac_ext
5240 done
5241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5242 rm -f conftest.err conftest.$ac_ext
5243 if $ac_preproc_ok; then
5244 break
5247 done
5248 ac_cv_prog_CXXCPP=$CXXCPP
5251 CXXCPP=$ac_cv_prog_CXXCPP
5252 else
5253 ac_cv_prog_CXXCPP=$CXXCPP
5255 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5256 echo "${ECHO_T}$CXXCPP" >&6; }
5257 ac_preproc_ok=false
5258 for ac_cxx_preproc_warn_flag in '' yes
5260 # Use a header file that comes with gcc, so configuring glibc
5261 # with a fresh cross-compiler works.
5262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5263 # <limits.h> exists even on freestanding compilers.
5264 # On the NeXT, cc -E runs the code through the compiler's parser,
5265 # not just through cpp. "Syntax error" is here to catch this case.
5266 cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h. */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #ifdef __STDC__
5273 # include <limits.h>
5274 #else
5275 # include <assert.h>
5276 #endif
5277 Syntax error
5278 _ACEOF
5279 if { (ac_try="$ac_cpp conftest.$ac_ext"
5280 case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } >/dev/null && {
5292 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5293 test ! -s conftest.err
5294 }; then
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 # Broken: fails on valid input.
5301 continue
5304 rm -f conftest.err conftest.$ac_ext
5306 # OK, works on sane cases. Now check whether nonexistent headers
5307 # can be detected and how.
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <ac_nonexistent.h>
5315 _ACEOF
5316 if { (ac_try="$ac_cpp conftest.$ac_ext"
5317 case "(($ac_try" in
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5320 esac
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } >/dev/null && {
5329 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5330 test ! -s conftest.err
5331 }; then
5332 # Broken: success on invalid input.
5333 continue
5334 else
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5338 # Passes both tests.
5339 ac_preproc_ok=:
5340 break
5343 rm -f conftest.err conftest.$ac_ext
5345 done
5346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5347 rm -f conftest.err conftest.$ac_ext
5348 if $ac_preproc_ok; then
5350 else
5351 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5352 See \`config.log' for more details." >&5
5353 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5354 See \`config.log' for more details." >&2;}
5355 { (exit 1); exit 1; }; }
5358 ac_ext=cpp
5359 ac_cpp='$CXXCPP $CPPFLAGS'
5360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5367 ac_ext=f
5368 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5369 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5371 if test -n "$ac_tool_prefix"; then
5372 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_prog_F77+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 if test -n "$F77"; then
5382 ac_cv_prog_F77="$F77" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5395 done
5396 done
5397 IFS=$as_save_IFS
5401 F77=$ac_cv_prog_F77
5402 if test -n "$F77"; then
5403 { echo "$as_me:$LINENO: result: $F77" >&5
5404 echo "${ECHO_T}$F77" >&6; }
5405 else
5406 { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5411 test -n "$F77" && break
5412 done
5414 if test -z "$F77"; then
5415 ac_ct_F77=$F77
5416 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5418 # Extract the first word of "$ac_prog", so it can be a program name with args.
5419 set dummy $ac_prog; ac_word=$2
5420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 if test -n "$ac_ct_F77"; then
5426 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_prog_ac_ct_F77="$ac_prog"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5445 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5446 if test -n "$ac_ct_F77"; then
5447 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5448 echo "${ECHO_T}$ac_ct_F77" >&6; }
5449 else
5450 { echo "$as_me:$LINENO: result: no" >&5
5451 echo "${ECHO_T}no" >&6; }
5455 test -n "$ac_ct_F77" && break
5456 done
5458 if test "x$ac_ct_F77" = x; then
5459 F77=""
5460 else
5461 case $cross_compiling:$ac_tool_warned in
5462 yes:)
5463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5464 whose name does not start with the host triplet. If you think this
5465 configuration is useful to you, please write to autoconf@gnu.org." >&5
5466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5467 whose name does not start with the host triplet. If you think this
5468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471 F77=$ac_ct_F77
5476 # Provide some information about the compiler.
5477 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5478 ac_compiler=`set X $ac_compile; echo $2`
5479 { (ac_try="$ac_compiler --version >&5"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compiler --version >&5") 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }
5489 { (ac_try="$ac_compiler -v >&5"
5490 case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compiler -v >&5") 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }
5499 { (ac_try="$ac_compiler -V >&5"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compiler -V >&5") 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }
5509 rm -f a.out
5511 # If we don't use `.F' as extension, the preprocessor is not run on the
5512 # input file. (Note that this only needs to work for GNU compilers.)
5513 ac_save_ext=$ac_ext
5514 ac_ext=F
5515 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5516 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5517 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520 cat >conftest.$ac_ext <<_ACEOF
5521 program main
5522 #ifndef __GNUC__
5523 choke me
5524 #endif
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5530 case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_f77_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5545 ac_compiler_gnu=yes
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_compiler_gnu=no
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5557 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5558 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5559 ac_ext=$ac_save_ext
5560 ac_test_FFLAGS=${FFLAGS+set}
5561 ac_save_FFLAGS=$FFLAGS
5562 FFLAGS=
5563 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5564 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5565 if test "${ac_cv_prog_f77_g+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 FFLAGS=-g
5569 cat >conftest.$ac_ext <<_ACEOF
5570 program main
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (ac_try="$ac_compile"
5576 case "(($ac_try" in
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5579 esac
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_compile") 2>conftest.er1
5582 ac_status=$?
5583 grep -v '^ *+' conftest.er1 >conftest.err
5584 rm -f conftest.er1
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && {
5588 test -z "$ac_f77_werror_flag" ||
5589 test ! -s conftest.err
5590 } && test -s conftest.$ac_objext; then
5591 ac_cv_prog_f77_g=yes
5592 else
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 ac_cv_prog_f77_g=no
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5603 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5604 if test "$ac_test_FFLAGS" = set; then
5605 FFLAGS=$ac_save_FFLAGS
5606 elif test $ac_cv_prog_f77_g = yes; then
5607 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5608 FFLAGS="-g -O2"
5609 else
5610 FFLAGS="-g"
5612 else
5613 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5614 FFLAGS="-O2"
5615 else
5616 FFLAGS=
5620 G77=`test $ac_compiler_gnu = yes && echo yes`
5621 ac_ext=c
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5630 # find the maximum length of command line arguments
5631 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5632 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5637 teststring="ABCD"
5639 case $build_os in
5640 msdosdjgpp*)
5641 # On DJGPP, this test can blow up pretty badly due to problems in libc
5642 # (any single argument exceeding 2000 bytes causes a buffer overrun
5643 # during glob expansion). Even if it were fixed, the result of this
5644 # check would be larger than it should be.
5645 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5648 gnu*)
5649 # Under GNU Hurd, this test is not required because there is
5650 # no limit to the length of command line arguments.
5651 # Libtool will interpret -1 as no limit whatsoever
5652 lt_cv_sys_max_cmd_len=-1;
5655 cygwin* | mingw*)
5656 # On Win9x/ME, this test blows up -- it succeeds, but takes
5657 # about 5 minutes as the teststring grows exponentially.
5658 # Worse, since 9x/ME are not pre-emptively multitasking,
5659 # you end up with a "frozen" computer, even though with patience
5660 # the test eventually succeeds (with a max line length of 256k).
5661 # Instead, let's just punt: use the minimum linelength reported by
5662 # all of the supported platforms: 8192 (on NT/2K/XP).
5663 lt_cv_sys_max_cmd_len=8192;
5666 amigaos*)
5667 # On AmigaOS with pdksh, this test takes hours, literally.
5668 # So we just punt and use a minimum line length of 8192.
5669 lt_cv_sys_max_cmd_len=8192;
5672 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5673 # This has been around since 386BSD, at least. Likely further.
5674 if test -x /sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5676 elif test -x /usr/sbin/sysctl; then
5677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5678 else
5679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5681 # And add a safety zone
5682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686 interix*)
5687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5688 lt_cv_sys_max_cmd_len=196608
5691 osf*)
5692 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5693 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5694 # nice to cause kernel panics so lets avoid the loop below.
5695 # First set a reasonable default.
5696 lt_cv_sys_max_cmd_len=16384
5698 if test -x /sbin/sysconfig; then
5699 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5700 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5701 esac
5704 sco3.2v5*)
5705 lt_cv_sys_max_cmd_len=102400
5707 sysv5* | sco5v6* | sysv4.2uw2*)
5708 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5709 if test -n "$kargmax"; then
5710 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5711 else
5712 lt_cv_sys_max_cmd_len=32768
5716 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5717 if test -n "$lt_cv_sys_max_cmd_len"; then
5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5720 else
5721 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5722 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5723 = "XX$teststring") >/dev/null 2>&1 &&
5724 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5725 lt_cv_sys_max_cmd_len=$new_result &&
5726 test $i != 17 # 1/2 MB should be enough
5728 i=`expr $i + 1`
5729 teststring=$teststring$teststring
5730 done
5731 teststring=
5732 # Add a significant safety factor because C++ compilers can tack on massive
5733 # amounts of additional arguments before passing them to the linker.
5734 # It appears as though 1/2 is a usable value.
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5738 esac
5742 if test -n $lt_cv_sys_max_cmd_len ; then
5743 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5744 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5745 else
5746 { echo "$as_me:$LINENO: result: none" >&5
5747 echo "${ECHO_T}none" >&6; }
5754 # Check for command to grab the raw symbol name followed by C symbol from nm.
5755 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5756 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5757 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5761 # These are sane defaults that work on at least a few old systems.
5762 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5764 # Character class describing NM global symbol codes.
5765 symcode='[BCDEGRST]'
5767 # Regexp to match symbols that can be accessed directly from C.
5768 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5770 # Transform an extracted symbol line into a proper C declaration
5771 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5773 # Transform an extracted symbol line into symbol name and symbol address
5774 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5776 # Define system-specific variables.
5777 case $host_os in
5778 aix*)
5779 symcode='[BCDT]'
5781 cygwin* | mingw* | pw32*)
5782 symcode='[ABCDGISTW]'
5784 hpux*) # Its linker distinguishes data from code symbols
5785 if test "$host_cpu" = ia64; then
5786 symcode='[ABCDEGRST]'
5788 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5789 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5791 linux* | k*bsd*-gnu)
5792 if test "$host_cpu" = ia64; then
5793 symcode='[ABCDGIRSTW]'
5794 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5795 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5798 irix* | nonstopux*)
5799 symcode='[BCDEGRST]'
5801 osf*)
5802 symcode='[BCDEGQRST]'
5804 solaris*)
5805 symcode='[BDRT]'
5807 sco3.2v5*)
5808 symcode='[DT]'
5810 sysv4.2uw2*)
5811 symcode='[DT]'
5813 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5814 symcode='[ABDT]'
5816 sysv4)
5817 symcode='[DFNSTU]'
5819 esac
5821 # Handle CRLF in mingw tool chain
5822 opt_cr=
5823 case $build_os in
5824 mingw*)
5825 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5827 esac
5829 # If we're using GNU nm, then use its standard symbol codes.
5830 case `$NM -V 2>&1` in
5831 *GNU* | *'with BFD'*)
5832 symcode='[ABCDGIRSTW]' ;;
5833 esac
5835 # Try without a prefix undercore, then with it.
5836 for ac_symprfx in "" "_"; do
5838 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5839 symxfrm="\\1 $ac_symprfx\\2 \\2"
5841 # Write the raw and C identifiers.
5842 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5844 # Check to see that the pipe works correctly.
5845 pipe_works=no
5847 rm -f conftest*
5848 cat > conftest.$ac_ext <<EOF
5849 #ifdef __cplusplus
5850 extern "C" {
5851 #endif
5852 char nm_test_var;
5853 void nm_test_func(){}
5854 #ifdef __cplusplus
5856 #endif
5857 int main(){nm_test_var='a';nm_test_func();return(0);}
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; then
5865 # Now try to grab the symbols.
5866 nlist=conftest.nm
5867 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5868 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && test -s "$nlist"; then
5872 # Try sorting and uniquifying the output.
5873 if sort "$nlist" | uniq > "$nlist"T; then
5874 mv -f "$nlist"T "$nlist"
5875 else
5876 rm -f "$nlist"T
5879 # Make sure that we snagged all the symbols we need.
5880 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5881 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5882 cat <<EOF > conftest.$ac_ext
5883 #ifdef __cplusplus
5884 extern "C" {
5885 #endif
5888 # Now generate the symbol file.
5889 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5891 cat <<EOF >> conftest.$ac_ext
5892 #if defined (__STDC__) && __STDC__
5893 # define lt_ptr_t void *
5894 #else
5895 # define lt_ptr_t char *
5896 # define const
5897 #endif
5899 /* The mapping between symbol names and symbols. */
5900 const struct {
5901 const char *name;
5902 lt_ptr_t address;
5904 lt_preloaded_symbols[] =
5907 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5908 cat <<\EOF >> conftest.$ac_ext
5909 {0, (lt_ptr_t) 0}
5912 #ifdef __cplusplus
5914 #endif
5916 # Now try linking the two files.
5917 mv conftest.$ac_objext conftstm.$ac_objext
5918 lt_save_LIBS="$LIBS"
5919 lt_save_CFLAGS="$CFLAGS"
5920 LIBS="conftstm.$ac_objext"
5921 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5927 pipe_works=yes
5929 LIBS="$lt_save_LIBS"
5930 CFLAGS="$lt_save_CFLAGS"
5931 else
5932 echo "cannot find nm_test_func in $nlist" >&5
5934 else
5935 echo "cannot find nm_test_var in $nlist" >&5
5937 else
5938 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5940 else
5941 echo "$progname: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5944 rm -rf conftest* conftst*
5946 # Do not use the global_symbol_pipe unless it works.
5947 if test "$pipe_works" = yes; then
5948 break
5949 else
5950 lt_cv_sys_global_symbol_pipe=
5952 done
5956 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5957 lt_cv_sys_global_symbol_to_cdecl=
5959 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5960 { echo "$as_me:$LINENO: result: failed" >&5
5961 echo "${ECHO_T}failed" >&6; }
5962 else
5963 { echo "$as_me:$LINENO: result: ok" >&5
5964 echo "${ECHO_T}ok" >&6; }
5967 { echo "$as_me:$LINENO: checking for objdir" >&5
5968 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5969 if test "${lt_cv_objdir+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 rm -f .libs 2>/dev/null
5973 mkdir .libs 2>/dev/null
5974 if test -d .libs; then
5975 lt_cv_objdir=.libs
5976 else
5977 # MS-DOS does not allow filenames that begin with a dot.
5978 lt_cv_objdir=_libs
5980 rmdir .libs 2>/dev/null
5982 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5983 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5984 objdir=$lt_cv_objdir
5990 case $host_os in
5991 aix3*)
5992 # AIX sometimes has problems with the GCC collect2 program. For some
5993 # reason, if we set the COLLECT_NAMES environment variable, the problems
5994 # vanish in a puff of smoke.
5995 if test "X${COLLECT_NAMES+set}" != Xset; then
5996 COLLECT_NAMES=
5997 export COLLECT_NAMES
6000 esac
6002 # Sed substitution that helps us do robust quoting. It backslashifies
6003 # metacharacters that are still active within double-quoted strings.
6004 Xsed='sed -e 1s/^X//'
6005 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6007 # Same as above, but do not quote variable references.
6008 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6010 # Sed substitution to delay expansion of an escaped shell variable in a
6011 # double_quote_subst'ed string.
6012 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6014 # Sed substitution to avoid accidental globbing in evaled expressions
6015 no_glob_subst='s/\*/\\\*/g'
6017 # Constants:
6018 rm="rm -f"
6020 # Global variables:
6021 default_ofile=libtool
6022 can_build_shared=yes
6024 # All known linkers require a `.a' archive for static linking (except MSVC,
6025 # which needs '.lib').
6026 libext=a
6027 ltmain="$ac_aux_dir/ltmain.sh"
6028 ofile="$default_ofile"
6029 with_gnu_ld="$lt_cv_prog_gnu_ld"
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}ar; ac_word=$2
6034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6036 if test "${ac_cv_prog_AR+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039 if test -n "$AR"; then
6040 ac_cv_prog_AR="$AR" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049 ac_cv_prog_AR="${ac_tool_prefix}ar"
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6053 done
6054 done
6055 IFS=$as_save_IFS
6059 AR=$ac_cv_prog_AR
6060 if test -n "$AR"; then
6061 { echo "$as_me:$LINENO: result: $AR" >&5
6062 echo "${ECHO_T}$AR" >&6; }
6063 else
6064 { echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6; }
6070 if test -z "$ac_cv_prog_AR"; then
6071 ac_ct_AR=$AR
6072 # Extract the first word of "ar", so it can be a program name with args.
6073 set dummy ar; ac_word=$2
6074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6076 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 if test -n "$ac_ct_AR"; then
6080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_ac_ct_AR="ar"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6093 done
6094 done
6095 IFS=$as_save_IFS
6099 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6100 if test -n "$ac_ct_AR"; then
6101 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6102 echo "${ECHO_T}$ac_ct_AR" >&6; }
6103 else
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6108 if test "x$ac_ct_AR" = x; then
6109 AR="false"
6110 else
6111 case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6114 whose name does not start with the host triplet. If you think this
6115 configuration is useful to you, please write to autoconf@gnu.org." >&5
6116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6117 whose name does not start with the host triplet. If you think this
6118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121 AR=$ac_ct_AR
6123 else
6124 AR="$ac_cv_prog_AR"
6127 if test -n "$ac_tool_prefix"; then
6128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132 if test "${ac_cv_prog_RANLIB+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 if test -n "$RANLIB"; then
6136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6149 done
6150 done
6151 IFS=$as_save_IFS
6155 RANLIB=$ac_cv_prog_RANLIB
6156 if test -n "$RANLIB"; then
6157 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6158 echo "${ECHO_T}$RANLIB" >&6; }
6159 else
6160 { echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6; }
6166 if test -z "$ac_cv_prog_RANLIB"; then
6167 ac_ct_RANLIB=$RANLIB
6168 # Extract the first word of "ranlib", so it can be a program name with args.
6169 set dummy ranlib; ac_word=$2
6170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175 if test -n "$ac_ct_RANLIB"; then
6176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_ac_ct_RANLIB="ranlib"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6189 done
6190 done
6191 IFS=$as_save_IFS
6195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6196 if test -n "$ac_ct_RANLIB"; then
6197 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6198 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6199 else
6200 { echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6; }
6204 if test "x$ac_ct_RANLIB" = x; then
6205 RANLIB=":"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6210 whose name does not start with the host triplet. If you think this
6211 configuration is useful to you, please write to autoconf@gnu.org." >&5
6212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6213 whose name does not start with the host triplet. If you think this
6214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6215 ac_tool_warned=yes ;;
6216 esac
6217 RANLIB=$ac_ct_RANLIB
6219 else
6220 RANLIB="$ac_cv_prog_RANLIB"
6223 if test -n "$ac_tool_prefix"; then
6224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6225 set dummy ${ac_tool_prefix}strip; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_prog_STRIP+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 if test -n "$STRIP"; then
6232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6247 IFS=$as_save_IFS
6251 STRIP=$ac_cv_prog_STRIP
6252 if test -n "$STRIP"; then
6253 { echo "$as_me:$LINENO: result: $STRIP" >&5
6254 echo "${ECHO_T}$STRIP" >&6; }
6255 else
6256 { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6262 if test -z "$ac_cv_prog_STRIP"; then
6263 ac_ct_STRIP=$STRIP
6264 # Extract the first word of "strip", so it can be a program name with args.
6265 set dummy strip; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 if test -n "$ac_ct_STRIP"; then
6272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_STRIP="strip"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6285 done
6286 done
6287 IFS=$as_save_IFS
6291 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6292 if test -n "$ac_ct_STRIP"; then
6293 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6294 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6295 else
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6300 if test "x$ac_ct_STRIP" = x; then
6301 STRIP=":"
6302 else
6303 case $cross_compiling:$ac_tool_warned in
6304 yes:)
6305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6306 whose name does not start with the host triplet. If you think this
6307 configuration is useful to you, please write to autoconf@gnu.org." >&5
6308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6309 whose name does not start with the host triplet. If you think this
6310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6311 ac_tool_warned=yes ;;
6312 esac
6313 STRIP=$ac_ct_STRIP
6315 else
6316 STRIP="$ac_cv_prog_STRIP"
6320 old_CC="$CC"
6321 old_CFLAGS="$CFLAGS"
6323 # Set sane defaults for various variables
6324 test -z "$AR" && AR=ar
6325 test -z "$AR_FLAGS" && AR_FLAGS=cru
6326 test -z "$AS" && AS=as
6327 test -z "$CC" && CC=cc
6328 test -z "$LTCC" && LTCC=$CC
6329 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6330 test -z "$DLLTOOL" && DLLTOOL=dlltool
6331 test -z "$LD" && LD=ld
6332 test -z "$LN_S" && LN_S="ln -s"
6333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6334 test -z "$NM" && NM=nm
6335 test -z "$SED" && SED=sed
6336 test -z "$OBJDUMP" && OBJDUMP=objdump
6337 test -z "$RANLIB" && RANLIB=:
6338 test -z "$STRIP" && STRIP=:
6339 test -z "$ac_objext" && ac_objext=o
6341 # Determine commands to create old-style static archives.
6342 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6343 old_postinstall_cmds='chmod 644 $oldlib'
6344 old_postuninstall_cmds=
6346 if test -n "$RANLIB"; then
6347 case $host_os in
6348 openbsd*)
6349 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6354 esac
6355 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6358 for cc_temp in $compiler""; do
6359 case $cc_temp in
6360 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6361 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6362 \-*) ;;
6363 *) break;;
6364 esac
6365 done
6366 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6369 # Only perform the check for file, if the check method requires it
6370 case $deplibs_check_method in
6371 file_magic*)
6372 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6373 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6374 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6375 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378 case $MAGIC_CMD in
6379 [\\/*] | ?:[\\/]*)
6380 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6383 lt_save_MAGIC_CMD="$MAGIC_CMD"
6384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6385 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6386 for ac_dir in $ac_dummy; do
6387 IFS="$lt_save_ifs"
6388 test -z "$ac_dir" && ac_dir=.
6389 if test -f $ac_dir/${ac_tool_prefix}file; then
6390 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6391 if test -n "$file_magic_test_file"; then
6392 case $deplibs_check_method in
6393 "file_magic "*)
6394 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6396 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6397 $EGREP "$file_magic_regex" > /dev/null; then
6399 else
6400 cat <<EOF 1>&2
6402 *** Warning: the command libtool uses to detect shared libraries,
6403 *** $file_magic_cmd, produces output that libtool cannot recognize.
6404 *** The result is that libtool may fail to recognize shared libraries
6405 *** as such. This will affect the creation of libtool libraries that
6406 *** depend on shared libraries, but programs linked with such libtool
6407 *** libraries will work regardless of this problem. Nevertheless, you
6408 *** may want to report the problem to your system manager and/or to
6409 *** bug-libtool@gnu.org
6412 fi ;;
6413 esac
6415 break
6417 done
6418 IFS="$lt_save_ifs"
6419 MAGIC_CMD="$lt_save_MAGIC_CMD"
6421 esac
6424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6425 if test -n "$MAGIC_CMD"; then
6426 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6427 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6428 else
6429 { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6433 if test -z "$lt_cv_path_MAGIC_CMD"; then
6434 if test -n "$ac_tool_prefix"; then
6435 { echo "$as_me:$LINENO: checking for file" >&5
6436 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6437 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 case $MAGIC_CMD in
6441 [\\/*] | ?:[\\/]*)
6442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6445 lt_save_MAGIC_CMD="$MAGIC_CMD"
6446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6448 for ac_dir in $ac_dummy; do
6449 IFS="$lt_save_ifs"
6450 test -z "$ac_dir" && ac_dir=.
6451 if test -f $ac_dir/file; then
6452 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6453 if test -n "$file_magic_test_file"; then
6454 case $deplibs_check_method in
6455 "file_magic "*)
6456 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6459 $EGREP "$file_magic_regex" > /dev/null; then
6461 else
6462 cat <<EOF 1>&2
6464 *** Warning: the command libtool uses to detect shared libraries,
6465 *** $file_magic_cmd, produces output that libtool cannot recognize.
6466 *** The result is that libtool may fail to recognize shared libraries
6467 *** as such. This will affect the creation of libtool libraries that
6468 *** depend on shared libraries, but programs linked with such libtool
6469 *** libraries will work regardless of this problem. Nevertheless, you
6470 *** may want to report the problem to your system manager and/or to
6471 *** bug-libtool@gnu.org
6474 fi ;;
6475 esac
6477 break
6479 done
6480 IFS="$lt_save_ifs"
6481 MAGIC_CMD="$lt_save_MAGIC_CMD"
6483 esac
6486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6487 if test -n "$MAGIC_CMD"; then
6488 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6489 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6490 else
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6495 else
6496 MAGIC_CMD=:
6502 esac
6505 case $host_os in
6506 rhapsody* | darwin*)
6507 if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6509 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 if test -n "$DSYMUTIL"; then
6516 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6529 done
6530 done
6531 IFS=$as_save_IFS
6535 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6536 if test -n "$DSYMUTIL"; then
6537 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6538 echo "${ECHO_T}$DSYMUTIL" >&6; }
6539 else
6540 { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6546 if test -z "$ac_cv_prog_DSYMUTIL"; then
6547 ac_ct_DSYMUTIL=$DSYMUTIL
6548 # Extract the first word of "dsymutil", so it can be a program name with args.
6549 set dummy dsymutil; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 if test -n "$ac_ct_DSYMUTIL"; then
6556 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6569 done
6570 done
6571 IFS=$as_save_IFS
6575 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6576 if test -n "$ac_ct_DSYMUTIL"; then
6577 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6578 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6579 else
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6584 if test "x$ac_ct_DSYMUTIL" = x; then
6585 DSYMUTIL=":"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6590 whose name does not start with the host triplet. If you think this
6591 configuration is useful to you, please write to autoconf@gnu.org." >&5
6592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet. If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6595 ac_tool_warned=yes ;;
6596 esac
6597 DSYMUTIL=$ac_ct_DSYMUTIL
6599 else
6600 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 if test -n "$NMEDIT"; then
6612 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6625 done
6626 done
6627 IFS=$as_save_IFS
6631 NMEDIT=$ac_cv_prog_NMEDIT
6632 if test -n "$NMEDIT"; then
6633 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6634 echo "${ECHO_T}$NMEDIT" >&6; }
6635 else
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6642 if test -z "$ac_cv_prog_NMEDIT"; then
6643 ac_ct_NMEDIT=$NMEDIT
6644 # Extract the first word of "nmedit", so it can be a program name with args.
6645 set dummy nmedit; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 if test -n "$ac_ct_NMEDIT"; then
6652 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6665 done
6666 done
6667 IFS=$as_save_IFS
6671 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6672 if test -n "$ac_ct_NMEDIT"; then
6673 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6674 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6675 else
6676 { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6680 if test "x$ac_ct_NMEDIT" = x; then
6681 NMEDIT=":"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6686 whose name does not start with the host triplet. If you think this
6687 configuration is useful to you, please write to autoconf@gnu.org." >&5
6688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet. If you think this
6690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 NMEDIT=$ac_ct_NMEDIT
6695 else
6696 NMEDIT="$ac_cv_prog_NMEDIT"
6700 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6701 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6702 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 lt_cv_apple_cc_single_mod=no
6706 if test -z "${LT_MULTI_MODULE}"; then
6707 # By default we will add the -single_module flag. You can override
6708 # by either setting the environment variable LT_MULTI_MODULE
6709 # non-empty at configure time, or by adding -multi_module to the
6710 # link flags.
6711 echo "int foo(void){return 1;}" > conftest.c
6712 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6713 -dynamiclib ${wl}-single_module conftest.c
6714 if test -f libconftest.dylib; then
6715 lt_cv_apple_cc_single_mod=yes
6716 rm -rf libconftest.dylib*
6718 rm conftest.c
6721 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6722 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6723 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6724 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6725 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728 lt_cv_ld_exported_symbols_list=no
6729 save_LDFLAGS=$LDFLAGS
6730 echo "_main" > conftest.sym
6731 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6740 main ()
6744 return 0;
6746 _ACEOF
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (ac_try="$ac_link"
6749 case "(($ac_try" in
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6752 esac
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754 (eval "$ac_link") 2>conftest.er1
6755 ac_status=$?
6756 grep -v '^ *+' conftest.er1 >conftest.err
6757 rm -f conftest.er1
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest$ac_exeext &&
6764 $as_test_x conftest$ac_exeext; then
6765 lt_cv_ld_exported_symbols_list=yes
6766 else
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6770 lt_cv_ld_exported_symbols_list=no
6773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6774 conftest$ac_exeext conftest.$ac_ext
6775 LDFLAGS="$save_LDFLAGS"
6778 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6779 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6780 case $host_os in
6781 rhapsody* | darwin1.[0123])
6782 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6783 darwin1.*)
6784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6785 darwin*)
6786 # if running on 10.5 or later, the deployment target defaults
6787 # to the OS version, if on x86, and 10.4, the deployment
6788 # target defaults to 10.4. Don't you love it?
6789 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6790 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6791 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6792 10.[012]*)
6793 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6794 10.*)
6795 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6796 esac
6798 esac
6799 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6800 _lt_dar_single_mod='$single_module'
6802 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6803 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6804 else
6805 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6807 if test "$DSYMUTIL" != ":"; then
6808 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6809 else
6810 _lt_dsymutil=
6813 esac
6816 enable_dlopen=no
6817 enable_win32_dll=no
6819 # Check whether --enable-libtool-lock was given.
6820 if test "${enable_libtool_lock+set}" = set; then
6821 enableval=$enable_libtool_lock;
6824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6827 # Check whether --with-pic was given.
6828 if test "${with_pic+set}" = set; then
6829 withval=$with_pic; pic_mode="$withval"
6830 else
6831 pic_mode=default
6834 test -z "$pic_mode" && pic_mode=default
6836 # Use C for the default configuration in the libtool script
6837 tagname=
6838 lt_save_CC="$CC"
6839 ac_ext=c
6840 ac_cpp='$CPP $CPPFLAGS'
6841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 # Source file extension for C test sources.
6847 ac_ext=c
6849 # Object file extension for compiled C test sources.
6850 objext=o
6851 objext=$objext
6853 # Code to be used in simple compile tests
6854 lt_simple_compile_test_code="int some_variable = 0;"
6856 # Code to be used in simple link tests
6857 lt_simple_link_test_code='int main(){return(0);}'
6860 # If no C compiler was specified, use CC.
6861 LTCC=${LTCC-"$CC"}
6863 # If no C compiler flags were specified, use CFLAGS.
6864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6866 # Allow CC to be a program name with arguments.
6867 compiler=$CC
6870 # save warnings/boilerplate of simple test code
6871 ac_outfile=conftest.$ac_objext
6872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6874 _lt_compiler_boilerplate=`cat conftest.err`
6875 $rm conftest*
6877 ac_outfile=conftest.$ac_objext
6878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6880 _lt_linker_boilerplate=`cat conftest.err`
6881 $rm -r conftest*
6884 ## CAVEAT EMPTOR:
6885 ## There is no encapsulation within the following macros, do not change
6886 ## the running order or otherwise move them around unless you know exactly
6887 ## what you are doing...
6889 lt_prog_compiler_no_builtin_flag=
6891 if test "$GCC" = yes; then
6892 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6895 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6896 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6897 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 lt_cv_prog_compiler_rtti_exceptions=no
6901 ac_outfile=conftest.$ac_objext
6902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6903 lt_compiler_flag="-fno-rtti -fno-exceptions"
6904 # Insert the option either (1) after the last *FLAGS variable, or
6905 # (2) before a word containing "conftest.", or (3) at the end.
6906 # Note that $ac_compile itself does not contain backslashes and begins
6907 # with a dollar sign (not a hyphen), so the echo should work correctly.
6908 # The option is referenced via a variable to avoid confusing sed.
6909 lt_compile=`echo "$ac_compile" | $SED \
6910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6912 -e 's:$: $lt_compiler_flag:'`
6913 (eval echo "\"\$as_me:6913: $lt_compile\"" >&5)
6914 (eval "$lt_compile" 2>conftest.err)
6915 ac_status=$?
6916 cat conftest.err >&5
6917 echo "$as_me:6917: \$? = $ac_status" >&5
6918 if (exit $ac_status) && test -s "$ac_outfile"; then
6919 # The compiler can only warn and ignore the option if not recognized
6920 # So say no if there are warnings other than the usual output.
6921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6924 lt_cv_prog_compiler_rtti_exceptions=yes
6927 $rm conftest*
6930 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6931 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6933 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6934 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6935 else
6941 lt_prog_compiler_wl=
6942 lt_prog_compiler_pic=
6943 lt_prog_compiler_static=
6945 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6946 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6948 if test "$GCC" = yes; then
6949 lt_prog_compiler_wl='-Wl,'
6950 lt_prog_compiler_static='-static'
6952 case $host_os in
6953 aix*)
6954 # All AIX code is PIC.
6955 if test "$host_cpu" = ia64; then
6956 # AIX 5 now supports IA64 processor
6957 lt_prog_compiler_static='-Bstatic'
6961 amigaos*)
6962 # FIXME: we need at least 68020 code to build shared libraries, but
6963 # adding the `-m68020' flag to GCC prevents building anything better,
6964 # like `-m68040'.
6965 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6968 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6969 # PIC is the default for these OSes.
6972 mingw* | cygwin* | pw32* | os2*)
6973 # This hack is so that the source file can tell whether it is being
6974 # built for inclusion in a dll (and should export symbols for example).
6975 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6976 # (--disable-auto-import) libraries
6977 lt_prog_compiler_pic='-DDLL_EXPORT'
6980 darwin* | rhapsody*)
6981 # PIC is the default on this platform
6982 # Common symbols not allowed in MH_DYLIB files
6983 lt_prog_compiler_pic='-fno-common'
6986 interix[3-9]*)
6987 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6988 # Instead, we relocate shared libraries at runtime.
6991 msdosdjgpp*)
6992 # Just because we use GCC doesn't mean we suddenly get shared libraries
6993 # on systems that don't support them.
6994 lt_prog_compiler_can_build_shared=no
6995 enable_shared=no
6998 sysv4*MP*)
6999 if test -d /usr/nec; then
7000 lt_prog_compiler_pic=-Kconform_pic
7004 hpux*)
7005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7006 # not for PA HP-UX.
7007 case $host_cpu in
7008 hppa*64*|ia64*)
7009 # +Z the default
7012 lt_prog_compiler_pic='-fPIC'
7014 esac
7018 lt_prog_compiler_pic='-fPIC'
7020 esac
7021 else
7022 # PORTME Check for flag to pass linker flags through the system compiler.
7023 case $host_os in
7024 aix*)
7025 lt_prog_compiler_wl='-Wl,'
7026 if test "$host_cpu" = ia64; then
7027 # AIX 5 now supports IA64 processor
7028 lt_prog_compiler_static='-Bstatic'
7029 else
7030 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7033 darwin*)
7034 # PIC is the default on this platform
7035 # Common symbols not allowed in MH_DYLIB files
7036 case $cc_basename in
7037 xlc*)
7038 lt_prog_compiler_pic='-qnocommon'
7039 lt_prog_compiler_wl='-Wl,'
7041 esac
7044 mingw* | cygwin* | pw32* | os2*)
7045 # This hack is so that the source file can tell whether it is being
7046 # built for inclusion in a dll (and should export symbols for example).
7047 lt_prog_compiler_pic='-DDLL_EXPORT'
7050 hpux9* | hpux10* | hpux11*)
7051 lt_prog_compiler_wl='-Wl,'
7052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7053 # not for PA HP-UX.
7054 case $host_cpu in
7055 hppa*64*|ia64*)
7056 # +Z the default
7059 lt_prog_compiler_pic='+Z'
7061 esac
7062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7063 lt_prog_compiler_static='${wl}-a ${wl}archive'
7066 irix5* | irix6* | nonstopux*)
7067 lt_prog_compiler_wl='-Wl,'
7068 # PIC (with -KPIC) is the default.
7069 lt_prog_compiler_static='-non_shared'
7072 newsos6)
7073 lt_prog_compiler_pic='-KPIC'
7074 lt_prog_compiler_static='-Bstatic'
7077 linux* | k*bsd*-gnu)
7078 case $cc_basename in
7079 icc* | ecc*)
7080 lt_prog_compiler_wl='-Wl,'
7081 lt_prog_compiler_pic='-KPIC'
7082 lt_prog_compiler_static='-static'
7084 pgcc* | pgf77* | pgf90* | pgf95*)
7085 # Portland Group compilers (*not* the Pentium gcc compiler,
7086 # which looks to be a dead project)
7087 lt_prog_compiler_wl='-Wl,'
7088 lt_prog_compiler_pic='-fpic'
7089 lt_prog_compiler_static='-Bstatic'
7091 ccc*)
7092 lt_prog_compiler_wl='-Wl,'
7093 # All Alpha code is PIC.
7094 lt_prog_compiler_static='-non_shared'
7097 case `$CC -V 2>&1 | sed 5q` in
7098 *Sun\ C*)
7099 # Sun C 5.9
7100 lt_prog_compiler_pic='-KPIC'
7101 lt_prog_compiler_static='-Bstatic'
7102 lt_prog_compiler_wl='-Wl,'
7104 *Sun\ F*)
7105 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7106 lt_prog_compiler_pic='-KPIC'
7107 lt_prog_compiler_static='-Bstatic'
7108 lt_prog_compiler_wl=''
7110 esac
7112 esac
7115 osf3* | osf4* | osf5*)
7116 lt_prog_compiler_wl='-Wl,'
7117 # All OSF/1 code is PIC.
7118 lt_prog_compiler_static='-non_shared'
7121 rdos*)
7122 lt_prog_compiler_static='-non_shared'
7125 solaris*)
7126 lt_prog_compiler_pic='-KPIC'
7127 lt_prog_compiler_static='-Bstatic'
7128 case $cc_basename in
7129 f77* | f90* | f95*)
7130 lt_prog_compiler_wl='-Qoption ld ';;
7132 lt_prog_compiler_wl='-Wl,';;
7133 esac
7136 sunos4*)
7137 lt_prog_compiler_wl='-Qoption ld '
7138 lt_prog_compiler_pic='-PIC'
7139 lt_prog_compiler_static='-Bstatic'
7142 sysv4 | sysv4.2uw2* | sysv4.3*)
7143 lt_prog_compiler_wl='-Wl,'
7144 lt_prog_compiler_pic='-KPIC'
7145 lt_prog_compiler_static='-Bstatic'
7148 sysv4*MP*)
7149 if test -d /usr/nec ;then
7150 lt_prog_compiler_pic='-Kconform_pic'
7151 lt_prog_compiler_static='-Bstatic'
7155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7156 lt_prog_compiler_wl='-Wl,'
7157 lt_prog_compiler_pic='-KPIC'
7158 lt_prog_compiler_static='-Bstatic'
7161 unicos*)
7162 lt_prog_compiler_wl='-Wl,'
7163 lt_prog_compiler_can_build_shared=no
7166 uts4*)
7167 lt_prog_compiler_pic='-pic'
7168 lt_prog_compiler_static='-Bstatic'
7172 lt_prog_compiler_can_build_shared=no
7174 esac
7177 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7178 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7181 # Check to make sure the PIC flag actually works.
7183 if test -n "$lt_prog_compiler_pic"; then
7185 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7186 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7187 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 lt_cv_prog_compiler_pic_works=no
7191 ac_outfile=conftest.$ac_objext
7192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7193 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7194 # Insert the option either (1) after the last *FLAGS variable, or
7195 # (2) before a word containing "conftest.", or (3) at the end.
7196 # Note that $ac_compile itself does not contain backslashes and begins
7197 # with a dollar sign (not a hyphen), so the echo should work correctly.
7198 # The option is referenced via a variable to avoid confusing sed.
7199 lt_compile=`echo "$ac_compile" | $SED \
7200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7202 -e 's:$: $lt_compiler_flag:'`
7203 (eval echo "\"\$as_me:7203: $lt_compile\"" >&5)
7204 (eval "$lt_compile" 2>conftest.err)
7205 ac_status=$?
7206 cat conftest.err >&5
7207 echo "$as_me:7207: \$? = $ac_status" >&5
7208 if (exit $ac_status) && test -s "$ac_outfile"; then
7209 # The compiler can only warn and ignore the option if not recognized
7210 # So say no if there are warnings other than the usual output.
7211 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7213 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7214 lt_cv_prog_compiler_pic_works=yes
7217 $rm conftest*
7220 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7221 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7223 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7224 case $lt_prog_compiler_pic in
7225 "" | " "*) ;;
7226 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7227 esac
7228 else
7229 lt_prog_compiler_pic=
7230 lt_prog_compiler_can_build_shared=no
7234 case $host_os in
7235 # For platforms which do not support PIC, -DPIC is meaningless:
7236 *djgpp*)
7237 lt_prog_compiler_pic=
7240 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7242 esac
7245 # Check to make sure the static flag actually works.
7247 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7248 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7249 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7250 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 lt_cv_prog_compiler_static_works=no
7254 save_LDFLAGS="$LDFLAGS"
7255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7258 # The linker can only warn and ignore the option if not recognized
7259 # So say no if there are warnings
7260 if test -s conftest.err; then
7261 # Append any errors to the config.log.
7262 cat conftest.err 1>&5
7263 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7265 if diff conftest.exp conftest.er2 >/dev/null; then
7266 lt_cv_prog_compiler_static_works=yes
7268 else
7269 lt_cv_prog_compiler_static_works=yes
7272 $rm -r conftest*
7273 LDFLAGS="$save_LDFLAGS"
7276 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7277 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7279 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7281 else
7282 lt_prog_compiler_static=
7286 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7288 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 lt_cv_prog_compiler_c_o=no
7292 $rm -r conftest 2>/dev/null
7293 mkdir conftest
7294 cd conftest
7295 mkdir out
7296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7298 lt_compiler_flag="-o out/conftest2.$ac_objext"
7299 # Insert the option either (1) after the last *FLAGS variable, or
7300 # (2) before a word containing "conftest.", or (3) at the end.
7301 # Note that $ac_compile itself does not contain backslashes and begins
7302 # with a dollar sign (not a hyphen), so the echo should work correctly.
7303 lt_compile=`echo "$ac_compile" | $SED \
7304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7306 -e 's:$: $lt_compiler_flag:'`
7307 (eval echo "\"\$as_me:7307: $lt_compile\"" >&5)
7308 (eval "$lt_compile" 2>out/conftest.err)
7309 ac_status=$?
7310 cat out/conftest.err >&5
7311 echo "$as_me:7311: \$? = $ac_status" >&5
7312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7313 then
7314 # The compiler can only warn and ignore the option if not recognized
7315 # So say no if there are warnings
7316 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7317 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7318 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7319 lt_cv_prog_compiler_c_o=yes
7322 chmod u+w . 2>&5
7323 $rm conftest*
7324 # SGI C++ compiler will create directory out/ii_files/ for
7325 # template instantiation
7326 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7327 $rm out/* && rmdir out
7328 cd ..
7329 rmdir conftest
7330 $rm conftest*
7333 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7337 hard_links="nottested"
7338 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7339 # do not overwrite the value of need_locks provided by the user
7340 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7342 hard_links=yes
7343 $rm conftest*
7344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7345 touch conftest.a
7346 ln conftest.a conftest.b 2>&5 || hard_links=no
7347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7348 { echo "$as_me:$LINENO: result: $hard_links" >&5
7349 echo "${ECHO_T}$hard_links" >&6; }
7350 if test "$hard_links" = no; then
7351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7353 need_locks=warn
7355 else
7356 need_locks=no
7359 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7362 runpath_var=
7363 allow_undefined_flag=
7364 enable_shared_with_static_runtimes=no
7365 archive_cmds=
7366 archive_expsym_cmds=
7367 old_archive_From_new_cmds=
7368 old_archive_from_expsyms_cmds=
7369 export_dynamic_flag_spec=
7370 whole_archive_flag_spec=
7371 thread_safe_flag_spec=
7372 hardcode_libdir_flag_spec=
7373 hardcode_libdir_flag_spec_ld=
7374 hardcode_libdir_separator=
7375 hardcode_direct=no
7376 hardcode_minus_L=no
7377 hardcode_shlibpath_var=unsupported
7378 link_all_deplibs=unknown
7379 hardcode_automatic=no
7380 module_cmds=
7381 module_expsym_cmds=
7382 always_export_symbols=no
7383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7384 # include_expsyms should be a list of space-separated symbols to be *always*
7385 # included in the symbol list
7386 include_expsyms=
7387 # exclude_expsyms can be an extended regexp of symbols to exclude
7388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7390 # as well as any symbol that contains `d'.
7391 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7393 # platforms (ab)use it in PIC code, but their linkers get confused if
7394 # the symbol is explicitly referenced. Since portable code cannot
7395 # rely on this symbol name, it's probably fine to never include it in
7396 # preloaded symbol tables.
7397 # Exclude shared library initialization/finalization symbols.
7398 extract_expsyms_cmds=
7399 # Just being paranoid about ensuring that cc_basename is set.
7400 for cc_temp in $compiler""; do
7401 case $cc_temp in
7402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7404 \-*) ;;
7405 *) break;;
7406 esac
7407 done
7408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7410 case $host_os in
7411 cygwin* | mingw* | pw32*)
7412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7413 # When not using gcc, we currently assume that we are using
7414 # Microsoft Visual C++.
7415 if test "$GCC" != yes; then
7416 with_gnu_ld=no
7419 interix*)
7420 # we just hope/assume this is gcc and not c89 (= MSVC++)
7421 with_gnu_ld=yes
7423 openbsd*)
7424 with_gnu_ld=no
7426 esac
7428 ld_shlibs=yes
7429 if test "$with_gnu_ld" = yes; then
7430 # If archive_cmds runs LD, not CC, wlarc should be empty
7431 wlarc='${wl}'
7433 # Set some defaults for GNU ld with shared library support. These
7434 # are reset later if shared libraries are not supported. Putting them
7435 # here allows them to be overridden if necessary.
7436 runpath_var=LD_RUN_PATH
7437 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7438 export_dynamic_flag_spec='${wl}--export-dynamic'
7439 # ancient GNU ld didn't support --whole-archive et. al.
7440 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7442 else
7443 whole_archive_flag_spec=
7445 supports_anon_versioning=no
7446 case `$LD -v 2>/dev/null` in
7447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7450 *\ 2.11.*) ;; # other 2.11 versions
7451 *) supports_anon_versioning=yes ;;
7452 esac
7454 # See if GNU ld supports shared libraries.
7455 case $host_os in
7456 aix[3-9]*)
7457 # On AIX/PPC, the GNU linker is very broken
7458 if test "$host_cpu" != ia64; then
7459 ld_shlibs=no
7460 cat <<EOF 1>&2
7462 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7463 *** to be unable to reliably create shared libraries on AIX.
7464 *** Therefore, libtool is disabling shared libraries support. If you
7465 *** really care for shared libraries, you may want to modify your PATH
7466 *** so that a non-GNU linker is found, and then restart.
7472 amigaos*)
7473 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7474 hardcode_libdir_flag_spec='-L$libdir'
7475 hardcode_minus_L=yes
7477 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7478 # that the semantics of dynamic libraries on AmigaOS, at least up
7479 # to version 4, is to share data among multiple programs linked
7480 # with the same dynamic library. Since this doesn't match the
7481 # behavior of shared libraries on other platforms, we can't use
7482 # them.
7483 ld_shlibs=no
7486 beos*)
7487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7488 allow_undefined_flag=unsupported
7489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7490 # support --undefined. This deserves some investigation. FIXME
7491 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7492 else
7493 ld_shlibs=no
7497 cygwin* | mingw* | pw32*)
7498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7499 # as there is no search path for DLLs.
7500 hardcode_libdir_flag_spec='-L$libdir'
7501 allow_undefined_flag=unsupported
7502 always_export_symbols=no
7503 enable_shared_with_static_runtimes=yes
7504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7506 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7508 # If the export-symbols file already is a .def file (1st line
7509 # is EXPORTS), use it as is; otherwise, prepend...
7510 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7511 cp $export_symbols $output_objdir/$soname.def;
7512 else
7513 echo EXPORTS > $output_objdir/$soname.def;
7514 cat $export_symbols >> $output_objdir/$soname.def;
7516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7517 else
7518 ld_shlibs=no
7522 interix[3-9]*)
7523 hardcode_direct=no
7524 hardcode_shlibpath_var=no
7525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7526 export_dynamic_flag_spec='${wl}-E'
7527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7528 # Instead, shared libraries are loaded at an image base (0x10000000 by
7529 # default) and relocated if they conflict, which is a slow very memory
7530 # consuming and fragmenting process. To avoid this, we pick a random,
7531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7532 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7533 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7534 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7537 gnu* | linux* | k*bsd*-gnu)
7538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7539 tmp_addflag=
7540 case $cc_basename,$host_cpu in
7541 pgcc*) # Portland Group C compiler
7542 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7543 tmp_addflag=' $pic_flag'
7545 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7546 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7547 tmp_addflag=' $pic_flag -Mnomain' ;;
7548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7549 tmp_addflag=' -i_dynamic' ;;
7550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7551 tmp_addflag=' -i_dynamic -nofor_main' ;;
7552 ifc* | ifort*) # Intel Fortran compiler
7553 tmp_addflag=' -nofor_main' ;;
7554 esac
7555 case `$CC -V 2>&1 | sed 5q` in
7556 *Sun\ C*) # Sun C 5.9
7557 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7558 tmp_sharedflag='-G' ;;
7559 *Sun\ F*) # Sun Fortran 8.3
7560 tmp_sharedflag='-G' ;;
7562 tmp_sharedflag='-shared' ;;
7563 esac
7564 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7566 if test $supports_anon_versioning = yes; then
7567 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7568 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7569 $echo "local: *; };" >> $output_objdir/$libname.ver~
7570 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7572 else
7573 ld_shlibs=no
7577 netbsd*)
7578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7579 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7580 wlarc=
7581 else
7582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7587 solaris*)
7588 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7589 ld_shlibs=no
7590 cat <<EOF 1>&2
7592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7593 *** create shared libraries on Solaris systems. Therefore, libtool
7594 *** is disabling shared libraries support. We urge you to upgrade GNU
7595 *** binutils to release 2.9.1 or newer. Another option is to modify
7596 *** your PATH or compiler configuration so that the native linker is
7597 *** used, and then restart.
7600 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7603 else
7604 ld_shlibs=no
7608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7609 case `$LD -v 2>&1` in
7610 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7611 ld_shlibs=no
7612 cat <<_LT_EOF 1>&2
7614 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7615 *** reliably create shared libraries on SCO systems. Therefore, libtool
7616 *** is disabling shared libraries support. We urge you to upgrade GNU
7617 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7618 *** your PATH or compiler configuration so that the native linker is
7619 *** used, and then restart.
7621 _LT_EOF
7624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7625 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7628 else
7629 ld_shlibs=no
7632 esac
7635 sunos4*)
7636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7637 wlarc=
7638 hardcode_direct=yes
7639 hardcode_shlibpath_var=no
7643 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7646 else
7647 ld_shlibs=no
7650 esac
7652 if test "$ld_shlibs" = no; then
7653 runpath_var=
7654 hardcode_libdir_flag_spec=
7655 export_dynamic_flag_spec=
7656 whole_archive_flag_spec=
7658 else
7659 # PORTME fill in a description of your system's linker (not GNU ld)
7660 case $host_os in
7661 aix3*)
7662 allow_undefined_flag=unsupported
7663 always_export_symbols=yes
7664 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7665 # Note: this linker hardcodes the directories in LIBPATH if there
7666 # are no directories specified by -L.
7667 hardcode_minus_L=yes
7668 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7669 # Neither direct hardcoding nor static linking is supported with a
7670 # broken collect2.
7671 hardcode_direct=unsupported
7675 aix[4-9]*)
7676 if test "$host_cpu" = ia64; then
7677 # On IA64, the linker does run time linking by default, so we don't
7678 # have to do anything special.
7679 aix_use_runtimelinking=no
7680 exp_sym_flag='-Bexport'
7681 no_entry_flag=""
7682 else
7683 # If we're using GNU nm, then we don't want the "-C" option.
7684 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7685 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7686 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7687 else
7688 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7690 aix_use_runtimelinking=no
7692 # Test if we are trying to use run time linking or normal
7693 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7694 # need to do runtime linking.
7695 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7696 for ld_flag in $LDFLAGS; do
7697 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7698 aix_use_runtimelinking=yes
7699 break
7701 done
7703 esac
7705 exp_sym_flag='-bexport'
7706 no_entry_flag='-bnoentry'
7709 # When large executables or shared objects are built, AIX ld can
7710 # have problems creating the table of contents. If linking a library
7711 # or program results in "error TOC overflow" add -mminimal-toc to
7712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7715 archive_cmds=''
7716 hardcode_direct=yes
7717 hardcode_libdir_separator=':'
7718 link_all_deplibs=yes
7720 if test "$GCC" = yes; then
7721 case $host_os in aix4.[012]|aix4.[012].*)
7722 # We only want to do this on AIX 4.2 and lower, the check
7723 # below for broken collect2 doesn't work under 4.3+
7724 collect2name=`${CC} -print-prog-name=collect2`
7725 if test -f "$collect2name" && \
7726 strings "$collect2name" | grep resolve_lib_name >/dev/null
7727 then
7728 # We have reworked collect2
7730 else
7731 # We have old collect2
7732 hardcode_direct=unsupported
7733 # It fails to find uninstalled libraries when the uninstalled
7734 # path is not listed in the libpath. Setting hardcode_minus_L
7735 # to unsupported forces relinking
7736 hardcode_minus_L=yes
7737 hardcode_libdir_flag_spec='-L$libdir'
7738 hardcode_libdir_separator=
7741 esac
7742 shared_flag='-shared'
7743 if test "$aix_use_runtimelinking" = yes; then
7744 shared_flag="$shared_flag "'${wl}-G'
7746 else
7747 # not using gcc
7748 if test "$host_cpu" = ia64; then
7749 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7750 # chokes on -Wl,-G. The following line is correct:
7751 shared_flag='-G'
7752 else
7753 if test "$aix_use_runtimelinking" = yes; then
7754 shared_flag='${wl}-G'
7755 else
7756 shared_flag='${wl}-bM:SRE'
7761 # It seems that -bexpall does not export symbols beginning with
7762 # underscore (_), so it is better to generate a list of symbols to export.
7763 always_export_symbols=yes
7764 if test "$aix_use_runtimelinking" = yes; then
7765 # Warning - without using the other runtime loading flags (-brtl),
7766 # -berok will link without error, but may produce a broken library.
7767 allow_undefined_flag='-berok'
7768 # Determine the default libpath from the value encoded in an empty executable.
7769 cat >conftest.$ac_ext <<_ACEOF
7770 /* confdefs.h. */
7771 _ACEOF
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7777 main ()
7781 return 0;
7783 _ACEOF
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (ac_try="$ac_link"
7786 case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_link") 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest$ac_exeext &&
7801 $as_test_x conftest$ac_exeext; then
7803 lt_aix_libpath_sed='
7804 /Import File Strings/,/^$/ {
7805 /^0/ {
7806 s/^0 *\(.*\)$/\1/
7810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7811 # Check for a 64-bit object if we didn't find anything.
7812 if test -z "$aix_libpath"; then
7813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7815 else
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7823 conftest$ac_exeext conftest.$ac_ext
7824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7827 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7828 else
7829 if test "$host_cpu" = ia64; then
7830 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7831 allow_undefined_flag="-z nodefs"
7832 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7833 else
7834 # Determine the default libpath from the value encoded in an empty executable.
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7843 main ()
7847 return 0;
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7852 case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest$ac_exeext &&
7867 $as_test_x conftest$ac_exeext; then
7869 lt_aix_libpath_sed='
7870 /Import File Strings/,/^$/ {
7871 /^0/ {
7872 s/^0 *\(.*\)$/\1/
7876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7877 # Check for a 64-bit object if we didn't find anything.
7878 if test -z "$aix_libpath"; then
7879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7889 conftest$ac_exeext conftest.$ac_ext
7890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7892 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7893 # Warning - without using the other run time loading flags,
7894 # -berok will link without error, but may produce a broken library.
7895 no_undefined_flag=' ${wl}-bernotok'
7896 allow_undefined_flag=' ${wl}-berok'
7897 # Exported symbols can be pulled into shared objects from archives
7898 whole_archive_flag_spec='$convenience'
7899 archive_cmds_need_lc=yes
7900 # This is similar to how AIX traditionally builds its shared libraries.
7901 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7906 amigaos*)
7907 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7908 hardcode_libdir_flag_spec='-L$libdir'
7909 hardcode_minus_L=yes
7910 # see comment about different semantics on the GNU ld section
7911 ld_shlibs=no
7914 bsdi[45]*)
7915 export_dynamic_flag_spec=-rdynamic
7918 cygwin* | mingw* | pw32*)
7919 # When not using gcc, we currently assume that we are using
7920 # Microsoft Visual C++.
7921 # hardcode_libdir_flag_spec is actually meaningless, as there is
7922 # no search path for DLLs.
7923 hardcode_libdir_flag_spec=' '
7924 allow_undefined_flag=unsupported
7925 # Tell ltmain to make .lib files, not .a files.
7926 libext=lib
7927 # Tell ltmain to make .dll files, not .so files.
7928 shrext_cmds=".dll"
7929 # FIXME: Setting linknames here is a bad hack.
7930 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7931 # The linker will automatically build a .lib file if we build a DLL.
7932 old_archive_From_new_cmds='true'
7933 # FIXME: Should let the user specify the lib program.
7934 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7935 fix_srcfile_path='`cygpath -w "$srcfile"`'
7936 enable_shared_with_static_runtimes=yes
7939 darwin* | rhapsody*)
7940 case $host_os in
7941 rhapsody* | darwin1.[012])
7942 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7944 *) # Darwin 1.3 on
7945 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7946 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7947 else
7948 case ${MACOSX_DEPLOYMENT_TARGET} in
7949 10.[012])
7950 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7952 10.*)
7953 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7955 esac
7958 esac
7959 archive_cmds_need_lc=no
7960 hardcode_direct=no
7961 hardcode_automatic=yes
7962 hardcode_shlibpath_var=unsupported
7963 whole_archive_flag_spec=''
7964 link_all_deplibs=yes
7965 if test "$GCC" = yes ; then
7966 output_verbose_link_cmd='echo'
7967 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7968 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7969 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7970 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7971 else
7972 case $cc_basename in
7973 xlc*)
7974 output_verbose_link_cmd='echo'
7975 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7976 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7977 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7978 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7979 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7982 ld_shlibs=no
7984 esac
7988 dgux*)
7989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7990 hardcode_libdir_flag_spec='-L$libdir'
7991 hardcode_shlibpath_var=no
7994 freebsd1*)
7995 ld_shlibs=no
7998 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7999 # support. Future versions do this automatically, but an explicit c++rt0.o
8000 # does not break anything, and helps significantly (at the cost of a little
8001 # extra space).
8002 freebsd2.2*)
8003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8004 hardcode_libdir_flag_spec='-R$libdir'
8005 hardcode_direct=yes
8006 hardcode_shlibpath_var=no
8009 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8010 freebsd2*)
8011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8012 hardcode_direct=yes
8013 hardcode_minus_L=yes
8014 hardcode_shlibpath_var=no
8017 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8018 freebsd* | dragonfly*)
8019 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8020 hardcode_libdir_flag_spec='-R$libdir'
8021 hardcode_direct=yes
8022 hardcode_shlibpath_var=no
8025 hpux9*)
8026 if test "$GCC" = yes; then
8027 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8028 else
8029 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8031 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8032 hardcode_libdir_separator=:
8033 hardcode_direct=yes
8035 # hardcode_minus_L: Not really in the search PATH,
8036 # but as the default location of the library.
8037 hardcode_minus_L=yes
8038 export_dynamic_flag_spec='${wl}-E'
8041 hpux10*)
8042 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8043 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8044 else
8045 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8047 if test "$with_gnu_ld" = no; then
8048 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8049 hardcode_libdir_separator=:
8051 hardcode_direct=yes
8052 export_dynamic_flag_spec='${wl}-E'
8054 # hardcode_minus_L: Not really in the search PATH,
8055 # but as the default location of the library.
8056 hardcode_minus_L=yes
8060 hpux11*)
8061 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8062 case $host_cpu in
8063 hppa*64*)
8064 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8066 ia64*)
8067 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8072 esac
8073 else
8074 case $host_cpu in
8075 hppa*64*)
8076 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8078 ia64*)
8079 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8084 esac
8086 if test "$with_gnu_ld" = no; then
8087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8088 hardcode_libdir_separator=:
8090 case $host_cpu in
8091 hppa*64*|ia64*)
8092 hardcode_libdir_flag_spec_ld='+b $libdir'
8093 hardcode_direct=no
8094 hardcode_shlibpath_var=no
8097 hardcode_direct=yes
8098 export_dynamic_flag_spec='${wl}-E'
8100 # hardcode_minus_L: Not really in the search PATH,
8101 # but as the default location of the library.
8102 hardcode_minus_L=yes
8104 esac
8108 irix5* | irix6* | nonstopux*)
8109 if test "$GCC" = yes; then
8110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8111 else
8112 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8113 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8116 hardcode_libdir_separator=:
8117 link_all_deplibs=yes
8120 netbsd*)
8121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8123 else
8124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8126 hardcode_libdir_flag_spec='-R$libdir'
8127 hardcode_direct=yes
8128 hardcode_shlibpath_var=no
8131 newsos6)
8132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8133 hardcode_direct=yes
8134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8135 hardcode_libdir_separator=:
8136 hardcode_shlibpath_var=no
8139 openbsd*)
8140 if test -f /usr/libexec/ld.so; then
8141 hardcode_direct=yes
8142 hardcode_shlibpath_var=no
8143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8145 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8147 export_dynamic_flag_spec='${wl}-E'
8148 else
8149 case $host_os in
8150 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8152 hardcode_libdir_flag_spec='-R$libdir'
8155 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8156 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8158 esac
8160 else
8161 ld_shlibs=no
8165 os2*)
8166 hardcode_libdir_flag_spec='-L$libdir'
8167 hardcode_minus_L=yes
8168 allow_undefined_flag=unsupported
8169 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8170 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8173 osf3*)
8174 if test "$GCC" = yes; then
8175 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8176 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8177 else
8178 allow_undefined_flag=' -expect_unresolved \*'
8179 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8182 hardcode_libdir_separator=:
8185 osf4* | osf5*) # as osf3* with the addition of -msym flag
8186 if test "$GCC" = yes; then
8187 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8188 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8190 else
8191 allow_undefined_flag=' -expect_unresolved \*'
8192 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8193 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8194 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8196 # Both c and cxx compiler support -rpath directly
8197 hardcode_libdir_flag_spec='-rpath $libdir'
8199 hardcode_libdir_separator=:
8202 solaris*)
8203 no_undefined_flag=' -z text'
8204 if test "$GCC" = yes; then
8205 wlarc='${wl}'
8206 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8208 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8209 else
8210 wlarc=''
8211 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8212 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8215 hardcode_libdir_flag_spec='-R$libdir'
8216 hardcode_shlibpath_var=no
8217 case $host_os in
8218 solaris2.[0-5] | solaris2.[0-5].*) ;;
8220 # The compiler driver will combine and reorder linker options,
8221 # but understands `-z linker_flag'. GCC discards it without `$wl',
8222 # but is careful enough not to reorder.
8223 # Supported since Solaris 2.6 (maybe 2.5.1?)
8224 if test "$GCC" = yes; then
8225 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8226 else
8227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8230 esac
8231 link_all_deplibs=yes
8234 sunos4*)
8235 if test "x$host_vendor" = xsequent; then
8236 # Use $CC to link under sequent, because it throws in some extra .o
8237 # files that make .init and .fini sections work.
8238 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8239 else
8240 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8242 hardcode_libdir_flag_spec='-L$libdir'
8243 hardcode_direct=yes
8244 hardcode_minus_L=yes
8245 hardcode_shlibpath_var=no
8248 sysv4)
8249 case $host_vendor in
8250 sni)
8251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8252 hardcode_direct=yes # is this really true???
8254 siemens)
8255 ## LD is ld it makes a PLAMLIB
8256 ## CC just makes a GrossModule.
8257 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8258 reload_cmds='$CC -r -o $output$reload_objs'
8259 hardcode_direct=no
8261 motorola)
8262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8263 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8265 esac
8266 runpath_var='LD_RUN_PATH'
8267 hardcode_shlibpath_var=no
8270 sysv4.3*)
8271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8272 hardcode_shlibpath_var=no
8273 export_dynamic_flag_spec='-Bexport'
8276 sysv4*MP*)
8277 if test -d /usr/nec; then
8278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_shlibpath_var=no
8280 runpath_var=LD_RUN_PATH
8281 hardcode_runpath_var=yes
8282 ld_shlibs=yes
8286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8287 no_undefined_flag='${wl}-z,text'
8288 archive_cmds_need_lc=no
8289 hardcode_shlibpath_var=no
8290 runpath_var='LD_RUN_PATH'
8292 if test "$GCC" = yes; then
8293 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8294 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8295 else
8296 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8297 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 sysv5* | sco3.2v5* | sco5v6*)
8302 # Note: We can NOT use -z defs as we might desire, because we do not
8303 # link with -lc, and that would cause any symbols used from libc to
8304 # always be unresolved, which means just about no library would
8305 # ever link correctly. If we're not using GNU ld we use -z text
8306 # though, which does catch some bad symbols but isn't as heavy-handed
8307 # as -z defs.
8308 no_undefined_flag='${wl}-z,text'
8309 allow_undefined_flag='${wl}-z,nodefs'
8310 archive_cmds_need_lc=no
8311 hardcode_shlibpath_var=no
8312 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8313 hardcode_libdir_separator=':'
8314 link_all_deplibs=yes
8315 export_dynamic_flag_spec='${wl}-Bexport'
8316 runpath_var='LD_RUN_PATH'
8318 if test "$GCC" = yes; then
8319 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8321 else
8322 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8323 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8327 uts4*)
8328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8329 hardcode_libdir_flag_spec='-L$libdir'
8330 hardcode_shlibpath_var=no
8334 ld_shlibs=no
8336 esac
8339 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8340 echo "${ECHO_T}$ld_shlibs" >&6; }
8341 test "$ld_shlibs" = no && can_build_shared=no
8344 # Do we need to explicitly link libc?
8346 case "x$archive_cmds_need_lc" in
8347 x|xyes)
8348 # Assume -lc should be added
8349 archive_cmds_need_lc=yes
8351 if test "$enable_shared" = yes && test "$GCC" = yes; then
8352 case $archive_cmds in
8353 *'~'*)
8354 # FIXME: we may have to deal with multi-command sequences.
8356 '$CC '*)
8357 # Test whether the compiler implicitly links with -lc since on some
8358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8359 # to ld, don't add -lc before -lgcc.
8360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8362 $rm conftest*
8363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } 2>conftest.err; then
8370 soname=conftest
8371 lib=conftest
8372 libobjs=conftest.$ac_objext
8373 deplibs=
8374 wl=$lt_prog_compiler_wl
8375 pic_flag=$lt_prog_compiler_pic
8376 compiler_flags=-v
8377 linker_flags=-v
8378 verstring=
8379 output_objdir=.
8380 libname=conftest
8381 lt_save_allow_undefined_flag=$allow_undefined_flag
8382 allow_undefined_flag=
8383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8384 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }
8388 then
8389 archive_cmds_need_lc=no
8390 else
8391 archive_cmds_need_lc=yes
8393 allow_undefined_flag=$lt_save_allow_undefined_flag
8394 else
8395 cat conftest.err 1>&5
8397 $rm conftest*
8398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8399 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8401 esac
8404 esac
8406 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8408 library_names_spec=
8409 libname_spec='lib$name'
8410 soname_spec=
8411 shrext_cmds=".so"
8412 postinstall_cmds=
8413 postuninstall_cmds=
8414 finish_cmds=
8415 finish_eval=
8416 shlibpath_var=
8417 shlibpath_overrides_runpath=unknown
8418 version_type=none
8419 dynamic_linker="$host_os ld.so"
8420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8422 if test "$GCC" = yes; then
8423 case $host_os in
8424 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8425 *) lt_awk_arg="/^libraries:/" ;;
8426 esac
8427 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8428 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8429 # if the path contains ";" then we assume it to be the separator
8430 # otherwise default to the standard path separator (i.e. ":") - it is
8431 # assumed that no part of a normal pathname contains ";" but that should
8432 # okay in the real world where ";" in dirpaths is itself problematic.
8433 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8434 else
8435 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8437 # Ok, now we have the path, separated by spaces, we can step through it
8438 # and add multilib dir if necessary.
8439 lt_tmp_lt_search_path_spec=
8440 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8441 for lt_sys_path in $lt_search_path_spec; do
8442 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8443 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8444 else
8445 test -d "$lt_sys_path" && \
8446 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8448 done
8449 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8450 BEGIN {RS=" "; FS="/|\n";} {
8451 lt_foo="";
8452 lt_count=0;
8453 for (lt_i = NF; lt_i > 0; lt_i--) {
8454 if ($lt_i != "" && $lt_i != ".") {
8455 if ($lt_i == "..") {
8456 lt_count++;
8457 } else {
8458 if (lt_count == 0) {
8459 lt_foo="/" $lt_i lt_foo;
8460 } else {
8461 lt_count--;
8466 if (lt_foo != "") { lt_freq[lt_foo]++; }
8467 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8469 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8470 else
8471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8473 need_lib_prefix=unknown
8474 hardcode_into_libs=no
8476 # when you set need_version to no, make sure it does not cause -set_version
8477 # flags to be left without arguments
8478 need_version=unknown
8480 case $host_os in
8481 aix3*)
8482 version_type=linux
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8484 shlibpath_var=LIBPATH
8486 # AIX 3 has no versioning support, so we append a major version to the name.
8487 soname_spec='${libname}${release}${shared_ext}$major'
8490 aix[4-9]*)
8491 version_type=linux
8492 need_lib_prefix=no
8493 need_version=no
8494 hardcode_into_libs=yes
8495 if test "$host_cpu" = ia64; then
8496 # AIX 5 supports IA64
8497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8498 shlibpath_var=LD_LIBRARY_PATH
8499 else
8500 # With GCC up to 2.95.x, collect2 would create an import file
8501 # for dependence libraries. The import file would start with
8502 # the line `#! .'. This would cause the generated library to
8503 # depend on `.', always an invalid library. This was fixed in
8504 # development snapshots of GCC prior to 3.0.
8505 case $host_os in
8506 aix4 | aix4.[01] | aix4.[01].*)
8507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8508 echo ' yes '
8509 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8511 else
8512 can_build_shared=no
8515 esac
8516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8517 # soname into executable. Probably we can add versioning support to
8518 # collect2, so additional links can be useful in future.
8519 if test "$aix_use_runtimelinking" = yes; then
8520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8521 # instead of lib<name>.a to let people know that these are not
8522 # typical AIX shared libraries.
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8524 else
8525 # We preserve .a as extension for shared libraries through AIX4.2
8526 # and later when we are not doing run time linking.
8527 library_names_spec='${libname}${release}.a $libname.a'
8528 soname_spec='${libname}${release}${shared_ext}$major'
8530 shlibpath_var=LIBPATH
8534 amigaos*)
8535 library_names_spec='$libname.ixlibrary $libname.a'
8536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8537 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8540 beos*)
8541 library_names_spec='${libname}${shared_ext}'
8542 dynamic_linker="$host_os ld.so"
8543 shlibpath_var=LIBRARY_PATH
8546 bsdi[45]*)
8547 version_type=linux
8548 need_version=no
8549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550 soname_spec='${libname}${release}${shared_ext}$major'
8551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8552 shlibpath_var=LD_LIBRARY_PATH
8553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8555 # the default ld.so.conf also contains /usr/contrib/lib and
8556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8557 # libtool to hard-code these into programs
8560 cygwin* | mingw* | pw32*)
8561 version_type=windows
8562 shrext_cmds=".dll"
8563 need_version=no
8564 need_lib_prefix=no
8566 case $GCC,$host_os in
8567 yes,cygwin* | yes,mingw* | yes,pw32*)
8568 library_names_spec='$libname.dll.a'
8569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8570 postinstall_cmds='base_file=`basename \${file}`~
8571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8572 dldir=$destdir/`dirname \$dlpath`~
8573 test -d \$dldir || mkdir -p \$dldir~
8574 $install_prog $dir/$dlname \$dldir/$dlname~
8575 chmod a+x \$dldir/$dlname'
8576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8577 dlpath=$dir/\$dldll~
8578 $rm \$dlpath'
8579 shlibpath_overrides_runpath=yes
8581 case $host_os in
8582 cygwin*)
8583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8585 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8587 mingw*)
8588 # MinGW DLLs use traditional 'lib' prefix
8589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8591 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8592 # It is most probably a Windows format PATH printed by
8593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8594 # path with ; separators, and with drive letters. We can handle the
8595 # drive letters (cygwin fileutils understands them), so leave them,
8596 # especially as we might pass files found there to a mingw objdump,
8597 # which wouldn't understand a cygwinified path. Ahh.
8598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8599 else
8600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8603 pw32*)
8604 # pw32 DLLs use 'pw' prefix rather than 'lib'
8605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8607 esac
8611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8613 esac
8614 dynamic_linker='Win32 ld.exe'
8615 # FIXME: first we should search . and the directory the executable is in
8616 shlibpath_var=PATH
8619 darwin* | rhapsody*)
8620 dynamic_linker="$host_os dyld"
8621 version_type=darwin
8622 need_lib_prefix=no
8623 need_version=no
8624 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8625 soname_spec='${libname}${release}${major}$shared_ext'
8626 shlibpath_overrides_runpath=yes
8627 shlibpath_var=DYLD_LIBRARY_PATH
8628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8630 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8631 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8634 dgux*)
8635 version_type=linux
8636 need_lib_prefix=no
8637 need_version=no
8638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8639 soname_spec='${libname}${release}${shared_ext}$major'
8640 shlibpath_var=LD_LIBRARY_PATH
8643 freebsd1*)
8644 dynamic_linker=no
8647 freebsd* | dragonfly*)
8648 # DragonFly does not have aout. When/if they implement a new
8649 # versioning mechanism, adjust this.
8650 if test -x /usr/bin/objformat; then
8651 objformat=`/usr/bin/objformat`
8652 else
8653 case $host_os in
8654 freebsd[123]*) objformat=aout ;;
8655 *) objformat=elf ;;
8656 esac
8658 version_type=freebsd-$objformat
8659 case $version_type in
8660 freebsd-elf*)
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8662 need_version=no
8663 need_lib_prefix=no
8665 freebsd-*)
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8667 need_version=yes
8669 esac
8670 shlibpath_var=LD_LIBRARY_PATH
8671 case $host_os in
8672 freebsd2*)
8673 shlibpath_overrides_runpath=yes
8675 freebsd3.[01]* | freebsdelf3.[01]*)
8676 shlibpath_overrides_runpath=yes
8677 hardcode_into_libs=yes
8679 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8680 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8681 shlibpath_overrides_runpath=no
8682 hardcode_into_libs=yes
8684 *) # from 4.6 on, and DragonFly
8685 shlibpath_overrides_runpath=yes
8686 hardcode_into_libs=yes
8688 esac
8691 gnu*)
8692 version_type=linux
8693 need_lib_prefix=no
8694 need_version=no
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 shlibpath_var=LD_LIBRARY_PATH
8698 hardcode_into_libs=yes
8701 hpux9* | hpux10* | hpux11*)
8702 # Give a soname corresponding to the major version so that dld.sl refuses to
8703 # link against other versions.
8704 version_type=sunos
8705 need_lib_prefix=no
8706 need_version=no
8707 case $host_cpu in
8708 ia64*)
8709 shrext_cmds='.so'
8710 hardcode_into_libs=yes
8711 dynamic_linker="$host_os dld.so"
8712 shlibpath_var=LD_LIBRARY_PATH
8713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8715 soname_spec='${libname}${release}${shared_ext}$major'
8716 if test "X$HPUX_IA64_MODE" = X32; then
8717 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8718 else
8719 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8723 hppa*64*)
8724 shrext_cmds='.sl'
8725 hardcode_into_libs=yes
8726 dynamic_linker="$host_os dld.sl"
8727 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8731 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8735 shrext_cmds='.sl'
8736 dynamic_linker="$host_os dld.sl"
8737 shlibpath_var=SHLIB_PATH
8738 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740 soname_spec='${libname}${release}${shared_ext}$major'
8742 esac
8743 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8744 postinstall_cmds='chmod 555 $lib'
8747 interix[3-9]*)
8748 version_type=linux
8749 need_lib_prefix=no
8750 need_version=no
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8754 shlibpath_var=LD_LIBRARY_PATH
8755 shlibpath_overrides_runpath=no
8756 hardcode_into_libs=yes
8759 irix5* | irix6* | nonstopux*)
8760 case $host_os in
8761 nonstopux*) version_type=nonstopux ;;
8763 if test "$lt_cv_prog_gnu_ld" = yes; then
8764 version_type=linux
8765 else
8766 version_type=irix
8767 fi ;;
8768 esac
8769 need_lib_prefix=no
8770 need_version=no
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8773 case $host_os in
8774 irix5* | nonstopux*)
8775 libsuff= shlibsuff=
8778 case $LD in # libtool.m4 will add one of these switches to LD
8779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8780 libsuff= shlibsuff= libmagic=32-bit;;
8781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8782 libsuff=32 shlibsuff=N32 libmagic=N32;;
8783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8784 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8785 *) libsuff= shlibsuff= libmagic=never-match;;
8786 esac
8788 esac
8789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8790 shlibpath_overrides_runpath=no
8791 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8792 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8793 hardcode_into_libs=yes
8796 # No shared lib support for Linux oldld, aout, or coff.
8797 linux*oldld* | linux*aout* | linux*coff*)
8798 dynamic_linker=no
8801 # This must be Linux ELF.
8802 linux* | k*bsd*-gnu)
8803 version_type=linux
8804 need_lib_prefix=no
8805 need_version=no
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8809 shlibpath_var=LD_LIBRARY_PATH
8810 shlibpath_overrides_runpath=no
8811 # This implies no fast_install, which is unacceptable.
8812 # Some rework will be needed to allow for fast_install
8813 # before this can be enabled.
8814 hardcode_into_libs=yes
8816 # Append ld.so.conf contents to the search path
8817 if test -f /etc/ld.so.conf; then
8818 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8822 # We used to test for /lib/ld.so.1 and disable shared libraries on
8823 # powerpc, because MkLinux only supported shared libraries with the
8824 # GNU dynamic linker. Since this was broken with cross compilers,
8825 # most powerpc-linux boxes support dynamic linking these days and
8826 # people can always --disable-shared, the test was removed, and we
8827 # assume the GNU/Linux dynamic linker is in use.
8828 dynamic_linker='GNU/Linux ld.so'
8831 netbsd*)
8832 version_type=sunos
8833 need_lib_prefix=no
8834 need_version=no
8835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8838 dynamic_linker='NetBSD (a.out) ld.so'
8839 else
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 dynamic_linker='NetBSD ld.elf_so'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 shlibpath_overrides_runpath=yes
8846 hardcode_into_libs=yes
8849 newsos6)
8850 version_type=linux
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 shlibpath_var=LD_LIBRARY_PATH
8853 shlibpath_overrides_runpath=yes
8856 nto-qnx*)
8857 version_type=linux
8858 need_lib_prefix=no
8859 need_version=no
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 shlibpath_var=LD_LIBRARY_PATH
8863 shlibpath_overrides_runpath=yes
8866 openbsd*)
8867 version_type=sunos
8868 sys_lib_dlsearch_path_spec="/usr/lib"
8869 need_lib_prefix=no
8870 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8871 case $host_os in
8872 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8873 *) need_version=no ;;
8874 esac
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8879 case $host_os in
8880 openbsd2.[89] | openbsd2.[89].*)
8881 shlibpath_overrides_runpath=no
8884 shlibpath_overrides_runpath=yes
8886 esac
8887 else
8888 shlibpath_overrides_runpath=yes
8892 os2*)
8893 libname_spec='$name'
8894 shrext_cmds=".dll"
8895 need_lib_prefix=no
8896 library_names_spec='$libname${shared_ext} $libname.a'
8897 dynamic_linker='OS/2 ld.exe'
8898 shlibpath_var=LIBPATH
8901 osf3* | osf4* | osf5*)
8902 version_type=osf
8903 need_lib_prefix=no
8904 need_version=no
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8912 rdos*)
8913 dynamic_linker=no
8916 solaris*)
8917 version_type=linux
8918 need_lib_prefix=no
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=yes
8924 hardcode_into_libs=yes
8925 # ldd complains unless libraries are executable
8926 postinstall_cmds='chmod +x $lib'
8929 sunos4*)
8930 version_type=sunos
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8932 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8935 if test "$with_gnu_ld" = yes; then
8936 need_lib_prefix=no
8938 need_version=yes
8941 sysv4 | sysv4.3*)
8942 version_type=linux
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 case $host_vendor in
8947 sni)
8948 shlibpath_overrides_runpath=no
8949 need_lib_prefix=no
8950 export_dynamic_flag_spec='${wl}-Blargedynsym'
8951 runpath_var=LD_RUN_PATH
8953 siemens)
8954 need_lib_prefix=no
8956 motorola)
8957 need_lib_prefix=no
8958 need_version=no
8959 shlibpath_overrides_runpath=no
8960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8962 esac
8965 sysv4*MP*)
8966 if test -d /usr/nec ;then
8967 version_type=linux
8968 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8969 soname_spec='$libname${shared_ext}.$major'
8970 shlibpath_var=LD_LIBRARY_PATH
8974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8975 version_type=freebsd-elf
8976 need_lib_prefix=no
8977 need_version=no
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 hardcode_into_libs=yes
8982 if test "$with_gnu_ld" = yes; then
8983 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8984 shlibpath_overrides_runpath=no
8985 else
8986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8987 shlibpath_overrides_runpath=yes
8988 case $host_os in
8989 sco3.2v5*)
8990 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8992 esac
8994 sys_lib_dlsearch_path_spec='/usr/lib'
8997 uts4*)
8998 version_type=linux
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9005 dynamic_linker=no
9007 esac
9008 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9009 echo "${ECHO_T}$dynamic_linker" >&6; }
9010 test "$dynamic_linker" = no && can_build_shared=no
9012 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9018 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9019 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9025 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9027 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9028 if test "$GCC" = yes; then
9029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9032 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9033 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9034 hardcode_action=
9035 if test -n "$hardcode_libdir_flag_spec" || \
9036 test -n "$runpath_var" || \
9037 test "X$hardcode_automatic" = "Xyes" ; then
9039 # We can hardcode non-existant directories.
9040 if test "$hardcode_direct" != no &&
9041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9042 # have to relink, otherwise we might link with an installed library
9043 # when we should be linking with a yet-to-be-installed one
9044 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9045 test "$hardcode_minus_L" != no; then
9046 # Linking always hardcodes the temporary library directory.
9047 hardcode_action=relink
9048 else
9049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9050 hardcode_action=immediate
9052 else
9053 # We cannot hardcode anything, or else we can only hardcode existing
9054 # directories.
9055 hardcode_action=unsupported
9057 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9058 echo "${ECHO_T}$hardcode_action" >&6; }
9060 if test "$hardcode_action" = relink; then
9061 # Fast installation is not supported
9062 enable_fast_install=no
9063 elif test "$shlibpath_overrides_runpath" = yes ||
9064 test "$enable_shared" = no; then
9065 # Fast installation is not necessary
9066 enable_fast_install=needless
9069 striplib=
9070 old_striplib=
9071 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9072 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9073 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9074 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9075 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9076 { echo "$as_me:$LINENO: result: yes" >&5
9077 echo "${ECHO_T}yes" >&6; }
9078 else
9079 # FIXME - insert some real tests, host_os isn't really good enough
9080 case $host_os in
9081 darwin*)
9082 if test -n "$STRIP" ; then
9083 striplib="$STRIP -x"
9084 old_striplib="$STRIP -S"
9085 { echo "$as_me:$LINENO: result: yes" >&5
9086 echo "${ECHO_T}yes" >&6; }
9087 else
9088 { echo "$as_me:$LINENO: result: no" >&5
9089 echo "${ECHO_T}no" >&6; }
9093 { echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6; }
9096 esac
9099 if test "x$enable_dlopen" != xyes; then
9100 enable_dlopen=unknown
9101 enable_dlopen_self=unknown
9102 enable_dlopen_self_static=unknown
9103 else
9104 lt_cv_dlopen=no
9105 lt_cv_dlopen_libs=
9107 case $host_os in
9108 beos*)
9109 lt_cv_dlopen="load_add_on"
9110 lt_cv_dlopen_libs=
9111 lt_cv_dlopen_self=yes
9114 mingw* | pw32*)
9115 lt_cv_dlopen="LoadLibrary"
9116 lt_cv_dlopen_libs=
9119 cygwin*)
9120 lt_cv_dlopen="dlopen"
9121 lt_cv_dlopen_libs=
9124 darwin*)
9125 # if libdl is installed we need to link against it
9126 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9127 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9128 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 ac_check_lib_save_LIBS=$LIBS
9132 LIBS="-ldl $LIBS"
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h. */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 char dlopen ();
9148 main ()
9150 return dlopen ();
9152 return 0;
9154 _ACEOF
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (ac_try="$ac_link"
9157 case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_link") 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest$ac_exeext &&
9172 $as_test_x conftest$ac_exeext; then
9173 ac_cv_lib_dl_dlopen=yes
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 ac_cv_lib_dl_dlopen=no
9181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9182 conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_check_lib_save_LIBS
9185 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9186 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9187 if test $ac_cv_lib_dl_dlopen = yes; then
9188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9189 else
9191 lt_cv_dlopen="dyld"
9192 lt_cv_dlopen_libs=
9193 lt_cv_dlopen_self=yes
9200 { echo "$as_me:$LINENO: checking for shl_load" >&5
9201 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9202 if test "${ac_cv_func_shl_load+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9213 #define shl_load innocuous_shl_load
9215 /* System header to define __stub macros and hopefully few prototypes,
9216 which can conflict with char shl_load (); below.
9217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9218 <limits.h> exists even on freestanding compilers. */
9220 #ifdef __STDC__
9221 # include <limits.h>
9222 #else
9223 # include <assert.h>
9224 #endif
9226 #undef shl_load
9228 /* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9231 #ifdef __cplusplus
9232 extern "C"
9233 #endif
9234 char shl_load ();
9235 /* The GNU C library defines this for functions which it implements
9236 to always fail with ENOSYS. Some functions are actually named
9237 something starting with __ and the normal name is an alias. */
9238 #if defined __stub_shl_load || defined __stub___shl_load
9239 choke me
9240 #endif
9243 main ()
9245 return shl_load ();
9247 return 0;
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (ac_try="$ac_link"
9252 case "(($ac_try" in
9253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254 *) ac_try_echo=$ac_try;;
9255 esac
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_link") 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && {
9264 test -z "$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9266 } && test -s conftest$ac_exeext &&
9267 $as_test_x conftest$ac_exeext; then
9268 ac_cv_func_shl_load=yes
9269 else
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 ac_cv_func_shl_load=no
9276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9277 conftest$ac_exeext conftest.$ac_ext
9279 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9280 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9281 if test $ac_cv_func_shl_load = yes; then
9282 lt_cv_dlopen="shl_load"
9283 else
9284 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9285 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9286 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289 ac_check_lib_save_LIBS=$LIBS
9290 LIBS="-ldld $LIBS"
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char shl_load ();
9306 main ()
9308 return shl_load ();
9310 return 0;
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9315 case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9318 esac
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_link") 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest$ac_exeext &&
9330 $as_test_x conftest$ac_exeext; then
9331 ac_cv_lib_dld_shl_load=yes
9332 else
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_cv_lib_dld_shl_load=no
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9343 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9344 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9345 if test $ac_cv_lib_dld_shl_load = yes; then
9346 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9347 else
9348 { echo "$as_me:$LINENO: checking for dlopen" >&5
9349 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9350 if test "${ac_cv_func_dlopen+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9361 #define dlopen innocuous_dlopen
9363 /* System header to define __stub macros and hopefully few prototypes,
9364 which can conflict with char dlopen (); below.
9365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9366 <limits.h> exists even on freestanding compilers. */
9368 #ifdef __STDC__
9369 # include <limits.h>
9370 #else
9371 # include <assert.h>
9372 #endif
9374 #undef dlopen
9376 /* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9379 #ifdef __cplusplus
9380 extern "C"
9381 #endif
9382 char dlopen ();
9383 /* The GNU C library defines this for functions which it implements
9384 to always fail with ENOSYS. Some functions are actually named
9385 something starting with __ and the normal name is an alias. */
9386 #if defined __stub_dlopen || defined __stub___dlopen
9387 choke me
9388 #endif
9391 main ()
9393 return dlopen ();
9395 return 0;
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (ac_try="$ac_link"
9400 case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9403 esac
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_link") 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest$ac_exeext &&
9415 $as_test_x conftest$ac_exeext; then
9416 ac_cv_func_dlopen=yes
9417 else
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ac_cv_func_dlopen=no
9424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9425 conftest$ac_exeext conftest.$ac_ext
9427 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9428 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9429 if test $ac_cv_func_dlopen = yes; then
9430 lt_cv_dlopen="dlopen"
9431 else
9432 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9433 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9434 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437 ac_check_lib_save_LIBS=$LIBS
9438 LIBS="-ldl $LIBS"
9439 cat >conftest.$ac_ext <<_ACEOF
9440 /* confdefs.h. */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9446 /* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 char dlopen ();
9454 main ()
9456 return dlopen ();
9458 return 0;
9460 _ACEOF
9461 rm -f conftest.$ac_objext conftest$ac_exeext
9462 if { (ac_try="$ac_link"
9463 case "(($ac_try" in
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_link") 2>conftest.er1
9469 ac_status=$?
9470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest$ac_exeext &&
9478 $as_test_x conftest$ac_exeext; then
9479 ac_cv_lib_dl_dlopen=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ac_cv_lib_dl_dlopen=no
9487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9488 conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9491 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9492 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9493 if test $ac_cv_lib_dl_dlopen = yes; then
9494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9495 else
9496 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9497 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9498 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 ac_check_lib_save_LIBS=$LIBS
9502 LIBS="-lsvld $LIBS"
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9510 /* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 char dlopen ();
9518 main ()
9520 return dlopen ();
9522 return 0;
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_cv_lib_svld_dlopen=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_cv_lib_svld_dlopen=no
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9555 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9556 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9557 if test $ac_cv_lib_svld_dlopen = yes; then
9558 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9559 else
9560 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9561 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9562 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 ac_check_lib_save_LIBS=$LIBS
9566 LIBS="-ldld $LIBS"
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9577 #ifdef __cplusplus
9578 extern "C"
9579 #endif
9580 char dld_link ();
9582 main ()
9584 return dld_link ();
9586 return 0;
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (ac_try="$ac_link"
9591 case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_link") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest$ac_exeext &&
9606 $as_test_x conftest$ac_exeext; then
9607 ac_cv_lib_dld_dld_link=yes
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_lib_dld_dld_link=no
9615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9619 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9620 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9621 if test $ac_cv_lib_dld_dld_link = yes; then
9622 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9641 esac
9643 if test "x$lt_cv_dlopen" != xno; then
9644 enable_dlopen=yes
9645 else
9646 enable_dlopen=no
9649 case $lt_cv_dlopen in
9650 dlopen)
9651 save_CPPFLAGS="$CPPFLAGS"
9652 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9654 save_LDFLAGS="$LDFLAGS"
9655 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9657 save_LIBS="$LIBS"
9658 LIBS="$lt_cv_dlopen_libs $LIBS"
9660 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9661 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9662 if test "${lt_cv_dlopen_self+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665 if test "$cross_compiling" = yes; then :
9666 lt_cv_dlopen_self=cross
9667 else
9668 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9669 lt_status=$lt_dlunknown
9670 cat > conftest.$ac_ext <<EOF
9671 #line 9671 "configure"
9672 #include "confdefs.h"
9674 #if HAVE_DLFCN_H
9675 #include <dlfcn.h>
9676 #endif
9678 #include <stdio.h>
9680 #ifdef RTLD_GLOBAL
9681 # define LT_DLGLOBAL RTLD_GLOBAL
9682 #else
9683 # ifdef DL_GLOBAL
9684 # define LT_DLGLOBAL DL_GLOBAL
9685 # else
9686 # define LT_DLGLOBAL 0
9687 # endif
9688 #endif
9690 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9691 find out it does not work in some platform. */
9692 #ifndef LT_DLLAZY_OR_NOW
9693 # ifdef RTLD_LAZY
9694 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9695 # else
9696 # ifdef DL_LAZY
9697 # define LT_DLLAZY_OR_NOW DL_LAZY
9698 # else
9699 # ifdef RTLD_NOW
9700 # define LT_DLLAZY_OR_NOW RTLD_NOW
9701 # else
9702 # ifdef DL_NOW
9703 # define LT_DLLAZY_OR_NOW DL_NOW
9704 # else
9705 # define LT_DLLAZY_OR_NOW 0
9706 # endif
9707 # endif
9708 # endif
9709 # endif
9710 #endif
9712 #ifdef __cplusplus
9713 extern "C" void exit (int);
9714 #endif
9716 void fnord() { int i=42;}
9717 int main ()
9719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9720 int status = $lt_dlunknown;
9722 if (self)
9724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9725 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9726 /* dlclose (self); */
9728 else
9729 puts (dlerror ());
9731 exit (status);
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9739 (./conftest; exit; ) >&5 2>/dev/null
9740 lt_status=$?
9741 case x$lt_status in
9742 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9743 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9744 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9745 esac
9746 else :
9747 # compilation failed
9748 lt_cv_dlopen_self=no
9751 rm -fr conftest*
9755 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9756 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9758 if test "x$lt_cv_dlopen_self" = xyes; then
9759 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9760 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9761 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9762 if test "${lt_cv_dlopen_self_static+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 if test "$cross_compiling" = yes; then :
9766 lt_cv_dlopen_self_static=cross
9767 else
9768 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9769 lt_status=$lt_dlunknown
9770 cat > conftest.$ac_ext <<EOF
9771 #line 9771 "configure"
9772 #include "confdefs.h"
9774 #if HAVE_DLFCN_H
9775 #include <dlfcn.h>
9776 #endif
9778 #include <stdio.h>
9780 #ifdef RTLD_GLOBAL
9781 # define LT_DLGLOBAL RTLD_GLOBAL
9782 #else
9783 # ifdef DL_GLOBAL
9784 # define LT_DLGLOBAL DL_GLOBAL
9785 # else
9786 # define LT_DLGLOBAL 0
9787 # endif
9788 #endif
9790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9791 find out it does not work in some platform. */
9792 #ifndef LT_DLLAZY_OR_NOW
9793 # ifdef RTLD_LAZY
9794 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9795 # else
9796 # ifdef DL_LAZY
9797 # define LT_DLLAZY_OR_NOW DL_LAZY
9798 # else
9799 # ifdef RTLD_NOW
9800 # define LT_DLLAZY_OR_NOW RTLD_NOW
9801 # else
9802 # ifdef DL_NOW
9803 # define LT_DLLAZY_OR_NOW DL_NOW
9804 # else
9805 # define LT_DLLAZY_OR_NOW 0
9806 # endif
9807 # endif
9808 # endif
9809 # endif
9810 #endif
9812 #ifdef __cplusplus
9813 extern "C" void exit (int);
9814 #endif
9816 void fnord() { int i=42;}
9817 int main ()
9819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9820 int status = $lt_dlunknown;
9822 if (self)
9824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9825 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9826 /* dlclose (self); */
9828 else
9829 puts (dlerror ());
9831 exit (status);
9834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9835 (eval $ac_link) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9839 (./conftest; exit; ) >&5 2>/dev/null
9840 lt_status=$?
9841 case x$lt_status in
9842 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9843 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9844 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9845 esac
9846 else :
9847 # compilation failed
9848 lt_cv_dlopen_self_static=no
9851 rm -fr conftest*
9855 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9856 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9859 CPPFLAGS="$save_CPPFLAGS"
9860 LDFLAGS="$save_LDFLAGS"
9861 LIBS="$save_LIBS"
9863 esac
9865 case $lt_cv_dlopen_self in
9866 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9867 *) enable_dlopen_self=unknown ;;
9868 esac
9870 case $lt_cv_dlopen_self_static in
9871 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9872 *) enable_dlopen_self_static=unknown ;;
9873 esac
9877 # Report which library types will actually be built
9878 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9879 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9880 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9881 echo "${ECHO_T}$can_build_shared" >&6; }
9883 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9884 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9885 test "$can_build_shared" = "no" && enable_shared=no
9887 # On AIX, shared libraries and static libraries use the same namespace, and
9888 # are all built from PIC.
9889 case $host_os in
9890 aix3*)
9891 test "$enable_shared" = yes && enable_static=no
9892 if test -n "$RANLIB"; then
9893 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9894 postinstall_cmds='$RANLIB $lib'
9898 aix[4-9]*)
9899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9900 test "$enable_shared" = yes && enable_static=no
9903 esac
9904 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9905 echo "${ECHO_T}$enable_shared" >&6; }
9907 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9908 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9909 # Make sure either enable_shared or enable_static is yes.
9910 test "$enable_shared" = yes || enable_static=yes
9911 { echo "$as_me:$LINENO: result: $enable_static" >&5
9912 echo "${ECHO_T}$enable_static" >&6; }
9914 # The else clause should only fire when bootstrapping the
9915 # libtool distribution, otherwise you forgot to ship ltmain.sh
9916 # with your package, and you will get complaints that there are
9917 # no rules to generate ltmain.sh.
9918 if test -f "$ltmain"; then
9919 # See if we are running on zsh, and set the options which allow our commands through
9920 # without removal of \ escapes.
9921 if test -n "${ZSH_VERSION+set}" ; then
9922 setopt NO_GLOB_SUBST
9924 # Now quote all the things that may contain metacharacters while being
9925 # careful not to overquote the AC_SUBSTed values. We take copies of the
9926 # variables and quote the copies for generation of the libtool script.
9927 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9928 SED SHELL STRIP \
9929 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9930 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9931 deplibs_check_method reload_flag reload_cmds need_locks \
9932 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9933 lt_cv_sys_global_symbol_to_c_name_address \
9934 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9935 old_postinstall_cmds old_postuninstall_cmds \
9936 compiler \
9937 CC \
9938 LD \
9939 lt_prog_compiler_wl \
9940 lt_prog_compiler_pic \
9941 lt_prog_compiler_static \
9942 lt_prog_compiler_no_builtin_flag \
9943 export_dynamic_flag_spec \
9944 thread_safe_flag_spec \
9945 whole_archive_flag_spec \
9946 enable_shared_with_static_runtimes \
9947 old_archive_cmds \
9948 old_archive_from_new_cmds \
9949 predep_objects \
9950 postdep_objects \
9951 predeps \
9952 postdeps \
9953 compiler_lib_search_path \
9954 compiler_lib_search_dirs \
9955 archive_cmds \
9956 archive_expsym_cmds \
9957 postinstall_cmds \
9958 postuninstall_cmds \
9959 old_archive_from_expsyms_cmds \
9960 allow_undefined_flag \
9961 no_undefined_flag \
9962 export_symbols_cmds \
9963 hardcode_libdir_flag_spec \
9964 hardcode_libdir_flag_spec_ld \
9965 hardcode_libdir_separator \
9966 hardcode_automatic \
9967 module_cmds \
9968 module_expsym_cmds \
9969 lt_cv_prog_compiler_c_o \
9970 fix_srcfile_path \
9971 exclude_expsyms \
9972 include_expsyms; do
9974 case $var in
9975 old_archive_cmds | \
9976 old_archive_from_new_cmds | \
9977 archive_cmds | \
9978 archive_expsym_cmds | \
9979 module_cmds | \
9980 module_expsym_cmds | \
9981 old_archive_from_expsyms_cmds | \
9982 export_symbols_cmds | \
9983 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9984 postinstall_cmds | postuninstall_cmds | \
9985 old_postinstall_cmds | old_postuninstall_cmds | \
9986 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9987 # Double-quote double-evaled strings.
9988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9991 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9993 esac
9994 done
9996 case $lt_echo in
9997 *'\$0 --fallback-echo"')
9998 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10000 esac
10002 cfgfile="${ofile}T"
10003 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10004 $rm -f "$cfgfile"
10005 { echo "$as_me:$LINENO: creating $ofile" >&5
10006 echo "$as_me: creating $ofile" >&6;}
10008 cat <<__EOF__ >> "$cfgfile"
10009 #! $SHELL
10011 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10012 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10013 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10015 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10016 # Free Software Foundation, Inc.
10018 # This file is part of GNU Libtool:
10019 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10021 # This program is free software; you can redistribute it and/or modify
10022 # it under the terms of the GNU General Public License as published by
10023 # the Free Software Foundation; either version 2 of the License, or
10024 # (at your option) any later version.
10026 # This program is distributed in the hope that it will be useful, but
10027 # WITHOUT ANY WARRANTY; without even the implied warranty of
10028 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10029 # General Public License for more details.
10031 # You should have received a copy of the GNU General Public License
10032 # along with this program; if not, write to the Free Software
10033 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10035 # As a special exception to the GNU General Public License, if you
10036 # distribute this file as part of a program that contains a
10037 # configuration script generated by Autoconf, you may include it under
10038 # the same distribution terms that you use for the rest of that program.
10040 # A sed program that does not truncate output.
10041 SED=$lt_SED
10043 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10044 Xsed="$SED -e 1s/^X//"
10046 # The HP-UX ksh and POSIX shell print the target directory to stdout
10047 # if CDPATH is set.
10048 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10050 # The names of the tagged configurations supported by this script.
10051 available_tags=
10053 # ### BEGIN LIBTOOL CONFIG
10055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10057 # Shell to use when invoking shell scripts.
10058 SHELL=$lt_SHELL
10060 # Whether or not to build shared libraries.
10061 build_libtool_libs=$enable_shared
10063 # Whether or not to build static libraries.
10064 build_old_libs=$enable_static
10066 # Whether or not to add -lc for building shared libraries.
10067 build_libtool_need_lc=$archive_cmds_need_lc
10069 # Whether or not to disallow shared libs when runtime libs are static
10070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10072 # Whether or not to optimize for fast installation.
10073 fast_install=$enable_fast_install
10075 # The host system.
10076 host_alias=$host_alias
10077 host=$host
10078 host_os=$host_os
10080 # The build system.
10081 build_alias=$build_alias
10082 build=$build
10083 build_os=$build_os
10085 # An echo program that does not interpret backslashes.
10086 echo=$lt_echo
10088 # The archiver.
10089 AR=$lt_AR
10090 AR_FLAGS=$lt_AR_FLAGS
10092 # A C compiler.
10093 LTCC=$lt_LTCC
10095 # LTCC compiler flags.
10096 LTCFLAGS=$lt_LTCFLAGS
10098 # A language-specific compiler.
10099 CC=$lt_compiler
10101 # Is the compiler the GNU C compiler?
10102 with_gcc=$GCC
10104 # An ERE matcher.
10105 EGREP=$lt_EGREP
10107 # The linker used to build libraries.
10108 LD=$lt_LD
10110 # Whether we need hard or soft links.
10111 LN_S=$lt_LN_S
10113 # A BSD-compatible nm program.
10114 NM=$lt_NM
10116 # A symbol stripping program
10117 STRIP=$lt_STRIP
10119 # Used to examine libraries when file_magic_cmd begins "file"
10120 MAGIC_CMD=$MAGIC_CMD
10122 # Used on cygwin: DLL creation program.
10123 DLLTOOL="$DLLTOOL"
10125 # Used on cygwin: object dumper.
10126 OBJDUMP="$OBJDUMP"
10128 # Used on cygwin: assembler.
10129 AS="$AS"
10131 # The name of the directory that contains temporary libtool files.
10132 objdir=$objdir
10134 # How to create reloadable object files.
10135 reload_flag=$lt_reload_flag
10136 reload_cmds=$lt_reload_cmds
10138 # How to pass a linker flag through the compiler.
10139 wl=$lt_lt_prog_compiler_wl
10141 # Object file suffix (normally "o").
10142 objext="$ac_objext"
10144 # Old archive suffix (normally "a").
10145 libext="$libext"
10147 # Shared library suffix (normally ".so").
10148 shrext_cmds='$shrext_cmds'
10150 # Executable file suffix (normally "").
10151 exeext="$exeext"
10153 # Additional compiler flags for building library objects.
10154 pic_flag=$lt_lt_prog_compiler_pic
10155 pic_mode=$pic_mode
10157 # What is the maximum length of a command?
10158 max_cmd_len=$lt_cv_sys_max_cmd_len
10160 # Does compiler simultaneously support -c and -o options?
10161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10163 # Must we lock files when doing compilation?
10164 need_locks=$lt_need_locks
10166 # Do we need the lib prefix for modules?
10167 need_lib_prefix=$need_lib_prefix
10169 # Do we need a version for libraries?
10170 need_version=$need_version
10172 # Whether dlopen is supported.
10173 dlopen_support=$enable_dlopen
10175 # Whether dlopen of programs is supported.
10176 dlopen_self=$enable_dlopen_self
10178 # Whether dlopen of statically linked programs is supported.
10179 dlopen_self_static=$enable_dlopen_self_static
10181 # Compiler flag to prevent dynamic linking.
10182 link_static_flag=$lt_lt_prog_compiler_static
10184 # Compiler flag to turn off builtin functions.
10185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10187 # Compiler flag to allow reflexive dlopens.
10188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10190 # Compiler flag to generate shared objects directly from archives.
10191 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10193 # Compiler flag to generate thread-safe objects.
10194 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10196 # Library versioning type.
10197 version_type=$version_type
10199 # Format of library name prefix.
10200 libname_spec=$lt_libname_spec
10202 # List of archive names. First name is the real one, the rest are links.
10203 # The last name is the one that the linker finds with -lNAME.
10204 library_names_spec=$lt_library_names_spec
10206 # The coded name of the library, if different from the real name.
10207 soname_spec=$lt_soname_spec
10209 # Commands used to build and install an old-style archive.
10210 RANLIB=$lt_RANLIB
10211 old_archive_cmds=$lt_old_archive_cmds
10212 old_postinstall_cmds=$lt_old_postinstall_cmds
10213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10215 # Create an old-style archive from a shared archive.
10216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10218 # Create a temporary old-style archive to link instead of a shared archive.
10219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10221 # Commands used to build and install a shared archive.
10222 archive_cmds=$lt_archive_cmds
10223 archive_expsym_cmds=$lt_archive_expsym_cmds
10224 postinstall_cmds=$lt_postinstall_cmds
10225 postuninstall_cmds=$lt_postuninstall_cmds
10227 # Commands used to build a loadable module (assumed same as above if empty)
10228 module_cmds=$lt_module_cmds
10229 module_expsym_cmds=$lt_module_expsym_cmds
10231 # Commands to strip libraries.
10232 old_striplib=$lt_old_striplib
10233 striplib=$lt_striplib
10235 # Dependencies to place before the objects being linked to create a
10236 # shared library.
10237 predep_objects=$lt_predep_objects
10239 # Dependencies to place after the objects being linked to create a
10240 # shared library.
10241 postdep_objects=$lt_postdep_objects
10243 # Dependencies to place before the objects being linked to create a
10244 # shared library.
10245 predeps=$lt_predeps
10247 # Dependencies to place after the objects being linked to create a
10248 # shared library.
10249 postdeps=$lt_postdeps
10251 # The directories searched by this compiler when creating a shared
10252 # library
10253 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10255 # The library search path used internally by the compiler when linking
10256 # a shared library.
10257 compiler_lib_search_path=$lt_compiler_lib_search_path
10259 # Method to check whether dependent libraries are shared objects.
10260 deplibs_check_method=$lt_deplibs_check_method
10262 # Command to use when deplibs_check_method == file_magic.
10263 file_magic_cmd=$lt_file_magic_cmd
10265 # Flag that allows shared libraries with undefined symbols to be built.
10266 allow_undefined_flag=$lt_allow_undefined_flag
10268 # Flag that forces no undefined symbols.
10269 no_undefined_flag=$lt_no_undefined_flag
10271 # Commands used to finish a libtool library installation in a directory.
10272 finish_cmds=$lt_finish_cmds
10274 # Same as above, but a single script fragment to be evaled but not shown.
10275 finish_eval=$lt_finish_eval
10277 # Take the output of nm and produce a listing of raw symbols and C names.
10278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10280 # Transform the output of nm in a proper C declaration
10281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10283 # Transform the output of nm in a C name address pair
10284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10286 # This is the shared library runtime path variable.
10287 runpath_var=$runpath_var
10289 # This is the shared library path variable.
10290 shlibpath_var=$shlibpath_var
10292 # Is shlibpath searched before the hard-coded library search path?
10293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10295 # How to hardcode a shared library path into an executable.
10296 hardcode_action=$hardcode_action
10298 # Whether we should hardcode library paths into libraries.
10299 hardcode_into_libs=$hardcode_into_libs
10301 # Flag to hardcode \$libdir into a binary during linking.
10302 # This must work even if \$libdir does not exist.
10303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10305 # If ld is used when linking, flag to hardcode \$libdir into
10306 # a binary during linking. This must work even if \$libdir does
10307 # not exist.
10308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10310 # Whether we need a single -rpath flag with a separated argument.
10311 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10314 # resulting binary.
10315 hardcode_direct=$hardcode_direct
10317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10318 # resulting binary.
10319 hardcode_minus_L=$hardcode_minus_L
10321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10322 # the resulting binary.
10323 hardcode_shlibpath_var=$hardcode_shlibpath_var
10325 # Set to yes if building a shared library automatically hardcodes DIR into the library
10326 # and all subsequent libraries and executables linked against it.
10327 hardcode_automatic=$hardcode_automatic
10329 # Variables whose values should be saved in libtool wrapper scripts and
10330 # restored at relink time.
10331 variables_saved_for_relink="$variables_saved_for_relink"
10333 # Whether libtool must link a program against all its dependency libraries.
10334 link_all_deplibs=$link_all_deplibs
10336 # Compile-time system search path for libraries
10337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10339 # Run-time system search path for libraries
10340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10342 # Fix the shell variable \$srcfile for the compiler.
10343 fix_srcfile_path=$lt_fix_srcfile_path
10345 # Set to yes if exported symbols are required.
10346 always_export_symbols=$always_export_symbols
10348 # The commands to list exported symbols.
10349 export_symbols_cmds=$lt_export_symbols_cmds
10351 # The commands to extract the exported symbol list from a shared archive.
10352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10354 # Symbols that should not be listed in the preloaded symbols.
10355 exclude_expsyms=$lt_exclude_expsyms
10357 # Symbols that must always be exported.
10358 include_expsyms=$lt_include_expsyms
10360 # ### END LIBTOOL CONFIG
10362 __EOF__
10365 case $host_os in
10366 aix3*)
10367 cat <<\EOF >> "$cfgfile"
10369 # AIX sometimes has problems with the GCC collect2 program. For some
10370 # reason, if we set the COLLECT_NAMES environment variable, the problems
10371 # vanish in a puff of smoke.
10372 if test "X${COLLECT_NAMES+set}" != Xset; then
10373 COLLECT_NAMES=
10374 export COLLECT_NAMES
10378 esac
10380 # We use sed instead of cat because bash on DJGPP gets confused if
10381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10382 # text mode, it properly converts lines to CR/LF. This bash problem
10383 # is reportedly fixed, but why not run on old versions too?
10384 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10386 mv -f "$cfgfile" "$ofile" || \
10387 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10388 chmod +x "$ofile"
10390 else
10391 # If there is no Makefile yet, we rely on a make rule to execute
10392 # `config.status --recheck' to rerun these tests and create the
10393 # libtool script then.
10394 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10395 if test -f "$ltmain_in"; then
10396 test -f Makefile && make "$ltmain"
10401 ac_ext=c
10402 ac_cpp='$CPP $CPPFLAGS'
10403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10407 CC="$lt_save_CC"
10410 # Check whether --with-tags was given.
10411 if test "${with_tags+set}" = set; then
10412 withval=$with_tags; tagnames="$withval"
10416 if test -f "$ltmain" && test -n "$tagnames"; then
10417 if test ! -f "${ofile}"; then
10418 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10419 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10422 if test -z "$LTCC"; then
10423 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10424 if test -z "$LTCC"; then
10425 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10426 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10427 else
10428 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10429 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10432 if test -z "$LTCFLAGS"; then
10433 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10436 # Extract list of available tagged configurations in $ofile.
10437 # Note that this assumes the entire list is on one line.
10438 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10441 for tagname in $tagnames; do
10442 IFS="$lt_save_ifs"
10443 # Check whether tagname contains only valid characters
10444 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10445 "") ;;
10446 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10447 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10448 { (exit 1); exit 1; }; }
10450 esac
10452 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10453 then
10454 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10455 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10456 { (exit 1); exit 1; }; }
10459 # Update the list of available tags.
10460 if test -n "$tagname"; then
10461 echo appending configuration tag \"$tagname\" to $ofile
10463 case $tagname in
10464 CXX)
10465 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10466 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10467 (test "X$CXX" != "Xg++"))) ; then
10468 ac_ext=cpp
10469 ac_cpp='$CXXCPP $CPPFLAGS'
10470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10477 archive_cmds_need_lc_CXX=no
10478 allow_undefined_flag_CXX=
10479 always_export_symbols_CXX=no
10480 archive_expsym_cmds_CXX=
10481 export_dynamic_flag_spec_CXX=
10482 hardcode_direct_CXX=no
10483 hardcode_libdir_flag_spec_CXX=
10484 hardcode_libdir_flag_spec_ld_CXX=
10485 hardcode_libdir_separator_CXX=
10486 hardcode_minus_L_CXX=no
10487 hardcode_shlibpath_var_CXX=unsupported
10488 hardcode_automatic_CXX=no
10489 module_cmds_CXX=
10490 module_expsym_cmds_CXX=
10491 link_all_deplibs_CXX=unknown
10492 old_archive_cmds_CXX=$old_archive_cmds
10493 no_undefined_flag_CXX=
10494 whole_archive_flag_spec_CXX=
10495 enable_shared_with_static_runtimes_CXX=no
10497 # Dependencies to place before and after the object being linked:
10498 predep_objects_CXX=
10499 postdep_objects_CXX=
10500 predeps_CXX=
10501 postdeps_CXX=
10502 compiler_lib_search_path_CXX=
10503 compiler_lib_search_dirs_CXX=
10505 # Source file extension for C++ test sources.
10506 ac_ext=cpp
10508 # Object file extension for compiled C++ test sources.
10509 objext=o
10510 objext_CXX=$objext
10512 # Code to be used in simple compile tests
10513 lt_simple_compile_test_code="int some_variable = 0;"
10515 # Code to be used in simple link tests
10516 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10518 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10520 # If no C compiler was specified, use CC.
10521 LTCC=${LTCC-"$CC"}
10523 # If no C compiler flags were specified, use CFLAGS.
10524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10526 # Allow CC to be a program name with arguments.
10527 compiler=$CC
10530 # save warnings/boilerplate of simple test code
10531 ac_outfile=conftest.$ac_objext
10532 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10534 _lt_compiler_boilerplate=`cat conftest.err`
10535 $rm conftest*
10537 ac_outfile=conftest.$ac_objext
10538 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10540 _lt_linker_boilerplate=`cat conftest.err`
10541 $rm -r conftest*
10544 # Allow CC to be a program name with arguments.
10545 lt_save_CC=$CC
10546 lt_save_LD=$LD
10547 lt_save_GCC=$GCC
10548 GCC=$GXX
10549 lt_save_with_gnu_ld=$with_gnu_ld
10550 lt_save_path_LD=$lt_cv_path_LD
10551 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10552 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10553 else
10554 $as_unset lt_cv_prog_gnu_ld
10556 if test -n "${lt_cv_path_LDCXX+set}"; then
10557 lt_cv_path_LD=$lt_cv_path_LDCXX
10558 else
10559 $as_unset lt_cv_path_LD
10561 test -z "${LDCXX+set}" || LD=$LDCXX
10562 CC=${CXX-"c++"}
10563 compiler=$CC
10564 compiler_CXX=$CC
10565 for cc_temp in $compiler""; do
10566 case $cc_temp in
10567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10569 \-*) ;;
10570 *) break;;
10571 esac
10572 done
10573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10576 # We don't want -fno-exception wen compiling C++ code, so set the
10577 # no_builtin_flag separately
10578 if test "$GXX" = yes; then
10579 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10580 else
10581 lt_prog_compiler_no_builtin_flag_CXX=
10584 if test "$GXX" = yes; then
10585 # Set up default GNU C++ configuration
10588 # Check whether --with-gnu-ld was given.
10589 if test "${with_gnu_ld+set}" = set; then
10590 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10591 else
10592 with_gnu_ld=no
10595 ac_prog=ld
10596 if test "$GCC" = yes; then
10597 # Check if gcc -print-prog-name=ld gives a path.
10598 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10599 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10600 case $host in
10601 *-*-mingw*)
10602 # gcc leaves a trailing carriage return which upsets mingw
10603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10606 esac
10607 case $ac_prog in
10608 # Accept absolute paths.
10609 [\\/]* | ?:[\\/]*)
10610 re_direlt='/[^/][^/]*/\.\./'
10611 # Canonicalize the pathname of ld
10612 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10613 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10614 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10615 done
10616 test -z "$LD" && LD="$ac_prog"
10619 # If it fails, then pretend we aren't using GCC.
10620 ac_prog=ld
10623 # If it is relative, then search for the first ld in PATH.
10624 with_gnu_ld=unknown
10626 esac
10627 elif test "$with_gnu_ld" = yes; then
10628 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10629 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10630 else
10631 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10632 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10634 if test "${lt_cv_path_LD+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637 if test -z "$LD"; then
10638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10639 for ac_dir in $PATH; do
10640 IFS="$lt_save_ifs"
10641 test -z "$ac_dir" && ac_dir=.
10642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10643 lt_cv_path_LD="$ac_dir/$ac_prog"
10644 # Check to see if the program is GNU ld. I'd rather use --version,
10645 # but apparently some variants of GNU ld only accept -v.
10646 # Break only if it was the GNU/non-GNU ld that we prefer.
10647 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10648 *GNU* | *'with BFD'*)
10649 test "$with_gnu_ld" != no && break
10652 test "$with_gnu_ld" != yes && break
10654 esac
10656 done
10657 IFS="$lt_save_ifs"
10658 else
10659 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10663 LD="$lt_cv_path_LD"
10664 if test -n "$LD"; then
10665 { echo "$as_me:$LINENO: result: $LD" >&5
10666 echo "${ECHO_T}$LD" >&6; }
10667 else
10668 { echo "$as_me:$LINENO: result: no" >&5
10669 echo "${ECHO_T}no" >&6; }
10671 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10672 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10673 { (exit 1); exit 1; }; }
10674 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10675 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10676 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10680 case `$LD -v 2>&1 </dev/null` in
10681 *GNU* | *'with BFD'*)
10682 lt_cv_prog_gnu_ld=yes
10685 lt_cv_prog_gnu_ld=no
10687 esac
10689 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10690 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10691 with_gnu_ld=$lt_cv_prog_gnu_ld
10695 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10696 # archiving commands below assume that GNU ld is being used.
10697 if test "$with_gnu_ld" = yes; then
10698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10704 # If archive_cmds runs LD, not CC, wlarc should be empty
10705 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10706 # investigate it a little bit more. (MM)
10707 wlarc='${wl}'
10709 # ancient GNU ld didn't support --whole-archive et. al.
10710 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10711 grep 'no-whole-archive' > /dev/null; then
10712 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10713 else
10714 whole_archive_flag_spec_CXX=
10716 else
10717 with_gnu_ld=no
10718 wlarc=
10720 # A generic and very simple default shared library creation
10721 # command for GNU C++ for the case where it uses the native
10722 # linker, instead of GNU ld. If possible, this setting should
10723 # overridden to take advantage of the native linker features on
10724 # the platform it is being used on.
10725 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10728 # Commands to make compiler produce verbose output that lists
10729 # what "hidden" libraries, object files and flags are used when
10730 # linking a shared library.
10731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10733 else
10734 GXX=no
10735 with_gnu_ld=no
10736 wlarc=
10739 # PORTME: fill in a description of your system's C++ link characteristics
10740 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10741 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10742 ld_shlibs_CXX=yes
10743 case $host_os in
10744 aix3*)
10745 # FIXME: insert proper C++ library support
10746 ld_shlibs_CXX=no
10748 aix[4-9]*)
10749 if test "$host_cpu" = ia64; then
10750 # On IA64, the linker does run time linking by default, so we don't
10751 # have to do anything special.
10752 aix_use_runtimelinking=no
10753 exp_sym_flag='-Bexport'
10754 no_entry_flag=""
10755 else
10756 aix_use_runtimelinking=no
10758 # Test if we are trying to use run time linking or normal
10759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10760 # need to do runtime linking.
10761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10762 for ld_flag in $LDFLAGS; do
10763 case $ld_flag in
10764 *-brtl*)
10765 aix_use_runtimelinking=yes
10766 break
10768 esac
10769 done
10771 esac
10773 exp_sym_flag='-bexport'
10774 no_entry_flag='-bnoentry'
10777 # When large executables or shared objects are built, AIX ld can
10778 # have problems creating the table of contents. If linking a library
10779 # or program results in "error TOC overflow" add -mminimal-toc to
10780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10783 archive_cmds_CXX=''
10784 hardcode_direct_CXX=yes
10785 hardcode_libdir_separator_CXX=':'
10786 link_all_deplibs_CXX=yes
10788 if test "$GXX" = yes; then
10789 case $host_os in aix4.[012]|aix4.[012].*)
10790 # We only want to do this on AIX 4.2 and lower, the check
10791 # below for broken collect2 doesn't work under 4.3+
10792 collect2name=`${CC} -print-prog-name=collect2`
10793 if test -f "$collect2name" && \
10794 strings "$collect2name" | grep resolve_lib_name >/dev/null
10795 then
10796 # We have reworked collect2
10798 else
10799 # We have old collect2
10800 hardcode_direct_CXX=unsupported
10801 # It fails to find uninstalled libraries when the uninstalled
10802 # path is not listed in the libpath. Setting hardcode_minus_L
10803 # to unsupported forces relinking
10804 hardcode_minus_L_CXX=yes
10805 hardcode_libdir_flag_spec_CXX='-L$libdir'
10806 hardcode_libdir_separator_CXX=
10809 esac
10810 shared_flag='-shared'
10811 if test "$aix_use_runtimelinking" = yes; then
10812 shared_flag="$shared_flag "'${wl}-G'
10814 else
10815 # not using gcc
10816 if test "$host_cpu" = ia64; then
10817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10818 # chokes on -Wl,-G. The following line is correct:
10819 shared_flag='-G'
10820 else
10821 if test "$aix_use_runtimelinking" = yes; then
10822 shared_flag='${wl}-G'
10823 else
10824 shared_flag='${wl}-bM:SRE'
10829 # It seems that -bexpall does not export symbols beginning with
10830 # underscore (_), so it is better to generate a list of symbols to export.
10831 always_export_symbols_CXX=yes
10832 if test "$aix_use_runtimelinking" = yes; then
10833 # Warning - without using the other runtime loading flags (-brtl),
10834 # -berok will link without error, but may produce a broken library.
10835 allow_undefined_flag_CXX='-berok'
10836 # Determine the default libpath from the value encoded in an empty executable.
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10845 main ()
10849 return 0;
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_link") 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_cxx_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest$ac_exeext &&
10869 $as_test_x conftest$ac_exeext; then
10871 lt_aix_libpath_sed='
10872 /Import File Strings/,/^$/ {
10873 /^0/ {
10874 s/^0 *\(.*\)$/\1/
10878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10879 # Check for a 64-bit object if we didn't find anything.
10880 if test -z "$aix_libpath"; then
10881 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10891 conftest$ac_exeext conftest.$ac_ext
10892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10894 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10896 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10897 else
10898 if test "$host_cpu" = ia64; then
10899 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10900 allow_undefined_flag_CXX="-z nodefs"
10901 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10902 else
10903 # Determine the default libpath from the value encoded in an empty executable.
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h. */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10912 main ()
10916 return 0;
10918 _ACEOF
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (ac_try="$ac_link"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_link") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && {
10933 test -z "$ac_cxx_werror_flag" ||
10934 test ! -s conftest.err
10935 } && test -s conftest$ac_exeext &&
10936 $as_test_x conftest$ac_exeext; then
10938 lt_aix_libpath_sed='
10939 /Import File Strings/,/^$/ {
10940 /^0/ {
10941 s/^0 *\(.*\)$/\1/
10945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10946 # Check for a 64-bit object if we didn't find anything.
10947 if test -z "$aix_libpath"; then
10948 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10950 else
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10958 conftest$ac_exeext conftest.$ac_ext
10959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10962 # Warning - without using the other run time loading flags,
10963 # -berok will link without error, but may produce a broken library.
10964 no_undefined_flag_CXX=' ${wl}-bernotok'
10965 allow_undefined_flag_CXX=' ${wl}-berok'
10966 # Exported symbols can be pulled into shared objects from archives
10967 whole_archive_flag_spec_CXX='$convenience'
10968 archive_cmds_need_lc_CXX=yes
10969 # This is similar to how AIX traditionally builds its shared libraries.
10970 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10975 beos*)
10976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10977 allow_undefined_flag_CXX=unsupported
10978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10979 # support --undefined. This deserves some investigation. FIXME
10980 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10981 else
10982 ld_shlibs_CXX=no
10986 chorus*)
10987 case $cc_basename in
10989 # FIXME: insert proper C++ library support
10990 ld_shlibs_CXX=no
10992 esac
10995 cygwin* | mingw* | pw32*)
10996 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10997 # as there is no search path for DLLs.
10998 hardcode_libdir_flag_spec_CXX='-L$libdir'
10999 allow_undefined_flag_CXX=unsupported
11000 always_export_symbols_CXX=no
11001 enable_shared_with_static_runtimes_CXX=yes
11003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11005 # If the export-symbols file already is a .def file (1st line
11006 # is EXPORTS), use it as is; otherwise, prepend...
11007 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11008 cp $export_symbols $output_objdir/$soname.def;
11009 else
11010 echo EXPORTS > $output_objdir/$soname.def;
11011 cat $export_symbols >> $output_objdir/$soname.def;
11013 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11014 else
11015 ld_shlibs_CXX=no
11018 darwin* | rhapsody*)
11019 archive_cmds_need_lc_CXX=no
11020 hardcode_direct_CXX=no
11021 hardcode_automatic_CXX=yes
11022 hardcode_shlibpath_var_CXX=unsupported
11023 whole_archive_flag_spec_CXX=''
11024 link_all_deplibs_CXX=yes
11025 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11026 if test "$GXX" = yes ; then
11027 output_verbose_link_cmd='echo'
11028 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11029 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11030 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11031 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11032 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11033 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11034 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11036 else
11037 case $cc_basename in
11038 xlc*)
11039 output_verbose_link_cmd='echo'
11040 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11041 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11043 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11044 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11047 ld_shlibs_CXX=no
11049 esac
11053 dgux*)
11054 case $cc_basename in
11055 ec++*)
11056 # FIXME: insert proper C++ library support
11057 ld_shlibs_CXX=no
11059 ghcx*)
11060 # Green Hills C++ Compiler
11061 # FIXME: insert proper C++ library support
11062 ld_shlibs_CXX=no
11065 # FIXME: insert proper C++ library support
11066 ld_shlibs_CXX=no
11068 esac
11070 freebsd[12]*)
11071 # C++ shared libraries reported to be fairly broken before switch to ELF
11072 ld_shlibs_CXX=no
11074 freebsd-elf*)
11075 archive_cmds_need_lc_CXX=no
11077 freebsd* | dragonfly*)
11078 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11079 # conventions
11080 ld_shlibs_CXX=yes
11082 gnu*)
11084 hpux9*)
11085 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11086 hardcode_libdir_separator_CXX=:
11087 export_dynamic_flag_spec_CXX='${wl}-E'
11088 hardcode_direct_CXX=yes
11089 hardcode_minus_L_CXX=yes # Not in the search PATH,
11090 # but as the default
11091 # location of the library.
11093 case $cc_basename in
11094 CC*)
11095 # FIXME: insert proper C++ library support
11096 ld_shlibs_CXX=no
11098 aCC*)
11099 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11100 # Commands to make compiler produce verbose output that lists
11101 # what "hidden" libraries, object files and flags are used when
11102 # linking a shared library.
11104 # There doesn't appear to be a way to prevent this compiler from
11105 # explicitly linking system object files so we need to strip them
11106 # from the output so that they don't get included in the library
11107 # dependencies.
11108 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11111 if test "$GXX" = yes; then
11112 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11113 else
11114 # FIXME: insert proper C++ library support
11115 ld_shlibs_CXX=no
11118 esac
11120 hpux10*|hpux11*)
11121 if test $with_gnu_ld = no; then
11122 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11123 hardcode_libdir_separator_CXX=:
11125 case $host_cpu in
11126 hppa*64*|ia64*) ;;
11128 export_dynamic_flag_spec_CXX='${wl}-E'
11130 esac
11132 case $host_cpu in
11133 hppa*64*|ia64*)
11134 hardcode_direct_CXX=no
11135 hardcode_shlibpath_var_CXX=no
11138 hardcode_direct_CXX=yes
11139 hardcode_minus_L_CXX=yes # Not in the search PATH,
11140 # but as the default
11141 # location of the library.
11143 esac
11145 case $cc_basename in
11146 CC*)
11147 # FIXME: insert proper C++ library support
11148 ld_shlibs_CXX=no
11150 aCC*)
11151 case $host_cpu in
11152 hppa*64*)
11153 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11155 ia64*)
11156 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11159 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11161 esac
11162 # Commands to make compiler produce verbose output that lists
11163 # what "hidden" libraries, object files and flags are used when
11164 # linking a shared library.
11166 # There doesn't appear to be a way to prevent this compiler from
11167 # explicitly linking system object files so we need to strip them
11168 # from the output so that they don't get included in the library
11169 # dependencies.
11170 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11173 if test "$GXX" = yes; then
11174 if test $with_gnu_ld = no; then
11175 case $host_cpu in
11176 hppa*64*)
11177 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11179 ia64*)
11180 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11183 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11185 esac
11187 else
11188 # FIXME: insert proper C++ library support
11189 ld_shlibs_CXX=no
11192 esac
11194 interix[3-9]*)
11195 hardcode_direct_CXX=no
11196 hardcode_shlibpath_var_CXX=no
11197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11198 export_dynamic_flag_spec_CXX='${wl}-E'
11199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11200 # Instead, shared libraries are loaded at an image base (0x10000000 by
11201 # default) and relocated if they conflict, which is a slow very memory
11202 # consuming and fragmenting process. To avoid this, we pick a random,
11203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11205 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11206 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11208 irix5* | irix6*)
11209 case $cc_basename in
11210 CC*)
11211 # SGI C++
11212 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11214 # Archives containing C++ object files must be created using
11215 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11216 # necessary to make sure instantiated templates are included
11217 # in the archive.
11218 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11221 if test "$GXX" = yes; then
11222 if test "$with_gnu_ld" = no; then
11223 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11224 else
11225 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11228 link_all_deplibs_CXX=yes
11230 esac
11231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11232 hardcode_libdir_separator_CXX=:
11234 linux* | k*bsd*-gnu)
11235 case $cc_basename in
11236 KCC*)
11237 # Kuck and Associates, Inc. (KAI) C++ Compiler
11239 # KCC will only create a shared library if the output file
11240 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11241 # to its proper name (with version) after linking.
11242 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11243 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11244 # Commands to make compiler produce verbose output that lists
11245 # what "hidden" libraries, object files and flags are used when
11246 # linking a shared library.
11248 # There doesn't appear to be a way to prevent this compiler from
11249 # explicitly linking system object files so we need to strip them
11250 # from the output so that they don't get included in the library
11251 # dependencies.
11252 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11254 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11255 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11257 # Archives containing C++ object files must be created using
11258 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11259 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11261 icpc*)
11262 # Intel C++
11263 with_gnu_ld=yes
11264 # version 8.0 and above of icpc choke on multiply defined symbols
11265 # if we add $predep_objects and $postdep_objects, however 7.1 and
11266 # earlier do not add the objects themselves.
11267 case `$CC -V 2>&1` in
11268 *"Version 7."*)
11269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11270 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11272 *) # Version 8.0 or newer
11273 tmp_idyn=
11274 case $host_cpu in
11275 ia64*) tmp_idyn=' -i_dynamic';;
11276 esac
11277 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11278 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11280 esac
11281 archive_cmds_need_lc_CXX=no
11282 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11284 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11286 pgCC* | pgcpp*)
11287 # Portland Group C++ compiler
11288 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11289 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11291 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11293 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11295 cxx*)
11296 # Compaq C++
11297 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11298 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11300 runpath_var=LD_RUN_PATH
11301 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11302 hardcode_libdir_separator_CXX=:
11304 # Commands to make compiler produce verbose output that lists
11305 # what "hidden" libraries, object files and flags are used when
11306 # linking a shared library.
11308 # There doesn't appear to be a way to prevent this compiler from
11309 # explicitly linking system object files so we need to strip them
11310 # from the output so that they don't get included in the library
11311 # dependencies.
11312 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11315 case `$CC -V 2>&1 | sed 5q` in
11316 *Sun\ C*)
11317 # Sun C++ 5.9
11318 no_undefined_flag_CXX=' -zdefs'
11319 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11320 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11321 hardcode_libdir_flag_spec_CXX='-R$libdir'
11322 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11324 # Not sure whether something based on
11325 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11326 # would be better.
11327 output_verbose_link_cmd='echo'
11329 # Archives containing C++ object files must be created using
11330 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11331 # necessary to make sure instantiated templates are included
11332 # in the archive.
11333 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11335 esac
11337 esac
11339 lynxos*)
11340 # FIXME: insert proper C++ library support
11341 ld_shlibs_CXX=no
11343 m88k*)
11344 # FIXME: insert proper C++ library support
11345 ld_shlibs_CXX=no
11347 mvs*)
11348 case $cc_basename in
11349 cxx*)
11350 # FIXME: insert proper C++ library support
11351 ld_shlibs_CXX=no
11354 # FIXME: insert proper C++ library support
11355 ld_shlibs_CXX=no
11357 esac
11359 netbsd*)
11360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11361 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11362 wlarc=
11363 hardcode_libdir_flag_spec_CXX='-R$libdir'
11364 hardcode_direct_CXX=yes
11365 hardcode_shlibpath_var_CXX=no
11367 # Workaround some broken pre-1.5 toolchains
11368 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11370 openbsd2*)
11371 # C++ shared libraries are fairly broken
11372 ld_shlibs_CXX=no
11374 openbsd*)
11375 if test -f /usr/libexec/ld.so; then
11376 hardcode_direct_CXX=yes
11377 hardcode_shlibpath_var_CXX=no
11378 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11381 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11382 export_dynamic_flag_spec_CXX='${wl}-E'
11383 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11385 output_verbose_link_cmd='echo'
11386 else
11387 ld_shlibs_CXX=no
11390 osf3*)
11391 case $cc_basename in
11392 KCC*)
11393 # Kuck and Associates, Inc. (KAI) C++ Compiler
11395 # KCC will only create a shared library if the output file
11396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11397 # to its proper name (with version) after linking.
11398 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11401 hardcode_libdir_separator_CXX=:
11403 # Archives containing C++ object files must be created using
11404 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11405 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11408 RCC*)
11409 # Rational C++ 2.4.1
11410 # FIXME: insert proper C++ library support
11411 ld_shlibs_CXX=no
11413 cxx*)
11414 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11415 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11418 hardcode_libdir_separator_CXX=:
11420 # Commands to make compiler produce verbose output that lists
11421 # what "hidden" libraries, object files and flags are used when
11422 # linking a shared library.
11424 # There doesn't appear to be a way to prevent this compiler from
11425 # explicitly linking system object files so we need to strip them
11426 # from the output so that they don't get included in the library
11427 # dependencies.
11428 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11431 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11432 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11433 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11435 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11436 hardcode_libdir_separator_CXX=:
11438 # Commands to make compiler produce verbose output that lists
11439 # what "hidden" libraries, object files and flags are used when
11440 # linking a shared library.
11441 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11443 else
11444 # FIXME: insert proper C++ library support
11445 ld_shlibs_CXX=no
11448 esac
11450 osf4* | osf5*)
11451 case $cc_basename in
11452 KCC*)
11453 # Kuck and Associates, Inc. (KAI) C++ Compiler
11455 # KCC will only create a shared library if the output file
11456 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11457 # to its proper name (with version) after linking.
11458 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11460 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11461 hardcode_libdir_separator_CXX=:
11463 # Archives containing C++ object files must be created using
11464 # the KAI C++ compiler.
11465 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11467 RCC*)
11468 # Rational C++ 2.4.1
11469 # FIXME: insert proper C++ library support
11470 ld_shlibs_CXX=no
11472 cxx*)
11473 allow_undefined_flag_CXX=' -expect_unresolved \*'
11474 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11475 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11476 echo "-hidden">> $lib.exp~
11477 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11478 $rm $lib.exp'
11480 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11481 hardcode_libdir_separator_CXX=:
11483 # Commands to make compiler produce verbose output that lists
11484 # what "hidden" libraries, object files and flags are used when
11485 # linking a shared library.
11487 # There doesn't appear to be a way to prevent this compiler from
11488 # explicitly linking system object files so we need to strip them
11489 # from the output so that they don't get included in the library
11490 # dependencies.
11491 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11496 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11499 hardcode_libdir_separator_CXX=:
11501 # Commands to make compiler produce verbose output that lists
11502 # what "hidden" libraries, object files and flags are used when
11503 # linking a shared library.
11504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11506 else
11507 # FIXME: insert proper C++ library support
11508 ld_shlibs_CXX=no
11511 esac
11513 psos*)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11517 sunos4*)
11518 case $cc_basename in
11519 CC*)
11520 # Sun C++ 4.x
11521 # FIXME: insert proper C++ library support
11522 ld_shlibs_CXX=no
11524 lcc*)
11525 # Lucid
11526 # FIXME: insert proper C++ library support
11527 ld_shlibs_CXX=no
11530 # FIXME: insert proper C++ library support
11531 ld_shlibs_CXX=no
11533 esac
11535 solaris*)
11536 case $cc_basename in
11537 CC*)
11538 # Sun C++ 4.2, 5.x and Centerline C++
11539 archive_cmds_need_lc_CXX=yes
11540 no_undefined_flag_CXX=' -zdefs'
11541 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11542 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11543 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11545 hardcode_libdir_flag_spec_CXX='-R$libdir'
11546 hardcode_shlibpath_var_CXX=no
11547 case $host_os in
11548 solaris2.[0-5] | solaris2.[0-5].*) ;;
11550 # The compiler driver will combine and reorder linker options,
11551 # but understands `-z linker_flag'.
11552 # Supported since Solaris 2.6 (maybe 2.5.1?)
11553 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11555 esac
11556 link_all_deplibs_CXX=yes
11558 output_verbose_link_cmd='echo'
11560 # Archives containing C++ object files must be created using
11561 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11562 # necessary to make sure instantiated templates are included
11563 # in the archive.
11564 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11566 gcx*)
11567 # Green Hills C++ Compiler
11568 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11570 # The C++ compiler must be used to create the archive.
11571 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11574 # GNU C++ compiler with Solaris linker
11575 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11576 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11577 if $CC --version | grep -v '^2\.7' > /dev/null; then
11578 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11579 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11580 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11582 # Commands to make compiler produce verbose output that lists
11583 # what "hidden" libraries, object files and flags are used when
11584 # linking a shared library.
11585 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11586 else
11587 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11588 # platform.
11589 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11590 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11591 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11593 # Commands to make compiler produce verbose output that lists
11594 # what "hidden" libraries, object files and flags are used when
11595 # linking a shared library.
11596 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11599 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11600 case $host_os in
11601 solaris2.[0-5] | solaris2.[0-5].*) ;;
11603 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11605 esac
11608 esac
11610 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11611 no_undefined_flag_CXX='${wl}-z,text'
11612 archive_cmds_need_lc_CXX=no
11613 hardcode_shlibpath_var_CXX=no
11614 runpath_var='LD_RUN_PATH'
11616 case $cc_basename in
11617 CC*)
11618 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11619 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11622 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11623 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11625 esac
11627 sysv5* | sco3.2v5* | sco5v6*)
11628 # Note: We can NOT use -z defs as we might desire, because we do not
11629 # link with -lc, and that would cause any symbols used from libc to
11630 # always be unresolved, which means just about no library would
11631 # ever link correctly. If we're not using GNU ld we use -z text
11632 # though, which does catch some bad symbols but isn't as heavy-handed
11633 # as -z defs.
11634 # For security reasons, it is highly recommended that you always
11635 # use absolute paths for naming shared libraries, and exclude the
11636 # DT_RUNPATH tag from executables and libraries. But doing so
11637 # requires that you compile everything twice, which is a pain.
11638 # So that behaviour is only enabled if SCOABSPATH is set to a
11639 # non-empty value in the environment. Most likely only useful for
11640 # creating official distributions of packages.
11641 # This is a hack until libtool officially supports absolute path
11642 # names for shared libraries.
11643 no_undefined_flag_CXX='${wl}-z,text'
11644 allow_undefined_flag_CXX='${wl}-z,nodefs'
11645 archive_cmds_need_lc_CXX=no
11646 hardcode_shlibpath_var_CXX=no
11647 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11648 hardcode_libdir_separator_CXX=':'
11649 link_all_deplibs_CXX=yes
11650 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11651 runpath_var='LD_RUN_PATH'
11653 case $cc_basename in
11654 CC*)
11655 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11656 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11659 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11660 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11662 esac
11664 tandem*)
11665 case $cc_basename in
11666 NCC*)
11667 # NonStop-UX NCC 3.20
11668 # FIXME: insert proper C++ library support
11669 ld_shlibs_CXX=no
11672 # FIXME: insert proper C++ library support
11673 ld_shlibs_CXX=no
11675 esac
11677 vxworks*)
11678 # FIXME: insert proper C++ library support
11679 ld_shlibs_CXX=no
11682 # FIXME: insert proper C++ library support
11683 ld_shlibs_CXX=no
11685 esac
11686 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11687 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11688 test "$ld_shlibs_CXX" = no && can_build_shared=no
11690 GCC_CXX="$GXX"
11691 LD_CXX="$LD"
11693 ## CAVEAT EMPTOR:
11694 ## There is no encapsulation within the following macros, do not change
11695 ## the running order or otherwise move them around unless you know exactly
11696 ## what you are doing...
11697 cat > conftest.$ac_ext <<EOF
11698 class Foo
11700 public:
11701 Foo (void) { a = 0; }
11702 private:
11703 int a;
11707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11708 (eval $ac_compile) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; then
11712 # Parse the compiler output and extract the necessary
11713 # objects, libraries and library flags.
11715 # Sentinel used to keep track of whether or not we are before
11716 # the conftest object file.
11717 pre_test_object_deps_done=no
11719 # The `*' in the case matches for architectures that use `case' in
11720 # $output_verbose_cmd can trigger glob expansion during the loop
11721 # eval without this substitution.
11722 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11724 for p in `eval $output_verbose_link_cmd`; do
11725 case $p in
11727 -L* | -R* | -l*)
11728 # Some compilers place space between "-{L,R}" and the path.
11729 # Remove the space.
11730 if test $p = "-L" \
11731 || test $p = "-R"; then
11732 prev=$p
11733 continue
11734 else
11735 prev=
11738 if test "$pre_test_object_deps_done" = no; then
11739 case $p in
11740 -L* | -R*)
11741 # Internal compiler library paths should come after those
11742 # provided the user. The postdeps already come after the
11743 # user supplied libs so there is no need to process them.
11744 if test -z "$compiler_lib_search_path_CXX"; then
11745 compiler_lib_search_path_CXX="${prev}${p}"
11746 else
11747 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11750 # The "-l" case would never come before the object being
11751 # linked, so don't bother handling this case.
11752 esac
11753 else
11754 if test -z "$postdeps_CXX"; then
11755 postdeps_CXX="${prev}${p}"
11756 else
11757 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11762 *.$objext)
11763 # This assumes that the test object file only shows up
11764 # once in the compiler output.
11765 if test "$p" = "conftest.$objext"; then
11766 pre_test_object_deps_done=yes
11767 continue
11770 if test "$pre_test_object_deps_done" = no; then
11771 if test -z "$predep_objects_CXX"; then
11772 predep_objects_CXX="$p"
11773 else
11774 predep_objects_CXX="$predep_objects_CXX $p"
11776 else
11777 if test -z "$postdep_objects_CXX"; then
11778 postdep_objects_CXX="$p"
11779 else
11780 postdep_objects_CXX="$postdep_objects_CXX $p"
11785 *) ;; # Ignore the rest.
11787 esac
11788 done
11790 # Clean up.
11791 rm -f a.out a.exe
11792 else
11793 echo "libtool.m4: error: problem compiling CXX test program"
11796 $rm -f confest.$objext
11798 compiler_lib_search_dirs_CXX=
11799 if test -n "$compiler_lib_search_path_CXX"; then
11800 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11803 # PORTME: override above test on systems where it is broken
11804 case $host_os in
11805 interix[3-9]*)
11806 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11807 # hack all around it, let's just trust "g++" to DTRT.
11808 predep_objects_CXX=
11809 postdep_objects_CXX=
11810 postdeps_CXX=
11813 linux*)
11814 case `$CC -V 2>&1 | sed 5q` in
11815 *Sun\ C*)
11816 # Sun C++ 5.9
11818 # The more standards-conforming stlport4 library is
11819 # incompatible with the Cstd library. Avoid specifying
11820 # it if it's in CXXFLAGS. Ignore libCrun as
11821 # -library=stlport4 depends on it.
11822 case " $CXX $CXXFLAGS " in
11823 *" -library=stlport4 "*)
11824 solaris_use_stlport4=yes
11826 esac
11827 if test "$solaris_use_stlport4" != yes; then
11828 postdeps_CXX='-library=Cstd -library=Crun'
11831 esac
11834 solaris*)
11835 case $cc_basename in
11836 CC*)
11837 # The more standards-conforming stlport4 library is
11838 # incompatible with the Cstd library. Avoid specifying
11839 # it if it's in CXXFLAGS. Ignore libCrun as
11840 # -library=stlport4 depends on it.
11841 case " $CXX $CXXFLAGS " in
11842 *" -library=stlport4 "*)
11843 solaris_use_stlport4=yes
11845 esac
11847 # Adding this requires a known-good setup of shared libraries for
11848 # Sun compiler versions before 5.6, else PIC objects from an old
11849 # archive will be linked into the output, leading to subtle bugs.
11850 if test "$solaris_use_stlport4" != yes; then
11851 postdeps_CXX='-library=Cstd -library=Crun'
11854 esac
11856 esac
11858 case " $postdeps_CXX " in
11859 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11860 esac
11862 lt_prog_compiler_wl_CXX=
11863 lt_prog_compiler_pic_CXX=
11864 lt_prog_compiler_static_CXX=
11866 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11867 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11869 # C++ specific cases for pic, static, wl, etc.
11870 if test "$GXX" = yes; then
11871 lt_prog_compiler_wl_CXX='-Wl,'
11872 lt_prog_compiler_static_CXX='-static'
11874 case $host_os in
11875 aix*)
11876 # All AIX code is PIC.
11877 if test "$host_cpu" = ia64; then
11878 # AIX 5 now supports IA64 processor
11879 lt_prog_compiler_static_CXX='-Bstatic'
11882 amigaos*)
11883 # FIXME: we need at least 68020 code to build shared libraries, but
11884 # adding the `-m68020' flag to GCC prevents building anything better,
11885 # like `-m68040'.
11886 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11889 # PIC is the default for these OSes.
11891 mingw* | cygwin* | os2* | pw32*)
11892 # This hack is so that the source file can tell whether it is being
11893 # built for inclusion in a dll (and should export symbols for example).
11894 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11895 # (--disable-auto-import) libraries
11896 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11898 darwin* | rhapsody*)
11899 # PIC is the default on this platform
11900 # Common symbols not allowed in MH_DYLIB files
11901 lt_prog_compiler_pic_CXX='-fno-common'
11903 *djgpp*)
11904 # DJGPP does not support shared libraries at all
11905 lt_prog_compiler_pic_CXX=
11907 interix[3-9]*)
11908 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11909 # Instead, we relocate shared libraries at runtime.
11911 sysv4*MP*)
11912 if test -d /usr/nec; then
11913 lt_prog_compiler_pic_CXX=-Kconform_pic
11916 hpux*)
11917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11918 # not for PA HP-UX.
11919 case $host_cpu in
11920 hppa*64*|ia64*)
11923 lt_prog_compiler_pic_CXX='-fPIC'
11925 esac
11928 lt_prog_compiler_pic_CXX='-fPIC'
11930 esac
11931 else
11932 case $host_os in
11933 aix[4-9]*)
11934 # All AIX code is PIC.
11935 if test "$host_cpu" = ia64; then
11936 # AIX 5 now supports IA64 processor
11937 lt_prog_compiler_static_CXX='-Bstatic'
11938 else
11939 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11942 chorus*)
11943 case $cc_basename in
11944 cxch68*)
11945 # Green Hills C++ Compiler
11946 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11948 esac
11950 darwin*)
11951 # PIC is the default on this platform
11952 # Common symbols not allowed in MH_DYLIB files
11953 case $cc_basename in
11954 xlc*)
11955 lt_prog_compiler_pic_CXX='-qnocommon'
11956 lt_prog_compiler_wl_CXX='-Wl,'
11958 esac
11960 dgux*)
11961 case $cc_basename in
11962 ec++*)
11963 lt_prog_compiler_pic_CXX='-KPIC'
11965 ghcx*)
11966 # Green Hills C++ Compiler
11967 lt_prog_compiler_pic_CXX='-pic'
11971 esac
11973 freebsd* | dragonfly*)
11974 # FreeBSD uses GNU C++
11976 hpux9* | hpux10* | hpux11*)
11977 case $cc_basename in
11978 CC*)
11979 lt_prog_compiler_wl_CXX='-Wl,'
11980 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11981 if test "$host_cpu" != ia64; then
11982 lt_prog_compiler_pic_CXX='+Z'
11985 aCC*)
11986 lt_prog_compiler_wl_CXX='-Wl,'
11987 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11988 case $host_cpu in
11989 hppa*64*|ia64*)
11990 # +Z the default
11993 lt_prog_compiler_pic_CXX='+Z'
11995 esac
11999 esac
12001 interix*)
12002 # This is c89, which is MS Visual C++ (no shared libs)
12003 # Anyone wants to do a port?
12005 irix5* | irix6* | nonstopux*)
12006 case $cc_basename in
12007 CC*)
12008 lt_prog_compiler_wl_CXX='-Wl,'
12009 lt_prog_compiler_static_CXX='-non_shared'
12010 # CC pic flag -KPIC is the default.
12014 esac
12016 linux* | k*bsd*-gnu)
12017 case $cc_basename in
12018 KCC*)
12019 # KAI C++ Compiler
12020 lt_prog_compiler_wl_CXX='--backend -Wl,'
12021 lt_prog_compiler_pic_CXX='-fPIC'
12023 icpc* | ecpc*)
12024 # Intel C++
12025 lt_prog_compiler_wl_CXX='-Wl,'
12026 lt_prog_compiler_pic_CXX='-KPIC'
12027 lt_prog_compiler_static_CXX='-static'
12029 pgCC* | pgcpp*)
12030 # Portland Group C++ compiler.
12031 lt_prog_compiler_wl_CXX='-Wl,'
12032 lt_prog_compiler_pic_CXX='-fpic'
12033 lt_prog_compiler_static_CXX='-Bstatic'
12035 cxx*)
12036 # Compaq C++
12037 # Make sure the PIC flag is empty. It appears that all Alpha
12038 # Linux and Compaq Tru64 Unix objects are PIC.
12039 lt_prog_compiler_pic_CXX=
12040 lt_prog_compiler_static_CXX='-non_shared'
12043 case `$CC -V 2>&1 | sed 5q` in
12044 *Sun\ C*)
12045 # Sun C++ 5.9
12046 lt_prog_compiler_pic_CXX='-KPIC'
12047 lt_prog_compiler_static_CXX='-Bstatic'
12048 lt_prog_compiler_wl_CXX='-Qoption ld '
12050 esac
12052 esac
12054 lynxos*)
12056 m88k*)
12058 mvs*)
12059 case $cc_basename in
12060 cxx*)
12061 lt_prog_compiler_pic_CXX='-W c,exportall'
12065 esac
12067 netbsd*)
12069 osf3* | osf4* | osf5*)
12070 case $cc_basename in
12071 KCC*)
12072 lt_prog_compiler_wl_CXX='--backend -Wl,'
12074 RCC*)
12075 # Rational C++ 2.4.1
12076 lt_prog_compiler_pic_CXX='-pic'
12078 cxx*)
12079 # Digital/Compaq C++
12080 lt_prog_compiler_wl_CXX='-Wl,'
12081 # Make sure the PIC flag is empty. It appears that all Alpha
12082 # Linux and Compaq Tru64 Unix objects are PIC.
12083 lt_prog_compiler_pic_CXX=
12084 lt_prog_compiler_static_CXX='-non_shared'
12088 esac
12090 psos*)
12092 solaris*)
12093 case $cc_basename in
12094 CC*)
12095 # Sun C++ 4.2, 5.x and Centerline C++
12096 lt_prog_compiler_pic_CXX='-KPIC'
12097 lt_prog_compiler_static_CXX='-Bstatic'
12098 lt_prog_compiler_wl_CXX='-Qoption ld '
12100 gcx*)
12101 # Green Hills C++ Compiler
12102 lt_prog_compiler_pic_CXX='-PIC'
12106 esac
12108 sunos4*)
12109 case $cc_basename in
12110 CC*)
12111 # Sun C++ 4.x
12112 lt_prog_compiler_pic_CXX='-pic'
12113 lt_prog_compiler_static_CXX='-Bstatic'
12115 lcc*)
12116 # Lucid
12117 lt_prog_compiler_pic_CXX='-pic'
12121 esac
12123 tandem*)
12124 case $cc_basename in
12125 NCC*)
12126 # NonStop-UX NCC 3.20
12127 lt_prog_compiler_pic_CXX='-KPIC'
12131 esac
12133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12134 case $cc_basename in
12135 CC*)
12136 lt_prog_compiler_wl_CXX='-Wl,'
12137 lt_prog_compiler_pic_CXX='-KPIC'
12138 lt_prog_compiler_static_CXX='-Bstatic'
12140 esac
12142 vxworks*)
12145 lt_prog_compiler_can_build_shared_CXX=no
12147 esac
12150 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12151 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12154 # Check to make sure the PIC flag actually works.
12156 if test -n "$lt_prog_compiler_pic_CXX"; then
12158 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12159 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12160 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163 lt_cv_prog_compiler_pic_works_CXX=no
12164 ac_outfile=conftest.$ac_objext
12165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12166 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12167 # Insert the option either (1) after the last *FLAGS variable, or
12168 # (2) before a word containing "conftest.", or (3) at the end.
12169 # Note that $ac_compile itself does not contain backslashes and begins
12170 # with a dollar sign (not a hyphen), so the echo should work correctly.
12171 # The option is referenced via a variable to avoid confusing sed.
12172 lt_compile=`echo "$ac_compile" | $SED \
12173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12175 -e 's:$: $lt_compiler_flag:'`
12176 (eval echo "\"\$as_me:12176: $lt_compile\"" >&5)
12177 (eval "$lt_compile" 2>conftest.err)
12178 ac_status=$?
12179 cat conftest.err >&5
12180 echo "$as_me:12180: \$? = $ac_status" >&5
12181 if (exit $ac_status) && test -s "$ac_outfile"; then
12182 # The compiler can only warn and ignore the option if not recognized
12183 # So say no if there are warnings other than the usual output.
12184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12187 lt_cv_prog_compiler_pic_works_CXX=yes
12190 $rm conftest*
12193 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12194 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12196 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12197 case $lt_prog_compiler_pic_CXX in
12198 "" | " "*) ;;
12199 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12200 esac
12201 else
12202 lt_prog_compiler_pic_CXX=
12203 lt_prog_compiler_can_build_shared_CXX=no
12207 case $host_os in
12208 # For platforms which do not support PIC, -DPIC is meaningless:
12209 *djgpp*)
12210 lt_prog_compiler_pic_CXX=
12213 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12215 esac
12218 # Check to make sure the static flag actually works.
12220 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12221 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12222 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12223 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 lt_cv_prog_compiler_static_works_CXX=no
12227 save_LDFLAGS="$LDFLAGS"
12228 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12229 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12231 # The linker can only warn and ignore the option if not recognized
12232 # So say no if there are warnings
12233 if test -s conftest.err; then
12234 # Append any errors to the config.log.
12235 cat conftest.err 1>&5
12236 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12238 if diff conftest.exp conftest.er2 >/dev/null; then
12239 lt_cv_prog_compiler_static_works_CXX=yes
12241 else
12242 lt_cv_prog_compiler_static_works_CXX=yes
12245 $rm -r conftest*
12246 LDFLAGS="$save_LDFLAGS"
12249 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12250 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12252 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12254 else
12255 lt_prog_compiler_static_CXX=
12259 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12260 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12261 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 lt_cv_prog_compiler_c_o_CXX=no
12265 $rm -r conftest 2>/dev/null
12266 mkdir conftest
12267 cd conftest
12268 mkdir out
12269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12271 lt_compiler_flag="-o out/conftest2.$ac_objext"
12272 # Insert the option either (1) after the last *FLAGS variable, or
12273 # (2) before a word containing "conftest.", or (3) at the end.
12274 # Note that $ac_compile itself does not contain backslashes and begins
12275 # with a dollar sign (not a hyphen), so the echo should work correctly.
12276 lt_compile=`echo "$ac_compile" | $SED \
12277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12279 -e 's:$: $lt_compiler_flag:'`
12280 (eval echo "\"\$as_me:12280: $lt_compile\"" >&5)
12281 (eval "$lt_compile" 2>out/conftest.err)
12282 ac_status=$?
12283 cat out/conftest.err >&5
12284 echo "$as_me:12284: \$? = $ac_status" >&5
12285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12286 then
12287 # The compiler can only warn and ignore the option if not recognized
12288 # So say no if there are warnings
12289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12292 lt_cv_prog_compiler_c_o_CXX=yes
12295 chmod u+w . 2>&5
12296 $rm conftest*
12297 # SGI C++ compiler will create directory out/ii_files/ for
12298 # template instantiation
12299 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12300 $rm out/* && rmdir out
12301 cd ..
12302 rmdir conftest
12303 $rm conftest*
12306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12307 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12310 hard_links="nottested"
12311 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12312 # do not overwrite the value of need_locks provided by the user
12313 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12314 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12315 hard_links=yes
12316 $rm conftest*
12317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12318 touch conftest.a
12319 ln conftest.a conftest.b 2>&5 || hard_links=no
12320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12321 { echo "$as_me:$LINENO: result: $hard_links" >&5
12322 echo "${ECHO_T}$hard_links" >&6; }
12323 if test "$hard_links" = no; then
12324 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12325 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12326 need_locks=warn
12328 else
12329 need_locks=no
12332 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12336 case $host_os in
12337 aix[4-9]*)
12338 # If we're using GNU nm, then we don't want the "-C" option.
12339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12340 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12341 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12342 else
12343 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12346 pw32*)
12347 export_symbols_cmds_CXX="$ltdll_cmds"
12349 cygwin* | mingw*)
12350 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12353 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12355 esac
12356 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12358 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12359 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12360 test "$ld_shlibs_CXX" = no && can_build_shared=no
12363 # Do we need to explicitly link libc?
12365 case "x$archive_cmds_need_lc_CXX" in
12366 x|xyes)
12367 # Assume -lc should be added
12368 archive_cmds_need_lc_CXX=yes
12370 if test "$enable_shared" = yes && test "$GCC" = yes; then
12371 case $archive_cmds_CXX in
12372 *'~'*)
12373 # FIXME: we may have to deal with multi-command sequences.
12375 '$CC '*)
12376 # Test whether the compiler implicitly links with -lc since on some
12377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12378 # to ld, don't add -lc before -lgcc.
12379 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12380 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12381 $rm conftest*
12382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12385 (eval $ac_compile) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } 2>conftest.err; then
12389 soname=conftest
12390 lib=conftest
12391 libobjs=conftest.$ac_objext
12392 deplibs=
12393 wl=$lt_prog_compiler_wl_CXX
12394 pic_flag=$lt_prog_compiler_pic_CXX
12395 compiler_flags=-v
12396 linker_flags=-v
12397 verstring=
12398 output_objdir=.
12399 libname=conftest
12400 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12401 allow_undefined_flag_CXX=
12402 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12403 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }
12407 then
12408 archive_cmds_need_lc_CXX=no
12409 else
12410 archive_cmds_need_lc_CXX=yes
12412 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12413 else
12414 cat conftest.err 1>&5
12416 $rm conftest*
12417 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12418 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12420 esac
12423 esac
12425 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12426 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12427 library_names_spec=
12428 libname_spec='lib$name'
12429 soname_spec=
12430 shrext_cmds=".so"
12431 postinstall_cmds=
12432 postuninstall_cmds=
12433 finish_cmds=
12434 finish_eval=
12435 shlibpath_var=
12436 shlibpath_overrides_runpath=unknown
12437 version_type=none
12438 dynamic_linker="$host_os ld.so"
12439 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12441 need_lib_prefix=unknown
12442 hardcode_into_libs=no
12444 # when you set need_version to no, make sure it does not cause -set_version
12445 # flags to be left without arguments
12446 need_version=unknown
12448 case $host_os in
12449 aix3*)
12450 version_type=linux
12451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12452 shlibpath_var=LIBPATH
12454 # AIX 3 has no versioning support, so we append a major version to the name.
12455 soname_spec='${libname}${release}${shared_ext}$major'
12458 aix[4-9]*)
12459 version_type=linux
12460 need_lib_prefix=no
12461 need_version=no
12462 hardcode_into_libs=yes
12463 if test "$host_cpu" = ia64; then
12464 # AIX 5 supports IA64
12465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12466 shlibpath_var=LD_LIBRARY_PATH
12467 else
12468 # With GCC up to 2.95.x, collect2 would create an import file
12469 # for dependence libraries. The import file would start with
12470 # the line `#! .'. This would cause the generated library to
12471 # depend on `.', always an invalid library. This was fixed in
12472 # development snapshots of GCC prior to 3.0.
12473 case $host_os in
12474 aix4 | aix4.[01] | aix4.[01].*)
12475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12476 echo ' yes '
12477 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12479 else
12480 can_build_shared=no
12483 esac
12484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12485 # soname into executable. Probably we can add versioning support to
12486 # collect2, so additional links can be useful in future.
12487 if test "$aix_use_runtimelinking" = yes; then
12488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12489 # instead of lib<name>.a to let people know that these are not
12490 # typical AIX shared libraries.
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492 else
12493 # We preserve .a as extension for shared libraries through AIX4.2
12494 # and later when we are not doing run time linking.
12495 library_names_spec='${libname}${release}.a $libname.a'
12496 soname_spec='${libname}${release}${shared_ext}$major'
12498 shlibpath_var=LIBPATH
12502 amigaos*)
12503 library_names_spec='$libname.ixlibrary $libname.a'
12504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12505 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12508 beos*)
12509 library_names_spec='${libname}${shared_ext}'
12510 dynamic_linker="$host_os ld.so"
12511 shlibpath_var=LIBRARY_PATH
12514 bsdi[45]*)
12515 version_type=linux
12516 need_version=no
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12518 soname_spec='${libname}${release}${shared_ext}$major'
12519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12520 shlibpath_var=LD_LIBRARY_PATH
12521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12523 # the default ld.so.conf also contains /usr/contrib/lib and
12524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12525 # libtool to hard-code these into programs
12528 cygwin* | mingw* | pw32*)
12529 version_type=windows
12530 shrext_cmds=".dll"
12531 need_version=no
12532 need_lib_prefix=no
12534 case $GCC,$host_os in
12535 yes,cygwin* | yes,mingw* | yes,pw32*)
12536 library_names_spec='$libname.dll.a'
12537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12538 postinstall_cmds='base_file=`basename \${file}`~
12539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12540 dldir=$destdir/`dirname \$dlpath`~
12541 test -d \$dldir || mkdir -p \$dldir~
12542 $install_prog $dir/$dlname \$dldir/$dlname~
12543 chmod a+x \$dldir/$dlname'
12544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12545 dlpath=$dir/\$dldll~
12546 $rm \$dlpath'
12547 shlibpath_overrides_runpath=yes
12549 case $host_os in
12550 cygwin*)
12551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12552 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12553 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12555 mingw*)
12556 # MinGW DLLs use traditional 'lib' prefix
12557 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12558 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12559 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12560 # It is most probably a Windows format PATH printed by
12561 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12562 # path with ; separators, and with drive letters. We can handle the
12563 # drive letters (cygwin fileutils understands them), so leave them,
12564 # especially as we might pass files found there to a mingw objdump,
12565 # which wouldn't understand a cygwinified path. Ahh.
12566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12567 else
12568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12571 pw32*)
12572 # pw32 DLLs use 'pw' prefix rather than 'lib'
12573 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12575 esac
12579 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12581 esac
12582 dynamic_linker='Win32 ld.exe'
12583 # FIXME: first we should search . and the directory the executable is in
12584 shlibpath_var=PATH
12587 darwin* | rhapsody*)
12588 dynamic_linker="$host_os dyld"
12589 version_type=darwin
12590 need_lib_prefix=no
12591 need_version=no
12592 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12593 soname_spec='${libname}${release}${major}$shared_ext'
12594 shlibpath_overrides_runpath=yes
12595 shlibpath_var=DYLD_LIBRARY_PATH
12596 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12601 dgux*)
12602 version_type=linux
12603 need_lib_prefix=no
12604 need_version=no
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12607 shlibpath_var=LD_LIBRARY_PATH
12610 freebsd1*)
12611 dynamic_linker=no
12614 freebsd* | dragonfly*)
12615 # DragonFly does not have aout. When/if they implement a new
12616 # versioning mechanism, adjust this.
12617 if test -x /usr/bin/objformat; then
12618 objformat=`/usr/bin/objformat`
12619 else
12620 case $host_os in
12621 freebsd[123]*) objformat=aout ;;
12622 *) objformat=elf ;;
12623 esac
12625 version_type=freebsd-$objformat
12626 case $version_type in
12627 freebsd-elf*)
12628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12629 need_version=no
12630 need_lib_prefix=no
12632 freebsd-*)
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12634 need_version=yes
12636 esac
12637 shlibpath_var=LD_LIBRARY_PATH
12638 case $host_os in
12639 freebsd2*)
12640 shlibpath_overrides_runpath=yes
12642 freebsd3.[01]* | freebsdelf3.[01]*)
12643 shlibpath_overrides_runpath=yes
12644 hardcode_into_libs=yes
12646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12648 shlibpath_overrides_runpath=no
12649 hardcode_into_libs=yes
12651 *) # from 4.6 on, and DragonFly
12652 shlibpath_overrides_runpath=yes
12653 hardcode_into_libs=yes
12655 esac
12658 gnu*)
12659 version_type=linux
12660 need_lib_prefix=no
12661 need_version=no
12662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12663 soname_spec='${libname}${release}${shared_ext}$major'
12664 shlibpath_var=LD_LIBRARY_PATH
12665 hardcode_into_libs=yes
12668 hpux9* | hpux10* | hpux11*)
12669 # Give a soname corresponding to the major version so that dld.sl refuses to
12670 # link against other versions.
12671 version_type=sunos
12672 need_lib_prefix=no
12673 need_version=no
12674 case $host_cpu in
12675 ia64*)
12676 shrext_cmds='.so'
12677 hardcode_into_libs=yes
12678 dynamic_linker="$host_os dld.so"
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 if test "X$HPUX_IA64_MODE" = X32; then
12684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12685 else
12686 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12690 hppa*64*)
12691 shrext_cmds='.sl'
12692 hardcode_into_libs=yes
12693 dynamic_linker="$host_os dld.sl"
12694 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12697 soname_spec='${libname}${release}${shared_ext}$major'
12698 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12702 shrext_cmds='.sl'
12703 dynamic_linker="$host_os dld.sl"
12704 shlibpath_var=SHLIB_PATH
12705 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707 soname_spec='${libname}${release}${shared_ext}$major'
12709 esac
12710 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12711 postinstall_cmds='chmod 555 $lib'
12714 interix[3-9]*)
12715 version_type=linux
12716 need_lib_prefix=no
12717 need_version=no
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12719 soname_spec='${libname}${release}${shared_ext}$major'
12720 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12721 shlibpath_var=LD_LIBRARY_PATH
12722 shlibpath_overrides_runpath=no
12723 hardcode_into_libs=yes
12726 irix5* | irix6* | nonstopux*)
12727 case $host_os in
12728 nonstopux*) version_type=nonstopux ;;
12730 if test "$lt_cv_prog_gnu_ld" = yes; then
12731 version_type=linux
12732 else
12733 version_type=irix
12734 fi ;;
12735 esac
12736 need_lib_prefix=no
12737 need_version=no
12738 soname_spec='${libname}${release}${shared_ext}$major'
12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12740 case $host_os in
12741 irix5* | nonstopux*)
12742 libsuff= shlibsuff=
12745 case $LD in # libtool.m4 will add one of these switches to LD
12746 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12747 libsuff= shlibsuff= libmagic=32-bit;;
12748 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12749 libsuff=32 shlibsuff=N32 libmagic=N32;;
12750 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12751 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12752 *) libsuff= shlibsuff= libmagic=never-match;;
12753 esac
12755 esac
12756 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12757 shlibpath_overrides_runpath=no
12758 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12759 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12760 hardcode_into_libs=yes
12763 # No shared lib support for Linux oldld, aout, or coff.
12764 linux*oldld* | linux*aout* | linux*coff*)
12765 dynamic_linker=no
12768 # This must be Linux ELF.
12769 linux* | k*bsd*-gnu)
12770 version_type=linux
12771 need_lib_prefix=no
12772 need_version=no
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774 soname_spec='${libname}${release}${shared_ext}$major'
12775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 shlibpath_overrides_runpath=no
12778 # This implies no fast_install, which is unacceptable.
12779 # Some rework will be needed to allow for fast_install
12780 # before this can be enabled.
12781 hardcode_into_libs=yes
12783 # Append ld.so.conf contents to the search path
12784 if test -f /etc/ld.so.conf; then
12785 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12786 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12789 # We used to test for /lib/ld.so.1 and disable shared libraries on
12790 # powerpc, because MkLinux only supported shared libraries with the
12791 # GNU dynamic linker. Since this was broken with cross compilers,
12792 # most powerpc-linux boxes support dynamic linking these days and
12793 # people can always --disable-shared, the test was removed, and we
12794 # assume the GNU/Linux dynamic linker is in use.
12795 dynamic_linker='GNU/Linux ld.so'
12798 netbsd*)
12799 version_type=sunos
12800 need_lib_prefix=no
12801 need_version=no
12802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12805 dynamic_linker='NetBSD (a.out) ld.so'
12806 else
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 dynamic_linker='NetBSD ld.elf_so'
12811 shlibpath_var=LD_LIBRARY_PATH
12812 shlibpath_overrides_runpath=yes
12813 hardcode_into_libs=yes
12816 newsos6)
12817 version_type=linux
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12819 shlibpath_var=LD_LIBRARY_PATH
12820 shlibpath_overrides_runpath=yes
12823 nto-qnx*)
12824 version_type=linux
12825 need_lib_prefix=no
12826 need_version=no
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 shlibpath_var=LD_LIBRARY_PATH
12830 shlibpath_overrides_runpath=yes
12833 openbsd*)
12834 version_type=sunos
12835 sys_lib_dlsearch_path_spec="/usr/lib"
12836 need_lib_prefix=no
12837 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12838 case $host_os in
12839 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12840 *) need_version=no ;;
12841 esac
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12846 case $host_os in
12847 openbsd2.[89] | openbsd2.[89].*)
12848 shlibpath_overrides_runpath=no
12851 shlibpath_overrides_runpath=yes
12853 esac
12854 else
12855 shlibpath_overrides_runpath=yes
12859 os2*)
12860 libname_spec='$name'
12861 shrext_cmds=".dll"
12862 need_lib_prefix=no
12863 library_names_spec='$libname${shared_ext} $libname.a'
12864 dynamic_linker='OS/2 ld.exe'
12865 shlibpath_var=LIBPATH
12868 osf3* | osf4* | osf5*)
12869 version_type=osf
12870 need_lib_prefix=no
12871 need_version=no
12872 soname_spec='${libname}${release}${shared_ext}$major'
12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12876 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12879 rdos*)
12880 dynamic_linker=no
12883 solaris*)
12884 version_type=linux
12885 need_lib_prefix=no
12886 need_version=no
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 shlibpath_overrides_runpath=yes
12891 hardcode_into_libs=yes
12892 # ldd complains unless libraries are executable
12893 postinstall_cmds='chmod +x $lib'
12896 sunos4*)
12897 version_type=sunos
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12899 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=yes
12902 if test "$with_gnu_ld" = yes; then
12903 need_lib_prefix=no
12905 need_version=yes
12908 sysv4 | sysv4.3*)
12909 version_type=linux
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 shlibpath_var=LD_LIBRARY_PATH
12913 case $host_vendor in
12914 sni)
12915 shlibpath_overrides_runpath=no
12916 need_lib_prefix=no
12917 export_dynamic_flag_spec='${wl}-Blargedynsym'
12918 runpath_var=LD_RUN_PATH
12920 siemens)
12921 need_lib_prefix=no
12923 motorola)
12924 need_lib_prefix=no
12925 need_version=no
12926 shlibpath_overrides_runpath=no
12927 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12929 esac
12932 sysv4*MP*)
12933 if test -d /usr/nec ;then
12934 version_type=linux
12935 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12936 soname_spec='$libname${shared_ext}.$major'
12937 shlibpath_var=LD_LIBRARY_PATH
12941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12942 version_type=freebsd-elf
12943 need_lib_prefix=no
12944 need_version=no
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 shlibpath_var=LD_LIBRARY_PATH
12948 hardcode_into_libs=yes
12949 if test "$with_gnu_ld" = yes; then
12950 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12951 shlibpath_overrides_runpath=no
12952 else
12953 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12954 shlibpath_overrides_runpath=yes
12955 case $host_os in
12956 sco3.2v5*)
12957 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12959 esac
12961 sys_lib_dlsearch_path_spec='/usr/lib'
12964 uts4*)
12965 version_type=linux
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12967 soname_spec='${libname}${release}${shared_ext}$major'
12968 shlibpath_var=LD_LIBRARY_PATH
12972 dynamic_linker=no
12974 esac
12975 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12976 echo "${ECHO_T}$dynamic_linker" >&6; }
12977 test "$dynamic_linker" = no && can_build_shared=no
12979 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12985 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12986 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12992 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12994 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12995 if test "$GCC" = yes; then
12996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12999 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13000 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13001 hardcode_action_CXX=
13002 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13003 test -n "$runpath_var_CXX" || \
13004 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13006 # We can hardcode non-existant directories.
13007 if test "$hardcode_direct_CXX" != no &&
13008 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13009 # have to relink, otherwise we might link with an installed library
13010 # when we should be linking with a yet-to-be-installed one
13011 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13012 test "$hardcode_minus_L_CXX" != no; then
13013 # Linking always hardcodes the temporary library directory.
13014 hardcode_action_CXX=relink
13015 else
13016 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13017 hardcode_action_CXX=immediate
13019 else
13020 # We cannot hardcode anything, or else we can only hardcode existing
13021 # directories.
13022 hardcode_action_CXX=unsupported
13024 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13025 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13027 if test "$hardcode_action_CXX" = relink; then
13028 # Fast installation is not supported
13029 enable_fast_install=no
13030 elif test "$shlibpath_overrides_runpath" = yes ||
13031 test "$enable_shared" = no; then
13032 # Fast installation is not necessary
13033 enable_fast_install=needless
13037 # The else clause should only fire when bootstrapping the
13038 # libtool distribution, otherwise you forgot to ship ltmain.sh
13039 # with your package, and you will get complaints that there are
13040 # no rules to generate ltmain.sh.
13041 if test -f "$ltmain"; then
13042 # See if we are running on zsh, and set the options which allow our commands through
13043 # without removal of \ escapes.
13044 if test -n "${ZSH_VERSION+set}" ; then
13045 setopt NO_GLOB_SUBST
13047 # Now quote all the things that may contain metacharacters while being
13048 # careful not to overquote the AC_SUBSTed values. We take copies of the
13049 # variables and quote the copies for generation of the libtool script.
13050 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13051 SED SHELL STRIP \
13052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13054 deplibs_check_method reload_flag reload_cmds need_locks \
13055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13056 lt_cv_sys_global_symbol_to_c_name_address \
13057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13058 old_postinstall_cmds old_postuninstall_cmds \
13059 compiler_CXX \
13060 CC_CXX \
13061 LD_CXX \
13062 lt_prog_compiler_wl_CXX \
13063 lt_prog_compiler_pic_CXX \
13064 lt_prog_compiler_static_CXX \
13065 lt_prog_compiler_no_builtin_flag_CXX \
13066 export_dynamic_flag_spec_CXX \
13067 thread_safe_flag_spec_CXX \
13068 whole_archive_flag_spec_CXX \
13069 enable_shared_with_static_runtimes_CXX \
13070 old_archive_cmds_CXX \
13071 old_archive_from_new_cmds_CXX \
13072 predep_objects_CXX \
13073 postdep_objects_CXX \
13074 predeps_CXX \
13075 postdeps_CXX \
13076 compiler_lib_search_path_CXX \
13077 compiler_lib_search_dirs_CXX \
13078 archive_cmds_CXX \
13079 archive_expsym_cmds_CXX \
13080 postinstall_cmds_CXX \
13081 postuninstall_cmds_CXX \
13082 old_archive_from_expsyms_cmds_CXX \
13083 allow_undefined_flag_CXX \
13084 no_undefined_flag_CXX \
13085 export_symbols_cmds_CXX \
13086 hardcode_libdir_flag_spec_CXX \
13087 hardcode_libdir_flag_spec_ld_CXX \
13088 hardcode_libdir_separator_CXX \
13089 hardcode_automatic_CXX \
13090 module_cmds_CXX \
13091 module_expsym_cmds_CXX \
13092 lt_cv_prog_compiler_c_o_CXX \
13093 fix_srcfile_path_CXX \
13094 exclude_expsyms_CXX \
13095 include_expsyms_CXX; do
13097 case $var in
13098 old_archive_cmds_CXX | \
13099 old_archive_from_new_cmds_CXX | \
13100 archive_cmds_CXX | \
13101 archive_expsym_cmds_CXX | \
13102 module_cmds_CXX | \
13103 module_expsym_cmds_CXX | \
13104 old_archive_from_expsyms_cmds_CXX | \
13105 export_symbols_cmds_CXX | \
13106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13107 postinstall_cmds | postuninstall_cmds | \
13108 old_postinstall_cmds | old_postuninstall_cmds | \
13109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13110 # Double-quote double-evaled strings.
13111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13116 esac
13117 done
13119 case $lt_echo in
13120 *'\$0 --fallback-echo"')
13121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13123 esac
13125 cfgfile="$ofile"
13127 cat <<__EOF__ >> "$cfgfile"
13128 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13132 # Shell to use when invoking shell scripts.
13133 SHELL=$lt_SHELL
13135 # Whether or not to build shared libraries.
13136 build_libtool_libs=$enable_shared
13138 # Whether or not to build static libraries.
13139 build_old_libs=$enable_static
13141 # Whether or not to add -lc for building shared libraries.
13142 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13144 # Whether or not to disallow shared libs when runtime libs are static
13145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13147 # Whether or not to optimize for fast installation.
13148 fast_install=$enable_fast_install
13150 # The host system.
13151 host_alias=$host_alias
13152 host=$host
13153 host_os=$host_os
13155 # The build system.
13156 build_alias=$build_alias
13157 build=$build
13158 build_os=$build_os
13160 # An echo program that does not interpret backslashes.
13161 echo=$lt_echo
13163 # The archiver.
13164 AR=$lt_AR
13165 AR_FLAGS=$lt_AR_FLAGS
13167 # A C compiler.
13168 LTCC=$lt_LTCC
13170 # LTCC compiler flags.
13171 LTCFLAGS=$lt_LTCFLAGS
13173 # A language-specific compiler.
13174 CC=$lt_compiler_CXX
13176 # Is the compiler the GNU C compiler?
13177 with_gcc=$GCC_CXX
13179 # An ERE matcher.
13180 EGREP=$lt_EGREP
13182 # The linker used to build libraries.
13183 LD=$lt_LD_CXX
13185 # Whether we need hard or soft links.
13186 LN_S=$lt_LN_S
13188 # A BSD-compatible nm program.
13189 NM=$lt_NM
13191 # A symbol stripping program
13192 STRIP=$lt_STRIP
13194 # Used to examine libraries when file_magic_cmd begins "file"
13195 MAGIC_CMD=$MAGIC_CMD
13197 # Used on cygwin: DLL creation program.
13198 DLLTOOL="$DLLTOOL"
13200 # Used on cygwin: object dumper.
13201 OBJDUMP="$OBJDUMP"
13203 # Used on cygwin: assembler.
13204 AS="$AS"
13206 # The name of the directory that contains temporary libtool files.
13207 objdir=$objdir
13209 # How to create reloadable object files.
13210 reload_flag=$lt_reload_flag
13211 reload_cmds=$lt_reload_cmds
13213 # How to pass a linker flag through the compiler.
13214 wl=$lt_lt_prog_compiler_wl_CXX
13216 # Object file suffix (normally "o").
13217 objext="$ac_objext"
13219 # Old archive suffix (normally "a").
13220 libext="$libext"
13222 # Shared library suffix (normally ".so").
13223 shrext_cmds='$shrext_cmds'
13225 # Executable file suffix (normally "").
13226 exeext="$exeext"
13228 # Additional compiler flags for building library objects.
13229 pic_flag=$lt_lt_prog_compiler_pic_CXX
13230 pic_mode=$pic_mode
13232 # What is the maximum length of a command?
13233 max_cmd_len=$lt_cv_sys_max_cmd_len
13235 # Does compiler simultaneously support -c and -o options?
13236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13238 # Must we lock files when doing compilation?
13239 need_locks=$lt_need_locks
13241 # Do we need the lib prefix for modules?
13242 need_lib_prefix=$need_lib_prefix
13244 # Do we need a version for libraries?
13245 need_version=$need_version
13247 # Whether dlopen is supported.
13248 dlopen_support=$enable_dlopen
13250 # Whether dlopen of programs is supported.
13251 dlopen_self=$enable_dlopen_self
13253 # Whether dlopen of statically linked programs is supported.
13254 dlopen_self_static=$enable_dlopen_self_static
13256 # Compiler flag to prevent dynamic linking.
13257 link_static_flag=$lt_lt_prog_compiler_static_CXX
13259 # Compiler flag to turn off builtin functions.
13260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13262 # Compiler flag to allow reflexive dlopens.
13263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13265 # Compiler flag to generate shared objects directly from archives.
13266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13268 # Compiler flag to generate thread-safe objects.
13269 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13271 # Library versioning type.
13272 version_type=$version_type
13274 # Format of library name prefix.
13275 libname_spec=$lt_libname_spec
13277 # List of archive names. First name is the real one, the rest are links.
13278 # The last name is the one that the linker finds with -lNAME.
13279 library_names_spec=$lt_library_names_spec
13281 # The coded name of the library, if different from the real name.
13282 soname_spec=$lt_soname_spec
13284 # Commands used to build and install an old-style archive.
13285 RANLIB=$lt_RANLIB
13286 old_archive_cmds=$lt_old_archive_cmds_CXX
13287 old_postinstall_cmds=$lt_old_postinstall_cmds
13288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13290 # Create an old-style archive from a shared archive.
13291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13293 # Create a temporary old-style archive to link instead of a shared archive.
13294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13296 # Commands used to build and install a shared archive.
13297 archive_cmds=$lt_archive_cmds_CXX
13298 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13299 postinstall_cmds=$lt_postinstall_cmds
13300 postuninstall_cmds=$lt_postuninstall_cmds
13302 # Commands used to build a loadable module (assumed same as above if empty)
13303 module_cmds=$lt_module_cmds_CXX
13304 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13306 # Commands to strip libraries.
13307 old_striplib=$lt_old_striplib
13308 striplib=$lt_striplib
13310 # Dependencies to place before the objects being linked to create a
13311 # shared library.
13312 predep_objects=$lt_predep_objects_CXX
13314 # Dependencies to place after the objects being linked to create a
13315 # shared library.
13316 postdep_objects=$lt_postdep_objects_CXX
13318 # Dependencies to place before the objects being linked to create a
13319 # shared library.
13320 predeps=$lt_predeps_CXX
13322 # Dependencies to place after the objects being linked to create a
13323 # shared library.
13324 postdeps=$lt_postdeps_CXX
13326 # The directories searched by this compiler when creating a shared
13327 # library
13328 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13330 # The library search path used internally by the compiler when linking
13331 # a shared library.
13332 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13334 # Method to check whether dependent libraries are shared objects.
13335 deplibs_check_method=$lt_deplibs_check_method
13337 # Command to use when deplibs_check_method == file_magic.
13338 file_magic_cmd=$lt_file_magic_cmd
13340 # Flag that allows shared libraries with undefined symbols to be built.
13341 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13343 # Flag that forces no undefined symbols.
13344 no_undefined_flag=$lt_no_undefined_flag_CXX
13346 # Commands used to finish a libtool library installation in a directory.
13347 finish_cmds=$lt_finish_cmds
13349 # Same as above, but a single script fragment to be evaled but not shown.
13350 finish_eval=$lt_finish_eval
13352 # Take the output of nm and produce a listing of raw symbols and C names.
13353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13355 # Transform the output of nm in a proper C declaration
13356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13358 # Transform the output of nm in a C name address pair
13359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13361 # This is the shared library runtime path variable.
13362 runpath_var=$runpath_var
13364 # This is the shared library path variable.
13365 shlibpath_var=$shlibpath_var
13367 # Is shlibpath searched before the hard-coded library search path?
13368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13370 # How to hardcode a shared library path into an executable.
13371 hardcode_action=$hardcode_action_CXX
13373 # Whether we should hardcode library paths into libraries.
13374 hardcode_into_libs=$hardcode_into_libs
13376 # Flag to hardcode \$libdir into a binary during linking.
13377 # This must work even if \$libdir does not exist.
13378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13380 # If ld is used when linking, flag to hardcode \$libdir into
13381 # a binary during linking. This must work even if \$libdir does
13382 # not exist.
13383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13385 # Whether we need a single -rpath flag with a separated argument.
13386 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13389 # resulting binary.
13390 hardcode_direct=$hardcode_direct_CXX
13392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13393 # resulting binary.
13394 hardcode_minus_L=$hardcode_minus_L_CXX
13396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13397 # the resulting binary.
13398 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13400 # Set to yes if building a shared library automatically hardcodes DIR into the library
13401 # and all subsequent libraries and executables linked against it.
13402 hardcode_automatic=$hardcode_automatic_CXX
13404 # Variables whose values should be saved in libtool wrapper scripts and
13405 # restored at relink time.
13406 variables_saved_for_relink="$variables_saved_for_relink"
13408 # Whether libtool must link a program against all its dependency libraries.
13409 link_all_deplibs=$link_all_deplibs_CXX
13411 # Compile-time system search path for libraries
13412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13414 # Run-time system search path for libraries
13415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13417 # Fix the shell variable \$srcfile for the compiler.
13418 fix_srcfile_path=$lt_fix_srcfile_path
13420 # Set to yes if exported symbols are required.
13421 always_export_symbols=$always_export_symbols_CXX
13423 # The commands to list exported symbols.
13424 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13426 # The commands to extract the exported symbol list from a shared archive.
13427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13429 # Symbols that should not be listed in the preloaded symbols.
13430 exclude_expsyms=$lt_exclude_expsyms_CXX
13432 # Symbols that must always be exported.
13433 include_expsyms=$lt_include_expsyms_CXX
13435 # ### END LIBTOOL TAG CONFIG: $tagname
13437 __EOF__
13440 else
13441 # If there is no Makefile yet, we rely on a make rule to execute
13442 # `config.status --recheck' to rerun these tests and create the
13443 # libtool script then.
13444 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13445 if test -f "$ltmain_in"; then
13446 test -f Makefile && make "$ltmain"
13451 ac_ext=c
13452 ac_cpp='$CPP $CPPFLAGS'
13453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13457 CC=$lt_save_CC
13458 LDCXX=$LD
13459 LD=$lt_save_LD
13460 GCC=$lt_save_GCC
13461 with_gnu_ldcxx=$with_gnu_ld
13462 with_gnu_ld=$lt_save_with_gnu_ld
13463 lt_cv_path_LDCXX=$lt_cv_path_LD
13464 lt_cv_path_LD=$lt_save_path_LD
13465 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13466 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13468 else
13469 tagname=""
13473 F77)
13474 if test -n "$F77" && test "X$F77" != "Xno"; then
13476 ac_ext=f
13477 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13478 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13482 archive_cmds_need_lc_F77=no
13483 allow_undefined_flag_F77=
13484 always_export_symbols_F77=no
13485 archive_expsym_cmds_F77=
13486 export_dynamic_flag_spec_F77=
13487 hardcode_direct_F77=no
13488 hardcode_libdir_flag_spec_F77=
13489 hardcode_libdir_flag_spec_ld_F77=
13490 hardcode_libdir_separator_F77=
13491 hardcode_minus_L_F77=no
13492 hardcode_automatic_F77=no
13493 module_cmds_F77=
13494 module_expsym_cmds_F77=
13495 link_all_deplibs_F77=unknown
13496 old_archive_cmds_F77=$old_archive_cmds
13497 no_undefined_flag_F77=
13498 whole_archive_flag_spec_F77=
13499 enable_shared_with_static_runtimes_F77=no
13501 # Source file extension for f77 test sources.
13502 ac_ext=f
13504 # Object file extension for compiled f77 test sources.
13505 objext=o
13506 objext_F77=$objext
13508 # Code to be used in simple compile tests
13509 lt_simple_compile_test_code="\
13510 subroutine t
13511 return
13515 # Code to be used in simple link tests
13516 lt_simple_link_test_code="\
13517 program t
13521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13523 # If no C compiler was specified, use CC.
13524 LTCC=${LTCC-"$CC"}
13526 # If no C compiler flags were specified, use CFLAGS.
13527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13529 # Allow CC to be a program name with arguments.
13530 compiler=$CC
13533 # save warnings/boilerplate of simple test code
13534 ac_outfile=conftest.$ac_objext
13535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13537 _lt_compiler_boilerplate=`cat conftest.err`
13538 $rm conftest*
13540 ac_outfile=conftest.$ac_objext
13541 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13543 _lt_linker_boilerplate=`cat conftest.err`
13544 $rm -r conftest*
13547 # Allow CC to be a program name with arguments.
13548 lt_save_CC="$CC"
13549 CC=${F77-"f77"}
13550 compiler=$CC
13551 compiler_F77=$CC
13552 for cc_temp in $compiler""; do
13553 case $cc_temp in
13554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13556 \-*) ;;
13557 *) break;;
13558 esac
13559 done
13560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13563 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13564 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13565 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13566 echo "${ECHO_T}$can_build_shared" >&6; }
13568 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13569 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13570 test "$can_build_shared" = "no" && enable_shared=no
13572 # On AIX, shared libraries and static libraries use the same namespace, and
13573 # are all built from PIC.
13574 case $host_os in
13575 aix3*)
13576 test "$enable_shared" = yes && enable_static=no
13577 if test -n "$RANLIB"; then
13578 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13579 postinstall_cmds='$RANLIB $lib'
13582 aix[4-9]*)
13583 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13584 test "$enable_shared" = yes && enable_static=no
13587 esac
13588 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13589 echo "${ECHO_T}$enable_shared" >&6; }
13591 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13592 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13593 # Make sure either enable_shared or enable_static is yes.
13594 test "$enable_shared" = yes || enable_static=yes
13595 { echo "$as_me:$LINENO: result: $enable_static" >&5
13596 echo "${ECHO_T}$enable_static" >&6; }
13598 GCC_F77="$G77"
13599 LD_F77="$LD"
13601 lt_prog_compiler_wl_F77=
13602 lt_prog_compiler_pic_F77=
13603 lt_prog_compiler_static_F77=
13605 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13608 if test "$GCC" = yes; then
13609 lt_prog_compiler_wl_F77='-Wl,'
13610 lt_prog_compiler_static_F77='-static'
13612 case $host_os in
13613 aix*)
13614 # All AIX code is PIC.
13615 if test "$host_cpu" = ia64; then
13616 # AIX 5 now supports IA64 processor
13617 lt_prog_compiler_static_F77='-Bstatic'
13621 amigaos*)
13622 # FIXME: we need at least 68020 code to build shared libraries, but
13623 # adding the `-m68020' flag to GCC prevents building anything better,
13624 # like `-m68040'.
13625 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13628 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13629 # PIC is the default for these OSes.
13632 mingw* | cygwin* | pw32* | os2*)
13633 # This hack is so that the source file can tell whether it is being
13634 # built for inclusion in a dll (and should export symbols for example).
13635 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13636 # (--disable-auto-import) libraries
13637 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13640 darwin* | rhapsody*)
13641 # PIC is the default on this platform
13642 # Common symbols not allowed in MH_DYLIB files
13643 lt_prog_compiler_pic_F77='-fno-common'
13646 interix[3-9]*)
13647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13648 # Instead, we relocate shared libraries at runtime.
13651 msdosdjgpp*)
13652 # Just because we use GCC doesn't mean we suddenly get shared libraries
13653 # on systems that don't support them.
13654 lt_prog_compiler_can_build_shared_F77=no
13655 enable_shared=no
13658 sysv4*MP*)
13659 if test -d /usr/nec; then
13660 lt_prog_compiler_pic_F77=-Kconform_pic
13664 hpux*)
13665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13666 # not for PA HP-UX.
13667 case $host_cpu in
13668 hppa*64*|ia64*)
13669 # +Z the default
13672 lt_prog_compiler_pic_F77='-fPIC'
13674 esac
13678 lt_prog_compiler_pic_F77='-fPIC'
13680 esac
13681 else
13682 # PORTME Check for flag to pass linker flags through the system compiler.
13683 case $host_os in
13684 aix*)
13685 lt_prog_compiler_wl_F77='-Wl,'
13686 if test "$host_cpu" = ia64; then
13687 # AIX 5 now supports IA64 processor
13688 lt_prog_compiler_static_F77='-Bstatic'
13689 else
13690 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13693 darwin*)
13694 # PIC is the default on this platform
13695 # Common symbols not allowed in MH_DYLIB files
13696 case $cc_basename in
13697 xlc*)
13698 lt_prog_compiler_pic_F77='-qnocommon'
13699 lt_prog_compiler_wl_F77='-Wl,'
13701 esac
13704 mingw* | cygwin* | pw32* | os2*)
13705 # This hack is so that the source file can tell whether it is being
13706 # built for inclusion in a dll (and should export symbols for example).
13707 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13710 hpux9* | hpux10* | hpux11*)
13711 lt_prog_compiler_wl_F77='-Wl,'
13712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13713 # not for PA HP-UX.
13714 case $host_cpu in
13715 hppa*64*|ia64*)
13716 # +Z the default
13719 lt_prog_compiler_pic_F77='+Z'
13721 esac
13722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13723 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13726 irix5* | irix6* | nonstopux*)
13727 lt_prog_compiler_wl_F77='-Wl,'
13728 # PIC (with -KPIC) is the default.
13729 lt_prog_compiler_static_F77='-non_shared'
13732 newsos6)
13733 lt_prog_compiler_pic_F77='-KPIC'
13734 lt_prog_compiler_static_F77='-Bstatic'
13737 linux* | k*bsd*-gnu)
13738 case $cc_basename in
13739 icc* | ecc*)
13740 lt_prog_compiler_wl_F77='-Wl,'
13741 lt_prog_compiler_pic_F77='-KPIC'
13742 lt_prog_compiler_static_F77='-static'
13744 pgcc* | pgf77* | pgf90* | pgf95*)
13745 # Portland Group compilers (*not* the Pentium gcc compiler,
13746 # which looks to be a dead project)
13747 lt_prog_compiler_wl_F77='-Wl,'
13748 lt_prog_compiler_pic_F77='-fpic'
13749 lt_prog_compiler_static_F77='-Bstatic'
13751 ccc*)
13752 lt_prog_compiler_wl_F77='-Wl,'
13753 # All Alpha code is PIC.
13754 lt_prog_compiler_static_F77='-non_shared'
13757 case `$CC -V 2>&1 | sed 5q` in
13758 *Sun\ C*)
13759 # Sun C 5.9
13760 lt_prog_compiler_pic_F77='-KPIC'
13761 lt_prog_compiler_static_F77='-Bstatic'
13762 lt_prog_compiler_wl_F77='-Wl,'
13764 *Sun\ F*)
13765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13766 lt_prog_compiler_pic_F77='-KPIC'
13767 lt_prog_compiler_static_F77='-Bstatic'
13768 lt_prog_compiler_wl_F77=''
13770 esac
13772 esac
13775 osf3* | osf4* | osf5*)
13776 lt_prog_compiler_wl_F77='-Wl,'
13777 # All OSF/1 code is PIC.
13778 lt_prog_compiler_static_F77='-non_shared'
13781 rdos*)
13782 lt_prog_compiler_static_F77='-non_shared'
13785 solaris*)
13786 lt_prog_compiler_pic_F77='-KPIC'
13787 lt_prog_compiler_static_F77='-Bstatic'
13788 case $cc_basename in
13789 f77* | f90* | f95*)
13790 lt_prog_compiler_wl_F77='-Qoption ld ';;
13792 lt_prog_compiler_wl_F77='-Wl,';;
13793 esac
13796 sunos4*)
13797 lt_prog_compiler_wl_F77='-Qoption ld '
13798 lt_prog_compiler_pic_F77='-PIC'
13799 lt_prog_compiler_static_F77='-Bstatic'
13802 sysv4 | sysv4.2uw2* | sysv4.3*)
13803 lt_prog_compiler_wl_F77='-Wl,'
13804 lt_prog_compiler_pic_F77='-KPIC'
13805 lt_prog_compiler_static_F77='-Bstatic'
13808 sysv4*MP*)
13809 if test -d /usr/nec ;then
13810 lt_prog_compiler_pic_F77='-Kconform_pic'
13811 lt_prog_compiler_static_F77='-Bstatic'
13815 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13816 lt_prog_compiler_wl_F77='-Wl,'
13817 lt_prog_compiler_pic_F77='-KPIC'
13818 lt_prog_compiler_static_F77='-Bstatic'
13821 unicos*)
13822 lt_prog_compiler_wl_F77='-Wl,'
13823 lt_prog_compiler_can_build_shared_F77=no
13826 uts4*)
13827 lt_prog_compiler_pic_F77='-pic'
13828 lt_prog_compiler_static_F77='-Bstatic'
13832 lt_prog_compiler_can_build_shared_F77=no
13834 esac
13837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13838 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13841 # Check to make sure the PIC flag actually works.
13843 if test -n "$lt_prog_compiler_pic_F77"; then
13845 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13846 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13847 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850 lt_cv_prog_compiler_pic_works_F77=no
13851 ac_outfile=conftest.$ac_objext
13852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13853 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13854 # Insert the option either (1) after the last *FLAGS variable, or
13855 # (2) before a word containing "conftest.", or (3) at the end.
13856 # Note that $ac_compile itself does not contain backslashes and begins
13857 # with a dollar sign (not a hyphen), so the echo should work correctly.
13858 # The option is referenced via a variable to avoid confusing sed.
13859 lt_compile=`echo "$ac_compile" | $SED \
13860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13862 -e 's:$: $lt_compiler_flag:'`
13863 (eval echo "\"\$as_me:13863: $lt_compile\"" >&5)
13864 (eval "$lt_compile" 2>conftest.err)
13865 ac_status=$?
13866 cat conftest.err >&5
13867 echo "$as_me:13867: \$? = $ac_status" >&5
13868 if (exit $ac_status) && test -s "$ac_outfile"; then
13869 # The compiler can only warn and ignore the option if not recognized
13870 # So say no if there are warnings other than the usual output.
13871 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13874 lt_cv_prog_compiler_pic_works_F77=yes
13877 $rm conftest*
13880 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13881 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
13883 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13884 case $lt_prog_compiler_pic_F77 in
13885 "" | " "*) ;;
13886 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13887 esac
13888 else
13889 lt_prog_compiler_pic_F77=
13890 lt_prog_compiler_can_build_shared_F77=no
13894 case $host_os in
13895 # For platforms which do not support PIC, -DPIC is meaningless:
13896 *djgpp*)
13897 lt_prog_compiler_pic_F77=
13900 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13902 esac
13905 # Check to make sure the static flag actually works.
13907 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13908 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13909 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13910 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913 lt_cv_prog_compiler_static_works_F77=no
13914 save_LDFLAGS="$LDFLAGS"
13915 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13916 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13917 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13918 # The linker can only warn and ignore the option if not recognized
13919 # So say no if there are warnings
13920 if test -s conftest.err; then
13921 # Append any errors to the config.log.
13922 cat conftest.err 1>&5
13923 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13925 if diff conftest.exp conftest.er2 >/dev/null; then
13926 lt_cv_prog_compiler_static_works_F77=yes
13928 else
13929 lt_cv_prog_compiler_static_works_F77=yes
13932 $rm -r conftest*
13933 LDFLAGS="$save_LDFLAGS"
13936 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
13937 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
13939 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13941 else
13942 lt_prog_compiler_static_F77=
13946 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13947 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13948 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951 lt_cv_prog_compiler_c_o_F77=no
13952 $rm -r conftest 2>/dev/null
13953 mkdir conftest
13954 cd conftest
13955 mkdir out
13956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13958 lt_compiler_flag="-o out/conftest2.$ac_objext"
13959 # Insert the option either (1) after the last *FLAGS variable, or
13960 # (2) before a word containing "conftest.", or (3) at the end.
13961 # Note that $ac_compile itself does not contain backslashes and begins
13962 # with a dollar sign (not a hyphen), so the echo should work correctly.
13963 lt_compile=`echo "$ac_compile" | $SED \
13964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13966 -e 's:$: $lt_compiler_flag:'`
13967 (eval echo "\"\$as_me:13967: $lt_compile\"" >&5)
13968 (eval "$lt_compile" 2>out/conftest.err)
13969 ac_status=$?
13970 cat out/conftest.err >&5
13971 echo "$as_me:13971: \$? = $ac_status" >&5
13972 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13973 then
13974 # The compiler can only warn and ignore the option if not recognized
13975 # So say no if there are warnings
13976 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13979 lt_cv_prog_compiler_c_o_F77=yes
13982 chmod u+w . 2>&5
13983 $rm conftest*
13984 # SGI C++ compiler will create directory out/ii_files/ for
13985 # template instantiation
13986 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13987 $rm out/* && rmdir out
13988 cd ..
13989 rmdir conftest
13990 $rm conftest*
13993 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13994 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13997 hard_links="nottested"
13998 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13999 # do not overwrite the value of need_locks provided by the user
14000 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14001 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14002 hard_links=yes
14003 $rm conftest*
14004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14005 touch conftest.a
14006 ln conftest.a conftest.b 2>&5 || hard_links=no
14007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14008 { echo "$as_me:$LINENO: result: $hard_links" >&5
14009 echo "${ECHO_T}$hard_links" >&6; }
14010 if test "$hard_links" = no; then
14011 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14012 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14013 need_locks=warn
14015 else
14016 need_locks=no
14019 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14022 runpath_var=
14023 allow_undefined_flag_F77=
14024 enable_shared_with_static_runtimes_F77=no
14025 archive_cmds_F77=
14026 archive_expsym_cmds_F77=
14027 old_archive_From_new_cmds_F77=
14028 old_archive_from_expsyms_cmds_F77=
14029 export_dynamic_flag_spec_F77=
14030 whole_archive_flag_spec_F77=
14031 thread_safe_flag_spec_F77=
14032 hardcode_libdir_flag_spec_F77=
14033 hardcode_libdir_flag_spec_ld_F77=
14034 hardcode_libdir_separator_F77=
14035 hardcode_direct_F77=no
14036 hardcode_minus_L_F77=no
14037 hardcode_shlibpath_var_F77=unsupported
14038 link_all_deplibs_F77=unknown
14039 hardcode_automatic_F77=no
14040 module_cmds_F77=
14041 module_expsym_cmds_F77=
14042 always_export_symbols_F77=no
14043 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14044 # include_expsyms should be a list of space-separated symbols to be *always*
14045 # included in the symbol list
14046 include_expsyms_F77=
14047 # exclude_expsyms can be an extended regexp of symbols to exclude
14048 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14049 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14050 # as well as any symbol that contains `d'.
14051 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14053 # platforms (ab)use it in PIC code, but their linkers get confused if
14054 # the symbol is explicitly referenced. Since portable code cannot
14055 # rely on this symbol name, it's probably fine to never include it in
14056 # preloaded symbol tables.
14057 # Exclude shared library initialization/finalization symbols.
14058 extract_expsyms_cmds=
14059 # Just being paranoid about ensuring that cc_basename is set.
14060 for cc_temp in $compiler""; do
14061 case $cc_temp in
14062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14064 \-*) ;;
14065 *) break;;
14066 esac
14067 done
14068 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14070 case $host_os in
14071 cygwin* | mingw* | pw32*)
14072 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14073 # When not using gcc, we currently assume that we are using
14074 # Microsoft Visual C++.
14075 if test "$GCC" != yes; then
14076 with_gnu_ld=no
14079 interix*)
14080 # we just hope/assume this is gcc and not c89 (= MSVC++)
14081 with_gnu_ld=yes
14083 openbsd*)
14084 with_gnu_ld=no
14086 esac
14088 ld_shlibs_F77=yes
14089 if test "$with_gnu_ld" = yes; then
14090 # If archive_cmds runs LD, not CC, wlarc should be empty
14091 wlarc='${wl}'
14093 # Set some defaults for GNU ld with shared library support. These
14094 # are reset later if shared libraries are not supported. Putting them
14095 # here allows them to be overridden if necessary.
14096 runpath_var=LD_RUN_PATH
14097 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14098 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14099 # ancient GNU ld didn't support --whole-archive et. al.
14100 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14101 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14102 else
14103 whole_archive_flag_spec_F77=
14105 supports_anon_versioning=no
14106 case `$LD -v 2>/dev/null` in
14107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14110 *\ 2.11.*) ;; # other 2.11 versions
14111 *) supports_anon_versioning=yes ;;
14112 esac
14114 # See if GNU ld supports shared libraries.
14115 case $host_os in
14116 aix[3-9]*)
14117 # On AIX/PPC, the GNU linker is very broken
14118 if test "$host_cpu" != ia64; then
14119 ld_shlibs_F77=no
14120 cat <<EOF 1>&2
14122 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14123 *** to be unable to reliably create shared libraries on AIX.
14124 *** Therefore, libtool is disabling shared libraries support. If you
14125 *** really care for shared libraries, you may want to modify your PATH
14126 *** so that a non-GNU linker is found, and then restart.
14132 amigaos*)
14133 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14134 hardcode_libdir_flag_spec_F77='-L$libdir'
14135 hardcode_minus_L_F77=yes
14137 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14138 # that the semantics of dynamic libraries on AmigaOS, at least up
14139 # to version 4, is to share data among multiple programs linked
14140 # with the same dynamic library. Since this doesn't match the
14141 # behavior of shared libraries on other platforms, we can't use
14142 # them.
14143 ld_shlibs_F77=no
14146 beos*)
14147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14148 allow_undefined_flag_F77=unsupported
14149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14150 # support --undefined. This deserves some investigation. FIXME
14151 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14152 else
14153 ld_shlibs_F77=no
14157 cygwin* | mingw* | pw32*)
14158 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14159 # as there is no search path for DLLs.
14160 hardcode_libdir_flag_spec_F77='-L$libdir'
14161 allow_undefined_flag_F77=unsupported
14162 always_export_symbols_F77=no
14163 enable_shared_with_static_runtimes_F77=yes
14164 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14166 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14167 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14168 # If the export-symbols file already is a .def file (1st line
14169 # is EXPORTS), use it as is; otherwise, prepend...
14170 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14171 cp $export_symbols $output_objdir/$soname.def;
14172 else
14173 echo EXPORTS > $output_objdir/$soname.def;
14174 cat $export_symbols >> $output_objdir/$soname.def;
14176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14177 else
14178 ld_shlibs_F77=no
14182 interix[3-9]*)
14183 hardcode_direct_F77=no
14184 hardcode_shlibpath_var_F77=no
14185 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14186 export_dynamic_flag_spec_F77='${wl}-E'
14187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14188 # Instead, shared libraries are loaded at an image base (0x10000000 by
14189 # default) and relocated if they conflict, which is a slow very memory
14190 # consuming and fragmenting process. To avoid this, we pick a random,
14191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14193 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14194 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14197 gnu* | linux* | k*bsd*-gnu)
14198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14199 tmp_addflag=
14200 case $cc_basename,$host_cpu in
14201 pgcc*) # Portland Group C compiler
14202 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14203 tmp_addflag=' $pic_flag'
14205 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14206 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14207 tmp_addflag=' $pic_flag -Mnomain' ;;
14208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14209 tmp_addflag=' -i_dynamic' ;;
14210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14211 tmp_addflag=' -i_dynamic -nofor_main' ;;
14212 ifc* | ifort*) # Intel Fortran compiler
14213 tmp_addflag=' -nofor_main' ;;
14214 esac
14215 case `$CC -V 2>&1 | sed 5q` in
14216 *Sun\ C*) # Sun C 5.9
14217 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14218 tmp_sharedflag='-G' ;;
14219 *Sun\ F*) # Sun Fortran 8.3
14220 tmp_sharedflag='-G' ;;
14222 tmp_sharedflag='-shared' ;;
14223 esac
14224 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14226 if test $supports_anon_versioning = yes; then
14227 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14229 $echo "local: *; };" >> $output_objdir/$libname.ver~
14230 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14232 else
14233 ld_shlibs_F77=no
14237 netbsd*)
14238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14239 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14240 wlarc=
14241 else
14242 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14243 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14247 solaris*)
14248 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14249 ld_shlibs_F77=no
14250 cat <<EOF 1>&2
14252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14253 *** create shared libraries on Solaris systems. Therefore, libtool
14254 *** is disabling shared libraries support. We urge you to upgrade GNU
14255 *** binutils to release 2.9.1 or newer. Another option is to modify
14256 *** your PATH or compiler configuration so that the native linker is
14257 *** used, and then restart.
14260 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14261 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14262 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14263 else
14264 ld_shlibs_F77=no
14268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14269 case `$LD -v 2>&1` in
14270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14271 ld_shlibs_F77=no
14272 cat <<_LT_EOF 1>&2
14274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14275 *** reliably create shared libraries on SCO systems. Therefore, libtool
14276 *** is disabling shared libraries support. We urge you to upgrade GNU
14277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14278 *** your PATH or compiler configuration so that the native linker is
14279 *** used, and then restart.
14281 _LT_EOF
14284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14285 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14286 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14287 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14288 else
14289 ld_shlibs_F77=no
14292 esac
14295 sunos4*)
14296 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14297 wlarc=
14298 hardcode_direct_F77=yes
14299 hardcode_shlibpath_var_F77=no
14303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14304 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14305 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14306 else
14307 ld_shlibs_F77=no
14310 esac
14312 if test "$ld_shlibs_F77" = no; then
14313 runpath_var=
14314 hardcode_libdir_flag_spec_F77=
14315 export_dynamic_flag_spec_F77=
14316 whole_archive_flag_spec_F77=
14318 else
14319 # PORTME fill in a description of your system's linker (not GNU ld)
14320 case $host_os in
14321 aix3*)
14322 allow_undefined_flag_F77=unsupported
14323 always_export_symbols_F77=yes
14324 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14325 # Note: this linker hardcodes the directories in LIBPATH if there
14326 # are no directories specified by -L.
14327 hardcode_minus_L_F77=yes
14328 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14329 # Neither direct hardcoding nor static linking is supported with a
14330 # broken collect2.
14331 hardcode_direct_F77=unsupported
14335 aix[4-9]*)
14336 if test "$host_cpu" = ia64; then
14337 # On IA64, the linker does run time linking by default, so we don't
14338 # have to do anything special.
14339 aix_use_runtimelinking=no
14340 exp_sym_flag='-Bexport'
14341 no_entry_flag=""
14342 else
14343 # If we're using GNU nm, then we don't want the "-C" option.
14344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14345 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14346 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14347 else
14348 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14350 aix_use_runtimelinking=no
14352 # Test if we are trying to use run time linking or normal
14353 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14354 # need to do runtime linking.
14355 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14356 for ld_flag in $LDFLAGS; do
14357 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14358 aix_use_runtimelinking=yes
14359 break
14361 done
14363 esac
14365 exp_sym_flag='-bexport'
14366 no_entry_flag='-bnoentry'
14369 # When large executables or shared objects are built, AIX ld can
14370 # have problems creating the table of contents. If linking a library
14371 # or program results in "error TOC overflow" add -mminimal-toc to
14372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14375 archive_cmds_F77=''
14376 hardcode_direct_F77=yes
14377 hardcode_libdir_separator_F77=':'
14378 link_all_deplibs_F77=yes
14380 if test "$GCC" = yes; then
14381 case $host_os in aix4.[012]|aix4.[012].*)
14382 # We only want to do this on AIX 4.2 and lower, the check
14383 # below for broken collect2 doesn't work under 4.3+
14384 collect2name=`${CC} -print-prog-name=collect2`
14385 if test -f "$collect2name" && \
14386 strings "$collect2name" | grep resolve_lib_name >/dev/null
14387 then
14388 # We have reworked collect2
14390 else
14391 # We have old collect2
14392 hardcode_direct_F77=unsupported
14393 # It fails to find uninstalled libraries when the uninstalled
14394 # path is not listed in the libpath. Setting hardcode_minus_L
14395 # to unsupported forces relinking
14396 hardcode_minus_L_F77=yes
14397 hardcode_libdir_flag_spec_F77='-L$libdir'
14398 hardcode_libdir_separator_F77=
14401 esac
14402 shared_flag='-shared'
14403 if test "$aix_use_runtimelinking" = yes; then
14404 shared_flag="$shared_flag "'${wl}-G'
14406 else
14407 # not using gcc
14408 if test "$host_cpu" = ia64; then
14409 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14410 # chokes on -Wl,-G. The following line is correct:
14411 shared_flag='-G'
14412 else
14413 if test "$aix_use_runtimelinking" = yes; then
14414 shared_flag='${wl}-G'
14415 else
14416 shared_flag='${wl}-bM:SRE'
14421 # It seems that -bexpall does not export symbols beginning with
14422 # underscore (_), so it is better to generate a list of symbols to export.
14423 always_export_symbols_F77=yes
14424 if test "$aix_use_runtimelinking" = yes; then
14425 # Warning - without using the other runtime loading flags (-brtl),
14426 # -berok will link without error, but may produce a broken library.
14427 allow_undefined_flag_F77='-berok'
14428 # Determine the default libpath from the value encoded in an empty executable.
14429 cat >conftest.$ac_ext <<_ACEOF
14430 program main
14433 _ACEOF
14434 rm -f conftest.$ac_objext conftest$ac_exeext
14435 if { (ac_try="$ac_link"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_link") 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } && {
14448 test -z "$ac_f77_werror_flag" ||
14449 test ! -s conftest.err
14450 } && test -s conftest$ac_exeext &&
14451 $as_test_x conftest$ac_exeext; then
14453 lt_aix_libpath_sed='
14454 /Import File Strings/,/^$/ {
14455 /^0/ {
14456 s/^0 *\(.*\)$/\1/
14460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14461 # Check for a 64-bit object if we didn't find anything.
14462 if test -z "$aix_libpath"; then
14463 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14473 conftest$ac_exeext conftest.$ac_ext
14474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14476 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14477 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14478 else
14479 if test "$host_cpu" = ia64; then
14480 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14481 allow_undefined_flag_F77="-z nodefs"
14482 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14483 else
14484 # Determine the default libpath from the value encoded in an empty executable.
14485 cat >conftest.$ac_ext <<_ACEOF
14486 program main
14489 _ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (ac_try="$ac_link"
14492 case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495 esac
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_link") 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_f77_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest$ac_exeext &&
14507 $as_test_x conftest$ac_exeext; then
14509 lt_aix_libpath_sed='
14510 /Import File Strings/,/^$/ {
14511 /^0/ {
14512 s/^0 *\(.*\)$/\1/
14516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14517 # Check for a 64-bit object if we didn't find anything.
14518 if test -z "$aix_libpath"; then
14519 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14521 else
14522 echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14529 conftest$ac_exeext conftest.$ac_ext
14530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14532 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14533 # Warning - without using the other run time loading flags,
14534 # -berok will link without error, but may produce a broken library.
14535 no_undefined_flag_F77=' ${wl}-bernotok'
14536 allow_undefined_flag_F77=' ${wl}-berok'
14537 # Exported symbols can be pulled into shared objects from archives
14538 whole_archive_flag_spec_F77='$convenience'
14539 archive_cmds_need_lc_F77=yes
14540 # This is similar to how AIX traditionally builds its shared libraries.
14541 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14546 amigaos*)
14547 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14548 hardcode_libdir_flag_spec_F77='-L$libdir'
14549 hardcode_minus_L_F77=yes
14550 # see comment about different semantics on the GNU ld section
14551 ld_shlibs_F77=no
14554 bsdi[45]*)
14555 export_dynamic_flag_spec_F77=-rdynamic
14558 cygwin* | mingw* | pw32*)
14559 # When not using gcc, we currently assume that we are using
14560 # Microsoft Visual C++.
14561 # hardcode_libdir_flag_spec is actually meaningless, as there is
14562 # no search path for DLLs.
14563 hardcode_libdir_flag_spec_F77=' '
14564 allow_undefined_flag_F77=unsupported
14565 # Tell ltmain to make .lib files, not .a files.
14566 libext=lib
14567 # Tell ltmain to make .dll files, not .so files.
14568 shrext_cmds=".dll"
14569 # FIXME: Setting linknames here is a bad hack.
14570 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14571 # The linker will automatically build a .lib file if we build a DLL.
14572 old_archive_From_new_cmds_F77='true'
14573 # FIXME: Should let the user specify the lib program.
14574 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14575 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14576 enable_shared_with_static_runtimes_F77=yes
14579 darwin* | rhapsody*)
14580 case $host_os in
14581 rhapsody* | darwin1.[012])
14582 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14584 *) # Darwin 1.3 on
14585 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14586 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14587 else
14588 case ${MACOSX_DEPLOYMENT_TARGET} in
14589 10.[012])
14590 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14592 10.*)
14593 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14595 esac
14598 esac
14599 archive_cmds_need_lc_F77=no
14600 hardcode_direct_F77=no
14601 hardcode_automatic_F77=yes
14602 hardcode_shlibpath_var_F77=unsupported
14603 whole_archive_flag_spec_F77=''
14604 link_all_deplibs_F77=yes
14605 if test "$GCC" = yes ; then
14606 output_verbose_link_cmd='echo'
14607 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14608 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14609 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14610 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14611 else
14612 case $cc_basename in
14613 xlc*)
14614 output_verbose_link_cmd='echo'
14615 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14616 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14618 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14619 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14622 ld_shlibs_F77=no
14624 esac
14628 dgux*)
14629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14630 hardcode_libdir_flag_spec_F77='-L$libdir'
14631 hardcode_shlibpath_var_F77=no
14634 freebsd1*)
14635 ld_shlibs_F77=no
14638 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14639 # support. Future versions do this automatically, but an explicit c++rt0.o
14640 # does not break anything, and helps significantly (at the cost of a little
14641 # extra space).
14642 freebsd2.2*)
14643 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14644 hardcode_libdir_flag_spec_F77='-R$libdir'
14645 hardcode_direct_F77=yes
14646 hardcode_shlibpath_var_F77=no
14649 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14650 freebsd2*)
14651 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14652 hardcode_direct_F77=yes
14653 hardcode_minus_L_F77=yes
14654 hardcode_shlibpath_var_F77=no
14657 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14658 freebsd* | dragonfly*)
14659 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14660 hardcode_libdir_flag_spec_F77='-R$libdir'
14661 hardcode_direct_F77=yes
14662 hardcode_shlibpath_var_F77=no
14665 hpux9*)
14666 if test "$GCC" = yes; then
14667 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14668 else
14669 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14671 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14672 hardcode_libdir_separator_F77=:
14673 hardcode_direct_F77=yes
14675 # hardcode_minus_L: Not really in the search PATH,
14676 # but as the default location of the library.
14677 hardcode_minus_L_F77=yes
14678 export_dynamic_flag_spec_F77='${wl}-E'
14681 hpux10*)
14682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14683 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14684 else
14685 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14687 if test "$with_gnu_ld" = no; then
14688 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14689 hardcode_libdir_separator_F77=:
14691 hardcode_direct_F77=yes
14692 export_dynamic_flag_spec_F77='${wl}-E'
14694 # hardcode_minus_L: Not really in the search PATH,
14695 # but as the default location of the library.
14696 hardcode_minus_L_F77=yes
14700 hpux11*)
14701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14702 case $host_cpu in
14703 hppa*64*)
14704 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14706 ia64*)
14707 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14710 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14712 esac
14713 else
14714 case $host_cpu in
14715 hppa*64*)
14716 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14718 ia64*)
14719 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14722 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14724 esac
14726 if test "$with_gnu_ld" = no; then
14727 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14728 hardcode_libdir_separator_F77=:
14730 case $host_cpu in
14731 hppa*64*|ia64*)
14732 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14733 hardcode_direct_F77=no
14734 hardcode_shlibpath_var_F77=no
14737 hardcode_direct_F77=yes
14738 export_dynamic_flag_spec_F77='${wl}-E'
14740 # hardcode_minus_L: Not really in the search PATH,
14741 # but as the default location of the library.
14742 hardcode_minus_L_F77=yes
14744 esac
14748 irix5* | irix6* | nonstopux*)
14749 if test "$GCC" = yes; then
14750 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14751 else
14752 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14753 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14756 hardcode_libdir_separator_F77=:
14757 link_all_deplibs_F77=yes
14760 netbsd*)
14761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14762 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14763 else
14764 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14766 hardcode_libdir_flag_spec_F77='-R$libdir'
14767 hardcode_direct_F77=yes
14768 hardcode_shlibpath_var_F77=no
14771 newsos6)
14772 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_direct_F77=yes
14774 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14775 hardcode_libdir_separator_F77=:
14776 hardcode_shlibpath_var_F77=no
14779 openbsd*)
14780 if test -f /usr/libexec/ld.so; then
14781 hardcode_direct_F77=yes
14782 hardcode_shlibpath_var_F77=no
14783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14784 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14785 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14786 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14787 export_dynamic_flag_spec_F77='${wl}-E'
14788 else
14789 case $host_os in
14790 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14791 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_libdir_flag_spec_F77='-R$libdir'
14795 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14796 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14798 esac
14800 else
14801 ld_shlibs_F77=no
14805 os2*)
14806 hardcode_libdir_flag_spec_F77='-L$libdir'
14807 hardcode_minus_L_F77=yes
14808 allow_undefined_flag_F77=unsupported
14809 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14810 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14813 osf3*)
14814 if test "$GCC" = yes; then
14815 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14816 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14817 else
14818 allow_undefined_flag_F77=' -expect_unresolved \*'
14819 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14821 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14822 hardcode_libdir_separator_F77=:
14825 osf4* | osf5*) # as osf3* with the addition of -msym flag
14826 if test "$GCC" = yes; then
14827 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14828 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14829 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14830 else
14831 allow_undefined_flag_F77=' -expect_unresolved \*'
14832 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14833 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14834 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14836 # Both c and cxx compiler support -rpath directly
14837 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14839 hardcode_libdir_separator_F77=:
14842 solaris*)
14843 no_undefined_flag_F77=' -z text'
14844 if test "$GCC" = yes; then
14845 wlarc='${wl}'
14846 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14848 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14849 else
14850 wlarc=''
14851 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14853 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14855 hardcode_libdir_flag_spec_F77='-R$libdir'
14856 hardcode_shlibpath_var_F77=no
14857 case $host_os in
14858 solaris2.[0-5] | solaris2.[0-5].*) ;;
14860 # The compiler driver will combine and reorder linker options,
14861 # but understands `-z linker_flag'. GCC discards it without `$wl',
14862 # but is careful enough not to reorder.
14863 # Supported since Solaris 2.6 (maybe 2.5.1?)
14864 if test "$GCC" = yes; then
14865 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14866 else
14867 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14870 esac
14871 link_all_deplibs_F77=yes
14874 sunos4*)
14875 if test "x$host_vendor" = xsequent; then
14876 # Use $CC to link under sequent, because it throws in some extra .o
14877 # files that make .init and .fini sections work.
14878 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14879 else
14880 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14882 hardcode_libdir_flag_spec_F77='-L$libdir'
14883 hardcode_direct_F77=yes
14884 hardcode_minus_L_F77=yes
14885 hardcode_shlibpath_var_F77=no
14888 sysv4)
14889 case $host_vendor in
14890 sni)
14891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_direct_F77=yes # is this really true???
14894 siemens)
14895 ## LD is ld it makes a PLAMLIB
14896 ## CC just makes a GrossModule.
14897 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14898 reload_cmds_F77='$CC -r -o $output$reload_objs'
14899 hardcode_direct_F77=no
14901 motorola)
14902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14903 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14905 esac
14906 runpath_var='LD_RUN_PATH'
14907 hardcode_shlibpath_var_F77=no
14910 sysv4.3*)
14911 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_shlibpath_var_F77=no
14913 export_dynamic_flag_spec_F77='-Bexport'
14916 sysv4*MP*)
14917 if test -d /usr/nec; then
14918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919 hardcode_shlibpath_var_F77=no
14920 runpath_var=LD_RUN_PATH
14921 hardcode_runpath_var=yes
14922 ld_shlibs_F77=yes
14926 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14927 no_undefined_flag_F77='${wl}-z,text'
14928 archive_cmds_need_lc_F77=no
14929 hardcode_shlibpath_var_F77=no
14930 runpath_var='LD_RUN_PATH'
14932 if test "$GCC" = yes; then
14933 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14934 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14935 else
14936 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14937 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14941 sysv5* | sco3.2v5* | sco5v6*)
14942 # Note: We can NOT use -z defs as we might desire, because we do not
14943 # link with -lc, and that would cause any symbols used from libc to
14944 # always be unresolved, which means just about no library would
14945 # ever link correctly. If we're not using GNU ld we use -z text
14946 # though, which does catch some bad symbols but isn't as heavy-handed
14947 # as -z defs.
14948 no_undefined_flag_F77='${wl}-z,text'
14949 allow_undefined_flag_F77='${wl}-z,nodefs'
14950 archive_cmds_need_lc_F77=no
14951 hardcode_shlibpath_var_F77=no
14952 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14953 hardcode_libdir_separator_F77=':'
14954 link_all_deplibs_F77=yes
14955 export_dynamic_flag_spec_F77='${wl}-Bexport'
14956 runpath_var='LD_RUN_PATH'
14958 if test "$GCC" = yes; then
14959 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 else
14962 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14963 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 uts4*)
14968 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969 hardcode_libdir_flag_spec_F77='-L$libdir'
14970 hardcode_shlibpath_var_F77=no
14974 ld_shlibs_F77=no
14976 esac
14979 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14980 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14981 test "$ld_shlibs_F77" = no && can_build_shared=no
14984 # Do we need to explicitly link libc?
14986 case "x$archive_cmds_need_lc_F77" in
14987 x|xyes)
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_F77=yes
14991 if test "$enable_shared" = yes && test "$GCC" = yes; then
14992 case $archive_cmds_F77 in
14993 *'~'*)
14994 # FIXME: we may have to deal with multi-command sequences.
14996 '$CC '*)
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15002 $rm conftest*
15003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } 2>conftest.err; then
15010 soname=conftest
15011 lib=conftest
15012 libobjs=conftest.$ac_objext
15013 deplibs=
15014 wl=$lt_prog_compiler_wl_F77
15015 pic_flag=$lt_prog_compiler_pic_F77
15016 compiler_flags=-v
15017 linker_flags=-v
15018 verstring=
15019 output_objdir=.
15020 libname=conftest
15021 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15022 allow_undefined_flag_F77=
15023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }
15028 then
15029 archive_cmds_need_lc_F77=no
15030 else
15031 archive_cmds_need_lc_F77=yes
15033 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15034 else
15035 cat conftest.err 1>&5
15037 $rm conftest*
15038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15041 esac
15044 esac
15046 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15048 library_names_spec=
15049 libname_spec='lib$name'
15050 soname_spec=
15051 shrext_cmds=".so"
15052 postinstall_cmds=
15053 postuninstall_cmds=
15054 finish_cmds=
15055 finish_eval=
15056 shlibpath_var=
15057 shlibpath_overrides_runpath=unknown
15058 version_type=none
15059 dynamic_linker="$host_os ld.so"
15060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15062 need_lib_prefix=unknown
15063 hardcode_into_libs=no
15065 # when you set need_version to no, make sure it does not cause -set_version
15066 # flags to be left without arguments
15067 need_version=unknown
15069 case $host_os in
15070 aix3*)
15071 version_type=linux
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15073 shlibpath_var=LIBPATH
15075 # AIX 3 has no versioning support, so we append a major version to the name.
15076 soname_spec='${libname}${release}${shared_ext}$major'
15079 aix[4-9]*)
15080 version_type=linux
15081 need_lib_prefix=no
15082 need_version=no
15083 hardcode_into_libs=yes
15084 if test "$host_cpu" = ia64; then
15085 # AIX 5 supports IA64
15086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 else
15089 # With GCC up to 2.95.x, collect2 would create an import file
15090 # for dependence libraries. The import file would start with
15091 # the line `#! .'. This would cause the generated library to
15092 # depend on `.', always an invalid library. This was fixed in
15093 # development snapshots of GCC prior to 3.0.
15094 case $host_os in
15095 aix4 | aix4.[01] | aix4.[01].*)
15096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15097 echo ' yes '
15098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15100 else
15101 can_build_shared=no
15104 esac
15105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15106 # soname into executable. Probably we can add versioning support to
15107 # collect2, so additional links can be useful in future.
15108 if test "$aix_use_runtimelinking" = yes; then
15109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15110 # instead of lib<name>.a to let people know that these are not
15111 # typical AIX shared libraries.
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 else
15114 # We preserve .a as extension for shared libraries through AIX4.2
15115 # and later when we are not doing run time linking.
15116 library_names_spec='${libname}${release}.a $libname.a'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15119 shlibpath_var=LIBPATH
15123 amigaos*)
15124 library_names_spec='$libname.ixlibrary $libname.a'
15125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15126 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15129 beos*)
15130 library_names_spec='${libname}${shared_ext}'
15131 dynamic_linker="$host_os ld.so"
15132 shlibpath_var=LIBRARY_PATH
15135 bsdi[45]*)
15136 version_type=linux
15137 need_version=no
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15144 # the default ld.so.conf also contains /usr/contrib/lib and
15145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15146 # libtool to hard-code these into programs
15149 cygwin* | mingw* | pw32*)
15150 version_type=windows
15151 shrext_cmds=".dll"
15152 need_version=no
15153 need_lib_prefix=no
15155 case $GCC,$host_os in
15156 yes,cygwin* | yes,mingw* | yes,pw32*)
15157 library_names_spec='$libname.dll.a'
15158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15159 postinstall_cmds='base_file=`basename \${file}`~
15160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15161 dldir=$destdir/`dirname \$dlpath`~
15162 test -d \$dldir || mkdir -p \$dldir~
15163 $install_prog $dir/$dlname \$dldir/$dlname~
15164 chmod a+x \$dldir/$dlname'
15165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15166 dlpath=$dir/\$dldll~
15167 $rm \$dlpath'
15168 shlibpath_overrides_runpath=yes
15170 case $host_os in
15171 cygwin*)
15172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15176 mingw*)
15177 # MinGW DLLs use traditional 'lib' prefix
15178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15181 # It is most probably a Windows format PATH printed by
15182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15183 # path with ; separators, and with drive letters. We can handle the
15184 # drive letters (cygwin fileutils understands them), so leave them,
15185 # especially as we might pass files found there to a mingw objdump,
15186 # which wouldn't understand a cygwinified path. Ahh.
15187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15188 else
15189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15192 pw32*)
15193 # pw32 DLLs use 'pw' prefix rather than 'lib'
15194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15196 esac
15200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15202 esac
15203 dynamic_linker='Win32 ld.exe'
15204 # FIXME: first we should search . and the directory the executable is in
15205 shlibpath_var=PATH
15208 darwin* | rhapsody*)
15209 dynamic_linker="$host_os dyld"
15210 version_type=darwin
15211 need_lib_prefix=no
15212 need_version=no
15213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15214 soname_spec='${libname}${release}${major}$shared_ext'
15215 shlibpath_overrides_runpath=yes
15216 shlibpath_var=DYLD_LIBRARY_PATH
15217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15222 dgux*)
15223 version_type=linux
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15231 freebsd1*)
15232 dynamic_linker=no
15235 freebsd* | dragonfly*)
15236 # DragonFly does not have aout. When/if they implement a new
15237 # versioning mechanism, adjust this.
15238 if test -x /usr/bin/objformat; then
15239 objformat=`/usr/bin/objformat`
15240 else
15241 case $host_os in
15242 freebsd[123]*) objformat=aout ;;
15243 *) objformat=elf ;;
15244 esac
15246 version_type=freebsd-$objformat
15247 case $version_type in
15248 freebsd-elf*)
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15250 need_version=no
15251 need_lib_prefix=no
15253 freebsd-*)
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15255 need_version=yes
15257 esac
15258 shlibpath_var=LD_LIBRARY_PATH
15259 case $host_os in
15260 freebsd2*)
15261 shlibpath_overrides_runpath=yes
15263 freebsd3.[01]* | freebsdelf3.[01]*)
15264 shlibpath_overrides_runpath=yes
15265 hardcode_into_libs=yes
15267 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15268 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15269 shlibpath_overrides_runpath=no
15270 hardcode_into_libs=yes
15272 *) # from 4.6 on, and DragonFly
15273 shlibpath_overrides_runpath=yes
15274 hardcode_into_libs=yes
15276 esac
15279 gnu*)
15280 version_type=linux
15281 need_lib_prefix=no
15282 need_version=no
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 hardcode_into_libs=yes
15289 hpux9* | hpux10* | hpux11*)
15290 # Give a soname corresponding to the major version so that dld.sl refuses to
15291 # link against other versions.
15292 version_type=sunos
15293 need_lib_prefix=no
15294 need_version=no
15295 case $host_cpu in
15296 ia64*)
15297 shrext_cmds='.so'
15298 hardcode_into_libs=yes
15299 dynamic_linker="$host_os dld.so"
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 if test "X$HPUX_IA64_MODE" = X32; then
15305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15306 else
15307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15311 hppa*64*)
15312 shrext_cmds='.sl'
15313 hardcode_into_libs=yes
15314 dynamic_linker="$host_os dld.sl"
15315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15323 shrext_cmds='.sl'
15324 dynamic_linker="$host_os dld.sl"
15325 shlibpath_var=SHLIB_PATH
15326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328 soname_spec='${libname}${release}${shared_ext}$major'
15330 esac
15331 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15332 postinstall_cmds='chmod 555 $lib'
15335 interix[3-9]*)
15336 version_type=linux
15337 need_lib_prefix=no
15338 need_version=no
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath=no
15344 hardcode_into_libs=yes
15347 irix5* | irix6* | nonstopux*)
15348 case $host_os in
15349 nonstopux*) version_type=nonstopux ;;
15351 if test "$lt_cv_prog_gnu_ld" = yes; then
15352 version_type=linux
15353 else
15354 version_type=irix
15355 fi ;;
15356 esac
15357 need_lib_prefix=no
15358 need_version=no
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15361 case $host_os in
15362 irix5* | nonstopux*)
15363 libsuff= shlibsuff=
15366 case $LD in # libtool.m4 will add one of these switches to LD
15367 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15368 libsuff= shlibsuff= libmagic=32-bit;;
15369 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15370 libsuff=32 shlibsuff=N32 libmagic=N32;;
15371 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15372 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15373 *) libsuff= shlibsuff= libmagic=never-match;;
15374 esac
15376 esac
15377 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15378 shlibpath_overrides_runpath=no
15379 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15380 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15381 hardcode_into_libs=yes
15384 # No shared lib support for Linux oldld, aout, or coff.
15385 linux*oldld* | linux*aout* | linux*coff*)
15386 dynamic_linker=no
15389 # This must be Linux ELF.
15390 linux* | k*bsd*-gnu)
15391 version_type=linux
15392 need_lib_prefix=no
15393 need_version=no
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=no
15399 # This implies no fast_install, which is unacceptable.
15400 # Some rework will be needed to allow for fast_install
15401 # before this can be enabled.
15402 hardcode_into_libs=yes
15404 # Append ld.so.conf contents to the search path
15405 if test -f /etc/ld.so.conf; then
15406 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15407 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15410 # We used to test for /lib/ld.so.1 and disable shared libraries on
15411 # powerpc, because MkLinux only supported shared libraries with the
15412 # GNU dynamic linker. Since this was broken with cross compilers,
15413 # most powerpc-linux boxes support dynamic linking these days and
15414 # people can always --disable-shared, the test was removed, and we
15415 # assume the GNU/Linux dynamic linker is in use.
15416 dynamic_linker='GNU/Linux ld.so'
15419 netbsd*)
15420 version_type=sunos
15421 need_lib_prefix=no
15422 need_version=no
15423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15426 dynamic_linker='NetBSD (a.out) ld.so'
15427 else
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 dynamic_linker='NetBSD ld.elf_so'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath=yes
15434 hardcode_into_libs=yes
15437 newsos6)
15438 version_type=linux
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=yes
15444 nto-qnx*)
15445 version_type=linux
15446 need_lib_prefix=no
15447 need_version=no
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 shlibpath_overrides_runpath=yes
15454 openbsd*)
15455 version_type=sunos
15456 sys_lib_dlsearch_path_spec="/usr/lib"
15457 need_lib_prefix=no
15458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15459 case $host_os in
15460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15461 *) need_version=no ;;
15462 esac
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15467 case $host_os in
15468 openbsd2.[89] | openbsd2.[89].*)
15469 shlibpath_overrides_runpath=no
15472 shlibpath_overrides_runpath=yes
15474 esac
15475 else
15476 shlibpath_overrides_runpath=yes
15480 os2*)
15481 libname_spec='$name'
15482 shrext_cmds=".dll"
15483 need_lib_prefix=no
15484 library_names_spec='$libname${shared_ext} $libname.a'
15485 dynamic_linker='OS/2 ld.exe'
15486 shlibpath_var=LIBPATH
15489 osf3* | osf4* | osf5*)
15490 version_type=osf
15491 need_lib_prefix=no
15492 need_version=no
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15500 rdos*)
15501 dynamic_linker=no
15504 solaris*)
15505 version_type=linux
15506 need_lib_prefix=no
15507 need_version=no
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 shlibpath_overrides_runpath=yes
15512 hardcode_into_libs=yes
15513 # ldd complains unless libraries are executable
15514 postinstall_cmds='chmod +x $lib'
15517 sunos4*)
15518 version_type=sunos
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15521 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=yes
15523 if test "$with_gnu_ld" = yes; then
15524 need_lib_prefix=no
15526 need_version=yes
15529 sysv4 | sysv4.3*)
15530 version_type=linux
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 case $host_vendor in
15535 sni)
15536 shlibpath_overrides_runpath=no
15537 need_lib_prefix=no
15538 export_dynamic_flag_spec='${wl}-Blargedynsym'
15539 runpath_var=LD_RUN_PATH
15541 siemens)
15542 need_lib_prefix=no
15544 motorola)
15545 need_lib_prefix=no
15546 need_version=no
15547 shlibpath_overrides_runpath=no
15548 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15550 esac
15553 sysv4*MP*)
15554 if test -d /usr/nec ;then
15555 version_type=linux
15556 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15557 soname_spec='$libname${shared_ext}.$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15563 version_type=freebsd-elf
15564 need_lib_prefix=no
15565 need_version=no
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LD_LIBRARY_PATH
15569 hardcode_into_libs=yes
15570 if test "$with_gnu_ld" = yes; then
15571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15572 shlibpath_overrides_runpath=no
15573 else
15574 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15575 shlibpath_overrides_runpath=yes
15576 case $host_os in
15577 sco3.2v5*)
15578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15580 esac
15582 sys_lib_dlsearch_path_spec='/usr/lib'
15585 uts4*)
15586 version_type=linux
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588 soname_spec='${libname}${release}${shared_ext}$major'
15589 shlibpath_var=LD_LIBRARY_PATH
15593 dynamic_linker=no
15595 esac
15596 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15597 echo "${ECHO_T}$dynamic_linker" >&6; }
15598 test "$dynamic_linker" = no && can_build_shared=no
15600 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15606 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15607 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15613 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15616 if test "$GCC" = yes; then
15617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15620 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15621 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15622 hardcode_action_F77=
15623 if test -n "$hardcode_libdir_flag_spec_F77" || \
15624 test -n "$runpath_var_F77" || \
15625 test "X$hardcode_automatic_F77" = "Xyes" ; then
15627 # We can hardcode non-existant directories.
15628 if test "$hardcode_direct_F77" != no &&
15629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15630 # have to relink, otherwise we might link with an installed library
15631 # when we should be linking with a yet-to-be-installed one
15632 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15633 test "$hardcode_minus_L_F77" != no; then
15634 # Linking always hardcodes the temporary library directory.
15635 hardcode_action_F77=relink
15636 else
15637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15638 hardcode_action_F77=immediate
15640 else
15641 # We cannot hardcode anything, or else we can only hardcode existing
15642 # directories.
15643 hardcode_action_F77=unsupported
15645 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15646 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15648 if test "$hardcode_action_F77" = relink; then
15649 # Fast installation is not supported
15650 enable_fast_install=no
15651 elif test "$shlibpath_overrides_runpath" = yes ||
15652 test "$enable_shared" = no; then
15653 # Fast installation is not necessary
15654 enable_fast_install=needless
15658 # The else clause should only fire when bootstrapping the
15659 # libtool distribution, otherwise you forgot to ship ltmain.sh
15660 # with your package, and you will get complaints that there are
15661 # no rules to generate ltmain.sh.
15662 if test -f "$ltmain"; then
15663 # See if we are running on zsh, and set the options which allow our commands through
15664 # without removal of \ escapes.
15665 if test -n "${ZSH_VERSION+set}" ; then
15666 setopt NO_GLOB_SUBST
15668 # Now quote all the things that may contain metacharacters while being
15669 # careful not to overquote the AC_SUBSTed values. We take copies of the
15670 # variables and quote the copies for generation of the libtool script.
15671 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15672 SED SHELL STRIP \
15673 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15674 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15675 deplibs_check_method reload_flag reload_cmds need_locks \
15676 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15677 lt_cv_sys_global_symbol_to_c_name_address \
15678 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15679 old_postinstall_cmds old_postuninstall_cmds \
15680 compiler_F77 \
15681 CC_F77 \
15682 LD_F77 \
15683 lt_prog_compiler_wl_F77 \
15684 lt_prog_compiler_pic_F77 \
15685 lt_prog_compiler_static_F77 \
15686 lt_prog_compiler_no_builtin_flag_F77 \
15687 export_dynamic_flag_spec_F77 \
15688 thread_safe_flag_spec_F77 \
15689 whole_archive_flag_spec_F77 \
15690 enable_shared_with_static_runtimes_F77 \
15691 old_archive_cmds_F77 \
15692 old_archive_from_new_cmds_F77 \
15693 predep_objects_F77 \
15694 postdep_objects_F77 \
15695 predeps_F77 \
15696 postdeps_F77 \
15697 compiler_lib_search_path_F77 \
15698 compiler_lib_search_dirs_F77 \
15699 archive_cmds_F77 \
15700 archive_expsym_cmds_F77 \
15701 postinstall_cmds_F77 \
15702 postuninstall_cmds_F77 \
15703 old_archive_from_expsyms_cmds_F77 \
15704 allow_undefined_flag_F77 \
15705 no_undefined_flag_F77 \
15706 export_symbols_cmds_F77 \
15707 hardcode_libdir_flag_spec_F77 \
15708 hardcode_libdir_flag_spec_ld_F77 \
15709 hardcode_libdir_separator_F77 \
15710 hardcode_automatic_F77 \
15711 module_cmds_F77 \
15712 module_expsym_cmds_F77 \
15713 lt_cv_prog_compiler_c_o_F77 \
15714 fix_srcfile_path_F77 \
15715 exclude_expsyms_F77 \
15716 include_expsyms_F77; do
15718 case $var in
15719 old_archive_cmds_F77 | \
15720 old_archive_from_new_cmds_F77 | \
15721 archive_cmds_F77 | \
15722 archive_expsym_cmds_F77 | \
15723 module_cmds_F77 | \
15724 module_expsym_cmds_F77 | \
15725 old_archive_from_expsyms_cmds_F77 | \
15726 export_symbols_cmds_F77 | \
15727 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15728 postinstall_cmds | postuninstall_cmds | \
15729 old_postinstall_cmds | old_postuninstall_cmds | \
15730 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15731 # Double-quote double-evaled strings.
15732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15737 esac
15738 done
15740 case $lt_echo in
15741 *'\$0 --fallback-echo"')
15742 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15744 esac
15746 cfgfile="$ofile"
15748 cat <<__EOF__ >> "$cfgfile"
15749 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15751 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15753 # Shell to use when invoking shell scripts.
15754 SHELL=$lt_SHELL
15756 # Whether or not to build shared libraries.
15757 build_libtool_libs=$enable_shared
15759 # Whether or not to build static libraries.
15760 build_old_libs=$enable_static
15762 # Whether or not to add -lc for building shared libraries.
15763 build_libtool_need_lc=$archive_cmds_need_lc_F77
15765 # Whether or not to disallow shared libs when runtime libs are static
15766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15768 # Whether or not to optimize for fast installation.
15769 fast_install=$enable_fast_install
15771 # The host system.
15772 host_alias=$host_alias
15773 host=$host
15774 host_os=$host_os
15776 # The build system.
15777 build_alias=$build_alias
15778 build=$build
15779 build_os=$build_os
15781 # An echo program that does not interpret backslashes.
15782 echo=$lt_echo
15784 # The archiver.
15785 AR=$lt_AR
15786 AR_FLAGS=$lt_AR_FLAGS
15788 # A C compiler.
15789 LTCC=$lt_LTCC
15791 # LTCC compiler flags.
15792 LTCFLAGS=$lt_LTCFLAGS
15794 # A language-specific compiler.
15795 CC=$lt_compiler_F77
15797 # Is the compiler the GNU C compiler?
15798 with_gcc=$GCC_F77
15800 # An ERE matcher.
15801 EGREP=$lt_EGREP
15803 # The linker used to build libraries.
15804 LD=$lt_LD_F77
15806 # Whether we need hard or soft links.
15807 LN_S=$lt_LN_S
15809 # A BSD-compatible nm program.
15810 NM=$lt_NM
15812 # A symbol stripping program
15813 STRIP=$lt_STRIP
15815 # Used to examine libraries when file_magic_cmd begins "file"
15816 MAGIC_CMD=$MAGIC_CMD
15818 # Used on cygwin: DLL creation program.
15819 DLLTOOL="$DLLTOOL"
15821 # Used on cygwin: object dumper.
15822 OBJDUMP="$OBJDUMP"
15824 # Used on cygwin: assembler.
15825 AS="$AS"
15827 # The name of the directory that contains temporary libtool files.
15828 objdir=$objdir
15830 # How to create reloadable object files.
15831 reload_flag=$lt_reload_flag
15832 reload_cmds=$lt_reload_cmds
15834 # How to pass a linker flag through the compiler.
15835 wl=$lt_lt_prog_compiler_wl_F77
15837 # Object file suffix (normally "o").
15838 objext="$ac_objext"
15840 # Old archive suffix (normally "a").
15841 libext="$libext"
15843 # Shared library suffix (normally ".so").
15844 shrext_cmds='$shrext_cmds'
15846 # Executable file suffix (normally "").
15847 exeext="$exeext"
15849 # Additional compiler flags for building library objects.
15850 pic_flag=$lt_lt_prog_compiler_pic_F77
15851 pic_mode=$pic_mode
15853 # What is the maximum length of a command?
15854 max_cmd_len=$lt_cv_sys_max_cmd_len
15856 # Does compiler simultaneously support -c and -o options?
15857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15859 # Must we lock files when doing compilation?
15860 need_locks=$lt_need_locks
15862 # Do we need the lib prefix for modules?
15863 need_lib_prefix=$need_lib_prefix
15865 # Do we need a version for libraries?
15866 need_version=$need_version
15868 # Whether dlopen is supported.
15869 dlopen_support=$enable_dlopen
15871 # Whether dlopen of programs is supported.
15872 dlopen_self=$enable_dlopen_self
15874 # Whether dlopen of statically linked programs is supported.
15875 dlopen_self_static=$enable_dlopen_self_static
15877 # Compiler flag to prevent dynamic linking.
15878 link_static_flag=$lt_lt_prog_compiler_static_F77
15880 # Compiler flag to turn off builtin functions.
15881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15883 # Compiler flag to allow reflexive dlopens.
15884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15886 # Compiler flag to generate shared objects directly from archives.
15887 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15889 # Compiler flag to generate thread-safe objects.
15890 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15892 # Library versioning type.
15893 version_type=$version_type
15895 # Format of library name prefix.
15896 libname_spec=$lt_libname_spec
15898 # List of archive names. First name is the real one, the rest are links.
15899 # The last name is the one that the linker finds with -lNAME.
15900 library_names_spec=$lt_library_names_spec
15902 # The coded name of the library, if different from the real name.
15903 soname_spec=$lt_soname_spec
15905 # Commands used to build and install an old-style archive.
15906 RANLIB=$lt_RANLIB
15907 old_archive_cmds=$lt_old_archive_cmds_F77
15908 old_postinstall_cmds=$lt_old_postinstall_cmds
15909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15911 # Create an old-style archive from a shared archive.
15912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15914 # Create a temporary old-style archive to link instead of a shared archive.
15915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15917 # Commands used to build and install a shared archive.
15918 archive_cmds=$lt_archive_cmds_F77
15919 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15920 postinstall_cmds=$lt_postinstall_cmds
15921 postuninstall_cmds=$lt_postuninstall_cmds
15923 # Commands used to build a loadable module (assumed same as above if empty)
15924 module_cmds=$lt_module_cmds_F77
15925 module_expsym_cmds=$lt_module_expsym_cmds_F77
15927 # Commands to strip libraries.
15928 old_striplib=$lt_old_striplib
15929 striplib=$lt_striplib
15931 # Dependencies to place before the objects being linked to create a
15932 # shared library.
15933 predep_objects=$lt_predep_objects_F77
15935 # Dependencies to place after the objects being linked to create a
15936 # shared library.
15937 postdep_objects=$lt_postdep_objects_F77
15939 # Dependencies to place before the objects being linked to create a
15940 # shared library.
15941 predeps=$lt_predeps_F77
15943 # Dependencies to place after the objects being linked to create a
15944 # shared library.
15945 postdeps=$lt_postdeps_F77
15947 # The directories searched by this compiler when creating a shared
15948 # library
15949 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15951 # The library search path used internally by the compiler when linking
15952 # a shared library.
15953 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15955 # Method to check whether dependent libraries are shared objects.
15956 deplibs_check_method=$lt_deplibs_check_method
15958 # Command to use when deplibs_check_method == file_magic.
15959 file_magic_cmd=$lt_file_magic_cmd
15961 # Flag that allows shared libraries with undefined symbols to be built.
15962 allow_undefined_flag=$lt_allow_undefined_flag_F77
15964 # Flag that forces no undefined symbols.
15965 no_undefined_flag=$lt_no_undefined_flag_F77
15967 # Commands used to finish a libtool library installation in a directory.
15968 finish_cmds=$lt_finish_cmds
15970 # Same as above, but a single script fragment to be evaled but not shown.
15971 finish_eval=$lt_finish_eval
15973 # Take the output of nm and produce a listing of raw symbols and C names.
15974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15976 # Transform the output of nm in a proper C declaration
15977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15979 # Transform the output of nm in a C name address pair
15980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15982 # This is the shared library runtime path variable.
15983 runpath_var=$runpath_var
15985 # This is the shared library path variable.
15986 shlibpath_var=$shlibpath_var
15988 # Is shlibpath searched before the hard-coded library search path?
15989 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15991 # How to hardcode a shared library path into an executable.
15992 hardcode_action=$hardcode_action_F77
15994 # Whether we should hardcode library paths into libraries.
15995 hardcode_into_libs=$hardcode_into_libs
15997 # Flag to hardcode \$libdir into a binary during linking.
15998 # This must work even if \$libdir does not exist.
15999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16001 # If ld is used when linking, flag to hardcode \$libdir into
16002 # a binary during linking. This must work even if \$libdir does
16003 # not exist.
16004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16006 # Whether we need a single -rpath flag with a separated argument.
16007 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16009 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16010 # resulting binary.
16011 hardcode_direct=$hardcode_direct_F77
16013 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16014 # resulting binary.
16015 hardcode_minus_L=$hardcode_minus_L_F77
16017 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16018 # the resulting binary.
16019 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16021 # Set to yes if building a shared library automatically hardcodes DIR into the library
16022 # and all subsequent libraries and executables linked against it.
16023 hardcode_automatic=$hardcode_automatic_F77
16025 # Variables whose values should be saved in libtool wrapper scripts and
16026 # restored at relink time.
16027 variables_saved_for_relink="$variables_saved_for_relink"
16029 # Whether libtool must link a program against all its dependency libraries.
16030 link_all_deplibs=$link_all_deplibs_F77
16032 # Compile-time system search path for libraries
16033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16035 # Run-time system search path for libraries
16036 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16038 # Fix the shell variable \$srcfile for the compiler.
16039 fix_srcfile_path=$lt_fix_srcfile_path
16041 # Set to yes if exported symbols are required.
16042 always_export_symbols=$always_export_symbols_F77
16044 # The commands to list exported symbols.
16045 export_symbols_cmds=$lt_export_symbols_cmds_F77
16047 # The commands to extract the exported symbol list from a shared archive.
16048 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16050 # Symbols that should not be listed in the preloaded symbols.
16051 exclude_expsyms=$lt_exclude_expsyms_F77
16053 # Symbols that must always be exported.
16054 include_expsyms=$lt_include_expsyms_F77
16056 # ### END LIBTOOL TAG CONFIG: $tagname
16058 __EOF__
16061 else
16062 # If there is no Makefile yet, we rely on a make rule to execute
16063 # `config.status --recheck' to rerun these tests and create the
16064 # libtool script then.
16065 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16066 if test -f "$ltmain_in"; then
16067 test -f Makefile && make "$ltmain"
16072 ac_ext=c
16073 ac_cpp='$CPP $CPPFLAGS'
16074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16078 CC="$lt_save_CC"
16080 else
16081 tagname=""
16085 GCJ)
16086 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16089 # Source file extension for Java test sources.
16090 ac_ext=java
16092 # Object file extension for compiled Java test sources.
16093 objext=o
16094 objext_GCJ=$objext
16096 # Code to be used in simple compile tests
16097 lt_simple_compile_test_code="class foo {}"
16099 # Code to be used in simple link tests
16100 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16104 # If no C compiler was specified, use CC.
16105 LTCC=${LTCC-"$CC"}
16107 # If no C compiler flags were specified, use CFLAGS.
16108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16110 # Allow CC to be a program name with arguments.
16111 compiler=$CC
16114 # save warnings/boilerplate of simple test code
16115 ac_outfile=conftest.$ac_objext
16116 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16117 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16118 _lt_compiler_boilerplate=`cat conftest.err`
16119 $rm conftest*
16121 ac_outfile=conftest.$ac_objext
16122 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16123 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16124 _lt_linker_boilerplate=`cat conftest.err`
16125 $rm -r conftest*
16128 # Allow CC to be a program name with arguments.
16129 lt_save_CC="$CC"
16130 CC=${GCJ-"gcj"}
16131 compiler=$CC
16132 compiler_GCJ=$CC
16133 for cc_temp in $compiler""; do
16134 case $cc_temp in
16135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16137 \-*) ;;
16138 *) break;;
16139 esac
16140 done
16141 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16144 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16145 archive_cmds_need_lc_GCJ=no
16147 old_archive_cmds_GCJ=$old_archive_cmds
16149 ## CAVEAT EMPTOR:
16150 ## There is no encapsulation within the following macros, do not change
16151 ## the running order or otherwise move them around unless you know exactly
16152 ## what you are doing...
16154 lt_prog_compiler_no_builtin_flag_GCJ=
16156 if test "$GCC" = yes; then
16157 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16160 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16161 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16162 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165 lt_cv_prog_compiler_rtti_exceptions=no
16166 ac_outfile=conftest.$ac_objext
16167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16168 lt_compiler_flag="-fno-rtti -fno-exceptions"
16169 # Insert the option either (1) after the last *FLAGS variable, or
16170 # (2) before a word containing "conftest.", or (3) at the end.
16171 # Note that $ac_compile itself does not contain backslashes and begins
16172 # with a dollar sign (not a hyphen), so the echo should work correctly.
16173 # The option is referenced via a variable to avoid confusing sed.
16174 lt_compile=`echo "$ac_compile" | $SED \
16175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16177 -e 's:$: $lt_compiler_flag:'`
16178 (eval echo "\"\$as_me:16178: $lt_compile\"" >&5)
16179 (eval "$lt_compile" 2>conftest.err)
16180 ac_status=$?
16181 cat conftest.err >&5
16182 echo "$as_me:16182: \$? = $ac_status" >&5
16183 if (exit $ac_status) && test -s "$ac_outfile"; then
16184 # The compiler can only warn and ignore the option if not recognized
16185 # So say no if there are warnings other than the usual output.
16186 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16188 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16189 lt_cv_prog_compiler_rtti_exceptions=yes
16192 $rm conftest*
16195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16196 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16198 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16199 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16200 else
16206 lt_prog_compiler_wl_GCJ=
16207 lt_prog_compiler_pic_GCJ=
16208 lt_prog_compiler_static_GCJ=
16210 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16213 if test "$GCC" = yes; then
16214 lt_prog_compiler_wl_GCJ='-Wl,'
16215 lt_prog_compiler_static_GCJ='-static'
16217 case $host_os in
16218 aix*)
16219 # All AIX code is PIC.
16220 if test "$host_cpu" = ia64; then
16221 # AIX 5 now supports IA64 processor
16222 lt_prog_compiler_static_GCJ='-Bstatic'
16226 amigaos*)
16227 # FIXME: we need at least 68020 code to build shared libraries, but
16228 # adding the `-m68020' flag to GCC prevents building anything better,
16229 # like `-m68040'.
16230 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16233 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16234 # PIC is the default for these OSes.
16237 mingw* | cygwin* | pw32* | os2*)
16238 # This hack is so that the source file can tell whether it is being
16239 # built for inclusion in a dll (and should export symbols for example).
16240 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16241 # (--disable-auto-import) libraries
16245 darwin* | rhapsody*)
16246 # PIC is the default on this platform
16247 # Common symbols not allowed in MH_DYLIB files
16248 lt_prog_compiler_pic_GCJ='-fno-common'
16251 interix[3-9]*)
16252 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16253 # Instead, we relocate shared libraries at runtime.
16256 msdosdjgpp*)
16257 # Just because we use GCC doesn't mean we suddenly get shared libraries
16258 # on systems that don't support them.
16259 lt_prog_compiler_can_build_shared_GCJ=no
16260 enable_shared=no
16263 sysv4*MP*)
16264 if test -d /usr/nec; then
16265 lt_prog_compiler_pic_GCJ=-Kconform_pic
16269 hpux*)
16270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16271 # not for PA HP-UX.
16272 case $host_cpu in
16273 hppa*64*|ia64*)
16274 # +Z the default
16277 lt_prog_compiler_pic_GCJ='-fPIC'
16279 esac
16283 lt_prog_compiler_pic_GCJ='-fPIC'
16285 esac
16286 else
16287 # PORTME Check for flag to pass linker flags through the system compiler.
16288 case $host_os in
16289 aix*)
16290 lt_prog_compiler_wl_GCJ='-Wl,'
16291 if test "$host_cpu" = ia64; then
16292 # AIX 5 now supports IA64 processor
16293 lt_prog_compiler_static_GCJ='-Bstatic'
16294 else
16295 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16298 darwin*)
16299 # PIC is the default on this platform
16300 # Common symbols not allowed in MH_DYLIB files
16301 case $cc_basename in
16302 xlc*)
16303 lt_prog_compiler_pic_GCJ='-qnocommon'
16304 lt_prog_compiler_wl_GCJ='-Wl,'
16306 esac
16309 mingw* | cygwin* | pw32* | os2*)
16310 # This hack is so that the source file can tell whether it is being
16311 # built for inclusion in a dll (and should export symbols for example).
16315 hpux9* | hpux10* | hpux11*)
16316 lt_prog_compiler_wl_GCJ='-Wl,'
16317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16318 # not for PA HP-UX.
16319 case $host_cpu in
16320 hppa*64*|ia64*)
16321 # +Z the default
16324 lt_prog_compiler_pic_GCJ='+Z'
16326 esac
16327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16328 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16331 irix5* | irix6* | nonstopux*)
16332 lt_prog_compiler_wl_GCJ='-Wl,'
16333 # PIC (with -KPIC) is the default.
16334 lt_prog_compiler_static_GCJ='-non_shared'
16337 newsos6)
16338 lt_prog_compiler_pic_GCJ='-KPIC'
16339 lt_prog_compiler_static_GCJ='-Bstatic'
16342 linux* | k*bsd*-gnu)
16343 case $cc_basename in
16344 icc* | ecc*)
16345 lt_prog_compiler_wl_GCJ='-Wl,'
16346 lt_prog_compiler_pic_GCJ='-KPIC'
16347 lt_prog_compiler_static_GCJ='-static'
16349 pgcc* | pgf77* | pgf90* | pgf95*)
16350 # Portland Group compilers (*not* the Pentium gcc compiler,
16351 # which looks to be a dead project)
16352 lt_prog_compiler_wl_GCJ='-Wl,'
16353 lt_prog_compiler_pic_GCJ='-fpic'
16354 lt_prog_compiler_static_GCJ='-Bstatic'
16356 ccc*)
16357 lt_prog_compiler_wl_GCJ='-Wl,'
16358 # All Alpha code is PIC.
16359 lt_prog_compiler_static_GCJ='-non_shared'
16362 case `$CC -V 2>&1 | sed 5q` in
16363 *Sun\ C*)
16364 # Sun C 5.9
16365 lt_prog_compiler_pic_GCJ='-KPIC'
16366 lt_prog_compiler_static_GCJ='-Bstatic'
16367 lt_prog_compiler_wl_GCJ='-Wl,'
16369 *Sun\ F*)
16370 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16371 lt_prog_compiler_pic_GCJ='-KPIC'
16372 lt_prog_compiler_static_GCJ='-Bstatic'
16373 lt_prog_compiler_wl_GCJ=''
16375 esac
16377 esac
16380 osf3* | osf4* | osf5*)
16381 lt_prog_compiler_wl_GCJ='-Wl,'
16382 # All OSF/1 code is PIC.
16383 lt_prog_compiler_static_GCJ='-non_shared'
16386 rdos*)
16387 lt_prog_compiler_static_GCJ='-non_shared'
16390 solaris*)
16391 lt_prog_compiler_pic_GCJ='-KPIC'
16392 lt_prog_compiler_static_GCJ='-Bstatic'
16393 case $cc_basename in
16394 f77* | f90* | f95*)
16395 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16397 lt_prog_compiler_wl_GCJ='-Wl,';;
16398 esac
16401 sunos4*)
16402 lt_prog_compiler_wl_GCJ='-Qoption ld '
16403 lt_prog_compiler_pic_GCJ='-PIC'
16404 lt_prog_compiler_static_GCJ='-Bstatic'
16407 sysv4 | sysv4.2uw2* | sysv4.3*)
16408 lt_prog_compiler_wl_GCJ='-Wl,'
16409 lt_prog_compiler_pic_GCJ='-KPIC'
16410 lt_prog_compiler_static_GCJ='-Bstatic'
16413 sysv4*MP*)
16414 if test -d /usr/nec ;then
16415 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16416 lt_prog_compiler_static_GCJ='-Bstatic'
16420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16421 lt_prog_compiler_wl_GCJ='-Wl,'
16422 lt_prog_compiler_pic_GCJ='-KPIC'
16423 lt_prog_compiler_static_GCJ='-Bstatic'
16426 unicos*)
16427 lt_prog_compiler_wl_GCJ='-Wl,'
16428 lt_prog_compiler_can_build_shared_GCJ=no
16431 uts4*)
16432 lt_prog_compiler_pic_GCJ='-pic'
16433 lt_prog_compiler_static_GCJ='-Bstatic'
16437 lt_prog_compiler_can_build_shared_GCJ=no
16439 esac
16442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16443 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16446 # Check to make sure the PIC flag actually works.
16448 if test -n "$lt_prog_compiler_pic_GCJ"; then
16450 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16451 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16452 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455 lt_cv_prog_compiler_pic_works_GCJ=no
16456 ac_outfile=conftest.$ac_objext
16457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16458 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16459 # Insert the option either (1) after the last *FLAGS variable, or
16460 # (2) before a word containing "conftest.", or (3) at the end.
16461 # Note that $ac_compile itself does not contain backslashes and begins
16462 # with a dollar sign (not a hyphen), so the echo should work correctly.
16463 # The option is referenced via a variable to avoid confusing sed.
16464 lt_compile=`echo "$ac_compile" | $SED \
16465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16467 -e 's:$: $lt_compiler_flag:'`
16468 (eval echo "\"\$as_me:16468: $lt_compile\"" >&5)
16469 (eval "$lt_compile" 2>conftest.err)
16470 ac_status=$?
16471 cat conftest.err >&5
16472 echo "$as_me:16472: \$? = $ac_status" >&5
16473 if (exit $ac_status) && test -s "$ac_outfile"; then
16474 # The compiler can only warn and ignore the option if not recognized
16475 # So say no if there are warnings other than the usual output.
16476 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16479 lt_cv_prog_compiler_pic_works_GCJ=yes
16482 $rm conftest*
16485 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16486 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16488 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16489 case $lt_prog_compiler_pic_GCJ in
16490 "" | " "*) ;;
16491 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16492 esac
16493 else
16494 lt_prog_compiler_pic_GCJ=
16495 lt_prog_compiler_can_build_shared_GCJ=no
16499 case $host_os in
16500 # For platforms which do not support PIC, -DPIC is meaningless:
16501 *djgpp*)
16502 lt_prog_compiler_pic_GCJ=
16505 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16507 esac
16510 # Check to make sure the static flag actually works.
16512 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16513 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16514 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16515 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518 lt_cv_prog_compiler_static_works_GCJ=no
16519 save_LDFLAGS="$LDFLAGS"
16520 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16521 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16522 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16523 # The linker can only warn and ignore the option if not recognized
16524 # So say no if there are warnings
16525 if test -s conftest.err; then
16526 # Append any errors to the config.log.
16527 cat conftest.err 1>&5
16528 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16530 if diff conftest.exp conftest.er2 >/dev/null; then
16531 lt_cv_prog_compiler_static_works_GCJ=yes
16533 else
16534 lt_cv_prog_compiler_static_works_GCJ=yes
16537 $rm -r conftest*
16538 LDFLAGS="$save_LDFLAGS"
16541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16542 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16544 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16546 else
16547 lt_prog_compiler_static_GCJ=
16551 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16552 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16553 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556 lt_cv_prog_compiler_c_o_GCJ=no
16557 $rm -r conftest 2>/dev/null
16558 mkdir conftest
16559 cd conftest
16560 mkdir out
16561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16563 lt_compiler_flag="-o out/conftest2.$ac_objext"
16564 # Insert the option either (1) after the last *FLAGS variable, or
16565 # (2) before a word containing "conftest.", or (3) at the end.
16566 # Note that $ac_compile itself does not contain backslashes and begins
16567 # with a dollar sign (not a hyphen), so the echo should work correctly.
16568 lt_compile=`echo "$ac_compile" | $SED \
16569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16571 -e 's:$: $lt_compiler_flag:'`
16572 (eval echo "\"\$as_me:16572: $lt_compile\"" >&5)
16573 (eval "$lt_compile" 2>out/conftest.err)
16574 ac_status=$?
16575 cat out/conftest.err >&5
16576 echo "$as_me:16576: \$? = $ac_status" >&5
16577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16578 then
16579 # The compiler can only warn and ignore the option if not recognized
16580 # So say no if there are warnings
16581 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16582 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16583 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16584 lt_cv_prog_compiler_c_o_GCJ=yes
16587 chmod u+w . 2>&5
16588 $rm conftest*
16589 # SGI C++ compiler will create directory out/ii_files/ for
16590 # template instantiation
16591 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16592 $rm out/* && rmdir out
16593 cd ..
16594 rmdir conftest
16595 $rm conftest*
16598 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16599 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16602 hard_links="nottested"
16603 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16604 # do not overwrite the value of need_locks provided by the user
16605 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16606 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16607 hard_links=yes
16608 $rm conftest*
16609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16610 touch conftest.a
16611 ln conftest.a conftest.b 2>&5 || hard_links=no
16612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16613 { echo "$as_me:$LINENO: result: $hard_links" >&5
16614 echo "${ECHO_T}$hard_links" >&6; }
16615 if test "$hard_links" = no; then
16616 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16617 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16618 need_locks=warn
16620 else
16621 need_locks=no
16624 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16625 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16627 runpath_var=
16628 allow_undefined_flag_GCJ=
16629 enable_shared_with_static_runtimes_GCJ=no
16630 archive_cmds_GCJ=
16631 archive_expsym_cmds_GCJ=
16632 old_archive_From_new_cmds_GCJ=
16633 old_archive_from_expsyms_cmds_GCJ=
16634 export_dynamic_flag_spec_GCJ=
16635 whole_archive_flag_spec_GCJ=
16636 thread_safe_flag_spec_GCJ=
16637 hardcode_libdir_flag_spec_GCJ=
16638 hardcode_libdir_flag_spec_ld_GCJ=
16639 hardcode_libdir_separator_GCJ=
16640 hardcode_direct_GCJ=no
16641 hardcode_minus_L_GCJ=no
16642 hardcode_shlibpath_var_GCJ=unsupported
16643 link_all_deplibs_GCJ=unknown
16644 hardcode_automatic_GCJ=no
16645 module_cmds_GCJ=
16646 module_expsym_cmds_GCJ=
16647 always_export_symbols_GCJ=no
16648 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16649 # include_expsyms should be a list of space-separated symbols to be *always*
16650 # included in the symbol list
16651 include_expsyms_GCJ=
16652 # exclude_expsyms can be an extended regexp of symbols to exclude
16653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16655 # as well as any symbol that contains `d'.
16656 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16658 # platforms (ab)use it in PIC code, but their linkers get confused if
16659 # the symbol is explicitly referenced. Since portable code cannot
16660 # rely on this symbol name, it's probably fine to never include it in
16661 # preloaded symbol tables.
16662 # Exclude shared library initialization/finalization symbols.
16663 extract_expsyms_cmds=
16664 # Just being paranoid about ensuring that cc_basename is set.
16665 for cc_temp in $compiler""; do
16666 case $cc_temp in
16667 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16668 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16669 \-*) ;;
16670 *) break;;
16671 esac
16672 done
16673 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16675 case $host_os in
16676 cygwin* | mingw* | pw32*)
16677 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16678 # When not using gcc, we currently assume that we are using
16679 # Microsoft Visual C++.
16680 if test "$GCC" != yes; then
16681 with_gnu_ld=no
16684 interix*)
16685 # we just hope/assume this is gcc and not c89 (= MSVC++)
16686 with_gnu_ld=yes
16688 openbsd*)
16689 with_gnu_ld=no
16691 esac
16693 ld_shlibs_GCJ=yes
16694 if test "$with_gnu_ld" = yes; then
16695 # If archive_cmds runs LD, not CC, wlarc should be empty
16696 wlarc='${wl}'
16698 # Set some defaults for GNU ld with shared library support. These
16699 # are reset later if shared libraries are not supported. Putting them
16700 # here allows them to be overridden if necessary.
16701 runpath_var=LD_RUN_PATH
16702 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16703 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16704 # ancient GNU ld didn't support --whole-archive et. al.
16705 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16706 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16707 else
16708 whole_archive_flag_spec_GCJ=
16710 supports_anon_versioning=no
16711 case `$LD -v 2>/dev/null` in
16712 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16713 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16714 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16715 *\ 2.11.*) ;; # other 2.11 versions
16716 *) supports_anon_versioning=yes ;;
16717 esac
16719 # See if GNU ld supports shared libraries.
16720 case $host_os in
16721 aix[3-9]*)
16722 # On AIX/PPC, the GNU linker is very broken
16723 if test "$host_cpu" != ia64; then
16724 ld_shlibs_GCJ=no
16725 cat <<EOF 1>&2
16727 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16728 *** to be unable to reliably create shared libraries on AIX.
16729 *** Therefore, libtool is disabling shared libraries support. If you
16730 *** really care for shared libraries, you may want to modify your PATH
16731 *** so that a non-GNU linker is found, and then restart.
16737 amigaos*)
16738 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16739 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16740 hardcode_minus_L_GCJ=yes
16742 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16743 # that the semantics of dynamic libraries on AmigaOS, at least up
16744 # to version 4, is to share data among multiple programs linked
16745 # with the same dynamic library. Since this doesn't match the
16746 # behavior of shared libraries on other platforms, we can't use
16747 # them.
16748 ld_shlibs_GCJ=no
16751 beos*)
16752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16753 allow_undefined_flag_GCJ=unsupported
16754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16755 # support --undefined. This deserves some investigation. FIXME
16756 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16757 else
16758 ld_shlibs_GCJ=no
16762 cygwin* | mingw* | pw32*)
16763 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16764 # as there is no search path for DLLs.
16765 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16766 allow_undefined_flag_GCJ=unsupported
16767 always_export_symbols_GCJ=no
16768 enable_shared_with_static_runtimes_GCJ=yes
16769 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16771 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16772 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16773 # If the export-symbols file already is a .def file (1st line
16774 # is EXPORTS), use it as is; otherwise, prepend...
16775 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16776 cp $export_symbols $output_objdir/$soname.def;
16777 else
16778 echo EXPORTS > $output_objdir/$soname.def;
16779 cat $export_symbols >> $output_objdir/$soname.def;
16781 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16782 else
16783 ld_shlibs_GCJ=no
16787 interix[3-9]*)
16788 hardcode_direct_GCJ=no
16789 hardcode_shlibpath_var_GCJ=no
16790 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16791 export_dynamic_flag_spec_GCJ='${wl}-E'
16792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16793 # Instead, shared libraries are loaded at an image base (0x10000000 by
16794 # default) and relocated if they conflict, which is a slow very memory
16795 # consuming and fragmenting process. To avoid this, we pick a random,
16796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16797 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16798 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16799 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16802 gnu* | linux* | k*bsd*-gnu)
16803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16804 tmp_addflag=
16805 case $cc_basename,$host_cpu in
16806 pgcc*) # Portland Group C compiler
16807 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16808 tmp_addflag=' $pic_flag'
16810 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16811 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16812 tmp_addflag=' $pic_flag -Mnomain' ;;
16813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16814 tmp_addflag=' -i_dynamic' ;;
16815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16816 tmp_addflag=' -i_dynamic -nofor_main' ;;
16817 ifc* | ifort*) # Intel Fortran compiler
16818 tmp_addflag=' -nofor_main' ;;
16819 esac
16820 case `$CC -V 2>&1 | sed 5q` in
16821 *Sun\ C*) # Sun C 5.9
16822 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16823 tmp_sharedflag='-G' ;;
16824 *Sun\ F*) # Sun Fortran 8.3
16825 tmp_sharedflag='-G' ;;
16827 tmp_sharedflag='-shared' ;;
16828 esac
16829 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16831 if test $supports_anon_versioning = yes; then
16832 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16834 $echo "local: *; };" >> $output_objdir/$libname.ver~
16835 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16837 else
16838 ld_shlibs_GCJ=no
16842 netbsd*)
16843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16844 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16845 wlarc=
16846 else
16847 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16848 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16852 solaris*)
16853 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16854 ld_shlibs_GCJ=no
16855 cat <<EOF 1>&2
16857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16858 *** create shared libraries on Solaris systems. Therefore, libtool
16859 *** is disabling shared libraries support. We urge you to upgrade GNU
16860 *** binutils to release 2.9.1 or newer. Another option is to modify
16861 *** your PATH or compiler configuration so that the native linker is
16862 *** used, and then restart.
16865 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16866 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16867 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16868 else
16869 ld_shlibs_GCJ=no
16873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16874 case `$LD -v 2>&1` in
16875 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16876 ld_shlibs_GCJ=no
16877 cat <<_LT_EOF 1>&2
16879 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16880 *** reliably create shared libraries on SCO systems. Therefore, libtool
16881 *** is disabling shared libraries support. We urge you to upgrade GNU
16882 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16883 *** your PATH or compiler configuration so that the native linker is
16884 *** used, and then restart.
16886 _LT_EOF
16889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16890 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16891 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16892 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16893 else
16894 ld_shlibs_GCJ=no
16897 esac
16900 sunos4*)
16901 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16902 wlarc=
16903 hardcode_direct_GCJ=yes
16904 hardcode_shlibpath_var_GCJ=no
16908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16909 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16911 else
16912 ld_shlibs_GCJ=no
16915 esac
16917 if test "$ld_shlibs_GCJ" = no; then
16918 runpath_var=
16919 hardcode_libdir_flag_spec_GCJ=
16920 export_dynamic_flag_spec_GCJ=
16921 whole_archive_flag_spec_GCJ=
16923 else
16924 # PORTME fill in a description of your system's linker (not GNU ld)
16925 case $host_os in
16926 aix3*)
16927 allow_undefined_flag_GCJ=unsupported
16928 always_export_symbols_GCJ=yes
16929 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16930 # Note: this linker hardcodes the directories in LIBPATH if there
16931 # are no directories specified by -L.
16932 hardcode_minus_L_GCJ=yes
16933 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16934 # Neither direct hardcoding nor static linking is supported with a
16935 # broken collect2.
16936 hardcode_direct_GCJ=unsupported
16940 aix[4-9]*)
16941 if test "$host_cpu" = ia64; then
16942 # On IA64, the linker does run time linking by default, so we don't
16943 # have to do anything special.
16944 aix_use_runtimelinking=no
16945 exp_sym_flag='-Bexport'
16946 no_entry_flag=""
16947 else
16948 # If we're using GNU nm, then we don't want the "-C" option.
16949 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16950 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16951 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16952 else
16953 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16955 aix_use_runtimelinking=no
16957 # Test if we are trying to use run time linking or normal
16958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16959 # need to do runtime linking.
16960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16961 for ld_flag in $LDFLAGS; do
16962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16963 aix_use_runtimelinking=yes
16964 break
16966 done
16968 esac
16970 exp_sym_flag='-bexport'
16971 no_entry_flag='-bnoentry'
16974 # When large executables or shared objects are built, AIX ld can
16975 # have problems creating the table of contents. If linking a library
16976 # or program results in "error TOC overflow" add -mminimal-toc to
16977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16980 archive_cmds_GCJ=''
16981 hardcode_direct_GCJ=yes
16982 hardcode_libdir_separator_GCJ=':'
16983 link_all_deplibs_GCJ=yes
16985 if test "$GCC" = yes; then
16986 case $host_os in aix4.[012]|aix4.[012].*)
16987 # We only want to do this on AIX 4.2 and lower, the check
16988 # below for broken collect2 doesn't work under 4.3+
16989 collect2name=`${CC} -print-prog-name=collect2`
16990 if test -f "$collect2name" && \
16991 strings "$collect2name" | grep resolve_lib_name >/dev/null
16992 then
16993 # We have reworked collect2
16995 else
16996 # We have old collect2
16997 hardcode_direct_GCJ=unsupported
16998 # It fails to find uninstalled libraries when the uninstalled
16999 # path is not listed in the libpath. Setting hardcode_minus_L
17000 # to unsupported forces relinking
17001 hardcode_minus_L_GCJ=yes
17002 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17003 hardcode_libdir_separator_GCJ=
17006 esac
17007 shared_flag='-shared'
17008 if test "$aix_use_runtimelinking" = yes; then
17009 shared_flag="$shared_flag "'${wl}-G'
17011 else
17012 # not using gcc
17013 if test "$host_cpu" = ia64; then
17014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17015 # chokes on -Wl,-G. The following line is correct:
17016 shared_flag='-G'
17017 else
17018 if test "$aix_use_runtimelinking" = yes; then
17019 shared_flag='${wl}-G'
17020 else
17021 shared_flag='${wl}-bM:SRE'
17026 # It seems that -bexpall does not export symbols beginning with
17027 # underscore (_), so it is better to generate a list of symbols to export.
17028 always_export_symbols_GCJ=yes
17029 if test "$aix_use_runtimelinking" = yes; then
17030 # Warning - without using the other runtime loading flags (-brtl),
17031 # -berok will link without error, but may produce a broken library.
17032 allow_undefined_flag_GCJ='-berok'
17033 # Determine the default libpath from the value encoded in an empty executable.
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h. */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17042 main ()
17046 return 0;
17048 _ACEOF
17049 rm -f conftest.$ac_objext conftest$ac_exeext
17050 if { (ac_try="$ac_link"
17051 case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_link") 2>conftest.er1
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && {
17063 test -z "$ac_c_werror_flag" ||
17064 test ! -s conftest.err
17065 } && test -s conftest$ac_exeext &&
17066 $as_test_x conftest$ac_exeext; then
17068 lt_aix_libpath_sed='
17069 /Import File Strings/,/^$/ {
17070 /^0/ {
17071 s/^0 *\(.*\)$/\1/
17075 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17076 # Check for a 64-bit object if we didn't find anything.
17077 if test -z "$aix_libpath"; then
17078 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17080 else
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17088 conftest$ac_exeext conftest.$ac_ext
17089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17091 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17092 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17093 else
17094 if test "$host_cpu" = ia64; then
17095 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17096 allow_undefined_flag_GCJ="-z nodefs"
17097 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17098 else
17099 # Determine the default libpath from the value encoded in an empty executable.
17100 cat >conftest.$ac_ext <<_ACEOF
17101 /* confdefs.h. */
17102 _ACEOF
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17108 main ()
17112 return 0;
17114 _ACEOF
17115 rm -f conftest.$ac_objext conftest$ac_exeext
17116 if { (ac_try="$ac_link"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_link") 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } && {
17129 test -z "$ac_c_werror_flag" ||
17130 test ! -s conftest.err
17131 } && test -s conftest$ac_exeext &&
17132 $as_test_x conftest$ac_exeext; then
17134 lt_aix_libpath_sed='
17135 /Import File Strings/,/^$/ {
17136 /^0/ {
17137 s/^0 *\(.*\)$/\1/
17141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17142 # Check for a 64-bit object if we didn't find anything.
17143 if test -z "$aix_libpath"; then
17144 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17154 conftest$ac_exeext conftest.$ac_ext
17155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17157 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17158 # Warning - without using the other run time loading flags,
17159 # -berok will link without error, but may produce a broken library.
17160 no_undefined_flag_GCJ=' ${wl}-bernotok'
17161 allow_undefined_flag_GCJ=' ${wl}-berok'
17162 # Exported symbols can be pulled into shared objects from archives
17163 whole_archive_flag_spec_GCJ='$convenience'
17164 archive_cmds_need_lc_GCJ=yes
17165 # This is similar to how AIX traditionally builds its shared libraries.
17166 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17171 amigaos*)
17172 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174 hardcode_minus_L_GCJ=yes
17175 # see comment about different semantics on the GNU ld section
17176 ld_shlibs_GCJ=no
17179 bsdi[45]*)
17180 export_dynamic_flag_spec_GCJ=-rdynamic
17183 cygwin* | mingw* | pw32*)
17184 # When not using gcc, we currently assume that we are using
17185 # Microsoft Visual C++.
17186 # hardcode_libdir_flag_spec is actually meaningless, as there is
17187 # no search path for DLLs.
17188 hardcode_libdir_flag_spec_GCJ=' '
17189 allow_undefined_flag_GCJ=unsupported
17190 # Tell ltmain to make .lib files, not .a files.
17191 libext=lib
17192 # Tell ltmain to make .dll files, not .so files.
17193 shrext_cmds=".dll"
17194 # FIXME: Setting linknames here is a bad hack.
17195 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17196 # The linker will automatically build a .lib file if we build a DLL.
17197 old_archive_From_new_cmds_GCJ='true'
17198 # FIXME: Should let the user specify the lib program.
17199 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17200 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17201 enable_shared_with_static_runtimes_GCJ=yes
17204 darwin* | rhapsody*)
17205 case $host_os in
17206 rhapsody* | darwin1.[012])
17207 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17209 *) # Darwin 1.3 on
17210 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17211 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17212 else
17213 case ${MACOSX_DEPLOYMENT_TARGET} in
17214 10.[012])
17215 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17217 10.*)
17218 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17220 esac
17223 esac
17224 archive_cmds_need_lc_GCJ=no
17225 hardcode_direct_GCJ=no
17226 hardcode_automatic_GCJ=yes
17227 hardcode_shlibpath_var_GCJ=unsupported
17228 whole_archive_flag_spec_GCJ=''
17229 link_all_deplibs_GCJ=yes
17230 if test "$GCC" = yes ; then
17231 output_verbose_link_cmd='echo'
17232 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17233 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17234 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17235 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17236 else
17237 case $cc_basename in
17238 xlc*)
17239 output_verbose_link_cmd='echo'
17240 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17241 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17243 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17244 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17247 ld_shlibs_GCJ=no
17249 esac
17253 dgux*)
17254 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17255 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17256 hardcode_shlibpath_var_GCJ=no
17259 freebsd1*)
17260 ld_shlibs_GCJ=no
17263 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17264 # support. Future versions do this automatically, but an explicit c++rt0.o
17265 # does not break anything, and helps significantly (at the cost of a little
17266 # extra space).
17267 freebsd2.2*)
17268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17269 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17270 hardcode_direct_GCJ=yes
17271 hardcode_shlibpath_var_GCJ=no
17274 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17275 freebsd2*)
17276 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17277 hardcode_direct_GCJ=yes
17278 hardcode_minus_L_GCJ=yes
17279 hardcode_shlibpath_var_GCJ=no
17282 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17283 freebsd* | dragonfly*)
17284 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17285 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17286 hardcode_direct_GCJ=yes
17287 hardcode_shlibpath_var_GCJ=no
17290 hpux9*)
17291 if test "$GCC" = yes; then
17292 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17293 else
17294 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17296 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17297 hardcode_libdir_separator_GCJ=:
17298 hardcode_direct_GCJ=yes
17300 # hardcode_minus_L: Not really in the search PATH,
17301 # but as the default location of the library.
17302 hardcode_minus_L_GCJ=yes
17303 export_dynamic_flag_spec_GCJ='${wl}-E'
17306 hpux10*)
17307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17308 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17309 else
17310 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17312 if test "$with_gnu_ld" = no; then
17313 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17314 hardcode_libdir_separator_GCJ=:
17316 hardcode_direct_GCJ=yes
17317 export_dynamic_flag_spec_GCJ='${wl}-E'
17319 # hardcode_minus_L: Not really in the search PATH,
17320 # but as the default location of the library.
17321 hardcode_minus_L_GCJ=yes
17325 hpux11*)
17326 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17327 case $host_cpu in
17328 hppa*64*)
17329 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 ia64*)
17332 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17335 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17337 esac
17338 else
17339 case $host_cpu in
17340 hppa*64*)
17341 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 ia64*)
17344 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17347 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17349 esac
17351 if test "$with_gnu_ld" = no; then
17352 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17353 hardcode_libdir_separator_GCJ=:
17355 case $host_cpu in
17356 hppa*64*|ia64*)
17357 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17358 hardcode_direct_GCJ=no
17359 hardcode_shlibpath_var_GCJ=no
17362 hardcode_direct_GCJ=yes
17363 export_dynamic_flag_spec_GCJ='${wl}-E'
17365 # hardcode_minus_L: Not really in the search PATH,
17366 # but as the default location of the library.
17367 hardcode_minus_L_GCJ=yes
17369 esac
17373 irix5* | irix6* | nonstopux*)
17374 if test "$GCC" = yes; then
17375 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17376 else
17377 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17378 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17380 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17381 hardcode_libdir_separator_GCJ=:
17382 link_all_deplibs_GCJ=yes
17385 netbsd*)
17386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17387 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17388 else
17389 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17391 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17392 hardcode_direct_GCJ=yes
17393 hardcode_shlibpath_var_GCJ=no
17396 newsos6)
17397 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17398 hardcode_direct_GCJ=yes
17399 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17400 hardcode_libdir_separator_GCJ=:
17401 hardcode_shlibpath_var_GCJ=no
17404 openbsd*)
17405 if test -f /usr/libexec/ld.so; then
17406 hardcode_direct_GCJ=yes
17407 hardcode_shlibpath_var_GCJ=no
17408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17409 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17410 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17411 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17412 export_dynamic_flag_spec_GCJ='${wl}-E'
17413 else
17414 case $host_os in
17415 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17416 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17420 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17421 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17423 esac
17425 else
17426 ld_shlibs_GCJ=no
17430 os2*)
17431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17432 hardcode_minus_L_GCJ=yes
17433 allow_undefined_flag_GCJ=unsupported
17434 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17435 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17438 osf3*)
17439 if test "$GCC" = yes; then
17440 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17441 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17442 else
17443 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17444 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17446 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17447 hardcode_libdir_separator_GCJ=:
17450 osf4* | osf5*) # as osf3* with the addition of -msym flag
17451 if test "$GCC" = yes; then
17452 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17453 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17454 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17455 else
17456 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17457 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17458 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17459 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17461 # Both c and cxx compiler support -rpath directly
17462 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17464 hardcode_libdir_separator_GCJ=:
17467 solaris*)
17468 no_undefined_flag_GCJ=' -z text'
17469 if test "$GCC" = yes; then
17470 wlarc='${wl}'
17471 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17472 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17473 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17474 else
17475 wlarc=''
17476 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17480 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17481 hardcode_shlibpath_var_GCJ=no
17482 case $host_os in
17483 solaris2.[0-5] | solaris2.[0-5].*) ;;
17485 # The compiler driver will combine and reorder linker options,
17486 # but understands `-z linker_flag'. GCC discards it without `$wl',
17487 # but is careful enough not to reorder.
17488 # Supported since Solaris 2.6 (maybe 2.5.1?)
17489 if test "$GCC" = yes; then
17490 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17491 else
17492 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17495 esac
17496 link_all_deplibs_GCJ=yes
17499 sunos4*)
17500 if test "x$host_vendor" = xsequent; then
17501 # Use $CC to link under sequent, because it throws in some extra .o
17502 # files that make .init and .fini sections work.
17503 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17504 else
17505 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17507 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17508 hardcode_direct_GCJ=yes
17509 hardcode_minus_L_GCJ=yes
17510 hardcode_shlibpath_var_GCJ=no
17513 sysv4)
17514 case $host_vendor in
17515 sni)
17516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17517 hardcode_direct_GCJ=yes # is this really true???
17519 siemens)
17520 ## LD is ld it makes a PLAMLIB
17521 ## CC just makes a GrossModule.
17522 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17523 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17524 hardcode_direct_GCJ=no
17526 motorola)
17527 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17528 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17530 esac
17531 runpath_var='LD_RUN_PATH'
17532 hardcode_shlibpath_var_GCJ=no
17535 sysv4.3*)
17536 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537 hardcode_shlibpath_var_GCJ=no
17538 export_dynamic_flag_spec_GCJ='-Bexport'
17541 sysv4*MP*)
17542 if test -d /usr/nec; then
17543 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17544 hardcode_shlibpath_var_GCJ=no
17545 runpath_var=LD_RUN_PATH
17546 hardcode_runpath_var=yes
17547 ld_shlibs_GCJ=yes
17551 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17552 no_undefined_flag_GCJ='${wl}-z,text'
17553 archive_cmds_need_lc_GCJ=no
17554 hardcode_shlibpath_var_GCJ=no
17555 runpath_var='LD_RUN_PATH'
17557 if test "$GCC" = yes; then
17558 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17559 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17560 else
17561 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17562 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17566 sysv5* | sco3.2v5* | sco5v6*)
17567 # Note: We can NOT use -z defs as we might desire, because we do not
17568 # link with -lc, and that would cause any symbols used from libc to
17569 # always be unresolved, which means just about no library would
17570 # ever link correctly. If we're not using GNU ld we use -z text
17571 # though, which does catch some bad symbols but isn't as heavy-handed
17572 # as -z defs.
17573 no_undefined_flag_GCJ='${wl}-z,text'
17574 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17575 archive_cmds_need_lc_GCJ=no
17576 hardcode_shlibpath_var_GCJ=no
17577 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17578 hardcode_libdir_separator_GCJ=':'
17579 link_all_deplibs_GCJ=yes
17580 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17581 runpath_var='LD_RUN_PATH'
17583 if test "$GCC" = yes; then
17584 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 else
17587 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17592 uts4*)
17593 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17595 hardcode_shlibpath_var_GCJ=no
17599 ld_shlibs_GCJ=no
17601 esac
17604 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17605 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17606 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17609 # Do we need to explicitly link libc?
17611 case "x$archive_cmds_need_lc_GCJ" in
17612 x|xyes)
17613 # Assume -lc should be added
17614 archive_cmds_need_lc_GCJ=yes
17616 if test "$enable_shared" = yes && test "$GCC" = yes; then
17617 case $archive_cmds_GCJ in
17618 *'~'*)
17619 # FIXME: we may have to deal with multi-command sequences.
17621 '$CC '*)
17622 # Test whether the compiler implicitly links with -lc since on some
17623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17624 # to ld, don't add -lc before -lgcc.
17625 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17626 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17627 $rm conftest*
17628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } 2>conftest.err; then
17635 soname=conftest
17636 lib=conftest
17637 libobjs=conftest.$ac_objext
17638 deplibs=
17639 wl=$lt_prog_compiler_wl_GCJ
17640 pic_flag=$lt_prog_compiler_pic_GCJ
17641 compiler_flags=-v
17642 linker_flags=-v
17643 verstring=
17644 output_objdir=.
17645 libname=conftest
17646 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17647 allow_undefined_flag_GCJ=
17648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17649 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }
17653 then
17654 archive_cmds_need_lc_GCJ=no
17655 else
17656 archive_cmds_need_lc_GCJ=yes
17658 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17659 else
17660 cat conftest.err 1>&5
17662 $rm conftest*
17663 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17664 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17666 esac
17669 esac
17671 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17672 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17673 library_names_spec=
17674 libname_spec='lib$name'
17675 soname_spec=
17676 shrext_cmds=".so"
17677 postinstall_cmds=
17678 postuninstall_cmds=
17679 finish_cmds=
17680 finish_eval=
17681 shlibpath_var=
17682 shlibpath_overrides_runpath=unknown
17683 version_type=none
17684 dynamic_linker="$host_os ld.so"
17685 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17687 need_lib_prefix=unknown
17688 hardcode_into_libs=no
17690 # when you set need_version to no, make sure it does not cause -set_version
17691 # flags to be left without arguments
17692 need_version=unknown
17694 case $host_os in
17695 aix3*)
17696 version_type=linux
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17698 shlibpath_var=LIBPATH
17700 # AIX 3 has no versioning support, so we append a major version to the name.
17701 soname_spec='${libname}${release}${shared_ext}$major'
17704 aix[4-9]*)
17705 version_type=linux
17706 need_lib_prefix=no
17707 need_version=no
17708 hardcode_into_libs=yes
17709 if test "$host_cpu" = ia64; then
17710 # AIX 5 supports IA64
17711 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 else
17714 # With GCC up to 2.95.x, collect2 would create an import file
17715 # for dependence libraries. The import file would start with
17716 # the line `#! .'. This would cause the generated library to
17717 # depend on `.', always an invalid library. This was fixed in
17718 # development snapshots of GCC prior to 3.0.
17719 case $host_os in
17720 aix4 | aix4.[01] | aix4.[01].*)
17721 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17722 echo ' yes '
17723 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17725 else
17726 can_build_shared=no
17729 esac
17730 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17731 # soname into executable. Probably we can add versioning support to
17732 # collect2, so additional links can be useful in future.
17733 if test "$aix_use_runtimelinking" = yes; then
17734 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17735 # instead of lib<name>.a to let people know that these are not
17736 # typical AIX shared libraries.
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738 else
17739 # We preserve .a as extension for shared libraries through AIX4.2
17740 # and later when we are not doing run time linking.
17741 library_names_spec='${libname}${release}.a $libname.a'
17742 soname_spec='${libname}${release}${shared_ext}$major'
17744 shlibpath_var=LIBPATH
17748 amigaos*)
17749 library_names_spec='$libname.ixlibrary $libname.a'
17750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17751 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17754 beos*)
17755 library_names_spec='${libname}${shared_ext}'
17756 dynamic_linker="$host_os ld.so"
17757 shlibpath_var=LIBRARY_PATH
17760 bsdi[45]*)
17761 version_type=linux
17762 need_version=no
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17766 shlibpath_var=LD_LIBRARY_PATH
17767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17769 # the default ld.so.conf also contains /usr/contrib/lib and
17770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17771 # libtool to hard-code these into programs
17774 cygwin* | mingw* | pw32*)
17775 version_type=windows
17776 shrext_cmds=".dll"
17777 need_version=no
17778 need_lib_prefix=no
17780 case $GCC,$host_os in
17781 yes,cygwin* | yes,mingw* | yes,pw32*)
17782 library_names_spec='$libname.dll.a'
17783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17784 postinstall_cmds='base_file=`basename \${file}`~
17785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17786 dldir=$destdir/`dirname \$dlpath`~
17787 test -d \$dldir || mkdir -p \$dldir~
17788 $install_prog $dir/$dlname \$dldir/$dlname~
17789 chmod a+x \$dldir/$dlname'
17790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17791 dlpath=$dir/\$dldll~
17792 $rm \$dlpath'
17793 shlibpath_overrides_runpath=yes
17795 case $host_os in
17796 cygwin*)
17797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17799 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17801 mingw*)
17802 # MinGW DLLs use traditional 'lib' prefix
17803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17805 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17806 # It is most probably a Windows format PATH printed by
17807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17808 # path with ; separators, and with drive letters. We can handle the
17809 # drive letters (cygwin fileutils understands them), so leave them,
17810 # especially as we might pass files found there to a mingw objdump,
17811 # which wouldn't understand a cygwinified path. Ahh.
17812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17813 else
17814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17817 pw32*)
17818 # pw32 DLLs use 'pw' prefix rather than 'lib'
17819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17821 esac
17825 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17827 esac
17828 dynamic_linker='Win32 ld.exe'
17829 # FIXME: first we should search . and the directory the executable is in
17830 shlibpath_var=PATH
17833 darwin* | rhapsody*)
17834 dynamic_linker="$host_os dyld"
17835 version_type=darwin
17836 need_lib_prefix=no
17837 need_version=no
17838 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17839 soname_spec='${libname}${release}${major}$shared_ext'
17840 shlibpath_overrides_runpath=yes
17841 shlibpath_var=DYLD_LIBRARY_PATH
17842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17847 dgux*)
17848 version_type=linux
17849 need_lib_prefix=no
17850 need_version=no
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17852 soname_spec='${libname}${release}${shared_ext}$major'
17853 shlibpath_var=LD_LIBRARY_PATH
17856 freebsd1*)
17857 dynamic_linker=no
17860 freebsd* | dragonfly*)
17861 # DragonFly does not have aout. When/if they implement a new
17862 # versioning mechanism, adjust this.
17863 if test -x /usr/bin/objformat; then
17864 objformat=`/usr/bin/objformat`
17865 else
17866 case $host_os in
17867 freebsd[123]*) objformat=aout ;;
17868 *) objformat=elf ;;
17869 esac
17871 version_type=freebsd-$objformat
17872 case $version_type in
17873 freebsd-elf*)
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17875 need_version=no
17876 need_lib_prefix=no
17878 freebsd-*)
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17880 need_version=yes
17882 esac
17883 shlibpath_var=LD_LIBRARY_PATH
17884 case $host_os in
17885 freebsd2*)
17886 shlibpath_overrides_runpath=yes
17888 freebsd3.[01]* | freebsdelf3.[01]*)
17889 shlibpath_overrides_runpath=yes
17890 hardcode_into_libs=yes
17892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17894 shlibpath_overrides_runpath=no
17895 hardcode_into_libs=yes
17897 *) # from 4.6 on, and DragonFly
17898 shlibpath_overrides_runpath=yes
17899 hardcode_into_libs=yes
17901 esac
17904 gnu*)
17905 version_type=linux
17906 need_lib_prefix=no
17907 need_version=no
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17909 soname_spec='${libname}${release}${shared_ext}$major'
17910 shlibpath_var=LD_LIBRARY_PATH
17911 hardcode_into_libs=yes
17914 hpux9* | hpux10* | hpux11*)
17915 # Give a soname corresponding to the major version so that dld.sl refuses to
17916 # link against other versions.
17917 version_type=sunos
17918 need_lib_prefix=no
17919 need_version=no
17920 case $host_cpu in
17921 ia64*)
17922 shrext_cmds='.so'
17923 hardcode_into_libs=yes
17924 dynamic_linker="$host_os dld.so"
17925 shlibpath_var=LD_LIBRARY_PATH
17926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928 soname_spec='${libname}${release}${shared_ext}$major'
17929 if test "X$HPUX_IA64_MODE" = X32; then
17930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17931 else
17932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17936 hppa*64*)
17937 shrext_cmds='.sl'
17938 hardcode_into_libs=yes
17939 dynamic_linker="$host_os dld.sl"
17940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec='${libname}${release}${shared_ext}$major'
17944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17948 shrext_cmds='.sl'
17949 dynamic_linker="$host_os dld.sl"
17950 shlibpath_var=SHLIB_PATH
17951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17955 esac
17956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17957 postinstall_cmds='chmod 555 $lib'
17960 interix[3-9]*)
17961 version_type=linux
17962 need_lib_prefix=no
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 shlibpath_overrides_runpath=no
17969 hardcode_into_libs=yes
17972 irix5* | irix6* | nonstopux*)
17973 case $host_os in
17974 nonstopux*) version_type=nonstopux ;;
17976 if test "$lt_cv_prog_gnu_ld" = yes; then
17977 version_type=linux
17978 else
17979 version_type=irix
17980 fi ;;
17981 esac
17982 need_lib_prefix=no
17983 need_version=no
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17986 case $host_os in
17987 irix5* | nonstopux*)
17988 libsuff= shlibsuff=
17991 case $LD in # libtool.m4 will add one of these switches to LD
17992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17993 libsuff= shlibsuff= libmagic=32-bit;;
17994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17995 libsuff=32 shlibsuff=N32 libmagic=N32;;
17996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17998 *) libsuff= shlibsuff= libmagic=never-match;;
17999 esac
18001 esac
18002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18003 shlibpath_overrides_runpath=no
18004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18006 hardcode_into_libs=yes
18009 # No shared lib support for Linux oldld, aout, or coff.
18010 linux*oldld* | linux*aout* | linux*coff*)
18011 dynamic_linker=no
18014 # This must be Linux ELF.
18015 linux* | k*bsd*-gnu)
18016 version_type=linux
18017 need_lib_prefix=no
18018 need_version=no
18019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18020 soname_spec='${libname}${release}${shared_ext}$major'
18021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18022 shlibpath_var=LD_LIBRARY_PATH
18023 shlibpath_overrides_runpath=no
18024 # This implies no fast_install, which is unacceptable.
18025 # Some rework will be needed to allow for fast_install
18026 # before this can be enabled.
18027 hardcode_into_libs=yes
18029 # Append ld.so.conf contents to the search path
18030 if test -f /etc/ld.so.conf; then
18031 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18035 # We used to test for /lib/ld.so.1 and disable shared libraries on
18036 # powerpc, because MkLinux only supported shared libraries with the
18037 # GNU dynamic linker. Since this was broken with cross compilers,
18038 # most powerpc-linux boxes support dynamic linking these days and
18039 # people can always --disable-shared, the test was removed, and we
18040 # assume the GNU/Linux dynamic linker is in use.
18041 dynamic_linker='GNU/Linux ld.so'
18044 netbsd*)
18045 version_type=sunos
18046 need_lib_prefix=no
18047 need_version=no
18048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18051 dynamic_linker='NetBSD (a.out) ld.so'
18052 else
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18054 soname_spec='${libname}${release}${shared_ext}$major'
18055 dynamic_linker='NetBSD ld.elf_so'
18057 shlibpath_var=LD_LIBRARY_PATH
18058 shlibpath_overrides_runpath=yes
18059 hardcode_into_libs=yes
18062 newsos6)
18063 version_type=linux
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 shlibpath_var=LD_LIBRARY_PATH
18066 shlibpath_overrides_runpath=yes
18069 nto-qnx*)
18070 version_type=linux
18071 need_lib_prefix=no
18072 need_version=no
18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18074 soname_spec='${libname}${release}${shared_ext}$major'
18075 shlibpath_var=LD_LIBRARY_PATH
18076 shlibpath_overrides_runpath=yes
18079 openbsd*)
18080 version_type=sunos
18081 sys_lib_dlsearch_path_spec="/usr/lib"
18082 need_lib_prefix=no
18083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18084 case $host_os in
18085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18086 *) need_version=no ;;
18087 esac
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18090 shlibpath_var=LD_LIBRARY_PATH
18091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18092 case $host_os in
18093 openbsd2.[89] | openbsd2.[89].*)
18094 shlibpath_overrides_runpath=no
18097 shlibpath_overrides_runpath=yes
18099 esac
18100 else
18101 shlibpath_overrides_runpath=yes
18105 os2*)
18106 libname_spec='$name'
18107 shrext_cmds=".dll"
18108 need_lib_prefix=no
18109 library_names_spec='$libname${shared_ext} $libname.a'
18110 dynamic_linker='OS/2 ld.exe'
18111 shlibpath_var=LIBPATH
18114 osf3* | osf4* | osf5*)
18115 version_type=osf
18116 need_lib_prefix=no
18117 need_version=no
18118 soname_spec='${libname}${release}${shared_ext}$major'
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18120 shlibpath_var=LD_LIBRARY_PATH
18121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18125 rdos*)
18126 dynamic_linker=no
18129 solaris*)
18130 version_type=linux
18131 need_lib_prefix=no
18132 need_version=no
18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18134 soname_spec='${libname}${release}${shared_ext}$major'
18135 shlibpath_var=LD_LIBRARY_PATH
18136 shlibpath_overrides_runpath=yes
18137 hardcode_into_libs=yes
18138 # ldd complains unless libraries are executable
18139 postinstall_cmds='chmod +x $lib'
18142 sunos4*)
18143 version_type=sunos
18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 shlibpath_overrides_runpath=yes
18148 if test "$with_gnu_ld" = yes; then
18149 need_lib_prefix=no
18151 need_version=yes
18154 sysv4 | sysv4.3*)
18155 version_type=linux
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec='${libname}${release}${shared_ext}$major'
18158 shlibpath_var=LD_LIBRARY_PATH
18159 case $host_vendor in
18160 sni)
18161 shlibpath_overrides_runpath=no
18162 need_lib_prefix=no
18163 export_dynamic_flag_spec='${wl}-Blargedynsym'
18164 runpath_var=LD_RUN_PATH
18166 siemens)
18167 need_lib_prefix=no
18169 motorola)
18170 need_lib_prefix=no
18171 need_version=no
18172 shlibpath_overrides_runpath=no
18173 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18175 esac
18178 sysv4*MP*)
18179 if test -d /usr/nec ;then
18180 version_type=linux
18181 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18182 soname_spec='$libname${shared_ext}.$major'
18183 shlibpath_var=LD_LIBRARY_PATH
18187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18188 version_type=freebsd-elf
18189 need_lib_prefix=no
18190 need_version=no
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 hardcode_into_libs=yes
18195 if test "$with_gnu_ld" = yes; then
18196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18197 shlibpath_overrides_runpath=no
18198 else
18199 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18200 shlibpath_overrides_runpath=yes
18201 case $host_os in
18202 sco3.2v5*)
18203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18205 esac
18207 sys_lib_dlsearch_path_spec='/usr/lib'
18210 uts4*)
18211 version_type=linux
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 shlibpath_var=LD_LIBRARY_PATH
18218 dynamic_linker=no
18220 esac
18221 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18222 echo "${ECHO_T}$dynamic_linker" >&6; }
18223 test "$dynamic_linker" = no && can_build_shared=no
18225 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18231 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18232 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18238 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18241 if test "$GCC" = yes; then
18242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18247 hardcode_action_GCJ=
18248 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18249 test -n "$runpath_var_GCJ" || \
18250 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18252 # We can hardcode non-existant directories.
18253 if test "$hardcode_direct_GCJ" != no &&
18254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18255 # have to relink, otherwise we might link with an installed library
18256 # when we should be linking with a yet-to-be-installed one
18257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18258 test "$hardcode_minus_L_GCJ" != no; then
18259 # Linking always hardcodes the temporary library directory.
18260 hardcode_action_GCJ=relink
18261 else
18262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18263 hardcode_action_GCJ=immediate
18265 else
18266 # We cannot hardcode anything, or else we can only hardcode existing
18267 # directories.
18268 hardcode_action_GCJ=unsupported
18270 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18271 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18273 if test "$hardcode_action_GCJ" = relink; then
18274 # Fast installation is not supported
18275 enable_fast_install=no
18276 elif test "$shlibpath_overrides_runpath" = yes ||
18277 test "$enable_shared" = no; then
18278 # Fast installation is not necessary
18279 enable_fast_install=needless
18283 # The else clause should only fire when bootstrapping the
18284 # libtool distribution, otherwise you forgot to ship ltmain.sh
18285 # with your package, and you will get complaints that there are
18286 # no rules to generate ltmain.sh.
18287 if test -f "$ltmain"; then
18288 # See if we are running on zsh, and set the options which allow our commands through
18289 # without removal of \ escapes.
18290 if test -n "${ZSH_VERSION+set}" ; then
18291 setopt NO_GLOB_SUBST
18293 # Now quote all the things that may contain metacharacters while being
18294 # careful not to overquote the AC_SUBSTed values. We take copies of the
18295 # variables and quote the copies for generation of the libtool script.
18296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18297 SED SHELL STRIP \
18298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18300 deplibs_check_method reload_flag reload_cmds need_locks \
18301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18302 lt_cv_sys_global_symbol_to_c_name_address \
18303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18304 old_postinstall_cmds old_postuninstall_cmds \
18305 compiler_GCJ \
18306 CC_GCJ \
18307 LD_GCJ \
18308 lt_prog_compiler_wl_GCJ \
18309 lt_prog_compiler_pic_GCJ \
18310 lt_prog_compiler_static_GCJ \
18311 lt_prog_compiler_no_builtin_flag_GCJ \
18312 export_dynamic_flag_spec_GCJ \
18313 thread_safe_flag_spec_GCJ \
18314 whole_archive_flag_spec_GCJ \
18315 enable_shared_with_static_runtimes_GCJ \
18316 old_archive_cmds_GCJ \
18317 old_archive_from_new_cmds_GCJ \
18318 predep_objects_GCJ \
18319 postdep_objects_GCJ \
18320 predeps_GCJ \
18321 postdeps_GCJ \
18322 compiler_lib_search_path_GCJ \
18323 compiler_lib_search_dirs_GCJ \
18324 archive_cmds_GCJ \
18325 archive_expsym_cmds_GCJ \
18326 postinstall_cmds_GCJ \
18327 postuninstall_cmds_GCJ \
18328 old_archive_from_expsyms_cmds_GCJ \
18329 allow_undefined_flag_GCJ \
18330 no_undefined_flag_GCJ \
18331 export_symbols_cmds_GCJ \
18332 hardcode_libdir_flag_spec_GCJ \
18333 hardcode_libdir_flag_spec_ld_GCJ \
18334 hardcode_libdir_separator_GCJ \
18335 hardcode_automatic_GCJ \
18336 module_cmds_GCJ \
18337 module_expsym_cmds_GCJ \
18338 lt_cv_prog_compiler_c_o_GCJ \
18339 fix_srcfile_path_GCJ \
18340 exclude_expsyms_GCJ \
18341 include_expsyms_GCJ; do
18343 case $var in
18344 old_archive_cmds_GCJ | \
18345 old_archive_from_new_cmds_GCJ | \
18346 archive_cmds_GCJ | \
18347 archive_expsym_cmds_GCJ | \
18348 module_cmds_GCJ | \
18349 module_expsym_cmds_GCJ | \
18350 old_archive_from_expsyms_cmds_GCJ | \
18351 export_symbols_cmds_GCJ | \
18352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18353 postinstall_cmds | postuninstall_cmds | \
18354 old_postinstall_cmds | old_postuninstall_cmds | \
18355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18356 # Double-quote double-evaled strings.
18357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18362 esac
18363 done
18365 case $lt_echo in
18366 *'\$0 --fallback-echo"')
18367 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18369 esac
18371 cfgfile="$ofile"
18373 cat <<__EOF__ >> "$cfgfile"
18374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18378 # Shell to use when invoking shell scripts.
18379 SHELL=$lt_SHELL
18381 # Whether or not to build shared libraries.
18382 build_libtool_libs=$enable_shared
18384 # Whether or not to build static libraries.
18385 build_old_libs=$enable_static
18387 # Whether or not to add -lc for building shared libraries.
18388 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18390 # Whether or not to disallow shared libs when runtime libs are static
18391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18393 # Whether or not to optimize for fast installation.
18394 fast_install=$enable_fast_install
18396 # The host system.
18397 host_alias=$host_alias
18398 host=$host
18399 host_os=$host_os
18401 # The build system.
18402 build_alias=$build_alias
18403 build=$build
18404 build_os=$build_os
18406 # An echo program that does not interpret backslashes.
18407 echo=$lt_echo
18409 # The archiver.
18410 AR=$lt_AR
18411 AR_FLAGS=$lt_AR_FLAGS
18413 # A C compiler.
18414 LTCC=$lt_LTCC
18416 # LTCC compiler flags.
18417 LTCFLAGS=$lt_LTCFLAGS
18419 # A language-specific compiler.
18420 CC=$lt_compiler_GCJ
18422 # Is the compiler the GNU C compiler?
18423 with_gcc=$GCC_GCJ
18425 # An ERE matcher.
18426 EGREP=$lt_EGREP
18428 # The linker used to build libraries.
18429 LD=$lt_LD_GCJ
18431 # Whether we need hard or soft links.
18432 LN_S=$lt_LN_S
18434 # A BSD-compatible nm program.
18435 NM=$lt_NM
18437 # A symbol stripping program
18438 STRIP=$lt_STRIP
18440 # Used to examine libraries when file_magic_cmd begins "file"
18441 MAGIC_CMD=$MAGIC_CMD
18443 # Used on cygwin: DLL creation program.
18444 DLLTOOL="$DLLTOOL"
18446 # Used on cygwin: object dumper.
18447 OBJDUMP="$OBJDUMP"
18449 # Used on cygwin: assembler.
18450 AS="$AS"
18452 # The name of the directory that contains temporary libtool files.
18453 objdir=$objdir
18455 # How to create reloadable object files.
18456 reload_flag=$lt_reload_flag
18457 reload_cmds=$lt_reload_cmds
18459 # How to pass a linker flag through the compiler.
18460 wl=$lt_lt_prog_compiler_wl_GCJ
18462 # Object file suffix (normally "o").
18463 objext="$ac_objext"
18465 # Old archive suffix (normally "a").
18466 libext="$libext"
18468 # Shared library suffix (normally ".so").
18469 shrext_cmds='$shrext_cmds'
18471 # Executable file suffix (normally "").
18472 exeext="$exeext"
18474 # Additional compiler flags for building library objects.
18475 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18476 pic_mode=$pic_mode
18478 # What is the maximum length of a command?
18479 max_cmd_len=$lt_cv_sys_max_cmd_len
18481 # Does compiler simultaneously support -c and -o options?
18482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18484 # Must we lock files when doing compilation?
18485 need_locks=$lt_need_locks
18487 # Do we need the lib prefix for modules?
18488 need_lib_prefix=$need_lib_prefix
18490 # Do we need a version for libraries?
18491 need_version=$need_version
18493 # Whether dlopen is supported.
18494 dlopen_support=$enable_dlopen
18496 # Whether dlopen of programs is supported.
18497 dlopen_self=$enable_dlopen_self
18499 # Whether dlopen of statically linked programs is supported.
18500 dlopen_self_static=$enable_dlopen_self_static
18502 # Compiler flag to prevent dynamic linking.
18503 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18505 # Compiler flag to turn off builtin functions.
18506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18508 # Compiler flag to allow reflexive dlopens.
18509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18511 # Compiler flag to generate shared objects directly from archives.
18512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18514 # Compiler flag to generate thread-safe objects.
18515 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18517 # Library versioning type.
18518 version_type=$version_type
18520 # Format of library name prefix.
18521 libname_spec=$lt_libname_spec
18523 # List of archive names. First name is the real one, the rest are links.
18524 # The last name is the one that the linker finds with -lNAME.
18525 library_names_spec=$lt_library_names_spec
18527 # The coded name of the library, if different from the real name.
18528 soname_spec=$lt_soname_spec
18530 # Commands used to build and install an old-style archive.
18531 RANLIB=$lt_RANLIB
18532 old_archive_cmds=$lt_old_archive_cmds_GCJ
18533 old_postinstall_cmds=$lt_old_postinstall_cmds
18534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18536 # Create an old-style archive from a shared archive.
18537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18539 # Create a temporary old-style archive to link instead of a shared archive.
18540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18542 # Commands used to build and install a shared archive.
18543 archive_cmds=$lt_archive_cmds_GCJ
18544 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18545 postinstall_cmds=$lt_postinstall_cmds
18546 postuninstall_cmds=$lt_postuninstall_cmds
18548 # Commands used to build a loadable module (assumed same as above if empty)
18549 module_cmds=$lt_module_cmds_GCJ
18550 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18552 # Commands to strip libraries.
18553 old_striplib=$lt_old_striplib
18554 striplib=$lt_striplib
18556 # Dependencies to place before the objects being linked to create a
18557 # shared library.
18558 predep_objects=$lt_predep_objects_GCJ
18560 # Dependencies to place after the objects being linked to create a
18561 # shared library.
18562 postdep_objects=$lt_postdep_objects_GCJ
18564 # Dependencies to place before the objects being linked to create a
18565 # shared library.
18566 predeps=$lt_predeps_GCJ
18568 # Dependencies to place after the objects being linked to create a
18569 # shared library.
18570 postdeps=$lt_postdeps_GCJ
18572 # The directories searched by this compiler when creating a shared
18573 # library
18574 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18576 # The library search path used internally by the compiler when linking
18577 # a shared library.
18578 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18580 # Method to check whether dependent libraries are shared objects.
18581 deplibs_check_method=$lt_deplibs_check_method
18583 # Command to use when deplibs_check_method == file_magic.
18584 file_magic_cmd=$lt_file_magic_cmd
18586 # Flag that allows shared libraries with undefined symbols to be built.
18587 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18589 # Flag that forces no undefined symbols.
18590 no_undefined_flag=$lt_no_undefined_flag_GCJ
18592 # Commands used to finish a libtool library installation in a directory.
18593 finish_cmds=$lt_finish_cmds
18595 # Same as above, but a single script fragment to be evaled but not shown.
18596 finish_eval=$lt_finish_eval
18598 # Take the output of nm and produce a listing of raw symbols and C names.
18599 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18601 # Transform the output of nm in a proper C declaration
18602 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18604 # Transform the output of nm in a C name address pair
18605 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18607 # This is the shared library runtime path variable.
18608 runpath_var=$runpath_var
18610 # This is the shared library path variable.
18611 shlibpath_var=$shlibpath_var
18613 # Is shlibpath searched before the hard-coded library search path?
18614 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18616 # How to hardcode a shared library path into an executable.
18617 hardcode_action=$hardcode_action_GCJ
18619 # Whether we should hardcode library paths into libraries.
18620 hardcode_into_libs=$hardcode_into_libs
18622 # Flag to hardcode \$libdir into a binary during linking.
18623 # This must work even if \$libdir does not exist.
18624 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18626 # If ld is used when linking, flag to hardcode \$libdir into
18627 # a binary during linking. This must work even if \$libdir does
18628 # not exist.
18629 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18631 # Whether we need a single -rpath flag with a separated argument.
18632 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18634 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18635 # resulting binary.
18636 hardcode_direct=$hardcode_direct_GCJ
18638 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18639 # resulting binary.
18640 hardcode_minus_L=$hardcode_minus_L_GCJ
18642 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18643 # the resulting binary.
18644 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18646 # Set to yes if building a shared library automatically hardcodes DIR into the library
18647 # and all subsequent libraries and executables linked against it.
18648 hardcode_automatic=$hardcode_automatic_GCJ
18650 # Variables whose values should be saved in libtool wrapper scripts and
18651 # restored at relink time.
18652 variables_saved_for_relink="$variables_saved_for_relink"
18654 # Whether libtool must link a program against all its dependency libraries.
18655 link_all_deplibs=$link_all_deplibs_GCJ
18657 # Compile-time system search path for libraries
18658 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18660 # Run-time system search path for libraries
18661 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18663 # Fix the shell variable \$srcfile for the compiler.
18664 fix_srcfile_path=$lt_fix_srcfile_path
18666 # Set to yes if exported symbols are required.
18667 always_export_symbols=$always_export_symbols_GCJ
18669 # The commands to list exported symbols.
18670 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18672 # The commands to extract the exported symbol list from a shared archive.
18673 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18675 # Symbols that should not be listed in the preloaded symbols.
18676 exclude_expsyms=$lt_exclude_expsyms_GCJ
18678 # Symbols that must always be exported.
18679 include_expsyms=$lt_include_expsyms_GCJ
18681 # ### END LIBTOOL TAG CONFIG: $tagname
18683 __EOF__
18686 else
18687 # If there is no Makefile yet, we rely on a make rule to execute
18688 # `config.status --recheck' to rerun these tests and create the
18689 # libtool script then.
18690 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18691 if test -f "$ltmain_in"; then
18692 test -f Makefile && make "$ltmain"
18697 ac_ext=c
18698 ac_cpp='$CPP $CPPFLAGS'
18699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18703 CC="$lt_save_CC"
18705 else
18706 tagname=""
18713 # Source file extension for RC test sources.
18714 ac_ext=rc
18716 # Object file extension for compiled RC test sources.
18717 objext=o
18718 objext_RC=$objext
18720 # Code to be used in simple compile tests
18721 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18723 # Code to be used in simple link tests
18724 lt_simple_link_test_code="$lt_simple_compile_test_code"
18726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18728 # If no C compiler was specified, use CC.
18729 LTCC=${LTCC-"$CC"}
18731 # If no C compiler flags were specified, use CFLAGS.
18732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18734 # Allow CC to be a program name with arguments.
18735 compiler=$CC
18738 # save warnings/boilerplate of simple test code
18739 ac_outfile=conftest.$ac_objext
18740 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18742 _lt_compiler_boilerplate=`cat conftest.err`
18743 $rm conftest*
18745 ac_outfile=conftest.$ac_objext
18746 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18748 _lt_linker_boilerplate=`cat conftest.err`
18749 $rm -r conftest*
18752 # Allow CC to be a program name with arguments.
18753 lt_save_CC="$CC"
18754 CC=${RC-"windres"}
18755 compiler=$CC
18756 compiler_RC=$CC
18757 for cc_temp in $compiler""; do
18758 case $cc_temp in
18759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18761 \-*) ;;
18762 *) break;;
18763 esac
18764 done
18765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18767 lt_cv_prog_compiler_c_o_RC=yes
18769 # The else clause should only fire when bootstrapping the
18770 # libtool distribution, otherwise you forgot to ship ltmain.sh
18771 # with your package, and you will get complaints that there are
18772 # no rules to generate ltmain.sh.
18773 if test -f "$ltmain"; then
18774 # See if we are running on zsh, and set the options which allow our commands through
18775 # without removal of \ escapes.
18776 if test -n "${ZSH_VERSION+set}" ; then
18777 setopt NO_GLOB_SUBST
18779 # Now quote all the things that may contain metacharacters while being
18780 # careful not to overquote the AC_SUBSTed values. We take copies of the
18781 # variables and quote the copies for generation of the libtool script.
18782 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18783 SED SHELL STRIP \
18784 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18785 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18786 deplibs_check_method reload_flag reload_cmds need_locks \
18787 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18788 lt_cv_sys_global_symbol_to_c_name_address \
18789 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18790 old_postinstall_cmds old_postuninstall_cmds \
18791 compiler_RC \
18792 CC_RC \
18793 LD_RC \
18794 lt_prog_compiler_wl_RC \
18795 lt_prog_compiler_pic_RC \
18796 lt_prog_compiler_static_RC \
18797 lt_prog_compiler_no_builtin_flag_RC \
18798 export_dynamic_flag_spec_RC \
18799 thread_safe_flag_spec_RC \
18800 whole_archive_flag_spec_RC \
18801 enable_shared_with_static_runtimes_RC \
18802 old_archive_cmds_RC \
18803 old_archive_from_new_cmds_RC \
18804 predep_objects_RC \
18805 postdep_objects_RC \
18806 predeps_RC \
18807 postdeps_RC \
18808 compiler_lib_search_path_RC \
18809 compiler_lib_search_dirs_RC \
18810 archive_cmds_RC \
18811 archive_expsym_cmds_RC \
18812 postinstall_cmds_RC \
18813 postuninstall_cmds_RC \
18814 old_archive_from_expsyms_cmds_RC \
18815 allow_undefined_flag_RC \
18816 no_undefined_flag_RC \
18817 export_symbols_cmds_RC \
18818 hardcode_libdir_flag_spec_RC \
18819 hardcode_libdir_flag_spec_ld_RC \
18820 hardcode_libdir_separator_RC \
18821 hardcode_automatic_RC \
18822 module_cmds_RC \
18823 module_expsym_cmds_RC \
18824 lt_cv_prog_compiler_c_o_RC \
18825 fix_srcfile_path_RC \
18826 exclude_expsyms_RC \
18827 include_expsyms_RC; do
18829 case $var in
18830 old_archive_cmds_RC | \
18831 old_archive_from_new_cmds_RC | \
18832 archive_cmds_RC | \
18833 archive_expsym_cmds_RC | \
18834 module_cmds_RC | \
18835 module_expsym_cmds_RC | \
18836 old_archive_from_expsyms_cmds_RC | \
18837 export_symbols_cmds_RC | \
18838 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18839 postinstall_cmds | postuninstall_cmds | \
18840 old_postinstall_cmds | old_postuninstall_cmds | \
18841 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18842 # Double-quote double-evaled strings.
18843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18846 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18848 esac
18849 done
18851 case $lt_echo in
18852 *'\$0 --fallback-echo"')
18853 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18855 esac
18857 cfgfile="$ofile"
18859 cat <<__EOF__ >> "$cfgfile"
18860 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18864 # Shell to use when invoking shell scripts.
18865 SHELL=$lt_SHELL
18867 # Whether or not to build shared libraries.
18868 build_libtool_libs=$enable_shared
18870 # Whether or not to build static libraries.
18871 build_old_libs=$enable_static
18873 # Whether or not to add -lc for building shared libraries.
18874 build_libtool_need_lc=$archive_cmds_need_lc_RC
18876 # Whether or not to disallow shared libs when runtime libs are static
18877 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18879 # Whether or not to optimize for fast installation.
18880 fast_install=$enable_fast_install
18882 # The host system.
18883 host_alias=$host_alias
18884 host=$host
18885 host_os=$host_os
18887 # The build system.
18888 build_alias=$build_alias
18889 build=$build
18890 build_os=$build_os
18892 # An echo program that does not interpret backslashes.
18893 echo=$lt_echo
18895 # The archiver.
18896 AR=$lt_AR
18897 AR_FLAGS=$lt_AR_FLAGS
18899 # A C compiler.
18900 LTCC=$lt_LTCC
18902 # LTCC compiler flags.
18903 LTCFLAGS=$lt_LTCFLAGS
18905 # A language-specific compiler.
18906 CC=$lt_compiler_RC
18908 # Is the compiler the GNU C compiler?
18909 with_gcc=$GCC_RC
18911 # An ERE matcher.
18912 EGREP=$lt_EGREP
18914 # The linker used to build libraries.
18915 LD=$lt_LD_RC
18917 # Whether we need hard or soft links.
18918 LN_S=$lt_LN_S
18920 # A BSD-compatible nm program.
18921 NM=$lt_NM
18923 # A symbol stripping program
18924 STRIP=$lt_STRIP
18926 # Used to examine libraries when file_magic_cmd begins "file"
18927 MAGIC_CMD=$MAGIC_CMD
18929 # Used on cygwin: DLL creation program.
18930 DLLTOOL="$DLLTOOL"
18932 # Used on cygwin: object dumper.
18933 OBJDUMP="$OBJDUMP"
18935 # Used on cygwin: assembler.
18936 AS="$AS"
18938 # The name of the directory that contains temporary libtool files.
18939 objdir=$objdir
18941 # How to create reloadable object files.
18942 reload_flag=$lt_reload_flag
18943 reload_cmds=$lt_reload_cmds
18945 # How to pass a linker flag through the compiler.
18946 wl=$lt_lt_prog_compiler_wl_RC
18948 # Object file suffix (normally "o").
18949 objext="$ac_objext"
18951 # Old archive suffix (normally "a").
18952 libext="$libext"
18954 # Shared library suffix (normally ".so").
18955 shrext_cmds='$shrext_cmds'
18957 # Executable file suffix (normally "").
18958 exeext="$exeext"
18960 # Additional compiler flags for building library objects.
18961 pic_flag=$lt_lt_prog_compiler_pic_RC
18962 pic_mode=$pic_mode
18964 # What is the maximum length of a command?
18965 max_cmd_len=$lt_cv_sys_max_cmd_len
18967 # Does compiler simultaneously support -c and -o options?
18968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18970 # Must we lock files when doing compilation?
18971 need_locks=$lt_need_locks
18973 # Do we need the lib prefix for modules?
18974 need_lib_prefix=$need_lib_prefix
18976 # Do we need a version for libraries?
18977 need_version=$need_version
18979 # Whether dlopen is supported.
18980 dlopen_support=$enable_dlopen
18982 # Whether dlopen of programs is supported.
18983 dlopen_self=$enable_dlopen_self
18985 # Whether dlopen of statically linked programs is supported.
18986 dlopen_self_static=$enable_dlopen_self_static
18988 # Compiler flag to prevent dynamic linking.
18989 link_static_flag=$lt_lt_prog_compiler_static_RC
18991 # Compiler flag to turn off builtin functions.
18992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18994 # Compiler flag to allow reflexive dlopens.
18995 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18997 # Compiler flag to generate shared objects directly from archives.
18998 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19000 # Compiler flag to generate thread-safe objects.
19001 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19003 # Library versioning type.
19004 version_type=$version_type
19006 # Format of library name prefix.
19007 libname_spec=$lt_libname_spec
19009 # List of archive names. First name is the real one, the rest are links.
19010 # The last name is the one that the linker finds with -lNAME.
19011 library_names_spec=$lt_library_names_spec
19013 # The coded name of the library, if different from the real name.
19014 soname_spec=$lt_soname_spec
19016 # Commands used to build and install an old-style archive.
19017 RANLIB=$lt_RANLIB
19018 old_archive_cmds=$lt_old_archive_cmds_RC
19019 old_postinstall_cmds=$lt_old_postinstall_cmds
19020 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19022 # Create an old-style archive from a shared archive.
19023 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19025 # Create a temporary old-style archive to link instead of a shared archive.
19026 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19028 # Commands used to build and install a shared archive.
19029 archive_cmds=$lt_archive_cmds_RC
19030 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19031 postinstall_cmds=$lt_postinstall_cmds
19032 postuninstall_cmds=$lt_postuninstall_cmds
19034 # Commands used to build a loadable module (assumed same as above if empty)
19035 module_cmds=$lt_module_cmds_RC
19036 module_expsym_cmds=$lt_module_expsym_cmds_RC
19038 # Commands to strip libraries.
19039 old_striplib=$lt_old_striplib
19040 striplib=$lt_striplib
19042 # Dependencies to place before the objects being linked to create a
19043 # shared library.
19044 predep_objects=$lt_predep_objects_RC
19046 # Dependencies to place after the objects being linked to create a
19047 # shared library.
19048 postdep_objects=$lt_postdep_objects_RC
19050 # Dependencies to place before the objects being linked to create a
19051 # shared library.
19052 predeps=$lt_predeps_RC
19054 # Dependencies to place after the objects being linked to create a
19055 # shared library.
19056 postdeps=$lt_postdeps_RC
19058 # The directories searched by this compiler when creating a shared
19059 # library
19060 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19062 # The library search path used internally by the compiler when linking
19063 # a shared library.
19064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19066 # Method to check whether dependent libraries are shared objects.
19067 deplibs_check_method=$lt_deplibs_check_method
19069 # Command to use when deplibs_check_method == file_magic.
19070 file_magic_cmd=$lt_file_magic_cmd
19072 # Flag that allows shared libraries with undefined symbols to be built.
19073 allow_undefined_flag=$lt_allow_undefined_flag_RC
19075 # Flag that forces no undefined symbols.
19076 no_undefined_flag=$lt_no_undefined_flag_RC
19078 # Commands used to finish a libtool library installation in a directory.
19079 finish_cmds=$lt_finish_cmds
19081 # Same as above, but a single script fragment to be evaled but not shown.
19082 finish_eval=$lt_finish_eval
19084 # Take the output of nm and produce a listing of raw symbols and C names.
19085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19087 # Transform the output of nm in a proper C declaration
19088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19090 # Transform the output of nm in a C name address pair
19091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19093 # This is the shared library runtime path variable.
19094 runpath_var=$runpath_var
19096 # This is the shared library path variable.
19097 shlibpath_var=$shlibpath_var
19099 # Is shlibpath searched before the hard-coded library search path?
19100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_RC
19105 # Whether we should hardcode library paths into libraries.
19106 hardcode_into_libs=$hardcode_into_libs
19108 # Flag to hardcode \$libdir into a binary during linking.
19109 # This must work even if \$libdir does not exist.
19110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19112 # If ld is used when linking, flag to hardcode \$libdir into
19113 # a binary during linking. This must work even if \$libdir does
19114 # not exist.
19115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19117 # Whether we need a single -rpath flag with a separated argument.
19118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_direct=$hardcode_direct_RC
19124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_minus_L=$hardcode_minus_L_RC
19128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19129 # the resulting binary.
19130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19132 # Set to yes if building a shared library automatically hardcodes DIR into the library
19133 # and all subsequent libraries and executables linked against it.
19134 hardcode_automatic=$hardcode_automatic_RC
19136 # Variables whose values should be saved in libtool wrapper scripts and
19137 # restored at relink time.
19138 variables_saved_for_relink="$variables_saved_for_relink"
19140 # Whether libtool must link a program against all its dependency libraries.
19141 link_all_deplibs=$link_all_deplibs_RC
19143 # Compile-time system search path for libraries
19144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19146 # Run-time system search path for libraries
19147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19149 # Fix the shell variable \$srcfile for the compiler.
19150 fix_srcfile_path=$lt_fix_srcfile_path
19152 # Set to yes if exported symbols are required.
19153 always_export_symbols=$always_export_symbols_RC
19155 # The commands to list exported symbols.
19156 export_symbols_cmds=$lt_export_symbols_cmds_RC
19158 # The commands to extract the exported symbol list from a shared archive.
19159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19161 # Symbols that should not be listed in the preloaded symbols.
19162 exclude_expsyms=$lt_exclude_expsyms_RC
19164 # Symbols that must always be exported.
19165 include_expsyms=$lt_include_expsyms_RC
19167 # ### END LIBTOOL TAG CONFIG: $tagname
19169 __EOF__
19172 else
19173 # If there is no Makefile yet, we rely on a make rule to execute
19174 # `config.status --recheck' to rerun these tests and create the
19175 # libtool script then.
19176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19177 if test -f "$ltmain_in"; then
19178 test -f Makefile && make "$ltmain"
19183 ac_ext=c
19184 ac_cpp='$CPP $CPPFLAGS'
19185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19189 CC="$lt_save_CC"
19194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19196 { (exit 1); exit 1; }; }
19198 esac
19200 # Append the new tag name to the list of available tags.
19201 if test -n "$tagname" ; then
19202 available_tags="$available_tags $tagname"
19205 done
19206 IFS="$lt_save_ifs"
19208 # Now substitute the updated list of available tags.
19209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19210 mv "${ofile}T" "$ofile"
19211 chmod +x "$ofile"
19212 else
19213 rm -f "${ofile}T"
19214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19216 { (exit 1); exit 1; }; }
19222 # This can be used to rebuild libtool when needed
19223 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19225 # Always use our own libtool.
19226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19228 # Prevent multiple expansion
19249 # Find a good install program. We prefer a C program (faster),
19250 # so one script is as good as another. But avoid the broken or
19251 # incompatible versions:
19252 # SysV /etc/install, /usr/sbin/install
19253 # SunOS /usr/etc/install
19254 # IRIX /sbin/install
19255 # AIX /bin/install
19256 # AmigaOS /C/install, which installs bootblocks on floppy discs
19257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19260 # OS/2's system install, which has a completely different semantic
19261 # ./install, which can be erroneously created by make from ./install.sh.
19262 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19263 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19264 if test -z "$INSTALL"; then
19265 if test "${ac_cv_path_install+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 else
19268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19269 for as_dir in $PATH
19271 IFS=$as_save_IFS
19272 test -z "$as_dir" && as_dir=.
19273 # Account for people who put trailing slashes in PATH elements.
19274 case $as_dir/ in
19275 ./ | .// | /cC/* | \
19276 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19277 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19278 /usr/ucb/* ) ;;
19280 # OSF1 and SCO ODT 3.0 have their own names for install.
19281 # Don't use installbsd from OSF since it installs stuff as root
19282 # by default.
19283 for ac_prog in ginstall scoinst install; do
19284 for ac_exec_ext in '' $ac_executable_extensions; do
19285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19286 if test $ac_prog = install &&
19287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19288 # AIX install. It has an incompatible calling convention.
19290 elif test $ac_prog = install &&
19291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19292 # program-specific install script used by HP pwplus--don't use.
19294 else
19295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19296 break 3
19299 done
19300 done
19302 esac
19303 done
19304 IFS=$as_save_IFS
19308 if test "${ac_cv_path_install+set}" = set; then
19309 INSTALL=$ac_cv_path_install
19310 else
19311 # As a last resort, use the slow shell script. Don't cache a
19312 # value for INSTALL within a source directory, because that will
19313 # break other packages using the cache if that directory is
19314 # removed, or if the value is a relative name.
19315 INSTALL=$ac_install_sh
19318 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19319 echo "${ECHO_T}$INSTALL" >&6; }
19321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19322 # It thinks the first close brace ends the variable substitution.
19323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19329 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
19330 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
19331 LN_S=$as_ln_s
19332 if test "$LN_S" = "ln -s"; then
19333 { echo "$as_me:$LINENO: result: yes" >&5
19334 echo "${ECHO_T}yes" >&6; }
19335 else
19336 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19337 echo "${ECHO_T}no, using $LN_S" >&6; }
19346 # Warn if the user specified libbind, which is now deprecated
19347 # Check whether --enable-libbind was given.
19348 if test "${enable_libbind+set}" = set; then
19349 enableval=$enable_libbind;
19353 case "$enable_libbind" in
19354 yes)
19355 { { echo "$as_me:$LINENO: error: 'libbind' is no longer part of the BIND 9 distribution.
19356 It is available from http://www.isc.org as a separate download." >&5
19357 echo "$as_me: error: 'libbind' is no longer part of the BIND 9 distribution.
19358 It is available from http://www.isc.org as a separate download." >&2;}
19359 { (exit 1); exit 1; }; }
19361 no|'')
19363 esac
19366 # Make very sure that these are the first files processed by
19367 # config.status, since we use the processed output as the input for
19368 # AC_SUBST_FILE() substitutions in other files.
19370 ac_config_files="$ac_config_files make/rules make/includes"
19373 # Extract the first word of "ar", so it can be a program name with args.
19374 set dummy ar; ac_word=$2
19375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19377 if test "${ac_cv_path_AR+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380 case $AR in
19381 [\\/]* | ?:[\\/]*)
19382 ac_cv_path_AR="$AR" # Let the user override the test with a path.
19385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19386 for as_dir in $PATH
19388 IFS=$as_save_IFS
19389 test -z "$as_dir" && as_dir=.
19390 for ac_exec_ext in '' $ac_executable_extensions; do
19391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19392 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19394 break 2
19396 done
19397 done
19398 IFS=$as_save_IFS
19401 esac
19403 AR=$ac_cv_path_AR
19404 if test -n "$AR"; then
19405 { echo "$as_me:$LINENO: result: $AR" >&5
19406 echo "${ECHO_T}$AR" >&6; }
19407 else
19408 { echo "$as_me:$LINENO: result: no" >&5
19409 echo "${ECHO_T}no" >&6; }
19413 ARFLAGS="cruv"
19417 # The POSIX ln(1) program. Non-POSIX systems may substitute
19418 # "copy" or something.
19419 LN=ln
19422 case "$AR" in
19424 { { echo "$as_me:$LINENO: error:
19425 ar program not found. Please fix your PATH to include the directory in
19426 which ar resides, or set AR in the environment with the full path to ar.
19427 " >&5
19428 echo "$as_me: error:
19429 ar program not found. Please fix your PATH to include the directory in
19430 which ar resides, or set AR in the environment with the full path to ar.
19431 " >&2;}
19432 { (exit 1); exit 1; }; }
19435 esac
19438 # Etags.
19440 for ac_prog in etags emacs-etags
19442 # Extract the first word of "$ac_prog", so it can be a program name with args.
19443 set dummy $ac_prog; ac_word=$2
19444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19446 if test "${ac_cv_path_ETAGS+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 else
19449 case $ETAGS in
19450 [\\/]* | ?:[\\/]*)
19451 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19455 for as_dir in $PATH
19457 IFS=$as_save_IFS
19458 test -z "$as_dir" && as_dir=.
19459 for ac_exec_ext in '' $ac_executable_extensions; do
19460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19461 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19463 break 2
19465 done
19466 done
19467 IFS=$as_save_IFS
19470 esac
19472 ETAGS=$ac_cv_path_ETAGS
19473 if test -n "$ETAGS"; then
19474 { echo "$as_me:$LINENO: result: $ETAGS" >&5
19475 echo "${ECHO_T}$ETAGS" >&6; }
19476 else
19477 { echo "$as_me:$LINENO: result: no" >&5
19478 echo "${ECHO_T}no" >&6; }
19482 test -n "$ETAGS" && break
19483 done
19487 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
19488 # GNU emacs etags, and it requires the -L flag.
19490 if test "X$ETAGS" != "X"; then
19491 { echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5
19492 echo $ECHO_N "checking for Exuberant Ctags etags... $ECHO_C" >&6; }
19493 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
19494 { echo "$as_me:$LINENO: result: yes" >&5
19495 echo "${ECHO_T}yes" >&6; }
19496 ETAGS="$ETAGS -L"
19497 else
19498 { echo "$as_me:$LINENO: result: no" >&5
19499 echo "${ECHO_T}no" >&6; }
19505 # Perl is optional; it is used only by some of the system test scripts.
19506 # Note: the backtrace feature (see below) uses perl to build the symbol table,
19507 # but it still compiles without perl, in which case an empty table will be used.
19509 for ac_prog in perl5 perl
19511 # Extract the first word of "$ac_prog", so it can be a program name with args.
19512 set dummy $ac_prog; ac_word=$2
19513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19515 if test "${ac_cv_path_PERL+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518 case $PERL in
19519 [\\/]* | ?:[\\/]*)
19520 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19524 for as_dir in $PATH
19526 IFS=$as_save_IFS
19527 test -z "$as_dir" && as_dir=.
19528 for ac_exec_ext in '' $ac_executable_extensions; do
19529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19530 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19532 break 2
19534 done
19535 done
19536 IFS=$as_save_IFS
19539 esac
19541 PERL=$ac_cv_path_PERL
19542 if test -n "$PERL"; then
19543 { echo "$as_me:$LINENO: result: $PERL" >&5
19544 echo "${ECHO_T}$PERL" >&6; }
19545 else
19546 { echo "$as_me:$LINENO: result: no" >&5
19547 echo "${ECHO_T}no" >&6; }
19551 test -n "$PERL" && break
19552 done
19557 # Special processing of paths depending on whether --prefix,
19558 # --sysconfdir or --localstatedir arguments were given. What's
19559 # desired is some compatibility with the way previous versions
19560 # of BIND built; they defaulted to /usr/local for most parts of
19561 # the installation, but named.boot/named.conf was in /etc
19562 # and named.pid was in /var/run.
19564 # So ... if none of --prefix, --sysconfdir or --localstatedir are
19565 # specified, set things up that way. If --prefix is given, use
19566 # it for sysconfdir and localstatedir the way configure normally
19567 # would. To change the prefix for everything but leave named.conf
19568 # in /etc or named.pid in /var/run, then do this the usual configure way:
19569 # ./configure --prefix=/somewhere --sysconfdir=/etc
19570 # ./configure --prefix=/somewhere --localstatedir=/var
19572 # To put named.conf and named.pid in /usr/local with everything else,
19573 # set the prefix explicitly to /usr/local even though that's the default:
19574 # ./configure --prefix=/usr/local
19576 case "$prefix" in
19577 NONE)
19578 case "$sysconfdir" in
19579 '${prefix}/etc')
19580 sysconfdir=/etc
19582 esac
19583 case "$localstatedir" in
19584 '${prefix}/var')
19585 localstatedir=/var
19587 esac
19589 esac
19592 # Make sure INSTALL uses an absolute path, else it will be wrong in all
19593 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
19594 # configure based on the location of the file where it is substituted.
19595 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
19596 # subdirectory of install-sh, This relative path will be wrong for all
19597 # directories more than one level down from install-sh.
19599 case "$INSTALL" in
19604 # Not all systems have dirname.
19607 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
19610 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
19611 test "$ac_dir" = "$ac_prog" && ac_dir=.
19612 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
19613 INSTALL="$ac_dir/$ac_prog"
19615 esac
19618 # On these hosts, we really want to use cc, not gcc, even if it is
19619 # found. The gcc that these systems have will not correctly handle
19620 # pthreads.
19622 # However, if the user sets $CC to be something, let that override
19623 # our change.
19625 if test "X$CC" = "X" ; then
19626 case "$host" in
19627 *-dec-osf*)
19628 CC="cc"
19630 *-solaris*)
19631 # Use Sun's cc if it is available, but watch
19632 # out for /usr/ucb/cc; it will never be the right
19633 # compiler to use.
19635 # If setting CC here fails, the AC_PROG_CC done
19636 # below might still find gcc.
19637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
19638 for ac_dir in $PATH; do
19639 test -z "$ac_dir" && ac_dir=.
19640 case "$ac_dir" in
19641 /usr/ucb)
19642 # exclude
19645 if test -f "$ac_dir/cc"; then
19646 CC="$ac_dir/cc"
19647 break
19650 esac
19651 done
19652 IFS="$ac_save_ifs"
19654 *-hp-hpux*)
19655 CC="cc"
19657 mips-sgi-irix*)
19658 CC="cc"
19660 esac
19663 ac_ext=c
19664 ac_cpp='$CPP $CPPFLAGS'
19665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19668 if test -n "$ac_tool_prefix"; then
19669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19673 if test "${ac_cv_prog_CC+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676 if test -n "$CC"; then
19677 ac_cv_prog_CC="$CC" # Let the user override the test.
19678 else
19679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680 for as_dir in $PATH
19682 IFS=$as_save_IFS
19683 test -z "$as_dir" && as_dir=.
19684 for ac_exec_ext in '' $ac_executable_extensions; do
19685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19686 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19688 break 2
19690 done
19691 done
19692 IFS=$as_save_IFS
19696 CC=$ac_cv_prog_CC
19697 if test -n "$CC"; then
19698 { echo "$as_me:$LINENO: result: $CC" >&5
19699 echo "${ECHO_T}$CC" >&6; }
19700 else
19701 { echo "$as_me:$LINENO: result: no" >&5
19702 echo "${ECHO_T}no" >&6; }
19707 if test -z "$ac_cv_prog_CC"; then
19708 ac_ct_CC=$CC
19709 # Extract the first word of "gcc", so it can be a program name with args.
19710 set dummy gcc; ac_word=$2
19711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716 if test -n "$ac_ct_CC"; then
19717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19718 else
19719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19720 for as_dir in $PATH
19722 IFS=$as_save_IFS
19723 test -z "$as_dir" && as_dir=.
19724 for ac_exec_ext in '' $ac_executable_extensions; do
19725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19726 ac_cv_prog_ac_ct_CC="gcc"
19727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19728 break 2
19730 done
19731 done
19732 IFS=$as_save_IFS
19736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19737 if test -n "$ac_ct_CC"; then
19738 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19739 echo "${ECHO_T}$ac_ct_CC" >&6; }
19740 else
19741 { echo "$as_me:$LINENO: result: no" >&5
19742 echo "${ECHO_T}no" >&6; }
19745 if test "x$ac_ct_CC" = x; then
19746 CC=""
19747 else
19748 case $cross_compiling:$ac_tool_warned in
19749 yes:)
19750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19751 whose name does not start with the host triplet. If you think this
19752 configuration is useful to you, please write to autoconf@gnu.org." >&5
19753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19754 whose name does not start with the host triplet. If you think this
19755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19756 ac_tool_warned=yes ;;
19757 esac
19758 CC=$ac_ct_CC
19760 else
19761 CC="$ac_cv_prog_CC"
19764 if test -z "$CC"; then
19765 if test -n "$ac_tool_prefix"; then
19766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19767 set dummy ${ac_tool_prefix}cc; ac_word=$2
19768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19770 if test "${ac_cv_prog_CC+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773 if test -n "$CC"; then
19774 ac_cv_prog_CC="$CC" # Let the user override the test.
19775 else
19776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19777 for as_dir in $PATH
19779 IFS=$as_save_IFS
19780 test -z "$as_dir" && as_dir=.
19781 for ac_exec_ext in '' $ac_executable_extensions; do
19782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19783 ac_cv_prog_CC="${ac_tool_prefix}cc"
19784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19785 break 2
19787 done
19788 done
19789 IFS=$as_save_IFS
19793 CC=$ac_cv_prog_CC
19794 if test -n "$CC"; then
19795 { echo "$as_me:$LINENO: result: $CC" >&5
19796 echo "${ECHO_T}$CC" >&6; }
19797 else
19798 { echo "$as_me:$LINENO: result: no" >&5
19799 echo "${ECHO_T}no" >&6; }
19805 if test -z "$CC"; then
19806 # Extract the first word of "cc", so it can be a program name with args.
19807 set dummy cc; ac_word=$2
19808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19810 if test "${ac_cv_prog_CC+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813 if test -n "$CC"; then
19814 ac_cv_prog_CC="$CC" # Let the user override the test.
19815 else
19816 ac_prog_rejected=no
19817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818 for as_dir in $PATH
19820 IFS=$as_save_IFS
19821 test -z "$as_dir" && as_dir=.
19822 for ac_exec_ext in '' $ac_executable_extensions; do
19823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19825 ac_prog_rejected=yes
19826 continue
19828 ac_cv_prog_CC="cc"
19829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19830 break 2
19832 done
19833 done
19834 IFS=$as_save_IFS
19836 if test $ac_prog_rejected = yes; then
19837 # We found a bogon in the path, so make sure we never use it.
19838 set dummy $ac_cv_prog_CC
19839 shift
19840 if test $# != 0; then
19841 # We chose a different compiler from the bogus one.
19842 # However, it has the same basename, so the bogon will be chosen
19843 # first if we set CC to just the basename; use the full file name.
19844 shift
19845 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19850 CC=$ac_cv_prog_CC
19851 if test -n "$CC"; then
19852 { echo "$as_me:$LINENO: result: $CC" >&5
19853 echo "${ECHO_T}$CC" >&6; }
19854 else
19855 { echo "$as_me:$LINENO: result: no" >&5
19856 echo "${ECHO_T}no" >&6; }
19861 if test -z "$CC"; then
19862 if test -n "$ac_tool_prefix"; then
19863 for ac_prog in cl.exe
19865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19869 if test "${ac_cv_prog_CC+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872 if test -n "$CC"; then
19873 ac_cv_prog_CC="$CC" # Let the user override the test.
19874 else
19875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19876 for as_dir in $PATH
19878 IFS=$as_save_IFS
19879 test -z "$as_dir" && as_dir=.
19880 for ac_exec_ext in '' $ac_executable_extensions; do
19881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19884 break 2
19886 done
19887 done
19888 IFS=$as_save_IFS
19892 CC=$ac_cv_prog_CC
19893 if test -n "$CC"; then
19894 { echo "$as_me:$LINENO: result: $CC" >&5
19895 echo "${ECHO_T}$CC" >&6; }
19896 else
19897 { echo "$as_me:$LINENO: result: no" >&5
19898 echo "${ECHO_T}no" >&6; }
19902 test -n "$CC" && break
19903 done
19905 if test -z "$CC"; then
19906 ac_ct_CC=$CC
19907 for ac_prog in cl.exe
19909 # Extract the first word of "$ac_prog", so it can be a program name with args.
19910 set dummy $ac_prog; ac_word=$2
19911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916 if test -n "$ac_ct_CC"; then
19917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19918 else
19919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19920 for as_dir in $PATH
19922 IFS=$as_save_IFS
19923 test -z "$as_dir" && as_dir=.
19924 for ac_exec_ext in '' $ac_executable_extensions; do
19925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19926 ac_cv_prog_ac_ct_CC="$ac_prog"
19927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19928 break 2
19930 done
19931 done
19932 IFS=$as_save_IFS
19936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19937 if test -n "$ac_ct_CC"; then
19938 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19939 echo "${ECHO_T}$ac_ct_CC" >&6; }
19940 else
19941 { echo "$as_me:$LINENO: result: no" >&5
19942 echo "${ECHO_T}no" >&6; }
19946 test -n "$ac_ct_CC" && break
19947 done
19949 if test "x$ac_ct_CC" = x; then
19950 CC=""
19951 else
19952 case $cross_compiling:$ac_tool_warned in
19953 yes:)
19954 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19955 whose name does not start with the host triplet. If you think this
19956 configuration is useful to you, please write to autoconf@gnu.org." >&5
19957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19958 whose name does not start with the host triplet. If you think this
19959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19960 ac_tool_warned=yes ;;
19961 esac
19962 CC=$ac_ct_CC
19969 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19970 See \`config.log' for more details." >&5
19971 echo "$as_me: error: no acceptable C compiler found in \$PATH
19972 See \`config.log' for more details." >&2;}
19973 { (exit 1); exit 1; }; }
19975 # Provide some information about the compiler.
19976 echo "$as_me:$LINENO: checking for C compiler version" >&5
19977 ac_compiler=`set X $ac_compile; echo $2`
19978 { (ac_try="$ac_compiler --version >&5"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_compiler --version >&5") 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }
19988 { (ac_try="$ac_compiler -v >&5"
19989 case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19992 esac
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_compiler -v >&5") 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }
19998 { (ac_try="$ac_compiler -V >&5"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compiler -V >&5") 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }
20009 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20010 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20022 main ()
20024 #ifndef __GNUC__
20025 choke me
20026 #endif
20029 return 0;
20031 _ACEOF
20032 rm -f conftest.$ac_objext
20033 if { (ac_try="$ac_compile"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_compile") 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && {
20046 test -z "$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20048 } && test -s conftest.$ac_objext; then
20049 ac_compiler_gnu=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_compiler_gnu=no
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20061 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20062 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20063 GCC=`test $ac_compiler_gnu = yes && echo yes`
20064 ac_test_CFLAGS=${CFLAGS+set}
20065 ac_save_CFLAGS=$CFLAGS
20066 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20067 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20068 if test "${ac_cv_prog_cc_g+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071 ac_save_c_werror_flag=$ac_c_werror_flag
20072 ac_c_werror_flag=yes
20073 ac_cv_prog_cc_g=no
20074 CFLAGS="-g"
20075 cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h. */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20083 main ()
20087 return 0;
20089 _ACEOF
20090 rm -f conftest.$ac_objext
20091 if { (ac_try="$ac_compile"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_compile") 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest.$ac_objext; then
20107 ac_cv_prog_cc_g=yes
20108 else
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 CFLAGS=""
20113 cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h. */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20121 main ()
20125 return 0;
20127 _ACEOF
20128 rm -f conftest.$ac_objext
20129 if { (ac_try="$ac_compile"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_compile") 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } && {
20142 test -z "$ac_c_werror_flag" ||
20143 test ! -s conftest.err
20144 } && test -s conftest.$ac_objext; then
20146 else
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_c_werror_flag=$ac_save_c_werror_flag
20151 CFLAGS="-g"
20152 cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h. */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20160 main ()
20164 return 0;
20166 _ACEOF
20167 rm -f conftest.$ac_objext
20168 if { (ac_try="$ac_compile"
20169 case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_compile") 2>conftest.er1
20175 ac_status=$?
20176 grep -v '^ *+' conftest.er1 >conftest.err
20177 rm -f conftest.er1
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } && {
20181 test -z "$ac_c_werror_flag" ||
20182 test ! -s conftest.err
20183 } && test -s conftest.$ac_objext; then
20184 ac_cv_prog_cc_g=yes
20185 else
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20199 ac_c_werror_flag=$ac_save_c_werror_flag
20201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20203 if test "$ac_test_CFLAGS" = set; then
20204 CFLAGS=$ac_save_CFLAGS
20205 elif test $ac_cv_prog_cc_g = yes; then
20206 if test "$GCC" = yes; then
20207 CFLAGS="-g -O2"
20208 else
20209 CFLAGS="-g"
20211 else
20212 if test "$GCC" = yes; then
20213 CFLAGS="-O2"
20214 else
20215 CFLAGS=
20218 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20219 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20220 if test "${ac_cv_prog_cc_c89+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223 ac_cv_prog_cc_c89=no
20224 ac_save_CC=$CC
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <stdarg.h>
20232 #include <stdio.h>
20233 #include <sys/types.h>
20234 #include <sys/stat.h>
20235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20236 struct buf { int x; };
20237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20238 static char *e (p, i)
20239 char **p;
20240 int i;
20242 return p[i];
20244 static char *f (char * (*g) (char **, int), char **p, ...)
20246 char *s;
20247 va_list v;
20248 va_start (v,p);
20249 s = g (p, va_arg (v,int));
20250 va_end (v);
20251 return s;
20254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20255 function prototypes and stuff, but not '\xHH' hex character constants.
20256 These don't provoke an error unfortunately, instead are silently treated
20257 as 'x'. The following induces an error, until -std is added to get
20258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20259 array size at least. It's necessary to write '\x00'==0 to get something
20260 that's true only with -std. */
20261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20264 inside strings and character constants. */
20265 #define FOO(x) 'x'
20266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20268 int test (int i, double x);
20269 struct s1 {int (*f) (int a);};
20270 struct s2 {int (*f) (double a);};
20271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20272 int argc;
20273 char **argv;
20275 main ()
20277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20279 return 0;
20281 _ACEOF
20282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20285 CC="$ac_save_CC $ac_arg"
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_compile") 2>conftest.er1
20294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest.$ac_objext; then
20303 ac_cv_prog_cc_c89=$ac_arg
20304 else
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20311 rm -f core conftest.err conftest.$ac_objext
20312 test "x$ac_cv_prog_cc_c89" != "xno" && break
20313 done
20314 rm -f conftest.$ac_ext
20315 CC=$ac_save_CC
20318 # AC_CACHE_VAL
20319 case "x$ac_cv_prog_cc_c89" in
20321 { echo "$as_me:$LINENO: result: none needed" >&5
20322 echo "${ECHO_T}none needed" >&6; } ;;
20323 xno)
20324 { echo "$as_me:$LINENO: result: unsupported" >&5
20325 echo "${ECHO_T}unsupported" >&6; } ;;
20327 CC="$CC $ac_cv_prog_cc_c89"
20328 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20329 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20330 esac
20333 ac_ext=c
20334 ac_cpp='$CPP $CPPFLAGS'
20335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20341 # gcc's optimiser is broken at -02 for ultrasparc
20343 if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
20344 case "$host" in
20345 sparc-*)
20346 CCFLAGS="-g -O1"
20348 esac
20352 # OS dependent CC flags
20354 case "$host" in
20355 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
20356 # -D_XOPEN_SOURCE_EXTENDED.
20357 *-dec-osf*)
20358 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
20359 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
20361 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
20362 *-hp-hpux*)
20363 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
20364 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
20365 LIBS="-lxnet $LIBS"
20367 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
20368 *-solaris*)
20369 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
20370 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
20372 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
20373 # parts of the IPv6 Advanced Socket API as a result. This is stupid
20374 # as it breaks how the two halves (Basic and Advanced) of the IPv6
20375 # Socket API were designed to be used but we have to live with it.
20376 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
20377 *-linux*)
20378 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
20379 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20381 esac
20383 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20384 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20385 if test "${ac_cv_header_stdc+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <stdlib.h>
20395 #include <stdarg.h>
20396 #include <string.h>
20397 #include <float.h>
20400 main ()
20404 return 0;
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (ac_try="$ac_compile"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_compile") 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest.$ac_objext; then
20424 ac_cv_header_stdc=yes
20425 else
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_header_stdc=no
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 if test $ac_cv_header_stdc = yes; then
20435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20436 cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h. */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442 #include <string.h>
20444 _ACEOF
20445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20446 $EGREP "memchr" >/dev/null 2>&1; then
20448 else
20449 ac_cv_header_stdc=no
20451 rm -f conftest*
20455 if test $ac_cv_header_stdc = yes; then
20456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20457 cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h. */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 #include <stdlib.h>
20465 _ACEOF
20466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20467 $EGREP "free" >/dev/null 2>&1; then
20469 else
20470 ac_cv_header_stdc=no
20472 rm -f conftest*
20476 if test $ac_cv_header_stdc = yes; then
20477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20478 if test "$cross_compiling" = yes; then
20480 else
20481 cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h. */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 #include <ctype.h>
20488 #include <stdlib.h>
20489 #if ((' ' & 0x0FF) == 0x020)
20490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20492 #else
20493 # define ISLOWER(c) \
20494 (('a' <= (c) && (c) <= 'i') \
20495 || ('j' <= (c) && (c) <= 'r') \
20496 || ('s' <= (c) && (c) <= 'z'))
20497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20498 #endif
20500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20502 main ()
20504 int i;
20505 for (i = 0; i < 256; i++)
20506 if (XOR (islower (i), ISLOWER (i))
20507 || toupper (i) != TOUPPER (i))
20508 return 2;
20509 return 0;
20511 _ACEOF
20512 rm -f conftest$ac_exeext
20513 if { (ac_try="$ac_link"
20514 case "(($ac_try" in
20515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516 *) ac_try_echo=$ac_try;;
20517 esac
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_link") 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20523 { (case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_try") 2>&5
20529 ac_status=$?
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20533 else
20534 echo "$as_me: program exited with status $ac_status" >&5
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ( exit $ac_status )
20539 ac_cv_header_stdc=no
20541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20547 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20548 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20549 if test $ac_cv_header_stdc = yes; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define STDC_HEADERS 1
20553 _ACEOF
20567 for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h
20569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h. */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 $ac_includes_default
20582 #ifdef HAVE_SYS_PARAM_H
20583 # include <sys/param.h>
20584 #endif
20587 #include <$ac_header>
20588 _ACEOF
20589 rm -f conftest.$ac_objext
20590 if { (ac_try="$ac_compile"
20591 case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20594 esac
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_compile") 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } && {
20603 test -z "$ac_c_werror_flag" ||
20604 test ! -s conftest.err
20605 } && test -s conftest.$ac_objext; then
20606 eval "$as_ac_Header=yes"
20607 else
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 eval "$as_ac_Header=no"
20614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616 ac_res=`eval echo '${'$as_ac_Header'}'`
20617 { echo "$as_me:$LINENO: result: $ac_res" >&5
20618 echo "${ECHO_T}$ac_res" >&6; }
20619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20620 cat >>confdefs.h <<_ACEOF
20621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20622 _ACEOF
20626 done
20629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20631 if test "${ac_cv_c_const+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20642 main ()
20644 /* FIXME: Include the comments suggested by Paul. */
20645 #ifndef __cplusplus
20646 /* Ultrix mips cc rejects this. */
20647 typedef int charset[2];
20648 const charset cs;
20649 /* SunOS 4.1.1 cc rejects this. */
20650 char const *const *pcpcc;
20651 char **ppc;
20652 /* NEC SVR4.0.2 mips cc rejects this. */
20653 struct point {int x, y;};
20654 static struct point const zero = {0,0};
20655 /* AIX XL C 1.02.0.0 rejects this.
20656 It does not let you subtract one const X* pointer from another in
20657 an arm of an if-expression whose if-part is not a constant
20658 expression */
20659 const char *g = "string";
20660 pcpcc = &g + (g ? g-g : 0);
20661 /* HPUX 7.0 cc rejects these. */
20662 ++pcpcc;
20663 ppc = (char**) pcpcc;
20664 pcpcc = (char const *const *) ppc;
20665 { /* SCO 3.2v4 cc rejects this. */
20666 char *t;
20667 char const *s = 0 ? (char *) 0 : (char const *) 0;
20669 *t++ = 0;
20670 if (s) return 0;
20672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20673 int x[] = {25, 17};
20674 const int *foo = &x[0];
20675 ++foo;
20677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20678 typedef const int *iptr;
20679 iptr p = 0;
20680 ++p;
20682 { /* AIX XL C 1.02.0.0 rejects this saying
20683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20684 struct s { int j; const int *ap[3]; };
20685 struct s *b; b->j = 5;
20687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20688 const int foo = 10;
20689 if (!foo) return 0;
20691 return !cs[0] && !zero.x;
20692 #endif
20695 return 0;
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (ac_try="$ac_compile"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_compile") 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest.$ac_objext; then
20715 ac_cv_c_const=yes
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ac_cv_c_const=no
20723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20727 if test $ac_cv_c_const = no; then
20729 cat >>confdefs.h <<\_ACEOF
20730 #define const
20731 _ACEOF
20735 { echo "$as_me:$LINENO: checking for inline" >&5
20736 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20737 if test "${ac_cv_c_inline+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740 ac_cv_c_inline=no
20741 for ac_kw in inline __inline__ __inline; do
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h. */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #ifndef __cplusplus
20749 typedef int foo_t;
20750 static $ac_kw foo_t static_foo () {return 0; }
20751 $ac_kw foo_t foo () {return 0; }
20752 #endif
20754 _ACEOF
20755 rm -f conftest.$ac_objext
20756 if { (ac_try="$ac_compile"
20757 case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_compile") 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && {
20769 test -z "$ac_c_werror_flag" ||
20770 test ! -s conftest.err
20771 } && test -s conftest.$ac_objext; then
20772 ac_cv_c_inline=$ac_kw
20773 else
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20781 test "$ac_cv_c_inline" != no && break
20782 done
20785 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20786 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20789 case $ac_cv_c_inline in
20790 inline | yes) ;;
20792 case $ac_cv_c_inline in
20793 no) ac_val=;;
20794 *) ac_val=$ac_cv_c_inline;;
20795 esac
20796 cat >>confdefs.h <<_ACEOF
20797 #ifndef __cplusplus
20798 #define inline $ac_val
20799 #endif
20800 _ACEOF
20802 esac
20804 { echo "$as_me:$LINENO: checking for working volatile" >&5
20805 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20806 if test "${ac_cv_c_volatile+set}" = set; then
20807 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 else
20809 cat >conftest.$ac_ext <<_ACEOF
20810 /* confdefs.h. */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20817 main ()
20820 volatile int x;
20821 int * volatile y = (int *) 0;
20822 return !x && !y;
20824 return 0;
20826 _ACEOF
20827 rm -f conftest.$ac_objext
20828 if { (ac_try="$ac_compile"
20829 case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20832 esac
20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_compile") 2>conftest.er1
20835 ac_status=$?
20836 grep -v '^ *+' conftest.er1 >conftest.err
20837 rm -f conftest.er1
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } && {
20841 test -z "$ac_c_werror_flag" ||
20842 test ! -s conftest.err
20843 } && test -s conftest.$ac_objext; then
20844 ac_cv_c_volatile=yes
20845 else
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 ac_cv_c_volatile=no
20852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20855 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
20856 if test $ac_cv_c_volatile = no; then
20858 cat >>confdefs.h <<\_ACEOF
20859 #define volatile
20860 _ACEOF
20864 { echo "$as_me:$LINENO: checking for sysctlbyname" >&5
20865 echo $ECHO_N "checking for sysctlbyname... $ECHO_C" >&6; }
20866 if test "${ac_cv_func_sysctlbyname+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869 cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h. */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 /* Define sysctlbyname to an innocuous variant, in case <limits.h> declares sysctlbyname.
20876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20877 #define sysctlbyname innocuous_sysctlbyname
20879 /* System header to define __stub macros and hopefully few prototypes,
20880 which can conflict with char sysctlbyname (); below.
20881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20882 <limits.h> exists even on freestanding compilers. */
20884 #ifdef __STDC__
20885 # include <limits.h>
20886 #else
20887 # include <assert.h>
20888 #endif
20890 #undef sysctlbyname
20892 /* Override any GCC internal prototype to avoid an error.
20893 Use char because int might match the return type of a GCC
20894 builtin and then its argument prototype would still apply. */
20895 #ifdef __cplusplus
20896 extern "C"
20897 #endif
20898 char sysctlbyname ();
20899 /* The GNU C library defines this for functions which it implements
20900 to always fail with ENOSYS. Some functions are actually named
20901 something starting with __ and the normal name is an alias. */
20902 #if defined __stub_sysctlbyname || defined __stub___sysctlbyname
20903 choke me
20904 #endif
20907 main ()
20909 return sysctlbyname ();
20911 return 0;
20913 _ACEOF
20914 rm -f conftest.$ac_objext conftest$ac_exeext
20915 if { (ac_try="$ac_link"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_link") 2>conftest.er1
20922 ac_status=$?
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest$ac_exeext &&
20931 $as_test_x conftest$ac_exeext; then
20932 ac_cv_func_sysctlbyname=yes
20933 else
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_cv_func_sysctlbyname=no
20940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20941 conftest$ac_exeext conftest.$ac_ext
20943 { echo "$as_me:$LINENO: result: $ac_cv_func_sysctlbyname" >&5
20944 echo "${ECHO_T}$ac_cv_func_sysctlbyname" >&6; }
20945 if test $ac_cv_func_sysctlbyname = yes; then
20946 cat >>confdefs.h <<\_ACEOF
20947 #define HAVE_SYSCTLBYNAME 1
20948 _ACEOF
20954 # Older versions of HP/UX don't define seteuid() and setegid()
20958 for ac_func in seteuid setresuid
20960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20974 #define $ac_func innocuous_$ac_func
20976 /* System header to define __stub macros and hopefully few prototypes,
20977 which can conflict with char $ac_func (); below.
20978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20979 <limits.h> exists even on freestanding compilers. */
20981 #ifdef __STDC__
20982 # include <limits.h>
20983 #else
20984 # include <assert.h>
20985 #endif
20987 #undef $ac_func
20989 /* Override any GCC internal prototype to avoid an error.
20990 Use char because int might match the return type of a GCC
20991 builtin and then its argument prototype would still apply. */
20992 #ifdef __cplusplus
20993 extern "C"
20994 #endif
20995 char $ac_func ();
20996 /* The GNU C library defines this for functions which it implements
20997 to always fail with ENOSYS. Some functions are actually named
20998 something starting with __ and the normal name is an alias. */
20999 #if defined __stub_$ac_func || defined __stub___$ac_func
21000 choke me
21001 #endif
21004 main ()
21006 return $ac_func ();
21008 return 0;
21010 _ACEOF
21011 rm -f conftest.$ac_objext conftest$ac_exeext
21012 if { (ac_try="$ac_link"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_link") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest$ac_exeext &&
21028 $as_test_x conftest$ac_exeext; then
21029 eval "$as_ac_var=yes"
21030 else
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 eval "$as_ac_var=no"
21037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21038 conftest$ac_exeext conftest.$ac_ext
21040 ac_res=`eval echo '${'$as_ac_var'}'`
21041 { echo "$as_me:$LINENO: result: $ac_res" >&5
21042 echo "${ECHO_T}$ac_res" >&6; }
21043 if test `eval echo '${'$as_ac_var'}'` = yes; then
21044 cat >>confdefs.h <<_ACEOF
21045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21046 _ACEOF
21049 done
21053 for ac_func in setegid setresgid
21055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 else
21061 cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h. */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21069 #define $ac_func innocuous_$ac_func
21071 /* System header to define __stub macros and hopefully few prototypes,
21072 which can conflict with char $ac_func (); below.
21073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21074 <limits.h> exists even on freestanding compilers. */
21076 #ifdef __STDC__
21077 # include <limits.h>
21078 #else
21079 # include <assert.h>
21080 #endif
21082 #undef $ac_func
21084 /* Override any GCC internal prototype to avoid an error.
21085 Use char because int might match the return type of a GCC
21086 builtin and then its argument prototype would still apply. */
21087 #ifdef __cplusplus
21088 extern "C"
21089 #endif
21090 char $ac_func ();
21091 /* The GNU C library defines this for functions which it implements
21092 to always fail with ENOSYS. Some functions are actually named
21093 something starting with __ and the normal name is an alias. */
21094 #if defined __stub_$ac_func || defined __stub___$ac_func
21095 choke me
21096 #endif
21099 main ()
21101 return $ac_func ();
21103 return 0;
21105 _ACEOF
21106 rm -f conftest.$ac_objext conftest$ac_exeext
21107 if { (ac_try="$ac_link"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_link") 2>conftest.er1
21114 ac_status=$?
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest$ac_exeext &&
21123 $as_test_x conftest$ac_exeext; then
21124 eval "$as_ac_var=yes"
21125 else
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21129 eval "$as_ac_var=no"
21132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21133 conftest$ac_exeext conftest.$ac_ext
21135 ac_res=`eval echo '${'$as_ac_var'}'`
21136 { echo "$as_me:$LINENO: result: $ac_res" >&5
21137 echo "${ECHO_T}$ac_res" >&6; }
21138 if test `eval echo '${'$as_ac_var'}'` = yes; then
21139 cat >>confdefs.h <<_ACEOF
21140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21141 _ACEOF
21144 done
21148 # UnixWare 7.1.1 with the feature supplement to the UDK compiler
21149 # is reported to not support "static inline" (RT #1212).
21151 { echo "$as_me:$LINENO: checking for static inline breakage" >&5
21152 echo $ECHO_N "checking for static inline breakage... $ECHO_C" >&6; }
21153 cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h. */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21161 main ()
21164 foo1();
21167 static inline int foo1() {
21168 return 0;
21171 static inline int foo2() {
21172 return foo1();
21175 return 0;
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21186 ac_status=$?
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21195 { echo "$as_me:$LINENO: result: no" >&5
21196 echo "${ECHO_T}no" >&6; }
21197 else
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21201 { echo "$as_me:$LINENO: result: yes" >&5
21202 echo "${ECHO_T}yes" >&6; }
21203 cat >>confdefs.h <<\_ACEOF
21204 #define inline
21205 _ACEOF
21209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 { echo "$as_me:$LINENO: checking for size_t" >&5
21212 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21213 if test "${ac_cv_type_size_t+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216 cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h. */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 $ac_includes_default
21223 typedef size_t ac__type_new_;
21225 main ()
21227 if ((ac__type_new_ *) 0)
21228 return 0;
21229 if (sizeof (ac__type_new_))
21230 return 0;
21232 return 0;
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_cv_type_size_t=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ac_cv_type_size_t=no
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21263 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21264 if test $ac_cv_type_size_t = yes; then
21266 else
21268 cat >>confdefs.h <<_ACEOF
21269 #define size_t unsigned int
21270 _ACEOF
21274 { echo "$as_me:$LINENO: checking for ssize_t" >&5
21275 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21276 if test "${ac_cv_type_ssize_t+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 else
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h. */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 typedef ssize_t ac__type_new_;
21288 main ()
21290 if ((ac__type_new_ *) 0)
21291 return 0;
21292 if (sizeof (ac__type_new_))
21293 return 0;
21295 return 0;
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
21315 ac_cv_type_ssize_t=yes
21316 else
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_cv_type_ssize_t=no
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21326 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
21327 if test $ac_cv_type_ssize_t = yes; then
21329 else
21331 cat >>confdefs.h <<_ACEOF
21332 #define ssize_t int
21333 _ACEOF
21337 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
21338 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
21339 if test "${ac_cv_type_uintptr_t+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342 cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h. */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 $ac_includes_default
21349 typedef uintptr_t ac__type_new_;
21351 main ()
21353 if ((ac__type_new_ *) 0)
21354 return 0;
21355 if (sizeof (ac__type_new_))
21356 return 0;
21358 return 0;
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_compile") 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest.$ac_objext; then
21378 ac_cv_type_uintptr_t=yes
21379 else
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_cv_type_uintptr_t=no
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21389 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
21390 if test $ac_cv_type_uintptr_t = yes; then
21392 else
21394 cat >>confdefs.h <<_ACEOF
21395 #define uintptr_t unsigned long
21396 _ACEOF
21400 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21401 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21402 if test "${ac_cv_type_socklen_t+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21404 else
21405 cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h. */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21412 #include <sys/types.h>
21413 #include <sys/socket.h>
21416 typedef socklen_t ac__type_new_;
21418 main ()
21420 if ((ac__type_new_ *) 0)
21421 return 0;
21422 if (sizeof (ac__type_new_))
21423 return 0;
21425 return 0;
21427 _ACEOF
21428 rm -f conftest.$ac_objext
21429 if { (ac_try="$ac_compile"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433 esac
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_compile") 2>conftest.er1
21436 ac_status=$?
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } && {
21442 test -z "$ac_c_werror_flag" ||
21443 test ! -s conftest.err
21444 } && test -s conftest.$ac_objext; then
21445 ac_cv_type_socklen_t=yes
21446 else
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 ac_cv_type_socklen_t=no
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21456 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
21457 if test $ac_cv_type_socklen_t = yes; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define ISC_SOCKADDR_LEN_T socklen_t
21460 _ACEOF
21462 else
21464 cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h. */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21471 #include <sys/types.h>
21472 #include <sys/socket.h>
21473 int getsockname(int, struct sockaddr *, size_t *);
21476 main ()
21480 return 0;
21482 _ACEOF
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.$ac_objext; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define ISC_SOCKADDR_LEN_T size_t
21502 _ACEOF
21504 else
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 cat >>confdefs.h <<\_ACEOF
21509 #define ISC_SOCKADDR_LEN_T int
21510 _ACEOF
21514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21519 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21520 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21521 if test "${ac_cv_header_time+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 else
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h. */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 #include <sys/types.h>
21531 #include <sys/time.h>
21532 #include <time.h>
21535 main ()
21537 if ((struct tm *) 0)
21538 return 0;
21540 return 0;
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_cv_header_time=yes
21561 else
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_cv_header_time=no
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21571 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21572 if test $ac_cv_header_time = yes; then
21574 cat >>confdefs.h <<\_ACEOF
21575 #define TIME_WITH_SYS_TIME 1
21576 _ACEOF
21580 { echo "$as_me:$LINENO: checking for long long" >&5
21581 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21582 cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h. */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21590 main ()
21592 long long i = 0; return (0);
21594 return 0;
21596 _ACEOF
21597 rm -f conftest.$ac_objext
21598 if { (ac_try="$ac_compile"
21599 case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21602 esac
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_compile") 2>conftest.er1
21605 ac_status=$?
21606 grep -v '^ *+' conftest.er1 >conftest.err
21607 rm -f conftest.er1
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } && {
21611 test -z "$ac_c_werror_flag" ||
21612 test ! -s conftest.err
21613 } && test -s conftest.$ac_objext; then
21614 { echo "$as_me:$LINENO: result: yes" >&5
21615 echo "${ECHO_T}yes" >&6; }
21616 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
21617 else
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 { echo "$as_me:$LINENO: result: no" >&5
21622 echo "${ECHO_T}no" >&6; }
21623 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630 # check for GCC noreturn attribute
21632 { echo "$as_me:$LINENO: checking for GCC noreturn attribute" >&5
21633 echo $ECHO_N "checking for GCC noreturn attribute... $ECHO_C" >&6; }
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21642 main ()
21644 void foo() __attribute__((noreturn));
21646 return 0;
21648 _ACEOF
21649 rm -f conftest.$ac_objext
21650 if { (ac_try="$ac_compile"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_compile") 2>conftest.er1
21657 ac_status=$?
21658 grep -v '^ *+' conftest.er1 >conftest.err
21659 rm -f conftest.er1
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest.$ac_objext; then
21666 { echo "$as_me:$LINENO: result: yes" >&5
21667 echo "${ECHO_T}yes" >&6; }
21668 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
21669 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 { echo "$as_me:$LINENO: result: no" >&5
21675 echo "${ECHO_T}no" >&6; }
21676 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
21677 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21685 # check if we have lifconf
21687 { echo "$as_me:$LINENO: checking for struct lifconf" >&5
21688 echo $ECHO_N "checking for struct lifconf... $ECHO_C" >&6; }
21689 cat >conftest.$ac_ext <<_ACEOF
21690 /* confdefs.h. */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21696 #include <sys/types.h>
21697 #include <sys/socket.h>
21698 #include <net/if.h>
21701 main ()
21704 struct lifconf lifconf;
21705 lifconf.lifc_len = 0;
21709 return 0;
21711 _ACEOF
21712 rm -f conftest.$ac_objext
21713 if { (ac_try="$ac_compile"
21714 case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_compile") 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest.$ac_objext; then
21729 { echo "$as_me:$LINENO: result: yes" >&5
21730 echo "${ECHO_T}yes" >&6; }
21731 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
21732 else
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 { echo "$as_me:$LINENO: result: no" >&5
21737 echo "${ECHO_T}no" >&6; }
21738 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
21741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 # check if we have kqueue
21747 # Check whether --enable-kqueue was given.
21748 if test "${enable_kqueue+set}" = set; then
21749 enableval=$enable_kqueue; want_kqueue="$enableval"
21750 else
21751 want_kqueue="yes"
21754 case $want_kqueue in
21755 yes)
21756 { echo "$as_me:$LINENO: checking for kqueue" >&5
21757 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
21758 if test "${ac_cv_func_kqueue+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21760 else
21761 cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h. */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21767 /* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue.
21768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21769 #define kqueue innocuous_kqueue
21771 /* System header to define __stub macros and hopefully few prototypes,
21772 which can conflict with char kqueue (); below.
21773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21774 <limits.h> exists even on freestanding compilers. */
21776 #ifdef __STDC__
21777 # include <limits.h>
21778 #else
21779 # include <assert.h>
21780 #endif
21782 #undef kqueue
21784 /* Override any GCC internal prototype to avoid an error.
21785 Use char because int might match the return type of a GCC
21786 builtin and then its argument prototype would still apply. */
21787 #ifdef __cplusplus
21788 extern "C"
21789 #endif
21790 char kqueue ();
21791 /* The GNU C library defines this for functions which it implements
21792 to always fail with ENOSYS. Some functions are actually named
21793 something starting with __ and the normal name is an alias. */
21794 #if defined __stub_kqueue || defined __stub___kqueue
21795 choke me
21796 #endif
21799 main ()
21801 return kqueue ();
21803 return 0;
21805 _ACEOF
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_link") 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } && {
21820 test -z "$ac_c_werror_flag" ||
21821 test ! -s conftest.err
21822 } && test -s conftest$ac_exeext &&
21823 $as_test_x conftest$ac_exeext; then
21824 ac_cv_func_kqueue=yes
21825 else
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_cv_func_kqueue=no
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21835 { echo "$as_me:$LINENO: result: $ac_cv_func_kqueue" >&5
21836 echo "${ECHO_T}$ac_cv_func_kqueue" >&6; }
21837 if test $ac_cv_func_kqueue = yes; then
21838 ac_cv_have_kqueue=yes
21839 else
21840 ac_cv_have_kqueue=no
21843 case $ac_cv_have_kqueue in
21844 yes)
21845 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
21848 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
21850 esac
21853 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
21855 esac
21859 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
21860 # so we need to try running the code, not just test its existence.
21862 # Check whether --enable-epoll was given.
21863 if test "${enable_epoll+set}" = set; then
21864 enableval=$enable_epoll; want_epoll="$enableval"
21865 else
21866 want_epoll="auto"
21869 case $want_epoll in
21870 auto)
21871 { echo "$as_me:$LINENO: checking epoll support" >&5
21872 echo $ECHO_N "checking epoll support... $ECHO_C" >&6; }
21873 if test "$cross_compiling" = yes; then
21874 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21875 See \`config.log' for more details." >&5
21876 echo "$as_me: error: cannot run test program while cross compiling
21877 See \`config.log' for more details." >&2;}
21878 { (exit 1); exit 1; }; }
21879 else
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h. */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21887 #include <sys/epoll.h>
21888 int main() {
21889 if (epoll_create(1) < 0)
21890 return (1);
21891 return (0);
21894 _ACEOF
21895 rm -f conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_link") 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21906 { (case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_try") 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915 { echo "$as_me:$LINENO: result: yes" >&5
21916 echo "${ECHO_T}yes" >&6; }
21917 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
21918 else
21919 echo "$as_me: program exited with status $ac_status" >&5
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ( exit $ac_status )
21924 { echo "$as_me:$LINENO: result: no" >&5
21925 echo "${ECHO_T}no" >&6; }
21926 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
21928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21933 yes)
21934 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
21937 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
21939 esac
21943 # check if we support /dev/poll
21945 # Check whether --enable-devpoll was given.
21946 if test "${enable_devpoll+set}" = set; then
21947 enableval=$enable_devpoll; want_devpoll="$enableval"
21948 else
21949 want_devpoll="yes"
21952 case $want_devpoll in
21953 yes)
21955 for ac_header in sys/devpoll.h
21957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 ac_res=`eval echo '${'$as_ac_Header'}'`
21965 { echo "$as_me:$LINENO: result: $ac_res" >&5
21966 echo "${ECHO_T}$ac_res" >&6; }
21967 else
21968 # Is the header compilable?
21969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21971 cat >conftest.$ac_ext <<_ACEOF
21972 /* confdefs.h. */
21973 _ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h. */
21977 $ac_includes_default
21978 #include <$ac_header>
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_header_compiler=yes
21998 else
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_header_compiler=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 echo "${ECHO_T}$ac_header_compiler" >&6; }
22009 # Is the header present?
22010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h. */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include <$ac_header>
22019 _ACEOF
22020 if { (ac_try="$ac_cpp conftest.$ac_ext"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024 esac
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22027 ac_status=$?
22028 grep -v '^ *+' conftest.er1 >conftest.err
22029 rm -f conftest.er1
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev/null && {
22033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22035 }; then
22036 ac_header_preproc=yes
22037 else
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_header_preproc=no
22044 rm -f conftest.err conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046 echo "${ECHO_T}$ac_header_preproc" >&6; }
22048 # So? What about this header?
22049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22050 yes:no: )
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22055 ac_header_preproc=yes
22057 no:yes:* )
22058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22072 esac
22073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078 eval "$as_ac_Header=\$ac_header_preproc"
22080 ac_res=`eval echo '${'$as_ac_Header'}'`
22081 { echo "$as_me:$LINENO: result: $ac_res" >&5
22082 echo "${ECHO_T}$ac_res" >&6; }
22085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22086 cat >>confdefs.h <<_ACEOF
22087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22088 _ACEOF
22089 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
22091 else
22092 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
22096 done
22100 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
22102 esac
22106 # check if we need to #include sys/select.h explicitly
22108 case $ac_cv_header_unistd_h in
22109 yes)
22110 { echo "$as_me:$LINENO: checking if unistd.h or sys/types.h defines fd_set" >&5
22111 echo $ECHO_N "checking if unistd.h or sys/types.h defines fd_set... $ECHO_C" >&6; }
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h. */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22119 #include <sys/types.h> /* Ultrix */
22120 #include <unistd.h>
22122 main ()
22124 fd_set read_set; return (0);
22126 return 0;
22128 _ACEOF
22129 rm -f conftest.$ac_objext
22130 if { (ac_try="$ac_compile"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136 (eval "$ac_compile") 2>conftest.er1
22137 ac_status=$?
22138 grep -v '^ *+' conftest.er1 >conftest.err
22139 rm -f conftest.er1
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } && {
22143 test -z "$ac_c_werror_flag" ||
22144 test ! -s conftest.err
22145 } && test -s conftest.$ac_objext; then
22146 { echo "$as_me:$LINENO: result: yes" >&5
22147 echo "${ECHO_T}yes" >&6; }
22148 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
22149 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
22150 else
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 { echo "$as_me:$LINENO: result: no" >&5
22155 echo "${ECHO_T}no" >&6; }
22156 case $ac_cv_header_sys_select_h in
22157 yes)
22158 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
22159 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
22162 { { echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5
22163 echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;}
22164 { (exit 1); exit 1; }; }
22166 esac
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 case $ac_cv_header_sys_select_h in
22174 yes)
22175 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
22176 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
22179 { { echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5
22180 echo "$as_me: error: need either unistd.h or sys/select.h" >&2;}
22181 { (exit 1); exit 1; }; }
22183 esac
22185 esac
22190 # Find the machine's endian flavor.
22192 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22193 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22194 if test "${ac_cv_c_bigendian+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 else
22197 # See if sys/param.h defines the BYTE_ORDER macro.
22198 cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h. */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 #include <sys/types.h>
22205 #include <sys/param.h>
22208 main ()
22210 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22211 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22212 bogus endian macros
22213 #endif
22216 return 0;
22218 _ACEOF
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_compile") 2>conftest.er1
22227 ac_status=$?
22228 grep -v '^ *+' conftest.er1 >conftest.err
22229 rm -f conftest.er1
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest.$ac_objext; then
22236 # It does; now see whether it defined to BIG_ENDIAN or not.
22237 cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h. */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 #include <sys/types.h>
22244 #include <sys/param.h>
22247 main ()
22249 #if BYTE_ORDER != BIG_ENDIAN
22250 not big endian
22251 #endif
22254 return 0;
22256 _ACEOF
22257 rm -f conftest.$ac_objext
22258 if { (ac_try="$ac_compile"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_compile") 2>conftest.er1
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest.$ac_objext; then
22274 ac_cv_c_bigendian=yes
22275 else
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22279 ac_cv_c_bigendian=no
22282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 else
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 # It does not; compile a test program.
22288 if test "$cross_compiling" = yes; then
22289 # try to guess the endianness by grepping values into an object file
22290 ac_cv_c_bigendian=unknown
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22298 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22299 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22300 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22301 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22302 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22304 main ()
22306 _ascii (); _ebcdic ();
22308 return 0;
22310 _ACEOF
22311 rm -f conftest.$ac_objext
22312 if { (ac_try="$ac_compile"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_compile") 2>conftest.er1
22319 ac_status=$?
22320 grep -v '^ *+' conftest.er1 >conftest.err
22321 rm -f conftest.er1
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } && {
22325 test -z "$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 } && test -s conftest.$ac_objext; then
22328 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22329 ac_cv_c_bigendian=yes
22331 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22332 if test "$ac_cv_c_bigendian" = unknown; then
22333 ac_cv_c_bigendian=no
22334 else
22335 # finding both strings is unlikely to happen, but who knows?
22336 ac_cv_c_bigendian=unknown
22339 else
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 else
22348 cat >conftest.$ac_ext <<_ACEOF
22349 /* confdefs.h. */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 $ac_includes_default
22356 main ()
22359 /* Are we little or big endian? From Harbison&Steele. */
22360 union
22362 long int l;
22363 char c[sizeof (long int)];
22364 } u;
22365 u.l = 1;
22366 return u.c[sizeof (long int) - 1] == 1;
22369 return 0;
22371 _ACEOF
22372 rm -f conftest$ac_exeext
22373 if { (ac_try="$ac_link"
22374 case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22377 esac
22378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379 (eval "$ac_link") 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22383 { (case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388 (eval "$ac_try") 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; }; then
22392 ac_cv_c_bigendian=no
22393 else
22394 echo "$as_me: program exited with status $ac_status" >&5
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ( exit $ac_status )
22399 ac_cv_c_bigendian=yes
22401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22410 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22411 case $ac_cv_c_bigendian in
22412 yes)
22414 cat >>confdefs.h <<\_ACEOF
22415 #define WORDS_BIGENDIAN 1
22416 _ACEOF
22421 { { echo "$as_me:$LINENO: error: unknown endianness
22422 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22423 echo "$as_me: error: unknown endianness
22424 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22425 { (exit 1); exit 1; }; } ;;
22426 esac
22431 # was --with-openssl specified?
22433 OPENSSL_WARNING=
22434 { echo "$as_me:$LINENO: checking for OpenSSL library" >&5
22435 echo $ECHO_N "checking for OpenSSL library... $ECHO_C" >&6; }
22437 # Check whether --with-openssl was given.
22438 if test "${with_openssl+set}" = set; then
22439 withval=$with_openssl; use_openssl="$withval"
22440 else
22441 use_openssl="auto"
22445 openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
22446 if test "$use_openssl" = "auto"
22447 then
22448 for d in $openssldirs
22450 if test -f $d/include/openssl/opensslv.h
22451 then
22452 use_openssl=$d
22453 break
22455 done
22457 case "$use_openssl" in
22459 { echo "$as_me:$LINENO: result: no" >&5
22460 echo "${ECHO_T}no" >&6; }
22461 DST_OPENSSL_INC=""
22462 USE_OPENSSL=""
22464 auto)
22465 DST_OPENSSL_INC=""
22466 USE_OPENSSL=""
22467 { { echo "$as_me:$LINENO: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
22468 If you don't want OpenSSL, use --without-openssl" >&5
22469 echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
22470 If you don't want OpenSSL, use --without-openssl" >&2;}
22471 { (exit 1); exit 1; }; }
22474 if test "$use_openssl" = "yes"
22475 then
22476 # User did not specify a path - guess it
22477 for d in $openssldirs
22479 if test -f $d/include/openssl/opensslv.h
22480 then
22481 use_openssl=$d
22482 break
22484 done
22485 if test "$use_openssl" = "yes"
22486 then
22487 { echo "$as_me:$LINENO: result: not found" >&5
22488 echo "${ECHO_T}not found" >&6; }
22489 { { echo "$as_me:$LINENO: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&5
22490 echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&2;}
22491 { (exit 1); exit 1; }; }
22493 elif ! test -f "$use_openssl"/include/openssl/opensslv.h
22494 then
22495 { { echo "$as_me:$LINENO: error: \"$use_openssl/include/openssl/opensslv.h\" not found" >&5
22496 echo "$as_me: error: \"$use_openssl/include/openssl/opensslv.h\" not found" >&2;}
22497 { (exit 1); exit 1; }; }
22499 USE_OPENSSL='-DOPENSSL'
22500 if test "$use_openssl" = "/usr"
22501 then
22502 DST_OPENSSL_INC=""
22503 DNS_OPENSSL_LIBS="-lcrypto"
22504 else
22505 DST_OPENSSL_INC="-I$use_openssl/include"
22506 case $host in
22507 *-solaris*)
22508 DNS_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
22510 *-hp-hpux*)
22511 DNS_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
22513 *-apple-darwin*)
22515 # Apple's ld seaches for serially for dynamic
22516 # then static libraries. This means you can't
22517 # use -L to override dynamic system libraries
22518 # with static ones when linking. Instead
22519 # we specify a absolute path.
22521 if test -f "$use_openssl/lib/libcrypto.dylib"
22522 then
22523 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
22524 else
22525 DNS_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
22529 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
22531 esac
22533 { echo "$as_me:$LINENO: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
22534 echo "${ECHO_T}using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
22536 saved_cflags="$CFLAGS"
22537 saved_libs="$LIBS"
22538 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
22539 LIBS="$LIBS $DNS_OPENSSL_LIBS"
22540 { echo "$as_me:$LINENO: checking whether linking with OpenSSL works" >&5
22541 echo $ECHO_N "checking whether linking with OpenSSL works... $ECHO_C" >&6; }
22542 if test "$cross_compiling" = yes; then
22543 { echo "$as_me:$LINENO: result: assuming it does work on target platform" >&5
22544 echo "${ECHO_T}assuming it does work on target platform" >&6; }
22545 else
22546 cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h. */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22553 #include <openssl/err.h>
22554 int main() {
22555 ERR_clear_error();
22556 return (0);
22559 _ACEOF
22560 rm -f conftest$ac_exeext
22561 if { (ac_try="$ac_link"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565 esac
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_link") 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22571 { (case "(($ac_try" in
22572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573 *) ac_try_echo=$ac_try;;
22574 esac
22575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576 (eval "$ac_try") 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
22580 { echo "$as_me:$LINENO: result: yes" >&5
22581 echo "${ECHO_T}yes" >&6; }
22582 else
22583 echo "$as_me: program exited with status $ac_status" >&5
22584 echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22587 ( exit $ac_status )
22588 { echo "$as_me:$LINENO: result: no" >&5
22589 echo "${ECHO_T}no" >&6; }
22590 { { echo "$as_me:$LINENO: error: Could not run test program using OpenSSL from
22591 $use_openssl/lib and $use_openssl/include.
22592 Please check the argument to --with-openssl and your
22593 shared library configuration (e.g., LD_LIBRARY_PATH)." >&5
22594 echo "$as_me: error: Could not run test program using OpenSSL from
22595 $use_openssl/lib and $use_openssl/include.
22596 Please check the argument to --with-openssl and your
22597 shared library configuration (e.g., LD_LIBRARY_PATH)." >&2;}
22598 { (exit 1); exit 1; }; }
22600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22605 { echo "$as_me:$LINENO: checking whether linking with OpenSSL requires -ldl" >&5
22606 echo $ECHO_N "checking whether linking with OpenSSL requires -ldl... $ECHO_C" >&6; }
22607 cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h. */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22614 #include <openssl/err.h>
22616 main ()
22618 DSO_METHOD_dlfcn();
22620 return 0;
22622 _ACEOF
22623 rm -f conftest.$ac_objext conftest$ac_exeext
22624 if { (ac_try="$ac_link"
22625 case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_link") 2>conftest.er1
22631 ac_status=$?
22632 grep -v '^ *+' conftest.er1 >conftest.err
22633 rm -f conftest.er1
22634 cat conftest.err >&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && {
22637 test -z "$ac_c_werror_flag" ||
22638 test ! -s conftest.err
22639 } && test -s conftest$ac_exeext &&
22640 $as_test_x conftest$ac_exeext; then
22641 { echo "$as_me:$LINENO: result: no" >&5
22642 echo "${ECHO_T}no" >&6; }
22643 else
22644 echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22647 LIBS="$LIBS -ldl"
22648 cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h. */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22655 #include <openssl/err.h>
22658 main ()
22660 DSO_METHOD_dlfcn();
22662 return 0;
22664 _ACEOF
22665 rm -f conftest.$ac_objext conftest$ac_exeext
22666 if { (ac_try="$ac_link"
22667 case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22670 esac
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_link") 2>conftest.er1
22673 ac_status=$?
22674 grep -v '^ *+' conftest.er1 >conftest.err
22675 rm -f conftest.er1
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } && {
22679 test -z "$ac_c_werror_flag" ||
22680 test ! -s conftest.err
22681 } && test -s conftest$ac_exeext &&
22682 $as_test_x conftest$ac_exeext; then
22683 { echo "$as_me:$LINENO: result: yes" >&5
22684 echo "${ECHO_T}yes" >&6; }
22685 DNS_OPENSSL_LIBS="$DNS_OPENSSL_LIBS -ldl"
22687 else
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 { echo "$as_me:$LINENO: result: unknown" >&5
22692 echo "${ECHO_T}unknown" >&6; }
22693 { { echo "$as_me:$LINENO: error: OpenSSL has unsupported dynamic loading" >&5
22694 echo "$as_me: error: OpenSSL has unsupported dynamic loading" >&2;}
22695 { (exit 1); exit 1; }; }
22698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22699 conftest$ac_exeext conftest.$ac_ext
22703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22704 conftest$ac_exeext conftest.$ac_ext
22706 # Check whether --enable-openssl-version-check was given.
22707 if test "${enable_openssl_version_check+set}" = set; then
22708 enableval=$enable_openssl_version_check;
22711 case "$enable_openssl_version_check" in
22712 yes|'')
22713 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
22714 echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
22715 if test "$cross_compiling" = yes; then
22716 { echo "$as_me:$LINENO: result: assuming target platform has compatible version" >&5
22717 echo "${ECHO_T}assuming target platform has compatible version" >&6; }
22718 else
22719 cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h. */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22726 #include <stdio.h>
22727 #include <openssl/opensslv.h>
22728 int main() {
22729 if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
22730 OPENSSL_VERSION_NUMBER < 0x00908000L) ||
22731 OPENSSL_VERSION_NUMBER >= 0x0090804fL)
22732 return (0);
22733 printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n",
22734 OPENSSL_VERSION_NUMBER);
22735 printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n"
22736 "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n");
22737 return (1);
22740 _ACEOF
22741 rm -f conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_link") 2>&5
22749 ac_status=$?
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22752 { (case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_try") 2>&5
22758 ac_status=$?
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 { echo "$as_me:$LINENO: result: ok" >&5
22762 echo "${ECHO_T}ok" >&6; }
22763 else
22764 echo "$as_me: program exited with status $ac_status" >&5
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22768 ( exit $ac_status )
22769 { echo "$as_me:$LINENO: result: not compatible" >&5
22770 echo "${ECHO_T}not compatible" >&6; }
22771 OPENSSL_WARNING=yes
22774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22780 { echo "$as_me:$LINENO: result: Skipped OpenSSL version check" >&5
22781 echo "${ECHO_T}Skipped OpenSSL version check" >&6; }
22783 esac
22785 { echo "$as_me:$LINENO: checking for OpenSSL DSA support" >&5
22786 echo $ECHO_N "checking for OpenSSL DSA support... $ECHO_C" >&6; }
22787 if test -f $use_openssl/include/openssl/dsa.h
22788 then
22789 cat >>confdefs.h <<\_ACEOF
22790 #define HAVE_OPENSSL_DSA 1
22791 _ACEOF
22793 { echo "$as_me:$LINENO: result: yes" >&5
22794 echo "${ECHO_T}yes" >&6; }
22795 else
22796 { echo "$as_me:$LINENO: result: no" >&5
22797 echo "${ECHO_T}no" >&6; }
22801 for ac_func in EVP_sha256 EVP_sha512
22803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h. */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22817 #define $ac_func innocuous_$ac_func
22819 /* System header to define __stub macros and hopefully few prototypes,
22820 which can conflict with char $ac_func (); below.
22821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22822 <limits.h> exists even on freestanding compilers. */
22824 #ifdef __STDC__
22825 # include <limits.h>
22826 #else
22827 # include <assert.h>
22828 #endif
22830 #undef $ac_func
22832 /* Override any GCC internal prototype to avoid an error.
22833 Use char because int might match the return type of a GCC
22834 builtin and then its argument prototype would still apply. */
22835 #ifdef __cplusplus
22836 extern "C"
22837 #endif
22838 char $ac_func ();
22839 /* The GNU C library defines this for functions which it implements
22840 to always fail with ENOSYS. Some functions are actually named
22841 something starting with __ and the normal name is an alias. */
22842 #if defined __stub_$ac_func || defined __stub___$ac_func
22843 choke me
22844 #endif
22847 main ()
22849 return $ac_func ();
22851 return 0;
22853 _ACEOF
22854 rm -f conftest.$ac_objext conftest$ac_exeext
22855 if { (ac_try="$ac_link"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_link") 2>conftest.er1
22862 ac_status=$?
22863 grep -v '^ *+' conftest.er1 >conftest.err
22864 rm -f conftest.er1
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest$ac_exeext &&
22871 $as_test_x conftest$ac_exeext; then
22872 eval "$as_ac_var=yes"
22873 else
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 eval "$as_ac_var=no"
22880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881 conftest$ac_exeext conftest.$ac_ext
22883 ac_res=`eval echo '${'$as_ac_var'}'`
22884 { echo "$as_me:$LINENO: result: $ac_res" >&5
22885 echo "${ECHO_T}$ac_res" >&6; }
22886 if test `eval echo '${'$as_ac_var'}'` = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22889 _ACEOF
22892 done
22894 CFLAGS="$saved_cflags"
22895 LIBS="$saved_libs"
22898 esac
22901 # This would include the system openssl path (and linker options to use
22902 # it as needed) if it is found.
22907 DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DNS_OPENSSL_LIBS"
22910 # Use OpenSSL for hash functions
22913 # Check whether --enable-openssl-hash was given.
22914 if test "${enable_openssl_hash+set}" = set; then
22915 enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
22916 else
22917 want_openssl_hash="no"
22920 case $want_openssl_hash in
22921 yes)
22922 if test "$USE_OPENSSL" = ""
22923 then
22924 { { echo "$as_me:$LINENO: error: No OpenSSL for hash functions" >&5
22925 echo "$as_me: error: No OpenSSL for hash functions" >&2;}
22926 { (exit 1); exit 1; }; }
22928 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
22929 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
22932 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
22933 ISC_OPENSSL_INC=""
22935 esac
22940 # PKCS11 (aka crypto hardware) support
22942 # This works only with the right OpenSSL with PKCS11 engine!
22945 { echo "$as_me:$LINENO: checking for PKCS11 support" >&5
22946 echo $ECHO_N "checking for PKCS11 support... $ECHO_C" >&6; }
22948 # Check whether --with-pkcs11 was given.
22949 if test "${with_pkcs11+set}" = set; then
22950 withval=$with_pkcs11; use_pkcs11="$withval"
22951 else
22952 use_pkcs11="no"
22956 case "$use_pkcs11" in
22957 no|'')
22958 { echo "$as_me:$LINENO: result: disabled" >&5
22959 echo "${ECHO_T}disabled" >&6; }
22960 USE_PKCS11=''
22961 PKCS11_TOOLS=''
22963 yes|*)
22964 { echo "$as_me:$LINENO: result: using OpenSSL with PKCS11 support" >&5
22965 echo "${ECHO_T}using OpenSSL with PKCS11 support" >&6; }
22966 USE_PKCS11='-DUSE_PKCS11'
22967 PKCS11_TOOLS=pkcs11
22969 esac
22973 { echo "$as_me:$LINENO: checking for PKCS11 tools" >&5
22974 echo $ECHO_N "checking for PKCS11 tools... $ECHO_C" >&6; }
22975 case "$use_pkcs11" in
22976 no|yes|'')
22977 { echo "$as_me:$LINENO: result: disabled" >&5
22978 echo "${ECHO_T}disabled" >&6; }
22979 PKCS11_PROVIDER="undefined"
22982 { echo "$as_me:$LINENO: result: PKCS11 provider is \"$use_pkcs11\"" >&5
22983 echo "${ECHO_T}PKCS11 provider is \"$use_pkcs11\"" >&6; }
22984 PKCS11_PROVIDER="$use_pkcs11"
22986 esac
22989 { echo "$as_me:$LINENO: checking for GSSAPI library" >&5
22990 echo $ECHO_N "checking for GSSAPI library... $ECHO_C" >&6; }
22992 # Check whether --with-gssapi was given.
22993 if test "${with_gssapi+set}" = set; then
22994 withval=$with_gssapi; use_gssapi="$withval"
22995 else
22996 use_gssapi="no"
23000 gssapidirs="/usr/local /usr/pkg /usr/kerberos /usr"
23001 if test "$use_gssapi" = "yes"
23002 then
23003 for d in $gssapidirs
23005 if test -f $d/include/gssapi/gssapi.h -o -f $d/include/gssapi.h
23006 then
23007 use_gssapi=$d
23008 break
23010 done
23013 case "$use_gssapi" in
23015 { echo "$as_me:$LINENO: result: disabled" >&5
23016 echo "${ECHO_T}disabled" >&6; }
23017 USE_GSSAPI=''
23019 yes)
23020 { { echo "$as_me:$LINENO: error: --with-gssapi must specify a path" >&5
23021 echo "$as_me: error: --with-gssapi must specify a path" >&2;}
23022 { (exit 1); exit 1; }; }
23025 { echo "$as_me:$LINENO: result: looking in $use_gssapi/lib" >&5
23026 echo "${ECHO_T}looking in $use_gssapi/lib" >&6; }
23027 USE_GSSAPI='-DGSSAPI'
23028 saved_cppflags="$CPPFLAGS"
23029 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
23032 for ac_header in gssapi.h gssapi/gssapi.h
23034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 ac_res=`eval echo '${'$as_ac_Header'}'`
23042 { echo "$as_me:$LINENO: result: $ac_res" >&5
23043 echo "${ECHO_T}$ac_res" >&6; }
23044 else
23045 # Is the header compilable?
23046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23048 cat >conftest.$ac_ext <<_ACEOF
23049 /* confdefs.h. */
23050 _ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h. */
23054 $ac_includes_default
23055 #include <$ac_header>
23056 _ACEOF
23057 rm -f conftest.$ac_objext
23058 if { (ac_try="$ac_compile"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_compile") 2>conftest.er1
23065 ac_status=$?
23066 grep -v '^ *+' conftest.er1 >conftest.err
23067 rm -f conftest.er1
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && {
23071 test -z "$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23073 } && test -s conftest.$ac_objext; then
23074 ac_header_compiler=yes
23075 else
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23079 ac_header_compiler=no
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23084 echo "${ECHO_T}$ac_header_compiler" >&6; }
23086 # Is the header present?
23087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h. */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 #include <$ac_header>
23096 _ACEOF
23097 if { (ac_try="$ac_cpp conftest.$ac_ext"
23098 case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23101 esac
23102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23104 ac_status=$?
23105 grep -v '^ *+' conftest.er1 >conftest.err
23106 rm -f conftest.er1
23107 cat conftest.err >&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } >/dev/null && {
23110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23112 }; then
23113 ac_header_preproc=yes
23114 else
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_header_preproc=no
23121 rm -f conftest.err conftest.$ac_ext
23122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23123 echo "${ECHO_T}$ac_header_preproc" >&6; }
23125 # So? What about this header?
23126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23127 yes:no: )
23128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23132 ac_header_preproc=yes
23134 no:yes:* )
23135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23149 esac
23150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155 eval "$as_ac_Header=\$ac_header_preproc"
23157 ac_res=`eval echo '${'$as_ac_Header'}'`
23158 { echo "$as_me:$LINENO: result: $ac_res" >&5
23159 echo "${ECHO_T}$ac_res" >&6; }
23162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23163 cat >>confdefs.h <<_ACEOF
23164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23165 _ACEOF
23166 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
23169 done
23172 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then
23173 { { echo "$as_me:$LINENO: error: gssapi.h not found" >&5
23174 echo "$as_me: error: gssapi.h not found" >&2;}
23175 { (exit 1); exit 1; }; }
23178 CPPFLAGS="$saved_cppflags"
23181 # XXXDCL This probably doesn't work right on all systems.
23182 # It will need to be worked on as problems become evident.
23184 # Essentially the problems here relate to two different
23185 # areas. The first area is building with either KTH
23186 # or MIT Kerberos, particularly when both are present on
23187 # the machine. The other is static versus dynamic linking.
23189 # On the KTH vs MIT issue, Both have libkrb5 that can mess
23190 # up the works if one implementation ends up trying to
23191 # use the other's krb. This is unfortunately a situation
23192 # that very easily arises.
23194 # Dynamic linking when the dependency information is built
23195 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
23196 # all such problems go away, but when that setup is not
23197 # present, because either the dynamic libraries lack
23198 # dependencies or static linking is being done, then the
23199 # problems start to show up.
23200 saved_libs="$LIBS"
23201 for TRY_LIBS in \
23202 "-lgssapi_krb5" \
23203 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
23204 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
23205 "-lgssapi" \
23206 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
23207 "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
23208 "-lgss"
23210 # Note that this does not include $saved_libs, because
23211 # on FreeBSD machines this configure script has added
23212 # -L/usr/local/lib to LIBS, which can make the
23213 # -lgssapi_krb5 test succeed with shared libraries even
23214 # when you are trying to build with KTH in /usr/lib.
23215 LIBS="-L$use_gssapi/lib $TRY_LIBS"
23216 { echo "$as_me:$LINENO: checking linking as $TRY_LIBS" >&5
23217 echo $ECHO_N "checking linking as $TRY_LIBS... $ECHO_C" >&6; }
23218 cat >conftest.$ac_ext <<_ACEOF
23219 /* confdefs.h. */
23220 _ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h. */
23226 main ()
23228 gss_acquire_cred();
23230 return 0;
23232 _ACEOF
23233 rm -f conftest.$ac_objext conftest$ac_exeext
23234 if { (ac_try="$ac_link"
23235 case "(($ac_try" in
23236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237 *) ac_try_echo=$ac_try;;
23238 esac
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_link") 2>conftest.er1
23241 ac_status=$?
23242 grep -v '^ *+' conftest.er1 >conftest.err
23243 rm -f conftest.er1
23244 cat conftest.err >&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } && {
23247 test -z "$ac_c_werror_flag" ||
23248 test ! -s conftest.err
23249 } && test -s conftest$ac_exeext &&
23250 $as_test_x conftest$ac_exeext; then
23251 gssapi_linked=yes
23252 else
23253 echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23256 gssapi_linked=no
23259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23260 conftest$ac_exeext conftest.$ac_ext
23261 case $gssapi_linked in
23262 yes) { echo "$as_me:$LINENO: result: yes" >&5
23263 echo "${ECHO_T}yes" >&6; }; break ;;
23264 no) { echo "$as_me:$LINENO: result: no" >&5
23265 echo "${ECHO_T}no" >&6; } ;;
23266 esac
23267 done
23269 case $gssapi_linked in
23270 no) { { echo "$as_me:$LINENO: error: could not determine proper GSSAPI linkage" >&5
23271 echo "$as_me: error: could not determine proper GSSAPI linkage" >&2;}
23272 { (exit 1); exit 1; }; } ;;
23273 esac
23276 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
23277 # but MIT in /usr/local/lib and trying to build with KTH.
23278 # /usr/local/lib can end up earlier on the link lines.
23279 # Like most kludges, this one is not only inelegant it
23280 # is also likely to be the wrong thing to do at least as
23281 # many times as it is the right thing. Something better
23282 # needs to be done.
23284 if test "$use_gssapi" = "/usr" -a \
23285 -f /usr/local/lib/libkrb5.a; then
23286 FIX_KTH_VS_MIT=yes
23289 case "$FIX_KTH_VS_MIT" in
23290 yes)
23291 case "$enable_static_linking" in
23292 yes) gssapi_lib_suffix=".a" ;;
23293 *) gssapi_lib_suffix=".so" ;;
23294 esac
23296 for lib in $LIBS; do
23297 case $lib in
23298 -L*)
23300 -l*)
23301 new_lib=`echo $lib |
23302 sed -e s%^-l%$use_gssapi/lib/lib% \
23303 -e s%$%$gssapi_lib_suffix%`
23304 NEW_LIBS="$NEW_LIBS $new_lib"
23307 { { echo "$as_me:$LINENO: error: KTH vs MIT Kerberos confusion!" >&5
23308 echo "$as_me: error: KTH vs MIT Kerberos confusion!" >&2;}
23309 { (exit 1); exit 1; }; }
23311 esac
23312 done
23313 LIBS="$NEW_LIBS"
23315 esac
23317 DST_GSSAPI_INC="-I$use_gssapi/include"
23318 DNS_GSSAPI_LIBS="$LIBS"
23320 { echo "$as_me:$LINENO: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
23321 echo "${ECHO_T}using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
23322 LIBS="$saved_libs"
23324 esac
23332 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
23335 # Applications linking with libdns also need to link with these libraries.
23341 # was --with-randomdev specified?
23343 { echo "$as_me:$LINENO: checking for random device" >&5
23344 echo $ECHO_N "checking for random device... $ECHO_C" >&6; }
23346 # Check whether --with-randomdev was given.
23347 if test "${with_randomdev+set}" = set; then
23348 withval=$with_randomdev; use_randomdev="$withval"
23349 else
23350 use_randomdev="unspec"
23354 case "$use_randomdev" in
23355 unspec)
23356 case "$host" in
23357 *-openbsd*)
23358 devrandom=/dev/arandom
23361 devrandom=/dev/random
23363 esac
23364 { echo "$as_me:$LINENO: result: $devrandom" >&5
23365 echo "${ECHO_T}$devrandom" >&6; }
23366 as_ac_File=`echo "ac_cv_file_$devrandom" | $as_tr_sh`
23367 { echo "$as_me:$LINENO: checking for $devrandom" >&5
23368 echo $ECHO_N "checking for $devrandom... $ECHO_C" >&6; }
23369 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23372 test "$cross_compiling" = yes &&
23373 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23374 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23375 { (exit 1); exit 1; }; }
23376 if test -r "$devrandom"; then
23377 eval "$as_ac_File=yes"
23378 else
23379 eval "$as_ac_File=no"
23382 ac_res=`eval echo '${'$as_ac_File'}'`
23383 { echo "$as_me:$LINENO: result: $ac_res" >&5
23384 echo "${ECHO_T}$ac_res" >&6; }
23385 if test `eval echo '${'$as_ac_File'}'` = yes; then
23386 cat >>confdefs.h <<_ACEOF
23387 #define PATH_RANDOMDEV "$devrandom"
23388 _ACEOF
23393 yes)
23394 { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5
23395 echo "$as_me: error: --with-randomdev must specify a path" >&2;}
23396 { (exit 1); exit 1; }; }
23399 { echo "$as_me:$LINENO: result: disabled" >&5
23400 echo "${ECHO_T}disabled" >&6; }
23403 cat >>confdefs.h <<_ACEOF
23404 #define PATH_RANDOMDEV "$use_randomdev"
23405 _ACEOF
23407 { echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5
23408 echo "${ECHO_T}using \"$use_randomdev\"" >&6; }
23410 esac
23413 # Do we have arc4random() ?
23415 { echo "$as_me:$LINENO: checking for arc4random" >&5
23416 echo $ECHO_N "checking for arc4random... $ECHO_C" >&6; }
23417 if test "${ac_cv_func_arc4random+set}" = set; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420 cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h. */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23426 /* Define arc4random to an innocuous variant, in case <limits.h> declares arc4random.
23427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23428 #define arc4random innocuous_arc4random
23430 /* System header to define __stub macros and hopefully few prototypes,
23431 which can conflict with char arc4random (); below.
23432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23433 <limits.h> exists even on freestanding compilers. */
23435 #ifdef __STDC__
23436 # include <limits.h>
23437 #else
23438 # include <assert.h>
23439 #endif
23441 #undef arc4random
23443 /* Override any GCC internal prototype to avoid an error.
23444 Use char because int might match the return type of a GCC
23445 builtin and then its argument prototype would still apply. */
23446 #ifdef __cplusplus
23447 extern "C"
23448 #endif
23449 char arc4random ();
23450 /* The GNU C library defines this for functions which it implements
23451 to always fail with ENOSYS. Some functions are actually named
23452 something starting with __ and the normal name is an alias. */
23453 #if defined __stub_arc4random || defined __stub___arc4random
23454 choke me
23455 #endif
23458 main ()
23460 return arc4random ();
23462 return 0;
23464 _ACEOF
23465 rm -f conftest.$ac_objext conftest$ac_exeext
23466 if { (ac_try="$ac_link"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23470 esac
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_link") 2>conftest.er1
23473 ac_status=$?
23474 grep -v '^ *+' conftest.er1 >conftest.err
23475 rm -f conftest.er1
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest$ac_exeext &&
23482 $as_test_x conftest$ac_exeext; then
23483 ac_cv_func_arc4random=yes
23484 else
23485 echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23488 ac_cv_func_arc4random=no
23491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23492 conftest$ac_exeext conftest.$ac_ext
23494 { echo "$as_me:$LINENO: result: $ac_cv_func_arc4random" >&5
23495 echo "${ECHO_T}$ac_cv_func_arc4random" >&6; }
23496 if test $ac_cv_func_arc4random = yes; then
23497 cat >>confdefs.h <<\_ACEOF
23498 #define HAVE_ARC4RANDOM 1
23499 _ACEOF
23505 # Begin pthreads checking.
23507 # First, decide whether to use multithreading or not.
23509 # Enable multithreading by default on systems where it is known
23510 # to work well, and where debugging of multithreaded programs
23511 # is supported.
23514 { echo "$as_me:$LINENO: checking whether to build with thread support" >&5
23515 echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6; }
23517 case $host in
23518 *-dec-osf*)
23519 use_threads=true ;;
23520 *-solaris2.[0-6])
23521 # Thread signals are broken on Solaris 2.6; they are sometimes
23522 # delivered to the wrong thread.
23523 use_threads=false ;;
23524 *-solaris*)
23525 use_threads=true ;;
23526 *-ibm-aix*)
23527 use_threads=true ;;
23528 *-hp-hpux10*)
23529 use_threads=false ;;
23530 *-hp-hpux11*)
23531 use_threads=true ;;
23532 *-sgi-irix*)
23533 use_threads=true ;;
23534 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
23535 # UnixWare
23536 use_threads=false ;;
23537 *-*-sysv*OpenUNIX*)
23538 # UnixWare
23539 use_threads=true ;;
23540 *-netbsd*)
23541 if test -r /usr/lib/libpthread.so ; then
23542 use_threads=true
23543 else
23544 # Socket I/O optimizations introduced in 9.2 expose a
23545 # bug in unproven-pthreads; see PR #12650
23546 use_threads=false
23549 *-openbsd*)
23550 # OpenBSD users have reported that named dumps core on
23551 # startup when built with threads.
23552 use_threads=false ;;
23553 *-freebsd*)
23554 use_threads=false ;;
23555 *-bsdi234*)
23556 # Thread signals do not work reliably on some versions of BSD/OS.
23557 use_threads=false ;;
23558 *-bsdi5*)
23559 use_threads=true ;;
23560 *-linux*)
23561 # Threads are disabled on Linux by default because most
23562 # Linux kernels produce unusable core dumps from multithreaded
23563 # programs, and because of limitations in setuid().
23564 use_threads=false ;;
23566 use_threads=false ;;
23567 esac
23569 # Check whether --enable-threads was given.
23570 if test "${enable_threads+set}" = set; then
23571 enableval=$enable_threads;
23574 case "$enable_threads" in
23575 yes)
23576 use_threads=true
23579 use_threads=false
23582 # Use system-dependent default
23585 { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5
23586 echo "$as_me: error: --enable-threads takes yes or no" >&2;}
23587 { (exit 1); exit 1; }; }
23589 esac
23591 if $use_threads
23592 then
23593 { echo "$as_me:$LINENO: result: yes" >&5
23594 echo "${ECHO_T}yes" >&6; }
23595 else
23596 { echo "$as_me:$LINENO: result: no" >&5
23597 echo "${ECHO_T}no" >&6; }
23600 if $use_threads
23601 then
23603 # Search for / configure pthreads in a system-dependent fashion.
23605 case "$host" in
23606 *-netbsd*)
23607 # NetBSD has multiple pthreads implementations. The
23608 # recommended one to use is "unproven-pthreads". The
23609 # older "mit-pthreads" may also work on some NetBSD
23610 # versions. The PTL2 thread library does not
23611 # currently work with bind9, but can be chosen with
23612 # the --with-ptl2 option for those who wish to
23613 # experiment with it.
23614 CC="gcc"
23615 { echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5
23616 echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6; }
23619 # Check whether --with-ptl2 was given.
23620 if test "${with_ptl2+set}" = set; then
23621 withval=$with_ptl2; use_ptl2="$withval"
23622 else
23623 use_ptl2="no"
23627 : ${LOCALBASE:=/usr/pkg}
23629 if test "X$use_ptl2" = "Xyes"
23630 then
23631 { echo "$as_me:$LINENO: result: PTL2" >&5
23632 echo "${ECHO_T}PTL2" >&6; }
23633 { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
23634 echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
23635 CC=ptlgcc
23636 else
23637 if test -r /usr/lib/libpthread.so
23638 then
23639 { echo "$as_me:$LINENO: result: native" >&5
23640 echo "${ECHO_T}native" >&6; }
23641 LIBS="-lpthread $LIBS"
23642 else
23643 if test ! -d $LOCALBASE/pthreads
23644 then
23645 { echo "$as_me:$LINENO: result: none" >&5
23646 echo "${ECHO_T}none" >&6; }
23647 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
23648 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
23649 { (exit 1); exit 1; }; }
23652 if $use_threads
23653 then
23654 { echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5
23655 echo "${ECHO_T}mit-pthreads/unproven-pthreads" >&6; }
23656 pkg="$LOCALBASE/pthreads"
23657 lib1="-L$pkg/lib -Wl,-R$pkg/lib"
23658 lib2="-lpthread -lm -lgcc -lpthread"
23659 LIBS="$lib1 $lib2 $LIBS"
23660 CPPFLAGS="$CPPFLAGS -I$pkg/include"
23661 STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
23666 *-freebsd*)
23667 # We don't want to set -lpthread as that break
23668 # the ability to choose threads library at final
23669 # link time and is not valid for all architectures.
23671 PTHREAD=
23672 if test "X$GCC" = "Xyes"; then
23673 saved_cc="$CC"
23674 CC="$CC -pthread"
23675 { echo "$as_me:$LINENO: checking for gcc -pthread support" >&5
23676 echo $ECHO_N "checking for gcc -pthread support... $ECHO_C" >&6; };
23677 cat >conftest.$ac_ext <<_ACEOF
23678 /* confdefs.h. */
23679 _ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h. */
23683 #include <pthread.h>
23685 main ()
23687 printf("%x\n", pthread_create);
23689 return 0;
23691 _ACEOF
23692 rm -f conftest.$ac_objext conftest$ac_exeext
23693 if { (ac_try="$ac_link"
23694 case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23697 esac
23698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699 (eval "$ac_link") 2>conftest.er1
23700 ac_status=$?
23701 grep -v '^ *+' conftest.er1 >conftest.err
23702 rm -f conftest.er1
23703 cat conftest.err >&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } && {
23706 test -z "$ac_c_werror_flag" ||
23707 test ! -s conftest.err
23708 } && test -s conftest$ac_exeext &&
23709 $as_test_x conftest$ac_exeext; then
23710 PTHREAD="yes"
23711 { echo "$as_me:$LINENO: result: yes" >&5
23712 echo "${ECHO_T}yes" >&6; }
23713 else
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 { echo "$as_me:$LINENO: result: no" >&5
23718 echo "${ECHO_T}no" >&6; }
23721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23722 conftest$ac_exeext conftest.$ac_ext
23723 CC="$saved_cc"
23725 if test "X$PTHREAD" != "Xyes"; then
23727 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23728 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
23729 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731 else
23732 ac_check_lib_save_LIBS=$LIBS
23733 LIBS="-lpthread $LIBS"
23734 cat >conftest.$ac_ext <<_ACEOF
23735 /* confdefs.h. */
23736 _ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23741 /* Override any GCC internal prototype to avoid an error.
23742 Use char because int might match the return type of a GCC
23743 builtin and then its argument prototype would still apply. */
23744 #ifdef __cplusplus
23745 extern "C"
23746 #endif
23747 char pthread_create ();
23749 main ()
23751 return pthread_create ();
23753 return 0;
23755 _ACEOF
23756 rm -f conftest.$ac_objext conftest$ac_exeext
23757 if { (ac_try="$ac_link"
23758 case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_link") 2>conftest.er1
23764 ac_status=$?
23765 grep -v '^ *+' conftest.er1 >conftest.err
23766 rm -f conftest.er1
23767 cat conftest.err >&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && {
23770 test -z "$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 } && test -s conftest$ac_exeext &&
23773 $as_test_x conftest$ac_exeext; then
23774 ac_cv_lib_pthread_pthread_create=yes
23775 else
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ac_cv_lib_pthread_pthread_create=no
23782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23783 conftest$ac_exeext conftest.$ac_ext
23784 LIBS=$ac_check_lib_save_LIBS
23786 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23787 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
23788 if test $ac_cv_lib_pthread_pthread_create = yes; then
23789 cat >>confdefs.h <<_ACEOF
23790 #define HAVE_LIBPTHREAD 1
23791 _ACEOF
23793 LIBS="-lpthread $LIBS"
23795 else
23797 { echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5
23798 echo $ECHO_N "checking for thread_create in -lthr... $ECHO_C" >&6; }
23799 if test "${ac_cv_lib_thr_thread_create+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23801 else
23802 ac_check_lib_save_LIBS=$LIBS
23803 LIBS="-lthr $LIBS"
23804 cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h. */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23811 /* Override any GCC internal prototype to avoid an error.
23812 Use char because int might match the return type of a GCC
23813 builtin and then its argument prototype would still apply. */
23814 #ifdef __cplusplus
23815 extern "C"
23816 #endif
23817 char thread_create ();
23819 main ()
23821 return thread_create ();
23823 return 0;
23825 _ACEOF
23826 rm -f conftest.$ac_objext conftest$ac_exeext
23827 if { (ac_try="$ac_link"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_link") 2>conftest.er1
23834 ac_status=$?
23835 grep -v '^ *+' conftest.er1 >conftest.err
23836 rm -f conftest.er1
23837 cat conftest.err >&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest$ac_exeext &&
23843 $as_test_x conftest$ac_exeext; then
23844 ac_cv_lib_thr_thread_create=yes
23845 else
23846 echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23849 ac_cv_lib_thr_thread_create=no
23852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23853 conftest$ac_exeext conftest.$ac_ext
23854 LIBS=$ac_check_lib_save_LIBS
23856 { echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5
23857 echo "${ECHO_T}$ac_cv_lib_thr_thread_create" >&6; }
23858 if test $ac_cv_lib_thr_thread_create = yes; then
23859 cat >>confdefs.h <<_ACEOF
23860 #define HAVE_LIBTHR 1
23861 _ACEOF
23863 LIBS="-lthr $LIBS"
23865 else
23867 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23868 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
23869 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872 ac_check_lib_save_LIBS=$LIBS
23873 LIBS="-lc_r $LIBS"
23874 cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h. */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23881 /* Override any GCC internal prototype to avoid an error.
23882 Use char because int might match the return type of a GCC
23883 builtin and then its argument prototype would still apply. */
23884 #ifdef __cplusplus
23885 extern "C"
23886 #endif
23887 char pthread_create ();
23889 main ()
23891 return pthread_create ();
23893 return 0;
23895 _ACEOF
23896 rm -f conftest.$ac_objext conftest$ac_exeext
23897 if { (ac_try="$ac_link"
23898 case "(($ac_try" in
23899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900 *) ac_try_echo=$ac_try;;
23901 esac
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903 (eval "$ac_link") 2>conftest.er1
23904 ac_status=$?
23905 grep -v '^ *+' conftest.er1 >conftest.err
23906 rm -f conftest.er1
23907 cat conftest.err >&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest$ac_exeext &&
23913 $as_test_x conftest$ac_exeext; then
23914 ac_cv_lib_c_r_pthread_create=yes
23915 else
23916 echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 ac_cv_lib_c_r_pthread_create=no
23922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23923 conftest$ac_exeext conftest.$ac_ext
23924 LIBS=$ac_check_lib_save_LIBS
23926 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23927 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
23928 if test $ac_cv_lib_c_r_pthread_create = yes; then
23929 cat >>confdefs.h <<_ACEOF
23930 #define HAVE_LIBC_R 1
23931 _ACEOF
23933 LIBS="-lc_r $LIBS"
23935 else
23937 { echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
23938 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; }
23939 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
23940 echo $ECHO_N "(cached) $ECHO_C" >&6
23941 else
23942 ac_check_lib_save_LIBS=$LIBS
23943 LIBS="-lc $LIBS"
23944 cat >conftest.$ac_ext <<_ACEOF
23945 /* confdefs.h. */
23946 _ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23951 /* Override any GCC internal prototype to avoid an error.
23952 Use char because int might match the return type of a GCC
23953 builtin and then its argument prototype would still apply. */
23954 #ifdef __cplusplus
23955 extern "C"
23956 #endif
23957 char pthread_create ();
23959 main ()
23961 return pthread_create ();
23963 return 0;
23965 _ACEOF
23966 rm -f conftest.$ac_objext conftest$ac_exeext
23967 if { (ac_try="$ac_link"
23968 case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23971 esac
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973 (eval "$ac_link") 2>conftest.er1
23974 ac_status=$?
23975 grep -v '^ *+' conftest.er1 >conftest.err
23976 rm -f conftest.er1
23977 cat conftest.err >&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } && {
23980 test -z "$ac_c_werror_flag" ||
23981 test ! -s conftest.err
23982 } && test -s conftest$ac_exeext &&
23983 $as_test_x conftest$ac_exeext; then
23984 ac_cv_lib_c_pthread_create=yes
23985 else
23986 echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23989 ac_cv_lib_c_pthread_create=no
23992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23993 conftest$ac_exeext conftest.$ac_ext
23994 LIBS=$ac_check_lib_save_LIBS
23996 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
23997 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; }
23998 if test $ac_cv_lib_c_pthread_create = yes; then
23999 cat >>confdefs.h <<_ACEOF
24000 #define HAVE_LIBC 1
24001 _ACEOF
24003 LIBS="-lc $LIBS"
24005 else
24006 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
24007 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
24008 { (exit 1); exit 1; }; }
24021 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24022 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24023 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24025 else
24026 ac_check_lib_save_LIBS=$LIBS
24027 LIBS="-lpthread $LIBS"
24028 cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h. */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24035 /* Override any GCC internal prototype to avoid an error.
24036 Use char because int might match the return type of a GCC
24037 builtin and then its argument prototype would still apply. */
24038 #ifdef __cplusplus
24039 extern "C"
24040 #endif
24041 char pthread_create ();
24043 main ()
24045 return pthread_create ();
24047 return 0;
24049 _ACEOF
24050 rm -f conftest.$ac_objext conftest$ac_exeext
24051 if { (ac_try="$ac_link"
24052 case "(($ac_try" in
24053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24054 *) ac_try_echo=$ac_try;;
24055 esac
24056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24057 (eval "$ac_link") 2>conftest.er1
24058 ac_status=$?
24059 grep -v '^ *+' conftest.er1 >conftest.err
24060 rm -f conftest.er1
24061 cat conftest.err >&5
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); } && {
24064 test -z "$ac_c_werror_flag" ||
24065 test ! -s conftest.err
24066 } && test -s conftest$ac_exeext &&
24067 $as_test_x conftest$ac_exeext; then
24068 ac_cv_lib_pthread_pthread_create=yes
24069 else
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 ac_cv_lib_pthread_pthread_create=no
24076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24077 conftest$ac_exeext conftest.$ac_ext
24078 LIBS=$ac_check_lib_save_LIBS
24080 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24081 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24082 if test $ac_cv_lib_pthread_pthread_create = yes; then
24083 cat >>confdefs.h <<_ACEOF
24084 #define HAVE_LIBPTHREAD 1
24085 _ACEOF
24087 LIBS="-lpthread $LIBS"
24089 else
24091 { echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
24092 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6; }
24093 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24095 else
24096 ac_check_lib_save_LIBS=$LIBS
24097 LIBS="-lpthread $LIBS"
24098 cat >conftest.$ac_ext <<_ACEOF
24099 /* confdefs.h. */
24100 _ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24105 /* Override any GCC internal prototype to avoid an error.
24106 Use char because int might match the return type of a GCC
24107 builtin and then its argument prototype would still apply. */
24108 #ifdef __cplusplus
24109 extern "C"
24110 #endif
24111 char __pthread_create ();
24113 main ()
24115 return __pthread_create ();
24117 return 0;
24119 _ACEOF
24120 rm -f conftest.$ac_objext conftest$ac_exeext
24121 if { (ac_try="$ac_link"
24122 case "(($ac_try" in
24123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24124 *) ac_try_echo=$ac_try;;
24125 esac
24126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24127 (eval "$ac_link") 2>conftest.er1
24128 ac_status=$?
24129 grep -v '^ *+' conftest.er1 >conftest.err
24130 rm -f conftest.er1
24131 cat conftest.err >&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); } && {
24134 test -z "$ac_c_werror_flag" ||
24135 test ! -s conftest.err
24136 } && test -s conftest$ac_exeext &&
24137 $as_test_x conftest$ac_exeext; then
24138 ac_cv_lib_pthread___pthread_create=yes
24139 else
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24143 ac_cv_lib_pthread___pthread_create=no
24146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24147 conftest$ac_exeext conftest.$ac_ext
24148 LIBS=$ac_check_lib_save_LIBS
24150 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
24151 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6; }
24152 if test $ac_cv_lib_pthread___pthread_create = yes; then
24153 cat >>confdefs.h <<_ACEOF
24154 #define HAVE_LIBPTHREAD 1
24155 _ACEOF
24157 LIBS="-lpthread $LIBS"
24159 else
24161 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
24162 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
24163 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
24164 echo $ECHO_N "(cached) $ECHO_C" >&6
24165 else
24166 ac_check_lib_save_LIBS=$LIBS
24167 LIBS="-lpthread $LIBS"
24168 cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h. */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24175 /* Override any GCC internal prototype to avoid an error.
24176 Use char because int might match the return type of a GCC
24177 builtin and then its argument prototype would still apply. */
24178 #ifdef __cplusplus
24179 extern "C"
24180 #endif
24181 char __pthread_create_system ();
24183 main ()
24185 return __pthread_create_system ();
24187 return 0;
24189 _ACEOF
24190 rm -f conftest.$ac_objext conftest$ac_exeext
24191 if { (ac_try="$ac_link"
24192 case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24195 esac
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197 (eval "$ac_link") 2>conftest.er1
24198 ac_status=$?
24199 grep -v '^ *+' conftest.er1 >conftest.err
24200 rm -f conftest.er1
24201 cat conftest.err >&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } && {
24204 test -z "$ac_c_werror_flag" ||
24205 test ! -s conftest.err
24206 } && test -s conftest$ac_exeext &&
24207 $as_test_x conftest$ac_exeext; then
24208 ac_cv_lib_pthread___pthread_create_system=yes
24209 else
24210 echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_cv_lib_pthread___pthread_create_system=no
24216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24217 conftest$ac_exeext conftest.$ac_ext
24218 LIBS=$ac_check_lib_save_LIBS
24220 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
24221 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
24222 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
24223 cat >>confdefs.h <<_ACEOF
24224 #define HAVE_LIBPTHREAD 1
24225 _ACEOF
24227 LIBS="-lpthread $LIBS"
24229 else
24231 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
24232 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
24233 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
24234 echo $ECHO_N "(cached) $ECHO_C" >&6
24235 else
24236 ac_check_lib_save_LIBS=$LIBS
24237 LIBS="-lc_r $LIBS"
24238 cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h. */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24245 /* Override any GCC internal prototype to avoid an error.
24246 Use char because int might match the return type of a GCC
24247 builtin and then its argument prototype would still apply. */
24248 #ifdef __cplusplus
24249 extern "C"
24250 #endif
24251 char pthread_create ();
24253 main ()
24255 return pthread_create ();
24257 return 0;
24259 _ACEOF
24260 rm -f conftest.$ac_objext conftest$ac_exeext
24261 if { (ac_try="$ac_link"
24262 case "(($ac_try" in
24263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264 *) ac_try_echo=$ac_try;;
24265 esac
24266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24267 (eval "$ac_link") 2>conftest.er1
24268 ac_status=$?
24269 grep -v '^ *+' conftest.er1 >conftest.err
24270 rm -f conftest.er1
24271 cat conftest.err >&5
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); } && {
24274 test -z "$ac_c_werror_flag" ||
24275 test ! -s conftest.err
24276 } && test -s conftest$ac_exeext &&
24277 $as_test_x conftest$ac_exeext; then
24278 ac_cv_lib_c_r_pthread_create=yes
24279 else
24280 echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24283 ac_cv_lib_c_r_pthread_create=no
24286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24287 conftest$ac_exeext conftest.$ac_ext
24288 LIBS=$ac_check_lib_save_LIBS
24290 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
24291 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
24292 if test $ac_cv_lib_c_r_pthread_create = yes; then
24293 cat >>confdefs.h <<_ACEOF
24294 #define HAVE_LIBC_R 1
24295 _ACEOF
24297 LIBS="-lc_r $LIBS"
24299 else
24301 { echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
24302 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; }
24303 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
24304 echo $ECHO_N "(cached) $ECHO_C" >&6
24305 else
24306 ac_check_lib_save_LIBS=$LIBS
24307 LIBS="-lc $LIBS"
24308 cat >conftest.$ac_ext <<_ACEOF
24309 /* confdefs.h. */
24310 _ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24315 /* Override any GCC internal prototype to avoid an error.
24316 Use char because int might match the return type of a GCC
24317 builtin and then its argument prototype would still apply. */
24318 #ifdef __cplusplus
24319 extern "C"
24320 #endif
24321 char pthread_create ();
24323 main ()
24325 return pthread_create ();
24327 return 0;
24329 _ACEOF
24330 rm -f conftest.$ac_objext conftest$ac_exeext
24331 if { (ac_try="$ac_link"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_link") 2>conftest.er1
24338 ac_status=$?
24339 grep -v '^ *+' conftest.er1 >conftest.err
24340 rm -f conftest.er1
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } && {
24344 test -z "$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24346 } && test -s conftest$ac_exeext &&
24347 $as_test_x conftest$ac_exeext; then
24348 ac_cv_lib_c_pthread_create=yes
24349 else
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 ac_cv_lib_c_pthread_create=no
24356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24357 conftest$ac_exeext conftest.$ac_ext
24358 LIBS=$ac_check_lib_save_LIBS
24360 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
24361 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; }
24362 if test $ac_cv_lib_c_pthread_create = yes; then
24363 cat >>confdefs.h <<_ACEOF
24364 #define HAVE_LIBC 1
24365 _ACEOF
24367 LIBS="-lc $LIBS"
24369 else
24370 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
24371 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
24372 { (exit 1); exit 1; }; }
24384 esac
24387 if $use_threads
24388 then
24389 if test "X$GCC" = "Xyes"; then
24390 case "$host" in
24391 *-freebsd*)
24392 CC="$CC -pthread"
24393 CCOPT="$CCOPT -pthread"
24394 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
24396 *-openbsd*)
24397 CC="$CC -pthread"
24398 CCOPT="$CCOPT -pthread"
24400 *-solaris*)
24401 LIBS="$LIBS -lthread"
24403 *-ibm-aix*)
24404 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
24406 esac
24407 else
24408 case $host in
24409 *-dec-osf*)
24410 CC="$CC -pthread"
24411 CCOPT="$CCOPT -pthread"
24413 *-solaris*)
24414 CC="$CC -mt"
24415 CCOPT="$CCOPT -mt"
24417 *-ibm-aix*)
24418 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
24420 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
24421 CC="$CC -Kthread"
24422 CCOPT="$CCOPT -Kthread"
24424 *-*-sysv*OpenUNIX*)
24425 CC="$CC -Kpthread"
24426 CCOPT="$CCOPT -Kpthread"
24428 esac
24430 ALWAYS_DEFINES="-D_REENTRANT"
24431 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
24432 thread_dir=pthreads
24434 # We'd like to use sigwait() too
24436 { echo "$as_me:$LINENO: checking for sigwait" >&5
24437 echo $ECHO_N "checking for sigwait... $ECHO_C" >&6; }
24438 if test "${ac_cv_func_sigwait+set}" = set; then
24439 echo $ECHO_N "(cached) $ECHO_C" >&6
24440 else
24441 cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h. */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447 /* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait.
24448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24449 #define sigwait innocuous_sigwait
24451 /* System header to define __stub macros and hopefully few prototypes,
24452 which can conflict with char sigwait (); below.
24453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24454 <limits.h> exists even on freestanding compilers. */
24456 #ifdef __STDC__
24457 # include <limits.h>
24458 #else
24459 # include <assert.h>
24460 #endif
24462 #undef sigwait
24464 /* Override any GCC internal prototype to avoid an error.
24465 Use char because int might match the return type of a GCC
24466 builtin and then its argument prototype would still apply. */
24467 #ifdef __cplusplus
24468 extern "C"
24469 #endif
24470 char sigwait ();
24471 /* The GNU C library defines this for functions which it implements
24472 to always fail with ENOSYS. Some functions are actually named
24473 something starting with __ and the normal name is an alias. */
24474 #if defined __stub_sigwait || defined __stub___sigwait
24475 choke me
24476 #endif
24479 main ()
24481 return sigwait ();
24483 return 0;
24485 _ACEOF
24486 rm -f conftest.$ac_objext conftest$ac_exeext
24487 if { (ac_try="$ac_link"
24488 case "(($ac_try" in
24489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24490 *) ac_try_echo=$ac_try;;
24491 esac
24492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24493 (eval "$ac_link") 2>conftest.er1
24494 ac_status=$?
24495 grep -v '^ *+' conftest.er1 >conftest.err
24496 rm -f conftest.er1
24497 cat conftest.err >&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); } && {
24500 test -z "$ac_c_werror_flag" ||
24501 test ! -s conftest.err
24502 } && test -s conftest$ac_exeext &&
24503 $as_test_x conftest$ac_exeext; then
24504 ac_cv_func_sigwait=yes
24505 else
24506 echo "$as_me: failed program was:" >&5
24507 sed 's/^/| /' conftest.$ac_ext >&5
24509 ac_cv_func_sigwait=no
24512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24513 conftest$ac_exeext conftest.$ac_ext
24515 { echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5
24516 echo "${ECHO_T}$ac_cv_func_sigwait" >&6; }
24517 if test $ac_cv_func_sigwait = yes; then
24518 cat >>confdefs.h <<\_ACEOF
24519 #define HAVE_SIGWAIT 1
24520 _ACEOF
24522 else
24523 { echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
24524 echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6; }
24525 if test "${ac_cv_lib_c_sigwait+set}" = set; then
24526 echo $ECHO_N "(cached) $ECHO_C" >&6
24527 else
24528 ac_check_lib_save_LIBS=$LIBS
24529 LIBS="-lc $LIBS"
24530 cat >conftest.$ac_ext <<_ACEOF
24531 /* confdefs.h. */
24532 _ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24537 /* Override any GCC internal prototype to avoid an error.
24538 Use char because int might match the return type of a GCC
24539 builtin and then its argument prototype would still apply. */
24540 #ifdef __cplusplus
24541 extern "C"
24542 #endif
24543 char sigwait ();
24545 main ()
24547 return sigwait ();
24549 return 0;
24551 _ACEOF
24552 rm -f conftest.$ac_objext conftest$ac_exeext
24553 if { (ac_try="$ac_link"
24554 case "(($ac_try" in
24555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24557 esac
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_link") 2>conftest.er1
24560 ac_status=$?
24561 grep -v '^ *+' conftest.er1 >conftest.err
24562 rm -f conftest.er1
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } && {
24566 test -z "$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24568 } && test -s conftest$ac_exeext &&
24569 $as_test_x conftest$ac_exeext; then
24570 ac_cv_lib_c_sigwait=yes
24571 else
24572 echo "$as_me: failed program was:" >&5
24573 sed 's/^/| /' conftest.$ac_ext >&5
24575 ac_cv_lib_c_sigwait=no
24578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24579 conftest$ac_exeext conftest.$ac_ext
24580 LIBS=$ac_check_lib_save_LIBS
24582 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
24583 echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6; }
24584 if test $ac_cv_lib_c_sigwait = yes; then
24585 cat >>confdefs.h <<\_ACEOF
24586 #define HAVE_SIGWAIT 1
24587 _ACEOF
24589 else
24590 { echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
24591 echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6; }
24592 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24594 else
24595 ac_check_lib_save_LIBS=$LIBS
24596 LIBS="-lpthread $LIBS"
24597 cat >conftest.$ac_ext <<_ACEOF
24598 /* confdefs.h. */
24599 _ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24604 /* Override any GCC internal prototype to avoid an error.
24605 Use char because int might match the return type of a GCC
24606 builtin and then its argument prototype would still apply. */
24607 #ifdef __cplusplus
24608 extern "C"
24609 #endif
24610 char sigwait ();
24612 main ()
24614 return sigwait ();
24616 return 0;
24618 _ACEOF
24619 rm -f conftest.$ac_objext conftest$ac_exeext
24620 if { (ac_try="$ac_link"
24621 case "(($ac_try" in
24622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623 *) ac_try_echo=$ac_try;;
24624 esac
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_link") 2>conftest.er1
24627 ac_status=$?
24628 grep -v '^ *+' conftest.er1 >conftest.err
24629 rm -f conftest.er1
24630 cat conftest.err >&5
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); } && {
24633 test -z "$ac_c_werror_flag" ||
24634 test ! -s conftest.err
24635 } && test -s conftest$ac_exeext &&
24636 $as_test_x conftest$ac_exeext; then
24637 ac_cv_lib_pthread_sigwait=yes
24638 else
24639 echo "$as_me: failed program was:" >&5
24640 sed 's/^/| /' conftest.$ac_ext >&5
24642 ac_cv_lib_pthread_sigwait=no
24645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24646 conftest$ac_exeext conftest.$ac_ext
24647 LIBS=$ac_check_lib_save_LIBS
24649 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
24650 echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6; }
24651 if test $ac_cv_lib_pthread_sigwait = yes; then
24652 cat >>confdefs.h <<\_ACEOF
24653 #define HAVE_SIGWAIT 1
24654 _ACEOF
24656 else
24657 { echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
24658 echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6; }
24659 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24661 else
24662 ac_check_lib_save_LIBS=$LIBS
24663 LIBS="-lpthread $LIBS"
24664 cat >conftest.$ac_ext <<_ACEOF
24665 /* confdefs.h. */
24666 _ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h. */
24671 /* Override any GCC internal prototype to avoid an error.
24672 Use char because int might match the return type of a GCC
24673 builtin and then its argument prototype would still apply. */
24674 #ifdef __cplusplus
24675 extern "C"
24676 #endif
24677 char _Psigwait ();
24679 main ()
24681 return _Psigwait ();
24683 return 0;
24685 _ACEOF
24686 rm -f conftest.$ac_objext conftest$ac_exeext
24687 if { (ac_try="$ac_link"
24688 case "(($ac_try" in
24689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690 *) ac_try_echo=$ac_try;;
24691 esac
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693 (eval "$ac_link") 2>conftest.er1
24694 ac_status=$?
24695 grep -v '^ *+' conftest.er1 >conftest.err
24696 rm -f conftest.er1
24697 cat conftest.err >&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } && {
24700 test -z "$ac_c_werror_flag" ||
24701 test ! -s conftest.err
24702 } && test -s conftest$ac_exeext &&
24703 $as_test_x conftest$ac_exeext; then
24704 ac_cv_lib_pthread__Psigwait=yes
24705 else
24706 echo "$as_me: failed program was:" >&5
24707 sed 's/^/| /' conftest.$ac_ext >&5
24709 ac_cv_lib_pthread__Psigwait=no
24712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24713 conftest$ac_exeext conftest.$ac_ext
24714 LIBS=$ac_check_lib_save_LIBS
24716 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
24717 echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6; }
24718 if test $ac_cv_lib_pthread__Psigwait = yes; then
24719 cat >>confdefs.h <<\_ACEOF
24720 #define HAVE_SIGWAIT 1
24721 _ACEOF
24732 { echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
24733 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6; }
24734 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
24735 echo $ECHO_N "(cached) $ECHO_C" >&6
24736 else
24737 cat >conftest.$ac_ext <<_ACEOF
24738 /* confdefs.h. */
24739 _ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h. */
24743 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
24744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24745 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
24747 /* System header to define __stub macros and hopefully few prototypes,
24748 which can conflict with char pthread_attr_getstacksize (); below.
24749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24750 <limits.h> exists even on freestanding compilers. */
24752 #ifdef __STDC__
24753 # include <limits.h>
24754 #else
24755 # include <assert.h>
24756 #endif
24758 #undef pthread_attr_getstacksize
24760 /* Override any GCC internal prototype to avoid an error.
24761 Use char because int might match the return type of a GCC
24762 builtin and then its argument prototype would still apply. */
24763 #ifdef __cplusplus
24764 extern "C"
24765 #endif
24766 char pthread_attr_getstacksize ();
24767 /* The GNU C library defines this for functions which it implements
24768 to always fail with ENOSYS. Some functions are actually named
24769 something starting with __ and the normal name is an alias. */
24770 #if defined __stub_pthread_attr_getstacksize || defined __stub___pthread_attr_getstacksize
24771 choke me
24772 #endif
24775 main ()
24777 return pthread_attr_getstacksize ();
24779 return 0;
24781 _ACEOF
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (ac_try="$ac_link"
24784 case "(($ac_try" in
24785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24786 *) ac_try_echo=$ac_try;;
24787 esac
24788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24789 (eval "$ac_link") 2>conftest.er1
24790 ac_status=$?
24791 grep -v '^ *+' conftest.er1 >conftest.err
24792 rm -f conftest.er1
24793 cat conftest.err >&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } && {
24796 test -z "$ac_c_werror_flag" ||
24797 test ! -s conftest.err
24798 } && test -s conftest$ac_exeext &&
24799 $as_test_x conftest$ac_exeext; then
24800 ac_cv_func_pthread_attr_getstacksize=yes
24801 else
24802 echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24805 ac_cv_func_pthread_attr_getstacksize=no
24808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24809 conftest$ac_exeext conftest.$ac_ext
24811 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
24812 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6; }
24813 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
24814 cat >>confdefs.h <<\_ACEOF
24815 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
24816 _ACEOF
24821 { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
24822 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
24823 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
24824 echo $ECHO_N "(cached) $ECHO_C" >&6
24825 else
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h. */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
24833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24834 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
24836 /* System header to define __stub macros and hopefully few prototypes,
24837 which can conflict with char pthread_attr_setstacksize (); below.
24838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24839 <limits.h> exists even on freestanding compilers. */
24841 #ifdef __STDC__
24842 # include <limits.h>
24843 #else
24844 # include <assert.h>
24845 #endif
24847 #undef pthread_attr_setstacksize
24849 /* Override any GCC internal prototype to avoid an error.
24850 Use char because int might match the return type of a GCC
24851 builtin and then its argument prototype would still apply. */
24852 #ifdef __cplusplus
24853 extern "C"
24854 #endif
24855 char pthread_attr_setstacksize ();
24856 /* The GNU C library defines this for functions which it implements
24857 to always fail with ENOSYS. Some functions are actually named
24858 something starting with __ and the normal name is an alias. */
24859 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
24860 choke me
24861 #endif
24864 main ()
24866 return pthread_attr_setstacksize ();
24868 return 0;
24870 _ACEOF
24871 rm -f conftest.$ac_objext conftest$ac_exeext
24872 if { (ac_try="$ac_link"
24873 case "(($ac_try" in
24874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24876 esac
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878 (eval "$ac_link") 2>conftest.er1
24879 ac_status=$?
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } && {
24885 test -z "$ac_c_werror_flag" ||
24886 test ! -s conftest.err
24887 } && test -s conftest$ac_exeext &&
24888 $as_test_x conftest$ac_exeext; then
24889 ac_cv_func_pthread_attr_setstacksize=yes
24890 else
24891 echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24894 ac_cv_func_pthread_attr_setstacksize=no
24897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24898 conftest$ac_exeext conftest.$ac_ext
24900 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
24901 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
24902 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
24903 cat >>confdefs.h <<\_ACEOF
24904 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
24905 _ACEOF
24911 # Additional OS-specific issues related to pthreads and sigwait.
24913 case "$host" in
24915 # One more place to look for sigwait.
24917 *-freebsd*)
24918 { echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
24919 echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6; }
24920 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24922 else
24923 ac_check_lib_save_LIBS=$LIBS
24924 LIBS="-lc_r $LIBS"
24925 cat >conftest.$ac_ext <<_ACEOF
24926 /* confdefs.h. */
24927 _ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24932 /* Override any GCC internal prototype to avoid an error.
24933 Use char because int might match the return type of a GCC
24934 builtin and then its argument prototype would still apply. */
24935 #ifdef __cplusplus
24936 extern "C"
24937 #endif
24938 char sigwait ();
24940 main ()
24942 return sigwait ();
24944 return 0;
24946 _ACEOF
24947 rm -f conftest.$ac_objext conftest$ac_exeext
24948 if { (ac_try="$ac_link"
24949 case "(($ac_try" in
24950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951 *) ac_try_echo=$ac_try;;
24952 esac
24953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954 (eval "$ac_link") 2>conftest.er1
24955 ac_status=$?
24956 grep -v '^ *+' conftest.er1 >conftest.err
24957 rm -f conftest.er1
24958 cat conftest.err >&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } && {
24961 test -z "$ac_c_werror_flag" ||
24962 test ! -s conftest.err
24963 } && test -s conftest$ac_exeext &&
24964 $as_test_x conftest$ac_exeext; then
24965 ac_cv_lib_c_r_sigwait=yes
24966 else
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24970 ac_cv_lib_c_r_sigwait=no
24973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24974 conftest$ac_exeext conftest.$ac_ext
24975 LIBS=$ac_check_lib_save_LIBS
24977 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
24978 echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6; }
24979 if test $ac_cv_lib_c_r_sigwait = yes; then
24980 cat >>confdefs.h <<\_ACEOF
24981 #define HAVE_SIGWAIT 1
24982 _ACEOF
24986 case $host in
24987 *-freebsd5.[012]|*-freebsd5.[012].*);;
24988 *-freebsd5.[3456789]|*-freebsd5.[3456789].*)
24989 cat >>confdefs.h <<\_ACEOF
24990 #define NEED_PTHREAD_SCOPE_SYSTEM 1
24991 _ACEOF
24994 *-freebsd6.*)
24995 cat >>confdefs.h <<\_ACEOF
24996 #define NEED_PTHREAD_SCOPE_SYSTEM 1
24997 _ACEOF
25000 esac
25003 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
25004 # called before certain pthreads calls. This is deprecated
25005 # in BSD/OS 4.1.
25007 *-bsdi3.*|*-bsdi4.0*)
25008 cat >>confdefs.h <<\_ACEOF
25009 #define NEED_PTHREAD_INIT 1
25010 _ACEOF
25014 # LinuxThreads requires some changes to the way we
25015 # deal with signals.
25017 *-linux*)
25018 cat >>confdefs.h <<\_ACEOF
25019 #define HAVE_LINUXTHREADS 1
25020 _ACEOF
25024 # Ensure the right sigwait() semantics on Solaris and make
25025 # sure we call pthread_setconcurrency.
25027 *-solaris*)
25028 cat >>confdefs.h <<\_ACEOF
25029 #define _POSIX_PTHREAD_SEMANTICS 1
25030 _ACEOF
25032 { echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
25033 echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6; }
25034 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
25035 echo $ECHO_N "(cached) $ECHO_C" >&6
25036 else
25037 cat >conftest.$ac_ext <<_ACEOF
25038 /* confdefs.h. */
25039 _ACEOF
25040 cat confdefs.h >>conftest.$ac_ext
25041 cat >>conftest.$ac_ext <<_ACEOF
25042 /* end confdefs.h. */
25043 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
25044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25045 #define pthread_setconcurrency innocuous_pthread_setconcurrency
25047 /* System header to define __stub macros and hopefully few prototypes,
25048 which can conflict with char pthread_setconcurrency (); below.
25049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25050 <limits.h> exists even on freestanding compilers. */
25052 #ifdef __STDC__
25053 # include <limits.h>
25054 #else
25055 # include <assert.h>
25056 #endif
25058 #undef pthread_setconcurrency
25060 /* Override any GCC internal prototype to avoid an error.
25061 Use char because int might match the return type of a GCC
25062 builtin and then its argument prototype would still apply. */
25063 #ifdef __cplusplus
25064 extern "C"
25065 #endif
25066 char pthread_setconcurrency ();
25067 /* The GNU C library defines this for functions which it implements
25068 to always fail with ENOSYS. Some functions are actually named
25069 something starting with __ and the normal name is an alias. */
25070 #if defined __stub_pthread_setconcurrency || defined __stub___pthread_setconcurrency
25071 choke me
25072 #endif
25075 main ()
25077 return pthread_setconcurrency ();
25079 return 0;
25081 _ACEOF
25082 rm -f conftest.$ac_objext conftest$ac_exeext
25083 if { (ac_try="$ac_link"
25084 case "(($ac_try" in
25085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086 *) ac_try_echo=$ac_try;;
25087 esac
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089 (eval "$ac_link") 2>conftest.er1
25090 ac_status=$?
25091 grep -v '^ *+' conftest.er1 >conftest.err
25092 rm -f conftest.er1
25093 cat conftest.err >&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } && {
25096 test -z "$ac_c_werror_flag" ||
25097 test ! -s conftest.err
25098 } && test -s conftest$ac_exeext &&
25099 $as_test_x conftest$ac_exeext; then
25100 ac_cv_func_pthread_setconcurrency=yes
25101 else
25102 echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25105 ac_cv_func_pthread_setconcurrency=no
25108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25109 conftest$ac_exeext conftest.$ac_ext
25111 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
25112 echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6; }
25113 if test $ac_cv_func_pthread_setconcurrency = yes; then
25114 cat >>confdefs.h <<\_ACEOF
25115 #define CALL_PTHREAD_SETCONCURRENCY 1
25116 _ACEOF
25122 # UnixWare does things its own way.
25124 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25125 cat >>confdefs.h <<\_ACEOF
25126 #define HAVE_UNIXWARE_SIGWAIT 1
25127 _ACEOF
25130 esac
25133 # Look for sysconf to allow detection of the number of processors.
25135 { echo "$as_me:$LINENO: checking for sysconf" >&5
25136 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
25137 if test "${ac_cv_func_sysconf+set}" = set; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25139 else
25140 cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h. */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
25147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25148 #define sysconf innocuous_sysconf
25150 /* System header to define __stub macros and hopefully few prototypes,
25151 which can conflict with char sysconf (); below.
25152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25153 <limits.h> exists even on freestanding compilers. */
25155 #ifdef __STDC__
25156 # include <limits.h>
25157 #else
25158 # include <assert.h>
25159 #endif
25161 #undef sysconf
25163 /* Override any GCC internal prototype to avoid an error.
25164 Use char because int might match the return type of a GCC
25165 builtin and then its argument prototype would still apply. */
25166 #ifdef __cplusplus
25167 extern "C"
25168 #endif
25169 char sysconf ();
25170 /* The GNU C library defines this for functions which it implements
25171 to always fail with ENOSYS. Some functions are actually named
25172 something starting with __ and the normal name is an alias. */
25173 #if defined __stub_sysconf || defined __stub___sysconf
25174 choke me
25175 #endif
25178 main ()
25180 return sysconf ();
25182 return 0;
25184 _ACEOF
25185 rm -f conftest.$ac_objext conftest$ac_exeext
25186 if { (ac_try="$ac_link"
25187 case "(($ac_try" in
25188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189 *) ac_try_echo=$ac_try;;
25190 esac
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192 (eval "$ac_link") 2>conftest.er1
25193 ac_status=$?
25194 grep -v '^ *+' conftest.er1 >conftest.err
25195 rm -f conftest.er1
25196 cat conftest.err >&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest$ac_exeext &&
25202 $as_test_x conftest$ac_exeext; then
25203 ac_cv_func_sysconf=yes
25204 else
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25208 ac_cv_func_sysconf=no
25211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25212 conftest$ac_exeext conftest.$ac_ext
25214 { echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
25215 echo "${ECHO_T}$ac_cv_func_sysconf" >&6; }
25216 if test $ac_cv_func_sysconf = yes; then
25217 cat >>confdefs.h <<\_ACEOF
25218 #define HAVE_SYSCONF 1
25219 _ACEOF
25224 else
25225 ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
25226 thread_dir=nothreads
25227 ALWAYS_DEFINES=""
25232 ISC_THREAD_DIR=$thread_dir
25236 # was --with-libxml2 specified?
25238 { echo "$as_me:$LINENO: checking for libxml2 library" >&5
25239 echo $ECHO_N "checking for libxml2 library... $ECHO_C" >&6; }
25241 # Check whether --with-libxml2 was given.
25242 if test "${with_libxml2+set}" = set; then
25243 withval=$with_libxml2; use_libxml2="$withval"
25244 else
25245 use_libxml2="auto"
25249 case "$use_libxml2" in
25251 DST_LIBXML2_INC=""
25253 auto|yes)
25254 case X`(xml2-config --version) 2>/dev/null` in
25255 X2.[67].*)
25256 libxml2_libs=`xml2-config --libs`
25257 libxml2_cflags=`xml2-config --cflags`
25260 libxml2_libs=
25261 libxml2_cflags=
25263 esac
25266 if test -f "$use_libxml2/bin/xml2-config" ; then
25267 libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
25268 libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
25271 esac
25273 if test "X$libxml2_libs" != "X"
25274 then
25275 { echo "$as_me:$LINENO: result: yes" >&5
25276 echo "${ECHO_T}yes" >&6; }
25277 CFLAGS="$CFLAGS $libxml2_cflags"
25278 LIBS="$LIBS $libxml2_libs"
25280 cat >>confdefs.h <<\_ACEOF
25281 #define HAVE_LIBXML2 1
25282 _ACEOF
25284 else
25285 { echo "$as_me:$LINENO: result: no" >&5
25286 echo "${ECHO_T}no" >&6; }
25290 # In solaris 10, SMF can manage named service
25293 { echo "$as_me:$LINENO: checking for smf_enable_instance in -lscf" >&5
25294 echo $ECHO_N "checking for smf_enable_instance in -lscf... $ECHO_C" >&6; }
25295 if test "${ac_cv_lib_scf_smf_enable_instance+set}" = set; then
25296 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 else
25298 ac_check_lib_save_LIBS=$LIBS
25299 LIBS="-lscf $LIBS"
25300 cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h. */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25307 /* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25310 #ifdef __cplusplus
25311 extern "C"
25312 #endif
25313 char smf_enable_instance ();
25315 main ()
25317 return smf_enable_instance ();
25319 return 0;
25321 _ACEOF
25322 rm -f conftest.$ac_objext conftest$ac_exeext
25323 if { (ac_try="$ac_link"
25324 case "(($ac_try" in
25325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326 *) ac_try_echo=$ac_try;;
25327 esac
25328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25329 (eval "$ac_link") 2>conftest.er1
25330 ac_status=$?
25331 grep -v '^ *+' conftest.er1 >conftest.err
25332 rm -f conftest.er1
25333 cat conftest.err >&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } && {
25336 test -z "$ac_c_werror_flag" ||
25337 test ! -s conftest.err
25338 } && test -s conftest$ac_exeext &&
25339 $as_test_x conftest$ac_exeext; then
25340 ac_cv_lib_scf_smf_enable_instance=yes
25341 else
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 ac_cv_lib_scf_smf_enable_instance=no
25348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25349 conftest$ac_exeext conftest.$ac_ext
25350 LIBS=$ac_check_lib_save_LIBS
25352 { echo "$as_me:$LINENO: result: $ac_cv_lib_scf_smf_enable_instance" >&5
25353 echo "${ECHO_T}$ac_cv_lib_scf_smf_enable_instance" >&6; }
25354 if test $ac_cv_lib_scf_smf_enable_instance = yes; then
25355 cat >>confdefs.h <<_ACEOF
25356 #define HAVE_LIBSCF 1
25357 _ACEOF
25359 LIBS="-lscf $LIBS"
25365 # flockfile is usually provided by pthreads, but we may want to use it
25366 # even if compiled with --disable-threads. getc_unlocked might also not
25367 # be defined.
25369 { echo "$as_me:$LINENO: checking for flockfile" >&5
25370 echo $ECHO_N "checking for flockfile... $ECHO_C" >&6; }
25371 if test "${ac_cv_func_flockfile+set}" = set; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 else
25374 cat >conftest.$ac_ext <<_ACEOF
25375 /* confdefs.h. */
25376 _ACEOF
25377 cat confdefs.h >>conftest.$ac_ext
25378 cat >>conftest.$ac_ext <<_ACEOF
25379 /* end confdefs.h. */
25380 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
25381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25382 #define flockfile innocuous_flockfile
25384 /* System header to define __stub macros and hopefully few prototypes,
25385 which can conflict with char flockfile (); below.
25386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25387 <limits.h> exists even on freestanding compilers. */
25389 #ifdef __STDC__
25390 # include <limits.h>
25391 #else
25392 # include <assert.h>
25393 #endif
25395 #undef flockfile
25397 /* Override any GCC internal prototype to avoid an error.
25398 Use char because int might match the return type of a GCC
25399 builtin and then its argument prototype would still apply. */
25400 #ifdef __cplusplus
25401 extern "C"
25402 #endif
25403 char flockfile ();
25404 /* The GNU C library defines this for functions which it implements
25405 to always fail with ENOSYS. Some functions are actually named
25406 something starting with __ and the normal name is an alias. */
25407 #if defined __stub_flockfile || defined __stub___flockfile
25408 choke me
25409 #endif
25412 main ()
25414 return flockfile ();
25416 return 0;
25418 _ACEOF
25419 rm -f conftest.$ac_objext conftest$ac_exeext
25420 if { (ac_try="$ac_link"
25421 case "(($ac_try" in
25422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423 *) ac_try_echo=$ac_try;;
25424 esac
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426 (eval "$ac_link") 2>conftest.er1
25427 ac_status=$?
25428 grep -v '^ *+' conftest.er1 >conftest.err
25429 rm -f conftest.er1
25430 cat conftest.err >&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } && {
25433 test -z "$ac_c_werror_flag" ||
25434 test ! -s conftest.err
25435 } && test -s conftest$ac_exeext &&
25436 $as_test_x conftest$ac_exeext; then
25437 ac_cv_func_flockfile=yes
25438 else
25439 echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25442 ac_cv_func_flockfile=no
25445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25446 conftest$ac_exeext conftest.$ac_ext
25448 { echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
25449 echo "${ECHO_T}$ac_cv_func_flockfile" >&6; }
25450 if test $ac_cv_func_flockfile = yes; then
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_FLOCKFILE 1
25453 _ACEOF
25457 { echo "$as_me:$LINENO: checking for getc_unlocked" >&5
25458 echo $ECHO_N "checking for getc_unlocked... $ECHO_C" >&6; }
25459 if test "${ac_cv_func_getc_unlocked+set}" = set; then
25460 echo $ECHO_N "(cached) $ECHO_C" >&6
25461 else
25462 cat >conftest.$ac_ext <<_ACEOF
25463 /* confdefs.h. */
25464 _ACEOF
25465 cat confdefs.h >>conftest.$ac_ext
25466 cat >>conftest.$ac_ext <<_ACEOF
25467 /* end confdefs.h. */
25468 /* Define getc_unlocked to an innocuous variant, in case <limits.h> declares getc_unlocked.
25469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25470 #define getc_unlocked innocuous_getc_unlocked
25472 /* System header to define __stub macros and hopefully few prototypes,
25473 which can conflict with char getc_unlocked (); below.
25474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25475 <limits.h> exists even on freestanding compilers. */
25477 #ifdef __STDC__
25478 # include <limits.h>
25479 #else
25480 # include <assert.h>
25481 #endif
25483 #undef getc_unlocked
25485 /* Override any GCC internal prototype to avoid an error.
25486 Use char because int might match the return type of a GCC
25487 builtin and then its argument prototype would still apply. */
25488 #ifdef __cplusplus
25489 extern "C"
25490 #endif
25491 char getc_unlocked ();
25492 /* The GNU C library defines this for functions which it implements
25493 to always fail with ENOSYS. Some functions are actually named
25494 something starting with __ and the normal name is an alias. */
25495 #if defined __stub_getc_unlocked || defined __stub___getc_unlocked
25496 choke me
25497 #endif
25500 main ()
25502 return getc_unlocked ();
25504 return 0;
25506 _ACEOF
25507 rm -f conftest.$ac_objext conftest$ac_exeext
25508 if { (ac_try="$ac_link"
25509 case "(($ac_try" in
25510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511 *) ac_try_echo=$ac_try;;
25512 esac
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514 (eval "$ac_link") 2>conftest.er1
25515 ac_status=$?
25516 grep -v '^ *+' conftest.er1 >conftest.err
25517 rm -f conftest.er1
25518 cat conftest.err >&5
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); } && {
25521 test -z "$ac_c_werror_flag" ||
25522 test ! -s conftest.err
25523 } && test -s conftest$ac_exeext &&
25524 $as_test_x conftest$ac_exeext; then
25525 ac_cv_func_getc_unlocked=yes
25526 else
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 ac_cv_func_getc_unlocked=no
25533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25534 conftest$ac_exeext conftest.$ac_ext
25536 { echo "$as_me:$LINENO: result: $ac_cv_func_getc_unlocked" >&5
25537 echo "${ECHO_T}$ac_cv_func_getc_unlocked" >&6; }
25538 if test $ac_cv_func_getc_unlocked = yes; then
25539 cat >>confdefs.h <<\_ACEOF
25540 #define HAVE_GETCUNLOCKED 1
25541 _ACEOF
25547 # Indicate what the final decision was regarding threads.
25549 { echo "$as_me:$LINENO: checking whether to build with threads" >&5
25550 echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6; }
25551 if $use_threads; then
25552 { echo "$as_me:$LINENO: result: yes" >&5
25553 echo "${ECHO_T}yes" >&6; }
25554 else
25555 { echo "$as_me:$LINENO: result: no" >&5
25556 echo "${ECHO_T}no" >&6; }
25560 # End of pthreads stuff.
25564 # Large File
25566 # Check whether --enable-largefile was given.
25567 if test "${enable_largefile+set}" = set; then
25568 enableval=$enable_largefile; want_largefile="yes"
25569 else
25570 want_largefile="no"
25573 case $want_largefile in
25574 yes)
25575 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25579 esac
25582 # Additional compiler settings.
25584 MKDEPCC="$CC"
25585 MKDEPCFLAGS="-M"
25586 IRIX_DNSSEC_WARNINGS_HACK=""
25588 if test "X$GCC" = "Xyes"; then
25589 { echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5
25590 echo $ECHO_N "checking if \"$CC\" supports -fno-strict-aliasing... $ECHO_C" >&6; }
25591 SAVE_CFLAGS=$CFLAGS
25592 CFLAGS=-fno-strict-aliasing
25593 cat >conftest.$ac_ext <<_ACEOF
25594 /* confdefs.h. */
25595 _ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h. */
25601 main ()
25605 return 0;
25607 _ACEOF
25608 rm -f conftest.$ac_objext
25609 if { (ac_try="$ac_compile"
25610 case "(($ac_try" in
25611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612 *) ac_try_echo=$ac_try;;
25613 esac
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615 (eval "$ac_compile") 2>conftest.er1
25616 ac_status=$?
25617 grep -v '^ *+' conftest.er1 >conftest.err
25618 rm -f conftest.er1
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } && {
25622 test -z "$ac_c_werror_flag" ||
25623 test ! -s conftest.err
25624 } && test -s conftest.$ac_objext; then
25625 FNOSTRICTALIASING=yes
25626 else
25627 echo "$as_me: failed program was:" >&5
25628 sed 's/^/| /' conftest.$ac_ext >&5
25630 FNOSTRICTALIASING=no
25633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25634 CFLAGS=$SAVE_CFLAGS
25635 if test "$FNOSTRICTALIASING" = "yes"; then
25636 { echo "$as_me:$LINENO: result: yes" >&5
25637 echo "${ECHO_T}yes" >&6; }
25638 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
25639 else
25640 { echo "$as_me:$LINENO: result: no" >&5
25641 echo "${ECHO_T}no" >&6; }
25642 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
25644 case "$host" in
25645 *-hp-hpux*)
25646 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
25648 esac
25649 else
25650 case $host in
25651 *-dec-osf*)
25652 CC="$CC -std"
25653 CCOPT="$CCOPT -std"
25654 MKDEPCC="$CC"
25656 *-hp-hpux*)
25657 CC="$CC -Ae -z"
25658 # The version of the C compiler that constantly warns about
25659 # 'const' as well as alignment issues is unfortunately not
25660 # able to be discerned via the version of the operating
25661 # system, nor does cc have a version flag.
25662 case "`$CC +W 123 2>&1`" in
25663 *Unknown?option*)
25664 STD_CWARNINGS="+w1"
25667 # Turn off the pointlessly noisy warnings.
25668 STD_CWARNINGS="+w1 +W 474,530,2193,2236"
25670 esac
25671 CCOPT="$CCOPT -Ae -z"
25672 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
25673 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
25675 *-sgi-irix*)
25676 STD_CWARNINGS="-fullwarn -woff 1209"
25678 # Silence more than 250 instances of
25679 # "prototyped function redeclared without prototype"
25680 # and 11 instances of
25681 # "variable ... was set but never used"
25682 # from lib/dns/sec/openssl.
25684 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
25686 *-solaris*)
25687 MKDEPCFLAGS="-xM"
25689 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25690 # UnixWare
25691 CC="$CC -w"
25693 esac
25702 # NLS
25704 { echo "$as_me:$LINENO: checking for catgets" >&5
25705 echo $ECHO_N "checking for catgets... $ECHO_C" >&6; }
25706 if test "${ac_cv_func_catgets+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25708 else
25709 cat >conftest.$ac_ext <<_ACEOF
25710 /* confdefs.h. */
25711 _ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h. */
25715 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
25716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25717 #define catgets innocuous_catgets
25719 /* System header to define __stub macros and hopefully few prototypes,
25720 which can conflict with char catgets (); below.
25721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25722 <limits.h> exists even on freestanding compilers. */
25724 #ifdef __STDC__
25725 # include <limits.h>
25726 #else
25727 # include <assert.h>
25728 #endif
25730 #undef catgets
25732 /* Override any GCC internal prototype to avoid an error.
25733 Use char because int might match the return type of a GCC
25734 builtin and then its argument prototype would still apply. */
25735 #ifdef __cplusplus
25736 extern "C"
25737 #endif
25738 char catgets ();
25739 /* The GNU C library defines this for functions which it implements
25740 to always fail with ENOSYS. Some functions are actually named
25741 something starting with __ and the normal name is an alias. */
25742 #if defined __stub_catgets || defined __stub___catgets
25743 choke me
25744 #endif
25747 main ()
25749 return catgets ();
25751 return 0;
25753 _ACEOF
25754 rm -f conftest.$ac_objext conftest$ac_exeext
25755 if { (ac_try="$ac_link"
25756 case "(($ac_try" in
25757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25758 *) ac_try_echo=$ac_try;;
25759 esac
25760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761 (eval "$ac_link") 2>conftest.er1
25762 ac_status=$?
25763 grep -v '^ *+' conftest.er1 >conftest.err
25764 rm -f conftest.er1
25765 cat conftest.err >&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } && {
25768 test -z "$ac_c_werror_flag" ||
25769 test ! -s conftest.err
25770 } && test -s conftest$ac_exeext &&
25771 $as_test_x conftest$ac_exeext; then
25772 ac_cv_func_catgets=yes
25773 else
25774 echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25777 ac_cv_func_catgets=no
25780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25781 conftest$ac_exeext conftest.$ac_ext
25783 { echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
25784 echo "${ECHO_T}$ac_cv_func_catgets" >&6; }
25785 if test $ac_cv_func_catgets = yes; then
25786 cat >>confdefs.h <<\_ACEOF
25787 #define HAVE_CATGETS 1
25788 _ACEOF
25794 # -lxnet buys us one big porting headache... standards, gotta love 'em.
25796 # AC_CHECK_LIB(xnet, socket, ,
25797 # AC_CHECK_LIB(socket, socket)
25800 # Use this for now, instead:
25802 case "$host" in
25803 mips-sgi-irix*)
25805 *-linux*)
25809 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
25810 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
25811 if test "${ac_cv_lib_socket_socket+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 else
25814 ac_check_lib_save_LIBS=$LIBS
25815 LIBS="-lsocket $LIBS"
25816 cat >conftest.$ac_ext <<_ACEOF
25817 /* confdefs.h. */
25818 _ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h. */
25823 /* Override any GCC internal prototype to avoid an error.
25824 Use char because int might match the return type of a GCC
25825 builtin and then its argument prototype would still apply. */
25826 #ifdef __cplusplus
25827 extern "C"
25828 #endif
25829 char socket ();
25831 main ()
25833 return socket ();
25835 return 0;
25837 _ACEOF
25838 rm -f conftest.$ac_objext conftest$ac_exeext
25839 if { (ac_try="$ac_link"
25840 case "(($ac_try" in
25841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842 *) ac_try_echo=$ac_try;;
25843 esac
25844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845 (eval "$ac_link") 2>conftest.er1
25846 ac_status=$?
25847 grep -v '^ *+' conftest.er1 >conftest.err
25848 rm -f conftest.er1
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } && {
25852 test -z "$ac_c_werror_flag" ||
25853 test ! -s conftest.err
25854 } && test -s conftest$ac_exeext &&
25855 $as_test_x conftest$ac_exeext; then
25856 ac_cv_lib_socket_socket=yes
25857 else
25858 echo "$as_me: failed program was:" >&5
25859 sed 's/^/| /' conftest.$ac_ext >&5
25861 ac_cv_lib_socket_socket=no
25864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25865 conftest$ac_exeext conftest.$ac_ext
25866 LIBS=$ac_check_lib_save_LIBS
25868 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
25869 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
25870 if test $ac_cv_lib_socket_socket = yes; then
25871 cat >>confdefs.h <<_ACEOF
25872 #define HAVE_LIBSOCKET 1
25873 _ACEOF
25875 LIBS="-lsocket $LIBS"
25880 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
25881 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
25882 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25884 else
25885 ac_check_lib_save_LIBS=$LIBS
25886 LIBS="-lnsl $LIBS"
25887 cat >conftest.$ac_ext <<_ACEOF
25888 /* confdefs.h. */
25889 _ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25894 /* Override any GCC internal prototype to avoid an error.
25895 Use char because int might match the return type of a GCC
25896 builtin and then its argument prototype would still apply. */
25897 #ifdef __cplusplus
25898 extern "C"
25899 #endif
25900 char inet_addr ();
25902 main ()
25904 return inet_addr ();
25906 return 0;
25908 _ACEOF
25909 rm -f conftest.$ac_objext conftest$ac_exeext
25910 if { (ac_try="$ac_link"
25911 case "(($ac_try" in
25912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25913 *) ac_try_echo=$ac_try;;
25914 esac
25915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25916 (eval "$ac_link") 2>conftest.er1
25917 ac_status=$?
25918 grep -v '^ *+' conftest.er1 >conftest.err
25919 rm -f conftest.er1
25920 cat conftest.err >&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } && {
25923 test -z "$ac_c_werror_flag" ||
25924 test ! -s conftest.err
25925 } && test -s conftest$ac_exeext &&
25926 $as_test_x conftest$ac_exeext; then
25927 ac_cv_lib_nsl_inet_addr=yes
25928 else
25929 echo "$as_me: failed program was:" >&5
25930 sed 's/^/| /' conftest.$ac_ext >&5
25932 ac_cv_lib_nsl_inet_addr=no
25935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25936 conftest$ac_exeext conftest.$ac_ext
25937 LIBS=$ac_check_lib_save_LIBS
25939 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
25940 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
25941 if test $ac_cv_lib_nsl_inet_addr = yes; then
25942 cat >>confdefs.h <<_ACEOF
25943 #define HAVE_LIBNSL 1
25944 _ACEOF
25946 LIBS="-lnsl $LIBS"
25951 esac
25954 # Work around Solaris's select() limitations.
25956 case "$host" in
25957 *-solaris2.[89]|*-solaris2.1?)
25959 cat >>confdefs.h <<\_ACEOF
25960 #define FD_SETSIZE 65536
25961 _ACEOF
25964 esac
25967 # Purify support
25969 { echo "$as_me:$LINENO: checking whether to use purify" >&5
25970 echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6; }
25972 # Check whether --with-purify was given.
25973 if test "${with_purify+set}" = set; then
25974 withval=$with_purify; use_purify="$withval"
25975 else
25976 use_purify="no"
25980 case "$use_purify" in
25983 yes)
25984 # Extract the first word of "purify", so it can be a program name with args.
25985 set dummy purify; ac_word=$2
25986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25988 if test "${ac_cv_path_purify_path+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991 case $purify_path in
25992 [\\/]* | ?:[\\/]*)
25993 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
25996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25997 for as_dir in $PATH
25999 IFS=$as_save_IFS
26000 test -z "$as_dir" && as_dir=.
26001 for ac_exec_ext in '' $ac_executable_extensions; do
26002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26003 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
26004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26005 break 2
26007 done
26008 done
26009 IFS=$as_save_IFS
26011 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
26013 esac
26015 purify_path=$ac_cv_path_purify_path
26016 if test -n "$purify_path"; then
26017 { echo "$as_me:$LINENO: result: $purify_path" >&5
26018 echo "${ECHO_T}$purify_path" >&6; }
26019 else
26020 { echo "$as_me:$LINENO: result: no" >&5
26021 echo "${ECHO_T}no" >&6; }
26027 purify_path="$use_purify"
26029 esac
26031 case "$use_purify" in
26033 { echo "$as_me:$LINENO: result: no" >&5
26034 echo "${ECHO_T}no" >&6; }
26035 PURIFY=""
26038 if test -f $purify_path || test $purify_path = purify; then
26039 { echo "$as_me:$LINENO: result: $purify_path" >&5
26040 echo "${ECHO_T}$purify_path" >&6; }
26041 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
26042 PURIFY="$purify_path $PURIFYFLAGS"
26043 else
26044 { { echo "$as_me:$LINENO: error: $purify_path not found.
26046 Please choose the proper path with the following command:
26048 configure --with-purify=PATH
26049 " >&5
26050 echo "$as_me: error: $purify_path not found.
26052 Please choose the proper path with the following command:
26054 configure --with-purify=PATH
26055 " >&2;}
26056 { (exit 1); exit 1; }; }
26059 esac
26065 # Check whether --with-libtool was given.
26066 if test "${with_libtool+set}" = set; then
26067 withval=$with_libtool; use_libtool="$withval"
26068 else
26069 use_libtool="no"
26073 case $use_libtool in
26074 yes)
26076 O=lo
26077 A=la
26078 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
26079 LIBTOOL_MODE_COMPILE='--mode=compile'
26080 LIBTOOL_MODE_INSTALL='--mode=install'
26081 LIBTOOL_MODE_LINK='--mode=link'
26082 case "$host" in
26083 *) LIBTOOL_ALLOW_UNDEFINED= ;;
26084 esac
26085 case "$host" in
26086 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
26087 *) LIBTOOL_IN_MAIN= ;;
26088 esac;
26093 LIBTOOL=
26095 LIBTOOL_MKDEP_SED=
26096 LIBTOOL_MODE_COMPILE=
26097 LIBTOOL_MODE_INSTALL=
26098 LIBTOOL_MODE_LINK=
26099 LIBTOOL_ALLOW_UNDEFINED=
26100 LIBTOOL_IN_MAIN=
26102 esac
26105 # enable/disable dumping stack backtrace. Also check if the system supports
26106 # glibc-compatible backtrace() function.
26108 # Check whether --enable-backtrace was given.
26109 if test "${enable_backtrace+set}" = set; then
26110 enableval=$enable_backtrace; want_backtrace="$enableval"
26111 else
26112 want_backtrace="yes"
26115 case $want_backtrace in
26116 yes)
26117 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
26118 cat >conftest.$ac_ext <<_ACEOF
26119 /* confdefs.h. */
26120 _ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 #include <execinfo.h>
26126 main ()
26128 return (backtrace((void **)0, 0));
26130 return 0;
26132 _ACEOF
26133 rm -f conftest.$ac_objext conftest$ac_exeext
26134 if { (ac_try="$ac_link"
26135 case "(($ac_try" in
26136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26137 *) ac_try_echo=$ac_try;;
26138 esac
26139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26140 (eval "$ac_link") 2>conftest.er1
26141 ac_status=$?
26142 grep -v '^ *+' conftest.er1 >conftest.err
26143 rm -f conftest.er1
26144 cat conftest.err >&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); } && {
26147 test -z "$ac_c_werror_flag" ||
26148 test ! -s conftest.err
26149 } && test -s conftest$ac_exeext &&
26150 $as_test_x conftest$ac_exeext; then
26152 cat >>confdefs.h <<\_ACEOF
26153 #define HAVE_LIBCTRACE
26154 _ACEOF
26156 else
26157 echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26164 conftest$ac_exeext conftest.$ac_ext
26167 ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
26169 esac
26172 # Check whether --enable-symtable was given.
26173 if test "${enable_symtable+set}" = set; then
26174 enableval=$enable_symtable; want_symtable="$enableval"
26175 else
26176 want_symtable="minimal"
26179 case $want_symtable in
26180 yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
26181 if test "$PERL" = ""
26182 then
26183 { { echo "$as_me:$LINENO: error: Internal symbol table requires perl but no perl is found.
26184 Install perl or explicitly disable the feature by --disable-symtable." >&5
26185 echo "$as_me: error: Internal symbol table requires perl but no perl is found.
26186 Install perl or explicitly disable the feature by --disable-symtable." >&2;}
26187 { (exit 1); exit 1; }; }
26189 if test "$use_libtool" = "yes"; then
26190 { echo "$as_me:$LINENO: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
26191 echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
26192 else
26193 # we generate the internal symbol table only for those systems
26194 # known to work to avoid unexpected build failure. Also, warn
26195 # about unsupported systems when the feature is enabled
26196 # manually.
26197 case $host_os in
26198 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
26199 MKSYMTBL_PROGRAM="$PERL"
26200 if test $want_symtable = all; then
26201 ALWAYS_MAKE_SYMTABLE="yes"
26205 if test $want_symtable = yes -o $want_symtable = all
26206 then
26207 { echo "$as_me:$LINENO: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
26208 echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
26210 esac
26215 esac
26220 # File name extension for static archive files, for those few places
26221 # where they are treated differently from dynamic ones.
26223 SA=a
26236 # build exportable DNS library?
26238 # Check whether --enable-exportlib was given.
26239 if test "${enable_exportlib+set}" = set; then
26240 enableval=$enable_exportlib;
26243 case "$enable_exportlib" in
26244 yes)
26245 gmake=
26246 for x in gmake gnumake make; do
26247 if $x --version 2>/dev/null | grep GNU > /dev/null; then
26248 gmake=$x
26249 break;
26251 done
26252 if test -z "$gmake"; then
26253 { { echo "$as_me:$LINENO: error: exportlib requires GNU make. Install it or disable the feature." >&5
26254 echo "$as_me: error: exportlib requires GNU make. Install it or disable the feature." >&2;}
26255 { (exit 1); exit 1; }; }
26257 LIBEXPORT=lib/export
26259 BIND9_CO_RULE="%.$O: \${srcdir}/%.c"
26261 no|*)
26262 BIND9_CO_RULE=".c.$O:"
26264 esac
26268 # Check whether --with-export-libdir was given.
26269 if test "${with_export_libdir+set}" = set; then
26270 withval=$with_export_libdir; export_libdir="$withval"
26273 if test -z "$export_libdir"; then
26274 export_libdir="\${exec_prefix}/lib/bind9/"
26279 # Check whether --with-export-includedir was given.
26280 if test "${with_export_includedir+set}" = set; then
26281 withval=$with_export_includedir; export_includedir="$withval"
26284 if test -z "$export_includedir"; then
26285 export_includedir="\${prefix}/include/bind9/"
26290 # Here begins a very long section to determine the system's networking
26291 # capabilities. The order of the tests is significant.
26295 # IPv6
26297 # Check whether --enable-ipv6 was given.
26298 if test "${enable_ipv6+set}" = set; then
26299 enableval=$enable_ipv6;
26303 case "$enable_ipv6" in
26304 yes|''|autodetect)
26305 cat >>confdefs.h <<\_ACEOF
26306 #define WANT_IPV6 1
26307 _ACEOF
26312 esac
26315 # We do the IPv6 compilation checking after libtool so that we can put
26316 # the right suffix on the files.
26318 { echo "$as_me:$LINENO: checking for IPv6 structures" >&5
26319 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6; }
26320 cat >conftest.$ac_ext <<_ACEOF
26321 /* confdefs.h. */
26322 _ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h. */
26327 #include <sys/types.h>
26328 #include <sys/socket.h>
26329 #include <netinet/in.h>
26331 main ()
26333 struct sockaddr_in6 sin6; return (0);
26335 return 0;
26337 _ACEOF
26338 rm -f conftest.$ac_objext
26339 if { (ac_try="$ac_compile"
26340 case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26343 esac
26344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_compile") 2>conftest.er1
26346 ac_status=$?
26347 grep -v '^ *+' conftest.er1 >conftest.err
26348 rm -f conftest.er1
26349 cat conftest.err >&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); } && {
26352 test -z "$ac_c_werror_flag" ||
26353 test ! -s conftest.err
26354 } && test -s conftest.$ac_objext; then
26355 { echo "$as_me:$LINENO: result: yes" >&5
26356 echo "${ECHO_T}yes" >&6; }
26357 found_ipv6=yes
26358 else
26359 echo "$as_me: failed program was:" >&5
26360 sed 's/^/| /' conftest.$ac_ext >&5
26362 { echo "$as_me:$LINENO: result: no" >&5
26363 echo "${ECHO_T}no" >&6; }
26364 found_ipv6=no
26367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26370 # See whether IPv6 support is provided via a Kame add-on.
26371 # This is done before other IPv6 linking tests to LIBS is properly set.
26373 { echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
26374 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6; }
26376 # Check whether --with-kame was given.
26377 if test "${with_kame+set}" = set; then
26378 withval=$with_kame; use_kame="$withval"
26379 else
26380 use_kame="no"
26384 case "$use_kame" in
26387 yes)
26388 kame_path=/usr/local/v6
26391 kame_path="$use_kame"
26393 esac
26395 case "$use_kame" in
26397 { echo "$as_me:$LINENO: result: no" >&5
26398 echo "${ECHO_T}no" >&6; }
26401 if test -f $kame_path/lib/libinet6.a; then
26402 { echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
26403 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6; }
26404 LIBS="-L$kame_path/lib -linet6 $LIBS"
26405 else
26406 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
26408 Please choose the proper path with the following command:
26410 configure --with-kame=PATH
26411 " >&5
26412 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
26414 Please choose the proper path with the following command:
26416 configure --with-kame=PATH
26417 " >&2;}
26418 { (exit 1); exit 1; }; }
26421 esac
26424 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
26425 # Including it on Kame-using platforms is very bad, though, because
26426 # Kame uses #error against direct inclusion. So include it on only
26427 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
26428 # This is done before the in6_pktinfo check because that's what
26429 # netinet6/in6.h is needed for.
26432 case "$host" in
26433 *-bsdi4.[01]*)
26434 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
26435 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
26436 isc_netinet6in6_hack="#include <netinet6/in6.h>"
26439 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
26440 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
26441 isc_netinet6in6_hack=""
26443 esac
26447 # This is similar to the netinet6/in6.h issue.
26449 case "$host" in
26450 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26451 # UnixWare
26452 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
26453 LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
26454 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
26455 isc_netinetin6_hack="#include <netinet/in6.h>"
26458 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
26459 LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
26460 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
26461 isc_netinetin6_hack=""
26463 esac
26466 # Now delve deeper into the suitability of the IPv6 support.
26468 case "$found_ipv6" in
26469 yes)
26470 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
26471 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
26473 { echo "$as_me:$LINENO: checking for in6_addr" >&5
26474 echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6; }
26475 cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h. */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26482 #include <sys/types.h>
26483 #include <sys/socket.h>
26484 #include <netinet/in.h>
26485 $isc_netinetin6_hack
26486 $isc_netinet6in6_hack
26489 main ()
26491 struct in6_addr in6; return (0);
26493 return 0;
26495 _ACEOF
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26500 *) ac_try_echo=$ac_try;;
26501 esac
26502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26503 (eval "$ac_compile") 2>conftest.er1
26504 ac_status=$?
26505 grep -v '^ *+' conftest.er1 >conftest.err
26506 rm -f conftest.er1
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } && {
26510 test -z "$ac_c_werror_flag" ||
26511 test ! -s conftest.err
26512 } && test -s conftest.$ac_objext; then
26513 { echo "$as_me:$LINENO: result: yes" >&5
26514 echo "${ECHO_T}yes" >&6; }
26515 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
26516 LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
26517 isc_in_addr6_hack=""
26518 else
26519 echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26522 { echo "$as_me:$LINENO: result: no" >&5
26523 echo "${ECHO_T}no" >&6; }
26524 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
26525 LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
26526 isc_in_addr6_hack="#define in6_addr in_addr6"
26529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531 { echo "$as_me:$LINENO: checking for in6addr_any" >&5
26532 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6; }
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h. */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26540 #include <sys/types.h>
26541 #include <sys/socket.h>
26542 #include <netinet/in.h>
26543 $isc_netinetin6_hack
26544 $isc_netinet6in6_hack
26545 $isc_in_addr6_hack
26548 main ()
26550 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
26552 return 0;
26554 _ACEOF
26555 rm -f conftest.$ac_objext conftest$ac_exeext
26556 if { (ac_try="$ac_link"
26557 case "(($ac_try" in
26558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26559 *) ac_try_echo=$ac_try;;
26560 esac
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562 (eval "$ac_link") 2>conftest.er1
26563 ac_status=$?
26564 grep -v '^ *+' conftest.er1 >conftest.err
26565 rm -f conftest.er1
26566 cat conftest.err >&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } && {
26569 test -z "$ac_c_werror_flag" ||
26570 test ! -s conftest.err
26571 } && test -s conftest$ac_exeext &&
26572 $as_test_x conftest$ac_exeext; then
26573 { echo "$as_me:$LINENO: result: yes" >&5
26574 echo "${ECHO_T}yes" >&6; }
26575 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
26576 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
26577 else
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 { echo "$as_me:$LINENO: result: no" >&5
26582 echo "${ECHO_T}no" >&6; }
26583 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
26584 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
26587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26588 conftest$ac_exeext conftest.$ac_ext
26590 { echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
26591 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6; }
26592 cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h. */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26599 #include <sys/types.h>
26600 #include <sys/socket.h>
26601 #include <netinet/in.h>
26602 $isc_netinetin6_hack
26603 $isc_netinet6in6_hack
26604 $isc_in_addr6_hack
26607 main ()
26609 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
26611 return 0;
26613 _ACEOF
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618 *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621 (eval "$ac_link") 2>conftest.er1
26622 ac_status=$?
26623 grep -v '^ *+' conftest.er1 >conftest.err
26624 rm -f conftest.er1
26625 cat conftest.err >&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); } && {
26628 test -z "$ac_c_werror_flag" ||
26629 test ! -s conftest.err
26630 } && test -s conftest$ac_exeext &&
26631 $as_test_x conftest$ac_exeext; then
26632 { echo "$as_me:$LINENO: result: yes" >&5
26633 echo "${ECHO_T}yes" >&6; }
26634 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
26635 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
26636 else
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26640 { echo "$as_me:$LINENO: result: no" >&5
26641 echo "${ECHO_T}no" >&6; }
26642 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
26643 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
26646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26647 conftest$ac_exeext conftest.$ac_ext
26649 { echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
26650 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6; }
26651 cat >conftest.$ac_ext <<_ACEOF
26652 /* confdefs.h. */
26653 _ACEOF
26654 cat confdefs.h >>conftest.$ac_ext
26655 cat >>conftest.$ac_ext <<_ACEOF
26656 /* end confdefs.h. */
26658 #include <sys/types.h>
26659 #include <sys/socket.h>
26660 #include <netinet/in.h>
26661 $isc_netinetin6_hack
26662 $isc_netinet6in6_hack
26665 main ()
26667 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
26669 return 0;
26671 _ACEOF
26672 rm -f conftest.$ac_objext
26673 if { (ac_try="$ac_compile"
26674 case "(($ac_try" in
26675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26677 esac
26678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679 (eval "$ac_compile") 2>conftest.er1
26680 ac_status=$?
26681 grep -v '^ *+' conftest.er1 >conftest.err
26682 rm -f conftest.er1
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } && {
26686 test -z "$ac_c_werror_flag" ||
26687 test ! -s conftest.err
26688 } && test -s conftest.$ac_objext; then
26689 { echo "$as_me:$LINENO: result: yes" >&5
26690 echo "${ECHO_T}yes" >&6; }
26691 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
26692 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
26693 else
26694 echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26697 { echo "$as_me:$LINENO: result: no" >&5
26698 echo "${ECHO_T}no" >&6; }
26699 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
26700 result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
26703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26704 LWRES_HAVE_SIN6_SCOPE_ID="$result"
26706 { echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
26707 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6; }
26708 cat >conftest.$ac_ext <<_ACEOF
26709 /* confdefs.h. */
26710 _ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h. */
26715 #include <sys/types.h>
26716 #include <sys/socket.h>
26717 #include <netinet/in.h>
26718 $isc_netinetin6_hack
26719 $isc_netinet6in6_hack
26722 main ()
26724 struct in6_pktinfo xyzzy; return (0);
26726 return 0;
26728 _ACEOF
26729 rm -f conftest.$ac_objext
26730 if { (ac_try="$ac_compile"
26731 case "(($ac_try" in
26732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733 *) ac_try_echo=$ac_try;;
26734 esac
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736 (eval "$ac_compile") 2>conftest.er1
26737 ac_status=$?
26738 grep -v '^ *+' conftest.er1 >conftest.err
26739 rm -f conftest.er1
26740 cat conftest.err >&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } && {
26743 test -z "$ac_c_werror_flag" ||
26744 test ! -s conftest.err
26745 } && test -s conftest.$ac_objext; then
26746 { echo "$as_me:$LINENO: result: yes" >&5
26747 echo "${ECHO_T}yes" >&6; }
26748 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
26749 else
26750 echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26753 { echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
26754 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6; }
26755 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
26758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26761 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
26762 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
26763 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
26764 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
26765 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
26766 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
26767 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
26768 ISC_IPV6_H="ipv6.h"
26769 ISC_IPV6_O="ipv6.$O"
26770 ISC_ISCIPV6_O="unix/ipv6.$O"
26771 ISC_IPV6_C="ipv6.c"
26773 esac
26796 { echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
26797 echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6; }
26798 cat >conftest.$ac_ext <<_ACEOF
26799 /* confdefs.h. */
26800 _ACEOF
26801 cat confdefs.h >>conftest.$ac_ext
26802 cat >>conftest.$ac_ext <<_ACEOF
26803 /* end confdefs.h. */
26805 #include <sys/types.h>
26806 #include <net/if6.h>
26809 main ()
26811 struct if_laddrreq a;
26813 return 0;
26815 _ACEOF
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;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_link") 2>conftest.er1
26824 ac_status=$?
26825 grep -v '^ *+' conftest.er1 >conftest.err
26826 rm -f conftest.er1
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } && {
26830 test -z "$ac_c_werror_flag" ||
26831 test ! -s conftest.err
26832 } && test -s conftest$ac_exeext &&
26833 $as_test_x conftest$ac_exeext; then
26834 { echo "$as_me:$LINENO: result: yes" >&5
26835 echo "${ECHO_T}yes" >&6; }
26836 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
26837 else
26838 echo "$as_me: failed program was:" >&5
26839 sed 's/^/| /' conftest.$ac_ext >&5
26841 { echo "$as_me:$LINENO: result: no" >&5
26842 echo "${ECHO_T}no" >&6; }
26843 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
26846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26847 conftest$ac_exeext conftest.$ac_ext
26850 { echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
26851 echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6; }
26852 cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h. */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26859 #include <sys/types.h>
26860 #include <net/if6.h>
26863 main ()
26865 struct if_laddrconf a;
26867 return 0;
26869 _ACEOF
26870 rm -f conftest.$ac_objext conftest$ac_exeext
26871 if { (ac_try="$ac_link"
26872 case "(($ac_try" in
26873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26874 *) ac_try_echo=$ac_try;;
26875 esac
26876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26877 (eval "$ac_link") 2>conftest.er1
26878 ac_status=$?
26879 grep -v '^ *+' conftest.er1 >conftest.err
26880 rm -f conftest.er1
26881 cat conftest.err >&5
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); } && {
26884 test -z "$ac_c_werror_flag" ||
26885 test ! -s conftest.err
26886 } && test -s conftest$ac_exeext &&
26887 $as_test_x conftest$ac_exeext; then
26888 { echo "$as_me:$LINENO: result: yes" >&5
26889 echo "${ECHO_T}yes" >&6; }
26890 ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
26891 else
26892 echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26895 { echo "$as_me:$LINENO: result: no" >&5
26896 echo "${ECHO_T}no" >&6; }
26897 ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
26900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26901 conftest$ac_exeext conftest.$ac_ext
26905 # Check for network functions that are often missing. We do this
26906 # after the libtool checking, so we can put the right suffix on
26907 # the files. It also needs to come after checking for a Kame add-on,
26908 # which provides some (all?) of the desired functions.
26911 { echo "$as_me:$LINENO: checking for inet_ntop with IPv6 support" >&5
26912 echo $ECHO_N "checking for inet_ntop with IPv6 support... $ECHO_C" >&6; }
26913 if test "$cross_compiling" = yes; then
26914 { echo "$as_me:$LINENO: result: assuming inet_ntop needed" >&5
26915 echo "${ECHO_T}assuming inet_ntop needed" >&6; }
26916 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
26917 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
26918 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
26919 else
26920 cat >conftest.$ac_ext <<_ACEOF
26921 /* confdefs.h. */
26922 _ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h. */
26927 #include <sys/types.h>
26928 #include <sys/socket.h>
26929 #include <netinet/in.h>
26930 #include <arpa/inet.h>
26931 main() {
26932 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
26933 _ACEOF
26934 rm -f conftest$ac_exeext
26935 if { (ac_try="$ac_link"
26936 case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26939 esac
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_link") 2>&5
26942 ac_status=$?
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26945 { (case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_try") 2>&5
26951 ac_status=$?
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; }; then
26954 { echo "$as_me:$LINENO: result: yes" >&5
26955 echo "${ECHO_T}yes" >&6; }
26956 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
26957 else
26958 echo "$as_me: program exited with status $ac_status" >&5
26959 echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26962 ( exit $ac_status )
26963 { echo "$as_me:$LINENO: result: no" >&5
26964 echo "${ECHO_T}no" >&6; }
26965 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
26966 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
26967 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
26969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26975 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
26976 # addresses with less than four octets, like "1.2.3". Also leading
26977 # zeros should also be rejected.
26979 { echo "$as_me:$LINENO: checking for working inet_pton with IPv6 support" >&5
26980 echo $ECHO_N "checking for working inet_pton with IPv6 support... $ECHO_C" >&6; }
26981 if test "$cross_compiling" = yes; then
26982 { echo "$as_me:$LINENO: result: assuming target platform has working inet_pton" >&5
26983 echo "${ECHO_T}assuming target platform has working inet_pton" >&6; }
26984 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
26985 else
26986 cat >conftest.$ac_ext <<_ACEOF
26987 /* confdefs.h. */
26988 _ACEOF
26989 cat confdefs.h >>conftest.$ac_ext
26990 cat >>conftest.$ac_ext <<_ACEOF
26991 /* end confdefs.h. */
26993 #include <sys/types.h>
26994 #include <sys/socket.h>
26995 #include <netinet/in.h>
26996 #include <arpa/inet.h>
26997 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
26998 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
26999 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
27000 _ACEOF
27001 rm -f conftest$ac_exeext
27002 if { (ac_try="$ac_link"
27003 case "(($ac_try" in
27004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27005 *) ac_try_echo=$ac_try;;
27006 esac
27007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27008 (eval "$ac_link") 2>&5
27009 ac_status=$?
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27012 { (case "(($ac_try" in
27013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014 *) ac_try_echo=$ac_try;;
27015 esac
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017 (eval "$ac_try") 2>&5
27018 ac_status=$?
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; }; then
27021 { echo "$as_me:$LINENO: result: yes" >&5
27022 echo "${ECHO_T}yes" >&6; }
27023 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
27024 else
27025 echo "$as_me: program exited with status $ac_status" >&5
27026 echo "$as_me: failed program was:" >&5
27027 sed 's/^/| /' conftest.$ac_ext >&5
27029 ( exit $ac_status )
27030 { echo "$as_me:$LINENO: result: no" >&5
27031 echo "${ECHO_T}no" >&6; }
27032 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
27033 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
27034 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
27036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27045 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
27047 case "$host" in
27048 *-dec-osf*)
27049 # Turn on 4.4BSD style sa_len support.
27050 cat >>confdefs.h <<\_ACEOF
27051 #define _SOCKADDR_LEN 1
27052 _ACEOF
27055 esac
27057 { echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
27058 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
27059 cat >conftest.$ac_ext <<_ACEOF
27060 /* confdefs.h. */
27061 _ACEOF
27062 cat confdefs.h >>conftest.$ac_ext
27063 cat >>conftest.$ac_ext <<_ACEOF
27064 /* end confdefs.h. */
27066 #include <sys/types.h>
27067 #include <sys/socket.h>
27069 main ()
27071 struct sockaddr sa; sa.sa_len = 0; return (0);
27073 return 0;
27075 _ACEOF
27076 rm -f conftest.$ac_objext
27077 if { (ac_try="$ac_compile"
27078 case "(($ac_try" in
27079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080 *) ac_try_echo=$ac_try;;
27081 esac
27082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27083 (eval "$ac_compile") 2>conftest.er1
27084 ac_status=$?
27085 grep -v '^ *+' conftest.er1 >conftest.err
27086 rm -f conftest.er1
27087 cat conftest.err >&5
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); } && {
27090 test -z "$ac_c_werror_flag" ||
27091 test ! -s conftest.err
27092 } && test -s conftest.$ac_objext; then
27093 { echo "$as_me:$LINENO: result: yes" >&5
27094 echo "${ECHO_T}yes" >&6; }
27095 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
27096 LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
27097 else
27098 echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27101 { echo "$as_me:$LINENO: result: no" >&5
27102 echo "${ECHO_T}no" >&6; }
27103 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
27104 LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
27107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27112 # Look for a 4.4BSD or 4.3BSD struct msghdr
27114 { echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
27115 echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6; }
27116 cat >conftest.$ac_ext <<_ACEOF
27117 /* confdefs.h. */
27118 _ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h. */
27123 #include <sys/types.h>
27124 #include <sys/socket.h>
27126 main ()
27128 struct msghdr msg; msg.msg_flags = 0; return (0);
27130 return 0;
27132 _ACEOF
27133 rm -f conftest.$ac_objext
27134 if { (ac_try="$ac_compile"
27135 case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27138 esac
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140 (eval "$ac_compile") 2>conftest.er1
27141 ac_status=$?
27142 grep -v '^ *+' conftest.er1 >conftest.err
27143 rm -f conftest.er1
27144 cat conftest.err >&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest.$ac_objext; then
27150 { echo "$as_me:$LINENO: result: 4.4BSD" >&5
27151 echo "${ECHO_T}4.4BSD" >&6; }
27152 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
27153 else
27154 echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27157 { echo "$as_me:$LINENO: result: 4.3BSD" >&5
27158 echo "${ECHO_T}4.3BSD" >&6; }
27159 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
27162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27166 # Look for in_port_t.
27168 { echo "$as_me:$LINENO: checking for type in_port_t" >&5
27169 echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6; }
27170 cat >conftest.$ac_ext <<_ACEOF
27171 /* confdefs.h. */
27172 _ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h. */
27177 #include <sys/types.h>
27178 #include <netinet/in.h>
27180 main ()
27182 in_port_t port = 25; return (0);
27184 return 0;
27186 _ACEOF
27187 rm -f conftest.$ac_objext
27188 if { (ac_try="$ac_compile"
27189 case "(($ac_try" in
27190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27192 esac
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194 (eval "$ac_compile") 2>conftest.er1
27195 ac_status=$?
27196 grep -v '^ *+' conftest.er1 >conftest.err
27197 rm -f conftest.er1
27198 cat conftest.err >&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } && {
27201 test -z "$ac_c_werror_flag" ||
27202 test ! -s conftest.err
27203 } && test -s conftest.$ac_objext; then
27204 { echo "$as_me:$LINENO: result: yes" >&5
27205 echo "${ECHO_T}yes" >&6; }
27206 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
27207 else
27208 echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27211 { echo "$as_me:$LINENO: result: no" >&5
27212 echo "${ECHO_T}no" >&6; }
27213 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
27216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27220 # Check for addrinfo
27222 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
27223 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
27224 cat >conftest.$ac_ext <<_ACEOF
27225 /* confdefs.h. */
27226 _ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h. */
27231 #include <netdb.h>
27233 main ()
27235 struct addrinfo a; return (0);
27237 return 0;
27239 _ACEOF
27240 rm -f conftest.$ac_objext
27241 if { (ac_try="$ac_compile"
27242 case "(($ac_try" in
27243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244 *) ac_try_echo=$ac_try;;
27245 esac
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_compile") 2>conftest.er1
27248 ac_status=$?
27249 grep -v '^ *+' conftest.er1 >conftest.err
27250 rm -f conftest.er1
27251 cat conftest.err >&5
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); } && {
27254 test -z "$ac_c_werror_flag" ||
27255 test ! -s conftest.err
27256 } && test -s conftest.$ac_objext; then
27257 { echo "$as_me:$LINENO: result: yes" >&5
27258 echo "${ECHO_T}yes" >&6; }
27259 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
27260 ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
27261 cat >>confdefs.h <<\_ACEOF
27262 #define HAVE_ADDRINFO 1
27263 _ACEOF
27265 else
27266 echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27269 { echo "$as_me:$LINENO: result: no" >&5
27270 echo "${ECHO_T}no" >&6; }
27271 ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
27272 ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
27275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27280 # Check for rrsetinfo
27282 { echo "$as_me:$LINENO: checking for struct rrsetinfo" >&5
27283 echo $ECHO_N "checking for struct rrsetinfo... $ECHO_C" >&6; }
27284 cat >conftest.$ac_ext <<_ACEOF
27285 /* confdefs.h. */
27286 _ACEOF
27287 cat confdefs.h >>conftest.$ac_ext
27288 cat >>conftest.$ac_ext <<_ACEOF
27289 /* end confdefs.h. */
27291 #include <netdb.h>
27293 main ()
27295 struct rrsetinfo r; return (0);
27297 return 0;
27299 _ACEOF
27300 rm -f conftest.$ac_objext
27301 if { (ac_try="$ac_compile"
27302 case "(($ac_try" in
27303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27304 *) ac_try_echo=$ac_try;;
27305 esac
27306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27307 (eval "$ac_compile") 2>conftest.er1
27308 ac_status=$?
27309 grep -v '^ *+' conftest.er1 >conftest.err
27310 rm -f conftest.er1
27311 cat conftest.err >&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } && {
27314 test -z "$ac_c_werror_flag" ||
27315 test ! -s conftest.err
27316 } && test -s conftest.$ac_objext; then
27317 { echo "$as_me:$LINENO: result: yes" >&5
27318 echo "${ECHO_T}yes" >&6; }
27319 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
27320 else
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27324 { echo "$as_me:$LINENO: result: no" >&5
27325 echo "${ECHO_T}no" >&6; }
27326 ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
27329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27332 { echo "$as_me:$LINENO: checking for int sethostent" >&5
27333 echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6; }
27334 cat >conftest.$ac_ext <<_ACEOF
27335 /* confdefs.h. */
27336 _ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h. */
27341 #include <netdb.h>
27343 main ()
27345 int i = sethostent(0); return(0);
27347 return 0;
27349 _ACEOF
27350 rm -f conftest.$ac_objext
27351 if { (ac_try="$ac_compile"
27352 case "(($ac_try" in
27353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354 *) ac_try_echo=$ac_try;;
27355 esac
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357 (eval "$ac_compile") 2>conftest.er1
27358 ac_status=$?
27359 grep -v '^ *+' conftest.er1 >conftest.err
27360 rm -f conftest.er1
27361 cat conftest.err >&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); } && {
27364 test -z "$ac_c_werror_flag" ||
27365 test ! -s conftest.err
27366 } && test -s conftest.$ac_objext; then
27367 { echo "$as_me:$LINENO: result: yes" >&5
27368 echo "${ECHO_T}yes" >&6; }
27369 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
27370 else
27371 echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27374 { echo "$as_me:$LINENO: result: no" >&5
27375 echo "${ECHO_T}no" >&6; }
27376 ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382 { echo "$as_me:$LINENO: checking for int endhostent" >&5
27383 echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6; }
27384 cat >conftest.$ac_ext <<_ACEOF
27385 /* confdefs.h. */
27386 _ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h. */
27391 #include <netdb.h>
27393 main ()
27395 int i = endhostent(); return(0);
27397 return 0;
27399 _ACEOF
27400 rm -f conftest.$ac_objext
27401 if { (ac_try="$ac_compile"
27402 case "(($ac_try" in
27403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27404 *) ac_try_echo=$ac_try;;
27405 esac
27406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27407 (eval "$ac_compile") 2>conftest.er1
27408 ac_status=$?
27409 grep -v '^ *+' conftest.er1 >conftest.err
27410 rm -f conftest.er1
27411 cat conftest.err >&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } && {
27414 test -z "$ac_c_werror_flag" ||
27415 test ! -s conftest.err
27416 } && test -s conftest.$ac_objext; then
27417 { echo "$as_me:$LINENO: result: yes" >&5
27418 echo "${ECHO_T}yes" >&6; }
27419 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
27420 else
27421 echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.$ac_ext >&5
27424 { echo "$as_me:$LINENO: result: no" >&5
27425 echo "${ECHO_T}no" >&6; }
27426 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
27429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432 { echo "$as_me:$LINENO: checking for getnetbyaddr(in_addr_t, ...)" >&5
27433 echo $ECHO_N "checking for getnetbyaddr(in_addr_t, ...)... $ECHO_C" >&6; }
27434 cat >conftest.$ac_ext <<_ACEOF
27435 /* confdefs.h. */
27436 _ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h. */
27441 #include <netdb.h>
27442 struct netent *getnetbyaddr(in_addr_t, int);
27444 main ()
27448 return 0;
27450 _ACEOF
27451 rm -f conftest.$ac_objext
27452 if { (ac_try="$ac_compile"
27453 case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27456 esac
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_compile") 2>conftest.er1
27459 ac_status=$?
27460 grep -v '^ *+' conftest.er1 >conftest.err
27461 rm -f conftest.er1
27462 cat conftest.err >&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } && {
27465 test -z "$ac_c_werror_flag" ||
27466 test ! -s conftest.err
27467 } && test -s conftest.$ac_objext; then
27468 { echo "$as_me:$LINENO: result: yes" >&5
27469 echo "${ECHO_T}yes" >&6; }
27470 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
27471 else
27472 echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27475 { echo "$as_me:$LINENO: result: no" >&5
27476 echo "${ECHO_T}no" >&6; }
27477 ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
27480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27483 { echo "$as_me:$LINENO: checking for int setnetent" >&5
27484 echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6; }
27485 cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h. */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27492 #include <netdb.h>
27494 main ()
27496 int i = setnetent(0); return(0);
27498 return 0;
27500 _ACEOF
27501 rm -f conftest.$ac_objext
27502 if { (ac_try="$ac_compile"
27503 case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27506 esac
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_compile") 2>conftest.er1
27509 ac_status=$?
27510 grep -v '^ *+' conftest.er1 >conftest.err
27511 rm -f conftest.er1
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } && {
27515 test -z "$ac_c_werror_flag" ||
27516 test ! -s conftest.err
27517 } && test -s conftest.$ac_objext; then
27518 { echo "$as_me:$LINENO: result: yes" >&5
27519 echo "${ECHO_T}yes" >&6; }
27520 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
27521 else
27522 echo "$as_me: failed program was:" >&5
27523 sed 's/^/| /' conftest.$ac_ext >&5
27525 { echo "$as_me:$LINENO: result: no" >&5
27526 echo "${ECHO_T}no" >&6; }
27527 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
27530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27533 { echo "$as_me:$LINENO: checking for int endnetent" >&5
27534 echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6; }
27535 cat >conftest.$ac_ext <<_ACEOF
27536 /* confdefs.h. */
27537 _ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h. */
27542 #include <netdb.h>
27544 main ()
27546 int i = endnetent(); return(0);
27548 return 0;
27550 _ACEOF
27551 rm -f conftest.$ac_objext
27552 if { (ac_try="$ac_compile"
27553 case "(($ac_try" in
27554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27555 *) ac_try_echo=$ac_try;;
27556 esac
27557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27558 (eval "$ac_compile") 2>conftest.er1
27559 ac_status=$?
27560 grep -v '^ *+' conftest.er1 >conftest.err
27561 rm -f conftest.er1
27562 cat conftest.err >&5
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); } && {
27565 test -z "$ac_c_werror_flag" ||
27566 test ! -s conftest.err
27567 } && test -s conftest.$ac_objext; then
27568 { echo "$as_me:$LINENO: result: yes" >&5
27569 echo "${ECHO_T}yes" >&6; }
27570 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
27571 else
27572 echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.$ac_ext >&5
27575 { echo "$as_me:$LINENO: result: no" >&5
27576 echo "${ECHO_T}no" >&6; }
27577 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
27580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583 { echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
27584 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6; }
27585 cat >conftest.$ac_ext <<_ACEOF
27586 /* confdefs.h. */
27587 _ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27592 #include <netdb.h>
27593 struct hostent *gethostbyaddr(const void *, size_t, int);
27595 main ()
27597 return(0);
27599 return 0;
27601 _ACEOF
27602 rm -f conftest.$ac_objext
27603 if { (ac_try="$ac_compile"
27604 case "(($ac_try" in
27605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27606 *) ac_try_echo=$ac_try;;
27607 esac
27608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27609 (eval "$ac_compile") 2>conftest.er1
27610 ac_status=$?
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } && {
27616 test -z "$ac_c_werror_flag" ||
27617 test ! -s conftest.err
27618 } && test -s conftest.$ac_objext; then
27619 { echo "$as_me:$LINENO: result: yes" >&5
27620 echo "${ECHO_T}yes" >&6; }
27621 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
27622 else
27623 echo "$as_me: failed program was:" >&5
27624 sed 's/^/| /' conftest.$ac_ext >&5
27626 { echo "$as_me:$LINENO: result: no" >&5
27627 echo "${ECHO_T}no" >&6; }
27628 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
27631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27634 { echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
27635 echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6; }
27636 cat >conftest.$ac_ext <<_ACEOF
27637 /* confdefs.h. */
27638 _ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h. */
27643 #include <netdb.h>
27645 main ()
27647 h_errno = 1; return(0);
27649 return 0;
27651 _ACEOF
27652 rm -f conftest.$ac_objext
27653 if { (ac_try="$ac_compile"
27654 case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27657 esac
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_compile") 2>conftest.er1
27660 ac_status=$?
27661 grep -v '^ *+' conftest.er1 >conftest.err
27662 rm -f conftest.er1
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } && {
27666 test -z "$ac_c_werror_flag" ||
27667 test ! -s conftest.err
27668 } && test -s conftest.$ac_objext; then
27669 { echo "$as_me:$LINENO: result: yes" >&5
27670 echo "${ECHO_T}yes" >&6; }
27671 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
27672 else
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27676 { echo "$as_me:$LINENO: result: no" >&5
27677 echo "${ECHO_T}no" >&6; }
27678 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
27681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27685 # Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch
27686 # known variations here:
27688 { echo "$as_me:$LINENO: checking for getnameinfo prototype definitions" >&5
27689 echo $ECHO_N "checking for getnameinfo prototype definitions... $ECHO_C" >&6; }
27690 cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h. */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27697 #include <sys/types.h>
27698 #include <sys/socket.h>
27699 #include <netdb.h>
27700 int getnameinfo(const struct sockaddr *, socklen_t, char *,
27701 socklen_t, char *, socklen_t, unsigned int);
27703 main ()
27705 return (0);
27707 return 0;
27709 _ACEOF
27710 rm -f conftest.$ac_objext
27711 if { (ac_try="$ac_compile"
27712 case "(($ac_try" in
27713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714 *) ac_try_echo=$ac_try;;
27715 esac
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717 (eval "$ac_compile") 2>conftest.er1
27718 ac_status=$?
27719 grep -v '^ *+' conftest.er1 >conftest.err
27720 rm -f conftest.er1
27721 cat conftest.err >&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } && {
27724 test -z "$ac_c_werror_flag" ||
27725 test ! -s conftest.err
27726 } && test -s conftest.$ac_objext; then
27727 { echo "$as_me:$LINENO: result: socklen_t for buflen; u_int for flags" >&5
27728 echo "${ECHO_T}socklen_t for buflen; u_int for flags" >&6; }
27730 cat >>confdefs.h <<\_ACEOF
27731 #define IRS_GETNAMEINFO_BUFLEN_T socklen_t
27732 _ACEOF
27735 cat >>confdefs.h <<\_ACEOF
27736 #define IRS_GETNAMEINFO_FLAGS_T unsigned int
27737 _ACEOF
27739 else
27740 echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27743 cat >conftest.$ac_ext <<_ACEOF
27744 /* confdefs.h. */
27745 _ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h. */
27750 #include <sys/types.h>
27751 #include <sys/socket.h>
27752 #include <netdb.h>
27753 int getnameinfo(const struct sockaddr *, socklen_t, char *,
27754 size_t, char *, size_t, int);
27756 main ()
27758 return (0);
27760 return 0;
27762 _ACEOF
27763 rm -f conftest.$ac_objext
27764 if { (ac_try="$ac_compile"
27765 case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27768 esac
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_compile") 2>conftest.er1
27771 ac_status=$?
27772 grep -v '^ *+' conftest.er1 >conftest.err
27773 rm -f conftest.er1
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } && {
27777 test -z "$ac_c_werror_flag" ||
27778 test ! -s conftest.err
27779 } && test -s conftest.$ac_objext; then
27780 { echo "$as_me:$LINENO: result: size_t for buflen; int for flags" >&5
27781 echo "${ECHO_T}size_t for buflen; int for flags" >&6; }
27782 cat >>confdefs.h <<\_ACEOF
27783 #define IRS_GETNAMEINFO_BUFLEN_T size_t
27784 _ACEOF
27786 cat >>confdefs.h <<\_ACEOF
27787 #define IRS_GETNAMEINFO_FLAGS_T int
27788 _ACEOF
27790 else
27791 echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27794 { echo "$as_me:$LINENO: result: not match any subspecies; assume standard definition" >&5
27795 echo "${ECHO_T}not match any subspecies; assume standard definition" >&6; }
27796 cat >>confdefs.h <<\_ACEOF
27797 #define IRS_GETNAMEINFO_BUFLEN_T socklen_t
27798 _ACEOF
27800 cat >>confdefs.h <<\_ACEOF
27801 #define IRS_GETNAMEINFO_FLAGS_T int
27802 _ACEOF
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27812 # ...and same for gai_strerror().
27814 { echo "$as_me:$LINENO: checking for gai_strerror prototype definitions" >&5
27815 echo $ECHO_N "checking for gai_strerror prototype definitions... $ECHO_C" >&6; }
27816 cat >conftest.$ac_ext <<_ACEOF
27817 /* confdefs.h. */
27818 _ACEOF
27819 cat confdefs.h >>conftest.$ac_ext
27820 cat >>conftest.$ac_ext <<_ACEOF
27821 /* end confdefs.h. */
27823 #include <sys/types.h>
27824 #include <sys/socket.h>
27825 #include <netdb.h>
27826 char *gai_strerror(int ecode);
27828 main ()
27830 return (0);
27832 return 0;
27834 _ACEOF
27835 rm -f conftest.$ac_objext
27836 if { (ac_try="$ac_compile"
27837 case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27840 esac
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_compile") 2>conftest.er1
27843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } && {
27849 test -z "$ac_c_werror_flag" ||
27850 test ! -s conftest.err
27851 } && test -s conftest.$ac_objext; then
27852 { echo "$as_me:$LINENO: result: returning char *" >&5
27853 echo "${ECHO_T}returning char *" >&6; }
27855 cat >>confdefs.h <<\_ACEOF
27856 #define IRS_GAISTRERROR_RETURN_T char *
27857 _ACEOF
27859 else
27860 echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27863 { echo "$as_me:$LINENO: result: not match any subspecies; assume standard definition" >&5
27864 echo "${ECHO_T}not match any subspecies; assume standard definition" >&6; }
27865 cat >>confdefs.h <<\_ACEOF
27866 #define IRS_GAISTRERROR_RETURN_T const char *
27867 _ACEOF
27871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27873 { echo "$as_me:$LINENO: checking for getipnodebyname" >&5
27874 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; }
27875 if test "${ac_cv_func_getipnodebyname+set}" = set; then
27876 echo $ECHO_N "(cached) $ECHO_C" >&6
27877 else
27878 cat >conftest.$ac_ext <<_ACEOF
27879 /* confdefs.h. */
27880 _ACEOF
27881 cat confdefs.h >>conftest.$ac_ext
27882 cat >>conftest.$ac_ext <<_ACEOF
27883 /* end confdefs.h. */
27884 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
27885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27886 #define getipnodebyname innocuous_getipnodebyname
27888 /* System header to define __stub macros and hopefully few prototypes,
27889 which can conflict with char getipnodebyname (); below.
27890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27891 <limits.h> exists even on freestanding compilers. */
27893 #ifdef __STDC__
27894 # include <limits.h>
27895 #else
27896 # include <assert.h>
27897 #endif
27899 #undef getipnodebyname
27901 /* Override any GCC internal prototype to avoid an error.
27902 Use char because int might match the return type of a GCC
27903 builtin and then its argument prototype would still apply. */
27904 #ifdef __cplusplus
27905 extern "C"
27906 #endif
27907 char getipnodebyname ();
27908 /* The GNU C library defines this for functions which it implements
27909 to always fail with ENOSYS. Some functions are actually named
27910 something starting with __ and the normal name is an alias. */
27911 #if defined __stub_getipnodebyname || defined __stub___getipnodebyname
27912 choke me
27913 #endif
27916 main ()
27918 return getipnodebyname ();
27920 return 0;
27922 _ACEOF
27923 rm -f conftest.$ac_objext conftest$ac_exeext
27924 if { (ac_try="$ac_link"
27925 case "(($ac_try" in
27926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27927 *) ac_try_echo=$ac_try;;
27928 esac
27929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27930 (eval "$ac_link") 2>conftest.er1
27931 ac_status=$?
27932 grep -v '^ *+' conftest.er1 >conftest.err
27933 rm -f conftest.er1
27934 cat conftest.err >&5
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); } && {
27937 test -z "$ac_c_werror_flag" ||
27938 test ! -s conftest.err
27939 } && test -s conftest$ac_exeext &&
27940 $as_test_x conftest$ac_exeext; then
27941 ac_cv_func_getipnodebyname=yes
27942 else
27943 echo "$as_me: failed program was:" >&5
27944 sed 's/^/| /' conftest.$ac_ext >&5
27946 ac_cv_func_getipnodebyname=no
27949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27950 conftest$ac_exeext conftest.$ac_ext
27952 { echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
27953 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; }
27954 if test $ac_cv_func_getipnodebyname = yes; then
27955 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
27956 else
27957 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
27960 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
27961 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
27962 if test "${ac_cv_func_getnameinfo+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27964 else
27965 cat >conftest.$ac_ext <<_ACEOF
27966 /* confdefs.h. */
27967 _ACEOF
27968 cat confdefs.h >>conftest.$ac_ext
27969 cat >>conftest.$ac_ext <<_ACEOF
27970 /* end confdefs.h. */
27971 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
27972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27973 #define getnameinfo innocuous_getnameinfo
27975 /* System header to define __stub macros and hopefully few prototypes,
27976 which can conflict with char getnameinfo (); below.
27977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27978 <limits.h> exists even on freestanding compilers. */
27980 #ifdef __STDC__
27981 # include <limits.h>
27982 #else
27983 # include <assert.h>
27984 #endif
27986 #undef getnameinfo
27988 /* Override any GCC internal prototype to avoid an error.
27989 Use char because int might match the return type of a GCC
27990 builtin and then its argument prototype would still apply. */
27991 #ifdef __cplusplus
27992 extern "C"
27993 #endif
27994 char getnameinfo ();
27995 /* The GNU C library defines this for functions which it implements
27996 to always fail with ENOSYS. Some functions are actually named
27997 something starting with __ and the normal name is an alias. */
27998 #if defined __stub_getnameinfo || defined __stub___getnameinfo
27999 choke me
28000 #endif
28003 main ()
28005 return getnameinfo ();
28007 return 0;
28009 _ACEOF
28010 rm -f conftest.$ac_objext conftest$ac_exeext
28011 if { (ac_try="$ac_link"
28012 case "(($ac_try" in
28013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014 *) ac_try_echo=$ac_try;;
28015 esac
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017 (eval "$ac_link") 2>conftest.er1
28018 ac_status=$?
28019 grep -v '^ *+' conftest.er1 >conftest.err
28020 rm -f conftest.er1
28021 cat conftest.err >&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } && {
28024 test -z "$ac_c_werror_flag" ||
28025 test ! -s conftest.err
28026 } && test -s conftest$ac_exeext &&
28027 $as_test_x conftest$ac_exeext; then
28028 ac_cv_func_getnameinfo=yes
28029 else
28030 echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28033 ac_cv_func_getnameinfo=no
28036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28037 conftest$ac_exeext conftest.$ac_ext
28039 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
28040 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
28041 if test $ac_cv_func_getnameinfo = yes; then
28042 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
28043 else
28044 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
28047 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
28048 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
28049 if test "${ac_cv_func_getaddrinfo+set}" = set; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 else
28052 cat >conftest.$ac_ext <<_ACEOF
28053 /* confdefs.h. */
28054 _ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h. */
28058 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
28059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28060 #define getaddrinfo innocuous_getaddrinfo
28062 /* System header to define __stub macros and hopefully few prototypes,
28063 which can conflict with char getaddrinfo (); below.
28064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28065 <limits.h> exists even on freestanding compilers. */
28067 #ifdef __STDC__
28068 # include <limits.h>
28069 #else
28070 # include <assert.h>
28071 #endif
28073 #undef getaddrinfo
28075 /* Override any GCC internal prototype to avoid an error.
28076 Use char because int might match the return type of a GCC
28077 builtin and then its argument prototype would still apply. */
28078 #ifdef __cplusplus
28079 extern "C"
28080 #endif
28081 char getaddrinfo ();
28082 /* The GNU C library defines this for functions which it implements
28083 to always fail with ENOSYS. Some functions are actually named
28084 something starting with __ and the normal name is an alias. */
28085 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
28086 choke me
28087 #endif
28090 main ()
28092 return getaddrinfo ();
28094 return 0;
28096 _ACEOF
28097 rm -f conftest.$ac_objext conftest$ac_exeext
28098 if { (ac_try="$ac_link"
28099 case "(($ac_try" in
28100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101 *) ac_try_echo=$ac_try;;
28102 esac
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104 (eval "$ac_link") 2>conftest.er1
28105 ac_status=$?
28106 grep -v '^ *+' conftest.er1 >conftest.err
28107 rm -f conftest.er1
28108 cat conftest.err >&5
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); } && {
28111 test -z "$ac_c_werror_flag" ||
28112 test ! -s conftest.err
28113 } && test -s conftest$ac_exeext &&
28114 $as_test_x conftest$ac_exeext; then
28115 ac_cv_func_getaddrinfo=yes
28116 else
28117 echo "$as_me: failed program was:" >&5
28118 sed 's/^/| /' conftest.$ac_ext >&5
28120 ac_cv_func_getaddrinfo=no
28123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28124 conftest$ac_exeext conftest.$ac_ext
28126 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
28127 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
28128 if test $ac_cv_func_getaddrinfo = yes; then
28129 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
28130 cat >>confdefs.h <<\_ACEOF
28131 #define HAVE_GETADDRINFO 1
28132 _ACEOF
28134 else
28135 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
28138 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
28139 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
28140 if test "${ac_cv_func_gai_strerror+set}" = set; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28142 else
28143 cat >conftest.$ac_ext <<_ACEOF
28144 /* confdefs.h. */
28145 _ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h. */
28149 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
28150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28151 #define gai_strerror innocuous_gai_strerror
28153 /* System header to define __stub macros and hopefully few prototypes,
28154 which can conflict with char gai_strerror (); below.
28155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28156 <limits.h> exists even on freestanding compilers. */
28158 #ifdef __STDC__
28159 # include <limits.h>
28160 #else
28161 # include <assert.h>
28162 #endif
28164 #undef gai_strerror
28166 /* Override any GCC internal prototype to avoid an error.
28167 Use char because int might match the return type of a GCC
28168 builtin and then its argument prototype would still apply. */
28169 #ifdef __cplusplus
28170 extern "C"
28171 #endif
28172 char gai_strerror ();
28173 /* The GNU C library defines this for functions which it implements
28174 to always fail with ENOSYS. Some functions are actually named
28175 something starting with __ and the normal name is an alias. */
28176 #if defined __stub_gai_strerror || defined __stub___gai_strerror
28177 choke me
28178 #endif
28181 main ()
28183 return gai_strerror ();
28185 return 0;
28187 _ACEOF
28188 rm -f conftest.$ac_objext conftest$ac_exeext
28189 if { (ac_try="$ac_link"
28190 case "(($ac_try" in
28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28193 esac
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195 (eval "$ac_link") 2>conftest.er1
28196 ac_status=$?
28197 grep -v '^ *+' conftest.er1 >conftest.err
28198 rm -f conftest.er1
28199 cat conftest.err >&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); } && {
28202 test -z "$ac_c_werror_flag" ||
28203 test ! -s conftest.err
28204 } && test -s conftest$ac_exeext &&
28205 $as_test_x conftest$ac_exeext; then
28206 ac_cv_func_gai_strerror=yes
28207 else
28208 echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28211 ac_cv_func_gai_strerror=no
28214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28215 conftest$ac_exeext conftest.$ac_ext
28217 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
28218 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
28219 if test $ac_cv_func_gai_strerror = yes; then
28220 cat >>confdefs.h <<\_ACEOF
28221 #define HAVE_GAISTRERROR 1
28222 _ACEOF
28231 # Check whether --enable-getifaddrs was given.
28232 if test "${enable_getifaddrs+set}" = set; then
28233 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
28234 else
28235 want_getifaddrs="yes"
28240 # This interface iteration code for getifaddrs() will fall back to using
28241 # /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
28242 # addresses.
28244 case $want_getifaddrs in
28245 glibc)
28246 { echo "$as_me:$LINENO: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
28247 echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
28248 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
28249 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
28250 if test "${ac_cv_func_getifaddrs+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 else
28253 cat >conftest.$ac_ext <<_ACEOF
28254 /* confdefs.h. */
28255 _ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28259 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
28260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28261 #define getifaddrs innocuous_getifaddrs
28263 /* System header to define __stub macros and hopefully few prototypes,
28264 which can conflict with char getifaddrs (); below.
28265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28266 <limits.h> exists even on freestanding compilers. */
28268 #ifdef __STDC__
28269 # include <limits.h>
28270 #else
28271 # include <assert.h>
28272 #endif
28274 #undef getifaddrs
28276 /* Override any GCC internal prototype to avoid an error.
28277 Use char because int might match the return type of a GCC
28278 builtin and then its argument prototype would still apply. */
28279 #ifdef __cplusplus
28280 extern "C"
28281 #endif
28282 char getifaddrs ();
28283 /* The GNU C library defines this for functions which it implements
28284 to always fail with ENOSYS. Some functions are actually named
28285 something starting with __ and the normal name is an alias. */
28286 #if defined __stub_getifaddrs || defined __stub___getifaddrs
28287 choke me
28288 #endif
28291 main ()
28293 return getifaddrs ();
28295 return 0;
28297 _ACEOF
28298 rm -f conftest.$ac_objext conftest$ac_exeext
28299 if { (ac_try="$ac_link"
28300 case "(($ac_try" in
28301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302 *) ac_try_echo=$ac_try;;
28303 esac
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_link") 2>conftest.er1
28306 ac_status=$?
28307 grep -v '^ *+' conftest.er1 >conftest.err
28308 rm -f conftest.er1
28309 cat conftest.err >&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest$ac_exeext &&
28315 $as_test_x conftest$ac_exeext; then
28316 ac_cv_func_getifaddrs=yes
28317 else
28318 echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28321 ac_cv_func_getifaddrs=no
28324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28325 conftest$ac_exeext conftest.$ac_ext
28327 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
28328 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
28329 if test $ac_cv_func_getifaddrs = yes; then
28330 cat >>confdefs.h <<\_ACEOF
28331 #define HAVE_GETIFADDRS 1
28332 _ACEOF
28337 yes)
28338 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
28339 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
28340 if test "${ac_cv_func_getifaddrs+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 else
28343 cat >conftest.$ac_ext <<_ACEOF
28344 /* confdefs.h. */
28345 _ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28349 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
28350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28351 #define getifaddrs innocuous_getifaddrs
28353 /* System header to define __stub macros and hopefully few prototypes,
28354 which can conflict with char getifaddrs (); below.
28355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28356 <limits.h> exists even on freestanding compilers. */
28358 #ifdef __STDC__
28359 # include <limits.h>
28360 #else
28361 # include <assert.h>
28362 #endif
28364 #undef getifaddrs
28366 /* Override any GCC internal prototype to avoid an error.
28367 Use char because int might match the return type of a GCC
28368 builtin and then its argument prototype would still apply. */
28369 #ifdef __cplusplus
28370 extern "C"
28371 #endif
28372 char getifaddrs ();
28373 /* The GNU C library defines this for functions which it implements
28374 to always fail with ENOSYS. Some functions are actually named
28375 something starting with __ and the normal name is an alias. */
28376 #if defined __stub_getifaddrs || defined __stub___getifaddrs
28377 choke me
28378 #endif
28381 main ()
28383 return getifaddrs ();
28385 return 0;
28387 _ACEOF
28388 rm -f conftest.$ac_objext conftest$ac_exeext
28389 if { (ac_try="$ac_link"
28390 case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393 esac
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_link") 2>conftest.er1
28396 ac_status=$?
28397 grep -v '^ *+' conftest.er1 >conftest.err
28398 rm -f conftest.er1
28399 cat conftest.err >&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } && {
28402 test -z "$ac_c_werror_flag" ||
28403 test ! -s conftest.err
28404 } && test -s conftest$ac_exeext &&
28405 $as_test_x conftest$ac_exeext; then
28406 ac_cv_func_getifaddrs=yes
28407 else
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ac_cv_func_getifaddrs=no
28414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28415 conftest$ac_exeext conftest.$ac_ext
28417 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
28418 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
28419 if test $ac_cv_func_getifaddrs = yes; then
28420 cat >>confdefs.h <<\_ACEOF
28421 #define HAVE_GETIFADDRS 1
28422 _ACEOF
28429 esac
28432 # Look for a sysctl call to get the list of network interfaces.
28434 case $ac_cv_header_sys_sysctl_h in
28435 yes)
28436 { echo "$as_me:$LINENO: checking for interface list sysctl" >&5
28437 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6; }
28438 cat >conftest.$ac_ext <<_ACEOF
28439 /* confdefs.h. */
28440 _ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h. */
28445 #include <sys/param.h>
28446 #include <sys/sysctl.h>
28447 #include <sys/socket.h>
28448 #ifdef NET_RT_IFLIST
28449 found_rt_iflist
28450 #endif
28452 _ACEOF
28453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28454 $EGREP "found_rt_iflist" >/dev/null 2>&1; then
28455 { echo "$as_me:$LINENO: result: yes" >&5
28456 echo "${ECHO_T}yes" >&6; }
28457 cat >>confdefs.h <<\_ACEOF
28458 #define HAVE_IFLIST_SYSCTL 1
28459 _ACEOF
28461 else
28462 { echo "$as_me:$LINENO: result: no" >&5
28463 echo "${ECHO_T}no" >&6; }
28465 rm -f conftest*
28468 esac
28471 # Check for some other useful functions that are not ever-present.
28474 # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
28475 # because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
28476 # reportedly defines strsep() without declaring it in <string.h> when
28477 # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
28478 # AC_CHECK_FUNC() incorrectly succeeds because it declares
28479 # the function itself.
28480 { echo "$as_me:$LINENO: checking for correctly declared strsep()" >&5
28481 echo $ECHO_N "checking for correctly declared strsep()... $ECHO_C" >&6; }
28482 cat >conftest.$ac_ext <<_ACEOF
28483 /* confdefs.h. */
28484 _ACEOF
28485 cat confdefs.h >>conftest.$ac_ext
28486 cat >>conftest.$ac_ext <<_ACEOF
28487 /* end confdefs.h. */
28488 #include <string.h>
28490 main ()
28492 char *sp; char *foo = strsep(&sp, ".");
28494 return 0;
28496 _ACEOF
28497 rm -f conftest.$ac_objext conftest$ac_exeext
28498 if { (ac_try="$ac_link"
28499 case "(($ac_try" in
28500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501 *) ac_try_echo=$ac_try;;
28502 esac
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504 (eval "$ac_link") 2>conftest.er1
28505 ac_status=$?
28506 grep -v '^ *+' conftest.er1 >conftest.err
28507 rm -f conftest.er1
28508 cat conftest.err >&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); } && {
28511 test -z "$ac_c_werror_flag" ||
28512 test ! -s conftest.err
28513 } && test -s conftest$ac_exeext &&
28514 $as_test_x conftest$ac_exeext; then
28515 { echo "$as_me:$LINENO: result: yes" >&5
28516 echo "${ECHO_T}yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
28517 else
28518 echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28521 { echo "$as_me:$LINENO: result: no" >&5
28522 echo "${ECHO_T}no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
28525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28526 conftest$ac_exeext conftest.$ac_ext
28529 { echo "$as_me:$LINENO: checking for memmove" >&5
28530 echo $ECHO_N "checking for memmove... $ECHO_C" >&6; }
28531 if test "${ac_cv_func_memmove+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28533 else
28534 cat >conftest.$ac_ext <<_ACEOF
28535 /* confdefs.h. */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28540 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
28541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28542 #define memmove innocuous_memmove
28544 /* System header to define __stub macros and hopefully few prototypes,
28545 which can conflict with char memmove (); below.
28546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28547 <limits.h> exists even on freestanding compilers. */
28549 #ifdef __STDC__
28550 # include <limits.h>
28551 #else
28552 # include <assert.h>
28553 #endif
28555 #undef memmove
28557 /* Override any GCC internal prototype to avoid an error.
28558 Use char because int might match the return type of a GCC
28559 builtin and then its argument prototype would still apply. */
28560 #ifdef __cplusplus
28561 extern "C"
28562 #endif
28563 char memmove ();
28564 /* The GNU C library defines this for functions which it implements
28565 to always fail with ENOSYS. Some functions are actually named
28566 something starting with __ and the normal name is an alias. */
28567 #if defined __stub_memmove || defined __stub___memmove
28568 choke me
28569 #endif
28572 main ()
28574 return memmove ();
28576 return 0;
28578 _ACEOF
28579 rm -f conftest.$ac_objext conftest$ac_exeext
28580 if { (ac_try="$ac_link"
28581 case "(($ac_try" in
28582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583 *) ac_try_echo=$ac_try;;
28584 esac
28585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586 (eval "$ac_link") 2>conftest.er1
28587 ac_status=$?
28588 grep -v '^ *+' conftest.er1 >conftest.err
28589 rm -f conftest.er1
28590 cat conftest.err >&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); } && {
28593 test -z "$ac_c_werror_flag" ||
28594 test ! -s conftest.err
28595 } && test -s conftest$ac_exeext &&
28596 $as_test_x conftest$ac_exeext; then
28597 ac_cv_func_memmove=yes
28598 else
28599 echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28602 ac_cv_func_memmove=no
28605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28606 conftest$ac_exeext conftest.$ac_ext
28608 { echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
28609 echo "${ECHO_T}$ac_cv_func_memmove" >&6; }
28610 if test $ac_cv_func_memmove = yes; then
28611 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
28612 else
28613 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
28618 { echo "$as_me:$LINENO: checking for strtoul" >&5
28619 echo $ECHO_N "checking for strtoul... $ECHO_C" >&6; }
28620 if test "${ac_cv_func_strtoul+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28622 else
28623 cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h. */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h. */
28629 /* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul.
28630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28631 #define strtoul innocuous_strtoul
28633 /* System header to define __stub macros and hopefully few prototypes,
28634 which can conflict with char strtoul (); below.
28635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28636 <limits.h> exists even on freestanding compilers. */
28638 #ifdef __STDC__
28639 # include <limits.h>
28640 #else
28641 # include <assert.h>
28642 #endif
28644 #undef strtoul
28646 /* Override any GCC internal prototype to avoid an error.
28647 Use char because int might match the return type of a GCC
28648 builtin and then its argument prototype would still apply. */
28649 #ifdef __cplusplus
28650 extern "C"
28651 #endif
28652 char strtoul ();
28653 /* The GNU C library defines this for functions which it implements
28654 to always fail with ENOSYS. Some functions are actually named
28655 something starting with __ and the normal name is an alias. */
28656 #if defined __stub_strtoul || defined __stub___strtoul
28657 choke me
28658 #endif
28661 main ()
28663 return strtoul ();
28665 return 0;
28667 _ACEOF
28668 rm -f conftest.$ac_objext conftest$ac_exeext
28669 if { (ac_try="$ac_link"
28670 case "(($ac_try" in
28671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672 *) ac_try_echo=$ac_try;;
28673 esac
28674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28675 (eval "$ac_link") 2>conftest.er1
28676 ac_status=$?
28677 grep -v '^ *+' conftest.er1 >conftest.err
28678 rm -f conftest.er1
28679 cat conftest.err >&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } && {
28682 test -z "$ac_c_werror_flag" ||
28683 test ! -s conftest.err
28684 } && test -s conftest$ac_exeext &&
28685 $as_test_x conftest$ac_exeext; then
28686 ac_cv_func_strtoul=yes
28687 else
28688 echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28691 ac_cv_func_strtoul=no
28694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28695 conftest$ac_exeext conftest.$ac_ext
28697 { echo "$as_me:$LINENO: result: $ac_cv_func_strtoul" >&5
28698 echo "${ECHO_T}$ac_cv_func_strtoul" >&6; }
28699 if test $ac_cv_func_strtoul = yes; then
28700 ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
28701 LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
28702 GENRANDOMLIB=""
28703 else
28704 ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
28705 LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
28706 GENRANDOMLIB='${ISCLIBS}'
28713 { echo "$as_me:$LINENO: checking for strlcpy" >&5
28714 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
28715 if test "${ac_cv_func_strlcpy+set}" = set; then
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28717 else
28718 cat >conftest.$ac_ext <<_ACEOF
28719 /* confdefs.h. */
28720 _ACEOF
28721 cat confdefs.h >>conftest.$ac_ext
28722 cat >>conftest.$ac_ext <<_ACEOF
28723 /* end confdefs.h. */
28724 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
28725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28726 #define strlcpy innocuous_strlcpy
28728 /* System header to define __stub macros and hopefully few prototypes,
28729 which can conflict with char strlcpy (); below.
28730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28731 <limits.h> exists even on freestanding compilers. */
28733 #ifdef __STDC__
28734 # include <limits.h>
28735 #else
28736 # include <assert.h>
28737 #endif
28739 #undef strlcpy
28741 /* Override any GCC internal prototype to avoid an error.
28742 Use char because int might match the return type of a GCC
28743 builtin and then its argument prototype would still apply. */
28744 #ifdef __cplusplus
28745 extern "C"
28746 #endif
28747 char strlcpy ();
28748 /* The GNU C library defines this for functions which it implements
28749 to always fail with ENOSYS. Some functions are actually named
28750 something starting with __ and the normal name is an alias. */
28751 #if defined __stub_strlcpy || defined __stub___strlcpy
28752 choke me
28753 #endif
28756 main ()
28758 return strlcpy ();
28760 return 0;
28762 _ACEOF
28763 rm -f conftest.$ac_objext conftest$ac_exeext
28764 if { (ac_try="$ac_link"
28765 case "(($ac_try" in
28766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28768 esac
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_link") 2>conftest.er1
28771 ac_status=$?
28772 grep -v '^ *+' conftest.er1 >conftest.err
28773 rm -f conftest.er1
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } && {
28777 test -z "$ac_c_werror_flag" ||
28778 test ! -s conftest.err
28779 } && test -s conftest$ac_exeext &&
28780 $as_test_x conftest$ac_exeext; then
28781 ac_cv_func_strlcpy=yes
28782 else
28783 echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28786 ac_cv_func_strlcpy=no
28789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28790 conftest$ac_exeext conftest.$ac_ext
28792 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
28793 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; }
28794 if test $ac_cv_func_strlcpy = yes; then
28795 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
28796 else
28797 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
28802 { echo "$as_me:$LINENO: checking for strlcat" >&5
28803 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
28804 if test "${ac_cv_func_strlcat+set}" = set; then
28805 echo $ECHO_N "(cached) $ECHO_C" >&6
28806 else
28807 cat >conftest.$ac_ext <<_ACEOF
28808 /* confdefs.h. */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28813 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
28814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28815 #define strlcat innocuous_strlcat
28817 /* System header to define __stub macros and hopefully few prototypes,
28818 which can conflict with char strlcat (); below.
28819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28820 <limits.h> exists even on freestanding compilers. */
28822 #ifdef __STDC__
28823 # include <limits.h>
28824 #else
28825 # include <assert.h>
28826 #endif
28828 #undef strlcat
28830 /* Override any GCC internal prototype to avoid an error.
28831 Use char because int might match the return type of a GCC
28832 builtin and then its argument prototype would still apply. */
28833 #ifdef __cplusplus
28834 extern "C"
28835 #endif
28836 char strlcat ();
28837 /* The GNU C library defines this for functions which it implements
28838 to always fail with ENOSYS. Some functions are actually named
28839 something starting with __ and the normal name is an alias. */
28840 #if defined __stub_strlcat || defined __stub___strlcat
28841 choke me
28842 #endif
28845 main ()
28847 return strlcat ();
28849 return 0;
28851 _ACEOF
28852 rm -f conftest.$ac_objext conftest$ac_exeext
28853 if { (ac_try="$ac_link"
28854 case "(($ac_try" in
28855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856 *) ac_try_echo=$ac_try;;
28857 esac
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859 (eval "$ac_link") 2>conftest.er1
28860 ac_status=$?
28861 grep -v '^ *+' conftest.er1 >conftest.err
28862 rm -f conftest.er1
28863 cat conftest.err >&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); } && {
28866 test -z "$ac_c_werror_flag" ||
28867 test ! -s conftest.err
28868 } && test -s conftest$ac_exeext &&
28869 $as_test_x conftest$ac_exeext; then
28870 ac_cv_func_strlcat=yes
28871 else
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28875 ac_cv_func_strlcat=no
28878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28879 conftest$ac_exeext conftest.$ac_ext
28881 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
28882 echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
28883 if test $ac_cv_func_strlcat = yes; then
28884 ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
28885 else
28886 ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
28891 ISC_PRINT_OBJS=
28892 ISC_PRINT_SRCS=
28893 { echo "$as_me:$LINENO: checking sprintf" >&5
28894 echo $ECHO_N "checking sprintf... $ECHO_C" >&6; }
28895 cat >conftest.$ac_ext <<_ACEOF
28896 /* confdefs.h. */
28897 _ACEOF
28898 cat confdefs.h >>conftest.$ac_ext
28899 cat >>conftest.$ac_ext <<_ACEOF
28900 /* end confdefs.h. */
28902 #include <stdio.h>
28905 main ()
28907 char buf[2]; return(*sprintf(buf,"x"));
28909 return 0;
28911 _ACEOF
28912 rm -f conftest.$ac_objext
28913 if { (ac_try="$ac_compile"
28914 case "(($ac_try" in
28915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916 *) ac_try_echo=$ac_try;;
28917 esac
28918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28919 (eval "$ac_compile") 2>conftest.er1
28920 ac_status=$?
28921 grep -v '^ *+' conftest.er1 >conftest.err
28922 rm -f conftest.er1
28923 cat conftest.err >&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); } && {
28926 test -z "$ac_c_werror_flag" ||
28927 test ! -s conftest.err
28928 } && test -s conftest.$ac_objext; then
28930 ISC_PRINT_OBJS="print.$O"
28931 ISC_PRINT_SRCS="print.c"
28932 ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
28933 LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
28935 else
28936 echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28939 ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF"
28940 LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF"
28944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28948 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
28949 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
28950 if test "${ac_cv_func_vsnprintf+set}" = set; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28952 else
28953 cat >conftest.$ac_ext <<_ACEOF
28954 /* confdefs.h. */
28955 _ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
28960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28961 #define vsnprintf innocuous_vsnprintf
28963 /* System header to define __stub macros and hopefully few prototypes,
28964 which can conflict with char vsnprintf (); below.
28965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28966 <limits.h> exists even on freestanding compilers. */
28968 #ifdef __STDC__
28969 # include <limits.h>
28970 #else
28971 # include <assert.h>
28972 #endif
28974 #undef vsnprintf
28976 /* Override any GCC internal prototype to avoid an error.
28977 Use char because int might match the return type of a GCC
28978 builtin and then its argument prototype would still apply. */
28979 #ifdef __cplusplus
28980 extern "C"
28981 #endif
28982 char vsnprintf ();
28983 /* The GNU C library defines this for functions which it implements
28984 to always fail with ENOSYS. Some functions are actually named
28985 something starting with __ and the normal name is an alias. */
28986 #if defined __stub_vsnprintf || defined __stub___vsnprintf
28987 choke me
28988 #endif
28991 main ()
28993 return vsnprintf ();
28995 return 0;
28997 _ACEOF
28998 rm -f conftest.$ac_objext conftest$ac_exeext
28999 if { (ac_try="$ac_link"
29000 case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29003 esac
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_link") 2>conftest.er1
29006 ac_status=$?
29007 grep -v '^ *+' conftest.er1 >conftest.err
29008 rm -f conftest.er1
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } && {
29012 test -z "$ac_c_werror_flag" ||
29013 test ! -s conftest.err
29014 } && test -s conftest$ac_exeext &&
29015 $as_test_x conftest$ac_exeext; then
29016 ac_cv_func_vsnprintf=yes
29017 else
29018 echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29021 ac_cv_func_vsnprintf=no
29024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29025 conftest$ac_exeext conftest.$ac_ext
29027 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
29028 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
29029 if test $ac_cv_func_vsnprintf = yes; then
29030 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
29031 LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF"
29032 else
29033 ISC_PRINT_OBJS="print.$O"
29034 ISC_PRINT_SRCS="print.c"
29035 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
29036 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
29041 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
29042 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
29044 { echo "$as_me:$LINENO: checking for strerror" >&5
29045 echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
29046 if test "${ac_cv_func_strerror+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29048 else
29049 cat >conftest.$ac_ext <<_ACEOF
29050 /* confdefs.h. */
29051 _ACEOF
29052 cat confdefs.h >>conftest.$ac_ext
29053 cat >>conftest.$ac_ext <<_ACEOF
29054 /* end confdefs.h. */
29055 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
29056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29057 #define strerror innocuous_strerror
29059 /* System header to define __stub macros and hopefully few prototypes,
29060 which can conflict with char strerror (); below.
29061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29062 <limits.h> exists even on freestanding compilers. */
29064 #ifdef __STDC__
29065 # include <limits.h>
29066 #else
29067 # include <assert.h>
29068 #endif
29070 #undef strerror
29072 /* Override any GCC internal prototype to avoid an error.
29073 Use char because int might match the return type of a GCC
29074 builtin and then its argument prototype would still apply. */
29075 #ifdef __cplusplus
29076 extern "C"
29077 #endif
29078 char strerror ();
29079 /* The GNU C library defines this for functions which it implements
29080 to always fail with ENOSYS. Some functions are actually named
29081 something starting with __ and the normal name is an alias. */
29082 #if defined __stub_strerror || defined __stub___strerror
29083 choke me
29084 #endif
29087 main ()
29089 return strerror ();
29091 return 0;
29093 _ACEOF
29094 rm -f conftest.$ac_objext conftest$ac_exeext
29095 if { (ac_try="$ac_link"
29096 case "(($ac_try" in
29097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098 *) ac_try_echo=$ac_try;;
29099 esac
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101 (eval "$ac_link") 2>conftest.er1
29102 ac_status=$?
29103 grep -v '^ *+' conftest.er1 >conftest.err
29104 rm -f conftest.er1
29105 cat conftest.err >&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); } && {
29108 test -z "$ac_c_werror_flag" ||
29109 test ! -s conftest.err
29110 } && test -s conftest$ac_exeext &&
29111 $as_test_x conftest$ac_exeext; then
29112 ac_cv_func_strerror=yes
29113 else
29114 echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29117 ac_cv_func_strerror=no
29120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29121 conftest$ac_exeext conftest.$ac_ext
29123 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
29124 echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
29125 if test $ac_cv_func_strerror = yes; then
29126 cat >>confdefs.h <<\_ACEOF
29127 #define HAVE_STRERROR 1
29128 _ACEOF
29137 # Use our own SPNEGO implementation?
29139 # Check whether --enable-isc-spnego was given.
29140 if test "${enable_isc_spnego+set}" = set; then
29141 enableval=$enable_isc_spnego;
29145 if test -n "$USE_GSSAPI"
29146 then
29147 case "$enable_isc_spnego" in
29148 yes|'')
29149 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
29150 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
29151 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
29152 { echo "$as_me:$LINENO: result: using SPNEGO from lib/dns" >&5
29153 echo "${ECHO_T}using SPNEGO from lib/dns" >&6; }
29156 { echo "$as_me:$LINENO: result: using SPNEGO from GSSAPI library" >&5
29157 echo "${ECHO_T}using SPNEGO from GSSAPI library" >&6; }
29159 esac
29167 # Determine the printf format characters to use when printing
29168 # values of type isc_int64_t. This will normally be "ll", but where
29169 # the compiler treats "long long" as a alias for "long" and printf
29170 # doesn't know about "long long" use "l". Hopefully the sprintf
29171 # will produce a inconsistent result in the later case. If the compiler
29172 # fails due to seeing "%lld" we fall back to "l".
29174 # Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
29175 # %ld even for (long long)/
29177 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
29178 # configure on Win32.
29180 { echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
29181 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6; }
29182 if test "$cross_compiling" = yes; then
29183 { echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
29184 echo "${ECHO_T}assuming target platform uses ll" >&6; }
29185 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
29186 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
29187 else
29188 cat >conftest.$ac_ext <<_ACEOF
29189 /* confdefs.h. */
29190 _ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h. */
29195 #include <stdio.h>
29196 main() {
29197 long long int j = 0;
29198 char buf[100];
29199 buf[0] = 0;
29200 sprintf(buf, "%lld", j);
29201 exit((sizeof(long long int) != sizeof(long int))? 0 :
29202 (strcmp(buf, "0") != 0));
29205 _ACEOF
29206 rm -f conftest$ac_exeext
29207 if { (ac_try="$ac_link"
29208 case "(($ac_try" in
29209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29210 *) ac_try_echo=$ac_try;;
29211 esac
29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213 (eval "$ac_link") 2>&5
29214 ac_status=$?
29215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29217 { (case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29220 esac
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_try") 2>&5
29223 ac_status=$?
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; }; then
29226 { echo "$as_me:$LINENO: result: ll" >&5
29227 echo "${ECHO_T}ll" >&6; }
29228 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
29229 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
29230 else
29231 echo "$as_me: program exited with status $ac_status" >&5
29232 echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29235 ( exit $ac_status )
29236 { echo "$as_me:$LINENO: result: l" >&5
29237 echo "${ECHO_T}l" >&6; }
29238 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
29239 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"'
29241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29249 # Security Stuff
29251 # Note it is very recommended to *not* disable chroot(),
29252 # this is only because chroot() was made obsolete by Posix.
29253 # Check whether --enable-chroot was given.
29254 if test "${enable_chroot+set}" = set; then
29255 enableval=$enable_chroot;
29258 case "$enable_chroot" in
29259 yes|'')
29261 for ac_func in chroot
29263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29267 echo $ECHO_N "(cached) $ECHO_C" >&6
29268 else
29269 cat >conftest.$ac_ext <<_ACEOF
29270 /* confdefs.h. */
29271 _ACEOF
29272 cat confdefs.h >>conftest.$ac_ext
29273 cat >>conftest.$ac_ext <<_ACEOF
29274 /* end confdefs.h. */
29275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29277 #define $ac_func innocuous_$ac_func
29279 /* System header to define __stub macros and hopefully few prototypes,
29280 which can conflict with char $ac_func (); below.
29281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29282 <limits.h> exists even on freestanding compilers. */
29284 #ifdef __STDC__
29285 # include <limits.h>
29286 #else
29287 # include <assert.h>
29288 #endif
29290 #undef $ac_func
29292 /* Override any GCC internal prototype to avoid an error.
29293 Use char because int might match the return type of a GCC
29294 builtin and then its argument prototype would still apply. */
29295 #ifdef __cplusplus
29296 extern "C"
29297 #endif
29298 char $ac_func ();
29299 /* The GNU C library defines this for functions which it implements
29300 to always fail with ENOSYS. Some functions are actually named
29301 something starting with __ and the normal name is an alias. */
29302 #if defined __stub_$ac_func || defined __stub___$ac_func
29303 choke me
29304 #endif
29307 main ()
29309 return $ac_func ();
29311 return 0;
29313 _ACEOF
29314 rm -f conftest.$ac_objext conftest$ac_exeext
29315 if { (ac_try="$ac_link"
29316 case "(($ac_try" in
29317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29318 *) ac_try_echo=$ac_try;;
29319 esac
29320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29321 (eval "$ac_link") 2>conftest.er1
29322 ac_status=$?
29323 grep -v '^ *+' conftest.er1 >conftest.err
29324 rm -f conftest.er1
29325 cat conftest.err >&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } && {
29328 test -z "$ac_c_werror_flag" ||
29329 test ! -s conftest.err
29330 } && test -s conftest$ac_exeext &&
29331 $as_test_x conftest$ac_exeext; then
29332 eval "$as_ac_var=yes"
29333 else
29334 echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29337 eval "$as_ac_var=no"
29340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29341 conftest$ac_exeext conftest.$ac_ext
29343 ac_res=`eval echo '${'$as_ac_var'}'`
29344 { echo "$as_me:$LINENO: result: $ac_res" >&5
29345 echo "${ECHO_T}$ac_res" >&6; }
29346 if test `eval echo '${'$as_ac_var'}'` = yes; then
29347 cat >>confdefs.h <<_ACEOF
29348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29349 _ACEOF
29352 done
29357 esac
29358 # Check whether --enable-linux-caps was given.
29359 if test "${enable_linux_caps+set}" = set; then
29360 enableval=$enable_linux_caps;
29363 case "$enable_linux_caps" in
29364 yes|'')
29367 for ac_header in linux/capability.h sys/capability.h
29369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29376 ac_res=`eval echo '${'$as_ac_Header'}'`
29377 { echo "$as_me:$LINENO: result: $ac_res" >&5
29378 echo "${ECHO_T}$ac_res" >&6; }
29379 else
29380 # Is the header compilable?
29381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29383 cat >conftest.$ac_ext <<_ACEOF
29384 /* confdefs.h. */
29385 _ACEOF
29386 cat confdefs.h >>conftest.$ac_ext
29387 cat >>conftest.$ac_ext <<_ACEOF
29388 /* end confdefs.h. */
29389 $ac_includes_default
29390 #include <$ac_header>
29391 _ACEOF
29392 rm -f conftest.$ac_objext
29393 if { (ac_try="$ac_compile"
29394 case "(($ac_try" in
29395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29396 *) ac_try_echo=$ac_try;;
29397 esac
29398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29399 (eval "$ac_compile") 2>conftest.er1
29400 ac_status=$?
29401 grep -v '^ *+' conftest.er1 >conftest.err
29402 rm -f conftest.er1
29403 cat conftest.err >&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); } && {
29406 test -z "$ac_c_werror_flag" ||
29407 test ! -s conftest.err
29408 } && test -s conftest.$ac_objext; then
29409 ac_header_compiler=yes
29410 else
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29414 ac_header_compiler=no
29417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29419 echo "${ECHO_T}$ac_header_compiler" >&6; }
29421 # Is the header present?
29422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29424 cat >conftest.$ac_ext <<_ACEOF
29425 /* confdefs.h. */
29426 _ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h. */
29430 #include <$ac_header>
29431 _ACEOF
29432 if { (ac_try="$ac_cpp conftest.$ac_ext"
29433 case "(($ac_try" in
29434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29435 *) ac_try_echo=$ac_try;;
29436 esac
29437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29439 ac_status=$?
29440 grep -v '^ *+' conftest.er1 >conftest.err
29441 rm -f conftest.er1
29442 cat conftest.err >&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } >/dev/null && {
29445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29446 test ! -s conftest.err
29447 }; then
29448 ac_header_preproc=yes
29449 else
29450 echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.$ac_ext >&5
29453 ac_header_preproc=no
29456 rm -f conftest.err conftest.$ac_ext
29457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29458 echo "${ECHO_T}$ac_header_preproc" >&6; }
29460 # So? What about this header?
29461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29462 yes:no: )
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29467 ac_header_preproc=yes
29469 no:yes:* )
29470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29484 esac
29485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29488 echo $ECHO_N "(cached) $ECHO_C" >&6
29489 else
29490 eval "$as_ac_Header=\$ac_header_preproc"
29492 ac_res=`eval echo '${'$as_ac_Header'}'`
29493 { echo "$as_me:$LINENO: result: $ac_res" >&5
29494 echo "${ECHO_T}$ac_res" >&6; }
29497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29498 cat >>confdefs.h <<_ACEOF
29499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29500 _ACEOF
29504 done
29507 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
29508 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
29509 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
29510 echo $ECHO_N "(cached) $ECHO_C" >&6
29511 else
29512 ac_check_lib_save_LIBS=$LIBS
29513 LIBS="-lcap $LIBS"
29514 cat >conftest.$ac_ext <<_ACEOF
29515 /* confdefs.h. */
29516 _ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h. */
29521 /* Override any GCC internal prototype to avoid an error.
29522 Use char because int might match the return type of a GCC
29523 builtin and then its argument prototype would still apply. */
29524 #ifdef __cplusplus
29525 extern "C"
29526 #endif
29527 char cap_set_proc ();
29529 main ()
29531 return cap_set_proc ();
29533 return 0;
29535 _ACEOF
29536 rm -f conftest.$ac_objext conftest$ac_exeext
29537 if { (ac_try="$ac_link"
29538 case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29541 esac
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_link") 2>conftest.er1
29544 ac_status=$?
29545 grep -v '^ *+' conftest.er1 >conftest.err
29546 rm -f conftest.er1
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } && {
29550 test -z "$ac_c_werror_flag" ||
29551 test ! -s conftest.err
29552 } && test -s conftest$ac_exeext &&
29553 $as_test_x conftest$ac_exeext; then
29554 ac_cv_lib_cap_cap_set_proc=yes
29555 else
29556 echo "$as_me: failed program was:" >&5
29557 sed 's/^/| /' conftest.$ac_ext >&5
29559 ac_cv_lib_cap_cap_set_proc=no
29562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29563 conftest$ac_exeext conftest.$ac_ext
29564 LIBS=$ac_check_lib_save_LIBS
29566 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
29567 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
29568 if test $ac_cv_lib_cap_cap_set_proc = yes; then
29569 cat >>confdefs.h <<_ACEOF
29570 #define HAVE_LIBCAP 1
29571 _ACEOF
29573 LIBS="-lcap $LIBS"
29580 esac
29582 for ac_header in sys/prctl.h
29584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29589 echo $ECHO_N "(cached) $ECHO_C" >&6
29591 ac_res=`eval echo '${'$as_ac_Header'}'`
29592 { echo "$as_me:$LINENO: result: $ac_res" >&5
29593 echo "${ECHO_T}$ac_res" >&6; }
29594 else
29595 # Is the header compilable?
29596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29598 cat >conftest.$ac_ext <<_ACEOF
29599 /* confdefs.h. */
29600 _ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29604 $ac_includes_default
29605 #include <$ac_header>
29606 _ACEOF
29607 rm -f conftest.$ac_objext
29608 if { (ac_try="$ac_compile"
29609 case "(($ac_try" in
29610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29611 *) ac_try_echo=$ac_try;;
29612 esac
29613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29614 (eval "$ac_compile") 2>conftest.er1
29615 ac_status=$?
29616 grep -v '^ *+' conftest.er1 >conftest.err
29617 rm -f conftest.er1
29618 cat conftest.err >&5
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); } && {
29621 test -z "$ac_c_werror_flag" ||
29622 test ! -s conftest.err
29623 } && test -s conftest.$ac_objext; then
29624 ac_header_compiler=yes
29625 else
29626 echo "$as_me: failed program was:" >&5
29627 sed 's/^/| /' conftest.$ac_ext >&5
29629 ac_header_compiler=no
29632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29634 echo "${ECHO_T}$ac_header_compiler" >&6; }
29636 # Is the header present?
29637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29639 cat >conftest.$ac_ext <<_ACEOF
29640 /* confdefs.h. */
29641 _ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h. */
29645 #include <$ac_header>
29646 _ACEOF
29647 if { (ac_try="$ac_cpp conftest.$ac_ext"
29648 case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29651 esac
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29654 ac_status=$?
29655 grep -v '^ *+' conftest.er1 >conftest.err
29656 rm -f conftest.er1
29657 cat conftest.err >&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } >/dev/null && {
29660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29661 test ! -s conftest.err
29662 }; then
29663 ac_header_preproc=yes
29664 else
29665 echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29668 ac_header_preproc=no
29671 rm -f conftest.err conftest.$ac_ext
29672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29673 echo "${ECHO_T}$ac_header_preproc" >&6; }
29675 # So? What about this header?
29676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29677 yes:no: )
29678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29682 ac_header_preproc=yes
29684 no:yes:* )
29685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29699 esac
29700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29704 else
29705 eval "$as_ac_Header=\$ac_header_preproc"
29707 ac_res=`eval echo '${'$as_ac_Header'}'`
29708 { echo "$as_me:$LINENO: result: $ac_res" >&5
29709 echo "${ECHO_T}$ac_res" >&6; }
29712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29713 cat >>confdefs.h <<_ACEOF
29714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29715 _ACEOF
29719 done
29723 for ac_header in sys/un.h
29725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29732 ac_res=`eval echo '${'$as_ac_Header'}'`
29733 { echo "$as_me:$LINENO: result: $ac_res" >&5
29734 echo "${ECHO_T}$ac_res" >&6; }
29735 else
29736 # Is the header compilable?
29737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29739 cat >conftest.$ac_ext <<_ACEOF
29740 /* confdefs.h. */
29741 _ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h. */
29745 $ac_includes_default
29746 #include <$ac_header>
29747 _ACEOF
29748 rm -f conftest.$ac_objext
29749 if { (ac_try="$ac_compile"
29750 case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29753 esac
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_compile") 2>conftest.er1
29756 ac_status=$?
29757 grep -v '^ *+' conftest.er1 >conftest.err
29758 rm -f conftest.er1
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } && {
29762 test -z "$ac_c_werror_flag" ||
29763 test ! -s conftest.err
29764 } && test -s conftest.$ac_objext; then
29765 ac_header_compiler=yes
29766 else
29767 echo "$as_me: failed program was:" >&5
29768 sed 's/^/| /' conftest.$ac_ext >&5
29770 ac_header_compiler=no
29773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29775 echo "${ECHO_T}$ac_header_compiler" >&6; }
29777 # Is the header present?
29778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29780 cat >conftest.$ac_ext <<_ACEOF
29781 /* confdefs.h. */
29782 _ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h. */
29786 #include <$ac_header>
29787 _ACEOF
29788 if { (ac_try="$ac_cpp conftest.$ac_ext"
29789 case "(($ac_try" in
29790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791 *) ac_try_echo=$ac_try;;
29792 esac
29793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29795 ac_status=$?
29796 grep -v '^ *+' conftest.er1 >conftest.err
29797 rm -f conftest.er1
29798 cat conftest.err >&5
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); } >/dev/null && {
29801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29802 test ! -s conftest.err
29803 }; then
29804 ac_header_preproc=yes
29805 else
29806 echo "$as_me: failed program was:" >&5
29807 sed 's/^/| /' conftest.$ac_ext >&5
29809 ac_header_preproc=no
29812 rm -f conftest.err conftest.$ac_ext
29813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29814 echo "${ECHO_T}$ac_header_preproc" >&6; }
29816 # So? What about this header?
29817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29818 yes:no: )
29819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29823 ac_header_preproc=yes
29825 no:yes:* )
29826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29840 esac
29841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29844 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 else
29846 eval "$as_ac_Header=\$ac_header_preproc"
29848 ac_res=`eval echo '${'$as_ac_Header'}'`
29849 { echo "$as_me:$LINENO: result: $ac_res" >&5
29850 echo "${ECHO_T}$ac_res" >&6; }
29853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29854 cat >>confdefs.h <<_ACEOF
29855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29856 _ACEOF
29857 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
29859 else
29860 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
29864 done
29868 case "$host" in
29869 *-solaris*)
29871 cat >>confdefs.h <<\_ACEOF
29872 #define NEED_SECURE_DIRECTORY 1
29873 _ACEOF
29876 *-sunos*)
29878 cat >>confdefs.h <<\_ACEOF
29879 #define NEED_SECURE_DIRECTORY 1
29880 _ACEOF
29883 esac
29886 # Time Zone Stuff
29888 { echo "$as_me:$LINENO: checking for tzset" >&5
29889 echo $ECHO_N "checking for tzset... $ECHO_C" >&6; }
29890 if test "${ac_cv_func_tzset+set}" = set; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29892 else
29893 cat >conftest.$ac_ext <<_ACEOF
29894 /* confdefs.h. */
29895 _ACEOF
29896 cat confdefs.h >>conftest.$ac_ext
29897 cat >>conftest.$ac_ext <<_ACEOF
29898 /* end confdefs.h. */
29899 /* Define tzset to an innocuous variant, in case <limits.h> declares tzset.
29900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29901 #define tzset innocuous_tzset
29903 /* System header to define __stub macros and hopefully few prototypes,
29904 which can conflict with char tzset (); below.
29905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29906 <limits.h> exists even on freestanding compilers. */
29908 #ifdef __STDC__
29909 # include <limits.h>
29910 #else
29911 # include <assert.h>
29912 #endif
29914 #undef tzset
29916 /* Override any GCC internal prototype to avoid an error.
29917 Use char because int might match the return type of a GCC
29918 builtin and then its argument prototype would still apply. */
29919 #ifdef __cplusplus
29920 extern "C"
29921 #endif
29922 char tzset ();
29923 /* The GNU C library defines this for functions which it implements
29924 to always fail with ENOSYS. Some functions are actually named
29925 something starting with __ and the normal name is an alias. */
29926 #if defined __stub_tzset || defined __stub___tzset
29927 choke me
29928 #endif
29931 main ()
29933 return tzset ();
29935 return 0;
29937 _ACEOF
29938 rm -f conftest.$ac_objext conftest$ac_exeext
29939 if { (ac_try="$ac_link"
29940 case "(($ac_try" in
29941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942 *) ac_try_echo=$ac_try;;
29943 esac
29944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945 (eval "$ac_link") 2>conftest.er1
29946 ac_status=$?
29947 grep -v '^ *+' conftest.er1 >conftest.err
29948 rm -f conftest.er1
29949 cat conftest.err >&5
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); } && {
29952 test -z "$ac_c_werror_flag" ||
29953 test ! -s conftest.err
29954 } && test -s conftest$ac_exeext &&
29955 $as_test_x conftest$ac_exeext; then
29956 ac_cv_func_tzset=yes
29957 else
29958 echo "$as_me: failed program was:" >&5
29959 sed 's/^/| /' conftest.$ac_ext >&5
29961 ac_cv_func_tzset=no
29964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29965 conftest$ac_exeext conftest.$ac_ext
29967 { echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5
29968 echo "${ECHO_T}$ac_cv_func_tzset" >&6; }
29969 if test $ac_cv_func_tzset = yes; then
29970 cat >>confdefs.h <<\_ACEOF
29971 #define HAVE_TZSET 1
29972 _ACEOF
29977 { echo "$as_me:$LINENO: checking for optarg declaration" >&5
29978 echo $ECHO_N "checking for optarg declaration... $ECHO_C" >&6; }
29979 cat >conftest.$ac_ext <<_ACEOF
29980 /* confdefs.h. */
29981 _ACEOF
29982 cat confdefs.h >>conftest.$ac_ext
29983 cat >>conftest.$ac_ext <<_ACEOF
29984 /* end confdefs.h. */
29986 #include <unistd.h>
29989 main ()
29991 optarg = 0;
29993 return 0;
29995 _ACEOF
29996 rm -f conftest.$ac_objext
29997 if { (ac_try="$ac_compile"
29998 case "(($ac_try" in
29999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30001 esac
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_compile") 2>conftest.er1
30004 ac_status=$?
30005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && {
30010 test -z "$ac_c_werror_flag" ||
30011 test ! -s conftest.err
30012 } && test -s conftest.$ac_objext; then
30013 { echo "$as_me:$LINENO: result: yes" >&5
30014 echo "${ECHO_T}yes" >&6; }
30015 else
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30019 { echo "$as_me:$LINENO: result: no" >&5
30020 echo "${ECHO_T}no" >&6; }
30021 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
30023 cat >>confdefs.h <<\_ACEOF
30024 #define NEED_OPTARG 1
30025 _ACEOF
30029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30032 # BSD/OS, and perhaps some others, don't define rlim_t.
30034 { echo "$as_me:$LINENO: checking for type rlim_t" >&5
30035 echo $ECHO_N "checking for type rlim_t... $ECHO_C" >&6; }
30036 cat >conftest.$ac_ext <<_ACEOF
30037 /* confdefs.h. */
30038 _ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h. */
30043 #include <sys/types.h>
30044 #include <sys/time.h>
30045 #include <sys/resource.h>
30047 main ()
30049 rlim_t rl = 19671212; return (0);
30051 return 0;
30053 _ACEOF
30054 rm -f conftest.$ac_objext
30055 if { (ac_try="$ac_compile"
30056 case "(($ac_try" in
30057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30058 *) ac_try_echo=$ac_try;;
30059 esac
30060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30061 (eval "$ac_compile") 2>conftest.er1
30062 ac_status=$?
30063 grep -v '^ *+' conftest.er1 >conftest.err
30064 rm -f conftest.er1
30065 cat conftest.err >&5
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); } && {
30068 test -z "$ac_c_werror_flag" ||
30069 test ! -s conftest.err
30070 } && test -s conftest.$ac_objext; then
30071 { echo "$as_me:$LINENO: result: yes" >&5
30072 echo "${ECHO_T}yes" >&6; }
30073 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
30074 else
30075 echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.$ac_ext >&5
30078 { echo "$as_me:$LINENO: result: no" >&5
30079 echo "${ECHO_T}no" >&6; }
30081 { echo "$as_me:$LINENO: checking type of rlim_cur" >&5
30082 echo $ECHO_N "checking type of rlim_cur... $ECHO_C" >&6; }
30083 if test "$cross_compiling" = yes; then
30085 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
30086 { echo "$as_me:$LINENO: result: cannot determine type of rlim_cur when cross compiling - assuming long long int" >&5
30087 echo "${ECHO_T}cannot determine type of rlim_cur when cross compiling - assuming long long int" >&6; }
30088 else
30089 cat >conftest.$ac_ext <<_ACEOF
30090 /* confdefs.h. */
30091 _ACEOF
30092 cat confdefs.h >>conftest.$ac_ext
30093 cat >>conftest.$ac_ext <<_ACEOF
30094 /* end confdefs.h. */
30096 #include <sys/types.h>
30097 #include <sys/time.h>
30098 #include <sys/resource.h>
30099 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
30100 _ACEOF
30101 rm -f conftest$ac_exeext
30102 if { (ac_try="$ac_link"
30103 case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30106 esac
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_link") 2>&5
30109 ac_status=$?
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30112 { (case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30115 esac
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_try") 2>&5
30118 ac_status=$?
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); }; }; then
30121 { echo "$as_me:$LINENO: result: int" >&5
30122 echo "${ECHO_T}int" >&6; }
30123 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
30124 else
30125 echo "$as_me: program exited with status $ac_status" >&5
30126 echo "$as_me: failed program was:" >&5
30127 sed 's/^/| /' conftest.$ac_ext >&5
30129 ( exit $ac_status )
30131 if test "$cross_compiling" = yes; then
30132 { { echo "$as_me:$LINENO: error: this cannot happen" >&5
30133 echo "$as_me: error: this cannot happen" >&2;}
30134 { (exit 1); exit 1; }; }
30135 else
30136 cat >conftest.$ac_ext <<_ACEOF
30137 /* confdefs.h. */
30138 _ACEOF
30139 cat confdefs.h >>conftest.$ac_ext
30140 cat >>conftest.$ac_ext <<_ACEOF
30141 /* end confdefs.h. */
30143 #include <sys/types.h>
30144 #include <sys/time.h>
30145 #include <sys/resource.h>
30146 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
30147 _ACEOF
30148 rm -f conftest$ac_exeext
30149 if { (ac_try="$ac_link"
30150 case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30153 esac
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155 (eval "$ac_link") 2>&5
30156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30159 { (case "(($ac_try" in
30160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161 *) ac_try_echo=$ac_try;;
30162 esac
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164 (eval "$ac_try") 2>&5
30165 ac_status=$?
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; }; then
30168 { echo "$as_me:$LINENO: result: long int" >&5
30169 echo "${ECHO_T}long int" >&6; }
30170 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
30171 else
30172 echo "$as_me: program exited with status $ac_status" >&5
30173 echo "$as_me: failed program was:" >&5
30174 sed 's/^/| /' conftest.$ac_ext >&5
30176 ( exit $ac_status )
30178 if test "$cross_compiling" = yes; then
30179 { { echo "$as_me:$LINENO: error: this cannot happen" >&5
30180 echo "$as_me: error: this cannot happen" >&2;}
30181 { (exit 1); exit 1; }; }
30182 else
30183 cat >conftest.$ac_ext <<_ACEOF
30184 /* confdefs.h. */
30185 _ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h. */
30190 #include <sys/types.h>
30191 #include <sys/time.h>
30192 #include <sys/resource.h>
30193 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
30194 _ACEOF
30195 rm -f conftest$ac_exeext
30196 if { (ac_try="$ac_link"
30197 case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_link") 2>&5
30203 ac_status=$?
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30206 { (case "(($ac_try" in
30207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208 *) ac_try_echo=$ac_try;;
30209 esac
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211 (eval "$ac_try") 2>&5
30212 ac_status=$?
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); }; }; then
30215 { echo "$as_me:$LINENO: result: long long int" >&5
30216 echo "${ECHO_T}long long int" >&6; }
30217 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
30218 else
30219 echo "$as_me: program exited with status $ac_status" >&5
30220 echo "$as_me: failed program was:" >&5
30221 sed 's/^/| /' conftest.$ac_ext >&5
30223 ( exit $ac_status )
30224 { { echo "$as_me:$LINENO: error: unable to determine sizeof rlim_cur" >&5
30225 echo "$as_me: error: unable to determine sizeof rlim_cur" >&2;}
30226 { (exit 1); exit 1; }; }
30229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30252 # Older HP-UX doesn't have gettune
30254 case "$host" in
30255 *-hp-hpux*)
30257 for ac_header in sys/dyntune.h
30259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30264 echo $ECHO_N "(cached) $ECHO_C" >&6
30266 ac_res=`eval echo '${'$as_ac_Header'}'`
30267 { echo "$as_me:$LINENO: result: $ac_res" >&5
30268 echo "${ECHO_T}$ac_res" >&6; }
30269 else
30270 # Is the header compilable?
30271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30273 cat >conftest.$ac_ext <<_ACEOF
30274 /* confdefs.h. */
30275 _ACEOF
30276 cat confdefs.h >>conftest.$ac_ext
30277 cat >>conftest.$ac_ext <<_ACEOF
30278 /* end confdefs.h. */
30279 $ac_includes_default
30280 #include <$ac_header>
30281 _ACEOF
30282 rm -f conftest.$ac_objext
30283 if { (ac_try="$ac_compile"
30284 case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30287 esac
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_compile") 2>conftest.er1
30290 ac_status=$?
30291 grep -v '^ *+' conftest.er1 >conftest.err
30292 rm -f conftest.er1
30293 cat conftest.err >&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } && {
30296 test -z "$ac_c_werror_flag" ||
30297 test ! -s conftest.err
30298 } && test -s conftest.$ac_objext; then
30299 ac_header_compiler=yes
30300 else
30301 echo "$as_me: failed program was:" >&5
30302 sed 's/^/| /' conftest.$ac_ext >&5
30304 ac_header_compiler=no
30307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30309 echo "${ECHO_T}$ac_header_compiler" >&6; }
30311 # Is the header present?
30312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30314 cat >conftest.$ac_ext <<_ACEOF
30315 /* confdefs.h. */
30316 _ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h. */
30320 #include <$ac_header>
30321 _ACEOF
30322 if { (ac_try="$ac_cpp conftest.$ac_ext"
30323 case "(($ac_try" in
30324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325 *) ac_try_echo=$ac_try;;
30326 esac
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30329 ac_status=$?
30330 grep -v '^ *+' conftest.er1 >conftest.err
30331 rm -f conftest.er1
30332 cat conftest.err >&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); } >/dev/null && {
30335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30336 test ! -s conftest.err
30337 }; then
30338 ac_header_preproc=yes
30339 else
30340 echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30343 ac_header_preproc=no
30346 rm -f conftest.err conftest.$ac_ext
30347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30348 echo "${ECHO_T}$ac_header_preproc" >&6; }
30350 # So? What about this header?
30351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30352 yes:no: )
30353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30357 ac_header_preproc=yes
30359 no:yes:* )
30360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30374 esac
30375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30378 echo $ECHO_N "(cached) $ECHO_C" >&6
30379 else
30380 eval "$as_ac_Header=\$ac_header_preproc"
30382 ac_res=`eval echo '${'$as_ac_Header'}'`
30383 { echo "$as_me:$LINENO: result: $ac_res" >&5
30384 echo "${ECHO_T}$ac_res" >&6; }
30387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30388 cat >>confdefs.h <<_ACEOF
30389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30390 _ACEOF
30394 done
30399 esac
30403 # Compaq TruCluster requires more code for handling cluster IP aliases
30405 case "$host" in
30406 *-dec-osf*)
30407 { echo "$as_me:$LINENO: checking for clua_getaliasaddress in -lclua" >&5
30408 echo $ECHO_N "checking for clua_getaliasaddress in -lclua... $ECHO_C" >&6; }
30409 if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then
30410 echo $ECHO_N "(cached) $ECHO_C" >&6
30411 else
30412 ac_check_lib_save_LIBS=$LIBS
30413 LIBS="-lclua $LIBS"
30414 cat >conftest.$ac_ext <<_ACEOF
30415 /* confdefs.h. */
30416 _ACEOF
30417 cat confdefs.h >>conftest.$ac_ext
30418 cat >>conftest.$ac_ext <<_ACEOF
30419 /* end confdefs.h. */
30421 /* Override any GCC internal prototype to avoid an error.
30422 Use char because int might match the return type of a GCC
30423 builtin and then its argument prototype would still apply. */
30424 #ifdef __cplusplus
30425 extern "C"
30426 #endif
30427 char clua_getaliasaddress ();
30429 main ()
30431 return clua_getaliasaddress ();
30433 return 0;
30435 _ACEOF
30436 rm -f conftest.$ac_objext conftest$ac_exeext
30437 if { (ac_try="$ac_link"
30438 case "(($ac_try" in
30439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30440 *) ac_try_echo=$ac_try;;
30441 esac
30442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443 (eval "$ac_link") 2>conftest.er1
30444 ac_status=$?
30445 grep -v '^ *+' conftest.er1 >conftest.err
30446 rm -f conftest.er1
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } && {
30450 test -z "$ac_c_werror_flag" ||
30451 test ! -s conftest.err
30452 } && test -s conftest$ac_exeext &&
30453 $as_test_x conftest$ac_exeext; then
30454 ac_cv_lib_clua_clua_getaliasaddress=yes
30455 else
30456 echo "$as_me: failed program was:" >&5
30457 sed 's/^/| /' conftest.$ac_ext >&5
30459 ac_cv_lib_clua_clua_getaliasaddress=no
30462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30463 conftest$ac_exeext conftest.$ac_ext
30464 LIBS=$ac_check_lib_save_LIBS
30466 { echo "$as_me:$LINENO: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
30467 echo "${ECHO_T}$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
30468 if test $ac_cv_lib_clua_clua_getaliasaddress = yes; then
30469 LIBS="-lclua $LIBS"
30472 { echo "$as_me:$LINENO: checking for clua_getaliasaddress" >&5
30473 echo $ECHO_N "checking for clua_getaliasaddress... $ECHO_C" >&6; }
30474 if test "${ac_cv_func_clua_getaliasaddress+set}" = set; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30476 else
30477 cat >conftest.$ac_ext <<_ACEOF
30478 /* confdefs.h. */
30479 _ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h. */
30483 /* Define clua_getaliasaddress to an innocuous variant, in case <limits.h> declares clua_getaliasaddress.
30484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30485 #define clua_getaliasaddress innocuous_clua_getaliasaddress
30487 /* System header to define __stub macros and hopefully few prototypes,
30488 which can conflict with char clua_getaliasaddress (); below.
30489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30490 <limits.h> exists even on freestanding compilers. */
30492 #ifdef __STDC__
30493 # include <limits.h>
30494 #else
30495 # include <assert.h>
30496 #endif
30498 #undef clua_getaliasaddress
30500 /* Override any GCC internal prototype to avoid an error.
30501 Use char because int might match the return type of a GCC
30502 builtin and then its argument prototype would still apply. */
30503 #ifdef __cplusplus
30504 extern "C"
30505 #endif
30506 char clua_getaliasaddress ();
30507 /* The GNU C library defines this for functions which it implements
30508 to always fail with ENOSYS. Some functions are actually named
30509 something starting with __ and the normal name is an alias. */
30510 #if defined __stub_clua_getaliasaddress || defined __stub___clua_getaliasaddress
30511 choke me
30512 #endif
30515 main ()
30517 return clua_getaliasaddress ();
30519 return 0;
30521 _ACEOF
30522 rm -f conftest.$ac_objext conftest$ac_exeext
30523 if { (ac_try="$ac_link"
30524 case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30527 esac
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_link") 2>conftest.er1
30530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } && {
30536 test -z "$ac_c_werror_flag" ||
30537 test ! -s conftest.err
30538 } && test -s conftest$ac_exeext &&
30539 $as_test_x conftest$ac_exeext; then
30540 ac_cv_func_clua_getaliasaddress=yes
30541 else
30542 echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30545 ac_cv_func_clua_getaliasaddress=no
30548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30549 conftest$ac_exeext conftest.$ac_ext
30551 { echo "$as_me:$LINENO: result: $ac_cv_func_clua_getaliasaddress" >&5
30552 echo "${ECHO_T}$ac_cv_func_clua_getaliasaddress" >&6; }
30553 if test $ac_cv_func_clua_getaliasaddress = yes; then
30555 cat >>confdefs.h <<\_ACEOF
30556 #define HAVE_TRUCLUSTER 1
30557 _ACEOF
30564 esac
30567 # Some hosts need msg_namelen to match the size of the socket structure.
30568 # Some hosts don't set msg_namelen appropriately on return from recvmsg().
30570 case $host in
30571 *os2*|*hp-mpeix*)
30573 cat >>confdefs.h <<\_ACEOF
30574 #define BROKEN_RECVMSG 1
30575 _ACEOF
30578 esac
30581 # Microsoft has their own way of handling shared libraries that requires
30582 # additional qualifiers on extern variables. Unix systems don't need it.
30585 ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
30587 LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC"
30589 IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
30592 # Random remaining OS-specific issues involving compiler warnings.
30593 # XXXDCL print messages to indicate some compensation is being done?
30596 ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
30598 case "$host" in
30599 *-aix5.[123].*)
30600 hack_shutup_pthreadonceinit=yes
30602 *-bsdi3.1*)
30603 hack_shutup_sputaux=yes
30605 *-bsdi4.0*)
30606 hack_shutup_sigwait=yes
30607 hack_shutup_sputaux=yes
30609 *-bsdi4.[12]*)
30610 hack_shutup_stdargcast=yes
30612 *-solaris2.[89])
30613 hack_shutup_pthreadonceinit=yes
30615 *-solaris2.1[0-9])
30616 cat >conftest.$ac_ext <<_ACEOF
30617 /* confdefs.h. */
30618 _ACEOF
30619 cat confdefs.h >>conftest.$ac_ext
30620 cat >>conftest.$ac_ext <<_ACEOF
30621 /* end confdefs.h. */
30622 #include <pthread.h>
30624 main ()
30626 static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
30628 return 0;
30630 _ACEOF
30631 rm -f conftest.$ac_objext
30632 if { (ac_try="$ac_compile"
30633 case "(($ac_try" in
30634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635 *) ac_try_echo=$ac_try;;
30636 esac
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638 (eval "$ac_compile") 2>conftest.er1
30639 ac_status=$?
30640 grep -v '^ *+' conftest.er1 >conftest.err
30641 rm -f conftest.er1
30642 cat conftest.err >&5
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); } && {
30645 test -z "$ac_c_werror_flag" ||
30646 test ! -s conftest.err
30647 } && test -s conftest.$ac_objext; then
30648 hack_shutup_pthreadonceinit=yes
30649 else
30650 echo "$as_me: failed program was:" >&5
30651 sed 's/^/| /' conftest.$ac_ext >&5
30656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30658 esac
30660 case "$hack_shutup_pthreadonceinit" in
30661 yes)
30663 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
30665 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
30667 esac
30669 case "$hack_shutup_sigwait" in
30670 yes)
30672 # Shut up a -Wmissing-prototypes warning for sigwait().
30674 cat >>confdefs.h <<\_ACEOF
30675 #define SHUTUP_SIGWAIT 1
30676 _ACEOF
30679 esac
30681 case "$hack_shutup_sputaux" in
30682 yes)
30684 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
30686 cat >>confdefs.h <<\_ACEOF
30687 #define SHUTUP_SPUTAUX 1
30688 _ACEOF
30691 esac
30693 case "$hack_shutup_stdargcast" in
30694 yes)
30696 # Shut up a -Wcast-qual warning from va_start().
30698 cat >>confdefs.h <<\_ACEOF
30699 #define SHUTUP_STDARG_CAST 1
30700 _ACEOF
30703 esac
30706 for ac_header in strings.h
30708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30715 ac_res=`eval echo '${'$as_ac_Header'}'`
30716 { echo "$as_me:$LINENO: result: $ac_res" >&5
30717 echo "${ECHO_T}$ac_res" >&6; }
30718 else
30719 # Is the header compilable?
30720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30722 cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h. */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30728 $ac_includes_default
30729 #include <$ac_header>
30730 _ACEOF
30731 rm -f conftest.$ac_objext
30732 if { (ac_try="$ac_compile"
30733 case "(($ac_try" in
30734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30735 *) ac_try_echo=$ac_try;;
30736 esac
30737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30738 (eval "$ac_compile") 2>conftest.er1
30739 ac_status=$?
30740 grep -v '^ *+' conftest.er1 >conftest.err
30741 rm -f conftest.er1
30742 cat conftest.err >&5
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); } && {
30745 test -z "$ac_c_werror_flag" ||
30746 test ! -s conftest.err
30747 } && test -s conftest.$ac_objext; then
30748 ac_header_compiler=yes
30749 else
30750 echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30753 ac_header_compiler=no
30756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30758 echo "${ECHO_T}$ac_header_compiler" >&6; }
30760 # Is the header present?
30761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30763 cat >conftest.$ac_ext <<_ACEOF
30764 /* confdefs.h. */
30765 _ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h. */
30769 #include <$ac_header>
30770 _ACEOF
30771 if { (ac_try="$ac_cpp conftest.$ac_ext"
30772 case "(($ac_try" in
30773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30774 *) ac_try_echo=$ac_try;;
30775 esac
30776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30778 ac_status=$?
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } >/dev/null && {
30784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30785 test ! -s conftest.err
30786 }; then
30787 ac_header_preproc=yes
30788 else
30789 echo "$as_me: failed program was:" >&5
30790 sed 's/^/| /' conftest.$ac_ext >&5
30792 ac_header_preproc=no
30795 rm -f conftest.err conftest.$ac_ext
30796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30797 echo "${ECHO_T}$ac_header_preproc" >&6; }
30799 # So? What about this header?
30800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30801 yes:no: )
30802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30806 ac_header_preproc=yes
30808 no:yes:* )
30809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30823 esac
30824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30827 echo $ECHO_N "(cached) $ECHO_C" >&6
30828 else
30829 eval "$as_ac_Header=\$ac_header_preproc"
30831 ac_res=`eval echo '${'$as_ac_Header'}'`
30832 { echo "$as_me:$LINENO: result: $ac_res" >&5
30833 echo "${ECHO_T}$ac_res" >&6; }
30836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30837 cat >>confdefs.h <<_ACEOF
30838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30839 _ACEOF
30840 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
30842 else
30843 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
30847 done
30852 # Check for if_nametoindex() for IPv6 scoped addresses support
30854 { echo "$as_me:$LINENO: checking for if_nametoindex" >&5
30855 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6; }
30856 if test "${ac_cv_func_if_nametoindex+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 else
30859 cat >conftest.$ac_ext <<_ACEOF
30860 /* confdefs.h. */
30861 _ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h. */
30865 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
30866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30867 #define if_nametoindex innocuous_if_nametoindex
30869 /* System header to define __stub macros and hopefully few prototypes,
30870 which can conflict with char if_nametoindex (); below.
30871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30872 <limits.h> exists even on freestanding compilers. */
30874 #ifdef __STDC__
30875 # include <limits.h>
30876 #else
30877 # include <assert.h>
30878 #endif
30880 #undef if_nametoindex
30882 /* Override any GCC internal prototype to avoid an error.
30883 Use char because int might match the return type of a GCC
30884 builtin and then its argument prototype would still apply. */
30885 #ifdef __cplusplus
30886 extern "C"
30887 #endif
30888 char if_nametoindex ();
30889 /* The GNU C library defines this for functions which it implements
30890 to always fail with ENOSYS. Some functions are actually named
30891 something starting with __ and the normal name is an alias. */
30892 #if defined __stub_if_nametoindex || defined __stub___if_nametoindex
30893 choke me
30894 #endif
30897 main ()
30899 return if_nametoindex ();
30901 return 0;
30903 _ACEOF
30904 rm -f conftest.$ac_objext conftest$ac_exeext
30905 if { (ac_try="$ac_link"
30906 case "(($ac_try" in
30907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30908 *) ac_try_echo=$ac_try;;
30909 esac
30910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30911 (eval "$ac_link") 2>conftest.er1
30912 ac_status=$?
30913 grep -v '^ *+' conftest.er1 >conftest.err
30914 rm -f conftest.er1
30915 cat conftest.err >&5
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); } && {
30918 test -z "$ac_c_werror_flag" ||
30919 test ! -s conftest.err
30920 } && test -s conftest$ac_exeext &&
30921 $as_test_x conftest$ac_exeext; then
30922 ac_cv_func_if_nametoindex=yes
30923 else
30924 echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30927 ac_cv_func_if_nametoindex=no
30930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30931 conftest$ac_exeext conftest.$ac_ext
30933 { echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
30934 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6; }
30935 if test $ac_cv_func_if_nametoindex = yes; then
30936 ac_cv_have_if_nametoindex=yes
30937 else
30938 ac_cv_have_if_nametoindex=no
30941 case $ac_cv_have_if_nametoindex in
30943 case "$host" in
30944 *-hp-hpux*)
30945 { echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5
30946 echo $ECHO_N "checking for if_nametoindex in -lipv6... $ECHO_C" >&6; }
30947 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30949 else
30950 ac_check_lib_save_LIBS=$LIBS
30951 LIBS="-lipv6 $LIBS"
30952 cat >conftest.$ac_ext <<_ACEOF
30953 /* confdefs.h. */
30954 _ACEOF
30955 cat confdefs.h >>conftest.$ac_ext
30956 cat >>conftest.$ac_ext <<_ACEOF
30957 /* end confdefs.h. */
30959 /* Override any GCC internal prototype to avoid an error.
30960 Use char because int might match the return type of a GCC
30961 builtin and then its argument prototype would still apply. */
30962 #ifdef __cplusplus
30963 extern "C"
30964 #endif
30965 char if_nametoindex ();
30967 main ()
30969 return if_nametoindex ();
30971 return 0;
30973 _ACEOF
30974 rm -f conftest.$ac_objext conftest$ac_exeext
30975 if { (ac_try="$ac_link"
30976 case "(($ac_try" in
30977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978 *) ac_try_echo=$ac_try;;
30979 esac
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981 (eval "$ac_link") 2>conftest.er1
30982 ac_status=$?
30983 grep -v '^ *+' conftest.er1 >conftest.err
30984 rm -f conftest.er1
30985 cat conftest.err >&5
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } && {
30988 test -z "$ac_c_werror_flag" ||
30989 test ! -s conftest.err
30990 } && test -s conftest$ac_exeext &&
30991 $as_test_x conftest$ac_exeext; then
30992 ac_cv_lib_ipv6_if_nametoindex=yes
30993 else
30994 echo "$as_me: failed program was:" >&5
30995 sed 's/^/| /' conftest.$ac_ext >&5
30997 ac_cv_lib_ipv6_if_nametoindex=no
31000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31001 conftest$ac_exeext conftest.$ac_ext
31002 LIBS=$ac_check_lib_save_LIBS
31004 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
31005 echo "${ECHO_T}$ac_cv_lib_ipv6_if_nametoindex" >&6; }
31006 if test $ac_cv_lib_ipv6_if_nametoindex = yes; then
31007 ac_cv_have_if_nametoindex=yes
31008 LIBS="-lipv6 $LIBS"
31012 esac
31013 esac
31014 case $ac_cv_have_if_nametoindex in
31015 yes)
31016 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
31019 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
31021 esac
31025 for ac_func in nanosleep
31027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31032 else
31033 cat >conftest.$ac_ext <<_ACEOF
31034 /* confdefs.h. */
31035 _ACEOF
31036 cat confdefs.h >>conftest.$ac_ext
31037 cat >>conftest.$ac_ext <<_ACEOF
31038 /* end confdefs.h. */
31039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31041 #define $ac_func innocuous_$ac_func
31043 /* System header to define __stub macros and hopefully few prototypes,
31044 which can conflict with char $ac_func (); below.
31045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31046 <limits.h> exists even on freestanding compilers. */
31048 #ifdef __STDC__
31049 # include <limits.h>
31050 #else
31051 # include <assert.h>
31052 #endif
31054 #undef $ac_func
31056 /* Override any GCC internal prototype to avoid an error.
31057 Use char because int might match the return type of a GCC
31058 builtin and then its argument prototype would still apply. */
31059 #ifdef __cplusplus
31060 extern "C"
31061 #endif
31062 char $ac_func ();
31063 /* The GNU C library defines this for functions which it implements
31064 to always fail with ENOSYS. Some functions are actually named
31065 something starting with __ and the normal name is an alias. */
31066 #if defined __stub_$ac_func || defined __stub___$ac_func
31067 choke me
31068 #endif
31071 main ()
31073 return $ac_func ();
31075 return 0;
31077 _ACEOF
31078 rm -f conftest.$ac_objext conftest$ac_exeext
31079 if { (ac_try="$ac_link"
31080 case "(($ac_try" in
31081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31082 *) ac_try_echo=$ac_try;;
31083 esac
31084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31085 (eval "$ac_link") 2>conftest.er1
31086 ac_status=$?
31087 grep -v '^ *+' conftest.er1 >conftest.err
31088 rm -f conftest.er1
31089 cat conftest.err >&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); } && {
31092 test -z "$ac_c_werror_flag" ||
31093 test ! -s conftest.err
31094 } && test -s conftest$ac_exeext &&
31095 $as_test_x conftest$ac_exeext; then
31096 eval "$as_ac_var=yes"
31097 else
31098 echo "$as_me: failed program was:" >&5
31099 sed 's/^/| /' conftest.$ac_ext >&5
31101 eval "$as_ac_var=no"
31104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31105 conftest$ac_exeext conftest.$ac_ext
31107 ac_res=`eval echo '${'$as_ac_var'}'`
31108 { echo "$as_me:$LINENO: result: $ac_res" >&5
31109 echo "${ECHO_T}$ac_res" >&6; }
31110 if test `eval echo '${'$as_ac_var'}'` = yes; then
31111 cat >>confdefs.h <<_ACEOF
31112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31113 _ACEOF
31116 done
31120 # Machine architecture dependent features
31122 # Check whether --enable-atomic was given.
31123 if test "${enable_atomic+set}" = set; then
31124 enableval=$enable_atomic; enable_atomic="$enableval"
31125 else
31126 enable_atomic="autodetect"
31129 case "$enable_atomic" in
31130 yes|''|autodetect)
31131 case "$host" in
31132 powerpc-ibm-aix*)
31133 if test "X$GCC" = "Xyes"; then
31134 { echo "$as_me:$LINENO: checking if asm(\"isc\"); works" >&5
31135 echo $ECHO_N "checking if asm(\"isc\"); works... $ECHO_C" >&6; }
31136 cat >conftest.$ac_ext <<_ACEOF
31137 /* confdefs.h. */
31138 _ACEOF
31139 cat confdefs.h >>conftest.$ac_ext
31140 cat >>conftest.$ac_ext <<_ACEOF
31141 /* end confdefs.h. */
31144 main ()
31147 main() { asm("ics"); exit(0); }
31150 return 0;
31152 _ACEOF
31153 rm -f conftest.$ac_objext
31154 if { (ac_try="$ac_compile"
31155 case "(($ac_try" in
31156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31157 *) ac_try_echo=$ac_try;;
31158 esac
31159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31160 (eval "$ac_compile") 2>conftest.er1
31161 ac_status=$?
31162 grep -v '^ *+' conftest.er1 >conftest.err
31163 rm -f conftest.er1
31164 cat conftest.err >&5
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); } && {
31167 test -z "$ac_c_werror_flag" ||
31168 test ! -s conftest.err
31169 } && test -s conftest.$ac_objext; then
31170 { echo "$as_me:$LINENO: result: yes" >&5
31171 echo "${ECHO_T}yes" >&6; }
31172 use_atomic=yes
31173 else
31174 echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31178 saved_cflags="$CFLAGS"
31179 CFLAGS="$CFLAGS -Wa,-many"
31180 if test "$cross_compiling" = yes; then
31181 { echo "$as_me:$LINENO: result: cross compile, assume yes" >&5
31182 echo "${ECHO_T}cross compile, assume yes" >&6; }
31183 CFLAGS="$saved_cflags"
31184 use_atomic=yes
31185 else
31186 cat >conftest.$ac_ext <<_ACEOF
31187 /* confdefs.h. */
31188 _ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h. */
31193 main() { asm("ics"); exit(0); }
31195 _ACEOF
31196 rm -f conftest$ac_exeext
31197 if { (ac_try="$ac_link"
31198 case "(($ac_try" in
31199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200 *) ac_try_echo=$ac_try;;
31201 esac
31202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203 (eval "$ac_link") 2>&5
31204 ac_status=$?
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31207 { (case "(($ac_try" in
31208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209 *) ac_try_echo=$ac_try;;
31210 esac
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_try") 2>&5
31213 ac_status=$?
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); }; }; then
31216 { echo "$as_me:$LINENO: result: yes, required -Wa,-many" >&5
31217 echo "${ECHO_T}yes, required -Wa,-many" >&6; }
31218 use_atomic=yes
31219 else
31220 echo "$as_me: program exited with status $ac_status" >&5
31221 echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31224 ( exit $ac_status )
31225 { echo "$as_me:$LINENO: result: no, use_atomic disabled" >&5
31226 echo "${ECHO_T}no, use_atomic disabled" >&6; }
31227 CFLAGS="$saved_cflags"
31228 use_atomic=no
31230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31242 use_atomic=yes
31244 esac
31247 use_atomic=no
31248 arch=noatomic
31250 esac
31252 ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
31253 if test "$use_atomic" = "yes"; then
31254 { echo "$as_me:$LINENO: checking architecture type for atomic operations" >&5
31255 echo $ECHO_N "checking architecture type for atomic operations... $ECHO_C" >&6; }
31256 have_atomic=yes # set default
31257 case "$host" in
31258 i[3456]86-*)
31259 # XXX: some old x86 architectures actually do not support
31260 # (some of) these operations. Do we need stricter checks?
31261 if test "$cross_compiling" = yes; then
31262 arch=x86_32
31263 else
31264 cat >conftest.$ac_ext <<_ACEOF
31265 /* confdefs.h. */
31266 _ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h. */
31271 main() {
31272 exit((sizeof(void *) == 8) ? 0 : 1);
31275 _ACEOF
31276 rm -f conftest$ac_exeext
31277 if { (ac_try="$ac_link"
31278 case "(($ac_try" in
31279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280 *) ac_try_echo=$ac_try;;
31281 esac
31282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283 (eval "$ac_link") 2>&5
31284 ac_status=$?
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31287 { (case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31290 esac
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_try") 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; }; then
31296 arch=x86_64
31297 have_xaddq=yes
31298 else
31299 echo "$as_me: program exited with status $ac_status" >&5
31300 echo "$as_me: failed program was:" >&5
31301 sed 's/^/| /' conftest.$ac_ext >&5
31303 ( exit $ac_status )
31304 arch=x86_32
31306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31311 x86_64-*|amd64-*)
31312 if test "$cross_compiling" = yes; then
31313 arch=x86_64
31314 have_xaddq=yes
31315 else
31316 cat >conftest.$ac_ext <<_ACEOF
31317 /* confdefs.h. */
31318 _ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h. */
31323 main() {
31324 exit((sizeof(void *) == 8) ? 0 : 1);
31327 _ACEOF
31328 rm -f conftest$ac_exeext
31329 if { (ac_try="$ac_link"
31330 case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31333 esac
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_link") 2>&5
31336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31339 { (case "(($ac_try" in
31340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31341 *) ac_try_echo=$ac_try;;
31342 esac
31343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31344 (eval "$ac_try") 2>&5
31345 ac_status=$?
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; }; then
31348 arch=x86_64
31349 have_xaddq=yes
31350 else
31351 echo "$as_me: program exited with status $ac_status" >&5
31352 echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31355 ( exit $ac_status )
31356 arch=x86_32
31358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31363 alpha*-*)
31364 arch=alpha
31366 powerpc-*)
31367 arch=powerpc
31369 mips-*|mipsel-*|mips64-*|mips64el-*)
31370 arch=mips
31372 ia64-*)
31373 arch=ia64
31376 have_atomic=no
31377 arch=noatomic
31379 esac
31380 { echo "$as_me:$LINENO: result: $arch" >&5
31381 echo "${ECHO_T}$arch" >&6; }
31384 if test "$have_atomic" = "yes"; then
31385 { echo "$as_me:$LINENO: checking compiler support for inline assembly code" >&5
31386 echo $ECHO_N "checking compiler support for inline assembly code... $ECHO_C" >&6; }
31388 compiler=generic
31389 # Check whether the compiler supports the assembly syntax we provide.
31390 if test "X$GCC" = "Xyes"; then
31391 # GCC's ASM extension always works
31392 compiler=gcc
31393 if test $arch = "x86_64"; then
31394 # We can share the same code for gcc with x86_32
31395 arch=x86_32
31397 if test $arch = "powerpc"; then
31399 # The MacOS (and maybe others) uses "r0" for register
31400 # zero. Under linux/ibm it is "0" for register 0.
31401 # Probe to see if we have a MacOS style assembler.
31403 { echo "$as_me:$LINENO: checking Checking for MacOS style assembler syntax" >&5
31404 echo $ECHO_N "checking Checking for MacOS style assembler syntax... $ECHO_C" >&6; }
31405 cat >conftest.$ac_ext <<_ACEOF
31406 /* confdefs.h. */
31407 _ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h. */
31413 main ()
31416 __asm__ volatile ("li r0, 0x0\n"::);
31419 return 0;
31421 _ACEOF
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426 *) ac_try_echo=$ac_try;;
31427 esac
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_compile") 2>conftest.er1
31430 ac_status=$?
31431 grep -v '^ *+' conftest.er1 >conftest.err
31432 rm -f conftest.er1
31433 cat conftest.err >&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } && {
31436 test -z "$ac_c_werror_flag" ||
31437 test ! -s conftest.err
31438 } && test -s conftest.$ac_objext; then
31440 { echo "$as_me:$LINENO: result: yes" >&5
31441 echo "${ECHO_T}yes" >&6; }
31442 compiler="mac"
31443 ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1"
31445 else
31446 echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31449 { echo "$as_me:$LINENO: result: no" >&5
31450 echo "${ECHO_T}no" >&6; }
31453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31455 else
31456 case "$host" in
31457 alpha*-dec-osf*)
31458 # Tru64 compiler has its own syntax for inline
31459 # assembly.
31460 cat >conftest.$ac_ext <<_ACEOF
31461 /* confdefs.h. */
31462 _ACEOF
31463 cat confdefs.h >>conftest.$ac_ext
31464 cat >>conftest.$ac_ext <<_ACEOF
31465 /* end confdefs.h. */
31468 main ()
31471 #ifndef __DECC
31472 #error "unexpected compiler"
31473 #endif
31474 return (0);
31476 return 0;
31478 _ACEOF
31479 rm -f conftest.$ac_objext
31480 if { (ac_try="$ac_compile"
31481 case "(($ac_try" in
31482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483 *) ac_try_echo=$ac_try;;
31484 esac
31485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486 (eval "$ac_compile") 2>conftest.er1
31487 ac_status=$?
31488 grep -v '^ *+' conftest.er1 >conftest.err
31489 rm -f conftest.er1
31490 cat conftest.err >&5
31491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); } && {
31493 test -z "$ac_c_werror_flag" ||
31494 test ! -s conftest.err
31495 } && test -s conftest.$ac_objext; then
31496 compiler=osf
31497 else
31498 echo "$as_me: failed program was:" >&5
31499 sed 's/^/| /' conftest.$ac_ext >&5
31504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31506 powerpc-ibm-aix*)
31507 compiler=aix
31509 esac
31511 case "$compiler" in
31512 gcc)
31513 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
31515 osf)
31516 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
31518 aix)
31520 mac)
31523 # See if the generic __asm function works. If not,
31524 # we need to disable the atomic operations.
31525 cat >conftest.$ac_ext <<_ACEOF
31526 /* confdefs.h. */
31527 _ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h. */
31533 main ()
31536 __asm("nop")
31539 return 0;
31541 _ACEOF
31542 rm -f conftest.$ac_objext conftest$ac_exeext
31543 if { (ac_try="$ac_link"
31544 case "(($ac_try" in
31545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31546 *) ac_try_echo=$ac_try;;
31547 esac
31548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31549 (eval "$ac_link") 2>conftest.er1
31550 ac_status=$?
31551 grep -v '^ *+' conftest.er1 >conftest.err
31552 rm -f conftest.er1
31553 cat conftest.err >&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); } && {
31556 test -z "$ac_c_werror_flag" ||
31557 test ! -s conftest.err
31558 } && test -s conftest$ac_exeext &&
31559 $as_test_x conftest$ac_exeext; then
31560 compiler="standard"
31561 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1"
31562 else
31563 echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31566 compiler="not supported (atomic operations disabled)"
31567 have_atomic=no
31568 arch=noatomic
31571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31572 conftest$ac_exeext conftest.$ac_ext;
31574 esac
31576 { echo "$as_me:$LINENO: result: $compiler" >&5
31577 echo "${ECHO_T}$compiler" >&6; }
31580 if test "$have_atomic" = "yes"; then
31581 ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
31582 ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
31583 ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
31584 else
31585 ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
31586 ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
31587 ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
31590 if test "$have_xaddq" = "yes"; then
31591 ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1"
31592 else
31593 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
31606 ISC_ARCH_DIR=$arch
31610 # Activate "rrset-order fixed" or not?
31612 # Check whether --enable-fixed-rrset was given.
31613 if test "${enable_fixed_rrset+set}" = set; then
31614 enableval=$enable_fixed_rrset; enable_fixed="$enableval"
31615 else
31616 enable_fixed="no"
31619 case "$enable_fixed" in
31620 yes)
31622 cat >>confdefs.h <<\_ACEOF
31623 #define DNS_RDATASET_FIXED 1
31624 _ACEOF
31631 esac
31634 # Activate "filter-aaaa-on-v4" or not?
31636 # Check whether --enable-filter-aaaa was given.
31637 if test "${enable_filter_aaaa+set}" = set; then
31638 enableval=$enable_filter_aaaa; enable_filter="$enableval"
31639 else
31640 enable_filter="no"
31643 case "$enable_filter" in
31644 yes)
31646 cat >>confdefs.h <<\_ACEOF
31647 #define ALLOW_FILTER_AAAA_ON_V4 1
31648 _ACEOF
31655 esac
31658 # The following sets up how non-blocking i/o is established.
31659 # Sunos, cygwin and solaris 2.x (x<5) require special handling.
31661 case "$host" in
31662 *-sunos*) cat >>confdefs.h <<\_ACEOF
31663 #define PORT_NONBLOCK O_NDELAY
31664 _ACEOF
31666 *-cygwin*) cat >>confdefs.h <<\_ACEOF
31667 #define PORT_NONBLOCK O_NDELAY
31668 _ACEOF
31670 *-solaris2.[01234])
31671 cat >>confdefs.h <<\_ACEOF
31672 #define PORT_NONBLOCK O_NONBLOCK
31673 _ACEOF
31676 cat >>confdefs.h <<\_ACEOF
31677 #define USE_FIONBIO_IOCTL 1
31678 _ACEOF
31682 cat >>confdefs.h <<\_ACEOF
31683 #define PORT_NONBLOCK O_NONBLOCK
31684 _ACEOF
31687 esac
31689 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
31690 # This prevents the source address being set.
31692 case "$host" in
31693 *-solaris2.[012345]|*-solaris2.5.1)
31695 cat >>confdefs.h <<\_ACEOF
31696 #define BROKEN_TCP_BIND_BEFORE_CONNECT 1
31697 _ACEOF
31700 esac
31702 # The following sections deal with tools used for formatting
31703 # the documentation. They are all optional, unless you are
31704 # a developer editing the documentation source.
31708 # Look for TeX.
31711 for ac_prog in latex
31713 # Extract the first word of "$ac_prog", so it can be a program name with args.
31714 set dummy $ac_prog; ac_word=$2
31715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31717 if test "${ac_cv_path_LATEX+set}" = set; then
31718 echo $ECHO_N "(cached) $ECHO_C" >&6
31719 else
31720 case $LATEX in
31721 [\\/]* | ?:[\\/]*)
31722 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
31725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31726 for as_dir in $PATH
31728 IFS=$as_save_IFS
31729 test -z "$as_dir" && as_dir=.
31730 for ac_exec_ext in '' $ac_executable_extensions; do
31731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31732 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
31733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31734 break 2
31736 done
31737 done
31738 IFS=$as_save_IFS
31741 esac
31743 LATEX=$ac_cv_path_LATEX
31744 if test -n "$LATEX"; then
31745 { echo "$as_me:$LINENO: result: $LATEX" >&5
31746 echo "${ECHO_T}$LATEX" >&6; }
31747 else
31748 { echo "$as_me:$LINENO: result: no" >&5
31749 echo "${ECHO_T}no" >&6; }
31753 test -n "$LATEX" && break
31754 done
31755 test -n "$LATEX" || LATEX="latex"
31759 for ac_prog in pdflatex
31761 # Extract the first word of "$ac_prog", so it can be a program name with args.
31762 set dummy $ac_prog; ac_word=$2
31763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31765 if test "${ac_cv_path_PDFLATEX+set}" = set; then
31766 echo $ECHO_N "(cached) $ECHO_C" >&6
31767 else
31768 case $PDFLATEX in
31769 [\\/]* | ?:[\\/]*)
31770 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
31773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31774 for as_dir in $PATH
31776 IFS=$as_save_IFS
31777 test -z "$as_dir" && as_dir=.
31778 for ac_exec_ext in '' $ac_executable_extensions; do
31779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31780 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
31781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31782 break 2
31784 done
31785 done
31786 IFS=$as_save_IFS
31789 esac
31791 PDFLATEX=$ac_cv_path_PDFLATEX
31792 if test -n "$PDFLATEX"; then
31793 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
31794 echo "${ECHO_T}$PDFLATEX" >&6; }
31795 else
31796 { echo "$as_me:$LINENO: result: no" >&5
31797 echo "${ECHO_T}no" >&6; }
31801 test -n "$PDFLATEX" && break
31802 done
31803 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
31808 # Look for w3m
31811 for ac_prog in w3m
31813 # Extract the first word of "$ac_prog", so it can be a program name with args.
31814 set dummy $ac_prog; ac_word=$2
31815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31817 if test "${ac_cv_path_W3M+set}" = set; then
31818 echo $ECHO_N "(cached) $ECHO_C" >&6
31819 else
31820 case $W3M in
31821 [\\/]* | ?:[\\/]*)
31822 ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
31825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31826 for as_dir in $PATH
31828 IFS=$as_save_IFS
31829 test -z "$as_dir" && as_dir=.
31830 for ac_exec_ext in '' $ac_executable_extensions; do
31831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31832 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
31833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31834 break 2
31836 done
31837 done
31838 IFS=$as_save_IFS
31841 esac
31843 W3M=$ac_cv_path_W3M
31844 if test -n "$W3M"; then
31845 { echo "$as_me:$LINENO: result: $W3M" >&5
31846 echo "${ECHO_T}$W3M" >&6; }
31847 else
31848 { echo "$as_me:$LINENO: result: no" >&5
31849 echo "${ECHO_T}no" >&6; }
31853 test -n "$W3M" && break
31854 done
31855 test -n "$W3M" || W3M="w3m"
31860 # Look for xsltproc (libxslt)
31863 # Extract the first word of "xsltproc", so it can be a program name with args.
31864 set dummy xsltproc; ac_word=$2
31865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31867 if test "${ac_cv_path_XSLTPROC+set}" = set; then
31868 echo $ECHO_N "(cached) $ECHO_C" >&6
31869 else
31870 case $XSLTPROC in
31871 [\\/]* | ?:[\\/]*)
31872 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
31875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31876 for as_dir in $PATH
31878 IFS=$as_save_IFS
31879 test -z "$as_dir" && as_dir=.
31880 for ac_exec_ext in '' $ac_executable_extensions; do
31881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31882 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
31883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31884 break 2
31886 done
31887 done
31888 IFS=$as_save_IFS
31890 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
31892 esac
31894 XSLTPROC=$ac_cv_path_XSLTPROC
31895 if test -n "$XSLTPROC"; then
31896 { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
31897 echo "${ECHO_T}$XSLTPROC" >&6; }
31898 else
31899 { echo "$as_me:$LINENO: result: no" >&5
31900 echo "${ECHO_T}no" >&6; }
31907 # Look for xmllint (libxml2)
31910 # Extract the first word of "xmllint", so it can be a program name with args.
31911 set dummy xmllint; ac_word=$2
31912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31914 if test "${ac_cv_path_XMLLINT+set}" = set; then
31915 echo $ECHO_N "(cached) $ECHO_C" >&6
31916 else
31917 case $XMLLINT in
31918 [\\/]* | ?:[\\/]*)
31919 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
31922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31923 for as_dir in $PATH
31925 IFS=$as_save_IFS
31926 test -z "$as_dir" && as_dir=.
31927 for ac_exec_ext in '' $ac_executable_extensions; do
31928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31929 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
31930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31931 break 2
31933 done
31934 done
31935 IFS=$as_save_IFS
31937 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
31939 esac
31941 XMLLINT=$ac_cv_path_XMLLINT
31942 if test -n "$XMLLINT"; then
31943 { echo "$as_me:$LINENO: result: $XMLLINT" >&5
31944 echo "${ECHO_T}$XMLLINT" >&6; }
31945 else
31946 { echo "$as_me:$LINENO: result: no" >&5
31947 echo "${ECHO_T}no" >&6; }
31954 # Look for Doxygen
31957 # Extract the first word of "doxygen", so it can be a program name with args.
31958 set dummy doxygen; ac_word=$2
31959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31961 if test "${ac_cv_path_DOXYGEN+set}" = set; then
31962 echo $ECHO_N "(cached) $ECHO_C" >&6
31963 else
31964 case $DOXYGEN in
31965 [\\/]* | ?:[\\/]*)
31966 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
31969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31970 for as_dir in $PATH
31972 IFS=$as_save_IFS
31973 test -z "$as_dir" && as_dir=.
31974 for ac_exec_ext in '' $ac_executable_extensions; do
31975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31976 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
31977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31978 break 2
31980 done
31981 done
31982 IFS=$as_save_IFS
31984 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
31986 esac
31988 DOXYGEN=$ac_cv_path_DOXYGEN
31989 if test -n "$DOXYGEN"; then
31990 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
31991 echo "${ECHO_T}$DOXYGEN" >&6; }
31992 else
31993 { echo "$as_me:$LINENO: result: no" >&5
31994 echo "${ECHO_T}no" >&6; }
32001 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
32002 # in a number of directories:
32004 # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
32006 # If the file FILENAME is found in one of the DIRECTORIES, the shell
32007 # variable VARIABLE is defined to its absolute pathname. Otherwise,
32008 # it is set to FILENAME, with no directory prefix (that's not terribly
32009 # useful, but looks less confusing in substitutions than leaving it
32010 # empty). The variable VARIABLE will be substituted into output files.
32016 # Look for Docbook-XSL stylesheets. Location probably varies by system.
32017 # If it's not explicitly specified, guess where it might be found, based on
32018 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
32019 # of at the moment).
32021 { echo "$as_me:$LINENO: checking for Docbook-XSL path" >&5
32022 echo $ECHO_N "checking for Docbook-XSL path... $ECHO_C" >&6; }
32024 # Check whether --with-docbook-xsl was given.
32025 if test "${with_docbook_xsl+set}" = set; then
32026 withval=$with_docbook_xsl; docbook_path="$withval"
32027 else
32028 docbook_path="auto"
32031 case "$docbook_path" in
32032 auto)
32033 { echo "$as_me:$LINENO: result: auto" >&5
32034 echo "${ECHO_T}auto" >&6; }
32035 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook"
32038 docbook_xsl_trees="$withval"
32039 { echo "$as_me:$LINENO: result: $docbook_xsl_trees" >&5
32040 echo "${ECHO_T}$docbook_xsl_trees" >&6; }
32042 esac
32045 # Look for stylesheets we need.
32049 XSLT_DOCBOOK_STYLE_HTML=""
32050 { echo "$as_me:$LINENO: checking for html/docbook.xsl" >&5
32051 echo $ECHO_N "checking for html/docbook.xsl... $ECHO_C" >&6; }
32052 for d in $docbook_xsl_trees
32054 f=$d/html/docbook.xsl
32055 if test -f $f
32056 then
32057 XSLT_DOCBOOK_STYLE_HTML=$f
32058 { echo "$as_me:$LINENO: result: $f" >&5
32059 echo "${ECHO_T}$f" >&6; }
32060 break
32062 done
32063 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
32064 then
32065 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32066 echo "${ECHO_T}\"not found\"" >&6; };
32067 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
32072 XSLT_DOCBOOK_STYLE_XHTML=""
32073 { echo "$as_me:$LINENO: checking for xhtml/docbook.xsl" >&5
32074 echo $ECHO_N "checking for xhtml/docbook.xsl... $ECHO_C" >&6; }
32075 for d in $docbook_xsl_trees
32077 f=$d/xhtml/docbook.xsl
32078 if test -f $f
32079 then
32080 XSLT_DOCBOOK_STYLE_XHTML=$f
32081 { echo "$as_me:$LINENO: result: $f" >&5
32082 echo "${ECHO_T}$f" >&6; }
32083 break
32085 done
32086 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
32087 then
32088 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32089 echo "${ECHO_T}\"not found\"" >&6; };
32090 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
32095 XSLT_DOCBOOK_STYLE_MAN=""
32096 { echo "$as_me:$LINENO: checking for manpages/docbook.xsl" >&5
32097 echo $ECHO_N "checking for manpages/docbook.xsl... $ECHO_C" >&6; }
32098 for d in $docbook_xsl_trees
32100 f=$d/manpages/docbook.xsl
32101 if test -f $f
32102 then
32103 XSLT_DOCBOOK_STYLE_MAN=$f
32104 { echo "$as_me:$LINENO: result: $f" >&5
32105 echo "${ECHO_T}$f" >&6; }
32106 break
32108 done
32109 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
32110 then
32111 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32112 echo "${ECHO_T}\"not found\"" >&6; };
32113 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
32118 XSLT_DOCBOOK_CHUNK_HTML=""
32119 { echo "$as_me:$LINENO: checking for html/chunk.xsl" >&5
32120 echo $ECHO_N "checking for html/chunk.xsl... $ECHO_C" >&6; }
32121 for d in $docbook_xsl_trees
32123 f=$d/html/chunk.xsl
32124 if test -f $f
32125 then
32126 XSLT_DOCBOOK_CHUNK_HTML=$f
32127 { echo "$as_me:$LINENO: result: $f" >&5
32128 echo "${ECHO_T}$f" >&6; }
32129 break
32131 done
32132 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
32133 then
32134 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32135 echo "${ECHO_T}\"not found\"" >&6; };
32136 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
32141 XSLT_DOCBOOK_CHUNK_XHTML=""
32142 { echo "$as_me:$LINENO: checking for xhtml/chunk.xsl" >&5
32143 echo $ECHO_N "checking for xhtml/chunk.xsl... $ECHO_C" >&6; }
32144 for d in $docbook_xsl_trees
32146 f=$d/xhtml/chunk.xsl
32147 if test -f $f
32148 then
32149 XSLT_DOCBOOK_CHUNK_XHTML=$f
32150 { echo "$as_me:$LINENO: result: $f" >&5
32151 echo "${ECHO_T}$f" >&6; }
32152 break
32154 done
32155 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
32156 then
32157 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32158 echo "${ECHO_T}\"not found\"" >&6; };
32159 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
32164 XSLT_DOCBOOK_CHUNKTOC_HTML=""
32165 { echo "$as_me:$LINENO: checking for html/chunktoc.xsl" >&5
32166 echo $ECHO_N "checking for html/chunktoc.xsl... $ECHO_C" >&6; }
32167 for d in $docbook_xsl_trees
32169 f=$d/html/chunktoc.xsl
32170 if test -f $f
32171 then
32172 XSLT_DOCBOOK_CHUNKTOC_HTML=$f
32173 { echo "$as_me:$LINENO: result: $f" >&5
32174 echo "${ECHO_T}$f" >&6; }
32175 break
32177 done
32178 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
32179 then
32180 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32181 echo "${ECHO_T}\"not found\"" >&6; };
32182 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
32187 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
32188 { echo "$as_me:$LINENO: checking for xhtml/chunktoc.xsl" >&5
32189 echo $ECHO_N "checking for xhtml/chunktoc.xsl... $ECHO_C" >&6; }
32190 for d in $docbook_xsl_trees
32192 f=$d/xhtml/chunktoc.xsl
32193 if test -f $f
32194 then
32195 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
32196 { echo "$as_me:$LINENO: result: $f" >&5
32197 echo "${ECHO_T}$f" >&6; }
32198 break
32200 done
32201 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
32202 then
32203 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32204 echo "${ECHO_T}\"not found\"" >&6; };
32205 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
32210 XSLT_DOCBOOK_MAKETOC_HTML=""
32211 { echo "$as_me:$LINENO: checking for html/maketoc.xsl" >&5
32212 echo $ECHO_N "checking for html/maketoc.xsl... $ECHO_C" >&6; }
32213 for d in $docbook_xsl_trees
32215 f=$d/html/maketoc.xsl
32216 if test -f $f
32217 then
32218 XSLT_DOCBOOK_MAKETOC_HTML=$f
32219 { echo "$as_me:$LINENO: result: $f" >&5
32220 echo "${ECHO_T}$f" >&6; }
32221 break
32223 done
32224 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
32225 then
32226 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32227 echo "${ECHO_T}\"not found\"" >&6; };
32228 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
32233 XSLT_DOCBOOK_MAKETOC_XHTML=""
32234 { echo "$as_me:$LINENO: checking for xhtml/maketoc.xsl" >&5
32235 echo $ECHO_N "checking for xhtml/maketoc.xsl... $ECHO_C" >&6; }
32236 for d in $docbook_xsl_trees
32238 f=$d/xhtml/maketoc.xsl
32239 if test -f $f
32240 then
32241 XSLT_DOCBOOK_MAKETOC_XHTML=$f
32242 { echo "$as_me:$LINENO: result: $f" >&5
32243 echo "${ECHO_T}$f" >&6; }
32244 break
32246 done
32247 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
32248 then
32249 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32250 echo "${ECHO_T}\"not found\"" >&6; };
32251 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
32257 # Same dance for db2latex
32259 # No idea where this lives except on FreeBSD.
32262 db2latex_xsl_trees="/usr/local/share"
32265 # Look for stylesheets we need.
32269 XSLT_DB2LATEX_STYLE=""
32270 { echo "$as_me:$LINENO: checking for db2latex/xsl/docbook.xsl" >&5
32271 echo $ECHO_N "checking for db2latex/xsl/docbook.xsl... $ECHO_C" >&6; }
32272 for d in $db2latex_xsl_trees
32274 f=$d/db2latex/xsl/docbook.xsl
32275 if test -f $f
32276 then
32277 XSLT_DB2LATEX_STYLE=$f
32278 { echo "$as_me:$LINENO: result: $f" >&5
32279 echo "${ECHO_T}$f" >&6; }
32280 break
32282 done
32283 if test "X$XSLT_DB2LATEX_STYLE" = "X"
32284 then
32285 { echo "$as_me:$LINENO: result: \"not found\"" >&5
32286 echo "${ECHO_T}\"not found\"" >&6; };
32287 XSLT_DB2LATEX_STYLE=db2latex/xsl/docbook.xsl
32293 # Look for "admonition" image directory. Can't use NOM_PATH_FILE()
32294 # because it's a directory, so just do the same things, inline.
32297 { echo "$as_me:$LINENO: checking for db2latex/xsl/figures" >&5
32298 echo $ECHO_N "checking for db2latex/xsl/figures... $ECHO_C" >&6; }
32299 for d in $db2latex_xsl_trees
32301 dd=$d/db2latex/xsl/figures
32302 if test -d $dd
32303 then
32304 XSLT_DB2LATEX_ADMONITIONS=$dd
32305 { echo "$as_me:$LINENO: result: $dd" >&5
32306 echo "${ECHO_T}$dd" >&6; }
32307 break
32309 done
32310 if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X"
32311 then
32312 { echo "$as_me:$LINENO: result: not found" >&5
32313 echo "${ECHO_T}not found" >&6; }
32314 XSLT_DB2LATEX_ADMONITIONS=db2latex/xsl/figures
32319 # IDN support
32322 # Check whether --with-idn was given.
32323 if test "${with_idn+set}" = set; then
32324 withval=$with_idn; use_idn="$withval"
32325 else
32326 use_idn="no"
32329 case "$use_idn" in
32330 yes)
32331 if test X$prefix = XNONE ; then
32332 idn_path=/usr/local
32333 else
32334 idn_path=$prefix
32340 idn_path="$use_idn"
32342 esac
32344 iconvinc=
32345 iconvlib=
32347 # Check whether --with-libiconv was given.
32348 if test "${with_libiconv+set}" = set; then
32349 withval=$with_libiconv; use_libiconv="$withval"
32350 else
32351 use_libiconv="no"
32354 case "$use_libiconv" in
32355 yes)
32356 if test X$prefix = XNONE ; then
32357 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
32358 else
32359 iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
32363 iconvlib=
32366 iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
32368 esac
32371 # Check whether --with-iconv was given.
32372 if test "${with_iconv+set}" = set; then
32373 withval=$with_iconv; iconvlib="$withval"
32376 case "$iconvlib" in
32378 iconvlib=
32380 yes)
32381 iconvlib=-liconv
32383 esac
32386 # Check whether --with-idnlib was given.
32387 if test "${with_idnlib+set}" = set; then
32388 withval=$with_idnlib; idnlib="$withval"
32389 else
32390 idnlib="no"
32393 if test "$idnlib" = yes; then
32394 { { echo "$as_me:$LINENO: error: You must specify ARG for --with-idnlib." >&5
32395 echo "$as_me: error: You must specify ARG for --with-idnlib." >&2;}
32396 { (exit 1); exit 1; }; }
32399 IDNLIBS=
32400 if test "$use_idn" != no; then
32402 cat >>confdefs.h <<\_ACEOF
32403 #define WITH_IDN 1
32404 _ACEOF
32406 STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include"
32407 if test "$idnlib" != no; then
32408 IDNLIBS="$idnlib $iconvlib"
32409 else
32410 IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib"
32416 for ac_header in locale.h
32418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32423 echo $ECHO_N "(cached) $ECHO_C" >&6
32425 ac_res=`eval echo '${'$as_ac_Header'}'`
32426 { echo "$as_me:$LINENO: result: $ac_res" >&5
32427 echo "${ECHO_T}$ac_res" >&6; }
32428 else
32429 # Is the header compilable?
32430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32432 cat >conftest.$ac_ext <<_ACEOF
32433 /* confdefs.h. */
32434 _ACEOF
32435 cat confdefs.h >>conftest.$ac_ext
32436 cat >>conftest.$ac_ext <<_ACEOF
32437 /* end confdefs.h. */
32438 $ac_includes_default
32439 #include <$ac_header>
32440 _ACEOF
32441 rm -f conftest.$ac_objext
32442 if { (ac_try="$ac_compile"
32443 case "(($ac_try" in
32444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445 *) ac_try_echo=$ac_try;;
32446 esac
32447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448 (eval "$ac_compile") 2>conftest.er1
32449 ac_status=$?
32450 grep -v '^ *+' conftest.er1 >conftest.err
32451 rm -f conftest.er1
32452 cat conftest.err >&5
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); } && {
32455 test -z "$ac_c_werror_flag" ||
32456 test ! -s conftest.err
32457 } && test -s conftest.$ac_objext; then
32458 ac_header_compiler=yes
32459 else
32460 echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32463 ac_header_compiler=no
32466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32468 echo "${ECHO_T}$ac_header_compiler" >&6; }
32470 # Is the header present?
32471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32473 cat >conftest.$ac_ext <<_ACEOF
32474 /* confdefs.h. */
32475 _ACEOF
32476 cat confdefs.h >>conftest.$ac_ext
32477 cat >>conftest.$ac_ext <<_ACEOF
32478 /* end confdefs.h. */
32479 #include <$ac_header>
32480 _ACEOF
32481 if { (ac_try="$ac_cpp conftest.$ac_ext"
32482 case "(($ac_try" in
32483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484 *) ac_try_echo=$ac_try;;
32485 esac
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32488 ac_status=$?
32489 grep -v '^ *+' conftest.er1 >conftest.err
32490 rm -f conftest.er1
32491 cat conftest.err >&5
32492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493 (exit $ac_status); } >/dev/null && {
32494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32495 test ! -s conftest.err
32496 }; then
32497 ac_header_preproc=yes
32498 else
32499 echo "$as_me: failed program was:" >&5
32500 sed 's/^/| /' conftest.$ac_ext >&5
32502 ac_header_preproc=no
32505 rm -f conftest.err conftest.$ac_ext
32506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32507 echo "${ECHO_T}$ac_header_preproc" >&6; }
32509 # So? What about this header?
32510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32511 yes:no: )
32512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32516 ac_header_preproc=yes
32518 no:yes:* )
32519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32533 esac
32534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32537 echo $ECHO_N "(cached) $ECHO_C" >&6
32538 else
32539 eval "$as_ac_Header=\$ac_header_preproc"
32541 ac_res=`eval echo '${'$as_ac_Header'}'`
32542 { echo "$as_me:$LINENO: result: $ac_res" >&5
32543 echo "${ECHO_T}$ac_res" >&6; }
32546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32547 cat >>confdefs.h <<_ACEOF
32548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32549 _ACEOF
32553 done
32556 for ac_func in setlocale
32558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32563 else
32564 cat >conftest.$ac_ext <<_ACEOF
32565 /* confdefs.h. */
32566 _ACEOF
32567 cat confdefs.h >>conftest.$ac_ext
32568 cat >>conftest.$ac_ext <<_ACEOF
32569 /* end confdefs.h. */
32570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32572 #define $ac_func innocuous_$ac_func
32574 /* System header to define __stub macros and hopefully few prototypes,
32575 which can conflict with char $ac_func (); below.
32576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32577 <limits.h> exists even on freestanding compilers. */
32579 #ifdef __STDC__
32580 # include <limits.h>
32581 #else
32582 # include <assert.h>
32583 #endif
32585 #undef $ac_func
32587 /* Override any GCC internal prototype to avoid an error.
32588 Use char because int might match the return type of a GCC
32589 builtin and then its argument prototype would still apply. */
32590 #ifdef __cplusplus
32591 extern "C"
32592 #endif
32593 char $ac_func ();
32594 /* The GNU C library defines this for functions which it implements
32595 to always fail with ENOSYS. Some functions are actually named
32596 something starting with __ and the normal name is an alias. */
32597 #if defined __stub_$ac_func || defined __stub___$ac_func
32598 choke me
32599 #endif
32602 main ()
32604 return $ac_func ();
32606 return 0;
32608 _ACEOF
32609 rm -f conftest.$ac_objext conftest$ac_exeext
32610 if { (ac_try="$ac_link"
32611 case "(($ac_try" in
32612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613 *) ac_try_echo=$ac_try;;
32614 esac
32615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616 (eval "$ac_link") 2>conftest.er1
32617 ac_status=$?
32618 grep -v '^ *+' conftest.er1 >conftest.err
32619 rm -f conftest.er1
32620 cat conftest.err >&5
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); } && {
32623 test -z "$ac_c_werror_flag" ||
32624 test ! -s conftest.err
32625 } && test -s conftest$ac_exeext &&
32626 $as_test_x conftest$ac_exeext; then
32627 eval "$as_ac_var=yes"
32628 else
32629 echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32632 eval "$as_ac_var=no"
32635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32636 conftest$ac_exeext conftest.$ac_ext
32638 ac_res=`eval echo '${'$as_ac_var'}'`
32639 { echo "$as_me:$LINENO: result: $ac_res" >&5
32640 echo "${ECHO_T}$ac_res" >&6; }
32641 if test `eval echo '${'$as_ac_var'}'` = yes; then
32642 cat >>confdefs.h <<_ACEOF
32643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32644 _ACEOF
32647 done
32651 # Substitutions
32654 BIND9_TOP_BUILDDIR=`pwd`
32662 if test "X$srcdir" != "X"; then
32663 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
32664 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
32665 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
32666 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
32667 BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
32668 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
32669 else
32670 BIND9_ISC_BUILDINCLUDE=""
32671 BIND9_ISCCC_BUILDINCLUDE=""
32672 BIND9_ISCCFG_BUILDINCLUDE=""
32673 BIND9_DNS_BUILDINCLUDE=""
32674 BIND9_LWRES_BUILDINCLUDE=""
32675 BIND9_BIND9_BUILDINCLUDE=""
32679 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
32682 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
32684 . $srcdir/version
32685 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}"
32688 if test -z "$ac_configure_args"; then
32689 BIND9_CONFIGARGS="defaults"
32690 else
32691 for a in $ac_configure_args
32693 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
32694 done
32696 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
32697 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
32701 LIBISC_API=$srcdir/lib/isc/api
32704 LIBISCCC_API=$srcdir/lib/isccc/api
32707 LIBISCCFG_API=$srcdir/lib/isccfg/api
32710 LIBDNS_API=$srcdir/lib/dns/api
32713 LIBBIND9_API=$srcdir/lib/bind9/api
32716 LIBLWRES_API=$srcdir/lib/lwres/api
32719 LIBIRS_API=$srcdir/lib/irs/api
32722 # Configure any DLZ drivers.
32724 # If config.dlz.in selects one or more DLZ drivers, it will set
32725 # USE_DLZ to a non-empty value, which will be our clue to
32726 # enable the DLZ core functions.
32728 # This section has to come after the libtool stuff because it needs to
32729 # know how to name the driver object files.
32732 USE_DLZ=""
32733 DLZ_DRIVER_INCLUDES=""
32734 DLZ_DRIVER_LIBS=""
32735 DLZ_DRIVER_SRCS=""
32736 DLZ_DRIVER_OBJS=""
32738 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
32740 # Permission to use, copy, modify, and distribute this software for any
32741 # purpose with or without fee is hereby granted, provided that the above
32742 # copyright notice and this permission notice appear in all copies.
32744 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
32745 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
32746 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
32747 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
32748 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
32749 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
32750 # PERFORMANCE OF THIS SOFTWARE.
32753 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
32755 dlzdir='${DLZ_DRIVER_DIR}'
32758 # Private autoconf macro to simplify configuring drivers:
32760 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
32762 # where:
32763 # DEFINE is FOO (to define -DDLZ_FOO)
32764 # DRIVER is dlz_foo_driver (sources without the .c)
32765 # INCLUDES is any necessary include definitions
32766 # LIBS is any necessary library definitions
32771 # Check for the various DLZ drivers
32775 # Was --with-dlz-postgres specified?
32778 { echo "$as_me:$LINENO: checking for Postgres DLZ driver" >&5
32779 echo $ECHO_N "checking for Postgres DLZ driver... $ECHO_C" >&6; }
32781 # Check whether --with-dlz_postgres was given.
32782 if test "${with_dlz_postgres+set}" = set; then
32783 withval=$with_dlz_postgres; use_dlz_postgres="$withval"
32784 else
32785 use_dlz_postgres="no"
32789 if test "$use_dlz_postgres" = "yes"
32790 then
32791 # User did not specify a path - guess it
32792 # Ask Postgres to tell us where it is
32794 for ac_prog in pg_config
32796 # Extract the first word of "$ac_prog", so it can be a program name with args.
32797 set dummy $ac_prog; ac_word=$2
32798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32800 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
32801 echo $ECHO_N "(cached) $ECHO_C" >&6
32802 else
32803 case $PG_CONFIG in
32804 [\\/]* | ?:[\\/]*)
32805 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
32808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32809 for as_dir in $PATH
32811 IFS=$as_save_IFS
32812 test -z "$as_dir" && as_dir=.
32813 for ac_exec_ext in '' $ac_executable_extensions; do
32814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32815 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32817 break 2
32819 done
32820 done
32821 IFS=$as_save_IFS
32824 esac
32826 PG_CONFIG=$ac_cv_path_PG_CONFIG
32827 if test -n "$PG_CONFIG"; then
32828 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
32829 echo "${ECHO_T}$PG_CONFIG" >&6; }
32830 else
32831 { echo "$as_me:$LINENO: result: no" >&5
32832 echo "${ECHO_T}no" >&6; }
32836 test -n "$PG_CONFIG" && break
32837 done
32838 test -n "$PG_CONFIG" || PG_CONFIG="not found"
32841 if test "$PG_CONFIG" != "not found"
32842 then
32843 use_dlz_postgres=`$PG_CONFIG --includedir`
32844 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
32848 if test "$use_dlz_postgres" = "yes"
32849 then
32850 # User did not specify path and Postgres didn't say - guess it
32852 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
32853 for d in $pgdirs
32855 if test -f $d/include/libpq-fe.h
32856 then
32857 use_dlz_postgres=$d/include
32858 use_dlz_postgres_lib=$d/lib
32859 break
32861 done
32864 if test "$use_dlz_postgres" = "yes"
32865 then
32866 # Still no joy, give up
32868 { echo "$as_me:$LINENO: result: not found" >&5
32869 echo "${ECHO_T}not found" >&6; }
32870 { { echo "$as_me:$LINENO: error: No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" >&5
32871 echo "$as_me: error: No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" >&2;}
32872 { (exit 1); exit 1; }; }
32875 case "$use_dlz_postgres" in
32877 { echo "$as_me:$LINENO: result: no" >&5
32878 echo "${ECHO_T}no" >&6; }
32882 USE_DLZ="$USE_DLZ -DDLZ_POSTGRES"
32883 for i in dlz_postgres_driver
32885 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
32886 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
32887 done
32888 if test -n "-I$use_dlz_postgres"
32889 then
32890 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
32892 if test -n "-L$use_dlz_postgres_lib -lpq"
32893 then
32894 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
32898 { echo "$as_me:$LINENO: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
32899 echo "${ECHO_T}using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
32901 esac
32905 # Was --with-dlz-mysql specified?
32908 { echo "$as_me:$LINENO: checking for MySQL DLZ driver" >&5
32909 echo $ECHO_N "checking for MySQL DLZ driver... $ECHO_C" >&6; }
32911 # Check whether --with-dlz_mysql was given.
32912 if test "${with_dlz_mysql+set}" = set; then
32913 withval=$with_dlz_mysql; use_dlz_mysql="$withval"
32914 else
32915 use_dlz_mysql="no"
32919 mysql_include=""
32920 mysql_lib=""
32921 if test "$use_dlz_mysql" = "yes"
32922 then
32923 # User did not specify a path - guess it
32924 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
32925 for d in $mysqldirs
32927 if test -f $d/include/mysql/mysql.h
32928 then
32929 use_dlz_mysql=$d
32930 mysql_include=$d/include/mysql
32931 if test -d $d/lib/mysql
32932 then
32933 mysql_lib=$d/lib/mysql
32934 else
32935 mysql_lib=$d/lib
32937 break
32938 elif test -f $d/include/mysql.h
32939 then
32940 use_dlz_mysql=$d
32941 mysql_include=$d/include
32942 if test -d $d/lib/mysql
32943 then
32944 mysql_lib=$d/lib/mysql
32945 else
32946 mysql_lib=$d/lib
32948 break
32950 done
32951 elif test "$use_dlz_mysql" != "no"
32952 then
32953 d=$use_dlz_mysql
32954 if test -f $d/include/mysql/mysql.h
32955 then
32956 mysql_include=$d/include/mysql
32957 if test -d $d/lib/mysql
32958 then
32959 mysql_lib=$d/lib/mysql
32960 else
32961 mysql_lib=$d/lib
32963 elif test -f $d/include/mysql.h
32964 then
32965 mysql_include=$d/include
32966 if test -d $d/lib/mysql
32967 then
32968 mysql_lib=$d/lib/mysql
32969 else
32970 mysql_lib=$d/lib
32975 if test "$use_dlz_mysql" = "yes"
32976 then
32977 { echo "$as_me:$LINENO: result: not found" >&5
32978 echo "${ECHO_T}not found" >&6; }
32979 { { echo "$as_me:$LINENO: error: MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" >&5
32980 echo "$as_me: error: MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" >&2;}
32981 { (exit 1); exit 1; }; }
32984 case "$use_dlz_mysql" in
32986 { echo "$as_me:$LINENO: result: no" >&5
32987 echo "${ECHO_T}no" >&6; }
32991 USE_DLZ="$USE_DLZ -DDLZ_MYSQL"
32992 for i in dlz_mysql_driver
32994 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
32995 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
32996 done
32997 if test -n "-I${mysql_include}"
32998 then
32999 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
33001 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
33002 then
33003 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
33007 { echo "$as_me:$LINENO: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
33008 echo "${ECHO_T}using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
33010 esac
33014 # Was --with-dlz-bdb specified?
33017 { echo "$as_me:$LINENO: checking for Berkeley DB DLZ driver" >&5
33018 echo $ECHO_N "checking for Berkeley DB DLZ driver... $ECHO_C" >&6; }
33020 # Check whether --with-dlz_bdb was given.
33021 if test "${with_dlz_bdb+set}" = set; then
33022 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
33023 else
33024 use_dlz_bdb="no"
33028 case "$use_dlz_bdb" in
33030 { echo "$as_me:$LINENO: result: no" >&5
33031 echo "${ECHO_T}no" >&6; }
33034 if test "$use_dlz_bdb" = "yes"
33035 then
33036 # User did not specify a path - guess directories
33037 bdbdirs="/usr/local /usr/pkg /usr"
33038 elif test -d "$use_dlz_bdb"
33039 then
33040 # User specified directory and it exists
33041 bdbdirs="$use_dlz_bdb"
33042 else
33043 { echo "$as_me:$LINENO: result: not found" >&5
33044 echo "${ECHO_T}not found" >&6; }
33045 { { echo "$as_me:$LINENO: error: path $use_dlz_bdb does not exist" >&5
33046 echo "$as_me: error: path $use_dlz_bdb does not exist" >&2;}
33047 { (exit 1); exit 1; }; }
33048 bdbdirs=""
33051 # Use path we were given or guessed. This is insanely
33052 # complicated because we have to search for a bunch of
33053 # platform-specific variations and have to check
33054 # separately for include and library directories.
33056 # Set both to yes, so we can check them later
33057 dlz_bdb_inc="yes"
33058 dlz_bdb_libs="yes"
33060 for dd in $bdbdirs
33062 # Skip nonexistant directories
33063 if test ! -d "$dd"
33064 then
33065 continue
33068 # Check other locations for includes.
33069 # Order is important (sigh).
33071 bdb_incdirs="/ /db42/ /db41/ /db4/ /db/"
33072 for d in $bdb_incdirs
33074 if test -f "$dd/include${d}db.h"
33075 then
33076 dlz_bdb_inc="-I$dd/include${d}"
33077 break
33079 done
33081 # Give up on this directory if we couldn't
33082 # find the include subdir
33084 if test "$dlz_bdb_inc" = "yes"
33085 then
33086 continue
33089 # Look for libname other than libdb.so.
33090 # Order is important (sigh).
33092 bdb_libnames="db42 db-4.2 db41 db-4.1 db"
33093 for d in $bdb_libnames
33095 if test -f "$dd/lib/lib${d}.so"
33096 then
33097 if test "$dd" != "/usr"
33098 then
33099 dlz_bdb_libs="-L${dd}/lib "
33100 else
33101 dlz_bdb_libs=""
33103 dlz_bdb_libs="${dlz_bdb_libs}-l${d}"
33104 break
33106 done
33108 # If we found both incdir and lib, we're done
33109 if test "$dlz_bdb_libs" != "yes"
33110 then
33111 break
33114 # Otherwise, we're starting over
33116 dlz_bdb_inc="yes"
33117 dlz_bdb_libs="yes"
33118 done
33120 # Done searching, now make sure we got everything.
33122 if test "$dlz_bdb_inc" = "yes"
33123 then
33124 { echo "$as_me:$LINENO: result: not found" >&5
33125 echo "${ECHO_T}not found" >&6; }
33126 { { echo "$as_me:$LINENO: error: could not find Berkeley DB include directory" >&5
33127 echo "$as_me: error: could not find Berkeley DB include directory" >&2;}
33128 { (exit 1); exit 1; }; }
33131 if test "$dlz_bdb_libs" = "yes"
33132 then
33133 { echo "$as_me:$LINENO: result: not found" >&5
33134 echo "${ECHO_T}not found" >&6; }
33135 { { echo "$as_me:$LINENO: error: could not find Berkeley DB library" >&5
33136 echo "$as_me: error: could not find Berkeley DB library" >&2;}
33137 { (exit 1); exit 1; }; }
33141 USE_DLZ="$USE_DLZ -DDLZ_BDB"
33142 for i in dlz_bdb_driver dlz_bdbhpt_driver
33144 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33145 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33146 done
33147 if test -n "$dlz_bdb_inc"
33148 then
33149 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
33151 if test -n "$dlz_bdb_libs"
33152 then
33153 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
33157 { echo "$as_me:$LINENO: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
33158 echo "${ECHO_T}using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
33160 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
33163 esac
33167 # Was --with-dlz-filesystem specified?
33170 { echo "$as_me:$LINENO: checking for file system DLZ driver" >&5
33171 echo $ECHO_N "checking for file system DLZ driver... $ECHO_C" >&6; }
33173 # Check whether --with-dlz_filesystem was given.
33174 if test "${with_dlz_filesystem+set}" = set; then
33175 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
33176 else
33177 use_dlz_filesystem="no"
33181 case "$use_dlz_filesystem" in
33183 { echo "$as_me:$LINENO: result: no" >&5
33184 echo "${ECHO_T}no" >&6; }
33188 USE_DLZ="$USE_DLZ -DDLZ_FILESYSTEM"
33189 for i in dlz_filesystem_driver
33191 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33192 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33193 done
33194 if test -n ""
33195 then
33196 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
33198 if test -n ""
33199 then
33200 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
33204 { echo "$as_me:$LINENO: result: yes" >&5
33205 echo "${ECHO_T}yes" >&6; }
33207 esac
33211 # Was --with-dlz-ldap specified?
33214 { echo "$as_me:$LINENO: checking for LDAP DLZ driver" >&5
33215 echo $ECHO_N "checking for LDAP DLZ driver... $ECHO_C" >&6; }
33217 # Check whether --with-dlz_ldap was given.
33218 if test "${with_dlz_ldap+set}" = set; then
33219 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
33220 else
33221 use_dlz_ldap="no"
33225 if test "$use_dlz_ldap" = "yes"
33226 then
33227 # User did not specify a path - guess it
33228 ldapdirs="/usr /usr/local /usr/pkg"
33229 for d in $ldapdirs
33231 if test -f $d/include/ldap.h
33232 then
33233 use_dlz_ldap=$d
33234 break
33236 done
33239 if test "$use_dlz_ldap" = "yes"
33240 then
33241 { echo "$as_me:$LINENO: result: not found" >&5
33242 echo "${ECHO_T}not found" >&6; }
33243 { { echo "$as_me:$LINENO: error: LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" >&5
33244 echo "$as_me: error: LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" >&2;}
33245 { (exit 1); exit 1; }; }
33248 case "$use_dlz_ldap" in
33250 { echo "$as_me:$LINENO: result: no" >&5
33251 echo "${ECHO_T}no" >&6; }
33255 USE_DLZ="$USE_DLZ -DDLZ_LDAP"
33256 for i in dlz_ldap_driver
33258 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33259 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33260 done
33261 if test -n "-I$use_dlz_ldap/include"
33262 then
33263 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
33265 if test -n "-L$use_dlz_ldap/lib -lldap -llber"
33266 then
33267 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
33271 { echo "$as_me:$LINENO: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
33272 echo "${ECHO_T}using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
33274 esac
33278 # Was --with-dlz-odbc specified?
33281 { echo "$as_me:$LINENO: checking for ODBC DLZ driver" >&5
33282 echo $ECHO_N "checking for ODBC DLZ driver... $ECHO_C" >&6; }
33284 # Check whether --with-dlz_odbc was given.
33285 if test "${with_dlz_odbc+set}" = set; then
33286 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
33287 else
33288 use_dlz_odbc="no"
33292 if test "$use_dlz_odbc" = "yes"
33293 then
33294 # User did not specify a path - guess it
33295 odbcdirs="/usr /usr/local /usr/pkg"
33296 for d in $odbcdirs
33298 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
33299 then
33300 use_dlz_odbc=$d
33301 break
33303 done
33306 case "$use_dlz_odbc" in
33308 { echo "$as_me:$LINENO: result: no" >&5
33309 echo "${ECHO_T}no" >&6; }
33311 yes)
33312 { echo "$as_me:$LINENO: result: not found" >&5
33313 echo "${ECHO_T}not found" >&6; }
33314 { { echo "$as_me:$LINENO: error: ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" >&5
33315 echo "$as_me: error: ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" >&2;}
33316 { (exit 1); exit 1; }; }
33320 USE_DLZ="$USE_DLZ -DDLZ_ODBC"
33321 for i in dlz_odbc_driver
33323 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33324 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33325 done
33326 if test -n "-I$use_dlz_odbc/include"
33327 then
33328 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_odbc/include"
33330 if test -n "-L$use_dlz_odbc/lib -lodbc"
33331 then
33332 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_odbc/lib -lodbc"
33336 { echo "$as_me:$LINENO: result: using ODBC from $use_dlz_odbc" >&5
33337 echo "${ECHO_T}using ODBC from $use_dlz_odbc" >&6; }
33339 esac
33343 # Was --with-dlz-stub specified?
33346 { echo "$as_me:$LINENO: checking for stub DLZ driver" >&5
33347 echo $ECHO_N "checking for stub DLZ driver... $ECHO_C" >&6; }
33349 # Check whether --with-dlz_stub was given.
33350 if test "${with_dlz_stub+set}" = set; then
33351 withval=$with_dlz_stub; use_dlz_stub="$withval"
33352 else
33353 use_dlz_stub="no"
33357 case "$use_dlz_stub" in
33359 { echo "$as_me:$LINENO: result: no" >&5
33360 echo "${ECHO_T}no" >&6; }
33365 USE_DLZ="$USE_DLZ -DDLZ_STUB"
33366 for i in dlz_stub_driver
33368 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33369 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33370 done
33371 if test -n ""
33372 then
33373 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
33375 if test -n ""
33376 then
33377 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
33381 { echo "$as_me:$LINENO: result: yes" >&5
33382 echo "${ECHO_T}yes" >&6; }
33384 esac
33387 # Add any additional DLZ drivers here.
33390 # Finally, some generic stuff that applies to all drivers, assuming
33391 # we're compiling DLZ at all.
33393 if test -n "$USE_DLZ"
33394 then
33396 # Where to find DLZ driver header files.
33398 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
33401 # Initialization and shutdown wrappers, helper functions.
33403 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
33404 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
33408 { echo "$as_me:$LINENO: checking for DLZ" >&5
33409 echo $ECHO_N "checking for DLZ... $ECHO_C" >&6; }
33411 if test -n "$USE_DLZ"
33412 then
33413 { echo "$as_me:$LINENO: result: yes" >&5
33414 echo "${ECHO_T}yes" >&6; }
33415 USE_DLZ="-DDLZ $USE_DLZ"
33416 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
33417 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES"
33419 else
33420 { echo "$as_me:$LINENO: result: no" >&5
33421 echo "${ECHO_T}no" >&6; }
33422 DLZ_DRIVER_RULES=/dev/null
33432 if test "$cross_compiling" = "yes"; then
33433 if test -z "$BUILD_CC"; then
33434 { { echo "$as_me:$LINENO: error: BUILD_CC not set" >&5
33435 echo "$as_me: error: BUILD_CC not set" >&2;}
33436 { (exit 1); exit 1; }; }
33438 BUILD_CFLAGS="$BUILD_CFLAGS"
33439 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
33440 BUILD_LDFLAGS="$BUILD_LDFLAGS"
33441 BUILD_LIBS="$BUILD_LIBS"
33442 else
33443 BUILD_CC="$CC"
33444 BUILD_CFLAGS="$CFLAGS"
33445 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
33446 BUILD_LDFLAGS="$LDFLAGS"
33447 BUILD_LIBS="$LIBS"
33450 NEWFLAGS=""
33451 for e in $BUILD_LDFLAGS ; do
33452 case $e in
33453 -L*)
33454 case $host_os in
33455 netbsd*)
33456 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
33457 NEWFLAGS="$NEWFLAGS $e $ee"
33459 freebsd*)
33460 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
33461 NEWFLAGS="$NEWFLAGS $e $ee"
33463 solaris*)
33464 ee=`echo $e | sed -e 's%^-L%-R%'`
33465 NEWFLAGS="$NEWFLAGS $e $ee"
33468 NEWFLAGS="$NEWFLAGS $e"
33470 esac
33473 NEWFLAGS="$NEWFLAGS $e"
33475 esac
33476 done
33477 BUILD_LDFLAGS="$NEWFLAGS"
33479 NEWFLAGS=""
33480 for e in $DNS_GSSAPI_LIBS ; do
33481 case $e in
33482 -L*)
33483 case $host_os in
33484 netbsd*)
33485 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
33486 NEWFLAGS="$NEWFLAGS $e $ee"
33488 freebsd*)
33489 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
33490 NEWFLAGS="$NEWFLAGS $e $ee"
33492 solaris*)
33493 ee=`echo $e | sed -e 's%^-L%-R%'`
33494 NEWFLAGS="$NEWFLAGS $e $ee"
33497 NEWFLAGS="$NEWFLAGS $e"
33499 esac
33502 NEWFLAGS="$NEWFLAGS $e"
33504 esac
33505 done
33506 DNS_GSSAPI_LIBS="$NEWFLAGS"
33508 NEWFLAGS=""
33509 for e in $DNS_CRYPTO_LIBS ; do
33510 case $e in
33511 -L*)
33512 case $host_os in
33513 netbsd*)
33514 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
33515 NEWFLAGS="$NEWFLAGS $e $ee"
33517 freebsd*)
33518 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
33519 NEWFLAGS="$NEWFLAGS $e $ee"
33521 solaris*)
33522 ee=`echo $e | sed -e 's%^-L%-R%'`
33523 NEWFLAGS="$NEWFLAGS $e $ee"
33526 NEWFLAGS="$NEWFLAGS $e"
33528 esac
33531 NEWFLAGS="$NEWFLAGS $e"
33533 esac
33534 done
33535 DNS_CRYPTO_LIBS="$NEWFLAGS"
33544 # Commands to run at the end of config.status.
33545 # Don't just put these into configure, it won't work right if somebody
33546 # runs config.status directly (which autoconf allows).
33549 ac_config_commands="$ac_config_commands chmod"
33553 # Files to configure. These are listed here because we used to
33554 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
33555 # elsewhere if there's a good reason for doing so.
33558 ac_config_files="$ac_config_files Makefile make/Makefile make/mkdep lib/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/nls/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/export/Makefile lib/export/isc/Makefile lib/export/isc/include/Makefile lib/export/isc/include/isc/Makefile lib/export/isc/unix/Makefile lib/export/isc/unix/include/Makefile lib/export/isc/unix/include/isc/Makefile lib/export/isc/nls/Makefile lib/export/isc/$thread_dir/Makefile lib/export/isc/$thread_dir/include/Makefile lib/export/isc/$thread_dir/include/isc/Makefile lib/export/dns/Makefile lib/export/dns/include/Makefile lib/export/dns/include/dns/Makefile lib/export/dns/include/dst/Makefile lib/export/irs/Makefile lib/export/irs/include/Makefile lib/export/irs/include/irs/Makefile lib/export/isccfg/Makefile lib/export/isccfg/include/Makefile lib/export/isccfg/include/isccfg/Makefile lib/export/samples/Makefile lib/export/samples/Makefile-postinstall lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/lwres/Makefile lib/lwres/include/Makefile lib/lwres/include/lwres/Makefile lib/lwres/include/lwres/netdb.h lib/lwres/include/lwres/platform.h lib/lwres/man/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/tests/Makefile lib/tests/include/Makefile lib/tests/include/tests/Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/named/Makefile bin/named/unix/Makefile bin/rndc/Makefile bin/dig/Makefile bin/nsupdate/Makefile bin/tests/Makefile bin/tests/names/Makefile bin/tests/master/Makefile bin/tests/rbt/Makefile bin/tests/db/Makefile bin/tests/tasks/Makefile bin/tests/timers/Makefile bin/tests/dst/Makefile bin/tests/mem/Makefile bin/tests/net/Makefile bin/tests/sockaddr/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/lwresd/Makefile bin/tests/system/tkey/Makefile bin/tests/headerdep_test.sh bin/tools/Makefile bin/dnssec/Makefile bin/pkcs11/Makefile doc/Makefile doc/arm/Makefile doc/misc/Makefile isc-config.sh doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-docbook-latex.xsl doc/xsl/isc-manpage.xsl doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter"
33562 # Do it
33565 cat >confcache <<\_ACEOF
33566 # This file is a shell script that caches the results of configure
33567 # tests run on this system so they can be shared between configure
33568 # scripts and configure runs, see configure's option --config-cache.
33569 # It is not useful on other systems. If it contains results you don't
33570 # want to keep, you may remove or edit it.
33572 # config.status only pays attention to the cache file if you give it
33573 # the --recheck option to rerun configure.
33575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33577 # following values.
33579 _ACEOF
33581 # The following way of writing the cache mishandles newlines in values,
33582 # but we know of no workaround that is simple, portable, and efficient.
33583 # So, we kill variables containing newlines.
33584 # Ultrix sh set writes to stderr and can't be redirected directly,
33585 # and sets the high bit in the cache file unless we assign to the vars.
33587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33588 eval ac_val=\$$ac_var
33589 case $ac_val in #(
33590 *${as_nl}*)
33591 case $ac_var in #(
33592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33594 esac
33595 case $ac_var in #(
33596 _ | IFS | as_nl) ;; #(
33597 *) $as_unset $ac_var ;;
33598 esac ;;
33599 esac
33600 done
33602 (set) 2>&1 |
33603 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33604 *${as_nl}ac_space=\ *)
33605 # `set' does not quote correctly, so add quotes (double-quote
33606 # substitution turns \\\\ into \\, and sed turns \\ into \).
33607 sed -n \
33608 "s/'/'\\\\''/g;
33609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33610 ;; #(
33612 # `set' quotes correctly as required by POSIX, so do not add quotes.
33613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33615 esac |
33616 sort
33618 sed '
33619 /^ac_cv_env_/b end
33620 t clear
33621 :clear
33622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33623 t end
33624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33625 :end' >>confcache
33626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33627 if test -w "$cache_file"; then
33628 test "x$cache_file" != "x/dev/null" &&
33629 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33630 echo "$as_me: updating cache $cache_file" >&6;}
33631 cat confcache >$cache_file
33632 else
33633 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33634 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33637 rm -f confcache
33639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33640 # Let make expand exec_prefix.
33641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33643 DEFS=-DHAVE_CONFIG_H
33645 ac_libobjs=
33646 ac_ltlibobjs=
33647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33648 # 1. Remove the extension, and $U if already installed.
33649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33650 ac_i=`echo "$ac_i" | sed "$ac_script"`
33651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33652 # will be set to the directory where LIBOBJS objects are built.
33653 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33654 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33655 done
33656 LIBOBJS=$ac_libobjs
33658 LTLIBOBJS=$ac_ltlibobjs
33662 : ${CONFIG_STATUS=./config.status}
33663 ac_clean_files_save=$ac_clean_files
33664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33665 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33666 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33667 cat >$CONFIG_STATUS <<_ACEOF
33668 #! $SHELL
33669 # Generated by $as_me.
33670 # Run this file to recreate the current configuration.
33671 # Compiler output produced by configure, useful for debugging
33672 # configure, is in config.log if it exists.
33674 debug=false
33675 ac_cs_recheck=false
33676 ac_cs_silent=false
33677 SHELL=\${CONFIG_SHELL-$SHELL}
33678 _ACEOF
33680 cat >>$CONFIG_STATUS <<\_ACEOF
33681 ## --------------------- ##
33682 ## M4sh Initialization. ##
33683 ## --------------------- ##
33685 # Be more Bourne compatible
33686 DUALCASE=1; export DUALCASE # for MKS sh
33687 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33688 emulate sh
33689 NULLCMD=:
33690 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33691 # is contrary to our usage. Disable this feature.
33692 alias -g '${1+"$@"}'='"$@"'
33693 setopt NO_GLOB_SUBST
33694 else
33695 case `(set -o) 2>/dev/null` in
33696 *posix*) set -o posix ;;
33697 esac
33704 # PATH needs CR
33705 # Avoid depending upon Character Ranges.
33706 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33707 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33708 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33709 as_cr_digits='0123456789'
33710 as_cr_alnum=$as_cr_Letters$as_cr_digits
33712 # The user is always right.
33713 if test "${PATH_SEPARATOR+set}" != set; then
33714 echo "#! /bin/sh" >conf$$.sh
33715 echo "exit 0" >>conf$$.sh
33716 chmod +x conf$$.sh
33717 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33718 PATH_SEPARATOR=';'
33719 else
33720 PATH_SEPARATOR=:
33722 rm -f conf$$.sh
33725 # Support unset when possible.
33726 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33727 as_unset=unset
33728 else
33729 as_unset=false
33733 # IFS
33734 # We need space, tab and new line, in precisely that order. Quoting is
33735 # there to prevent editors from complaining about space-tab.
33736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33737 # splitting by setting IFS to empty value.)
33738 as_nl='
33740 IFS=" "" $as_nl"
33742 # Find who we are. Look in the path if we contain no directory separator.
33743 case $0 in
33744 *[\\/]* ) as_myself=$0 ;;
33745 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33746 for as_dir in $PATH
33748 IFS=$as_save_IFS
33749 test -z "$as_dir" && as_dir=.
33750 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33751 done
33752 IFS=$as_save_IFS
33755 esac
33756 # We did not find ourselves, most probably we were run as `sh COMMAND'
33757 # in which case we are not to be found in the path.
33758 if test "x$as_myself" = x; then
33759 as_myself=$0
33761 if test ! -f "$as_myself"; then
33762 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33763 { (exit 1); exit 1; }
33766 # Work around bugs in pre-3.0 UWIN ksh.
33767 for as_var in ENV MAIL MAILPATH
33768 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33769 done
33770 PS1='$ '
33771 PS2='> '
33772 PS4='+ '
33774 # NLS nuisances.
33775 for as_var in \
33776 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33777 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33778 LC_TELEPHONE LC_TIME
33780 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33781 eval $as_var=C; export $as_var
33782 else
33783 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33785 done
33787 # Required to use basename.
33788 if expr a : '\(a\)' >/dev/null 2>&1 &&
33789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33790 as_expr=expr
33791 else
33792 as_expr=false
33795 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33796 as_basename=basename
33797 else
33798 as_basename=false
33802 # Name of the executable.
33803 as_me=`$as_basename -- "$0" ||
33804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33805 X"$0" : 'X\(//\)$' \| \
33806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33807 echo X/"$0" |
33808 sed '/^.*\/\([^/][^/]*\)\/*$/{
33809 s//\1/
33812 /^X\/\(\/\/\)$/{
33813 s//\1/
33816 /^X\/\(\/\).*/{
33817 s//\1/
33820 s/.*/./; q'`
33822 # CDPATH.
33823 $as_unset CDPATH
33827 as_lineno_1=$LINENO
33828 as_lineno_2=$LINENO
33829 test "x$as_lineno_1" != "x$as_lineno_2" &&
33830 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33832 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33833 # uniformly replaced by the line number. The first 'sed' inserts a
33834 # line-number line after each line using $LINENO; the second 'sed'
33835 # does the real work. The second script uses 'N' to pair each
33836 # line-number line with the line containing $LINENO, and appends
33837 # trailing '-' during substitution so that $LINENO is not a special
33838 # case at line end.
33839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33840 # scripts with optimization help from Paolo Bonzini. Blame Lee
33841 # E. McMahon (1931-1989) for sed's syntax. :-)
33842 sed -n '
33844 /[$]LINENO/=
33845 ' <$as_myself |
33846 sed '
33847 s/[$]LINENO.*/&-/
33848 t lineno
33850 :lineno
33852 :loop
33853 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33854 t loop
33855 s/-\n.*//
33856 ' >$as_me.lineno &&
33857 chmod +x "$as_me.lineno" ||
33858 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33859 { (exit 1); exit 1; }; }
33861 # Don't try to exec as it changes $[0], causing all sort of problems
33862 # (the dirname of $[0] is not the place where we might find the
33863 # original and so on. Autoconf is especially sensitive to this).
33864 . "./$as_me.lineno"
33865 # Exit status is that of the last command.
33866 exit
33870 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33871 as_dirname=dirname
33872 else
33873 as_dirname=false
33876 ECHO_C= ECHO_N= ECHO_T=
33877 case `echo -n x` in
33878 -n*)
33879 case `echo 'x\c'` in
33880 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33881 *) ECHO_C='\c';;
33882 esac;;
33884 ECHO_N='-n';;
33885 esac
33887 if expr a : '\(a\)' >/dev/null 2>&1 &&
33888 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33889 as_expr=expr
33890 else
33891 as_expr=false
33894 rm -f conf$$ conf$$.exe conf$$.file
33895 if test -d conf$$.dir; then
33896 rm -f conf$$.dir/conf$$.file
33897 else
33898 rm -f conf$$.dir
33899 mkdir conf$$.dir
33901 echo >conf$$.file
33902 if ln -s conf$$.file conf$$ 2>/dev/null; then
33903 as_ln_s='ln -s'
33904 # ... but there are two gotchas:
33905 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33906 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33907 # In both cases, we have to default to `cp -p'.
33908 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33909 as_ln_s='cp -p'
33910 elif ln conf$$.file conf$$ 2>/dev/null; then
33911 as_ln_s=ln
33912 else
33913 as_ln_s='cp -p'
33915 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33916 rmdir conf$$.dir 2>/dev/null
33918 if mkdir -p . 2>/dev/null; then
33919 as_mkdir_p=:
33920 else
33921 test -d ./-p && rmdir ./-p
33922 as_mkdir_p=false
33925 if test -x / >/dev/null 2>&1; then
33926 as_test_x='test -x'
33927 else
33928 if ls -dL / >/dev/null 2>&1; then
33929 as_ls_L_option=L
33930 else
33931 as_ls_L_option=
33933 as_test_x='
33934 eval sh -c '\''
33935 if test -d "$1"; then
33936 test -d "$1/.";
33937 else
33938 case $1 in
33939 -*)set "./$1";;
33940 esac;
33941 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33942 ???[sx]*):;;*)false;;esac;fi
33943 '\'' sh
33946 as_executable_p=$as_test_x
33948 # Sed expression to map a string onto a valid CPP name.
33949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33951 # Sed expression to map a string onto a valid variable name.
33952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33955 exec 6>&1
33957 # Save the log message, to keep $[0] and so on meaningful, and to
33958 # report actual input values of CONFIG_FILES etc. instead of their
33959 # values after options handling.
33960 ac_log="
33961 This file was extended by $as_me, which was
33962 generated by GNU Autoconf 2.61. Invocation command line was
33964 CONFIG_FILES = $CONFIG_FILES
33965 CONFIG_HEADERS = $CONFIG_HEADERS
33966 CONFIG_LINKS = $CONFIG_LINKS
33967 CONFIG_COMMANDS = $CONFIG_COMMANDS
33968 $ $0 $@
33970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33973 _ACEOF
33975 cat >>$CONFIG_STATUS <<_ACEOF
33976 # Files that config.status was made for.
33977 config_files="$ac_config_files"
33978 config_headers="$ac_config_headers"
33979 config_commands="$ac_config_commands"
33981 _ACEOF
33983 cat >>$CONFIG_STATUS <<\_ACEOF
33984 ac_cs_usage="\
33985 \`$as_me' instantiates files from templates according to the
33986 current configuration.
33988 Usage: $0 [OPTIONS] [FILE]...
33990 -h, --help print this help, then exit
33991 -V, --version print version number and configuration settings, then exit
33992 -q, --quiet do not print progress messages
33993 -d, --debug don't remove temporary files
33994 --recheck update $as_me by reconfiguring in the same conditions
33995 --file=FILE[:TEMPLATE]
33996 instantiate the configuration file FILE
33997 --header=FILE[:TEMPLATE]
33998 instantiate the configuration header FILE
34000 Configuration files:
34001 $config_files
34003 Configuration headers:
34004 $config_headers
34006 Configuration commands:
34007 $config_commands
34009 Report bugs to <bug-autoconf@gnu.org>."
34011 _ACEOF
34012 cat >>$CONFIG_STATUS <<_ACEOF
34013 ac_cs_version="\\
34014 config.status
34015 configured by $0, generated by GNU Autoconf 2.61,
34016 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34018 Copyright (C) 2006 Free Software Foundation, Inc.
34019 This config.status script is free software; the Free Software Foundation
34020 gives unlimited permission to copy, distribute and modify it."
34022 ac_pwd='$ac_pwd'
34023 srcdir='$srcdir'
34024 INSTALL='$INSTALL'
34025 _ACEOF
34027 cat >>$CONFIG_STATUS <<\_ACEOF
34028 # If no file are specified by the user, then we need to provide default
34029 # value. By we need to know if files were specified by the user.
34030 ac_need_defaults=:
34031 while test $# != 0
34033 case $1 in
34034 --*=*)
34035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34037 ac_shift=:
34040 ac_option=$1
34041 ac_optarg=$2
34042 ac_shift=shift
34044 esac
34046 case $ac_option in
34047 # Handling of the options.
34048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34049 ac_cs_recheck=: ;;
34050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34051 echo "$ac_cs_version"; exit ;;
34052 --debug | --debu | --deb | --de | --d | -d )
34053 debug=: ;;
34054 --file | --fil | --fi | --f )
34055 $ac_shift
34056 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34057 ac_need_defaults=false;;
34058 --header | --heade | --head | --hea )
34059 $ac_shift
34060 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34061 ac_need_defaults=false;;
34062 --he | --h)
34063 # Conflict between --help and --header
34064 { echo "$as_me: error: ambiguous option: $1
34065 Try \`$0 --help' for more information." >&2
34066 { (exit 1); exit 1; }; };;
34067 --help | --hel | -h )
34068 echo "$ac_cs_usage"; exit ;;
34069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34071 ac_cs_silent=: ;;
34073 # This is an error.
34074 -*) { echo "$as_me: error: unrecognized option: $1
34075 Try \`$0 --help' for more information." >&2
34076 { (exit 1); exit 1; }; } ;;
34078 *) ac_config_targets="$ac_config_targets $1"
34079 ac_need_defaults=false ;;
34081 esac
34082 shift
34083 done
34085 ac_configure_extra_args=
34087 if $ac_cs_silent; then
34088 exec 6>/dev/null
34089 ac_configure_extra_args="$ac_configure_extra_args --silent"
34092 _ACEOF
34093 cat >>$CONFIG_STATUS <<_ACEOF
34094 if \$ac_cs_recheck; then
34095 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34096 CONFIG_SHELL=$SHELL
34097 export CONFIG_SHELL
34098 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34101 _ACEOF
34102 cat >>$CONFIG_STATUS <<\_ACEOF
34103 exec 5>>config.log
34105 echo
34106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34107 ## Running $as_me. ##
34108 _ASBOX
34109 echo "$ac_log"
34110 } >&5
34112 _ACEOF
34113 cat >>$CONFIG_STATUS <<_ACEOF
34114 _ACEOF
34116 cat >>$CONFIG_STATUS <<\_ACEOF
34118 # Handling of arguments.
34119 for ac_config_target in $ac_config_targets
34121 case $ac_config_target in
34122 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34123 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
34124 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
34125 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
34126 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
34127 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
34128 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34129 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
34130 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
34131 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34132 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
34133 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
34134 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
34135 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
34136 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
34137 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
34138 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
34139 "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
34140 "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
34141 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
34142 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
34143 "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
34144 "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
34145 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
34146 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
34147 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
34148 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
34149 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
34150 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
34151 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
34152 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
34153 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
34154 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
34155 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
34156 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
34157 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
34158 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
34159 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
34160 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
34161 "lib/export/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/Makefile" ;;
34162 "lib/export/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/Makefile" ;;
34163 "lib/export/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/Makefile" ;;
34164 "lib/export/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/isc/Makefile" ;;
34165 "lib/export/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/Makefile" ;;
34166 "lib/export/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/Makefile" ;;
34167 "lib/export/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/isc/Makefile" ;;
34168 "lib/export/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/nls/Makefile" ;;
34169 "lib/export/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/Makefile" ;;
34170 "lib/export/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/Makefile" ;;
34171 "lib/export/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/isc/Makefile" ;;
34172 "lib/export/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/Makefile" ;;
34173 "lib/export/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/Makefile" ;;
34174 "lib/export/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dns/Makefile" ;;
34175 "lib/export/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dst/Makefile" ;;
34176 "lib/export/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/Makefile" ;;
34177 "lib/export/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/Makefile" ;;
34178 "lib/export/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/irs/Makefile" ;;
34179 "lib/export/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/Makefile" ;;
34180 "lib/export/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/Makefile" ;;
34181 "lib/export/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/isccfg/Makefile" ;;
34182 "lib/export/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile" ;;
34183 "lib/export/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile-postinstall" ;;
34184 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
34185 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
34186 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
34187 "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;;
34188 "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;;
34189 "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
34190 "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
34191 "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
34192 "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;;
34193 "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
34194 "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
34195 "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
34196 "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;;
34197 "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;;
34198 "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
34199 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
34200 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
34201 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
34202 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
34203 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
34204 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
34205 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
34206 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
34207 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
34208 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
34209 "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;;
34210 "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;;
34211 "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
34212 "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;;
34213 "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
34214 "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;;
34215 "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;;
34216 "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;;
34217 "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;;
34218 "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
34219 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
34220 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
34221 "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
34222 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
34223 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
34224 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
34225 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
34226 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
34227 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34228 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
34229 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
34230 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
34231 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
34232 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
34233 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
34234 "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;;
34235 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
34236 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
34237 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
34238 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
34240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34242 { (exit 1); exit 1; }; };;
34243 esac
34244 done
34247 # If the user did not use the arguments to specify the items to instantiate,
34248 # then the envvar interface is used. Set only those that are not.
34249 # We use the long form for the default assignment because of an extremely
34250 # bizarre bug on SunOS 4.1.3.
34251 if $ac_need_defaults; then
34252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34257 # Have a temporary directory for convenience. Make it in the build tree
34258 # simply because there is no reason against having it here, and in addition,
34259 # creating and moving files from /tmp can sometimes cause problems.
34260 # Hook for its removal unless debugging.
34261 # Note that there is a small window in which the directory will not be cleaned:
34262 # after its creation but before its name has been assigned to `$tmp'.
34263 $debug ||
34265 tmp=
34266 trap 'exit_status=$?
34267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34269 trap '{ (exit 1); exit 1; }' 1 2 13 15
34271 # Create a (secure) tmp directory for tmp files.
34274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34275 test -n "$tmp" && test -d "$tmp"
34276 } ||
34278 tmp=./conf$$-$RANDOM
34279 (umask 077 && mkdir "$tmp")
34280 } ||
34282 echo "$me: cannot create a temporary directory in ." >&2
34283 { (exit 1); exit 1; }
34287 # Set up the sed scripts for CONFIG_FILES section.
34290 # No need to generate the scripts if there are no CONFIG_FILES.
34291 # This happens for instance when ./config.status config.h
34292 if test -n "$CONFIG_FILES"; then
34294 _ACEOF
34296 # Create sed commands to just substitute file output variables.
34298 # Remaining file output variables are in a fragment that also has non-file
34299 # output varibles.
34303 ac_delim='%!_!# '
34304 for ac_last_try in false false false false false :; do
34305 cat >conf$$subs.sed <<_ACEOF
34306 SHELL!$SHELL$ac_delim
34307 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34308 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34309 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34310 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34311 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34312 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34313 exec_prefix!$exec_prefix$ac_delim
34314 prefix!$prefix$ac_delim
34315 program_transform_name!$program_transform_name$ac_delim
34316 bindir!$bindir$ac_delim
34317 sbindir!$sbindir$ac_delim
34318 libexecdir!$libexecdir$ac_delim
34319 datarootdir!$datarootdir$ac_delim
34320 datadir!$datadir$ac_delim
34321 sysconfdir!$sysconfdir$ac_delim
34322 sharedstatedir!$sharedstatedir$ac_delim
34323 localstatedir!$localstatedir$ac_delim
34324 includedir!$includedir$ac_delim
34325 oldincludedir!$oldincludedir$ac_delim
34326 docdir!$docdir$ac_delim
34327 infodir!$infodir$ac_delim
34328 htmldir!$htmldir$ac_delim
34329 dvidir!$dvidir$ac_delim
34330 pdfdir!$pdfdir$ac_delim
34331 psdir!$psdir$ac_delim
34332 libdir!$libdir$ac_delim
34333 localedir!$localedir$ac_delim
34334 mandir!$mandir$ac_delim
34335 DEFS!$DEFS$ac_delim
34336 ECHO_C!$ECHO_C$ac_delim
34337 ECHO_N!$ECHO_N$ac_delim
34338 ECHO_T!$ECHO_T$ac_delim
34339 LIBS!$LIBS$ac_delim
34340 build_alias!$build_alias$ac_delim
34341 host_alias!$host_alias$ac_delim
34342 target_alias!$target_alias$ac_delim
34343 build!$build$ac_delim
34344 build_cpu!$build_cpu$ac_delim
34345 build_vendor!$build_vendor$ac_delim
34346 build_os!$build_os$ac_delim
34347 host!$host$ac_delim
34348 host_cpu!$host_cpu$ac_delim
34349 host_vendor!$host_vendor$ac_delim
34350 host_os!$host_os$ac_delim
34351 SET_MAKE!$SET_MAKE$ac_delim
34352 CC!$CC$ac_delim
34353 CFLAGS!$CFLAGS$ac_delim
34354 LDFLAGS!$LDFLAGS$ac_delim
34355 CPPFLAGS!$CPPFLAGS$ac_delim
34356 ac_ct_CC!$ac_ct_CC$ac_delim
34357 EXEEXT!$EXEEXT$ac_delim
34358 OBJEXT!$OBJEXT$ac_delim
34359 SED!$SED$ac_delim
34360 GREP!$GREP$ac_delim
34361 EGREP!$EGREP$ac_delim
34362 LN_S!$LN_S$ac_delim
34363 ECHO!$ECHO$ac_delim
34364 AR!$AR$ac_delim
34365 RANLIB!$RANLIB$ac_delim
34366 STRIP!$STRIP$ac_delim
34367 DSYMUTIL!$DSYMUTIL$ac_delim
34368 NMEDIT!$NMEDIT$ac_delim
34369 CPP!$CPP$ac_delim
34370 CXX!$CXX$ac_delim
34371 CXXFLAGS!$CXXFLAGS$ac_delim
34372 ac_ct_CXX!$ac_ct_CXX$ac_delim
34373 _ACEOF
34375 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
34376 break
34377 elif $ac_last_try; then
34378 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34380 { (exit 1); exit 1; }; }
34381 else
34382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34384 done
34386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34387 if test -n "$ac_eof"; then
34388 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34389 ac_eof=`expr $ac_eof + 1`
34392 cat >>$CONFIG_STATUS <<_ACEOF
34393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34395 /^[ ]*@BIND9_MAKE_INCLUDES@[ ]*$/{
34396 r $BIND9_MAKE_INCLUDES
34399 /^[ ]*@BIND9_MAKE_RULES@[ ]*$/{
34400 r $BIND9_MAKE_RULES
34403 /^[ ]*@LIBISC_API@[ ]*$/{
34404 r $LIBISC_API
34407 /^[ ]*@LIBISCCC_API@[ ]*$/{
34408 r $LIBISCCC_API
34411 /^[ ]*@LIBISCCFG_API@[ ]*$/{
34412 r $LIBISCCFG_API
34415 /^[ ]*@LIBDNS_API@[ ]*$/{
34416 r $LIBDNS_API
34419 /^[ ]*@LIBBIND9_API@[ ]*$/{
34420 r $LIBBIND9_API
34423 /^[ ]*@LIBLWRES_API@[ ]*$/{
34424 r $LIBLWRES_API
34427 /^[ ]*@LIBIRS_API@[ ]*$/{
34428 r $LIBIRS_API
34431 /^[ ]*@DLZ_DRIVER_RULES@[ ]*$/{
34432 r $DLZ_DRIVER_RULES
34435 _ACEOF
34436 sed '
34437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34438 s/^/s,@/; s/!/@,|#_!!_#|/
34441 s/'"$ac_delim"'$/,g/; t
34442 s/$/\\/; p
34443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34444 ' >>$CONFIG_STATUS <conf$$subs.sed
34445 rm -f conf$$subs.sed
34446 cat >>$CONFIG_STATUS <<_ACEOF
34447 CEOF$ac_eof
34448 _ACEOF
34451 ac_delim='%!_!# '
34452 for ac_last_try in false false false false false :; do
34453 cat >conf$$subs.sed <<_ACEOF
34454 CXXCPP!$CXXCPP$ac_delim
34455 F77!$F77$ac_delim
34456 FFLAGS!$FFLAGS$ac_delim
34457 ac_ct_F77!$ac_ct_F77$ac_delim
34458 LIBTOOL!$LIBTOOL$ac_delim
34459 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34460 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34461 INSTALL_DATA!$INSTALL_DATA$ac_delim
34462 STD_CINCLUDES!$STD_CINCLUDES$ac_delim
34463 STD_CDEFINES!$STD_CDEFINES$ac_delim
34464 STD_CWARNINGS!$STD_CWARNINGS$ac_delim
34465 CCOPT!$CCOPT$ac_delim
34466 ARFLAGS!$ARFLAGS$ac_delim
34467 LN!$LN$ac_delim
34468 ETAGS!$ETAGS$ac_delim
34469 PERL!$PERL$ac_delim
34470 ISC_SOCKADDR_LEN_T!$ISC_SOCKADDR_LEN_T$ac_delim
34471 ISC_PLATFORM_HAVELONGLONG!$ISC_PLATFORM_HAVELONGLONG$ac_delim
34472 ISC_PLATFORM_NORETURN_PRE!$ISC_PLATFORM_NORETURN_PRE$ac_delim
34473 ISC_PLATFORM_NORETURN_POST!$ISC_PLATFORM_NORETURN_POST$ac_delim
34474 ISC_PLATFORM_HAVELIFCONF!$ISC_PLATFORM_HAVELIFCONF$ac_delim
34475 ISC_PLATFORM_HAVEKQUEUE!$ISC_PLATFORM_HAVEKQUEUE$ac_delim
34476 ISC_PLATFORM_HAVEEPOLL!$ISC_PLATFORM_HAVEEPOLL$ac_delim
34477 ISC_PLATFORM_HAVEDEVPOLL!$ISC_PLATFORM_HAVEDEVPOLL$ac_delim
34478 ISC_PLATFORM_NEEDSYSSELECTH!$ISC_PLATFORM_NEEDSYSSELECTH$ac_delim
34479 LWRES_PLATFORM_NEEDSYSSELECTH!$LWRES_PLATFORM_NEEDSYSSELECTH$ac_delim
34480 USE_OPENSSL!$USE_OPENSSL$ac_delim
34481 DST_OPENSSL_INC!$DST_OPENSSL_INC$ac_delim
34482 ISC_PLATFORM_OPENSSLHASH!$ISC_PLATFORM_OPENSSLHASH$ac_delim
34483 ISC_OPENSSL_INC!$ISC_OPENSSL_INC$ac_delim
34484 USE_PKCS11!$USE_PKCS11$ac_delim
34485 PKCS11_TOOLS!$PKCS11_TOOLS$ac_delim
34486 PKCS11_PROVIDER!$PKCS11_PROVIDER$ac_delim
34487 ISC_PLATFORM_HAVEGSSAPI!$ISC_PLATFORM_HAVEGSSAPI$ac_delim
34488 ISC_PLATFORM_GSSAPIHEADER!$ISC_PLATFORM_GSSAPIHEADER$ac_delim
34489 USE_GSSAPI!$USE_GSSAPI$ac_delim
34490 DST_GSSAPI_INC!$DST_GSSAPI_INC$ac_delim
34491 DNS_GSSAPI_LIBS!$DNS_GSSAPI_LIBS$ac_delim
34492 DNS_CRYPTO_LIBS!$DNS_CRYPTO_LIBS$ac_delim
34493 ALWAYS_DEFINES!$ALWAYS_DEFINES$ac_delim
34494 ISC_PLATFORM_USETHREADS!$ISC_PLATFORM_USETHREADS$ac_delim
34495 ISC_THREAD_DIR!$ISC_THREAD_DIR$ac_delim
34496 MKDEPCC!$MKDEPCC$ac_delim
34497 MKDEPCFLAGS!$MKDEPCFLAGS$ac_delim
34498 MKDEPPROG!$MKDEPPROG$ac_delim
34499 IRIX_DNSSEC_WARNINGS_HACK!$IRIX_DNSSEC_WARNINGS_HACK$ac_delim
34500 purify_path!$purify_path$ac_delim
34501 PURIFY!$PURIFY$ac_delim
34502 ISC_PLATFORM_USEBACKTRACE!$ISC_PLATFORM_USEBACKTRACE$ac_delim
34503 MKSYMTBL_PROGRAM!$MKSYMTBL_PROGRAM$ac_delim
34504 ALWAYS_MAKE_SYMTABLE!$ALWAYS_MAKE_SYMTABLE$ac_delim
34505 O!$O$ac_delim
34506 A!$A$ac_delim
34507 SA!$SA$ac_delim
34508 LIBTOOL_MKDEP_SED!$LIBTOOL_MKDEP_SED$ac_delim
34509 LIBTOOL_MODE_COMPILE!$LIBTOOL_MODE_COMPILE$ac_delim
34510 LIBTOOL_MODE_INSTALL!$LIBTOOL_MODE_INSTALL$ac_delim
34511 LIBTOOL_MODE_LINK!$LIBTOOL_MODE_LINK$ac_delim
34512 LIBTOOL_ALLOW_UNDEFINED!$LIBTOOL_ALLOW_UNDEFINED$ac_delim
34513 LIBTOOL_IN_MAIN!$LIBTOOL_IN_MAIN$ac_delim
34514 LIBEXPORT!$LIBEXPORT$ac_delim
34515 BIND9_CO_RULE!$BIND9_CO_RULE$ac_delim
34516 export_libdir!$export_libdir$ac_delim
34517 export_includedir!$export_includedir$ac_delim
34518 ISC_PLATFORM_HAVEIPV6!$ISC_PLATFORM_HAVEIPV6$ac_delim
34519 LWRES_PLATFORM_HAVEIPV6!$LWRES_PLATFORM_HAVEIPV6$ac_delim
34520 ISC_PLATFORM_NEEDNETINETIN6H!$ISC_PLATFORM_NEEDNETINETIN6H$ac_delim
34521 LWRES_PLATFORM_NEEDNETINETIN6H!$LWRES_PLATFORM_NEEDNETINETIN6H$ac_delim
34522 ISC_PLATFORM_NEEDNETINET6IN6H!$ISC_PLATFORM_NEEDNETINET6IN6H$ac_delim
34523 LWRES_PLATFORM_NEEDNETINET6IN6H!$LWRES_PLATFORM_NEEDNETINET6IN6H$ac_delim
34524 ISC_PLATFORM_HAVEINADDR6!$ISC_PLATFORM_HAVEINADDR6$ac_delim
34525 LWRES_PLATFORM_HAVEINADDR6!$LWRES_PLATFORM_HAVEINADDR6$ac_delim
34526 ISC_PLATFORM_NEEDIN6ADDRANY!$ISC_PLATFORM_NEEDIN6ADDRANY$ac_delim
34527 LWRES_PLATFORM_NEEDIN6ADDRANY!$LWRES_PLATFORM_NEEDIN6ADDRANY$ac_delim
34528 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK!$ISC_PLATFORM_NEEDIN6ADDRLOOPBACK$ac_delim
34529 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK!$LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK$ac_delim
34530 ISC_PLATFORM_HAVEIN6PKTINFO!$ISC_PLATFORM_HAVEIN6PKTINFO$ac_delim
34531 ISC_PLATFORM_FIXIN6ISADDR!$ISC_PLATFORM_FIXIN6ISADDR$ac_delim
34532 ISC_IPV6_H!$ISC_IPV6_H$ac_delim
34533 ISC_IPV6_O!$ISC_IPV6_O$ac_delim
34534 ISC_ISCIPV6_O!$ISC_ISCIPV6_O$ac_delim
34535 ISC_IPV6_C!$ISC_IPV6_C$ac_delim
34536 LWRES_HAVE_SIN6_SCOPE_ID!$LWRES_HAVE_SIN6_SCOPE_ID$ac_delim
34537 ISC_PLATFORM_HAVESCOPEID!$ISC_PLATFORM_HAVESCOPEID$ac_delim
34538 ISC_PLATFORM_HAVEIF_LADDRREQ!$ISC_PLATFORM_HAVEIF_LADDRREQ$ac_delim
34539 ISC_PLATFORM_HAVEIF_LADDRCONF!$ISC_PLATFORM_HAVEIF_LADDRCONF$ac_delim
34540 ISC_PLATFORM_NEEDNTOP!$ISC_PLATFORM_NEEDNTOP$ac_delim
34541 ISC_PLATFORM_NEEDPTON!$ISC_PLATFORM_NEEDPTON$ac_delim
34542 ISC_PLATFORM_HAVESALEN!$ISC_PLATFORM_HAVESALEN$ac_delim
34543 LWRES_PLATFORM_HAVESALEN!$LWRES_PLATFORM_HAVESALEN$ac_delim
34544 ISC_PLATFORM_MSGHDRFLAVOR!$ISC_PLATFORM_MSGHDRFLAVOR$ac_delim
34545 ISC_PLATFORM_NEEDPORTT!$ISC_PLATFORM_NEEDPORTT$ac_delim
34546 ISC_LWRES_NEEDADDRINFO!$ISC_LWRES_NEEDADDRINFO$ac_delim
34547 ISC_IRS_NEEDADDRINFO!$ISC_IRS_NEEDADDRINFO$ac_delim
34548 ISC_LWRES_NEEDRRSETINFO!$ISC_LWRES_NEEDRRSETINFO$ac_delim
34549 ISC_LWRES_SETHOSTENTINT!$ISC_LWRES_SETHOSTENTINT$ac_delim
34550 ISC_LWRES_ENDHOSTENTINT!$ISC_LWRES_ENDHOSTENTINT$ac_delim
34551 _ACEOF
34553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34554 break
34555 elif $ac_last_try; then
34556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34558 { (exit 1); exit 1; }; }
34559 else
34560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34562 done
34564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34565 if test -n "$ac_eof"; then
34566 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34567 ac_eof=`expr $ac_eof + 1`
34570 cat >>$CONFIG_STATUS <<_ACEOF
34571 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34573 _ACEOF
34574 sed '
34575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34576 s/^/s,@/; s/!/@,|#_!!_#|/
34579 s/'"$ac_delim"'$/,g/; t
34580 s/$/\\/; p
34581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34582 ' >>$CONFIG_STATUS <conf$$subs.sed
34583 rm -f conf$$subs.sed
34584 cat >>$CONFIG_STATUS <<_ACEOF
34585 CEOF$ac_eof
34586 _ACEOF
34589 ac_delim='%!_!# '
34590 for ac_last_try in false false false false false :; do
34591 cat >conf$$subs.sed <<_ACEOF
34592 ISC_LWRES_GETNETBYADDRINADDR!$ISC_LWRES_GETNETBYADDRINADDR$ac_delim
34593 ISC_LWRES_SETNETENTINT!$ISC_LWRES_SETNETENTINT$ac_delim
34594 ISC_LWRES_ENDNETENTINT!$ISC_LWRES_ENDNETENTINT$ac_delim
34595 ISC_LWRES_GETHOSTBYADDRVOID!$ISC_LWRES_GETHOSTBYADDRVOID$ac_delim
34596 ISC_LWRES_NEEDHERRNO!$ISC_LWRES_NEEDHERRNO$ac_delim
34597 ISC_LWRES_GETIPNODEPROTO!$ISC_LWRES_GETIPNODEPROTO$ac_delim
34598 ISC_LWRES_GETADDRINFOPROTO!$ISC_LWRES_GETADDRINFOPROTO$ac_delim
34599 ISC_LWRES_GETNAMEINFOPROTO!$ISC_LWRES_GETNAMEINFOPROTO$ac_delim
34600 ISC_IRS_GETNAMEINFOSOCKLEN!$ISC_IRS_GETNAMEINFOSOCKLEN$ac_delim
34601 ISC_PLATFORM_NEEDSTRSEP!$ISC_PLATFORM_NEEDSTRSEP$ac_delim
34602 ISC_PLATFORM_NEEDMEMMOVE!$ISC_PLATFORM_NEEDMEMMOVE$ac_delim
34603 ISC_PLATFORM_NEEDSTRTOUL!$ISC_PLATFORM_NEEDSTRTOUL$ac_delim
34604 LWRES_PLATFORM_NEEDSTRTOUL!$LWRES_PLATFORM_NEEDSTRTOUL$ac_delim
34605 GENRANDOMLIB!$GENRANDOMLIB$ac_delim
34606 ISC_PLATFORM_NEEDSTRLCPY!$ISC_PLATFORM_NEEDSTRLCPY$ac_delim
34607 ISC_PLATFORM_NEEDSTRLCAT!$ISC_PLATFORM_NEEDSTRLCAT$ac_delim
34608 ISC_PLATFORM_NEEDSPRINTF!$ISC_PLATFORM_NEEDSPRINTF$ac_delim
34609 LWRES_PLATFORM_NEEDSPRINTF!$LWRES_PLATFORM_NEEDSPRINTF$ac_delim
34610 ISC_PLATFORM_NEEDVSNPRINTF!$ISC_PLATFORM_NEEDVSNPRINTF$ac_delim
34611 LWRES_PLATFORM_NEEDVSNPRINTF!$LWRES_PLATFORM_NEEDVSNPRINTF$ac_delim
34612 ISC_EXTRA_OBJS!$ISC_EXTRA_OBJS$ac_delim
34613 ISC_EXTRA_SRCS!$ISC_EXTRA_SRCS$ac_delim
34614 USE_ISC_SPNEGO!$USE_ISC_SPNEGO$ac_delim
34615 DST_EXTRA_OBJS!$DST_EXTRA_OBJS$ac_delim
34616 DST_EXTRA_SRCS!$DST_EXTRA_SRCS$ac_delim
34617 ISC_PLATFORM_QUADFORMAT!$ISC_PLATFORM_QUADFORMAT$ac_delim
34618 LWRES_PLATFORM_QUADFORMAT!$LWRES_PLATFORM_QUADFORMAT$ac_delim
34619 ISC_PLATFORM_HAVESYSUNH!$ISC_PLATFORM_HAVESYSUNH$ac_delim
34620 ISC_PLATFORM_RLIMITTYPE!$ISC_PLATFORM_RLIMITTYPE$ac_delim
34621 ISC_PLATFORM_USEDECLSPEC!$ISC_PLATFORM_USEDECLSPEC$ac_delim
34622 LWRES_PLATFORM_USEDECLSPEC!$LWRES_PLATFORM_USEDECLSPEC$ac_delim
34623 IRS_PLATFORM_USEDECLSPEC!$IRS_PLATFORM_USEDECLSPEC$ac_delim
34624 ISC_PLATFORM_BRACEPTHREADONCEINIT!$ISC_PLATFORM_BRACEPTHREADONCEINIT$ac_delim
34625 ISC_PLATFORM_HAVESTRINGSH!$ISC_PLATFORM_HAVESTRINGSH$ac_delim
34626 ISC_PLATFORM_HAVEIFNAMETOINDEX!$ISC_PLATFORM_HAVEIFNAMETOINDEX$ac_delim
34627 ISC_PLATFORM_HAVEXADD!$ISC_PLATFORM_HAVEXADD$ac_delim
34628 ISC_PLATFORM_HAVEXADDQ!$ISC_PLATFORM_HAVEXADDQ$ac_delim
34629 ISC_PLATFORM_HAVECMPXCHG!$ISC_PLATFORM_HAVECMPXCHG$ac_delim
34630 ISC_PLATFORM_HAVEATOMICSTORE!$ISC_PLATFORM_HAVEATOMICSTORE$ac_delim
34631 ISC_PLATFORM_USEGCCASM!$ISC_PLATFORM_USEGCCASM$ac_delim
34632 ISC_PLATFORM_USEOSFASM!$ISC_PLATFORM_USEOSFASM$ac_delim
34633 ISC_PLATFORM_USESTDASM!$ISC_PLATFORM_USESTDASM$ac_delim
34634 ISC_PLATFORM_USEMACASM!$ISC_PLATFORM_USEMACASM$ac_delim
34635 ISC_ARCH_DIR!$ISC_ARCH_DIR$ac_delim
34636 LATEX!$LATEX$ac_delim
34637 PDFLATEX!$PDFLATEX$ac_delim
34638 W3M!$W3M$ac_delim
34639 XSLTPROC!$XSLTPROC$ac_delim
34640 XMLLINT!$XMLLINT$ac_delim
34641 DOXYGEN!$DOXYGEN$ac_delim
34642 XSLT_DOCBOOK_STYLE_HTML!$XSLT_DOCBOOK_STYLE_HTML$ac_delim
34643 XSLT_DOCBOOK_STYLE_XHTML!$XSLT_DOCBOOK_STYLE_XHTML$ac_delim
34644 XSLT_DOCBOOK_STYLE_MAN!$XSLT_DOCBOOK_STYLE_MAN$ac_delim
34645 XSLT_DOCBOOK_CHUNK_HTML!$XSLT_DOCBOOK_CHUNK_HTML$ac_delim
34646 XSLT_DOCBOOK_CHUNK_XHTML!$XSLT_DOCBOOK_CHUNK_XHTML$ac_delim
34647 XSLT_DOCBOOK_CHUNKTOC_HTML!$XSLT_DOCBOOK_CHUNKTOC_HTML$ac_delim
34648 XSLT_DOCBOOK_CHUNKTOC_XHTML!$XSLT_DOCBOOK_CHUNKTOC_XHTML$ac_delim
34649 XSLT_DOCBOOK_MAKETOC_HTML!$XSLT_DOCBOOK_MAKETOC_HTML$ac_delim
34650 XSLT_DOCBOOK_MAKETOC_XHTML!$XSLT_DOCBOOK_MAKETOC_XHTML$ac_delim
34651 XSLT_DB2LATEX_STYLE!$XSLT_DB2LATEX_STYLE$ac_delim
34652 XSLT_DB2LATEX_ADMONITIONS!$XSLT_DB2LATEX_ADMONITIONS$ac_delim
34653 IDNLIBS!$IDNLIBS$ac_delim
34654 BIND9_TOP_BUILDDIR!$BIND9_TOP_BUILDDIR$ac_delim
34655 BIND9_ISC_BUILDINCLUDE!$BIND9_ISC_BUILDINCLUDE$ac_delim
34656 BIND9_ISCCC_BUILDINCLUDE!$BIND9_ISCCC_BUILDINCLUDE$ac_delim
34657 BIND9_ISCCFG_BUILDINCLUDE!$BIND9_ISCCFG_BUILDINCLUDE$ac_delim
34658 BIND9_DNS_BUILDINCLUDE!$BIND9_DNS_BUILDINCLUDE$ac_delim
34659 BIND9_LWRES_BUILDINCLUDE!$BIND9_LWRES_BUILDINCLUDE$ac_delim
34660 BIND9_BIND9_BUILDINCLUDE!$BIND9_BIND9_BUILDINCLUDE$ac_delim
34661 BIND9_VERSION!$BIND9_VERSION$ac_delim
34662 BIND9_CONFIGARGS!$BIND9_CONFIGARGS$ac_delim
34663 PG_CONFIG!$PG_CONFIG$ac_delim
34664 USE_DLZ!$USE_DLZ$ac_delim
34665 DLZ_DRIVER_INCLUDES!$DLZ_DRIVER_INCLUDES$ac_delim
34666 DLZ_DRIVER_LIBS!$DLZ_DRIVER_LIBS$ac_delim
34667 DLZ_DRIVER_SRCS!$DLZ_DRIVER_SRCS$ac_delim
34668 DLZ_DRIVER_OBJS!$DLZ_DRIVER_OBJS$ac_delim
34669 BUILD_CC!$BUILD_CC$ac_delim
34670 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
34671 BUILD_CPPFLAGS!$BUILD_CPPFLAGS$ac_delim
34672 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
34673 BUILD_LIBS!$BUILD_LIBS$ac_delim
34674 LIBOBJS!$LIBOBJS$ac_delim
34675 LTLIBOBJS!$LTLIBOBJS$ac_delim
34676 _ACEOF
34678 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
34679 break
34680 elif $ac_last_try; then
34681 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34682 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34683 { (exit 1); exit 1; }; }
34684 else
34685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34687 done
34689 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34690 if test -n "$ac_eof"; then
34691 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34692 ac_eof=`expr $ac_eof + 1`
34695 cat >>$CONFIG_STATUS <<_ACEOF
34696 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34698 _ACEOF
34699 sed '
34700 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34701 s/^/s,@/; s/!/@,|#_!!_#|/
34704 s/'"$ac_delim"'$/,g/; t
34705 s/$/\\/; p
34706 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34707 ' >>$CONFIG_STATUS <conf$$subs.sed
34708 rm -f conf$$subs.sed
34709 cat >>$CONFIG_STATUS <<_ACEOF
34710 :end
34711 s/|#_!!_#|//g
34712 CEOF$ac_eof
34713 _ACEOF
34716 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34717 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34718 # trailing colons and then remove the whole line if VPATH becomes empty
34719 # (actually we leave an empty line to preserve line numbers).
34720 if test "x$srcdir" = x.; then
34721 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34722 s/:*\$(srcdir):*/:/
34723 s/:*\${srcdir}:*/:/
34724 s/:*@srcdir@:*/:/
34725 s/^\([^=]*=[ ]*\):*/\1/
34726 s/:*$//
34727 s/^[^=]*=[ ]*$//
34731 cat >>$CONFIG_STATUS <<\_ACEOF
34732 fi # test -n "$CONFIG_FILES"
34735 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34737 case $ac_tag in
34738 :[FHLC]) ac_mode=$ac_tag; continue;;
34739 esac
34740 case $ac_mode$ac_tag in
34741 :[FHL]*:*);;
34742 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34743 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34744 { (exit 1); exit 1; }; };;
34745 :[FH]-) ac_tag=-:-;;
34746 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34747 esac
34748 ac_save_IFS=$IFS
34749 IFS=:
34750 set x $ac_tag
34751 IFS=$ac_save_IFS
34752 shift
34753 ac_file=$1
34754 shift
34756 case $ac_mode in
34757 :L) ac_source=$1;;
34758 :[FH])
34759 ac_file_inputs=
34760 for ac_f
34762 case $ac_f in
34763 -) ac_f="$tmp/stdin";;
34764 *) # Look for the file first in the build tree, then in the source tree
34765 # (if the path is not absolute). The absolute path cannot be DOS-style,
34766 # because $ac_f cannot contain `:'.
34767 test -f "$ac_f" ||
34768 case $ac_f in
34769 [\\/$]*) false;;
34770 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34771 esac ||
34772 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34773 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34774 { (exit 1); exit 1; }; };;
34775 esac
34776 ac_file_inputs="$ac_file_inputs $ac_f"
34777 done
34779 # Let's still pretend it is `configure' which instantiates (i.e., don't
34780 # use $as_me), people would be surprised to read:
34781 # /* config.h. Generated by config.status. */
34782 configure_input="Generated from "`IFS=:
34783 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34784 if test x"$ac_file" != x-; then
34785 configure_input="$ac_file. $configure_input"
34786 { echo "$as_me:$LINENO: creating $ac_file" >&5
34787 echo "$as_me: creating $ac_file" >&6;}
34790 case $ac_tag in
34791 *:-:* | *:-) cat >"$tmp/stdin";;
34792 esac
34794 esac
34796 ac_dir=`$as_dirname -- "$ac_file" ||
34797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34798 X"$ac_file" : 'X\(//\)[^/]' \| \
34799 X"$ac_file" : 'X\(//\)$' \| \
34800 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34801 echo X"$ac_file" |
34802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34803 s//\1/
34806 /^X\(\/\/\)[^/].*/{
34807 s//\1/
34810 /^X\(\/\/\)$/{
34811 s//\1/
34814 /^X\(\/\).*/{
34815 s//\1/
34818 s/.*/./; q'`
34819 { as_dir="$ac_dir"
34820 case $as_dir in #(
34821 -*) as_dir=./$as_dir;;
34822 esac
34823 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34824 as_dirs=
34825 while :; do
34826 case $as_dir in #(
34827 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34828 *) as_qdir=$as_dir;;
34829 esac
34830 as_dirs="'$as_qdir' $as_dirs"
34831 as_dir=`$as_dirname -- "$as_dir" ||
34832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34833 X"$as_dir" : 'X\(//\)[^/]' \| \
34834 X"$as_dir" : 'X\(//\)$' \| \
34835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34836 echo X"$as_dir" |
34837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34838 s//\1/
34841 /^X\(\/\/\)[^/].*/{
34842 s//\1/
34845 /^X\(\/\/\)$/{
34846 s//\1/
34849 /^X\(\/\).*/{
34850 s//\1/
34853 s/.*/./; q'`
34854 test -d "$as_dir" && break
34855 done
34856 test -z "$as_dirs" || eval "mkdir $as_dirs"
34857 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34858 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34859 { (exit 1); exit 1; }; }; }
34860 ac_builddir=.
34862 case "$ac_dir" in
34863 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34865 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34866 # A ".." for each directory in $ac_dir_suffix.
34867 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34868 case $ac_top_builddir_sub in
34869 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34870 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34871 esac ;;
34872 esac
34873 ac_abs_top_builddir=$ac_pwd
34874 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34875 # for backward compatibility:
34876 ac_top_builddir=$ac_top_build_prefix
34878 case $srcdir in
34879 .) # We are building in place.
34880 ac_srcdir=.
34881 ac_top_srcdir=$ac_top_builddir_sub
34882 ac_abs_top_srcdir=$ac_pwd ;;
34883 [\\/]* | ?:[\\/]* ) # Absolute name.
34884 ac_srcdir=$srcdir$ac_dir_suffix;
34885 ac_top_srcdir=$srcdir
34886 ac_abs_top_srcdir=$srcdir ;;
34887 *) # Relative name.
34888 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34889 ac_top_srcdir=$ac_top_build_prefix$srcdir
34890 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34891 esac
34892 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34895 case $ac_mode in
34898 # CONFIG_FILE
34901 case $INSTALL in
34902 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34903 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34904 esac
34905 _ACEOF
34907 cat >>$CONFIG_STATUS <<\_ACEOF
34908 # If the template does not know about datarootdir, expand it.
34909 # FIXME: This hack should be removed a few years after 2.60.
34910 ac_datarootdir_hack=; ac_datarootdir_seen=
34912 case `sed -n '/datarootdir/ {
34916 /@datadir@/p
34917 /@docdir@/p
34918 /@infodir@/p
34919 /@localedir@/p
34920 /@mandir@/p
34921 ' $ac_file_inputs` in
34922 *datarootdir*) ac_datarootdir_seen=yes;;
34923 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34924 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34925 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34926 _ACEOF
34927 cat >>$CONFIG_STATUS <<_ACEOF
34928 ac_datarootdir_hack='
34929 s&@datadir@&$datadir&g
34930 s&@docdir@&$docdir&g
34931 s&@infodir@&$infodir&g
34932 s&@localedir@&$localedir&g
34933 s&@mandir@&$mandir&g
34934 s&\\\${datarootdir}&$datarootdir&g' ;;
34935 esac
34936 _ACEOF
34938 # Neutralize VPATH when `$srcdir' = `.'.
34939 # Shell code in configure.ac might set extrasub.
34940 # FIXME: do we really want to maintain this feature?
34941 cat >>$CONFIG_STATUS <<_ACEOF
34942 sed "$ac_vpsub
34943 $extrasub
34944 _ACEOF
34945 cat >>$CONFIG_STATUS <<\_ACEOF
34947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34948 s&@configure_input@&$configure_input&;t t
34949 s&@top_builddir@&$ac_top_builddir_sub&;t t
34950 s&@srcdir@&$ac_srcdir&;t t
34951 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34952 s&@top_srcdir@&$ac_top_srcdir&;t t
34953 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34954 s&@builddir@&$ac_builddir&;t t
34955 s&@abs_builddir@&$ac_abs_builddir&;t t
34956 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34957 s&@INSTALL@&$ac_INSTALL&;t t
34958 $ac_datarootdir_hack
34959 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
34961 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34962 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34964 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34965 which seems to be undefined. Please make sure it is defined." >&5
34966 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34967 which seems to be undefined. Please make sure it is defined." >&2;}
34969 rm -f "$tmp/stdin"
34970 case $ac_file in
34971 -) cat "$tmp/out"; rm -f "$tmp/out";;
34972 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34973 esac
34977 # CONFIG_HEADER
34979 _ACEOF
34981 # Transform confdefs.h into a sed script `conftest.defines', that
34982 # substitutes the proper values into config.h.in to produce config.h.
34983 rm -f conftest.defines conftest.tail
34984 # First, append a space to every undef/define line, to ease matching.
34985 echo 's/$/ /' >conftest.defines
34986 # Then, protect against being on the right side of a sed subst, or in
34987 # an unquoted here document, in config.status. If some macros were
34988 # called several times there might be several #defines for the same
34989 # symbol, which is useless. But do not sort them, since the last
34990 # AC_DEFINE must be honored.
34991 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34992 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34993 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34994 # PARAMS is the parameter list in the macro definition--in most cases, it's
34995 # just an empty string.
34996 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34997 ac_dB='\\)[ (].*,\\1define\\2'
34998 ac_dC=' '
34999 ac_dD=' ,'
35001 uniq confdefs.h |
35002 sed -n '
35003 t rset
35004 :rset
35005 s/^[ ]*#[ ]*define[ ][ ]*//
35006 t ok
35009 s/[\\&,]/\\&/g
35010 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35011 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35012 ' >>conftest.defines
35014 # Remove the space that was appended to ease matching.
35015 # Then replace #undef with comments. This is necessary, for
35016 # example, in the case of _POSIX_SOURCE, which is predefined and required
35017 # on some systems where configure will not decide to define it.
35018 # (The regexp can be short, since the line contains either #define or #undef.)
35019 echo 's/ $//
35020 s,^[ #]*u.*,/* & */,' >>conftest.defines
35022 # Break up conftest.defines:
35023 ac_max_sed_lines=50
35025 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35026 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35027 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35028 # et cetera.
35029 ac_in='$ac_file_inputs'
35030 ac_out='"$tmp/out1"'
35031 ac_nxt='"$tmp/out2"'
35033 while :
35035 # Write a here document:
35036 cat >>$CONFIG_STATUS <<_ACEOF
35037 # First, check the format of the line:
35038 cat >"\$tmp/defines.sed" <<\\CEOF
35039 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35040 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35042 :def
35043 _ACEOF
35044 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35045 echo 'CEOF
35046 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35047 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35048 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35049 grep . conftest.tail >/dev/null || break
35050 rm -f conftest.defines
35051 mv conftest.tail conftest.defines
35052 done
35053 rm -f conftest.defines conftest.tail
35055 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35056 cat >>$CONFIG_STATUS <<\_ACEOF
35057 if test x"$ac_file" != x-; then
35058 echo "/* $configure_input */" >"$tmp/config.h"
35059 cat "$ac_result" >>"$tmp/config.h"
35060 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35061 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35062 echo "$as_me: $ac_file is unchanged" >&6;}
35063 else
35064 rm -f $ac_file
35065 mv "$tmp/config.h" $ac_file
35067 else
35068 echo "/* $configure_input */"
35069 cat "$ac_result"
35071 rm -f "$tmp/out12"
35074 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35075 echo "$as_me: executing $ac_file commands" >&6;}
35077 esac
35080 case $ac_file$ac_mode in
35081 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
35083 esac
35084 done # for ac_tag
35087 { (exit 0); exit 0; }
35088 _ACEOF
35089 chmod +x $CONFIG_STATUS
35090 ac_clean_files=$ac_clean_files_save
35093 # configure is writing to config.log, and then calls config.status.
35094 # config.status does its own redirection, appending to config.log.
35095 # Unfortunately, on DOS this fails, as config.log is still kept open
35096 # by configure, so config.status won't be able to write to it; its
35097 # output is simply discarded. So we exec the FD to /dev/null,
35098 # effectively closing config.log, so it can be properly (re)opened and
35099 # appended to by config.status. When coming back to configure, we
35100 # need to make the FD available again.
35101 if test "$no_create" != yes; then
35102 ac_cs_success=:
35103 ac_config_status_args=
35104 test "$silent" = yes &&
35105 ac_config_status_args="$ac_config_status_args --quiet"
35106 exec 5>/dev/null
35107 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35108 exec 5>>config.log
35109 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35110 # would make configure fail if this is the last instruction.
35111 $ac_cs_success || { (exit 1); exit 1; }
35115 if test "X$USE_OPENSSL" = "X"; then
35116 cat << \EOF
35117 BIND is being built without OpenSSL. This means it will not have DNSSEC support.
35121 if test "X$OPENSSL_WARNING" != "X"; then
35122 cat << \EOF
35123 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
35124 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
35125 WARNING WARNING
35126 WARNING Your OpenSSL crypto library may be vulnerable to WARNING
35127 WARNING one or more of the the following known security WARNING
35128 WARNING flaws: WARNING
35129 WARNING WARNING
35130 WARNING CAN-2002-0659, CAN-2006-4339, CVE-2006-2937 and WARNING
35131 WARNING CVE-2006-2940. WARNING
35132 WARNING WARNING
35133 WARNING It is recommended that you upgrade to OpenSSL WARNING
35134 WARNING version 0.9.8d/0.9.7l (or greater). WARNING
35135 WARNING WARNING
35136 WARNING You can disable this warning by specifying: WARNING
35137 WARNING WARNING
35138 WARNING --disable-openssl-version-check WARNING
35139 WARNING WARNING
35140 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
35141 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
35145 # Tell Emacs to edit this file in shell mode.
35146 # Local Variables:
35147 # mode: sh
35148 # End: