1#! /bin/sh 2# Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC") 3# Copyright (C) 1996-2003 Internet Software Consortium. 4# 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. 8# 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. 16# 17# Guess values for system-dependent variables and create Makefiles. 18# Generated by GNU Autoconf 2.69 for BIND 9.10. 19# 20# Report bugs to <bind9-bugs@isc.org>. 21# 22# 23# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 24# 25# 26# This configure script is free software; the Free Software Foundation 27# gives unlimited permission to copy, distribute and modify it. 28## -------------------- ## 29## M4sh Initialization. ## 30## -------------------- ## 31 32# Be more Bourne compatible 33DUALCASE=1; export DUALCASE # for MKS sh 34if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 35 emulate sh 36 NULLCMD=: 37 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 38 # is contrary to our usage. Disable this feature. 39 alias -g '${1+"$@"}'='"$@"' 40 setopt NO_GLOB_SUBST 41else 42 case `(set -o) 2>/dev/null` in #( 43 *posix*) : 44 set -o posix ;; #( 45 *) : 46 ;; 47esac 48fi 49 50 51as_nl=' 52' 53export as_nl 54# Printing a long string crashes Solaris 7 /usr/bin/printf. 55as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 56as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 57as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 58# Prefer a ksh shell builtin over an external printf program on Solaris, 59# but without wasting forks for bash or zsh. 60if test -z "$BASH_VERSION$ZSH_VERSION" \ 61 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 62 as_echo='print -r --' 63 as_echo_n='print -rn --' 64elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 65 as_echo='printf %s\n' 66 as_echo_n='printf %s' 67else 68 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 69 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 70 as_echo_n='/usr/ucb/echo -n' 71 else 72 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 73 as_echo_n_body='eval 74 arg=$1; 75 case $arg in #( 76 *"$as_nl"*) 77 expr "X$arg" : "X\\(.*\\)$as_nl"; 78 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 79 esac; 80 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 81 ' 82 export as_echo_n_body 83 as_echo_n='sh -c $as_echo_n_body as_echo' 84 fi 85 export as_echo_body 86 as_echo='sh -c $as_echo_body as_echo' 87fi 88 89# The user is always right. 90if test "${PATH_SEPARATOR+set}" != set; then 91 PATH_SEPARATOR=: 92 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 93 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 94 PATH_SEPARATOR=';' 95 } 96fi 97 98 99# IFS 100# We need space, tab and new line, in precisely that order. Quoting is 101# there to prevent editors from complaining about space-tab. 102# (If _AS_PATH_WALK were called with IFS unset, it would disable word 103# splitting by setting IFS to empty value.) 104IFS=" "" $as_nl" 105 106# Find who we are. Look in the path if we contain no directory separator. 107as_myself= 108case $0 in #(( 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111for as_dir in $PATH 112do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116 done 117IFS=$as_save_IFS 118 119 ;; 120esac 121# We did not find ourselves, most probably we were run as `sh COMMAND' 122# in which case we are not to be found in the path. 123if test "x$as_myself" = x; then 124 as_myself=$0 125fi 126if test ! -f "$as_myself"; then 127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 128 exit 1 129fi 130 131# Unset variables that we do not need and which cause bugs (e.g. in 132# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 133# suppresses any "Segmentation fault" message there. '((' could 134# trigger a bug in pdksh 5.2.14. 135for as_var in BASH_ENV ENV MAIL MAILPATH 136do eval test x\${$as_var+set} = xset \ 137 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 138done 139PS1='$ ' 140PS2='> ' 141PS4='+ ' 142 143# NLS nuisances. 144LC_ALL=C 145export LC_ALL 146LANGUAGE=C 147export LANGUAGE 148 149# CDPATH. 150(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 151 152# Use a proper internal environment variable to ensure we don't fall 153 # into an infinite loop, continuously re-executing ourselves. 154 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 155 _as_can_reexec=no; export _as_can_reexec; 156 # We cannot yet assume a decent shell, so we have to provide a 157# neutralization value for shells without unset; and this also 158# works around shells that cannot unset nonexistent variables. 159# Preserve -v and -x to the replacement shell. 160BASH_ENV=/dev/null 161ENV=/dev/null 162(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 163case $- in # (((( 164 *v*x* | *x*v* ) as_opts=-vx ;; 165 *v* ) as_opts=-v ;; 166 *x* ) as_opts=-x ;; 167 * ) as_opts= ;; 168esac 169exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 170# Admittedly, this is quite paranoid, since all the known shells bail 171# out after a failed `exec'. 172$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 173as_fn_exit 255 174 fi 175 # We don't want this to propagate to other subprocesses. 176 { _as_can_reexec=; unset _as_can_reexec;} 177if test "x$CONFIG_SHELL" = x; then 178 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 179 emulate sh 180 NULLCMD=: 181 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 182 # is contrary to our usage. Disable this feature. 183 alias -g '\${1+\"\$@\"}'='\"\$@\"' 184 setopt NO_GLOB_SUBST 185else 186 case \`(set -o) 2>/dev/null\` in #( 187 *posix*) : 188 set -o posix ;; #( 189 *) : 190 ;; 191esac 192fi 193" 194 as_required="as_fn_return () { (exit \$1); } 195as_fn_success () { as_fn_return 0; } 196as_fn_failure () { as_fn_return 1; } 197as_fn_ret_success () { return 0; } 198as_fn_ret_failure () { return 1; } 199 200exitcode=0 201as_fn_success || { exitcode=1; echo as_fn_success failed.; } 202as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 203as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 204as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 205if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 206 207else 208 exitcode=1; echo positional parameters were not saved. 209fi 210test x\$exitcode = x0 || exit 1 211test -x / || exit 1" 212 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 213 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 214 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 215 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 216 217 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 218 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 219 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 220 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 221 PATH=/empty FPATH=/empty; export PATH FPATH 222 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 223 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 224test \$(( 1 + 1 )) = 2 || exit 1" 225 if (eval "$as_required") 2>/dev/null; then : 226 as_have_required=yes 227else 228 as_have_required=no 229fi 230 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 231 232else 233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 234as_found=false 235for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 236do 237 IFS=$as_save_IFS 238 test -z "$as_dir" && as_dir=. 239 as_found=: 240 case $as_dir in #( 241 /*) 242 for as_base in sh bash ksh sh5; do 243 # Try only shells that exist, to save several forks. 244 as_shell=$as_dir/$as_base 245 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 246 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 247 CONFIG_SHELL=$as_shell as_have_required=yes 248 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 249 break 2 250fi 251fi 252 done;; 253 esac 254 as_found=false 255done 256$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 257 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 258 CONFIG_SHELL=$SHELL as_have_required=yes 259fi; } 260IFS=$as_save_IFS 261 262 263 if test "x$CONFIG_SHELL" != x; then : 264 export CONFIG_SHELL 265 # We cannot yet assume a decent shell, so we have to provide a 266# neutralization value for shells without unset; and this also 267# works around shells that cannot unset nonexistent variables. 268# Preserve -v and -x to the replacement shell. 269BASH_ENV=/dev/null 270ENV=/dev/null 271(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 272case $- in # (((( 273 *v*x* | *x*v* ) as_opts=-vx ;; 274 *v* ) as_opts=-v ;; 275 *x* ) as_opts=-x ;; 276 * ) as_opts= ;; 277esac 278exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 279# Admittedly, this is quite paranoid, since all the known shells bail 280# out after a failed `exec'. 281$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 282exit 255 283fi 284 285 if test x$as_have_required = xno; then : 286 $as_echo "$0: This script requires a shell more modern than all" 287 $as_echo "$0: the shells that I found on your system." 288 if test x${ZSH_VERSION+set} = xset ; then 289 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 290 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 291 else 292 $as_echo "$0: Please tell bug-autoconf@gnu.org and bind9-bugs@isc.org 293$0: about your system, including any error possibly output 294$0: before this message. Then install a modern shell, or 295$0: manually run the script under such a shell if you do 296$0: have one." 297 fi 298 exit 1 299fi 300fi 301fi 302SHELL=${CONFIG_SHELL-/bin/sh} 303export SHELL 304# Unset more variables known to interfere with behavior of common tools. 305CLICOLOR_FORCE= GREP_OPTIONS= 306unset CLICOLOR_FORCE GREP_OPTIONS 307 308## --------------------- ## 309## M4sh Shell Functions. ## 310## --------------------- ## 311# as_fn_unset VAR 312# --------------- 313# Portably unset VAR. 314as_fn_unset () 315{ 316 { eval $1=; unset $1;} 317} 318as_unset=as_fn_unset 319 320# as_fn_set_status STATUS 321# ----------------------- 322# Set $? to STATUS, without forking. 323as_fn_set_status () 324{ 325 return $1 326} # as_fn_set_status 327 328# as_fn_exit STATUS 329# ----------------- 330# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 331as_fn_exit () 332{ 333 set +e 334 as_fn_set_status $1 335 exit $1 336} # as_fn_exit 337 338# as_fn_mkdir_p 339# ------------- 340# Create "$as_dir" as a directory, including parents if necessary. 341as_fn_mkdir_p () 342{ 343 344 case $as_dir in #( 345 -*) as_dir=./$as_dir;; 346 esac 347 test -d "$as_dir" || eval $as_mkdir_p || { 348 as_dirs= 349 while :; do 350 case $as_dir in #( 351 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 352 *) as_qdir=$as_dir;; 353 esac 354 as_dirs="'$as_qdir' $as_dirs" 355 as_dir=`$as_dirname -- "$as_dir" || 356$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 357 X"$as_dir" : 'X\(//\)[^/]' \| \ 358 X"$as_dir" : 'X\(//\)$' \| \ 359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 360$as_echo X"$as_dir" | 361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)[^/].*/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\/\)$/{ 370 s//\1/ 371 q 372 } 373 /^X\(\/\).*/{ 374 s//\1/ 375 q 376 } 377 s/.*/./; q'` 378 test -d "$as_dir" && break 379 done 380 test -z "$as_dirs" || eval "mkdir $as_dirs" 381 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 382 383 384} # as_fn_mkdir_p 385 386# as_fn_executable_p FILE 387# ----------------------- 388# Test if FILE is an executable regular file. 389as_fn_executable_p () 390{ 391 test -f "$1" && test -x "$1" 392} # as_fn_executable_p 393# as_fn_append VAR VALUE 394# ---------------------- 395# Append the text in VALUE to the end of the definition contained in VAR. Take 396# advantage of any shell optimizations that allow amortized linear growth over 397# repeated appends, instead of the typical quadratic growth present in naive 398# implementations. 399if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 400 eval 'as_fn_append () 401 { 402 eval $1+=\$2 403 }' 404else 405 as_fn_append () 406 { 407 eval $1=\$$1\$2 408 } 409fi # as_fn_append 410 411# as_fn_arith ARG... 412# ------------------ 413# Perform arithmetic evaluation on the ARGs, and store the result in the 414# global $as_val. Take advantage of shells that can avoid forks. The arguments 415# must be portable across $(()) and expr. 416if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 417 eval 'as_fn_arith () 418 { 419 as_val=$(( $* )) 420 }' 421else 422 as_fn_arith () 423 { 424 as_val=`expr "$@" || test $? -eq 1` 425 } 426fi # as_fn_arith 427 428 429# as_fn_error STATUS ERROR [LINENO LOG_FD] 430# ---------------------------------------- 431# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 432# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 433# script with STATUS, using 1 if that was 0. 434as_fn_error () 435{ 436 as_status=$1; test $as_status -eq 0 && as_status=1 437 if test "$4"; then 438 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 439 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 440 fi 441 $as_echo "$as_me: error: $2" >&2 442 as_fn_exit $as_status 443} # as_fn_error 444 445if expr a : '\(a\)' >/dev/null 2>&1 && 446 test "X`expr 00001 : '.*\(...\)'`" = X001; then 447 as_expr=expr 448else 449 as_expr=false 450fi 451 452if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 453 as_basename=basename 454else 455 as_basename=false 456fi 457 458if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 459 as_dirname=dirname 460else 461 as_dirname=false 462fi 463 464as_me=`$as_basename -- "$0" || 465$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 466 X"$0" : 'X\(//\)$' \| \ 467 X"$0" : 'X\(/\)' \| . 2>/dev/null || 468$as_echo X/"$0" | 469 sed '/^.*\/\([^/][^/]*\)\/*$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\/\)$/{ 474 s//\1/ 475 q 476 } 477 /^X\/\(\/\).*/{ 478 s//\1/ 479 q 480 } 481 s/.*/./; q'` 482 483# Avoid depending upon Character Ranges. 484as_cr_letters='abcdefghijklmnopqrstuvwxyz' 485as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 486as_cr_Letters=$as_cr_letters$as_cr_LETTERS 487as_cr_digits='0123456789' 488as_cr_alnum=$as_cr_Letters$as_cr_digits 489 490 491 as_lineno_1=$LINENO as_lineno_1a=$LINENO 492 as_lineno_2=$LINENO as_lineno_2a=$LINENO 493 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 494 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 495 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 496 sed -n ' 497 p 498 /[$]LINENO/= 499 ' <$as_myself | 500 sed ' 501 s/[$]LINENO.*/&-/ 502 t lineno 503 b 504 :lineno 505 N 506 :loop 507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 508 t loop 509 s/-\n.*// 510 ' >$as_me.lineno && 511 chmod +x "$as_me.lineno" || 512 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 513 514 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 515 # already done that, so ensure we don't try to do so again and fall 516 # in an infinite loop. This has already happened in practice. 517 _as_can_reexec=no; export _as_can_reexec 518 # Don't try to exec as it changes $[0], causing all sort of problems 519 # (the dirname of $[0] is not the place where we might find the 520 # original and so on. Autoconf is especially sensitive to this). 521 . "./$as_me.lineno" 522 # Exit status is that of the last command. 523 exit 524} 525 526ECHO_C= ECHO_N= ECHO_T= 527case `echo -n x` in #((((( 528-n*) 529 case `echo 'xy\c'` in 530 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 531 xy) ECHO_C='\c';; 532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 533 ECHO_T=' ';; 534 esac;; 535*) 536 ECHO_N='-n';; 537esac 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 552 # In both cases, we have to default to `cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 578 579# Sed expression to map a string onto a valid variable name. 580as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 581 582SHELL=${CONFIG_SHELL-/bin/sh} 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='BIND' 607PACKAGE_TARNAME='bind' 608PACKAGE_VERSION='9.10' 609PACKAGE_STRING='BIND 9.10' 610PACKAGE_BUGREPORT='bind9-bugs@isc.org' 611PACKAGE_URL='https://www.isc.org/downloads/BIND/' 612 613# Factoring default headers for most tests. 614ac_includes_default="\ 615#include <stdio.h> 616#ifdef HAVE_SYS_TYPES_H 617# include <sys/types.h> 618#endif 619#ifdef HAVE_SYS_STAT_H 620# include <sys/stat.h> 621#endif 622#ifdef STDC_HEADERS 623# include <stdlib.h> 624# include <stddef.h> 625#else 626# ifdef HAVE_STDLIB_H 627# include <stdlib.h> 628# endif 629#endif 630#ifdef HAVE_STRING_H 631# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 632# include <memory.h> 633# endif 634# include <string.h> 635#endif 636#ifdef HAVE_STRINGS_H 637# include <strings.h> 638#endif 639#ifdef HAVE_INTTYPES_H 640# include <inttypes.h> 641#endif 642#ifdef HAVE_STDINT_H 643# include <stdint.h> 644#endif 645#ifdef HAVE_UNISTD_H 646# include <unistd.h> 647#endif" 648 649ac_subst_vars='LTLIBOBJS 650LIBOBJS 651BUILD_LIBS 652BUILD_LDFLAGS 653BUILD_CPPFLAGS 654BUILD_CFLAGS 655BUILD_CC 656DLZ_SYSTEM_TEST 657DLZ_DRIVER_OBJS 658DLZ_DRIVER_SRCS 659DLZ_DRIVER_LIBS 660DLZ_DRIVER_INCLUDES 661CONTRIB_DLZ 662PG_CONFIG 663SO_TARGETS 664SO_LD 665SO_LDFLAGS 666SO_CFLAGS 667SO 668BIND9_CONFIGARGS 669BIND9_SRCID 670BIND9_VERSIONSTRING 671BIND9_MAJOR 672BIND9_VERSION 673BIND9_DESCRIPTION 674BIND9_PRODUCT 675BIND9_IRS_BUILDINCLUDE 676BIND9_BIND9_BUILDINCLUDE 677BIND9_LWRES_BUILDINCLUDE 678BIND9_DNS_BUILDINCLUDE 679BIND9_ISCCFG_BUILDINCLUDE 680BIND9_ISCCC_BUILDINCLUDE 681BIND9_ISC_BUILDINCLUDE 682BIND9_TOP_BUILDDIR 683UNITTESTS 684ATFLIBS 685ATFBIN 686ATFBUILD 687IDNLIBS 688XSLT_DB2LATEX_ADMONITIONS 689XSLT_DB2LATEX_STYLE 690XSLT_DOCBOOK_MAKETOC_XHTML 691XSLT_DOCBOOK_MAKETOC_HTML 692XSLT_DOCBOOK_CHUNKTOC_XHTML 693XSLT_DOCBOOK_CHUNKTOC_HTML 694XSLT_DOCBOOK_CHUNK_XHTML 695XSLT_DOCBOOK_CHUNK_HTML 696XSLT_DOCBOOK_STYLE_MAN 697XSLT_DOCBOOK_STYLE_XHTML 698XSLT_DOCBOOK_STYLE_HTML 699DOXYGEN 700XMLLINT 701XSLTPROC 702W3M 703PDFLATEX 704LATEX 705ISC_ARCH_DIR 706ISC_PLATFORM_USEMACASM 707ISC_PLATFORM_USESTDASM 708ISC_PLATFORM_USEOSFASM 709ISC_PLATFORM_USEGCCASM 710ISC_PLATFORM_HAVEATOMICSTORE 711ISC_PLATFORM_HAVECMPXCHG 712ISC_PLATFORM_HAVEXADDQ 713ISC_PLATFORM_HAVEXADD 714ISC_PLATFORM_HAVEIFNAMETOINDEX 715ISC_PLATFORM_HAVESTRINGSH 716ISC_PLATFORM_BRACEPTHREADONCEINIT 717IRS_PLATFORM_USEDECLSPEC 718LWRES_PLATFORM_USEDECLSPEC 719ISC_PLATFORM_USEDECLSPEC 720ISC_PLATFORM_RLIMITTYPE 721ISC_PLATFORM_HAVESYSUNH 722LWRES_PLATFORM_QUADFORMAT 723ISC_PLATFORM_QUADFORMAT 724DST_EXTRA_SRCS 725DST_EXTRA_OBJS 726USE_ISC_SPNEGO 727ISC_EXTRA_SRCS 728ISC_EXTRA_OBJS 729LWRES_PLATFORM_NEEDVSNPRINTF 730ISC_PLATFORM_NEEDVSNPRINTF 731LWRES_PLATFORM_NEEDSPRINTF 732ISC_PLATFORM_NEEDSPRINTF 733READLINE_LIB 734ISC_PLATFORM_NEEDSTRCASESTR 735ISC_PLATFORM_NEEDSTRLCAT 736LWRES_PLATFORM_NEEDSTRLCPY 737ISC_PLATFORM_NEEDSTRLCPY 738GENRANDOMLIB 739LWRES_PLATFORM_NEEDSTRTOUL 740ISC_PLATFORM_NEEDSTRTOUL 741ISC_PLATFORM_NEEDMEMMOVE 742ISC_PLATFORM_NEEDSTRSEP 743ISC_IRS_GETNAMEINFOSOCKLEN 744ISC_LWRES_GETNAMEINFOPROTO 745ISC_LWRES_GETADDRINFOPROTO 746ISC_LWRES_GETIPNODEPROTO 747ISC_LWRES_NEEDHERRNO 748ISC_LWRES_GETHOSTBYADDRVOID 749ISC_LWRES_ENDNETENTINT 750ISC_LWRES_SETNETENTINT 751ISC_LWRES_GETNETBYADDRINADDR 752ISC_LWRES_ENDHOSTENTINT 753ISC_LWRES_SETHOSTENTINT 754ISC_LWRES_NEEDRRSETINFO 755ISC_IRS_NEEDADDRINFO 756ISC_LWRES_NEEDADDRINFO 757ISC_PLATFORM_NEEDPORTT 758ISC_PLATFORM_MSGHDRFLAVOR 759LWRES_PLATFORM_HAVESALEN 760ISC_PLATFORM_HAVESALEN 761ISC_PLATFORM_NEEDPTON 762ISC_PLATFORM_NEEDNTOP 763ISC_PLATFORM_HAVEIF_LADDRCONF 764ISC_PLATFORM_HAVEIF_LADDRREQ 765ISC_PLATFORM_HAVESCOPEID 766LWRES_HAVE_SIN6_SCOPE_ID 767ISC_IPV6_C 768ISC_ISCIPV6_O 769ISC_IPV6_O 770ISC_IPV6_H 771ISC_PLATFORM_HAVESOCKADDRSTORAGE 772ISC_PLATFORM_FIXIN6ISADDR 773ISC_PLATFORM_HAVEIN6PKTINFO 774LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 775ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 776LWRES_PLATFORM_NEEDIN6ADDRANY 777ISC_PLATFORM_NEEDIN6ADDRANY 778LWRES_PLATFORM_HAVEINADDR6 779ISC_PLATFORM_HAVEINADDR6 780LWRES_PLATFORM_NEEDNETINET6IN6H 781ISC_PLATFORM_NEEDNETINET6IN6H 782LWRES_PLATFORM_NEEDNETINETIN6H 783ISC_PLATFORM_NEEDNETINETIN6H 784LWRES_PLATFORM_HAVEIPV6 785ISC_PLATFORM_HAVEIPV6 786BIND9_CO_RULE 787LIBTOOL_IN_MAIN 788LIBTOOL_ALLOW_UNDEFINED 789LIBTOOL_MODE_LINK 790LIBTOOL_MODE_INSTALL 791LIBTOOL_MODE_COMPILE 792LIBTOOL_MKDEP_SED 793SA 794A 795O 796ALWAYS_MAKE_SYMTABLE 797MKSYMTBL_PROGRAM 798ISC_PLATFORM_USEBACKTRACE 799PURIFY 800purify_path 801IRIX_DNSSEC_WARNINGS_HACK 802MKDEPPROG 803MKDEPCFLAGS 804MKDEPCC 805PKCS11_TEST 806PKCS11_GOST 807PKCS11_ECDSA 808CRYPTO 809PKCS11LINKSRCS 810PKCS11LINKOBJS 811PKCS11_PROVIDER 812ISC_ISCPK11_API_O 813ISC_ISCPK11_API_C 814ISC_PK11_RESULT_O 815ISC_PK11_RESULT_C 816ISC_PK11_API_O 817ISC_PK11_API_C 818ISC_PK11_O 819ISC_PK11_C 820PKCS11_ENGINE 821PKCS11_TOOLS 822USE_PKCS11 823ISC_OPENSSL_LIBS 824ISC_OPENSSL_INC 825ISC_PLATFORM_OPENSSLHASH 826ISC_PLATFORM_WANTAES 827OPENSSL_GOST 828OPENSSL_ECDSA 829OPENSSLLINKSRCS 830OPENSSLLINKOBJS 831OPENSSLGOSTLINKSRCS 832OPENSSLGOSTLINKOBJS 833DST_OPENSSL_INC 834HAVE_SIT 835ISC_PLATFORM_USESIT 836INSTALL_LIBRARY 837ISC_THREAD_DIR 838THREADOPTSRCS 839THREADOPTOBJS 840ISC_PLATFORM_USETHREADS 841ALWAYS_DEFINES 842CHECK_DSA 843DNS_CRYPTO_LIBS 844DNS_GSSAPI_LIBS 845DST_GSSAPI_INC 846USE_GSSAPI 847ISC_PLATFORM_KRB5HEADER 848ISC_PLATFORM_GSSAPI_KRB5_HEADER 849ISC_PLATFORM_GSSAPIHEADER 850ISC_PLATFORM_HAVEGSSAPI 851GEOIPLINKOBJS 852GEOIPLINKSRCS 853LWRES_PLATFORM_NEEDSYSSELECTH 854ISC_PLATFORM_NEEDSYSSELECTH 855ISC_PLATFORM_HAVEDEVPOLL 856ISC_PLATFORM_HAVEEPOLL 857ISC_PLATFORM_HAVEKQUEUE 858ISC_PLATFORM_HAVELIFCONF 859ISC_PLATFORM_NORETURN_POST 860ISC_PLATFORM_NORETURN_PRE 861ISC_PLATFORM_HAVELONGLONG 862ISC_SOCKADDR_LEN_T 863PYTHON_TOOLS 864COVERAGE 865CHECKDS 866PYTHON 867PERL 868ETAGS 869LN 870ARFLAGS 871BACKTRACECFLAGS 872CCNOOPT 873CCOPT 874STD_CWARNINGS 875STD_CDEFINES 876STD_CINCLUDES 877INSTALL_DATA 878INSTALL_SCRIPT 879INSTALL_PROGRAM 880CPP 881OTOOL64 882OTOOL 883LIPO 884NMEDIT 885DSYMUTIL 886MANIFEST_TOOL 887AWK 888RANLIB 889STRIP 890ac_ct_AR 891AR 892DLLTOOL 893OBJDUMP 894LN_S 895NM 896ac_ct_DUMPBIN 897DUMPBIN 898LD 899FGREP 900EGREP 901GREP 902SED 903OBJEXT 904EXEEXT 905ac_ct_CC 906CPPFLAGS 907LDFLAGS 908CFLAGS 909CC 910LIBTOOL 911SET_MAKE 912host_os 913host_vendor 914host_cpu 915host 916build_os 917build_vendor 918build_cpu 919build 920target_alias 921host_alias 922build_alias 923LIBS 924ECHO_T 925ECHO_N 926ECHO_C 927DEFS 928mandir 929localedir 930libdir 931psdir 932pdfdir 933dvidir 934htmldir 935infodir 936docdir 937oldincludedir 938includedir 939localstatedir 940sharedstatedir 941sysconfdir 942datadir 943datarootdir 944libexecdir 945sbindir 946bindir 947program_transform_name 948prefix 949exec_prefix 950PACKAGE_URL 951PACKAGE_BUGREPORT 952PACKAGE_STRING 953PACKAGE_VERSION 954PACKAGE_TARNAME 955PACKAGE_NAME 956PATH_SEPARATOR 957SHELL' 958ac_subst_files='BIND9_MAKE_INCLUDES 959BIND9_MAKE_RULES 960LIBISC_API 961LIBISCCC_API 962LIBISCCFG_API 963LIBDNS_API 964LIBDNS_MAPAPI 965LIBBIND9_API 966LIBLWRES_API 967LIBIRS_API 968DLZ_DRIVER_RULES' 969ac_user_opts=' 970enable_option_checking 971enable_shared 972enable_static 973with_pic 974enable_fast_install 975with_gnu_ld 976with_sysroot 977enable_libtool_lock 978enable_libbind 979enable_warn_shadow 980enable_warn_error 981enable_developer 982enable_seccomp 983with_python 984enable_kqueue 985enable_epoll 986enable_devpoll 987with_geoip 988with_gssapi 989with_randomdev 990enable_threads 991with_locktype 992with_libtool 993enable_native_pkcs11 994with_openssl 995with_pkcs11 996with_ecdsa 997with_gost 998with_aes 999enable_openssl_hash 1000enable_sit 1001with_sit_alg 1002enable_openssl_version_check 1003with_libxml2 1004with_libjson 1005enable_largefile 1006with_purify 1007with_gperftools_profiler 1008enable_backtrace 1009enable_symtable 1010enable_ipv6 1011with_kame 1012enable_getifaddrs 1013with_readline 1014enable_isc_spnego 1015enable_chroot 1016enable_linux_caps 1017with_rlimtype 1018enable_atomic 1019enable_fixed_rrset 1020enable_rpz_nsip 1021enable_rpz_nsdname 1022enable_filter_aaaa 1023with_docbook_xsl 1024with_idn 1025with_libiconv 1026with_iconv 1027with_idnlib 1028with_atf 1029with_tuning 1030with_dlopen 1031with_dlz_postgres 1032with_dlz_mysql 1033with_dlz_bdb 1034with_dlz_filesystem 1035with_dlz_ldap 1036with_dlz_odbc 1037with_dlz_stub 1038with_make_clean 1039enable_full_report 1040' 1041 ac_precious_vars='build_alias 1042host_alias 1043target_alias 1044CC 1045CFLAGS 1046LDFLAGS 1047LIBS 1048CPPFLAGS 1049CPP' 1050 1051 1052# Initialize some variables set by options. 1053ac_init_help= 1054ac_init_version=false 1055ac_unrecognized_opts= 1056ac_unrecognized_sep= 1057# The variables have the same names as the options, with 1058# dashes changed to underlines. 1059cache_file=/dev/null 1060exec_prefix=NONE 1061no_create= 1062no_recursion= 1063prefix=NONE 1064program_prefix=NONE 1065program_suffix=NONE 1066program_transform_name=s,x,x, 1067silent= 1068site= 1069srcdir= 1070verbose= 1071x_includes=NONE 1072x_libraries=NONE 1073 1074# Installation directory options. 1075# These are left unexpanded so users can "make install exec_prefix=/foo" 1076# and all the variables that are supposed to be based on exec_prefix 1077# by default will actually change. 1078# Use braces instead of parens because sh, perl, etc. also accept them. 1079# (The list follows the same order as the GNU Coding Standards.) 1080bindir='${exec_prefix}/bin' 1081sbindir='${exec_prefix}/sbin' 1082libexecdir='${exec_prefix}/libexec' 1083datarootdir='${prefix}/share' 1084datadir='${datarootdir}' 1085sysconfdir='${prefix}/etc' 1086sharedstatedir='${prefix}/com' 1087localstatedir='${prefix}/var' 1088includedir='${prefix}/include' 1089oldincludedir='/usr/include' 1090docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1091infodir='${datarootdir}/info' 1092htmldir='${docdir}' 1093dvidir='${docdir}' 1094pdfdir='${docdir}' 1095psdir='${docdir}' 1096libdir='${exec_prefix}/lib' 1097localedir='${datarootdir}/locale' 1098mandir='${datarootdir}/man' 1099 1100ac_prev= 1101ac_dashdash= 1102for ac_option 1103do 1104 # If the previous option needs an argument, assign it. 1105 if test -n "$ac_prev"; then 1106 eval $ac_prev=\$ac_option 1107 ac_prev= 1108 continue 1109 fi 1110 1111 case $ac_option in 1112 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1113 *=) ac_optarg= ;; 1114 *) ac_optarg=yes ;; 1115 esac 1116 1117 # Accept the important Cygnus configure options, so we can diagnose typos. 1118 1119 case $ac_dashdash$ac_option in 1120 --) 1121 ac_dashdash=yes ;; 1122 1123 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1124 ac_prev=bindir ;; 1125 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1126 bindir=$ac_optarg ;; 1127 1128 -build | --build | --buil | --bui | --bu) 1129 ac_prev=build_alias ;; 1130 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1131 build_alias=$ac_optarg ;; 1132 1133 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1134 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1135 ac_prev=cache_file ;; 1136 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1137 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1138 cache_file=$ac_optarg ;; 1139 1140 --config-cache | -C) 1141 cache_file=config.cache ;; 1142 1143 -datadir | --datadir | --datadi | --datad) 1144 ac_prev=datadir ;; 1145 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1146 datadir=$ac_optarg ;; 1147 1148 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1149 | --dataroo | --dataro | --datar) 1150 ac_prev=datarootdir ;; 1151 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1152 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1153 datarootdir=$ac_optarg ;; 1154 1155 -disable-* | --disable-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid feature name: $ac_useropt" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"enable_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval enable_$ac_useropt=no ;; 1170 1171 -docdir | --docdir | --docdi | --doc | --do) 1172 ac_prev=docdir ;; 1173 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1174 docdir=$ac_optarg ;; 1175 1176 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1177 ac_prev=dvidir ;; 1178 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1179 dvidir=$ac_optarg ;; 1180 1181 -enable-* | --enable-*) 1182 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1183 # Reject names that are not valid shell variable names. 1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1185 as_fn_error $? "invalid feature name: $ac_useropt" 1186 ac_useropt_orig=$ac_useropt 1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1188 case $ac_user_opts in 1189 *" 1190"enable_$ac_useropt" 1191"*) ;; 1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1193 ac_unrecognized_sep=', ';; 1194 esac 1195 eval enable_$ac_useropt=\$ac_optarg ;; 1196 1197 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1198 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1199 | --exec | --exe | --ex) 1200 ac_prev=exec_prefix ;; 1201 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1202 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1203 | --exec=* | --exe=* | --ex=*) 1204 exec_prefix=$ac_optarg ;; 1205 1206 -gas | --gas | --ga | --g) 1207 # Obsolete; use --with-gas. 1208 with_gas=yes ;; 1209 1210 -help | --help | --hel | --he | -h) 1211 ac_init_help=long ;; 1212 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1213 ac_init_help=recursive ;; 1214 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1215 ac_init_help=short ;; 1216 1217 -host | --host | --hos | --ho) 1218 ac_prev=host_alias ;; 1219 -host=* | --host=* | --hos=* | --ho=*) 1220 host_alias=$ac_optarg ;; 1221 1222 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1223 ac_prev=htmldir ;; 1224 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1225 | --ht=*) 1226 htmldir=$ac_optarg ;; 1227 1228 -includedir | --includedir | --includedi | --included | --include \ 1229 | --includ | --inclu | --incl | --inc) 1230 ac_prev=includedir ;; 1231 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1232 | --includ=* | --inclu=* | --incl=* | --inc=*) 1233 includedir=$ac_optarg ;; 1234 1235 -infodir | --infodir | --infodi | --infod | --info | --inf) 1236 ac_prev=infodir ;; 1237 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1238 infodir=$ac_optarg ;; 1239 1240 -libdir | --libdir | --libdi | --libd) 1241 ac_prev=libdir ;; 1242 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1243 libdir=$ac_optarg ;; 1244 1245 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1246 | --libexe | --libex | --libe) 1247 ac_prev=libexecdir ;; 1248 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1249 | --libexe=* | --libex=* | --libe=*) 1250 libexecdir=$ac_optarg ;; 1251 1252 -localedir | --localedir | --localedi | --localed | --locale) 1253 ac_prev=localedir ;; 1254 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1255 localedir=$ac_optarg ;; 1256 1257 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1258 | --localstate | --localstat | --localsta | --localst | --locals) 1259 ac_prev=localstatedir ;; 1260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1261 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1262 localstatedir=$ac_optarg ;; 1263 1264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1265 ac_prev=mandir ;; 1266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1267 mandir=$ac_optarg ;; 1268 1269 -nfp | --nfp | --nf) 1270 # Obsolete; use --without-fp. 1271 with_fp=no ;; 1272 1273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1274 | --no-cr | --no-c | -n) 1275 no_create=yes ;; 1276 1277 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1278 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1279 no_recursion=yes ;; 1280 1281 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1282 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1283 | --oldin | --oldi | --old | --ol | --o) 1284 ac_prev=oldincludedir ;; 1285 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1286 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1287 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1288 oldincludedir=$ac_optarg ;; 1289 1290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1291 ac_prev=prefix ;; 1292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1293 prefix=$ac_optarg ;; 1294 1295 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1296 | --program-pre | --program-pr | --program-p) 1297 ac_prev=program_prefix ;; 1298 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1299 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1300 program_prefix=$ac_optarg ;; 1301 1302 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1303 | --program-suf | --program-su | --program-s) 1304 ac_prev=program_suffix ;; 1305 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1306 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1307 program_suffix=$ac_optarg ;; 1308 1309 -program-transform-name | --program-transform-name \ 1310 | --program-transform-nam | --program-transform-na \ 1311 | --program-transform-n | --program-transform- \ 1312 | --program-transform | --program-transfor \ 1313 | --program-transfo | --program-transf \ 1314 | --program-trans | --program-tran \ 1315 | --progr-tra | --program-tr | --program-t) 1316 ac_prev=program_transform_name ;; 1317 -program-transform-name=* | --program-transform-name=* \ 1318 | --program-transform-nam=* | --program-transform-na=* \ 1319 | --program-transform-n=* | --program-transform-=* \ 1320 | --program-transform=* | --program-transfor=* \ 1321 | --program-transfo=* | --program-transf=* \ 1322 | --program-trans=* | --program-tran=* \ 1323 | --progr-tra=* | --program-tr=* | --program-t=*) 1324 program_transform_name=$ac_optarg ;; 1325 1326 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1327 ac_prev=pdfdir ;; 1328 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1329 pdfdir=$ac_optarg ;; 1330 1331 -psdir | --psdir | --psdi | --psd | --ps) 1332 ac_prev=psdir ;; 1333 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1334 psdir=$ac_optarg ;; 1335 1336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1337 | -silent | --silent | --silen | --sile | --sil) 1338 silent=yes ;; 1339 1340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1341 ac_prev=sbindir ;; 1342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1343 | --sbi=* | --sb=*) 1344 sbindir=$ac_optarg ;; 1345 1346 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1348 | --sharedst | --shareds | --shared | --share | --shar \ 1349 | --sha | --sh) 1350 ac_prev=sharedstatedir ;; 1351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1354 | --sha=* | --sh=*) 1355 sharedstatedir=$ac_optarg ;; 1356 1357 -site | --site | --sit) 1358 ac_prev=site ;; 1359 -site=* | --site=* | --sit=*) 1360 site=$ac_optarg ;; 1361 1362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1363 ac_prev=srcdir ;; 1364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1365 srcdir=$ac_optarg ;; 1366 1367 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1368 | --syscon | --sysco | --sysc | --sys | --sy) 1369 ac_prev=sysconfdir ;; 1370 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1371 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1372 sysconfdir=$ac_optarg ;; 1373 1374 -target | --target | --targe | --targ | --tar | --ta | --t) 1375 ac_prev=target_alias ;; 1376 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1377 target_alias=$ac_optarg ;; 1378 1379 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1380 verbose=yes ;; 1381 1382 -version | --version | --versio | --versi | --vers | -V) 1383 ac_init_version=: ;; 1384 1385 -with-* | --with-*) 1386 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1387 # Reject names that are not valid shell variable names. 1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1389 as_fn_error $? "invalid package name: $ac_useropt" 1390 ac_useropt_orig=$ac_useropt 1391 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1392 case $ac_user_opts in 1393 *" 1394"with_$ac_useropt" 1395"*) ;; 1396 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1397 ac_unrecognized_sep=', ';; 1398 esac 1399 eval with_$ac_useropt=\$ac_optarg ;; 1400 1401 -without-* | --without-*) 1402 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1403 # Reject names that are not valid shell variable names. 1404 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1405 as_fn_error $? "invalid package name: $ac_useropt" 1406 ac_useropt_orig=$ac_useropt 1407 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1408 case $ac_user_opts in 1409 *" 1410"with_$ac_useropt" 1411"*) ;; 1412 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1413 ac_unrecognized_sep=', ';; 1414 esac 1415 eval with_$ac_useropt=no ;; 1416 1417 --x) 1418 # Obsolete; use --with-x. 1419 with_x=yes ;; 1420 1421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1422 | --x-incl | --x-inc | --x-in | --x-i) 1423 ac_prev=x_includes ;; 1424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1426 x_includes=$ac_optarg ;; 1427 1428 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1430 ac_prev=x_libraries ;; 1431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1433 x_libraries=$ac_optarg ;; 1434 1435 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1436Try \`$0 --help' for more information" 1437 ;; 1438 1439 *=*) 1440 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1441 # Reject names that are not valid shell variable names. 1442 case $ac_envvar in #( 1443 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1444 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1445 esac 1446 eval $ac_envvar=\$ac_optarg 1447 export $ac_envvar ;; 1448 1449 *) 1450 # FIXME: should be removed in autoconf 3.0. 1451 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1452 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1453 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1454 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1455 ;; 1456 1457 esac 1458done 1459 1460if test -n "$ac_prev"; then 1461 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1462 as_fn_error $? "missing argument to $ac_option" 1463fi 1464 1465if test -n "$ac_unrecognized_opts"; then 1466 case $enable_option_checking in 1467 no) ;; 1468 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1469 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1470 esac 1471fi 1472 1473# Check all directory arguments for consistency. 1474for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1475 datadir sysconfdir sharedstatedir localstatedir includedir \ 1476 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1477 libdir localedir mandir 1478do 1479 eval ac_val=\$$ac_var 1480 # Remove trailing slashes. 1481 case $ac_val in 1482 */ ) 1483 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1484 eval $ac_var=\$ac_val;; 1485 esac 1486 # Be sure to have absolute directory names. 1487 case $ac_val in 1488 [\\/$]* | ?:[\\/]* ) continue;; 1489 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1490 esac 1491 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1492done 1493 1494# There might be people who depend on the old broken behavior: `$host' 1495# used to hold the argument of --host etc. 1496# FIXME: To remove some day. 1497build=$build_alias 1498host=$host_alias 1499target=$target_alias 1500 1501# FIXME: To remove some day. 1502if test "x$host_alias" != x; then 1503 if test "x$build_alias" = x; then 1504 cross_compiling=maybe 1505 elif test "x$build_alias" != "x$host_alias"; then 1506 cross_compiling=yes 1507 fi 1508fi 1509 1510ac_tool_prefix= 1511test -n "$host_alias" && ac_tool_prefix=$host_alias- 1512 1513test "$silent" = yes && exec 6>/dev/null 1514 1515 1516ac_pwd=`pwd` && test -n "$ac_pwd" && 1517ac_ls_di=`ls -di .` && 1518ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1519 as_fn_error $? "working directory cannot be determined" 1520test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1521 as_fn_error $? "pwd does not report name of working directory" 1522 1523 1524# Find the source files, if location was not specified. 1525if test -z "$srcdir"; then 1526 ac_srcdir_defaulted=yes 1527 # Try the directory containing this script, then the parent directory. 1528 ac_confdir=`$as_dirname -- "$as_myself" || 1529$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1530 X"$as_myself" : 'X\(//\)[^/]' \| \ 1531 X"$as_myself" : 'X\(//\)$' \| \ 1532 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1533$as_echo X"$as_myself" | 1534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1535 s//\1/ 1536 q 1537 } 1538 /^X\(\/\/\)[^/].*/{ 1539 s//\1/ 1540 q 1541 } 1542 /^X\(\/\/\)$/{ 1543 s//\1/ 1544 q 1545 } 1546 /^X\(\/\).*/{ 1547 s//\1/ 1548 q 1549 } 1550 s/.*/./; q'` 1551 srcdir=$ac_confdir 1552 if test ! -r "$srcdir/$ac_unique_file"; then 1553 srcdir=.. 1554 fi 1555else 1556 ac_srcdir_defaulted=no 1557fi 1558if test ! -r "$srcdir/$ac_unique_file"; then 1559 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1560 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1561fi 1562ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1563ac_abs_confdir=`( 1564 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1565 pwd)` 1566# When building in place, set srcdir=. 1567if test "$ac_abs_confdir" = "$ac_pwd"; then 1568 srcdir=. 1569fi 1570# Remove unnecessary trailing slashes from srcdir. 1571# Double slashes in file names in object file debugging info 1572# mess up M-x gdb in Emacs. 1573case $srcdir in 1574*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1575esac 1576for ac_var in $ac_precious_vars; do 1577 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1578 eval ac_env_${ac_var}_value=\$${ac_var} 1579 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1580 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1581done 1582 1583# 1584# Report the --help message. 1585# 1586if test "$ac_init_help" = "long"; then 1587 # Omit some internal or obsolete options to make the list less imposing. 1588 # This message is too long to be a string in the A/UX 3.1 sh. 1589 cat <<_ACEOF 1590\`configure' configures BIND 9.10 to adapt to many kinds of systems. 1591 1592Usage: $0 [OPTION]... [VAR=VALUE]... 1593 1594To assign environment variables (e.g., CC, CFLAGS...), specify them as 1595VAR=VALUE. See below for descriptions of some of the useful variables. 1596 1597Defaults for the options are specified in brackets. 1598 1599Configuration: 1600 -h, --help display this help and exit 1601 --help=short display options specific to this package 1602 --help=recursive display the short help of all the included packages 1603 -V, --version display version information and exit 1604 -q, --quiet, --silent do not print \`checking ...' messages 1605 --cache-file=FILE cache test results in FILE [disabled] 1606 -C, --config-cache alias for \`--cache-file=config.cache' 1607 -n, --no-create do not create output files 1608 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1609 1610Installation directories: 1611 --prefix=PREFIX install architecture-independent files in PREFIX 1612 [$ac_default_prefix] 1613 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1614 [PREFIX] 1615 1616By default, \`make install' will install all the files in 1617\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1618an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1619for instance \`--prefix=\$HOME'. 1620 1621For better control, use the options below. 1622 1623Fine tuning of the installation directories: 1624 --bindir=DIR user executables [EPREFIX/bin] 1625 --sbindir=DIR system admin executables [EPREFIX/sbin] 1626 --libexecdir=DIR program executables [EPREFIX/libexec] 1627 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1628 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1629 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1630 --libdir=DIR object code libraries [EPREFIX/lib] 1631 --includedir=DIR C header files [PREFIX/include] 1632 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1633 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1634 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1635 --infodir=DIR info documentation [DATAROOTDIR/info] 1636 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1637 --mandir=DIR man documentation [DATAROOTDIR/man] 1638 --docdir=DIR documentation root [DATAROOTDIR/doc/bind] 1639 --htmldir=DIR html documentation [DOCDIR] 1640 --dvidir=DIR dvi documentation [DOCDIR] 1641 --pdfdir=DIR pdf documentation [DOCDIR] 1642 --psdir=DIR ps documentation [DOCDIR] 1643_ACEOF 1644 1645 cat <<\_ACEOF 1646 1647 NOTE: If PREFIX is not set, then the default values for --sysconfdir 1648 and --localstatedir are /etc and /var, respectively. 1649 1650System types: 1651 --build=BUILD configure for building on BUILD [guessed] 1652 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1653_ACEOF 1654fi 1655 1656if test -n "$ac_init_help"; then 1657 case $ac_init_help in 1658 short | recursive ) echo "Configuration of BIND 9.10:";; 1659 esac 1660 cat <<\_ACEOF 1661 1662Optional Features: 1663 --disable-option-checking ignore unrecognized --enable/--with options 1664 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1665 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1666 --enable-shared[=PKGS] build shared libraries [default=yes] 1667 --enable-static[=PKGS] build static libraries [default=yes] 1668 --enable-fast-install[=PKGS] 1669 optimize for fast installation [default=yes] 1670 --disable-libtool-lock avoid locking (might break parallel builds) 1671 --enable-libbind deprecated 1672 --enable-warn-shadow turn on -Wshadow when compiling 1673 --enable-warn-error turn on -Werror when compiling 1674 --enable-developer enable developer build settings 1675 --enable-seccomp enable support for libseccomp system call filtering 1676 [default=no] 1677 --enable-kqueue use BSD kqueue when available [default=yes] 1678 --enable-epoll use Linux epoll when available [default=auto] 1679 --enable-devpoll use /dev/poll when available [default=yes] 1680 --enable-threads enable multithreading 1681 --enable-native-pkcs11 use native PKCS11 for all crypto [default=no] 1682 --enable-openssl-hash use OpenSSL for hash functions [default=no] 1683 --enable-sit enable source identity token [default=no] 1684 --enable-openssl-version-check 1685 check OpenSSL version [default=yes] 1686 --enable-largefile 64-bit file support 1687 --enable-backtrace log stack backtrace on abort [default=yes] 1688 --enable-symtable use internal symbol table for backtrace 1689 [all|minimal(default)|none] 1690 --enable-ipv6 use IPv6 default=autodetect 1691 --enable-getifaddrs enable the use of getifaddrs() [yes|no]. 1692 --disable-isc-spnego use SPNEGO from GSSAPI library 1693 --disable-chroot disable chroot 1694 --disable-linux-caps disable linux capabilities 1695 --enable-atomic enable machine specific atomic operations 1696 [default=autodetect] 1697 --enable-fixed-rrset enable fixed rrset ordering [default=no] 1698 --disable-rpz-nsip disable rpz-nsip rules [default=enabled] 1699 --disable-rpz-nsdname disable rpz-nsdname rules [default=enabled] 1700 --enable-filter-aaaa enable filtering of AAAA records [default=no] 1701 --enable-full-report report values of all configure options 1702 1703Optional Packages: 1704 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1705 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1706 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1707 both] 1708 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1709 --with-sysroot=DIR Search for dependent libraries within DIR 1710 (or the compiler's sysroot if not specified). 1711 --with-python=PATH specify path to python interpreter 1712 --with-geoip=PATH Build with GeoIP support (yes|no|path) 1713 --with-gssapi=PATH Specify path for system-supplied GSSAPI [default=yes] 1714 --with-randomdev=PATH Specify path for random device 1715 --with-locktype=ARG Specify mutex lock type (adaptive or standard) 1716 --with-libtool use GNU libtool 1717 --with-openssl=PATH Build with OpenSSL yes|no|path. 1718 (Crypto is required for DNSSEC) 1719 --with-pkcs11=PATH Build with PKCS11 support yes|no|path 1720 (PATH is for the PKCS11 provider) 1721 --with-ecdsa Crypto ECDSA 1722 --with-gost Crypto GOST yes|no|raw|asn1. 1723 --with-aes Crypto AES 1724 --with-sit-alg=ALG choose the algorithm for SIT [aes|sha1|sha256] 1725 --with-libxml2=PATH build with libxml2 library yes|no|path 1726 --with-libjson=PATH build with libjson0 library yes|no|path 1727 --with-purify=PATH use Rational purify 1728 --with-gperftools-profiler use gperftools CPU profiler 1729 --with-kame=PATH use Kame IPv6 default path /usr/local/v6 1730 --with-readline=LIBSPEC specify readline library default -lreadline 1731 1732 --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets 1733 --with-idn=MPREFIX enable IDN support using idnkit default PREFIX 1734 --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX 1735 --with-iconv=LIBSPEC specify iconv library default -liconv 1736 --with-idnlib=ARG specify libidnkit 1737 --with-atf=ARG support Automated Test Framework 1738 --with-tuning=ARG Specify server tuning (large or default) 1739 --with-dlopen=ARG support dynamically loadable DLZ drivers 1740 --with-dlz-postgres=PATH Build with Postgres DLZ driver yes|no|path. 1741 (Required to use Postgres with DLZ) 1742 --with-dlz-mysql=PATH Build with MySQL DLZ driver yes|no|path. 1743 (Required to use MySQL with DLZ) 1744 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver yes|no|path. 1745 (Required to use Berkeley DB with DLZ) 1746 --with-dlz-filesystem=PATH Build with filesystem DLZ driver yes|no. 1747 (Required to use file system driver with DLZ) 1748 --with-dlz-ldap=PATH Build with LDAP DLZ driver yes|no|path. 1749 (Required to use LDAP with DLZ) 1750 --with-dlz-odbc=PATH Build with ODBC DLZ driver yes|no|path. 1751 (Required to use ODBC with DLZ) 1752 --with-dlz-stub=PATH Build with stub DLZ driver yes|no. 1753 (Required to use stub driver with DLZ) 1754 --with-make-clean run "make clean" at end of configure [yes|no] 1755 1756Some influential environment variables: 1757 CC C compiler command 1758 CFLAGS C compiler flags 1759 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1760 nonstandard directory <lib dir> 1761 LIBS libraries to pass to the linker, e.g. -l<library> 1762 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1763 you have headers in a nonstandard directory <include dir> 1764 CPP C preprocessor 1765 1766Use these variables to override the choices made by `configure' or to help 1767it to find libraries and programs with nonstandard names/locations. 1768 1769Professional support for BIND is provided by Internet Systems Consortium, 1770Inc. Information about paid support and training options is available at 1771https://www.isc.org/support. 1772 1773Help can also often be found on the BIND Users mailing list 1774(https://lists.isc.org/mailman/listinfo/bind-users) or in the #bind 1775channel of the Freenode IRC service. 1776 1777Report bugs to <bind9-bugs@isc.org>. 1778BIND home page: <https://www.isc.org/downloads/BIND/>. 1779_ACEOF 1780ac_status=$? 1781fi 1782 1783if test "$ac_init_help" = "recursive"; then 1784 # If there are subdirs, report their specific --help. 1785 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1786 test -d "$ac_dir" || 1787 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1788 continue 1789 ac_builddir=. 1790 1791case "$ac_dir" in 1792.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1793*) 1794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1795 # A ".." for each directory in $ac_dir_suffix. 1796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1797 case $ac_top_builddir_sub in 1798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1800 esac ;; 1801esac 1802ac_abs_top_builddir=$ac_pwd 1803ac_abs_builddir=$ac_pwd$ac_dir_suffix 1804# for backward compatibility: 1805ac_top_builddir=$ac_top_build_prefix 1806 1807case $srcdir in 1808 .) # We are building in place. 1809 ac_srcdir=. 1810 ac_top_srcdir=$ac_top_builddir_sub 1811 ac_abs_top_srcdir=$ac_pwd ;; 1812 [\\/]* | ?:[\\/]* ) # Absolute name. 1813 ac_srcdir=$srcdir$ac_dir_suffix; 1814 ac_top_srcdir=$srcdir 1815 ac_abs_top_srcdir=$srcdir ;; 1816 *) # Relative name. 1817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1818 ac_top_srcdir=$ac_top_build_prefix$srcdir 1819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1820esac 1821ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1822 1823 cd "$ac_dir" || { ac_status=$?; continue; } 1824 # Check for guested configure. 1825 if test -f "$ac_srcdir/configure.gnu"; then 1826 echo && 1827 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1828 elif test -f "$ac_srcdir/configure"; then 1829 echo && 1830 $SHELL "$ac_srcdir/configure" --help=recursive 1831 else 1832 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1833 fi || ac_status=$? 1834 cd "$ac_pwd" || { ac_status=$?; break; } 1835 done 1836fi 1837 1838test -n "$ac_init_help" && exit $ac_status 1839if $ac_init_version; then 1840 cat <<\_ACEOF 1841BIND configure 9.10 1842generated by GNU Autoconf 2.69 1843 1844Copyright (C) 2012 Free Software Foundation, Inc. 1845This configure script is free software; the Free Software Foundation 1846gives unlimited permission to copy, distribute and modify it. 1847_ACEOF 1848 exit 1849fi 1850 1851## ------------------------ ## 1852## Autoconf initialization. ## 1853## ------------------------ ## 1854 1855# ac_fn_c_try_compile LINENO 1856# -------------------------- 1857# Try to compile conftest.$ac_ext, and return whether this succeeded. 1858ac_fn_c_try_compile () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 rm -f conftest.$ac_objext 1862 if { { ac_try="$ac_compile" 1863case "(($ac_try" in 1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1865 *) ac_try_echo=$ac_try;; 1866esac 1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1868$as_echo "$ac_try_echo"; } >&5 1869 (eval "$ac_compile") 2>conftest.err 1870 ac_status=$? 1871 if test -s conftest.err; then 1872 grep -v '^ *+' conftest.err >conftest.er1 1873 cat conftest.er1 >&5 1874 mv -f conftest.er1 conftest.err 1875 fi 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1877 test $ac_status = 0; } && { 1878 test -z "$ac_c_werror_flag" || 1879 test ! -s conftest.err 1880 } && test -s conftest.$ac_objext; then : 1881 ac_retval=0 1882else 1883 $as_echo "$as_me: failed program was:" >&5 1884sed 's/^/| /' conftest.$ac_ext >&5 1885 1886 ac_retval=1 1887fi 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1889 as_fn_set_status $ac_retval 1890 1891} # ac_fn_c_try_compile 1892 1893# ac_fn_c_try_link LINENO 1894# ----------------------- 1895# Try to link conftest.$ac_ext, and return whether this succeeded. 1896ac_fn_c_try_link () 1897{ 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 rm -f conftest.$ac_objext conftest$ac_exeext 1900 if { { ac_try="$ac_link" 1901case "(($ac_try" in 1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1903 *) ac_try_echo=$ac_try;; 1904esac 1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1906$as_echo "$ac_try_echo"; } >&5 1907 (eval "$ac_link") 2>conftest.err 1908 ac_status=$? 1909 if test -s conftest.err; then 1910 grep -v '^ *+' conftest.err >conftest.er1 1911 cat conftest.er1 >&5 1912 mv -f conftest.er1 conftest.err 1913 fi 1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1915 test $ac_status = 0; } && { 1916 test -z "$ac_c_werror_flag" || 1917 test ! -s conftest.err 1918 } && test -s conftest$ac_exeext && { 1919 test "$cross_compiling" = yes || 1920 test -x conftest$ac_exeext 1921 }; then : 1922 ac_retval=0 1923else 1924 $as_echo "$as_me: failed program was:" >&5 1925sed 's/^/| /' conftest.$ac_ext >&5 1926 1927 ac_retval=1 1928fi 1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1931 # interfere with the next link command; also delete a directory that is 1932 # left behind by Apple's compiler. We do this before executing the actions. 1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 as_fn_set_status $ac_retval 1936 1937} # ac_fn_c_try_link 1938 1939# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1940# ------------------------------------------------------- 1941# Tests whether HEADER exists and can be compiled using the include files in 1942# INCLUDES, setting the cache variable VAR accordingly. 1943ac_fn_c_check_header_compile () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1947$as_echo_n "checking for $2... " >&6; } 1948if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950else 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953$4 1954#include <$2> 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO"; then : 1957 eval "$3=yes" 1958else 1959 eval "$3=no" 1960fi 1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1962fi 1963eval ac_res=\$$3 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1965$as_echo "$ac_res" >&6; } 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 1968} # ac_fn_c_check_header_compile 1969 1970# ac_fn_c_try_cpp LINENO 1971# ---------------------- 1972# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1973ac_fn_c_try_cpp () 1974{ 1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1976 if { { ac_try="$ac_cpp conftest.$ac_ext" 1977case "(($ac_try" in 1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1979 *) ac_try_echo=$ac_try;; 1980esac 1981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1982$as_echo "$ac_try_echo"; } >&5 1983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1984 ac_status=$? 1985 if test -s conftest.err; then 1986 grep -v '^ *+' conftest.err >conftest.er1 1987 cat conftest.er1 >&5 1988 mv -f conftest.er1 conftest.err 1989 fi 1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1991 test $ac_status = 0; } > conftest.i && { 1992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1993 test ! -s conftest.err 1994 }; then : 1995 ac_retval=0 1996else 1997 $as_echo "$as_me: failed program was:" >&5 1998sed 's/^/| /' conftest.$ac_ext >&5 1999 2000 ac_retval=1 2001fi 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2003 as_fn_set_status $ac_retval 2004 2005} # ac_fn_c_try_cpp 2006 2007# ac_fn_c_try_run LINENO 2008# ---------------------- 2009# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2010# that executables *can* be run. 2011ac_fn_c_try_run () 2012{ 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 if { { ac_try="$ac_link" 2015case "(($ac_try" in 2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2017 *) ac_try_echo=$ac_try;; 2018esac 2019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2020$as_echo "$ac_try_echo"; } >&5 2021 (eval "$ac_link") 2>&5 2022 ac_status=$? 2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2024 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2025 { { case "(($ac_try" in 2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2027 *) ac_try_echo=$ac_try;; 2028esac 2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2030$as_echo "$ac_try_echo"; } >&5 2031 (eval "$ac_try") 2>&5 2032 ac_status=$? 2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2034 test $ac_status = 0; }; }; then : 2035 ac_retval=0 2036else 2037 $as_echo "$as_me: program exited with status $ac_status" >&5 2038 $as_echo "$as_me: failed program was:" >&5 2039sed 's/^/| /' conftest.$ac_ext >&5 2040 2041 ac_retval=$ac_status 2042fi 2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2045 as_fn_set_status $ac_retval 2046 2047} # ac_fn_c_try_run 2048 2049# ac_fn_c_check_func LINENO FUNC VAR 2050# ---------------------------------- 2051# Tests whether FUNC exists, setting the cache variable VAR accordingly 2052ac_fn_c_check_func () 2053{ 2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2056$as_echo_n "checking for $2... " >&6; } 2057if eval \${$3+:} false; then : 2058 $as_echo_n "(cached) " >&6 2059else 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2064#define $2 innocuous_$2 2065 2066/* System header to define __stub macros and hopefully few prototypes, 2067 which can conflict with char $2 (); below. 2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2069 <limits.h> exists even on freestanding compilers. */ 2070 2071#ifdef __STDC__ 2072# include <limits.h> 2073#else 2074# include <assert.h> 2075#endif 2076 2077#undef $2 2078 2079/* Override any GCC internal prototype to avoid an error. 2080 Use char because int might match the return type of a GCC 2081 builtin and then its argument prototype would still apply. */ 2082#ifdef __cplusplus 2083extern "C" 2084#endif 2085char $2 (); 2086/* The GNU C library defines this for functions which it implements 2087 to always fail with ENOSYS. Some functions are actually named 2088 something starting with __ and the normal name is an alias. */ 2089#if defined __stub_$2 || defined __stub___$2 2090choke me 2091#endif 2092 2093int 2094main () 2095{ 2096return $2 (); 2097 ; 2098 return 0; 2099} 2100_ACEOF 2101if ac_fn_c_try_link "$LINENO"; then : 2102 eval "$3=yes" 2103else 2104 eval "$3=no" 2105fi 2106rm -f core conftest.err conftest.$ac_objext \ 2107 conftest$ac_exeext conftest.$ac_ext 2108fi 2109eval ac_res=\$$3 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2111$as_echo "$ac_res" >&6; } 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2113 2114} # ac_fn_c_check_func 2115 2116# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2117# ------------------------------------------- 2118# Tests whether TYPE exists after having included INCLUDES, setting cache 2119# variable VAR accordingly. 2120ac_fn_c_check_type () 2121{ 2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2124$as_echo_n "checking for $2... " >&6; } 2125if eval \${$3+:} false; then : 2126 $as_echo_n "(cached) " >&6 2127else 2128 eval "$3=no" 2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2130/* end confdefs.h. */ 2131$4 2132int 2133main () 2134{ 2135if (sizeof ($2)) 2136 return 0; 2137 ; 2138 return 0; 2139} 2140_ACEOF 2141if ac_fn_c_try_compile "$LINENO"; then : 2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2143/* end confdefs.h. */ 2144$4 2145int 2146main () 2147{ 2148if (sizeof (($2))) 2149 return 0; 2150 ; 2151 return 0; 2152} 2153_ACEOF 2154if ac_fn_c_try_compile "$LINENO"; then : 2155 2156else 2157 eval "$3=yes" 2158fi 2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2160fi 2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2162fi 2163eval ac_res=\$$3 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2165$as_echo "$ac_res" >&6; } 2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2167 2168} # ac_fn_c_check_type 2169 2170# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2171# ------------------------------------------------------- 2172# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2173# the include files in INCLUDES and setting the cache variable VAR 2174# accordingly. 2175ac_fn_c_check_header_mongrel () 2176{ 2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2178 if eval \${$3+:} false; then : 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2180$as_echo_n "checking for $2... " >&6; } 2181if eval \${$3+:} false; then : 2182 $as_echo_n "(cached) " >&6 2183fi 2184eval ac_res=\$$3 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2186$as_echo "$ac_res" >&6; } 2187else 2188 # Is the header compilable? 2189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2190$as_echo_n "checking $2 usability... " >&6; } 2191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194#include <$2> 2195_ACEOF 2196if ac_fn_c_try_compile "$LINENO"; then : 2197 ac_header_compiler=yes 2198else 2199 ac_header_compiler=no 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2203$as_echo "$ac_header_compiler" >&6; } 2204 2205# Is the header present? 2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2207$as_echo_n "checking $2 presence... " >&6; } 2208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2209/* end confdefs.h. */ 2210#include <$2> 2211_ACEOF 2212if ac_fn_c_try_cpp "$LINENO"; then : 2213 ac_header_preproc=yes 2214else 2215 ac_header_preproc=no 2216fi 2217rm -f conftest.err conftest.i conftest.$ac_ext 2218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2219$as_echo "$ac_header_preproc" >&6; } 2220 2221# So? What about this header? 2222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2223 yes:no: ) 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2225$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2227$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2228 ;; 2229 no:yes:* ) 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2231$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2233$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2235$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2237$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2239$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2240( $as_echo "## --------------------------------- ## 2241## Report this to bind9-bugs@isc.org ## 2242## --------------------------------- ##" 2243 ) | sed "s/^/$as_me: WARNING: /" >&2 2244 ;; 2245esac 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2247$as_echo_n "checking for $2... " >&6; } 2248if eval \${$3+:} false; then : 2249 $as_echo_n "(cached) " >&6 2250else 2251 eval "$3=\$ac_header_compiler" 2252fi 2253eval ac_res=\$$3 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2255$as_echo "$ac_res" >&6; } 2256fi 2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2258 2259} # ac_fn_c_check_header_mongrel 2260 2261# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2262# -------------------------------------------- 2263# Tries to find the compile-time value of EXPR in a program that includes 2264# INCLUDES, setting VAR accordingly. Returns whether the value could be 2265# computed 2266ac_fn_c_compute_int () 2267{ 2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2269 if test "$cross_compiling" = yes; then 2270 # Depending upon the size, compute the lo and hi bounds. 2271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2272/* end confdefs.h. */ 2273$4 2274int 2275main () 2276{ 2277static int test_array [1 - 2 * !(($2) >= 0)]; 2278test_array [0] = 0; 2279return test_array [0]; 2280 2281 ; 2282 return 0; 2283} 2284_ACEOF 2285if ac_fn_c_try_compile "$LINENO"; then : 2286 ac_lo=0 ac_mid=0 2287 while :; do 2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2289/* end confdefs.h. */ 2290$4 2291int 2292main () 2293{ 2294static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2295test_array [0] = 0; 2296return test_array [0]; 2297 2298 ; 2299 return 0; 2300} 2301_ACEOF 2302if ac_fn_c_try_compile "$LINENO"; then : 2303 ac_hi=$ac_mid; break 2304else 2305 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2306 if test $ac_lo -le $ac_mid; then 2307 ac_lo= ac_hi= 2308 break 2309 fi 2310 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2311fi 2312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2313 done 2314else 2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2316/* end confdefs.h. */ 2317$4 2318int 2319main () 2320{ 2321static int test_array [1 - 2 * !(($2) < 0)]; 2322test_array [0] = 0; 2323return test_array [0]; 2324 2325 ; 2326 return 0; 2327} 2328_ACEOF 2329if ac_fn_c_try_compile "$LINENO"; then : 2330 ac_hi=-1 ac_mid=-1 2331 while :; do 2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2333/* end confdefs.h. */ 2334$4 2335int 2336main () 2337{ 2338static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2339test_array [0] = 0; 2340return test_array [0]; 2341 2342 ; 2343 return 0; 2344} 2345_ACEOF 2346if ac_fn_c_try_compile "$LINENO"; then : 2347 ac_lo=$ac_mid; break 2348else 2349 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2350 if test $ac_mid -le $ac_hi; then 2351 ac_lo= ac_hi= 2352 break 2353 fi 2354 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2355fi 2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2357 done 2358else 2359 ac_lo= ac_hi= 2360fi 2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2362fi 2363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2364# Binary search between lo and hi bounds. 2365while test "x$ac_lo" != "x$ac_hi"; do 2366 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2368/* end confdefs.h. */ 2369$4 2370int 2371main () 2372{ 2373static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2374test_array [0] = 0; 2375return test_array [0]; 2376 2377 ; 2378 return 0; 2379} 2380_ACEOF 2381if ac_fn_c_try_compile "$LINENO"; then : 2382 ac_hi=$ac_mid 2383else 2384 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2385fi 2386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2387done 2388case $ac_lo in #(( 2389?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2390'') ac_retval=1 ;; 2391esac 2392 else 2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2394/* end confdefs.h. */ 2395$4 2396static long int longval () { return $2; } 2397static unsigned long int ulongval () { return $2; } 2398#include <stdio.h> 2399#include <stdlib.h> 2400int 2401main () 2402{ 2403 2404 FILE *f = fopen ("conftest.val", "w"); 2405 if (! f) 2406 return 1; 2407 if (($2) < 0) 2408 { 2409 long int i = longval (); 2410 if (i != ($2)) 2411 return 1; 2412 fprintf (f, "%ld", i); 2413 } 2414 else 2415 { 2416 unsigned long int i = ulongval (); 2417 if (i != ($2)) 2418 return 1; 2419 fprintf (f, "%lu", i); 2420 } 2421 /* Do not output a trailing newline, as this causes \r\n confusion 2422 on some platforms. */ 2423 return ferror (f) || fclose (f) != 0; 2424 2425 ; 2426 return 0; 2427} 2428_ACEOF 2429if ac_fn_c_try_run "$LINENO"; then : 2430 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2431else 2432 ac_retval=1 2433fi 2434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2435 conftest.$ac_objext conftest.beam conftest.$ac_ext 2436rm -f conftest.val 2437 2438 fi 2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2440 as_fn_set_status $ac_retval 2441 2442} # ac_fn_c_compute_int 2443cat >config.log <<_ACEOF 2444This file contains any messages produced by compilers while 2445running configure, to aid debugging if configure makes a mistake. 2446 2447It was created by BIND $as_me 9.10, which was 2448generated by GNU Autoconf 2.69. Invocation command line was 2449 2450 $ $0 $@ 2451 2452_ACEOF 2453exec 5>>config.log 2454{ 2455cat <<_ASUNAME 2456## --------- ## 2457## Platform. ## 2458## --------- ## 2459 2460hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2461uname -m = `(uname -m) 2>/dev/null || echo unknown` 2462uname -r = `(uname -r) 2>/dev/null || echo unknown` 2463uname -s = `(uname -s) 2>/dev/null || echo unknown` 2464uname -v = `(uname -v) 2>/dev/null || echo unknown` 2465 2466/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2467/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2468 2469/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2470/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2471/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2472/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2473/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2474/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2475/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2476 2477_ASUNAME 2478 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 $as_echo "PATH: $as_dir" 2485 done 2486IFS=$as_save_IFS 2487 2488} >&5 2489 2490cat >&5 <<_ACEOF 2491 2492 2493## ----------- ## 2494## Core tests. ## 2495## ----------- ## 2496 2497_ACEOF 2498 2499 2500# Keep a trace of the command line. 2501# Strip out --no-create and --no-recursion so they do not pile up. 2502# Strip out --silent because we don't want to record it for future runs. 2503# Also quote any args containing shell meta-characters. 2504# Make two passes to allow for proper duplicate-argument suppression. 2505ac_configure_args= 2506ac_configure_args0= 2507ac_configure_args1= 2508ac_must_keep_next=false 2509for ac_pass in 1 2 2510do 2511 for ac_arg 2512 do 2513 case $ac_arg in 2514 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2516 | -silent | --silent | --silen | --sile | --sil) 2517 continue ;; 2518 *\'*) 2519 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2520 esac 2521 case $ac_pass in 2522 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2523 2) 2524 as_fn_append ac_configure_args1 " '$ac_arg'" 2525 if test $ac_must_keep_next = true; then 2526 ac_must_keep_next=false # Got value, back to normal. 2527 else 2528 case $ac_arg in 2529 *=* | --config-cache | -C | -disable-* | --disable-* \ 2530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2532 | -with-* | --with-* | -without-* | --without-* | --x) 2533 case "$ac_configure_args0 " in 2534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2535 esac 2536 ;; 2537 -* ) ac_must_keep_next=true ;; 2538 esac 2539 fi 2540 as_fn_append ac_configure_args " '$ac_arg'" 2541 ;; 2542 esac 2543 done 2544done 2545{ ac_configure_args0=; unset ac_configure_args0;} 2546{ ac_configure_args1=; unset ac_configure_args1;} 2547 2548# When interrupted or exit'd, cleanup temporary files, and complete 2549# config.log. We remove comments because anyway the quotes in there 2550# would cause problems or look ugly. 2551# WARNING: Use '\'' to represent an apostrophe within the trap. 2552# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2553trap 'exit_status=$? 2554 # Save into config.log some information that might help in debugging. 2555 { 2556 echo 2557 2558 $as_echo "## ---------------- ## 2559## Cache variables. ## 2560## ---------------- ##" 2561 echo 2562 # The following way of writing the cache mishandles newlines in values, 2563( 2564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2565 eval ac_val=\$$ac_var 2566 case $ac_val in #( 2567 *${as_nl}*) 2568 case $ac_var in #( 2569 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2570$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2571 esac 2572 case $ac_var in #( 2573 _ | IFS | as_nl) ;; #( 2574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2575 *) { eval $ac_var=; unset $ac_var;} ;; 2576 esac ;; 2577 esac 2578 done 2579 (set) 2>&1 | 2580 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2581 *${as_nl}ac_space=\ *) 2582 sed -n \ 2583 "s/'\''/'\''\\\\'\'''\''/g; 2584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2585 ;; #( 2586 *) 2587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2588 ;; 2589 esac | 2590 sort 2591) 2592 echo 2593 2594 $as_echo "## ----------------- ## 2595## Output variables. ## 2596## ----------------- ##" 2597 echo 2598 for ac_var in $ac_subst_vars 2599 do 2600 eval ac_val=\$$ac_var 2601 case $ac_val in 2602 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2603 esac 2604 $as_echo "$ac_var='\''$ac_val'\''" 2605 done | sort 2606 echo 2607 2608 if test -n "$ac_subst_files"; then 2609 $as_echo "## ------------------- ## 2610## File substitutions. ## 2611## ------------------- ##" 2612 echo 2613 for ac_var in $ac_subst_files 2614 do 2615 eval ac_val=\$$ac_var 2616 case $ac_val in 2617 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2618 esac 2619 $as_echo "$ac_var='\''$ac_val'\''" 2620 done | sort 2621 echo 2622 fi 2623 2624 if test -s confdefs.h; then 2625 $as_echo "## ----------- ## 2626## confdefs.h. ## 2627## ----------- ##" 2628 echo 2629 cat confdefs.h 2630 echo 2631 fi 2632 test "$ac_signal" != 0 && 2633 $as_echo "$as_me: caught signal $ac_signal" 2634 $as_echo "$as_me: exit $exit_status" 2635 } >&5 2636 rm -f core *.core core.conftest.* && 2637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2638 exit $exit_status 2639' 0 2640for ac_signal in 1 2 13 15; do 2641 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2642done 2643ac_signal=0 2644 2645# confdefs.h avoids OS command line length limits that DEFS can exceed. 2646rm -f -r conftest* confdefs.h 2647 2648$as_echo "/* confdefs.h */" > confdefs.h 2649 2650# Predefined preprocessor variables. 2651 2652cat >>confdefs.h <<_ACEOF 2653#define PACKAGE_NAME "$PACKAGE_NAME" 2654_ACEOF 2655 2656cat >>confdefs.h <<_ACEOF 2657#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2658_ACEOF 2659 2660cat >>confdefs.h <<_ACEOF 2661#define PACKAGE_VERSION "$PACKAGE_VERSION" 2662_ACEOF 2663 2664cat >>confdefs.h <<_ACEOF 2665#define PACKAGE_STRING "$PACKAGE_STRING" 2666_ACEOF 2667 2668cat >>confdefs.h <<_ACEOF 2669#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2670_ACEOF 2671 2672cat >>confdefs.h <<_ACEOF 2673#define PACKAGE_URL "$PACKAGE_URL" 2674_ACEOF 2675 2676 2677# Let the site file select an alternate cache file if it wants to. 2678# Prefer an explicitly selected file to automatically selected ones. 2679ac_site_file1=NONE 2680ac_site_file2=NONE 2681if test -n "$CONFIG_SITE"; then 2682 # We do not want a PATH search for config.site. 2683 case $CONFIG_SITE in #(( 2684 -*) ac_site_file1=./$CONFIG_SITE;; 2685 */*) ac_site_file1=$CONFIG_SITE;; 2686 *) ac_site_file1=./$CONFIG_SITE;; 2687 esac 2688elif test "x$prefix" != xNONE; then 2689 ac_site_file1=$prefix/share/config.site 2690 ac_site_file2=$prefix/etc/config.site 2691else 2692 ac_site_file1=$ac_default_prefix/share/config.site 2693 ac_site_file2=$ac_default_prefix/etc/config.site 2694fi 2695for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2696do 2697 test "x$ac_site_file" = xNONE && continue 2698 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2700$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2701 sed 's/^/| /' "$ac_site_file" >&5 2702 . "$ac_site_file" \ 2703 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2705as_fn_error $? "failed to load site script $ac_site_file 2706See \`config.log' for more details" "$LINENO" 5; } 2707 fi 2708done 2709 2710if test -r "$cache_file"; then 2711 # Some versions of bash will fail to source /dev/null (special files 2712 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2713 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2715$as_echo "$as_me: loading cache $cache_file" >&6;} 2716 case $cache_file in 2717 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2718 *) . "./$cache_file";; 2719 esac 2720 fi 2721else 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2723$as_echo "$as_me: creating cache $cache_file" >&6;} 2724 >$cache_file 2725fi 2726 2727# Check that the precious variables saved in the cache have kept the same 2728# value. 2729ac_cache_corrupted=false 2730for ac_var in $ac_precious_vars; do 2731 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2732 eval ac_new_set=\$ac_env_${ac_var}_set 2733 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2734 eval ac_new_val=\$ac_env_${ac_var}_value 2735 case $ac_old_set,$ac_new_set in 2736 set,) 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2738$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2739 ac_cache_corrupted=: ;; 2740 ,set) 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2742$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2743 ac_cache_corrupted=: ;; 2744 ,);; 2745 *) 2746 if test "x$ac_old_val" != "x$ac_new_val"; then 2747 # differences in whitespace do not lead to failure. 2748 ac_old_val_w=`echo x $ac_old_val` 2749 ac_new_val_w=`echo x $ac_new_val` 2750 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2752$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2753 ac_cache_corrupted=: 2754 else 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2756$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2757 eval $ac_var=\$ac_old_val 2758 fi 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2760$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2762$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2763 fi;; 2764 esac 2765 # Pass precious variables to config.status. 2766 if test "$ac_new_set" = set; then 2767 case $ac_new_val in 2768 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2769 *) ac_arg=$ac_var=$ac_new_val ;; 2770 esac 2771 case " $ac_configure_args " in 2772 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2773 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2774 esac 2775 fi 2776done 2777if $ac_cache_corrupted; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2781$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2782 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2783fi 2784## -------------------- ## 2785## Main body of script. ## 2786## -------------------- ## 2787 2788ac_ext=c 2789ac_cpp='$CPP $CPPFLAGS' 2790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2792ac_compiler_gnu=$ac_cv_c_compiler_gnu 2793 2794 2795 2796 2797ac_config_headers="$ac_config_headers config.h" 2798 2799 2800 2801ac_aux_dir= 2802for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2803 if test -f "$ac_dir/install-sh"; then 2804 ac_aux_dir=$ac_dir 2805 ac_install_sh="$ac_aux_dir/install-sh -c" 2806 break 2807 elif test -f "$ac_dir/install.sh"; then 2808 ac_aux_dir=$ac_dir 2809 ac_install_sh="$ac_aux_dir/install.sh -c" 2810 break 2811 elif test -f "$ac_dir/shtool"; then 2812 ac_aux_dir=$ac_dir 2813 ac_install_sh="$ac_aux_dir/shtool install -c" 2814 break 2815 fi 2816done 2817if test -z "$ac_aux_dir"; then 2818 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2819fi 2820 2821# These three variables are undocumented and unsupported, 2822# and are intended to be withdrawn in a future Autoconf release. 2823# They can cause serious problems if a builder's source tree is in a directory 2824# whose full name contains unusual characters. 2825ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2826ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2827ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2828 2829 2830# Make sure we can run config.sub. 2831$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2832 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2833 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2835$as_echo_n "checking build system type... " >&6; } 2836if ${ac_cv_build+:} false; then : 2837 $as_echo_n "(cached) " >&6 2838else 2839 ac_build_alias=$build_alias 2840test "x$ac_build_alias" = x && 2841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2842test "x$ac_build_alias" = x && 2843 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2844ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2846 2847fi 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2849$as_echo "$ac_cv_build" >&6; } 2850case $ac_cv_build in 2851*-*-*) ;; 2852*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2853esac 2854build=$ac_cv_build 2855ac_save_IFS=$IFS; IFS='-' 2856set x $ac_cv_build 2857shift 2858build_cpu=$1 2859build_vendor=$2 2860shift; shift 2861# Remember, the first character of IFS is used to create $*, 2862# except with old shells: 2863build_os=$* 2864IFS=$ac_save_IFS 2865case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2866 2867 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2869$as_echo_n "checking host system type... " >&6; } 2870if ${ac_cv_host+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872else 2873 if test "x$host_alias" = x; then 2874 ac_cv_host=$ac_cv_build 2875else 2876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2877 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2878fi 2879 2880fi 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2882$as_echo "$ac_cv_host" >&6; } 2883case $ac_cv_host in 2884*-*-*) ;; 2885*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2886esac 2887host=$ac_cv_host 2888ac_save_IFS=$IFS; IFS='-' 2889set x $ac_cv_host 2890shift 2891host_cpu=$1 2892host_vendor=$2 2893shift; shift 2894# Remember, the first character of IFS is used to create $*, 2895# except with old shells: 2896host_os=$* 2897IFS=$ac_save_IFS 2898case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2899 2900 2901 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2903$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2904set x ${MAKE-make} 2905ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2906if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 cat >conftest.make <<\_ACEOF 2910SHELL = /bin/sh 2911all: 2912 @echo '@@@%%%=$(MAKE)=@@@%%%' 2913_ACEOF 2914# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2915case `${MAKE-make} -f conftest.make 2>/dev/null` in 2916 *@@@%%%=?*=@@@%%%*) 2917 eval ac_cv_prog_make_${ac_make}_set=yes;; 2918 *) 2919 eval ac_cv_prog_make_${ac_make}_set=no;; 2920esac 2921rm -f conftest.make 2922fi 2923if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2925$as_echo "yes" >&6; } 2926 SET_MAKE= 2927else 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2929$as_echo "no" >&6; } 2930 SET_MAKE="MAKE=${MAKE-make}" 2931fi 2932 2933 2934# 2935# GNU libtool support 2936# 2937case $build_os in 2938sunos*) 2939 # Just set the maximum command line length for sunos as it otherwise 2940 # takes a exceptionally long time to work it out. Required for libtool. 2941 2942 lt_cv_sys_max_cmd_len=4096; 2943 ;; 2944esac 2945 2946case `pwd` in 2947 *\ * | *\ *) 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2949$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2950esac 2951 2952 2953 2954macro_version='2.4.2' 2955macro_revision='1.3337' 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969ltmain="$ac_aux_dir/ltmain.sh" 2970 2971# Backslashify metacharacters that are still active within 2972# double-quoted strings. 2973sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2974 2975# Same as above, but do not quote variable references. 2976double_quote_subst='s/\(["`\\]\)/\\\1/g' 2977 2978# Sed substitution to delay expansion of an escaped shell variable in a 2979# double_quote_subst'ed string. 2980delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2981 2982# Sed substitution to delay expansion of an escaped single quote. 2983delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2984 2985# Sed substitution to avoid accidental globbing in evaled expressions 2986no_glob_subst='s/\*/\\\*/g' 2987 2988ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2989ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2990ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2991 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2993$as_echo_n "checking how to print strings... " >&6; } 2994# Test print first, because it will be a builtin if present. 2995if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2996 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2997 ECHO='print -r --' 2998elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2999 ECHO='printf %s\n' 3000else 3001 # Use this function as a fallback that always works. 3002 func_fallback_echo () 3003 { 3004 eval 'cat <<_LTECHO_EOF 3005$1 3006_LTECHO_EOF' 3007 } 3008 ECHO='func_fallback_echo' 3009fi 3010 3011# func_echo_all arg... 3012# Invoke $ECHO with all args, space-separated. 3013func_echo_all () 3014{ 3015 $ECHO "" 3016} 3017 3018case "$ECHO" in 3019 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3020$as_echo "printf" >&6; } ;; 3021 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3022$as_echo "print -r" >&6; } ;; 3023 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3024$as_echo "cat" >&6; } ;; 3025esac 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040ac_ext=c 3041ac_cpp='$CPP $CPPFLAGS' 3042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3044ac_compiler_gnu=$ac_cv_c_compiler_gnu 3045if test -n "$ac_tool_prefix"; then 3046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3047set dummy ${ac_tool_prefix}gcc; ac_word=$2 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3049$as_echo_n "checking for $ac_word... " >&6; } 3050if ${ac_cv_prog_CC+:} false; then : 3051 $as_echo_n "(cached) " >&6 3052else 3053 if test -n "$CC"; then 3054 ac_cv_prog_CC="$CC" # Let the user override the test. 3055else 3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3057for as_dir in $PATH 3058do 3059 IFS=$as_save_IFS 3060 test -z "$as_dir" && as_dir=. 3061 for ac_exec_ext in '' $ac_executable_extensions; do 3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3063 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3065 break 2 3066 fi 3067done 3068 done 3069IFS=$as_save_IFS 3070 3071fi 3072fi 3073CC=$ac_cv_prog_CC 3074if test -n "$CC"; then 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3076$as_echo "$CC" >&6; } 3077else 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3079$as_echo "no" >&6; } 3080fi 3081 3082 3083fi 3084if test -z "$ac_cv_prog_CC"; then 3085 ac_ct_CC=$CC 3086 # Extract the first word of "gcc", so it can be a program name with args. 3087set dummy gcc; ac_word=$2 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3089$as_echo_n "checking for $ac_word... " >&6; } 3090if ${ac_cv_prog_ac_ct_CC+:} false; then : 3091 $as_echo_n "(cached) " >&6 3092else 3093 if test -n "$ac_ct_CC"; then 3094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3095else 3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3103 ac_cv_prog_ac_ct_CC="gcc" 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3105 break 2 3106 fi 3107done 3108 done 3109IFS=$as_save_IFS 3110 3111fi 3112fi 3113ac_ct_CC=$ac_cv_prog_ac_ct_CC 3114if test -n "$ac_ct_CC"; then 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3116$as_echo "$ac_ct_CC" >&6; } 3117else 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119$as_echo "no" >&6; } 3120fi 3121 3122 if test "x$ac_ct_CC" = x; then 3123 CC="" 3124 else 3125 case $cross_compiling:$ac_tool_warned in 3126yes:) 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3129ac_tool_warned=yes ;; 3130esac 3131 CC=$ac_ct_CC 3132 fi 3133else 3134 CC="$ac_cv_prog_CC" 3135fi 3136 3137if test -z "$CC"; then 3138 if test -n "$ac_tool_prefix"; then 3139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3140set dummy ${ac_tool_prefix}cc; ac_word=$2 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3142$as_echo_n "checking for $ac_word... " >&6; } 3143if ${ac_cv_prog_CC+:} false; then : 3144 $as_echo_n "(cached) " >&6 3145else 3146 if test -n "$CC"; then 3147 ac_cv_prog_CC="$CC" # Let the user override the test. 3148else 3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH 3151do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3156 ac_cv_prog_CC="${ac_tool_prefix}cc" 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160done 3161 done 3162IFS=$as_save_IFS 3163 3164fi 3165fi 3166CC=$ac_cv_prog_CC 3167if test -n "$CC"; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3169$as_echo "$CC" >&6; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172$as_echo "no" >&6; } 3173fi 3174 3175 3176 fi 3177fi 3178if test -z "$CC"; then 3179 # Extract the first word of "cc", so it can be a program name with args. 3180set dummy cc; ac_word=$2 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3182$as_echo_n "checking for $ac_word... " >&6; } 3183if ${ac_cv_prog_CC+:} false; then : 3184 $as_echo_n "(cached) " >&6 3185else 3186 if test -n "$CC"; then 3187 ac_cv_prog_CC="$CC" # Let the user override the test. 3188else 3189 ac_prog_rejected=no 3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3191for as_dir in $PATH 3192do 3193 IFS=$as_save_IFS 3194 test -z "$as_dir" && as_dir=. 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3198 ac_prog_rejected=yes 3199 continue 3200 fi 3201 ac_cv_prog_CC="cc" 3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3203 break 2 3204 fi 3205done 3206 done 3207IFS=$as_save_IFS 3208 3209if test $ac_prog_rejected = yes; then 3210 # We found a bogon in the path, so make sure we never use it. 3211 set dummy $ac_cv_prog_CC 3212 shift 3213 if test $# != 0; then 3214 # We chose a different compiler from the bogus one. 3215 # However, it has the same basename, so the bogon will be chosen 3216 # first if we set CC to just the basename; use the full file name. 3217 shift 3218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3219 fi 3220fi 3221fi 3222fi 3223CC=$ac_cv_prog_CC 3224if test -n "$CC"; then 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3226$as_echo "$CC" >&6; } 3227else 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3229$as_echo "no" >&6; } 3230fi 3231 3232 3233fi 3234if test -z "$CC"; then 3235 if test -n "$ac_tool_prefix"; then 3236 for ac_prog in cl.exe 3237 do 3238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3239set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3241$as_echo_n "checking for $ac_word... " >&6; } 3242if ${ac_cv_prog_CC+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 if test -n "$CC"; then 3246 ac_cv_prog_CC="$CC" # Let the user override the test. 3247else 3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3249for as_dir in $PATH 3250do 3251 IFS=$as_save_IFS 3252 test -z "$as_dir" && as_dir=. 3253 for ac_exec_ext in '' $ac_executable_extensions; do 3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3257 break 2 3258 fi 3259done 3260 done 3261IFS=$as_save_IFS 3262 3263fi 3264fi 3265CC=$ac_cv_prog_CC 3266if test -n "$CC"; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3268$as_echo "$CC" >&6; } 3269else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271$as_echo "no" >&6; } 3272fi 3273 3274 3275 test -n "$CC" && break 3276 done 3277fi 3278if test -z "$CC"; then 3279 ac_ct_CC=$CC 3280 for ac_prog in cl.exe 3281do 3282 # Extract the first word of "$ac_prog", so it can be a program name with args. 3283set dummy $ac_prog; ac_word=$2 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3285$as_echo_n "checking for $ac_word... " >&6; } 3286if ${ac_cv_prog_ac_ct_CC+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 if test -n "$ac_ct_CC"; then 3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3291else 3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3293for as_dir in $PATH 3294do 3295 IFS=$as_save_IFS 3296 test -z "$as_dir" && as_dir=. 3297 for ac_exec_ext in '' $ac_executable_extensions; do 3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3299 ac_cv_prog_ac_ct_CC="$ac_prog" 3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3301 break 2 3302 fi 3303done 3304 done 3305IFS=$as_save_IFS 3306 3307fi 3308fi 3309ac_ct_CC=$ac_cv_prog_ac_ct_CC 3310if test -n "$ac_ct_CC"; then 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3312$as_echo "$ac_ct_CC" >&6; } 3313else 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3315$as_echo "no" >&6; } 3316fi 3317 3318 3319 test -n "$ac_ct_CC" && break 3320done 3321 3322 if test "x$ac_ct_CC" = x; then 3323 CC="" 3324 else 3325 case $cross_compiling:$ac_tool_warned in 3326yes:) 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3329ac_tool_warned=yes ;; 3330esac 3331 CC=$ac_ct_CC 3332 fi 3333fi 3334 3335fi 3336 3337 3338test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3340as_fn_error $? "no acceptable C compiler found in \$PATH 3341See \`config.log' for more details" "$LINENO" 5; } 3342 3343# Provide some information about the compiler. 3344$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3345set X $ac_compile 3346ac_compiler=$2 3347for ac_option in --version -v -V -qversion; do 3348 { { ac_try="$ac_compiler $ac_option >&5" 3349case "(($ac_try" in 3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3351 *) ac_try_echo=$ac_try;; 3352esac 3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3354$as_echo "$ac_try_echo"; } >&5 3355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3356 ac_status=$? 3357 if test -s conftest.err; then 3358 sed '10a\ 3359... rest of stderr output deleted ... 3360 10q' conftest.err >conftest.er1 3361 cat conftest.er1 >&5 3362 fi 3363 rm -f conftest.er1 conftest.err 3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3365 test $ac_status = 0; } 3366done 3367 3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369/* end confdefs.h. */ 3370 3371int 3372main () 3373{ 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379ac_clean_files_save=$ac_clean_files 3380ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3381# Try to create an executable without -o first, disregard a.out. 3382# It will help us diagnose broken compilers, and finding out an intuition 3383# of exeext. 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3385$as_echo_n "checking whether the C compiler works... " >&6; } 3386ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3387 3388# The possible output files: 3389ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3390 3391ac_rmfiles= 3392for ac_file in $ac_files 3393do 3394 case $ac_file in 3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3396 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3397 esac 3398done 3399rm -f $ac_rmfiles 3400 3401if { { ac_try="$ac_link_default" 3402case "(($ac_try" in 3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3404 *) ac_try_echo=$ac_try;; 3405esac 3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3407$as_echo "$ac_try_echo"; } >&5 3408 (eval "$ac_link_default") 2>&5 3409 ac_status=$? 3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3411 test $ac_status = 0; }; then : 3412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3413# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3414# in a Makefile. We should not override ac_cv_exeext if it was cached, 3415# so that the user can short-circuit this test for compilers unknown to 3416# Autoconf. 3417for ac_file in $ac_files '' 3418do 3419 test -f "$ac_file" || continue 3420 case $ac_file in 3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3422 ;; 3423 [ab].out ) 3424 # We found the default executable, but exeext='' is most 3425 # certainly right. 3426 break;; 3427 *.* ) 3428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3429 then :; else 3430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3431 fi 3432 # We set ac_cv_exeext here because the later test for it is not 3433 # safe: cross compilers may not add the suffix if given an `-o' 3434 # argument, so we may need to know it at that point already. 3435 # Even if this section looks crufty: it has the advantage of 3436 # actually working. 3437 break;; 3438 * ) 3439 break;; 3440 esac 3441done 3442test "$ac_cv_exeext" = no && ac_cv_exeext= 3443 3444else 3445 ac_file='' 3446fi 3447if test -z "$ac_file"; then : 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3449$as_echo "no" >&6; } 3450$as_echo "$as_me: failed program was:" >&5 3451sed 's/^/| /' conftest.$ac_ext >&5 3452 3453{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455as_fn_error 77 "C compiler cannot create executables 3456See \`config.log' for more details" "$LINENO" 5; } 3457else 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3459$as_echo "yes" >&6; } 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3462$as_echo_n "checking for C compiler default output file name... " >&6; } 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3464$as_echo "$ac_file" >&6; } 3465ac_exeext=$ac_cv_exeext 3466 3467rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3468ac_clean_files=$ac_clean_files_save 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3470$as_echo_n "checking for suffix of executables... " >&6; } 3471if { { ac_try="$ac_link" 3472case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475esac 3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3477$as_echo "$ac_try_echo"; } >&5 3478 (eval "$ac_link") 2>&5 3479 ac_status=$? 3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3481 test $ac_status = 0; }; then : 3482 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3483# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3484# work properly (i.e., refer to `conftest.exe'), while it won't with 3485# `rm'. 3486for ac_file in conftest.exe conftest conftest.*; do 3487 test -f "$ac_file" || continue 3488 case $ac_file in 3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3491 break;; 3492 * ) break;; 3493 esac 3494done 3495else 3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3498as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3499See \`config.log' for more details" "$LINENO" 5; } 3500fi 3501rm -f conftest conftest$ac_cv_exeext 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3503$as_echo "$ac_cv_exeext" >&6; } 3504 3505rm -f conftest.$ac_ext 3506EXEEXT=$ac_cv_exeext 3507ac_exeext=$EXEEXT 3508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509/* end confdefs.h. */ 3510#include <stdio.h> 3511int 3512main () 3513{ 3514FILE *f = fopen ("conftest.out", "w"); 3515 return ferror (f) || fclose (f) != 0; 3516 3517 ; 3518 return 0; 3519} 3520_ACEOF 3521ac_clean_files="$ac_clean_files conftest.out" 3522# Check that the compiler produces executables we can run. If not, either 3523# the compiler is broken, or we cross compile. 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3525$as_echo_n "checking whether we are cross compiling... " >&6; } 3526if test "$cross_compiling" != yes; then 3527 { { ac_try="$ac_link" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_link") 2>&5 3535 ac_status=$? 3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3537 test $ac_status = 0; } 3538 if { ac_try='./conftest$ac_cv_exeext' 3539 { { case "(($ac_try" in 3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3541 *) ac_try_echo=$ac_try;; 3542esac 3543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3544$as_echo "$ac_try_echo"; } >&5 3545 (eval "$ac_try") 2>&5 3546 ac_status=$? 3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3548 test $ac_status = 0; }; }; then 3549 cross_compiling=no 3550 else 3551 if test "$cross_compiling" = maybe; then 3552 cross_compiling=yes 3553 else 3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3556as_fn_error $? "cannot run C compiled programs. 3557If you meant to cross compile, use \`--host'. 3558See \`config.log' for more details" "$LINENO" 5; } 3559 fi 3560 fi 3561fi 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3563$as_echo "$cross_compiling" >&6; } 3564 3565rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3566ac_clean_files=$ac_clean_files_save 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3568$as_echo_n "checking for suffix of object files... " >&6; } 3569if ${ac_cv_objext+:} false; then : 3570 $as_echo_n "(cached) " >&6 3571else 3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3573/* end confdefs.h. */ 3574 3575int 3576main () 3577{ 3578 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583rm -f conftest.o conftest.obj 3584if { { ac_try="$ac_compile" 3585case "(($ac_try" in 3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3587 *) ac_try_echo=$ac_try;; 3588esac 3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3590$as_echo "$ac_try_echo"; } >&5 3591 (eval "$ac_compile") 2>&5 3592 ac_status=$? 3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3594 test $ac_status = 0; }; then : 3595 for ac_file in conftest.o conftest.obj conftest.*; do 3596 test -f "$ac_file" || continue; 3597 case $ac_file in 3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3600 break;; 3601 esac 3602done 3603else 3604 $as_echo "$as_me: failed program was:" >&5 3605sed 's/^/| /' conftest.$ac_ext >&5 3606 3607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3609as_fn_error $? "cannot compute suffix of object files: cannot compile 3610See \`config.log' for more details" "$LINENO" 5; } 3611fi 3612rm -f conftest.$ac_cv_objext conftest.$ac_ext 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3615$as_echo "$ac_cv_objext" >&6; } 3616OBJEXT=$ac_cv_objext 3617ac_objext=$OBJEXT 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3619$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3620if ${ac_cv_c_compiler_gnu+:} false; then : 3621 $as_echo_n "(cached) " >&6 3622else 3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624/* end confdefs.h. */ 3625 3626int 3627main () 3628{ 3629#ifndef __GNUC__ 3630 choke me 3631#endif 3632 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637if ac_fn_c_try_compile "$LINENO"; then : 3638 ac_compiler_gnu=yes 3639else 3640 ac_compiler_gnu=no 3641fi 3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3643ac_cv_c_compiler_gnu=$ac_compiler_gnu 3644 3645fi 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3647$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3648if test $ac_compiler_gnu = yes; then 3649 GCC=yes 3650else 3651 GCC= 3652fi 3653ac_test_CFLAGS=${CFLAGS+set} 3654ac_save_CFLAGS=$CFLAGS 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3656$as_echo_n "checking whether $CC accepts -g... " >&6; } 3657if ${ac_cv_prog_cc_g+:} false; then : 3658 $as_echo_n "(cached) " >&6 3659else 3660 ac_save_c_werror_flag=$ac_c_werror_flag 3661 ac_c_werror_flag=yes 3662 ac_cv_prog_cc_g=no 3663 CFLAGS="-g" 3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3665/* end confdefs.h. */ 3666 3667int 3668main () 3669{ 3670 3671 ; 3672 return 0; 3673} 3674_ACEOF 3675if ac_fn_c_try_compile "$LINENO"; then : 3676 ac_cv_prog_cc_g=yes 3677else 3678 CFLAGS="" 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690if ac_fn_c_try_compile "$LINENO"; then : 3691 3692else 3693 ac_c_werror_flag=$ac_save_c_werror_flag 3694 CFLAGS="-g" 3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696/* end confdefs.h. */ 3697 3698int 3699main () 3700{ 3701 3702 ; 3703 return 0; 3704} 3705_ACEOF 3706if ac_fn_c_try_compile "$LINENO"; then : 3707 ac_cv_prog_cc_g=yes 3708fi 3709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3710fi 3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3712fi 3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3714 ac_c_werror_flag=$ac_save_c_werror_flag 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3717$as_echo "$ac_cv_prog_cc_g" >&6; } 3718if test "$ac_test_CFLAGS" = set; then 3719 CFLAGS=$ac_save_CFLAGS 3720elif test $ac_cv_prog_cc_g = yes; then 3721 if test "$GCC" = yes; then 3722 CFLAGS="-g -O2" 3723 else 3724 CFLAGS="-g" 3725 fi 3726else 3727 if test "$GCC" = yes; then 3728 CFLAGS="-O2" 3729 else 3730 CFLAGS= 3731 fi 3732fi 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3734$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3735if ${ac_cv_prog_cc_c89+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 ac_cv_prog_cc_c89=no 3739ac_save_CC=$CC 3740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742#include <stdarg.h> 3743#include <stdio.h> 3744struct stat; 3745/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3746struct buf { int x; }; 3747FILE * (*rcsopen) (struct buf *, struct stat *, int); 3748static char *e (p, i) 3749 char **p; 3750 int i; 3751{ 3752 return p[i]; 3753} 3754static char *f (char * (*g) (char **, int), char **p, ...) 3755{ 3756 char *s; 3757 va_list v; 3758 va_start (v,p); 3759 s = g (p, va_arg (v,int)); 3760 va_end (v); 3761 return s; 3762} 3763 3764/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3765 function prototypes and stuff, but not '\xHH' hex character constants. 3766 These don't provoke an error unfortunately, instead are silently treated 3767 as 'x'. The following induces an error, until -std is added to get 3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3769 array size at least. It's necessary to write '\x00'==0 to get something 3770 that's true only with -std. */ 3771int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3772 3773/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3774 inside strings and character constants. */ 3775#define FOO(x) 'x' 3776int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3777 3778int test (int i, double x); 3779struct s1 {int (*f) (int a);}; 3780struct s2 {int (*f) (double a);}; 3781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3782int argc; 3783char **argv; 3784int 3785main () 3786{ 3787return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3794do 3795 CC="$ac_save_CC $ac_arg" 3796 if ac_fn_c_try_compile "$LINENO"; then : 3797 ac_cv_prog_cc_c89=$ac_arg 3798fi 3799rm -f core conftest.err conftest.$ac_objext 3800 test "x$ac_cv_prog_cc_c89" != "xno" && break 3801done 3802rm -f conftest.$ac_ext 3803CC=$ac_save_CC 3804 3805fi 3806# AC_CACHE_VAL 3807case "x$ac_cv_prog_cc_c89" in 3808 x) 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3810$as_echo "none needed" >&6; } ;; 3811 xno) 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3813$as_echo "unsupported" >&6; } ;; 3814 *) 3815 CC="$CC $ac_cv_prog_cc_c89" 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3817$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3818esac 3819if test "x$ac_cv_prog_cc_c89" != xno; then : 3820 3821fi 3822 3823ac_ext=c 3824ac_cpp='$CPP $CPPFLAGS' 3825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3827ac_compiler_gnu=$ac_cv_c_compiler_gnu 3828 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3830$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3831if ${ac_cv_path_SED+:} false; then : 3832 $as_echo_n "(cached) " >&6 3833else 3834 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3835 for ac_i in 1 2 3 4 5 6 7; do 3836 ac_script="$ac_script$as_nl$ac_script" 3837 done 3838 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3839 { ac_script=; unset ac_script;} 3840 if test -z "$SED"; then 3841 ac_path_SED_found=false 3842 # Loop through the user's path and test for each of PROGNAME-LIST 3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3844for as_dir in $PATH 3845do 3846 IFS=$as_save_IFS 3847 test -z "$as_dir" && as_dir=. 3848 for ac_prog in sed gsed; do 3849 for ac_exec_ext in '' $ac_executable_extensions; do 3850 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3851 as_fn_executable_p "$ac_path_SED" || continue 3852# Check for GNU ac_path_SED and select it if it is found. 3853 # Check for GNU $ac_path_SED 3854case `"$ac_path_SED" --version 2>&1` in 3855*GNU*) 3856 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3857*) 3858 ac_count=0 3859 $as_echo_n 0123456789 >"conftest.in" 3860 while : 3861 do 3862 cat "conftest.in" "conftest.in" >"conftest.tmp" 3863 mv "conftest.tmp" "conftest.in" 3864 cp "conftest.in" "conftest.nl" 3865 $as_echo '' >> "conftest.nl" 3866 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3868 as_fn_arith $ac_count + 1 && ac_count=$as_val 3869 if test $ac_count -gt ${ac_path_SED_max-0}; then 3870 # Best one so far, save it but keep looking for a better one 3871 ac_cv_path_SED="$ac_path_SED" 3872 ac_path_SED_max=$ac_count 3873 fi 3874 # 10*(2^10) chars as input seems more than enough 3875 test $ac_count -gt 10 && break 3876 done 3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3878esac 3879 3880 $ac_path_SED_found && break 3 3881 done 3882 done 3883 done 3884IFS=$as_save_IFS 3885 if test -z "$ac_cv_path_SED"; then 3886 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3887 fi 3888else 3889 ac_cv_path_SED=$SED 3890fi 3891 3892fi 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3894$as_echo "$ac_cv_path_SED" >&6; } 3895 SED="$ac_cv_path_SED" 3896 rm -f conftest.sed 3897 3898test -z "$SED" && SED=sed 3899Xsed="$SED -e 1s/^X//" 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3912$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3913if ${ac_cv_path_GREP+:} false; then : 3914 $as_echo_n "(cached) " >&6 3915else 3916 if test -z "$GREP"; then 3917 ac_path_GREP_found=false 3918 # Loop through the user's path and test for each of PROGNAME-LIST 3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3921do 3922 IFS=$as_save_IFS 3923 test -z "$as_dir" && as_dir=. 3924 for ac_prog in grep ggrep; do 3925 for ac_exec_ext in '' $ac_executable_extensions; do 3926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3927 as_fn_executable_p "$ac_path_GREP" || continue 3928# Check for GNU ac_path_GREP and select it if it is found. 3929 # Check for GNU $ac_path_GREP 3930case `"$ac_path_GREP" --version 2>&1` in 3931*GNU*) 3932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3933*) 3934 ac_count=0 3935 $as_echo_n 0123456789 >"conftest.in" 3936 while : 3937 do 3938 cat "conftest.in" "conftest.in" >"conftest.tmp" 3939 mv "conftest.tmp" "conftest.in" 3940 cp "conftest.in" "conftest.nl" 3941 $as_echo 'GREP' >> "conftest.nl" 3942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3944 as_fn_arith $ac_count + 1 && ac_count=$as_val 3945 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3946 # Best one so far, save it but keep looking for a better one 3947 ac_cv_path_GREP="$ac_path_GREP" 3948 ac_path_GREP_max=$ac_count 3949 fi 3950 # 10*(2^10) chars as input seems more than enough 3951 test $ac_count -gt 10 && break 3952 done 3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3954esac 3955 3956 $ac_path_GREP_found && break 3 3957 done 3958 done 3959 done 3960IFS=$as_save_IFS 3961 if test -z "$ac_cv_path_GREP"; then 3962 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3963 fi 3964else 3965 ac_cv_path_GREP=$GREP 3966fi 3967 3968fi 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3970$as_echo "$ac_cv_path_GREP" >&6; } 3971 GREP="$ac_cv_path_GREP" 3972 3973 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3975$as_echo_n "checking for egrep... " >&6; } 3976if ${ac_cv_path_EGREP+:} false; then : 3977 $as_echo_n "(cached) " >&6 3978else 3979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3980 then ac_cv_path_EGREP="$GREP -E" 3981 else 3982 if test -z "$EGREP"; then 3983 ac_path_EGREP_found=false 3984 # Loop through the user's path and test for each of PROGNAME-LIST 3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3987do 3988 IFS=$as_save_IFS 3989 test -z "$as_dir" && as_dir=. 3990 for ac_prog in egrep; do 3991 for ac_exec_ext in '' $ac_executable_extensions; do 3992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3993 as_fn_executable_p "$ac_path_EGREP" || continue 3994# Check for GNU ac_path_EGREP and select it if it is found. 3995 # Check for GNU $ac_path_EGREP 3996case `"$ac_path_EGREP" --version 2>&1` in 3997*GNU*) 3998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3999*) 4000 ac_count=0 4001 $as_echo_n 0123456789 >"conftest.in" 4002 while : 4003 do 4004 cat "conftest.in" "conftest.in" >"conftest.tmp" 4005 mv "conftest.tmp" "conftest.in" 4006 cp "conftest.in" "conftest.nl" 4007 $as_echo 'EGREP' >> "conftest.nl" 4008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4010 as_fn_arith $ac_count + 1 && ac_count=$as_val 4011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4012 # Best one so far, save it but keep looking for a better one 4013 ac_cv_path_EGREP="$ac_path_EGREP" 4014 ac_path_EGREP_max=$ac_count 4015 fi 4016 # 10*(2^10) chars as input seems more than enough 4017 test $ac_count -gt 10 && break 4018 done 4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4020esac 4021 4022 $ac_path_EGREP_found && break 3 4023 done 4024 done 4025 done 4026IFS=$as_save_IFS 4027 if test -z "$ac_cv_path_EGREP"; then 4028 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4029 fi 4030else 4031 ac_cv_path_EGREP=$EGREP 4032fi 4033 4034 fi 4035fi 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4037$as_echo "$ac_cv_path_EGREP" >&6; } 4038 EGREP="$ac_cv_path_EGREP" 4039 4040 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4042$as_echo_n "checking for fgrep... " >&6; } 4043if ${ac_cv_path_FGREP+:} false; then : 4044 $as_echo_n "(cached) " >&6 4045else 4046 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4047 then ac_cv_path_FGREP="$GREP -F" 4048 else 4049 if test -z "$FGREP"; then 4050 ac_path_FGREP_found=false 4051 # Loop through the user's path and test for each of PROGNAME-LIST 4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4054do 4055 IFS=$as_save_IFS 4056 test -z "$as_dir" && as_dir=. 4057 for ac_prog in fgrep; do 4058 for ac_exec_ext in '' $ac_executable_extensions; do 4059 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4060 as_fn_executable_p "$ac_path_FGREP" || continue 4061# Check for GNU ac_path_FGREP and select it if it is found. 4062 # Check for GNU $ac_path_FGREP 4063case `"$ac_path_FGREP" --version 2>&1` in 4064*GNU*) 4065 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4066*) 4067 ac_count=0 4068 $as_echo_n 0123456789 >"conftest.in" 4069 while : 4070 do 4071 cat "conftest.in" "conftest.in" >"conftest.tmp" 4072 mv "conftest.tmp" "conftest.in" 4073 cp "conftest.in" "conftest.nl" 4074 $as_echo 'FGREP' >> "conftest.nl" 4075 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4077 as_fn_arith $ac_count + 1 && ac_count=$as_val 4078 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4079 # Best one so far, save it but keep looking for a better one 4080 ac_cv_path_FGREP="$ac_path_FGREP" 4081 ac_path_FGREP_max=$ac_count 4082 fi 4083 # 10*(2^10) chars as input seems more than enough 4084 test $ac_count -gt 10 && break 4085 done 4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4087esac 4088 4089 $ac_path_FGREP_found && break 3 4090 done 4091 done 4092 done 4093IFS=$as_save_IFS 4094 if test -z "$ac_cv_path_FGREP"; then 4095 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4096 fi 4097else 4098 ac_cv_path_FGREP=$FGREP 4099fi 4100 4101 fi 4102fi 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4104$as_echo "$ac_cv_path_FGREP" >&6; } 4105 FGREP="$ac_cv_path_FGREP" 4106 4107 4108test -z "$GREP" && GREP=grep 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128# Check whether --with-gnu-ld was given. 4129if test "${with_gnu_ld+set}" = set; then : 4130 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4131else 4132 with_gnu_ld=no 4133fi 4134 4135ac_prog=ld 4136if test "$GCC" = yes; then 4137 # Check if gcc -print-prog-name=ld gives a path. 4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4139$as_echo_n "checking for ld used by $CC... " >&6; } 4140 case $host in 4141 *-*-mingw*) 4142 # gcc leaves a trailing carriage return which upsets mingw 4143 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4144 *) 4145 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4146 esac 4147 case $ac_prog in 4148 # Accept absolute paths. 4149 [\\/]* | ?:[\\/]*) 4150 re_direlt='/[^/][^/]*/\.\./' 4151 # Canonicalize the pathname of ld 4152 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4153 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4154 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4155 done 4156 test -z "$LD" && LD="$ac_prog" 4157 ;; 4158 "") 4159 # If it fails, then pretend we aren't using GCC. 4160 ac_prog=ld 4161 ;; 4162 *) 4163 # If it is relative, then search for the first ld in PATH. 4164 with_gnu_ld=unknown 4165 ;; 4166 esac 4167elif test "$with_gnu_ld" = yes; then 4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4169$as_echo_n "checking for GNU ld... " >&6; } 4170else 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4172$as_echo_n "checking for non-GNU ld... " >&6; } 4173fi 4174if ${lt_cv_path_LD+:} false; then : 4175 $as_echo_n "(cached) " >&6 4176else 4177 if test -z "$LD"; then 4178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4179 for ac_dir in $PATH; do 4180 IFS="$lt_save_ifs" 4181 test -z "$ac_dir" && ac_dir=. 4182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4183 lt_cv_path_LD="$ac_dir/$ac_prog" 4184 # Check to see if the program is GNU ld. I'd rather use --version, 4185 # but apparently some variants of GNU ld only accept -v. 4186 # Break only if it was the GNU/non-GNU ld that we prefer. 4187 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4188 *GNU* | *'with BFD'*) 4189 test "$with_gnu_ld" != no && break 4190 ;; 4191 *) 4192 test "$with_gnu_ld" != yes && break 4193 ;; 4194 esac 4195 fi 4196 done 4197 IFS="$lt_save_ifs" 4198else 4199 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4200fi 4201fi 4202 4203LD="$lt_cv_path_LD" 4204if test -n "$LD"; then 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4206$as_echo "$LD" >&6; } 4207else 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4209$as_echo "no" >&6; } 4210fi 4211test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4213$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4214if ${lt_cv_prog_gnu_ld+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4218case `$LD -v 2>&1 </dev/null` in 4219*GNU* | *'with BFD'*) 4220 lt_cv_prog_gnu_ld=yes 4221 ;; 4222*) 4223 lt_cv_prog_gnu_ld=no 4224 ;; 4225esac 4226fi 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4228$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4229with_gnu_ld=$lt_cv_prog_gnu_ld 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4240$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4241if ${lt_cv_path_NM+:} false; then : 4242 $as_echo_n "(cached) " >&6 4243else 4244 if test -n "$NM"; then 4245 # Let the user override the test. 4246 lt_cv_path_NM="$NM" 4247else 4248 lt_nm_to_check="${ac_tool_prefix}nm" 4249 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4250 lt_nm_to_check="$lt_nm_to_check nm" 4251 fi 4252 for lt_tmp_nm in $lt_nm_to_check; do 4253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4254 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4255 IFS="$lt_save_ifs" 4256 test -z "$ac_dir" && ac_dir=. 4257 tmp_nm="$ac_dir/$lt_tmp_nm" 4258 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4259 # Check to see if the nm accepts a BSD-compat flag. 4260 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4261 # nm: unknown option "B" ignored 4262 # Tru64's nm complains that /dev/null is an invalid object file 4263 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4264 */dev/null* | *'Invalid file or object type'*) 4265 lt_cv_path_NM="$tmp_nm -B" 4266 break 4267 ;; 4268 *) 4269 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4270 */dev/null*) 4271 lt_cv_path_NM="$tmp_nm -p" 4272 break 4273 ;; 4274 *) 4275 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4276 continue # so that we can try to find one that supports BSD flags 4277 ;; 4278 esac 4279 ;; 4280 esac 4281 fi 4282 done 4283 IFS="$lt_save_ifs" 4284 done 4285 : ${lt_cv_path_NM=no} 4286fi 4287fi 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4289$as_echo "$lt_cv_path_NM" >&6; } 4290if test "$lt_cv_path_NM" != "no"; then 4291 NM="$lt_cv_path_NM" 4292else 4293 # Didn't find any BSD compatible name lister, look for dumpbin. 4294 if test -n "$DUMPBIN"; then : 4295 # Let the user override the test. 4296 else 4297 if test -n "$ac_tool_prefix"; then 4298 for ac_prog in dumpbin "link -dump" 4299 do 4300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4301set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4303$as_echo_n "checking for $ac_word... " >&6; } 4304if ${ac_cv_prog_DUMPBIN+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 if test -n "$DUMPBIN"; then 4308 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4309else 4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4311for as_dir in $PATH 4312do 4313 IFS=$as_save_IFS 4314 test -z "$as_dir" && as_dir=. 4315 for ac_exec_ext in '' $ac_executable_extensions; do 4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4317 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4319 break 2 4320 fi 4321done 4322 done 4323IFS=$as_save_IFS 4324 4325fi 4326fi 4327DUMPBIN=$ac_cv_prog_DUMPBIN 4328if test -n "$DUMPBIN"; then 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4330$as_echo "$DUMPBIN" >&6; } 4331else 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4333$as_echo "no" >&6; } 4334fi 4335 4336 4337 test -n "$DUMPBIN" && break 4338 done 4339fi 4340if test -z "$DUMPBIN"; then 4341 ac_ct_DUMPBIN=$DUMPBIN 4342 for ac_prog in dumpbin "link -dump" 4343do 4344 # Extract the first word of "$ac_prog", so it can be a program name with args. 4345set dummy $ac_prog; ac_word=$2 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4347$as_echo_n "checking for $ac_word... " >&6; } 4348if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4349 $as_echo_n "(cached) " >&6 4350else 4351 if test -n "$ac_ct_DUMPBIN"; then 4352 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4353else 4354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4355for as_dir in $PATH 4356do 4357 IFS=$as_save_IFS 4358 test -z "$as_dir" && as_dir=. 4359 for ac_exec_ext in '' $ac_executable_extensions; do 4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4361 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4363 break 2 4364 fi 4365done 4366 done 4367IFS=$as_save_IFS 4368 4369fi 4370fi 4371ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4372if test -n "$ac_ct_DUMPBIN"; then 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4374$as_echo "$ac_ct_DUMPBIN" >&6; } 4375else 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4377$as_echo "no" >&6; } 4378fi 4379 4380 4381 test -n "$ac_ct_DUMPBIN" && break 4382done 4383 4384 if test "x$ac_ct_DUMPBIN" = x; then 4385 DUMPBIN=":" 4386 else 4387 case $cross_compiling:$ac_tool_warned in 4388yes:) 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4391ac_tool_warned=yes ;; 4392esac 4393 DUMPBIN=$ac_ct_DUMPBIN 4394 fi 4395fi 4396 4397 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4398 *COFF*) 4399 DUMPBIN="$DUMPBIN -symbols" 4400 ;; 4401 *) 4402 DUMPBIN=: 4403 ;; 4404 esac 4405 fi 4406 4407 if test "$DUMPBIN" != ":"; then 4408 NM="$DUMPBIN" 4409 fi 4410fi 4411test -z "$NM" && NM=nm 4412 4413 4414 4415 4416 4417 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4419$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4420if ${lt_cv_nm_interface+:} false; then : 4421 $as_echo_n "(cached) " >&6 4422else 4423 lt_cv_nm_interface="BSD nm" 4424 echo "int some_variable = 0;" > conftest.$ac_ext 4425 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4426 (eval "$ac_compile" 2>conftest.err) 4427 cat conftest.err >&5 4428 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4429 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4430 cat conftest.err >&5 4431 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4432 cat conftest.out >&5 4433 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4434 lt_cv_nm_interface="MS dumpbin" 4435 fi 4436 rm -f conftest* 4437fi 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4439$as_echo "$lt_cv_nm_interface" >&6; } 4440 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4442$as_echo_n "checking whether ln -s works... " >&6; } 4443LN_S=$as_ln_s 4444if test "$LN_S" = "ln -s"; then 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4446$as_echo "yes" >&6; } 4447else 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4449$as_echo "no, using $LN_S" >&6; } 4450fi 4451 4452# find the maximum length of command line arguments 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4454$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4455if ${lt_cv_sys_max_cmd_len+:} false; then : 4456 $as_echo_n "(cached) " >&6 4457else 4458 i=0 4459 teststring="ABCD" 4460 4461 case $build_os in 4462 msdosdjgpp*) 4463 # On DJGPP, this test can blow up pretty badly due to problems in libc 4464 # (any single argument exceeding 2000 bytes causes a buffer overrun 4465 # during glob expansion). Even if it were fixed, the result of this 4466 # check would be larger than it should be. 4467 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4468 ;; 4469 4470 gnu*) 4471 # Under GNU Hurd, this test is not required because there is 4472 # no limit to the length of command line arguments. 4473 # Libtool will interpret -1 as no limit whatsoever 4474 lt_cv_sys_max_cmd_len=-1; 4475 ;; 4476 4477 cygwin* | mingw* | cegcc*) 4478 # On Win9x/ME, this test blows up -- it succeeds, but takes 4479 # about 5 minutes as the teststring grows exponentially. 4480 # Worse, since 9x/ME are not pre-emptively multitasking, 4481 # you end up with a "frozen" computer, even though with patience 4482 # the test eventually succeeds (with a max line length of 256k). 4483 # Instead, let's just punt: use the minimum linelength reported by 4484 # all of the supported platforms: 8192 (on NT/2K/XP). 4485 lt_cv_sys_max_cmd_len=8192; 4486 ;; 4487 4488 mint*) 4489 # On MiNT this can take a long time and run out of memory. 4490 lt_cv_sys_max_cmd_len=8192; 4491 ;; 4492 4493 amigaos*) 4494 # On AmigaOS with pdksh, this test takes hours, literally. 4495 # So we just punt and use a minimum line length of 8192. 4496 lt_cv_sys_max_cmd_len=8192; 4497 ;; 4498 4499 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4500 # This has been around since 386BSD, at least. Likely further. 4501 if test -x /sbin/sysctl; then 4502 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4503 elif test -x /usr/sbin/sysctl; then 4504 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4505 else 4506 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4507 fi 4508 # And add a safety zone 4509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4511 ;; 4512 4513 interix*) 4514 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4515 lt_cv_sys_max_cmd_len=196608 4516 ;; 4517 4518 os2*) 4519 # The test takes a long time on OS/2. 4520 lt_cv_sys_max_cmd_len=8192 4521 ;; 4522 4523 osf*) 4524 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4525 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4526 # nice to cause kernel panics so lets avoid the loop below. 4527 # First set a reasonable default. 4528 lt_cv_sys_max_cmd_len=16384 4529 # 4530 if test -x /sbin/sysconfig; then 4531 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4532 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4533 esac 4534 fi 4535 ;; 4536 sco3.2v5*) 4537 lt_cv_sys_max_cmd_len=102400 4538 ;; 4539 sysv5* | sco5v6* | sysv4.2uw2*) 4540 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4541 if test -n "$kargmax"; then 4542 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4543 else 4544 lt_cv_sys_max_cmd_len=32768 4545 fi 4546 ;; 4547 *) 4548 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4549 if test -n "$lt_cv_sys_max_cmd_len"; then 4550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4552 else 4553 # Make teststring a little bigger before we do anything with it. 4554 # a 1K string should be a reasonable start. 4555 for i in 1 2 3 4 5 6 7 8 ; do 4556 teststring=$teststring$teststring 4557 done 4558 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4559 # If test is not a shell built-in, we'll probably end up computing a 4560 # maximum length that is only half of the actual maximum length, but 4561 # we can't tell. 4562 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4563 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4564 test $i != 17 # 1/2 MB should be enough 4565 do 4566 i=`expr $i + 1` 4567 teststring=$teststring$teststring 4568 done 4569 # Only check the string length outside the loop. 4570 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4571 teststring= 4572 # Add a significant safety factor because C++ compilers can tack on 4573 # massive amounts of additional arguments before passing them to the 4574 # linker. It appears as though 1/2 is a usable value. 4575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4576 fi 4577 ;; 4578 esac 4579 4580fi 4581 4582if test -n $lt_cv_sys_max_cmd_len ; then 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4584$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4585else 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4587$as_echo "none" >&6; } 4588fi 4589max_cmd_len=$lt_cv_sys_max_cmd_len 4590 4591 4592 4593 4594 4595 4596: ${CP="cp -f"} 4597: ${MV="mv -f"} 4598: ${RM="rm -f"} 4599 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4601$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4602# Try some XSI features 4603xsi_shell=no 4604( _lt_dummy="a/b/c" 4605 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4606 = c,a/b,b/c, \ 4607 && eval 'test $(( 1 + 1 )) -eq 2 \ 4608 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4609 && xsi_shell=yes 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4611$as_echo "$xsi_shell" >&6; } 4612 4613 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4615$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4616lt_shell_append=no 4617( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4618 >/dev/null 2>&1 \ 4619 && lt_shell_append=yes 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4621$as_echo "$lt_shell_append" >&6; } 4622 4623 4624if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4625 lt_unset=unset 4626else 4627 lt_unset=false 4628fi 4629 4630 4631 4632 4633 4634# test EBCDIC or ASCII 4635case `echo X|tr X '\101'` in 4636 A) # ASCII based system 4637 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4638 lt_SP2NL='tr \040 \012' 4639 lt_NL2SP='tr \015\012 \040\040' 4640 ;; 4641 *) # EBCDIC based system 4642 lt_SP2NL='tr \100 \n' 4643 lt_NL2SP='tr \r\n \100\100' 4644 ;; 4645esac 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4656$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4657if ${lt_cv_to_host_file_cmd+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 case $host in 4661 *-*-mingw* ) 4662 case $build in 4663 *-*-mingw* ) # actually msys 4664 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4665 ;; 4666 *-*-cygwin* ) 4667 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4668 ;; 4669 * ) # otherwise, assume *nix 4670 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4671 ;; 4672 esac 4673 ;; 4674 *-*-cygwin* ) 4675 case $build in 4676 *-*-mingw* ) # actually msys 4677 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4678 ;; 4679 *-*-cygwin* ) 4680 lt_cv_to_host_file_cmd=func_convert_file_noop 4681 ;; 4682 * ) # otherwise, assume *nix 4683 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4684 ;; 4685 esac 4686 ;; 4687 * ) # unhandled hosts (and "normal" native builds) 4688 lt_cv_to_host_file_cmd=func_convert_file_noop 4689 ;; 4690esac 4691 4692fi 4693 4694to_host_file_cmd=$lt_cv_to_host_file_cmd 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4696$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4697 4698 4699 4700 4701 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4703$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4704if ${lt_cv_to_tool_file_cmd+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706else 4707 #assume ordinary cross tools, or native build. 4708lt_cv_to_tool_file_cmd=func_convert_file_noop 4709case $host in 4710 *-*-mingw* ) 4711 case $build in 4712 *-*-mingw* ) # actually msys 4713 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4714 ;; 4715 esac 4716 ;; 4717esac 4718 4719fi 4720 4721to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4723$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4724 4725 4726 4727 4728 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4730$as_echo_n "checking for $LD option to reload object files... " >&6; } 4731if ${lt_cv_ld_reload_flag+:} false; then : 4732 $as_echo_n "(cached) " >&6 4733else 4734 lt_cv_ld_reload_flag='-r' 4735fi 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4737$as_echo "$lt_cv_ld_reload_flag" >&6; } 4738reload_flag=$lt_cv_ld_reload_flag 4739case $reload_flag in 4740"" | " "*) ;; 4741*) reload_flag=" $reload_flag" ;; 4742esac 4743reload_cmds='$LD$reload_flag -o $output$reload_objs' 4744case $host_os in 4745 cygwin* | mingw* | pw32* | cegcc*) 4746 if test "$GCC" != yes; then 4747 reload_cmds=false 4748 fi 4749 ;; 4750 darwin*) 4751 if test "$GCC" = yes; then 4752 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4753 else 4754 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4755 fi 4756 ;; 4757esac 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767if test -n "$ac_tool_prefix"; then 4768 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4769set dummy ${ac_tool_prefix}objdump; ac_word=$2 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4771$as_echo_n "checking for $ac_word... " >&6; } 4772if ${ac_cv_prog_OBJDUMP+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 if test -n "$OBJDUMP"; then 4776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4777else 4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4779for as_dir in $PATH 4780do 4781 IFS=$as_save_IFS 4782 test -z "$as_dir" && as_dir=. 4783 for ac_exec_ext in '' $ac_executable_extensions; do 4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4785 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4787 break 2 4788 fi 4789done 4790 done 4791IFS=$as_save_IFS 4792 4793fi 4794fi 4795OBJDUMP=$ac_cv_prog_OBJDUMP 4796if test -n "$OBJDUMP"; then 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4798$as_echo "$OBJDUMP" >&6; } 4799else 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4801$as_echo "no" >&6; } 4802fi 4803 4804 4805fi 4806if test -z "$ac_cv_prog_OBJDUMP"; then 4807 ac_ct_OBJDUMP=$OBJDUMP 4808 # Extract the first word of "objdump", so it can be a program name with args. 4809set dummy objdump; ac_word=$2 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4811$as_echo_n "checking for $ac_word... " >&6; } 4812if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 if test -n "$ac_ct_OBJDUMP"; then 4816 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4817else 4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4819for as_dir in $PATH 4820do 4821 IFS=$as_save_IFS 4822 test -z "$as_dir" && as_dir=. 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4825 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4827 break 2 4828 fi 4829done 4830 done 4831IFS=$as_save_IFS 4832 4833fi 4834fi 4835ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4836if test -n "$ac_ct_OBJDUMP"; then 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4838$as_echo "$ac_ct_OBJDUMP" >&6; } 4839else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841$as_echo "no" >&6; } 4842fi 4843 4844 if test "x$ac_ct_OBJDUMP" = x; then 4845 OBJDUMP="false" 4846 else 4847 case $cross_compiling:$ac_tool_warned in 4848yes:) 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4851ac_tool_warned=yes ;; 4852esac 4853 OBJDUMP=$ac_ct_OBJDUMP 4854 fi 4855else 4856 OBJDUMP="$ac_cv_prog_OBJDUMP" 4857fi 4858 4859test -z "$OBJDUMP" && OBJDUMP=objdump 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4870$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4871if ${lt_cv_deplibs_check_method+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 lt_cv_file_magic_cmd='$MAGIC_CMD' 4875lt_cv_file_magic_test_file= 4876lt_cv_deplibs_check_method='unknown' 4877# Need to set the preceding variable on all platforms that support 4878# interlibrary dependencies. 4879# 'none' -- dependencies not supported. 4880# `unknown' -- same as none, but documents that we really don't know. 4881# 'pass_all' -- all dependencies passed with no checks. 4882# 'test_compile' -- check by making test program. 4883# 'file_magic [[regex]]' -- check by looking for files in library path 4884# which responds to the $file_magic_cmd with a given extended regex. 4885# If you have `file' or equivalent on your system and you're not sure 4886# whether `pass_all' will *always* work, you probably want this one. 4887 4888case $host_os in 4889aix[4-9]*) 4890 lt_cv_deplibs_check_method=pass_all 4891 ;; 4892 4893beos*) 4894 lt_cv_deplibs_check_method=pass_all 4895 ;; 4896 4897bsdi[45]*) 4898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4899 lt_cv_file_magic_cmd='/usr/bin/file -L' 4900 lt_cv_file_magic_test_file=/shlib/libc.so 4901 ;; 4902 4903cygwin*) 4904 # func_win32_libid is a shell function defined in ltmain.sh 4905 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4906 lt_cv_file_magic_cmd='func_win32_libid' 4907 ;; 4908 4909mingw* | pw32*) 4910 # Base MSYS/MinGW do not provide the 'file' command needed by 4911 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4912 # unless we find 'file', for example because we are cross-compiling. 4913 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4914 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4916 lt_cv_file_magic_cmd='func_win32_libid' 4917 else 4918 # Keep this pattern in sync with the one in func_win32_libid. 4919 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4920 lt_cv_file_magic_cmd='$OBJDUMP -f' 4921 fi 4922 ;; 4923 4924cegcc*) 4925 # use the weaker test based on 'objdump'. See mingw*. 4926 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4927 lt_cv_file_magic_cmd='$OBJDUMP -f' 4928 ;; 4929 4930darwin* | rhapsody*) 4931 lt_cv_deplibs_check_method=pass_all 4932 ;; 4933 4934freebsd* | dragonfly*) 4935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4936 case $host_cpu in 4937 i*86 ) 4938 # Not sure whether the presence of OpenBSD here was a mistake. 4939 # Let's accept both of them until this is cleared up. 4940 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4941 lt_cv_file_magic_cmd=/usr/bin/file 4942 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4943 ;; 4944 esac 4945 else 4946 lt_cv_deplibs_check_method=pass_all 4947 fi 4948 ;; 4949 4950gnu*) 4951 lt_cv_deplibs_check_method=pass_all 4952 ;; 4953 4954haiku*) 4955 lt_cv_deplibs_check_method=pass_all 4956 ;; 4957 4958hpux10.20* | hpux11*) 4959 lt_cv_file_magic_cmd=/usr/bin/file 4960 case $host_cpu in 4961 ia64*) 4962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4964 ;; 4965 hppa*64*) 4966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 4967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4968 ;; 4969 *) 4970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4971 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4972 ;; 4973 esac 4974 ;; 4975 4976interix[3-9]*) 4977 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4979 ;; 4980 4981irix5* | irix6* | nonstopux*) 4982 case $LD in 4983 *-32|*"-32 ") libmagic=32-bit;; 4984 *-n32|*"-n32 ") libmagic=N32;; 4985 *-64|*"-64 ") libmagic=64-bit;; 4986 *) libmagic=never-match;; 4987 esac 4988 lt_cv_deplibs_check_method=pass_all 4989 ;; 4990 4991# This must be glibc/ELF. 4992linux* | k*bsd*-gnu | kopensolaris*-gnu) 4993 lt_cv_deplibs_check_method=pass_all 4994 ;; 4995 4996netbsd*) 4997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4999 else 5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5001 fi 5002 ;; 5003 5004newos6*) 5005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5006 lt_cv_file_magic_cmd=/usr/bin/file 5007 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5008 ;; 5009 5010*nto* | *qnx*) 5011 lt_cv_deplibs_check_method=pass_all 5012 ;; 5013 5014openbsd*) 5015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5017 else 5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5019 fi 5020 ;; 5021 5022osf3* | osf4* | osf5*) 5023 lt_cv_deplibs_check_method=pass_all 5024 ;; 5025 5026rdos*) 5027 lt_cv_deplibs_check_method=pass_all 5028 ;; 5029 5030solaris*) 5031 lt_cv_deplibs_check_method=pass_all 5032 ;; 5033 5034sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5035 lt_cv_deplibs_check_method=pass_all 5036 ;; 5037 5038sysv4 | sysv4.3*) 5039 case $host_vendor in 5040 motorola) 5041 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]' 5042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5043 ;; 5044 ncr) 5045 lt_cv_deplibs_check_method=pass_all 5046 ;; 5047 sequent) 5048 lt_cv_file_magic_cmd='/bin/file' 5049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5050 ;; 5051 sni) 5052 lt_cv_file_magic_cmd='/bin/file' 5053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5054 lt_cv_file_magic_test_file=/lib/libc.so 5055 ;; 5056 siemens) 5057 lt_cv_deplibs_check_method=pass_all 5058 ;; 5059 pc) 5060 lt_cv_deplibs_check_method=pass_all 5061 ;; 5062 esac 5063 ;; 5064 5065tpf*) 5066 lt_cv_deplibs_check_method=pass_all 5067 ;; 5068esac 5069 5070fi 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5072$as_echo "$lt_cv_deplibs_check_method" >&6; } 5073 5074file_magic_glob= 5075want_nocaseglob=no 5076if test "$build" = "$host"; then 5077 case $host_os in 5078 mingw* | pw32*) 5079 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5080 want_nocaseglob=yes 5081 else 5082 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5083 fi 5084 ;; 5085 esac 5086fi 5087 5088file_magic_cmd=$lt_cv_file_magic_cmd 5089deplibs_check_method=$lt_cv_deplibs_check_method 5090test -z "$deplibs_check_method" && deplibs_check_method=unknown 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113if test -n "$ac_tool_prefix"; then 5114 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5115set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5117$as_echo_n "checking for $ac_word... " >&6; } 5118if ${ac_cv_prog_DLLTOOL+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 if test -n "$DLLTOOL"; then 5122 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5123else 5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5125for as_dir in $PATH 5126do 5127 IFS=$as_save_IFS 5128 test -z "$as_dir" && as_dir=. 5129 for ac_exec_ext in '' $ac_executable_extensions; do 5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5131 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5133 break 2 5134 fi 5135done 5136 done 5137IFS=$as_save_IFS 5138 5139fi 5140fi 5141DLLTOOL=$ac_cv_prog_DLLTOOL 5142if test -n "$DLLTOOL"; then 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5144$as_echo "$DLLTOOL" >&6; } 5145else 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5147$as_echo "no" >&6; } 5148fi 5149 5150 5151fi 5152if test -z "$ac_cv_prog_DLLTOOL"; then 5153 ac_ct_DLLTOOL=$DLLTOOL 5154 # Extract the first word of "dlltool", so it can be a program name with args. 5155set dummy dlltool; ac_word=$2 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5157$as_echo_n "checking for $ac_word... " >&6; } 5158if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 if test -n "$ac_ct_DLLTOOL"; then 5162 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5163else 5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5165for as_dir in $PATH 5166do 5167 IFS=$as_save_IFS 5168 test -z "$as_dir" && as_dir=. 5169 for ac_exec_ext in '' $ac_executable_extensions; do 5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5171 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5173 break 2 5174 fi 5175done 5176 done 5177IFS=$as_save_IFS 5178 5179fi 5180fi 5181ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5182if test -n "$ac_ct_DLLTOOL"; then 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5184$as_echo "$ac_ct_DLLTOOL" >&6; } 5185else 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5187$as_echo "no" >&6; } 5188fi 5189 5190 if test "x$ac_ct_DLLTOOL" = x; then 5191 DLLTOOL="false" 5192 else 5193 case $cross_compiling:$ac_tool_warned in 5194yes:) 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5197ac_tool_warned=yes ;; 5198esac 5199 DLLTOOL=$ac_ct_DLLTOOL 5200 fi 5201else 5202 DLLTOOL="$ac_cv_prog_DLLTOOL" 5203fi 5204 5205test -z "$DLLTOOL" && DLLTOOL=dlltool 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5217$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5218if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5219 $as_echo_n "(cached) " >&6 5220else 5221 lt_cv_sharedlib_from_linklib_cmd='unknown' 5222 5223case $host_os in 5224cygwin* | mingw* | pw32* | cegcc*) 5225 # two different shell functions defined in ltmain.sh 5226 # decide which to use based on capabilities of $DLLTOOL 5227 case `$DLLTOOL --help 2>&1` in 5228 *--identify-strict*) 5229 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5230 ;; 5231 *) 5232 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5233 ;; 5234 esac 5235 ;; 5236*) 5237 # fallback: assume linklib IS sharedlib 5238 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5239 ;; 5240esac 5241 5242fi 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5244$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5245sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5246test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5247 5248 5249 5250 5251 5252 5253 5254 5255if test -n "$ac_tool_prefix"; then 5256 for ac_prog in ar 5257 do 5258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5259set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5261$as_echo_n "checking for $ac_word... " >&6; } 5262if ${ac_cv_prog_AR+:} false; then : 5263 $as_echo_n "(cached) " >&6 5264else 5265 if test -n "$AR"; then 5266 ac_cv_prog_AR="$AR" # Let the user override the test. 5267else 5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269for as_dir in $PATH 5270do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5275 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280 done 5281IFS=$as_save_IFS 5282 5283fi 5284fi 5285AR=$ac_cv_prog_AR 5286if test -n "$AR"; then 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5288$as_echo "$AR" >&6; } 5289else 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5291$as_echo "no" >&6; } 5292fi 5293 5294 5295 test -n "$AR" && break 5296 done 5297fi 5298if test -z "$AR"; then 5299 ac_ct_AR=$AR 5300 for ac_prog in ar 5301do 5302 # Extract the first word of "$ac_prog", so it can be a program name with args. 5303set dummy $ac_prog; ac_word=$2 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305$as_echo_n "checking for $ac_word... " >&6; } 5306if ${ac_cv_prog_ac_ct_AR+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 if test -n "$ac_ct_AR"; then 5310 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5311else 5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for ac_exec_ext in '' $ac_executable_extensions; do 5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5319 ac_cv_prog_ac_ct_AR="$ac_prog" 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5321 break 2 5322 fi 5323done 5324 done 5325IFS=$as_save_IFS 5326 5327fi 5328fi 5329ac_ct_AR=$ac_cv_prog_ac_ct_AR 5330if test -n "$ac_ct_AR"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5332$as_echo "$ac_ct_AR" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 5339 test -n "$ac_ct_AR" && break 5340done 5341 5342 if test "x$ac_ct_AR" = x; then 5343 AR="false" 5344 else 5345 case $cross_compiling:$ac_tool_warned in 5346yes:) 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5349ac_tool_warned=yes ;; 5350esac 5351 AR=$ac_ct_AR 5352 fi 5353fi 5354 5355: ${AR=ar} 5356: ${AR_FLAGS=cru} 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5369$as_echo_n "checking for archiver @FILE support... " >&6; } 5370if ${lt_cv_ar_at_file+:} false; then : 5371 $as_echo_n "(cached) " >&6 5372else 5373 lt_cv_ar_at_file=no 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376 5377int 5378main () 5379{ 5380 5381 ; 5382 return 0; 5383} 5384_ACEOF 5385if ac_fn_c_try_compile "$LINENO"; then : 5386 echo conftest.$ac_objext > conftest.lst 5387 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5389 (eval $lt_ar_try) 2>&5 5390 ac_status=$? 5391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5392 test $ac_status = 0; } 5393 if test "$ac_status" -eq 0; then 5394 # Ensure the archiver fails upon bogus file names. 5395 rm -f conftest.$ac_objext libconftest.a 5396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5397 (eval $lt_ar_try) 2>&5 5398 ac_status=$? 5399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5400 test $ac_status = 0; } 5401 if test "$ac_status" -ne 0; then 5402 lt_cv_ar_at_file=@ 5403 fi 5404 fi 5405 rm -f conftest.* libconftest.a 5406 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5409 5410fi 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5412$as_echo "$lt_cv_ar_at_file" >&6; } 5413 5414if test "x$lt_cv_ar_at_file" = xno; then 5415 archiver_list_spec= 5416else 5417 archiver_list_spec=$lt_cv_ar_at_file 5418fi 5419 5420 5421 5422 5423 5424 5425 5426if test -n "$ac_tool_prefix"; then 5427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5428set dummy ${ac_tool_prefix}strip; ac_word=$2 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5430$as_echo_n "checking for $ac_word... " >&6; } 5431if ${ac_cv_prog_STRIP+:} false; then : 5432 $as_echo_n "(cached) " >&6 5433else 5434 if test -n "$STRIP"; then 5435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5436else 5437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5438for as_dir in $PATH 5439do 5440 IFS=$as_save_IFS 5441 test -z "$as_dir" && as_dir=. 5442 for ac_exec_ext in '' $ac_executable_extensions; do 5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5444 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5446 break 2 5447 fi 5448done 5449 done 5450IFS=$as_save_IFS 5451 5452fi 5453fi 5454STRIP=$ac_cv_prog_STRIP 5455if test -n "$STRIP"; then 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5457$as_echo "$STRIP" >&6; } 5458else 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5460$as_echo "no" >&6; } 5461fi 5462 5463 5464fi 5465if test -z "$ac_cv_prog_STRIP"; then 5466 ac_ct_STRIP=$STRIP 5467 # Extract the first word of "strip", so it can be a program name with args. 5468set dummy strip; ac_word=$2 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5470$as_echo_n "checking for $ac_word... " >&6; } 5471if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5472 $as_echo_n "(cached) " >&6 5473else 5474 if test -n "$ac_ct_STRIP"; then 5475 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5476else 5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5478for as_dir in $PATH 5479do 5480 IFS=$as_save_IFS 5481 test -z "$as_dir" && as_dir=. 5482 for ac_exec_ext in '' $ac_executable_extensions; do 5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5484 ac_cv_prog_ac_ct_STRIP="strip" 5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5486 break 2 5487 fi 5488done 5489 done 5490IFS=$as_save_IFS 5491 5492fi 5493fi 5494ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5495if test -n "$ac_ct_STRIP"; then 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5497$as_echo "$ac_ct_STRIP" >&6; } 5498else 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5500$as_echo "no" >&6; } 5501fi 5502 5503 if test "x$ac_ct_STRIP" = x; then 5504 STRIP=":" 5505 else 5506 case $cross_compiling:$ac_tool_warned in 5507yes:) 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5510ac_tool_warned=yes ;; 5511esac 5512 STRIP=$ac_ct_STRIP 5513 fi 5514else 5515 STRIP="$ac_cv_prog_STRIP" 5516fi 5517 5518test -z "$STRIP" && STRIP=: 5519 5520 5521 5522 5523 5524 5525if test -n "$ac_tool_prefix"; then 5526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5527set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5529$as_echo_n "checking for $ac_word... " >&6; } 5530if ${ac_cv_prog_RANLIB+:} false; then : 5531 $as_echo_n "(cached) " >&6 5532else 5533 if test -n "$RANLIB"; then 5534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5535else 5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537for as_dir in $PATH 5538do 5539 IFS=$as_save_IFS 5540 test -z "$as_dir" && as_dir=. 5541 for ac_exec_ext in '' $ac_executable_extensions; do 5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5545 break 2 5546 fi 5547done 5548 done 5549IFS=$as_save_IFS 5550 5551fi 5552fi 5553RANLIB=$ac_cv_prog_RANLIB 5554if test -n "$RANLIB"; then 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5556$as_echo "$RANLIB" >&6; } 5557else 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5559$as_echo "no" >&6; } 5560fi 5561 5562 5563fi 5564if test -z "$ac_cv_prog_RANLIB"; then 5565 ac_ct_RANLIB=$RANLIB 5566 # Extract the first word of "ranlib", so it can be a program name with args. 5567set dummy ranlib; ac_word=$2 5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5569$as_echo_n "checking for $ac_word... " >&6; } 5570if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5571 $as_echo_n "(cached) " >&6 5572else 5573 if test -n "$ac_ct_RANLIB"; then 5574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5575else 5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5577for as_dir in $PATH 5578do 5579 IFS=$as_save_IFS 5580 test -z "$as_dir" && as_dir=. 5581 for ac_exec_ext in '' $ac_executable_extensions; do 5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5583 ac_cv_prog_ac_ct_RANLIB="ranlib" 5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5585 break 2 5586 fi 5587done 5588 done 5589IFS=$as_save_IFS 5590 5591fi 5592fi 5593ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5594if test -n "$ac_ct_RANLIB"; then 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5596$as_echo "$ac_ct_RANLIB" >&6; } 5597else 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5599$as_echo "no" >&6; } 5600fi 5601 5602 if test "x$ac_ct_RANLIB" = x; then 5603 RANLIB=":" 5604 else 5605 case $cross_compiling:$ac_tool_warned in 5606yes:) 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5609ac_tool_warned=yes ;; 5610esac 5611 RANLIB=$ac_ct_RANLIB 5612 fi 5613else 5614 RANLIB="$ac_cv_prog_RANLIB" 5615fi 5616 5617test -z "$RANLIB" && RANLIB=: 5618 5619 5620 5621 5622 5623 5624# Determine commands to create old-style static archives. 5625old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5626old_postinstall_cmds='chmod 644 $oldlib' 5627old_postuninstall_cmds= 5628 5629if test -n "$RANLIB"; then 5630 case $host_os in 5631 openbsd*) 5632 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5633 ;; 5634 *) 5635 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5636 ;; 5637 esac 5638 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5639fi 5640 5641case $host_os in 5642 darwin*) 5643 lock_old_archive_extraction=yes ;; 5644 *) 5645 lock_old_archive_extraction=no ;; 5646esac 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668for ac_prog in gawk mawk nawk awk 5669do 5670 # Extract the first word of "$ac_prog", so it can be a program name with args. 5671set dummy $ac_prog; ac_word=$2 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5673$as_echo_n "checking for $ac_word... " >&6; } 5674if ${ac_cv_prog_AWK+:} false; then : 5675 $as_echo_n "(cached) " >&6 5676else 5677 if test -n "$AWK"; then 5678 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5679else 5680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5681for as_dir in $PATH 5682do 5683 IFS=$as_save_IFS 5684 test -z "$as_dir" && as_dir=. 5685 for ac_exec_ext in '' $ac_executable_extensions; do 5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5687 ac_cv_prog_AWK="$ac_prog" 5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5689 break 2 5690 fi 5691done 5692 done 5693IFS=$as_save_IFS 5694 5695fi 5696fi 5697AWK=$ac_cv_prog_AWK 5698if test -n "$AWK"; then 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5700$as_echo "$AWK" >&6; } 5701else 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5703$as_echo "no" >&6; } 5704fi 5705 5706 5707 test -n "$AWK" && break 5708done 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728# If no C compiler was specified, use CC. 5729LTCC=${LTCC-"$CC"} 5730 5731# If no C compiler flags were specified, use CFLAGS. 5732LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5733 5734# Allow CC to be a program name with arguments. 5735compiler=$CC 5736 5737 5738# Check for command to grab the raw symbol name followed by C symbol from nm. 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5740$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5741if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 5745# These are sane defaults that work on at least a few old systems. 5746# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5747 5748# Character class describing NM global symbol codes. 5749symcode='[BCDEGRST]' 5750 5751# Regexp to match symbols that can be accessed directly from C. 5752sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5753 5754# Define system-specific variables. 5755case $host_os in 5756aix*) 5757 symcode='[BCDT]' 5758 ;; 5759cygwin* | mingw* | pw32* | cegcc*) 5760 symcode='[ABCDGISTW]' 5761 ;; 5762hpux*) 5763 if test "$host_cpu" = ia64; then 5764 symcode='[ABCDEGRST]' 5765 fi 5766 ;; 5767irix* | nonstopux*) 5768 symcode='[BCDEGRST]' 5769 ;; 5770osf*) 5771 symcode='[BCDEGQRST]' 5772 ;; 5773solaris*) 5774 symcode='[BDRT]' 5775 ;; 5776sco3.2v5*) 5777 symcode='[DT]' 5778 ;; 5779sysv4.2uw2*) 5780 symcode='[DT]' 5781 ;; 5782sysv5* | sco5v6* | unixware* | OpenUNIX*) 5783 symcode='[ABDT]' 5784 ;; 5785sysv4) 5786 symcode='[DFNSTU]' 5787 ;; 5788esac 5789 5790# If we're using GNU nm, then use its standard symbol codes. 5791case `$NM -V 2>&1` in 5792*GNU* | *'with BFD'*) 5793 symcode='[ABCDGIRSTW]' ;; 5794esac 5795 5796# Transform an extracted symbol line into a proper C declaration. 5797# Some systems (esp. on ia64) link data and code symbols differently, 5798# so use this general approach. 5799lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5800 5801# Transform an extracted symbol line into symbol name and symbol address 5802lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5803lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5804 5805# Handle CRLF in mingw tool chain 5806opt_cr= 5807case $build_os in 5808mingw*) 5809 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5810 ;; 5811esac 5812 5813# Try without a prefix underscore, then with it. 5814for ac_symprfx in "" "_"; do 5815 5816 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5817 symxfrm="\\1 $ac_symprfx\\2 \\2" 5818 5819 # Write the raw and C identifiers. 5820 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5821 # Fake it for dumpbin and say T for any non-static function 5822 # and D for any global variable. 5823 # Also find C++ and __fastcall symbols from MSVC++, 5824 # which start with @ or ?. 5825 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5826" {last_section=section; section=\$ 3};"\ 5827" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5828" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5829" \$ 0!~/External *\|/{next};"\ 5830" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5831" {if(hide[section]) next};"\ 5832" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5833" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5834" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5835" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5836" ' prfx=^$ac_symprfx" 5837 else 5838 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5839 fi 5840 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5841 5842 # Check to see that the pipe works correctly. 5843 pipe_works=no 5844 5845 rm -f conftest* 5846 cat > conftest.$ac_ext <<_LT_EOF 5847#ifdef __cplusplus 5848extern "C" { 5849#endif 5850char nm_test_var; 5851void nm_test_func(void); 5852void nm_test_func(void){} 5853#ifdef __cplusplus 5854} 5855#endif 5856int main(){nm_test_var='a';nm_test_func();return(0);} 5857_LT_EOF 5858 5859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5860 (eval $ac_compile) 2>&5 5861 ac_status=$? 5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5863 test $ac_status = 0; }; then 5864 # Now try to grab the symbols. 5865 nlist=conftest.nm 5866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5867 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5868 ac_status=$? 5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5870 test $ac_status = 0; } && test -s "$nlist"; then 5871 # Try sorting and uniquifying the output. 5872 if sort "$nlist" | uniq > "$nlist"T; then 5873 mv -f "$nlist"T "$nlist" 5874 else 5875 rm -f "$nlist"T 5876 fi 5877 5878 # Make sure that we snagged all the symbols we need. 5879 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5880 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5881 cat <<_LT_EOF > conftest.$ac_ext 5882/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5883#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5884/* DATA imports from DLLs on WIN32 con't be const, because runtime 5885 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5886# define LT_DLSYM_CONST 5887#elif defined(__osf__) 5888/* This system does not cope well with relocations in const data. */ 5889# define LT_DLSYM_CONST 5890#else 5891# define LT_DLSYM_CONST const 5892#endif 5893 5894#ifdef __cplusplus 5895extern "C" { 5896#endif 5897 5898_LT_EOF 5899 # Now generate the symbol file. 5900 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5901 5902 cat <<_LT_EOF >> conftest.$ac_ext 5903 5904/* The mapping between symbol names and symbols. */ 5905LT_DLSYM_CONST struct { 5906 const char *name; 5907 void *address; 5908} 5909lt__PROGRAM__LTX_preloaded_symbols[] = 5910{ 5911 { "@PROGRAM@", (void *) 0 }, 5912_LT_EOF 5913 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5914 cat <<\_LT_EOF >> conftest.$ac_ext 5915 {0, (void *) 0} 5916}; 5917 5918/* This works around a problem in FreeBSD linker */ 5919#ifdef FREEBSD_WORKAROUND 5920static const void *lt_preloaded_setup() { 5921 return lt__PROGRAM__LTX_preloaded_symbols; 5922} 5923#endif 5924 5925#ifdef __cplusplus 5926} 5927#endif 5928_LT_EOF 5929 # Now try linking the two files. 5930 mv conftest.$ac_objext conftstm.$ac_objext 5931 lt_globsym_save_LIBS=$LIBS 5932 lt_globsym_save_CFLAGS=$CFLAGS 5933 LIBS="conftstm.$ac_objext" 5934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5936 (eval $ac_link) 2>&5 5937 ac_status=$? 5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5939 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5940 pipe_works=yes 5941 fi 5942 LIBS=$lt_globsym_save_LIBS 5943 CFLAGS=$lt_globsym_save_CFLAGS 5944 else 5945 echo "cannot find nm_test_func in $nlist" >&5 5946 fi 5947 else 5948 echo "cannot find nm_test_var in $nlist" >&5 5949 fi 5950 else 5951 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5952 fi 5953 else 5954 echo "$progname: failed program was:" >&5 5955 cat conftest.$ac_ext >&5 5956 fi 5957 rm -rf conftest* conftst* 5958 5959 # Do not use the global_symbol_pipe unless it works. 5960 if test "$pipe_works" = yes; then 5961 break 5962 else 5963 lt_cv_sys_global_symbol_pipe= 5964 fi 5965done 5966 5967fi 5968 5969if test -z "$lt_cv_sys_global_symbol_pipe"; then 5970 lt_cv_sys_global_symbol_to_cdecl= 5971fi 5972if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5974$as_echo "failed" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5977$as_echo "ok" >&6; } 5978fi 5979 5980# Response file support. 5981if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5982 nm_file_list_spec='@' 5983elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5984 nm_file_list_spec='@' 5985fi 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6014$as_echo_n "checking for sysroot... " >&6; } 6015 6016# Check whether --with-sysroot was given. 6017if test "${with_sysroot+set}" = set; then : 6018 withval=$with_sysroot; 6019else 6020 with_sysroot=no 6021fi 6022 6023 6024lt_sysroot= 6025case ${with_sysroot} in #( 6026 yes) 6027 if test "$GCC" = yes; then 6028 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6029 fi 6030 ;; #( 6031 /*) 6032 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6033 ;; #( 6034 no|'') 6035 ;; #( 6036 *) 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6038$as_echo "${with_sysroot}" >&6; } 6039 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6040 ;; 6041esac 6042 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6044$as_echo "${lt_sysroot:-no}" >&6; } 6045 6046 6047 6048 6049 6050# Check whether --enable-libtool-lock was given. 6051if test "${enable_libtool_lock+set}" = set; then : 6052 enableval=$enable_libtool_lock; 6053fi 6054 6055test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6056 6057# Some flags need to be propagated to the compiler or linker for good 6058# libtool support. 6059case $host in 6060ia64-*-hpux*) 6061 # Find out which ABI we are using. 6062 echo 'int i;' > conftest.$ac_ext 6063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6064 (eval $ac_compile) 2>&5 6065 ac_status=$? 6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6067 test $ac_status = 0; }; then 6068 case `/usr/bin/file conftest.$ac_objext` in 6069 *ELF-32*) 6070 HPUX_IA64_MODE="32" 6071 ;; 6072 *ELF-64*) 6073 HPUX_IA64_MODE="64" 6074 ;; 6075 esac 6076 fi 6077 rm -rf conftest* 6078 ;; 6079*-*-irix6*) 6080 # Find out which ABI we are using. 6081 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6083 (eval $ac_compile) 2>&5 6084 ac_status=$? 6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6086 test $ac_status = 0; }; then 6087 if test "$lt_cv_prog_gnu_ld" = yes; then 6088 case `/usr/bin/file conftest.$ac_objext` in 6089 *32-bit*) 6090 LD="${LD-ld} -melf32bsmip" 6091 ;; 6092 *N32*) 6093 LD="${LD-ld} -melf32bmipn32" 6094 ;; 6095 *64-bit*) 6096 LD="${LD-ld} -melf64bmip" 6097 ;; 6098 esac 6099 else 6100 case `/usr/bin/file conftest.$ac_objext` in 6101 *32-bit*) 6102 LD="${LD-ld} -32" 6103 ;; 6104 *N32*) 6105 LD="${LD-ld} -n32" 6106 ;; 6107 *64-bit*) 6108 LD="${LD-ld} -64" 6109 ;; 6110 esac 6111 fi 6112 fi 6113 rm -rf conftest* 6114 ;; 6115 6116x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6117s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6118 # Find out which ABI we are using. 6119 echo 'int i;' > conftest.$ac_ext 6120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6121 (eval $ac_compile) 2>&5 6122 ac_status=$? 6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6124 test $ac_status = 0; }; then 6125 case `/usr/bin/file conftest.o` in 6126 *32-bit*) 6127 case $host in 6128 x86_64-*kfreebsd*-gnu) 6129 LD="${LD-ld} -m elf_i386_fbsd" 6130 ;; 6131 x86_64-*linux*) 6132 LD="${LD-ld} -m elf_i386" 6133 ;; 6134 ppc64-*linux*|powerpc64-*linux*) 6135 LD="${LD-ld} -m elf32ppclinux" 6136 ;; 6137 s390x-*linux*) 6138 LD="${LD-ld} -m elf_s390" 6139 ;; 6140 sparc64-*linux*) 6141 LD="${LD-ld} -m elf32_sparc" 6142 ;; 6143 esac 6144 ;; 6145 *64-bit*) 6146 case $host in 6147 x86_64-*kfreebsd*-gnu) 6148 LD="${LD-ld} -m elf_x86_64_fbsd" 6149 ;; 6150 x86_64-*linux*) 6151 LD="${LD-ld} -m elf_x86_64" 6152 ;; 6153 ppc*-*linux*|powerpc*-*linux*) 6154 LD="${LD-ld} -m elf64ppc" 6155 ;; 6156 s390*-*linux*|s390*-*tpf*) 6157 LD="${LD-ld} -m elf64_s390" 6158 ;; 6159 sparc*-*linux*) 6160 LD="${LD-ld} -m elf64_sparc" 6161 ;; 6162 esac 6163 ;; 6164 esac 6165 fi 6166 rm -rf conftest* 6167 ;; 6168 6169*-*-sco3.2v5*) 6170 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6171 SAVE_CFLAGS="$CFLAGS" 6172 CFLAGS="$CFLAGS -belf" 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6174$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6175if ${lt_cv_cc_needs_belf+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 ac_ext=c 6179ac_cpp='$CPP $CPPFLAGS' 6180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6182ac_compiler_gnu=$ac_cv_c_compiler_gnu 6183 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186 6187int 6188main () 6189{ 6190 6191 ; 6192 return 0; 6193} 6194_ACEOF 6195if ac_fn_c_try_link "$LINENO"; then : 6196 lt_cv_cc_needs_belf=yes 6197else 6198 lt_cv_cc_needs_belf=no 6199fi 6200rm -f core conftest.err conftest.$ac_objext \ 6201 conftest$ac_exeext conftest.$ac_ext 6202 ac_ext=c 6203ac_cpp='$CPP $CPPFLAGS' 6204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6206ac_compiler_gnu=$ac_cv_c_compiler_gnu 6207 6208fi 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6210$as_echo "$lt_cv_cc_needs_belf" >&6; } 6211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6213 CFLAGS="$SAVE_CFLAGS" 6214 fi 6215 ;; 6216*-*solaris*) 6217 # Find out which ABI we are using. 6218 echo 'int i;' > conftest.$ac_ext 6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6220 (eval $ac_compile) 2>&5 6221 ac_status=$? 6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6223 test $ac_status = 0; }; then 6224 case `/usr/bin/file conftest.o` in 6225 *64-bit*) 6226 case $lt_cv_prog_gnu_ld in 6227 yes*) 6228 case $host in 6229 i?86-*-solaris*) 6230 LD="${LD-ld} -m elf_x86_64" 6231 ;; 6232 sparc*-*-solaris*) 6233 LD="${LD-ld} -m elf64_sparc" 6234 ;; 6235 esac 6236 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6237 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6238 LD="${LD-ld}_sol2" 6239 fi 6240 ;; 6241 *) 6242 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6243 LD="${LD-ld} -64" 6244 fi 6245 ;; 6246 esac 6247 ;; 6248 esac 6249 fi 6250 rm -rf conftest* 6251 ;; 6252esac 6253 6254need_locks="$enable_libtool_lock" 6255 6256if test -n "$ac_tool_prefix"; then 6257 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6258set dummy ${ac_tool_prefix}mt; ac_word=$2 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6260$as_echo_n "checking for $ac_word... " >&6; } 6261if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6262 $as_echo_n "(cached) " >&6 6263else 6264 if test -n "$MANIFEST_TOOL"; then 6265 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6266else 6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6268for as_dir in $PATH 6269do 6270 IFS=$as_save_IFS 6271 test -z "$as_dir" && as_dir=. 6272 for ac_exec_ext in '' $ac_executable_extensions; do 6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6274 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6276 break 2 6277 fi 6278done 6279 done 6280IFS=$as_save_IFS 6281 6282fi 6283fi 6284MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6285if test -n "$MANIFEST_TOOL"; then 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6287$as_echo "$MANIFEST_TOOL" >&6; } 6288else 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6290$as_echo "no" >&6; } 6291fi 6292 6293 6294fi 6295if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6296 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6297 # Extract the first word of "mt", so it can be a program name with args. 6298set dummy mt; ac_word=$2 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6300$as_echo_n "checking for $ac_word... " >&6; } 6301if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 if test -n "$ac_ct_MANIFEST_TOOL"; then 6305 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6306else 6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6308for as_dir in $PATH 6309do 6310 IFS=$as_save_IFS 6311 test -z "$as_dir" && as_dir=. 6312 for ac_exec_ext in '' $ac_executable_extensions; do 6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6314 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6316 break 2 6317 fi 6318done 6319 done 6320IFS=$as_save_IFS 6321 6322fi 6323fi 6324ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6325if test -n "$ac_ct_MANIFEST_TOOL"; then 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6327$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6328else 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6330$as_echo "no" >&6; } 6331fi 6332 6333 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6334 MANIFEST_TOOL=":" 6335 else 6336 case $cross_compiling:$ac_tool_warned in 6337yes:) 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6340ac_tool_warned=yes ;; 6341esac 6342 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6343 fi 6344else 6345 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6346fi 6347 6348test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6350$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6351if ${lt_cv_path_mainfest_tool+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 lt_cv_path_mainfest_tool=no 6355 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6356 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6357 cat conftest.err >&5 6358 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6359 lt_cv_path_mainfest_tool=yes 6360 fi 6361 rm -f conftest* 6362fi 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6364$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6365if test "x$lt_cv_path_mainfest_tool" != xyes; then 6366 MANIFEST_TOOL=: 6367fi 6368 6369 6370 6371 6372 6373 6374 case $host_os in 6375 rhapsody* | darwin*) 6376 if test -n "$ac_tool_prefix"; then 6377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6378set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380$as_echo_n "checking for $ac_word... " >&6; } 6381if ${ac_cv_prog_DSYMUTIL+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 if test -n "$DSYMUTIL"; then 6385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6386else 6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388for as_dir in $PATH 6389do 6390 IFS=$as_save_IFS 6391 test -z "$as_dir" && as_dir=. 6392 for ac_exec_ext in '' $ac_executable_extensions; do 6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6396 break 2 6397 fi 6398done 6399 done 6400IFS=$as_save_IFS 6401 6402fi 6403fi 6404DSYMUTIL=$ac_cv_prog_DSYMUTIL 6405if test -n "$DSYMUTIL"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6407$as_echo "$DSYMUTIL" >&6; } 6408else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410$as_echo "no" >&6; } 6411fi 6412 6413 6414fi 6415if test -z "$ac_cv_prog_DSYMUTIL"; then 6416 ac_ct_DSYMUTIL=$DSYMUTIL 6417 # Extract the first word of "dsymutil", so it can be a program name with args. 6418set dummy dsymutil; ac_word=$2 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6420$as_echo_n "checking for $ac_word... " >&6; } 6421if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 if test -n "$ac_ct_DSYMUTIL"; then 6425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6426else 6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6428for as_dir in $PATH 6429do 6430 IFS=$as_save_IFS 6431 test -z "$as_dir" && as_dir=. 6432 for ac_exec_ext in '' $ac_executable_extensions; do 6433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6436 break 2 6437 fi 6438done 6439 done 6440IFS=$as_save_IFS 6441 6442fi 6443fi 6444ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6445if test -n "$ac_ct_DSYMUTIL"; then 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6447$as_echo "$ac_ct_DSYMUTIL" >&6; } 6448else 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6450$as_echo "no" >&6; } 6451fi 6452 6453 if test "x$ac_ct_DSYMUTIL" = x; then 6454 DSYMUTIL=":" 6455 else 6456 case $cross_compiling:$ac_tool_warned in 6457yes:) 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6460ac_tool_warned=yes ;; 6461esac 6462 DSYMUTIL=$ac_ct_DSYMUTIL 6463 fi 6464else 6465 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6466fi 6467 6468 if test -n "$ac_tool_prefix"; then 6469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6470set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472$as_echo_n "checking for $ac_word... " >&6; } 6473if ${ac_cv_prog_NMEDIT+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -n "$NMEDIT"; then 6477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496NMEDIT=$ac_cv_prog_NMEDIT 6497if test -n "$NMEDIT"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6499$as_echo "$NMEDIT" >&6; } 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502$as_echo "no" >&6; } 6503fi 6504 6505 6506fi 6507if test -z "$ac_cv_prog_NMEDIT"; then 6508 ac_ct_NMEDIT=$NMEDIT 6509 # Extract the first word of "nmedit", so it can be a program name with args. 6510set dummy nmedit; ac_word=$2 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6512$as_echo_n "checking for $ac_word... " >&6; } 6513if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 if test -n "$ac_ct_NMEDIT"; then 6517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6518else 6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6520for as_dir in $PATH 6521do 6522 IFS=$as_save_IFS 6523 test -z "$as_dir" && as_dir=. 6524 for ac_exec_ext in '' $ac_executable_extensions; do 6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6526 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6528 break 2 6529 fi 6530done 6531 done 6532IFS=$as_save_IFS 6533 6534fi 6535fi 6536ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6537if test -n "$ac_ct_NMEDIT"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6539$as_echo "$ac_ct_NMEDIT" >&6; } 6540else 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6542$as_echo "no" >&6; } 6543fi 6544 6545 if test "x$ac_ct_NMEDIT" = x; then 6546 NMEDIT=":" 6547 else 6548 case $cross_compiling:$ac_tool_warned in 6549yes:) 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6552ac_tool_warned=yes ;; 6553esac 6554 NMEDIT=$ac_ct_NMEDIT 6555 fi 6556else 6557 NMEDIT="$ac_cv_prog_NMEDIT" 6558fi 6559 6560 if test -n "$ac_tool_prefix"; then 6561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6562set dummy ${ac_tool_prefix}lipo; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_LIPO+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$LIPO"; then 6569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588LIPO=$ac_cv_prog_LIPO 6589if test -n "$LIPO"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6591$as_echo "$LIPO" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 6598fi 6599if test -z "$ac_cv_prog_LIPO"; then 6600 ac_ct_LIPO=$LIPO 6601 # Extract the first word of "lipo", so it can be a program name with args. 6602set dummy lipo; ac_word=$2 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604$as_echo_n "checking for $ac_word... " >&6; } 6605if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 if test -n "$ac_ct_LIPO"; then 6609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6610else 6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612for as_dir in $PATH 6613do 6614 IFS=$as_save_IFS 6615 test -z "$as_dir" && as_dir=. 6616 for ac_exec_ext in '' $ac_executable_extensions; do 6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6618 ac_cv_prog_ac_ct_LIPO="lipo" 6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6620 break 2 6621 fi 6622done 6623 done 6624IFS=$as_save_IFS 6625 6626fi 6627fi 6628ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6629if test -n "$ac_ct_LIPO"; then 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6631$as_echo "$ac_ct_LIPO" >&6; } 6632else 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634$as_echo "no" >&6; } 6635fi 6636 6637 if test "x$ac_ct_LIPO" = x; then 6638 LIPO=":" 6639 else 6640 case $cross_compiling:$ac_tool_warned in 6641yes:) 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6644ac_tool_warned=yes ;; 6645esac 6646 LIPO=$ac_ct_LIPO 6647 fi 6648else 6649 LIPO="$ac_cv_prog_LIPO" 6650fi 6651 6652 if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}otool; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_OTOOL+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$OTOOL"; then 6661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680OTOOL=$ac_cv_prog_OTOOL 6681if test -n "$OTOOL"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6683$as_echo "$OTOOL" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_OTOOL"; then 6692 ac_ct_OTOOL=$OTOOL 6693 # Extract the first word of "otool", so it can be a program name with args. 6694set dummy otool; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$ac_ct_OTOOL"; then 6701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6710 ac_cv_prog_ac_ct_OTOOL="otool" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6721if test -n "$ac_ct_OTOOL"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6723$as_echo "$ac_ct_OTOOL" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 if test "x$ac_ct_OTOOL" = x; then 6730 OTOOL=":" 6731 else 6732 case $cross_compiling:$ac_tool_warned in 6733yes:) 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6736ac_tool_warned=yes ;; 6737esac 6738 OTOOL=$ac_ct_OTOOL 6739 fi 6740else 6741 OTOOL="$ac_cv_prog_OTOOL" 6742fi 6743 6744 if test -n "$ac_tool_prefix"; then 6745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6746set dummy ${ac_tool_prefix}otool64; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_OTOOL64+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$OTOOL64"; then 6753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772OTOOL64=$ac_cv_prog_OTOOL64 6773if test -n "$OTOOL64"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6775$as_echo "$OTOOL64" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782fi 6783if test -z "$ac_cv_prog_OTOOL64"; then 6784 ac_ct_OTOOL64=$OTOOL64 6785 # Extract the first word of "otool64", so it can be a program name with args. 6786set dummy otool64; ac_word=$2 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 if test -n "$ac_ct_OTOOL64"; then 6793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6802 ac_cv_prog_ac_ct_OTOOL64="otool64" 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6813if test -n "$ac_ct_OTOOL64"; then 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6815$as_echo "$ac_ct_OTOOL64" >&6; } 6816else 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818$as_echo "no" >&6; } 6819fi 6820 6821 if test "x$ac_ct_OTOOL64" = x; then 6822 OTOOL64=":" 6823 else 6824 case $cross_compiling:$ac_tool_warned in 6825yes:) 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6828ac_tool_warned=yes ;; 6829esac 6830 OTOOL64=$ac_ct_OTOOL64 6831 fi 6832else 6833 OTOOL64="$ac_cv_prog_OTOOL64" 6834fi 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6863$as_echo_n "checking for -single_module linker flag... " >&6; } 6864if ${lt_cv_apple_cc_single_mod+:} false; then : 6865 $as_echo_n "(cached) " >&6 6866else 6867 lt_cv_apple_cc_single_mod=no 6868 if test -z "${LT_MULTI_MODULE}"; then 6869 # By default we will add the -single_module flag. You can override 6870 # by either setting the environment variable LT_MULTI_MODULE 6871 # non-empty at configure time, or by adding -multi_module to the 6872 # link flags. 6873 rm -rf libconftest.dylib* 6874 echo "int foo(void){return 1;}" > conftest.c 6875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6876-dynamiclib -Wl,-single_module conftest.c" >&5 6877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6879 _lt_result=$? 6880 # If there is a non-empty error log, and "single_module" 6881 # appears in it, assume the flag caused a linker warning 6882 if test -s conftest.err && $GREP single_module conftest.err; then 6883 cat conftest.err >&5 6884 # Otherwise, if the output was created with a 0 exit code from 6885 # the compiler, it worked. 6886 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6887 lt_cv_apple_cc_single_mod=yes 6888 else 6889 cat conftest.err >&5 6890 fi 6891 rm -rf libconftest.dylib* 6892 rm -f conftest.* 6893 fi 6894fi 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6896$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6897 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6899$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6900if ${lt_cv_ld_exported_symbols_list+:} false; then : 6901 $as_echo_n "(cached) " >&6 6902else 6903 lt_cv_ld_exported_symbols_list=no 6904 save_LDFLAGS=$LDFLAGS 6905 echo "_main" > conftest.sym 6906 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6908/* end confdefs.h. */ 6909 6910int 6911main () 6912{ 6913 6914 ; 6915 return 0; 6916} 6917_ACEOF 6918if ac_fn_c_try_link "$LINENO"; then : 6919 lt_cv_ld_exported_symbols_list=yes 6920else 6921 lt_cv_ld_exported_symbols_list=no 6922fi 6923rm -f core conftest.err conftest.$ac_objext \ 6924 conftest$ac_exeext conftest.$ac_ext 6925 LDFLAGS="$save_LDFLAGS" 6926 6927fi 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6929$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6930 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6932$as_echo_n "checking for -force_load linker flag... " >&6; } 6933if ${lt_cv_ld_force_load+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 lt_cv_ld_force_load=no 6937 cat > conftest.c << _LT_EOF 6938int forced_loaded() { return 2;} 6939_LT_EOF 6940 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6941 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6942 echo "$AR cru libconftest.a conftest.o" >&5 6943 $AR cru libconftest.a conftest.o 2>&5 6944 echo "$RANLIB libconftest.a" >&5 6945 $RANLIB libconftest.a 2>&5 6946 cat > conftest.c << _LT_EOF 6947int main() { return 0;} 6948_LT_EOF 6949 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6950 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6951 _lt_result=$? 6952 if test -s conftest.err && $GREP force_load conftest.err; then 6953 cat conftest.err >&5 6954 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6955 lt_cv_ld_force_load=yes 6956 else 6957 cat conftest.err >&5 6958 fi 6959 rm -f conftest.err libconftest.a conftest conftest.c 6960 rm -rf conftest.dSYM 6961 6962fi 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6964$as_echo "$lt_cv_ld_force_load" >&6; } 6965 case $host_os in 6966 rhapsody* | darwin1.[012]) 6967 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6968 darwin1.*) 6969 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6970 darwin*) # darwin 5.x on 6971 # if running on 10.5 or later, the deployment target defaults 6972 # to the OS version, if on x86, and 10.4, the deployment 6973 # target defaults to 10.4. Don't you love it? 6974 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6975 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6976 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6977 10.[012]*) 6978 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6979 10.*) 6980 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6981 esac 6982 ;; 6983 esac 6984 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6985 _lt_dar_single_mod='$single_module' 6986 fi 6987 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6988 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6989 else 6990 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6991 fi 6992 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6993 _lt_dsymutil='~$DSYMUTIL $lib || :' 6994 else 6995 _lt_dsymutil= 6996 fi 6997 ;; 6998 esac 6999 7000ac_ext=c 7001ac_cpp='$CPP $CPPFLAGS' 7002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7004ac_compiler_gnu=$ac_cv_c_compiler_gnu 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7006$as_echo_n "checking how to run the C preprocessor... " >&6; } 7007# On Suns, sometimes $CPP names a directory. 7008if test -n "$CPP" && test -d "$CPP"; then 7009 CPP= 7010fi 7011if test -z "$CPP"; then 7012 if ${ac_cv_prog_CPP+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 # Double quotes because CPP needs to be expanded 7016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7017 do 7018 ac_preproc_ok=false 7019for ac_c_preproc_warn_flag in '' yes 7020do 7021 # Use a header file that comes with gcc, so configuring glibc 7022 # with a fresh cross-compiler works. 7023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7024 # <limits.h> exists even on freestanding compilers. 7025 # On the NeXT, cc -E runs the code through the compiler's parser, 7026 # not just through cpp. "Syntax error" is here to catch this case. 7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7028/* end confdefs.h. */ 7029#ifdef __STDC__ 7030# include <limits.h> 7031#else 7032# include <assert.h> 7033#endif 7034 Syntax error 7035_ACEOF 7036if ac_fn_c_try_cpp "$LINENO"; then : 7037 7038else 7039 # Broken: fails on valid input. 7040continue 7041fi 7042rm -f conftest.err conftest.i conftest.$ac_ext 7043 7044 # OK, works on sane cases. Now check whether nonexistent headers 7045 # can be detected and how. 7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7047/* end confdefs.h. */ 7048#include <ac_nonexistent.h> 7049_ACEOF 7050if ac_fn_c_try_cpp "$LINENO"; then : 7051 # Broken: success on invalid input. 7052continue 7053else 7054 # Passes both tests. 7055ac_preproc_ok=: 7056break 7057fi 7058rm -f conftest.err conftest.i conftest.$ac_ext 7059 7060done 7061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7062rm -f conftest.i conftest.err conftest.$ac_ext 7063if $ac_preproc_ok; then : 7064 break 7065fi 7066 7067 done 7068 ac_cv_prog_CPP=$CPP 7069 7070fi 7071 CPP=$ac_cv_prog_CPP 7072else 7073 ac_cv_prog_CPP=$CPP 7074fi 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7076$as_echo "$CPP" >&6; } 7077ac_preproc_ok=false 7078for ac_c_preproc_warn_flag in '' yes 7079do 7080 # Use a header file that comes with gcc, so configuring glibc 7081 # with a fresh cross-compiler works. 7082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7083 # <limits.h> exists even on freestanding compilers. 7084 # On the NeXT, cc -E runs the code through the compiler's parser, 7085 # not just through cpp. "Syntax error" is here to catch this case. 7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7087/* end confdefs.h. */ 7088#ifdef __STDC__ 7089# include <limits.h> 7090#else 7091# include <assert.h> 7092#endif 7093 Syntax error 7094_ACEOF 7095if ac_fn_c_try_cpp "$LINENO"; then : 7096 7097else 7098 # Broken: fails on valid input. 7099continue 7100fi 7101rm -f conftest.err conftest.i conftest.$ac_ext 7102 7103 # OK, works on sane cases. Now check whether nonexistent headers 7104 # can be detected and how. 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107#include <ac_nonexistent.h> 7108_ACEOF 7109if ac_fn_c_try_cpp "$LINENO"; then : 7110 # Broken: success on invalid input. 7111continue 7112else 7113 # Passes both tests. 7114ac_preproc_ok=: 7115break 7116fi 7117rm -f conftest.err conftest.i conftest.$ac_ext 7118 7119done 7120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7121rm -f conftest.i conftest.err conftest.$ac_ext 7122if $ac_preproc_ok; then : 7123 7124else 7125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7127as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7128See \`config.log' for more details" "$LINENO" 5; } 7129fi 7130 7131ac_ext=c 7132ac_cpp='$CPP $CPPFLAGS' 7133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7135ac_compiler_gnu=$ac_cv_c_compiler_gnu 7136 7137 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7139$as_echo_n "checking for ANSI C header files... " >&6; } 7140if ${ac_cv_header_stdc+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142else 7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7144/* end confdefs.h. */ 7145#include <stdlib.h> 7146#include <stdarg.h> 7147#include <string.h> 7148#include <float.h> 7149 7150int 7151main () 7152{ 7153 7154 ; 7155 return 0; 7156} 7157_ACEOF 7158if ac_fn_c_try_compile "$LINENO"; then : 7159 ac_cv_header_stdc=yes 7160else 7161 ac_cv_header_stdc=no 7162fi 7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7164 7165if test $ac_cv_header_stdc = yes; then 7166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7168/* end confdefs.h. */ 7169#include <string.h> 7170 7171_ACEOF 7172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7173 $EGREP "memchr" >/dev/null 2>&1; then : 7174 7175else 7176 ac_cv_header_stdc=no 7177fi 7178rm -f conftest* 7179 7180fi 7181 7182if test $ac_cv_header_stdc = yes; then 7183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186#include <stdlib.h> 7187 7188_ACEOF 7189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7190 $EGREP "free" >/dev/null 2>&1; then : 7191 7192else 7193 ac_cv_header_stdc=no 7194fi 7195rm -f conftest* 7196 7197fi 7198 7199if test $ac_cv_header_stdc = yes; then 7200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7201 if test "$cross_compiling" = yes; then : 7202 : 7203else 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206#include <ctype.h> 7207#include <stdlib.h> 7208#if ((' ' & 0x0FF) == 0x020) 7209# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7210# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7211#else 7212# define ISLOWER(c) \ 7213 (('a' <= (c) && (c) <= 'i') \ 7214 || ('j' <= (c) && (c) <= 'r') \ 7215 || ('s' <= (c) && (c) <= 'z')) 7216# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7217#endif 7218 7219#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7220int 7221main () 7222{ 7223 int i; 7224 for (i = 0; i < 256; i++) 7225 if (XOR (islower (i), ISLOWER (i)) 7226 || toupper (i) != TOUPPER (i)) 7227 return 2; 7228 return 0; 7229} 7230_ACEOF 7231if ac_fn_c_try_run "$LINENO"; then : 7232 7233else 7234 ac_cv_header_stdc=no 7235fi 7236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7237 conftest.$ac_objext conftest.beam conftest.$ac_ext 7238fi 7239 7240fi 7241fi 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7243$as_echo "$ac_cv_header_stdc" >&6; } 7244if test $ac_cv_header_stdc = yes; then 7245 7246$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7247 7248fi 7249 7250# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7251for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7252 inttypes.h stdint.h unistd.h 7253do : 7254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7255ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7256" 7257if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7258 cat >>confdefs.h <<_ACEOF 7259#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7260_ACEOF 7261 7262fi 7263 7264done 7265 7266 7267for ac_header in dlfcn.h 7268do : 7269 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7270" 7271if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7272 cat >>confdefs.h <<_ACEOF 7273#define HAVE_DLFCN_H 1 7274_ACEOF 7275 7276fi 7277 7278done 7279 7280 7281 7282 7283 7284# Set options 7285 7286 7287 7288 enable_dlopen=no 7289 7290 7291 enable_win32_dll=no 7292 7293 7294 # Check whether --enable-shared was given. 7295if test "${enable_shared+set}" = set; then : 7296 enableval=$enable_shared; p=${PACKAGE-default} 7297 case $enableval in 7298 yes) enable_shared=yes ;; 7299 no) enable_shared=no ;; 7300 *) 7301 enable_shared=no 7302 # Look at the argument we got. We use all the common list separators. 7303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7304 for pkg in $enableval; do 7305 IFS="$lt_save_ifs" 7306 if test "X$pkg" = "X$p"; then 7307 enable_shared=yes 7308 fi 7309 done 7310 IFS="$lt_save_ifs" 7311 ;; 7312 esac 7313else 7314 enable_shared=yes 7315fi 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 # Check whether --enable-static was given. 7326if test "${enable_static+set}" = set; then : 7327 enableval=$enable_static; p=${PACKAGE-default} 7328 case $enableval in 7329 yes) enable_static=yes ;; 7330 no) enable_static=no ;; 7331 *) 7332 enable_static=no 7333 # Look at the argument we got. We use all the common list separators. 7334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7335 for pkg in $enableval; do 7336 IFS="$lt_save_ifs" 7337 if test "X$pkg" = "X$p"; then 7338 enable_static=yes 7339 fi 7340 done 7341 IFS="$lt_save_ifs" 7342 ;; 7343 esac 7344else 7345 enable_static=yes 7346fi 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357# Check whether --with-pic was given. 7358if test "${with_pic+set}" = set; then : 7359 withval=$with_pic; lt_p=${PACKAGE-default} 7360 case $withval in 7361 yes|no) pic_mode=$withval ;; 7362 *) 7363 pic_mode=default 7364 # Look at the argument we got. We use all the common list separators. 7365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7366 for lt_pkg in $withval; do 7367 IFS="$lt_save_ifs" 7368 if test "X$lt_pkg" = "X$lt_p"; then 7369 pic_mode=yes 7370 fi 7371 done 7372 IFS="$lt_save_ifs" 7373 ;; 7374 esac 7375else 7376 pic_mode=default 7377fi 7378 7379 7380test -z "$pic_mode" && pic_mode=default 7381 7382 7383 7384 7385 7386 7387 7388 # Check whether --enable-fast-install was given. 7389if test "${enable_fast_install+set}" = set; then : 7390 enableval=$enable_fast_install; p=${PACKAGE-default} 7391 case $enableval in 7392 yes) enable_fast_install=yes ;; 7393 no) enable_fast_install=no ;; 7394 *) 7395 enable_fast_install=no 7396 # Look at the argument we got. We use all the common list separators. 7397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7398 for pkg in $enableval; do 7399 IFS="$lt_save_ifs" 7400 if test "X$pkg" = "X$p"; then 7401 enable_fast_install=yes 7402 fi 7403 done 7404 IFS="$lt_save_ifs" 7405 ;; 7406 esac 7407else 7408 enable_fast_install=yes 7409fi 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421# This can be used to rebuild libtool when needed 7422LIBTOOL_DEPS="$ltmain" 7423 7424# Always use our own libtool. 7425LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456test -z "$LN_S" && LN_S="ln -s" 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471if test -n "${ZSH_VERSION+set}" ; then 7472 setopt NO_GLOB_SUBST 7473fi 7474 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7476$as_echo_n "checking for objdir... " >&6; } 7477if ${lt_cv_objdir+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 rm -f .libs 2>/dev/null 7481mkdir .libs 2>/dev/null 7482if test -d .libs; then 7483 lt_cv_objdir=.libs 7484else 7485 # MS-DOS does not allow filenames that begin with a dot. 7486 lt_cv_objdir=_libs 7487fi 7488rmdir .libs 2>/dev/null 7489fi 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7491$as_echo "$lt_cv_objdir" >&6; } 7492objdir=$lt_cv_objdir 7493 7494 7495 7496 7497 7498cat >>confdefs.h <<_ACEOF 7499#define LT_OBJDIR "$lt_cv_objdir/" 7500_ACEOF 7501 7502 7503 7504 7505case $host_os in 7506aix3*) 7507 # AIX sometimes has problems with the GCC collect2 program. For some 7508 # reason, if we set the COLLECT_NAMES environment variable, the problems 7509 # vanish in a puff of smoke. 7510 if test "X${COLLECT_NAMES+set}" != Xset; then 7511 COLLECT_NAMES= 7512 export COLLECT_NAMES 7513 fi 7514 ;; 7515esac 7516 7517# Global variables: 7518ofile=libtool 7519can_build_shared=yes 7520 7521# All known linkers require a `.a' archive for static linking (except MSVC, 7522# which needs '.lib'). 7523libext=a 7524 7525with_gnu_ld="$lt_cv_prog_gnu_ld" 7526 7527old_CC="$CC" 7528old_CFLAGS="$CFLAGS" 7529 7530# Set sane defaults for various variables 7531test -z "$CC" && CC=cc 7532test -z "$LTCC" && LTCC=$CC 7533test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7534test -z "$LD" && LD=ld 7535test -z "$ac_objext" && ac_objext=o 7536 7537for cc_temp in $compiler""; do 7538 case $cc_temp in 7539 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7540 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7541 \-*) ;; 7542 *) break;; 7543 esac 7544done 7545cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7546 7547 7548# Only perform the check for file, if the check method requires it 7549test -z "$MAGIC_CMD" && MAGIC_CMD=file 7550case $deplibs_check_method in 7551file_magic*) 7552 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7554$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7555if ${lt_cv_path_MAGIC_CMD+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 case $MAGIC_CMD in 7559[\\/*] | ?:[\\/]*) 7560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7561 ;; 7562*) 7563 lt_save_MAGIC_CMD="$MAGIC_CMD" 7564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7565 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7566 for ac_dir in $ac_dummy; do 7567 IFS="$lt_save_ifs" 7568 test -z "$ac_dir" && ac_dir=. 7569 if test -f $ac_dir/${ac_tool_prefix}file; then 7570 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7571 if test -n "$file_magic_test_file"; then 7572 case $deplibs_check_method in 7573 "file_magic "*) 7574 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7577 $EGREP "$file_magic_regex" > /dev/null; then 7578 : 7579 else 7580 cat <<_LT_EOF 1>&2 7581 7582*** Warning: the command libtool uses to detect shared libraries, 7583*** $file_magic_cmd, produces output that libtool cannot recognize. 7584*** The result is that libtool may fail to recognize shared libraries 7585*** as such. This will affect the creation of libtool libraries that 7586*** depend on shared libraries, but programs linked with such libtool 7587*** libraries will work regardless of this problem. Nevertheless, you 7588*** may want to report the problem to your system manager and/or to 7589*** bug-libtool@gnu.org 7590 7591_LT_EOF 7592 fi ;; 7593 esac 7594 fi 7595 break 7596 fi 7597 done 7598 IFS="$lt_save_ifs" 7599 MAGIC_CMD="$lt_save_MAGIC_CMD" 7600 ;; 7601esac 7602fi 7603 7604MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7605if test -n "$MAGIC_CMD"; then 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7607$as_echo "$MAGIC_CMD" >&6; } 7608else 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7610$as_echo "no" >&6; } 7611fi 7612 7613 7614 7615 7616 7617if test -z "$lt_cv_path_MAGIC_CMD"; then 7618 if test -n "$ac_tool_prefix"; then 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7620$as_echo_n "checking for file... " >&6; } 7621if ${lt_cv_path_MAGIC_CMD+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623else 7624 case $MAGIC_CMD in 7625[\\/*] | ?:[\\/]*) 7626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7627 ;; 7628*) 7629 lt_save_MAGIC_CMD="$MAGIC_CMD" 7630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7632 for ac_dir in $ac_dummy; do 7633 IFS="$lt_save_ifs" 7634 test -z "$ac_dir" && ac_dir=. 7635 if test -f $ac_dir/file; then 7636 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7637 if test -n "$file_magic_test_file"; then 7638 case $deplibs_check_method in 7639 "file_magic "*) 7640 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7643 $EGREP "$file_magic_regex" > /dev/null; then 7644 : 7645 else 7646 cat <<_LT_EOF 1>&2 7647 7648*** Warning: the command libtool uses to detect shared libraries, 7649*** $file_magic_cmd, produces output that libtool cannot recognize. 7650*** The result is that libtool may fail to recognize shared libraries 7651*** as such. This will affect the creation of libtool libraries that 7652*** depend on shared libraries, but programs linked with such libtool 7653*** libraries will work regardless of this problem. Nevertheless, you 7654*** may want to report the problem to your system manager and/or to 7655*** bug-libtool@gnu.org 7656 7657_LT_EOF 7658 fi ;; 7659 esac 7660 fi 7661 break 7662 fi 7663 done 7664 IFS="$lt_save_ifs" 7665 MAGIC_CMD="$lt_save_MAGIC_CMD" 7666 ;; 7667esac 7668fi 7669 7670MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7671if test -n "$MAGIC_CMD"; then 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7673$as_echo "$MAGIC_CMD" >&6; } 7674else 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7676$as_echo "no" >&6; } 7677fi 7678 7679 7680 else 7681 MAGIC_CMD=: 7682 fi 7683fi 7684 7685 fi 7686 ;; 7687esac 7688 7689# Use C for the default configuration in the libtool script 7690 7691lt_save_CC="$CC" 7692ac_ext=c 7693ac_cpp='$CPP $CPPFLAGS' 7694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7696ac_compiler_gnu=$ac_cv_c_compiler_gnu 7697 7698 7699# Source file extension for C test sources. 7700ac_ext=c 7701 7702# Object file extension for compiled C test sources. 7703objext=o 7704objext=$objext 7705 7706# Code to be used in simple compile tests 7707lt_simple_compile_test_code="int some_variable = 0;" 7708 7709# Code to be used in simple link tests 7710lt_simple_link_test_code='int main(){return(0);}' 7711 7712 7713 7714 7715 7716 7717 7718# If no C compiler was specified, use CC. 7719LTCC=${LTCC-"$CC"} 7720 7721# If no C compiler flags were specified, use CFLAGS. 7722LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7723 7724# Allow CC to be a program name with arguments. 7725compiler=$CC 7726 7727# Save the default compiler, since it gets overwritten when the other 7728# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7729compiler_DEFAULT=$CC 7730 7731# save warnings/boilerplate of simple test code 7732ac_outfile=conftest.$ac_objext 7733echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7734eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7735_lt_compiler_boilerplate=`cat conftest.err` 7736$RM conftest* 7737 7738ac_outfile=conftest.$ac_objext 7739echo "$lt_simple_link_test_code" >conftest.$ac_ext 7740eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7741_lt_linker_boilerplate=`cat conftest.err` 7742$RM -r conftest* 7743 7744 7745## CAVEAT EMPTOR: 7746## There is no encapsulation within the following macros, do not change 7747## the running order or otherwise move them around unless you know exactly 7748## what you are doing... 7749if test -n "$compiler"; then 7750 7751lt_prog_compiler_no_builtin_flag= 7752 7753if test "$GCC" = yes; then 7754 case $cc_basename in 7755 nvcc*) 7756 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7757 *) 7758 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7759 esac 7760 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7762$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7763if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7764 $as_echo_n "(cached) " >&6 7765else 7766 lt_cv_prog_compiler_rtti_exceptions=no 7767 ac_outfile=conftest.$ac_objext 7768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7769 lt_compiler_flag="-fno-rtti -fno-exceptions" 7770 # Insert the option either (1) after the last *FLAGS variable, or 7771 # (2) before a word containing "conftest.", or (3) at the end. 7772 # Note that $ac_compile itself does not contain backslashes and begins 7773 # with a dollar sign (not a hyphen), so the echo should work correctly. 7774 # The option is referenced via a variable to avoid confusing sed. 7775 lt_compile=`echo "$ac_compile" | $SED \ 7776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7778 -e 's:$: $lt_compiler_flag:'` 7779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7780 (eval "$lt_compile" 2>conftest.err) 7781 ac_status=$? 7782 cat conftest.err >&5 7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7784 if (exit $ac_status) && test -s "$ac_outfile"; then 7785 # The compiler can only warn and ignore the option if not recognized 7786 # So say no if there are warnings other than the usual output. 7787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7790 lt_cv_prog_compiler_rtti_exceptions=yes 7791 fi 7792 fi 7793 $RM conftest* 7794 7795fi 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7797$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7798 7799if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7800 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7801else 7802 : 7803fi 7804 7805fi 7806 7807 7808 7809 7810 7811 7812 lt_prog_compiler_wl= 7813lt_prog_compiler_pic= 7814lt_prog_compiler_static= 7815 7816 7817 if test "$GCC" = yes; then 7818 lt_prog_compiler_wl='-Wl,' 7819 lt_prog_compiler_static='-static' 7820 7821 case $host_os in 7822 aix*) 7823 # All AIX code is PIC. 7824 if test "$host_cpu" = ia64; then 7825 # AIX 5 now supports IA64 processor 7826 lt_prog_compiler_static='-Bstatic' 7827 fi 7828 ;; 7829 7830 amigaos*) 7831 case $host_cpu in 7832 powerpc) 7833 # see comment about AmigaOS4 .so support 7834 lt_prog_compiler_pic='-fPIC' 7835 ;; 7836 m68k) 7837 # FIXME: we need at least 68020 code to build shared libraries, but 7838 # adding the `-m68020' flag to GCC prevents building anything better, 7839 # like `-m68040'. 7840 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7841 ;; 7842 esac 7843 ;; 7844 7845 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7846 # PIC is the default for these OSes. 7847 ;; 7848 7849 mingw* | cygwin* | pw32* | os2* | cegcc*) 7850 # This hack is so that the source file can tell whether it is being 7851 # built for inclusion in a dll (and should export symbols for example). 7852 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7853 # (--disable-auto-import) libraries 7854 lt_prog_compiler_pic='-DDLL_EXPORT' 7855 ;; 7856 7857 darwin* | rhapsody*) 7858 # PIC is the default on this platform 7859 # Common symbols not allowed in MH_DYLIB files 7860 lt_prog_compiler_pic='-fno-common' 7861 ;; 7862 7863 haiku*) 7864 # PIC is the default for Haiku. 7865 # The "-static" flag exists, but is broken. 7866 lt_prog_compiler_static= 7867 ;; 7868 7869 hpux*) 7870 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7871 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7872 # sets the default TLS model and affects inlining. 7873 case $host_cpu in 7874 hppa*64*) 7875 # +Z the default 7876 ;; 7877 *) 7878 lt_prog_compiler_pic='-fPIC' 7879 ;; 7880 esac 7881 ;; 7882 7883 interix[3-9]*) 7884 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7885 # Instead, we relocate shared libraries at runtime. 7886 ;; 7887 7888 msdosdjgpp*) 7889 # Just because we use GCC doesn't mean we suddenly get shared libraries 7890 # on systems that don't support them. 7891 lt_prog_compiler_can_build_shared=no 7892 enable_shared=no 7893 ;; 7894 7895 *nto* | *qnx*) 7896 # QNX uses GNU C++, but need to define -shared option too, otherwise 7897 # it will coredump. 7898 lt_prog_compiler_pic='-fPIC -shared' 7899 ;; 7900 7901 sysv4*MP*) 7902 if test -d /usr/nec; then 7903 lt_prog_compiler_pic=-Kconform_pic 7904 fi 7905 ;; 7906 7907 *) 7908 lt_prog_compiler_pic='-fPIC' 7909 ;; 7910 esac 7911 7912 case $cc_basename in 7913 nvcc*) # Cuda Compiler Driver 2.2 7914 lt_prog_compiler_wl='-Xlinker ' 7915 if test -n "$lt_prog_compiler_pic"; then 7916 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7917 fi 7918 ;; 7919 esac 7920 else 7921 # PORTME Check for flag to pass linker flags through the system compiler. 7922 case $host_os in 7923 aix*) 7924 lt_prog_compiler_wl='-Wl,' 7925 if test "$host_cpu" = ia64; then 7926 # AIX 5 now supports IA64 processor 7927 lt_prog_compiler_static='-Bstatic' 7928 else 7929 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7930 fi 7931 ;; 7932 7933 mingw* | cygwin* | pw32* | os2* | cegcc*) 7934 # This hack is so that the source file can tell whether it is being 7935 # built for inclusion in a dll (and should export symbols for example). 7936 lt_prog_compiler_pic='-DDLL_EXPORT' 7937 ;; 7938 7939 hpux9* | hpux10* | hpux11*) 7940 lt_prog_compiler_wl='-Wl,' 7941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7942 # not for PA HP-UX. 7943 case $host_cpu in 7944 hppa*64*|ia64*) 7945 # +Z the default 7946 ;; 7947 *) 7948 lt_prog_compiler_pic='+Z' 7949 ;; 7950 esac 7951 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7952 lt_prog_compiler_static='${wl}-a ${wl}archive' 7953 ;; 7954 7955 irix5* | irix6* | nonstopux*) 7956 lt_prog_compiler_wl='-Wl,' 7957 # PIC (with -KPIC) is the default. 7958 lt_prog_compiler_static='-non_shared' 7959 ;; 7960 7961 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7962 case $cc_basename in 7963 # old Intel for x86_64 which still supported -KPIC. 7964 ecc*) 7965 lt_prog_compiler_wl='-Wl,' 7966 lt_prog_compiler_pic='-KPIC' 7967 lt_prog_compiler_static='-static' 7968 ;; 7969 # icc used to be incompatible with GCC. 7970 # ICC 10 doesn't accept -KPIC any more. 7971 icc* | ifort*) 7972 lt_prog_compiler_wl='-Wl,' 7973 lt_prog_compiler_pic='-fPIC' 7974 lt_prog_compiler_static='-static' 7975 ;; 7976 # Lahey Fortran 8.1. 7977 lf95*) 7978 lt_prog_compiler_wl='-Wl,' 7979 lt_prog_compiler_pic='--shared' 7980 lt_prog_compiler_static='--static' 7981 ;; 7982 nagfor*) 7983 # NAG Fortran compiler 7984 lt_prog_compiler_wl='-Wl,-Wl,,' 7985 lt_prog_compiler_pic='-PIC' 7986 lt_prog_compiler_static='-Bstatic' 7987 ;; 7988 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7989 # Portland Group compilers (*not* the Pentium gcc compiler, 7990 # which looks to be a dead project) 7991 lt_prog_compiler_wl='-Wl,' 7992 lt_prog_compiler_pic='-fpic' 7993 lt_prog_compiler_static='-Bstatic' 7994 ;; 7995 ccc*) 7996 lt_prog_compiler_wl='-Wl,' 7997 # All Alpha code is PIC. 7998 lt_prog_compiler_static='-non_shared' 7999 ;; 8000 xl* | bgxl* | bgf* | mpixl*) 8001 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8002 lt_prog_compiler_wl='-Wl,' 8003 lt_prog_compiler_pic='-qpic' 8004 lt_prog_compiler_static='-qstaticlink' 8005 ;; 8006 *) 8007 case `$CC -V 2>&1 | sed 5q` in 8008 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8009 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8010 lt_prog_compiler_pic='-KPIC' 8011 lt_prog_compiler_static='-Bstatic' 8012 lt_prog_compiler_wl='' 8013 ;; 8014 *Sun\ F* | *Sun*Fortran*) 8015 lt_prog_compiler_pic='-KPIC' 8016 lt_prog_compiler_static='-Bstatic' 8017 lt_prog_compiler_wl='-Qoption ld ' 8018 ;; 8019 *Sun\ C*) 8020 # Sun C 5.9 8021 lt_prog_compiler_pic='-KPIC' 8022 lt_prog_compiler_static='-Bstatic' 8023 lt_prog_compiler_wl='-Wl,' 8024 ;; 8025 *Intel*\ [CF]*Compiler*) 8026 lt_prog_compiler_wl='-Wl,' 8027 lt_prog_compiler_pic='-fPIC' 8028 lt_prog_compiler_static='-static' 8029 ;; 8030 *Portland\ Group*) 8031 lt_prog_compiler_wl='-Wl,' 8032 lt_prog_compiler_pic='-fpic' 8033 lt_prog_compiler_static='-Bstatic' 8034 ;; 8035 esac 8036 ;; 8037 esac 8038 ;; 8039 8040 newsos6) 8041 lt_prog_compiler_pic='-KPIC' 8042 lt_prog_compiler_static='-Bstatic' 8043 ;; 8044 8045 *nto* | *qnx*) 8046 # QNX uses GNU C++, but need to define -shared option too, otherwise 8047 # it will coredump. 8048 lt_prog_compiler_pic='-fPIC -shared' 8049 ;; 8050 8051 osf3* | osf4* | osf5*) 8052 lt_prog_compiler_wl='-Wl,' 8053 # All OSF/1 code is PIC. 8054 lt_prog_compiler_static='-non_shared' 8055 ;; 8056 8057 rdos*) 8058 lt_prog_compiler_static='-non_shared' 8059 ;; 8060 8061 solaris*) 8062 lt_prog_compiler_pic='-KPIC' 8063 lt_prog_compiler_static='-Bstatic' 8064 case $cc_basename in 8065 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8066 lt_prog_compiler_wl='-Qoption ld ';; 8067 *) 8068 lt_prog_compiler_wl='-Wl,';; 8069 esac 8070 ;; 8071 8072 sunos4*) 8073 lt_prog_compiler_wl='-Qoption ld ' 8074 lt_prog_compiler_pic='-PIC' 8075 lt_prog_compiler_static='-Bstatic' 8076 ;; 8077 8078 sysv4 | sysv4.2uw2* | sysv4.3*) 8079 lt_prog_compiler_wl='-Wl,' 8080 lt_prog_compiler_pic='-KPIC' 8081 lt_prog_compiler_static='-Bstatic' 8082 ;; 8083 8084 sysv4*MP*) 8085 if test -d /usr/nec ;then 8086 lt_prog_compiler_pic='-Kconform_pic' 8087 lt_prog_compiler_static='-Bstatic' 8088 fi 8089 ;; 8090 8091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8092 lt_prog_compiler_wl='-Wl,' 8093 lt_prog_compiler_pic='-KPIC' 8094 lt_prog_compiler_static='-Bstatic' 8095 ;; 8096 8097 unicos*) 8098 lt_prog_compiler_wl='-Wl,' 8099 lt_prog_compiler_can_build_shared=no 8100 ;; 8101 8102 uts4*) 8103 lt_prog_compiler_pic='-pic' 8104 lt_prog_compiler_static='-Bstatic' 8105 ;; 8106 8107 *) 8108 lt_prog_compiler_can_build_shared=no 8109 ;; 8110 esac 8111 fi 8112 8113case $host_os in 8114 # For platforms which do not support PIC, -DPIC is meaningless: 8115 *djgpp*) 8116 lt_prog_compiler_pic= 8117 ;; 8118 *) 8119 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8120 ;; 8121esac 8122 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8124$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8125if ${lt_cv_prog_compiler_pic+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8129fi 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8131$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8132lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8133 8134# 8135# Check to make sure the PIC flag actually works. 8136# 8137if test -n "$lt_prog_compiler_pic"; then 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8139$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8140if ${lt_cv_prog_compiler_pic_works+:} false; then : 8141 $as_echo_n "(cached) " >&6 8142else 8143 lt_cv_prog_compiler_pic_works=no 8144 ac_outfile=conftest.$ac_objext 8145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8146 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8147 # Insert the option either (1) after the last *FLAGS variable, or 8148 # (2) before a word containing "conftest.", or (3) at the end. 8149 # Note that $ac_compile itself does not contain backslashes and begins 8150 # with a dollar sign (not a hyphen), so the echo should work correctly. 8151 # The option is referenced via a variable to avoid confusing sed. 8152 lt_compile=`echo "$ac_compile" | $SED \ 8153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8155 -e 's:$: $lt_compiler_flag:'` 8156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8157 (eval "$lt_compile" 2>conftest.err) 8158 ac_status=$? 8159 cat conftest.err >&5 8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8161 if (exit $ac_status) && test -s "$ac_outfile"; then 8162 # The compiler can only warn and ignore the option if not recognized 8163 # So say no if there are warnings other than the usual output. 8164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8166 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8167 lt_cv_prog_compiler_pic_works=yes 8168 fi 8169 fi 8170 $RM conftest* 8171 8172fi 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8174$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8175 8176if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8177 case $lt_prog_compiler_pic in 8178 "" | " "*) ;; 8179 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8180 esac 8181else 8182 lt_prog_compiler_pic= 8183 lt_prog_compiler_can_build_shared=no 8184fi 8185 8186fi 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198# 8199# Check to make sure the static flag actually works. 8200# 8201wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8203$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8204if ${lt_cv_prog_compiler_static_works+:} false; then : 8205 $as_echo_n "(cached) " >&6 8206else 8207 lt_cv_prog_compiler_static_works=no 8208 save_LDFLAGS="$LDFLAGS" 8209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8210 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8212 # The linker can only warn and ignore the option if not recognized 8213 # So say no if there are warnings 8214 if test -s conftest.err; then 8215 # Append any errors to the config.log. 8216 cat conftest.err 1>&5 8217 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8219 if diff conftest.exp conftest.er2 >/dev/null; then 8220 lt_cv_prog_compiler_static_works=yes 8221 fi 8222 else 8223 lt_cv_prog_compiler_static_works=yes 8224 fi 8225 fi 8226 $RM -r conftest* 8227 LDFLAGS="$save_LDFLAGS" 8228 8229fi 8230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8231$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8232 8233if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8234 : 8235else 8236 lt_prog_compiler_static= 8237fi 8238 8239 8240 8241 8242 8243 8244 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8246$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8247if ${lt_cv_prog_compiler_c_o+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249else 8250 lt_cv_prog_compiler_c_o=no 8251 $RM -r conftest 2>/dev/null 8252 mkdir conftest 8253 cd conftest 8254 mkdir out 8255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8256 8257 lt_compiler_flag="-o out/conftest2.$ac_objext" 8258 # Insert the option either (1) after the last *FLAGS variable, or 8259 # (2) before a word containing "conftest.", or (3) at the end. 8260 # Note that $ac_compile itself does not contain backslashes and begins 8261 # with a dollar sign (not a hyphen), so the echo should work correctly. 8262 lt_compile=`echo "$ac_compile" | $SED \ 8263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8265 -e 's:$: $lt_compiler_flag:'` 8266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8267 (eval "$lt_compile" 2>out/conftest.err) 8268 ac_status=$? 8269 cat out/conftest.err >&5 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8271 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8272 then 8273 # The compiler can only warn and ignore the option if not recognized 8274 # So say no if there are warnings 8275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8276 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8277 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8278 lt_cv_prog_compiler_c_o=yes 8279 fi 8280 fi 8281 chmod u+w . 2>&5 8282 $RM conftest* 8283 # SGI C++ compiler will create directory out/ii_files/ for 8284 # template instantiation 8285 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8286 $RM out/* && rmdir out 8287 cd .. 8288 $RM -r conftest 8289 $RM conftest* 8290 8291fi 8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8293$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8294 8295 8296 8297 8298 8299 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8301$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8302if ${lt_cv_prog_compiler_c_o+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 lt_cv_prog_compiler_c_o=no 8306 $RM -r conftest 2>/dev/null 8307 mkdir conftest 8308 cd conftest 8309 mkdir out 8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8311 8312 lt_compiler_flag="-o out/conftest2.$ac_objext" 8313 # Insert the option either (1) after the last *FLAGS variable, or 8314 # (2) before a word containing "conftest.", or (3) at the end. 8315 # Note that $ac_compile itself does not contain backslashes and begins 8316 # with a dollar sign (not a hyphen), so the echo should work correctly. 8317 lt_compile=`echo "$ac_compile" | $SED \ 8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8320 -e 's:$: $lt_compiler_flag:'` 8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8322 (eval "$lt_compile" 2>out/conftest.err) 8323 ac_status=$? 8324 cat out/conftest.err >&5 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8327 then 8328 # The compiler can only warn and ignore the option if not recognized 8329 # So say no if there are warnings 8330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8333 lt_cv_prog_compiler_c_o=yes 8334 fi 8335 fi 8336 chmod u+w . 2>&5 8337 $RM conftest* 8338 # SGI C++ compiler will create directory out/ii_files/ for 8339 # template instantiation 8340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8341 $RM out/* && rmdir out 8342 cd .. 8343 $RM -r conftest 8344 $RM conftest* 8345 8346fi 8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8348$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8349 8350 8351 8352 8353hard_links="nottested" 8354if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8355 # do not overwrite the value of need_locks provided by the user 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8357$as_echo_n "checking if we can lock with hard links... " >&6; } 8358 hard_links=yes 8359 $RM conftest* 8360 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8361 touch conftest.a 8362 ln conftest.a conftest.b 2>&5 || hard_links=no 8363 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8365$as_echo "$hard_links" >&6; } 8366 if test "$hard_links" = no; then 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8368$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8369 need_locks=warn 8370 fi 8371else 8372 need_locks=no 8373fi 8374 8375 8376 8377 8378 8379 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8381$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8382 8383 runpath_var= 8384 allow_undefined_flag= 8385 always_export_symbols=no 8386 archive_cmds= 8387 archive_expsym_cmds= 8388 compiler_needs_object=no 8389 enable_shared_with_static_runtimes=no 8390 export_dynamic_flag_spec= 8391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8392 hardcode_automatic=no 8393 hardcode_direct=no 8394 hardcode_direct_absolute=no 8395 hardcode_libdir_flag_spec= 8396 hardcode_libdir_separator= 8397 hardcode_minus_L=no 8398 hardcode_shlibpath_var=unsupported 8399 inherit_rpath=no 8400 link_all_deplibs=unknown 8401 module_cmds= 8402 module_expsym_cmds= 8403 old_archive_from_new_cmds= 8404 old_archive_from_expsyms_cmds= 8405 thread_safe_flag_spec= 8406 whole_archive_flag_spec= 8407 # include_expsyms should be a list of space-separated symbols to be *always* 8408 # included in the symbol list 8409 include_expsyms= 8410 # exclude_expsyms can be an extended regexp of symbols to exclude 8411 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8412 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8413 # as well as any symbol that contains `d'. 8414 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8415 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8416 # platforms (ab)use it in PIC code, but their linkers get confused if 8417 # the symbol is explicitly referenced. Since portable code cannot 8418 # rely on this symbol name, it's probably fine to never include it in 8419 # preloaded symbol tables. 8420 # Exclude shared library initialization/finalization symbols. 8421 extract_expsyms_cmds= 8422 8423 case $host_os in 8424 cygwin* | mingw* | pw32* | cegcc*) 8425 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8426 # When not using gcc, we currently assume that we are using 8427 # Microsoft Visual C++. 8428 if test "$GCC" != yes; then 8429 with_gnu_ld=no 8430 fi 8431 ;; 8432 interix*) 8433 # we just hope/assume this is gcc and not c89 (= MSVC++) 8434 with_gnu_ld=yes 8435 ;; 8436 openbsd*) 8437 with_gnu_ld=no 8438 ;; 8439 esac 8440 8441 ld_shlibs=yes 8442 8443 # On some targets, GNU ld is compatible enough with the native linker 8444 # that we're better off using the native interface for both. 8445 lt_use_gnu_ld_interface=no 8446 if test "$with_gnu_ld" = yes; then 8447 case $host_os in 8448 aix*) 8449 # The AIX port of GNU ld has always aspired to compatibility 8450 # with the native linker. However, as the warning in the GNU ld 8451 # block says, versions before 2.19.5* couldn't really create working 8452 # shared libraries, regardless of the interface used. 8453 case `$LD -v 2>&1` in 8454 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8455 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8456 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8457 *) 8458 lt_use_gnu_ld_interface=yes 8459 ;; 8460 esac 8461 ;; 8462 *) 8463 lt_use_gnu_ld_interface=yes 8464 ;; 8465 esac 8466 fi 8467 8468 if test "$lt_use_gnu_ld_interface" = yes; then 8469 # If archive_cmds runs LD, not CC, wlarc should be empty 8470 wlarc='${wl}' 8471 8472 # Set some defaults for GNU ld with shared library support. These 8473 # are reset later if shared libraries are not supported. Putting them 8474 # here allows them to be overridden if necessary. 8475 runpath_var=LD_RUN_PATH 8476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8477 export_dynamic_flag_spec='${wl}--export-dynamic' 8478 # ancient GNU ld didn't support --whole-archive et. al. 8479 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8480 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8481 else 8482 whole_archive_flag_spec= 8483 fi 8484 supports_anon_versioning=no 8485 case `$LD -v 2>&1` in 8486 *GNU\ gold*) supports_anon_versioning=yes ;; 8487 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8488 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8489 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8490 *\ 2.11.*) ;; # other 2.11 versions 8491 *) supports_anon_versioning=yes ;; 8492 esac 8493 8494 # See if GNU ld supports shared libraries. 8495 case $host_os in 8496 aix[3-9]*) 8497 # On AIX/PPC, the GNU linker is very broken 8498 if test "$host_cpu" != ia64; then 8499 ld_shlibs=no 8500 cat <<_LT_EOF 1>&2 8501 8502*** Warning: the GNU linker, at least up to release 2.19, is reported 8503*** to be unable to reliably create shared libraries on AIX. 8504*** Therefore, libtool is disabling shared libraries support. If you 8505*** really care for shared libraries, you may want to install binutils 8506*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8507*** You will then need to restart the configuration process. 8508 8509_LT_EOF 8510 fi 8511 ;; 8512 8513 amigaos*) 8514 case $host_cpu in 8515 powerpc) 8516 # see comment about AmigaOS4 .so support 8517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8518 archive_expsym_cmds='' 8519 ;; 8520 m68k) 8521 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)' 8522 hardcode_libdir_flag_spec='-L$libdir' 8523 hardcode_minus_L=yes 8524 ;; 8525 esac 8526 ;; 8527 8528 beos*) 8529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8530 allow_undefined_flag=unsupported 8531 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8532 # support --undefined. This deserves some investigation. FIXME 8533 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8534 else 8535 ld_shlibs=no 8536 fi 8537 ;; 8538 8539 cygwin* | mingw* | pw32* | cegcc*) 8540 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8541 # as there is no search path for DLLs. 8542 hardcode_libdir_flag_spec='-L$libdir' 8543 export_dynamic_flag_spec='${wl}--export-all-symbols' 8544 allow_undefined_flag=unsupported 8545 always_export_symbols=no 8546 enable_shared_with_static_runtimes=yes 8547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8548 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8549 8550 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8552 # If the export-symbols file already is a .def file (1st line 8553 # is EXPORTS), use it as is; otherwise, prepend... 8554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8555 cp $export_symbols $output_objdir/$soname.def; 8556 else 8557 echo EXPORTS > $output_objdir/$soname.def; 8558 cat $export_symbols >> $output_objdir/$soname.def; 8559 fi~ 8560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8561 else 8562 ld_shlibs=no 8563 fi 8564 ;; 8565 8566 haiku*) 8567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8568 link_all_deplibs=yes 8569 ;; 8570 8571 interix[3-9]*) 8572 hardcode_direct=no 8573 hardcode_shlibpath_var=no 8574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8575 export_dynamic_flag_spec='${wl}-E' 8576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8577 # Instead, shared libraries are loaded at an image base (0x10000000 by 8578 # default) and relocated if they conflict, which is a slow very memory 8579 # consuming and fragmenting process. To avoid this, we pick a random, 8580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8581 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8583 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' 8584 ;; 8585 8586 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8587 tmp_diet=no 8588 if test "$host_os" = linux-dietlibc; then 8589 case $cc_basename in 8590 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8591 esac 8592 fi 8593 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8594 && test "$tmp_diet" = no 8595 then 8596 tmp_addflag=' $pic_flag' 8597 tmp_sharedflag='-shared' 8598 case $cc_basename,$host_cpu in 8599 pgcc*) # Portland Group C compiler 8600 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8601 tmp_addflag=' $pic_flag' 8602 ;; 8603 pgf77* | pgf90* | pgf95* | pgfortran*) 8604 # Portland Group f77 and f90 compilers 8605 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8606 tmp_addflag=' $pic_flag -Mnomain' ;; 8607 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8608 tmp_addflag=' -i_dynamic' ;; 8609 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8610 tmp_addflag=' -i_dynamic -nofor_main' ;; 8611 ifc* | ifort*) # Intel Fortran compiler 8612 tmp_addflag=' -nofor_main' ;; 8613 lf95*) # Lahey Fortran 8.1 8614 whole_archive_flag_spec= 8615 tmp_sharedflag='--shared' ;; 8616 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8617 tmp_sharedflag='-qmkshrobj' 8618 tmp_addflag= ;; 8619 nvcc*) # Cuda Compiler Driver 2.2 8620 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8621 compiler_needs_object=yes 8622 ;; 8623 esac 8624 case `$CC -V 2>&1 | sed 5q` in 8625 *Sun\ C*) # Sun C 5.9 8626 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8627 compiler_needs_object=yes 8628 tmp_sharedflag='-G' ;; 8629 *Sun\ F*) # Sun Fortran 8.3 8630 tmp_sharedflag='-G' ;; 8631 esac 8632 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8633 8634 if test "x$supports_anon_versioning" = xyes; then 8635 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8637 echo "local: *; };" >> $output_objdir/$libname.ver~ 8638 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8639 fi 8640 8641 case $cc_basename in 8642 xlf* | bgf* | bgxlf* | mpixlf*) 8643 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8644 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8646 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8647 if test "x$supports_anon_versioning" = xyes; then 8648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8650 echo "local: *; };" >> $output_objdir/$libname.ver~ 8651 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8652 fi 8653 ;; 8654 esac 8655 else 8656 ld_shlibs=no 8657 fi 8658 ;; 8659 8660 netbsd*) 8661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8662 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8663 wlarc= 8664 else 8665 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8666 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8667 fi 8668 ;; 8669 8670 solaris*) 8671 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8672 ld_shlibs=no 8673 cat <<_LT_EOF 1>&2 8674 8675*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8676*** create shared libraries on Solaris systems. Therefore, libtool 8677*** is disabling shared libraries support. We urge you to upgrade GNU 8678*** binutils to release 2.9.1 or newer. Another option is to modify 8679*** your PATH or compiler configuration so that the native linker is 8680*** used, and then restart. 8681 8682_LT_EOF 8683 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8686 else 8687 ld_shlibs=no 8688 fi 8689 ;; 8690 8691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8692 case `$LD -v 2>&1` in 8693 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8694 ld_shlibs=no 8695 cat <<_LT_EOF 1>&2 8696 8697*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8698*** reliably create shared libraries on SCO systems. Therefore, libtool 8699*** is disabling shared libraries support. We urge you to upgrade GNU 8700*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8701*** your PATH or compiler configuration so that the native linker is 8702*** used, and then restart. 8703 8704_LT_EOF 8705 ;; 8706 *) 8707 # For security reasons, it is highly recommended that you always 8708 # use absolute paths for naming shared libraries, and exclude the 8709 # DT_RUNPATH tag from executables and libraries. But doing so 8710 # requires that you compile everything twice, which is a pain. 8711 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8715 else 8716 ld_shlibs=no 8717 fi 8718 ;; 8719 esac 8720 ;; 8721 8722 sunos4*) 8723 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8724 wlarc= 8725 hardcode_direct=yes 8726 hardcode_shlibpath_var=no 8727 ;; 8728 8729 *) 8730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8732 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8733 else 8734 ld_shlibs=no 8735 fi 8736 ;; 8737 esac 8738 8739 if test "$ld_shlibs" = no; then 8740 runpath_var= 8741 hardcode_libdir_flag_spec= 8742 export_dynamic_flag_spec= 8743 whole_archive_flag_spec= 8744 fi 8745 else 8746 # PORTME fill in a description of your system's linker (not GNU ld) 8747 case $host_os in 8748 aix3*) 8749 allow_undefined_flag=unsupported 8750 always_export_symbols=yes 8751 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' 8752 # Note: this linker hardcodes the directories in LIBPATH if there 8753 # are no directories specified by -L. 8754 hardcode_minus_L=yes 8755 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8756 # Neither direct hardcoding nor static linking is supported with a 8757 # broken collect2. 8758 hardcode_direct=unsupported 8759 fi 8760 ;; 8761 8762 aix[4-9]*) 8763 if test "$host_cpu" = ia64; then 8764 # On IA64, the linker does run time linking by default, so we don't 8765 # have to do anything special. 8766 aix_use_runtimelinking=no 8767 exp_sym_flag='-Bexport' 8768 no_entry_flag="" 8769 else 8770 # If we're using GNU nm, then we don't want the "-C" option. 8771 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8772 # Also, AIX nm treats weak defined symbols like other global 8773 # defined symbols, whereas GNU nm marks them as "W". 8774 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8775 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8776 else 8777 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' 8778 fi 8779 aix_use_runtimelinking=no 8780 8781 # Test if we are trying to use run time linking or normal 8782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8783 # need to do runtime linking. 8784 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8785 for ld_flag in $LDFLAGS; do 8786 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8787 aix_use_runtimelinking=yes 8788 break 8789 fi 8790 done 8791 ;; 8792 esac 8793 8794 exp_sym_flag='-bexport' 8795 no_entry_flag='-bnoentry' 8796 fi 8797 8798 # When large executables or shared objects are built, AIX ld can 8799 # have problems creating the table of contents. If linking a library 8800 # or program results in "error TOC overflow" add -mminimal-toc to 8801 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8802 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8803 8804 archive_cmds='' 8805 hardcode_direct=yes 8806 hardcode_direct_absolute=yes 8807 hardcode_libdir_separator=':' 8808 link_all_deplibs=yes 8809 file_list_spec='${wl}-f,' 8810 8811 if test "$GCC" = yes; then 8812 case $host_os in aix4.[012]|aix4.[012].*) 8813 # We only want to do this on AIX 4.2 and lower, the check 8814 # below for broken collect2 doesn't work under 4.3+ 8815 collect2name=`${CC} -print-prog-name=collect2` 8816 if test -f "$collect2name" && 8817 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8818 then 8819 # We have reworked collect2 8820 : 8821 else 8822 # We have old collect2 8823 hardcode_direct=unsupported 8824 # It fails to find uninstalled libraries when the uninstalled 8825 # path is not listed in the libpath. Setting hardcode_minus_L 8826 # to unsupported forces relinking 8827 hardcode_minus_L=yes 8828 hardcode_libdir_flag_spec='-L$libdir' 8829 hardcode_libdir_separator= 8830 fi 8831 ;; 8832 esac 8833 shared_flag='-shared' 8834 if test "$aix_use_runtimelinking" = yes; then 8835 shared_flag="$shared_flag "'${wl}-G' 8836 fi 8837 else 8838 # not using gcc 8839 if test "$host_cpu" = ia64; then 8840 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8841 # chokes on -Wl,-G. The following line is correct: 8842 shared_flag='-G' 8843 else 8844 if test "$aix_use_runtimelinking" = yes; then 8845 shared_flag='${wl}-G' 8846 else 8847 shared_flag='${wl}-bM:SRE' 8848 fi 8849 fi 8850 fi 8851 8852 export_dynamic_flag_spec='${wl}-bexpall' 8853 # It seems that -bexpall does not export symbols beginning with 8854 # underscore (_), so it is better to generate a list of symbols to export. 8855 always_export_symbols=yes 8856 if test "$aix_use_runtimelinking" = yes; then 8857 # Warning - without using the other runtime loading flags (-brtl), 8858 # -berok will link without error, but may produce a broken library. 8859 allow_undefined_flag='-berok' 8860 # Determine the default libpath from the value encoded in an 8861 # empty executable. 8862 if test "${lt_cv_aix_libpath+set}" = set; then 8863 aix_libpath=$lt_cv_aix_libpath 8864else 8865 if ${lt_cv_aix_libpath_+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8869/* end confdefs.h. */ 8870 8871int 8872main () 8873{ 8874 8875 ; 8876 return 0; 8877} 8878_ACEOF 8879if ac_fn_c_try_link "$LINENO"; then : 8880 8881 lt_aix_libpath_sed=' 8882 /Import File Strings/,/^$/ { 8883 /^0/ { 8884 s/^0 *\([^ ]*\) *$/\1/ 8885 p 8886 } 8887 }' 8888 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8889 # Check for a 64-bit object if we didn't find anything. 8890 if test -z "$lt_cv_aix_libpath_"; then 8891 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8892 fi 8893fi 8894rm -f core conftest.err conftest.$ac_objext \ 8895 conftest$ac_exeext conftest.$ac_ext 8896 if test -z "$lt_cv_aix_libpath_"; then 8897 lt_cv_aix_libpath_="/usr/lib:/lib" 8898 fi 8899 8900fi 8901 8902 aix_libpath=$lt_cv_aix_libpath_ 8903fi 8904 8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8906 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8907 else 8908 if test "$host_cpu" = ia64; then 8909 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8910 allow_undefined_flag="-z nodefs" 8911 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" 8912 else 8913 # Determine the default libpath from the value encoded in an 8914 # empty executable. 8915 if test "${lt_cv_aix_libpath+set}" = set; then 8916 aix_libpath=$lt_cv_aix_libpath 8917else 8918 if ${lt_cv_aix_libpath_+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8922/* end confdefs.h. */ 8923 8924int 8925main () 8926{ 8927 8928 ; 8929 return 0; 8930} 8931_ACEOF 8932if ac_fn_c_try_link "$LINENO"; then : 8933 8934 lt_aix_libpath_sed=' 8935 /Import File Strings/,/^$/ { 8936 /^0/ { 8937 s/^0 *\([^ ]*\) *$/\1/ 8938 p 8939 } 8940 }' 8941 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8942 # Check for a 64-bit object if we didn't find anything. 8943 if test -z "$lt_cv_aix_libpath_"; then 8944 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8945 fi 8946fi 8947rm -f core conftest.err conftest.$ac_objext \ 8948 conftest$ac_exeext conftest.$ac_ext 8949 if test -z "$lt_cv_aix_libpath_"; then 8950 lt_cv_aix_libpath_="/usr/lib:/lib" 8951 fi 8952 8953fi 8954 8955 aix_libpath=$lt_cv_aix_libpath_ 8956fi 8957 8958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8959 # Warning - without using the other run time loading flags, 8960 # -berok will link without error, but may produce a broken library. 8961 no_undefined_flag=' ${wl}-bernotok' 8962 allow_undefined_flag=' ${wl}-berok' 8963 if test "$with_gnu_ld" = yes; then 8964 # We only use this code for GNU lds that support --whole-archive. 8965 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8966 else 8967 # Exported symbols can be pulled into shared objects from archives 8968 whole_archive_flag_spec='$convenience' 8969 fi 8970 archive_cmds_need_lc=yes 8971 # This is similar to how AIX traditionally builds its shared libraries. 8972 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' 8973 fi 8974 fi 8975 ;; 8976 8977 amigaos*) 8978 case $host_cpu in 8979 powerpc) 8980 # see comment about AmigaOS4 .so support 8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8982 archive_expsym_cmds='' 8983 ;; 8984 m68k) 8985 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)' 8986 hardcode_libdir_flag_spec='-L$libdir' 8987 hardcode_minus_L=yes 8988 ;; 8989 esac 8990 ;; 8991 8992 bsdi[45]*) 8993 export_dynamic_flag_spec=-rdynamic 8994 ;; 8995 8996 cygwin* | mingw* | pw32* | cegcc*) 8997 # When not using gcc, we currently assume that we are using 8998 # Microsoft Visual C++. 8999 # hardcode_libdir_flag_spec is actually meaningless, as there is 9000 # no search path for DLLs. 9001 case $cc_basename in 9002 cl*) 9003 # Native MSVC 9004 hardcode_libdir_flag_spec=' ' 9005 allow_undefined_flag=unsupported 9006 always_export_symbols=yes 9007 file_list_spec='@' 9008 # Tell ltmain to make .lib files, not .a files. 9009 libext=lib 9010 # Tell ltmain to make .dll files, not .so files. 9011 shrext_cmds=".dll" 9012 # FIXME: Setting linknames here is a bad hack. 9013 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9014 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9015 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9016 else 9017 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9018 fi~ 9019 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9020 linknames=' 9021 # The linker will not automatically build a static lib if we build a DLL. 9022 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9023 enable_shared_with_static_runtimes=yes 9024 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9026 # Don't use ranlib 9027 old_postinstall_cmds='chmod 644 $oldlib' 9028 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9029 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9030 case $lt_outputfile in 9031 *.exe|*.EXE) ;; 9032 *) 9033 lt_outputfile="$lt_outputfile.exe" 9034 lt_tool_outputfile="$lt_tool_outputfile.exe" 9035 ;; 9036 esac~ 9037 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9038 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9039 $RM "$lt_outputfile.manifest"; 9040 fi' 9041 ;; 9042 *) 9043 # Assume MSVC wrapper 9044 hardcode_libdir_flag_spec=' ' 9045 allow_undefined_flag=unsupported 9046 # Tell ltmain to make .lib files, not .a files. 9047 libext=lib 9048 # Tell ltmain to make .dll files, not .so files. 9049 shrext_cmds=".dll" 9050 # FIXME: Setting linknames here is a bad hack. 9051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9052 # The linker will automatically build a .lib file if we build a DLL. 9053 old_archive_from_new_cmds='true' 9054 # FIXME: Should let the user specify the lib program. 9055 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9056 enable_shared_with_static_runtimes=yes 9057 ;; 9058 esac 9059 ;; 9060 9061 darwin* | rhapsody*) 9062 9063 9064 archive_cmds_need_lc=no 9065 hardcode_direct=no 9066 hardcode_automatic=yes 9067 hardcode_shlibpath_var=unsupported 9068 if test "$lt_cv_ld_force_load" = "yes"; then 9069 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9070 9071 else 9072 whole_archive_flag_spec='' 9073 fi 9074 link_all_deplibs=yes 9075 allow_undefined_flag="$_lt_dar_allow_undefined" 9076 case $cc_basename in 9077 ifort*) _lt_dar_can_shared=yes ;; 9078 *) _lt_dar_can_shared=$GCC ;; 9079 esac 9080 if test "$_lt_dar_can_shared" = "yes"; then 9081 output_verbose_link_cmd=func_echo_all 9082 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9083 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9084 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}" 9085 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}" 9086 9087 else 9088 ld_shlibs=no 9089 fi 9090 9091 ;; 9092 9093 dgux*) 9094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9095 hardcode_libdir_flag_spec='-L$libdir' 9096 hardcode_shlibpath_var=no 9097 ;; 9098 9099 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9100 # support. Future versions do this automatically, but an explicit c++rt0.o 9101 # does not break anything, and helps significantly (at the cost of a little 9102 # extra space). 9103 freebsd2.2*) 9104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9105 hardcode_libdir_flag_spec='-R$libdir' 9106 hardcode_direct=yes 9107 hardcode_shlibpath_var=no 9108 ;; 9109 9110 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9111 freebsd2.*) 9112 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9113 hardcode_direct=yes 9114 hardcode_minus_L=yes 9115 hardcode_shlibpath_var=no 9116 ;; 9117 9118 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9119 freebsd* | dragonfly*) 9120 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9121 hardcode_libdir_flag_spec='-R$libdir' 9122 hardcode_direct=yes 9123 hardcode_shlibpath_var=no 9124 ;; 9125 9126 hpux9*) 9127 if test "$GCC" = yes; then 9128 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9129 else 9130 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' 9131 fi 9132 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9133 hardcode_libdir_separator=: 9134 hardcode_direct=yes 9135 9136 # hardcode_minus_L: Not really in the search PATH, 9137 # but as the default location of the library. 9138 hardcode_minus_L=yes 9139 export_dynamic_flag_spec='${wl}-E' 9140 ;; 9141 9142 hpux10*) 9143 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9144 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9145 else 9146 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9147 fi 9148 if test "$with_gnu_ld" = no; then 9149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9150 hardcode_libdir_separator=: 9151 hardcode_direct=yes 9152 hardcode_direct_absolute=yes 9153 export_dynamic_flag_spec='${wl}-E' 9154 # hardcode_minus_L: Not really in the search PATH, 9155 # but as the default location of the library. 9156 hardcode_minus_L=yes 9157 fi 9158 ;; 9159 9160 hpux11*) 9161 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9162 case $host_cpu in 9163 hppa*64*) 9164 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9165 ;; 9166 ia64*) 9167 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9168 ;; 9169 *) 9170 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9171 ;; 9172 esac 9173 else 9174 case $host_cpu in 9175 hppa*64*) 9176 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9177 ;; 9178 ia64*) 9179 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9180 ;; 9181 *) 9182 9183 # Older versions of the 11.00 compiler do not understand -b yet 9184 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9186$as_echo_n "checking if $CC understands -b... " >&6; } 9187if ${lt_cv_prog_compiler__b+:} false; then : 9188 $as_echo_n "(cached) " >&6 9189else 9190 lt_cv_prog_compiler__b=no 9191 save_LDFLAGS="$LDFLAGS" 9192 LDFLAGS="$LDFLAGS -b" 9193 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9195 # The linker can only warn and ignore the option if not recognized 9196 # So say no if there are warnings 9197 if test -s conftest.err; then 9198 # Append any errors to the config.log. 9199 cat conftest.err 1>&5 9200 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9202 if diff conftest.exp conftest.er2 >/dev/null; then 9203 lt_cv_prog_compiler__b=yes 9204 fi 9205 else 9206 lt_cv_prog_compiler__b=yes 9207 fi 9208 fi 9209 $RM -r conftest* 9210 LDFLAGS="$save_LDFLAGS" 9211 9212fi 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9214$as_echo "$lt_cv_prog_compiler__b" >&6; } 9215 9216if test x"$lt_cv_prog_compiler__b" = xyes; then 9217 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9218else 9219 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9220fi 9221 9222 ;; 9223 esac 9224 fi 9225 if test "$with_gnu_ld" = no; then 9226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9227 hardcode_libdir_separator=: 9228 9229 case $host_cpu in 9230 hppa*64*|ia64*) 9231 hardcode_direct=no 9232 hardcode_shlibpath_var=no 9233 ;; 9234 *) 9235 hardcode_direct=yes 9236 hardcode_direct_absolute=yes 9237 export_dynamic_flag_spec='${wl}-E' 9238 9239 # hardcode_minus_L: Not really in the search PATH, 9240 # but as the default location of the library. 9241 hardcode_minus_L=yes 9242 ;; 9243 esac 9244 fi 9245 ;; 9246 9247 irix5* | irix6* | nonstopux*) 9248 if test "$GCC" = yes; then 9249 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9250 # Try to use the -exported_symbol ld option, if it does not 9251 # work, assume that -exports_file does not work either and 9252 # implicitly export all symbols. 9253 # This should be the same for all languages, so no per-tag cache variable. 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9255$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9256if ${lt_cv_irix_exported_symbol+:} false; then : 9257 $as_echo_n "(cached) " >&6 9258else 9259 save_LDFLAGS="$LDFLAGS" 9260 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262/* end confdefs.h. */ 9263int foo (void) { return 0; } 9264_ACEOF 9265if ac_fn_c_try_link "$LINENO"; then : 9266 lt_cv_irix_exported_symbol=yes 9267else 9268 lt_cv_irix_exported_symbol=no 9269fi 9270rm -f core conftest.err conftest.$ac_objext \ 9271 conftest$ac_exeext conftest.$ac_ext 9272 LDFLAGS="$save_LDFLAGS" 9273fi 9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9275$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9276 if test "$lt_cv_irix_exported_symbol" = yes; then 9277 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9278 fi 9279 else 9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9282 fi 9283 archive_cmds_need_lc='no' 9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9285 hardcode_libdir_separator=: 9286 inherit_rpath=yes 9287 link_all_deplibs=yes 9288 ;; 9289 9290 netbsd*) 9291 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9293 else 9294 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9295 fi 9296 hardcode_libdir_flag_spec='-R$libdir' 9297 hardcode_direct=yes 9298 hardcode_shlibpath_var=no 9299 ;; 9300 9301 newsos6) 9302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9303 hardcode_direct=yes 9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9305 hardcode_libdir_separator=: 9306 hardcode_shlibpath_var=no 9307 ;; 9308 9309 *nto* | *qnx*) 9310 ;; 9311 9312 openbsd*) 9313 if test -f /usr/libexec/ld.so; then 9314 hardcode_direct=yes 9315 hardcode_shlibpath_var=no 9316 hardcode_direct_absolute=yes 9317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9319 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9321 export_dynamic_flag_spec='${wl}-E' 9322 else 9323 case $host_os in 9324 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9326 hardcode_libdir_flag_spec='-R$libdir' 9327 ;; 9328 *) 9329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9330 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9331 ;; 9332 esac 9333 fi 9334 else 9335 ld_shlibs=no 9336 fi 9337 ;; 9338 9339 os2*) 9340 hardcode_libdir_flag_spec='-L$libdir' 9341 hardcode_minus_L=yes 9342 allow_undefined_flag=unsupported 9343 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' 9344 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9345 ;; 9346 9347 osf3*) 9348 if test "$GCC" = yes; then 9349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9350 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9351 else 9352 allow_undefined_flag=' -expect_unresolved \*' 9353 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9354 fi 9355 archive_cmds_need_lc='no' 9356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9357 hardcode_libdir_separator=: 9358 ;; 9359 9360 osf4* | osf5*) # as osf3* with the addition of -msym flag 9361 if test "$GCC" = yes; then 9362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9363 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9365 else 9366 allow_undefined_flag=' -expect_unresolved \*' 9367 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9368 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9369 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9370 9371 # Both c and cxx compiler support -rpath directly 9372 hardcode_libdir_flag_spec='-rpath $libdir' 9373 fi 9374 archive_cmds_need_lc='no' 9375 hardcode_libdir_separator=: 9376 ;; 9377 9378 solaris*) 9379 no_undefined_flag=' -z defs' 9380 if test "$GCC" = yes; then 9381 wlarc='${wl}' 9382 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9383 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9384 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9385 else 9386 case `$CC -V 2>&1` in 9387 *"Compilers 5.0"*) 9388 wlarc='' 9389 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9390 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9391 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9392 ;; 9393 *) 9394 wlarc='${wl}' 9395 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9397 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9398 ;; 9399 esac 9400 fi 9401 hardcode_libdir_flag_spec='-R$libdir' 9402 hardcode_shlibpath_var=no 9403 case $host_os in 9404 solaris2.[0-5] | solaris2.[0-5].*) ;; 9405 *) 9406 # The compiler driver will combine and reorder linker options, 9407 # but understands `-z linker_flag'. GCC discards it without `$wl', 9408 # but is careful enough not to reorder. 9409 # Supported since Solaris 2.6 (maybe 2.5.1?) 9410 if test "$GCC" = yes; then 9411 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9412 else 9413 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9414 fi 9415 ;; 9416 esac 9417 link_all_deplibs=yes 9418 ;; 9419 9420 sunos4*) 9421 if test "x$host_vendor" = xsequent; then 9422 # Use $CC to link under sequent, because it throws in some extra .o 9423 # files that make .init and .fini sections work. 9424 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9425 else 9426 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9427 fi 9428 hardcode_libdir_flag_spec='-L$libdir' 9429 hardcode_direct=yes 9430 hardcode_minus_L=yes 9431 hardcode_shlibpath_var=no 9432 ;; 9433 9434 sysv4) 9435 case $host_vendor in 9436 sni) 9437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9438 hardcode_direct=yes # is this really true??? 9439 ;; 9440 siemens) 9441 ## LD is ld it makes a PLAMLIB 9442 ## CC just makes a GrossModule. 9443 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9444 reload_cmds='$CC -r -o $output$reload_objs' 9445 hardcode_direct=no 9446 ;; 9447 motorola) 9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9449 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9450 ;; 9451 esac 9452 runpath_var='LD_RUN_PATH' 9453 hardcode_shlibpath_var=no 9454 ;; 9455 9456 sysv4.3*) 9457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9458 hardcode_shlibpath_var=no 9459 export_dynamic_flag_spec='-Bexport' 9460 ;; 9461 9462 sysv4*MP*) 9463 if test -d /usr/nec; then 9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9465 hardcode_shlibpath_var=no 9466 runpath_var=LD_RUN_PATH 9467 hardcode_runpath_var=yes 9468 ld_shlibs=yes 9469 fi 9470 ;; 9471 9472 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9473 no_undefined_flag='${wl}-z,text' 9474 archive_cmds_need_lc=no 9475 hardcode_shlibpath_var=no 9476 runpath_var='LD_RUN_PATH' 9477 9478 if test "$GCC" = yes; then 9479 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9480 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9481 else 9482 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9483 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9484 fi 9485 ;; 9486 9487 sysv5* | sco3.2v5* | sco5v6*) 9488 # Note: We can NOT use -z defs as we might desire, because we do not 9489 # link with -lc, and that would cause any symbols used from libc to 9490 # always be unresolved, which means just about no library would 9491 # ever link correctly. If we're not using GNU ld we use -z text 9492 # though, which does catch some bad symbols but isn't as heavy-handed 9493 # as -z defs. 9494 no_undefined_flag='${wl}-z,text' 9495 allow_undefined_flag='${wl}-z,nodefs' 9496 archive_cmds_need_lc=no 9497 hardcode_shlibpath_var=no 9498 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9499 hardcode_libdir_separator=':' 9500 link_all_deplibs=yes 9501 export_dynamic_flag_spec='${wl}-Bexport' 9502 runpath_var='LD_RUN_PATH' 9503 9504 if test "$GCC" = yes; then 9505 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9506 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9507 else 9508 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9509 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9510 fi 9511 ;; 9512 9513 uts4*) 9514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9515 hardcode_libdir_flag_spec='-L$libdir' 9516 hardcode_shlibpath_var=no 9517 ;; 9518 9519 *) 9520 ld_shlibs=no 9521 ;; 9522 esac 9523 9524 if test x$host_vendor = xsni; then 9525 case $host in 9526 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9527 export_dynamic_flag_spec='${wl}-Blargedynsym' 9528 ;; 9529 esac 9530 fi 9531 fi 9532 9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9534$as_echo "$ld_shlibs" >&6; } 9535test "$ld_shlibs" = no && can_build_shared=no 9536 9537with_gnu_ld=$with_gnu_ld 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553# 9554# Do we need to explicitly link libc? 9555# 9556case "x$archive_cmds_need_lc" in 9557x|xyes) 9558 # Assume -lc should be added 9559 archive_cmds_need_lc=yes 9560 9561 if test "$enable_shared" = yes && test "$GCC" = yes; then 9562 case $archive_cmds in 9563 *'~'*) 9564 # FIXME: we may have to deal with multi-command sequences. 9565 ;; 9566 '$CC '*) 9567 # Test whether the compiler implicitly links with -lc since on some 9568 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9569 # to ld, don't add -lc before -lgcc. 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9571$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9572if ${lt_cv_archive_cmds_need_lc+:} false; then : 9573 $as_echo_n "(cached) " >&6 9574else 9575 $RM conftest* 9576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9577 9578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9579 (eval $ac_compile) 2>&5 9580 ac_status=$? 9581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9582 test $ac_status = 0; } 2>conftest.err; then 9583 soname=conftest 9584 lib=conftest 9585 libobjs=conftest.$ac_objext 9586 deplibs= 9587 wl=$lt_prog_compiler_wl 9588 pic_flag=$lt_prog_compiler_pic 9589 compiler_flags=-v 9590 linker_flags=-v 9591 verstring= 9592 output_objdir=. 9593 libname=conftest 9594 lt_save_allow_undefined_flag=$allow_undefined_flag 9595 allow_undefined_flag= 9596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9597 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9598 ac_status=$? 9599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9600 test $ac_status = 0; } 9601 then 9602 lt_cv_archive_cmds_need_lc=no 9603 else 9604 lt_cv_archive_cmds_need_lc=yes 9605 fi 9606 allow_undefined_flag=$lt_save_allow_undefined_flag 9607 else 9608 cat conftest.err 1>&5 9609 fi 9610 $RM conftest* 9611 9612fi 9613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9614$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9615 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9616 ;; 9617 esac 9618 fi 9619 ;; 9620esac 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9774$as_echo_n "checking dynamic linker characteristics... " >&6; } 9775 9776if test "$GCC" = yes; then 9777 case $host_os in 9778 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9779 *) lt_awk_arg="/^libraries:/" ;; 9780 esac 9781 case $host_os in 9782 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9783 *) lt_sed_strip_eq="s,=/,/,g" ;; 9784 esac 9785 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9786 case $lt_search_path_spec in 9787 *\;*) 9788 # if the path contains ";" then we assume it to be the separator 9789 # otherwise default to the standard path separator (i.e. ":") - it is 9790 # assumed that no part of a normal pathname contains ";" but that should 9791 # okay in the real world where ";" in dirpaths is itself problematic. 9792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9793 ;; 9794 *) 9795 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9796 ;; 9797 esac 9798 # Ok, now we have the path, separated by spaces, we can step through it 9799 # and add multilib dir if necessary. 9800 lt_tmp_lt_search_path_spec= 9801 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9802 for lt_sys_path in $lt_search_path_spec; do 9803 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9805 else 9806 test -d "$lt_sys_path" && \ 9807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9808 fi 9809 done 9810 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9811BEGIN {RS=" "; FS="/|\n";} { 9812 lt_foo=""; 9813 lt_count=0; 9814 for (lt_i = NF; lt_i > 0; lt_i--) { 9815 if ($lt_i != "" && $lt_i != ".") { 9816 if ($lt_i == "..") { 9817 lt_count++; 9818 } else { 9819 if (lt_count == 0) { 9820 lt_foo="/" $lt_i lt_foo; 9821 } else { 9822 lt_count--; 9823 } 9824 } 9825 } 9826 } 9827 if (lt_foo != "") { lt_freq[lt_foo]++; } 9828 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9829}'` 9830 # AWK program above erroneously prepends '/' to C:/dos/paths 9831 # for these hosts. 9832 case $host_os in 9833 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9834 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9835 esac 9836 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9837else 9838 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9839fi 9840library_names_spec= 9841libname_spec='lib$name' 9842soname_spec= 9843shrext_cmds=".so" 9844postinstall_cmds= 9845postuninstall_cmds= 9846finish_cmds= 9847finish_eval= 9848shlibpath_var= 9849shlibpath_overrides_runpath=unknown 9850version_type=none 9851dynamic_linker="$host_os ld.so" 9852sys_lib_dlsearch_path_spec="/lib /usr/lib" 9853need_lib_prefix=unknown 9854hardcode_into_libs=no 9855 9856# when you set need_version to no, make sure it does not cause -set_version 9857# flags to be left without arguments 9858need_version=unknown 9859 9860case $host_os in 9861aix3*) 9862 version_type=linux # correct to gnu/linux during the next big refactor 9863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9864 shlibpath_var=LIBPATH 9865 9866 # AIX 3 has no versioning support, so we append a major version to the name. 9867 soname_spec='${libname}${release}${shared_ext}$major' 9868 ;; 9869 9870aix[4-9]*) 9871 version_type=linux # correct to gnu/linux during the next big refactor 9872 need_lib_prefix=no 9873 need_version=no 9874 hardcode_into_libs=yes 9875 if test "$host_cpu" = ia64; then 9876 # AIX 5 supports IA64 9877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9878 shlibpath_var=LD_LIBRARY_PATH 9879 else 9880 # With GCC up to 2.95.x, collect2 would create an import file 9881 # for dependence libraries. The import file would start with 9882 # the line `#! .'. This would cause the generated library to 9883 # depend on `.', always an invalid library. This was fixed in 9884 # development snapshots of GCC prior to 3.0. 9885 case $host_os in 9886 aix4 | aix4.[01] | aix4.[01].*) 9887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9888 echo ' yes ' 9889 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9890 : 9891 else 9892 can_build_shared=no 9893 fi 9894 ;; 9895 esac 9896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9897 # soname into executable. Probably we can add versioning support to 9898 # collect2, so additional links can be useful in future. 9899 if test "$aix_use_runtimelinking" = yes; then 9900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9901 # instead of lib<name>.a to let people know that these are not 9902 # typical AIX shared libraries. 9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9904 else 9905 # We preserve .a as extension for shared libraries through AIX4.2 9906 # and later when we are not doing run time linking. 9907 library_names_spec='${libname}${release}.a $libname.a' 9908 soname_spec='${libname}${release}${shared_ext}$major' 9909 fi 9910 shlibpath_var=LIBPATH 9911 fi 9912 ;; 9913 9914amigaos*) 9915 case $host_cpu in 9916 powerpc) 9917 # Since July 2007 AmigaOS4 officially supports .so libraries. 9918 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9920 ;; 9921 m68k) 9922 library_names_spec='$libname.ixlibrary $libname.a' 9923 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9924 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9925 ;; 9926 esac 9927 ;; 9928 9929beos*) 9930 library_names_spec='${libname}${shared_ext}' 9931 dynamic_linker="$host_os ld.so" 9932 shlibpath_var=LIBRARY_PATH 9933 ;; 9934 9935bsdi[45]*) 9936 version_type=linux # correct to gnu/linux during the next big refactor 9937 need_version=no 9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9939 soname_spec='${libname}${release}${shared_ext}$major' 9940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9941 shlibpath_var=LD_LIBRARY_PATH 9942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9944 # the default ld.so.conf also contains /usr/contrib/lib and 9945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9946 # libtool to hard-code these into programs 9947 ;; 9948 9949cygwin* | mingw* | pw32* | cegcc*) 9950 version_type=windows 9951 shrext_cmds=".dll" 9952 need_version=no 9953 need_lib_prefix=no 9954 9955 case $GCC,$cc_basename in 9956 yes,*) 9957 # gcc 9958 library_names_spec='$libname.dll.a' 9959 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9960 postinstall_cmds='base_file=`basename \${file}`~ 9961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9962 dldir=$destdir/`dirname \$dlpath`~ 9963 test -d \$dldir || mkdir -p \$dldir~ 9964 $install_prog $dir/$dlname \$dldir/$dlname~ 9965 chmod a+x \$dldir/$dlname~ 9966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9968 fi' 9969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9970 dlpath=$dir/\$dldll~ 9971 $RM \$dlpath' 9972 shlibpath_overrides_runpath=yes 9973 9974 case $host_os in 9975 cygwin*) 9976 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9977 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9978 9979 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9980 ;; 9981 mingw* | cegcc*) 9982 # MinGW DLLs use traditional 'lib' prefix 9983 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9984 ;; 9985 pw32*) 9986 # pw32 DLLs use 'pw' prefix rather than 'lib' 9987 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9988 ;; 9989 esac 9990 dynamic_linker='Win32 ld.exe' 9991 ;; 9992 9993 *,cl*) 9994 # Native MSVC 9995 libname_spec='$name' 9996 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9997 library_names_spec='${libname}.dll.lib' 9998 9999 case $build_os in 10000 mingw*) 10001 sys_lib_search_path_spec= 10002 lt_save_ifs=$IFS 10003 IFS=';' 10004 for lt_path in $LIB 10005 do 10006 IFS=$lt_save_ifs 10007 # Let DOS variable expansion print the short 8.3 style file name. 10008 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10009 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10010 done 10011 IFS=$lt_save_ifs 10012 # Convert to MSYS style. 10013 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10014 ;; 10015 cygwin*) 10016 # Convert to unix form, then to dos form, then back to unix form 10017 # but this time dos style (no spaces!) so that the unix form looks 10018 # like /cygdrive/c/PROGRA~1:/cygdr... 10019 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10020 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10021 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10022 ;; 10023 *) 10024 sys_lib_search_path_spec="$LIB" 10025 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10026 # It is most probably a Windows format PATH. 10027 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10028 else 10029 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10030 fi 10031 # FIXME: find the short name or the path components, as spaces are 10032 # common. (e.g. "Program Files" -> "PROGRA~1") 10033 ;; 10034 esac 10035 10036 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10037 postinstall_cmds='base_file=`basename \${file}`~ 10038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10039 dldir=$destdir/`dirname \$dlpath`~ 10040 test -d \$dldir || mkdir -p \$dldir~ 10041 $install_prog $dir/$dlname \$dldir/$dlname' 10042 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10043 dlpath=$dir/\$dldll~ 10044 $RM \$dlpath' 10045 shlibpath_overrides_runpath=yes 10046 dynamic_linker='Win32 link.exe' 10047 ;; 10048 10049 *) 10050 # Assume MSVC wrapper 10051 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10052 dynamic_linker='Win32 ld.exe' 10053 ;; 10054 esac 10055 # FIXME: first we should search . and the directory the executable is in 10056 shlibpath_var=PATH 10057 ;; 10058 10059darwin* | rhapsody*) 10060 dynamic_linker="$host_os dyld" 10061 version_type=darwin 10062 need_lib_prefix=no 10063 need_version=no 10064 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10065 soname_spec='${libname}${release}${major}$shared_ext' 10066 shlibpath_overrides_runpath=yes 10067 shlibpath_var=DYLD_LIBRARY_PATH 10068 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10069 10070 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10071 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10072 ;; 10073 10074dgux*) 10075 version_type=linux # correct to gnu/linux during the next big refactor 10076 need_lib_prefix=no 10077 need_version=no 10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10079 soname_spec='${libname}${release}${shared_ext}$major' 10080 shlibpath_var=LD_LIBRARY_PATH 10081 ;; 10082 10083freebsd* | dragonfly*) 10084 # DragonFly does not have aout. When/if they implement a new 10085 # versioning mechanism, adjust this. 10086 if test -x /usr/bin/objformat; then 10087 objformat=`/usr/bin/objformat` 10088 else 10089 case $host_os in 10090 freebsd[23].*) objformat=aout ;; 10091 *) objformat=elf ;; 10092 esac 10093 fi 10094 version_type=freebsd-$objformat 10095 case $version_type in 10096 freebsd-elf*) 10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10098 need_version=no 10099 need_lib_prefix=no 10100 ;; 10101 freebsd-*) 10102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10103 need_version=yes 10104 ;; 10105 esac 10106 shlibpath_var=LD_LIBRARY_PATH 10107 case $host_os in 10108 freebsd2.*) 10109 shlibpath_overrides_runpath=yes 10110 ;; 10111 freebsd3.[01]* | freebsdelf3.[01]*) 10112 shlibpath_overrides_runpath=yes 10113 hardcode_into_libs=yes 10114 ;; 10115 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10116 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10117 shlibpath_overrides_runpath=no 10118 hardcode_into_libs=yes 10119 ;; 10120 *) # from 4.6 on, and DragonFly 10121 shlibpath_overrides_runpath=yes 10122 hardcode_into_libs=yes 10123 ;; 10124 esac 10125 ;; 10126 10127gnu*) 10128 version_type=linux # correct to gnu/linux during the next big refactor 10129 need_lib_prefix=no 10130 need_version=no 10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10132 soname_spec='${libname}${release}${shared_ext}$major' 10133 shlibpath_var=LD_LIBRARY_PATH 10134 shlibpath_overrides_runpath=no 10135 hardcode_into_libs=yes 10136 ;; 10137 10138haiku*) 10139 version_type=linux # correct to gnu/linux during the next big refactor 10140 need_lib_prefix=no 10141 need_version=no 10142 dynamic_linker="$host_os runtime_loader" 10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10144 soname_spec='${libname}${release}${shared_ext}$major' 10145 shlibpath_var=LIBRARY_PATH 10146 shlibpath_overrides_runpath=yes 10147 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10148 hardcode_into_libs=yes 10149 ;; 10150 10151hpux9* | hpux10* | hpux11*) 10152 # Give a soname corresponding to the major version so that dld.sl refuses to 10153 # link against other versions. 10154 version_type=sunos 10155 need_lib_prefix=no 10156 need_version=no 10157 case $host_cpu in 10158 ia64*) 10159 shrext_cmds='.so' 10160 hardcode_into_libs=yes 10161 dynamic_linker="$host_os dld.so" 10162 shlibpath_var=LD_LIBRARY_PATH 10163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10165 soname_spec='${libname}${release}${shared_ext}$major' 10166 if test "X$HPUX_IA64_MODE" = X32; then 10167 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10168 else 10169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10170 fi 10171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10172 ;; 10173 hppa*64*) 10174 shrext_cmds='.sl' 10175 hardcode_into_libs=yes 10176 dynamic_linker="$host_os dld.sl" 10177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10180 soname_spec='${libname}${release}${shared_ext}$major' 10181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10183 ;; 10184 *) 10185 shrext_cmds='.sl' 10186 dynamic_linker="$host_os dld.sl" 10187 shlibpath_var=SHLIB_PATH 10188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10190 soname_spec='${libname}${release}${shared_ext}$major' 10191 ;; 10192 esac 10193 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10194 postinstall_cmds='chmod 555 $lib' 10195 # or fails outright, so override atomically: 10196 install_override_mode=555 10197 ;; 10198 10199interix[3-9]*) 10200 version_type=linux # correct to gnu/linux during the next big refactor 10201 need_lib_prefix=no 10202 need_version=no 10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10204 soname_spec='${libname}${release}${shared_ext}$major' 10205 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10206 shlibpath_var=LD_LIBRARY_PATH 10207 shlibpath_overrides_runpath=no 10208 hardcode_into_libs=yes 10209 ;; 10210 10211irix5* | irix6* | nonstopux*) 10212 case $host_os in 10213 nonstopux*) version_type=nonstopux ;; 10214 *) 10215 if test "$lt_cv_prog_gnu_ld" = yes; then 10216 version_type=linux # correct to gnu/linux during the next big refactor 10217 else 10218 version_type=irix 10219 fi ;; 10220 esac 10221 need_lib_prefix=no 10222 need_version=no 10223 soname_spec='${libname}${release}${shared_ext}$major' 10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10225 case $host_os in 10226 irix5* | nonstopux*) 10227 libsuff= shlibsuff= 10228 ;; 10229 *) 10230 case $LD in # libtool.m4 will add one of these switches to LD 10231 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10232 libsuff= shlibsuff= libmagic=32-bit;; 10233 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10234 libsuff=32 shlibsuff=N32 libmagic=N32;; 10235 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10236 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10237 *) libsuff= shlibsuff= libmagic=never-match;; 10238 esac 10239 ;; 10240 esac 10241 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10242 shlibpath_overrides_runpath=no 10243 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10244 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10245 hardcode_into_libs=yes 10246 ;; 10247 10248# No shared lib support for Linux oldld, aout, or coff. 10249linux*oldld* | linux*aout* | linux*coff*) 10250 dynamic_linker=no 10251 ;; 10252 10253# This must be glibc/ELF. 10254linux* | k*bsd*-gnu | kopensolaris*-gnu) 10255 version_type=linux # correct to gnu/linux during the next big refactor 10256 need_lib_prefix=no 10257 need_version=no 10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10259 soname_spec='${libname}${release}${shared_ext}$major' 10260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10261 shlibpath_var=LD_LIBRARY_PATH 10262 shlibpath_overrides_runpath=no 10263 10264 # Some binutils ld are patched to set DT_RUNPATH 10265 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10266 $as_echo_n "(cached) " >&6 10267else 10268 lt_cv_shlibpath_overrides_runpath=no 10269 save_LDFLAGS=$LDFLAGS 10270 save_libdir=$libdir 10271 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10272 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275 10276int 10277main () 10278{ 10279 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284if ac_fn_c_try_link "$LINENO"; then : 10285 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10286 lt_cv_shlibpath_overrides_runpath=yes 10287fi 10288fi 10289rm -f core conftest.err conftest.$ac_objext \ 10290 conftest$ac_exeext conftest.$ac_ext 10291 LDFLAGS=$save_LDFLAGS 10292 libdir=$save_libdir 10293 10294fi 10295 10296 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10297 10298 # This implies no fast_install, which is unacceptable. 10299 # Some rework will be needed to allow for fast_install 10300 # before this can be enabled. 10301 hardcode_into_libs=yes 10302 10303 # Append ld.so.conf contents to the search path 10304 if test -f /etc/ld.so.conf; then 10305 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10306 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10307 fi 10308 10309 # We used to test for /lib/ld.so.1 and disable shared libraries on 10310 # powerpc, because MkLinux only supported shared libraries with the 10311 # GNU dynamic linker. Since this was broken with cross compilers, 10312 # most powerpc-linux boxes support dynamic linking these days and 10313 # people can always --disable-shared, the test was removed, and we 10314 # assume the GNU/Linux dynamic linker is in use. 10315 dynamic_linker='GNU/Linux ld.so' 10316 ;; 10317 10318netbsd*) 10319 version_type=sunos 10320 need_lib_prefix=no 10321 need_version=no 10322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10325 dynamic_linker='NetBSD (a.out) ld.so' 10326 else 10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10328 soname_spec='${libname}${release}${shared_ext}$major' 10329 dynamic_linker='NetBSD ld.elf_so' 10330 fi 10331 shlibpath_var=LD_LIBRARY_PATH 10332 shlibpath_overrides_runpath=yes 10333 hardcode_into_libs=yes 10334 ;; 10335 10336newsos6) 10337 version_type=linux # correct to gnu/linux during the next big refactor 10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10339 shlibpath_var=LD_LIBRARY_PATH 10340 shlibpath_overrides_runpath=yes 10341 ;; 10342 10343*nto* | *qnx*) 10344 version_type=qnx 10345 need_lib_prefix=no 10346 need_version=no 10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10348 soname_spec='${libname}${release}${shared_ext}$major' 10349 shlibpath_var=LD_LIBRARY_PATH 10350 shlibpath_overrides_runpath=no 10351 hardcode_into_libs=yes 10352 dynamic_linker='ldqnx.so' 10353 ;; 10354 10355openbsd*) 10356 version_type=sunos 10357 sys_lib_dlsearch_path_spec="/usr/lib" 10358 need_lib_prefix=no 10359 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10360 case $host_os in 10361 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10362 *) need_version=no ;; 10363 esac 10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10366 shlibpath_var=LD_LIBRARY_PATH 10367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10368 case $host_os in 10369 openbsd2.[89] | openbsd2.[89].*) 10370 shlibpath_overrides_runpath=no 10371 ;; 10372 *) 10373 shlibpath_overrides_runpath=yes 10374 ;; 10375 esac 10376 else 10377 shlibpath_overrides_runpath=yes 10378 fi 10379 ;; 10380 10381os2*) 10382 libname_spec='$name' 10383 shrext_cmds=".dll" 10384 need_lib_prefix=no 10385 library_names_spec='$libname${shared_ext} $libname.a' 10386 dynamic_linker='OS/2 ld.exe' 10387 shlibpath_var=LIBPATH 10388 ;; 10389 10390osf3* | osf4* | osf5*) 10391 version_type=osf 10392 need_lib_prefix=no 10393 need_version=no 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10396 shlibpath_var=LD_LIBRARY_PATH 10397 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10398 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10399 ;; 10400 10401rdos*) 10402 dynamic_linker=no 10403 ;; 10404 10405solaris*) 10406 version_type=linux # correct to gnu/linux during the next big refactor 10407 need_lib_prefix=no 10408 need_version=no 10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10410 soname_spec='${libname}${release}${shared_ext}$major' 10411 shlibpath_var=LD_LIBRARY_PATH 10412 shlibpath_overrides_runpath=yes 10413 hardcode_into_libs=yes 10414 # ldd complains unless libraries are executable 10415 postinstall_cmds='chmod +x $lib' 10416 ;; 10417 10418sunos4*) 10419 version_type=sunos 10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10421 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10422 shlibpath_var=LD_LIBRARY_PATH 10423 shlibpath_overrides_runpath=yes 10424 if test "$with_gnu_ld" = yes; then 10425 need_lib_prefix=no 10426 fi 10427 need_version=yes 10428 ;; 10429 10430sysv4 | sysv4.3*) 10431 version_type=linux # correct to gnu/linux during the next big refactor 10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10433 soname_spec='${libname}${release}${shared_ext}$major' 10434 shlibpath_var=LD_LIBRARY_PATH 10435 case $host_vendor in 10436 sni) 10437 shlibpath_overrides_runpath=no 10438 need_lib_prefix=no 10439 runpath_var=LD_RUN_PATH 10440 ;; 10441 siemens) 10442 need_lib_prefix=no 10443 ;; 10444 motorola) 10445 need_lib_prefix=no 10446 need_version=no 10447 shlibpath_overrides_runpath=no 10448 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10449 ;; 10450 esac 10451 ;; 10452 10453sysv4*MP*) 10454 if test -d /usr/nec ;then 10455 version_type=linux # correct to gnu/linux during the next big refactor 10456 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10457 soname_spec='$libname${shared_ext}.$major' 10458 shlibpath_var=LD_LIBRARY_PATH 10459 fi 10460 ;; 10461 10462sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10463 version_type=freebsd-elf 10464 need_lib_prefix=no 10465 need_version=no 10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10467 soname_spec='${libname}${release}${shared_ext}$major' 10468 shlibpath_var=LD_LIBRARY_PATH 10469 shlibpath_overrides_runpath=yes 10470 hardcode_into_libs=yes 10471 if test "$with_gnu_ld" = yes; then 10472 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10473 else 10474 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10475 case $host_os in 10476 sco3.2v5*) 10477 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10478 ;; 10479 esac 10480 fi 10481 sys_lib_dlsearch_path_spec='/usr/lib' 10482 ;; 10483 10484tpf*) 10485 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10486 version_type=linux # correct to gnu/linux during the next big refactor 10487 need_lib_prefix=no 10488 need_version=no 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10490 shlibpath_var=LD_LIBRARY_PATH 10491 shlibpath_overrides_runpath=no 10492 hardcode_into_libs=yes 10493 ;; 10494 10495uts4*) 10496 version_type=linux # correct to gnu/linux during the next big refactor 10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10498 soname_spec='${libname}${release}${shared_ext}$major' 10499 shlibpath_var=LD_LIBRARY_PATH 10500 ;; 10501 10502*) 10503 dynamic_linker=no 10504 ;; 10505esac 10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10507$as_echo "$dynamic_linker" >&6; } 10508test "$dynamic_linker" = no && can_build_shared=no 10509 10510variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10511if test "$GCC" = yes; then 10512 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10513fi 10514 10515if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10516 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10517fi 10518if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10519 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10520fi 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10614$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10615hardcode_action= 10616if test -n "$hardcode_libdir_flag_spec" || 10617 test -n "$runpath_var" || 10618 test "X$hardcode_automatic" = "Xyes" ; then 10619 10620 # We can hardcode non-existent directories. 10621 if test "$hardcode_direct" != no && 10622 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10623 # have to relink, otherwise we might link with an installed library 10624 # when we should be linking with a yet-to-be-installed one 10625 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10626 test "$hardcode_minus_L" != no; then 10627 # Linking always hardcodes the temporary library directory. 10628 hardcode_action=relink 10629 else 10630 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10631 hardcode_action=immediate 10632 fi 10633else 10634 # We cannot hardcode anything, or else we can only hardcode existing 10635 # directories. 10636 hardcode_action=unsupported 10637fi 10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10639$as_echo "$hardcode_action" >&6; } 10640 10641if test "$hardcode_action" = relink || 10642 test "$inherit_rpath" = yes; then 10643 # Fast installation is not supported 10644 enable_fast_install=no 10645elif test "$shlibpath_overrides_runpath" = yes || 10646 test "$enable_shared" = no; then 10647 # Fast installation is not necessary 10648 enable_fast_install=needless 10649fi 10650 10651 10652 10653 10654 10655 10656 if test "x$enable_dlopen" != xyes; then 10657 enable_dlopen=unknown 10658 enable_dlopen_self=unknown 10659 enable_dlopen_self_static=unknown 10660else 10661 lt_cv_dlopen=no 10662 lt_cv_dlopen_libs= 10663 10664 case $host_os in 10665 beos*) 10666 lt_cv_dlopen="load_add_on" 10667 lt_cv_dlopen_libs= 10668 lt_cv_dlopen_self=yes 10669 ;; 10670 10671 mingw* | pw32* | cegcc*) 10672 lt_cv_dlopen="LoadLibrary" 10673 lt_cv_dlopen_libs= 10674 ;; 10675 10676 cygwin*) 10677 lt_cv_dlopen="dlopen" 10678 lt_cv_dlopen_libs= 10679 ;; 10680 10681 darwin*) 10682 # if libdl is installed we need to link against it 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10684$as_echo_n "checking for dlopen in -ldl... " >&6; } 10685if ${ac_cv_lib_dl_dlopen+:} false; then : 10686 $as_echo_n "(cached) " >&6 10687else 10688 ac_check_lib_save_LIBS=$LIBS 10689LIBS="-ldl $LIBS" 10690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10691/* end confdefs.h. */ 10692 10693/* Override any GCC internal prototype to avoid an error. 10694 Use char because int might match the return type of a GCC 10695 builtin and then its argument prototype would still apply. */ 10696#ifdef __cplusplus 10697extern "C" 10698#endif 10699char dlopen (); 10700int 10701main () 10702{ 10703return dlopen (); 10704 ; 10705 return 0; 10706} 10707_ACEOF 10708if ac_fn_c_try_link "$LINENO"; then : 10709 ac_cv_lib_dl_dlopen=yes 10710else 10711 ac_cv_lib_dl_dlopen=no 10712fi 10713rm -f core conftest.err conftest.$ac_objext \ 10714 conftest$ac_exeext conftest.$ac_ext 10715LIBS=$ac_check_lib_save_LIBS 10716fi 10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10718$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10719if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10721else 10722 10723 lt_cv_dlopen="dyld" 10724 lt_cv_dlopen_libs= 10725 lt_cv_dlopen_self=yes 10726 10727fi 10728 10729 ;; 10730 10731 *) 10732 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10733if test "x$ac_cv_func_shl_load" = xyes; then : 10734 lt_cv_dlopen="shl_load" 10735else 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10737$as_echo_n "checking for shl_load in -ldld... " >&6; } 10738if ${ac_cv_lib_dld_shl_load+:} false; then : 10739 $as_echo_n "(cached) " >&6 10740else 10741 ac_check_lib_save_LIBS=$LIBS 10742LIBS="-ldld $LIBS" 10743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10744/* end confdefs.h. */ 10745 10746/* Override any GCC internal prototype to avoid an error. 10747 Use char because int might match the return type of a GCC 10748 builtin and then its argument prototype would still apply. */ 10749#ifdef __cplusplus 10750extern "C" 10751#endif 10752char shl_load (); 10753int 10754main () 10755{ 10756return shl_load (); 10757 ; 10758 return 0; 10759} 10760_ACEOF 10761if ac_fn_c_try_link "$LINENO"; then : 10762 ac_cv_lib_dld_shl_load=yes 10763else 10764 ac_cv_lib_dld_shl_load=no 10765fi 10766rm -f core conftest.err conftest.$ac_objext \ 10767 conftest$ac_exeext conftest.$ac_ext 10768LIBS=$ac_check_lib_save_LIBS 10769fi 10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10771$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10772if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10773 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10774else 10775 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10776if test "x$ac_cv_func_dlopen" = xyes; then : 10777 lt_cv_dlopen="dlopen" 10778else 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10780$as_echo_n "checking for dlopen in -ldl... " >&6; } 10781if ${ac_cv_lib_dl_dlopen+:} false; then : 10782 $as_echo_n "(cached) " >&6 10783else 10784 ac_check_lib_save_LIBS=$LIBS 10785LIBS="-ldl $LIBS" 10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10787/* end confdefs.h. */ 10788 10789/* Override any GCC internal prototype to avoid an error. 10790 Use char because int might match the return type of a GCC 10791 builtin and then its argument prototype would still apply. */ 10792#ifdef __cplusplus 10793extern "C" 10794#endif 10795char dlopen (); 10796int 10797main () 10798{ 10799return dlopen (); 10800 ; 10801 return 0; 10802} 10803_ACEOF 10804if ac_fn_c_try_link "$LINENO"; then : 10805 ac_cv_lib_dl_dlopen=yes 10806else 10807 ac_cv_lib_dl_dlopen=no 10808fi 10809rm -f core conftest.err conftest.$ac_objext \ 10810 conftest$ac_exeext conftest.$ac_ext 10811LIBS=$ac_check_lib_save_LIBS 10812fi 10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10814$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10815if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10817else 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10819$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10820if ${ac_cv_lib_svld_dlopen+:} false; then : 10821 $as_echo_n "(cached) " >&6 10822else 10823 ac_check_lib_save_LIBS=$LIBS 10824LIBS="-lsvld $LIBS" 10825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10826/* end confdefs.h. */ 10827 10828/* Override any GCC internal prototype to avoid an error. 10829 Use char because int might match the return type of a GCC 10830 builtin and then its argument prototype would still apply. */ 10831#ifdef __cplusplus 10832extern "C" 10833#endif 10834char dlopen (); 10835int 10836main () 10837{ 10838return dlopen (); 10839 ; 10840 return 0; 10841} 10842_ACEOF 10843if ac_fn_c_try_link "$LINENO"; then : 10844 ac_cv_lib_svld_dlopen=yes 10845else 10846 ac_cv_lib_svld_dlopen=no 10847fi 10848rm -f core conftest.err conftest.$ac_objext \ 10849 conftest$ac_exeext conftest.$ac_ext 10850LIBS=$ac_check_lib_save_LIBS 10851fi 10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10853$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10854if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10856else 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10858$as_echo_n "checking for dld_link in -ldld... " >&6; } 10859if ${ac_cv_lib_dld_dld_link+:} false; then : 10860 $as_echo_n "(cached) " >&6 10861else 10862 ac_check_lib_save_LIBS=$LIBS 10863LIBS="-ldld $LIBS" 10864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10865/* end confdefs.h. */ 10866 10867/* Override any GCC internal prototype to avoid an error. 10868 Use char because int might match the return type of a GCC 10869 builtin and then its argument prototype would still apply. */ 10870#ifdef __cplusplus 10871extern "C" 10872#endif 10873char dld_link (); 10874int 10875main () 10876{ 10877return dld_link (); 10878 ; 10879 return 0; 10880} 10881_ACEOF 10882if ac_fn_c_try_link "$LINENO"; then : 10883 ac_cv_lib_dld_dld_link=yes 10884else 10885 ac_cv_lib_dld_dld_link=no 10886fi 10887rm -f core conftest.err conftest.$ac_objext \ 10888 conftest$ac_exeext conftest.$ac_ext 10889LIBS=$ac_check_lib_save_LIBS 10890fi 10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10892$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10893if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10894 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10895fi 10896 10897 10898fi 10899 10900 10901fi 10902 10903 10904fi 10905 10906 10907fi 10908 10909 10910fi 10911 10912 ;; 10913 esac 10914 10915 if test "x$lt_cv_dlopen" != xno; then 10916 enable_dlopen=yes 10917 else 10918 enable_dlopen=no 10919 fi 10920 10921 case $lt_cv_dlopen in 10922 dlopen) 10923 save_CPPFLAGS="$CPPFLAGS" 10924 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10925 10926 save_LDFLAGS="$LDFLAGS" 10927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10928 10929 save_LIBS="$LIBS" 10930 LIBS="$lt_cv_dlopen_libs $LIBS" 10931 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10933$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10934if ${lt_cv_dlopen_self+:} false; then : 10935 $as_echo_n "(cached) " >&6 10936else 10937 if test "$cross_compiling" = yes; then : 10938 lt_cv_dlopen_self=cross 10939else 10940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10941 lt_status=$lt_dlunknown 10942 cat > conftest.$ac_ext <<_LT_EOF 10943#line $LINENO "configure" 10944#include "confdefs.h" 10945 10946#if HAVE_DLFCN_H 10947#include <dlfcn.h> 10948#endif 10949 10950#include <stdio.h> 10951 10952#ifdef RTLD_GLOBAL 10953# define LT_DLGLOBAL RTLD_GLOBAL 10954#else 10955# ifdef DL_GLOBAL 10956# define LT_DLGLOBAL DL_GLOBAL 10957# else 10958# define LT_DLGLOBAL 0 10959# endif 10960#endif 10961 10962/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10963 find out it does not work in some platform. */ 10964#ifndef LT_DLLAZY_OR_NOW 10965# ifdef RTLD_LAZY 10966# define LT_DLLAZY_OR_NOW RTLD_LAZY 10967# else 10968# ifdef DL_LAZY 10969# define LT_DLLAZY_OR_NOW DL_LAZY 10970# else 10971# ifdef RTLD_NOW 10972# define LT_DLLAZY_OR_NOW RTLD_NOW 10973# else 10974# ifdef DL_NOW 10975# define LT_DLLAZY_OR_NOW DL_NOW 10976# else 10977# define LT_DLLAZY_OR_NOW 0 10978# endif 10979# endif 10980# endif 10981# endif 10982#endif 10983 10984/* When -fvisbility=hidden is used, assume the code has been annotated 10985 correspondingly for the symbols needed. */ 10986#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10987int fnord () __attribute__((visibility("default"))); 10988#endif 10989 10990int fnord () { return 42; } 10991int main () 10992{ 10993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10994 int status = $lt_dlunknown; 10995 10996 if (self) 10997 { 10998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10999 else 11000 { 11001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11002 else puts (dlerror ()); 11003 } 11004 /* dlclose (self); */ 11005 } 11006 else 11007 puts (dlerror ()); 11008 11009 return status; 11010} 11011_LT_EOF 11012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11013 (eval $ac_link) 2>&5 11014 ac_status=$? 11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11016 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11017 (./conftest; exit; ) >&5 2>/dev/null 11018 lt_status=$? 11019 case x$lt_status in 11020 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11021 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11022 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11023 esac 11024 else : 11025 # compilation failed 11026 lt_cv_dlopen_self=no 11027 fi 11028fi 11029rm -fr conftest* 11030 11031 11032fi 11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11034$as_echo "$lt_cv_dlopen_self" >&6; } 11035 11036 if test "x$lt_cv_dlopen_self" = xyes; then 11037 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11039$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11040if ${lt_cv_dlopen_self_static+:} false; then : 11041 $as_echo_n "(cached) " >&6 11042else 11043 if test "$cross_compiling" = yes; then : 11044 lt_cv_dlopen_self_static=cross 11045else 11046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11047 lt_status=$lt_dlunknown 11048 cat > conftest.$ac_ext <<_LT_EOF 11049#line $LINENO "configure" 11050#include "confdefs.h" 11051 11052#if HAVE_DLFCN_H 11053#include <dlfcn.h> 11054#endif 11055 11056#include <stdio.h> 11057 11058#ifdef RTLD_GLOBAL 11059# define LT_DLGLOBAL RTLD_GLOBAL 11060#else 11061# ifdef DL_GLOBAL 11062# define LT_DLGLOBAL DL_GLOBAL 11063# else 11064# define LT_DLGLOBAL 0 11065# endif 11066#endif 11067 11068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11069 find out it does not work in some platform. */ 11070#ifndef LT_DLLAZY_OR_NOW 11071# ifdef RTLD_LAZY 11072# define LT_DLLAZY_OR_NOW RTLD_LAZY 11073# else 11074# ifdef DL_LAZY 11075# define LT_DLLAZY_OR_NOW DL_LAZY 11076# else 11077# ifdef RTLD_NOW 11078# define LT_DLLAZY_OR_NOW RTLD_NOW 11079# else 11080# ifdef DL_NOW 11081# define LT_DLLAZY_OR_NOW DL_NOW 11082# else 11083# define LT_DLLAZY_OR_NOW 0 11084# endif 11085# endif 11086# endif 11087# endif 11088#endif 11089 11090/* When -fvisbility=hidden is used, assume the code has been annotated 11091 correspondingly for the symbols needed. */ 11092#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11093int fnord () __attribute__((visibility("default"))); 11094#endif 11095 11096int fnord () { return 42; } 11097int main () 11098{ 11099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11100 int status = $lt_dlunknown; 11101 11102 if (self) 11103 { 11104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11105 else 11106 { 11107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11108 else puts (dlerror ()); 11109 } 11110 /* dlclose (self); */ 11111 } 11112 else 11113 puts (dlerror ()); 11114 11115 return status; 11116} 11117_LT_EOF 11118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11119 (eval $ac_link) 2>&5 11120 ac_status=$? 11121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11122 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11123 (./conftest; exit; ) >&5 2>/dev/null 11124 lt_status=$? 11125 case x$lt_status in 11126 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11127 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11128 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11129 esac 11130 else : 11131 # compilation failed 11132 lt_cv_dlopen_self_static=no 11133 fi 11134fi 11135rm -fr conftest* 11136 11137 11138fi 11139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11140$as_echo "$lt_cv_dlopen_self_static" >&6; } 11141 fi 11142 11143 CPPFLAGS="$save_CPPFLAGS" 11144 LDFLAGS="$save_LDFLAGS" 11145 LIBS="$save_LIBS" 11146 ;; 11147 esac 11148 11149 case $lt_cv_dlopen_self in 11150 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11151 *) enable_dlopen_self=unknown ;; 11152 esac 11153 11154 case $lt_cv_dlopen_self_static in 11155 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11156 *) enable_dlopen_self_static=unknown ;; 11157 esac 11158fi 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176striplib= 11177old_striplib= 11178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11179$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11180if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11181 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11182 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11184$as_echo "yes" >&6; } 11185else 11186# FIXME - insert some real tests, host_os isn't really good enough 11187 case $host_os in 11188 darwin*) 11189 if test -n "$STRIP" ; then 11190 striplib="$STRIP -x" 11191 old_striplib="$STRIP -S" 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11193$as_echo "yes" >&6; } 11194 else 11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11196$as_echo "no" >&6; } 11197 fi 11198 ;; 11199 *) 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11201$as_echo "no" >&6; } 11202 ;; 11203 esac 11204fi 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 # Report which library types will actually be built 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11219$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11221$as_echo "$can_build_shared" >&6; } 11222 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11224$as_echo_n "checking whether to build shared libraries... " >&6; } 11225 test "$can_build_shared" = "no" && enable_shared=no 11226 11227 # On AIX, shared libraries and static libraries use the same namespace, and 11228 # are all built from PIC. 11229 case $host_os in 11230 aix3*) 11231 test "$enable_shared" = yes && enable_static=no 11232 if test -n "$RANLIB"; then 11233 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11234 postinstall_cmds='$RANLIB $lib' 11235 fi 11236 ;; 11237 11238 aix[4-9]*) 11239 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11240 test "$enable_shared" = yes && enable_static=no 11241 fi 11242 ;; 11243 esac 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11245$as_echo "$enable_shared" >&6; } 11246 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11248$as_echo_n "checking whether to build static libraries... " >&6; } 11249 # Make sure either enable_shared or enable_static is yes. 11250 test "$enable_shared" = yes || enable_static=yes 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11252$as_echo "$enable_static" >&6; } 11253 11254 11255 11256 11257fi 11258ac_ext=c 11259ac_cpp='$CPP $CPPFLAGS' 11260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11262ac_compiler_gnu=$ac_cv_c_compiler_gnu 11263 11264CC="$lt_save_CC" 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 ac_config_commands="$ac_config_commands libtool" 11281 11282 11283 11284 11285# Only expand once: 11286 11287 11288# Find a good install program. We prefer a C program (faster), 11289# so one script is as good as another. But avoid the broken or 11290# incompatible versions: 11291# SysV /etc/install, /usr/sbin/install 11292# SunOS /usr/etc/install 11293# IRIX /sbin/install 11294# AIX /bin/install 11295# AmigaOS /C/install, which installs bootblocks on floppy discs 11296# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11297# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11298# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11299# OS/2's system install, which has a completely different semantic 11300# ./install, which can be erroneously created by make from ./install.sh. 11301# Reject install programs that cannot install multiple files. 11302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 11303$as_echo_n "checking for a BSD-compatible install... " >&6; } 11304if test -z "$INSTALL"; then 11305if ${ac_cv_path_install+:} false; then : 11306 $as_echo_n "(cached) " >&6 11307else 11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11309for as_dir in $PATH 11310do 11311 IFS=$as_save_IFS 11312 test -z "$as_dir" && as_dir=. 11313 # Account for people who put trailing slashes in PATH elements. 11314case $as_dir/ in #(( 11315 ./ | .// | /[cC]/* | \ 11316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11317 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 11318 /usr/ucb/* ) ;; 11319 *) 11320 # OSF1 and SCO ODT 3.0 have their own names for install. 11321 # Don't use installbsd from OSF since it installs stuff as root 11322 # by default. 11323 for ac_prog in ginstall scoinst install; do 11324 for ac_exec_ext in '' $ac_executable_extensions; do 11325 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 11326 if test $ac_prog = install && 11327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11328 # AIX install. It has an incompatible calling convention. 11329 : 11330 elif test $ac_prog = install && 11331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11332 # program-specific install script used by HP pwplus--don't use. 11333 : 11334 else 11335 rm -rf conftest.one conftest.two conftest.dir 11336 echo one > conftest.one 11337 echo two > conftest.two 11338 mkdir conftest.dir 11339 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 11340 test -s conftest.one && test -s conftest.two && 11341 test -s conftest.dir/conftest.one && 11342 test -s conftest.dir/conftest.two 11343 then 11344 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11345 break 3 11346 fi 11347 fi 11348 fi 11349 done 11350 done 11351 ;; 11352esac 11353 11354 done 11355IFS=$as_save_IFS 11356 11357rm -rf conftest.one conftest.two conftest.dir 11358 11359fi 11360 if test "${ac_cv_path_install+set}" = set; then 11361 INSTALL=$ac_cv_path_install 11362 else 11363 # As a last resort, use the slow shell script. Don't cache a 11364 # value for INSTALL within a source directory, because that will 11365 # break other packages using the cache if that directory is 11366 # removed, or if the value is a relative name. 11367 INSTALL=$ac_install_sh 11368 fi 11369fi 11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 11371$as_echo "$INSTALL" >&6; } 11372 11373# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11374# It thinks the first close brace ends the variable substitution. 11375test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11376 11377test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11378 11379test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11380 11381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11382$as_echo_n "checking whether ln -s works... " >&6; } 11383LN_S=$as_ln_s 11384if test "$LN_S" = "ln -s"; then 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11386$as_echo "yes" >&6; } 11387else 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11389$as_echo "no, using $LN_S" >&6; } 11390fi 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400# Warn if the user specified libbind, which is now deprecated 11401# Check whether --enable-libbind was given. 11402if test "${enable_libbind+set}" = set; then : 11403 enableval=$enable_libbind; 11404fi 11405 11406 11407case "$enable_libbind" in 11408 yes) 11409 as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution. 11410It is available from http://www.isc.org as a separate download." "$LINENO" 5 11411 ;; 11412 no|'') 11413 ;; 11414esac 11415 11416# Check whether --enable-warn_shadow was given. 11417if test "${enable_warn_shadow+set}" = set; then : 11418 enableval=$enable_warn_shadow; 11419fi 11420 11421 11422# Check whether --enable-warn_error was given. 11423if test "${enable_warn_error+set}" = set; then : 11424 enableval=$enable_warn_error; 11425fi 11426 11427 11428# Check whether --enable-developer was given. 11429if test "${enable_developer+set}" = set; then : 11430 enableval=$enable_developer; 11431fi 11432 11433case "$enable_developer" in 11434yes) 11435 STD_CDEFINES="$STD_CDEFINES -DISC_LIST_CHECKINIT=1" 11436 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes 11437 test "${with_atf+set}" = set || with_atf=yes 11438 test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes 11439 test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes 11440 test "${enable_symtable+set}" = set || enable_symtable=all 11441 test "${enable_sit+set}" = set || enable_sit=yes 11442 test "${enable_warn_error+set}" = set || enable_warn_error=yes 11443 test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes 11444 ;; 11445esac 11446 11447#libseccomp sandboxing 11448# Check whether --enable-seccomp was given. 11449if test "${enable_seccomp+set}" = set; then : 11450 enableval=$enable_seccomp; 11451fi 11452 11453case "$enable_seccomp" in 11454 yes) 11455 case $host_os in 11456 linux*) 11457 ;; 11458 *) 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&5 11460$as_echo "$as_me: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&2;} 11461 enable_seccomp=no 11462 ;; 11463 esac 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5 11465$as_echo_n "checking for library containing seccomp_init... " >&6; } 11466if ${ac_cv_search_seccomp_init+:} false; then : 11467 $as_echo_n "(cached) " >&6 11468else 11469 ac_func_search_save_LIBS=$LIBS 11470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11471/* end confdefs.h. */ 11472 11473/* Override any GCC internal prototype to avoid an error. 11474 Use char because int might match the return type of a GCC 11475 builtin and then its argument prototype would still apply. */ 11476#ifdef __cplusplus 11477extern "C" 11478#endif 11479char seccomp_init (); 11480int 11481main () 11482{ 11483return seccomp_init (); 11484 ; 11485 return 0; 11486} 11487_ACEOF 11488for ac_lib in '' seccomp; do 11489 if test -z "$ac_lib"; then 11490 ac_res="none required" 11491 else 11492 ac_res=-l$ac_lib 11493 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11494 fi 11495 if ac_fn_c_try_link "$LINENO"; then : 11496 ac_cv_search_seccomp_init=$ac_res 11497fi 11498rm -f core conftest.err conftest.$ac_objext \ 11499 conftest$ac_exeext 11500 if ${ac_cv_search_seccomp_init+:} false; then : 11501 break 11502fi 11503done 11504if ${ac_cv_search_seccomp_init+:} false; then : 11505 11506else 11507 ac_cv_search_seccomp_init=no 11508fi 11509rm conftest.$ac_ext 11510LIBS=$ac_func_search_save_LIBS 11511fi 11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5 11513$as_echo "$ac_cv_search_seccomp_init" >&6; } 11514ac_res=$ac_cv_search_seccomp_init 11515if test "$ac_res" != no; then : 11516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11517 11518fi 11519 11520 if test "$ac_cv_search_seccomp_init" = "-lseccomp" ; then 11521 if test "$cross_compiling" = yes; then : 11522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11524as_fn_error $? "cannot run test program while cross compiling 11525See \`config.log' for more details" "$LINENO" 5; } 11526else 11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11528/* end confdefs.h. */ 11529 11530 #include <stdio.h> 11531 #include <stdlib.h> 11532 #include <errno.h> 11533 #include <sys/prctl.h> 11534 #include <linux/seccomp.h> 11535 11536 int main(void) 11537 { 11538 int ret; 11539 11540 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0); 11541 if (ret < 0) { 11542 switch (errno) { 11543 case ENOSYS: 11544 return 1; 11545 case EINVAL: 11546 return 1; 11547 default: 11548 return 1; 11549 } 11550 } 11551 ret = 11552 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 11553 if (ret < 0) { 11554 switch (errno) { 11555 case EINVAL: 11556 return 1; 11557 case EFAULT: 11558 return 0; 11559 default: 11560 return 1; 11561 } 11562 } 11563 return 1; 11564 } 11565 11566 11567_ACEOF 11568if ac_fn_c_try_run "$LINENO"; then : 11569 11570$as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h 11571 11572 11573fi 11574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11575 conftest.$ac_objext conftest.beam conftest.$ac_ext 11576fi 11577 11578 fi 11579 ;; 11580 *) 11581 ;; 11582esac 11583 11584# 11585# Make very sure that these are the first files processed by 11586# config.status, since we use the processed output as the input for 11587# AC_SUBST_FILE() substitutions in other files. 11588# 11589ac_config_files="$ac_config_files make/rules make/includes" 11590 11591 11592# Extract the first word of "ar", so it can be a program name with args. 11593set dummy ar; ac_word=$2 11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11595$as_echo_n "checking for $ac_word... " >&6; } 11596if ${ac_cv_path_AR+:} false; then : 11597 $as_echo_n "(cached) " >&6 11598else 11599 case $AR in 11600 [\\/]* | ?:[\\/]*) 11601 ac_cv_path_AR="$AR" # Let the user override the test with a path. 11602 ;; 11603 *) 11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11605for as_dir in $PATH 11606do 11607 IFS=$as_save_IFS 11608 test -z "$as_dir" && as_dir=. 11609 for ac_exec_ext in '' $ac_executable_extensions; do 11610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11611 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11613 break 2 11614 fi 11615done 11616 done 11617IFS=$as_save_IFS 11618 11619 ;; 11620esac 11621fi 11622AR=$ac_cv_path_AR 11623if test -n "$AR"; then 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11625$as_echo "$AR" >&6; } 11626else 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11628$as_echo "no" >&6; } 11629fi 11630 11631 11632ARFLAGS="cruv" 11633 11634 11635 11636# The POSIX ln(1) program. Non-POSIX systems may substitute 11637# "copy" or something. 11638LN=ln 11639 11640 11641case "$AR" in 11642 "") 11643 as_fn_error $? " 11644ar program not found. Please fix your PATH to include the directory in 11645which ar resides, or set AR in the environment with the full path to ar. 11646" "$LINENO" 5 11647 11648 ;; 11649esac 11650 11651# 11652# Etags. 11653# 11654for ac_prog in etags emacs-etags 11655do 11656 # Extract the first word of "$ac_prog", so it can be a program name with args. 11657set dummy $ac_prog; ac_word=$2 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11659$as_echo_n "checking for $ac_word... " >&6; } 11660if ${ac_cv_path_ETAGS+:} false; then : 11661 $as_echo_n "(cached) " >&6 11662else 11663 case $ETAGS in 11664 [\\/]* | ?:[\\/]*) 11665 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 11666 ;; 11667 *) 11668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11669for as_dir in $PATH 11670do 11671 IFS=$as_save_IFS 11672 test -z "$as_dir" && as_dir=. 11673 for ac_exec_ext in '' $ac_executable_extensions; do 11674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11675 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 11676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11677 break 2 11678 fi 11679done 11680 done 11681IFS=$as_save_IFS 11682 11683 ;; 11684esac 11685fi 11686ETAGS=$ac_cv_path_ETAGS 11687if test -n "$ETAGS"; then 11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5 11689$as_echo "$ETAGS" >&6; } 11690else 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11692$as_echo "no" >&6; } 11693fi 11694 11695 11696 test -n "$ETAGS" && break 11697done 11698 11699 11700# 11701# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of 11702# GNU emacs etags, and it requires the -L flag. 11703# 11704if test "X$ETAGS" != "X"; then 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5 11706$as_echo_n "checking for Exuberant Ctags etags... " >&6; } 11707 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11709$as_echo "yes" >&6; } 11710 ETAGS="$ETAGS -L" 11711 else 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11713$as_echo "no" >&6; } 11714 fi 11715fi 11716 11717 11718# 11719# Perl is optional; it is used only by some of the system test scripts. 11720# Note: the backtrace feature (see below) uses perl to build the symbol table, 11721# but it still compiles without perl, in which case an empty table will be used. 11722# 11723for ac_prog in perl5 perl 11724do 11725 # Extract the first word of "$ac_prog", so it can be a program name with args. 11726set dummy $ac_prog; ac_word=$2 11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11728$as_echo_n "checking for $ac_word... " >&6; } 11729if ${ac_cv_path_PERL+:} false; then : 11730 $as_echo_n "(cached) " >&6 11731else 11732 case $PERL in 11733 [\\/]* | ?:[\\/]*) 11734 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 11735 ;; 11736 *) 11737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11738for as_dir in $PATH 11739do 11740 IFS=$as_save_IFS 11741 test -z "$as_dir" && as_dir=. 11742 for ac_exec_ext in '' $ac_executable_extensions; do 11743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11744 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 11745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11746 break 2 11747 fi 11748done 11749 done 11750IFS=$as_save_IFS 11751 11752 ;; 11753esac 11754fi 11755PERL=$ac_cv_path_PERL 11756if test -n "$PERL"; then 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 11758$as_echo "$PERL" >&6; } 11759else 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11761$as_echo "no" >&6; } 11762fi 11763 11764 11765 test -n "$PERL" && break 11766done 11767 11768 11769 11770# 11771# Python is also optional; it is used by the tools in bin/python. 11772# If python is unavailable, we simply don't build those. 11773# 11774 11775# Check whether --with-python was given. 11776if test "${with_python+set}" = set; then : 11777 withval=$with_python; use_python="$withval" 11778else 11779 use_python="unspec" 11780fi 11781 11782 11783python="python python3 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4" 11784testscript='try: import argparse 11785except: exit(1)' 11786case "$use_python" in 11787 no) 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python support" >&5 11789$as_echo_n "checking for python support... " >&6; } 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11791$as_echo "disabled" >&6; } 11792 ;; 11793 unspec|yes|*) 11794 case "$use_python" in 11795 unspec|yes|'') 11796 for p in $python 11797 do 11798 for ac_prog in $p 11799do 11800 # Extract the first word of "$ac_prog", so it can be a program name with args. 11801set dummy $ac_prog; ac_word=$2 11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11803$as_echo_n "checking for $ac_word... " >&6; } 11804if ${ac_cv_path_PYTHON+:} false; then : 11805 $as_echo_n "(cached) " >&6 11806else 11807 case $PYTHON in 11808 [\\/]* | ?:[\\/]*) 11809 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 11810 ;; 11811 *) 11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11813for as_dir in $PATH 11814do 11815 IFS=$as_save_IFS 11816 test -z "$as_dir" && as_dir=. 11817 for ac_exec_ext in '' $ac_executable_extensions; do 11818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11819 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11821 break 2 11822 fi 11823done 11824 done 11825IFS=$as_save_IFS 11826 11827 ;; 11828esac 11829fi 11830PYTHON=$ac_cv_path_PYTHON 11831if test -n "$PYTHON"; then 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 11833$as_echo "$PYTHON" >&6; } 11834else 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11836$as_echo "no" >&6; } 11837fi 11838 11839 11840 test -n "$PYTHON" && break 11841done 11842 11843 if test "X$PYTHON" == "X"; then 11844 continue; 11845 fi 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'argparse'" >&5 11847$as_echo_n "checking python module 'argparse'... " >&6; } 11848 if ${PYTHON:-false} -c "$testscript"; then 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5 11850$as_echo "found, using $PYTHON" >&6; } 11851 break 11852 fi 11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11854$as_echo "not found" >&6; } 11855 unset ac_cv_path_PYTHON 11856 unset PYTHON 11857 done 11858 if test "X$PYTHON" == "X" 11859 then 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python support" >&5 11861$as_echo_n "checking for python support... " >&6; } 11862 case "$use_python" in 11863 unspec) 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11865$as_echo "disabled" >&6; } 11866 ;; 11867 yes) 11868 as_fn_error $? "missing python" "$LINENO" 5 11869 ;; 11870 esac 11871 fi 11872 ;; 11873 *) 11874 case "$use_python" in 11875 /*) 11876 PYTHON="$use_python" 11877 ;; 11878 *) 11879 for ac_prog in $use_python 11880do 11881 # Extract the first word of "$ac_prog", so it can be a program name with args. 11882set dummy $ac_prog; ac_word=$2 11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11884$as_echo_n "checking for $ac_word... " >&6; } 11885if ${ac_cv_path_PYTHON+:} false; then : 11886 $as_echo_n "(cached) " >&6 11887else 11888 case $PYTHON in 11889 [\\/]* | ?:[\\/]*) 11890 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 11891 ;; 11892 *) 11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11894for as_dir in $PATH 11895do 11896 IFS=$as_save_IFS 11897 test -z "$as_dir" && as_dir=. 11898 for ac_exec_ext in '' $ac_executable_extensions; do 11899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11900 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11902 break 2 11903 fi 11904done 11905 done 11906IFS=$as_save_IFS 11907 11908 ;; 11909esac 11910fi 11911PYTHON=$ac_cv_path_PYTHON 11912if test -n "$PYTHON"; then 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 11914$as_echo "$PYTHON" >&6; } 11915else 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11917$as_echo "no" >&6; } 11918fi 11919 11920 11921 test -n "$PYTHON" && break 11922done 11923 11924 ;; 11925 esac 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'argparse'" >&5 11927$as_echo_n "checking python module 'argparse'... " >&6; } 11928 if ${PYTHON:-false} -c "$testscript"; then 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5 11930$as_echo "found, using $PYTHON" >&6; } 11931 break 11932 else 11933 as_fn_error $? "not found" "$LINENO" 5 11934 fi 11935 ;; 11936 esac 11937 ;; 11938esac 11939 11940PYTHON_TOOLS='' 11941CHECKDS='' 11942COVERAGE='' 11943if test "X$PYTHON" != "X"; then 11944 PYTHON_TOOLS=python 11945 CHECKDS=checkds 11946 COVERAGE=coverage 11947fi 11948 11949 11950 11951 11952# 11953# Special processing of paths depending on whether --prefix, 11954# --sysconfdir or --localstatedir arguments were given. What's 11955# desired is some compatibility with the way previous versions 11956# of BIND built; they defaulted to /usr/local for most parts of 11957# the installation, but named.boot/named.conf was in /etc 11958# and named.pid was in /var/run. 11959# 11960# So ... if none of --prefix, --sysconfdir or --localstatedir are 11961# specified, set things up that way. If --prefix is given, use 11962# it for sysconfdir and localstatedir the way configure normally 11963# would. To change the prefix for everything but leave named.conf 11964# in /etc or named.pid in /var/run, then do this the usual configure way: 11965# ./configure --prefix=/somewhere --sysconfdir=/etc 11966# ./configure --prefix=/somewhere --localstatedir=/var 11967# 11968# To put named.conf and named.pid in /usr/local with everything else, 11969# set the prefix explicitly to /usr/local even though that's the default: 11970# ./configure --prefix=/usr/local 11971# 11972case "$prefix" in 11973 NONE) 11974 case "$sysconfdir" in 11975 '${prefix}/etc') 11976 sysconfdir=/etc 11977 ;; 11978 esac 11979 case "$localstatedir" in 11980 '${prefix}/var') 11981 localstatedir=/var 11982 ;; 11983 esac 11984 ;; 11985esac 11986 11987# 11988# Make sure INSTALL uses an absolute path, else it will be wrong in all 11989# Makefiles, since they use make/rules.in and INSTALL will be adjusted by 11990# configure based on the location of the file where it is substituted. 11991# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate 11992# subdirectory of install-sh, This relative path will be wrong for all 11993# directories more than one level down from install-sh. 11994# 11995case "$INSTALL" in 11996 /*) 11997 ;; 11998 *) 11999 # 12000 # Not all systems have dirname. 12001 # 12002 12003 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`" 12004 12005 12006 ac_prog="`echo $INSTALL | sed 's%.*/%%'`" 12007 test "$ac_dir" = "$ac_prog" && ac_dir=. 12008 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`" 12009 INSTALL="$ac_dir/$ac_prog" 12010 ;; 12011esac 12012 12013# 12014# On these hosts, we really want to use cc, not gcc, even if it is 12015# found. The gcc that these systems have will not correctly handle 12016# pthreads. 12017# 12018# However, if the user sets $CC to be something, let that override 12019# our change. 12020# 12021if test "X$CC" = "X" ; then 12022 case "$host" in 12023 *-dec-osf*) 12024 CC="cc" 12025 ;; 12026 *-solaris*) 12027 # Use Sun's cc if it is available, but watch 12028 # out for /usr/ucb/cc; it will never be the right 12029 # compiler to use. 12030 # 12031 # If setting CC here fails, the AC_PROG_CC done 12032 # below might still find gcc. 12033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 12034 for ac_dir in $PATH; do 12035 test -z "$ac_dir" && ac_dir=. 12036 case "$ac_dir" in 12037 /usr/ucb) 12038 # exclude 12039 ;; 12040 *) 12041 if test -f "$ac_dir/cc"; then 12042 CC="$ac_dir/cc" 12043 break 12044 fi 12045 ;; 12046 esac 12047 done 12048 IFS="$ac_save_ifs" 12049 ;; 12050 *-hp-hpux*) 12051 CC="cc" 12052 ;; 12053 mips-sgi-irix*) 12054 CC="cc" 12055 ;; 12056 esac 12057fi 12058 12059ac_ext=c 12060ac_cpp='$CPP $CPPFLAGS' 12061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12063ac_compiler_gnu=$ac_cv_c_compiler_gnu 12064if test -n "$ac_tool_prefix"; then 12065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12066set dummy ${ac_tool_prefix}gcc; ac_word=$2 12067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12068$as_echo_n "checking for $ac_word... " >&6; } 12069if ${ac_cv_prog_CC+:} false; then : 12070 $as_echo_n "(cached) " >&6 12071else 12072 if test -n "$CC"; then 12073 ac_cv_prog_CC="$CC" # Let the user override the test. 12074else 12075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12076for as_dir in $PATH 12077do 12078 IFS=$as_save_IFS 12079 test -z "$as_dir" && as_dir=. 12080 for ac_exec_ext in '' $ac_executable_extensions; do 12081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12082 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12084 break 2 12085 fi 12086done 12087 done 12088IFS=$as_save_IFS 12089 12090fi 12091fi 12092CC=$ac_cv_prog_CC 12093if test -n "$CC"; then 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12095$as_echo "$CC" >&6; } 12096else 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12098$as_echo "no" >&6; } 12099fi 12100 12101 12102fi 12103if test -z "$ac_cv_prog_CC"; then 12104 ac_ct_CC=$CC 12105 # Extract the first word of "gcc", so it can be a program name with args. 12106set dummy gcc; ac_word=$2 12107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12108$as_echo_n "checking for $ac_word... " >&6; } 12109if ${ac_cv_prog_ac_ct_CC+:} false; then : 12110 $as_echo_n "(cached) " >&6 12111else 12112 if test -n "$ac_ct_CC"; then 12113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12114else 12115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12116for as_dir in $PATH 12117do 12118 IFS=$as_save_IFS 12119 test -z "$as_dir" && as_dir=. 12120 for ac_exec_ext in '' $ac_executable_extensions; do 12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12122 ac_cv_prog_ac_ct_CC="gcc" 12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12124 break 2 12125 fi 12126done 12127 done 12128IFS=$as_save_IFS 12129 12130fi 12131fi 12132ac_ct_CC=$ac_cv_prog_ac_ct_CC 12133if test -n "$ac_ct_CC"; then 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12135$as_echo "$ac_ct_CC" >&6; } 12136else 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12138$as_echo "no" >&6; } 12139fi 12140 12141 if test "x$ac_ct_CC" = x; then 12142 CC="" 12143 else 12144 case $cross_compiling:$ac_tool_warned in 12145yes:) 12146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12148ac_tool_warned=yes ;; 12149esac 12150 CC=$ac_ct_CC 12151 fi 12152else 12153 CC="$ac_cv_prog_CC" 12154fi 12155 12156if test -z "$CC"; then 12157 if test -n "$ac_tool_prefix"; then 12158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12159set dummy ${ac_tool_prefix}cc; ac_word=$2 12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12161$as_echo_n "checking for $ac_word... " >&6; } 12162if ${ac_cv_prog_CC+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164else 12165 if test -n "$CC"; then 12166 ac_cv_prog_CC="$CC" # Let the user override the test. 12167else 12168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12169for as_dir in $PATH 12170do 12171 IFS=$as_save_IFS 12172 test -z "$as_dir" && as_dir=. 12173 for ac_exec_ext in '' $ac_executable_extensions; do 12174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12175 ac_cv_prog_CC="${ac_tool_prefix}cc" 12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12177 break 2 12178 fi 12179done 12180 done 12181IFS=$as_save_IFS 12182 12183fi 12184fi 12185CC=$ac_cv_prog_CC 12186if test -n "$CC"; then 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12188$as_echo "$CC" >&6; } 12189else 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12191$as_echo "no" >&6; } 12192fi 12193 12194 12195 fi 12196fi 12197if test -z "$CC"; then 12198 # Extract the first word of "cc", so it can be a program name with args. 12199set dummy cc; ac_word=$2 12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12201$as_echo_n "checking for $ac_word... " >&6; } 12202if ${ac_cv_prog_CC+:} false; then : 12203 $as_echo_n "(cached) " >&6 12204else 12205 if test -n "$CC"; then 12206 ac_cv_prog_CC="$CC" # Let the user override the test. 12207else 12208 ac_prog_rejected=no 12209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12210for as_dir in $PATH 12211do 12212 IFS=$as_save_IFS 12213 test -z "$as_dir" && as_dir=. 12214 for ac_exec_ext in '' $ac_executable_extensions; do 12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12217 ac_prog_rejected=yes 12218 continue 12219 fi 12220 ac_cv_prog_CC="cc" 12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12222 break 2 12223 fi 12224done 12225 done 12226IFS=$as_save_IFS 12227 12228if test $ac_prog_rejected = yes; then 12229 # We found a bogon in the path, so make sure we never use it. 12230 set dummy $ac_cv_prog_CC 12231 shift 12232 if test $# != 0; then 12233 # We chose a different compiler from the bogus one. 12234 # However, it has the same basename, so the bogon will be chosen 12235 # first if we set CC to just the basename; use the full file name. 12236 shift 12237 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12238 fi 12239fi 12240fi 12241fi 12242CC=$ac_cv_prog_CC 12243if test -n "$CC"; then 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12245$as_echo "$CC" >&6; } 12246else 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12248$as_echo "no" >&6; } 12249fi 12250 12251 12252fi 12253if test -z "$CC"; then 12254 if test -n "$ac_tool_prefix"; then 12255 for ac_prog in cl.exe 12256 do 12257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12258set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12260$as_echo_n "checking for $ac_word... " >&6; } 12261if ${ac_cv_prog_CC+:} false; then : 12262 $as_echo_n "(cached) " >&6 12263else 12264 if test -n "$CC"; then 12265 ac_cv_prog_CC="$CC" # Let the user override the test. 12266else 12267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12268for as_dir in $PATH 12269do 12270 IFS=$as_save_IFS 12271 test -z "$as_dir" && as_dir=. 12272 for ac_exec_ext in '' $ac_executable_extensions; do 12273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12276 break 2 12277 fi 12278done 12279 done 12280IFS=$as_save_IFS 12281 12282fi 12283fi 12284CC=$ac_cv_prog_CC 12285if test -n "$CC"; then 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12287$as_echo "$CC" >&6; } 12288else 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12290$as_echo "no" >&6; } 12291fi 12292 12293 12294 test -n "$CC" && break 12295 done 12296fi 12297if test -z "$CC"; then 12298 ac_ct_CC=$CC 12299 for ac_prog in cl.exe 12300do 12301 # Extract the first word of "$ac_prog", so it can be a program name with args. 12302set dummy $ac_prog; ac_word=$2 12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12304$as_echo_n "checking for $ac_word... " >&6; } 12305if ${ac_cv_prog_ac_ct_CC+:} false; then : 12306 $as_echo_n "(cached) " >&6 12307else 12308 if test -n "$ac_ct_CC"; then 12309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12310else 12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12312for as_dir in $PATH 12313do 12314 IFS=$as_save_IFS 12315 test -z "$as_dir" && as_dir=. 12316 for ac_exec_ext in '' $ac_executable_extensions; do 12317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12318 ac_cv_prog_ac_ct_CC="$ac_prog" 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12320 break 2 12321 fi 12322done 12323 done 12324IFS=$as_save_IFS 12325 12326fi 12327fi 12328ac_ct_CC=$ac_cv_prog_ac_ct_CC 12329if test -n "$ac_ct_CC"; then 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12331$as_echo "$ac_ct_CC" >&6; } 12332else 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12334$as_echo "no" >&6; } 12335fi 12336 12337 12338 test -n "$ac_ct_CC" && break 12339done 12340 12341 if test "x$ac_ct_CC" = x; then 12342 CC="" 12343 else 12344 case $cross_compiling:$ac_tool_warned in 12345yes:) 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12348ac_tool_warned=yes ;; 12349esac 12350 CC=$ac_ct_CC 12351 fi 12352fi 12353 12354fi 12355 12356 12357test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12359as_fn_error $? "no acceptable C compiler found in \$PATH 12360See \`config.log' for more details" "$LINENO" 5; } 12361 12362# Provide some information about the compiler. 12363$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12364set X $ac_compile 12365ac_compiler=$2 12366for ac_option in --version -v -V -qversion; do 12367 { { ac_try="$ac_compiler $ac_option >&5" 12368case "(($ac_try" in 12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12370 *) ac_try_echo=$ac_try;; 12371esac 12372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12373$as_echo "$ac_try_echo"; } >&5 12374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12375 ac_status=$? 12376 if test -s conftest.err; then 12377 sed '10a\ 12378... rest of stderr output deleted ... 12379 10q' conftest.err >conftest.er1 12380 cat conftest.er1 >&5 12381 fi 12382 rm -f conftest.er1 conftest.err 12383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12384 test $ac_status = 0; } 12385done 12386 12387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12388$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12389if ${ac_cv_c_compiler_gnu+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391else 12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12393/* end confdefs.h. */ 12394 12395int 12396main () 12397{ 12398#ifndef __GNUC__ 12399 choke me 12400#endif 12401 12402 ; 12403 return 0; 12404} 12405_ACEOF 12406if ac_fn_c_try_compile "$LINENO"; then : 12407 ac_compiler_gnu=yes 12408else 12409 ac_compiler_gnu=no 12410fi 12411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12412ac_cv_c_compiler_gnu=$ac_compiler_gnu 12413 12414fi 12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12416$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12417if test $ac_compiler_gnu = yes; then 12418 GCC=yes 12419else 12420 GCC= 12421fi 12422ac_test_CFLAGS=${CFLAGS+set} 12423ac_save_CFLAGS=$CFLAGS 12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12425$as_echo_n "checking whether $CC accepts -g... " >&6; } 12426if ${ac_cv_prog_cc_g+:} false; then : 12427 $as_echo_n "(cached) " >&6 12428else 12429 ac_save_c_werror_flag=$ac_c_werror_flag 12430 ac_c_werror_flag=yes 12431 ac_cv_prog_cc_g=no 12432 CFLAGS="-g" 12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12434/* end confdefs.h. */ 12435 12436int 12437main () 12438{ 12439 12440 ; 12441 return 0; 12442} 12443_ACEOF 12444if ac_fn_c_try_compile "$LINENO"; then : 12445 ac_cv_prog_cc_g=yes 12446else 12447 CFLAGS="" 12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12449/* end confdefs.h. */ 12450 12451int 12452main () 12453{ 12454 12455 ; 12456 return 0; 12457} 12458_ACEOF 12459if ac_fn_c_try_compile "$LINENO"; then : 12460 12461else 12462 ac_c_werror_flag=$ac_save_c_werror_flag 12463 CFLAGS="-g" 12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12465/* end confdefs.h. */ 12466 12467int 12468main () 12469{ 12470 12471 ; 12472 return 0; 12473} 12474_ACEOF 12475if ac_fn_c_try_compile "$LINENO"; then : 12476 ac_cv_prog_cc_g=yes 12477fi 12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12479fi 12480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12481fi 12482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12483 ac_c_werror_flag=$ac_save_c_werror_flag 12484fi 12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12486$as_echo "$ac_cv_prog_cc_g" >&6; } 12487if test "$ac_test_CFLAGS" = set; then 12488 CFLAGS=$ac_save_CFLAGS 12489elif test $ac_cv_prog_cc_g = yes; then 12490 if test "$GCC" = yes; then 12491 CFLAGS="-g -O2" 12492 else 12493 CFLAGS="-g" 12494 fi 12495else 12496 if test "$GCC" = yes; then 12497 CFLAGS="-O2" 12498 else 12499 CFLAGS= 12500 fi 12501fi 12502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12503$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12504if ${ac_cv_prog_cc_c89+:} false; then : 12505 $as_echo_n "(cached) " >&6 12506else 12507 ac_cv_prog_cc_c89=no 12508ac_save_CC=$CC 12509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12510/* end confdefs.h. */ 12511#include <stdarg.h> 12512#include <stdio.h> 12513struct stat; 12514/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12515struct buf { int x; }; 12516FILE * (*rcsopen) (struct buf *, struct stat *, int); 12517static char *e (p, i) 12518 char **p; 12519 int i; 12520{ 12521 return p[i]; 12522} 12523static char *f (char * (*g) (char **, int), char **p, ...) 12524{ 12525 char *s; 12526 va_list v; 12527 va_start (v,p); 12528 s = g (p, va_arg (v,int)); 12529 va_end (v); 12530 return s; 12531} 12532 12533/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12534 function prototypes and stuff, but not '\xHH' hex character constants. 12535 These don't provoke an error unfortunately, instead are silently treated 12536 as 'x'. The following induces an error, until -std is added to get 12537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12538 array size at least. It's necessary to write '\x00'==0 to get something 12539 that's true only with -std. */ 12540int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12541 12542/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12543 inside strings and character constants. */ 12544#define FOO(x) 'x' 12545int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12546 12547int test (int i, double x); 12548struct s1 {int (*f) (int a);}; 12549struct s2 {int (*f) (double a);}; 12550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12551int argc; 12552char **argv; 12553int 12554main () 12555{ 12556return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12557 ; 12558 return 0; 12559} 12560_ACEOF 12561for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12562 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12563do 12564 CC="$ac_save_CC $ac_arg" 12565 if ac_fn_c_try_compile "$LINENO"; then : 12566 ac_cv_prog_cc_c89=$ac_arg 12567fi 12568rm -f core conftest.err conftest.$ac_objext 12569 test "x$ac_cv_prog_cc_c89" != "xno" && break 12570done 12571rm -f conftest.$ac_ext 12572CC=$ac_save_CC 12573 12574fi 12575# AC_CACHE_VAL 12576case "x$ac_cv_prog_cc_c89" in 12577 x) 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12579$as_echo "none needed" >&6; } ;; 12580 xno) 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12582$as_echo "unsupported" >&6; } ;; 12583 *) 12584 CC="$CC $ac_cv_prog_cc_c89" 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12586$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12587esac 12588if test "x$ac_cv_prog_cc_c89" != xno; then : 12589 12590fi 12591 12592ac_ext=c 12593ac_cpp='$CPP $CPPFLAGS' 12594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12596ac_compiler_gnu=$ac_cv_c_compiler_gnu 12597 12598 12599# 12600# gcc's optimiser is broken at -02 for ultrasparc 12601# 12602if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then 12603 case "$host" in 12604 sparc-*) 12605 CCFLAGS="-g -O1" 12606 ;; 12607 esac 12608fi 12609 12610# 12611# OS dependent CC flags 12612# 12613case "$host" in 12614 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or 12615 # -D_XOPEN_SOURCE_EXTENDED. 12616 *-dec-osf*) 12617 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET" 12618 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET" 12619 ;; 12620 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros 12621 *-hp-hpux*) 12622 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED" 12623 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 12624 LIBS="-lxnet $LIBS" 12625 ;; 12626 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros 12627 *-solaris*) 12628 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__" 12629 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__" 12630 ;; 12631 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides 12632 # parts of the IPv6 Advanced Socket API as a result. This is stupid 12633 # as it breaks how the two halves (Basic and Advanced) of the IPv6 12634 # Socket API were designed to be used but we have to live with it. 12635 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. 12636 *-linux* | *-kfreebsd*-gnu*) 12637 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" 12638 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 12639 ;; 12640 # 12641 # Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use. 12642 # Setting this is sufficient to select the correct behavior for BIND 9. 12643 # 12644 *-darwin*) 12645 STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542" 12646 CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542" 12647 ;; 12648esac 12649 12650# 12651# CCNOOPT defaults to -O0 on gcc and disables optimization when is last 12652# 12653if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then 12654 CCNOOPT="-O0" 12655fi 12656 12657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12658$as_echo_n "checking for ANSI C header files... " >&6; } 12659if ${ac_cv_header_stdc+:} false; then : 12660 $as_echo_n "(cached) " >&6 12661else 12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12663/* end confdefs.h. */ 12664#include <stdlib.h> 12665#include <stdarg.h> 12666#include <string.h> 12667#include <float.h> 12668 12669int 12670main () 12671{ 12672 12673 ; 12674 return 0; 12675} 12676_ACEOF 12677if ac_fn_c_try_compile "$LINENO"; then : 12678 ac_cv_header_stdc=yes 12679else 12680 ac_cv_header_stdc=no 12681fi 12682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12683 12684if test $ac_cv_header_stdc = yes; then 12685 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687/* end confdefs.h. */ 12688#include <string.h> 12689 12690_ACEOF 12691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12692 $EGREP "memchr" >/dev/null 2>&1; then : 12693 12694else 12695 ac_cv_header_stdc=no 12696fi 12697rm -f conftest* 12698 12699fi 12700 12701if test $ac_cv_header_stdc = yes; then 12702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12704/* end confdefs.h. */ 12705#include <stdlib.h> 12706 12707_ACEOF 12708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12709 $EGREP "free" >/dev/null 2>&1; then : 12710 12711else 12712 ac_cv_header_stdc=no 12713fi 12714rm -f conftest* 12715 12716fi 12717 12718if test $ac_cv_header_stdc = yes; then 12719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12720 if test "$cross_compiling" = yes; then : 12721 : 12722else 12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12724/* end confdefs.h. */ 12725#include <ctype.h> 12726#include <stdlib.h> 12727#if ((' ' & 0x0FF) == 0x020) 12728# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12729# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12730#else 12731# define ISLOWER(c) \ 12732 (('a' <= (c) && (c) <= 'i') \ 12733 || ('j' <= (c) && (c) <= 'r') \ 12734 || ('s' <= (c) && (c) <= 'z')) 12735# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12736#endif 12737 12738#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12739int 12740main () 12741{ 12742 int i; 12743 for (i = 0; i < 256; i++) 12744 if (XOR (islower (i), ISLOWER (i)) 12745 || toupper (i) != TOUPPER (i)) 12746 return 2; 12747 return 0; 12748} 12749_ACEOF 12750if ac_fn_c_try_run "$LINENO"; then : 12751 12752else 12753 ac_cv_header_stdc=no 12754fi 12755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12756 conftest.$ac_objext conftest.beam conftest.$ac_ext 12757fi 12758 12759fi 12760fi 12761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12762$as_echo "$ac_cv_header_stdc" >&6; } 12763if test $ac_cv_header_stdc = yes; then 12764 12765$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12766 12767fi 12768 12769 12770for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h 12771do : 12772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12773ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12774#ifdef HAVE_SYS_PARAM_H 12775# include <sys/param.h> 12776#endif 12777#ifdef HAVE_SYS_SOCKET_H 12778# include <sys/socket.h> 12779#endif 12780 12781" 12782if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12783 cat >>confdefs.h <<_ACEOF 12784#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12785_ACEOF 12786 12787fi 12788 12789done 12790 12791 12792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12793$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12794if ${ac_cv_c_const+:} false; then : 12795 $as_echo_n "(cached) " >&6 12796else 12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12798/* end confdefs.h. */ 12799 12800int 12801main () 12802{ 12803 12804#ifndef __cplusplus 12805 /* Ultrix mips cc rejects this sort of thing. */ 12806 typedef int charset[2]; 12807 const charset cs = { 0, 0 }; 12808 /* SunOS 4.1.1 cc rejects this. */ 12809 char const *const *pcpcc; 12810 char **ppc; 12811 /* NEC SVR4.0.2 mips cc rejects this. */ 12812 struct point {int x, y;}; 12813 static struct point const zero = {0,0}; 12814 /* AIX XL C 1.02.0.0 rejects this. 12815 It does not let you subtract one const X* pointer from another in 12816 an arm of an if-expression whose if-part is not a constant 12817 expression */ 12818 const char *g = "string"; 12819 pcpcc = &g + (g ? g-g : 0); 12820 /* HPUX 7.0 cc rejects these. */ 12821 ++pcpcc; 12822 ppc = (char**) pcpcc; 12823 pcpcc = (char const *const *) ppc; 12824 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12825 char tx; 12826 char *t = &tx; 12827 char const *s = 0 ? (char *) 0 : (char const *) 0; 12828 12829 *t++ = 0; 12830 if (s) return 0; 12831 } 12832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12833 int x[] = {25, 17}; 12834 const int *foo = &x[0]; 12835 ++foo; 12836 } 12837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12838 typedef const int *iptr; 12839 iptr p = 0; 12840 ++p; 12841 } 12842 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12844 struct s { int j; const int *ap[3]; } bx; 12845 struct s *b = &bx; b->j = 5; 12846 } 12847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12848 const int foo = 10; 12849 if (!foo) return 0; 12850 } 12851 return !cs[0] && !zero.x; 12852#endif 12853 12854 ; 12855 return 0; 12856} 12857_ACEOF 12858if ac_fn_c_try_compile "$LINENO"; then : 12859 ac_cv_c_const=yes 12860else 12861 ac_cv_c_const=no 12862fi 12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12864fi 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12866$as_echo "$ac_cv_c_const" >&6; } 12867if test $ac_cv_c_const = no; then 12868 12869$as_echo "#define const /**/" >>confdefs.h 12870 12871fi 12872 12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12874$as_echo_n "checking for inline... " >&6; } 12875if ${ac_cv_c_inline+:} false; then : 12876 $as_echo_n "(cached) " >&6 12877else 12878 ac_cv_c_inline=no 12879for ac_kw in inline __inline__ __inline; do 12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12881/* end confdefs.h. */ 12882#ifndef __cplusplus 12883typedef int foo_t; 12884static $ac_kw foo_t static_foo () {return 0; } 12885$ac_kw foo_t foo () {return 0; } 12886#endif 12887 12888_ACEOF 12889if ac_fn_c_try_compile "$LINENO"; then : 12890 ac_cv_c_inline=$ac_kw 12891fi 12892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12893 test "$ac_cv_c_inline" != no && break 12894done 12895 12896fi 12897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12898$as_echo "$ac_cv_c_inline" >&6; } 12899 12900case $ac_cv_c_inline in 12901 inline | yes) ;; 12902 *) 12903 case $ac_cv_c_inline in 12904 no) ac_val=;; 12905 *) ac_val=$ac_cv_c_inline;; 12906 esac 12907 cat >>confdefs.h <<_ACEOF 12908#ifndef __cplusplus 12909#define inline $ac_val 12910#endif 12911_ACEOF 12912 ;; 12913esac 12914 12915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 12916$as_echo_n "checking for working volatile... " >&6; } 12917if ${ac_cv_c_volatile+:} false; then : 12918 $as_echo_n "(cached) " >&6 12919else 12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12921/* end confdefs.h. */ 12922 12923int 12924main () 12925{ 12926 12927volatile int x; 12928int * volatile y = (int *) 0; 12929return !x && !y; 12930 ; 12931 return 0; 12932} 12933_ACEOF 12934if ac_fn_c_try_compile "$LINENO"; then : 12935 ac_cv_c_volatile=yes 12936else 12937 ac_cv_c_volatile=no 12938fi 12939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12940fi 12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 12942$as_echo "$ac_cv_c_volatile" >&6; } 12943if test $ac_cv_c_volatile = no; then 12944 12945$as_echo "#define volatile /**/" >>confdefs.h 12946 12947fi 12948 12949ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname" 12950if test "x$ac_cv_func_sysctlbyname" = xyes; then : 12951 $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h 12952 12953fi 12954 12955 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 12957$as_echo_n "checking for flexible array members... " >&6; } 12958if ${ac_cv_c_flexmember+:} false; then : 12959 $as_echo_n "(cached) " >&6 12960else 12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12962/* end confdefs.h. */ 12963#include <stdlib.h> 12964 #include <stdio.h> 12965 #include <stddef.h> 12966 struct s { int n; double d[]; }; 12967int 12968main () 12969{ 12970int m = getchar (); 12971 struct s *p = malloc (offsetof (struct s, d) 12972 + m * sizeof (double)); 12973 p->d[0] = 0.0; 12974 return p->d != (double *) NULL; 12975 ; 12976 return 0; 12977} 12978_ACEOF 12979if ac_fn_c_try_compile "$LINENO"; then : 12980 ac_cv_c_flexmember=yes 12981else 12982 ac_cv_c_flexmember=no 12983fi 12984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12985fi 12986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 12987$as_echo "$ac_cv_c_flexmember" >&6; } 12988 if test $ac_cv_c_flexmember = yes; then 12989 12990$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 12991 12992 else 12993 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 12994 12995 fi 12996 12997 12998# 12999# Check for the existence of mmap to enable the fast format zones 13000# 13001for ac_func in mmap 13002do : 13003 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 13004if test "x$ac_cv_func_mmap" = xyes; then : 13005 cat >>confdefs.h <<_ACEOF 13006#define HAVE_MMAP 1 13007_ACEOF 13008 13009fi 13010done 13011 13012 13013# 13014# Older versions of HP/UX don't define seteuid() and setegid() 13015# 13016for ac_func in seteuid setresuid 13017do : 13018 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13019ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13020if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13021 cat >>confdefs.h <<_ACEOF 13022#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13023_ACEOF 13024 13025fi 13026done 13027 13028for ac_func in setegid setresgid 13029do : 13030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13031ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13032if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13033 cat >>confdefs.h <<_ACEOF 13034#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13035_ACEOF 13036 13037fi 13038done 13039 13040 13041# BSDI doesn't have ftello fseeko 13042for ac_func in ftello fseeko 13043do : 13044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13046if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13047 cat >>confdefs.h <<_ACEOF 13048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13049_ACEOF 13050 13051fi 13052done 13053 13054 13055# 13056# UnixWare 7.1.1 with the feature supplement to the UDK compiler 13057# is reported to not support "static inline" (RT #1212). 13058# 13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5 13060$as_echo_n "checking for static inline breakage... " >&6; } 13061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13062/* end confdefs.h. */ 13063 13064 static inline int foo1() { 13065 return 0; 13066 } 13067 13068 static inline int foo2() { 13069 return foo1(); 13070 } 13071 13072int 13073main () 13074{ 13075foo1(); 13076 ; 13077 return 0; 13078} 13079_ACEOF 13080if ac_fn_c_try_compile "$LINENO"; then : 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13082$as_echo "no" >&6; } 13083else 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13085$as_echo "yes" >&6; } 13086 13087$as_echo "#define inline /**/" >>confdefs.h 13088 13089fi 13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13091 13092ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13093if test "x$ac_cv_type_size_t" = xyes; then : 13094 13095else 13096 13097cat >>confdefs.h <<_ACEOF 13098#define size_t unsigned int 13099_ACEOF 13100 13101fi 13102 13103ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 13104if test "x$ac_cv_type_ssize_t" = xyes; then : 13105 13106else 13107 13108cat >>confdefs.h <<_ACEOF 13109#define ssize_t int 13110_ACEOF 13111 13112fi 13113 13114ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 13115if test "x$ac_cv_type_uintptr_t" = xyes; then : 13116 13117else 13118 13119cat >>confdefs.h <<_ACEOF 13120#define uintptr_t unsigned long 13121_ACEOF 13122 13123fi 13124 13125ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13126#include <sys/types.h> 13127#include <sys/socket.h> 13128 13129" 13130if test "x$ac_cv_type_socklen_t" = xyes; then : 13131 $as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h 13132 13133else 13134 13135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13136/* end confdefs.h. */ 13137 13138#include <sys/types.h> 13139#include <sys/socket.h> 13140int getsockname(int, struct sockaddr *, size_t *); 13141 13142int 13143main () 13144{ 13145 13146 ; 13147 return 0; 13148} 13149_ACEOF 13150if ac_fn_c_try_compile "$LINENO"; then : 13151 $as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h 13152 13153else 13154 $as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h 13155 13156fi 13157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13158 13159fi 13160 13161 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13163$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13164if ${ac_cv_header_time+:} false; then : 13165 $as_echo_n "(cached) " >&6 13166else 13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13168/* end confdefs.h. */ 13169#include <sys/types.h> 13170#include <sys/time.h> 13171#include <time.h> 13172 13173int 13174main () 13175{ 13176if ((struct tm *) 0) 13177return 0; 13178 ; 13179 return 0; 13180} 13181_ACEOF 13182if ac_fn_c_try_compile "$LINENO"; then : 13183 ac_cv_header_time=yes 13184else 13185 ac_cv_header_time=no 13186fi 13187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13188fi 13189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13190$as_echo "$ac_cv_header_time" >&6; } 13191if test $ac_cv_header_time = yes; then 13192 13193$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13194 13195fi 13196 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 13198$as_echo_n "checking for long long... " >&6; } 13199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201 13202int 13203main () 13204{ 13205long long i = 0; return (0); 13206 ; 13207 return 0; 13208} 13209_ACEOF 13210if ac_fn_c_try_compile "$LINENO"; then : 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13212$as_echo "yes" >&6; } 13213 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1" 13214else 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13216$as_echo "no" >&6; } 13217 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG" 13218fi 13219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13220 13221 13222# 13223# check for GCC noreturn attribute 13224# 13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5 13226$as_echo_n "checking for GCC noreturn attribute... " >&6; } 13227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13228/* end confdefs.h. */ 13229 13230int 13231main () 13232{ 13233void foo() __attribute__((noreturn)); 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_compile "$LINENO"; then : 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13240$as_echo "yes" >&6; } 13241 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE" 13242 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))" 13243else 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13245$as_echo "no" >&6; } 13246 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE" 13247 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST" 13248fi 13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13250 13251 13252 13253# 13254# check if we have lifconf 13255# 13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5 13257$as_echo_n "checking for struct lifconf... " >&6; } 13258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259/* end confdefs.h. */ 13260 13261#include <sys/types.h> 13262#include <sys/socket.h> 13263#include <net/if.h> 13264 13265int 13266main () 13267{ 13268 13269struct lifconf lifconf; 13270lifconf.lifc_len = 0; 13271 13272 13273 ; 13274 return 0; 13275} 13276_ACEOF 13277if ac_fn_c_try_compile "$LINENO"; then : 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13279$as_echo "yes" >&6; } 13280 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1" 13281else 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13283$as_echo "no" >&6; } 13284 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF" 13285fi 13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13287 13288 13289# 13290# check if we have kqueue 13291# 13292# Check whether --enable-kqueue was given. 13293if test "${enable_kqueue+set}" = set; then : 13294 enableval=$enable_kqueue; want_kqueue="$enableval" 13295else 13296 want_kqueue="yes" 13297fi 13298 13299case $want_kqueue in 13300yes) 13301 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 13302if test "x$ac_cv_func_kqueue" = xyes; then : 13303 ac_cv_have_kqueue=yes 13304else 13305 ac_cv_have_kqueue=no 13306fi 13307 13308 case $ac_cv_have_kqueue in 13309 yes) 13310 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1" 13311 ;; 13312 *) 13313 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE" 13314 ;; 13315 esac 13316 ;; 13317*) 13318 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE" 13319 ;; 13320esac 13321 13322 13323# 13324# check if we have epoll. Linux kernel 2.4 has epoll_create() which fails, 13325# so we need to try running the code, not just test its existence. 13326# 13327# Check whether --enable-epoll was given. 13328if test "${enable_epoll+set}" = set; then : 13329 enableval=$enable_epoll; want_epoll="$enableval" 13330else 13331 want_epoll="auto" 13332fi 13333 13334case $want_epoll in 13335auto) 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5 13337$as_echo_n "checking epoll support... " >&6; } 13338 if test "$cross_compiling" = yes; then : 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13340$as_echo "no" >&6; } 13341 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL" 13342else 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345 13346#include <sys/epoll.h> 13347int main() { 13348 if (epoll_create(1) < 0) 13349 return (1); 13350 return (0); 13351} 13352 13353_ACEOF 13354if ac_fn_c_try_run "$LINENO"; then : 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13356$as_echo "yes" >&6; } 13357 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1" 13358else 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13360$as_echo "no" >&6; } 13361 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL" 13362fi 13363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13364 conftest.$ac_objext conftest.beam conftest.$ac_ext 13365fi 13366 13367 ;; 13368yes) 13369 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1" 13370 ;; 13371*) 13372 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL" 13373 ;; 13374esac 13375 13376 13377# 13378# check if we support /dev/poll 13379# 13380# Check whether --enable-devpoll was given. 13381if test "${enable_devpoll+set}" = set; then : 13382 enableval=$enable_devpoll; want_devpoll="$enableval" 13383else 13384 want_devpoll="yes" 13385fi 13386 13387case $want_devpoll in 13388yes) 13389 for ac_header in sys/devpoll.h devpoll.h 13390do : 13391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13392ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13393if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13394 cat >>confdefs.h <<_ACEOF 13395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13396_ACEOF 13397 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1" 13398 13399else 13400 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL" 13401 13402fi 13403 13404done 13405 13406 ;; 13407*) 13408 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL" 13409 ;; 13410esac 13411 13412 13413# 13414# check if we need to #include sys/select.h explicitly 13415# 13416case $ac_cv_header_unistd_h in 13417yes) 13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5 13419$as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; } 13420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422 13423#include <sys/types.h> /* Ultrix */ 13424#include <unistd.h> 13425int 13426main () 13427{ 13428fd_set read_set; return (0); 13429 ; 13430 return 0; 13431} 13432_ACEOF 13433if ac_fn_c_try_compile "$LINENO"; then : 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13435$as_echo "yes" >&6; } 13436 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH" 13437 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH" 13438else 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13440$as_echo "no" >&6; } 13441 case $ac_cv_header_sys_select_h in 13442 yes) 13443 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 13444 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1" 13445 ;; 13446 no) 13447 as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5 13448 ;; 13449 esac 13450 13451fi 13452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13453 ;; 13454no) 13455 case $ac_cv_header_sys_select_h in 13456 yes) 13457 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 13458 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1" 13459 ;; 13460 no) 13461 as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5 13462 ;; 13463 esac 13464 ;; 13465esac 13466 13467 13468 13469# 13470# Find the machine's endian flavor. 13471# 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13473$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13474if ${ac_cv_c_bigendian+:} false; then : 13475 $as_echo_n "(cached) " >&6 13476else 13477 ac_cv_c_bigendian=unknown 13478 # See if we're dealing with a universal compiler. 13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13480/* end confdefs.h. */ 13481#ifndef __APPLE_CC__ 13482 not a universal capable compiler 13483 #endif 13484 typedef int dummy; 13485 13486_ACEOF 13487if ac_fn_c_try_compile "$LINENO"; then : 13488 13489 # Check for potential -arch flags. It is not universal unless 13490 # there are at least two -arch flags with different values. 13491 ac_arch= 13492 ac_prev= 13493 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13494 if test -n "$ac_prev"; then 13495 case $ac_word in 13496 i?86 | x86_64 | ppc | ppc64) 13497 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13498 ac_arch=$ac_word 13499 else 13500 ac_cv_c_bigendian=universal 13501 break 13502 fi 13503 ;; 13504 esac 13505 ac_prev= 13506 elif test "x$ac_word" = "x-arch"; then 13507 ac_prev=arch 13508 fi 13509 done 13510fi 13511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13512 if test $ac_cv_c_bigendian = unknown; then 13513 # See if sys/param.h defines the BYTE_ORDER macro. 13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13515/* end confdefs.h. */ 13516#include <sys/types.h> 13517 #include <sys/param.h> 13518 13519int 13520main () 13521{ 13522#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13523 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13524 && LITTLE_ENDIAN) 13525 bogus endian macros 13526 #endif 13527 13528 ; 13529 return 0; 13530} 13531_ACEOF 13532if ac_fn_c_try_compile "$LINENO"; then : 13533 # It does; now see whether it defined to BIG_ENDIAN or not. 13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13535/* end confdefs.h. */ 13536#include <sys/types.h> 13537 #include <sys/param.h> 13538 13539int 13540main () 13541{ 13542#if BYTE_ORDER != BIG_ENDIAN 13543 not big endian 13544 #endif 13545 13546 ; 13547 return 0; 13548} 13549_ACEOF 13550if ac_fn_c_try_compile "$LINENO"; then : 13551 ac_cv_c_bigendian=yes 13552else 13553 ac_cv_c_bigendian=no 13554fi 13555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13556fi 13557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13558 fi 13559 if test $ac_cv_c_bigendian = unknown; then 13560 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13562/* end confdefs.h. */ 13563#include <limits.h> 13564 13565int 13566main () 13567{ 13568#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13569 bogus endian macros 13570 #endif 13571 13572 ; 13573 return 0; 13574} 13575_ACEOF 13576if ac_fn_c_try_compile "$LINENO"; then : 13577 # It does; now see whether it defined to _BIG_ENDIAN or not. 13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13579/* end confdefs.h. */ 13580#include <limits.h> 13581 13582int 13583main () 13584{ 13585#ifndef _BIG_ENDIAN 13586 not big endian 13587 #endif 13588 13589 ; 13590 return 0; 13591} 13592_ACEOF 13593if ac_fn_c_try_compile "$LINENO"; then : 13594 ac_cv_c_bigendian=yes 13595else 13596 ac_cv_c_bigendian=no 13597fi 13598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13599fi 13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13601 fi 13602 if test $ac_cv_c_bigendian = unknown; then 13603 # Compile a test program. 13604 if test "$cross_compiling" = yes; then : 13605 # Try to guess by grepping values from an object file. 13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13607/* end confdefs.h. */ 13608short int ascii_mm[] = 13609 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13610 short int ascii_ii[] = 13611 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13612 int use_ascii (int i) { 13613 return ascii_mm[i] + ascii_ii[i]; 13614 } 13615 short int ebcdic_ii[] = 13616 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13617 short int ebcdic_mm[] = 13618 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13619 int use_ebcdic (int i) { 13620 return ebcdic_mm[i] + ebcdic_ii[i]; 13621 } 13622 extern int foo; 13623 13624int 13625main () 13626{ 13627return use_ascii (foo) == use_ebcdic (foo); 13628 ; 13629 return 0; 13630} 13631_ACEOF 13632if ac_fn_c_try_compile "$LINENO"; then : 13633 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13634 ac_cv_c_bigendian=yes 13635 fi 13636 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13637 if test "$ac_cv_c_bigendian" = unknown; then 13638 ac_cv_c_bigendian=no 13639 else 13640 # finding both strings is unlikely to happen, but who knows? 13641 ac_cv_c_bigendian=unknown 13642 fi 13643 fi 13644fi 13645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13646else 13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13648/* end confdefs.h. */ 13649$ac_includes_default 13650int 13651main () 13652{ 13653 13654 /* Are we little or big endian? From Harbison&Steele. */ 13655 union 13656 { 13657 long int l; 13658 char c[sizeof (long int)]; 13659 } u; 13660 u.l = 1; 13661 return u.c[sizeof (long int) - 1] == 1; 13662 13663 ; 13664 return 0; 13665} 13666_ACEOF 13667if ac_fn_c_try_run "$LINENO"; then : 13668 ac_cv_c_bigendian=no 13669else 13670 ac_cv_c_bigendian=yes 13671fi 13672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13673 conftest.$ac_objext conftest.beam conftest.$ac_ext 13674fi 13675 13676 fi 13677fi 13678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13679$as_echo "$ac_cv_c_bigendian" >&6; } 13680 case $ac_cv_c_bigendian in #( 13681 yes) 13682 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13683;; #( 13684 no) 13685 ;; #( 13686 universal) 13687 13688$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13689 13690 ;; #( 13691 *) 13692 as_fn_error $? "unknown endianness 13693 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13694 esac 13695 13696 13697# 13698# GeoIP support? 13699# 13700GEOIPLINKSRCS= 13701GEOIPLINKOBJS= 13702 13703# Check whether --with-geoip was given. 13704if test "${with_geoip+set}" = set; then : 13705 withval=$with_geoip; use_geoip="$withval" 13706else 13707 use_geoip="no" 13708fi 13709 13710 13711if test "$use_geoip" = "yes" 13712then 13713 for d in /usr /usr/local /opt/local 13714 do 13715 if test -f $d/include/GeoIP.h 13716 then 13717 use_geoip=$d 13718 break 13719 fi 13720 done 13721fi 13722 13723case "$use_geoip" in 13724 no|'') 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5 13726$as_echo_n "checking for GeoIP support... " >&6; } 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13728$as_echo "disabled" >&6; } 13729 ;; 13730 *) 13731 if test -d "$use_geoip" -o -L "$use_geoip" 13732 then 13733 CFLAGS="$CFLAGS -I$use_geoip/include" 13734 CPPFLAGS="$CPPFLAGS -I$use_geoip/include" 13735 LIBS="$LIBS -L$use_geoip/lib" 13736 case "$host_os" in 13737 netbsd*|openbsd*|solaris*) 13738 LIBS="$LIBS -Wl,-rpath=$use_geoip/lib" 13739 ;; 13740 esac 13741 elif test "$use_geoip" = "yes" 13742 then 13743 as_fn_error $? "GeoIP path not found" "$LINENO" 5 13744 else 13745 as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5 13746 fi 13747 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" 13748if test "x$ac_cv_header_GeoIP_h" = xyes; then : 13749 13750else 13751 as_fn_error $? "GeoIP header file not found" "$LINENO" 5 13752 13753fi 13754 13755 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_open" >&5 13757$as_echo_n "checking for library containing GeoIP_open... " >&6; } 13758if ${ac_cv_search_GeoIP_open+:} false; then : 13759 $as_echo_n "(cached) " >&6 13760else 13761 ac_func_search_save_LIBS=$LIBS 13762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13763/* end confdefs.h. */ 13764 13765/* Override any GCC internal prototype to avoid an error. 13766 Use char because int might match the return type of a GCC 13767 builtin and then its argument prototype would still apply. */ 13768#ifdef __cplusplus 13769extern "C" 13770#endif 13771char GeoIP_open (); 13772int 13773main () 13774{ 13775return GeoIP_open (); 13776 ; 13777 return 0; 13778} 13779_ACEOF 13780for ac_lib in '' GeoIP; do 13781 if test -z "$ac_lib"; then 13782 ac_res="none required" 13783 else 13784 ac_res=-l$ac_lib 13785 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13786 fi 13787 if ac_fn_c_try_link "$LINENO"; then : 13788 ac_cv_search_GeoIP_open=$ac_res 13789fi 13790rm -f core conftest.err conftest.$ac_objext \ 13791 conftest$ac_exeext 13792 if ${ac_cv_search_GeoIP_open+:} false; then : 13793 break 13794fi 13795done 13796if ${ac_cv_search_GeoIP_open+:} false; then : 13797 13798else 13799 ac_cv_search_GeoIP_open=no 13800fi 13801rm conftest.$ac_ext 13802LIBS=$ac_func_search_save_LIBS 13803fi 13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_open" >&5 13805$as_echo "$ac_cv_search_GeoIP_open" >&6; } 13806ac_res=$ac_cv_search_GeoIP_open 13807if test "$ac_res" != no; then : 13808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13809 13810else 13811 as_fn_error $? "GeoIP library not found" "$LINENO" 5 13812 13813fi 13814 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5 13816$as_echo_n "checking for library containing fabsf... " >&6; } 13817if ${ac_cv_search_fabsf+:} false; then : 13818 $as_echo_n "(cached) " >&6 13819else 13820 ac_func_search_save_LIBS=$LIBS 13821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13822/* end confdefs.h. */ 13823 13824/* Override any GCC internal prototype to avoid an error. 13825 Use char because int might match the return type of a GCC 13826 builtin and then its argument prototype would still apply. */ 13827#ifdef __cplusplus 13828extern "C" 13829#endif 13830char fabsf (); 13831int 13832main () 13833{ 13834return fabsf (); 13835 ; 13836 return 0; 13837} 13838_ACEOF 13839for ac_lib in '' m; do 13840 if test -z "$ac_lib"; then 13841 ac_res="none required" 13842 else 13843 ac_res=-l$ac_lib 13844 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13845 fi 13846 if ac_fn_c_try_link "$LINENO"; then : 13847 ac_cv_search_fabsf=$ac_res 13848fi 13849rm -f core conftest.err conftest.$ac_objext \ 13850 conftest$ac_exeext 13851 if ${ac_cv_search_fabsf+:} false; then : 13852 break 13853fi 13854done 13855if ${ac_cv_search_fabsf+:} false; then : 13856 13857else 13858 ac_cv_search_fabsf=no 13859fi 13860rm conftest.$ac_ext 13861LIBS=$ac_func_search_save_LIBS 13862fi 13863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5 13864$as_echo "$ac_cv_search_fabsf" >&6; } 13865ac_res=$ac_cv_search_fabsf 13866if test "$ac_res" != no; then : 13867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13868 13869else 13870 as_fn_error $? "Math library not found" "$LINENO" 5 13871 13872fi 13873 13874 13875$as_echo "#define HAVE_GEOIP 1" >>confdefs.h 13876 13877 GEOIPLINKSRCS='${GEOIPLINKSRCS}' 13878 GEOIPLINKOBJS='${GEOIPLINKOBJS}' 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5 13880$as_echo_n "checking for GeoIP support... " >&6; } 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13882$as_echo "yes" >&6; } 13883 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5 13885$as_echo_n "checking for GeoIP Country IPv6 support... " >&6; } 13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13887/* end confdefs.h. */ 13888 13889 #include <GeoIP.h> 13890 #include <netinet/in.h> 13891 13892int 13893main () 13894{ 13895 13896 struct in6_addr in6; 13897 GeoIP_country_name_by_ipnum_v6(NULL, in6); 13898 13899 ; 13900 return 0; 13901} 13902_ACEOF 13903if ac_fn_c_try_compile "$LINENO"; then : 13904 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13906$as_echo "yes" >&6; } 13907 13908$as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h 13909 13910 13911else 13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13913$as_echo "no" >&6; } 13914 13915fi 13916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13917 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5 13919$as_echo_n "checking for GeoIP City IPv6 support... " >&6; } 13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13921/* end confdefs.h. */ 13922 13923 #include <GeoIP.h> 13924 #include <GeoIPCity.h> 13925 #include <netinet/in.h> 13926 13927int 13928main () 13929{ 13930 13931 struct in6_addr in6; 13932 int i = GEOIP_CITY_EDITION_REV0_V6; 13933 GeoIP_record_by_ipnum_v6(NULL, in6); 13934 13935 ; 13936 return 0; 13937} 13938_ACEOF 13939if ac_fn_c_try_compile "$LINENO"; then : 13940 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13942$as_echo "yes" >&6; } 13943 13944$as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h 13945 13946 13947else 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13949$as_echo "no" >&6; } 13950 13951fi 13952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13953 ;; 13954esac 13955 13956 13957 13958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5 13959$as_echo_n "checking for GSSAPI library... " >&6; } 13960 13961# Check whether --with-gssapi was given. 13962if test "${with_gssapi+set}" = set; then : 13963 withval=$with_gssapi; use_gssapi="$withval" 13964else 13965 use_gssapi="yes" 13966fi 13967 13968 13969# gssapi is just the framework, we really require kerberos v5, so 13970# look for those headers (the gssapi headers must be there, too) 13971# The problem with this implementation is that it doesn't allow 13972# for the specification of gssapi and krb5 headers in different locations, 13973# which probably ought to be fixed although fixing might raise the issue of 13974# trying to build with incompatible versions of gssapi and krb5. 13975if test "$use_gssapi" = "yes" 13976then 13977 # first, deal with the obvious 13978 if test \( -f /usr/include/kerberosv5/krb5.h -o \ 13979 -f /usr/include/krb5/krb5.h -o \ 13980 -f /usr/include/krb5.h \) -a \ 13981 \( -f /usr/include/gssapi.h -o \ 13982 -f /usr/include/gssapi/gssapi.h \) 13983 then 13984 use_gssapi=/usr 13985 else 13986 krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr" 13987 for d in $krb5dirs 13988 do 13989 if test -f $d/include/gssapi/gssapi_krb5.h -o \ 13990 -f $d/include/krb5.h 13991 then 13992 if test -f $d/include/gssapi/gssapi.h -o \ 13993 -f $d/include/gssapi.h 13994 then 13995 use_gssapi=$d 13996 break 13997 fi 13998 fi 13999 use_gssapi="no" 14000 done 14001 fi 14002fi 14003 14004case "$use_gssapi" in 14005 no) 14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14007$as_echo "disabled" >&6; } 14008 USE_GSSAPI='' 14009 ;; 14010 yes) 14011 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5 14012 ;; 14013 *) 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5 14015$as_echo "looking in $use_gssapi/lib" >&6; } 14016 USE_GSSAPI='-DGSSAPI' 14017 saved_cppflags="$CPPFLAGS" 14018 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS" 14019 for ac_header in gssapi.h gssapi/gssapi.h 14020do : 14021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14022ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14024 cat >>confdefs.h <<_ACEOF 14025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14026_ACEOF 14027 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>" 14028 gssapi_hack="#include <$ac_header>" 14029fi 14030 14031done 14032 14033 14034 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then 14035 as_fn_error $? "gssapi.h not found" "$LINENO" 5 14036 fi 14037 14038 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h 14039do : 14040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14041ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14042if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14043 cat >>confdefs.h <<_ACEOF 14044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14045_ACEOF 14046 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>" 14047 gssapi_krb5_hack="#include <$ac_header>" 14048fi 14049 14050done 14051 14052 14053 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h 14054do : 14055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14056ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14057if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14058 cat >>confdefs.h <<_ACEOF 14059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14060_ACEOF 14061 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>" 14062 krb5_hack="#include <$ac_header>" 14063fi 14064 14065done 14066 14067 14068 if test "$ISC_PLATFORM_KRB5HEADER" = ""; then 14069 as_fn_error $? "krb5.h not found" "$LINENO" 5 14070 fi 14071 14072 # 14073 # XXXDCL This probably doesn't work right on all systems. 14074 # It will need to be worked on as problems become evident. 14075 # 14076 # Essentially the problems here relate to two different 14077 # areas. The first area is building with either KTH 14078 # or MIT Kerberos, particularly when both are present on 14079 # the machine. The other is static versus dynamic linking. 14080 # 14081 # On the KTH vs MIT issue, Both have libkrb5 that can mess 14082 # up the works if one implementation ends up trying to 14083 # use the other's krb. This is unfortunately a situation 14084 # that very easily arises. 14085 # 14086 # Dynamic linking when the dependency information is built 14087 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes 14088 # all such problems go away, but when that setup is not 14089 # present, because either the dynamic libraries lack 14090 # dependencies or static linking is being done, then the 14091 # problems start to show up. 14092 saved_libs="$LIBS" 14093 for TRY_LIBS in \ 14094 "-lgssapi_krb5" \ 14095 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \ 14096 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \ 14097 "-lgssapi" \ 14098 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \ 14099 "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \ 14100 "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \ 14101 "-lgssapi -lkrb5 -lhx509 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \ 14102 "-lgss -lkrb5" 14103 do 14104 # Note that this does not include $saved_libs, because 14105 # on FreeBSD machines this configure script has added 14106 # -L/usr/local/lib to LIBS, which can make the 14107 # -lgssapi_krb5 test succeed with shared libraries even 14108 # when you are trying to build with KTH in /usr/lib. 14109 if test "$use_gssapi" = "/usr" 14110 then 14111 LIBS="$TRY_LIBS" 14112 else 14113 LIBS="-L$use_gssapi/lib $TRY_LIBS" 14114 fi 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5 14116$as_echo_n "checking linking as $TRY_LIBS... " >&6; } 14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14118/* end confdefs.h. */ 14119 14120#include <sys/types.h> 14121$gssapi_hack 14122$gssapi_krb5_hack 14123$krb5_hack 14124 14125int 14126main () 14127{ 14128gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL); 14129#if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H) 14130gsskrb5_register_acceptor_identity(NULL); 14131#endif 14132 ; 14133 return 0; 14134} 14135_ACEOF 14136if ac_fn_c_try_link "$LINENO"; then : 14137 gssapi_linked=yes 14138else 14139 gssapi_linked=no 14140fi 14141rm -f core conftest.err conftest.$ac_objext \ 14142 conftest$ac_exeext conftest.$ac_ext 14143 case $gssapi_linked in 14144 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14145$as_echo "yes" >&6; }; break ;; 14146 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14147$as_echo "no" >&6; } ;; 14148 esac 14149 done 14150 14151 CPPFLAGS="$saved_cppflags" 14152 14153 case $gssapi_linked in 14154 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;; 14155 esac 14156 14157 # 14158 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib 14159 # but MIT in /usr/local/lib and trying to build with KTH. 14160 # /usr/local/lib can end up earlier on the link lines. 14161 # Like most kludges, this one is not only inelegant it 14162 # is also likely to be the wrong thing to do at least as 14163 # many times as it is the right thing. Something better 14164 # needs to be done. 14165 # 14166 if test "$use_gssapi" = "/usr" -a \ 14167 -f /usr/local/lib/libkrb5.a; then 14168 FIX_KTH_VS_MIT=yes 14169 fi 14170 14171 case "$FIX_KTH_VS_MIT" in 14172 yes) 14173 case "$enable_static_linking" in 14174 yes) gssapi_lib_suffix=".a" ;; 14175 *) gssapi_lib_suffix=".so" ;; 14176 esac 14177 14178 for lib in $LIBS; do 14179 case $lib in 14180 -L*) 14181 ;; 14182 -l*) 14183 new_lib=`echo $lib | 14184 sed -e s%^-l%$use_gssapi/lib/lib% \ 14185 -e s%$%$gssapi_lib_suffix%` 14186 NEW_LIBS="$NEW_LIBS $new_lib" 14187 ;; 14188 *) 14189 as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5 14190 ;; 14191 esac 14192 done 14193 LIBS="$NEW_LIBS" 14194 ;; 14195 esac 14196 14197 DST_GSSAPI_INC="-I$use_gssapi/include" 14198 DNS_GSSAPI_LIBS="$LIBS" 14199 14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5 14201$as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; } 14202 LIBS="$saved_libs" 14203 ;; 14204esac 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS" 14215 14216# 14217# Applications linking with libdns also need to link with these libraries. 14218# 14219 14220 14221 14222# 14223# was --with-randomdev specified? 14224# 14225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5 14226$as_echo_n "checking for random device... " >&6; } 14227 14228# Check whether --with-randomdev was given. 14229if test "${with_randomdev+set}" = set; then : 14230 withval=$with_randomdev; use_randomdev="$withval" 14231else 14232 use_randomdev="unspec" 14233fi 14234 14235 14236case "$use_randomdev" in 14237 unspec) 14238 case "$cross_compiling" in 14239 yes) 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5 14241$as_echo "unspecified" >&6; } 14242 as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5 14243 esac 14244 case "$host" in 14245 *-openbsd*) 14246 devrandom=/dev/arandom 14247 ;; 14248 *) 14249 devrandom=/dev/urandom 14250 ;; 14251 esac 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5 14253$as_echo "$devrandom" >&6; } 14254 as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh` 14255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5 14256$as_echo_n "checking for $devrandom... " >&6; } 14257if eval \${$as_ac_File+:} false; then : 14258 $as_echo_n "(cached) " >&6 14259else 14260 test "$cross_compiling" = yes && 14261 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 14262if test -r "$devrandom"; then 14263 eval "$as_ac_File=yes" 14264else 14265 eval "$as_ac_File=no" 14266fi 14267fi 14268eval ac_res=\$$as_ac_File 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14270$as_echo "$ac_res" >&6; } 14271if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 14272 cat >>confdefs.h <<_ACEOF 14273#define PATH_RANDOMDEV "$devrandom" 14274_ACEOF 14275 14276fi 14277 14278 14279 ;; 14280 yes) 14281 as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5 14282 ;; 14283 no) 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14285$as_echo "disabled" >&6; } 14286 ;; 14287 *) 14288 cat >>confdefs.h <<_ACEOF 14289#define PATH_RANDOMDEV "$use_randomdev" 14290_ACEOF 14291 14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5 14293$as_echo "using \"$use_randomdev\"" >&6; } 14294 ;; 14295esac 14296 14297# 14298# Only check dsa signature generation on these platforms when performing 14299# system tests. 14300# 14301CHECK_DSA=0 14302if grep "#define PATH_RANDOMDEV " confdefs.h > /dev/null 14303then 14304 case "$host" in 14305 *darwin*|*freebsd*) 14306 CHECK_DSA=1 14307 ;; 14308 esac 14309fi 14310 14311 14312# 14313# Do we have arc4random(), etc ? arc4random_addrandom() has been removed 14314# from OpenBSD 5.5 onwards. 14315# 14316ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 14317if test "x$ac_cv_func_arc4random" = xyes; then : 14318 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 14319 14320fi 14321 14322ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom" 14323if test "x$ac_cv_func_arc4random_addrandom" = xyes; then : 14324 $as_echo "#define HAVE_ARC4RANDOM_ADDRANDOM 1" >>confdefs.h 14325 14326fi 14327 14328 14329# 14330# Begin pthreads checking. 14331# 14332# First, decide whether to use multithreading or not. 14333# 14334# Enable multithreading by default on systems where it is known 14335# to work well, and where debugging of multithreaded programs 14336# is supported. 14337# 14338 14339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5 14340$as_echo_n "checking whether to build with thread support... " >&6; } 14341 14342case $host in 14343*-dec-osf*) 14344 use_threads=true ;; 14345*-solaris2.[0-6]) 14346 # Thread signals are broken on Solaris 2.6; they are sometimes 14347 # delivered to the wrong thread. 14348 use_threads=false ;; 14349*-solaris*) 14350 use_threads=true ;; 14351*-ibm-aix*) 14352 use_threads=true ;; 14353*-hp-hpux10*) 14354 use_threads=false ;; 14355*-hp-hpux11*) 14356 use_threads=true ;; 14357*-sgi-irix*) 14358 use_threads=true ;; 14359*-sco-sysv*uw*|*-*-sysv*UnixWare*) 14360 # UnixWare 14361 use_threads=false ;; 14362*-*-sysv*OpenUNIX*) 14363 # UnixWare 14364 use_threads=true ;; 14365*-netbsd[1234].*) 14366 # NetBSD earlier than NetBSD 5.0 has poor pthreads. 14367 # Don't use it by default. 14368 use_threads=false ;; 14369*-netbsd*) 14370 use_threads=true ;; 14371*-openbsd*) 14372 # OpenBSD users have reported that named dumps core on 14373 # startup when built with threads. 14374 use_threads=false ;; 14375*-freebsd[1234567].*) 14376 # Threads are broken at least up to FreeBSD 4.11. 14377 # FreeBSD 5, 6 and 7 we have never officially supported threads 14378 # on. YMMV 14379 use_threads=false ;; 14380*-freebsd*) 14381 use_threads=true ;; 14382*-bsdi[234]*) 14383 # Thread signals do not work reliably on some versions of BSD/OS. 14384 use_threads=false ;; 14385*-bsdi5*) 14386 use_threads=true ;; 14387*-linux*) 14388 use_threads=true ;; 14389*-darwin[123456789].*) 14390 use_threads=false ;; 14391*-darwin*.*) 14392 use_threads=true ;; 14393*) 14394 use_threads=true ;; 14395esac 14396 14397# Check whether --enable-threads was given. 14398if test "${enable_threads+set}" = set; then : 14399 enableval=$enable_threads; 14400fi 14401 14402case "$enable_threads" in 14403 yes) 14404 use_threads=true 14405 ;; 14406 no) 14407 use_threads=false 14408 ;; 14409 '') 14410 # Use system-dependent default 14411 ;; 14412 *) 14413 as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5 14414 ;; 14415esac 14416 14417if $use_threads 14418then 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14420$as_echo "yes" >&6; } 14421else 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14423$as_echo "no" >&6; } 14424fi 14425 14426if $use_threads 14427then 14428 # 14429 # Search for / configure pthreads in a system-dependent fashion. 14430 # 14431 case "$host" in 14432 *-freebsd*) 14433 # We don't want to set -lpthread as that break 14434 # the ability to choose threads library at final 14435 # link time and is not valid for all architectures. 14436 14437 PTHREAD= 14438 if test "X$GCC" = "Xyes"; then 14439 saved_cc="$CC" 14440 CC="$CC -pthread" 14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5 14442$as_echo_n "checking for gcc -pthread support... " >&6; }; 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14444/* end confdefs.h. */ 14445#include <pthread.h> 14446int 14447main () 14448{ 14449printf("%x\n", pthread_create); 14450 ; 14451 return 0; 14452} 14453_ACEOF 14454if ac_fn_c_try_link "$LINENO"; then : 14455 PTHREAD="yes" 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14457$as_echo "yes" >&6; } 14458else 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14460$as_echo "no" >&6; } 14461fi 14462rm -f core conftest.err conftest.$ac_objext \ 14463 conftest$ac_exeext conftest.$ac_ext 14464 CC="$saved_cc" 14465 fi 14466 if test "X$PTHREAD" != "Xyes"; then 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 14468$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 14469if ${ac_cv_lib_pthread_pthread_create+:} false; then : 14470 $as_echo_n "(cached) " >&6 14471else 14472 ac_check_lib_save_LIBS=$LIBS 14473LIBS="-lpthread $LIBS" 14474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14475/* end confdefs.h. */ 14476 14477/* Override any GCC internal prototype to avoid an error. 14478 Use char because int might match the return type of a GCC 14479 builtin and then its argument prototype would still apply. */ 14480#ifdef __cplusplus 14481extern "C" 14482#endif 14483char pthread_create (); 14484int 14485main () 14486{ 14487return pthread_create (); 14488 ; 14489 return 0; 14490} 14491_ACEOF 14492if ac_fn_c_try_link "$LINENO"; then : 14493 ac_cv_lib_pthread_pthread_create=yes 14494else 14495 ac_cv_lib_pthread_pthread_create=no 14496fi 14497rm -f core conftest.err conftest.$ac_objext \ 14498 conftest$ac_exeext conftest.$ac_ext 14499LIBS=$ac_check_lib_save_LIBS 14500fi 14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 14502$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 14503if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 14504 cat >>confdefs.h <<_ACEOF 14505#define HAVE_LIBPTHREAD 1 14506_ACEOF 14507 14508 LIBS="-lpthread $LIBS" 14509 14510else 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5 14512$as_echo_n "checking for thread_create in -lthr... " >&6; } 14513if ${ac_cv_lib_thr_thread_create+:} false; then : 14514 $as_echo_n "(cached) " >&6 14515else 14516 ac_check_lib_save_LIBS=$LIBS 14517LIBS="-lthr $LIBS" 14518cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14519/* end confdefs.h. */ 14520 14521/* Override any GCC internal prototype to avoid an error. 14522 Use char because int might match the return type of a GCC 14523 builtin and then its argument prototype would still apply. */ 14524#ifdef __cplusplus 14525extern "C" 14526#endif 14527char thread_create (); 14528int 14529main () 14530{ 14531return thread_create (); 14532 ; 14533 return 0; 14534} 14535_ACEOF 14536if ac_fn_c_try_link "$LINENO"; then : 14537 ac_cv_lib_thr_thread_create=yes 14538else 14539 ac_cv_lib_thr_thread_create=no 14540fi 14541rm -f core conftest.err conftest.$ac_objext \ 14542 conftest$ac_exeext conftest.$ac_ext 14543LIBS=$ac_check_lib_save_LIBS 14544fi 14545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5 14546$as_echo "$ac_cv_lib_thr_thread_create" >&6; } 14547if test "x$ac_cv_lib_thr_thread_create" = xyes; then : 14548 cat >>confdefs.h <<_ACEOF 14549#define HAVE_LIBTHR 1 14550_ACEOF 14551 14552 LIBS="-lthr $LIBS" 14553 14554else 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 14556$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 14557if ${ac_cv_lib_c_r_pthread_create+:} false; then : 14558 $as_echo_n "(cached) " >&6 14559else 14560 ac_check_lib_save_LIBS=$LIBS 14561LIBS="-lc_r $LIBS" 14562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563/* end confdefs.h. */ 14564 14565/* Override any GCC internal prototype to avoid an error. 14566 Use char because int might match the return type of a GCC 14567 builtin and then its argument prototype would still apply. */ 14568#ifdef __cplusplus 14569extern "C" 14570#endif 14571char pthread_create (); 14572int 14573main () 14574{ 14575return pthread_create (); 14576 ; 14577 return 0; 14578} 14579_ACEOF 14580if ac_fn_c_try_link "$LINENO"; then : 14581 ac_cv_lib_c_r_pthread_create=yes 14582else 14583 ac_cv_lib_c_r_pthread_create=no 14584fi 14585rm -f core conftest.err conftest.$ac_objext \ 14586 conftest$ac_exeext conftest.$ac_ext 14587LIBS=$ac_check_lib_save_LIBS 14588fi 14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 14590$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 14591if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 14592 cat >>confdefs.h <<_ACEOF 14593#define HAVE_LIBC_R 1 14594_ACEOF 14595 14596 LIBS="-lc_r $LIBS" 14597 14598else 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 14600$as_echo_n "checking for pthread_create in -lc... " >&6; } 14601if ${ac_cv_lib_c_pthread_create+:} false; then : 14602 $as_echo_n "(cached) " >&6 14603else 14604 ac_check_lib_save_LIBS=$LIBS 14605LIBS="-lc $LIBS" 14606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14607/* end confdefs.h. */ 14608 14609/* Override any GCC internal prototype to avoid an error. 14610 Use char because int might match the return type of a GCC 14611 builtin and then its argument prototype would still apply. */ 14612#ifdef __cplusplus 14613extern "C" 14614#endif 14615char pthread_create (); 14616int 14617main () 14618{ 14619return pthread_create (); 14620 ; 14621 return 0; 14622} 14623_ACEOF 14624if ac_fn_c_try_link "$LINENO"; then : 14625 ac_cv_lib_c_pthread_create=yes 14626else 14627 ac_cv_lib_c_pthread_create=no 14628fi 14629rm -f core conftest.err conftest.$ac_objext \ 14630 conftest$ac_exeext conftest.$ac_ext 14631LIBS=$ac_check_lib_save_LIBS 14632fi 14633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5 14634$as_echo "$ac_cv_lib_c_pthread_create" >&6; } 14635if test "x$ac_cv_lib_c_pthread_create" = xyes; then : 14636 cat >>confdefs.h <<_ACEOF 14637#define HAVE_LIBC 1 14638_ACEOF 14639 14640 LIBS="-lc $LIBS" 14641 14642else 14643 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5 14644fi 14645 14646fi 14647 14648fi 14649 14650fi 14651 14652 fi 14653 ;; 14654 *) 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 14656$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 14657if ${ac_cv_lib_pthread_pthread_create+:} false; then : 14658 $as_echo_n "(cached) " >&6 14659else 14660 ac_check_lib_save_LIBS=$LIBS 14661LIBS="-lpthread $LIBS" 14662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14663/* end confdefs.h. */ 14664 14665/* Override any GCC internal prototype to avoid an error. 14666 Use char because int might match the return type of a GCC 14667 builtin and then its argument prototype would still apply. */ 14668#ifdef __cplusplus 14669extern "C" 14670#endif 14671char pthread_create (); 14672int 14673main () 14674{ 14675return pthread_create (); 14676 ; 14677 return 0; 14678} 14679_ACEOF 14680if ac_fn_c_try_link "$LINENO"; then : 14681 ac_cv_lib_pthread_pthread_create=yes 14682else 14683 ac_cv_lib_pthread_pthread_create=no 14684fi 14685rm -f core conftest.err conftest.$ac_objext \ 14686 conftest$ac_exeext conftest.$ac_ext 14687LIBS=$ac_check_lib_save_LIBS 14688fi 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 14690$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 14691if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 14692 cat >>confdefs.h <<_ACEOF 14693#define HAVE_LIBPTHREAD 1 14694_ACEOF 14695 14696 LIBS="-lpthread $LIBS" 14697 14698else 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5 14700$as_echo_n "checking for __pthread_create in -lpthread... " >&6; } 14701if ${ac_cv_lib_pthread___pthread_create+:} false; then : 14702 $as_echo_n "(cached) " >&6 14703else 14704 ac_check_lib_save_LIBS=$LIBS 14705LIBS="-lpthread $LIBS" 14706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14707/* end confdefs.h. */ 14708 14709/* Override any GCC internal prototype to avoid an error. 14710 Use char because int might match the return type of a GCC 14711 builtin and then its argument prototype would still apply. */ 14712#ifdef __cplusplus 14713extern "C" 14714#endif 14715char __pthread_create (); 14716int 14717main () 14718{ 14719return __pthread_create (); 14720 ; 14721 return 0; 14722} 14723_ACEOF 14724if ac_fn_c_try_link "$LINENO"; then : 14725 ac_cv_lib_pthread___pthread_create=yes 14726else 14727 ac_cv_lib_pthread___pthread_create=no 14728fi 14729rm -f core conftest.err conftest.$ac_objext \ 14730 conftest$ac_exeext conftest.$ac_ext 14731LIBS=$ac_check_lib_save_LIBS 14732fi 14733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5 14734$as_echo "$ac_cv_lib_pthread___pthread_create" >&6; } 14735if test "x$ac_cv_lib_pthread___pthread_create" = xyes; then : 14736 cat >>confdefs.h <<_ACEOF 14737#define HAVE_LIBPTHREAD 1 14738_ACEOF 14739 14740 LIBS="-lpthread $LIBS" 14741 14742else 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 14744$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 14745if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : 14746 $as_echo_n "(cached) " >&6 14747else 14748 ac_check_lib_save_LIBS=$LIBS 14749LIBS="-lpthread $LIBS" 14750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14751/* end confdefs.h. */ 14752 14753/* Override any GCC internal prototype to avoid an error. 14754 Use char because int might match the return type of a GCC 14755 builtin and then its argument prototype would still apply. */ 14756#ifdef __cplusplus 14757extern "C" 14758#endif 14759char __pthread_create_system (); 14760int 14761main () 14762{ 14763return __pthread_create_system (); 14764 ; 14765 return 0; 14766} 14767_ACEOF 14768if ac_fn_c_try_link "$LINENO"; then : 14769 ac_cv_lib_pthread___pthread_create_system=yes 14770else 14771 ac_cv_lib_pthread___pthread_create_system=no 14772fi 14773rm -f core conftest.err conftest.$ac_objext \ 14774 conftest$ac_exeext conftest.$ac_ext 14775LIBS=$ac_check_lib_save_LIBS 14776fi 14777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 14778$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 14779if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : 14780 cat >>confdefs.h <<_ACEOF 14781#define HAVE_LIBPTHREAD 1 14782_ACEOF 14783 14784 LIBS="-lpthread $LIBS" 14785 14786else 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 14788$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 14789if ${ac_cv_lib_c_r_pthread_create+:} false; then : 14790 $as_echo_n "(cached) " >&6 14791else 14792 ac_check_lib_save_LIBS=$LIBS 14793LIBS="-lc_r $LIBS" 14794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14795/* end confdefs.h. */ 14796 14797/* Override any GCC internal prototype to avoid an error. 14798 Use char because int might match the return type of a GCC 14799 builtin and then its argument prototype would still apply. */ 14800#ifdef __cplusplus 14801extern "C" 14802#endif 14803char pthread_create (); 14804int 14805main () 14806{ 14807return pthread_create (); 14808 ; 14809 return 0; 14810} 14811_ACEOF 14812if ac_fn_c_try_link "$LINENO"; then : 14813 ac_cv_lib_c_r_pthread_create=yes 14814else 14815 ac_cv_lib_c_r_pthread_create=no 14816fi 14817rm -f core conftest.err conftest.$ac_objext \ 14818 conftest$ac_exeext conftest.$ac_ext 14819LIBS=$ac_check_lib_save_LIBS 14820fi 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 14822$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 14823if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 14824 cat >>confdefs.h <<_ACEOF 14825#define HAVE_LIBC_R 1 14826_ACEOF 14827 14828 LIBS="-lc_r $LIBS" 14829 14830else 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 14832$as_echo_n "checking for pthread_create in -lc... " >&6; } 14833if ${ac_cv_lib_c_pthread_create+:} false; then : 14834 $as_echo_n "(cached) " >&6 14835else 14836 ac_check_lib_save_LIBS=$LIBS 14837LIBS="-lc $LIBS" 14838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14839/* end confdefs.h. */ 14840 14841/* Override any GCC internal prototype to avoid an error. 14842 Use char because int might match the return type of a GCC 14843 builtin and then its argument prototype would still apply. */ 14844#ifdef __cplusplus 14845extern "C" 14846#endif 14847char pthread_create (); 14848int 14849main () 14850{ 14851return pthread_create (); 14852 ; 14853 return 0; 14854} 14855_ACEOF 14856if ac_fn_c_try_link "$LINENO"; then : 14857 ac_cv_lib_c_pthread_create=yes 14858else 14859 ac_cv_lib_c_pthread_create=no 14860fi 14861rm -f core conftest.err conftest.$ac_objext \ 14862 conftest$ac_exeext conftest.$ac_ext 14863LIBS=$ac_check_lib_save_LIBS 14864fi 14865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5 14866$as_echo "$ac_cv_lib_c_pthread_create" >&6; } 14867if test "x$ac_cv_lib_c_pthread_create" = xyes; then : 14868 cat >>confdefs.h <<_ACEOF 14869#define HAVE_LIBC 1 14870_ACEOF 14871 14872 LIBS="-lc $LIBS" 14873 14874else 14875 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5 14876fi 14877 14878fi 14879 14880fi 14881 14882fi 14883 14884fi 14885 14886 ;; 14887 esac 14888fi 14889 14890if $use_threads 14891then 14892 if test "X$GCC" = "Xyes"; then 14893 case "$host" in 14894 *-freebsd*) 14895 CC="$CC -pthread" 14896 CCOPT="$CCOPT -pthread" 14897 CCNOOPT="$CCNOOPT -pthread" 14898 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 14899 ;; 14900 *-openbsd*) 14901 CC="$CC -pthread" 14902 CCOPT="$CCOPT -pthread" 14903 CCNOOPT="$CCNOOPT -pthread" 14904 ;; 14905 *-solaris*) 14906 LIBS="$LIBS -lthread" 14907 ;; 14908 *-ibm-aix*) 14909 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 14910 ;; 14911 esac 14912 else 14913 case $host in 14914 *-dec-osf*) 14915 CC="$CC -pthread" 14916 CCOPT="$CCOPT -pthread" 14917 CCNOOPT="$CCNOOPT -pthread" 14918 ;; 14919 *-solaris*) 14920 CC="$CC -mt" 14921 CCOPT="$CCOPT -mt" 14922 CCNOOPT="$CCNOOPT -mt" 14923 ;; 14924 *-ibm-aix*) 14925 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 14926 ;; 14927 *-sco-sysv*uw*|*-*-sysv*UnixWare*) 14928 CC="$CC -Kthread" 14929 CCOPT="$CCOPT -Kthread" 14930 CCNOOPT="$CCNOOPT -Kthread" 14931 ;; 14932 *-*-sysv*OpenUNIX*) 14933 CC="$CC -Kpthread" 14934 CCOPT="$CCOPT -Kpthread" 14935 CCNOOPT="$CCNOOPT -Kpthread" 14936 ;; 14937 esac 14938 fi 14939 ALWAYS_DEFINES="-D_REENTRANT" 14940 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1" 14941 THREADOPTOBJS='${THREADOPTOBJS}' 14942 THREADOPTSRCS='${THREADOPTSRCS}' 14943 thread_dir=pthreads 14944 # 14945 # We'd like to use sigwait() too 14946 # 14947 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 14948if test "x$ac_cv_func_sigwait" = xyes; then : 14949 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 14950 14951else 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 14953$as_echo_n "checking for sigwait in -lc... " >&6; } 14954if ${ac_cv_lib_c_sigwait+:} false; then : 14955 $as_echo_n "(cached) " >&6 14956else 14957 ac_check_lib_save_LIBS=$LIBS 14958LIBS="-lc $LIBS" 14959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14960/* end confdefs.h. */ 14961 14962/* Override any GCC internal prototype to avoid an error. 14963 Use char because int might match the return type of a GCC 14964 builtin and then its argument prototype would still apply. */ 14965#ifdef __cplusplus 14966extern "C" 14967#endif 14968char sigwait (); 14969int 14970main () 14971{ 14972return sigwait (); 14973 ; 14974 return 0; 14975} 14976_ACEOF 14977if ac_fn_c_try_link "$LINENO"; then : 14978 ac_cv_lib_c_sigwait=yes 14979else 14980 ac_cv_lib_c_sigwait=no 14981fi 14982rm -f core conftest.err conftest.$ac_objext \ 14983 conftest$ac_exeext conftest.$ac_ext 14984LIBS=$ac_check_lib_save_LIBS 14985fi 14986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 14987$as_echo "$ac_cv_lib_c_sigwait" >&6; } 14988if test "x$ac_cv_lib_c_sigwait" = xyes; then : 14989 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 14990 14991else 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 14993$as_echo_n "checking for sigwait in -lpthread... " >&6; } 14994if ${ac_cv_lib_pthread_sigwait+:} false; then : 14995 $as_echo_n "(cached) " >&6 14996else 14997 ac_check_lib_save_LIBS=$LIBS 14998LIBS="-lpthread $LIBS" 14999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15000/* end confdefs.h. */ 15001 15002/* Override any GCC internal prototype to avoid an error. 15003 Use char because int might match the return type of a GCC 15004 builtin and then its argument prototype would still apply. */ 15005#ifdef __cplusplus 15006extern "C" 15007#endif 15008char sigwait (); 15009int 15010main () 15011{ 15012return sigwait (); 15013 ; 15014 return 0; 15015} 15016_ACEOF 15017if ac_fn_c_try_link "$LINENO"; then : 15018 ac_cv_lib_pthread_sigwait=yes 15019else 15020 ac_cv_lib_pthread_sigwait=no 15021fi 15022rm -f core conftest.err conftest.$ac_objext \ 15023 conftest$ac_exeext conftest.$ac_ext 15024LIBS=$ac_check_lib_save_LIBS 15025fi 15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 15027$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 15028if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 15029 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 15030 15031else 15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 15033$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 15034if ${ac_cv_lib_pthread__Psigwait+:} false; then : 15035 $as_echo_n "(cached) " >&6 15036else 15037 ac_check_lib_save_LIBS=$LIBS 15038LIBS="-lpthread $LIBS" 15039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15040/* end confdefs.h. */ 15041 15042/* Override any GCC internal prototype to avoid an error. 15043 Use char because int might match the return type of a GCC 15044 builtin and then its argument prototype would still apply. */ 15045#ifdef __cplusplus 15046extern "C" 15047#endif 15048char _Psigwait (); 15049int 15050main () 15051{ 15052return _Psigwait (); 15053 ; 15054 return 0; 15055} 15056_ACEOF 15057if ac_fn_c_try_link "$LINENO"; then : 15058 ac_cv_lib_pthread__Psigwait=yes 15059else 15060 ac_cv_lib_pthread__Psigwait=no 15061fi 15062rm -f core conftest.err conftest.$ac_objext \ 15063 conftest$ac_exeext conftest.$ac_ext 15064LIBS=$ac_check_lib_save_LIBS 15065fi 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 15067$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 15068if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 15069 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 15070 15071fi 15072 15073fi 15074 15075fi 15076 15077fi 15078 15079 15080 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 15081if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 15082 $as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h 15083 15084fi 15085 15086 15087 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" 15088if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then : 15089 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h 15090 15091fi 15092 15093 15094 15095# Check whether --with-locktype was given. 15096if test "${with_locktype+set}" = set; then : 15097 withval=$with_locktype; locktype="$withval" 15098else 15099 locktype="adaptive" 15100fi 15101 15102 15103 case "$locktype" in 15104 adaptive) 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5 15106$as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; } 15107 15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15109/* end confdefs.h. */ 15110 15111 #define _GNU_SOURCE 15112 #include <pthread.h> 15113 15114int 15115main () 15116{ 15117 15118 return (PTHREAD_MUTEX_ADAPTIVE_NP); 15119 15120 ; 15121 return 0; 15122} 15123_ACEOF 15124if ac_fn_c_try_compile "$LINENO"; then : 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5 15126$as_echo "using adaptive lock type" >&6; } 15127 15128$as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h 15129 15130else 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5 15132$as_echo "using standard lock type" >&6; } 15133fi 15134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15135 ;; 15136 standard) 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5 15138$as_echo "using standard lock type" >&6; } 15139 ;; 15140 *) 15141 as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5 15142 ;; 15143 esac 15144 15145 for ac_header in sched.h 15146do : 15147 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 15148if test "x$ac_cv_header_sched_h" = xyes; then : 15149 cat >>confdefs.h <<_ACEOF 15150#define HAVE_SCHED_H 1 15151_ACEOF 15152 15153fi 15154 15155done 15156 15157 15158 case "$host" in 15159 *solaris-*) 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 15161$as_echo_n "checking for sched_yield in -lrt... " >&6; } 15162if ${ac_cv_lib_rt_sched_yield+:} false; then : 15163 $as_echo_n "(cached) " >&6 15164else 15165 ac_check_lib_save_LIBS=$LIBS 15166LIBS="-lrt $LIBS" 15167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15168/* end confdefs.h. */ 15169 15170/* Override any GCC internal prototype to avoid an error. 15171 Use char because int might match the return type of a GCC 15172 builtin and then its argument prototype would still apply. */ 15173#ifdef __cplusplus 15174extern "C" 15175#endif 15176char sched_yield (); 15177int 15178main () 15179{ 15180return sched_yield (); 15181 ; 15182 return 0; 15183} 15184_ACEOF 15185if ac_fn_c_try_link "$LINENO"; then : 15186 ac_cv_lib_rt_sched_yield=yes 15187else 15188 ac_cv_lib_rt_sched_yield=no 15189fi 15190rm -f core conftest.err conftest.$ac_objext \ 15191 conftest$ac_exeext conftest.$ac_ext 15192LIBS=$ac_check_lib_save_LIBS 15193fi 15194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 15195$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 15196if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 15197 cat >>confdefs.h <<_ACEOF 15198#define HAVE_LIBRT 1 15199_ACEOF 15200 15201 LIBS="-lrt $LIBS" 15202 15203fi 15204 15205 ;; 15206 esac 15207 15208 for ac_func in sched_yield pthread_yield pthread_yield_np 15209do : 15210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15211ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15212if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15213 cat >>confdefs.h <<_ACEOF 15214#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15215_ACEOF 15216 15217fi 15218done 15219 15220 15221 # 15222 # Additional OS-specific issues related to pthreads and sigwait. 15223 # 15224 case "$host" in 15225 # 15226 # One more place to look for sigwait. 15227 # 15228 *-freebsd*) 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 15230$as_echo_n "checking for sigwait in -lc_r... " >&6; } 15231if ${ac_cv_lib_c_r_sigwait+:} false; then : 15232 $as_echo_n "(cached) " >&6 15233else 15234 ac_check_lib_save_LIBS=$LIBS 15235LIBS="-lc_r $LIBS" 15236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15237/* end confdefs.h. */ 15238 15239/* Override any GCC internal prototype to avoid an error. 15240 Use char because int might match the return type of a GCC 15241 builtin and then its argument prototype would still apply. */ 15242#ifdef __cplusplus 15243extern "C" 15244#endif 15245char sigwait (); 15246int 15247main () 15248{ 15249return sigwait (); 15250 ; 15251 return 0; 15252} 15253_ACEOF 15254if ac_fn_c_try_link "$LINENO"; then : 15255 ac_cv_lib_c_r_sigwait=yes 15256else 15257 ac_cv_lib_c_r_sigwait=no 15258fi 15259rm -f core conftest.err conftest.$ac_objext \ 15260 conftest$ac_exeext conftest.$ac_ext 15261LIBS=$ac_check_lib_save_LIBS 15262fi 15263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 15264$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 15265if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 15266 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 15267 15268fi 15269 15270 case $host in 15271 *-freebsd5.[012]|*-freebsd5.[012].*);; 15272 *-freebsd5.[3456789]|*-freebsd5.[3456789].*) 15273 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 15274 15275 ;; 15276 *-freebsd6.*) 15277 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 15278 15279 ;; 15280 esac 15281 ;; 15282 # 15283 # BSDI 3.0 through 4.0.1 needs pthread_init() to be 15284 # called before certain pthreads calls. This is deprecated 15285 # in BSD/OS 4.1. 15286 # 15287 *-bsdi3.*|*-bsdi4.0*) 15288 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 15289 15290 ;; 15291 # 15292 # LinuxThreads requires some changes to the way we 15293 # deal with signals. 15294 # 15295 *-linux*) 15296 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 15297 15298 ;; 15299 # 15300 # Ensure the right sigwait() semantics on Solaris and make 15301 # sure we call pthread_setconcurrency. 15302 # 15303 *-solaris*) 15304 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 15305 15306 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 15307if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 15308 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 15309 15310fi 15311 15312 ;; 15313 # 15314 # UnixWare does things its own way. 15315 # 15316 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 15317 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 15318 15319 ;; 15320 esac 15321 15322 # 15323 # Look for sysconf to allow detection of the number of processors. 15324 # 15325 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 15326if test "x$ac_cv_func_sysconf" = xyes; then : 15327 $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 15328 15329fi 15330 15331 15332else 15333 ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS" 15334 thread_dir=nothreads 15335 THREADOPTOBJS="" 15336 THREADOPTSRCS="" 15337 ALWAYS_DEFINES="" 15338fi 15339 15340 15341 15342 15343 15344ISC_THREAD_DIR=$thread_dir 15345 15346 15347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5 15348$as_echo_n "checking for libtool... " >&6; } 15349 15350# Check whether --with-libtool was given. 15351if test "${with_libtool+set}" = set; then : 15352 withval=$with_libtool; use_libtool="$withval" 15353else 15354 use_libtool="no" 15355fi 15356 15357 15358case $use_libtool in 15359 yes) 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15361$as_echo "yes" >&6; } 15362 15363 O=lo 15364 A=la 15365 LIBTOOL_MKDEP_SED='s;\.o;\.lo;' 15366 LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC' 15367 LIBTOOL_MODE_INSTALL='--mode=install --tag=CC' 15368 LIBTOOL_MODE_LINK='--mode=link --tag=CC' 15369 INSTALL_LIBRARY='${INSTALL_PROGRAM}' 15370 case "$host" in 15371 *) LIBTOOL_ALLOW_UNDEFINED= ;; 15372 esac 15373 case "$host" in 15374 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;; 15375 *) LIBTOOL_IN_MAIN= ;; 15376 esac; 15377 ;; 15378 *) 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15380$as_echo "no" >&6; } 15381 O=o 15382 A=a 15383 LIBTOOL= 15384 15385 LIBTOOL_MKDEP_SED= 15386 LIBTOOL_MODE_COMPILE= 15387 LIBTOOL_MODE_INSTALL= 15388 LIBTOOL_MODE_LINK= 15389 LIBTOOL_ALLOW_UNDEFINED= 15390 LIBTOOL_IN_MAIN= 15391 INSTALL_LIBRARY='${INSTALL_DATA}' 15392 ;; 15393esac 15394 15395 15396# 15397# was --enable-native-pkcs11 specified? 15398# (note it implies both --without-openssl and --with-pkcs11) 15399# 15400# Check whether --enable-native-pkcs11 was given. 15401if test "${enable_native_pkcs11+set}" = set; then : 15402 enableval=$enable_native_pkcs11; want_native_pkcs11="$enableval" 15403else 15404 want_native_pkcs11="no" 15405fi 15406 15407 15408# 15409# was --with-openssl specified? 15410# 15411 15412# Check whether --with-openssl was given. 15413if test "${with_openssl+set}" = set; then : 15414 withval=$with_openssl; use_openssl="$withval" 15415else 15416 use_openssl="auto" 15417fi 15418 15419 15420# 15421# was --with-pkcs11 specified? 15422# 15423 15424# Check whether --with-pkcs11 was given. 15425if test "${with_pkcs11+set}" = set; then : 15426 withval=$with_pkcs11; use_pkcs11="$withval" 15427else 15428 use_pkcs11="auto" 15429fi 15430 15431 15432# 15433# were --with-ecdsa, --with-gost, --with-aes specified 15434# 15435 15436# Check whether --with-ecdsa was given. 15437if test "${with_ecdsa+set}" = set; then : 15438 withval=$with_ecdsa; with_ecdsa="$withval" 15439else 15440 with_ecdsa="auto" 15441fi 15442 15443 15444# Check whether --with-gost was given. 15445if test "${with_gost+set}" = set; then : 15446 withval=$with_gost; with_gost="$withval" 15447else 15448 with_gost="auto" 15449fi 15450 15451 15452# Check whether --with-aes was given. 15453if test "${with_aes+set}" = set; then : 15454 withval=$with_aes; with_aes="$withval" 15455else 15456 with_aes="checksit" 15457fi 15458 15459 15460# 15461# was --enable-openssl-hash specified? 15462# 15463# Check whether --enable-openssl-hash was given. 15464if test "${enable_openssl_hash+set}" = set; then : 15465 enableval=$enable_openssl_hash; want_openssl_hash="$enableval" 15466else 15467 want_openssl_hash="checksit" 15468fi 15469 15470 15471# 15472# Enable Source Identity Token support 15473# 15474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Source Identity Token support" >&5 15475$as_echo_n "checking for Source Identity Token support... " >&6; } 15476# Check whether --enable-sit was given. 15477if test "${enable_sit+set}" = set; then : 15478 enableval=$enable_sit; enable_sit="$enableval" 15479else 15480 enable_sit="no" 15481fi 15482 15483HAVE_SIT= 15484ISC_PLATFORM_USESIT="#undef ISC_PLATFORM_USESIT" 15485 15486case "$enable_sit" in 15487yes) 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15489$as_echo "yes" >&6; } 15490 ISC_PLATFORM_USESIT="#define ISC_PLATFORM_USESIT 1" 15491 HAVE_SIT=1 15492 ;; 15493no) 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15495$as_echo "no" >&6; } 15496 ;; 15497*) 15498 as_fn_error $? "\"enable-sit requires yes or no\"" "$LINENO" 5 15499 ;; 15500esac 15501 15502 15503 15504# 15505# Source Identity Token algorithm choice 15506# 15507 15508# Check whether --with-sit-alg was given. 15509if test "${with_sit_alg+set}" = set; then : 15510 withval=$with_sit_alg; with_sit_alg="$withval" 15511else 15512 with_sit_alg="auto" 15513fi 15514 15515 15516if test "$enable_sit" = "yes" 15517then 15518 case $with_sit_alg in 15519 *1) 15520 with_sit_alg="sha1" 15521 ;; 15522 *2*) 15523 with_sit_alg="sha256" 15524 ;; 15525 auto) 15526 if test "$with_aes" != "no" 15527 then 15528 with_aes="yes" 15529 fi 15530 ;; 15531 *) 15532 with_sit_alg="aes" 15533 if test "$with_aes" != "no" 15534 then 15535 with_aes="yes" 15536 fi 15537 ;; 15538 esac 15539fi 15540if test "with_aes" = "checksit" 15541then 15542 with_aes="no" 15543fi 15544 15545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5 15546$as_echo_n "checking for OpenSSL library... " >&6; } 15547OPENSSL_WARNING= 15548openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw" 15549if test "$use_openssl" = "auto" 15550then 15551 if test "$want_native_pkcs11" = "yes" 15552 then 15553 use_openssl="native_pkcs11" 15554 else 15555 for d in $openssldirs 15556 do 15557 if test -f $d/include/openssl/opensslv.h 15558 then 15559 use_openssl=$d 15560 break 15561 fi 15562 done 15563 fi 15564fi 15565OPENSSL_ECDSA="" 15566OPENSSL_GOST="" 15567gosttype="raw" 15568case "$with_gost" in 15569 raw) 15570 with_gost="yes" 15571 ;; 15572 asn1) 15573 15574$as_echo "#define PREFER_GOSTASN1 1" >>confdefs.h 15575 15576 gosttype="asn1" 15577 with_gost="yes" 15578 ;; 15579 auto|yes|no) 15580 ;; 15581 *) 15582 as_fn_error $? "unknown GOST private key encoding" "$LINENO" 5 15583 ;; 15584esac 15585 15586case "$use_openssl" in 15587 native_pkcs11) 15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled because of native PKCS11" >&5 15589$as_echo "disabled because of native PKCS11" >&6; } 15590 DST_OPENSSL_INC="" 15591 CRYPTO="-DPKCS11CRYPTO" 15592 OPENSSLGOSTLINKOBJS="" 15593 OPENSSLGOSTLINKSRS="" 15594 OPENSSLLINKOBJS="" 15595 OPENSSLLINKSRCS="" 15596 ;; 15597 no) 15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15599$as_echo "no" >&6; } 15600 DST_OPENSSL_INC="" 15601 CRYPTO="" 15602 OPENSSLGOSTLINKOBJS="" 15603 OPENSSLGOSTLINKSRS="" 15604 OPENSSLLINKOBJS="" 15605 OPENSSLLINKSRCS="" 15606 ;; 15607 auto) 15608 DST_OPENSSL_INC="" 15609 CRYPTO="" 15610 OPENSSLGOSTLINKOBJS="" 15611 OPENSSLGOSTLINKSRS="" 15612 OPENSSLLINKOBJS="" 15613 OPENSSLLINKSRCS="" 15614 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path 15615If you don't want OpenSSL, use --without-openssl" "$LINENO" 5 15616 ;; 15617 *) 15618 if test "$want_native_pkcs11" = "yes" 15619 then 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15621$as_echo "" >&6; } 15622 as_fn_error $? "OpenSSL and native PKCS11 cannot be used together." "$LINENO" 5 15623 fi 15624 if test "$use_openssl" = "yes" 15625 then 15626 # User did not specify a path - guess it 15627 for d in $openssldirs 15628 do 15629 if test -f $d/include/openssl/opensslv.h 15630 then 15631 use_openssl=$d 15632 break 15633 fi 15634 done 15635 if test "$use_openssl" = "yes" 15636 then 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15638$as_echo "not found" >&6; } 15639 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5 15640 fi 15641 elif ! test -f "$use_openssl"/include/openssl/opensslv.h 15642 then 15643 as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5 15644 fi 15645 CRYPTO='-DOPENSSL' 15646 if test "$use_openssl" = "/usr" 15647 then 15648 DST_OPENSSL_INC="" 15649 DST_OPENSSL_LIBS="-lcrypto" 15650 else 15651 DST_OPENSSL_INC="-I$use_openssl/include" 15652 case $host in 15653 *-solaris*) 15654 DST_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto" 15655 ;; 15656 *-hp-hpux*) 15657 DST_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto" 15658 ;; 15659 *-apple-darwin*) 15660 # 15661 # Apple's ld seaches for serially for dynamic 15662 # then static libraries. This means you can't 15663 # use -L to override dynamic system libraries 15664 # with static ones when linking. Instead 15665 # we specify a absolute path. 15666 # 15667 if test -f "$use_openssl/lib/libcrypto.dylib" 15668 then 15669 DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto" 15670 else 15671 DST_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a" 15672 fi 15673 ;; 15674 *) 15675 DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto" 15676 ;; 15677 esac 15678 fi 15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5 15680$as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; } 15681 15682 saved_cc="$CC" 15683 saved_cflags="$CFLAGS" 15684 saved_libs="$LIBS" 15685 CFLAGS="$CFLAGS $DST_OPENSSL_INC" 15686 LIBS="$LIBS $DST_OPENSSL_LIBS" 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5 15688$as_echo_n "checking whether linking with OpenSSL works... " >&6; } 15689 if test "$cross_compiling" = yes; then : 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5 15691$as_echo "assuming it does work on target platform" >&6; } 15692else 15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15694/* end confdefs.h. */ 15695 15696#include <openssl/err.h> 15697int main() { 15698 ERR_clear_error(); 15699 return (0); 15700} 15701 15702_ACEOF 15703if ac_fn_c_try_run "$LINENO"; then : 15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15705$as_echo "yes" >&6; } 15706else 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15708$as_echo "no" >&6; } 15709 as_fn_error $? "Could not run test program using OpenSSL from 15710$use_openssl/lib and $use_openssl/include. 15711Please check the argument to --with-openssl and your 15712shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5 15713fi 15714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15715 conftest.$ac_objext conftest.beam conftest.$ac_ext 15716fi 15717 15718 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5 15720$as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; } 15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15722/* end confdefs.h. */ 15723 15724#include <openssl/err.h> 15725int 15726main () 15727{ 15728 DSO_METHOD_dlfcn(); 15729 ; 15730 return 0; 15731} 15732_ACEOF 15733if ac_fn_c_try_link "$LINENO"; then : 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15735$as_echo "no" >&6; } 15736else 15737 LIBS="$LIBS -ldl" 15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15739/* end confdefs.h. */ 15740 15741#include <openssl/err.h> 15742 15743int 15744main () 15745{ 15746 DSO_METHOD_dlfcn(); 15747 ; 15748 return 0; 15749} 15750_ACEOF 15751if ac_fn_c_try_link "$LINENO"; then : 15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15753$as_echo "yes" >&6; } 15754 DST_OPENSSL_LIBS="$DST_OPENSSL_LIBS -ldl" 15755 15756else 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15758$as_echo "unknown" >&6; } 15759 as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5 15760fi 15761rm -f core conftest.err conftest.$ac_objext \ 15762 conftest$ac_exeext conftest.$ac_ext 15763 15764fi 15765rm -f core conftest.err conftest.$ac_objext \ 15766 conftest$ac_exeext conftest.$ac_ext 15767 15768# Check whether --enable-openssl-version-check was given. 15769if test "${enable_openssl_version_check+set}" = set; then : 15770 enableval=$enable_openssl_version_check; 15771fi 15772 15773case "$enable_openssl_version_check" in 15774yes|'') 15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 15776$as_echo_n "checking OpenSSL library version... " >&6; } 15777 if test "$cross_compiling" = yes; then : 15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform has compatible version" >&5 15779$as_echo "assuming target platform has compatible version" >&6; } 15780else 15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15782/* end confdefs.h. */ 15783 15784#include <stdio.h> 15785#include <openssl/opensslv.h> 15786int main() { 15787 if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL && 15788 OPENSSL_VERSION_NUMBER < 0x00908000L) || 15789 OPENSSL_VERSION_NUMBER >= 0x0090804fL) 15790 return (0); 15791 printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n", 15792 OPENSSL_VERSION_NUMBER); 15793 printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n" 15794 "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n"); 15795 return (1); 15796} 15797 15798_ACEOF 15799if ac_fn_c_try_run "$LINENO"; then : 15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15801$as_echo "ok" >&6; } 15802else 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not compatible" >&5 15804$as_echo "not compatible" >&6; } 15805 OPENSSL_WARNING=yes 15806 15807fi 15808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15809 conftest.$ac_objext conftest.beam conftest.$ac_ext 15810fi 15811 15812;; 15813no) 15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipped OpenSSL version check" >&5 15815$as_echo "Skipped OpenSSL version check" >&6; } 15816;; 15817esac 15818 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5 15820$as_echo_n "checking for OpenSSL DSA support... " >&6; } 15821 if test -f $use_openssl/include/openssl/dsa.h 15822 then 15823 $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h 15824 15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15826$as_echo "yes" >&6; } 15827 else 15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15829$as_echo "no" >&6; } 15830 fi 15831 15832 for ac_func in EVP_sha256 EVP_sha384 EVP_sha512 15833do : 15834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15835ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15836if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15837 cat >>confdefs.h <<_ACEOF 15838#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15839_ACEOF 15840 15841fi 15842done 15843 15844 15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECDSA support" >&5 15846$as_echo_n "checking for OpenSSL ECDSA support... " >&6; } 15847 have_ecdsa="" 15848 if test "$cross_compiling" = yes; then : 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-ecdsa" >&5 15850$as_echo "using --with-ecdsa" >&6; } 15851else 15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15853/* end confdefs.h. */ 15854 15855#include <openssl/ecdsa.h> 15856#include <openssl/objects.h> 15857int main() { 15858 EC_KEY *ec256, *ec384; 15859 15860#if !defined(HAVE_EVP_SHA256) || !defined(HAVE_EVP_SHA384) 15861 return (1); 15862#endif 15863 ec256 = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); 15864 ec384 = EC_KEY_new_by_curve_name(NID_secp384r1); 15865 if (ec256 == NULL || ec384 == NULL) 15866 return (2); 15867 return (0); 15868} 15869 15870_ACEOF 15871if ac_fn_c_try_run "$LINENO"; then : 15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15873$as_echo "yes" >&6; } 15874 have_ecdsa="yes" 15875else 15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15877$as_echo "no" >&6; } 15878 have_ecdsa="no" 15879fi 15880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15881 conftest.$ac_objext conftest.beam conftest.$ac_ext 15882fi 15883 15884 case "$with_ecdsa" in 15885 yes) 15886 case "$have_ecdsa" in 15887 no) as_fn_error $? "ecdsa not supported" "$LINENO" 5 ;; 15888 *) have_ecdsa=yes ;; 15889 esac 15890 ;; 15891 no) 15892 have_ecdsa=no ;; 15893 *) 15894 case "$have_ecdsa" in 15895 yes|no) ;; 15896 *) as_fn_error $? "need --with-ecdsa=[yes or no]" "$LINENO" 5 ;; 15897 esac 15898 ;; 15899 esac 15900 case $have_ecdsa in 15901 yes) 15902 OPENSSL_ECDSA="yes" 15903 15904$as_echo "#define HAVE_OPENSSL_ECDSA 1" >>confdefs.h 15905 15906 ;; 15907 *) 15908 ;; 15909 esac 15910 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5 15912$as_echo_n "checking for OpenSSL GOST support... " >&6; } 15913 have_gost="" 15914 case "$use_pkcs11" in 15915 auto|no) 15916 ;; 15917 *) 15918 if $use_threads; then 15919 CC="$CC -pthread" 15920 fi 15921 ;; 15922 esac 15923 if test "$cross_compiling" = yes; then : 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-gost" >&5 15925$as_echo "using --with-gost" >&6; } 15926else 15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15928/* end confdefs.h. */ 15929 15930#include <openssl/conf.h> 15931#include <openssl/engine.h> 15932int main() { 15933#if (OPENSSL_VERSION_NUMBER >= 0x10000000L) 15934 ENGINE *e; 15935 EC_KEY *ek; 15936 15937 ek = NULL; 15938 OPENSSL_config(NULL); 15939 15940 e = ENGINE_by_id("gost"); 15941 if (e == NULL) 15942 return (1); 15943 if (ENGINE_init(e) <= 0) 15944 return (1); 15945 return (0); 15946#else 15947 return (1); 15948#endif 15949} 15950 15951_ACEOF 15952if ac_fn_c_try_run "$LINENO"; then : 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15954$as_echo "yes" >&6; } 15955 have_gost="yes" 15956else 15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15958$as_echo "no" >&6; } 15959 have_gost="no" 15960fi 15961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15962 conftest.$ac_objext conftest.beam conftest.$ac_ext 15963fi 15964 15965 case "$with_gost" in 15966 yes) 15967 case "$have_gost" in 15968 no) as_fn_error $? "gost not supported" "$LINENO" 5 ;; 15969 *) have_gost=yes ;; 15970 esac 15971 ;; 15972 no) 15973 have_gost=no ;; 15974 *) 15975 case "$have_gost" in 15976 yes|no) ;; 15977 *) as_fn_error $? "need --with-gost=[yes, no, raw or asn1]" "$LINENO" 5 ;; 15978 esac 15979 ;; 15980 esac 15981 case $have_gost in 15982 yes) 15983 OPENSSL_GOST="yes" 15984 OPENSSLGOSTLINKOBJS='${OPENSSLGOSTLINKOBJS}' 15985 OPENSSLGOSTLINKSRCS='${OPENSSLGOSTLINKSRCS}' 15986 15987$as_echo "#define HAVE_OPENSSL_GOST 1" >>confdefs.h 15988 15989 ;; 15990 *) 15991 ;; 15992 esac 15993 15994 have_aes="no" 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL AES support" >&5 15996$as_echo_n "checking for OpenSSL AES support... " >&6; } 15997 if test "$cross_compiling" = yes; then : 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-aes" >&5 15999$as_echo "using --with-aes" >&6; } 16000else 16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16002/* end confdefs.h. */ 16003 16004#include <openssl/evp.h> 16005int main() { 16006 EVP_CIPHER *aes128, *aes192, *aes256; 16007 16008 aes128 = EVP_aes_128_ecb(); 16009 aes192 = EVP_aes_192_ecb(); 16010 aes256 = EVP_aes_256_ecb(); 16011 if (aes128 == NULL || aes192 == NULL || aes256 == NULL) 16012 return (1); 16013 return (0); 16014} 16015 16016_ACEOF 16017if ac_fn_c_try_run "$LINENO"; then : 16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16019$as_echo "yes" >&6; } 16020 have_aes="evp" 16021else 16022 ac_fn_c_check_func "$LINENO" "AES_encrypt" "ac_cv_func_AES_encrypt" 16023if test "x$ac_cv_func_AES_encrypt" = xyes; then : 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16025$as_echo "yes" >&6; } 16026 have_aes="yes" 16027else 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16029$as_echo "no" >&6; } 16030fi 16031 16032fi 16033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16034 conftest.$ac_objext conftest.beam conftest.$ac_ext 16035fi 16036 16037 16038 ISC_OPENSSL_INC="" 16039 ISC_OPENSSL_LIBS="" 16040 if test "$with_aes" = "yes" 16041 then 16042 case "$have_aes" in 16043 evp) 16044 16045$as_echo "#define HAVE_OPENSSL_EVP_AES 1" >>confdefs.h 16046 16047 ISC_OPENSSL_INC="$DST_OPENSSL_INC" 16048 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS" 16049 ;; 16050 yes) 16051 16052$as_echo "#define HAVE_OPENSSL_AES 1" >>confdefs.h 16053 16054 ISC_OPENSSL_INC="$DST_OPENSSL_INC" 16055 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS" 16056 ;; 16057 *) 16058 ;; 16059 esac 16060 fi 16061 16062 CC="$saved_cc" 16063 CFLAGS="$saved_cflags" 16064 LIBS="$saved_libs" 16065 OPENSSLLINKOBJS='${OPENSSLLINKOBJS}' 16066 OPENSSLLINKSRCS='${OPENSSLLINKSRCS}' 16067 16068 ;; 16069esac 16070 16071# 16072# This would include the system openssl path (and linker options to use 16073# it as needed) if it is found. 16074# 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DST_OPENSSL_LIBS" 16085 16086ISC_PLATFORM_WANTAES="#undef ISC_PLATFORM_WANTAES" 16087if test "$with_aes" = "yes" 16088then 16089 if test "X$CRYPTO" = "X" 16090 then 16091 with_aes="no" 16092 fi 16093fi 16094if test "$with_aes" = "yes" 16095then 16096 ISC_PLATFORM_WANTAES="#define ISC_PLATFORM_WANTAES 1" 16097fi 16098 16099 16100# 16101# Choose SIT algorithm 16102# 16103 16104if test "$enable_sit" = "yes" 16105then 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Algorithm for SIT" >&5 16107$as_echo_n "checking for the Algorithm for SIT... " >&6; } 16108 if test "$with_sit_alg" = "auto" 16109 then 16110 if test "$with_aes" = "yes" 16111 then 16112 with_sit_alg="aes" 16113 else 16114 with_sit_alg="sha256" 16115 fi 16116 fi 16117fi 16118case $with_sit_alg in 16119 sha1) 16120 if test "$enable_sit" != "yes" 16121 then 16122 as_fn_error $? "\"with-sit-alg requires enable-sit\"" "$LINENO" 5; 16123 fi 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha1" >&5 16125$as_echo "sha1" >&6; } 16126 if test "$CRYPTO" = "-DOPENSSL" 16127 then 16128 if test "$want_openssl_hash" = "checksit" 16129 then 16130 want_openssl_hash="yes" 16131 fi 16132 fi 16133 16134$as_echo "#define HMAC_SHA1_SIT 1" >>confdefs.h 16135 16136 ;; 16137 sha256) 16138 if test "$enable_sit" != "yes" 16139 then 16140 as_fn_error $? "\"with-sit-alg requires enable-sit\"" "$LINENO" 5; 16141 fi 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha256" >&5 16143$as_echo "sha256" >&6; } 16144 if test "$CRYPTO" = "-DOPENSSL" 16145 then 16146 if test "$want_openssl_hash" = "checksit" 16147 then 16148 want_openssl_hash="yes" 16149 fi 16150 fi 16151 16152$as_echo "#define HMAC_SHA256_SIT 1" >>confdefs.h 16153 16154 ;; 16155 aes) 16156 if test "$enable_sit" != "yes" 16157 then 16158 as_fn_error $? "\"with-sit-alg requires enable-sit\"" "$LINENO" 5; 16159 fi 16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: aes" >&5 16161$as_echo "aes" >&6; } 16162 if test "$with_aes" != "yes" 16163 then 16164 as_fn_error $? "\"SIT wants to use unavailable AES\"" "$LINENO" 5; 16165 fi 16166 16167$as_echo "#define AES_SIT 1" >>confdefs.h 16168 16169 ;; 16170esac 16171if test "$want_openssl_hash" = "checksit" 16172then 16173 want_openssl_hash="no" 16174fi 16175 16176# 16177# Use OpenSSL for hash functions 16178# 16179 16180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for using OpenSSL for hash functions" >&5 16181$as_echo_n "checking for using OpenSSL for hash functions... " >&6; } 16182ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH" 16183case $want_openssl_hash in 16184 yes) 16185 if test "$CRYPTO" != "-DOPENSSL" 16186 then 16187 as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5 16188 fi 16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16190$as_echo "yes" >&6; } 16191 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1" 16192 ISC_OPENSSL_INC="$DST_OPENSSL_INC" 16193 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS" 16194 saved_cflags="$CFLAGS" 16195 save_libs="$LIBS" 16196 CFLAGS="$CFLAGS $ISC_OPENSSL_INC" 16197 LIBS="$LIBS $ISC_OPENSSL_LIBS" 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HMAC_Init() return type" >&5 16199$as_echo_n "checking HMAC_Init() return type... " >&6; } 16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16201/* end confdefs.h. */ 16202 16203 #include <openssl/hmac.h> 16204int 16205main () 16206{ 16207 16208 HMAC_CTX ctx; 16209 int n = HMAC_Init(&ctx, NULL, 0, NULL); 16210 n += HMAC_Update(&ctx, NULL, 0); 16211 n += HMAC_Final(&ctx, NULL, NULL); 16212 ; 16213 return 0; 16214} 16215_ACEOF 16216if ac_fn_c_try_compile "$LINENO"; then : 16217 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 16219$as_echo "int" >&6; } 16220 16221$as_echo "#define HMAC_RETURN_INT 1" >>confdefs.h 16222 16223else 16224 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5 16226$as_echo "void" >&6; } 16227fi 16228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16229 CFLAGS="$saved_cflags" 16230 LIBS="$save_libs" 16231 ;; 16232 no) 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16234$as_echo "no" >&6; } 16235 ;; 16236esac 16237 16238 16239 16240 16241# 16242# PKCS11 (aka crypto hardware) support (--with moved just after openssl) 16243# 16244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5 16245$as_echo_n "checking for PKCS11 support... " >&6; } 16246 16247if test "$use_pkcs11" = "auto" 16248then 16249 if test "$want_native_pkcs11" = "yes" 16250 then 16251 use_pkcs11="yes" 16252 else 16253 use_pkcs11="no" 16254 fi 16255fi 16256 16257case "$use_pkcs11" in 16258 no) 16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16260$as_echo "no" >&6; } 16261 USE_PKCS11="" 16262 PKCS11_TEST="" 16263 PKCS11_TOOLS="" 16264 ISC_PK11_C="" 16265 ISC_PK11_O="" 16266 ISC_PK11_API_C="" 16267 ISC_PK11_API_O="" 16268 ISC_PK11_RESULT_C="" 16269 ISC_PK11_RESULT_O="" 16270 ISC_ISCPK11_API_C="" 16271 ISC_ISCPK11_API_O="" 16272 ;; 16273 yes|*) 16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16275$as_echo "yes" >&6; } 16276 if ! $use_threads; then 16277 as_fn_error $? "PKCS11 requires thread support" "$LINENO" 5 16278 fi 16279 if test "$CRYPTO" = "-DOPENSSL" 16280 then 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL with PKCS11 support" >&5 16282$as_echo_n "checking for OpenSSL with PKCS11 support... " >&6; } 16283 saved_cc="$CC" 16284 saved_cflags="$CFLAGS" 16285 saved_libs="$LIBS" 16286 CC="$CC -pthread" 16287 CFLAGS="$CFLAGS $DST_OPENSSL_INC" 16288 LIBS="$LIBS $DST_OPENSSL_LIBS" 16289 if test "$cross_compiling" = yes; then : 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile" >&5 16291$as_echo "cross compile" >&6; } 16292 PKCS11_TEST='' 16293 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL' 16294else 16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16296/* end confdefs.h. */ 16297 16298#include <openssl/conf.h> 16299#include <openssl/engine.h> 16300int main() { 16301 ENGINE *e; 16302 16303 OPENSSL_config(NULL); 16304 e = ENGINE_by_id("pkcs11"); 16305 if (e == NULL) 16306 return (1); 16307 if (ENGINE_init(e) <= 0) 16308 return (1); 16309 return (0); 16310} 16311 16312_ACEOF 16313if ac_fn_c_try_run "$LINENO"; then : 16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16315$as_echo "yes" >&6; } 16316 PKCS11_TEST=pkcs11ssl 16317 PKCS11_ENGINE='-DPKCS11_ENGINE="\"pkcs11\""' 16318else 16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16320$as_echo "no" >&6; } 16321 PKCS11_TEST='' 16322 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL' 16323fi 16324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16325 conftest.$ac_objext conftest.beam conftest.$ac_ext 16326fi 16327 16328 CC="$saved_cc" 16329 CFLAGS="$saved_cflags" 16330 LIBS="$saved_libs" 16331 else 16332 PKCS11_TEST='' 16333 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL' 16334 16335 fi 16336 USE_PKCS11='-DUSE_PKCS11' 16337 PKCS11_TOOLS=pkcs11 16338 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase" 16339if test "x$ac_cv_func_getpassphrase" = xyes; then : 16340 $as_echo "#define HAVE_GETPASSPHRASE 1" >>confdefs.h 16341 16342fi 16343 16344 ISC_PK11_C="pk11.c" 16345 ISC_PK11_O="pk11.$O" 16346 ISC_PK11_API_C="pk11_api.c" 16347 ISC_PK11_API_O="pk11_api.$O" 16348 ISC_PK11_RESULT_C="pk11_result.c" 16349 ISC_PK11_RESULT_O="pk11_result.$O" 16350 ISC_ISCPK11_API_C="unix/pk11_api.c" 16351 ISC_ISCPK11_API_O="unix/pk11_api.$O" 16352 ;; 16353esac 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5 16367$as_echo_n "checking for PKCS11 tools... " >&6; } 16368case "$use_pkcs11" in 16369 no) 16370 PKCS11_PROVIDER="undefined" 16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16372$as_echo "disabled" >&6; } 16373 ;; 16374 yes|'') 16375 PKCS11_PROVIDER="undefined" 16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16377$as_echo "enabled" >&6; } 16378 ;; 16379 *) 16380 PKCS11_PROVIDER="$use_pkcs11" 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled, PKCS11 provider is $PKCS11_PROVIDER" >&5 16382$as_echo "enabled, PKCS11 provider is $PKCS11_PROVIDER" >&6; } 16383 ;; 16384esac 16385 16386 16387 16388PKCS11_ECDSA="" 16389PKCS11_GOST="" 16390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native PKCS11" >&5 16391$as_echo_n "checking for native PKCS11... " >&6; } 16392 16393case "$want_native_pkcs11" in 16394 yes) 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using native PKCS11 crypto" >&5 16396$as_echo "using native PKCS11 crypto" >&6; } 16397 PKCS11LINKOBJS='${PKCS11LINKOBJS}' 16398 PKCS11LINKSRCS='${PKCS11LINKSRCS}' 16399 PKCS11_TEST=pkcs11 16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 ECDSA" >&5 16401$as_echo_n "checking for PKCS11 ECDSA... " >&6; } 16402 case "$with_ecdsa" in 16403 no) 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16405$as_echo "disabled" >&6; } 16406 ;; 16407 *) 16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16409$as_echo "enabled" >&6; } 16410 PKCS11_ECDSA="yes" 16411 16412$as_echo "#define HAVE_PKCS11_ECDSA 1" >>confdefs.h 16413 16414 ;; 16415 esac 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 GOST" >&5 16417$as_echo_n "checking for PKCS11 GOST... " >&6; } 16418 case "$with_gost" in 16419 yes) 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16421$as_echo "enabled" >&6; } 16422 PKCS11_GOST="yes" 16423 16424$as_echo "#define HAVE_PKCS11_GOST 1" >>confdefs.h 16425 16426 ;; 16427 *) 16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16429$as_echo "disabled" >&6; } 16430 ;; 16431 esac 16432 ;; 16433 no|'') 16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16435$as_echo "disabled" >&6; } 16436 ;; 16437esac 16438 16439 16440 16441 16442 16443 16444 16445 16446# for PKCS11 benchmarks 16447 16448have_clock_gt=no 16449ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 16450if test "x$ac_cv_func_clock_gettime" = xyes; then : 16451 have_clock_gt=yes 16452fi 16453 16454if test "$have_clock_gt" = "no"; then 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 16456$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 16457if ${ac_cv_lib_rt_clock_gettime+:} false; then : 16458 $as_echo_n "(cached) " >&6 16459else 16460 ac_check_lib_save_LIBS=$LIBS 16461LIBS="-lrt $LIBS" 16462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463/* end confdefs.h. */ 16464 16465/* Override any GCC internal prototype to avoid an error. 16466 Use char because int might match the return type of a GCC 16467 builtin and then its argument prototype would still apply. */ 16468#ifdef __cplusplus 16469extern "C" 16470#endif 16471char clock_gettime (); 16472int 16473main () 16474{ 16475return clock_gettime (); 16476 ; 16477 return 0; 16478} 16479_ACEOF 16480if ac_fn_c_try_link "$LINENO"; then : 16481 ac_cv_lib_rt_clock_gettime=yes 16482else 16483 ac_cv_lib_rt_clock_gettime=no 16484fi 16485rm -f core conftest.err conftest.$ac_objext \ 16486 conftest$ac_exeext conftest.$ac_ext 16487LIBS=$ac_check_lib_save_LIBS 16488fi 16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 16490$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 16491if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 16492 have_clock_gt=rt 16493fi 16494 16495fi 16496 16497if test "$have_clock_gt" != "no"; then 16498 16499$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 16500 16501fi 16502 16503if test "$have_clock_gt" = "rt"; then 16504 LIBS="-lrt $LIBS" 16505fi 16506 16507# 16508# was --with-libxml2 specified? 16509# 16510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5 16511$as_echo_n "checking for libxml2 library... " >&6; } 16512 16513# Check whether --with-libxml2 was given. 16514if test "${with_libxml2+set}" = set; then : 16515 withval=$with_libxml2; use_libxml2="$withval" 16516else 16517 use_libxml2="auto" 16518fi 16519 16520 16521case "$use_libxml2" in 16522 no) 16523 DST_LIBXML2_INC="" 16524 ;; 16525 auto|yes) 16526 case X`(xml2-config --version) 2>/dev/null` in 16527 X2.[6789].*) 16528 libxml2_libs=`xml2-config --libs` 16529 libxml2_cflags=`xml2-config --cflags` 16530 ;; 16531 *) 16532 libxml2_libs= 16533 libxml2_cflags= 16534 ;; 16535 esac 16536 ;; 16537 *) 16538 if test -f "$use_libxml2/bin/xml2-config" ; then 16539 libxml2_libs=`$use_libxml2/bin/xml2-config --libs` 16540 libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags` 16541 fi 16542 ;; 16543esac 16544 16545if test "X$libxml2_libs" != "X" 16546then 16547 CFLAGS="$CFLAGS $libxml2_cflags" 16548 LIBS="$LIBS $libxml2_libs" 16549 # 16550 # Sanity check xml2-config output. 16551 # 16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553/* end confdefs.h. */ 16554#include <libxml/xmlwriter.h> 16555int 16556main () 16557{ 16558return(xmlTextWriterStartElement(NULL, NULL)); 16559 ; 16560 return 0; 16561} 16562_ACEOF 16563if ac_fn_c_try_link "$LINENO"; then : 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16565$as_echo "yes" >&6; } 16566else 16567 as_fn_error $? "xml2-config returns badness" "$LINENO" 5 16568fi 16569rm -f core conftest.err conftest.$ac_objext \ 16570 conftest$ac_exeext conftest.$ac_ext 16571 16572$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h 16573 16574else 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16576$as_echo "no" >&6; } 16577fi 16578 16579# 16580# was --with-libjson specified? 16581# 16582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5 16583$as_echo_n "checking for json library... " >&6; } 16584 16585# Check whether --with-libjson was given. 16586if test "${with_libjson+set}" = set; then : 16587 withval=$with_libjson; use_libjson="$withval" 16588else 16589 use_libjson="auto" 16590fi 16591 16592 16593have_libjson="" 16594case "$use_libjson" in 16595 no) 16596 libjson_libs="" 16597 ;; 16598 auto|yes) 16599 for d in /usr /usr/local /opt/local 16600 do 16601 if test -f "${d}/include/json/json.h" 16602 then 16603 libjson_cflags="-I ${d}/include/json" 16604 if test ${d} != /usr 16605 then 16606 LIBS="$LIBS -L${d}/lib" 16607 fi 16608 have_libjson="yes" 16609 elif test -f "${d}/include/json-c/json.h" 16610 then 16611 libjson_cflags="-I ${d}/include/json-c" 16612 if test ${d} != /usr 16613 then 16614 LIBS="$LIBS -L${d}/lib" 16615 fi 16616 have_libjson="yes" 16617 fi 16618 done 16619 ;; 16620 *) 16621 if test -f "${use_libjson}/include/json/json.h" 16622 then 16623 libjson_cflags="-I${use_libjson}/include/json" 16624 LIBS="$LIBS -L${use_libjson}/lib" 16625 have_libjson="yes" 16626 elif test -f "${use_libjson}/include/json-c/json.h" 16627 then 16628 libjson_cflags="-I${use_libjson}/include/json-c" 16629 LIBS="$LIBS -L${use_libjson}/lib" 16630 have_libjson="yes" 16631 else 16632 as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5 16633 fi 16634 ;; 16635esac 16636 16637if test "X${have_libjson}" != "X" 16638then 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16640$as_echo "yes" >&6; } 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5 16642$as_echo_n "checking for library containing json_object_new_int64... " >&6; } 16643if ${ac_cv_search_json_object_new_int64+:} false; then : 16644 $as_echo_n "(cached) " >&6 16645else 16646 ac_func_search_save_LIBS=$LIBS 16647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649 16650/* Override any GCC internal prototype to avoid an error. 16651 Use char because int might match the return type of a GCC 16652 builtin and then its argument prototype would still apply. */ 16653#ifdef __cplusplus 16654extern "C" 16655#endif 16656char json_object_new_int64 (); 16657int 16658main () 16659{ 16660return json_object_new_int64 (); 16661 ; 16662 return 0; 16663} 16664_ACEOF 16665for ac_lib in '' json json-c; do 16666 if test -z "$ac_lib"; then 16667 ac_res="none required" 16668 else 16669 ac_res=-l$ac_lib 16670 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16671 fi 16672 if ac_fn_c_try_link "$LINENO"; then : 16673 ac_cv_search_json_object_new_int64=$ac_res 16674fi 16675rm -f core conftest.err conftest.$ac_objext \ 16676 conftest$ac_exeext 16677 if ${ac_cv_search_json_object_new_int64+:} false; then : 16678 break 16679fi 16680done 16681if ${ac_cv_search_json_object_new_int64+:} false; then : 16682 16683else 16684 ac_cv_search_json_object_new_int64=no 16685fi 16686rm conftest.$ac_ext 16687LIBS=$ac_func_search_save_LIBS 16688fi 16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5 16690$as_echo "$ac_cv_search_json_object_new_int64" >&6; } 16691ac_res=$ac_cv_search_json_object_new_int64 16692if test "$ac_res" != no; then : 16693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16694 16695else 16696 as_fn_error $? "found libjson include but not library." "$LINENO" 5 16697 have_libjson="" 16698fi 16699 16700elif test "X$use_libjson" = Xyes 16701then 16702 as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5 16703else 16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16705$as_echo "no" >&6; } 16706fi 16707 16708if test "X${have_libjson}" != "X" 16709then 16710 CFLAGS="$CFLAGS $libjson_cflags" 16711 16712$as_echo "#define HAVE_JSON 1" >>confdefs.h 16713 16714fi 16715 16716# 16717# In solaris 10, SMF can manage named service 16718# 16719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5 16720$as_echo_n "checking for smf_enable_instance in -lscf... " >&6; } 16721if ${ac_cv_lib_scf_smf_enable_instance+:} false; then : 16722 $as_echo_n "(cached) " >&6 16723else 16724 ac_check_lib_save_LIBS=$LIBS 16725LIBS="-lscf $LIBS" 16726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16727/* end confdefs.h. */ 16728 16729/* Override any GCC internal prototype to avoid an error. 16730 Use char because int might match the return type of a GCC 16731 builtin and then its argument prototype would still apply. */ 16732#ifdef __cplusplus 16733extern "C" 16734#endif 16735char smf_enable_instance (); 16736int 16737main () 16738{ 16739return smf_enable_instance (); 16740 ; 16741 return 0; 16742} 16743_ACEOF 16744if ac_fn_c_try_link "$LINENO"; then : 16745 ac_cv_lib_scf_smf_enable_instance=yes 16746else 16747 ac_cv_lib_scf_smf_enable_instance=no 16748fi 16749rm -f core conftest.err conftest.$ac_objext \ 16750 conftest$ac_exeext conftest.$ac_ext 16751LIBS=$ac_check_lib_save_LIBS 16752fi 16753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5 16754$as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; } 16755if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then : 16756 cat >>confdefs.h <<_ACEOF 16757#define HAVE_LIBSCF 1 16758_ACEOF 16759 16760 LIBS="-lscf $LIBS" 16761 16762fi 16763 16764 16765# 16766# flockfile is usually provided by pthreads, but we may want to use it 16767# even if compiled with --disable-threads. getc_unlocked might also not 16768# be defined. 16769# 16770ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" 16771if test "x$ac_cv_func_flockfile" = xyes; then : 16772 $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h 16773 16774fi 16775 16776ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 16777if test "x$ac_cv_func_getc_unlocked" = xyes; then : 16778 $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h 16779 16780fi 16781 16782 16783# 16784# Indicate what the final decision was regarding threads. 16785# 16786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5 16787$as_echo_n "checking whether to build with threads... " >&6; } 16788if $use_threads; then 16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16790$as_echo "yes" >&6; } 16791else 16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16793$as_echo "no" >&6; } 16794fi 16795 16796# 16797# End of pthreads stuff. 16798# 16799 16800# 16801# Large File 16802# 16803# Check whether --enable-largefile was given. 16804if test "${enable_largefile+set}" = set; then : 16805 enableval=$enable_largefile; want_largefile="yes" 16806else 16807 want_largefile="no" 16808fi 16809 16810case $want_largefile in 16811 yes) 16812 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 16813 ;; 16814 *) 16815 ;; 16816esac 16817 16818# 16819# Additional compiler settings. 16820# 16821MKDEPCC="$CC" 16822MKDEPCFLAGS="-M" 16823IRIX_DNSSEC_WARNINGS_HACK="" 16824 16825if test "X$GCC" = "Xyes"; then 16826 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith" 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5 16828$as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; } 16829 SAVE_CFLAGS="$CFLAGS" 16830 CFLAGS="$CFLAGS -fno-strict-aliasing" 16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16832/* end confdefs.h. */ 16833 16834int 16835main () 16836{ 16837 16838 ; 16839 return 0; 16840} 16841_ACEOF 16842if ac_fn_c_try_compile "$LINENO"; then : 16843 FNOSTRICTALIASING=yes 16844else 16845 FNOSTRICTALIASING=no 16846fi 16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16848 CFLAGS="$SAVE_CFLAGS" 16849 if test "$FNOSTRICTALIASING" = "yes"; then 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16851$as_echo "yes" >&6; } 16852 STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing" 16853 else 16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16855$as_echo "no" >&6; } 16856 fi 16857 # 16858 # turn off delete null pointer checks 16859 # 16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5 16861$as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; } 16862 SAVE_CFLAGS="$CFLAGS" 16863 CFLAGS="$CFLAGS -fno-delete-null-pointer-checks" 16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16865/* end confdefs.h. */ 16866 16867int 16868main () 16869{ 16870 16871 ; 16872 return 0; 16873} 16874_ACEOF 16875if ac_fn_c_try_compile "$LINENO"; then : 16876 FNODELETENULLPOINTERCHECKS=yes 16877else 16878 FNODELETENULLPOINTERCHECKS=no 16879fi 16880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16881 CFLAGS="$SAVE_CFLAGS" 16882 if test "$FNODELETENULLPOINTERCHECKS" = "yes"; then 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16884$as_echo "yes" >&6; } 16885 STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks" 16886 else 16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16888$as_echo "no" >&6; } 16889 fi 16890 case "$host" in 16891 *-hp-hpux*) 16892 CFLAGS="$CFLAGS -Wl,+vnocompatwarnings" 16893 BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings" 16894 ;; 16895 esac 16896 if test "X$enable_warn_shadow" = Xyes; then 16897 STD_CWARNINGS="$STD_CWARNINGS -Wshadow" 16898 fi 16899 if test "X$enable_warn_error" = Xyes; then 16900 STD_CWARNINGS="$STD_CWARNINGS -Werror" 16901 fi 16902else 16903 case $host in 16904 *-dec-osf*) 16905 CC="$CC -std" 16906 CCOPT="$CCOPT -std" 16907 CCNOOPT="$CCNOOPT -std" 16908 MKDEPCC="$CC" 16909 ;; 16910 *-hp-hpux*) 16911 CC="$CC -Ae -z" 16912 # The version of the C compiler that constantly warns about 16913 # 'const' as well as alignment issues is unfortunately not 16914 # able to be discerned via the version of the operating 16915 # system, nor does cc have a version flag. 16916 case "`$CC +W 123 2>&1`" in 16917 *Unknown?option*) 16918 STD_CWARNINGS="+w1" 16919 ;; 16920 *) 16921 # Turn off the pointlessly noisy warnings. 16922 STD_CWARNINGS="+w1 +W 474,530,2193,2236" 16923 ;; 16924 esac 16925 CCOPT="$CCOPT -Ae -z" 16926 CCNOOPT="$CCNOOPT -Ae -z" 16927 CFLAGS="$CFLAGS -Wl,+vnocompatwarnings" 16928 BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings" 16929 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP' 16930 ;; 16931 *-sgi-irix*) 16932 STD_CWARNINGS="-fullwarn -woff 1209" 16933 # 16934 # Silence more than 250 instances of 16935 # "prototyped function redeclared without prototype" 16936 # and 11 instances of 16937 # "variable ... was set but never used" 16938 # from lib/dns/sec/openssl. 16939 # 16940 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552" 16941 ;; 16942 *-solaris*) 16943 MKDEPCFLAGS="-xM" 16944 ;; 16945 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 16946 # UnixWare 16947 CC="$CC -w" 16948 ;; 16949 esac 16950fi 16951 16952 16953 16954 16955 16956 16957# 16958# NLS 16959# 16960ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets" 16961if test "x$ac_cv_func_catgets" = xyes; then : 16962 $as_echo "#define HAVE_CATGETS 1" >>confdefs.h 16963 16964fi 16965 16966 16967# 16968# -lxnet buys us one big porting headache... standards, gotta love 'em. 16969# 16970# AC_CHECK_LIB(xnet, socket, , 16971# AC_CHECK_LIB(socket, socket) 16972# ) 16973# 16974# Use this for now, instead: 16975# 16976case "$host" in 16977 mips-sgi-irix*) 16978 ;; 16979 *-linux*) 16980 ;; 16981 *) 16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 16983$as_echo_n "checking for socket in -lsocket... " >&6; } 16984if ${ac_cv_lib_socket_socket+:} false; then : 16985 $as_echo_n "(cached) " >&6 16986else 16987 ac_check_lib_save_LIBS=$LIBS 16988LIBS="-lsocket $LIBS" 16989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16990/* end confdefs.h. */ 16991 16992/* Override any GCC internal prototype to avoid an error. 16993 Use char because int might match the return type of a GCC 16994 builtin and then its argument prototype would still apply. */ 16995#ifdef __cplusplus 16996extern "C" 16997#endif 16998char socket (); 16999int 17000main () 17001{ 17002return socket (); 17003 ; 17004 return 0; 17005} 17006_ACEOF 17007if ac_fn_c_try_link "$LINENO"; then : 17008 ac_cv_lib_socket_socket=yes 17009else 17010 ac_cv_lib_socket_socket=no 17011fi 17012rm -f core conftest.err conftest.$ac_objext \ 17013 conftest$ac_exeext conftest.$ac_ext 17014LIBS=$ac_check_lib_save_LIBS 17015fi 17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 17017$as_echo "$ac_cv_lib_socket_socket" >&6; } 17018if test "x$ac_cv_lib_socket_socket" = xyes; then : 17019 cat >>confdefs.h <<_ACEOF 17020#define HAVE_LIBSOCKET 1 17021_ACEOF 17022 17023 LIBS="-lsocket $LIBS" 17024 17025fi 17026 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 17028$as_echo_n "checking for inet_addr in -lnsl... " >&6; } 17029if ${ac_cv_lib_nsl_inet_addr+:} false; then : 17030 $as_echo_n "(cached) " >&6 17031else 17032 ac_check_lib_save_LIBS=$LIBS 17033LIBS="-lnsl $LIBS" 17034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17035/* end confdefs.h. */ 17036 17037/* Override any GCC internal prototype to avoid an error. 17038 Use char because int might match the return type of a GCC 17039 builtin and then its argument prototype would still apply. */ 17040#ifdef __cplusplus 17041extern "C" 17042#endif 17043char inet_addr (); 17044int 17045main () 17046{ 17047return inet_addr (); 17048 ; 17049 return 0; 17050} 17051_ACEOF 17052if ac_fn_c_try_link "$LINENO"; then : 17053 ac_cv_lib_nsl_inet_addr=yes 17054else 17055 ac_cv_lib_nsl_inet_addr=no 17056fi 17057rm -f core conftest.err conftest.$ac_objext \ 17058 conftest$ac_exeext conftest.$ac_ext 17059LIBS=$ac_check_lib_save_LIBS 17060fi 17061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 17062$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } 17063if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then : 17064 cat >>confdefs.h <<_ACEOF 17065#define HAVE_LIBNSL 1 17066_ACEOF 17067 17068 LIBS="-lnsl $LIBS" 17069 17070fi 17071 17072 ;; 17073esac 17074 17075# 17076# Work around Solaris's select() limitations. 17077# 17078case "$host" in 17079 *-solaris2.[89]|*-solaris2.1?) 17080 17081$as_echo "#define FD_SETSIZE 65536" >>confdefs.h 17082 17083 ;; 17084esac 17085 17086# 17087# Purify support 17088# 17089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5 17090$as_echo_n "checking whether to use purify... " >&6; } 17091 17092# Check whether --with-purify was given. 17093if test "${with_purify+set}" = set; then : 17094 withval=$with_purify; use_purify="$withval" 17095else 17096 use_purify="no" 17097fi 17098 17099 17100case "$use_purify" in 17101 no) 17102 ;; 17103 yes) 17104 # Extract the first word of "purify", so it can be a program name with args. 17105set dummy purify; ac_word=$2 17106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17107$as_echo_n "checking for $ac_word... " >&6; } 17108if ${ac_cv_path_purify_path+:} false; then : 17109 $as_echo_n "(cached) " >&6 17110else 17111 case $purify_path in 17112 [\\/]* | ?:[\\/]*) 17113 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path. 17114 ;; 17115 *) 17116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17117for as_dir in $PATH 17118do 17119 IFS=$as_save_IFS 17120 test -z "$as_dir" && as_dir=. 17121 for ac_exec_ext in '' $ac_executable_extensions; do 17122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17123 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext" 17124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17125 break 2 17126 fi 17127done 17128 done 17129IFS=$as_save_IFS 17130 17131 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify" 17132 ;; 17133esac 17134fi 17135purify_path=$ac_cv_path_purify_path 17136if test -n "$purify_path"; then 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5 17138$as_echo "$purify_path" >&6; } 17139else 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17141$as_echo "no" >&6; } 17142fi 17143 17144 17145 ;; 17146 *) 17147 purify_path="$use_purify" 17148 ;; 17149esac 17150 17151case "$use_purify" in 17152 no) 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17154$as_echo "no" >&6; } 17155 PURIFY="" 17156 ;; 17157 *) 17158 if test -f $purify_path || test $purify_path = purify; then 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5 17160$as_echo "$purify_path" >&6; } 17161 PURIFYFLAGS="`echo $PURIFYOPTIONS`" 17162 PURIFY="$purify_path $PURIFYFLAGS" 17163 else 17164 as_fn_error $? "$purify_path not found. 17165 17166Please choose the proper path with the following command: 17167 17168 configure --with-purify=PATH 17169" "$LINENO" 5 17170 fi 17171 ;; 17172esac 17173 17174 17175 17176# 17177# Google/Great Performance Tools CPU Profiler 17178# 17179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5 17180$as_echo_n "checking whether to use gperftools profiler... " >&6; } 17181 17182# Check whether --with-gperftools-profiler was given. 17183if test "${with_gperftools_profiler+set}" = set; then : 17184 withval=$with_gperftools_profiler; use_profiler="$withval" 17185else 17186 use_profiler="no" 17187fi 17188 17189 17190case $use_profiler in 17191 yes) 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17193$as_echo "yes" >&6; } 17194 17195$as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h 17196 17197 LIBS="$LIBS -lprofiler" 17198 ;; 17199 *) 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17201$as_echo "no" >&6; } 17202 ;; 17203esac 17204 17205# 17206# enable/disable dumping stack backtrace. Also check if the system supports 17207# glibc-compatible backtrace() function. 17208# 17209# Check whether --enable-backtrace was given. 17210if test "${enable_backtrace+set}" = set; then : 17211 enableval=$enable_backtrace; want_backtrace="$enableval" 17212else 17213 want_backtrace="yes" 17214fi 17215 17216case $want_backtrace in 17217yes) 17218 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1" 17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17220/* end confdefs.h. */ 17221#include <execinfo.h> 17222int 17223main () 17224{ 17225return (backtrace((void **)0, 0)); 17226 ; 17227 return 0; 17228} 17229_ACEOF 17230if ac_fn_c_try_link "$LINENO"; then : 17231 17232$as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h 17233 17234fi 17235rm -f core conftest.err conftest.$ac_objext \ 17236 conftest$ac_exeext conftest.$ac_ext 17237 ;; 17238*) 17239 ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE" 17240 ;; 17241esac 17242 17243 17244# Check whether --enable-symtable was given. 17245if test "${enable_symtable+set}" = set; then : 17246 enableval=$enable_symtable; want_symtable="$enableval" 17247else 17248 want_symtable="minimal" 17249fi 17250 17251case $want_symtable in 17252yes|all|minimal) # "yes" is a hidden value equivalent to "minimal" 17253 if test "$PERL" = "" 17254 then 17255 as_fn_error $? "Internal symbol table requires perl but no perl is found. 17256Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5 17257 fi 17258 if test "$use_libtool" = "yes"; then 17259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5 17260$as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;} 17261 else 17262 # we generate the internal symbol table only for those systems 17263 # known to work to avoid unexpected build failure. Also, warn 17264 # about unsupported systems when the feature is enabled 17265 # manually. 17266 case $host_os in 17267 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*) 17268 MKSYMTBL_PROGRAM="$PERL" 17269 if test $want_symtable = all; then 17270 ALWAYS_MAKE_SYMTABLE="yes" 17271 fi 17272 ;; 17273 *) 17274 if test $want_symtable = yes -o $want_symtable = all 17275 then 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5 17277$as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;} 17278 fi 17279 esac 17280 fi 17281 ;; 17282*) 17283 ;; 17284esac 17285 17286 17287 17288# 17289# File name extension for static archive files, for those few places 17290# where they are treated differently from dynamic ones. 17291# 17292SA=a 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304BIND9_CO_RULE=".c.$O:" 17305 17306 17307# 17308# Here begins a very long section to determine the system's networking 17309# capabilities. The order of the tests is significant. 17310# 17311 17312# 17313# IPv6 17314# 17315# Check whether --enable-ipv6 was given. 17316if test "${enable_ipv6+set}" = set; then : 17317 enableval=$enable_ipv6; 17318fi 17319 17320 17321case "$enable_ipv6" in 17322 yes|''|autodetect) 17323 $as_echo "#define WANT_IPV6 1" >>confdefs.h 17324 17325 ;; 17326 no) 17327 ;; 17328esac 17329 17330# 17331# We do the IPv6 compilation checking after libtool so that we can put 17332# the right suffix on the files. 17333# 17334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 17335$as_echo_n "checking for IPv6 structures... " >&6; } 17336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337/* end confdefs.h. */ 17338 17339#include <sys/types.h> 17340#include <sys/socket.h> 17341#include <netinet/in.h> 17342int 17343main () 17344{ 17345struct sockaddr_in6 sin6; return (0); 17346 ; 17347 return 0; 17348} 17349_ACEOF 17350if ac_fn_c_try_compile "$LINENO"; then : 17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17352$as_echo "yes" >&6; } 17353 found_ipv6=yes 17354else 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17356$as_echo "no" >&6; } 17357 found_ipv6=no 17358fi 17359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17360 17361# 17362# See whether IPv6 support is provided via a Kame add-on. 17363# This is done before other IPv6 linking tests to LIBS is properly set. 17364# 17365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 17366$as_echo_n "checking for Kame IPv6 support... " >&6; } 17367 17368# Check whether --with-kame was given. 17369if test "${with_kame+set}" = set; then : 17370 withval=$with_kame; use_kame="$withval" 17371else 17372 use_kame="no" 17373fi 17374 17375 17376case "$use_kame" in 17377 no) 17378 ;; 17379 yes) 17380 kame_path=/usr/local/v6 17381 ;; 17382 *) 17383 kame_path="$use_kame" 17384 ;; 17385esac 17386 17387case "$use_kame" in 17388 no) 17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17390$as_echo "no" >&6; } 17391 ;; 17392 *) 17393 if test -f $kame_path/lib/libinet6.a; then 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 17395$as_echo "$kame_path/lib/libinet6.a" >&6; } 17396 LIBS="-L$kame_path/lib -linet6 $LIBS" 17397 else 17398 as_fn_error $? "$kame_path/lib/libinet6.a not found. 17399 17400Please choose the proper path with the following command: 17401 17402 configure --with-kame=PATH 17403" "$LINENO" 5 17404 fi 17405 ;; 17406esac 17407 17408# 17409# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 17410# Including it on Kame-using platforms is very bad, though, because 17411# Kame uses #error against direct inclusion. So include it on only 17412# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 17413# This is done before the in6_pktinfo check because that's what 17414# netinet6/in6.h is needed for. 17415# 17416 17417case "$host" in 17418*-bsdi4.[01]*) 17419 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1" 17420 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1" 17421 isc_netinet6in6_hack="#include <netinet6/in6.h>" 17422 ;; 17423*) 17424 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H" 17425 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H" 17426 isc_netinet6in6_hack="" 17427 ;; 17428esac 17429 17430 17431# 17432# This is similar to the netinet6/in6.h issue. 17433# 17434case "$host" in 17435*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 17436 # UnixWare 17437 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1" 17438 LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1" 17439 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1" 17440 isc_netinetin6_hack="#include <netinet/in6.h>" 17441 ;; 17442*) 17443 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H" 17444 LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H" 17445 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR" 17446 isc_netinetin6_hack="" 17447 ;; 17448esac 17449 17450# 17451# Now delve deeper into the suitability of the IPv6 support. 17452# 17453case "$found_ipv6" in 17454 yes) 17455 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1" 17456 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1" 17457 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5 17459$as_echo_n "checking for in6_addr... " >&6; } 17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17461/* end confdefs.h. */ 17462 17463#include <sys/types.h> 17464#include <sys/socket.h> 17465#include <netinet/in.h> 17466$isc_netinetin6_hack 17467$isc_netinet6in6_hack 17468 17469int 17470main () 17471{ 17472struct in6_addr in6; return (0); 17473 ; 17474 return 0; 17475} 17476_ACEOF 17477if ac_fn_c_try_compile "$LINENO"; then : 17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17479$as_echo "yes" >&6; } 17480 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6" 17481 LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6" 17482 isc_in_addr6_hack="" 17483else 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17485$as_echo "no" >&6; } 17486 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1" 17487 LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1" 17488 isc_in_addr6_hack="#define in6_addr in_addr6" 17489fi 17490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17491 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 17493$as_echo_n "checking for in6addr_any... " >&6; } 17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17495/* end confdefs.h. */ 17496 17497#include <sys/types.h> 17498#include <sys/socket.h> 17499#include <netinet/in.h> 17500$isc_netinetin6_hack 17501$isc_netinet6in6_hack 17502$isc_in_addr6_hack 17503 17504int 17505main () 17506{ 17507struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]); 17508 ; 17509 return 0; 17510} 17511_ACEOF 17512if ac_fn_c_try_link "$LINENO"; then : 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17514$as_echo "yes" >&6; } 17515 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY" 17516 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY" 17517else 17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17519$as_echo "no" >&6; } 17520 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1" 17521 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1" 17522fi 17523rm -f core conftest.err conftest.$ac_objext \ 17524 conftest$ac_exeext conftest.$ac_ext 17525 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5 17527$as_echo_n "checking for in6addr_loopback... " >&6; } 17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530 17531#include <sys/types.h> 17532#include <sys/socket.h> 17533#include <netinet/in.h> 17534$isc_netinetin6_hack 17535$isc_netinet6in6_hack 17536$isc_in_addr6_hack 17537 17538int 17539main () 17540{ 17541struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]); 17542 ; 17543 return 0; 17544} 17545_ACEOF 17546if ac_fn_c_try_link "$LINENO"; then : 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17548$as_echo "yes" >&6; } 17549 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK" 17550 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK" 17551else 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17553$as_echo "no" >&6; } 17554 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1" 17555 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1" 17556fi 17557rm -f core conftest.err conftest.$ac_objext \ 17558 conftest$ac_exeext conftest.$ac_ext 17559 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5 17561$as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; } 17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17563/* end confdefs.h. */ 17564 17565#include <sys/types.h> 17566#include <sys/socket.h> 17567#include <netinet/in.h> 17568$isc_netinetin6_hack 17569$isc_netinet6in6_hack 17570 17571int 17572main () 17573{ 17574struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); 17575 ; 17576 return 0; 17577} 17578_ACEOF 17579if ac_fn_c_try_compile "$LINENO"; then : 17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17581$as_echo "yes" >&6; } 17582 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1" 17583 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 17584else 17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17586$as_echo "no" >&6; } 17587 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID" 17588 result="#undef LWRES_HAVE_SIN6_SCOPE_ID" 17589fi 17590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17591 LWRES_HAVE_SIN6_SCOPE_ID="$result" 17592 17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 17594$as_echo_n "checking for in6_pktinfo... " >&6; } 17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17596/* end confdefs.h. */ 17597 17598#include <sys/types.h> 17599#include <sys/socket.h> 17600#include <netinet/in.h> 17601$isc_netinetin6_hack 17602$isc_netinet6in6_hack 17603 17604int 17605main () 17606{ 17607struct in6_pktinfo xyzzy; return (0); 17608 ; 17609 return 0; 17610} 17611_ACEOF 17612if ac_fn_c_try_compile "$LINENO"; then : 17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17614$as_echo "yes" >&6; } 17615 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1" 17616else 17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5 17618$as_echo "no -- disabling runtime ipv6 support" >&6; } 17619 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 17620fi 17621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17622 ;; 17623 no) 17624 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6" 17625 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6" 17626 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY" 17627 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY" 17628 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 17629 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 17630 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1" 17631 ISC_IPV6_H="ipv6.h" 17632 ISC_IPV6_O="ipv6.$O" 17633 ISC_ISCIPV6_O="unix/ipv6.$O" 17634 ISC_IPV6_C="ipv6.c" 17635 ;; 17636esac 17637 17638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 17639$as_echo_n "checking for struct sockaddr_storage... " >&6; } 17640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17641/* end confdefs.h. */ 17642 17643#include <sys/types.h> 17644#include <sys/socket.h> 17645$isc_netinetin6_hack 17646$isc_netinet6in6_hack 17647 17648int 17649main () 17650{ 17651struct sockaddr_storage storage; return (0); 17652 ; 17653 return 0; 17654} 17655_ACEOF 17656if ac_fn_c_try_compile "$LINENO"; then : 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17658$as_echo "yes" >&6; } 17659ISC_PLATFORM_HAVESOCKADDRSTORAGE="#define ISC_PLATFORM_HAVESOCKADDRSTORAGE 1" 17660else 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17662$as_echo "no" >&6; } 17663ISC_PLATFORM_HAVESOCKADDRSTORAGE="#undef ISC_PLATFORM_HAVESOCKADDRSTORAGE" 17664fi 17665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 17690$as_echo_n "checking for struct if_laddrreq... " >&6; } 17691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17692/* end confdefs.h. */ 17693 17694#include <sys/types.h> 17695#include <net/if6.h> 17696 17697int 17698main () 17699{ 17700 struct if_laddrreq a; 17701 ; 17702 return 0; 17703} 17704_ACEOF 17705if ac_fn_c_try_link "$LINENO"; then : 17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17707$as_echo "yes" >&6; } 17708 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" 17709else 17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17711$as_echo "no" >&6; } 17712 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ" 17713fi 17714rm -f core conftest.err conftest.$ac_objext \ 17715 conftest$ac_exeext conftest.$ac_ext 17716 17717 17718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 17719$as_echo_n "checking for struct if_laddrconf... " >&6; } 17720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17721/* end confdefs.h. */ 17722 17723#include <sys/types.h> 17724#include <net/if6.h> 17725 17726int 17727main () 17728{ 17729 struct if_laddrconf a; 17730 ; 17731 return 0; 17732} 17733_ACEOF 17734if ac_fn_c_try_link "$LINENO"; then : 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17736$as_echo "yes" >&6; } 17737 ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" 17738else 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17740$as_echo "no" >&6; } 17741 ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF" 17742fi 17743rm -f core conftest.err conftest.$ac_objext \ 17744 conftest$ac_exeext conftest.$ac_ext 17745 17746 17747# 17748# Check for network functions that are often missing. We do this 17749# after the libtool checking, so we can put the right suffix on 17750# the files. It also needs to come after checking for a Kame add-on, 17751# which provides some (all?) of the desired functions. 17752# 17753 17754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5 17755$as_echo_n "checking for inet_ntop with IPv6 support... " >&6; } 17756if test "$cross_compiling" = yes; then : 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop not needed" >&5 17758$as_echo "assuming inet_ntop not needed" >&6; } 17759 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 17760else 17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17762/* end confdefs.h. */ 17763 17764#include <sys/types.h> 17765#include <sys/socket.h> 17766#include <netinet/in.h> 17767#include <arpa/inet.h> 17768main() { 17769char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);} 17770_ACEOF 17771if ac_fn_c_try_run "$LINENO"; then : 17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17773$as_echo "yes" >&6; } 17774 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 17775else 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17777$as_echo "no" >&6; } 17778 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O" 17779 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c" 17780 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1" 17781fi 17782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17783 conftest.$ac_objext conftest.beam conftest.$ac_ext 17784fi 17785 17786 17787 17788# On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts 17789# addresses with less than four octets, like "1.2.3". Also leading 17790# zeros should also be rejected. 17791 17792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5 17793$as_echo_n "checking for working inet_pton with IPv6 support... " >&6; } 17794if test "$cross_compiling" = yes; then : 17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_pton needed" >&5 17796$as_echo "assuming inet_pton needed" >&6; } 17797 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" 17798 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c" 17799 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1" 17800else 17801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17802/* end confdefs.h. */ 17803 17804#include <sys/types.h> 17805#include <sys/socket.h> 17806#include <netinet/in.h> 17807#include <arpa/inet.h> 17808main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 : 17809 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 : 17810 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); } 17811_ACEOF 17812if ac_fn_c_try_run "$LINENO"; then : 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17814$as_echo "yes" >&6; } 17815 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 17816else 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17818$as_echo "no" >&6; } 17819 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" 17820 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c" 17821 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1" 17822fi 17823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17824 conftest.$ac_objext conftest.beam conftest.$ac_ext 17825fi 17826 17827 17828 17829 17830 17831# 17832# Look for a 4.4BSD-style sa_len member in struct sockaddr. 17833# 17834case "$host" in 17835 *-dec-osf*) 17836 # Turn on 4.4BSD style sa_len support. 17837 $as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h 17838 17839 ;; 17840esac 17841 17842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5 17843$as_echo_n "checking for sa_len in struct sockaddr... " >&6; } 17844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17845/* end confdefs.h. */ 17846 17847#include <sys/types.h> 17848#include <sys/socket.h> 17849int 17850main () 17851{ 17852struct sockaddr sa; sa.sa_len = 0; return (0); 17853 ; 17854 return 0; 17855} 17856_ACEOF 17857if ac_fn_c_try_compile "$LINENO"; then : 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17859$as_echo "yes" >&6; } 17860 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1" 17861 LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1" 17862else 17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17864$as_echo "no" >&6; } 17865 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN" 17866 LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN" 17867fi 17868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17869 17870 17871 17872# 17873# Look for a 4.4BSD or 4.3BSD struct msghdr 17874# 17875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5 17876$as_echo_n "checking for struct msghdr flavor... " >&6; } 17877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17878/* end confdefs.h. */ 17879 17880#include <sys/types.h> 17881#include <sys/socket.h> 17882int 17883main () 17884{ 17885struct msghdr msg; msg.msg_flags = 0; return (0); 17886 ; 17887 return 0; 17888} 17889_ACEOF 17890if ac_fn_c_try_compile "$LINENO"; then : 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5 17892$as_echo "4.4BSD" >&6; } 17893 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1" 17894else 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5 17896$as_echo "4.3BSD" >&6; } 17897 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1" 17898fi 17899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17900 17901 17902# 17903# Look for in_port_t. 17904# 17905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5 17906$as_echo_n "checking for type in_port_t... " >&6; } 17907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17908/* end confdefs.h. */ 17909 17910#include <sys/types.h> 17911#include <netinet/in.h> 17912int 17913main () 17914{ 17915in_port_t port = 25; return (0); 17916 ; 17917 return 0; 17918} 17919_ACEOF 17920if ac_fn_c_try_compile "$LINENO"; then : 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17922$as_echo "yes" >&6; } 17923 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT" 17924else 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17926$as_echo "no" >&6; } 17927 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1" 17928fi 17929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17930 17931 17932# 17933# Check for addrinfo 17934# 17935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 17936$as_echo_n "checking for struct addrinfo... " >&6; } 17937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17938/* end confdefs.h. */ 17939 17940#include <netdb.h> 17941int 17942main () 17943{ 17944struct addrinfo a; return (0); 17945 ; 17946 return 0; 17947} 17948_ACEOF 17949if ac_fn_c_try_compile "$LINENO"; then : 17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17951$as_echo "yes" >&6; } 17952 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO" 17953 ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO" 17954 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 17955 17956else 17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17958$as_echo "no" >&6; } 17959 ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1" 17960 ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1" 17961fi 17962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17963 17964 17965 17966# 17967# Check for rrsetinfo 17968# 17969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rrsetinfo" >&5 17970$as_echo_n "checking for struct rrsetinfo... " >&6; } 17971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17972/* end confdefs.h. */ 17973 17974#include <netdb.h> 17975int 17976main () 17977{ 17978struct rrsetinfo r; return (0); 17979 ; 17980 return 0; 17981} 17982_ACEOF 17983if ac_fn_c_try_compile "$LINENO"; then : 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17985$as_echo "yes" >&6; } 17986 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO" 17987else 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17989$as_echo "no" >&6; } 17990 ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1" 17991fi 17992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17993 17994 17995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int sethostent" >&5 17996$as_echo_n "checking for int sethostent... " >&6; } 17997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17998/* end confdefs.h. */ 17999 18000#include <netdb.h> 18001int 18002main () 18003{ 18004int i = sethostent(0); return(0); 18005 ; 18006 return 0; 18007} 18008_ACEOF 18009if ac_fn_c_try_compile "$LINENO"; then : 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18011$as_echo "yes" >&6; } 18012 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1" 18013else 18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18015$as_echo "no" >&6; } 18016 ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT" 18017fi 18018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18019 18020 18021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endhostent" >&5 18022$as_echo_n "checking for int endhostent... " >&6; } 18023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18024/* end confdefs.h. */ 18025 18026#include <netdb.h> 18027int 18028main () 18029{ 18030int i = endhostent(); return(0); 18031 ; 18032 return 0; 18033} 18034_ACEOF 18035if ac_fn_c_try_compile "$LINENO"; then : 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18037$as_echo "yes" >&6; } 18038 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1" 18039else 18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18041$as_echo "no" >&6; } 18042 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT" 18043fi 18044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18045 18046 18047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnetbyaddr(in_addr_t, ...)" >&5 18048$as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; } 18049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18050/* end confdefs.h. */ 18051 18052#include <netdb.h> 18053struct netent *getnetbyaddr(in_addr_t, int); 18054int 18055main () 18056{ 18057 18058 ; 18059 return 0; 18060} 18061_ACEOF 18062if ac_fn_c_try_compile "$LINENO"; then : 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18064$as_echo "yes" >&6; } 18065 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1" 18066else 18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18068$as_echo "no" >&6; } 18069 ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR" 18070fi 18071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18072 18073 18074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int setnetent" >&5 18075$as_echo_n "checking for int setnetent... " >&6; } 18076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18077/* end confdefs.h. */ 18078 18079#include <netdb.h> 18080int 18081main () 18082{ 18083int i = setnetent(0); return(0); 18084 ; 18085 return 0; 18086} 18087_ACEOF 18088if ac_fn_c_try_compile "$LINENO"; then : 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18090$as_echo "yes" >&6; } 18091 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1" 18092else 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18094$as_echo "no" >&6; } 18095 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT" 18096fi 18097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18098 18099 18100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endnetent" >&5 18101$as_echo_n "checking for int endnetent... " >&6; } 18102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18103/* end confdefs.h. */ 18104 18105#include <netdb.h> 18106int 18107main () 18108{ 18109int i = endnetent(); return(0); 18110 ; 18111 return 0; 18112} 18113_ACEOF 18114if ac_fn_c_try_compile "$LINENO"; then : 18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18116$as_echo "yes" >&6; } 18117 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1" 18118else 18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18120$as_echo "no" >&6; } 18121 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT" 18122fi 18123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18124 18125 18126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr(const void *, size_t, ...)" >&5 18127$as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; } 18128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18129/* end confdefs.h. */ 18130 18131#include <netdb.h> 18132struct hostent *gethostbyaddr(const void *, size_t, int); 18133int 18134main () 18135{ 18136return(0); 18137 ; 18138 return 0; 18139} 18140_ACEOF 18141if ac_fn_c_try_compile "$LINENO"; then : 18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18143$as_echo "yes" >&6; } 18144 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1" 18145else 18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18147$as_echo "no" >&6; } 18148 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID" 18149fi 18150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18151 18152 18153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5 18154$as_echo_n "checking for h_errno in netdb.h... " >&6; } 18155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18156/* end confdefs.h. */ 18157 18158#include <netdb.h> 18159int 18160main () 18161{ 18162h_errno = 1; return(0); 18163 ; 18164 return 0; 18165} 18166_ACEOF 18167if ac_fn_c_try_compile "$LINENO"; then : 18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18169$as_echo "yes" >&6; } 18170 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO" 18171else 18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18173$as_echo "no" >&6; } 18174 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1" 18175fi 18176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18177 18178 18179# 18180# Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch 18181# known variations here: 18182# 18183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5 18184$as_echo_n "checking for getnameinfo prototype definitions... " >&6; } 18185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18186/* end confdefs.h. */ 18187 18188#include <sys/types.h> 18189#include <sys/socket.h> 18190#include <netdb.h> 18191int getnameinfo(const struct sockaddr *, socklen_t, char *, 18192 socklen_t, char *, socklen_t, unsigned int); 18193int 18194main () 18195{ 18196 return (0); 18197 ; 18198 return 0; 18199} 18200_ACEOF 18201if ac_fn_c_try_compile "$LINENO"; then : 18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; u_int for flags" >&5 18203$as_echo "socklen_t for buflen; u_int for flags" >&6; } 18204 18205$as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h 18206 18207 18208$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h 18209 18210 18211$as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h 18212 18213else 18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18215/* end confdefs.h. */ 18216 18217#include <sys/types.h> 18218#include <sys/socket.h> 18219#include <netdb.h> 18220int getnameinfo(const struct sockaddr *, socklen_t, char *, 18221 size_t, char *, size_t, int); 18222int 18223main () 18224{ 18225 return (0); 18226 ; 18227 return 0; 18228} 18229_ACEOF 18230if ac_fn_c_try_compile "$LINENO"; then : 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5 18232$as_echo "size_t for buflen; int for flags" >&6; } 18233 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h 18234 18235 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h 18236 18237 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h 18238 18239else 18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18241/* end confdefs.h. */ 18242 18243#include <sys/types.h> 18244#include <sys/socket.h> 18245#include <netdb.h> 18246int getnameinfo(const struct sockaddr *, size_t, char *, 18247 size_t, char *, size_t, int); 18248int 18249main () 18250{ 18251 return (0); 18252 ; 18253 return 0; 18254} 18255_ACEOF 18256if ac_fn_c_try_compile "$LINENO"; then : 18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5 18258$as_echo "size_t for buflen; int for flags" >&6; } 18259 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T size_t" >>confdefs.h 18260 18261 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h 18262 18263 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h 18264 18265else 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5 18267$as_echo "not match any subspecies; assume standard definition" >&6; } 18268$as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h 18269 18270$as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h 18271 18272$as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h 18273 18274fi 18275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18276fi 18277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18278fi 18279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18280 18281# 18282# ...and same for gai_strerror(). 18283# 18284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5 18285$as_echo_n "checking for gai_strerror prototype definitions... " >&6; } 18286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18287/* end confdefs.h. */ 18288 18289#include <sys/types.h> 18290#include <sys/socket.h> 18291#include <netdb.h> 18292char *gai_strerror(int ecode); 18293int 18294main () 18295{ 18296 return (0); 18297 ; 18298 return 0; 18299} 18300_ACEOF 18301if ac_fn_c_try_compile "$LINENO"; then : 18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5 18303$as_echo "returning char *" >&6; } 18304 18305$as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h 18306 18307else 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5 18309$as_echo "not match any subspecies; assume standard definition" >&6; } 18310$as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h 18311 18312fi 18313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18314 18315ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname" 18316if test "x$ac_cv_func_getipnodebyname" = xyes; then : 18317 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO" 18318else 18319 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1" 18320fi 18321 18322ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 18323if test "x$ac_cv_func_getnameinfo" = xyes; then : 18324 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO" 18325else 18326 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1" 18327fi 18328 18329ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18330if test "x$ac_cv_func_getaddrinfo" = xyes; then : 18331 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO" 18332 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 18333 18334else 18335 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1" 18336fi 18337 18338ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 18339if test "x$ac_cv_func_gai_strerror" = xyes; then : 18340 $as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h 18341 18342fi 18343 18344 18345 18346 18347 18348 18349# Check whether --enable-getifaddrs was given. 18350if test "${enable_getifaddrs+set}" = set; then : 18351 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 18352else 18353 want_getifaddrs="yes" 18354fi 18355 18356 18357# 18358# This interface iteration code for getifaddrs() will fall back to using 18359# /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6 18360# addresses. 18361# 18362case $want_getifaddrs in 18363glibc) 18364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5 18365$as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;} 18366ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 18367if test "x$ac_cv_func_getifaddrs" = xyes; then : 18368 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h 18369 18370fi 18371 18372;; 18373yes) 18374ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 18375if test "x$ac_cv_func_getifaddrs" = xyes; then : 18376 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h 18377 18378fi 18379 18380;; 18381no) 18382;; 18383esac 18384 18385# 18386# Look for a sysctl call to get the list of network interfaces. 18387# 18388case $ac_cv_header_sys_sysctl_h in 18389yes) 18390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 18391$as_echo_n "checking for interface list sysctl... " >&6; } 18392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18393/* end confdefs.h. */ 18394 18395#include <sys/param.h> 18396#include <sys/sysctl.h> 18397#include <sys/socket.h> 18398#ifdef NET_RT_IFLIST 18399found_rt_iflist 18400#endif 18401 18402_ACEOF 18403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18404 $EGREP "found_rt_iflist" >/dev/null 2>&1; then : 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18406$as_echo "yes" >&6; } 18407 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 18408 18409else 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18411$as_echo "no" >&6; } 18412fi 18413rm -f conftest* 18414 18415;; 18416esac 18417 18418# 18419# Check for some other useful functions that are not ever-present. 18420# 18421 18422# We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC 18423# because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77 18424# reportedly defines strsep() without declaring it in <string.h> when 18425# -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and 18426# AC_CHECK_FUNC() incorrectly succeeds because it declares 18427# the function itself. 18428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5 18429$as_echo_n "checking for correctly declared strsep()... " >&6; } 18430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18431/* end confdefs.h. */ 18432#include <string.h> 18433int 18434main () 18435{ 18436char *sp; char *foo = strsep(&sp, "."); 18437 ; 18438 return 0; 18439} 18440_ACEOF 18441if ac_fn_c_try_link "$LINENO"; then : 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18443$as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP" 18444else 18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18446$as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1" 18447fi 18448rm -f core conftest.err conftest.$ac_objext \ 18449 conftest$ac_exeext conftest.$ac_ext 18450 18451 18452ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 18453if test "x$ac_cv_func_memmove" = xyes; then : 18454 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE" 18455else 18456 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1" 18457fi 18458 18459 18460 18461ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 18462if test "x$ac_cv_func_strtoul" = xyes; then : 18463 ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL" 18464 LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL" 18465 GENRANDOMLIB="" 18466else 18467 ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1" 18468 LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1" 18469 GENRANDOMLIB='${ISCLIBS}' 18470fi 18471 18472 18473 18474 18475 18476ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18477if test "x$ac_cv_func_strlcpy" = xyes; then : 18478 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY" 18479 LWRES_PLATFORM_NEEDSTRLCPY="#undef LWRES_PLATFORM_NEEDSTRLCPY" 18480else 18481 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1" 18482 LWRES_PLATFORM_NEEDSTRLCPY="#define LWRES_PLATFORM_NEEDSTRLCPY 1" 18483fi 18484 18485 18486 18487 18488ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 18489if test "x$ac_cv_func_strlcat" = xyes; then : 18490 ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT" 18491else 18492 ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1" 18493fi 18494 18495 18496 18497ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 18498if test "x$ac_cv_func_strcasestr" = xyes; then : 18499 ISC_PLATFORM_NEEDSTRCASESTR="#undef ISC_PLATFORM_NEEDSTRCASESTR" 18500else 18501 ISC_PLATFORM_NEEDSTRCASESTR="#define ISC_PLATFORM_NEEDSTRCASESTR 1" 18502fi 18503 18504 18505 18506 18507 18508# Check whether --with-readline was given. 18509if test "${with_readline+set}" = set; then : 18510 withval=$with_readline; readline="$withval" 18511else 18512 readline="-lreadline" 18513fi 18514 18515case "$readline" in 18516no) ;; 18517*) 18518 if test "x$readline" = "xyes" 18519 then 18520 readline=-lreadline 18521 fi 18522 saved_LIBS="$LIBS" 18523 LIBS="$readline" 18524 for ac_func in readline 18525do : 18526 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline" 18527if test "x$ac_cv_func_readline" = xyes; then : 18528 cat >>confdefs.h <<_ACEOF 18529#define HAVE_READLINE 1 18530_ACEOF 18531 18532fi 18533done 18534 18535 if test "$ac_cv_func_readline" = "yes" 18536 then 18537 READLINE_LIB="$readline" 18538 fi 18539 LIBS="$saved_LIBS" 18540 ;; 18541esac 18542 18543 18544ISC_PRINT_OBJS= 18545ISC_PRINT_SRCS= 18546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf" >&5 18547$as_echo_n "checking sprintf... " >&6; } 18548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18549/* end confdefs.h. */ 18550 18551#include <stdio.h> 18552 18553int 18554main () 18555{ 18556 char buf[2]; return(*sprintf(buf,"x")); 18557 ; 18558 return 0; 18559} 18560_ACEOF 18561if ac_fn_c_try_compile "$LINENO"; then : 18562 18563ISC_PRINT_OBJS="print.$O" 18564ISC_PRINT_SRCS="print.c" 18565ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF" 18566LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF" 18567 18568else 18569 ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF" 18570 LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF" 18571 18572fi 18573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18574 18575 18576 18577ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 18578if test "x$ac_cv_func_vsnprintf" = xyes; then : 18579 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF" 18580 LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF" 18581else 18582 ISC_PRINT_OBJS="print.$O" 18583 ISC_PRINT_SRCS="print.c" 18584 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1" 18585 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1" 18586fi 18587 18588 18589 18590ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS" 18591ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS" 18592 18593ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 18594if test "x$ac_cv_func_strerror" = xyes; then : 18595 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 18596 18597fi 18598 18599 18600 18601 18602 18603# 18604# Use our own SPNEGO implementation? 18605# 18606# Check whether --enable-isc-spnego was given. 18607if test "${enable_isc_spnego+set}" = set; then : 18608 enableval=$enable_isc_spnego; 18609fi 18610 18611 18612if test -n "$USE_GSSAPI" 18613then 18614 case "$enable_isc_spnego" in 18615 yes|'') 18616 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO' 18617 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O" 18618 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c" 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5 18620$as_echo "using SPNEGO from lib/dns" >&6; } 18621 ;; 18622 no) 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5 18624$as_echo "using SPNEGO from GSSAPI library" >&6; } 18625 ;; 18626 esac 18627fi 18628 18629 18630 18631 18632 18633 18634# Determine the printf format characters to use when printing 18635# values of type isc_int64_t. This will normally be "ll", but where 18636# the compiler treats "long long" as a alias for "long" and printf 18637# doesn't know about "long long" use "l". Hopefully the sprintf 18638# will produce a inconsistent result in the later case. If the compiler 18639# fails due to seeing "%lld" we fall back to "l". 18640# 18641# Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses 18642# %ld even for (long long)/ 18643# 18644# Win32 uses "%I64d", but that's defined elsewhere since we don't use 18645# configure on Win32. 18646# 18647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format modifier for 64-bit integers" >&5 18648$as_echo_n "checking printf format modifier for 64-bit integers... " >&6; } 18649if test "$cross_compiling" = yes; then : 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform uses ll" >&5 18651$as_echo "assuming target platform uses ll" >&6; } 18652 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 18653 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"' 18654else 18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18656/* end confdefs.h. */ 18657 18658#include <stdio.h> 18659main() { 18660 long long int j = 0; 18661 char buf[100]; 18662 buf[0] = 0; 18663 sprintf(buf, "%lld", j); 18664 exit((sizeof(long long int) != sizeof(long int))? 0 : 18665 (strcmp(buf, "0") != 0)); 18666} 18667 18668_ACEOF 18669if ac_fn_c_try_run "$LINENO"; then : 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ll" >&5 18671$as_echo "ll" >&6; } 18672 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 18673 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"' 18674else 18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: l" >&5 18676$as_echo "l" >&6; } 18677 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"' 18678 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"' 18679fi 18680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18681 conftest.$ac_objext conftest.beam conftest.$ac_ext 18682fi 18683 18684 18685 18686 18687# 18688# Security Stuff 18689# 18690# Note it is very recommended to *not* disable chroot(), 18691# this is only because chroot() was made obsolete by Posix. 18692# Check whether --enable-chroot was given. 18693if test "${enable_chroot+set}" = set; then : 18694 enableval=$enable_chroot; 18695fi 18696 18697case "$enable_chroot" in 18698 yes|'') 18699 for ac_func in chroot 18700do : 18701 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" 18702if test "x$ac_cv_func_chroot" = xyes; then : 18703 cat >>confdefs.h <<_ACEOF 18704#define HAVE_CHROOT 1 18705_ACEOF 18706 18707fi 18708done 18709 18710 ;; 18711 no) 18712 ;; 18713esac 18714# Check whether --enable-linux-caps was given. 18715if test "${enable_linux_caps+set}" = set; then : 18716 enableval=$enable_linux_caps; 18717fi 18718 18719case "$enable_linux_caps" in 18720 yes|'') 18721 for ac_header in linux/types.h 18722do : 18723 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" 18724if test "x$ac_cv_header_linux_types_h" = xyes; then : 18725 cat >>confdefs.h <<_ACEOF 18726#define HAVE_LINUX_TYPES_H 1 18727_ACEOF 18728 18729fi 18730 18731done 18732 18733 for ac_header in sys/capability.h 18734do : 18735 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 18736if test "x$ac_cv_header_sys_capability_h" = xyes; then : 18737 cat >>confdefs.h <<_ACEOF 18738#define HAVE_SYS_CAPABILITY_H 1 18739_ACEOF 18740 18741fi 18742 18743done 18744 18745 for ac_header in linux/capability.h 18746do : 18747 ac_fn_c_check_header_compile "$LINENO" "linux/capability.h" "ac_cv_header_linux_capability_h" "#ifdef HAVE_LINUX_TYPES_H 18748 #include <linux/types.h> 18749 #endif 18750 18751" 18752if test "x$ac_cv_header_linux_capability_h" = xyes; then : 18753 cat >>confdefs.h <<_ACEOF 18754#define HAVE_LINUX_CAPABILITY_H 1 18755_ACEOF 18756 18757fi 18758 18759done 18760 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5 18762$as_echo_n "checking for cap_set_proc in -lcap... " >&6; } 18763if ${ac_cv_lib_cap_cap_set_proc+:} false; then : 18764 $as_echo_n "(cached) " >&6 18765else 18766 ac_check_lib_save_LIBS=$LIBS 18767LIBS="-lcap $LIBS" 18768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18769/* end confdefs.h. */ 18770 18771/* Override any GCC internal prototype to avoid an error. 18772 Use char because int might match the return type of a GCC 18773 builtin and then its argument prototype would still apply. */ 18774#ifdef __cplusplus 18775extern "C" 18776#endif 18777char cap_set_proc (); 18778int 18779main () 18780{ 18781return cap_set_proc (); 18782 ; 18783 return 0; 18784} 18785_ACEOF 18786if ac_fn_c_try_link "$LINENO"; then : 18787 ac_cv_lib_cap_cap_set_proc=yes 18788else 18789 ac_cv_lib_cap_cap_set_proc=no 18790fi 18791rm -f core conftest.err conftest.$ac_objext \ 18792 conftest$ac_exeext conftest.$ac_ext 18793LIBS=$ac_check_lib_save_LIBS 18794fi 18795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5 18796$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; } 18797if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then : 18798 cat >>confdefs.h <<_ACEOF 18799#define HAVE_LIBCAP 1 18800_ACEOF 18801 18802 LIBS="-lcap $LIBS" 18803 18804fi 18805 18806 ;; 18807 no) 18808 ;; 18809esac 18810for ac_header in sys/prctl.h 18811do : 18812 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 18813if test "x$ac_cv_header_sys_prctl_h" = xyes; then : 18814 cat >>confdefs.h <<_ACEOF 18815#define HAVE_SYS_PRCTL_H 1 18816_ACEOF 18817 18818fi 18819 18820done 18821 18822 18823for ac_header in sys/un.h 18824do : 18825 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 18826if test "x$ac_cv_header_sys_un_h" = xyes; then : 18827 cat >>confdefs.h <<_ACEOF 18828#define HAVE_SYS_UN_H 1 18829_ACEOF 18830 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1" 18831 18832else 18833 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH" 18834 18835fi 18836 18837done 18838 18839 18840 18841case "$host" in 18842*-solaris*) 18843 18844$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h 18845 18846 ;; 18847*-sunos*) 18848 18849$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h 18850 18851 ;; 18852esac 18853 18854# 18855# Time Zone Stuff 18856# 18857ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" 18858if test "x$ac_cv_func_tzset" = xyes; then : 18859 $as_echo "#define HAVE_TZSET 1" >>confdefs.h 18860 18861fi 18862 18863 18864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5 18865$as_echo_n "checking for optarg declaration... " >&6; } 18866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18867/* end confdefs.h. */ 18868 18869#include <unistd.h> 18870 18871int 18872main () 18873{ 18874optarg = 0; 18875 ; 18876 return 0; 18877} 18878_ACEOF 18879if ac_fn_c_try_compile "$LINENO"; then : 18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18881$as_echo "yes" >&6; } 18882else 18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18884$as_echo "no" >&6; } 18885GEN_NEED_OPTARG="-DNEED_OPTARG=1" 18886 18887$as_echo "#define NEED_OPTARG 1" >>confdefs.h 18888 18889fi 18890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18891 18892# 18893# BSD/OS, and perhaps some others, don't define rlim_t. 18894# 18895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5 18896$as_echo_n "checking for type rlim_t... " >&6; } 18897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18898/* end confdefs.h. */ 18899 18900#include <sys/types.h> 18901#include <sys/time.h> 18902#include <sys/resource.h> 18903int 18904main () 18905{ 18906rlim_t rl = 19671212; return (0); 18907 ; 18908 return 0; 18909} 18910_ACEOF 18911if ac_fn_c_try_compile "$LINENO"; then : 18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18913$as_echo "yes" >&6; } 18914 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t" 18915else 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18917$as_echo "no" >&6; } 18918 18919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5 18920$as_echo_n "checking type of rlim_cur... " >&6; } 18921if test "$cross_compiling" = yes; then : 18922 18923 18924# Check whether --with-rlimtype was given. 18925if test "${with_rlimtype+set}" = set; then : 18926 withval=$with_rlimtype; rlimtype="$withval" 18927else 18928 rlimtype="long long int" 18929fi 18930 18931ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE $rlimtype" 18932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&5 18933$as_echo "cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&6; } 18934else 18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18936/* end confdefs.h. */ 18937 18938#include <sys/types.h> 18939#include <sys/time.h> 18940#include <sys/resource.h> 18941main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));} 18942_ACEOF 18943if ac_fn_c_try_run "$LINENO"; then : 18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 18945$as_echo "int" >&6; } 18946ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int" 18947else 18948 18949if test "$cross_compiling" = yes; then : 18950 as_fn_error $? "this cannot happen" "$LINENO" 5 18951else 18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953/* end confdefs.h. */ 18954 18955#include <sys/types.h> 18956#include <sys/time.h> 18957#include <sys/resource.h> 18958main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));} 18959_ACEOF 18960if ac_fn_c_try_run "$LINENO"; then : 18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5 18962$as_echo "long int" >&6; } 18963ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int" 18964else 18965 18966if test "$cross_compiling" = yes; then : 18967 as_fn_error $? "this cannot happen" "$LINENO" 5 18968else 18969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18970/* end confdefs.h. */ 18971 18972#include <sys/types.h> 18973#include <sys/time.h> 18974#include <sys/resource.h> 18975main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));} 18976_ACEOF 18977if ac_fn_c_try_run "$LINENO"; then : 18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5 18979$as_echo "long long int" >&6; } 18980ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int" 18981else 18982 as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5 18983 18984fi 18985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18986 conftest.$ac_objext conftest.beam conftest.$ac_ext 18987fi 18988 18989 18990fi 18991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18992 conftest.$ac_objext conftest.beam conftest.$ac_ext 18993fi 18994 18995 18996fi 18997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18998 conftest.$ac_objext conftest.beam conftest.$ac_ext 18999fi 19000 19001 19002fi 19003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19004 19005 19006# 19007# Older HP-UX doesn't have gettune 19008# 19009case "$host" in 19010 *-hp-hpux*) 19011 for ac_header in sys/dyntune.h 19012do : 19013 ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default" 19014if test "x$ac_cv_header_sys_dyntune_h" = xyes; then : 19015 cat >>confdefs.h <<_ACEOF 19016#define HAVE_SYS_DYNTUNE_H 1 19017_ACEOF 19018 19019fi 19020 19021done 19022 19023 ;; 19024 *) 19025 ;; 19026esac 19027 19028 19029# 19030# Compaq TruCluster requires more code for handling cluster IP aliases 19031# 19032case "$host" in 19033 *-dec-osf*) 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5 19035$as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; } 19036if ${ac_cv_lib_clua_clua_getaliasaddress+:} false; then : 19037 $as_echo_n "(cached) " >&6 19038else 19039 ac_check_lib_save_LIBS=$LIBS 19040LIBS="-lclua $LIBS" 19041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19042/* end confdefs.h. */ 19043 19044/* Override any GCC internal prototype to avoid an error. 19045 Use char because int might match the return type of a GCC 19046 builtin and then its argument prototype would still apply. */ 19047#ifdef __cplusplus 19048extern "C" 19049#endif 19050char clua_getaliasaddress (); 19051int 19052main () 19053{ 19054return clua_getaliasaddress (); 19055 ; 19056 return 0; 19057} 19058_ACEOF 19059if ac_fn_c_try_link "$LINENO"; then : 19060 ac_cv_lib_clua_clua_getaliasaddress=yes 19061else 19062 ac_cv_lib_clua_clua_getaliasaddress=no 19063fi 19064rm -f core conftest.err conftest.$ac_objext \ 19065 conftest$ac_exeext conftest.$ac_ext 19066LIBS=$ac_check_lib_save_LIBS 19067fi 19068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5 19069$as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; } 19070if test "x$ac_cv_lib_clua_clua_getaliasaddress" = xyes; then : 19071 LIBS="-lclua $LIBS" 19072fi 19073 19074 ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress" 19075if test "x$ac_cv_func_clua_getaliasaddress" = xyes; then : 19076 19077$as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h 19078 19079fi 19080 19081 ;; 19082 *) 19083 ;; 19084esac 19085 19086# 19087# Some hosts need msg_namelen to match the size of the socket structure. 19088# Some hosts don't set msg_namelen appropriately on return from recvmsg(). 19089# 19090case $host in 19091*os2*|*hp-mpeix*) 19092 19093$as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h 19094 19095 ;; 19096esac 19097 19098# 19099# Microsoft has their own way of handling shared libraries that requires 19100# additional qualifiers on extern variables. Unix systems don't need it. 19101# 19102 19103ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC" 19104 19105LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC" 19106 19107IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC" 19108 19109# 19110# Random remaining OS-specific issues involving compiler warnings. 19111# XXXDCL print messages to indicate some compensation is being done? 19112# 19113 19114ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT" 19115 19116case "$host" in 19117 *-aix5.[123].*) 19118 hack_shutup_pthreadonceinit=yes 19119 ;; 19120 *-bsdi3.1*) 19121 hack_shutup_sputaux=yes 19122 ;; 19123 *-bsdi4.0*) 19124 hack_shutup_sigwait=yes 19125 hack_shutup_sputaux=yes 19126 ;; 19127 *-bsdi4.[12]*) 19128 hack_shutup_stdargcast=yes 19129 ;; 19130 *-solaris2.[89]) 19131 hack_shutup_pthreadonceinit=yes 19132 ;; 19133 *-solaris2.1[0-9]) 19134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19135/* end confdefs.h. */ 19136 #include <pthread.h> 19137int 19138main () 19139{ 19140 static pthread_once_t once_test = { PTHREAD_ONCE_INIT }; 19141 ; 19142 return 0; 19143} 19144_ACEOF 19145if ac_fn_c_try_compile "$LINENO"; then : 19146 hack_shutup_pthreadonceinit=yes 19147fi 19148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19149 ;; 19150esac 19151 19152case "$hack_shutup_pthreadonceinit" in 19153 yes) 19154 # 19155 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings. 19156 # 19157 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" 19158 ;; 19159esac 19160 19161case "$hack_shutup_sigwait" in 19162 yes) 19163 # 19164 # Shut up a -Wmissing-prototypes warning for sigwait(). 19165 # 19166 $as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h 19167 19168 ;; 19169esac 19170 19171case "$hack_shutup_sputaux" in 19172 yes) 19173 # 19174 # Shut up a -Wmissing-prototypes warning from <stdio.h>. 19175 # 19176 $as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h 19177 19178 ;; 19179esac 19180 19181case "$hack_shutup_stdargcast" in 19182 yes) 19183 # 19184 # Shut up a -Wcast-qual warning from va_start(). 19185 # 19186 $as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h 19187 19188 ;; 19189esac 19190 19191for ac_header in strings.h 19192do : 19193 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 19194if test "x$ac_cv_header_strings_h" = xyes; then : 19195 cat >>confdefs.h <<_ACEOF 19196#define HAVE_STRINGS_H 1 19197_ACEOF 19198 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1" 19199 19200else 19201 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH" 19202 19203fi 19204 19205done 19206 19207 19208 19209# 19210# Check for if_nametoindex() for IPv6 scoped addresses support 19211# 19212ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 19213if test "x$ac_cv_func_if_nametoindex" = xyes; then : 19214 ac_cv_have_if_nametoindex=yes 19215else 19216 ac_cv_have_if_nametoindex=no 19217fi 19218 19219case $ac_cv_have_if_nametoindex in 19220no) 19221 case "$host" in 19222 *-hp-hpux*) 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5 19224$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; } 19225if ${ac_cv_lib_ipv6_if_nametoindex+:} false; then : 19226 $as_echo_n "(cached) " >&6 19227else 19228 ac_check_lib_save_LIBS=$LIBS 19229LIBS="-lipv6 $LIBS" 19230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19231/* end confdefs.h. */ 19232 19233/* Override any GCC internal prototype to avoid an error. 19234 Use char because int might match the return type of a GCC 19235 builtin and then its argument prototype would still apply. */ 19236#ifdef __cplusplus 19237extern "C" 19238#endif 19239char if_nametoindex (); 19240int 19241main () 19242{ 19243return if_nametoindex (); 19244 ; 19245 return 0; 19246} 19247_ACEOF 19248if ac_fn_c_try_link "$LINENO"; then : 19249 ac_cv_lib_ipv6_if_nametoindex=yes 19250else 19251 ac_cv_lib_ipv6_if_nametoindex=no 19252fi 19253rm -f core conftest.err conftest.$ac_objext \ 19254 conftest$ac_exeext conftest.$ac_ext 19255LIBS=$ac_check_lib_save_LIBS 19256fi 19257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5 19258$as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; } 19259if test "x$ac_cv_lib_ipv6_if_nametoindex" = xyes; then : 19260 ac_cv_have_if_nametoindex=yes 19261 LIBS="-lipv6 $LIBS" 19262fi 19263 19264 ;; 19265 esac 19266esac 19267case $ac_cv_have_if_nametoindex in 19268yes) 19269 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" 19270 19271$as_echo "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 19272 19273 19274 ;; 19275*) 19276 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX" 19277 ;; 19278esac 19279 19280 19281for ac_func in nanosleep usleep 19282do : 19283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19284ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19285if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19286 cat >>confdefs.h <<_ACEOF 19287#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19288_ACEOF 19289 19290fi 19291done 19292 19293 19294# 19295# Machine architecture dependent features 19296# 19297# Check whether --enable-atomic was given. 19298if test "${enable_atomic+set}" = set; then : 19299 enableval=$enable_atomic; enable_atomic="$enableval" 19300else 19301 enable_atomic="autodetect" 19302fi 19303 19304case "$enable_atomic" in 19305 yes|''|autodetect) 19306 case "$host" in 19307 powerpc-ibm-aix*) 19308 if test "X$GCC" = "Xyes"; then 19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"isc\"); works" >&5 19310$as_echo_n "checking if asm(\"isc\"); works... " >&6; } 19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19312/* end confdefs.h. */ 19313 19314int 19315main () 19316{ 19317 19318 main() { asm("ics"); exit(0); } 19319 19320 ; 19321 return 0; 19322} 19323_ACEOF 19324if ac_fn_c_try_compile "$LINENO"; then : 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19326$as_echo "yes" >&6; } 19327 use_atomic=yes 19328else 19329 19330 saved_cflags="$CFLAGS" 19331 CFLAGS="$CFLAGS -Wa,-many" 19332 if test "$cross_compiling" = yes; then : 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5 19334$as_echo "cross compile, assume yes" >&6; } 19335 CFLAGS="$saved_cflags" 19336 use_atomic=yes 19337else 19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19339/* end confdefs.h. */ 19340 19341 main() { asm("ics"); exit(0); } 19342 19343_ACEOF 19344if ac_fn_c_try_run "$LINENO"; then : 19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5 19346$as_echo "yes, required -Wa,-many" >&6; } 19347 use_atomic=yes 19348else 19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5 19350$as_echo "no, use_atomic disabled" >&6; } 19351 CFLAGS="$saved_cflags" 19352 use_atomic=no 19353fi 19354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19355 conftest.$ac_objext conftest.beam conftest.$ac_ext 19356fi 19357 19358 19359 19360fi 19361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19362 else 19363 use_atomic=yes 19364 fi 19365 ;; 19366 *) 19367 use_atomic=yes 19368 ;; 19369 esac 19370 ;; 19371 no) 19372 use_atomic=no 19373 arch=noatomic 19374 ;; 19375esac 19376 19377ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM" 19378if test "$use_atomic" = "yes"; then 19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5 19380$as_echo_n "checking architecture type for atomic operations... " >&6; } 19381 have_atomic=yes # set default 19382 case "$host" in 19383 i[3456]86-*) 19384 # XXX: some old x86 architectures actually do not support 19385 # (some of) these operations. Do we need stricter checks? 19386 # The cast to long int works around a bug in the HP C Compiler 19387# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19388# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19389# This bug is HP SR number 8606223364. 19390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 19391$as_echo_n "checking size of void *... " >&6; } 19392if ${ac_cv_sizeof_void_p+:} false; then : 19393 $as_echo_n "(cached) " >&6 19394else 19395 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 19396 19397else 19398 if test "$ac_cv_type_void_p" = yes; then 19399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19401as_fn_error 77 "cannot compute sizeof (void *) 19402See \`config.log' for more details" "$LINENO" 5; } 19403 else 19404 ac_cv_sizeof_void_p=0 19405 fi 19406fi 19407 19408fi 19409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 19410$as_echo "$ac_cv_sizeof_void_p" >&6; } 19411 19412 19413 19414cat >>confdefs.h <<_ACEOF 19415#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 19416_ACEOF 19417 19418 19419 if test $ac_cv_sizeof_void_p = 8; then 19420 arch=x86_64 19421 have_xaddq=yes 19422 else 19423 arch=x86_32 19424 fi 19425 ;; 19426 x86_64-*|amd64-*) 19427 # The cast to long int works around a bug in the HP C Compiler 19428# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19429# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19430# This bug is HP SR number 8606223364. 19431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 19432$as_echo_n "checking size of void *... " >&6; } 19433if ${ac_cv_sizeof_void_p+:} false; then : 19434 $as_echo_n "(cached) " >&6 19435else 19436 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 19437 19438else 19439 if test "$ac_cv_type_void_p" = yes; then 19440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19442as_fn_error 77 "cannot compute sizeof (void *) 19443See \`config.log' for more details" "$LINENO" 5; } 19444 else 19445 ac_cv_sizeof_void_p=0 19446 fi 19447fi 19448 19449fi 19450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 19451$as_echo "$ac_cv_sizeof_void_p" >&6; } 19452 19453 19454 19455cat >>confdefs.h <<_ACEOF 19456#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 19457_ACEOF 19458 19459 19460 if test $ac_cv_sizeof_void_p = 8; then 19461 arch=x86_64 19462 have_xaddq=yes 19463 else 19464 arch=x86_32 19465 fi 19466 ;; 19467 alpha*-*) 19468 arch=alpha 19469 ;; 19470 powerpc-*|powerpc64-*) 19471 arch=powerpc 19472 ;; 19473 mips-*|mipsel-*|mips64-*|mips64el-*) 19474 arch=mips 19475 ;; 19476 ia64-*) 19477 arch=ia64 19478 ;; 19479 *) 19480 have_atomic=no 19481 arch=noatomic 19482 ;; 19483 esac 19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5 19485$as_echo "$arch" >&6; } 19486fi 19487 19488if test "$have_atomic" = "yes"; then 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5 19490$as_echo_n "checking compiler support for inline assembly code... " >&6; } 19491 19492 compiler=generic 19493 # Check whether the compiler supports the assembly syntax we provide. 19494 if test "X$GCC" = "Xyes"; then 19495 # GCC's ASM extension always works 19496 compiler=gcc 19497 if test $arch = "x86_64"; then 19498 # We can share the same code for gcc with x86_32 19499 arch=x86_32 19500 fi 19501 if test $arch = "powerpc"; then 19502 # 19503 # The MacOS (and maybe others) uses "r0" for register 19504 # zero. Under linux/ibm it is "0" for register 0. 19505 # Probe to see if we have a MacOS style assembler. 19506 # 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5 19508$as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; } 19509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19510/* end confdefs.h. */ 19511 19512int 19513main () 19514{ 19515 19516 __asm__ volatile ("li r0, 0x0\n"::); 19517 19518 ; 19519 return 0; 19520} 19521_ACEOF 19522if ac_fn_c_try_compile "$LINENO"; then : 19523 19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19525$as_echo "yes" >&6; } 19526 compiler="mac" 19527 ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1" 19528 19529else 19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19531$as_echo "no" >&6; } 19532fi 19533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19534 fi 19535 else 19536 case "$host" in 19537 alpha*-dec-osf*) 19538 # Tru64 compiler has its own syntax for inline 19539 # assembly. 19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19541/* end confdefs.h. */ 19542 19543int 19544main () 19545{ 19546 19547#ifndef __DECC 19548#error "unexpected compiler" 19549#endif 19550 return (0); 19551 ; 19552 return 0; 19553} 19554_ACEOF 19555if ac_fn_c_try_compile "$LINENO"; then : 19556 compiler=osf 19557fi 19558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19559 ;; 19560 powerpc-ibm-aix*) 19561 compiler=aix 19562 ;; 19563 esac 19564 fi 19565 case "$compiler" in 19566 gcc) 19567 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1" 19568 ;; 19569 osf) 19570 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1" 19571 ;; 19572 aix) 19573 ;; 19574 mac) 19575 ;; 19576 *) 19577 # See if the generic __asm function works. If not, 19578 # we need to disable the atomic operations. 19579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19580/* end confdefs.h. */ 19581 19582int 19583main () 19584{ 19585 19586 __asm("nop") 19587 19588 ; 19589 return 0; 19590} 19591_ACEOF 19592if ac_fn_c_try_link "$LINENO"; then : 19593 compiler="standard" 19594 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1" 19595else 19596 compiler="not supported (atomic operations disabled)" 19597 have_atomic=no 19598 arch=noatomic 19599fi 19600rm -f core conftest.err conftest.$ac_objext \ 19601 conftest$ac_exeext conftest.$ac_ext; 19602 ;; 19603 esac 19604 19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5 19606$as_echo "$compiler" >&6; } 19607fi 19608 19609if test "$have_atomic" = "yes"; then 19610 ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1" 19611 ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1" 19612 ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1" 19613else 19614 ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD" 19615 ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG" 19616 ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE" 19617fi 19618 19619if test "$have_xaddq" = "yes"; then 19620 ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1" 19621else 19622 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ" 19623fi 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635ISC_ARCH_DIR=$arch 19636 19637 19638# 19639# Activate "rrset-order fixed" or not? 19640# 19641# Check whether --enable-fixed-rrset was given. 19642if test "${enable_fixed_rrset+set}" = set; then : 19643 enableval=$enable_fixed_rrset; enable_fixed="$enableval" 19644else 19645 enable_fixed="no" 19646fi 19647 19648case "$enable_fixed" in 19649 yes) 19650 19651$as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h 19652 19653 ;; 19654 no) 19655 ;; 19656 *) 19657 ;; 19658esac 19659 19660# 19661# Enable response policy rewriting using NS IP addresses 19662# 19663# Check whether --enable-rpz-nsip was given. 19664if test "${enable_rpz_nsip+set}" = set; then : 19665 enableval=$enable_rpz_nsip; enable_nsip="$enableval" 19666else 19667 enable_nsip="yes" 19668fi 19669 19670case "$enable_nsip" in 19671 yes) 19672 19673$as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h 19674 19675 ;; 19676 no) 19677 ;; 19678 *) 19679 ;; 19680esac 19681 19682# 19683# Enable response policy rewriting using NS name 19684# 19685# Check whether --enable-rpz-nsdname was given. 19686if test "${enable_rpz_nsdname+set}" = set; then : 19687 enableval=$enable_rpz_nsdname; enable_nsdname="$enableval" 19688else 19689 enable_nsdname="yes" 19690fi 19691 19692case "$enable_nsdname" in 19693 yes) 19694 19695$as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h 19696 19697 ;; 19698 no) 19699 ;; 19700 *) 19701 ;; 19702esac 19703 19704# 19705# Activate "filter-aaaa-on-v4/v6" or not? 19706# 19707# Check whether --enable-filter-aaaa was given. 19708if test "${enable_filter_aaaa+set}" = set; then : 19709 enableval=$enable_filter_aaaa; enable_filter="$enableval" 19710else 19711 enable_filter="no" 19712fi 19713 19714case "$enable_filter" in 19715 yes) 19716 19717$as_echo "#define ALLOW_FILTER_AAAA 1" >>confdefs.h 19718 19719 ;; 19720 no) 19721 ;; 19722 *) 19723 ;; 19724esac 19725 19726# 19727# The following sets up how non-blocking i/o is established. 19728# Sunos, cygwin and solaris 2.x (x<5) require special handling. 19729# 19730case "$host" in 19731*-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h 19732;; 19733*-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h 19734;; 19735*-solaris2.[01234]) 19736 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h 19737 19738 19739$as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h 19740 19741 ;; 19742*) 19743$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h 19744 19745 ;; 19746esac 19747# 19748# Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket. 19749# This prevents the source address being set. 19750# 19751case "$host" in 19752*-solaris2.[012345]|*-solaris2.5.1) 19753 19754$as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h 19755 19756 ;; 19757esac 19758# 19759# The following sections deal with tools used for formatting 19760# the documentation. They are all optional, unless you are 19761# a developer editing the documentation source. 19762# 19763 19764# 19765# Look for TeX. 19766# 19767 19768for ac_prog in latex 19769do 19770 # Extract the first word of "$ac_prog", so it can be a program name with args. 19771set dummy $ac_prog; ac_word=$2 19772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19773$as_echo_n "checking for $ac_word... " >&6; } 19774if ${ac_cv_path_LATEX+:} false; then : 19775 $as_echo_n "(cached) " >&6 19776else 19777 case $LATEX in 19778 [\\/]* | ?:[\\/]*) 19779 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. 19780 ;; 19781 *) 19782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19783for as_dir in $PATH 19784do 19785 IFS=$as_save_IFS 19786 test -z "$as_dir" && as_dir=. 19787 for ac_exec_ext in '' $ac_executable_extensions; do 19788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19789 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" 19790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19791 break 2 19792 fi 19793done 19794 done 19795IFS=$as_save_IFS 19796 19797 ;; 19798esac 19799fi 19800LATEX=$ac_cv_path_LATEX 19801if test -n "$LATEX"; then 19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 19803$as_echo "$LATEX" >&6; } 19804else 19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19806$as_echo "no" >&6; } 19807fi 19808 19809 19810 test -n "$LATEX" && break 19811done 19812test -n "$LATEX" || LATEX="latex" 19813 19814 19815 19816for ac_prog in pdflatex 19817do 19818 # Extract the first word of "$ac_prog", so it can be a program name with args. 19819set dummy $ac_prog; ac_word=$2 19820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19821$as_echo_n "checking for $ac_word... " >&6; } 19822if ${ac_cv_path_PDFLATEX+:} false; then : 19823 $as_echo_n "(cached) " >&6 19824else 19825 case $PDFLATEX in 19826 [\\/]* | ?:[\\/]*) 19827 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. 19828 ;; 19829 *) 19830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19831for as_dir in $PATH 19832do 19833 IFS=$as_save_IFS 19834 test -z "$as_dir" && as_dir=. 19835 for ac_exec_ext in '' $ac_executable_extensions; do 19836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19837 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" 19838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19839 break 2 19840 fi 19841done 19842 done 19843IFS=$as_save_IFS 19844 19845 ;; 19846esac 19847fi 19848PDFLATEX=$ac_cv_path_PDFLATEX 19849if test -n "$PDFLATEX"; then 19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 19851$as_echo "$PDFLATEX" >&6; } 19852else 19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19854$as_echo "no" >&6; } 19855fi 19856 19857 19858 test -n "$PDFLATEX" && break 19859done 19860test -n "$PDFLATEX" || PDFLATEX="pdflatex" 19861 19862 19863 19864# 19865# Look for w3m 19866# 19867 19868for ac_prog in w3m 19869do 19870 # Extract the first word of "$ac_prog", so it can be a program name with args. 19871set dummy $ac_prog; ac_word=$2 19872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19873$as_echo_n "checking for $ac_word... " >&6; } 19874if ${ac_cv_path_W3M+:} false; then : 19875 $as_echo_n "(cached) " >&6 19876else 19877 case $W3M in 19878 [\\/]* | ?:[\\/]*) 19879 ac_cv_path_W3M="$W3M" # Let the user override the test with a path. 19880 ;; 19881 *) 19882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19883for as_dir in $PATH 19884do 19885 IFS=$as_save_IFS 19886 test -z "$as_dir" && as_dir=. 19887 for ac_exec_ext in '' $ac_executable_extensions; do 19888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19889 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext" 19890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19891 break 2 19892 fi 19893done 19894 done 19895IFS=$as_save_IFS 19896 19897 ;; 19898esac 19899fi 19900W3M=$ac_cv_path_W3M 19901if test -n "$W3M"; then 19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5 19903$as_echo "$W3M" >&6; } 19904else 19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19906$as_echo "no" >&6; } 19907fi 19908 19909 19910 test -n "$W3M" && break 19911done 19912test -n "$W3M" || W3M="w3m" 19913 19914 19915 19916# 19917# Look for xsltproc (libxslt) 19918# 19919 19920# Extract the first word of "xsltproc", so it can be a program name with args. 19921set dummy xsltproc; ac_word=$2 19922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19923$as_echo_n "checking for $ac_word... " >&6; } 19924if ${ac_cv_path_XSLTPROC+:} false; then : 19925 $as_echo_n "(cached) " >&6 19926else 19927 case $XSLTPROC in 19928 [\\/]* | ?:[\\/]*) 19929 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19930 ;; 19931 *) 19932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19933for as_dir in $PATH 19934do 19935 IFS=$as_save_IFS 19936 test -z "$as_dir" && as_dir=. 19937 for ac_exec_ext in '' $ac_executable_extensions; do 19938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19939 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19941 break 2 19942 fi 19943done 19944 done 19945IFS=$as_save_IFS 19946 19947 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc" 19948 ;; 19949esac 19950fi 19951XSLTPROC=$ac_cv_path_XSLTPROC 19952if test -n "$XSLTPROC"; then 19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19954$as_echo "$XSLTPROC" >&6; } 19955else 19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19957$as_echo "no" >&6; } 19958fi 19959 19960 19961 19962 19963# 19964# Look for xmllint (libxml2) 19965# 19966 19967# Extract the first word of "xmllint", so it can be a program name with args. 19968set dummy xmllint; ac_word=$2 19969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19970$as_echo_n "checking for $ac_word... " >&6; } 19971if ${ac_cv_path_XMLLINT+:} false; then : 19972 $as_echo_n "(cached) " >&6 19973else 19974 case $XMLLINT in 19975 [\\/]* | ?:[\\/]*) 19976 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path. 19977 ;; 19978 *) 19979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19980for as_dir in $PATH 19981do 19982 IFS=$as_save_IFS 19983 test -z "$as_dir" && as_dir=. 19984 for ac_exec_ext in '' $ac_executable_extensions; do 19985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19986 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext" 19987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19988 break 2 19989 fi 19990done 19991 done 19992IFS=$as_save_IFS 19993 19994 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint" 19995 ;; 19996esac 19997fi 19998XMLLINT=$ac_cv_path_XMLLINT 19999if test -n "$XMLLINT"; then 20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 20001$as_echo "$XMLLINT" >&6; } 20002else 20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20004$as_echo "no" >&6; } 20005fi 20006 20007 20008 20009 20010# 20011# Look for Doxygen 20012# 20013 20014# Extract the first word of "doxygen", so it can be a program name with args. 20015set dummy doxygen; ac_word=$2 20016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20017$as_echo_n "checking for $ac_word... " >&6; } 20018if ${ac_cv_path_DOXYGEN+:} false; then : 20019 $as_echo_n "(cached) " >&6 20020else 20021 case $DOXYGEN in 20022 [\\/]* | ?:[\\/]*) 20023 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 20024 ;; 20025 *) 20026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20027for as_dir in $PATH 20028do 20029 IFS=$as_save_IFS 20030 test -z "$as_dir" && as_dir=. 20031 for ac_exec_ext in '' $ac_executable_extensions; do 20032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20033 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 20034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20035 break 2 20036 fi 20037done 20038 done 20039IFS=$as_save_IFS 20040 20041 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen" 20042 ;; 20043esac 20044fi 20045DOXYGEN=$ac_cv_path_DOXYGEN 20046if test -n "$DOXYGEN"; then 20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 20048$as_echo "$DOXYGEN" >&6; } 20049else 20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20051$as_echo "no" >&6; } 20052fi 20053 20054 20055 20056 20057# 20058# Subroutine for searching for an ordinary file (e.g., a stylesheet) 20059# in a number of directories: 20060# 20061# NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES) 20062# 20063# If the file FILENAME is found in one of the DIRECTORIES, the shell 20064# variable VARIABLE is defined to its absolute pathname. Otherwise, 20065# it is set to FILENAME, with no directory prefix (that's not terribly 20066# useful, but looks less confusing in substitutions than leaving it 20067# empty). The variable VARIABLE will be substituted into output files. 20068# 20069 20070 20071 20072# 20073# Look for Docbook-XSL stylesheets. Location probably varies by system. 20074# If it's not explicitly specified, guess where it might be found, based on 20075# where SGML stuff lives on some systems (FreeBSD is the only one we're sure 20076# of at the moment). 20077# 20078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5 20079$as_echo_n "checking for Docbook-XSL path... " >&6; } 20080 20081# Check whether --with-docbook-xsl was given. 20082if test "${with_docbook_xsl+set}" = set; then : 20083 withval=$with_docbook_xsl; docbook_path="$withval" 20084else 20085 docbook_path="auto" 20086fi 20087 20088case "$docbook_path" in 20089auto) 20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5 20091$as_echo "auto" >&6; } 20092 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl" 20093 ;; 20094*) 20095 docbook_xsl_trees="$withval" 20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5 20097$as_echo "$docbook_xsl_trees" >&6; } 20098 ;; 20099esac 20100 20101# 20102# Look for stylesheets we need. 20103# 20104 20105 20106XSLT_DOCBOOK_STYLE_HTML="" 20107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5 20108$as_echo_n "checking for html/docbook.xsl... " >&6; } 20109for d in $docbook_xsl_trees 20110do 20111 f=$d/html/docbook.xsl 20112 if test -f $f 20113 then 20114 XSLT_DOCBOOK_STYLE_HTML=$f 20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20116$as_echo "$f" >&6; } 20117 break 20118 fi 20119done 20120if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X" 20121then 20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20123$as_echo "\"not found\"" >&6; }; 20124 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl 20125fi 20126 20127 20128 20129XSLT_DOCBOOK_STYLE_XHTML="" 20130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5 20131$as_echo_n "checking for xhtml/docbook.xsl... " >&6; } 20132for d in $docbook_xsl_trees 20133do 20134 f=$d/xhtml/docbook.xsl 20135 if test -f $f 20136 then 20137 XSLT_DOCBOOK_STYLE_XHTML=$f 20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20139$as_echo "$f" >&6; } 20140 break 20141 fi 20142done 20143if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X" 20144then 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20146$as_echo "\"not found\"" >&6; }; 20147 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl 20148fi 20149 20150 20151 20152XSLT_DOCBOOK_STYLE_MAN="" 20153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5 20154$as_echo_n "checking for manpages/docbook.xsl... " >&6; } 20155for d in $docbook_xsl_trees 20156do 20157 f=$d/manpages/docbook.xsl 20158 if test -f $f 20159 then 20160 XSLT_DOCBOOK_STYLE_MAN=$f 20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20162$as_echo "$f" >&6; } 20163 break 20164 fi 20165done 20166if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X" 20167then 20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20169$as_echo "\"not found\"" >&6; }; 20170 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl 20171fi 20172 20173 20174 20175XSLT_DOCBOOK_CHUNK_HTML="" 20176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5 20177$as_echo_n "checking for html/chunk.xsl... " >&6; } 20178for d in $docbook_xsl_trees 20179do 20180 f=$d/html/chunk.xsl 20181 if test -f $f 20182 then 20183 XSLT_DOCBOOK_CHUNK_HTML=$f 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20185$as_echo "$f" >&6; } 20186 break 20187 fi 20188done 20189if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X" 20190then 20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20192$as_echo "\"not found\"" >&6; }; 20193 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl 20194fi 20195 20196 20197 20198XSLT_DOCBOOK_CHUNK_XHTML="" 20199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5 20200$as_echo_n "checking for xhtml/chunk.xsl... " >&6; } 20201for d in $docbook_xsl_trees 20202do 20203 f=$d/xhtml/chunk.xsl 20204 if test -f $f 20205 then 20206 XSLT_DOCBOOK_CHUNK_XHTML=$f 20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20208$as_echo "$f" >&6; } 20209 break 20210 fi 20211done 20212if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X" 20213then 20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20215$as_echo "\"not found\"" >&6; }; 20216 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl 20217fi 20218 20219 20220 20221XSLT_DOCBOOK_CHUNKTOC_HTML="" 20222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5 20223$as_echo_n "checking for html/chunktoc.xsl... " >&6; } 20224for d in $docbook_xsl_trees 20225do 20226 f=$d/html/chunktoc.xsl 20227 if test -f $f 20228 then 20229 XSLT_DOCBOOK_CHUNKTOC_HTML=$f 20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20231$as_echo "$f" >&6; } 20232 break 20233 fi 20234done 20235if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X" 20236then 20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20238$as_echo "\"not found\"" >&6; }; 20239 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl 20240fi 20241 20242 20243 20244XSLT_DOCBOOK_CHUNKTOC_XHTML="" 20245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5 20246$as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; } 20247for d in $docbook_xsl_trees 20248do 20249 f=$d/xhtml/chunktoc.xsl 20250 if test -f $f 20251 then 20252 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f 20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20254$as_echo "$f" >&6; } 20255 break 20256 fi 20257done 20258if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X" 20259then 20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20261$as_echo "\"not found\"" >&6; }; 20262 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl 20263fi 20264 20265 20266 20267XSLT_DOCBOOK_MAKETOC_HTML="" 20268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5 20269$as_echo_n "checking for html/maketoc.xsl... " >&6; } 20270for d in $docbook_xsl_trees 20271do 20272 f=$d/html/maketoc.xsl 20273 if test -f $f 20274 then 20275 XSLT_DOCBOOK_MAKETOC_HTML=$f 20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20277$as_echo "$f" >&6; } 20278 break 20279 fi 20280done 20281if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X" 20282then 20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20284$as_echo "\"not found\"" >&6; }; 20285 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl 20286fi 20287 20288 20289 20290XSLT_DOCBOOK_MAKETOC_XHTML="" 20291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5 20292$as_echo_n "checking for xhtml/maketoc.xsl... " >&6; } 20293for d in $docbook_xsl_trees 20294do 20295 f=$d/xhtml/maketoc.xsl 20296 if test -f $f 20297 then 20298 XSLT_DOCBOOK_MAKETOC_XHTML=$f 20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20300$as_echo "$f" >&6; } 20301 break 20302 fi 20303done 20304if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X" 20305then 20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20307$as_echo "\"not found\"" >&6; }; 20308 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl 20309fi 20310 20311 20312 20313# 20314# Same dance for db2latex 20315# 20316 20317db2latex_xsl_trees="/usr/local/share/db2latex/xsl /usr/pkg/share/xsl/db2latex" 20318 20319# 20320# Look for stylesheets we need. 20321# 20322 20323 20324XSLT_DB2LATEX_STYLE="" 20325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook.xsl" >&5 20326$as_echo_n "checking for docbook.xsl... " >&6; } 20327for d in $db2latex_xsl_trees 20328do 20329 f=$d/docbook.xsl 20330 if test -f $f 20331 then 20332 XSLT_DB2LATEX_STYLE=$f 20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5 20334$as_echo "$f" >&6; } 20335 break 20336 fi 20337done 20338if test "X$XSLT_DB2LATEX_STYLE" = "X" 20339then 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 20341$as_echo "\"not found\"" >&6; }; 20342 XSLT_DB2LATEX_STYLE=docbook.xsl 20343fi 20344 20345 20346 20347# 20348# Look for "admonition" image directory. Can't use NOM_PATH_FILE() 20349# because it's a directory, so just do the same things, inline. 20350# 20351 20352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex xsl figures" >&5 20353$as_echo_n "checking for db2latex xsl figures... " >&6; } 20354for d in $db2latex_xsl_trees 20355do 20356 if test -d $d/figures 20357 then 20358 XSLT_DB2LATEX_ADMONITIONS=$d/figures 20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d/figures" >&5 20360$as_echo "$d/figures" >&6; } 20361 break 20362 fi 20363done 20364if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X" 20365then 20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20367$as_echo "not found" >&6; } 20368 XSLT_DB2LATEX_ADMONITIONS=db2latex/xsl/figures 20369fi 20370 20371 20372# 20373# IDN support 20374# 20375 20376# Check whether --with-idn was given. 20377if test "${with_idn+set}" = set; then : 20378 withval=$with_idn; use_idn="$withval" 20379else 20380 use_idn="no" 20381fi 20382 20383case "$use_idn" in 20384yes) 20385 if test X$prefix = XNONE ; then 20386 idn_path=/usr/local 20387 else 20388 idn_path=$prefix 20389 fi 20390 ;; 20391no) 20392 ;; 20393*) 20394 idn_path="$use_idn" 20395 ;; 20396esac 20397 20398iconvinc= 20399iconvlib= 20400 20401# Check whether --with-libiconv was given. 20402if test "${with_libiconv+set}" = set; then : 20403 withval=$with_libiconv; use_libiconv="$withval" 20404else 20405 use_libiconv="no" 20406fi 20407 20408case "$use_libiconv" in 20409yes) 20410 if test X$prefix = XNONE ; then 20411 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv" 20412 else 20413 iconvlib="-L$prefix/lib -R$prefix/lib -liconv" 20414 fi 20415 ;; 20416no) 20417 iconvlib= 20418 ;; 20419*) 20420 iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv" 20421 ;; 20422esac 20423 20424 20425# Check whether --with-iconv was given. 20426if test "${with_iconv+set}" = set; then : 20427 withval=$with_iconv; iconvlib="$withval" 20428fi 20429 20430case "$iconvlib" in 20431no) 20432 iconvlib= 20433 ;; 20434yes) 20435 iconvlib=-liconv 20436 ;; 20437esac 20438 20439 20440# Check whether --with-idnlib was given. 20441if test "${with_idnlib+set}" = set; then : 20442 withval=$with_idnlib; idnlib="$withval" 20443else 20444 idnlib="no" 20445fi 20446 20447if test "$idnlib" = yes; then 20448 as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5 20449fi 20450 20451IDNLIBS= 20452if test "$use_idn" != no; then 20453 20454$as_echo "#define WITH_IDN 1" >>confdefs.h 20455 20456 STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include" 20457 if test "$idnlib" != no; then 20458 IDNLIBS="$idnlib $iconvlib" 20459 else 20460 IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib" 20461 fi 20462fi 20463 20464 20465# 20466# Check whether to build Automated Test Framework unit tests 20467# 20468 20469# Check whether --with-atf was given. 20470if test "${with_atf+set}" = set; then : 20471 withval=$with_atf; atf="$withval" 20472else 20473 atf="no" 20474fi 20475 20476if test "$atf" = yes; then 20477 atf=`pwd`/unit/atf 20478 ATFBUILD=atf-src 20479 20480 ac_config_commands="$ac_config_commands atf-config" 20481 20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building ATF from bind9/unit/atf-src" >&5 20483$as_echo "building ATF from bind9/unit/atf-src" >&6; } 20484fi 20485 20486ATFLIBS= 20487if test "$atf" != no; then 20488 20489$as_echo "#define ATF_TEST 1" >>confdefs.h 20490 20491 STD_CINCLUDES="$STD_CINCLUDES -I$atf/include" 20492 ATFBIN="$atf/bin" 20493 ATFLIBS="-L$atf/lib -latf-c" 20494 UNITTESTS=tests 20495fi 20496 20497 20498 20499 20500for ac_header in locale.h 20501do : 20502 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 20503if test "x$ac_cv_header_locale_h" = xyes; then : 20504 cat >>confdefs.h <<_ACEOF 20505#define HAVE_LOCALE_H 1 20506_ACEOF 20507 20508fi 20509 20510done 20511 20512for ac_func in setlocale 20513do : 20514 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 20515if test "x$ac_cv_func_setlocale" = xyes; then : 20516 cat >>confdefs.h <<_ACEOF 20517#define HAVE_SETLOCALE 1 20518_ACEOF 20519 20520fi 20521done 20522 20523 20524# 20525# was --with-tuning specified? 20526# 20527 20528# Check whether --with-tuning was given. 20529if test "${with_tuning+set}" = set; then : 20530 withval=$with_tuning; use_tuning="$withval" 20531else 20532 use_tuning="no" 20533fi 20534 20535 20536case "$use_tuning" in 20537 large) 20538 if ! $use_threads; then 20539 as_fn_error $? "Large-system tuning requires threads." "$LINENO" 5 20540 fi 20541 20542$as_echo "#define TUNE_LARGE 1" >>confdefs.h 20543 20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5 20545$as_echo "using large-system tuning" >&6; } 20546 ;; 20547 no|default) 20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5 20549$as_echo "using default tuning" >&6; } 20550 ;; 20551 yes|*) 20552 as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5 20553 ;; 20554esac 20555 20556# 20557# Substitutions 20558# 20559 20560BIND9_TOP_BUILDDIR=`pwd` 20561 20562 20563 20564 20565 20566 20567 20568 20569if test "X$srcdir" != "X"; then 20570 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include" 20571 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include" 20572 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include" 20573 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include" 20574 BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include" 20575 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include" 20576 BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include" 20577else 20578 BIND9_ISC_BUILDINCLUDE="" 20579 BIND9_ISCCC_BUILDINCLUDE="" 20580 BIND9_ISCCFG_BUILDINCLUDE="" 20581 BIND9_DNS_BUILDINCLUDE="" 20582 BIND9_LWRES_BUILDINCLUDE="" 20583 BIND9_BIND9_BUILDINCLUDE="" 20584 BIND9_IRS_BUILDINCLUDE="" 20585fi 20586 20587 20588BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes 20589 20590 20591BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules 20592 20593. "$srcdir/version" 20594BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\"" 20595 20596BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\"" 20597 20598BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}" 20599 20600BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}" 20601 20602BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}" 20603 20604 20605BIND9_SRCID="SRCID=unset" 20606if test -f "${srcdir}/srcid"; then 20607 . "${srcdir}/srcid" 20608 BIND9_SRCID="SRCID=$SRCID" 20609elif test -d "${srcdir}/.git"; then 20610 BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)` 20611fi 20612 20613 20614 20615if test -z "$ac_configure_args"; then 20616 BIND9_CONFIGARGS="defaults" 20617else 20618 for a in $ac_configure_args 20619 do 20620 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a" 20621 done 20622fi 20623BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`" 20624BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}" 20625 20626 20627 20628LIBISC_API="$srcdir/lib/isc/api" 20629 20630 20631LIBISCCC_API="$srcdir/lib/isccc/api" 20632 20633 20634LIBISCCFG_API="$srcdir/lib/isccfg/api" 20635 20636 20637LIBDNS_API="$srcdir/lib/dns/api" 20638 20639 20640LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi" 20641 20642 20643LIBBIND9_API="$srcdir/lib/bind9/api" 20644 20645 20646LIBLWRES_API="$srcdir/lib/lwres/api" 20647 20648 20649LIBIRS_API="$srcdir/lib/irs/api" 20650 20651# 20652# Configure any DLZ drivers. 20653# 20654# If config.dlz.in selects one or more DLZ drivers, it will set 20655# CONTRIB_DLZ to a non-empty value, which will be our clue to 20656# build DLZ drivers in contrib. 20657# 20658# This section has to come after the libtool stuff because it needs to 20659# know how to name the driver object files. 20660# 20661 20662CONTRIB_DLZ="" 20663DLZ_DRIVER_INCLUDES="" 20664DLZ_DRIVER_LIBS="" 20665DLZ_DRIVER_SRCS="" 20666DLZ_DRIVER_OBJS="" 20667DLZ_SYSTEM_TEST="" 20668 20669# 20670# Configure support for building a shared library object 20671# 20672# Even when libtool is available it can't always be relied upon 20673# to build an object that can be dlopen()'ed, but this is necessary 20674# for building the dlzexternal system test, so we'll try it the 20675# old-fashioned way. 20676# 20677SO="so" 20678SO_CFLAGS="" 20679SO_LDFLAGS="" 20680SO_LD="" 20681SO_TARGETS="" 20682 20683 20684# Check whether --with-dlopen was given. 20685if test "${with_dlopen+set}" = set; then : 20686 withval=$with_dlopen; dlopen="$withval" 20687else 20688 dlopen="yes" 20689fi 20690 20691 20692case $host in 20693 *-sunos*) dlopen="no" 20694 ;; 20695esac 20696 20697if test "$dlopen" = "yes"; then 20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20699$as_echo_n "checking for dlopen in -ldl... " >&6; } 20700if ${ac_cv_lib_dl_dlopen+:} false; then : 20701 $as_echo_n "(cached) " >&6 20702else 20703 ac_check_lib_save_LIBS=$LIBS 20704LIBS="-ldl $LIBS" 20705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20706/* end confdefs.h. */ 20707 20708/* Override any GCC internal prototype to avoid an error. 20709 Use char because int might match the return type of a GCC 20710 builtin and then its argument prototype would still apply. */ 20711#ifdef __cplusplus 20712extern "C" 20713#endif 20714char dlopen (); 20715int 20716main () 20717{ 20718return dlopen (); 20719 ; 20720 return 0; 20721} 20722_ACEOF 20723if ac_fn_c_try_link "$LINENO"; then : 20724 ac_cv_lib_dl_dlopen=yes 20725else 20726 ac_cv_lib_dl_dlopen=no 20727fi 20728rm -f core conftest.err conftest.$ac_objext \ 20729 conftest$ac_exeext conftest.$ac_ext 20730LIBS=$ac_check_lib_save_LIBS 20731fi 20732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20733$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20734if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20735 have_dl=yes 20736else 20737 have_dl=no 20738fi 20739 20740 if test "$have_dl" = "yes"; then 20741 LIBS="-ldl $LIBS" 20742 fi 20743 for ac_func in dlopen dlclose dlsym 20744do : 20745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20746ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20747if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20748 cat >>confdefs.h <<_ACEOF 20749#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20750_ACEOF 20751 20752else 20753 dlopen=no 20754fi 20755done 20756 20757fi 20758 20759if test "$dlopen" = "yes"; then 20760 case $host in 20761 *-linux*|*-gnu*) 20762 SO_CFLAGS="-fPIC" 20763 SO_LDFLAGS="" 20764 if test "$have_dl" = "yes" 20765 then 20766 if test "$use_libtool" = "yes"; then 20767 SO_LDFLAGS="-Xcompiler -shared" 20768 SO_LD="${CC}" 20769 else 20770 SO_LDFLAGS="-shared" 20771 SO_LD="${CC}" 20772 fi 20773 else 20774 SO_LDFLAGS="-shared" 20775 SO_LD="ld" 20776 fi 20777 ;; 20778 *-freebsd*|*-openbsd*|*-netbsd*) 20779 SO_CFLAGS="-fpic" 20780 SO_LDFLAGS="-Bshareable -x" 20781 SO_LD="ld" 20782 ;; 20783 *-solaris*) 20784 SO_CFLAGS="-KPIC" 20785 SO_LDFLAGS="-G -z text" 20786 SO_LD="ld" 20787 ;; 20788 *-hp-hpux*) 20789 SO=sl 20790 SO_CFLAGS="+z" 20791 SO_LDFLAGS="-b +vnocompatwarnings" 20792 SO_LD="ld" 20793 ;; 20794 *) 20795 SO_CFLAGS="-fPIC" 20796 ;; 20797 esac 20798 20799 if test "X$GCC" = "Xyes"; then 20800 SO_CFLAGS="-fPIC" 20801 if test -z "$SO_LD" 20802 then 20803 if test "$use_libtool" = "yes"; then 20804 SO_LDFLAGS="-Xcompiler -shared" 20805 SO_LD="${CC}" 20806 else 20807 SO_LDFLAGS="-shared" 20808 SO_LD="${CC}" 20809 fi 20810 fi 20811 fi 20812 20813 # If we still don't know how to make shared objects, don't make any. 20814 if test -n "$SO_LD"; then 20815 SO_TARGETS="\${SO_TARGETS}" 20816 20817$as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h 20818 20819 fi 20820fi 20821 20822 20823 20824 20825 20826 20827 20828# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC") 20829# 20830# Permission to use, copy, modify, and distribute this software for any 20831# purpose with or without fee is hereby granted, provided that the above 20832# copyright notice and this permission notice appear in all copies. 20833# 20834# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 20835# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 20836# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 20837# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 20838# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 20839# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20840# PERFORMANCE OF THIS SOFTWARE. 20841 20842# 20843# Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here. 20844# 20845dlzdir='${DLZ_DRIVER_DIR}' 20846 20847# 20848# Private autoconf macro to simplify configuring drivers: 20849# 20850# DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS) 20851# 20852# where: 20853# DEFINE is FOO (to define -DDLZ_FOO) 20854# DRIVER is dlz_foo_driver (sources without the .c) 20855# INCLUDES is any necessary include definitions 20856# LIBS is any necessary library definitions 20857# 20858 20859 20860# 20861# Check for the various DLZ drivers 20862# 20863 20864# 20865# Was --with-dlz-postgres specified? 20866# 20867 20868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5 20869$as_echo_n "checking for Postgres DLZ driver... " >&6; } 20870 20871# Check whether --with-dlz_postgres was given. 20872if test "${with_dlz_postgres+set}" = set; then : 20873 withval=$with_dlz_postgres; use_dlz_postgres="$withval" 20874else 20875 use_dlz_postgres="no" 20876fi 20877 20878 20879if test "$use_dlz_postgres" != "no" 20880then 20881 if test "$use_dlz_postgres" != "yes" 20882 then 20883 for ac_prog in pg_config 20884do 20885 # Extract the first word of "$ac_prog", so it can be a program name with args. 20886set dummy $ac_prog; ac_word=$2 20887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20888$as_echo_n "checking for $ac_word... " >&6; } 20889if ${ac_cv_path_PG_CONFIG+:} false; then : 20890 $as_echo_n "(cached) " >&6 20891else 20892 case $PG_CONFIG in 20893 [\\/]* | ?:[\\/]*) 20894 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 20895 ;; 20896 *) 20897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20898for as_dir in $use_dlz_postgres/bin 20899do 20900 IFS=$as_save_IFS 20901 test -z "$as_dir" && as_dir=. 20902 for ac_exec_ext in '' $ac_executable_extensions; do 20903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20904 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20906 break 2 20907 fi 20908done 20909 done 20910IFS=$as_save_IFS 20911 20912 ;; 20913esac 20914fi 20915PG_CONFIG=$ac_cv_path_PG_CONFIG 20916if test -n "$PG_CONFIG"; then 20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 20918$as_echo "$PG_CONFIG" >&6; } 20919else 20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20921$as_echo "no" >&6; } 20922fi 20923 20924 20925 test -n "$PG_CONFIG" && break 20926done 20927test -n "$PG_CONFIG" || PG_CONFIG="not found" 20928 20929 else 20930 for ac_prog in pg_config 20931do 20932 # Extract the first word of "$ac_prog", so it can be a program name with args. 20933set dummy $ac_prog; ac_word=$2 20934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20935$as_echo_n "checking for $ac_word... " >&6; } 20936if ${ac_cv_path_PG_CONFIG+:} false; then : 20937 $as_echo_n "(cached) " >&6 20938else 20939 case $PG_CONFIG in 20940 [\\/]* | ?:[\\/]*) 20941 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 20942 ;; 20943 *) 20944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20945for as_dir in $PATH 20946do 20947 IFS=$as_save_IFS 20948 test -z "$as_dir" && as_dir=. 20949 for ac_exec_ext in '' $ac_executable_extensions; do 20950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20951 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20953 break 2 20954 fi 20955done 20956 done 20957IFS=$as_save_IFS 20958 20959 ;; 20960esac 20961fi 20962PG_CONFIG=$ac_cv_path_PG_CONFIG 20963if test -n "$PG_CONFIG"; then 20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 20965$as_echo "$PG_CONFIG" >&6; } 20966else 20967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20968$as_echo "no" >&6; } 20969fi 20970 20971 20972 test -n "$PG_CONFIG" && break 20973done 20974test -n "$PG_CONFIG" || PG_CONFIG="not found" 20975 20976 fi 20977 20978 if test "$PG_CONFIG" != "not found" 20979 then 20980 use_dlz_postgres=`$PG_CONFIG --includedir` 20981 use_dlz_postgres_lib=`$PG_CONFIG --libdir` 20982 else 20983 pgprefix="$use_dlz_postgres" 20984 use_dlz_postgres="$pgprefix/include" 20985 use_dlz_postgres_lib="$pgprefix/lib" 20986 fi 20987fi 20988 20989if test "$use_dlz_postgres" = "yes/include" 20990then 20991 # User did not specify path and Postgres didn't say - guess it 20992 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg" 20993 for d in $pgdirs 20994 do 20995 if test -f $d/include/libpq-fe.h 20996 then 20997 use_dlz_postgres=$d/include 20998 use_dlz_postgres_lib=$d/lib 20999 break 21000 fi 21001 done 21002fi 21003 21004if test "$use_dlz_postgres" = "yes/include" 21005then 21006 # Still no joy, give up 21007 21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21009$as_echo "not found" >&6; } 21010 as_fn_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" "$LINENO" 5 21011fi 21012 21013case "$use_dlz_postgres" in 21014 no) 21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21016$as_echo "no" >&6; } 21017 ;; 21018 *) 21019 21020 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES" 21021 for i in dlz_postgres_driver 21022 do 21023 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 21024 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 21025 done 21026 if test -n "-I$use_dlz_postgres" 21027 then 21028 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres" 21029 fi 21030 if test -n "-L$use_dlz_postgres_lib -lpq" 21031 then 21032 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq" 21033 fi 21034 21035 21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5 21037$as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; } 21038 ;; 21039esac 21040 21041 21042# 21043# Was --with-dlz-mysql specified? 21044# 21045 21046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5 21047$as_echo_n "checking for MySQL DLZ driver... " >&6; } 21048 21049# Check whether --with-dlz_mysql was given. 21050if test "${with_dlz_mysql+set}" = set; then : 21051 withval=$with_dlz_mysql; use_dlz_mysql="$withval" 21052else 21053 use_dlz_mysql="no" 21054fi 21055 21056 21057mysql_include="" 21058mysql_lib="" 21059if test "$use_dlz_mysql" = "yes" 21060then 21061 # User did not specify a path - guess it 21062 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg" 21063 for d in $mysqldirs 21064 do 21065 if test -f $d/include/mysql/mysql.h 21066 then 21067 use_dlz_mysql=$d 21068 mysql_include=$d/include/mysql 21069 if test -d $d/lib/mysql 21070 then 21071 mysql_lib=$d/lib/mysql 21072 else 21073 mysql_lib=$d/lib 21074 fi 21075 break 21076 elif test -f $d/include/mysql.h 21077 then 21078 use_dlz_mysql=$d 21079 mysql_include=$d/include 21080 if test -d $d/lib/mysql 21081 then 21082 mysql_lib=$d/lib/mysql 21083 else 21084 mysql_lib=$d/lib 21085 fi 21086 break 21087 fi 21088 done 21089elif test "$use_dlz_mysql" != "no" 21090then 21091 d=$use_dlz_mysql 21092 if test -f $d/include/mysql/mysql.h 21093 then 21094 mysql_include=$d/include/mysql 21095 if test -d $d/lib/mysql 21096 then 21097 mysql_lib=$d/lib/mysql 21098 else 21099 mysql_lib=$d/lib 21100 fi 21101 elif test -f $d/include/mysql.h 21102 then 21103 mysql_include=$d/include 21104 if test -d $d/lib/mysql 21105 then 21106 mysql_lib=$d/lib/mysql 21107 else 21108 mysql_lib=$d/lib 21109 fi 21110 fi 21111fi 21112 21113if test "$use_dlz_mysql" = "yes" 21114then 21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21116$as_echo "not found" >&6; } 21117 as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5 21118fi 21119 21120case "$use_dlz_mysql" in 21121 no) 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21123$as_echo "no" >&6; } 21124 ;; 21125 *) 21126 21127 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL" 21128 for i in dlz_mysql_driver 21129 do 21130 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 21131 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 21132 done 21133 if test -n "-I${mysql_include}" 21134 then 21135 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}" 21136 fi 21137 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 21138 then 21139 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 21140 fi 21141 21142 21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5 21144$as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; } 21145 ;; 21146esac 21147 21148 21149# 21150# Was --with-dlz-bdb specified? 21151# 21152 21153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5 21154$as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; } 21155 21156# Check whether --with-dlz_bdb was given. 21157if test "${with_dlz_bdb+set}" = set; then : 21158 withval=$with_dlz_bdb; use_dlz_bdb="$withval" 21159else 21160 use_dlz_bdb="no" 21161fi 21162 21163 21164case "$use_dlz_bdb" in 21165 no) 21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21167$as_echo "no" >&6; } 21168 ;; 21169 *) 21170 if test "$use_dlz_bdb" = "yes" 21171 then 21172 # User did not specify a path - guess directories 21173 bdbdirs="/usr/local /usr/pkg /usr" 21174 elif test -d "$use_dlz_bdb" 21175 then 21176 # User specified directory and it exists 21177 bdbdirs="$use_dlz_bdb" 21178 else 21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21180$as_echo "not found" >&6; } 21181 as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5 21182 bdbdirs="" 21183 fi 21184 21185 # Use path we were given or guessed. This is insanely 21186 # complicated because we have to search for a bunch of 21187 # platform-specific variations and have to check 21188 # separately for include and library directories. 21189 21190 # Set both to yes, so we can check them later 21191 dlz_bdb_inc="yes" 21192 dlz_bdb_libs="yes" 21193 21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 21195$as_echo "" >&6; } 21196 for dd in $bdbdirs 21197 do 21198 # Skip nonexistant directories 21199 if test ! -d "$dd" 21200 then 21201 continue 21202 fi 21203 21204 # Check other locations for includes. 21205 # Order is important (sigh). 21206 21207 bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db" 21208 # include a blank element first 21209 for d in "" $bdb_incdirs 21210 do 21211 if test -f "$dd/include${d}/db.h" 21212 then 21213 dlz_bdb_inc="-I$dd/include${d}" 21214 break 21215 fi 21216 done 21217 21218 # Give up on this directory if we couldn't 21219 # find the include subdir 21220 21221 if test "$dlz_bdb_inc" = "yes" 21222 then 21223 continue 21224 fi 21225 21226 # Look for libname other than libdb.so. 21227 # Order is important (sigh). 21228 21229 bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db" 21230 for d in $bdb_libnames 21231 do 21232 if test "$dd" = "/usr" 21233 then 21234 as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh` 21235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5 21236$as_echo_n "checking for db_create in -l$d... " >&6; } 21237if eval \${$as_ac_Lib+:} false; then : 21238 $as_echo_n "(cached) " >&6 21239else 21240 ac_check_lib_save_LIBS=$LIBS 21241LIBS="-l$d $LIBS" 21242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21243/* end confdefs.h. */ 21244 21245/* Override any GCC internal prototype to avoid an error. 21246 Use char because int might match the return type of a GCC 21247 builtin and then its argument prototype would still apply. */ 21248#ifdef __cplusplus 21249extern "C" 21250#endif 21251char db_create (); 21252int 21253main () 21254{ 21255return db_create (); 21256 ; 21257 return 0; 21258} 21259_ACEOF 21260if ac_fn_c_try_link "$LINENO"; then : 21261 eval "$as_ac_Lib=yes" 21262else 21263 eval "$as_ac_Lib=no" 21264fi 21265rm -f core conftest.err conftest.$ac_objext \ 21266 conftest$ac_exeext conftest.$ac_ext 21267LIBS=$ac_check_lib_save_LIBS 21268fi 21269eval ac_res=\$$as_ac_Lib 21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21271$as_echo "$ac_res" >&6; } 21272if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 21273 dlz_bdb_libs="-l${d}" 21274fi 21275 21276 if test $dlz_bdb_libs != "yes" 21277 then 21278 break 21279 fi 21280 elif test -f "$dd/lib/lib${d}.so" 21281 then 21282 dlz_bdb_libs="-L${dd}/lib -l${d}" 21283 break 21284 fi 21285 done 21286 21287 # If we found both incdir and lib, we're done 21288 if test "$dlz_bdb_libs" != "yes" 21289 then 21290 break 21291 fi 21292 21293 # Otherwise, we're starting over 21294 21295 dlz_bdb_inc="yes" 21296 dlz_bdb_libs="yes" 21297 done 21298 21299 # Done searching, now make sure we got everything. 21300 21301 if test "$dlz_bdb_inc" = "yes" 21302 then 21303 as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5 21304 fi 21305 21306 if test "$dlz_bdb_libs" = "yes" 21307 then 21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21309$as_echo "not found" >&6; } 21310 as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5 21311 fi 21312 21313 21314 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB" 21315 for i in dlz_bdb_driver dlz_bdbhpt_driver 21316 do 21317 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 21318 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 21319 done 21320 if test -n "$dlz_bdb_inc" 21321 then 21322 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc" 21323 fi 21324 if test -n "$dlz_bdb_libs" 21325 then 21326 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs" 21327 fi 21328 21329 21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5 21331$as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; } 21332 21333 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile" 21334 21335 ;; 21336esac 21337 21338 21339# 21340# Was --with-dlz-filesystem specified? 21341# 21342 21343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5 21344$as_echo_n "checking for file system DLZ driver... " >&6; } 21345 21346# Check whether --with-dlz_filesystem was given. 21347if test "${with_dlz_filesystem+set}" = set; then : 21348 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval" 21349else 21350 use_dlz_filesystem="no" 21351fi 21352 21353 21354case "$use_dlz_filesystem" in 21355 no) 21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21357$as_echo "no" >&6; } 21358 ;; 21359 *) 21360 21361 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM" 21362 for i in dlz_filesystem_driver 21363 do 21364 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 21365 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 21366 done 21367 if test -n "" 21368 then 21369 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES " 21370 fi 21371 if test -n "" 21372 then 21373 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS " 21374 fi 21375 21376 DLZ_SYSTEM_TEST=filesystem 21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21378$as_echo "yes" >&6; } 21379 ;; 21380esac 21381 21382 21383# 21384# Was --with-dlz-ldap specified? 21385# 21386 21387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5 21388$as_echo_n "checking for LDAP DLZ driver... " >&6; } 21389 21390# Check whether --with-dlz_ldap was given. 21391if test "${with_dlz_ldap+set}" = set; then : 21392 withval=$with_dlz_ldap; use_dlz_ldap="$withval" 21393else 21394 use_dlz_ldap="no" 21395fi 21396 21397 21398if test "$use_dlz_ldap" = "yes" 21399then 21400 # User did not specify a path - guess it 21401 ldapdirs="/usr /usr/local /usr/pkg" 21402 for d in $ldapdirs 21403 do 21404 if test -f $d/include/ldap.h 21405 then 21406 use_dlz_ldap=$d 21407 break 21408 fi 21409 done 21410fi 21411 21412if test "$use_dlz_ldap" = "yes" 21413then 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21415$as_echo "not found" >&6; } 21416 as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5 21417fi 21418 21419case "$use_dlz_ldap" in 21420 no) 21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21422$as_echo "no" >&6; } 21423 ;; 21424 *) 21425 21426 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP" 21427 for i in dlz_ldap_driver 21428 do 21429 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 21430 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 21431 done 21432 if test -n "-I$use_dlz_ldap/include" 21433 then 21434 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include" 21435 fi 21436 if test -n "-L$use_dlz_ldap/lib -lldap -llber" 21437 then 21438 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber" 21439 fi 21440 21441 21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5 21443$as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; } 21444 ;; 21445esac 21446 21447 21448# 21449# Was --with-dlz-odbc specified? 21450# 21451 21452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5 21453$as_echo_n "checking for ODBC DLZ driver... " >&6; } 21454 21455# Check whether --with-dlz_odbc was given. 21456if test "${with_dlz_odbc+set}" = set; then : 21457 withval=$with_dlz_odbc; use_dlz_odbc="$withval" 21458else 21459 use_dlz_odbc="no" 21460fi 21461 21462 21463if test "$use_dlz_odbc" = "yes" 21464then 21465 # User did not specify a path - guess it 21466 libodbc_found=no 21467 sql_h_found=no 21468 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 21469if test "x$ac_cv_header_sql_h" = xyes; then : 21470 sql_h_found=yes 21471fi 21472 21473 21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5 21475$as_echo_n "checking for SQLConnect in -lodbc... " >&6; } 21476if ${ac_cv_lib_odbc_SQLConnect+:} false; then : 21477 $as_echo_n "(cached) " >&6 21478else 21479 ac_check_lib_save_LIBS=$LIBS 21480LIBS="-lodbc $LIBS" 21481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21482/* end confdefs.h. */ 21483 21484/* Override any GCC internal prototype to avoid an error. 21485 Use char because int might match the return type of a GCC 21486 builtin and then its argument prototype would still apply. */ 21487#ifdef __cplusplus 21488extern "C" 21489#endif 21490char SQLConnect (); 21491int 21492main () 21493{ 21494return SQLConnect (); 21495 ; 21496 return 0; 21497} 21498_ACEOF 21499if ac_fn_c_try_link "$LINENO"; then : 21500 ac_cv_lib_odbc_SQLConnect=yes 21501else 21502 ac_cv_lib_odbc_SQLConnect=no 21503fi 21504rm -f core conftest.err conftest.$ac_objext \ 21505 conftest$ac_exeext conftest.$ac_ext 21506LIBS=$ac_check_lib_save_LIBS 21507fi 21508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5 21509$as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; } 21510if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then : 21511 libodbc_found=yes 21512fi 21513 21514 21515 if test $libodbc_found = "yes" -o $sql_h_found = "yes" 21516 then 21517 use_dlz_odbc=system 21518 dlz_odbc_include="" 21519 dlz_odbc_libs="-lodbc" 21520 else 21521 odbcdirs="/usr /usr/local /usr/pkg" 21522 for d in $odbcdirs 21523 do 21524 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a 21525 then 21526 use_dlz_odbc=$d 21527 dlz_odbc_include="-I$use_dlz_odbc/include" 21528 dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc" 21529 break 21530 fi 21531 done 21532 fi 21533fi 21534 21535case "$use_dlz_odbc" in 21536 no) 21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21538$as_echo "no" >&6; } 21539 ;; 21540 yes) 21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21542$as_echo "not found" >&6; } 21543 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5 21544 ;; 21545 *) 21546 21547 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC" 21548 for i in dlz_odbc_driver 21549 do 21550 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 21551 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 21552 done 21553 if test -n "$dlz_odbc_include" 21554 then 21555 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include" 21556 fi 21557 if test -n "$dlz_odbc_libs" 21558 then 21559 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs" 21560 fi 21561 21562 21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5 21564$as_echo "using ODBC from $use_dlz_odbc" >&6; } 21565 ;; 21566esac 21567 21568 21569# 21570# Was --with-dlz-stub specified? 21571# 21572 21573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5 21574$as_echo_n "checking for stub DLZ driver... " >&6; } 21575 21576# Check whether --with-dlz_stub was given. 21577if test "${with_dlz_stub+set}" = set; then : 21578 withval=$with_dlz_stub; use_dlz_stub="$withval" 21579else 21580 use_dlz_stub="no" 21581fi 21582 21583 21584case "$use_dlz_stub" in 21585 no) 21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21587$as_echo "no" >&6; } 21588 ;; 21589 *) 21590 21591 21592 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB" 21593 for i in dlz_stub_driver 21594 do 21595 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c" 21596 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O" 21597 done 21598 if test -n "" 21599 then 21600 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES " 21601 fi 21602 if test -n "" 21603 then 21604 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS " 21605 fi 21606 21607 21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21609$as_echo "yes" >&6; } 21610 ;; 21611esac 21612 21613# Add any additional DLZ drivers here. 21614 21615# 21616# Finally, some generic stuff that applies to all drivers, assuming 21617# we're compiling contrib DLZ drivers at all. 21618# 21619if test -n "$CONTRIB_DLZ" 21620then 21621 CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ" 21622 21623 # 21624 # Where to find DLZ driver header files. 21625 # 21626 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES" 21627 21628 # 21629 # Initialization and shutdown wrappers, helper functions. 21630 # 21631 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS" 21632 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS" 21633fi 21634 21635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5 21636$as_echo_n "checking contributed DLZ drivers... " >&6; } 21637 21638if test -n "$CONTRIB_DLZ" 21639then 21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21641$as_echo "yes" >&6; } 21642 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules 21643 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES" 21644 21645else 21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21647$as_echo "no" >&6; } 21648 DLZ_DRIVER_RULES=/dev/null 21649fi 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659if test "$cross_compiling" = "yes"; then 21660 if test -z "$BUILD_CC"; then 21661 as_fn_error $? "BUILD_CC not set" "$LINENO" 5 21662 fi 21663 BUILD_CFLAGS="$BUILD_CFLAGS" 21664 BUILD_CPPFLAGS="$BUILD_CPPFLAGS" 21665 BUILD_LDFLAGS="$BUILD_LDFLAGS" 21666 BUILD_LIBS="$BUILD_LIBS" 21667else 21668 BUILD_CC="$CC" 21669 BUILD_CFLAGS="$CFLAGS" 21670 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG" 21671 BUILD_LDFLAGS="$LDFLAGS" 21672 BUILD_LIBS="$LIBS" 21673fi 21674 21675NEWFLAGS="" 21676for e in $BUILD_LDFLAGS ; do 21677 case $e in 21678 -L*) 21679 case $host_os in 21680 netbsd*) 21681 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 21682 NEWFLAGS="$NEWFLAGS $e $ee" 21683 ;; 21684 freebsd*) 21685 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 21686 NEWFLAGS="$NEWFLAGS $e $ee" 21687 ;; 21688 solaris*) 21689 ee=`echo $e | sed -e 's%^-L%-R%'` 21690 NEWFLAGS="$NEWFLAGS $e $ee" 21691 ;; 21692 *) 21693 NEWFLAGS="$NEWFLAGS $e" 21694 ;; 21695 esac 21696 ;; 21697 *) 21698 NEWFLAGS="$NEWFLAGS $e" 21699 ;; 21700 esac 21701done 21702BUILD_LDFLAGS="$NEWFLAGS" 21703 21704NEWFLAGS="" 21705for e in $DNS_GSSAPI_LIBS ; do 21706 case $e in 21707 -L*) 21708 case $host_os in 21709 netbsd*) 21710 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 21711 NEWFLAGS="$NEWFLAGS $e $ee" 21712 ;; 21713 freebsd*) 21714 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 21715 NEWFLAGS="$NEWFLAGS $e $ee" 21716 ;; 21717 solaris*) 21718 ee=`echo $e | sed -e 's%^-L%-R%'` 21719 NEWFLAGS="$NEWFLAGS $e $ee" 21720 ;; 21721 *) 21722 NEWFLAGS="$NEWFLAGS $e" 21723 ;; 21724 esac 21725 ;; 21726 *) 21727 NEWFLAGS="$NEWFLAGS $e" 21728 ;; 21729 esac 21730done 21731DNS_GSSAPI_LIBS="$NEWFLAGS" 21732 21733NEWFLAGS="" 21734for e in $ISC_OPENSSL_LIBS ; do 21735 case $e in 21736 -L*) 21737 case $host_os in 21738 netbsd*) 21739 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 21740 NEWFLAGS="$NEWFLAGS $e $ee" 21741 ;; 21742 freebsd*) 21743 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 21744 NEWFLAGS="$NEWFLAGS $e $ee" 21745 ;; 21746 solaris*) 21747 ee=`echo $e | sed -e 's%^-L%-R%'` 21748 NEWFLAGS="$NEWFLAGS $e $ee" 21749 ;; 21750 *) 21751 NEWFLAGS="$NEWFLAGS $e" 21752 ;; 21753 esac 21754 ;; 21755 *) 21756 NEWFLAGS="$NEWFLAGS $e" 21757 ;; 21758 esac 21759done 21760ISC_OPENSSL_LIBS="$NEWFLAGS" 21761 21762NEWFLAGS="" 21763for e in $DNS_CRYPTO_LIBS ; do 21764 case $e in 21765 -L*) 21766 case $host_os in 21767 netbsd*) 21768 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 21769 NEWFLAGS="$NEWFLAGS $e $ee" 21770 ;; 21771 freebsd*) 21772 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'` 21773 NEWFLAGS="$NEWFLAGS $e $ee" 21774 ;; 21775 solaris*) 21776 ee=`echo $e | sed -e 's%^-L%-R%'` 21777 NEWFLAGS="$NEWFLAGS $e $ee" 21778 ;; 21779 *) 21780 NEWFLAGS="$NEWFLAGS $e" 21781 ;; 21782 esac 21783 ;; 21784 *) 21785 NEWFLAGS="$NEWFLAGS $e" 21786 ;; 21787 esac 21788done 21789DNS_CRYPTO_LIBS="$NEWFLAGS" 21790 21791 21792 21793 21794 21795 21796 21797# 21798# Commands to run at the end of config.status. 21799# Don't just put these into configure, it won't work right if somebody 21800# runs config.status directly (which autoconf allows). 21801# 21802 21803ac_config_commands="$ac_config_commands chmod" 21804 21805 21806# 21807# Files to configure. These are listed here because we used to 21808# specify them as arguments to AC_OUTPUT. It's (now) ok to move these 21809# elsewhere if there's a good reason for doing so. 21810# 21811 21812ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/delv/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/python/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/rndc/Makefile bin/tests/Makefile bin/tests/atomic/Makefile bin/tests/db/Makefile bin/tests/dst/Makefile bin/tests/dst/Kdh.+002+18602.key bin/tests/dst/Kdh.+002+18602.private bin/tests/dst/Kdh.+002+48957.key bin/tests/dst/Kdh.+002+48957.private bin/tests/dst/Ktest.+001+00002.key bin/tests/dst/Ktest.+001+54622.key bin/tests/dst/Ktest.+001+54622.private bin/tests/dst/Ktest.+003+23616.key bin/tests/dst/Ktest.+003+23616.private bin/tests/dst/Ktest.+003+49667.key bin/tests/dst/dst_2_data bin/tests/dst/t2_data_1 bin/tests/dst/t2_data_2 bin/tests/dst/t2_dsasig bin/tests/dst/t2_rsasig bin/tests/hashes/Makefile bin/tests/headerdep_test.sh bin/tests/master/Makefile bin/tests/mem/Makefile bin/tests/names/Makefile bin/tests/net/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/rbt/Makefile bin/tests/resolver/Makefile bin/tests/sockaddr/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/builtin/Makefile bin/tests/system/dlz/prereq.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/named.conf bin/tests/system/dlzredir/prereq.sh bin/tests/system/filter-aaaa/Makefile bin/tests/system/geoip/Makefile bin/tests/system/inline/checkdsa.sh bin/tests/system/lwresd/Makefile bin/tests/system/sit/prereq.sh bin/tests/system/rpz/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tests/system/tsiggss/Makefile bin/tests/tasks/Makefile bin/tests/timers/Makefile bin/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile 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/xsl/isc-notes-html.xsl doc/xsl/isc-notes-latex.xsl isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/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/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/tests/Makefile lib/isc/nls/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/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/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/tests/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 lib/samples/Makefile lib/samples/Makefile-postinstall unit/Makefile unit/unittest.sh" 21813 21814 21815# 21816# Do it 21817# 21818 21819cat >confcache <<\_ACEOF 21820# This file is a shell script that caches the results of configure 21821# tests run on this system so they can be shared between configure 21822# scripts and configure runs, see configure's option --config-cache. 21823# It is not useful on other systems. If it contains results you don't 21824# want to keep, you may remove or edit it. 21825# 21826# config.status only pays attention to the cache file if you give it 21827# the --recheck option to rerun configure. 21828# 21829# `ac_cv_env_foo' variables (set or unset) will be overridden when 21830# loading this file, other *unset* `ac_cv_foo' will be assigned the 21831# following values. 21832 21833_ACEOF 21834 21835# The following way of writing the cache mishandles newlines in values, 21836# but we know of no workaround that is simple, portable, and efficient. 21837# So, we kill variables containing newlines. 21838# Ultrix sh set writes to stderr and can't be redirected directly, 21839# and sets the high bit in the cache file unless we assign to the vars. 21840( 21841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21842 eval ac_val=\$$ac_var 21843 case $ac_val in #( 21844 *${as_nl}*) 21845 case $ac_var in #( 21846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21847$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21848 esac 21849 case $ac_var in #( 21850 _ | IFS | as_nl) ;; #( 21851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21852 *) { eval $ac_var=; unset $ac_var;} ;; 21853 esac ;; 21854 esac 21855 done 21856 21857 (set) 2>&1 | 21858 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21859 *${as_nl}ac_space=\ *) 21860 # `set' does not quote correctly, so add quotes: double-quote 21861 # substitution turns \\\\ into \\, and sed turns \\ into \. 21862 sed -n \ 21863 "s/'/'\\\\''/g; 21864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21865 ;; #( 21866 *) 21867 # `set' quotes correctly as required by POSIX, so do not add quotes. 21868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21869 ;; 21870 esac | 21871 sort 21872) | 21873 sed ' 21874 /^ac_cv_env_/b end 21875 t clear 21876 :clear 21877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21878 t end 21879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21880 :end' >>confcache 21881if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21882 if test -w "$cache_file"; then 21883 if test "x$cache_file" != "x/dev/null"; then 21884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21885$as_echo "$as_me: updating cache $cache_file" >&6;} 21886 if test ! -f "$cache_file" || test -h "$cache_file"; then 21887 cat confcache >"$cache_file" 21888 else 21889 case $cache_file in #( 21890 */* | ?:*) 21891 mv -f confcache "$cache_file"$$ && 21892 mv -f "$cache_file"$$ "$cache_file" ;; #( 21893 *) 21894 mv -f confcache "$cache_file" ;; 21895 esac 21896 fi 21897 fi 21898 else 21899 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21900$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21901 fi 21902fi 21903rm -f confcache 21904 21905test "x$prefix" = xNONE && prefix=$ac_default_prefix 21906# Let make expand exec_prefix. 21907test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21908 21909DEFS=-DHAVE_CONFIG_H 21910 21911ac_libobjs= 21912ac_ltlibobjs= 21913U= 21914for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21915 # 1. Remove the extension, and $U if already installed. 21916 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21917 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21918 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21919 # will be set to the directory where LIBOBJS objects are built. 21920 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21921 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21922done 21923LIBOBJS=$ac_libobjs 21924 21925LTLIBOBJS=$ac_ltlibobjs 21926 21927 21928 21929 21930: "${CONFIG_STATUS=./config.status}" 21931ac_write_fail=0 21932ac_clean_files_save=$ac_clean_files 21933ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21934{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21935$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21936as_write_fail=0 21937cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21938#! $SHELL 21939# Generated by $as_me. 21940# Run this file to recreate the current configuration. 21941# Compiler output produced by configure, useful for debugging 21942# configure, is in config.log if it exists. 21943 21944debug=false 21945ac_cs_recheck=false 21946ac_cs_silent=false 21947 21948SHELL=\${CONFIG_SHELL-$SHELL} 21949export SHELL 21950_ASEOF 21951cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21952## -------------------- ## 21953## M4sh Initialization. ## 21954## -------------------- ## 21955 21956# Be more Bourne compatible 21957DUALCASE=1; export DUALCASE # for MKS sh 21958if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21959 emulate sh 21960 NULLCMD=: 21961 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21962 # is contrary to our usage. Disable this feature. 21963 alias -g '${1+"$@"}'='"$@"' 21964 setopt NO_GLOB_SUBST 21965else 21966 case `(set -o) 2>/dev/null` in #( 21967 *posix*) : 21968 set -o posix ;; #( 21969 *) : 21970 ;; 21971esac 21972fi 21973 21974 21975as_nl=' 21976' 21977export as_nl 21978# Printing a long string crashes Solaris 7 /usr/bin/printf. 21979as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21980as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21981as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21982# Prefer a ksh shell builtin over an external printf program on Solaris, 21983# but without wasting forks for bash or zsh. 21984if test -z "$BASH_VERSION$ZSH_VERSION" \ 21985 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21986 as_echo='print -r --' 21987 as_echo_n='print -rn --' 21988elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21989 as_echo='printf %s\n' 21990 as_echo_n='printf %s' 21991else 21992 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21993 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21994 as_echo_n='/usr/ucb/echo -n' 21995 else 21996 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21997 as_echo_n_body='eval 21998 arg=$1; 21999 case $arg in #( 22000 *"$as_nl"*) 22001 expr "X$arg" : "X\\(.*\\)$as_nl"; 22002 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22003 esac; 22004 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22005 ' 22006 export as_echo_n_body 22007 as_echo_n='sh -c $as_echo_n_body as_echo' 22008 fi 22009 export as_echo_body 22010 as_echo='sh -c $as_echo_body as_echo' 22011fi 22012 22013# The user is always right. 22014if test "${PATH_SEPARATOR+set}" != set; then 22015 PATH_SEPARATOR=: 22016 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22017 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22018 PATH_SEPARATOR=';' 22019 } 22020fi 22021 22022 22023# IFS 22024# We need space, tab and new line, in precisely that order. Quoting is 22025# there to prevent editors from complaining about space-tab. 22026# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22027# splitting by setting IFS to empty value.) 22028IFS=" "" $as_nl" 22029 22030# Find who we are. Look in the path if we contain no directory separator. 22031as_myself= 22032case $0 in #(( 22033 *[\\/]* ) as_myself=$0 ;; 22034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22035for as_dir in $PATH 22036do 22037 IFS=$as_save_IFS 22038 test -z "$as_dir" && as_dir=. 22039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22040 done 22041IFS=$as_save_IFS 22042 22043 ;; 22044esac 22045# We did not find ourselves, most probably we were run as `sh COMMAND' 22046# in which case we are not to be found in the path. 22047if test "x$as_myself" = x; then 22048 as_myself=$0 22049fi 22050if test ! -f "$as_myself"; then 22051 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22052 exit 1 22053fi 22054 22055# Unset variables that we do not need and which cause bugs (e.g. in 22056# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22057# suppresses any "Segmentation fault" message there. '((' could 22058# trigger a bug in pdksh 5.2.14. 22059for as_var in BASH_ENV ENV MAIL MAILPATH 22060do eval test x\${$as_var+set} = xset \ 22061 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22062done 22063PS1='$ ' 22064PS2='> ' 22065PS4='+ ' 22066 22067# NLS nuisances. 22068LC_ALL=C 22069export LC_ALL 22070LANGUAGE=C 22071export LANGUAGE 22072 22073# CDPATH. 22074(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22075 22076 22077# as_fn_error STATUS ERROR [LINENO LOG_FD] 22078# ---------------------------------------- 22079# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22080# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22081# script with STATUS, using 1 if that was 0. 22082as_fn_error () 22083{ 22084 as_status=$1; test $as_status -eq 0 && as_status=1 22085 if test "$4"; then 22086 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22087 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22088 fi 22089 $as_echo "$as_me: error: $2" >&2 22090 as_fn_exit $as_status 22091} # as_fn_error 22092 22093 22094# as_fn_set_status STATUS 22095# ----------------------- 22096# Set $? to STATUS, without forking. 22097as_fn_set_status () 22098{ 22099 return $1 22100} # as_fn_set_status 22101 22102# as_fn_exit STATUS 22103# ----------------- 22104# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22105as_fn_exit () 22106{ 22107 set +e 22108 as_fn_set_status $1 22109 exit $1 22110} # as_fn_exit 22111 22112# as_fn_unset VAR 22113# --------------- 22114# Portably unset VAR. 22115as_fn_unset () 22116{ 22117 { eval $1=; unset $1;} 22118} 22119as_unset=as_fn_unset 22120# as_fn_append VAR VALUE 22121# ---------------------- 22122# Append the text in VALUE to the end of the definition contained in VAR. Take 22123# advantage of any shell optimizations that allow amortized linear growth over 22124# repeated appends, instead of the typical quadratic growth present in naive 22125# implementations. 22126if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22127 eval 'as_fn_append () 22128 { 22129 eval $1+=\$2 22130 }' 22131else 22132 as_fn_append () 22133 { 22134 eval $1=\$$1\$2 22135 } 22136fi # as_fn_append 22137 22138# as_fn_arith ARG... 22139# ------------------ 22140# Perform arithmetic evaluation on the ARGs, and store the result in the 22141# global $as_val. Take advantage of shells that can avoid forks. The arguments 22142# must be portable across $(()) and expr. 22143if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22144 eval 'as_fn_arith () 22145 { 22146 as_val=$(( $* )) 22147 }' 22148else 22149 as_fn_arith () 22150 { 22151 as_val=`expr "$@" || test $? -eq 1` 22152 } 22153fi # as_fn_arith 22154 22155 22156if expr a : '\(a\)' >/dev/null 2>&1 && 22157 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22158 as_expr=expr 22159else 22160 as_expr=false 22161fi 22162 22163if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22164 as_basename=basename 22165else 22166 as_basename=false 22167fi 22168 22169if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22170 as_dirname=dirname 22171else 22172 as_dirname=false 22173fi 22174 22175as_me=`$as_basename -- "$0" || 22176$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22177 X"$0" : 'X\(//\)$' \| \ 22178 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22179$as_echo X/"$0" | 22180 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22181 s//\1/ 22182 q 22183 } 22184 /^X\/\(\/\/\)$/{ 22185 s//\1/ 22186 q 22187 } 22188 /^X\/\(\/\).*/{ 22189 s//\1/ 22190 q 22191 } 22192 s/.*/./; q'` 22193 22194# Avoid depending upon Character Ranges. 22195as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22196as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22197as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22198as_cr_digits='0123456789' 22199as_cr_alnum=$as_cr_Letters$as_cr_digits 22200 22201ECHO_C= ECHO_N= ECHO_T= 22202case `echo -n x` in #((((( 22203-n*) 22204 case `echo 'xy\c'` in 22205 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22206 xy) ECHO_C='\c';; 22207 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22208 ECHO_T=' ';; 22209 esac;; 22210*) 22211 ECHO_N='-n';; 22212esac 22213 22214rm -f conf$$ conf$$.exe conf$$.file 22215if test -d conf$$.dir; then 22216 rm -f conf$$.dir/conf$$.file 22217else 22218 rm -f conf$$.dir 22219 mkdir conf$$.dir 2>/dev/null 22220fi 22221if (echo >conf$$.file) 2>/dev/null; then 22222 if ln -s conf$$.file conf$$ 2>/dev/null; then 22223 as_ln_s='ln -s' 22224 # ... but there are two gotchas: 22225 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22226 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22227 # In both cases, we have to default to `cp -pR'. 22228 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22229 as_ln_s='cp -pR' 22230 elif ln conf$$.file conf$$ 2>/dev/null; then 22231 as_ln_s=ln 22232 else 22233 as_ln_s='cp -pR' 22234 fi 22235else 22236 as_ln_s='cp -pR' 22237fi 22238rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22239rmdir conf$$.dir 2>/dev/null 22240 22241 22242# as_fn_mkdir_p 22243# ------------- 22244# Create "$as_dir" as a directory, including parents if necessary. 22245as_fn_mkdir_p () 22246{ 22247 22248 case $as_dir in #( 22249 -*) as_dir=./$as_dir;; 22250 esac 22251 test -d "$as_dir" || eval $as_mkdir_p || { 22252 as_dirs= 22253 while :; do 22254 case $as_dir in #( 22255 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22256 *) as_qdir=$as_dir;; 22257 esac 22258 as_dirs="'$as_qdir' $as_dirs" 22259 as_dir=`$as_dirname -- "$as_dir" || 22260$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22261 X"$as_dir" : 'X\(//\)[^/]' \| \ 22262 X"$as_dir" : 'X\(//\)$' \| \ 22263 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22264$as_echo X"$as_dir" | 22265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22266 s//\1/ 22267 q 22268 } 22269 /^X\(\/\/\)[^/].*/{ 22270 s//\1/ 22271 q 22272 } 22273 /^X\(\/\/\)$/{ 22274 s//\1/ 22275 q 22276 } 22277 /^X\(\/\).*/{ 22278 s//\1/ 22279 q 22280 } 22281 s/.*/./; q'` 22282 test -d "$as_dir" && break 22283 done 22284 test -z "$as_dirs" || eval "mkdir $as_dirs" 22285 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22286 22287 22288} # as_fn_mkdir_p 22289if mkdir -p . 2>/dev/null; then 22290 as_mkdir_p='mkdir -p "$as_dir"' 22291else 22292 test -d ./-p && rmdir ./-p 22293 as_mkdir_p=false 22294fi 22295 22296 22297# as_fn_executable_p FILE 22298# ----------------------- 22299# Test if FILE is an executable regular file. 22300as_fn_executable_p () 22301{ 22302 test -f "$1" && test -x "$1" 22303} # as_fn_executable_p 22304as_test_x='test -x' 22305as_executable_p=as_fn_executable_p 22306 22307# Sed expression to map a string onto a valid CPP name. 22308as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22309 22310# Sed expression to map a string onto a valid variable name. 22311as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22312 22313 22314exec 6>&1 22315## ----------------------------------- ## 22316## Main body of $CONFIG_STATUS script. ## 22317## ----------------------------------- ## 22318_ASEOF 22319test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22320 22321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22322# Save the log message, to keep $0 and so on meaningful, and to 22323# report actual input values of CONFIG_FILES etc. instead of their 22324# values after options handling. 22325ac_log=" 22326This file was extended by BIND $as_me 9.10, which was 22327generated by GNU Autoconf 2.69. Invocation command line was 22328 22329 CONFIG_FILES = $CONFIG_FILES 22330 CONFIG_HEADERS = $CONFIG_HEADERS 22331 CONFIG_LINKS = $CONFIG_LINKS 22332 CONFIG_COMMANDS = $CONFIG_COMMANDS 22333 $ $0 $@ 22334 22335on `(hostname || uname -n) 2>/dev/null | sed 1q` 22336" 22337 22338_ACEOF 22339 22340case $ac_config_files in *" 22341"*) set x $ac_config_files; shift; ac_config_files=$*;; 22342esac 22343 22344case $ac_config_headers in *" 22345"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22346esac 22347 22348 22349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22350# Files that config.status was made for. 22351config_files="$ac_config_files" 22352config_headers="$ac_config_headers" 22353config_commands="$ac_config_commands" 22354 22355_ACEOF 22356 22357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22358ac_cs_usage="\ 22359\`$as_me' instantiates files and other configuration actions 22360from templates according to the current configuration. Unless the files 22361and actions are specified as TAGs, all are instantiated by default. 22362 22363Usage: $0 [OPTION]... [TAG]... 22364 22365 -h, --help print this help, then exit 22366 -V, --version print version number and configuration settings, then exit 22367 --config print configuration, then exit 22368 -q, --quiet, --silent 22369 do not print progress messages 22370 -d, --debug don't remove temporary files 22371 --recheck update $as_me by reconfiguring in the same conditions 22372 --file=FILE[:TEMPLATE] 22373 instantiate the configuration file FILE 22374 --header=FILE[:TEMPLATE] 22375 instantiate the configuration header FILE 22376 22377Configuration files: 22378$config_files 22379 22380Configuration headers: 22381$config_headers 22382 22383Configuration commands: 22384$config_commands 22385 22386Report bugs to <bind9-bugs@isc.org>. 22387BIND home page: <https://www.isc.org/downloads/BIND/>." 22388 22389_ACEOF 22390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22391ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22392ac_cs_version="\\ 22393BIND config.status 9.10 22394configured by $0, generated by GNU Autoconf 2.69, 22395 with options \\"\$ac_cs_config\\" 22396 22397Copyright (C) 2012 Free Software Foundation, Inc. 22398This config.status script is free software; the Free Software Foundation 22399gives unlimited permission to copy, distribute and modify it." 22400 22401ac_pwd='$ac_pwd' 22402srcdir='$srcdir' 22403INSTALL='$INSTALL' 22404AWK='$AWK' 22405test -n "\$AWK" || AWK=awk 22406_ACEOF 22407 22408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22409# The default lists apply if the user does not specify any file. 22410ac_need_defaults=: 22411while test $# != 0 22412do 22413 case $1 in 22414 --*=?*) 22415 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22417 ac_shift=: 22418 ;; 22419 --*=) 22420 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22421 ac_optarg= 22422 ac_shift=: 22423 ;; 22424 *) 22425 ac_option=$1 22426 ac_optarg=$2 22427 ac_shift=shift 22428 ;; 22429 esac 22430 22431 case $ac_option in 22432 # Handling of the options. 22433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22434 ac_cs_recheck=: ;; 22435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22436 $as_echo "$ac_cs_version"; exit ;; 22437 --config | --confi | --conf | --con | --co | --c ) 22438 $as_echo "$ac_cs_config"; exit ;; 22439 --debug | --debu | --deb | --de | --d | -d ) 22440 debug=: ;; 22441 --file | --fil | --fi | --f ) 22442 $ac_shift 22443 case $ac_optarg in 22444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22445 '') as_fn_error $? "missing file argument" ;; 22446 esac 22447 as_fn_append CONFIG_FILES " '$ac_optarg'" 22448 ac_need_defaults=false;; 22449 --header | --heade | --head | --hea ) 22450 $ac_shift 22451 case $ac_optarg in 22452 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22453 esac 22454 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22455 ac_need_defaults=false;; 22456 --he | --h) 22457 # Conflict between --help and --header 22458 as_fn_error $? "ambiguous option: \`$1' 22459Try \`$0 --help' for more information.";; 22460 --help | --hel | -h ) 22461 $as_echo "$ac_cs_usage"; exit ;; 22462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22463 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22464 ac_cs_silent=: ;; 22465 22466 # This is an error. 22467 -*) as_fn_error $? "unrecognized option: \`$1' 22468Try \`$0 --help' for more information." ;; 22469 22470 *) as_fn_append ac_config_targets " $1" 22471 ac_need_defaults=false ;; 22472 22473 esac 22474 shift 22475done 22476 22477ac_configure_extra_args= 22478 22479if $ac_cs_silent; then 22480 exec 6>/dev/null 22481 ac_configure_extra_args="$ac_configure_extra_args --silent" 22482fi 22483 22484_ACEOF 22485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22486if \$ac_cs_recheck; then 22487 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22488 shift 22489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22490 CONFIG_SHELL='$SHELL' 22491 export CONFIG_SHELL 22492 exec "\$@" 22493fi 22494 22495_ACEOF 22496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22497exec 5>>config.log 22498{ 22499 echo 22500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22501## Running $as_me. ## 22502_ASBOX 22503 $as_echo "$ac_log" 22504} >&5 22505 22506_ACEOF 22507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22508# 22509# INIT-COMMANDS 22510# 22511 22512 22513# The HP-UX ksh and POSIX shell print the target directory to stdout 22514# if CDPATH is set. 22515(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22516 22517sed_quote_subst='$sed_quote_subst' 22518double_quote_subst='$double_quote_subst' 22519delay_variable_subst='$delay_variable_subst' 22520macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22521macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22522enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22523enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22524pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22525enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22526SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22527ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22528PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22529host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22530host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22531host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22532build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22533build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22534build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22535SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22536Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22537GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22538EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22539FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22540LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22541NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22542LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22543max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22544ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22545exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22546lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22547lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22548lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22549lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22550lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22551reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22552reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22553OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22554deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22555file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22556file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22557want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22558DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22559sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22560AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22561AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22562archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22563STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22564RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22565old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22566old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22567old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22568lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22569CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22570CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22571compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22572GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22573lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22574lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22575lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22576lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 22577nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22578lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22579objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22580MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22581lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22582lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22583lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22584lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22585lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22586need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22587MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22588DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22589NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22590LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22591OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22592OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22593libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22594shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22595extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22596archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22597enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22598export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22599whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22600compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22601old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22602old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22603archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22604archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22605module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22606module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22607with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22608allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22609no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22610hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22611hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22612hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22613hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22614hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22615hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22616hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22617inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22618link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22619always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22620export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22621exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22622include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22623prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22624postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22625file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22626variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22627need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22628need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22629version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22630runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22631shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22632shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22633libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22634library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22635soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22636install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22637postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22638postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22639finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22640finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22641hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22642sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22643sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 22644hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22645enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22646enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22647enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22648old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22649striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22650 22651LTCC='$LTCC' 22652LTCFLAGS='$LTCFLAGS' 22653compiler='$compiler_DEFAULT' 22654 22655# A function that is used when there is no print builtin or printf. 22656func_fallback_echo () 22657{ 22658 eval 'cat <<_LTECHO_EOF 22659\$1 22660_LTECHO_EOF' 22661} 22662 22663# Quote evaled strings. 22664for var in SHELL \ 22665ECHO \ 22666PATH_SEPARATOR \ 22667SED \ 22668GREP \ 22669EGREP \ 22670FGREP \ 22671LD \ 22672NM \ 22673LN_S \ 22674lt_SP2NL \ 22675lt_NL2SP \ 22676reload_flag \ 22677OBJDUMP \ 22678deplibs_check_method \ 22679file_magic_cmd \ 22680file_magic_glob \ 22681want_nocaseglob \ 22682DLLTOOL \ 22683sharedlib_from_linklib_cmd \ 22684AR \ 22685AR_FLAGS \ 22686archiver_list_spec \ 22687STRIP \ 22688RANLIB \ 22689CC \ 22690CFLAGS \ 22691compiler \ 22692lt_cv_sys_global_symbol_pipe \ 22693lt_cv_sys_global_symbol_to_cdecl \ 22694lt_cv_sys_global_symbol_to_c_name_address \ 22695lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22696nm_file_list_spec \ 22697lt_prog_compiler_no_builtin_flag \ 22698lt_prog_compiler_pic \ 22699lt_prog_compiler_wl \ 22700lt_prog_compiler_static \ 22701lt_cv_prog_compiler_c_o \ 22702need_locks \ 22703MANIFEST_TOOL \ 22704DSYMUTIL \ 22705NMEDIT \ 22706LIPO \ 22707OTOOL \ 22708OTOOL64 \ 22709shrext_cmds \ 22710export_dynamic_flag_spec \ 22711whole_archive_flag_spec \ 22712compiler_needs_object \ 22713with_gnu_ld \ 22714allow_undefined_flag \ 22715no_undefined_flag \ 22716hardcode_libdir_flag_spec \ 22717hardcode_libdir_separator \ 22718exclude_expsyms \ 22719include_expsyms \ 22720file_list_spec \ 22721variables_saved_for_relink \ 22722libname_spec \ 22723library_names_spec \ 22724soname_spec \ 22725install_override_mode \ 22726finish_eval \ 22727old_striplib \ 22728striplib; do 22729 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22730 *[\\\\\\\`\\"\\\$]*) 22731 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22732 ;; 22733 *) 22734 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22735 ;; 22736 esac 22737done 22738 22739# Double-quote double-evaled strings. 22740for var in reload_cmds \ 22741old_postinstall_cmds \ 22742old_postuninstall_cmds \ 22743old_archive_cmds \ 22744extract_expsyms_cmds \ 22745old_archive_from_new_cmds \ 22746old_archive_from_expsyms_cmds \ 22747archive_cmds \ 22748archive_expsym_cmds \ 22749module_cmds \ 22750module_expsym_cmds \ 22751export_symbols_cmds \ 22752prelink_cmds \ 22753postlink_cmds \ 22754postinstall_cmds \ 22755postuninstall_cmds \ 22756finish_cmds \ 22757sys_lib_search_path_spec \ 22758sys_lib_dlsearch_path_spec; do 22759 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22760 *[\\\\\\\`\\"\\\$]*) 22761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22762 ;; 22763 *) 22764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22765 ;; 22766 esac 22767done 22768 22769ac_aux_dir='$ac_aux_dir' 22770xsi_shell='$xsi_shell' 22771lt_shell_append='$lt_shell_append' 22772 22773# See if we are running on zsh, and set the options which allow our 22774# commands through without removal of \ escapes INIT. 22775if test -n "\${ZSH_VERSION+set}" ; then 22776 setopt NO_GLOB_SUBST 22777fi 22778 22779 22780 PACKAGE='$PACKAGE' 22781 VERSION='$VERSION' 22782 TIMESTAMP='$TIMESTAMP' 22783 RM='$RM' 22784 ofile='$ofile' 22785 22786 22787 22788atfdir=`pwd`/unit/atf 22789 22790_ACEOF 22791 22792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22793 22794# Handling of arguments. 22795for ac_config_target in $ac_config_targets 22796do 22797 case $ac_config_target in 22798 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22799 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22800 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;; 22801 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;; 22802 "atf-config") CONFIG_COMMANDS="$CONFIG_COMMANDS atf-config" ;; 22803 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;; 22804 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;; 22805 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;; 22806 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; 22807 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;; 22808 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22809 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 22810 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;; 22811 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;; 22812 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;; 22813 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;; 22814 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;; 22815 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;; 22816 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;; 22817 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;; 22818 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;; 22819 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;; 22820 "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;; 22821 "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;; 22822 "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;; 22823 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;; 22824 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;; 22825 "bin/tests/atomic/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/atomic/Makefile" ;; 22826 "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;; 22827 "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;; 22828 "bin/tests/dst/Kdh.+002+18602.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Kdh.+002+18602.key" ;; 22829 "bin/tests/dst/Kdh.+002+18602.private") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Kdh.+002+18602.private" ;; 22830 "bin/tests/dst/Kdh.+002+48957.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Kdh.+002+48957.key" ;; 22831 "bin/tests/dst/Kdh.+002+48957.private") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Kdh.+002+48957.private" ;; 22832 "bin/tests/dst/Ktest.+001+00002.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+001+00002.key" ;; 22833 "bin/tests/dst/Ktest.+001+54622.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+001+54622.key" ;; 22834 "bin/tests/dst/Ktest.+001+54622.private") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+001+54622.private" ;; 22835 "bin/tests/dst/Ktest.+003+23616.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+003+23616.key" ;; 22836 "bin/tests/dst/Ktest.+003+23616.private") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+003+23616.private" ;; 22837 "bin/tests/dst/Ktest.+003+49667.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+003+49667.key" ;; 22838 "bin/tests/dst/dst_2_data") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/dst_2_data" ;; 22839 "bin/tests/dst/t2_data_1") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/t2_data_1" ;; 22840 "bin/tests/dst/t2_data_2") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/t2_data_2" ;; 22841 "bin/tests/dst/t2_dsasig") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/t2_dsasig" ;; 22842 "bin/tests/dst/t2_rsasig") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/t2_rsasig" ;; 22843 "bin/tests/hashes/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/hashes/Makefile" ;; 22844 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;; 22845 "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;; 22846 "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;; 22847 "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;; 22848 "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;; 22849 "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;; 22850 "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;; 22851 "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;; 22852 "bin/tests/resolver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/resolver/Makefile" ;; 22853 "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;; 22854 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;; 22855 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;; 22856 "bin/tests/system/builtin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/builtin/Makefile" ;; 22857 "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;; 22858 "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;; 22859 "bin/tests/system/dlzexternal/ns1/named.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/named.conf" ;; 22860 "bin/tests/system/dlzredir/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzredir/prereq.sh" ;; 22861 "bin/tests/system/filter-aaaa/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/filter-aaaa/Makefile" ;; 22862 "bin/tests/system/geoip/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/geoip/Makefile" ;; 22863 "bin/tests/system/inline/checkdsa.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/inline/checkdsa.sh" ;; 22864 "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;; 22865 "bin/tests/system/sit/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/sit/prereq.sh" ;; 22866 "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;; 22867 "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;; 22868 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;; 22869 "bin/tests/system/tsiggss/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tsiggss/Makefile" ;; 22870 "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;; 22871 "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;; 22872 "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;; 22873 "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;; 22874 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;; 22875 "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;; 22876 "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;; 22877 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22878 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;; 22879 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;; 22880 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;; 22881 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;; 22882 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; 22883 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;; 22884 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;; 22885 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;; 22886 "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;; 22887 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;; 22888 "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;; 22889 "doc/xsl/isc-notes-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-latex.xsl" ;; 22890 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;; 22891 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 22892 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;; 22893 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;; 22894 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;; 22895 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;; 22896 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;; 22897 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;; 22898 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;; 22899 "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;; 22900 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;; 22901 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;; 22902 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;; 22903 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;; 22904 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;; 22905 "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;; 22906 "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;; 22907 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;; 22908 "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;; 22909 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;; 22910 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;; 22911 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;; 22912 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;; 22913 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;; 22914 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;; 22915 "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;; 22916 "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;; 22917 "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;; 22918 "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;; 22919 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;; 22920 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;; 22921 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;; 22922 "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;; 22923 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;; 22924 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;; 22925 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;; 22926 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;; 22927 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;; 22928 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;; 22929 "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;; 22930 "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;; 22931 "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;; 22932 "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;; 22933 "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;; 22934 "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;; 22935 "lib/lwres/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/tests/Makefile" ;; 22936 "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;; 22937 "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;; 22938 "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;; 22939 "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;; 22940 "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;; 22941 "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;; 22942 "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;; 22943 "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;; 22944 "unit/Makefile") CONFIG_FILES="$CONFIG_FILES unit/Makefile" ;; 22945 "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;; 22946 22947 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22948 esac 22949done 22950 22951 22952# If the user did not use the arguments to specify the items to instantiate, 22953# then the envvar interface is used. Set only those that are not. 22954# We use the long form for the default assignment because of an extremely 22955# bizarre bug on SunOS 4.1.3. 22956if $ac_need_defaults; then 22957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22960fi 22961 22962# Have a temporary directory for convenience. Make it in the build tree 22963# simply because there is no reason against having it here, and in addition, 22964# creating and moving files from /tmp can sometimes cause problems. 22965# Hook for its removal unless debugging. 22966# Note that there is a small window in which the directory will not be cleaned: 22967# after its creation but before its name has been assigned to `$tmp'. 22968$debug || 22969{ 22970 tmp= ac_tmp= 22971 trap 'exit_status=$? 22972 : "${ac_tmp:=$tmp}" 22973 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22974' 0 22975 trap 'as_fn_exit 1' 1 2 13 15 22976} 22977# Create a (secure) tmp directory for tmp files. 22978 22979{ 22980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22981 test -d "$tmp" 22982} || 22983{ 22984 tmp=./conf$$-$RANDOM 22985 (umask 077 && mkdir "$tmp") 22986} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22987ac_tmp=$tmp 22988 22989# Set up the scripts for CONFIG_FILES section. 22990# No need to generate them if there are no CONFIG_FILES. 22991# This happens for instance with `./config.status config.h'. 22992if test -n "$CONFIG_FILES"; then 22993 22994if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 22995 ac_cs_awk_getline=: 22996 ac_cs_awk_pipe_init= 22997 ac_cs_awk_read_file=' 22998 while ((getline aline < (F[key])) > 0) 22999 print(aline) 23000 close(F[key])' 23001 ac_cs_awk_pipe_fini= 23002else 23003 ac_cs_awk_getline=false 23004 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 23005 ac_cs_awk_read_file=' 23006 print "|#_!!_#|" 23007 print "cat " F[key] " &&" 23008 '$ac_cs_awk_pipe_init 23009 # The final `:' finishes the AND list. 23010 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 23011fi 23012ac_cr=`echo X | tr X '\015'` 23013# On cygwin, bash can eat \r inside `` if the user requested igncr. 23014# But we know of no other shell where ac_cr would be empty at this 23015# point, so we can use a bashism as a fallback. 23016if test "x$ac_cr" = x; then 23017 eval ac_cr=\$\'\\r\' 23018fi 23019ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23020if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23021 ac_cs_awk_cr='\\r' 23022else 23023 ac_cs_awk_cr=$ac_cr 23024fi 23025 23026echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23027_ACEOF 23028 23029# Create commands to substitute file output variables. 23030{ 23031 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 23032 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 23033 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 23034 echo "_ACAWK" && 23035 echo "_ACEOF" 23036} >conf$$files.sh && 23037. ./conf$$files.sh || 23038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23039rm -f conf$$files.sh 23040 23041{ 23042 echo "cat >conf$$subs.awk <<_ACEOF" && 23043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23044 echo "_ACEOF" 23045} >conf$$subs.sh || 23046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23047ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23048ac_delim='%!_!# ' 23049for ac_last_try in false false false false false :; do 23050 . ./conf$$subs.sh || 23051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23052 23053 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23054 if test $ac_delim_n = $ac_delim_num; then 23055 break 23056 elif $ac_last_try; then 23057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23058 else 23059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23060 fi 23061done 23062rm -f conf$$subs.sh 23063 23064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23065cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23066_ACEOF 23067sed -n ' 23068h 23069s/^/S["/; s/!.*/"]=/ 23070p 23071g 23072s/^[^!]*!// 23073:repl 23074t repl 23075s/'"$ac_delim"'$// 23076t delim 23077:nl 23078h 23079s/\(.\{148\}\)..*/\1/ 23080t more1 23081s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23082p 23083n 23084b repl 23085:more1 23086s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23087p 23088g 23089s/.\{148\}// 23090t nl 23091:delim 23092h 23093s/\(.\{148\}\)..*/\1/ 23094t more2 23095s/["\\]/\\&/g; s/^/"/; s/$/"/ 23096p 23097b 23098:more2 23099s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23100p 23101g 23102s/.\{148\}// 23103t delim 23104' <conf$$subs.awk | sed ' 23105/^[^""]/{ 23106 N 23107 s/\n// 23108} 23109' >>$CONFIG_STATUS || ac_write_fail=1 23110rm -f conf$$subs.awk 23111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23112_ACAWK 23113cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23114 for (key in S) S_is_set[key] = 1 23115 FS = "" 23116 \$ac_cs_awk_pipe_init 23117} 23118{ 23119 line = $ 0 23120 nfields = split(line, field, "@") 23121 substed = 0 23122 len = length(field[1]) 23123 for (i = 2; i < nfields; i++) { 23124 key = field[i] 23125 keylen = length(key) 23126 if (S_is_set[key]) { 23127 value = S[key] 23128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23129 len += length(value) + length(field[++i]) 23130 substed = 1 23131 } else 23132 len += 1 + keylen 23133 } 23134 if (nfields == 3 && !substed) { 23135 key = field[2] 23136 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 23137 \$ac_cs_awk_read_file 23138 next 23139 } 23140 } 23141 print line 23142} 23143\$ac_cs_awk_pipe_fini 23144_ACAWK 23145_ACEOF 23146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23147if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23149else 23150 cat 23151fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23152 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23153_ACEOF 23154 23155# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23156# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23157# trailing colons and then remove the whole line if VPATH becomes empty 23158# (actually we leave an empty line to preserve line numbers). 23159if test "x$srcdir" = x.; then 23160 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23161h 23162s/// 23163s/^/:/ 23164s/[ ]*$/:/ 23165s/:\$(srcdir):/:/g 23166s/:\${srcdir}:/:/g 23167s/:@srcdir@:/:/g 23168s/^:*// 23169s/:*$// 23170x 23171s/\(=[ ]*\).*/\1/ 23172G 23173s/\n// 23174s/^[^=]*=[ ]*$// 23175}' 23176fi 23177 23178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23179fi # test -n "$CONFIG_FILES" 23180 23181# Set up the scripts for CONFIG_HEADERS section. 23182# No need to generate them if there are no CONFIG_HEADERS. 23183# This happens for instance with `./config.status Makefile'. 23184if test -n "$CONFIG_HEADERS"; then 23185cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23186BEGIN { 23187_ACEOF 23188 23189# Transform confdefs.h into an awk script `defines.awk', embedded as 23190# here-document in config.status, that substitutes the proper values into 23191# config.h.in to produce config.h. 23192 23193# Create a delimiter string that does not exist in confdefs.h, to ease 23194# handling of long lines. 23195ac_delim='%!_!# ' 23196for ac_last_try in false false :; do 23197 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23198 if test -z "$ac_tt"; then 23199 break 23200 elif $ac_last_try; then 23201 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23202 else 23203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23204 fi 23205done 23206 23207# For the awk script, D is an array of macro values keyed by name, 23208# likewise P contains macro parameters if any. Preserve backslash 23209# newline sequences. 23210 23211ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23212sed -n ' 23213s/.\{148\}/&'"$ac_delim"'/g 23214t rset 23215:rset 23216s/^[ ]*#[ ]*define[ ][ ]*/ / 23217t def 23218d 23219:def 23220s/\\$// 23221t bsnl 23222s/["\\]/\\&/g 23223s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23224D["\1"]=" \3"/p 23225s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23226d 23227:bsnl 23228s/["\\]/\\&/g 23229s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23230D["\1"]=" \3\\\\\\n"\\/p 23231t cont 23232s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23233t cont 23234d 23235:cont 23236n 23237s/.\{148\}/&'"$ac_delim"'/g 23238t clear 23239:clear 23240s/\\$// 23241t bsnlc 23242s/["\\]/\\&/g; s/^/"/; s/$/"/p 23243d 23244:bsnlc 23245s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23246b cont 23247' <confdefs.h | sed ' 23248s/'"$ac_delim"'/"\\\ 23249"/g' >>$CONFIG_STATUS || ac_write_fail=1 23250 23251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23252 for (key in D) D_is_set[key] = 1 23253 FS = "" 23254} 23255/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23256 line = \$ 0 23257 split(line, arg, " ") 23258 if (arg[1] == "#") { 23259 defundef = arg[2] 23260 mac1 = arg[3] 23261 } else { 23262 defundef = substr(arg[1], 2) 23263 mac1 = arg[2] 23264 } 23265 split(mac1, mac2, "(") #) 23266 macro = mac2[1] 23267 prefix = substr(line, 1, index(line, defundef) - 1) 23268 if (D_is_set[macro]) { 23269 # Preserve the white space surrounding the "#". 23270 print prefix "define", macro P[macro] D[macro] 23271 next 23272 } else { 23273 # Replace #undef with comments. This is necessary, for example, 23274 # in the case of _POSIX_SOURCE, which is predefined and required 23275 # on some systems where configure will not decide to define it. 23276 if (defundef == "undef") { 23277 print "/*", prefix defundef, macro, "*/" 23278 next 23279 } 23280 } 23281} 23282{ print } 23283_ACAWK 23284_ACEOF 23285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23286 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23287fi # test -n "$CONFIG_HEADERS" 23288 23289 23290eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23291shift 23292for ac_tag 23293do 23294 case $ac_tag in 23295 :[FHLC]) ac_mode=$ac_tag; continue;; 23296 esac 23297 case $ac_mode$ac_tag in 23298 :[FHL]*:*);; 23299 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23300 :[FH]-) ac_tag=-:-;; 23301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23302 esac 23303 ac_save_IFS=$IFS 23304 IFS=: 23305 set x $ac_tag 23306 IFS=$ac_save_IFS 23307 shift 23308 ac_file=$1 23309 shift 23310 23311 case $ac_mode in 23312 :L) ac_source=$1;; 23313 :[FH]) 23314 ac_file_inputs= 23315 for ac_f 23316 do 23317 case $ac_f in 23318 -) ac_f="$ac_tmp/stdin";; 23319 *) # Look for the file first in the build tree, then in the source tree 23320 # (if the path is not absolute). The absolute path cannot be DOS-style, 23321 # because $ac_f cannot contain `:'. 23322 test -f "$ac_f" || 23323 case $ac_f in 23324 [\\/$]*) false;; 23325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23326 esac || 23327 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23328 esac 23329 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23330 as_fn_append ac_file_inputs " '$ac_f'" 23331 done 23332 23333 # Let's still pretend it is `configure' which instantiates (i.e., don't 23334 # use $as_me), people would be surprised to read: 23335 # /* config.h. Generated by config.status. */ 23336 configure_input='Generated from '` 23337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23338 `' by configure.' 23339 if test x"$ac_file" != x-; then 23340 configure_input="$ac_file. $configure_input" 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23342$as_echo "$as_me: creating $ac_file" >&6;} 23343 fi 23344 # Neutralize special characters interpreted by sed in replacement strings. 23345 case $configure_input in #( 23346 *\&* | *\|* | *\\* ) 23347 ac_sed_conf_input=`$as_echo "$configure_input" | 23348 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23349 *) ac_sed_conf_input=$configure_input;; 23350 esac 23351 23352 case $ac_tag in 23353 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23355 esac 23356 ;; 23357 esac 23358 23359 ac_dir=`$as_dirname -- "$ac_file" || 23360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23361 X"$ac_file" : 'X\(//\)[^/]' \| \ 23362 X"$ac_file" : 'X\(//\)$' \| \ 23363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23364$as_echo X"$ac_file" | 23365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23366 s//\1/ 23367 q 23368 } 23369 /^X\(\/\/\)[^/].*/{ 23370 s//\1/ 23371 q 23372 } 23373 /^X\(\/\/\)$/{ 23374 s//\1/ 23375 q 23376 } 23377 /^X\(\/\).*/{ 23378 s//\1/ 23379 q 23380 } 23381 s/.*/./; q'` 23382 as_dir="$ac_dir"; as_fn_mkdir_p 23383 ac_builddir=. 23384 23385case "$ac_dir" in 23386.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23387*) 23388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23389 # A ".." for each directory in $ac_dir_suffix. 23390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23391 case $ac_top_builddir_sub in 23392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23394 esac ;; 23395esac 23396ac_abs_top_builddir=$ac_pwd 23397ac_abs_builddir=$ac_pwd$ac_dir_suffix 23398# for backward compatibility: 23399ac_top_builddir=$ac_top_build_prefix 23400 23401case $srcdir in 23402 .) # We are building in place. 23403 ac_srcdir=. 23404 ac_top_srcdir=$ac_top_builddir_sub 23405 ac_abs_top_srcdir=$ac_pwd ;; 23406 [\\/]* | ?:[\\/]* ) # Absolute name. 23407 ac_srcdir=$srcdir$ac_dir_suffix; 23408 ac_top_srcdir=$srcdir 23409 ac_abs_top_srcdir=$srcdir ;; 23410 *) # Relative name. 23411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23412 ac_top_srcdir=$ac_top_build_prefix$srcdir 23413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23414esac 23415ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23416 23417 23418 case $ac_mode in 23419 :F) 23420 # 23421 # CONFIG_FILE 23422 # 23423 23424 case $INSTALL in 23425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23426 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23427 esac 23428_ACEOF 23429 23430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23431# If the template does not know about datarootdir, expand it. 23432# FIXME: This hack should be removed a few years after 2.60. 23433ac_datarootdir_hack=; ac_datarootdir_seen= 23434ac_sed_dataroot=' 23435/datarootdir/ { 23436 p 23437 q 23438} 23439/@datadir@/p 23440/@docdir@/p 23441/@infodir@/p 23442/@localedir@/p 23443/@mandir@/p' 23444case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23445*datarootdir*) ac_datarootdir_seen=yes;; 23446*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23448$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23449_ACEOF 23450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23451 ac_datarootdir_hack=' 23452 s&@datadir@&$datadir&g 23453 s&@docdir@&$docdir&g 23454 s&@infodir@&$infodir&g 23455 s&@localedir@&$localedir&g 23456 s&@mandir@&$mandir&g 23457 s&\\\${datarootdir}&$datarootdir&g' ;; 23458esac 23459_ACEOF 23460 23461# Neutralize VPATH when `$srcdir' = `.'. 23462# Shell code in configure.ac might set extrasub. 23463# FIXME: do we really want to maintain this feature? 23464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23465ac_sed_extra="$ac_vpsub 23466$extrasub 23467_ACEOF 23468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23469:t 23470/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23471s|@configure_input@|$ac_sed_conf_input|;t t 23472s&@top_builddir@&$ac_top_builddir_sub&;t t 23473s&@top_build_prefix@&$ac_top_build_prefix&;t t 23474s&@srcdir@&$ac_srcdir&;t t 23475s&@abs_srcdir@&$ac_abs_srcdir&;t t 23476s&@top_srcdir@&$ac_top_srcdir&;t t 23477s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23478s&@builddir@&$ac_builddir&;t t 23479s&@abs_builddir@&$ac_abs_builddir&;t t 23480s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23481s&@INSTALL@&$ac_INSTALL&;t t 23482$ac_datarootdir_hack 23483" 23484eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 23485if $ac_cs_awk_getline; then 23486 $AWK -f "$ac_tmp/subs.awk" 23487else 23488 $AWK -f "$ac_tmp/subs.awk" | $SHELL 23489fi \ 23490 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23491 23492test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23495 "$ac_tmp/out"`; test -z "$ac_out"; } && 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23497which seems to be undefined. Please make sure it is defined" >&5 23498$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23499which seems to be undefined. Please make sure it is defined" >&2;} 23500 23501 rm -f "$ac_tmp/stdin" 23502 case $ac_file in 23503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23505 esac \ 23506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23507 ;; 23508 :H) 23509 # 23510 # CONFIG_HEADER 23511 # 23512 if test x"$ac_file" != x-; then 23513 { 23514 $as_echo "/* $configure_input */" \ 23515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23516 } >"$ac_tmp/config.h" \ 23517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23518 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23520$as_echo "$as_me: $ac_file is unchanged" >&6;} 23521 else 23522 rm -f "$ac_file" 23523 mv "$ac_tmp/config.h" "$ac_file" \ 23524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23525 fi 23526 else 23527 $as_echo "/* $configure_input */" \ 23528 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23529 || as_fn_error $? "could not create -" "$LINENO" 5 23530 fi 23531 ;; 23532 23533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23534$as_echo "$as_me: executing $ac_file commands" >&6;} 23535 ;; 23536 esac 23537 23538 23539 case $ac_file$ac_mode in 23540 "libtool":C) 23541 23542 # See if we are running on zsh, and set the options which allow our 23543 # commands through without removal of \ escapes. 23544 if test -n "${ZSH_VERSION+set}" ; then 23545 setopt NO_GLOB_SUBST 23546 fi 23547 23548 cfgfile="${ofile}T" 23549 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23550 $RM "$cfgfile" 23551 23552 cat <<_LT_EOF >> "$cfgfile" 23553#! $SHELL 23554 23555# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 23556# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 23557# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23558# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23559# 23560# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 23561# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 23562# Foundation, Inc. 23563# Written by Gordon Matzigkeit, 1996 23564# 23565# This file is part of GNU Libtool. 23566# 23567# GNU Libtool is free software; you can redistribute it and/or 23568# modify it under the terms of the GNU General Public License as 23569# published by the Free Software Foundation; either version 2 of 23570# the License, or (at your option) any later version. 23571# 23572# As a special exception to the GNU General Public License, 23573# if you distribute this file as part of a program or library that 23574# is built using GNU Libtool, you may include this file under the 23575# same distribution terms that you use for the rest of that program. 23576# 23577# GNU Libtool is distributed in the hope that it will be useful, 23578# but WITHOUT ANY WARRANTY; without even the implied warranty of 23579# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23580# GNU General Public License for more details. 23581# 23582# You should have received a copy of the GNU General Public License 23583# along with GNU Libtool; see the file COPYING. If not, a copy 23584# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 23585# obtained by writing to the Free Software Foundation, Inc., 23586# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23587 23588 23589# The names of the tagged configurations supported by this script. 23590available_tags="" 23591 23592# ### BEGIN LIBTOOL CONFIG 23593 23594# Which release of libtool.m4 was used? 23595macro_version=$macro_version 23596macro_revision=$macro_revision 23597 23598# Whether or not to build shared libraries. 23599build_libtool_libs=$enable_shared 23600 23601# Whether or not to build static libraries. 23602build_old_libs=$enable_static 23603 23604# What type of objects to build. 23605pic_mode=$pic_mode 23606 23607# Whether or not to optimize for fast installation. 23608fast_install=$enable_fast_install 23609 23610# Shell to use when invoking shell scripts. 23611SHELL=$lt_SHELL 23612 23613# An echo program that protects backslashes. 23614ECHO=$lt_ECHO 23615 23616# The PATH separator for the build system. 23617PATH_SEPARATOR=$lt_PATH_SEPARATOR 23618 23619# The host system. 23620host_alias=$host_alias 23621host=$host 23622host_os=$host_os 23623 23624# The build system. 23625build_alias=$build_alias 23626build=$build 23627build_os=$build_os 23628 23629# A sed program that does not truncate output. 23630SED=$lt_SED 23631 23632# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23633Xsed="\$SED -e 1s/^X//" 23634 23635# A grep program that handles long lines. 23636GREP=$lt_GREP 23637 23638# An ERE matcher. 23639EGREP=$lt_EGREP 23640 23641# A literal string matcher. 23642FGREP=$lt_FGREP 23643 23644# A BSD- or MS-compatible name lister. 23645NM=$lt_NM 23646 23647# Whether we need soft or hard links. 23648LN_S=$lt_LN_S 23649 23650# What is the maximum length of a command? 23651max_cmd_len=$max_cmd_len 23652 23653# Object file suffix (normally "o"). 23654objext=$ac_objext 23655 23656# Executable file suffix (normally ""). 23657exeext=$exeext 23658 23659# whether the shell understands "unset". 23660lt_unset=$lt_unset 23661 23662# turn spaces into newlines. 23663SP2NL=$lt_lt_SP2NL 23664 23665# turn newlines into spaces. 23666NL2SP=$lt_lt_NL2SP 23667 23668# convert \$build file names to \$host format. 23669to_host_file_cmd=$lt_cv_to_host_file_cmd 23670 23671# convert \$build files to toolchain format. 23672to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23673 23674# An object symbol dumper. 23675OBJDUMP=$lt_OBJDUMP 23676 23677# Method to check whether dependent libraries are shared objects. 23678deplibs_check_method=$lt_deplibs_check_method 23679 23680# Command to use when deplibs_check_method = "file_magic". 23681file_magic_cmd=$lt_file_magic_cmd 23682 23683# How to find potential files when deplibs_check_method = "file_magic". 23684file_magic_glob=$lt_file_magic_glob 23685 23686# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23687want_nocaseglob=$lt_want_nocaseglob 23688 23689# DLL creation program. 23690DLLTOOL=$lt_DLLTOOL 23691 23692# Command to associate shared and link libraries. 23693sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23694 23695# The archiver. 23696AR=$lt_AR 23697 23698# Flags to create an archive. 23699AR_FLAGS=$lt_AR_FLAGS 23700 23701# How to feed a file listing to the archiver. 23702archiver_list_spec=$lt_archiver_list_spec 23703 23704# A symbol stripping program. 23705STRIP=$lt_STRIP 23706 23707# Commands used to install an old-style archive. 23708RANLIB=$lt_RANLIB 23709old_postinstall_cmds=$lt_old_postinstall_cmds 23710old_postuninstall_cmds=$lt_old_postuninstall_cmds 23711 23712# Whether to use a lock for old archive extraction. 23713lock_old_archive_extraction=$lock_old_archive_extraction 23714 23715# A C compiler. 23716LTCC=$lt_CC 23717 23718# LTCC compiler flags. 23719LTCFLAGS=$lt_CFLAGS 23720 23721# Take the output of nm and produce a listing of raw symbols and C names. 23722global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23723 23724# Transform the output of nm in a proper C declaration. 23725global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23726 23727# Transform the output of nm in a C name address pair. 23728global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23729 23730# Transform the output of nm in a C name address pair when lib prefix is needed. 23731global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23732 23733# Specify filename containing input files for \$NM. 23734nm_file_list_spec=$lt_nm_file_list_spec 23735 23736# The root where to search for dependent libraries,and in which our libraries should be installed. 23737lt_sysroot=$lt_sysroot 23738 23739# The name of the directory that contains temporary libtool files. 23740objdir=$objdir 23741 23742# Used to examine libraries when file_magic_cmd begins with "file". 23743MAGIC_CMD=$MAGIC_CMD 23744 23745# Must we lock files when doing compilation? 23746need_locks=$lt_need_locks 23747 23748# Manifest tool. 23749MANIFEST_TOOL=$lt_MANIFEST_TOOL 23750 23751# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23752DSYMUTIL=$lt_DSYMUTIL 23753 23754# Tool to change global to local symbols on Mac OS X. 23755NMEDIT=$lt_NMEDIT 23756 23757# Tool to manipulate fat objects and archives on Mac OS X. 23758LIPO=$lt_LIPO 23759 23760# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23761OTOOL=$lt_OTOOL 23762 23763# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23764OTOOL64=$lt_OTOOL64 23765 23766# Old archive suffix (normally "a"). 23767libext=$libext 23768 23769# Shared library suffix (normally ".so"). 23770shrext_cmds=$lt_shrext_cmds 23771 23772# The commands to extract the exported symbol list from a shared archive. 23773extract_expsyms_cmds=$lt_extract_expsyms_cmds 23774 23775# Variables whose values should be saved in libtool wrapper scripts and 23776# restored at link time. 23777variables_saved_for_relink=$lt_variables_saved_for_relink 23778 23779# Do we need the "lib" prefix for modules? 23780need_lib_prefix=$need_lib_prefix 23781 23782# Do we need a version for libraries? 23783need_version=$need_version 23784 23785# Library versioning type. 23786version_type=$version_type 23787 23788# Shared library runtime path variable. 23789runpath_var=$runpath_var 23790 23791# Shared library path variable. 23792shlibpath_var=$shlibpath_var 23793 23794# Is shlibpath searched before the hard-coded library search path? 23795shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23796 23797# Format of library name prefix. 23798libname_spec=$lt_libname_spec 23799 23800# List of archive names. First name is the real one, the rest are links. 23801# The last name is the one that the linker finds with -lNAME 23802library_names_spec=$lt_library_names_spec 23803 23804# The coded name of the library, if different from the real name. 23805soname_spec=$lt_soname_spec 23806 23807# Permission mode override for installation of shared libraries. 23808install_override_mode=$lt_install_override_mode 23809 23810# Command to use after installation of a shared archive. 23811postinstall_cmds=$lt_postinstall_cmds 23812 23813# Command to use after uninstallation of a shared archive. 23814postuninstall_cmds=$lt_postuninstall_cmds 23815 23816# Commands used to finish a libtool library installation in a directory. 23817finish_cmds=$lt_finish_cmds 23818 23819# As "finish_cmds", except a single script fragment to be evaled but 23820# not shown. 23821finish_eval=$lt_finish_eval 23822 23823# Whether we should hardcode library paths into libraries. 23824hardcode_into_libs=$hardcode_into_libs 23825 23826# Compile-time system search path for libraries. 23827sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23828 23829# Run-time system search path for libraries. 23830sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23831 23832# Whether dlopen is supported. 23833dlopen_support=$enable_dlopen 23834 23835# Whether dlopen of programs is supported. 23836dlopen_self=$enable_dlopen_self 23837 23838# Whether dlopen of statically linked programs is supported. 23839dlopen_self_static=$enable_dlopen_self_static 23840 23841# Commands to strip libraries. 23842old_striplib=$lt_old_striplib 23843striplib=$lt_striplib 23844 23845 23846# The linker used to build libraries. 23847LD=$lt_LD 23848 23849# How to create reloadable object files. 23850reload_flag=$lt_reload_flag 23851reload_cmds=$lt_reload_cmds 23852 23853# Commands used to build an old-style archive. 23854old_archive_cmds=$lt_old_archive_cmds 23855 23856# A language specific compiler. 23857CC=$lt_compiler 23858 23859# Is the compiler the GNU compiler? 23860with_gcc=$GCC 23861 23862# Compiler flag to turn off builtin functions. 23863no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23864 23865# Additional compiler flags for building library objects. 23866pic_flag=$lt_lt_prog_compiler_pic 23867 23868# How to pass a linker flag through the compiler. 23869wl=$lt_lt_prog_compiler_wl 23870 23871# Compiler flag to prevent dynamic linking. 23872link_static_flag=$lt_lt_prog_compiler_static 23873 23874# Does compiler simultaneously support -c and -o options? 23875compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23876 23877# Whether or not to add -lc for building shared libraries. 23878build_libtool_need_lc=$archive_cmds_need_lc 23879 23880# Whether or not to disallow shared libs when runtime libs are static. 23881allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23882 23883# Compiler flag to allow reflexive dlopens. 23884export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23885 23886# Compiler flag to generate shared objects directly from archives. 23887whole_archive_flag_spec=$lt_whole_archive_flag_spec 23888 23889# Whether the compiler copes with passing no objects directly. 23890compiler_needs_object=$lt_compiler_needs_object 23891 23892# Create an old-style archive from a shared archive. 23893old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23894 23895# Create a temporary old-style archive to link instead of a shared archive. 23896old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23897 23898# Commands used to build a shared archive. 23899archive_cmds=$lt_archive_cmds 23900archive_expsym_cmds=$lt_archive_expsym_cmds 23901 23902# Commands used to build a loadable module if different from building 23903# a shared archive. 23904module_cmds=$lt_module_cmds 23905module_expsym_cmds=$lt_module_expsym_cmds 23906 23907# Whether we are building with GNU ld or not. 23908with_gnu_ld=$lt_with_gnu_ld 23909 23910# Flag that allows shared libraries with undefined symbols to be built. 23911allow_undefined_flag=$lt_allow_undefined_flag 23912 23913# Flag that enforces no undefined symbols. 23914no_undefined_flag=$lt_no_undefined_flag 23915 23916# Flag to hardcode \$libdir into a binary during linking. 23917# This must work even if \$libdir does not exist 23918hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23919 23920# Whether we need a single "-rpath" flag with a separated argument. 23921hardcode_libdir_separator=$lt_hardcode_libdir_separator 23922 23923# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23924# DIR into the resulting binary. 23925hardcode_direct=$hardcode_direct 23926 23927# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23928# DIR into the resulting binary and the resulting library dependency is 23929# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23930# library is relocated. 23931hardcode_direct_absolute=$hardcode_direct_absolute 23932 23933# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23934# into the resulting binary. 23935hardcode_minus_L=$hardcode_minus_L 23936 23937# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23938# into the resulting binary. 23939hardcode_shlibpath_var=$hardcode_shlibpath_var 23940 23941# Set to "yes" if building a shared library automatically hardcodes DIR 23942# into the library and all subsequent libraries and executables linked 23943# against it. 23944hardcode_automatic=$hardcode_automatic 23945 23946# Set to yes if linker adds runtime paths of dependent libraries 23947# to runtime path list. 23948inherit_rpath=$inherit_rpath 23949 23950# Whether libtool must link a program against all its dependency libraries. 23951link_all_deplibs=$link_all_deplibs 23952 23953# Set to "yes" if exported symbols are required. 23954always_export_symbols=$always_export_symbols 23955 23956# The commands to list exported symbols. 23957export_symbols_cmds=$lt_export_symbols_cmds 23958 23959# Symbols that should not be listed in the preloaded symbols. 23960exclude_expsyms=$lt_exclude_expsyms 23961 23962# Symbols that must always be exported. 23963include_expsyms=$lt_include_expsyms 23964 23965# Commands necessary for linking programs (against libraries) with templates. 23966prelink_cmds=$lt_prelink_cmds 23967 23968# Commands necessary for finishing linking programs. 23969postlink_cmds=$lt_postlink_cmds 23970 23971# Specify filename containing input files. 23972file_list_spec=$lt_file_list_spec 23973 23974# How to hardcode a shared library path into an executable. 23975hardcode_action=$hardcode_action 23976 23977# ### END LIBTOOL CONFIG 23978 23979_LT_EOF 23980 23981 case $host_os in 23982 aix3*) 23983 cat <<\_LT_EOF >> "$cfgfile" 23984# AIX sometimes has problems with the GCC collect2 program. For some 23985# reason, if we set the COLLECT_NAMES environment variable, the problems 23986# vanish in a puff of smoke. 23987if test "X${COLLECT_NAMES+set}" != Xset; then 23988 COLLECT_NAMES= 23989 export COLLECT_NAMES 23990fi 23991_LT_EOF 23992 ;; 23993 esac 23994 23995 23996ltmain="$ac_aux_dir/ltmain.sh" 23997 23998 23999 # We use sed instead of cat because bash on DJGPP gets confused if 24000 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24001 # text mode, it properly converts lines to CR/LF. This bash problem 24002 # is reportedly fixed, but why not run on old versions too? 24003 sed '$q' "$ltmain" >> "$cfgfile" \ 24004 || (rm -f "$cfgfile"; exit 1) 24005 24006 if test x"$xsi_shell" = xyes; then 24007 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 24008func_dirname ()\ 24009{\ 24010\ case ${1} in\ 24011\ */*) func_dirname_result="${1%/*}${2}" ;;\ 24012\ * ) func_dirname_result="${3}" ;;\ 24013\ esac\ 24014} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 24015 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24017test 0 -eq $? || _lt_function_replace_fail=: 24018 24019 24020 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 24021func_basename ()\ 24022{\ 24023\ func_basename_result="${1##*/}"\ 24024} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 24025 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24027test 0 -eq $? || _lt_function_replace_fail=: 24028 24029 24030 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 24031func_dirname_and_basename ()\ 24032{\ 24033\ case ${1} in\ 24034\ */*) func_dirname_result="${1%/*}${2}" ;;\ 24035\ * ) func_dirname_result="${3}" ;;\ 24036\ esac\ 24037\ func_basename_result="${1##*/}"\ 24038} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 24039 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24041test 0 -eq $? || _lt_function_replace_fail=: 24042 24043 24044 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 24045func_stripname ()\ 24046{\ 24047\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 24048\ # positional parameters, so assign one to ordinary parameter first.\ 24049\ func_stripname_result=${3}\ 24050\ func_stripname_result=${func_stripname_result#"${1}"}\ 24051\ func_stripname_result=${func_stripname_result%"${2}"}\ 24052} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 24053 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24054 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24055test 0 -eq $? || _lt_function_replace_fail=: 24056 24057 24058 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 24059func_split_long_opt ()\ 24060{\ 24061\ func_split_long_opt_name=${1%%=*}\ 24062\ func_split_long_opt_arg=${1#*=}\ 24063} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 24064 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24066test 0 -eq $? || _lt_function_replace_fail=: 24067 24068 24069 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 24070func_split_short_opt ()\ 24071{\ 24072\ func_split_short_opt_arg=${1#??}\ 24073\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 24074} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 24075 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24077test 0 -eq $? || _lt_function_replace_fail=: 24078 24079 24080 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 24081func_lo2o ()\ 24082{\ 24083\ case ${1} in\ 24084\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 24085\ *) func_lo2o_result=${1} ;;\ 24086\ esac\ 24087} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 24088 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24089 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24090test 0 -eq $? || _lt_function_replace_fail=: 24091 24092 24093 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 24094func_xform ()\ 24095{\ 24096 func_xform_result=${1%.*}.lo\ 24097} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 24098 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24099 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24100test 0 -eq $? || _lt_function_replace_fail=: 24101 24102 24103 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 24104func_arith ()\ 24105{\ 24106 func_arith_result=$(( $* ))\ 24107} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 24108 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24110test 0 -eq $? || _lt_function_replace_fail=: 24111 24112 24113 sed -e '/^func_len ()$/,/^} # func_len /c\ 24114func_len ()\ 24115{\ 24116 func_len_result=${#1}\ 24117} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 24118 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24119 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24120test 0 -eq $? || _lt_function_replace_fail=: 24121 24122fi 24123 24124if test x"$lt_shell_append" = xyes; then 24125 sed -e '/^func_append ()$/,/^} # func_append /c\ 24126func_append ()\ 24127{\ 24128 eval "${1}+=\\${2}"\ 24129} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 24130 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24132test 0 -eq $? || _lt_function_replace_fail=: 24133 24134 24135 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 24136func_append_quoted ()\ 24137{\ 24138\ func_quote_for_eval "${2}"\ 24139\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 24140} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 24141 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24143test 0 -eq $? || _lt_function_replace_fail=: 24144 24145 24146 # Save a `func_append' function call where possible by direct use of '+=' 24147 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 24148 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24150 test 0 -eq $? || _lt_function_replace_fail=: 24151else 24152 # Save a `func_append' function call even when '+=' is not available 24153 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 24154 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24156 test 0 -eq $? || _lt_function_replace_fail=: 24157fi 24158 24159if test x"$_lt_function_replace_fail" = x":"; then 24160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 24161$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 24162fi 24163 24164 24165 mv -f "$cfgfile" "$ofile" || 24166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24167 chmod +x "$ofile" 24168 24169 ;; 24170 "atf-config":C) ( 24171 mkdir -p unit/atf-src; 24172 cd unit/atf-src; 24173 case "$srcdir" in 24174 /*) ;; 24175 *) srcdir="../../$srcdir";; 24176 esac 24177 ${SHELL} "${srcdir}${srcdir:+/unit/atf-src/}./configure" --enable-tools --disable-shared MISSING=: --prefix $atfdir; 24178 ) ;; 24179 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;; 24180 24181 esac 24182done # for ac_tag 24183 24184 24185as_fn_exit 0 24186_ACEOF 24187ac_clean_files=$ac_clean_files_save 24188 24189test $ac_write_fail = 0 || 24190 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24191 24192 24193# configure is writing to config.log, and then calls config.status. 24194# config.status does its own redirection, appending to config.log. 24195# Unfortunately, on DOS this fails, as config.log is still kept open 24196# by configure, so config.status won't be able to write to it; its 24197# output is simply discarded. So we exec the FD to /dev/null, 24198# effectively closing config.log, so it can be properly (re)opened and 24199# appended to by config.status. When coming back to configure, we 24200# need to make the FD available again. 24201if test "$no_create" != yes; then 24202 ac_cs_success=: 24203 ac_config_status_args= 24204 test "$silent" = yes && 24205 ac_config_status_args="$ac_config_status_args --quiet" 24206 exec 5>/dev/null 24207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24208 exec 5>>config.log 24209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24210 # would make configure fail if this is the last instruction. 24211 $ac_cs_success || as_fn_exit 1 24212fi 24213if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24215$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24216fi 24217 24218 24219# 24220# Now that the Makefiles exist we can ensure that everything is rebuilt. 24221# 24222 24223# Check whether --with-make-clean was given. 24224if test "${with_make_clean+set}" = set; then : 24225 withval=$with_make_clean; make_clean="$withval" 24226else 24227 make_clean="yes" 24228fi 24229 24230case "$make_clean" in 24231yes) 24232 make clean 24233 ;; 24234esac 24235 24236# Check whether --enable-full-report was given. 24237if test "${enable_full_report+set}" = set; then : 24238 enableval=$enable_full_report; 24239fi 24240 24241 24242echo "========================================================================" 24243echo "Configuration summary:" 24244echo "------------------------------------------------------------------------" 24245echo "Optional features enabled:" 24246if $use_threads; then 24247 echo " Multiprocessing support (--enable-threads)" 24248 if test "$enable_full_report" = "yes" -o "$locktype" = "standard"; then 24249 echo " Mutex lock type: $locktype" 24250 fi 24251fi 24252test "$use_tuning" = "large" && echo " Large-system tuning (--with-tuning)" 24253test "$use_geoip" = "no" || echo " GeoIP access control (--with-geoip)" 24254test "$use_gssapi" = "no" || echo " GSS-API (--with-gssapi)" 24255if test "$enable_sit" != "no"; then 24256 echo " Source Identity Token support (--enable-sit)" 24257 if test "$enable_full_report" = "yes" -o "$with_sit_alg" != "aes"; then 24258 echo " Algorithm: $with_sit_alg" 24259 fi 24260fi 24261 24262# these lines are only printed if run with --enable-full-report 24263if test "$enable_full_report" = "yes"; then 24264 test "$enable_ipv6" = "no" -o "$found_ipv6" = "no" || \ 24265 echo " IPv6 support (--enable-ipv6)" 24266 test "X$CRYPTO" = "X" -o "$want_native_pkcs11" = "yes" || \ 24267 echo " OpenSSL cryptography/DNSSEC (--with-openssl)" 24268 test "X$PYTHON" = "X" || echo " Python tools (--with-python)" 24269 test "X$libxml2_libs" = "X" || echo " XML statistics (--with-libxml2)" 24270 test "X$have_libjson" = "X" || echo " JSON statistics (--with-libjson)" 24271fi 24272 24273if test "$use_pkcs11" != "no"; then 24274 if test "$want_native_pkcs11" = "yes"; then 24275 echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)" 24276 else 24277 echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)" 24278 fi 24279 echo " Provider library: $PKCS11_PROVIDER" 24280fi 24281if test "$OPENSSL_GOST" = "yes" -o "$PKCS11_GOST" = "yes"; then 24282 echo " GOST algorithm support (encoding: $gosttype) (--with-gost)" 24283fi 24284test "$OPENSSL_ECDSA" = "yes" -o "$PKCS11_ECDSA" = "yes" && \ 24285 echo " ECDSA algorithm support (--with-ecdsa)" 24286test "$enable_fixed" = "yes" && \ 24287 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)" 24288test "$enable_filter" = "yes" && \ 24289 echo " AAAA filtering (--enable-filter-aaaa)" 24290test "$enable_seccomp" = yes && \ 24291 echo " Use libseccomp system call filtering (--enable-seccomp)" 24292test "$want_backtrace" = "yes" && \ 24293 echo " Print backtrace on crash (--enable-backtrace)" 24294test "$want_symtable" = "minimal" && \ 24295 echo " Use symbol table for backtrace, named only (--enable-symtable)" 24296test "$want_symtable" = "yes" -o "$want_symtable" = "all" && \ 24297 echo " Use symbol table for backtrace, all binaries (--enable-symtable=all)" 24298test "$use_libtool" = "no" || echo " Use GNU libtool (--with-libtool)" 24299test "$atf" = "no" || echo " Automated Testing Framework (--with-atf)" 24300 24301echo " Dynamically loadable zone (DLZ) drivers:" 24302test "$use_dlz_bdb" = "no" || \ 24303 echo " Berkeley DB (--with-dlz-bdb)" 24304test "$use_dlz_ldap" = "no" || \ 24305 echo " LDAP (--with-dlz-ldap)" 24306test "$use_dlz_mysql" = "no" || \ 24307 echo " MySQL (--with-dlz-mysql)" 24308test "$use_dlz_odbc" = "no" || \ 24309 echo " ODBC (--with-dlz-odbc)" 24310test "$use_dlz_postgres" = "no" || \ 24311 echo " Postgres (--with-dlz-postgres)" 24312test "$use_dlz_filesystem" = "no" || \ 24313 echo " Filesystem (--with-dlz-filesystem)" 24314test "$use_dlz_stub" = "no" || \ 24315 echo " Stub (--with-dlz-stub)" 24316test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo " None" 24317echo 24318 24319echo "Features disabled or unavailable on this platform:" 24320$use_threads || echo " Multiprocessing support (--enable-threads)" 24321test "$enable_ipv6" = "no" -o "$found_ipv6" = "no" && \ 24322 echo " IPv6 support (--enable-ipv6)" 24323test "$use_tuning" = "large" || echo " Large-system tuning (--with-tuning)" 24324 24325test "$use_geoip" = "no" && echo " GeoIP access control (--with-geoip)" 24326test "$use_gssapi" = "no" && echo " GSS-API (--with-gssapi)" 24327test "$enable_sit" = "no" && echo " Source Identity Token support (--enable-sit)" 24328 24329test "$enable_fixed" = "yes" || \ 24330 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)" 24331 24332if test "X$CRYPTO" = "X" -o "$want_native_pkcs11" = "yes" 24333then 24334 echo " OpenSSL cryptography/DNSSEC (--with-openssl)" 24335elif test "$use_pkcs11" = "no"; then 24336 echo " PKCS#11/Cryptoki support (--with-pkcs11)" 24337fi 24338test "$want_native_pkcs11" = "yes" || 24339 echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)" 24340test "X$CRYPTO" = "X" -o "$OPENSSL_GOST" = "yes" -o "$PKCS11_GOST" = "yes" || \ 24341 echo " GOST algorithm support (--with-gost)" 24342test "X$CRYPTO" = "X" -o "$OPENSSL_ECDSA" = "yes" -o "$PKCS11_ECDSA" = "yes" || \ 24343 echo " ECDSA algorithm support (--with-ecdsa)" 24344 24345test "$enable_seccomp" = yes || \ 24346 echo " Use libseccomp system call filtering (--enable-seccomp)" 24347test "$want_backtrace" = "yes" || \ 24348 echo " Print backtrace on crash (--enable-backtrace)" 24349test "$use_libtool" = "yes" || echo " Use GNU libtool (--with-libtool)" 24350test "$atf" = "no" && echo " Automated Testing Framework (--with-atf)" 24351 24352test "X$PYTHON" = "X" && echo " Python tools (--with-python)" 24353test "X$libxml2_libs" = "X" && echo " XML statistics (--with-libxml2)" 24354test "X$have_libjson" = "X" && echo " JSON statistics (--with-libjson)" 24355 24356if test "X$ac_unrecognized_opts" != "X"; then 24357 echo 24358 echo "Unrecognized options:" 24359 echo " $ac_unrecognized_opts" 24360fi 24361echo "========================================================================" 24362 24363if test "X$CRYPTO" = "X"; then 24364cat << \EOF 24365BIND 9 is being built without cryptography support. This means it will 24366not have DNSSEC support. Use --with-openssl, or --with-pkcs11 and 24367--enable-native-pkcs11 to enable cryptography. 24368EOF 24369fi 24370 24371if test "X$OPENSSL_WARNING" != "X"; then 24372cat << \EOF 24373WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 24374WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 24375WARNING WARNING 24376WARNING Your OpenSSL crypto library may be vulnerable to WARNING 24377WARNING one or more of the the following known security WARNING 24378WARNING flaws: WARNING 24379WARNING WARNING 24380WARNING CAN-2002-0659, CAN-2006-4339, CVE-2006-2937 and WARNING 24381WARNING CVE-2006-2940. WARNING 24382WARNING WARNING 24383WARNING It is recommended that you upgrade to OpenSSL WARNING 24384WARNING version 0.9.8d/0.9.7l (or greater). WARNING 24385WARNING WARNING 24386WARNING You can disable this warning by specifying: WARNING 24387WARNING WARNING 24388WARNING --disable-openssl-version-check WARNING 24389WARNING WARNING 24390WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 24391WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 24392EOF 24393fi 24394 24395# Tell Emacs to edit this file in shell mode. 24396# Local Variables: 24397# mode: sh 24398# End: 24399